{"version":3,"sources":["webpack:///./src/views/CostessaPhotoTour.vue?9c7d","webpack:///./src/components/CostessaPhotoSlideShow.vue?1208","webpack:///./src/components/CostessaPhotoSlideShow.vue","webpack:///./src/components/CostessaPhotoSlideShow.vue?58b4","webpack:///./src/components/CostessaPhotoSlideShow.vue?fedd","webpack:///./src/views/CostessaPhotoTour.vue","webpack:///./src/views/CostessaPhotoTour.vue?789d","webpack:///./src/views/CostessaPhotoTour.vue?e64e"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","closeRouteTo","_l","image","index","key","imageId","class","galleryImageListCount","getImageId","imageKey","getCostessaPhotoSlideShowRouteTo","description","_e","staticRenderFns","ref","swiperOptions","scopedSlots","_u","fn","proxy","costessaImage","previousCostessaImageRouteTo","nextCostessaImageRouteTo","name","props","type","Number","required","costessaImageIndex","imageIndex","findIndex","value","undefined","length","swiper","observer","observeParents","navigation","nextEl","prevEl","galleryImageList","component","components","CostessaPhotoSlideShow","default","scrollToImageKey","photoEl","document","getElementById","scrollIntoView","handler","evt","target","includes","nodeName","router","push"],"mappings":"gIAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,UAAU,CAACE,YAAY,yDAAyD,CAACF,EAAG,WAAW,CAACE,YAAY,2HAA2HC,MAAM,CAAC,GAAKP,EAAIQ,gBAAgBJ,EAAG,UAAU,CAACE,YAAY,mCAAmC,CAACF,EAAG,UAAU,CAACE,YAAY,sDAAsD,CAACF,EAAG,UAAU,CAACE,YAAY,OAAO,CAACF,EAAG,UAAU,CAACE,YAAY,6BAA6BC,MAAM,CAAC,IAAM,WAAW,CAACH,EAAG,UAAU,CAACA,EAAG,WAAW,CAACE,YAAY,mBAAmBC,MAAM,CAAC,GAAKP,EAAIQ,eAAe,CAACJ,EAAG,WAAW,CAACE,YAAY,WAAW,CAACF,EAAG,OAAO,CAACG,MAAM,CAAC,K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229.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('BaseBox',{staticClass:\"relative flex justify-center h-full lg:py-12 xl:py-20\"},[_c('BaseLink',{staticClass:\"\\n bg-gray-900 bg-opacity-50\\n absolute\\n inset-0\\n w-full\\n h-full\\n cursor-default\\n \",attrs:{\"to\":_vm.closeRouteTo}}),_c('BaseBox',{staticClass:\"relative max-w-screen-lg w-full\"},[_c('BaseBox',{staticClass:\"bg-white flex flex-col h-full lg:shadow lg:rounded\"},[_c('BaseBox',{staticClass:\"p-6\"},[_c('BaseBox',{staticClass:\"flex justify-end space-x-6\",attrs:{\"tag\":\"header\"}},[_c('BaseBox',[_c('BaseLink',{staticClass:\"hover:opacity-75\",attrs:{\"to\":_vm.closeRouteTo}},[_c('BaseText',{staticClass:\"sr-only\"},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"close\"}})],1),_c('BaseIcon',{attrs:{\"name\":\"close-small\",\"source\":\"custom\"}})],1)],1)],1)],1),_c('BaseBox',{staticClass:\"flex-1 overflow-auto px-6 pb-6\"},[_c('BaseBox',{staticClass:\"\\n grid grid-cols-2\\n gap-6\\n rounded-lg\\n overflow-hidden\\n transform-gpu\\n \",attrs:{\"width-ratio\":[\n 375,\n 'xs:639',\n 'sm:767',\n 'md:1023',\n 'lg:1279',\n 'xl:1535',\n '2xl:2047',\n '3xl:2048' ]}},_vm._l((_vm.galleryImageList),function(image,index){return _c('BaseLink',{key:image.imageId,class:[\n 'relative bg-gray-200 aspect-w-16 aspect-h-9 filter transition-all hover:brightness-75',\n index % 3 ? '' : 'col-span-full',\n index % 3 === 1 && index === _vm.galleryImageListCount - 1\n ? 'col-span-full'\n : '' ],attrs:{\"id\":_vm.getImageId(image.imageKey),\"to\":_vm.getCostessaPhotoSlideShowRouteTo(image)}},[_c('BaseBox',{attrs:{\"width-ratio\":[index % 3 ? '6/12' : '12/12']}},[_c('BaseImage',{staticClass:\"absolute w-full h-full object-cover\",attrs:{\"src\":((image.path) + \"/\" + (image.name)),\"alt\":image.description || '',\"loading\":\"lazy\",\"decoding\":\"async\"}})],1)],1)}),1)],1),(_vm.imageKey)?_c('Portal',{attrs:{\"to\":\"route-secondary-modal-container\"}},[_c('CostessaPhotoSlideShow',{attrs:{\"image-key\":_vm.imageKey}})],1):_vm._e()],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('BaseBox',{staticClass:\"relative flex justify-center h-full lg:py-12 xl:py-20\"},[_c('BaseBox',{staticClass:\"bg-gray-900 absolute inset-0 w-full h-full\"}),_c('BaseBox',{staticClass:\"\\n relative\\n max-w-screen-lg\\n xl:max-w-screen-xl\\n 2xl:max-w-screen-2xl\\n 3xl:max-w-screen-3xl\\n w-full\\n h-full\\n \"},[_c('BaseBox',{staticClass:\"flex flex-col h-full\"},[_c('BaseBox',{staticClass:\"p-6\"},[_c('BaseBox',{staticClass:\"flex justify-end space-x-6\",attrs:{\"tag\":\"header\"}},[_c('BaseBox',[_c('BaseLink',{staticClass:\"text-white hover:opacity-75\",attrs:{\"to\":_vm.closeRouteTo}},[_c('BaseText',{staticClass:\"sr-only\"},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"close\"}})],1),_c('BaseIcon',{attrs:{\"name\":\"close-small\",\"source\":\"custom\"}})],1)],1)],1)],1),_c('BaseBox',{staticClass:\"flex-1 px-6 pb-6\"},[_c('BaseBox',{staticClass:\"xl:hidden aspect-w-16 aspect-h-9\"},[_c('Swiper',{ref:\"swiper\",attrs:{\"options\":_vm.swiperOptions},scopedSlots:_vm._u([{key:\"default\",fn:function(){return _vm._l((_vm.galleryImageList),function(image){return _c('SwiperSlide',{key:image.imageId},[_c('BaseBox',{staticClass:\"relative h-full\",attrs:{\"width-ratio\":[\n 375,\n 'xs:639',\n 'sm:767',\n 'md:1023',\n 'lg:1279',\n 'xl:1535',\n '2xl:2047',\n '3xl:2048' ]}},[_c('BaseImage',{staticClass:\"absolute w-full h-full object-contain\",attrs:{\"src\":((image.path) + \"/\" + (image.name)),\"alt\":image.description || '',\"loading\":\"lazy\",\"decoding\":\"async\"}})],1)],1)})},proxy:true},{key:\"button-prev\",fn:function(){return [_c('BaseBox',{staticClass:\"swiper-button-prev swiper-button-white\"})]},proxy:true},{key:\"button-next\",fn:function(){return [_c('BaseBox',{staticClass:\"swiper-button-next swiper-button-white\"})]},proxy:true}])})],1),_c('BaseBox',{staticClass:\"hidden xl:block relative h-full\",attrs:{\"width-ratio\":[\n 375,\n 'xs:639',\n 'sm:767',\n 'md:1023',\n 'lg:1279',\n 'xl:1535',\n '2xl:2047',\n '3xl:2048' ]}},[_c('Transition',{attrs:{\"enter-active-class\":\"duration-200 ease-out\",\"enter-class\":\"opacity-0\",\"enter-to-class\":\"opacity-100\",\"leave-active-class\":\"duration-100 ease-in\",\"leave-class\":\"opacity-100\",\"leave-to-class\":\"opacity-0\"}},[_c('BaseImage',{key:_vm.imageKey,staticClass:\"absolute w-full h-full object-contain\",attrs:{\"src\":((_vm.costessaImage.path) + \"/\" + (_vm.costessaImage.name)),\"alt\":_vm.costessaImage.description || '',\"loading\":\"lazy\",\"decoding\":\"async\"}})],1),_c('BaseBox',{staticClass:\"\\n absolute\\n inset-0\\n w-full\\n h-full\\n pointer-events-none\\n flex\\n justify-between\\n items-center\\n px-4\\n \"},[_c('BaseBox',{staticClass:\"pointer-events-auto\"},[(_vm.previousCostessaImageRouteTo)?_c('BaseLink',{staticClass:\"text-white text-4xl cursor-pointer\",attrs:{\"to\":_vm.previousCostessaImageRouteTo}},[_c('BaseText',{staticClass:\"sr-only\"},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"previous\"}})],1),_c('BaseIcon',{attrs:{\"name\":\"left-c\",\"source\":\"custom\"}})],1):_vm._e()],1),_c('BaseBox',{staticClass:\"pointer-events-auto\"},[(_vm.nextCostessaImageRouteTo)?_c('BaseLink',{staticClass:\"text-white text-4xl cursor-pointer\",attrs:{\"to\":_vm.nextCostessaImageRouteTo}},[_c('BaseText',{staticClass:\"sr-only\"},[_c('i18n',{attrs:{\"tag\":false,\"path\":\"next\"}})],1),_c('BaseIcon',{attrs:{\"name\":\"right-c\",\"source\":\"custom\"}})],1):_vm._e()],1)],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport {\n galleryImageList,\n getCostessaRouteTo,\n getCostessaPhotoSlideShowRouteTo,\n} from '@/utils/costessa'\nimport { Swiper } from 'vue-awesome-swiper'\nimport { computed, defineComponent, ref } from '@vue/composition-api'\n\nexport default defineComponent({\n name: 'CostessaPhotoSlideShow',\n\n props: {\n imageKey: {\n type: Number,\n required: true,\n },\n },\n\n setup(props) {\n const costessaImageIndex = computed(() => {\n const imageIndex = galleryImageList.findIndex(\n (image) => image.imageKey === props.imageKey\n )\n return imageIndex === -1 ? 0 : imageIndex\n })\n\n const costessaImage = computed(\n () => galleryImageList[costessaImageIndex.value]\n )\n\n const previousCostessaImageRouteTo = computed(() =>\n costessaImageIndex.value === 0\n ? undefined\n : getCostessaPhotoSlideShowRouteTo(\n galleryImageList[costessaImageIndex.value - 1]\n )\n )\n\n const nextCostessaImageRouteTo = computed(() =>\n costessaImageIndex.value === galleryImageList.length - 1\n ? undefined\n : getCostessaPhotoSlideShowRouteTo(\n galleryImageList[costessaImageIndex.value + 1]\n )\n )\n\n const closeRouteTo = computed(() => getCostessaRouteTo())\n\n const swiper = ref<InstanceType<typeof Swiper> | null>(null)\n\n const swiperOptions = computed(() => ({\n observer: true,\n observeParents: true,\n navigation: {\n nextEl: '.swiper-button-next',\n prevEl: '.swiper-button-prev',\n },\n }))\n\n return {\n costessaImage,\n previousCostessaImageRouteTo,\n nextCostessaImageRouteTo,\n galleryImageList,\n closeRouteTo,\n swiper,\n swiperOptions,\n }\n },\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CostessaPhotoSlideShow.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CostessaPhotoSlideShow.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CostessaPhotoSlideShow.vue?vue&type=template&id=1715289e&\"\nimport script from \"./CostessaPhotoSlideShow.vue?vue&type=script&lang=ts&\"\nexport * from \"./CostessaPhotoSlideShow.vue?vue&type=script&lang=ts&\"\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport CostessaPhotoSlideShow from '@/components/CostessaPhotoSlideShow.vue'\nimport { useWindowKeyboardListener } from '@/composition/windowKeyboardListener'\nimport {\n galleryImageList,\n getCostessaRouteTo,\n getCostessaPhotoSlideShowRouteTo,\n} from '@/utils/costessa'\nimport router from '@/router'\nimport {\n computed,\n defineComponent,\n onMounted,\n PropType,\n} from '@vue/composition-api'\n\nexport default defineComponent({\n name: 'CostessaPhotoTour',\n\n components: {\n CostessaPhotoSlideShow,\n },\n\n props: {\n imageKey: {\n type: Number as PropType<number | null>,\n default: null,\n },\n\n scrollToImageKey: {\n type: Number as PropType<number | null>,\n default: null,\n },\n },\n\n setup(props) {\n const galleryImageListCount = computed(() => galleryImageList.length)\n\n onMounted(() => {\n if (props.scrollToImageKey) {\n const photoEl = document.getElementById(\n getImageId(props.scrollToImageKey)\n )\n\n if (photoEl) {\n photoEl.scrollIntoView()\n }\n }\n })\n\n function getImageId(imageKey: number) {\n return `photo-${imageKey}`\n }\n\n const closeRouteTo = computed(() => getCostessaRouteTo())\n\n useWindowKeyboardListener({\n key: 'Escape',\n handler: (evt) => {\n if (\n evt &&\n evt.target &&\n ['INPUT', 'TEXTAREA'].includes((evt.target as HTMLElement).nodeName)\n )\n return\n\n router.push(closeRouteTo.value)\n },\n })\n\n return {\n getCostessaPhotoSlideShowRouteTo,\n closeRouteTo,\n galleryImageList,\n galleryImageListCount,\n getImageId,\n }\n },\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CostessaPhotoTour.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CostessaPhotoTour.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CostessaPhotoTour.vue?vue&type=template&id=ae1a84ba&\"\nimport script from \"./CostessaPhotoTour.vue?vue&type=script&lang=ts&\"\nexport * from \"./CostessaPhotoTour.vue?vue&type=script&lang=ts&\"\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":""}