{"version":3,"sources":["webpack:///./src/components/EditorialCoverImage/EditorialCoverImage.vue?5f26","webpack:///src/components/EditorialCoverImage/EditorialCoverImage.vue","webpack:///./src/components/EditorialCoverImage/EditorialCoverImage.vue?00ec","webpack:///./src/components/EditorialCoverImage/EditorialCoverImage.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","model","_f","imageMobile","_e","image","altImage","class","layoutStyleBg","layoutStyle","headingTag","tag","headingClass","_v","_s","title","subheadingTag","subtitle","domProps","text","listStyle","_l","ctaObj","key","uuid","analyticsData","staticRenderFns","mixins","name","components","AdvancedButtonWrapper","PgButton","PgImage","computed","layout","headingStyle","methods","setLinkType","linkToDocument","$options","filters","mgnlMedia","mgnlLink","linkToPage","evCategory","evAction","evLabel","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACE,YAAY,kBAAkBC,MAAM,CAAC,GAAM,QAAWP,EAAIQ,MAAU,OAAK,CAACJ,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,UAAU,CAAEJ,EAAIQ,MAAiB,YAAEJ,EAAG,SAAS,CAACG,MAAM,CAAC,MAAQ,uCAAuC,OAASP,EAAIS,GAAG,YAAPT,CAAoBA,EAAIQ,MAAME,YAAY,UAAUV,EAAIW,KAAKP,EAAG,SAAS,CAACG,MAAM,CAAC,MAAQ,qBAAqB,OAASP,EAAIS,GAAG,YAAPT,CAAoBA,EAAIQ,MAAMI,MAAM,UAAUR,EAAG,WAAW,CAACG,MAAM,CAAC,WAAWP,EAAIS,GAAG,YAAPT,CAAoBA,EAAIQ,MAAMI,MAAM,OAAO,IAAMZ,EAAIQ,MAAMK,aAAa,OAAOT,EAAG,MAAM,CAACE,YAAY,+CAA+C,CAACF,EAAG,MAAM,CAACU,MA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J,WAEM,MAA6B,gBAAtBf,KAAKO,MAAMiC,OACxB,+DACA,+DAEI1B,cANJ,WAOM,MAA6B,gBAAtBd,KAAKO,MAAMiC,OACxB,iEACA,+BAEItB,aAXJ,WAYM,MAAmC,UAA5BlB,KAAKO,MAAMkC,aACxB,mCACA,oCAEIzB,WAhBJ,WAiBM,MAAmC,UAA5BhB,KAAKO,MAAMkC,aAA2B,KAAO,MAEtDnB,cAnBJ,WAoBM,MAAmC,UAA5BtB,KAAKO,MAAMkC,aAA2B,KAAO,OAGxDC,QAAS,CACPC,YADJ,SACA,KACM,OAAIC,EACK5C,KAAK6C,SAASC,QAAQC,UAAUH,EAAgB,OAEhD5C,KAAK6C,SAASC,QAAQE,SAASC,EAAY,QAGtDlB,cARJ,SAQA,WACM,MAAO,CACLmB,WAAY,iBACZC,UAAR,+GACQC,QAAS,GAAjB,iFC1F4W,I,YCOxWC,EAAY,eACd,EACAvD,EACAkC,GACA,EACA,KACA,KACA,MAIa,aAAAqB,E","file":"js/chunk-2d0b6597-97021eadb57fee07e4ea.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"editorial-cover\",attrs:{\"id\":(\"uuid-\" + (_vm.model.uuid))}},[_c('div',{staticClass:\"editorial-cover__block\"},[_c('div',{staticClass:\"editorial-cover__image\"},[_c('picture',[(_vm.model.imageMobile)?_c('source',{attrs:{\"media\":\"(min-width:0) and (max-width:1024px)\",\"srcset\":_vm._f(\"mgnlMedia\")(_vm.model.imageMobile,'url')}}):_vm._e(),_c('source',{attrs:{\"media\":\"(min-width:1025px)\",\"srcset\":_vm._f(\"mgnlMedia\")(_vm.model.image,'url')}}),_c('pg-image',{attrs:{\"lazy-src\":_vm._f(\"mgnlMedia\")(_vm.model.image,'url'),\"alt\":_vm.model.altImage}})],1)])]),_c('div',{staticClass:\"editorial-cover__block editorial-cover-wrap\"},[_c('div',{class:_vm.layoutStyleBg}),_c('div',{class:_vm.layoutStyle},[_c('div',{staticClass:\"editorial-cover__content\"},[(_vm.model.title)?_c(_vm.headingTag,{tag:\"component\",class:_vm.headingClass},[_vm._v(_vm._s(_vm.model.title))]):_vm._e(),(_vm.model.subtitle)?_c(_vm.subheadingTag,{tag:\"component\",staticClass:\"text--heading-s\"},[_vm._v(_vm._s(_vm.model.subtitle)+\" \")]):_vm._e(),_c('div',{staticClass:\"editorial__text text--body\",domProps:{\"innerHTML\":_vm._s(_vm.model.text)}}),(_vm.model.ctaLinks)?_c('p',{staticClass:\"editorial__cta\",class:(_vm.model.listStyle === 'contained' || _vm.model.listStyle === 'outline') ? 'margin-top__btn-m' : 'padding-left-right-0'},_vm._l((_vm.model.ctaLinks),function(ctaObj){return _c('span',{key:ctaObj.uuid},[_c('advanced-button-wrapper',{attrs:{\"sectionStyle\":_vm.model.listStyle === 'outline' ? 'secondary' : '',\"cta-obj\":ctaObj,\"styleType\":_vm.model.listStyle || 'text',\"size\":'medium',\"color\":(_vm.model.listStyle === 'contained' || _vm.model.listStyle === 'outline') ? 'primary' : '',\"analyticsData\":_vm.analyticsData(ctaObj)}})],1)}),0):_vm._e()],1)])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <section class=\"editorial-cover\" :id=\"`uuid-${model.uuid}`\">\n    <div class=\"editorial-cover__block\">\n      <div class=\"editorial-cover__image\">\n        <picture>\n          <source\n            media=\"(min-width:0) and (max-width:1024px)\"\n            :srcset=\"model.imageMobile | mgnlMedia('url')\"\n            v-if=\"model.imageMobile\"\n          />\n          <source media=\"(min-width:1025px)\" :srcset=\"model.image | mgnlMedia('url')\"/>\n          <pg-image :lazy-src=\"model.image | mgnlMedia('url')\" :alt=\"model.altImage\"></pg-image>\n        </picture>\n      </div>\n    </div>\n    <div class=\"editorial-cover__block editorial-cover-wrap\">\n      <div :class=\"layoutStyleBg\"></div>\n      \n      <div :class=\"layoutStyle\">\n        <div class=\"editorial-cover__content\">\n          <component :is=\"headingTag\" :class=\"headingClass\" v-if=\"model.title\">{{ model.title }}</component>\n          <component\n            :is=\"subheadingTag\"\n            class=\"text--heading-s\"\n            v-if=\"model.subtitle\"\n          >{{ model.subtitle }}\n          </component>\n          <div class=\"editorial__text text--body\" v-html=\"model.text\"></div>\n          <p v-if=\"model.ctaLinks\" class=\"editorial__cta\" :class=\"(model.listStyle === 'contained' || model.listStyle === 'outline') ? 'margin-top__btn-m' : 'padding-left-right-0'\">\n            <span v-for=\"ctaObj in model.ctaLinks\" :key=\"ctaObj.uuid\">\n              <advanced-button-wrapper :sectionStyle=\"model.listStyle === 'outline' ? 'secondary' : ''\" :cta-obj=\"ctaObj\"\n                                       :styleType=\"model.listStyle || 'text'\" :size=\"'medium'\"\n                                       :color=\"(model.listStyle === 'contained' || model.listStyle === 'outline') ? 'primary' : ''\" :analyticsData=\"analyticsData(ctaObj)\"/>\n            </span>\n          </p>\n        </div>\n      </div>\n    </div>\n  </section>\n</template>\n\n<script>\nimport {mgnlComponentMixin} from \"@wl-vue-mixins/mixins.js\";\nimport PgButton from \"../Button/Button.vue\";\nimport PgImage from \"../Image/Image.vue\";\nimport AdvancedButtonWrapper from \"../Advanced-Button-Wrapper/Advanced-Button-Wrapper\";\n\nexport default {\n  mixins: [mgnlComponentMixin], // !!! all the mgnl components must be configured with mgnlComponentMixin !!!\n  name: \"EditorialCoverImage\",\n  components: {\n    AdvancedButtonWrapper,\n    PgButton,\n    PgImage\n  },\n  computed: {\n    layoutStyle() {\n      return this.model.layout === \"align-right\"\n        ? \"editorial-cover__container editorial-cover__container--right\"\n        : \"editorial-cover__container editorial-cover__container--left\";\n    },\n    layoutStyleBg() {\n      return this.model.layout === \"align-right\"\n        ? \"editorial-cover__content-bg editorial-cover__content-bg--right\"\n        : \"editorial-cover__content-bg\";\n    },\n    headingClass() {\n      return this.model.headingStyle === \"large\"\n        ? \"editorial__title text--heading-l\"\n        : \"editorial__title text--heading-m\";\n    },\n    headingTag() {\n      return this.model.headingStyle === \"large\" ? \"h2\" : \"h3\";\n    },\n    subheadingTag() {\n      return this.model.headingStyle === \"large\" ? \"h3\" : \"h4\";\n    }\n  },\n  methods: {\n    setLinkType(linkToDocument, linkToPage) {\n      if (linkToDocument) {\n        return this.$options.filters.mgnlMedia(linkToDocument, \"url\");\n      } else {\n        return this.$options.filters.mgnlLink(linkToPage, \"url\");\n      }\n    },\n    analyticsData(el) {\n      return {\n        evCategory: 'call_to_action',\n        evAction: el.document?.url || el.link?.url || el.trackingLabel,\n        evLabel: `${el.campaignId || 'No Campaign'} | ${this.common.actpageFullUrl}`\n      }\n    }\n  }\n};\n</script>","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorialCoverImage.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorialCoverImage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditorialCoverImage.vue?vue&type=template&id=2068b482&\"\nimport script from \"./EditorialCoverImage.vue?vue&type=script&lang=js&\"\nexport * from \"./EditorialCoverImage.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}