{"version":3,"sources":["webpack:///./mixins/imageMeta.js","webpack:///./components/global/ResponsivePicture.vue","webpack:///./components/global/ResponsivePicture.vue?4629","webpack:///./components/global/ResponsivePicture.vue?80e6","webpack:///./components/component/post/ImageTextSection.vue","webpack:///./components/component/post/ImageTextSection.vue?c54e","webpack:///./components/component/post/ImageTextSection.vue?5072"],"names":["computed","alternativeText","this","imageAttributes","caption","methods","getAttribute","object","path","_step","value","_iterator","_createForOfIteratorHelper","split","s","n","done","segment","err","e","f","getImageOfSize","size","ext","url","concat","name","props","isImgFullscreen","type","Boolean","required","default","imgID","String","imgClass","baseHeightOverride","alt","smallURL","mediumURL","largeURL","xlargeURL","mounted","setupImageLoadedEvent","_this","imgElement","$el","querySelector","$imagesLoaded","$emit","getSizes","getSrcSet","webp","toWebp","string","replace","component","_vm","_c","_self","staticClass","attrs","_v","class","_s","_e","mixins","ImageMeta","zone","title","isColumn","imageFirst","domProps","content","installComponents","ResponsivePicture"],"mappings":"krCAAe,KACbA,SAAU,CACRC,gBAAe,WACb,OAAQC,KAAKC,iBAAmBD,KAAKC,gBAAgBF,gBAAmBC,KAAKC,gBAAgBF,gBAAkB,EACjH,EACAG,QAAO,WACL,OAAQF,KAAKC,iBAAmBD,KAAKC,gBAAgBC,QAAWF,KAAKC,gBAAgBC,QAAU,EACjG,GA8BFC,QAAS,CACPC,aAAY,SAACC,OAAQC,MACnB,IAE4BC,EADxBC,EAAQH,OAAOI,EAAAC,EADFJ,KAAKK,MAAM,MAEA,IAA5B,IAAAF,EAAAG,MAAAL,EAAAE,EAAAI,KAAAC,MAA8B,KAArBC,EAAOR,EAAAC,MACd,IAAKA,EAAO,OAAO,KACnBA,EAAQA,EAAMO,EAChB,CAAC,OAAAC,GAAAP,EAAAQ,EAAAD,EAAA,SAAAP,EAAAS,GAAA,CACD,OAAOV,CACT,EACAW,eAAc,SAACd,OAAQe,GACrB,MAAmB,SAAff,OAAOgB,KAAiC,SAAfhB,OAAOgB,IAC3BhB,OAAOiB,I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H,EAAIW,KAAKC,MAAOX,EAAG,KAAK,CAACE,YAAY,qCAAqC,CAACH,EAAIK,GAAGL,EAAIO,GAAGP,EAAIW,KAAKC,UAAUZ,EAAIQ,KAAKR,EAAIK,GAAG,KAAKJ,EAAG,MAAM,CAACE,YAAY,4DAA4DG,MAAM,CAACN,EAAIW,KAAKE,SAAWb,EAAIW,KAAKG,WAAa,WAAa,mBAAqBd,EAAIW,KAAKG,WAAa,cAAgB,wBAAwB,CAACb,EAAG,MAAM,CAACE,YAAY,gBAAgBG,MAAM,CAAC,CAAE,OAAQN,EAAIW,KAAKE,UAAYb,EAAIW,KAAKG,cAAc,CAACb,EAAG,MAAM,CAACE,YAAY,gCAAgC,CAA0B,OAAxBH,EAAItD,gBAA0BuD,EAAG,oBAAoB,CAACG,MAAM,CAAC,SAAW,gBAAgB,iBAAkB,EAAK,IAAMJ,EAAIxD,gBAAgB,QAAUwD,EAAIrD,QAAQ,SAAWqD,EAAIpC,eAAeoC,EAAItD,gBAAiB,SAAS,UAAYsD,EAAIpC,eAAeoC,EAAItD,gBAAiB,UAAU,SAAWsD,EAAIpC,eAAeoC,EAAItD,gBAAiB,SAAS,UAAYsD,EAAIpC,eAAeoC,EAAItD,gBAAiB,aAAasD,EAAIQ,MAAM,KAAKR,EAAIK,GAAG,KAAKJ,EAAG,MAAM,CAACE,YAAY,mBAAmBG,MAAM,CAAC,CAAE,OAAQN,EAAIW,KAAKE,WAAab,EAAIW,KAAKG,cAAc,CAACb,EAAG,MAAM,CAACE,YAAY,mCAAmCY,SAAS,CAAC,UAAYf,EAAIO,GAAGP,EAAIW,KAAKK,iBACnwC,GACsB,IESpB,EACA,KACA,KACA,MAIa,UAAAjB,UAAiB,QAGhCkB,kBAAkBlB,UAAW,CAACmB,kBAAmB,EAAQ,KAAgG3C,S","file":"5c196b8.js","sourcesContent":["export default {\n computed: {\n alternativeText() {\n return (this.imageAttributes && this.imageAttributes.alternativeText) ? this.imageAttributes.alternativeText : '';\n },\n caption() {\n return (this.imageAttributes && this.imageAttributes.caption) ? this.imageAttributes.caption : '';\n },\n // responsiveSize() {\n // if (!process.client) return {default: 'small', fullScreen: 'small'}; //fallback SSR\n //\n // const screenWidth = window.innerWidth;\n // const sizes = [\n // {name: 'xlarge', width: 1200},\n // {name: 'large', width: 900},\n // {name: 'medium', width: 200},\n // {name: 'small', width: 0},\n // ];\n //\n // let fullScreen = \"xlarge\";\n //\n // for (let size of sizes) {\n // if (this.imageAttributes && this.imageAttributes.formats && this.imageAttributes.formats[size.name]) {\n // if (screenWidth >= size.width) {\n // return {default: size.name, fullScreen: this.imageAttributes.formats[fullScreen] ? fullScreen : size.name}\n // }\n // }\n // // Keep the last available size as fullscreen\n // fullScreen = size.name;\n // }\n //\n // return {default: 'small', fullScreen: 'small'}; // fallback\n // },\n // imageURL() {\n // return this.getImageOfSize(this.imageAttributes, this.responsiveSize.fullScreen);\n // },\n },\n methods: {\n getAttribute(object, path) {\n const segments = path.split('.');\n let value = object;\n for (let segment of segments) {\n if (!value) return null;\n value = value[segment];\n }\n return value;\n },\n getImageOfSize(object, size) {\n if (object.ext === \".gif\" || object.ext === \".svg\") {\n return object.url; // Return the original URL if the file is a GIF\n }\n\n return this.getAttribute(object, `formats.${size}.url`) || '';\n },\n // getImageOfSizeAttribute(object, size, attribute) {\n // return this.getAttribute(object, `formats.${size}.${attribute}`) || '';\n // },\n // toWebp(string) {\n // return string ? string.replace(/\\.(jpg|png)/g, '.webp') : '';\n // }\n },\n};\n","\nexport default {\n name: \"ResponsivePicture\",\n props: {\n isImgFullscreen: {\n type: Boolean,\n required: false,\n default: false\n },\n imgID: {\n type: String,\n required: false,\n default: ''\n },\n imgClass: {\n type: String,\n required: false,\n default: ''\n },\n baseHeightOverride: {\n type: Boolean,\n required: false,\n default: false\n },\n alt: {\n type: String,\n default: \"Image\"\n },\n caption: {\n type: String,\n required: false,\n },\n smallURL: {\n type: String,\n required: true,\n },\n mediumURL: {\n type: String,\n required: false,\n default: ''\n },\n largeURL: {\n type: String,\n required: false,\n default: ''\n },\n xlargeURL: {\n type: String,\n required: false,\n default: ''\n },\n },\n mounted() {\n this.setupImageLoadedEvent();\n },\n methods: {\n setupImageLoadedEvent() {\n const imgElement = this.$el.querySelector('img');\n this.$imagesLoaded(imgElement, () => {\n this.$emit('image-loaded');\n });\n },\n getSizes() {\n // sizes=\"(max-width: 640px) 250px, 600px\" if the screen size is smaller than 640px width -> serves 250px image;\n // if its larger -> serves the 600px\n if (this.isImgFullscreen) {\n return \"(max-width: 320px) 250px,\" +\n \"(max-width: 600px) 600px,\" +\n \"(max-width: 1200px) 1000px,\" +\n \"1920px\";\n } else {\n return \"(max-width: 640px) 250px,\" +\n \"(max-width: 1240px) 600px,\" +\n \"(max-width: 1920px) 1200px,\" +\n \"1920px\";\n }\n },\n getSrcSet(webp) {\n if (webp) {\n return this.toWebp(this.smallURL) + ' 250w, ' +\n (this.toWebp(this.mediumURL) || this.toWebp(this.smallURL)) + ' 600w, ' +\n (this.toWebp(this.largeURL) || this.toWebp(this.mediumURL) || this.toWebp(this.smallURL)) + ' 1200w, ' +\n (this.toWebp(this.xlargeURL) || this.toWebp(this.largeURL) || this.toWebp(this.mediumURL) || this.toWebp(this.smallURL)) + ' 1920w'\n } else {\n return this.smallURL + ' 250w, ' +\n (this.mediumURL || this.smallURL) + ' 600w, ' +\n (this.largeURL || this.mediumURL || this.smallURL) + ' 1200w, ' +\n (this.xlargeURL || this.largeURL || this.mediumURL || this.smallURL) + ' 1920w'\n }\n },\n toWebp(string) {\n return string.replace(/\\.(jpg|png)/g, '.webp')\n }\n }\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResponsivePicture.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ResponsivePicture.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResponsivePicture.vue?vue&type=template&id=6ad2a20a&\"\nimport script from \"./ResponsivePicture.vue?vue&type=script&lang=js&\"\nexport * from \"./ResponsivePicture.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","\nimport ImageMeta from \"@/mixins/imageMeta\";\n\nexport default {\n name: \"ImageTextSection\",\n props: ['zone'],\n mixins: [ImageMeta],\n computed: {\n imageAttributes() {\n return this.getAttribute(this.zone, 'image.data.attributes');\n }\n },\n}\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageTextSection.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--2-0!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageTextSection.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ImageTextSection.vue?vue&type=template&id=0570ecc8&\"\nimport script from \"./ImageTextSection.vue?vue&type=script&lang=js&\"\nexport * from \"./ImageTextSection.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\n\n/* nuxt-component-imports */\ninstallComponents(component, {ResponsivePicture: require('/codebuild/output/src2929308527/src/onvocado-landing/components/global/ResponsivePicture.vue').default})\n"],"sourceRoot":""}