@story-telling-reporter/react-embed-code-generator
Version:
## Installation `yarn install`
1 lines • 25.4 kB
JavaScript
"use strict";(self.webpackChunk_story_telling_reporter_react_embed_code_generator=self.webpackChunk_story_telling_reporter_react_embed_code_generator||[]).push([[399],{1526:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.horizRect=function(t){var e=t.photoCount,a=t.hasPadding,i=t.isVertical,c=t.variant,r=t.grid,o=t.index;return 1===e?a?"height: calc(100vw / 3 * 2 - 100px); aspect-ratio: 3 / 2":"width: 100%; height: 100%":2===e?i?"height: calc((100vw / 3 * 2 - 150px) / 2); aspect-ratio: 3/2;":"width: calc(((100vw / 3 * 2) - 100px) / 3 * 2); aspect-ratio: 2/3;":3===e&&"line"===c?i?"height: calc(((100vw / 3 * 2) - 120px) / 3); aspect-ratio: 3/2;":"width: calc((100vw - 120px) / 3); aspect-ratio: 2/3;":"leftBig"===r?0==o?"height: calc(100vw / 3 * 2 - 100px); aspect-ratio: 2/3;":"height: calc((100vw / 3 * 2 - 130px) / 2 ); aspect-ratio: 3/2;":"topBig"===r?0==o?"width: calc((100vw / 3 * 2 - 100px) / 3 * 2 + 30px); aspect-ratio: 3/2;":"height: calc((100vw / 3 * 2 - 100px) / 2); aspect-ratio: 2/3;":"uniform"===r?i?"height: calc((100vw / 3 * 2 - 90px) / 2); aspect-ratio: 2/3;":"height: calc((100vw / 3 * 2 - 90px) / 2); aspect-ratio: 3/2;":"mixed"===r&&null!=o?o%3==0?"height: calc((100vw / 3 * 2 - 150px) / 2); aspect-ratio: 3/2;":"height: calc((100vw / 3 * 2 - 150px) / 2); aspect-ratio: 2/3;":"width:100%; height:100%;"},e.square=function(t){var e=t.photoCount,a=t.isVertical,i=t.variant,c=t.grid,r=t.index;return 1==e?"width: 100%; height: 100%;":2===e?a?"height: calc((100vh - 150px) / 2); aspect-ratio: 3/2;":"width: calc((100vh - 150px) / 2); aspect-ratio: 2/3;":3===e&&"line"===i?a?"height: calc((100vh - 120px) / 3); aspect-ratio:3/2;":"width: calc((100vh - 120px) / 3); aspect-ratio:2/3;":"leftBig"===c?0==r?"height: calc((100vh - 130px) / 3 * 2 + 30px); aspect-ratio: 2/3;":"width: calc((100vh - 130px) / 2); aspect-ratio: 3/2;":"topBig"===c?0==r?"width: calc((100vh - 100px) / 3 * 2 + 30px); aspect-ratio: 3/2;":"height: calc((100vh - 100px) / 2); aspect-ratio: 2/3;":"uniform"===c?a?"height: calc((100vh - 90px) / 2); aspect-ratio: 2/3;":"width: calc((100vh - 90px) / 2); aspect-ratio: 3/2;":"mixed"===c&&null!=r?r%3==0?"height: calc((100vh - 150px) / 2); aspect-ratio: 3/2;":"height: calc((100vh - 150px) / 2); aspect-ratio: 2/3;":"width:100%; height:100%;"},e.vertRect=function(t){var e=t.photoCount,a=t.hasPadding,i=t.isVertical,c=t.variant,r=t.grid,o=t.index;return 1===e?a?"width: calc(100vh / 3 * 2 - 100px); aspect-ratio: 2 / 3":"width: 100%; height: 100%":2===e?i?"height: calc((100vh - 150px) / 2); aspect-ratio: 3/2;":"width: calc(((100vh / 3 * 2) - 60px) / 2); aspect-ratio: 2/3;":3===e&&"line"===c?i?"height: calc((100vh - 120px) / 3); aspect-ratio: 3/2;":"width: calc(((100vh / 3 * 2) - 120px) / 3); aspect-ratio: 2/3;":"leftBig"===r?0==o?"height: calc((100vh / 3 * 2 - 90px) / 3 * 2 + 30px ); aspect-ratio: 2/3;":"width: calc((100vh / 3 * 2 - 90px) / 2 ); aspect-ratio: 3/2;":"topBig"===r?0==o?"width: calc(100vh / 3 * 2 - 60px) ; aspect-ratio: 3/2;":"width: calc((100vh / 3 * 2 - 90px) / 2); aspect-ratio: 2/3;":"uniform"===r?i?"width: calc((100vh / 3 * 2 - 90px) / 2); aspect-ratio: 2/3;":"width: calc((100vh / 3 * 2 - 90px) / 2); aspect-ratio: 3/2;":"mixed"===r&&null!=o?o%3==0?"width: calc(100vh / 3 * 1.3); aspect-ratio: 3/2;":"height: calc(100vh / 9 * 2.6); aspect-ratio: 2/3;":"width:100%; height:100%;"}},2055:(t,e,a)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PuzzlePhotoInfra=function(t){var e=t.id,a=t.photoUrls,i=t.shape,o=t.hasPadding,n=t.focusPositions,p=t.fitModes,h=t.variant,l=t.grid,s=t.isVertical;return(0,r.jsx)(c.PhotoGallery,{id:e,photoUrls:a,fitModes:p,focusPositions:n,config:{photoCount:a.length,shape:i,hasPadding:o,variant:h,grid:l,isVertical:s}})},(i=a(4041))&&i.__esModule;var i,c=a(4088),r=a(1085)},2654:(t,e,a)=>{var i=["shape"],c=["shape"],r=["shape"],o=["shape"];function n(t,e){if(null==t)return{};var a,i,c=function(t,e){if(null==t)return{};var a={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;a[i]=t[i]}return a}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)a=r[i],-1===e.indexOf(a)&&{}.propertyIsEnumerable.call(t,a)&&(c[a]=t[a])}return c}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.PhotoLayout=void 0;var h=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}return function(t){if(t&&t.__esModule)return t;var a,i,c={__proto__:null,default:t};if(null===t||"object"!=p(t)&&"function"!=typeof t)return c;if(a=e){if(a.has(t))return a.get(t);a.set(t,c)}for(var r in t)"default"!==r&&{}.hasOwnProperty.call(t,r)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,r))&&(i.get||i.set)?a(c,r,i):c[r]=t[r]);return c}(t)}(a(9716)),l=a(3080),s=a(1526),d=a(2676),u=a(8754);e.PhotoLayout=h.default.div.withConfig({displayName:"photo-layout__PhotoLayout",componentId:"sc-s5z163-0"})(["box-sizing:border-box;display:flex;align-items:center;overflow:hidden;"," @media (min-width:1440px){","}@media (min-width:1024px) and (max-width:1439px){","}@media (min-width:768px) and (max-width:1023px){","}@media (max-width:767px){","}"],(function(t){var e=t.variant,a=t.index;if("grid"===e&&null!=a)return(0,h.css)(["grid-area:",";"],["a","b","c","d"][a])}),(function(t){var e=t.shape,a=n(t,i);return"square"===e?(0,h.css)(["",""],(0,l.square)(a)):"horizontalRectangle"===e?(0,h.css)(["",""],(0,l.horizRect)(a)):"verticalRectangle"===e?(0,h.css)(["",""],(0,l.vertRect)(a)):""}),(function(t){var e=t.shape,a=n(t,c);return"square"===e?(0,h.css)(["",""],(0,s.square)(a)):"horizontalRectangle"===e?(0,h.css)(["",""],(0,s.horizRect)(a)):"verticalRectangle"===e?(0,h.css)(["",""],(0,s.vertRect)(a)):""}),(function(t){var e=t.shape,a=n(t,r);return"square"===e?(0,h.css)(["",""],(0,d.square)(a)):"horizontalRectangle"===e?(0,h.css)(["",""],(0,d.horizRect)(a)):"verticalRectangle"===e?(0,h.css)(["",""],(0,d.vertRect)(a)):""}),(function(t){var e=t.shape,a=n(t,o);return"square"===e?(0,h.css)(["",""],(0,u.square)(a)):"horizontalRectangle"===e?(0,h.css)(["",""],(0,u.horizRect)(a)):"verticalRectangle"===e?(0,h.css)(["",""],(0,u.vertRect)(a)):""}))},2676:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.horizRect=function(t){var e=t.photoCount,a=t.hasPadding,i=t.isVertical,c=t.variant,r=t.grid,o=t.index;return 1===e?a?"height: calc(100vw / 3 * 2 - 100px); aspect-ratio: 3/2":"width: 100%; height: 100%":2===e?i?"height: calc((100vw / 3 * 2 - 90px) / 2); aspect-ratio: 3/2;":"height: calc((100vw / 3 * 2) - 90px); aspect-ratio: 2/3;":3===e&&"line"===c?i?"height: calc(((100vw / 3 * 2) - 80px) / 3); aspect-ratio: 3/2;":"width: calc((100vw - 80px) / 3); aspect-ratio: 2/3;":"leftBig"===r?0==o?"height: calc(100vw / 3 * 2 - 30px); aspect-ratio: 2/3;":"height: calc((100vw / 3 * 2 - 60px) / 2); aspect-ratio: 3/2;":"topBig"===r?0==o?"width: calc((100vh - 60px) / 3 * 2 + 20px); aspect-ratio: 3/2;":"height: calc((100vh - 60px) / 2); aspect-ratio: 2/3;":"uniform"===r?i?"height: calc((100vw / 3 * 2 - 60px) / 2) ; aspect-ratio: 2/3;":"height: calc((100vw / 3 * 2 - 60px) / 2); aspect-ratio: 3/2;":"mixed"===r&&null!=o?o%3==0?"height: calc((100vw / 3 * 2 - 120px) / 2); aspect-ratio: 3/2;":"height: calc((100vw / 3 * 2 - 120px) / 2); aspect-ratio: 2/3;":"width:100%; height:100%;"},e.square=function(t){var e=t.photoCount,a=t.isVertical,i=t.variant,c=t.grid,r=t.index;return 1==e?"width: 100%; height: 100%;":2===e?a?"height: calc((100vw - 90px) / 2); aspect-ratio: 3/2;":"width: calc((100vh - 90px) / 2); aspect-ratio: 2/3;":3===e&&"line"===i?a?"height: calc((100vw - 80px) / 3); aspect-ratio:3/2;":"width: calc((100vh - 80px) / 3); aspect-ratio:2/3;":"leftBig"===c?0==r?"height: calc((100vw - 80px) / 3 * 2 + 20px); aspect-ratio: 2/3;":"width: calc((100vw - 80px) / 2); aspect-ratio: 3/2;":"topBig"===c?0==r?"width: calc((100vh - 60px) / 3 * 2 + 20px); aspect-ratio: 3/2;":"height: calc((100vh - 60px) / 2); aspect-ratio: 2/3;":"uniform"===c?a?"height: calc((100vw - 60px) / 2) ; aspect-ratio: 2/3;":"width: calc((100vw - 60px) / 2); aspect-ratio: 3/2;":"mixed"===c&&null!=r?r%3==0?"height: calc((100vw - 120px) / 2); aspect-ratio: 3/2;":"height: calc((100vw - 120px) / 2); aspect-ratio: 2/3;":"width:100%; height:100%;"},e.vertRect=function(t){var e=t.photoCount,a=t.hasPadding,i=t.isVertical,c=t.variant,r=t.grid,o=t.index;return 1===e?a?"width: calc(100vw - 60px); aspect-ratio: 2 / 3":"width: 100%; height: 100%":2===e?i?"width: calc(100vw - 60px); aspect-ratio: 3/2;":"width: calc((100vw - 60px) / 2); aspect-ratio: 2/3;":3===e&&"line"===c?i?"height: calc((100vw / 2 * 3 - 80px) / 3); aspect-ratio: 3/2;":"width: calc((100vw - 80px) / 3); aspect-ratio: 2/3;":"leftBig"===r?0==o?"height: calc((100vw - 60px) / 3 * 2 + 20px); aspect-ratio: 2/3;":"width: calc((100vw - 60px) / 2); aspect-ratio: 3/2;":"topBig"===r?0==o?"width: calc(100vw - 40px) ; aspect-ratio: 3/2;":"width: calc(50vw - 30px); aspect-ratio: 2/3;":"uniform"===r?i?"width: calc((100vw - 60px) / 2); aspect-ratio: 2/3;":"width: calc((100vw - 60px) / 2); aspect-ratio: 3/2;":"mixed"===r&&null!=o?o%3==0?"width: calc(60vw); aspect-ratio: 3/2;":"height: calc(40vw); aspect-ratio: 2/3;":"width:100%; height:100%;"}},3080:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.horizRect=function(t){var e=t.photoCount,a=t.hasPadding,i=t.isVertical,c=t.variant,r=t.grid,o=t.index;return 1===e?a?"height: calc(100vw / 3 * 2 - 100px); aspect-ratio: 3 / 2":"width: 100%; height: 100%":2===e?i?"height: calc((100vw / 3 * 2 - 150px) / 2); aspect-ratio: 3/2;":"width: calc(((100vw / 3 * 2) - 100px) / 3 * 2); aspect-ratio: 2/3;":3===e&&"line"===c?i?"height: calc(((100vw / 3 * 2) - 120px) / 3); aspect-ratio: 3/2;":"width: calc((100vw - 120px) / 3); aspect-ratio: 2/3;":"leftBig"===r?0==o?"height: calc(100vw / 3 * 2 - 100px); aspect-ratio: 2/3;":"height: calc((100vw / 3 * 2 - 130px) / 2); aspect-ratio: 3/2;":"topBig"===r?0==o?"width: calc((100vw / 3 * 2 - 100px) / 3 * 2 + 30px); aspect-ratio: 3/2;":"height: calc((100vw / 3 * 2 - 100px) / 2); aspect-ratio: 2/3;":"uniform"===r?i?"height: calc((100vw / 3 * 2 - 90px) / 2); aspect-ratio: 2/3;":"height: calc((100vw / 3 * 2 - 90px) / 2); aspect-ratio: 3/2;":"mixed"===r&&null!=o?o%3==0?"height: calc((100vw / 3 * 2 - 150px) / 2); aspect-ratio: 3/2;":"height: calc((100vw / 3 * 2 - 150px) / 2); aspect-ratio: 2/3;":"width:100%; height:100%;"},e.square=function(t){var e=t.photoCount,a=t.isVertical,i=t.variant,c=t.grid,r=t.index;return 1==e?"width: 100%; height: 100%;":2===e?a?"height: calc((100vh - 150px) / 2); aspect-ratio: 3/2;":"width: calc((100vh - 150px) / 2); aspect-ratio: 2/3;":3===e&&"line"===i?a?"height: calc((100vh - 120px) / 3); aspect-ratio:3/2;":"width: calc((100vh - 120px) / 3); aspect-ratio:2/3;":"leftBig"===c?0==r?"height: calc((100vh - 130px) / 3 * 2 + 30px); aspect-ratio: 2/3;":"width: calc((100vh - 130px) / 2); aspect-ratio: 3/2;":"topBig"===c?0==r?"width: calc((100vh - 100px) / 3 * 2 + 30px); aspect-ratio: 3/2;":"height: calc((100vh - 100px) / 2); aspect-ratio: 2/3;":"uniform"===c?a?"height: calc((100vh - 90px) / 2); aspect-ratio: 2/3;":"width: calc((100vh - 90px) / 2); aspect-ratio: 3/2;":"mixed"===c&&null!=r?r%3==0?"height: calc((100vh - 150px) / 2); aspect-ratio: 3/2;":"height: calc((100vh - 150px) / 2); aspect-ratio: 2/3;":"width:100%; height:100%;"},e.vertRect=function(t){var e=t.photoCount,a=t.hasPadding,i=t.isVertical,c=t.variant,r=t.grid,o=t.index;return 1===e?a?"width: calc(100vh / 3 * 2 - 100px); aspect-ratio: 2 / 3":"width: 100%; height: 100%":2===e?i?"height: calc((100vh - 150px) / 2); aspect-ratio: 3/2;":"width: calc(((100vh / 3 * 2) - 90px) / 2); aspect-ratio: 2/3;":3===e&&"line"===c?i?"height: calc((100vh - 120px) / 3); aspect-ratio: 3/2;":"width: calc(((100vh / 3 * 2) - 120px) / 3); aspect-ratio: 2/3;":"leftBig"===r?0==o?"height: calc((100vh / 3 * 2 - 90px) / 3 * 2 + 30px); aspect-ratio: 2/3;":"width: calc((100vh / 3 * 2 - 90px) / 2); aspect-ratio: 3/2;":"topBig"===r?0==o?"width: calc(100vh / 3 * 2 - 60px) ; aspect-ratio: 3/2;":"width: calc((100vh / 3 * 2 - 90px) / 2); aspect-ratio: 2/3;":"uniform"===r?i?"width: calc((100vh / 3 * 2 - 90px) / 2); aspect-ratio: 2/3;":"width: calc((100vh / 3 * 2 - 90px) / 2); aspect-ratio: 3/2;":"mixed"===r&&null!=o?o%3==0?"width: calc(100vh / 3 * 1.3); aspect-ratio: 3/2;":"height: calc(100vh / 9 * 2.6); aspect-ratio: 2/3;":"width:100%; height:100%;"}},4088:(t,e,a)=>{function i(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function c(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?i(Object(a),!0).forEach((function(e){r(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function r(t,e,a){return(e=function(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var a=e.call(t,"string");if("object"!=o(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.Img=void 0,e.PhotoGallery=function(t){var e=t.id,a=t.photoUrls,i=t.fitModes,r=t.focusPositions,o=t.config;return(0,n.useEffect)((function(){var t=(0,s.default)("[data-zoomable]",{scrollOffset:30});return function(){t.detach()}}),[a]),(0,u.jsxs)("div",{id:e,children:[(0,u.jsx)(d.ZoomGlobalStyle,{}),(0,u.jsx)(v,{children:(0,u.jsx)(h.PhotoGroup,c(c({},o),{},{children:null==a?void 0:a.map((function(t,e){var a,n;return(0,u.jsx)(l.PhotoLayout,c(c({},o),{},{index:e,children:(0,u.jsx)(w,{src:t,fitMode:null!==(a=null==i?void 0:i[e])&&void 0!==a?a:"width",focusPosition:null!==(n=null==r?void 0:r[e])&&void 0!==n?n:"center","data-zoomable":!0},e)}),e)}))}))})]})};var n=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}return function(t){if(t&&t.__esModule)return t;var a,i,c={__proto__:null,default:t};if(null===t||"object"!=o(t)&&"function"!=typeof t)return c;if(a=e){if(a.has(t))return a.get(t);a.set(t,c)}for(var r in t)"default"!==r&&{}.hasOwnProperty.call(t,r)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,r))&&(i.get||i.set)?a(c,r,i):c[r]=t[r]);return c}(t)}(a(4041)),p=g(a(9716)),h=a(9785),l=a(2654),s=g(a(7380)),d=a(9066),u=a(1085);function g(t){return t&&t.__esModule?t:{default:t}}var v=p.default.div.withConfig({displayName:"photo-gallery__Container",componentId:"sc-1g7kv23-0"})(["display:flex;flex-direction:column;height:100vh;width:100vw;overflow:hidden;box-sizing:border-box;justify-content:start;align-items:center;"]),w=e.Img=p.default.img.withConfig({displayName:"photo-gallery__Img",componentId:"sc-1g7kv23-1"})([""," object-fit:cover;object-position:",";box-sizing:border-box;overflow:hidden;"],(function(t){return"width"===t.fitMode?"\n width: 100%;\n height: auto;\n max-height: 100%;\n ":"\n height: 100%;\n width: auto;\n max-width: 100%;\n "}),(function(t){return t.focusPosition}))},8754:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.horizRect=function(t){var e=t.photoCount,a=t.hasPadding,i=t.isVertical,c=t.variant,r=t.grid,o=t.index;return 1===e?a?"height: calc(100vw / 3 * 2 - 100px); aspect-ratio: 3/2":"width: 100%; height: 100%":2===e?i?"width: calc(100vw - 40px); aspect-ratio: 3/2;":"height: calc((100vw / 3 * 2) - 40px); aspect-ratio: 2/3;":3===e&&"line"===c?i?"width: 60vw; aspect-ratio: 3/2;":"width: 50vw; aspect-ratio: 2/3;":"leftBig"===r?0==o?"width: calc(100vw - 40px); aspect-ratio: 3/4;":"width: calc(100vw - 40px); aspect-ratio: 4/3;":"topBig"===r?0==o?"width: calc(100vw - 40px); aspect-ratio: 3/2;":"width: calc((100vw - 40px) / 3 - 5px); aspect-ratio: 2/3;":"uniform"===r?i?"width: calc((100vw - 30px) / 2) ; aspect-ratio: 2/3;":"height: calc((100vw / 3 * 2 - 30px) / 2); aspect-ratio: 3/2;":"mixed"===r&&null!=o?o%3==0?"width: calc(100vw - 40px); aspect-ratio: 3/2;":"width: calc((100vw - 50px) / 2); aspect-ratio: 2/3;":"width:100%; height:100%;"},e.square=function(t){var e=t.photoCount,a=t.isVertical,i=t.variant,c=t.grid,r=t.index;return 1==e?"width: 100%; height: 100%;":2===e?a?"width:calc(100vw - 40px); aspect-ratio: 3/2;":"width: calc((100vh - 60px) / 2); aspect-ratio: 2/3;":3===e&&"line"===i?a?"height: 60vw; aspect-ratio:3/2;":"width: 50vw; aspect-ratio:2/3;":"leftBig"===c?0==r?"width: calc(100vw - 40px); aspect-ratio: 2/3;":"width: calc(100vw - 40px); aspect-ratio: 3/2;":"topBig"===c?0==r?"width: calc(100vw - 40px); aspect-ratio: 3/2;":"width: calc((100vw - 40px) / 3 - 5px); aspect-ratio: 2/3;":"uniform"===c?a?"width: calc((100vw - 30px) / 2) ; aspect-ratio: 2/3;":"width: calc((100v2 - 30px) / 2); aspect-ratio: 3/2;":"mixed"===c&&null!=r?r%3==0?"width: calc(100vw - 40px); aspect-ratio: 3/2;":"width: calc((100vw - 50px) / 2); aspect-ratio: 2/3;":"width:100%; height:100%;"},e.vertRect=function(t){var e=t.photoCount,a=t.hasPadding,i=t.isVertical,c=t.variant,r=t.grid,o=t.index;return 1===e?a?"width: calc(100vw - 60px); aspect-ratio: 2 / 3":"width: 100%; height: 100%":2===e?i?"width: calc(100vw - 40px); aspect-ratio: 3/2;":"width: calc((100vh - 30px) / 2); aspect-ratio: 2/3;":3===e&&"line"===c?i?"height: calc((100vw / 2 * 3 - 40px) / 3); aspect-ratio: 3/2;":"width: 50vw; aspect-ratio: 2/3;":"leftBig"===r?0==o?"width: calc(100vw - 40px); aspect-ratio: 3/4;":"width: calc(100vw - 40px); aspect-ratio: 4/3;":"topBig"===r?0==o?"width: calc(100vw - 40px); aspect-ratio: 3/2;":"width: calc((100vw - 40px) / 3 - 5px); aspect-ratio: 2/3;":"uniform"===r?i?"width: calc((100vw - 30px) / 2) ; aspect-ratio: 2/3;":"width: calc((100vw - 30px) / 2); aspect-ratio: 3/2;":"mixed"===r&&null!=o?o%3==0?"width: calc(100vw - 40px); aspect-ratio: 3/2;":"width: calc((100vw - 50px) / 2); aspect-ratio: 2/3;":"width:100%; height:100%;"}},9066:(t,e,a)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ZoomGlobalStyle=void 0;var i=a(9716);e.ZoomGlobalStyle=(0,i.createGlobalStyle)(["[id^='puzzle-photo-'] .medium-zoom-overlay,[id^='puzzle-photo-'] .medium-zoom-image--opened{max-width:100% !important;max-height:100% !important;}"])},9712:(t,e,a)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RectangleContainer=void 0;var i,c=(i=a(9716))&&i.__esModule?i:{default:i};e.RectangleContainer=c.default.div.withConfig({displayName:"rectangle-container__RectangleContainer",componentId:"sc-cthpyq-0"})(["box-sizing:border-box;@media (min-width:1440px){","}@media (min-width:1024px) and (max-width:1439px){","}@media (min-width:768px) and (max-width:1023px){","}@media (max-width:767px){","}"],(function(t){var e=t.shape;return"square"===e?"\n width: 100vh;\n height: 100vh;\n aspect-ratio: 1; \n ":"horizontalRectangle"===e?"\n width: 100vw;\n height: auto;\n aspect-ratio: 3 / 2; \n ":"verticalRectangle"===e?"\n width: auto;\n height: 100vh;\n aspect-ratio: 2 / 3; \n ":void 0}),(function(t){var e=t.shape;return"square"===e?"\n width: 100vh;\n height: 100vh;\n aspect-ratio: 1; \n ":"horizontalRectangle"===e?"\n width: 100vw;\n height: auto;\n aspect-ratio: 3 / 2; \n ":"verticalRectangle"===e?"\n width: auto;\n height: 100vh;\n aspect-ratio: 2 / 3; \n ":void 0}),(function(t){var e=t.shape;return"square"===e?"\n width: 100vw;\n height: 100vw;\n aspect-ratio: 1; \n ":"horizontalRectangle"===e?"\n width: 100vw;\n height: auto;\n // max-height: 100vh;\n aspect-ratio: 3 / 2; \n ":"verticalRectangle"===e?"\n width: 100vw;\n height: auto;\n aspect-ratio: 2 / 3; \n ":void 0}),(function(t){var e=t.shape,a=t.photoCount,i=t.isVertical,c=t.variant,r=t.grid;return 1===a||2===a&&!i||3===a&&"line"===c&&i&&"verticalRectangle"===e||4===a&&"uniform"===r&&!i?"\n width: 100vw;\n height: auto;\n aspect-ratio: ".concat({square:"1 / 1",horizontalRectangle:"3 / 2",verticalRectangle:"2 / 3"}[e],";\n "):"\n width: 100vw;\n height: auto;\n "}))},9785:(t,e,a)=>{function i(t){if(null==t)throw new TypeError("Cannot destructure "+t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},c.apply(null,arguments)}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.PhotoGroup=void 0,e.desktop=h,e.hd=p,e.mobile=s,e.tablet=l;var o=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}return function(t){if(t&&t.__esModule)return t;var a,i,c={__proto__:null,default:t};if(null===t||"object"!=r(t)&&"function"!=typeof t)return c;if(a=e){if(a.has(t))return a.get(t);a.set(t,c)}for(var o in t)"default"!==o&&{}.hasOwnProperty.call(t,o)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,o))&&(i.get||i.set)?a(c,o,i):c[o]=t[o]);return c}(t)}(a(9716)),n=a(9712);function p(t){var e=t.shape,a=t.photoCount,i=t.hasPadding,c=t.isVertical,r=t.grid;return 1!==a||i?1===a&&i||2===a&&("verticalRectangle"!=e||1==c)?(0,o.css)(["gap:50px;padding:50px;"]):"topBig"==r||"leftBig"==r?(0,o.css)(["gap:30px;"]):"mixed"==r&&"verticalRectangle"!=e?(0,o.css)(["gap:30px;padding:60px 0px;"]):"mixed"==r&&"verticalRectangle"==e?(0,o.css)(["gap:30px;padding:0px auto;"]):(0,o.css)(["gap:30px;padding:30px;"]):""}function h(t){var e=t.shape,a=t.photoCount,i=t.hasPadding,c=t.isVertical,r=t.grid;return 1!==a||i?1===a&&i||2===a&&("verticalRectangle"!=e||1==c)?(0,o.css)(["gap:50px;padding:50px;"]):"topBig"==r||"leftBig"==r?(0,o.css)(["gap:30px;"]):"mixed"==r&&"verticalRectangle"!=e?(0,o.css)(["gap:30px;padding:60px 0px;"]):"mixed"==r&&"verticalRectangle"==e?(0,o.css)(["gap:30px;padding:0px auto;"]):(0,o.css)(["gap:30px;padding:30px;"]):""}function l(t){var e=t.shape,a=t.photoCount,i=t.hasPadding,c=t.isVertical,r=t.grid;return 1!==a||i?1===a&&i||2===a&&("verticalRectangle"!=e||1==c)?(0,o.css)(["gap:30px;padding:30px;"]):"topBig"==r||"leftBig"==r?(0,o.css)(["gap:30px;"]):"mixed"==r&&"verticalRectangle"!=e?(0,o.css)(["gap:30px;padding:60px 0px;"]):"mixed"==r&&"verticalRectangle"==e?(0,o.css)(["gap:30px;padding:0px auto;"]):(0,o.css)(["gap:20px;padding:20px;"]):""}function s(t){var e=t.shape,a=t.photoCount,i=t.hasPadding,c=t.isVertical,r=t.grid;return 1!==a||i?1===a&&i||2===a&&("verticalRectangle"!=e||1==c)?(0,o.css)(["gap:20px;padding:20px;"]):"topBig"==r||"leftBig"==r?(0,o.css)(["gap:30px;"]):"mixed"==r&&"verticalRectangle"!=e?(0,o.css)(["gap:30px;padding:60px 0px;"]):"mixed"==r&&"verticalRectangle"==e?(0,o.css)(["gap:30px;padding:0px auto;"]):(0,o.css)(["gap:10px;padding:10px;"]):""}e.PhotoGroup=(0,o.default)(n.RectangleContainer).withConfig({displayName:"photo-group__PhotoGroup",componentId:"sc-1xpv35a-0"})(["display:flex;justify-content:center;align-items:center;box-sizing:border-box;overflow:hidden;flex-direction:",";"," @media (min-width:1440px){","}@media (min-width:1024px) and (max-width:1439px){","}@media (min-width:768px) and (max-width:1023px){","}@media (max-width:767px){","}"],(function(t){var e=t.photoCount,a=t.variant,i=t.isVertical;return 3===e&&"grid"===a?"row":i?"column":"row"}),(function(t){var e=t.variant,a=t.grid;if("grid"===e){if("leftBig"===a)return(0,o.css)(["display:grid;grid-template-areas:'a b' 'a c';grid-template-columns:auto auto;grid-template-rows:auto auto;align-content:center;justify-content:center;"]);if("topBig"==a)return(0,o.css)(["display:grid;grid-template-areas:'a a' 'b c';grid-template-columns:auto auto;grid-template-rows:auto auto;align-content:center;justify-content:center;"]);if("uniform"==a)return(0,o.css)(["display:grid;grid-template-areas:'a b' 'c d';grid-template-columns:auto auto;grid-template-rows:auto auto;align-content:center;justify-content:center;"]);if("mixed"==a)return(0,o.css)(["display:grid;grid-template-areas:'a a b' 'c d d';grid-template-columns:auto auto;grid-template-rows:auto auto;align-content:center;justify-content:center;"])}}),(function(t){var e=c({},(i(t),t));return(0,o.css)(["",""],p(e))}),(function(t){var e=c({},(i(t),t));return(0,o.css)(["",""],h(e))}),(function(t){var e=c({},(i(t),t));return(0,o.css)(["",""],l(e))}),(function(t){var e=c({},(i(t),t));return(0,o.css)(["",""],s(e))}))}}]);