{"version":3,"file":"AppDownloadTeaserFi-CY0QZ-wq.js","sources":["../../src/components/app-download-buttons-fi/AppDownloadButtonsFi.vue","../../src/pages/app-download-teaser-fi/AppDownloadTeaserFi.vue"],"sourcesContent":["<template>\n  <div class=\"app-download-buttons-fi\">\n    <template v-for=\"button in buttons\">\n      <div\n        v-if=\"!isEditMode && button.img && button.link\"\n        :key=\"button.id\"\n        class=\"app-download-buttons-fi__button\"\n      >\n        <a\n          :href=\"button.link.url ? button.link.url : button.link.href\"\n          :target=\"button.link.target\"\n          :title=\"button.link.title\"\n          :rel=\"button.link.url && button.link.target === '_blank' ? 'noopener noreferrer' : null\"\n        >\n          <img\n            class=\"app-download-buttons-fi__image\"\n            :src=\"button.img.src\"\n            :alt=\"button.img.alt\"\n          />\n        </a>\n      </div>\n      <div\n        v-if=\"isEditMode\"\n        :key=\"button.id\"\n      >\n        <!-- eslint-disable vue/no-v-html -->\n        <div\n          class=\"fi-mb-9\"\n          v-html=\"button.imgEdit\"\n        />\n        <div v-html=\"button.linkEdit\" />\n        <!-- eslint-enable vue/no-v-html -->\n      </div>\n    </template>\n  </div>\n</template>\n\n<script>\nexport default {\n  name: 'AppDownloadButtonsFi',\n  props: {\n    fields: {\n      type: Object,\n      default: () => ({}),\n    },\n  },\n  computed: {\n    buttons() {\n      return [\n        {\n          id: 'button-left',\n          img: this.buttonLeft,\n          imgEdit: this.fields?.buttonLeft?.editable,\n          link: this.buttonLeftLink,\n          linkEdit: this.fields?.buttonLeftLink?.editable,\n        },\n        {\n          id: 'button-right',\n          img: this.buttonRight,\n          imgEdit: this.fields?.buttonRight?.editable,\n          link: this.buttonRightLink,\n          linkEdit: this.fields?.buttonRightLink?.editable,\n        },\n      ];\n    },\n    buttonLeft() {\n      if (this.fields.buttonLeft?.value?.src) {\n        return this.fields.buttonLeft.value;\n      }\n\n      return false;\n    },\n    buttonLeftLink() {\n      if (\n        this.fields.buttonLeftLink?.value &&\n        (this.fields.buttonLeftLink.value.url || this.fields.buttonLeftLink.value.href)\n      ) {\n        return this.fields.buttonLeftLink.value;\n      }\n\n      return false;\n    },\n    buttonRight() {\n      if (this.fields.buttonRight?.value?.src) {\n        return this.fields.buttonRight.value;\n      }\n\n      return false;\n    },\n    buttonRightLink() {\n      if (\n        this.fields.buttonRightLink?.value &&\n        (this.fields.buttonRightLink.value.url || this.fields.buttonRightLink.value.href)\n      ) {\n        return this.fields.buttonRightLink.value;\n      }\n\n      return false;\n    },\n  },\n};\n</script>\n\n<style scoped lang=\"scss\">\n@import './app-download-buttons-fi';\n</style>\n","<template>\n  <component-wrapper>\n    <grid-container-fi\n      :class=\"{\n        'app-download-teaser-fi': true,\n        'app-download-teaser-fi--with-image': image,\n        'app-download-teaser-fi--dark': fields.dark?.value,\n      }\"\n    >\n      <div\n        :class=\"{\n          'fi-col-start-1 fi-col-end-13 md:fi-col-start-2 md:fi-col-end-12 lg:fi-col-start-3 lg:fi-col-end-11':\n            !image,\n          'fi-col-start-1 fi-col-end-13 md:fi-col-start-2 md:fi-col-end-12': image,\n        }\"\n      >\n        <div class=\"app-download-teaser-fi__container\">\n          <div\n            :class=\"{\n              'app-download-teaser-fi__text': true,\n              'app-download-teaser-fi__text--with-img': image,\n            }\"\n          >\n            <richtext-fi :html-content=\"fields.text\" />\n\n            <app-download-buttons-fi\n              class=\"app-download-teaser-fi__buttons\"\n              :fields=\"fields\"\n            />\n          </div>\n          <div\n            v-if=\"image\"\n            class=\"app-download-teaser-fi__image\"\n          >\n            <cloud-image-fi\n              v-if=\"!isEditMode\"\n              :src=\"image.src\"\n              :alt=\"image.alt\"\n              params=\"org_if_sml=1\"\n            />\n            <!-- eslint-disable vue/no-v-html -->\n            <div\n              v-else\n              v-html=\"fields.image.editable\"\n            />\n            <!-- eslint-enable vue/no-v-html -->\n          </div>\n        </div>\n      </div>\n\n      <div class=\"lg:fi-col-start-7 lg:fi-col-end-12\" />\n    </grid-container-fi>\n  </component-wrapper>\n</template>\n\n<script>\nimport { RichtextFi } from 'atoms';\nimport AppDownloadButtonsFi from 'components/app-download-buttons-fi/AppDownloadButtonsFi';\nimport CloudImageFi from 'components/atoms/cloud-image-fi/CloudImageFi';\nimport ComponentWrapper from 'components/component-wrapper/ComponentWrapper';\nimport GridContainerFi from 'components/grid-fi/GridContainerFi';\n\nexport default {\n  name: 'AppDownloadTeaserFi',\n  components: {\n    ComponentWrapper,\n    GridContainerFi,\n    RichtextFi,\n    CloudImageFi,\n    AppDownloadButtonsFi,\n  },\n  props: {\n    fields: {\n      type: Object,\n      default: () => ({}),\n    },\n  },\n  computed: {\n    image() {\n      if (this.fields.image?.value?.src) {\n        return this.fields.image?.value;\n      }\n\n      return false;\n    },\n  },\n};\n</script>\n\n<style scoped lang=\"scss\">\n@import './app-download-teaser-fi';\n</style>\n"],"names":["_sfc_main","_b","_a","_d","_c","_f","_e","_h","_g","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_openBlock","_createElementBlock","_Fragment","_renderList","$options","button","_ctx","_createElementVNode","_createCommentVNode","ComponentWrapper","GridContainerFi","RichtextFi","CloudImageFi","AppDownloadButtonsFi","_createBlock","_component_component_wrapper","_withCtx","_createVNode","_component_grid_container_fi","_normalizeClass","$props","_component_richtext_fi","_component_app_download_buttons_fi","_component_cloud_image_fi"],"mappings":"gJAsCA,MAAKA,EAAU,CACb,KAAM,uBACN,MAAO,CACL,OAAQ,CACN,KAAM,OACN,QAAS,KAAO,CAAA,EACjB,CACF,EACD,SAAU,CACR,SAAU,qBACR,MAAO,CACL,CACE,GAAI,cACJ,IAAK,KAAK,WACV,SAASC,GAAAC,EAAA,KAAK,SAAL,YAAAA,EAAa,aAAb,YAAAD,EAAyB,SAClC,KAAM,KAAK,eACX,UAAUE,GAAAC,EAAA,KAAK,SAAL,YAAAA,EAAa,iBAAb,YAAAD,EAA6B,QACxC,EACD,CACE,GAAI,eACJ,IAAK,KAAK,YACV,SAASE,GAAAC,EAAA,KAAK,SAAL,YAAAA,EAAa,cAAb,YAAAD,EA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