whatmore-react-assets 1.0.1656 → 1.0.1658

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1656",
3
+ "version": "1.0.1658",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[571],{16:function(e,t,n){n.d(t,{A:function(){return m}});var r=n(9950),i=(n(5410),n(5830)),o=n(4459),a=n(4414);var s=function(e){return(0,r.useEffect)((()=>{const e=(0,o.E2)((0,i.Xd)("whatmoreSecondaryColor"));!function(e,t,n,r){const i=`rgba(${e},${t},${n},${r})`,o=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${i}, 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.7), 1.8em -1.8em 0 0em ${i}, 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.5), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 2.5em 0em 0 0em ${i}, 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 1.75em 1.75em 0 0em ${i}, 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 0em 2.5em 0 0em ${i}, -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -1.8em 1.8em 0 0em ${i}, -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -2.6em 0em 0 0em ${i}, -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -1.8em -1.8em 0 0em ${i};\n }\n }\n `,a=document.createElement("style");a.type="text/css",a.innerHTML=o,document.head.appendChild(a)}(e[0],e[1],e[2],.2)}),[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"whatmore-loading-indicator"})})},d=n(8781);var m=function(e){var t,n;const r=null!==(t=e.height)&&void 0!==t?t:"100%",i=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,a.jsxs)("div",{style:{width:i,height:r,overflow:"hidden",minHeight:r,minWidth:i},children:[(0,a.jsx)(d.A,{height:r,width:i}),(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,a.jsx)(s,{})})})]})}},1941:function(e,t,n){n.d(t,{A:function(){return u}});var r=n(5830),i=n(9950);function o(e){if(!e)return{};var t={};return Array.from(e.attributes).forEach((e=>{var n;t[e.name]=(n=e.value,isNaN(+n)?n:+n)})),t}function a(...e){try{var t;const n=document.getElementById("whatmorePreviewMode");if(!n)return null;const r=null===e||void 0===e?void 0:e[0];if(!r)return!0;let i={};return i=r.includes("function")?{}:o(n),null!==(t=i)&&void 0!==t&&t[r]?i[r]:null}catch(n){return null}}var s=function({disablePreview:e=!1}={}){var t,n,r=e?window.innerHeight:null!==(t=a("height-wh"))&&void 0!==t?t:window.innerHeight,o=e?window.innerWidth:null!==(n=a("width-wh"))&&void 0!==n?n:window.innerWidth,[s,d]=[r,o];const[m,l]=(0,i.useState)([s>d?"portrait":"landscape",s,d]);return(0,i.useLayoutEffect)((()=>{function t(){var t,n,r=e?window.innerHeight:null!==(t=a("height-wh"))&&void 0!==t?t:window.innerHeight,i=e?window.innerWidth:null!==(n=a("width-wh"))&&void 0!==n?n:window.innerWidth,[o,s]=[r,i];l(o>s?["portrait",o,s]:["landscape",o,s])}return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),screen.orientation&&screen.orientation.addEventListener("change",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),screen.orientation&&screen.orientation.removeEventListener("change",t)}}),[]),m};const d=(0,r.Xd)("whatmoreShopId");function m(){if("STRI4V3OYCH"==d){const e=document.querySelector(".whatmore-base").closest("section");return[window.innerHeight,e.getBoundingClientRect().width]}return[window.innerHeight,window.innerWidth]}var l=function(){var[e,t]=m();const[n,r]=(0,i.useState)([e>t?"portrait":"landscape",e,t]);return(0,i.useLayoutEffect)((()=>{function e(){var[e,t]=m();r(e>t?["portrait",e,t]:["landscape",e,t])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}}),[]),n};var u=function(e){var t;const n=(0,r.Xd)("isWhatmorePreviewMode"),i=l(),o=s({disablePreview:null!==(t=null===e||void 0===e?void 0:e.disablePreview)&&void 0!==t&&t});return n?o:i}},3788:function(e,t,n){n.d(t,{s:function(){return s}});var r=n(1348),i=n(5830);const o={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},a={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},s=function(e){const t=(0,i.Xd)("whatmoreShopId");if(!e)return e;if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,r.CfJ)(t))return e;if("AZURECDN"==(0,r.CfJ)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(o))if(e.includes(t))return e.replace(t,o[t]);return e}}if("BUNNYCDN"==(0,r.CfJ)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},4033:function(e,t,n){n.d(t,{n:function(){return r}});const r=()=>{if("undefined"!==typeof window){const e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")&&navigator.vendor.includes("Apple")}return!1}},4365:function(){},5410:function(){},6493:function(e,t,n){n.d(t,{Cr:function(){return s},cb:function(){return a},lP:function(){return o},yD:function(){return d}});var r=n(1348);const i=(0,n(5830).Xd)("whatmoreShopId"),o=function(e){var t,n;return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.portrait.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.portrait.content_video_1080p?e.event_media_urls.secondary.portrait.content_video_1080p:null!==(t=e.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==t?t:null===(n=e.event_media_urls.primary.landscape)||void 0===n?void 0:n.content_video_1080p:e.event_hls_url},a=function(e){var t;return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.landscape.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.landscape.content_video_1080p?e.event_media_urls.secondary.landscape.content_video_1080p:null!==(t=e.event_media_urls.primary.landscape.content_video_1080p)&&void 0!==t?t:e.event_media_urls.primary.portrait.content_video_1080p:e.event_hls_url},s=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,r.ath)(i);if(!t)return e;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e},d=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,r.ath)(i);if(!t)return e;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e}},8781:function(e,t,n){var r=n(4414);t.A=function(e){var t,n,i;const o=null!==(t=e.height)&&void 0!==t?t:"100%",a=null!==(n=e.width)&&void 0!==n?n:"100%",s=null!==(i=e.borderRadius)&&void 0!==i?i:"10px";return(0,r.jsx)("div",{style:{height:o,width:o,borderRadius:s,overflow:"hidden",minHeight:o,minWidth:a,maxHeight:o,maxWidth:a},children:(0,r.jsx)("div",{style:{minHeight:o,minWidth:a},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},9098:function(e,t,n){var r=n(9950),i=n(16),o=n(4414);t.A=function(e){var t,n,a;const[s,d]=(0,r.useState)(!1),m=r.useRef(0),l=(0,r.useRef)(null),u=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},c=null!==(n=e.height)&&void 0!==n?n:"100%",h=null!==(a=e.width)&&void 0!==a?a:"100%";return(0,r.useEffect)((()=>{m.current=0;const e=setInterval((()=>{m.current=m.current+.03,l.current&&u(m.current,5),m.current>=5&&(m.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:"100%",overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,o.jsx)("img",{ref:l,src:e.url,style:{objectFit:"cover",height:"100%",width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{d(!0)}})}),s?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.A,{width:h,height:c})]})}},9879:function(e,t,n){n.d(t,{A:function(){return $}});var r=n(9950),i=n(6649),o=n(3788),a=n(6613),s=n(2039),d=n(9098),m=n(4033),l=n(5830),u=n(6493),c=n(4414);var h=function(e){var t,n,o,s,d;const h=(0,r.useRef)(null),[$,v,g]=(0,i.A)({triggerOnce:!0}),p=(0,l.Xd)("whatmoreShopId"),w=null!==(t=e.height)&&void 0!==t?t:"100%",f=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,r.useEffect)((()=>{h.current&&(e.isPlaying?h.current.play():(((0,m.n)()||(0,a.At)())&&h.current.play(),"57939755089"==p?setTimeout((()=>{h.current.pause()}),300):h.current.pause()))}),[e.isPlaying,v]),(0,c.jsx)("div",{ref:$,style:{width:w,height:f,overflow:"hidden",display:"flex",alignItems:"center"},children:v||"51394281658"==p||"8968077397"==p?(0,c.jsxs)("video",{ref:h,className:"whatmore-video-player-muted",width:f,height:w,preload:"metadata",loop:!0,playsInline:!0,poster:e.isPlaying&&1!=(null===(o=e.event)||void 0===o?void 0:o.index)&&"STRTFEDEDAP"!==p&&"STRY2V4XO5L"!==p?e.url:null!==(s=e.poster)&&void 0!==s?s:e.url,muted:null===(d=e.isVideoMuted)||void 0===d||d,style:{backgroundColor:"white",borderRadius:e.borderRadius,objectFit:"cover"},children:[(0,c.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,c.jsx)("source",{src:e.url,type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.yD)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:f,height:w,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var $=function(e){var t,n,m,$,v,g,p,w,f;const[b,y,_]=(0,i.A)({triggerOnce:!0}),x=(0,l.Xd)("whatmoreShopId"),j=(0,r.useRef)(null);if((0,r.useEffect)((()=>{j.current&&(e.isPlaying?j.current.play():j.current.pause())}),[e.isPlaying,y]),(0,s.Il)(e.event))return(0,c.jsx)(d.A,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const E=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200,C=null!==e&&void 0!==e&&null!==(n=e.event)&&void 0!==n&&null!==(m=n.poster_image)&&void 0!==m&&m.startsWith("https://cdn.shopify.com")?(null===e||void 0===e||null===($=e.event)||void 0===$||null===(v=$.poster_image)||void 0===v?void 0:v.split("?")[0])+"?width=400&height=400":null===e||void 0===e||null===(g=e.event)||void 0===g?void 0:g.poster_image;if((0,a.MN)())return(0,c.jsx)(h,{isVideoMuted:e.isVideoMuted,event:null===e||void 0===e?void 0:e.event,borderRadius:e.borderRadius,height:"100%",width:"100%",poster:C,url:(0,o.s)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:E});const k=null!==(p=e.height)&&void 0!==p?p:"100%",P=null!==(w=e.width)&&void 0!==w?w:"100%";return(0,c.jsx)("div",{ref:b,style:{width:k,height:P,overflow:"hidden",display:"flex",alignItems:"center"},children:y||"51394281658"==x||"8968077397"==x?(0,c.jsxs)("video",{ref:j,className:"whatmore-video-player-muted",width:P,height:k,preload:"metadata",loop:!0,playsInline:!0,muted:null===(f=e.isVideoMuted)||void 0===f||f,poster:"57939755089"==x?"":C,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,c.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,c.jsx)("source",{src:(0,o.s)(e.url),type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.yD)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:P,height:k,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}}}]);
@@ -120,7 +120,7 @@
120
120
  0% {
121
121
  transform: translateY(100%);
122
122
  }
123
- `} 0.5s`;return(0,f.jsx)(u.B,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:w,justifyContent:"center",alignItems:"center",children:(0,f.jsxs)(c.az,{width:"100%",height:"100%",children:[(0,f.jsx)(y._,{width:"100%",height:"auto",src:(0,p.JAc)(a)?d:(0,p.OSd)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,f.jsx)(u.B,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),m(!1)},cursor:"pointer",padding:"4px",children:(0,f.jsx)(A.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*g,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Rt=i(63),Wt=i(1745),Vt=i(8203);function Qt(t){var e;const[i,o]=(0,n.useState)(null),r=t.product;return(0,n.useEffect)((()=>{(0,Wt.tN)(r).then((t=>{o(t.variants)}))}),[]),null==i?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,f.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,f.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,f.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,f.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,f.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,f.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,f.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function Mt(t){const e=t.product;return(0,f.jsx)(Qt,{product:e,variantId:t.variantId,height:t.height,width:t.width})}var Ht=i(1052),Ut=i(3262);function Xt(t){var e,i,o,r,a,d,s,h;const[x]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreShopId"),[w]=(0,v.QN)("whatmorePrimaryFont"),[y]=(0,v.QN)("whatmoreSecondaryColor"),[b]=(0,v.QN)("websiteLanguage"),C=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:S,whatmoreUserInfo:k}=(0,n.useContext)(U.B),[I,z]=(0,n.useState)(!1),{closeClickComponent:E}=(0,n.useContext)(Ci),[T,N]=(0,n.useState)(!1),F=t.FONT_SIZE,A=t.data,L=t.event,P=t.selectedVariantId,B=t.product,O=t.itemQuantity,D=t.PRODUCT_TILE_WIDTH,R=t.cartItemCount,W=t.addToCartFlag,V=t.setAddToCartFlag,Q=t.soldOutFlag,X=t.setSoldOutFlag,Y=S.landingLocationType,$=S.templateType,q=(0,ht.Wd)(Y)+(0,ht.gf)($)+(null!==L&&void 0!==L&&L.isRelatedEvent?"R":"E")+"_"+(null===L||void 0===L?void 0:L.event_id);const K=e=>{if(function(t,e){x||m||(async()=>{(0,l.TJ)(t,e)})()}(L,B),"buy-now"==e){var i,n,o,r;if((0,M.kz)({userInteractionType:H.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:L,productList:[B],ctaList:L.cta}),"78881718575"==g)return"function"==typeof gokwikBuyNowClickFn&&window.gokwikBuyNowClickFn(),void t.onCloseCallback();if("63330517149"==g)return(0,Wt.R3)(null!==P&&void 0!==P?P:null===A||void 0===A||null===(o=A.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,q),void t.onCloseCallback();(0,Ht.Dr)(void 0!==P?P:null===A||void 0===A||null===(i=A.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.id,O,(0,p.NCy)(g),g,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType)}"view-more"==e&&((0,p.BLb)(g)?window.location.href=B.product_link+"?"+(0,p.VCz)(g)+"&"+(0,p.Spk)(g)+"&"+(0,p.$lz)(g)+((0,p.N0t)(g)?"&currency="+B.currency:""):window.location.href=B.product_link+((0,p.N0t)(g)?"?currency="+B.currency:""))};return(0,f.jsxs)(u.B,{boxShadow:"rgba(255, 255, 255, 0.3) 0px 0px 3px, rgba(255, 255, 255, 0.3) 0px 0px 6px, rgba(0, 0, 0, 0.6) 0px 0px 10px",position:t.position,className:"wht-shn-cta",bg:"#D3D3D3",borderRadius:"10px",bottom:"10px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"95%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*F,children:[" ",Q?(0,f.jsx)(J.$,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*F,disabled:!0,sx:{borderRadius:"round"==C?"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:w+" !important"},children:"Sold Out"})}):(0,f.jsxs)(u.B,{direction:"vertical"==(0,p.z00)(g)?"column":"row",width:"90%",spacing:"15px",fontSize:.9*F,justifyContent:"center",children:[(0,p.gvj)(g)?(0,f.jsx)(J.$,{className:"add-to-cart-button",height:2.5*F,onClick:async t=>{var e,i;t.stopPropagation(),z(!0),function(t,e,i){x||m||(async()=>{(0,l.tO)(t,e,i)})()}(L,B,O),(0,M.kz)({userInteractionType:H.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:L,productList:[B],ctaList:L.cta});const n=null!==P&&void 0!==P?P:null===A||void 0===A||null===(e=A.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id;if(!n)return console.log("ERROR! No variants available."),void z(!1);(0,Ht.cF)([n],O,(0,p.NCy)(g),g,L,B,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(z(!1),V(!0),(0,v.t2)("whatmoreAddedToCart",!0),(0,v.Xd)("whatmoreAddedToCart")&&(0,Ut.initiateCartSliderEvent)(g,(()=>{}),100,window.location.hostname,n,B.client_product_id,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType,B.product_link),(0,p.rEM)(g)&&(x||(async()=>{await(0,Wt.js)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}))})()),t))).catch((t=>{z(!1),X(!0),console.error("Error:",t)}))},sx:{minWidth:"50%",paddingLeft:"10px !important",paddingRight:"10px !important",backgroundColor:"#343434"===(0,p.Wc_)(g)?y+" !important":(0,p.Wc_)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?"#343434"===(0,p.Wc_)(g)?y:(0,p.Wc_)(g):(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g)}},children:I?(0,f.jsx)(Rt.y,{display:"flex !important",color:"white"}):(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:(0,p.Hfu)(g)+" !important",fontFamily:w+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},fontSize:F+"px !important",children:"ADD TO CART"!=(0,p.KPq)(g)?(0,p.KPq)(g):null!==(e=null===tt.m||void 0===tt.m||null===(i=tt.m[b])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,p.KPq)(g)})}):(0,f.jsx)(f.Fragment,{}),(0,p.oB_)(g)?(0,f.jsx)(f.Fragment,{children:(0,p.pbJ)(g)?(0,f.jsx)(Mt,{variantId:void 0!==P?P:null===A||void 0===A||null===(o=A.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,product:B,height:2.5*F,width:"90%",fontSize:F,fontFamily:w}):(0,f.jsx)(f.Fragment,{children:!(0,p.naM)(g)||"78881718575"===g&&null!==Y&&void 0!==Y&&Y.includes("product")?(0,f.jsx)(J.$,{className:"buy-now-button-custom",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:t=>{K("buy-now")},sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important"}},children:(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:F+"px !important",children:"BUY NOW"!=(0,p.GX0)(g)?(0,p.GX0)(g):null!==(s=null===tt.m||void 0===tt.m||null===(h=tt.m[b])||void 0===h?void 0:h.buy_now)&&void 0!==s?s:(0,p.GX0)(g)})}):(0,f.jsx)(J.$,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:()=>K("view-more"),sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:F,children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(a=null===tt.m||void 0===tt.m||null===(d=tt.m[b])||void 0===d?void 0:d.more_info)&&void 0!==a?a:(0,p.KnH)(g)})})})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(f.Fragment,{children:(0,p.gvj)(g)?(0,f.jsx)(f.Fragment,{children:T?(0,f.jsx)(dt.s,{width:"10%",spacing:"0",right:0,children:(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(Vt.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}})})}):(0,f.jsxs)(dt.s,{animation:W?_:"none",onAnimationEnd:()=>V(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,p.m4S)(g)&&("go_to_cart_page"!==(0,p.m4S)(g)?(N(!0),function(t){"open_cart_slider"!==(0,p.m4S)(t)||null!==E&&E()}(g)):(0,Ht.Le)((0,p.NCy)(g),g))},cursor:"pointer",children:[(0,f.jsx)(G.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}}),R>0?(0,f.jsx)(c.jl,{padding:"2px",bg:"white",size:1.1*F,top:.03*-D,verticalAlign:"top",position:"relative",left:.11*-D,zIndex:"1",children:(0,f.jsx)(j.E,{sx:{color:"black !important",fontFamily:w+" !important"},fontWeight:"bold !important",fontSize:.7*F+"px !important",children:R})}):(0,f.jsx)(f.Fragment,{})]})}):(0,f.jsx)(f.Fragment,{})})]})}function Yt(t){const[e]=(0,v.QN)("whatmorePrimaryFont"),i=((0,v.Xd)("whatmoreShopId"),t.setOpenShopNow),n=t.FONT_SIZE,o=t.setLockSwiper;return(0,f.jsxs)(dt.s,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",className:"wht-shn-head",children:[(0,f.jsx)(dt.s,{width:"10%",display:"flex !important"}),(0,f.jsx)(dt.s,{width:"90%",justifyContent:"center",children:(0,f.jsx)(j.E,{align:"center",fontSize:1.25*n,fontWeight:"semibold",sx:{color:"black",fontFamily:e+" !important"},as:"b",children:"Shop Now"})}),(0,f.jsx)(dt.s,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),o(!1)},cursor:"pointer",children:(0,f.jsx)(A.A,{sx:{boxShadow:3,color:"black",fontSize:1.2*n,filter:"drop-shadow(0 0 5px black);"}})})]})}function $t(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=((0,v.Xd)("whatmoreShopId"),t.FONT_SIZE),o=t.data;return(0,f.jsxs)(u.B,{className:"wht-prd-des",direction:"column",paddingX:"20px",height:"fit-content",children:[(0,f.jsx)(j.E,{fontSize:n+"px !important",fontWeight:"bold !important",justifyContent:"center",sx:{color:"black",fontFamily:i+" !important"},children:"Description"}),(0,f.jsx)(c.az,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,f.jsx)(j.E,{fontSize:.8*n+"px !important",justifyContent:"normal",fontWeight:"normal !important",dangerouslySetInnerHTML:{__html:(r=null!==(e=null===o||void 0===o?void 0:o.description)&&void 0!==e?e:null===o||void 0===o?void 0:o.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:i+" !important",lineHeight:"140% !important"}})})]});var r}const qt=({iconSize:t})=>(0,f.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-box-arrow-up-right",viewBox:"0 0 16 16",style:{stroke:"black",strokeWidth:"0.4"},children:[(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})]})});function Kt(t){var e,i,o;const[r,l]=(0,n.useState)(t.product),[a]=(0,v.QN)("whatmorePrimaryFont"),[d]=(0,v.QN)("whatmoreShopId"),[s]=(0,v.QN)("whatmoreSecondaryColor"),[u]=(0,v.QN)("websiteLanguage");(0,n.useEffect)((()=>{(0,p.w4b)(d)&&(0,ut.ck)(r,(0,p.NCy)(d),d).then((t=>{l(t)}))}),[]);const h=t.FONT_SIZE,x=t.data,m=t.itemPrice;let g,w,y;var b,C,S;"STRDOIDF6O7"==d&&(g=null===x||void 0===x||null===(b=x.variants)||void 0===b?void 0:b.find((e=>e.id==t.selectedVariantId)),w=null===(C=g)||void 0===C?void 0:C.title,y=null===(S=g)||void 0===S?void 0:S.productLink);const k=(e=>{const i=null===x||void 0===x||null===(e=x.variants)||void 0===e?void 0:e.find((e=>e.id==t.selectedVariantId));return null!==i&&void 0!==i&&i.compare_at_price&&parseFloat(i.compare_at_price)>0?i.compare_at_price:null})(),I=k&&0!=k&&k>m?Math.round((k-m)/k*100):NaN;return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(dt.s,{className:"wht-shn-title",direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,f.jsxs)(dt.s,{cursor:"pointer",onClick:function(){window.location.href=function(t){return(0,p.BLb)(d)?("STRDOIDF6O7"==d?y:t.product_link)+"?"+(0,p.VCz)(d)+"&"+(0,p.Spk)(d)+"&"+(0,p.$lz)(d)+((0,p.N0t)(d)?"&currency="+t.currency:""):("STRDOIDF6O7"==d?y:t.product_link)+((0,p.N0t)(d)?"?currency="+t.currency:"")}(r)},sx:{display:"flex",gap:"6px"},children:[(0,f.jsx)(j.E,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:h,sx:{color:"black",lineHeight:"140% !important",fontFamily:a+" !important"},as:"b",children:"STRDOIDF6O7"==d&&null!==(e=w)&&void 0!==e?e:null===x||void 0===x?void 0:x.title}),(0,f.jsx)(qt,{iconSize:1.1*h})]}),(0,f.jsxs)(dt.s,{direction:"row",gap:"6px",paddingTop:"4px",children:[k&&k>m&&(0,f.jsx)(j.E,{as:"s",padding:"2px",fontSize:1.2*h,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:a+" !important"},children:(0,ut.Sb)(parseFloat((0,yt.U)()?k/100:k)," ",d,r.currency,!0)}),(0,f.jsx)(j.E,{as:"b",padding:"2px",fontSize:1.2*h,fontWeight:"semibold !important",sx:{color:"black",fontFamily:a+" !important"},children:(0,ut.Sb)(parseFloat((0,yt.U)()?m/100:m),"",d,r.currency,!0)}),!isNaN(I)&&0!=I&&(0,f.jsx)(c.az,{display:"flex",backgroundColor:"green"==(0,p.ub$)(d)?"#343434"==s?(0,p.ub$)(d):s:(0,p.ub$)(d),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,f.jsx)(j.E,{fontSize:(0,p.mOK)(d)?"14px !important":1.1*h,fontWeight:"normal !important",sx:{color:(0,p.BRY)(d)+" !important",fontFamily:a+" !important"},children:(0,p.mOK)(d)?`${I}% ${null!==(i=null===tt.m||void 0===tt.m||null===(o=tt.m[u])||void 0===o?void 0:o.off)&&void 0!==i?i:"off"}`:`Save ${(0,ut.Sb)(parseFloat(k/100-m/100)," ",d,r.currency)}`})})]}),"61412737206"==d&&(0,f.jsx)(j.E,{fontSize:"11px",color:"#f4f4ec",children:"Tax included. Free shipping on all orders."})]})})}var Gt=i(4418);function Zt(t){var e,i;const[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),{setShowOptionsChart:l}=(0,n.useContext)(oe),[a,d]=(0,n.useState)({}),[u]=(0,v.QN)("whatmoreUITheme"),h=(0,v.Xd)("whatmoreSecondaryColorShade300"),x=t.setSelectedColor,m=t.selectOptionFirstHandler,g=t.selectOptionSecondHandler,w=t.selectOptionThirdHandler,b=t.isVariantAvailable,C=t.FONT_SIZE,S=t.data,k=(t,e,i)=>{if(2==i)d((i=>({...i,[t]:e})));else if(1==i)d((i=>{var n,o,r,l;return{...i,[t]:e,[null===S||void 0===S||null===(n=S.options)||void 0===n||null===(o=n[2])||void 0===o?void 0:o.name]:null===S||void 0===S||null===(r=S.variants)||void 0===r||null===(l=r.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===l?void 0:l.option3}}));else{var n,o;const i=null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===o?void 0:o.option2;d((n=>{var o,r,l,a,d,s,c,u;return{...n,[null===S||void 0===S||null===(o=S.options)||void 0===o||null===(r=o[1])||void 0===r?void 0:r.name]:null===S||void 0===S||null===(l=S.variants)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===a?void 0:a.option2,[null===S||void 0===S||null===(d=S.options)||void 0===d||null===(s=d[2])||void 0===s?void 0:s.name]:null===S||void 0===S||null===(c=S.variants)||void 0===c||null===(u=c.find((t=>(null===t||void 0===t?void 0:t.option2)==i)))||void 0===u?void 0:u.option3,[t]:e}}))}};return(0,n.useEffect)((()=>{d((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===S||void 0===S||null===(r=S.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===S||void 0===S||null===(a=S.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===S||void 0===S||null===(s=S.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===S||void 0===S||null===(u=S.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]),(0,f.jsx)(dt.s,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===S||void 0===S||null===(e=S.options)||void 0===e?void 0:e.length)>0&&(0,f.jsx)(dt.s,{direction:"column",width:"100%",gap:"4px",children:null===S||void 0===S||null===(i=S.options)||void 0===i?void 0:i.map(((e,i)=>{var n,d,v,I,_,z;return(0,f.jsx)(f.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(n=e.values)||void 0===n?void 0:n.length)>1||"Colour"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(d=e.name)||void 0===d?void 0:d.toLowerCase().includes("color"))||1==(null===e||void 0===e||null===(v=e.values)||void 0===v?void 0:v.length)&&(null===e||void 0===e?void 0:e.position)>1&&(null===e||void 0===e?void 0:e.position)==(null===S||void 0===S||null===(I=S.options)||void 0===I?void 0:I.length))&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(dt.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:[(0,f.jsx)(j.E,{fontSize:1*C+"px !important",sx:{color:"black",fontFamily:o+" !important",fontWeight:"bold !important"},children:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,p.u1b)(r)?(0,f.jsx)(dt.s,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,f.jsx)(j.E,{fontSize:.7*C,as:"u",sx:{color:"black !important",fontFamily:o+" !important"},onClick:()=>{null!==l&&l(!0)},children:(0,p.A5I)(r)})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(Gt.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(_=e.values)||void 0===_?void 0:_.map((n=>{var l,d,s,v,I,_,z,E,T,N;const F=b(n,i),A=0==i||S.variants.find((t=>{var e,o;return t[`option${i}`]==(null===(e=Object.entries(a))||void 0===e||null===(o=e[i-1])||void 0===o?void 0:o[1])&&t[`option${i+1}`]==n}));return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&null!==(l=e.name)&&void 0!==l&&l.toLowerCase().includes("color"))&&A&&((null===t||void 0===t||null===(d=t.finalArr)||void 0===d?void 0:d.length)>0&&(null===t||void 0===t||null===(s=t.finalArr)||void 0===s||!s.includes(null))||(null===t||void 0===t||null===(v=t.finalArrExternal)||void 0===v?void 0:v.length)>0)?(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(dt.s,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,f.jsx)(c.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,p.tM2)(r),size:"sm",border:a[null===e||void 0===e?void 0:e.name]===n?`2px solid ${(0,p.Usu)(r)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{k(null===e||void 0===e?void 0:e.name,n,i),x(n),0===i&&m(n),1===i&&g(n),2===i&&w(n)},children:(0,f.jsx)(y._,{padding:"2px",borderRadius:(0,p.tM2)(r),width:"58px",height:"58px",src:(0,st.b)(null!==(I=null===t||void 0===t||null===(_=t.finalArr)||void 0===_||null===(z=_.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===z?void 0:z.src)&&void 0!==I?I:null===t||void 0===t||null===(E=t.finalArrExternal)||void 0===E||null===(T=E.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===T?void 0:T.optionsrc,"?width=400&height=400")})})},n)}):A&&(0,f.jsx)(dt.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,f.jsx)(J.$,{isDisabled:!F,size:"sm",borderRadius:"round"==u?"5px":0,bg:a[null===e||void 0===e?void 0:e.name]===n&&F?(null!==(N=(0,p.j2L)(r))&&void 0!==N?N:h)+" !important":(0,p.R25)(r)+" !important",width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=n?(k(null===e||void 0===e?void 0:e.name,n,i),0===i&&m(n),1===i&&g(n),2===i&&w(n)):window.location.href=t.product.product_link},children:(0,f.jsx)(j.E,{as:F?"p":"s",textDecoration:F?"none":"line-through",fontSize:.9*C+"px !important",sx:{fontFamily:o+" !important",fontWeight:"normal !important",color:a[null===e||void 0===e?void 0:e.name]===n&&F?(0,p.L7T)(r)+" !important":(0,p.Egc)(r)+" !important"},children:n})})},n)}))}),i===(null===S||void 0===S||null===(z=S.options)||void 0===z?void 0:z.length)-1&&(0,f.jsx)(s.o,{paddingTop:"8px",width:"100%",children:(0,f.jsx)(at.c,{color:t.dividerColor,size:"xs"})})]})})}))})})}var Jt=i(8385);function te(t){var e,i,o,r,l,a,d,u,h,m,g,w,j,b,C,S,I,_,z,E,T;const[N,F,A,L]=(0,x.A)();var P=.4*L*.8,B=P*(16/9)*.6*.8;const O=1.1*P,D=O*(16/9)*.8;var W=.12*P;const[V,Q]=(0,n.useState)(!1),M=t.data,H=t.event,U=t.product,X=t.setOpenShopNow,Y=t.setLockSwiper,[$,q]=(0,n.useState)({});(0,n.useEffect)((()=>{q((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===M||void 0===M||null===(a=M.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===M||void 0===M||null===(s=M.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===M||void 0===M||null===(u=M.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]);const K=(t,e)=>{var i,n,o,r,l,a,d,s,c,u;if(null===M||void 0===M||null===(i=M.options)||void 0===i||!i.length)return!1;const h=null===M||void 0===M||null===(n=M.options)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.name,p=null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===M||void 0===M||null===(a=M.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===M||void 0===M||null===(s=M.options)||void 0===s?void 0:s.length){case 1:return null===M||void 0===M||null===(c=M.variants)||void 0===c?void 0:c.some((e=>e.option1===t&&e.available));case 2:var v;return 0===e?null===M||void 0===M||null===(v=M.variants)||void 0===v?void 0:v.some((e=>e.option1===t&&e.available)):null===M||void 0===M||null===(u=M.variants)||void 0===u?void 0:u.some((e=>e.option2===t&&e.option1===$[h]&&e.available));case 3:var x,m,g;if(0===e)return null===M||void 0===M||null===(x=M.variants)||void 0===x?void 0:x.some((e=>e.option1===t&&e.available));if(1===e)return null===M||void 0===M||null===(m=M.variants)||void 0===m?void 0:m.some((e=>e.option2===t&&e.option1===$[h]&&e.available));if(2===e)return null===M||void 0===M||null===(g=M.variants)||void 0===g?void 0:g.some((e=>e.option3===t&&e.option1===$[h]&&e.option2===$[p]&&e.available));default:return!1}},[G,Z]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option1;if(t&&K(t,0))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""})),[J,tt]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option2;if(t&&K(t,1))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""})),[et,it]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option3;if(t&&K(t,2))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""})),[nt,ot]=(0,n.useState)(),[rt,lt]=(0,n.useState)(1),[ct,ut]=(0,n.useState)(),[ht,pt]=(0,n.useState)(0),[vt,xt]=(0,n.useState)(!1),[mt,gt]=(0,n.useState)(!1),[ft,wt]=(0,n.useState)(U.thumbnail_image),jt=(0,v.Xd)("whatmoreUITheme"),yt=(0,v.Xd)("whatmoreShopId"),bt=(0,n.useCallback)((t=>{Z(t)}),[]),Ct=(0,n.useCallback)((t=>{tt(t)}),[]),St=(0,n.useCallback)((t=>{it(t)}),[]);(0,n.useEffect)((()=>{var t,e;const i=ee(M,G,J,et);ot(null!==i&&void 0!==i?i:null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id),ut(ie(M,i)),lt(1),gt(!1);const n=ne(M,i);null!==n&&wt(n)}),[G,J,et]),(0,n.useEffect)((()=>{var t,e;const i=void 0===nt?null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:ie(M,nt);ut(i*rt)}),[rt]),(0,n.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),i=document.getElementById("whatmore-size-chart");i&&i.contains(t.target)||!e||e.contains(t.target)||(X(!1),Y(!1))}function e(t){t.stopPropagation(),i.scrollTop+=t.deltaY}document.addEventListener("click",t);const i=document.getElementById("whatmore-shopnow-view");return null===i||void 0===i||i.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),i.removeEventListener("wheel",e)}}),[]),(0,n.useEffect)((()=>{(0,Ht.Eo)((0,p.NCy)(yt),yt).then((t=>t.json())).then((t=>{pt(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[vt]);const kt=`${k.i7`
123
+ `} 0.5s`;return(0,f.jsx)(u.B,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:w,justifyContent:"center",alignItems:"center",children:(0,f.jsxs)(c.az,{width:"100%",height:"100%",children:[(0,f.jsx)(y._,{width:"100%",height:"auto",src:(0,p.JAc)(a)?d:(0,p.OSd)(a),objectFit:"contain",borderTopRadius:"xl"}),(0,f.jsx)(u.B,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"90%"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsx)(u.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:t=>{t.stopPropagation(),m(!1)},cursor:"pointer",padding:"4px",children:(0,f.jsx)(A.A,{sx:{boxShadow:3,color:"white !important",fontSize:1.6*g,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Rt=i(63),Wt=i(1745),Vt=i(8203);function Qt(t){var e;const[i,o]=(0,n.useState)(null),r=t.product;return(0,n.useEffect)((()=>{(0,Wt.tN)(r).then((t=>{o(t.variants)}))}),[]),null==i?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",height:1.5*t.height,backgroundColor:"white"},children:(0,f.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,f.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,f.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,f.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,f.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,f.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,f.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(i).toString()})]})})}function Mt(t){const e=t.product;return(0,f.jsx)(Qt,{product:e,variantId:t.variantId,height:t.height,width:t.width})}var Ht=i(1052),Ut=i(3262);function Xt(t){var e,i,o,r,a,d,s,h;const[x]=(0,v.QN)("isInDesignMode"),[m]=(0,v.QN)("isDemoBrand"),[g]=(0,v.QN)("whatmoreShopId"),[w]=(0,v.QN)("whatmorePrimaryFont"),[y]=(0,v.QN)("whatmoreSecondaryColor"),[b]=(0,v.QN)("websiteLanguage"),C=(0,v.Xd)("whatmoreUITheme"),{whatmoreWidgetSourceDetails:S,whatmoreUserInfo:k}=(0,n.useContext)(U.B),[I,z]=(0,n.useState)(!1),{closeClickComponent:E}=(0,n.useContext)(Ci),[T,N]=(0,n.useState)(!1),F=t.FONT_SIZE,A=t.data,L=t.event,P=t.selectedVariantId,B=t.product,O=t.itemQuantity,D=t.PRODUCT_TILE_WIDTH,R=t.cartItemCount,W=t.addToCartFlag,V=t.setAddToCartFlag,Q=t.soldOutFlag,X=t.setSoldOutFlag,Y=S.landingLocationType,$=S.templateType,q=(0,ht.Wd)(Y)+(0,ht.gf)($)+(null!==L&&void 0!==L&&L.isRelatedEvent?"R":"E")+"_"+(null===L||void 0===L?void 0:L.event_id);const K=e=>{if(function(t,e){x||m||(async()=>{(0,l.TJ)(t,e)})()}(L,B),"buy-now"==e){var i,n,o,r;if((0,M.kz)({userInteractionType:H.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:L,productList:[B],ctaList:L.cta}),"78881718575"==g)return"function"==typeof gokwikBuyNowClickFn&&window.gokwikBuyNowClickFn(),void t.onCloseCallback();if((0,p.R8W)(g))return(0,Wt.R3)(null!==P&&void 0!==P?P:null===A||void 0===A||null===(o=A.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,q),void t.onCloseCallback();(0,Ht.Dr)(void 0!==P?P:null===A||void 0===A||null===(i=A.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.id,O,(0,p.NCy)(g),g,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType)}"view-more"==e&&((0,p.BLb)(g)?window.location.href=B.product_link+"?"+(0,p.VCz)(g)+"&"+(0,p.Spk)(g)+"&"+(0,p.$lz)(g)+((0,p.N0t)(g)?"&currency="+B.currency:""):window.location.href=B.product_link+((0,p.N0t)(g)?"?currency="+B.currency:""))};return(0,f.jsxs)(u.B,{boxShadow:"rgba(255, 255, 255, 0.3) 0px 0px 3px, rgba(255, 255, 255, 0.3) 0px 0px 6px, rgba(0, 0, 0, 0.6) 0px 0px 10px",position:t.position,className:"wht-shn-cta",bg:"#D3D3D3",borderRadius:"10px",bottom:"10px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"95%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*F,children:[" ",Q?(0,f.jsx)(J.$,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*F,disabled:!0,sx:{borderRadius:"round"==C?"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:w+" !important"},children:"Sold Out"})}):(0,f.jsxs)(u.B,{direction:"vertical"==(0,p.z00)(g)?"column":"row",width:"90%",spacing:"15px",fontSize:.9*F,justifyContent:"center",children:[(0,p.gvj)(g)?(0,f.jsx)(J.$,{className:"add-to-cart-button",height:2.5*F,onClick:async t=>{var e,i;t.stopPropagation(),z(!0),function(t,e,i){x||m||(async()=>{(0,l.tO)(t,e,i)})()}(L,B,O),(0,M.kz)({userInteractionType:H.O.SHOPNOW_ATC_CLICKED,widgetSourceDetails:S,event:L,productList:[B],ctaList:L.cta});const n=null!==P&&void 0!==P?P:null===A||void 0===A||null===(e=A.variants)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.id;if(!n)return console.log("ERROR! No variants available."),void z(!1);(0,Ht.cF)([n],O,(0,p.NCy)(g),g,L,B,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(z(!1),V(!0),(0,v.t2)("whatmoreAddedToCart",!0),(0,v.Xd)("whatmoreAddedToCart")&&(0,Ut.initiateCartSliderEvent)(g,(()=>{}),100,window.location.hostname,n,B.client_product_id,q,null===L||void 0===L?void 0:L.location,null===k||void 0===k?void 0:k.userType,B.product_link),(0,p.rEM)(g)&&(x||(async()=>{await(0,Wt.js)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}))})()),t))).catch((t=>{z(!1),X(!0),console.error("Error:",t)}))},sx:{minWidth:"50%",paddingLeft:"10px !important",paddingRight:"10px !important",backgroundColor:"#343434"===(0,p.Wc_)(g)?y+" !important":(0,p.Wc_)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?"#343434"===(0,p.Wc_)(g)?y:(0,p.Wc_)(g):(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g)}},children:I?(0,f.jsx)(Rt.y,{display:"flex !important",color:"white"}):(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:(0,p.Hfu)(g)+" !important",fontFamily:w+" !important",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},fontSize:F+"px !important",children:"ADD TO CART"!=(0,p.KPq)(g)?(0,p.KPq)(g):null!==(e=null===tt.m||void 0===tt.m||null===(i=tt.m[b])||void 0===i?void 0:i.add_to_cart)&&void 0!==e?e:(0,p.KPq)(g)})}):(0,f.jsx)(f.Fragment,{}),(0,p.oB_)(g)?(0,f.jsx)(f.Fragment,{children:(0,p.pbJ)(g)?(0,f.jsx)(Mt,{variantId:void 0!==P?P:null===A||void 0===A||null===(o=A.variants)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.id,product:B,height:2.5*F,width:"90%",fontSize:F,fontFamily:w}):(0,f.jsx)(f.Fragment,{children:!(0,p.naM)(g)||"78881718575"===g&&null!==Y&&void 0!==Y&&Y.includes("product")?(0,f.jsx)(J.$,{className:"buy-now-button-custom",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:t=>{K("buy-now")},sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.D3T)(g),borderColor:"#343434"===(0,p.IQN)(g)?y:(0,p.IQN)(g),_hover:{backgroundColor:"transparent !important"}},children:(0,f.jsx)(j.E,{fontWeight:"extrabold !important",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:F+"px !important",children:"BUY NOW"!=(0,p.GX0)(g)?(0,p.GX0)(g):null!==(s=null===tt.m||void 0===tt.m||null===(h=tt.m[b])||void 0===h?void 0:h.buy_now)&&void 0!==s?s:(0,p.GX0)(g)})}):(0,f.jsx)(J.$,{variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*F,onClick:()=>K("view-more"),sx:{width:"fit-content",minWidth:"50%",paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:(0,p.FHj)(g)+" !important",borderRadius:"round"==C?"27951333450"==g?"50px":"5px":"0px",borderWidth:(0,p.YcK)(g),borderColor:(0,p.Fwt)(g)},children:(0,f.jsx)(j.E,{fontWeight:"extrabold",sx:{color:"#343434"===(0,p.a7e)(g)?y+" !important":(0,p.a7e)(g)+" !important",fontFamily:w+" !important"},fontSize:F,children:"MORE INFO"!=(0,p.KnH)(g)?(0,p.KnH)(g):null!==(a=null===tt.m||void 0===tt.m||null===(d=tt.m[b])||void 0===d?void 0:d.more_info)&&void 0!==a?a:(0,p.KnH)(g)})})})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(f.Fragment,{children:(0,p.gvj)(g)?(0,f.jsx)(f.Fragment,{children:T?(0,f.jsx)(dt.s,{width:"10%",spacing:"0",right:0,children:(0,f.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,f.jsx)(Vt.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}})})}):(0,f.jsxs)(dt.s,{animation:W?_:"none",onAnimationEnd:()=>V(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,p.m4S)(g)&&("go_to_cart_page"!==(0,p.m4S)(g)?(N(!0),function(t){"open_cart_slider"!==(0,p.m4S)(t)||null!==E&&E()}(g)):(0,Ht.Le)((0,p.NCy)(g),g))},cursor:"pointer",children:[(0,f.jsx)(G.A,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*F}}),R>0?(0,f.jsx)(c.jl,{padding:"2px",bg:"white",size:1.1*F,top:.03*-D,verticalAlign:"top",position:"relative",left:.11*-D,zIndex:"1",children:(0,f.jsx)(j.E,{sx:{color:"black !important",fontFamily:w+" !important"},fontWeight:"bold !important",fontSize:.7*F+"px !important",children:R})}):(0,f.jsx)(f.Fragment,{})]})}):(0,f.jsx)(f.Fragment,{})})]})}function Yt(t){const[e]=(0,v.QN)("whatmorePrimaryFont"),i=((0,v.Xd)("whatmoreShopId"),t.setOpenShopNow),n=t.FONT_SIZE,o=t.setLockSwiper;return(0,f.jsxs)(dt.s,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",className:"wht-shn-head",children:[(0,f.jsx)(dt.s,{width:"10%",display:"flex !important"}),(0,f.jsx)(dt.s,{width:"90%",justifyContent:"center",children:(0,f.jsx)(j.E,{align:"center",fontSize:1.25*n,fontWeight:"semibold",sx:{color:"black",fontFamily:e+" !important"},as:"b",children:"Shop Now"})}),(0,f.jsx)(dt.s,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),o(!1)},cursor:"pointer",children:(0,f.jsx)(A.A,{sx:{boxShadow:3,color:"black",fontSize:1.2*n,filter:"drop-shadow(0 0 5px black);"}})})]})}function $t(t){var e;const[i]=(0,v.QN)("whatmorePrimaryFont"),n=((0,v.Xd)("whatmoreShopId"),t.FONT_SIZE),o=t.data;return(0,f.jsxs)(u.B,{className:"wht-prd-des",direction:"column",paddingX:"20px",height:"fit-content",children:[(0,f.jsx)(j.E,{fontSize:n+"px !important",fontWeight:"bold !important",justifyContent:"center",sx:{color:"black",fontFamily:i+" !important"},children:"Description"}),(0,f.jsx)(c.az,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,f.jsx)(j.E,{fontSize:.8*n+"px !important",justifyContent:"normal",fontWeight:"normal !important",dangerouslySetInnerHTML:{__html:(r=null!==(e=null===o||void 0===o?void 0:o.description)&&void 0!==e?e:null===o||void 0===o?void 0:o.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:i+" !important",lineHeight:"140% !important"}})})]});var r}const qt=({iconSize:t})=>(0,f.jsx)("div",{style:{color:"black",paddingTop:"2px"},children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",class:"bi bi-box-arrow-up-right",viewBox:"0 0 16 16",style:{stroke:"black",strokeWidth:"0.4"},children:[(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),(0,f.jsx)("path",{"fill-rule":"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"})]})});function Kt(t){var e,i,o;const[r,l]=(0,n.useState)(t.product),[a]=(0,v.QN)("whatmorePrimaryFont"),[d]=(0,v.QN)("whatmoreShopId"),[s]=(0,v.QN)("whatmoreSecondaryColor"),[u]=(0,v.QN)("websiteLanguage");(0,n.useEffect)((()=>{(0,p.w4b)(d)&&(0,ut.ck)(r,(0,p.NCy)(d),d).then((t=>{l(t)}))}),[]);const h=t.FONT_SIZE,x=t.data,m=t.itemPrice;let g,w,y;var b,C,S;"STRDOIDF6O7"==d&&(g=null===x||void 0===x||null===(b=x.variants)||void 0===b?void 0:b.find((e=>e.id==t.selectedVariantId)),w=null===(C=g)||void 0===C?void 0:C.title,y=null===(S=g)||void 0===S?void 0:S.productLink);const k=(e=>{const i=null===x||void 0===x||null===(e=x.variants)||void 0===e?void 0:e.find((e=>e.id==t.selectedVariantId));return null!==i&&void 0!==i&&i.compare_at_price&&parseFloat(i.compare_at_price)>0?i.compare_at_price:null})(),I=k&&0!=k&&k>m?Math.round((k-m)/k*100):NaN;return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(dt.s,{className:"wht-shn-title",direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,f.jsxs)(dt.s,{cursor:"pointer",onClick:function(){window.location.href=function(t){return(0,p.BLb)(d)?("STRDOIDF6O7"==d?y:t.product_link)+"?"+(0,p.VCz)(d)+"&"+(0,p.Spk)(d)+"&"+(0,p.$lz)(d)+((0,p.N0t)(d)?"&currency="+t.currency:""):("STRDOIDF6O7"==d?y:t.product_link)+((0,p.N0t)(d)?"?currency="+t.currency:"")}(r)},sx:{display:"flex",gap:"6px"},children:[(0,f.jsx)(j.E,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:h,sx:{color:"black",lineHeight:"140% !important",fontFamily:a+" !important"},as:"b",children:"STRDOIDF6O7"==d&&null!==(e=w)&&void 0!==e?e:null===x||void 0===x?void 0:x.title}),(0,f.jsx)(qt,{iconSize:1.1*h})]}),(0,f.jsxs)(dt.s,{direction:"row",gap:"6px",paddingTop:"4px",children:[k&&k>m&&(0,f.jsx)(j.E,{as:"s",padding:"2px",fontSize:1.2*h,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:a+" !important"},children:(0,ut.Sb)(parseFloat((0,yt.U)()?k/100:k)," ",d,r.currency,!0)}),(0,f.jsx)(j.E,{as:"b",padding:"2px",fontSize:1.2*h,fontWeight:"semibold !important",sx:{color:"black",fontFamily:a+" !important"},children:(0,ut.Sb)(parseFloat((0,yt.U)()?m/100:m),"",d,r.currency,!0)}),!isNaN(I)&&0!=I&&(0,f.jsx)(c.az,{display:"flex",backgroundColor:"green"==(0,p.ub$)(d)?"#343434"==s?(0,p.ub$)(d):s:(0,p.ub$)(d),alignItems:"center",borderRadius:"4px",width:"fit-content",px:"6px",children:(0,f.jsx)(j.E,{fontSize:(0,p.mOK)(d)?"14px !important":1.1*h,fontWeight:"normal !important",sx:{color:(0,p.BRY)(d)+" !important",fontFamily:a+" !important"},children:(0,p.mOK)(d)?`${I}% ${null!==(i=null===tt.m||void 0===tt.m||null===(o=tt.m[u])||void 0===o?void 0:o.off)&&void 0!==i?i:"off"}`:`Save ${(0,ut.Sb)(parseFloat(k/100-m/100)," ",d,r.currency)}`})})]}),"61412737206"==d&&(0,f.jsx)(j.E,{fontSize:"11px",color:"#f4f4ec",children:"Tax included. Free shipping on all orders."})]})})}var Gt=i(4418);function Zt(t){var e,i;const[o]=(0,v.QN)("whatmorePrimaryFont"),[r]=(0,v.QN)("whatmoreShopId"),{setShowOptionsChart:l}=(0,n.useContext)(oe),[a,d]=(0,n.useState)({}),[u]=(0,v.QN)("whatmoreUITheme"),h=(0,v.Xd)("whatmoreSecondaryColorShade300"),x=t.setSelectedColor,m=t.selectOptionFirstHandler,g=t.selectOptionSecondHandler,w=t.selectOptionThirdHandler,b=t.isVariantAvailable,C=t.FONT_SIZE,S=t.data,k=(t,e,i)=>{if(2==i)d((i=>({...i,[t]:e})));else if(1==i)d((i=>{var n,o,r,l;return{...i,[t]:e,[null===S||void 0===S||null===(n=S.options)||void 0===n||null===(o=n[2])||void 0===o?void 0:o.name]:null===S||void 0===S||null===(r=S.variants)||void 0===r||null===(l=r.find((t=>(null===t||void 0===t?void 0:t.option2)==e)))||void 0===l?void 0:l.option3}}));else{var n,o;const i=null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===o?void 0:o.option2;d((n=>{var o,r,l,a,d,s,c,u;return{...n,[null===S||void 0===S||null===(o=S.options)||void 0===o||null===(r=o[1])||void 0===r?void 0:r.name]:null===S||void 0===S||null===(l=S.variants)||void 0===l||null===(a=l.find((t=>(null===t||void 0===t?void 0:t.option1)==e)))||void 0===a?void 0:a.option2,[null===S||void 0===S||null===(d=S.options)||void 0===d||null===(s=d[2])||void 0===s?void 0:s.name]:null===S||void 0===S||null===(c=S.variants)||void 0===c||null===(u=c.find((t=>(null===t||void 0===t?void 0:t.option2)==i)))||void 0===u?void 0:u.option3,[t]:e}}))}};return(0,n.useEffect)((()=>{d((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===S||void 0===S||null===(n=S.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===S||void 0===S||null===(r=S.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===S||void 0===S||null===(a=S.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===S||void 0===S||null===(s=S.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===S||void 0===S||null===(u=S.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===S||void 0===S||null===(e=S.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]),(0,f.jsx)(dt.s,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===S||void 0===S||null===(e=S.options)||void 0===e?void 0:e.length)>0&&(0,f.jsx)(dt.s,{direction:"column",width:"100%",gap:"4px",children:null===S||void 0===S||null===(i=S.options)||void 0===i?void 0:i.map(((e,i)=>{var n,d,v,I,_,z;return(0,f.jsx)(f.Fragment,{children:"mlveda_country"!==(null===e||void 0===e?void 0:e.name)&&((null===e||void 0===e||null===(n=e.values)||void 0===n?void 0:n.length)>1||"Colour"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(d=e.name)||void 0===d?void 0:d.toLowerCase().includes("color"))||1==(null===e||void 0===e||null===(v=e.values)||void 0===v?void 0:v.length)&&(null===e||void 0===e?void 0:e.position)>1&&(null===e||void 0===e?void 0:e.position)==(null===S||void 0===S||null===(I=S.options)||void 0===I?void 0:I.length))&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(dt.s,{className:"wht-shn-optype",justifyContent:"space-between",alignItems:"center",children:[(0,f.jsx)(j.E,{fontSize:1*C+"px !important",sx:{color:"black",fontFamily:o+" !important",fontWeight:"bold !important"},children:null===e||void 0===e?void 0:e.name}),"Size"===e.name&&(0,p.u1b)(r)?(0,f.jsx)(dt.s,{marginTop:"4px",whiteSpace:"nowrap",cursor:"pointer",children:(0,f.jsx)(j.E,{fontSize:.7*C,as:"u",sx:{color:"black !important",fontFamily:o+" !important"},onClick:()=>{null!==l&&l(!0)},children:(0,p.A5I)(r)})}):(0,f.jsx)(f.Fragment,{})]}),(0,f.jsx)(Gt.z,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:null===e||void 0===e||null===(_=e.values)||void 0===_?void 0:_.map((n=>{var l,d,s,v,I,_,z,E,T,N;const F=b(n,i),A=0==i||S.variants.find((t=>{var e,o;return t[`option${i}`]==(null===(e=Object.entries(a))||void 0===e||null===(o=e[i-1])||void 0===o?void 0:o[1])&&t[`option${i+1}`]==n}));return("Colour"===(null===e||void 0===e?void 0:e.name)||null!==e&&void 0!==e&&null!==(l=e.name)&&void 0!==l&&l.toLowerCase().includes("color"))&&A&&((null===t||void 0===t||null===(d=t.finalArr)||void 0===d?void 0:d.length)>0&&(null===t||void 0===t||null===(s=t.finalArr)||void 0===s||!s.includes(null))||(null===t||void 0===t||null===(v=t.finalArrExternal)||void 0===v?void 0:v.length)>0)?(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(dt.s,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,f.jsx)(c.az,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,p.tM2)(r),size:"sm",border:a[null===e||void 0===e?void 0:e.name]===n?`2px solid ${(0,p.Usu)(r)} !important`:"",cursor:"pointer",width:"fit-content !important",onClick:()=>{k(null===e||void 0===e?void 0:e.name,n,i),x(n),0===i&&m(n),1===i&&g(n),2===i&&w(n)},children:(0,f.jsx)(y._,{padding:"2px",borderRadius:(0,p.tM2)(r),width:"58px",height:"58px",src:(0,st.b)(null!==(I=null===t||void 0===t||null===(_=t.finalArr)||void 0===_||null===(z=_.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===z?void 0:z.src)&&void 0!==I?I:null===t||void 0===t||null===(E=t.finalArrExternal)||void 0===E||null===(T=E.find((t=>(null===t||void 0===t?void 0:t.color)==n)))||void 0===T?void 0:T.optionsrc,"?width=400&height=400")})})},n)}):A&&(0,f.jsx)(dt.s,{className:"wht-shn-opt",paddingBottom:"8px",paddingRight:"8px",children:(0,f.jsx)(J.$,{isDisabled:!F,size:"sm",borderRadius:"round"==u?"5px":0,bg:a[null===e||void 0===e?void 0:e.name]===n&&F?(null!==(N=(0,p.j2L)(r))&&void 0!==N?N:h)+" !important":(0,p.R25)(r)+" !important",width:"fit-content !important",height:"fit-content !important",style:{padding:"4px 8px"},onClick:()=>{"76408193304"!=r||"Size"!=(null===e||void 0===e?void 0:e.name)||"Customize"!=n?(k(null===e||void 0===e?void 0:e.name,n,i),0===i&&m(n),1===i&&g(n),2===i&&w(n)):window.location.href=t.product.product_link},children:(0,f.jsx)(j.E,{as:F?"p":"s",textDecoration:F?"none":"line-through",fontSize:.9*C+"px !important",sx:{fontFamily:o+" !important",fontWeight:"normal !important",color:a[null===e||void 0===e?void 0:e.name]===n&&F?(0,p.L7T)(r)+" !important":(0,p.Egc)(r)+" !important"},children:n})})},n)}))}),i===(null===S||void 0===S||null===(z=S.options)||void 0===z?void 0:z.length)-1&&(0,f.jsx)(s.o,{paddingTop:"8px",width:"100%",children:(0,f.jsx)(at.c,{color:t.dividerColor,size:"xs"})})]})})}))})})}var Jt=i(8385);function te(t){var e,i,o,r,l,a,d,u,h,m,g,w,j,b,C,S,I,_,z,E,T;const[N,F,A,L]=(0,x.A)();var P=.4*L*.8,B=P*(16/9)*.6*.8;const O=1.1*P,D=O*(16/9)*.8;var W=.12*P;const[V,Q]=(0,n.useState)(!1),M=t.data,H=t.event,U=t.product,X=t.setOpenShopNow,Y=t.setLockSwiper,[$,q]=(0,n.useState)({});(0,n.useEffect)((()=>{q((t=>{var e,i,n,o,r,l,a,d,s,c,u,h;return{...t,[null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.name]:null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[0])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option1))&&(null===t||void 0===t?void 0:t.available)})))||void 0===o?void 0:o.option1,[null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name]:null===M||void 0===M||null===(a=M.variants)||void 0===a||null===(d=a.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[1])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option2))&&(null===t||void 0===t?void 0:t.available)})))||void 0===d?void 0:d.option2,[null===M||void 0===M||null===(s=M.options)||void 0===s||null===(c=s[2])||void 0===c?void 0:c.name]:null===M||void 0===M||null===(u=M.variants)||void 0===u||null===(h=u.find((t=>{var e,i,n;return(null===M||void 0===M||null===(e=M.options)||void 0===e||null===(i=e[2])||void 0===i||null===(n=i.values)||void 0===n?void 0:n.includes(null===t||void 0===t?void 0:t.option3))&&(null===t||void 0===t?void 0:t.available)})))||void 0===h?void 0:h.option3}}))}),[]);const K=(t,e)=>{var i,n,o,r,l,a,d,s,c,u;if(null===M||void 0===M||null===(i=M.options)||void 0===i||!i.length)return!1;const h=null===M||void 0===M||null===(n=M.options)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.name,p=null===M||void 0===M||null===(r=M.options)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.name;null===M||void 0===M||null===(a=M.options)||void 0===a||null===(d=a[2])||void 0===d||d.name;switch(null===M||void 0===M||null===(s=M.options)||void 0===s?void 0:s.length){case 1:return null===M||void 0===M||null===(c=M.variants)||void 0===c?void 0:c.some((e=>e.option1===t&&e.available));case 2:var v;return 0===e?null===M||void 0===M||null===(v=M.variants)||void 0===v?void 0:v.some((e=>e.option1===t&&e.available)):null===M||void 0===M||null===(u=M.variants)||void 0===u?void 0:u.some((e=>e.option2===t&&e.option1===$[h]&&e.available));case 3:var x,m,g;if(0===e)return null===M||void 0===M||null===(x=M.variants)||void 0===x?void 0:x.some((e=>e.option1===t&&e.available));if(1===e)return null===M||void 0===M||null===(m=M.variants)||void 0===m?void 0:m.some((e=>e.option2===t&&e.option1===$[h]&&e.available));if(2===e)return null===M||void 0===M||null===(g=M.variants)||void 0===g?void 0:g.some((e=>e.option3===t&&e.option1===$[h]&&e.option2===$[p]&&e.available));default:return!1}},[G,Z]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option1;if(t&&K(t,0))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option1)||""})),[J,tt]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option2;if(t&&K(t,1))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option2)||""})),[et,it]=(0,n.useState)((()=>{var t,e;for(let r=0;r<(null===M||void 0===M||null===(i=M.variants)||void 0===i?void 0:i.length);r++){var i,n,o;const t=null===M||void 0===M||null===(n=M.variants)||void 0===n||null===(o=n[r])||void 0===o?void 0:o.option3;if(t&&K(t,2))return t}return(null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.option3)||""})),[nt,ot]=(0,n.useState)(),[rt,lt]=(0,n.useState)(1),[ct,ut]=(0,n.useState)(),[ht,pt]=(0,n.useState)(0),[vt,xt]=(0,n.useState)(!1),[mt,gt]=(0,n.useState)(!1),[ft,wt]=(0,n.useState)(U.thumbnail_image),jt=(0,v.Xd)("whatmoreUITheme"),yt=(0,v.Xd)("whatmoreShopId"),bt=(0,n.useCallback)((t=>{Z(t)}),[]),Ct=(0,n.useCallback)((t=>{tt(t)}),[]),St=(0,n.useCallback)((t=>{it(t)}),[]);(0,n.useEffect)((()=>{var t,e;const i=ee(M,G,J,et);ot(null!==i&&void 0!==i?i:null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.id),ut(ie(M,i)),lt(1),gt(!1);const n=ne(M,i);null!==n&&wt(n)}),[G,J,et]),(0,n.useEffect)((()=>{var t,e;const i=void 0===nt?null===M||void 0===M||null===(t=M.variants)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.price:ie(M,nt);ut(i*rt)}),[rt]),(0,n.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view"),i=document.getElementById("whatmore-size-chart");i&&i.contains(t.target)||!e||e.contains(t.target)||(X(!1),Y(!1))}function e(t){t.stopPropagation(),i.scrollTop+=t.deltaY}document.addEventListener("click",t);const i=document.getElementById("whatmore-shopnow-view");return null===i||void 0===i||i.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),i.removeEventListener("wheel",e)}}),[]),(0,n.useEffect)((()=>{(0,Ht.Eo)((0,p.NCy)(yt),yt).then((t=>t.json())).then((t=>{pt(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[vt]);const kt=`${k.i7`
124
124
  0% {
125
125
  transform: translateY(100%);
126
126
  }
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[760],{1985:function(e,t,n){n.r(t);var r=n(5830),o=n(9950),s=n(1348),a=n(6649),i=n(4414);const l=o.lazy((()=>Promise.all([n.e(286),n.e(725),n.e(199)]).then(n.bind(n,3350))));t.default=function(e){const[t]=(0,r.QN)("whatmoreShopId"),[n]=(0,r.QN)("whatmoreHeading"),[c,u]=(0,o.useState)(["initial",window.pageYOffset]),[d,h]=(0,o.useState)(!1),w="2665447536"==t?30:10,f=(0,r.Xd)("isLandingSharedLink");(0,o.useEffect)((()=>{if(!(0,s.FlM)(t))return;const e=w;let n=window.pageYOffset,r=!1;const o=()=>{const t=window.pageYOffset;var o,s;Math.abs(t-n)<e?r=!1:(s=!0,u(o=[t>n?"scrolled-down":"scrolled-up",t]),o[1]>w&&h(s),n=t>0?t:0,r=!1)},a=()=>{r||(window.requestAnimationFrame(o),r=!0)};return window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)}),[]);const[g,v,m]=(0,a.A)({triggerOnce:!0});let p=!0;return"STRI4V3OYCH"==t&&null==localStorage.getItem("wht_marunaka")&&(p=!1),p?(0,i.jsx)("div",{ref:g,style:{display:"block",height:"100%"},children:d||v||f||!(0,s.FlM)(t)||(0,s.wQ2)(t)?(0,i.jsx)(l,{heading:n,shopId:t}):(0,i.jsx)("div",{})}):(0,i.jsx)(i.Fragment,{})}},6649:function(e,t,n){var r=n(9950);t.A=({triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:o=0}={})=>{const[s,a]=(0,r.useState)(!1),[i,l]=(0,r.useState)(null),c=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const r=new IntersectionObserver(((t,n)=>{t.forEach((t=>{l(t),t.isIntersecting?(a(!0),e&&n.disconnect()):e||a(!1)}))}),{root:t,rootMargin:n,threshold:o});return c.current&&r.observe(c.current),()=>{r.disconnect()}}),[e,t,n,o]),[c,s,i]}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[374],{1941:function(n,e,i){i.d(e,{A:function(){return h}});var t=i(5830),r=i(9950);function o(n){if(!n)return{};var e={};return Array.from(n.attributes).forEach((n=>{var i;e[n.name]=(i=n.value,isNaN(+i)?i:+i)})),e}function a(...n){try{var e;const i=document.getElementById("whatmorePreviewMode");if(!i)return null;const t=null===n||void 0===n?void 0:n[0];if(!t)return!0;let r={};return r=t.includes("function")?{}:o(i),null!==(e=r)&&void 0!==e&&e[t]?r[t]:null}catch(i){return null}}var s=function({disablePreview:n=!1}={}){var e,i,t=n?window.innerHeight:null!==(e=a("height-wh"))&&void 0!==e?e:window.innerHeight,o=n?window.innerWidth:null!==(i=a("width-wh"))&&void 0!==i?i:window.innerWidth,[s,d]=[t,o];const[c,l]=(0,r.useState)([s>d?"portrait":"landscape",s,d]);return(0,r.useLayoutEffect)((()=>{function e(){var e,i,t=n?window.innerHeight:null!==(e=a("height-wh"))&&void 0!==e?e:window.innerHeight,r=n?window.innerWidth:null!==(i=a("width-wh"))&&void 0!==i?i:window.innerWidth,[o,s]=[t,r];l(o>s?["portrait",o,s]:["landscape",o,s])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}}),[]),c};const d=(0,t.Xd)("whatmoreShopId");function c(){if("STRI4V3OYCH"==d){const n=document.querySelector(".whatmore-base").closest("section");return[window.innerHeight,n.getBoundingClientRect().width]}return[window.innerHeight,window.innerWidth]}var l=function(){var[n,e]=c();const[i,t]=(0,r.useState)([n>e?"portrait":"landscape",n,e]);return(0,r.useLayoutEffect)((()=>{function n(){var[n,e]=c();t(n>e?["portrait",n,e]:["landscape",n,e])}return window.addEventListener("resize",n),window.addEventListener("orientationchange",n),screen.orientation&&screen.orientation.addEventListener("change",n),n(),()=>{window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n),screen.orientation&&screen.orientation.removeEventListener("change",n)}}),[]),i};var h=function(n){var e;const i=(0,t.Xd)("isWhatmorePreviewMode"),r=l(),o=s({disablePreview:null!==(e=null===n||void 0===n?void 0:n.disablePreview)&&void 0!==e&&e});return i?o:r}},5100:function(n,e,i){i.r(e);var t=i(9950),r=i(1941),o=i(5830),a=i(4414);const s=t.memo((()=>{if(!(0,o.Xd)("isLandingSharedLink"))return(0,a.jsx)(a.Fragment,{});const[n]=(0,r.A)();return(0,a.jsxs)("div",{className:`shimmer-container ${n}`,children:["portrait"===n?(0,a.jsx)("div",{className:"shimmer-item portrait-full",children:(0,a.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((n,e)=>(0,a.jsx)("div",{className:"shimmer-item landscape-item "+(1===e?"center-item":""),children:(0,a.jsx)("div",{className:"shimmer-effect"})},e))),(0,a.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));e.default=s}}]);