{"version":3,"sources":["webpack:///./components/global/ResponsivePicture.vue","webpack:///./components/global/ResponsivePicture.vue?4629","webpack:///./components/global/ResponsivePicture.vue?80e6","webpack:///./mixins/photoSwipeImgPaths.js","webpack:///./components/component/post/ImageSection.vue","webpack:///./components/component/post/ImageSection.vue?a350","webpack:///./components/component/post/ImageSection.vue?b0e7"],"names":["name","props","isImgFullscreen","type","Boolean","required","default","imgID","String","imgClass","baseHeightOverride","alt","caption","smallURL","mediumURL","largeURL","xlargeURL","methods","getSizes","this","getSrcSet","webp","toWebp","string","replace","component","_vm","_c","_self","staticClass","attrs","_v","class","_s","_e","computed","alternativeText","imageAttributes","responsiveSize","screenWidth","window","innerWidth","fullScreen","_i","_sizes","width","length","size","formats","imageURL","getImageOfSize","widthAttribute","getImageOfSizeAttribute","heightAttribute","webpURL","getAttribute","object","path","_step","value","_iterator","_createForOfIteratorHelper","split","s","n","done","segment","err","e","f","concat","attribute","mixins","photoSwipeImgPathsMixin","zone","installComponents","ResponsivePicture"],"mappings":"iHAAA,ICAwQ,EDCzP,CACbA,KAAM,UACNC,MAAO,CACLC,gBAAiB,CACfC,KAAMC,QACNC,UAAU,EACVC,SAAS,GAEXC,MAAO,CACLJ,KAAMK,OACNH,UAAU,EACVC,QAAS,IAEXG,SAAU,CACRN,KAAMK,OACNH,UAAU,EACVC,QAAS,IAEXI,mBAAoB,CAClBP,KAAMC,QACNC,UAAU,EACVC,SAAS,GAEXK,IAAK,CACHR,KAAMK,OACNF,QAAS,SAEXM,QAAS,CACPT,KAAMK,OACNH,UAAU,GAEZQ,SAAU,CACRV,KAAMK,OACNH,UAAU,GAEZS,UAAW,CACTX,KAAMK,OACNH,UAAU,EACVC,QAAS,IAEXS,SAAU,CACRZ,KAAMK,OACNH,UAAU,EACVC,QAAS,IAEXU,UAAW,CACTb,KAAMK,OACNH,UAAU,EACVC,QAAS,KAGbW,QAAS,CACPC,SAAQ,WAGN,OAAIC,KAAKjB,gBACA,sFAKA,sFAKX,EACAkB,U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B,EAAIW,gBAAiB,SAAS,UAAYX,EAAIwB,eAAexB,EAAIW,gBAAiB,UAAU,SAAWX,EAAIwB,eAAexB,EAAIW,gBAAiB,SAAS,UAAYX,EAAIwB,eAAexB,EAAIW,gBAAiB,cAAc,GAAGX,EAAIQ,MACv2B,GACsB,IESpB,EACA,KACA,KACA,MAIa,UAAAT,UAAiB,QAGhCkD,kBAAkBlD,UAAW,CAACmD,kBAAmB,EAAQ,KAAqFtE,S","file":"178aee4.js","sourcesContent":["\nexport default {\n name: \"Picture\",\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 methods: {\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=a3f81948&\"\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","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 widthAttribute() {\n return this.getImageOfSizeAttribute(this.imageAttributes, this.responsiveSize.fullScreen, 'width');\n },\n heightAttribute() {\n return this.getImageOfSizeAttribute(this.imageAttributes, this.responsiveSize.fullScreen, 'height');\n },\n webpURL() {\n return this.toWebp(this.imageURL);\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 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","\nimport photoSwipeImgPathsMixin from '@/mixins/photoSwipeImgPaths';\n\nexport default {\n name: \"ImageSection\",\n props: ['zone', 'scrollY'],\n mixins: [photoSwipeImgPathsMixin],\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!./ImageSection.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!./ImageSection.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ImageSection.vue?vue&type=template&id=03e9ac3c&\"\nimport script from \"./ImageSection.vue?vue&type=script&lang=js&\"\nexport * from \"./ImageSection.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/src1513447352/src/lusio/components/global/ResponsivePicture.vue').default})\n"],"sourceRoot":""}