whatmore-react-assets 1.0.985 → 1.0.987
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[816],{4816:function(n,e,t){t.r(e),t.d(e,{default:function(){return a}});var i=t(7313),o=t(2210),r=t(8486),l=t(6159),s=t(6417);r.ZP.use([r.o3]);var a=n=>{var e;const{imageUrls:t,onBack:r}=n,[a,c]=(0,i.useState)(null),d=window.location.hostname,[h,u]=(0,i.useState)("https://".concat(d).concat(null===(e=t[0])||void 0===e?void 0:e.url)),[p,b]=(0,i.useState)(!0);(0,i.useEffect)((()=>{a&&a.initialized&&a.update()}),[a]);const x=n.onBack;return p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("style",{children:"\n .thumbnail-container {\n padding: 5px 2px 10px 2px;\n box-sizing: border-box; \n display: flex; \n flex-direction: column; \n align-items: center;\n }\n .close-button-container {\n position: absolute;\n top: 16px;\n right: 10px;\n z-index: 2; \n }\n\n .thumbnail-container img {\n cursor: pointer;\n border-radius: 5px;\n width: 100%; \n height: 100%;\n object-fit: cover;\n transition: transform 0.2s ease;\n }\n\n .thumbnail-container img:hover {\n transform: scale(1.05);\n }\n\n .swiper-slide-thumb-active .thumbnail-container img {\n border: 1.5px solid white;\n box-shadow:rgba(255, 255, 255, 0.9);\n transform: scale(1.05); \n }\n\n .swiper-slide img {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .shop-now-button-container {\n display: flex;\n justify-content: center;\n margin-top: 10px;\n }\n\n .shop-now-button {\n background-color: rgba(120, 120, 120, 0.8); \n color: white; \n border: none;\n padding: 12px 24px; \n font-size: 16px; \n border-radius: 5px;\n cursor: pointer;\n text-align: center;\n text-decoration: none;\n transition: background-color 0.3s ease;\n width: 220px; \n }\n\n .shop-now-button:hover {\n background-color: rgba(128, 128, 128, 0.9); \n }\n "}),(0,s.jsxs)("div",{style:{width:"100%",height:"100vh",backgroundColor:"rgba(52, 52, 52, 0.8)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",overflow:"hidden"},children:[(0,s.jsx)(o.tq,{spaceBetween:10,slidesPerView:1,loop:!0,thumbs:{swiper:a},watchSlidesVisibility:!0,watchSlidesProgress:!0,style:{width:"100%",height:"80vh"},children:t.map(((n,e)=>{var t,i;return(0,s.jsx)(o.o5,{children:(0,s.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},children:[(0,s.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:"url(".concat(n.imageUrl,")"),backgroundSize:"cover",filter:"blur(20px)",zIndex:0}}),(0,s.jsx)("img",{src:(null===n||void 0===n||null===(t=n.imageUrl)||void 0===t||null===(i=t.split("?"))||void 0===i?void 0:i[0])+"?width=400&height=400",alt:n.title,style:{position:"relative",zIndex:1,maxWidth:"100%",maxHeight:"100%",objectFit:"contain",margin:"auto",display:"block"}})]})},e)}))}),(0,s.jsx)(o.tq,{onSwiper:c,spaceBetween:2,slidesPerView:Math.min(t.length,8),freeMode:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,style:{width:"100%",height:"100px"},children:t.map(((n,e)=>{var t,i;return(0,s.jsx)(o.o5,{children:(0,s.jsx)("div",{className:"thumbnail-container",children:(0,s.jsx)("img",{src:(null===n||void 0===n||null===(t=n.imageUrl)||void 0===t||null===(i=t.split("?"))||void 0===i?void 0:i[0])+"?width=400&height=400",alt:n.title,style:{width:"100%",height:"100%",objectFit:"cover",cursor:"pointer"},onClick:()=>{return e=n.url,u("https://".concat(d).concat(e));var e}})})},e)}))}),(0,s.jsx)("div",{className:"shop-now-button-container",children:(0,s.jsx)("a",{href:h,target:"_blank",className:"shop-now-button",children:"Shop Now"})}),((null===n||void 0===n?void 0:n.showCloseOverlay)||"portrait"==n.mode)&&(0,s.jsx)("div",{className:"close-button-container",children:(0,s.jsx)(l.Z,{onCloseCallback:x})})]})]}):null}}}]);
|