whatmore-react-assets 1.0.604 → 1.0.605
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 +1 -1
- package/static/js/12.8e334d14.chunk.js +1 -0
- package/static/js/196.7c97628d.chunk.js +1 -0
- package/static/js/303.1af40780.chunk.js +2 -0
- package/static/js/{530.dfd08c9a.chunk.js → 530.be11c1f9.chunk.js} +1 -1
- package/static/js/{carousel-d-chunk.cccc6e8b.chunk.js → 554.a9e13047.chunk.js} +1 -1
- package/static/js/{stories-chunk.2f8c33ce.chunk.js → 580.3cff4cc1.chunk.js} +1 -1
- package/static/js/{collection-a-chunk.bee3358e.chunk.js → 622.68f87ebc.chunk.js} +1 -1
- package/static/js/{spotlight-chunk.f5c17be8.chunk.js → 692.8d172813.chunk.js} +1 -1
- package/static/js/{collection-c-chunk.c9b3bf0a.chunk.js → 708.b5c0274e.chunk.js} +1 -1
- package/static/js/74.5f778ef1.chunk.js +1 -0
- package/static/js/790.87564c62.chunk.js +1 -0
- package/static/js/84.daab96f7.chunk.js +1 -0
- package/static/js/891.3f5bdf69.chunk.js +1 -0
- package/static/js/{video-view-chunk.69b3c860.chunk.js → 903.147a1cf8.chunk.js} +1 -1
- package/static/js/959.f2ec40b6.chunk.js +1 -0
- package/static/js/{collection-b-chunk.5d4875ca.chunk.js → 965.5a825fca.chunk.js} +1 -1
- package/static/js/972.d442ade6.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/196.bab49caa.chunk.js +0 -1
- package/static/js/303.d0b4b70e.chunk.js +0 -2
- package/static/js/790.de883a2d.chunk.js +0 -1
- package/static/js/atc-button-with-form-chunk.1635dc52.chunk.js +0 -1
- package/static/js/carousel-a-chunk.11bbfd26.chunk.js +0 -1
- package/static/js/carousel-b-chunk.b1d8cd9f.chunk.js +0 -1
- package/static/js/collection-stories-chunk.250f38db.chunk.js +0 -1
- package/static/js/homepage-chunk.3eb8173c.chunk.js +0 -1
- package/static/js/pdp-chunk.9e9573ed.chunk.js +0 -1
- /package/static/css/{atc-button-with-form-chunk.600c792f.chunk.css → 12.600c792f.chunk.css} +0 -0
- /package/static/css/{carousel-d-chunk.cf7de31d.chunk.css → 554.cf7de31d.chunk.css} +0 -0
- /package/static/css/{stories-chunk.09ea5cb6.chunk.css → 580.09ea5cb6.chunk.css} +0 -0
- /package/static/css/{collection-a-chunk.af6f6f13.chunk.css → 622.af6f6f13.chunk.css} +0 -0
- /package/static/css/{pdp-chunk.969b5249.chunk.css → 692.969b5249.chunk.css} +0 -0
- /package/static/css/{collection-b-chunk.af6f6f13.chunk.css → 708.af6f6f13.chunk.css} +0 -0
- /package/static/css/{spotlight-chunk.969b5249.chunk.css → 74.969b5249.chunk.css} +0 -0
- /package/static/css/{collection-c-chunk.af6f6f13.chunk.css → 84.af6f6f13.chunk.css} +0 -0
- /package/static/css/{carousel-b-chunk.c9532191.chunk.css → 891.c9532191.chunk.css} +0 -0
- /package/static/css/{video-view-chunk.600c792f.chunk.css → 903.600c792f.chunk.css} +0 -0
- /package/static/css/{carousel-a-chunk.cd7c3bc4.chunk.css → 959.cd7c3bc4.chunk.css} +0 -0
- /package/static/css/{collection-stories-chunk.af6f6f13.chunk.css → 965.af6f6f13.chunk.css} +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[12],{9723:function(e,a,r){var t=r(5318);a.Z=void 0;var c=t(r(5045)),l=r(6417),u=(0,c.default)((0,l.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"}),"PlayArrowRounded");a.Z=u}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[196,790,12],{1332:function(t,e,n){var o=n(7313),a=(n(8743),n(7753)),r=n(5254),c=n(6417);e.Z=function(t){return(0,o.useEffect)((()=>{const t=(0,r.oo)((0,a.MO)("whatmoreSecondaryColor"));!function(t,e,n,o){const a="rgba(".concat(t,",").concat(e,",").concat(n,",").concat(o,")"),r="\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ".concat(a,", 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.8em -1.8em 0 0em ").concat(a,", 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 2.5em 0em 0 0em ").concat(a,", 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.75em 1.75em 0 0em ").concat(a,", 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 0em 2.5em 0 0em ").concat(a,", -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em 1.8em 0 0em ").concat(a,", -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -2.6em 0em 0 0em ").concat(a,", -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em -1.8em 0 0em ").concat(a,";\n }\n }\n "),c=document.createElement("style");c.type="text/css",c.innerHTML=r,document.head.appendChild(c)}(t[0],t[1],t[2],.2)}),[]),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("span",{className:"whatmore-loading-indicator"})})}},4658:function(t,e,n){n.r(e),n.d(e,{default:function(){return L}});var o=n(7313),a=n(6090),r=n(7616),c=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),i=n(2575),s=n(7129),l=n(9039),d=(n(3439),n(7753)),m=n(7931),h=n(9018),u=n(9854),p=n(3933),g=n(8866),f=n(868),v=n(342),x=n(3437),y=n(3455),b=n(6417);var w=function(t){var e;const n=t.isMuted,o=null!==(e=t.iconSize)&&void 0!==e?e:30;function a(){t.onToggle()}return(0,b.jsx)("div",{style:{cursor:"pointer"},children:n?(0,b.jsx)(y.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{a()}}):(0,b.jsx)(x.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{a()}})})},j=n(1896),C=n(8984),I=n(58),P=n(6119),k=n(7376),S=n(778),z=n(3433);function M(t){const[e,n]=(0,o.useState)(t.initialMuteState),a=t.events,r=t.activeEventIndex,c=t.setActiveEventIndex,i=(0,d.MO)("whatmoreShopId"),s="portrait"===t.mode;function l(){(0,u.hr)(i)&&t.isCTAPresent||(n(!e),(0,C.KE)()&&(0,I.QV)(),t.onMuteToggle())}const p=t.event;return(0,b.jsx)("div",{style:{position:(0,u.SJ)(i)?"absolute":"relative",top:(0,u.SJ)(i)?0:"",zIndex:1,bottom:(0,u.SJ)(i)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,b.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,b.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",width:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:[!(t.isCTAPresent&&(0,u.hr)(i)||"video"!==p.event_type)&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>l()}),(0,b.jsx)(w,{isMuted:e,onToggle:()=>{l()}})]}),a.length>1&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),c(0===r?a.length-1:r-1)},children:(0,b.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,b.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,b.jsx)(m.Z,{})})})}),(0,b.jsx)("div",{style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),c(r===a.length-1?0:r+1)},children:(0,b.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,b.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,b.jsx)(h.Z,{})})})}),(0,u.cRS)(i)&&(0,b.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:a.map(((t,e)=>{const n=e===r;return(0,b.jsx)("button",{onClick:t=>{t.stopPropagation(),c(e)},style:{width:n?"25px":s?"12px":"14px",height:s?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,u.YFz)(i):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},e)}))})]})]}),(0,b.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>l()})]})})}var Z=function(t){var e,n;const[a,r,c]=(0,g.Z)(),[i,s]=(0,o.useState)(!0),{whatmoreUITheme:m}=(0,o.useContext)(l.I),h=(0,d.MO)("whatmoreVideoTileSize"),{ref:x,inView:y,entry:w}=(0,p.YD)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:C}=(0,o.useContext)(l.I),I=(0,d.MO)("whatmoreShopId"),Z=t.events,E=t.activeEventIndex,L=t.setActiveEventIndex,R=Z[E],F=((0,u.nzC)(I),(0,v.uv)(R)),N=(0,v.WN)(R);if("portrait"===a&&!F)return console.log("enter"),(0,b.jsx)(b.Fragment,{});if("landscape"===a&&!N)return console.log("enter"),(0,b.jsx)(b.Fragment,{});const T=(0,f.V)("portrait"===a?F:N),A=h/100*(0,u.b4p)(I),O=h/100*(0,u.GmU)(I),W="portrait"===a?(0,u.oOc)(I):(0,u.snl)(I),D="portrait"===a?c*A:c*O,V=D*W,_=null!=(null===(e=R.cta)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.cta_link);return(0,o.useEffect)((()=>{l.$.forEach((t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;const n=t.querySelector(".whatmore-base");n&&(n.style.minHeight="0px")}))}),[]),(0,b.jsxs)("div",{ref:x,onClick:()=>{var t,e;(0,k.GF)({userInteractionType:S.K.BANNER_WIDGET_CLICKED,widgetSourceDetails:C,event:Z[E]}),(0,u.hr)(I)&&_&&!(0,u.j1_)(I)&&window.open(null===(t=R.cta)||void 0===t||null===(e=t[0])||void 0===e?void 0:e.cta_link,"_self")},style:{position:"relative",margin:"0 auto",width:(0,u.SJ)(I)?"100%":D,minHeight:(0,u.SJ)(I)?c*W:"",height:(0,u.SJ)(I)?"auto":V,borderWidth:(0,u.alU)(I),borderColor:(0,u.qPe)(I),overflow:"hidden",cursor:"pointer"},children:[(0,b.jsx)(j.Z,{height:"100%",width:"100%",url:T,isPlaying:y,event:R,isVideoMuted:i,setDuration:t.setDuration,source:z.j.BANNER}),(0,b.jsx)(M,{isCTAPresent:_,events:Z,activeEventIndex:E,setActiveEventIndex:L,event:R,mode:a,onMuteToggle:()=>s(!i),initialMuteState:i}),(0,u.j1_)(I)&&(0,b.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"portrait"===a?"12%":"20%"},className:"whatmore-ios-css-relative-fix",children:(0,b.jsx)("div",{children:(0,b.jsx)(P.Z,{event:R,cta:R.cta[0],fontFactor:.6})})})]})};const E=(0,i.Z)({key:"whatmore-css-bv"});var L=function(t){const{whatmoreRootId:e}=(0,o.useContext)(l.I),[n,i]=(0,o.useState)(0),d=t.events,[m,h]=(0,o.useState)(-1);let u;return(0,o.useEffect)((()=>{u&&clearInterval(u);const t="video"===d[n].event_type,e=t?1e3*m:6e3;return t?-1!=m&&(u=setInterval((()=>{i((t=>t===d.length-1?0:t+1))}),e)):u=setInterval((()=>{i((t=>t===d.length-1?0:t+1))}),e),()=>{clearInterval(u)}}),[m,n]),delete r.ZP.styles.global,(0,b.jsx)(c.C,{value:E,children:(0,b.jsx)("div",{children:(0,b.jsx)(a.x,{theme:r.ZP,cssVarsRoot:e,resetCSS:!1,children:(0,b.jsx)(s.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,b.jsx)(Z,{activeEventIndex:n,events:d,setActiveEventIndex:i,setDuration:h})})})})})}},3867:function(t,e,n){var o=n(8816),a=n(417),r=n(4885),c=n(7753),i=n(9039),s=n(7313),l=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,s.useContext)(i.I),[d]=(0,c.j1)("whatmoreSecondaryColor"),[m,h]=(0,c.j1)("productRatings"),u=(0,c.MO)("whatmorePrimaryFont"),p=(t.storeId,t.productId),g=(t.productLink,t.fontSize),f=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===m||"undefined"==typeof m||!(p in m)||m[p].avgRating>5)return(0,l.jsx)(l.Fragment,{});const v=m[p].avgRating,x=m[p].totalRatings;return(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(v))].map(((t,e)=>(0,l.jsx)(o.Z,{sx:{color:d,fontSize:g+"px"}},"star-icon"+e))),v-Math.floor(v)>.2?(0,l.jsx)(a.Z,{sx:{color:d,fontSize:g+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(r.Z,{sx:{color:d,fontSize:g+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map(((t,e)=>(0,l.jsx)(r.Z,{sx:{color:d,fontSize:g+"px"}},"star-outline-icon-"+e))),(0,l.jsx)("div",{children:(0,l.jsx)("div",{width:"2px"})}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{style:{backgroundColor:d,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*g+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",v,"\xa0"]})})}),(0,l.jsx)("div",{children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"important"),t.style.setProperty("font-size",.8*g+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+x+")"]})})]})})}},7129:function(t,e,n){n.d(e,{V:function(){return o}});const o=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},3175:function(t,e,n){var o=n(1332),a=n(5180),r=n(6417);e.Z=function(t){var e,n;const c=null!==(e=t.height)&&void 0!==e?e:"100%",i=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,r.jsxs)("div",{style:{width:i,height:c,overflow:"hidden",minHeight:c,minWidth:i},children:[(0,r.jsx)(a.Z,{height:c,width:i}),(0,r.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,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,r.jsx)(o.Z,{})})})]})}},5180:function(t,e,n){var o=n(6417);e.Z=function(t){var e,n,a;const r=null!==(e=t.height)&&void 0!==e?e:"100%",c=null!==(n=t.width)&&void 0!==n?n:"100%",i=null!==(a=t.borderRadius)&&void 0!==a?a:"10px";return(0,o.jsx)("div",{style:{height:r,width:r,borderRadius:i,overflow:"hidden",minHeight:r,minWidth:c,maxHeight:r,maxWidth:c},children:(0,o.jsx)("div",{style:{minHeight:r,minWidth:c},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(t,e,n){var o=n(7313),a=n(3175),r=n(6417);e.Z=function(t){var e,n,c;const[i,s]=(0,o.useState)(!1),l=o.useRef(0),d=(0,o.useRef)(null),m=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},h=null!==(n=t.height)&&void 0!==n?n:"100%",u=null!==(c=t.width)&&void 0!==c?c:"100%";return(0,o.useEffect)((()=>{l.current=0;const t=setInterval((()=>{l.current=l.current+.03,d.current&&m(l.current,5),l.current>=5&&(l.current=0)}),30);return()=>{clearInterval(t)}}),[t.isPlaying]),(0,r.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:u,height:h,overflow:"hidden"},children:[(0,r.jsx)("div",{style:{width:i?"100%":"0px",height:i?"100%":"0px"},children:(0,r.jsx)("img",{ref:d,src:t.url,style:{objectFit:"cover",height:h,width:u,backgroundColor:"white"},alt:"image player",onLoad:()=>{s(!0)}})}),i?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(a.Z,{width:u,height:h})]})}},4892:function(t,e,n){n.d(e,{Z:function(){return h}});var o=n(7313),a=n(3933),r=n(868),c=n(8984),i=n(7300),s=n(2887),l=n(4862),d=n(6417);var m=function(t){var e,n;const r=(0,o.useRef)(null),[c,i,s]=(0,a.YD)({triggerOnce:!0}),m=null!==(e=t.height)&&void 0!==e?e:"100%",h=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)((()=>{r.current&&(t.isPlaying?r.current.play():(l.G6&&r.current.play(),r.current.pause()))}),[t.isPlaying,i]),(0,d.jsx)("div",{ref:c,style:{width:m,height:h,overflow:"hidden"},children:i?(0,d.jsx)("video",{ref:r,className:"whatmore-video-player",width:h,height:m,preload:"metadata",loop:!0,playsInline:!0,poster:t.isPlaying?t.url:"",muted:!0,src:t.url,style:{backgroundColor:"white"}}):(0,d.jsx)("div",{width:h,height:m,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var h=function(t){var e,n,l;const[h,u,p]=(0,a.YD)({triggerOnce:!0});if((0,i.WJ)(t.event))return(0,d.jsx)(s.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const g=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200;if((0,c.KE)())return(0,d.jsx)(m,{height:"100%",width:"100%",url:(0,r.V)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:g});const f=(0,o.useRef)(null),v=null!==(n=t.height)&&void 0!==n?n:"100%",x=null!==(l=t.width)&&void 0!==l?l:"100%";return(0,o.useEffect)((()=>{f.current&&(t.isPlaying?f.current.play():f.current.pause())}),[t.isPlaying,u]),(0,d.jsx)("div",{ref:h,style:{width:v,height:x,overflow:"hidden"},children:u?(0,d.jsx)("video",{ref:f,className:"whatmore-video-player",width:x,height:v,preload:"metadata",loop:!0,playsInline:!0,muted:!0,src:(0,r.V)(t.url),style:{backgroundColor:"white"}}):(0,d.jsx)("div",{width:x,height:v,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}},868:function(t,e,n){n.d(e,{V:function(){return i}});var o=n(9854),a=n(7753);const r={"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"},c={"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"},i=function(t){const e=(0,a.MO)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,o.zpr)(e))return t;if("AZURECDN"==(0,o.zpr)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(r))if(t.includes(e))return t.replace(e,r[e]);return t}}if("BUNNYCDN"==(0,o.zpr)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(c))if(t.includes(e))return t.replace(e,c[e]);return t}}return t}},9363:function(t,e,n){n.d(e,{s:function(){return r}});var o=n(9854),a=n(7753);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,a.MO)("whatmoreShopId");return"shopify"!=(0,o.Ipo)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}},5456:function(t,e,n){n.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},8866:function(t,e,n){var o=n(7313);function a(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=a();const[r,c]=(0,o.useState)([e>n?"portrait":"landscape",e,n]);return(0,o.useLayoutEffect)((()=>{function t(){var[t,e]=a();c(t>e?["portrait",t,e]:["landscape",t,e])}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)}}),[]),r}},7931:function(t,e,n){var o=n(5318);e.Z=void 0;var a=o(n(5045)),r=n(6417),c=(0,a.default)((0,r.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");e.Z=c},9018:function(t,e,n){var o=n(5318);e.Z=void 0;var a=o(n(5045)),r=n(6417),c=(0,a.default)((0,r.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");e.Z=c},9723:function(t,e,n){var o=n(5318);e.Z=void 0;var a=o(n(5045)),r=n(6417),c=(0,a.default)((0,r.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"}),"PlayArrowRounded");e.Z=c},8816:function(t,e,n){var o=n(5318);e.Z=void 0;var a=o(n(5045)),r=n(6417),c=(0,a.default)((0,r.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=c},417:function(t,e,n){var o=n(5318);e.Z=void 0;var a=o(n(5045)),r=n(6417),c=(0,a.default)((0,r.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=c},4885:function(t,e,n){var o=n(5318);e.Z=void 0;var a=o(n(5045)),r=n(6417),c=(0,a.default)((0,r.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=c},8743:function(){},3439:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 303.1af40780.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[303],{9219:function(t,o,i){"use strict";i.d(o,{p_:function(){return l},Rb:function(){return _},jx:function(){return p}});var n=i(2791),r=i(6040),e=i.n(r),c=i(9854);function a(t,o){var i,n;return"STRI2XC0BMX"==o||"STRDG36BBP5"==o?null!==(n=(0,c.QxN)(o)[t])&&void 0!==n?n:t+" ":null!==(i=(0,c.QxN)(o)[t])&&void 0!==i?i:e()(t)}function u(){return null!=window.Shopify||"undefined"!=typeof window.Shopify}function d(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function s(t){if(t%1>=.1){return t.toString().split(".")[0].length>=4?parseInt(t):t.toFixed(2)}return parseInt(t)}function p(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"INR";if(!t||void 0==typeof t)return"";if(!u()){if("70993772860"==i||"72534294803"==i)return"$"+o+d(s(t));"STRY2V4XO5L"!=i&&"STRTFEDEDAP"!=i||(o="");const r="STRY2V4XO5L"==i||"STRTFEDEDAP"==i?t.toFixed(2):s(t);return a(null!==n&&void 0!==n?n:"INR",i)+o+d(r)}const r=window.Shopify.currency?window.Shopify.currency.active:"INR",e=parseFloat(window.Shopify.currency?window.Shopify.currency.rate:"1.0");return a(r,i)+o+d(s(t*e))}async function l(t,o,i){for(let a=0;a<t.products.length;a++){var r,e,c;const u=await(0,n.vX)(t.products[a],o,i);t.products[a].price=null!==(r=u.price)&&void 0!==r?r:t.products[a].price,t.products[a].compare_price=null!==(e=u.compare_at_price)&&void 0!==e?e:t.products[a].compare_price,t.products[a].currency=null!==(c=u.currency_code)&&void 0!==c?c:t.products[a].currency,"STRTFEDEDAP"==i&&(t.products[a].discount=u.discount)}return t}async function _(t,o,i){var r,e,c;const a=await(0,n.vX)(t,o,i);return t.price=null!==(r=a.price)&&void 0!==r?r:t.price,t.compare_price=null!==(e=a.compare_at_price)&&void 0!==e?e:t.compare_price,t.currency=null!==(c=a.currency_code)&&void 0!==c?c:t.currency,t}},5945:function(t,o,i){"use strict";i.d(o,{s:function(){return r}});var n=i(7753);function r(t){const o=(0,n.MO)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==o?t:t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},2791:function(t,o,i){"use strict";i.d(o,{jg:function(){return Ut},TE:function(){return Et},rY:function(){return Mt},OM:function(){return At},vX:function(){return It},Y4:function(){return Ct},ln:function(){return Ot}});var n=i(9854);function r(t){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var n in i)t[n]=i[n]}return t}var e=function t(o,i){function n(t,n,e){if("undefined"!==typeof document){"number"===typeof(e=r({},i,e)).expires&&(e.expires=new Date(Date.now()+864e5*e.expires)),e.expires&&(e.expires=e.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var a in e)e[a]&&(c+="; "+a,!0!==e[a]&&(c+="="+e[a].split(";")[0]));return document.cookie=t+"="+o.write(n,t)+c}}return Object.create({set:n,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var i=document.cookie?document.cookie.split("; "):[],n={},r=0;r<i.length;r++){var e=i[r].split("="),c=e.slice(1).join("=");try{var a=decodeURIComponent(e[0]);if(n[a]=o.read(c,a),t===a)break}catch(u){}}return t?n[t]:n}},remove:function(t,o){n(t,"",r({},o,{expires:-1}))},withAttributes:function(o){return t(this.converter,r({},this.attributes,o))},withConverter:function(o){return t(r({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(o)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),c=e;const a={STRDG36BBP5:"https://flash.andaazfashion.com",STRI2XC0BMX:"https://www.andaazfashion.com"};function u(t){var o,i;return null===t||void 0===t||null===(o=t.product_link)||void 0===o||null===(i=o.split(".com/"))||void 0===i?void 0:i[1]}function d(t){const o=c.get("andaaz_currency_code");return o||null}function s(t){return a[t]}async function p(t,o){const i=s(o);return function(t){const o=t.data.product_data;var i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,compare_at_price:o.mrp,currency_code:o.currency_code,available:"in_stock"==o.stock_status,option1:null,option2:null,option3:null}];const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:"",variants:i,options:n}}(await fetch("".concat(i,"/whatmore/index/index/?url=").concat(u(t)).concat(null==d()?"¤cy_code=GBP":"¤cy_code="+d()),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t))))}const l={STRCGMYX28X:"https://"+window.location.hostname,STRBG6F06XL:"https://"+window.location.hostname,STR1QF8R1DW:"https://"+window.location.hostname},_={S:0,M:1,L:2,XL:3,XXL:4};async function h(t){const o=localStorage.getItem("_whatmore_kt"),i=localStorage.getItem("_whatmore_kt_start_time");if(o&&i&&(new Date).getTime()<=parseInt(i)+6e5)return o;const n=await async function(t){const o="https://api.whatmore.live/product/access/ans?store_id=".concat(t);return await fetch(o).then((t=>t.json()))}(t);return localStorage.setItem("_whatmore_kt",n.token),localStorage.setItem("_whatmore_kt_start_time",(new Date).getTime()),n.token}const m="apiKey";function v(t){return t.product_metadata.sku_id}function f(t){return l[t]}async function w(t,o){const i=f(o);return function(t){var o,i,n;const r=null===(o=t.products)||void 0===o?void 0:o[0];"options"in r&&0!=r.options.length||(r.options=[{product_option_id:"invalid",product_option_value:[{product_option_value_id:"invalid",option_value_id:"46",name:"invalid",image:"",quantity:"1",subtract:"1",price:"0.0000",price_prefix:"+",special_price:"0.0000",special_price_prefix:"+",weight:"0.00000000",weight_prefix:"+",sku:"8903568188345"}],option_id:"1",name:"invalid",type:"radio",value:"",required:"1"}]);var e=r.variants.map((t=>{var o,i;return{id:r.product_id+"::"+(null===t||void 0===t?void 0:t.product_option_id)+"::"+(null===t||void 0===t?void 0:t.product_option_value_id),product_id:r.product_id,title:null===t||void 0===t?void 0:t.title,price:null===t||void 0===t||null===(o=t.itemPrice)||void 0===o?void 0:o.netSellerPayable,compare_at_price:null===t||void 0===t||null===(i=t.itemPrice)||void 0===i?void 0:i.mrp,available:t.status&&t.live,option1:""==t.size?null:t.size,option2:null,option3:null,options:[null===t||void 0===t?void 0:t.size]}}));(e=e.filter((t=>1==t.available))).sort(((t,o)=>_[t.option1]-_[o.option1]));const c=e.map((t=>t.option1));return{id:r.product_id,title:null===(i=r.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.title,body_html:r.short_description,variants:e,options:c}}(await fetch(i+"/kartify/products?skus=".concat(v(t)),{headers:{[m]:await h(o)}}).then((t=>t.json())).catch((t=>console.error(t))))}async function y(t,o,i){f(i);const n=t.split("::"),r=n[0],e="null"==n[1]?null:n[1],c="null"==n[2]?null:n[2];return whatmoreatc(r,o,e,c),await new Promise((t=>setTimeout(t,1500))),"whatmoreatc_success"in localStorage&&"true"==localStorage.getItem("whatmoreatc_success")?{ok:!0,status:200,json:function(){return{}}}:{ok:!1,status:500,json:function(){return{}}}}const S={STRR72TX6AT:"https://www.cbazaar.com"};function T(t){return t.product_metadata.sku_id}function b(t){return S[t]}async function g(t,o){function i(t){const o=t.data.product_data[0];var i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:100*o.price,compare_at_price:100*o.mrp,currency_code:o.currency_code,available:!o.outOfStock,option1:null,option2:null,option3:null,options:[]}];const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:"",variants:i,options:n}}const n=b(o);return i(await fetch(n+"/productsv3api/getproductdetails/"+T(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t))))}const R={STRRPY8YRZE:"https://idaho-o.com"},k=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"Y2tfZTI1OWVmNWVlNzg5MzIzYzIzOWU3ZDE0NjQwNmUwZmZkZGY4NDQ5Yzpjc19iYzdkZjI0MGEwYTgzNDhlZjNhMTI4ZTA3MDRkMmMwNmU5ZGM4NTM5");function j(t){return t.product_metadata.sku_id}function D(t){return R[t]}async function P(t,o){const i=D(o);return function(t){const o=t;var i=Object.entries(o.attributes[0].options).map(((t,i)=>{var n;return{id:(null!==(n=o.variations[i])&&void 0!==n?n:o.variations[0])+":"+o.id+":"+t[1],product_id:o.id,title:"",price:100*o.price,compare_at_price:100*o.price,available:"instock"===o.stock_status,option1:t[1],option2:null,option3:null,options:[t[1]]}}));const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,options:n}}(await fetch(i+"/wp-json/wc/v3/products/"+j(t),{method:"GET",headers:{Authorization:"Basic "+k}}).then((t=>t.json())).catch((t=>console.error(t))))}async function N(t,o,i){const n=t.split(":"),r=n[0],e=n[1],c=n[2],a=D(i)+"/wp-admin/admin-ajax.php",u={Authorization:"Basic "+k},d=new FormData;d.append("action","woocommerce_ajax_add_to_cart"),d.append("product_id",e),d.append("product_sku",""),d.append("quantity",o),d.append("variation_id",r),d.append("variation[attribute_pa_size]",c?c.toLowerCase():"");return await fetch(a,{method:"POST",headers:u,body:d}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const B={STRGXL92H5M:"https://webapi.jaipurrugs.com"};async function G(t){const o=localStorage.getItem("_whatmore_jrugs_kt"),i=localStorage.getItem("_whatmore_jrugs_end_time");if(o&&i&&(new Date).getTime()<=parseInt(i))return o;const n=await async function(t){return await fetch("https://webapi.jaipurrugs.com/api/oauth/access_token",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:"test@pixxeldigital.com",Password:"test@123",client_id:"DD92F35C-FA0F-48A8-AF09-13197463D6CF",client_secret:"373C883D-350F-4823-BEDD-F85241777825",grant_type:"password"})}).then((t=>t.json()))}();return localStorage.setItem("_whatmore_jrugs_kt",n.token),localStorage.setItem("_whatmore_jrugs_end_time",(new Date).getTime()+6e5),n.token}function C(t){return B[t]}async function O(t,o){const i=C(o);return function(t){const o=null===t||void 0===t?void 0:t[0],i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,available:"in_stock"==o.stock_status,compare_at_price:o.mrp,option1:null,option2:null,option3:null}];return{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,currency_code:o.currency_code,options:[]}}(await fetch(i+"/api/WebsiteMaster/test/Whatmore-product-detail",{method:"POST",body:JSON.stringify({product_id:t.product_id}),headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(await G())}}).then((t=>t.json())).catch((t=>console.error(t))))}var U;const M={STRMM0QP0CU:"https://"+window.location.hostname},E=null!==(U=c.get("form_key"))&&void 0!==U?U:"undefined",A=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"ds243corrt3qkd1rhoeyfes3ztefxjae");function I(t){return t.product_metadata.sku_id}function z(t){return M[t]}async function F(t,o){var i=await async function(t){const o=z(t);return(await fetch(o+"/rest/V1/products/attributes/ready_to_wear_sizes",{method:"GET",headers:{Authorization:"Bearer "+A}}).then((t=>t.json())).catch((t=>console.error(t)))).options.reduce(((t,o,i)=>(o.value&&o.label&&(t[o.value]=o.label),t)),{})}(o),n=[];return t.split(",").forEach((t=>{t in i&&n.push(t+":"+i[t])})),n}async function L(t){var o=[];return t.options.forEach((t=>{t.values.forEach((i=>{"Ready to wear"==i.title&&o.push(t.option_id+":"+i.option_type_id)}))})),o.length>0?o[0]:void 0}async function X(t,o){async function i(t){const i=t,n=i.extension_attributes.is_ready_to_ware,r=i.custom_attributes.reduce(((t,o,i)=>(t[o.attribute_code]=o.value,t)),{});async function e(){var t;return{id:i.id,title:i.name,body_html:r.description,variants:[{id:"single_option::"+i.id,product_id:i.id,title:"",price:100*(null!==(t=r.special_price)&&void 0!==t?t:i.price),compare_at_price:100*i.price,available:!0,option1:i.extension_attributes.stock_item.item_id,option2:null,option3:null,options:[i.extension_attributes.stock_item.item_id]}],images:[{id:i.id,product_id:i.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:["single_option::"+i.id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:[i.extension_attributes.stock_item.item_id]}]}}if(0==n)return await e();if(!("ready_to_wear_sizes"in r))return await e();const c=await F(r.ready_to_wear_sizes,o),a=await L(t);return a?await async function(t,o){const n=t.map(((t,n)=>{var e;const c=i.extension_attributes.stock_item.item_id,a=t.split(":")[0],u=t.split(":")[1];return{id:"multi_option::"+i.id+":"+c+":"+u+":"+a+":"+o,product_id:i.id,title:"",price:100*(null!==(e=r.special_price)&&void 0!==e?e:i.price),compare_at_price:100*i.price,available:!0,option1:u,option2:null,option3:null,options:null}})),e=t.map(((t,o)=>{t.split(":")[0];return t.split(":")[1]}));return{id:i.id,title:i.name,body_html:r.description,variants:n,images:[{id:i.id,product_id:i.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:["single_option::"+i.id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:e}]}}(c,a):await e()}const n=z(o),r=await fetch(n+"/rest/default/V1/products/"+I(t),{method:"GET",headers:{Authorization:"Bearer "+A,"User-Agent":"PostmanRuntime/7.32.3"}}).then((t=>t.json())).catch((t=>console.error(t)));return await i(r)}async function x(t,o,i){var n,r;if(t.startsWith("single_option::")){const n=t.split("::")[1],r=z(i)+"/ajaxcart",e={Authorization:"Bearer "+A},c=new FormData;c.append("product",n),c.append("item",n),c.append("qty",o),c.append("form_key",E);return await fetch(r,{method:"POST",headers:e,body:c}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const e=t.split("::")[1].split(":"),c=e[0],a=(e[1],e[2]),u=(e[3],null!==(n=e[4])&&void 0!==n?n:void 0),d=null!==(r=e[5])&&void 0!==r?r:void 0,s=z(i)+"/ajaxcart",p={Authorization:"Bearer "+A},l=new FormData;l.append("product",c),l.append("item",c),l.append("qty",o),l.append("options["+u+"]",d),l.append("options[size_"+u+"]",a),l.append("form_key",E);return await fetch(s,{method:"POST",headers:p,body:l}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const $={STRK70X2OVV:"http://dev-panash.panashindia.com",STR3PNIYEZ6:"https://www.panashindia.com"};function Y(t){return t.product_metadata.sku_id}function V(t){return $[t]}async function K(t,o){function i(t){const o=t.data.product_data;var i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:100*o.price,compare_at_price:100*o.mrp,currency_code:o.currency_code,available:!0,option1:null,option2:null,option3:null,options:[]}];const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:"",variants:i,options:n}}const n=V(o);return i(await fetch(n+"/productsv3api/Productdetails/index/sku/"+Y(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t))))}const J={STRVIY73X3V:"https://staging.samyakk.com",STRBXUH5UGQ:"https://www.samyakk.com"};function Z(t){var o,i;return null===t||void 0===t||null===(o=t.product_link)||void 0===o||null===(i=o.split(".com/"))||void 0===i?void 0:i[1]}function H(t){return J[t]}async function W(t,o){const i=H(o);return function(t){var o;const i=t;var n=[{id:i.id,product_id:i.id,title:i.name,price:i.price,currency_code:null!==(o=i.currency_code)&&void 0!==o?o:"INR",available:i.stock_status,option1:null,option2:null,option3:null}];return n=n.filter((t=>1==t.available)),{id:i.id,title:i.name,body_html:"",variants:n,options:[]}}(await fetch(i+"/rest/V2/get/product/"+Z(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t))))}const q={STRY2V4XO5L:"https://usqa.utsav.bz",STRTFEDEDAP:"https://www.utsavfashion.com"};function Q(t){var o,i;return null===t||void 0===t||null===(o=t.product_link)||void 0===o||null===(i=o.split("/product/"))||void 0===i?void 0:i[1]}function tt(t){return q[t]}function ot(t){var o;return null!==(o=c.get("currency_code"))&&void 0!==o?o:"USD"}async function it(t,o){const i=tt(o);return function(t){var o;const i=t.data.product_data;var n=[{id:i.product_id,product_id:i.product_id,title:i.product_title,price:i.price,available:"in_stock"==i.Stock_status,compare_at_price:i.mrp,currency_code:null!==(o=i.currency_code)&&void 0!==o?o:"INR",option1:null,option2:null,option3:null}];return n=n.filter((t=>1==t.available)),{id:i.product_id,title:i.product_title,body_html:"",options:[],variants:n,discount:i.discount_percentage}}(await fetch(i+"/rest/default/V1/utsav/product/detail?url=".concat(Q(t)),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).then((t=>JSON.parse(t))).catch((t=>console.error(t))))}const nt={STRNV8MHJTF:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR6HU283UZ:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR9T3LLEJB:"https://cart-pim.wforwoman.com/api/v1/whatmore",STRWJMIOJNX:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR1D5ONOZX:"https://cart-pim.wforwoman.com/api/v1/whatmore",STRUDQ36YAC:"https://cart-pim.wforwoman.com/api/v1/whatmore"},rt={STRNV8MHJTF:1,STR6HU283UZ:1,STR9T3LLEJB:5,STRWJMIOJNX:2,STR1D5ONOZX:4,STRUDQ36YAC:3},et=window.location.hostname.substring(10,4)+"_cart",ct=window.location.hostname.substring(10,4)+"_carts",at=window.location.hostname.substring(10,4)+"_curr";function ut(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}function dt(t){return rt[t]}function st(t){return nt[t]}function pt(t){var o;return null!==(o=c.get(at))&&void 0!==o?o:"INR"}async function lt(t,o){const i=st(o);return function(t){const o=t.data.product_data[0];var i=Object.entries(o.variation).map((t=>{const o=t[1],i=o.configrable_atribute_value;return{id:o.id_product,product_id:o.id_product,title:"",price:100*o.selling_price,compare_at_price:100*o.price,available:"in-stock"==o.stock_status,option1:i,option2:null,option3:null,options:[i]}}));const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,options:n}}(await fetch(i+"/get-product?url_key="+ut(t)+"&store="+dt(o)+"¤cy="+pt(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}async function _t(t,o,i){const n=st(i),r=c.get(et),e=c.get(ct);var a={varient_id:t,qty:o,store:dt(i)};r&&e&&(a={varient_id:t,qty:o,store:dt(i),cart_id:r,cart_session:e});return await fetch(n+"/add-product",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((t=>t.json())).then((t=>(r||(c.set(et,t.data.cart_id,{expires:365}),c.set(ct,t.data.cart_session,{expires:365})),{ok:!0,status:200,json:function(){return{}}})))}const ht={STRJ5VPPT3U:"https://"+window.location.hostname,STR45JIP5JW:"https://"+window.location.hostname};function mt(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}function vt(t){return ht[t]}async function ft(t,o){const i=vt(o);return function(t){const o=t;null==o.variations&&(o.variations="no-variations");var i=Object.entries(o.variations.split(",")).map((t=>{const i=t[1];return{id:o.product_id+"::"+i,product_id:o.product_id,title:"",price:100*o.price,compare_at_price:100*o.mrp,available:!0,option1:i,option2:null,option3:null,options:[i]}}));const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,options:n}}((await fetch(i+"/catalog/whatsmoreproducts?slug="+mt(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)))).product_detail)}async function wt(t,o,i){const n=vt(i),r=t.split("::"),e=r[0],c=r.length>1?r[1]:"";return await fetch(n+"/cart/addtocart?productid="+e+("no-variations"!==c&&t?"&variation_value="+c:"")+"&qty="+o,{method:"GET"}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const yt="https://www.ninecolours.com";function St(t){const o=t.product_link.split("-");return o[o.length-1]}function Tt(t){return"STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t}function bt(t){return"STRRPY8YRZE"==t}function gt(t){return"STR5KA9X0OZ"==t||"STRR72TX6AT"==t}function Rt(t){return"STRMM0QP0CU"==t}function kt(t){return"STRJ5VPPT3U"==t||"STR45JIP5JW"==t}function jt(t){return"STRCGMYX28X"==t||"STRBG6F06XL"==t||"STR1QF8R1DW"==t}function Dt(t){return"STRK70X2OVV"==t||"STR3PNIYEZ6"==t}function Pt(t){return"STRVIY73X3V"==t||"STRBXUH5UGQ"==t}function Nt(t){return"STRGXL92H5M"==t}function Bt(t){return"STRY2V4XO5L"==t||"STRTFEDEDAP"==t}function Gt(t){return"STRDG36BBP5"==t||"STRI2XC0BMX"==t}async function Ct(t,o){if(Tt(o))return async function(t,o){const i=st(o);return function(t){const o=t.data.product_data[0];var i=Object.entries(o.variation).map((t=>{const o=t[1],i=o.configrable_atribute_value;return{id:o.id_product,product_id:o.id_product,title:"",price:o.selling_price,compare_at_price:o.price,available:"in-stock"==o.stock_status,option1:i,option2:null,option3:null}}));const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image,variant_ids:[o.product_id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:n}]}}}(await fetch(i+"/get-product?url_key="+ut(t)+"&store="+dt(o)+"¤cy="+pt(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(bt(o))return async function(t,o){const i=D(o);return function(t){const o=t;var i=Object.entries(o.attributes[0].options).map(((t,i)=>{var n;return{id:(null!==(n=o.variations[i])&&void 0!==n?n:o.variations[0])+":"+o.id+":"+t[1],product_id:o.id,title:"",price:o.price,compare_at_price:o.price,available:"instock"===o.stock_status,option1:t[1],option2:null,option3:null}}));const n=i.map((t=>t.option1));return{product:{id:o.id,title:o.name,body_html:o.short_description,variants:i,images:[{id:o.images[0].id,product_id:o.id,position:1,src:o.images[0].src,variant_ids:[o.variations[0]]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:n}]}}}(await fetch(i+"/wp-json/wc/v3/products/"+j(t),{method:"GET",headers:{Authorization:"Basic "+k}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(gt(o))return async function(t,o){function i(t){const o=t.data.product_data[0];var i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,compare_at_price:o.mrp,currency_code:o.currency_code,available:!o.outOfStock,option1:null,option2:null,option3:null}];const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:"",variants:i,images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image,variant_ids:[o.product_id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:n}]}}}const n=b(o);return i(await fetch(n+"/productsv3api/getproductdetails/"+T(t),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(Dt(o))return async function(t,o){function i(t){const o=t.data.product_data;var i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,compare_at_price:o.mrp,currency_code:o.currency_code,available:!0,option1:null,option2:null,option3:null}];const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:"",variants:i,images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image,variant_ids:[o.product_id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:n}]}}}const n=V(o);return i(await fetch(n+"/productsv3api/Productdetails/index/sku/"+Y(t),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(Rt(o))return async function(t,o){async function i(t){const i=t,n=i.extension_attributes.is_ready_to_ware,r=i.custom_attributes.reduce(((t,o,i)=>(t[o.attribute_code]=o.value,t)),{});async function e(){var t;return{product:{id:i.id,title:i.name,body_html:r.description,variants:[{id:"single_option::"+i.id,product_id:i.id,title:"",price:null!==(t=r.special_price)&&void 0!==t?t:i.price,compare_at_price:i.price,available:!0,option1:i.extension_attributes.stock_item.item_id,option2:null,option3:null}],images:[{id:i.id,product_id:i.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:[i.id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:[i.extension_attributes.stock_item.item_id]}]}}}if(0==n)return await e();if(!("ready_to_wear_sizes"in r))return await e();const c=await F(r.ready_to_wear_sizes,o),a=await L(t);return a?await async function(t,o){const n=t.map(((t,n)=>{var e;const c=i.extension_attributes.stock_item.item_id,a=t.split(":")[0],u=t.split(":")[1];return{id:"multi_option::"+i.id+":"+c+":"+u+":"+a+":"+o,product_id:i.id,title:"",price:null!==(e=r.special_price)&&void 0!==e?e:i.price,compare_at_price:i.price,available:!0,option1:u,option2:null,option3:null,options:null}})),e=t.map(((t,o)=>(t.split(":")[0],t.split(":")[1])));return{product:{id:i.id,title:i.name,body_html:r.description,variants:n,images:[{id:i.id,product_id:i.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:[i.id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:e}]}}}(c,a):await e()}const n=z(o),r=await fetch(n+"/rest/default/V1/products/"+I(t),{method:"GET",headers:{Authorization:"Bearer "+A}}).then((t=>t.json())).catch((t=>console.error(t)));return await i(r)}(t,o);if(kt(o))return async function(t,o){const i=vt(o);return function(t){const o=t;null==o.variations&&(o.variations="no-variations");var i=Object.entries(o.variations.split(",")).map((t=>{const i=t[1];return{id:o.product_id+"::"+i,product_id:o.product_id,title:"",price:o.price,compare_at_price:o.mrp,available:!0,option1:i,option2:null,option3:null}}));const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image,variant_ids:[o.product_id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:n}]}}}((await fetch(i+"/catalog/whatsmoreproducts?slug="+mt(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)))).product_detail)}(t,o);if(jt(o))return async function(t,o){const i=f(o);return function(t){var o,i,n,r,e;const c=null===(o=t.products)||void 0===o?void 0:o[0];"options"in c&&0!=c.options.length||(c.options=[{product_option_id:"invalid",product_option_value:[{product_option_value_id:"invalid",option_value_id:"46",name:"invalid",image:"",quantity:"1",subtract:"1",price:"0.0000",price_prefix:"+",special_price:"0.0000",special_price_prefix:"+",weight:"0.00000000",weight_prefix:"+",sku:"8903568188345"}],option_id:"1",name:"invalid",type:"radio",value:"",required:"1"}]);var a=c.variants.map((t=>{var o,i;return{id:c.product_id+"::"+(null===t||void 0===t?void 0:t.product_option_id)+"::"+(null===t||void 0===t?void 0:t.product_option_value_id),product_id:c.product_id,title:null===t||void 0===t?void 0:t.title,price:null===(o=t.itemPrice)||void 0===o?void 0:o.netSellerPayable,compare_at_price:null===(i=t.itemPrice)||void 0===i?void 0:i.mrp,available:t.status&&t.live,option1:""==t.size?null:t.size,option2:null,option3:null}}));(a=a.filter((t=>1==t.available))).sort(((t,o)=>_[t.option1]-_[o.option1]));const u=a.map((t=>t.option1));return{product:{id:c.product_id,title:null===(i=c.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.title,body_html:c.short_description,variants:a,images:[{id:c.product_id,product_id:c.product_id,position:1,src:null===(r=c.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.imageUrl,variant_ids:[c.product_id]}],options:[{id:c.product_id,product_id:c.product_id,name:"Size",position:1,values:u}]}}}(await fetch(i+"/kartify/products?skus=".concat(v(t)),{headers:{[m]:await h(o)}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(Pt(o))return async function(t,o){const i=H(o);return function(t){var o;const i=t;var n=[{id:i.id,product_id:i.id,title:i.name,price:i.price,currency_code:null!==(o=i.currency_code)&&void 0!==o?o:"INR",available:i.stock_status,option1:null,option2:null,option3:null}];return n=n.filter((t=>1==t.available)),{product:{id:i.id,title:i.name,body_html:"",variants:n,images:[],options:[]}}}(await fetch(i+"/rest/V2/get/product/"+Z(t),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(Nt(o))return async function(t,o){const i=C(o);return function(t){const o=null===t||void 0===t?void 0:t[0],i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,available:"in_stock"==o.stock_status,compare_at_price:o.mrp,option1:null,option2:null,option3:null}];return{product:{id:o.product_id,title:o.product_title,body_html:o.description,variants:i,images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image,variant_ids:[]}],options:[]}}}(await fetch(i+"/api/WebsiteMaster/test/Whatmore-product-detail",{method:"POST",body:JSON.stringify({product_id:t.product_id}),headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(await G())}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if(Bt(o))return async function(t,o){const i=tt(o);return function(t){var o;const i=t.data.product_data;var n=[{id:i.product_id,product_id:i.product_id,title:i.product_title,price:i.price,available:"in_stock"==i.Stock_status,compare_at_price:i.mrp,currency_code:null!==(o=i.currency_code)&&void 0!==o?o:"INR",option1:null,option2:null,option3:null}];return n=n.filter((t=>1==t.available)),{product:{id:i.product_id,title:i.product_title,body_html:"",variants:n,images:[{id:i.product_id,product_id:i.product_id,position:1,src:i.thumbnail_image,variant_ids:[i.product_id]}],options:[]}}}(await fetch(i+"/rest/default/V1/utsav/product/detail?url=".concat(Q(t)),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).then((t=>JSON.parse(t))).catch((t=>console.error(t))))}(t,o);if(Gt(o))return async function(t,o){const i=s(o);return function(t){const o=t.data.product_data;var i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,compare_at_price:o.mrp,currency_code:o.currency_code,available:"in_stock"==o.stock_status,option1:null,option2:null,option3:null}];const n=(i=i.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:o.product_id,title:o.product_title,body_html:"",variants:i,images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image,variant_ids:[o.product_id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:n}]}}}(await fetch("".concat(i,"/whatmore/index/index/?url=").concat(u(t)).concat(null==d()?"¤cy_code=GBP":"¤cy_code="+d()),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,o);if("STRGA3S8N41"==o){function i(t){const o=t.data.product_data[0];return{product:{id:o.product_id,title:o.product_title,body_html:o.description,variants:[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,compare_at_price:o.mrp,currency_code:o.currency_code,option1:"variant-1",option2:null,option3:null}],images:[{id:o.product_id,product_id:o.product_id,position:1,src:o.thumbnail_image[0],variant_ids:[o.product_id]}]}}}const n=yt;return i(await fetch(n+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:St(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function Ot(t,o){if(Tt(o))return lt(t,o);if(bt(o))return P(t,o);if(gt(o))return g(t,o);if(Dt(o))return K(t,o);if(Rt(o))return X(t,o);if(kt(o))return ft(t,o);if(jt(o))return w(t,o);if(Pt(o))return W(t,o);if(Nt(o))return O(t,o);if(Bt(o))return it(t,o);if(Gt(o))return p(t,o);if("STRGA3S8N41"==o){function i(t){const o=t.data.product_data[0];return{id:o.product_id,title:o.product_title,body_html:o.description,variants:[{id:o.product_id,title:"variant-1",option1:"variant-1",option2:null,option3:null,available:!0,price:o.price,compare_at_price:o.mrp,currency_code:o.currency_code,options:["variant-1"]}],options:[{name:"variant",position:1,values:["variant-1"]}]}}const n=yt;return i(await fetch(n+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:St(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function Ut(t,o,i){if(Tt(i))return await _t(t,o,i);if(bt(i))return await N(t,o,i);if(Rt(i))return x(t,o,i);if(kt(i))return wt(t,o,i);if(jt(i))return y(t,o,i);if("STRGA3S8N41"==i){const i=yt;return await fetch(i+"/whatmore-addtocart ",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t,qty:o})})}return{}}async function Mt(t,o,i){if(Tt(i))return async function(t,o,i){await _t(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj5)(i)?"".concat(r,"/checkout")+"?"+(0,n.awP)(i)+"&"+(0,n.n9s)(i)+"&"+(0,n.Uch)(i):"".concat(r,"/checkout"),window.location.href=e}(t,o,i);if(bt(i))return async function(t,o,i){await N(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj5)(i)?"".concat(r,"/cart")+"?"+(0,n.awP)(i)+"&"+(0,n.n9s)(i)+"&"+(0,n.Uch)(i):"".concat(r,"/cart"),window.location.href=e}(t,o,i);if(Rt(i))return async function(t,o,i){await x(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj5)(i)?"".concat(r,"/checkout/cart")+"?"+(0,n.awP)(i)+"&"+(0,n.n9s)(i)+"&"+(0,n.Uch)(i):"".concat(r,"/checkout/cart"),window.location.href=e}(t,o,i);if(kt(i))return async function(t,o,i){await wt(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj5)(i)?"".concat(r,"/checkout")+"?"+(0,n.awP)(i)+"&"+(0,n.n9s)(i)+"&"+(0,n.Uch)(i):"".concat(r,"/checkout"),window.location.href=e}(t,o,i);if(jt(i))return async function(t,o,i){await y(t,o,i);const r="https://"+window.location.hostname;var e;e=(0,n.lj5)(i)?"".concat(r,"/checkout")+"?"+(0,n.awP)(i)+"&"+(0,n.n9s)(i)+"&"+(0,n.Uch)(i):"".concat(r,"/checkout"),window.location.href=e}(t,o,i);if("STRGA3S8N41"==i){await Ut(t,o,i);const e="https://"+window.location.hostname;var r;r=(0,n.lj5)(i)?"".concat(e,"/cart")+"?"+(0,n.awP)(i)+"&"+(0,n.n9s)(i)+"&"+(0,n.Uch)(i):"".concat(e,"/cart"),window.location.href=r}return{}}async function Et(t){if(Tt(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj5)(t)?"".concat(o,"/cart")+"?"+(0,n.awP)(t)+"&"+(0,n.n9s)(t)+"&"+(0,n.Uch)(t):"".concat(o,"/cart"),window.location.href=i}(t);if(bt(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj5)(t)?"".concat(o,"/cart")+"?"+(0,n.awP)(t)+"&"+(0,n.n9s)(t)+"&"+(0,n.Uch)(t):"".concat(o,"/cart"),window.location.href=i}(t);if(Rt(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj5)(t)?"".concat(o,"/checkout/cart")+"?"+(0,n.awP)(t)+"&"+(0,n.n9s)(t)+"&"+(0,n.Uch)(t):"".concat(o,"/checkout/cart"),window.location.href=i}(t);if(kt(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj5)(t)?"".concat(o,"/cart")+"?"+(0,n.awP)(t)+"&"+(0,n.n9s)(t)+"&"+(0,n.Uch)(t):"".concat(o,"/cart"),window.location.href=i}(t);if(jt(t))return async function(t){const o="https://"+window.location.hostname;var i;i=(0,n.lj5)(t)?"".concat(o,"/cart")+"?"+(0,n.awP)(t)+"&"+(0,n.n9s)(t)+"&"+(0,n.Uch)(t):"".concat(o,"/cart"),window.location.href=i}(t);if("STRGA3S8N41"==t){const i="https://"+window.location.hostname;var o;o=(0,n.lj5)(t)?"".concat(i,"/cart")+"?"+(0,n.awP)(t)+"&"+(0,n.n9s)(t)+"&"+(0,n.Uch)(t):"".concat(i,"/cart"),window.location.href=o}return{}}function At(t){if(Tt(t))return function(t){const o=c.get(et),i=st(t);return fetch(i+"/get-cart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cart_id:o})}).then((t=>t.json())).then((t=>({json:function(){return{item_count:t.data.item_count}}})))}(t);if(bt(t))return function(t){const o=D(t);return fetch(o+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+k}}).then((t=>t.json())).then((t=>({json:function(){var o;return{item_count:null!==(o=t.data.item_count)&&void 0!==o?o:0}}})))}(t);if(Rt(t))return function(t){const o=z(t);return fetch(o+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+A}}).then((t=>t.json())).then((t=>({json:function(){var o;return{item_count:null!==(o=t.data.item_count)&&void 0!==o?o:0}}})))}(t);if(kt(t))return Promise.resolve({json:function(){return{item_count:0}}});if(jt(t))return Promise.resolve({json:function(){return{item_count:0}}});if("STRGA3S8N41"==t){return fetch(yt+"/whatmore-cartcount ",{method:"GET",headers:{"Content-Type":"application/json"}})}return{}}async function It(t,o,i){if(Tt(i))return async function(t,o){const i=await lt(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:pt()}}(t,i);if(bt(i))return async function(t,o){const i=await P(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:"INR"}}(t,i);if(Rt(i))return async function(t,o){const i=await X(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:"INR"}}(t,i);if(kt(i))return async function(t,o){const i=await ft(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:"INR"}}(t,i);if(gt(i))return async function(t,o){const i=await g(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:i.variants[0].currency_code}}(t,i);if(Dt(i))return async function(t,o){const i=await K(t,o);return{price:i.variants[0].price/100,compare_at_price:i.variants[0].compare_at_price/100,currency_code:i.variants[0].currency_code}}(t,i);if(jt(i))return async function(t,o){var i,n,r,e;const c=await w(t,o);return{price:null===(i=c.variants[0])||void 0===i||null===(n=i.itemPrice)||void 0===n?void 0:n.netSellerPayable,compare_at_price:null===(r=c.variants[0])||void 0===r||null===(e=r.itemPrice)||void 0===e?void 0:e.mrp,currency_code:"INR"}}(t,i);if(Pt(i))return async function(t,o){var i,n,r,e;const c=await W(t,o);return{price:null===(i=c.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price,compare_at_price:null,currency_code:null===(r=c.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.currency_code}}(t,i);if(Nt(i))return async function(t,o){var i,n;const r=await O(t,o);return{price:null===(i=r.variants[0])||void 0===i?void 0:i.price,compare_at_price:null===(n=r.variants[0])||void 0===n?void 0:n.compare_at_price,currency_code:r.currency_code}}(t,i);if(Bt(i))return async function(t,o){var i,n,r,e;const c=await it(t,o);return{price:null===(i=c.variants)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.price,compare_at_price:null===(r=c.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.compare_at_price,currency_code:ot(),discount:c.discount}}(t,i);if(Gt(i))return async function(t,o){const i=await p(t,o);return{price:i.variants[0].price,compare_at_price:i.variants[0].compare_at_price,currency_code:i.variants[0].currency_code}}(t,i);if("STRGA3S8N41"==i){const o=await Ot(t,i);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:o.variants[0].currency_code}}return{}}},6040:function(t,o,i){const n=i(500);t.exports=function(t){if("string"!==typeof t)return;const o=t.toUpperCase();return Object.prototype.hasOwnProperty.call(n,o)?n[o]:void 0},t.exports.currencySymbolMap=n},500:function(t){t.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},6143:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[530],{5523:function(n,t,e){e.r(t);var o=e(7313),r=e(8675),i=e(6090),a=e(7616),s=(e(6143),e(7244),e(123),e(9302)),c=e(2575),l=e(3271),h=e(9821),d=e(8866),u=e(7753),m=e(9316),f=e(7129),g=e(9854),x=e(9039),j=e(7300),p=e(4920),C=e(6417);const v=(0,c.Z)({key:"whatmore-css-hv"});function w(n,t){var e=[];const o=t;for(let r=0;r<n.length;r+=o){const t=n.slice(r,r+o);e.push(t)}return e}function F(n){var t;const[e,r]=(0,o.useState)(!1),[i,a]=(0,o.useState)(!1),[s]=(0,u.j1)("whatmoreSecondaryColorShade600"),[c]=(0,u.j1)("whatmoreSecondaryColorShade300"),[h]=(0,u.j1)("whatmorePrimaryFont"),d=null!==(t=n.baseFontSize)&&void 0!==t?t:10,f=n.onClick;return(0,C.jsx)(l.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?c:s,animation:i?m.mT:null,onClick:n=>{n.stopPropagation(),a(!0),f()},sx:{cursor:"pointer"},onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},children:(0,C.jsx)(l.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,C.jsxs)(l.xv,{fontSize:d,fontWeight:"normal",sx:{fontFamily:h+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function y(n){var t;const[e,i,a]=(0,h.Z)();var[s,c]=(0,o.useState)(0);const d=n.events,u=n.onClick,m=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,f=w(d,Math.floor(Math.min(a,d.length)));return(0,C.jsx)(l.M5,{children:(0,C.jsxs)(l.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:f.map(((n,t)=>t>s?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,C.jsx)(l.xu,{style:{margin:"10px"},children:(0,j.B6)(n)||(0,j.WJ)(n)?(0,C.jsx)(p.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}}):(0,C.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,C.jsx)(C.Fragment,{children:s<f.length-1?(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(F,{baseFontSize:.1*i,onClick:()=>{s>=f.length-1||c((n=>n+m))}})}):(0,C.jsx)(C.Fragment,{})})]})})}function
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[530],{5523:function(n,t,e){e.r(t);var o=e(7313),r=e(8675),i=e(6090),a=e(7616),s=(e(6143),e(7244),e(123),e(9302)),c=e(2575),l=e(3271),h=e(9821),d=e(8866),u=e(7753),m=e(9316),f=e(7129),g=e(9854),x=e(9039),j=e(7300),p=e(4920),C=e(6417);const v=(0,c.Z)({key:"whatmore-css-hv"});function w(n,t){var e=[];const o=t;for(let r=0;r<n.length;r+=o){const t=n.slice(r,r+o);e.push(t)}return e}function F(n){var t;const[e,r]=(0,o.useState)(!1),[i,a]=(0,o.useState)(!1),[s]=(0,u.j1)("whatmoreSecondaryColorShade600"),[c]=(0,u.j1)("whatmoreSecondaryColorShade300"),[h]=(0,u.j1)("whatmorePrimaryFont"),d=null!==(t=n.baseFontSize)&&void 0!==t?t:10,f=n.onClick;return(0,C.jsx)(l.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?c:s,animation:i?m.mT:null,onClick:n=>{n.stopPropagation(),a(!0),f()},sx:{cursor:"pointer"},onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},children:(0,C.jsx)(l.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,C.jsxs)(l.xv,{fontSize:d,fontWeight:"normal",sx:{fontFamily:h+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function y(n){var t;const[e,i,a]=(0,h.Z)();var[s,c]=(0,o.useState)(0);const d=n.events,u=n.onClick,m=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,f=w(d,Math.floor(Math.min(a,d.length)));return(0,C.jsx)(l.M5,{children:(0,C.jsxs)(l.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:f.map(((n,t)=>t>s?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,C.jsx)(l.xu,{style:{margin:"10px"},children:(0,j.B6)(n)||(0,j.WJ)(n)?(0,C.jsx)(p.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}}):(0,C.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,C.jsx)(C.Fragment,{children:s<f.length-1?(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(F,{baseFontSize:.1*i,onClick:()=>{s>=f.length-1||c((n=>n+m))}})}):(0,C.jsx)(C.Fragment,{})})]})})}function S(n){var t;const[e,i,a,s]=(0,h.Z)();var[c,d]=(0,o.useState)(0);const u=n.events,m=n.onClick,f=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,g=w(u,Math.floor(Math.min(a,u.length)));return(0,C.jsx)(l.M5,{paddingLeft:s+"px",paddingRight:s+"px",children:(0,C.jsxs)(l.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:g.map(((n,t)=>t>c?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,C.jsx)(l.xu,{style:{margin:"10px"},children:(0,j.B6)(n)||(0,j.WJ)(n)?(0,C.jsx)(p.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}}):(0,C.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,C.jsx)(C.Fragment,{children:c<g.length-1?(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(F,{baseFontSize:.1*i,onClick:()=>{c>=g.length-1||d((n=>n+f))}})}):(0,C.jsx)(C.Fragment,{})})]})})}t.default=function(n){var t;const[e,r,c]=(0,d.Z)(),[h]=(0,u.j1)("whatmoreShopId"),[m]=(0,u.j1)("whatmorePrimaryColor"),[j]=(0,u.j1)("whatmoreSecondaryColor"),[p]=(0,u.j1)("whatmoreTitleFont"),w="portrait"==e?(0,u.MO)("whatmoreTitleFontSizePortrait"):(0,u.MO)("whatmoreTitleFontSize"),{whatmoreRootId:F}=(0,o.useContext)(x.I),k=n.events,M=n.onClick,O=null!==(t=(0,g.aRS)(h))&&void 0!==t?t:p;function b(n){M(n)}return delete a.ZP.styles.global,(0,C.jsx)(s.C,{value:v,children:(0,C.jsx)("div",{children:(0,C.jsx)(i.x,{theme:a.ZP,cssVarsRoot:F,resetCSS:!1,children:(0,C.jsxs)(f.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,C.jsx)(l.M5,{children:(0,C.jsx)(l.xv,{bgColor:m,bgClip:"text",fontSize:w,sx:{fontFamily:O+" !important"},align:"center",children:n.heading})}):(0,C.jsx)(C.Fragment,{}),"landscape"===e?(0,C.jsx)(S,{events:k,onClick:b,seeMoreIncrement:1}):(0,C.jsx)(y,{events:k,onClick:b,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){e.d(t,{mT:function(){return l}});var o,r,i,a=e(168),s=e(686);const c=(0,s.F4)(o||(o=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),l="\n ".concat(c," 0.2s linear;\n"),h=(0,s.F4)(r||(r=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),d=("\n ".concat(h," 0.5s infinite linear;\n"),(0,s.F4)(i||(i=(0,a.Z)(["\n 0% { \n opacity: 1;\n transform: translateY(100%);\n }\n 10%{\n transform: translateY(0%);\n }\n 12%{\n transform: translateY(-5%);\n }\n 20%{\n transform: translateY(0%);\n }\n 95%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n }\n"]))));"\n ".concat(d," ").concat(3,"s ease-in-out;\n")},5945:function(n,t,e){e.d(t,{s:function(){return r}});var o=e(7753);function r(n){const t=(0,o.MO)("whatmoreShopId");return"undefined"==typeof n||"undefined"==n||null==n?"":"6873415750"==t?n:n.replace(/\w\S*/g,(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}))}},6143:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[757],{9085:function(t,e,o){o.r(e),o.d(e,{default:function(){return E}});var n=o(7313),r=(o(3439),o(6090)),i=o(9039),l=o(7616),s=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),a=o(2575),c=o(9821),d=o(8866),p=o(2279),h=o.n(p),u=o(7753),x=o(7129),m=o(1855),y=o(9854),f=o(7376),v=o(778),g=o(4892),w=o(5945),j=o(9219),M=o(6805),C=o(8984),P=o(6417);var b=function(t){var e,o,r,l,s,a,d,p,h,m;const[f,v,b,S,k]=(0,c.Z)(),I=(0,u.MO)("whatmoreShopId"),O="portrait"===k[M.YP],E=(O?1.076*v*(0,y.pEd)(I):v*(0,y.H4g)(I))+"px",N=(O?1.076*v*(0,y.pEd)(I):v*(0,y.H4g)(I))+"px",Z=(O?.965*v*(0,y.pEd)(I):.859*v*(0,y.H4g)(I))+"px",[R,z]=(0,n.useState)(t.event),F=(0,u.MO)("whatmoreSecondaryColor");var T=(0,n.useContext)(x.V);const W=null===(e=t.isOnFocus)||void 0===e||e,Y=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,_=t.onClick,{whatmoreUITheme:D}=(0,n.useContext)(i.I),L=null!==(r=t.animateOnFocus&&(0,y.iWI)(I))&&void 0!==r&&r,[U,A]=(0,n.useState)(!(0,y.N8M)(I)),B=(0,u.MO)("whatmorePrimaryFont"),H=Math.round(+(null===(l=R.products[0])||void 0===l?void 0:l.price)),X=Math.round(+(null===(s=R.products[0])||void 0===s?void 0:s.compare_price)),G=X&&0!=X&&X>H?Math.ceil((X-H)/X*100):NaN,[V,q]=(0,n.useState)(G);return(0,n.useEffect)((()=>{(0,y.N8M)(I)&&(0,j.p_)(R,(0,y.Ipo)(I),I).then((t=>{var e,o,n;z(t),(null===t||void 0===t||null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.discount)&&q(null===t||void 0===t||null===(n=t.products[0])||void 0===n?void 0:n.discount),A(!0)}))}),[]),(0,P.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",T.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",T.tileBottomMMargin+"px","important"))},className:L&&!O?W?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:v},onClick:()=>{_(R)},children:[(0,P.jsx)("div",{style:{borderRadius:"round"==D?"5%":"0px",boxShadow:"round"==D?"0px 0px 5px 0px #B0B0B0":null,height:f,borderWidth:(0,y.alU)(I),borderColor:(0,y.qPe)(I),overflow:"hidden"},children:(0,P.jsx)(g.Z,{height:"100%",width:"100%",url:R.thumbnail_image,isPlaying:W||Y||(0,C.gE)(),event:R})}),(0,P.jsxs)("div",{style:{display:"flex",flexDirection:"column",padding:"12px 4px",gap:"5px"},children:[(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-size",E,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:(0,w.s)(null===(a=R.products[0])||void 0===a?void 0:a.title)}),U&&(0,P.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,y.$zZ)(I)?"row":"row-reverse",justifyContent:(0,y.$zZ)(I)?"flex-start":"flex-end"},children:[(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.Uyp)(I),"important"),t.style.setProperty("font-size",N,"important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,j.jx)(parseFloat(null===(d=R.products[0])||void 0===d?void 0:d.price)," ",I,null===(p=R.products[0])||void 0===p?void 0:p.currency)}),!isNaN(X)&&X>H&&(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.kPs)(I),"important"),t.style.setProperty("font-size",N,"important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,j.jx)(parseFloat(null===(h=R.products[0])||void 0===h?void 0:h.compare_price)," ",I,null===(m=R.products[0])||void 0===m?void 0:m.currency)})]}),!isNaN(V)&&0!=V&&U&&(0,P.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ZJm)(I)?"#343434"==F?(0,y.ZJm)(I):F:(0,y.ZJm)(I),alignItems:"center",borderRadius:"4px",width:"fit-content",padding:"3px 6px"},children:(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.mso)(I),"important"),t.style.setProperty("font-size",Z,"important"),t.style.setProperty("font-family",B,"important"))},children:"".concat(V,"% Off")})})]})]})},S=o(7381);const k=(0,a.Z)({key:"whatmore-css-hv"});function I(t){const[e,o,r]=(0,c.Z)(),l=(0,u.MO)("whatmoreShopId"),s=t.events,a=t.onClick,{whatmoreWidgetSourceDetails:d}=(0,n.useContext)(i.I),p=Math.ceil(r),h=2*p,[x,g]=(0,n.useState)(h),[w,j]=(0,n.useState)(2*p),M=0===(0,y.WGf)(l)?24:(0,y.WGf)(l),[C,S]=(0,n.useState)({touchX:0,touchY:0}),k=()=>(0,P.jsx)("div",{style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),I=()=>(0,P.jsx)("div",{style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),O=t=>{if("next"===t){const t=2;j((t=>Math.min(t+Math.floor(r),s.length+p+1))),g((e=>Math.min(e+t,s.length+p+1)))}else j((t=>Math.max(t-Math.floor(r),h)));(0,f.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:d})};return(0,P.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:t=>{S({touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchEnd:t=>{var e,o,n,r;const i=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-C.touchX,l=(null===(n=t.changedTouches)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.clientY)-C.touchY;Math.sqrt(i**2+l**2)>10&&Math.abs(i)>Math.abs(l)&&O(i>0?"prev":"next")},children:[(0,y.Yxs)(l)&&(0,P.jsxs)(P.Fragment,{children:[w<=s.length+p&&(0,P.jsx)("div",{onClick:()=>O("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,P.jsx)(k,{})}),w>2*p&&(0,P.jsx)("div",{onClick:()=>O("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,P.jsx)(I,{})})]}),(0,P.jsx)("div",{style:{display:"flex",gap:M,transform:"translateX(-".concat((w-h)*(o+M),"px)"),transition:"transform 0.4s ease-in-out"},children:s.map(((t,e)=>e<x?(0,P.jsx)("div",{children:(0,P.jsx)(b,{isOnFocus:e<=w-p-1&&e>=Math.max(0,w-h),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>a(t)})},"whatmore-carousel-tile-".concat(e)):(0,P.jsx)(m.Z,{})))})]})}function O(t){const[e,o,r,l]=(0,c.Z)(),[s,a]=(0,n.useState)(-1),d=(0,u.MO)("whatmoreShopId"),[p,x]=(0,n.useState)("next"),m=t.onClick,g=t.events,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(i.I),j=Math.min(Math.ceil(r),g.length),[M,C]=(0,n.useState)(0),S=0===(0,y.WGf)(d)?24:(0,y.WGf)(d),k=()=>(0,P.jsx)("div",{children:(0,P.jsx)("button",{onClick:N,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),I=()=>(0,P.jsx)("div",{children:(0,P.jsx)("button",{onClick:E,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,n.useEffect)((()=>{M<=j&&C((t=>t+j))}),[j]);const O=()=>{a(-1)},E=()=>{M!==j&&(x("prev"),C((t=>Math.max(Math.ceil(t-r),j))),(0,f.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},N=()=>{M>g.length+r||(x("next"),C((t=>Math.floor(t+r))),(0,f.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},Z=M>g.length?g.length-j+1:M-j,R=M>=g.length?g.length:Z+j,z=g.slice(Z,R);return(0,P.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"".concat(l,"px"),paddingRight:"".concat(l,"px")},children:[g.length>=r-1&&(0,P.jsx)("div",{style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateX(50%) translateY(-65%)"},children:M!==j&&(0,P.jsx)(I,{})}),(0,P.jsx)("div",{style:{display:"flex",gap:S+"px",width:"".concat(o*r*(0,y.Su5)(d),"px"),paddingLeft:"8px",justifyContent:g.length<=r-1?"center":"flex-start",overflow:"hidden"},children:z.map(((t,e)=>{const o="whatmore-event-tile-landscape-".concat(t.index).concat(e===j-1?"-last":""),n=e===s;return(0,P.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-".concat("next"===p?"next":"prev"),onMouseEnter:()=>(t=>{const e=h()((()=>a(t)),300);return e(),e.cancel})(e),onMouseLeave:O,children:(0,P.jsx)(b,{isOnFocus:n,playOnUnfocus:!0,animateOnFocus:!0,event:t,onClick:()=>(t=>{m(t)})(t)})},o)}))}),g.length>=r-1&&(0,P.jsx)("div",{style:{position:"absolute",zIndex:1,top:"50%",right:l+"px",transform:"translateY(-65%)"},children:M<=g.length&&(0,P.jsx)(k,{})})]})}var E=function(t){var e;const[o,a,c]=(0,d.Z)(),[p]=(0,u.j1)("whatmoreShopId"),[h]=(0,u.j1)("whatmorePrimaryColor"),[m]=(0,u.j1)("whatmoreSecondaryColor"),[f]=(0,u.j1)("whatmoreTitleFont"),v="portrait"==o?(0,u.MO)("whatmoreTitleFontSizePortrait"):(0,u.MO)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,n.useContext)(i.I),w=t.events,j=t.onClick,M=null!==(e=(0,y.aRS)(p))&&void 0!==e?e:f;function C(t){j(t)}return(0,n.useEffect)((()=>{(0,S.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{i.$.forEach((t=>{var e;const o=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-f"]');if(!o)return;o&&t&&(t.style.minHeight="0px")}))}),[]),delete l.ZP.styles.global,(0,P.jsx)(s.C,{value:k,children:(0,P.jsx)("div",{children:(0,P.jsx)(r.x,{theme:l.ZP,cssVarsRoot:g,resetCSS:!1,children:(0,P.jsxs)(x.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0?(0,P.jsx)("div",{className:"whatmore-events-carousel",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",M,"important"),t.style.setProperty("font-size",v+"px","important"))},style:{color:h,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.wOV)(p),lineHeight:(0,y.vY4)(p),letterSpacing:(0,y.X2K)(p)},children:t.heading})}):(0,P.jsx)(P.Fragment,{}),"landscape"===o?(0,P.jsx)(O,{events:w,onClick:C}):(0,P.jsx)(I,{events:w,onClick:C})]})})})})}},7129:function(t,e,o){o.d(e,{V:function(){return n}});const n=(0,o(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},1855:function(t,e,o){var n=o(7313),r=o(9821),i=o(7129),l=o(6417);e.Z=function(t){var[e,o]=(0,r.Z)();return(0,n.useContext)(i.V),t.event,(0,l.jsx)("div",{style:{margin:"0 auto",width:o,height:e,overflow:"hidden"}})}},3439:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[554],{9085:function(t,e,o){o.r(e),o.d(e,{default:function(){return E}});var n=o(7313),r=(o(3439),o(6090)),i=o(9039),l=o(7616),s=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),a=o(2575),c=o(9821),d=o(8866),p=o(2279),h=o.n(p),u=o(7753),x=o(7129),m=o(1855),y=o(9854),f=o(7376),v=o(778),g=o(4892),w=o(5945),j=o(9219),M=o(6805),C=o(8984),P=o(6417);var b=function(t){var e,o,r,l,s,a,d,p,h,m;const[f,v,b,S,k]=(0,c.Z)(),I=(0,u.MO)("whatmoreShopId"),O="portrait"===k[M.YP],E=(O?1.076*v*(0,y.pEd)(I):v*(0,y.H4g)(I))+"px",N=(O?1.076*v*(0,y.pEd)(I):v*(0,y.H4g)(I))+"px",Z=(O?.965*v*(0,y.pEd)(I):.859*v*(0,y.H4g)(I))+"px",[R,z]=(0,n.useState)(t.event),F=(0,u.MO)("whatmoreSecondaryColor");var T=(0,n.useContext)(x.V);const W=null===(e=t.isOnFocus)||void 0===e||e,Y=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,_=t.onClick,{whatmoreUITheme:D}=(0,n.useContext)(i.I),L=null!==(r=t.animateOnFocus&&(0,y.iWI)(I))&&void 0!==r&&r,[U,A]=(0,n.useState)(!(0,y.N8M)(I)),B=(0,u.MO)("whatmorePrimaryFont"),H=Math.round(+(null===(l=R.products[0])||void 0===l?void 0:l.price)),X=Math.round(+(null===(s=R.products[0])||void 0===s?void 0:s.compare_price)),G=X&&0!=X&&X>H?Math.ceil((X-H)/X*100):NaN,[V,q]=(0,n.useState)(G);return(0,n.useEffect)((()=>{(0,y.N8M)(I)&&(0,j.p_)(R,(0,y.Ipo)(I),I).then((t=>{var e,o,n;z(t),(null===t||void 0===t||null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.discount)&&q(null===t||void 0===t||null===(n=t.products[0])||void 0===n?void 0:n.discount),A(!0)}))}),[]),(0,P.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",T.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",T.tileBottomMMargin+"px","important"))},className:L&&!O?W?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:v},onClick:()=>{_(R)},children:[(0,P.jsx)("div",{style:{borderRadius:"round"==D?"5%":"0px",boxShadow:"round"==D?"0px 0px 5px 0px #B0B0B0":null,height:f,borderWidth:(0,y.alU)(I),borderColor:(0,y.qPe)(I),overflow:"hidden"},children:(0,P.jsx)(g.Z,{height:"100%",width:"100%",url:R.thumbnail_image,isPlaying:W||Y||(0,C.gE)(),event:R})}),(0,P.jsxs)("div",{style:{display:"flex",flexDirection:"column",padding:"12px 4px",gap:"5px"},children:[(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-size",E,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:(0,w.s)(null===(a=R.products[0])||void 0===a?void 0:a.title)}),U&&(0,P.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,y.$zZ)(I)?"row":"row-reverse",justifyContent:(0,y.$zZ)(I)?"flex-start":"flex-end"},children:[(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.Uyp)(I),"important"),t.style.setProperty("font-size",N,"important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,j.jx)(parseFloat(null===(d=R.products[0])||void 0===d?void 0:d.price)," ",I,null===(p=R.products[0])||void 0===p?void 0:p.currency)}),!isNaN(X)&&X>H&&(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.kPs)(I),"important"),t.style.setProperty("font-size",N,"important"),t.style.setProperty("font-family",B,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,j.jx)(parseFloat(null===(h=R.products[0])||void 0===h?void 0:h.compare_price)," ",I,null===(m=R.products[0])||void 0===m?void 0:m.currency)})]}),!isNaN(V)&&0!=V&&U&&(0,P.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ZJm)(I)?"#343434"==F?(0,y.ZJm)(I):F:(0,y.ZJm)(I),alignItems:"center",borderRadius:"4px",width:"fit-content",padding:"3px 6px"},children:(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.mso)(I),"important"),t.style.setProperty("font-size",Z,"important"),t.style.setProperty("font-family",B,"important"))},children:"".concat(V,"% Off")})})]})]})},S=o(7381);const k=(0,a.Z)({key:"whatmore-css-hv"});function I(t){const[e,o,r]=(0,c.Z)(),l=(0,u.MO)("whatmoreShopId"),s=t.events,a=t.onClick,{whatmoreWidgetSourceDetails:d}=(0,n.useContext)(i.I),p=Math.ceil(r),h=2*p,[x,g]=(0,n.useState)(h),[w,j]=(0,n.useState)(2*p),M=0===(0,y.WGf)(l)?24:(0,y.WGf)(l),[C,S]=(0,n.useState)({touchX:0,touchY:0}),k=()=>(0,P.jsx)("div",{style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),I=()=>(0,P.jsx)("div",{style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),O=t=>{if("next"===t){const t=2;j((t=>Math.min(t+Math.floor(r),s.length+p+1))),g((e=>Math.min(e+t,s.length+p+1)))}else j((t=>Math.max(t-Math.floor(r),h)));(0,f.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:d})};return(0,P.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:t=>{S({touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchEnd:t=>{var e,o,n,r;const i=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-C.touchX,l=(null===(n=t.changedTouches)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.clientY)-C.touchY;Math.sqrt(i**2+l**2)>10&&Math.abs(i)>Math.abs(l)&&O(i>0?"prev":"next")},children:[(0,y.Yxs)(l)&&(0,P.jsxs)(P.Fragment,{children:[w<=s.length+p&&(0,P.jsx)("div",{onClick:()=>O("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,P.jsx)(k,{})}),w>2*p&&(0,P.jsx)("div",{onClick:()=>O("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,P.jsx)(I,{})})]}),(0,P.jsx)("div",{style:{display:"flex",gap:M,transform:"translateX(-".concat((w-h)*(o+M),"px)"),transition:"transform 0.4s ease-in-out"},children:s.map(((t,e)=>e<x?(0,P.jsx)("div",{children:(0,P.jsx)(b,{isOnFocus:e<=w-p-1&&e>=Math.max(0,w-h),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>a(t)})},"whatmore-carousel-tile-".concat(e)):(0,P.jsx)(m.Z,{})))})]})}function O(t){const[e,o,r,l]=(0,c.Z)(),[s,a]=(0,n.useState)(-1),d=(0,u.MO)("whatmoreShopId"),[p,x]=(0,n.useState)("next"),m=t.onClick,g=t.events,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(i.I),j=Math.min(Math.ceil(r),g.length),[M,C]=(0,n.useState)(0),S=0===(0,y.WGf)(d)?24:(0,y.WGf)(d),k=()=>(0,P.jsx)("div",{children:(0,P.jsx)("button",{onClick:N,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),I=()=>(0,P.jsx)("div",{children:(0,P.jsx)("button",{onClick:E,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,P.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,n.useEffect)((()=>{M<=j&&C((t=>t+j))}),[j]);const O=()=>{a(-1)},E=()=>{M!==j&&(x("prev"),C((t=>Math.max(Math.ceil(t-r),j))),(0,f.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},N=()=>{M>g.length+r||(x("next"),C((t=>Math.floor(t+r))),(0,f.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},Z=M>g.length?g.length-j+1:M-j,R=M>=g.length?g.length:Z+j,z=g.slice(Z,R);return(0,P.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"".concat(l,"px"),paddingRight:"".concat(l,"px")},children:[g.length>=r-1&&(0,P.jsx)("div",{style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateX(50%) translateY(-65%)"},children:M!==j&&(0,P.jsx)(I,{})}),(0,P.jsx)("div",{style:{display:"flex",gap:S+"px",width:"".concat(o*r*(0,y.Su5)(d),"px"),paddingLeft:"8px",justifyContent:g.length<=r-1?"center":"flex-start",overflow:"hidden"},children:z.map(((t,e)=>{const o="whatmore-event-tile-landscape-".concat(t.index).concat(e===j-1?"-last":""),n=e===s;return(0,P.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-".concat("next"===p?"next":"prev"),onMouseEnter:()=>(t=>{const e=h()((()=>a(t)),300);return e(),e.cancel})(e),onMouseLeave:O,children:(0,P.jsx)(b,{isOnFocus:n,playOnUnfocus:!0,animateOnFocus:!0,event:t,onClick:()=>(t=>{m(t)})(t)})},o)}))}),g.length>=r-1&&(0,P.jsx)("div",{style:{position:"absolute",zIndex:1,top:"50%",right:l+"px",transform:"translateY(-65%)"},children:M<=g.length&&(0,P.jsx)(k,{})})]})}var E=function(t){var e;const[o,a,c]=(0,d.Z)(),[p]=(0,u.j1)("whatmoreShopId"),[h]=(0,u.j1)("whatmorePrimaryColor"),[m]=(0,u.j1)("whatmoreSecondaryColor"),[f]=(0,u.j1)("whatmoreTitleFont"),v="portrait"==o?(0,u.MO)("whatmoreTitleFontSizePortrait"):(0,u.MO)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,n.useContext)(i.I),w=t.events,j=t.onClick,M=null!==(e=(0,y.aRS)(p))&&void 0!==e?e:f;function C(t){j(t)}return(0,n.useEffect)((()=>{(0,S.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{i.$.forEach((t=>{var e;const o=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-f"]');if(!o)return;o&&t&&(t.style.minHeight="0px")}))}),[]),delete l.ZP.styles.global,(0,P.jsx)(s.C,{value:k,children:(0,P.jsx)("div",{children:(0,P.jsx)(r.x,{theme:l.ZP,cssVarsRoot:g,resetCSS:!1,children:(0,P.jsxs)(x.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0?(0,P.jsx)("div",{className:"whatmore-events-carousel",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",M,"important"),t.style.setProperty("font-size",v+"px","important"))},style:{color:h,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.wOV)(p),lineHeight:(0,y.vY4)(p),letterSpacing:(0,y.X2K)(p)},children:t.heading})}):(0,P.jsx)(P.Fragment,{}),"landscape"===o?(0,P.jsx)(O,{events:w,onClick:C}):(0,P.jsx)(I,{events:w,onClick:C})]})})})})}},7129:function(t,e,o){o.d(e,{V:function(){return n}});const n=(0,o(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},1855:function(t,e,o){var n=o(7313),r=o(9821),i=o(7129),l=o(6417);e.Z=function(t){var[e,o]=(0,r.Z)();return(0,n.useContext)(i.V),t.event,(0,l.jsx)("div",{style:{margin:"0 auto",width:o,height:e,overflow:"hidden"}})}},3439:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[580],{3580:function(t,e,n){n.r(e),n.d(e,{default:function(){return u}});var r=n(7313),o=n(8866),i=n(7753),s=(n(9111),n(123),n(9778),n(9854)),a=n(868),l=n(6417);var d=function(t){var e,n;const[d,c,p]=(0,o.Z)(),h=(0,i.MO)("whatmorePrimaryFont"),u=(0,i.MO)("whatmoreSecondaryColor"),f=(0,i.MO)("whatmoreShopId"),[x,m]=(0,r.useState)(!1),w=t.storyId,g=(0,a.V)(t.imageUrl),y=t.title,b=t.onClick,v=t.template,j=(0,s.f63)(f),S="template-stories-a"===v?"50%":"30%",k="portrait"==d?1:(0,s.Zyc)(f),z=Math.floor(t.tileSize*k),C=.12*z*(0,s.LM2)(f),F=null!==(e=(0,s.QaQ)(f))&&void 0!==e?e:h,E=null!==(n=(0,s.u2W)(f))&&void 0!==n?n:[u,j,u,j,u];return(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:z*(0,s.jJ6)(f)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{m(!0),b(w)},className:[x?"whatmore-scale-on-tap":""].join(" "),children:[(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:S,boxShadow:"0px 2px 1px 0px "+E[0]+"50, 0px -2px 1px 0px "+E[1]+"50, 2px 0px 1px 0px "+E[2]+"50, -2px 0px 1px 0px "+E[3]+"80, 2px -2px 1px 0px "+E[4]+"80, -2px 2px 1px 0px "+E[0]+"DA, 2px 2px 1px 0px "+E[1]+"DA, -2px -2px 1px 0px "+E[2]+"DA"},children:(0,l.jsx)("div",{className:"whatmore-story-thumbnail-wrapper",style:{flexShrink:0,objectFit:"cover",height:z+"px",width:z+"px",borderRadius:S,border:"3px solid white",backgroundColor:"#343434"===u?"#d3d3d3":u,overflow:"hidden"},children:(0,l.jsx)("img",{className:"whatmore-story-thumbnail",src:g,loading:"lazy",style:{objectFit:"cover",height:z+"px",width:z+"px",backgroundColor:"white"},alt:"story image"})})}),(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,l.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-size",C+"px","important")},style:{textAlign:"center",color:(0,s.WS3)(f),fontFamily:F,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto"},children:y.substring(0,24)})})]})},c=n(9039),p=n(9302);const h=(0,n(2575).Z)({key:"whatmore-stories-css"});var u=function(t){const[e,n,a]=(0,o.Z)(),[u]=(0,i.j1)("whatmoreLandscapePadding"),[f]=(0,i.j1)("whatmoreStoryTileSize"),[x]=(0,i.j1)("whatmoreStoryTileSizeDesktop"),[m]=(0,i.j1)("whatmoreShopId"),[w,g]=(0,r.useState)("portrait"===e?"flex-start":"center"),y=(0,r.useRef)(null);var b=t.eventsStories;const v=t.onClick,j=t.template;(0,r.useEffect)((()=>{c.$.forEach((t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-stories-a"]')))return;t&&(t.style.minHeight="0px")}))}),[]);const S=t=>{if(y.current){const e="left"===t?4*-k:4*k;y.current.scrollBy({left:e,behavior:"smooth"})}};(0,r.useEffect)((()=>{!function(){if(y.current){const t=y.current.scrollWidth,e=y.current.offsetWidth;g(t>e?"flex-start":"center")}}()}),[w,a]);const k="landscape"===e?n*(x/100)*.3:a*(f/100)*.5;return(0,l.jsx)(p.C,{value:h,children:"landscape"==e&&!(0,s.DF0)(m)||"portrait"==e&&!(0,s.JaA)(m)?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:w,height:"fit-content",width:"100%"},className:"whatmore-story-horizontal-flex",ref:y,children:b.map(((t,e)=>(0,l.jsx)(d,{storyId:t.id,tileSize:(0,s.OFP)(m)?100:k,onClick:t=>{v(e)},template:j,imageUrl:t.thumbnail_image,title:t.title},"whatmore-story-"+t.id)))}),"landscape"===e&&(0,s.sMW)(m)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{onClick:()=>S("left"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",left:0},children:(0,l.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:"<"})}),(0,l.jsx)("button",{onClick:()=>S("right"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",right:0},children:(0,l.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:">"})})]})]})})}},868:function(t,e,n){n.d(e,{V:function(){return a}});var r=n(9854),o=n(7753);const i={"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"},s={"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"},a=function(t){const e=(0,o.MO)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,r.zpr)(e))return t;if("AZURECDN"==(0,r.zpr)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(i))if(t.includes(e))return t.replace(e,i[e]);return t}}if("BUNNYCDN"==(0,r.zpr)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(s))if(t.includes(e))return t.replace(e,s[e]);return t}}return t}},8866:function(t,e,n){var r=n(7313);function o(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=o();const[i,s]=(0,r.useState)([e>n?"portrait":"landscape",e,n]);return(0,r.useLayoutEffect)((()=>{function t(){var[t,e]=o();s(t>e?["portrait",t,e]:["landscape",t,e])}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)}}),[]),i}},9111:function(){},123:function(){},9778:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[622],{3827:function(e,t,l){l.r(t);var o=l(7313),r=l(6090),a=l(7616),n=(l(6143),l(7850),l(4444),l(7244),l(123),l(5892),l(1811),l(9302)),i=l(2575),s=l(8866),c=l(7753),h=l(7129),d=l(9039),p=l(8631),m=l(6066),u=l(8782),g=l(9821),f=l(7381),v=l(5380),x=l(3933),w=l(9854),C=l(6417);const y=(0,i.Z)({key:"whatmore-css-cv"});t.default=function(e){const t=e.events,[l,i,j]=(0,s.Z)(),[k,M,S,Z,P]=(0,g.Z)(),[O,R]=(0,o.useState)(Array(t.length).fill(0).map((()=>Math.random()))),b=(0,c.MO)("whatmoreCollectionsTileSize"),E="portrait"==l?0:(0,c.MO)("whatmoreLandscapePadding"),I=(0,c.MO)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:L}=(0,o.useContext)(d.I),T=(0,c.MO)("whatmoreShopId"),{whatmoreRootId:V}=(0,o.useContext)(d.I),B=e.onClick;function q(e){B(e)}(0,o.useEffect)((()=>{(0,f.Oo)("Video shopping powered by Whatmore!")}),[]),delete a.ZP.styles.global;var A=[];for(let o=0,r=!1;o<t.length;)r&&o!=t.length-1&&O[o]>.2?(A.push((0,C.jsx)(m.Z,{event1:t[o],event2:t[o+1],onClick:()=>{q(t[o-1])}},"collections-tile-"+o)),o+=2,r=!r):(A.push((0,C.jsx)(p.Z,{event:t[o],onClick:()=>{q(t[o-1])},borderRadius:"10%",removeBorders:!1},"collections-tile-"+o)),o+=1,r=!r);(0,o.useEffect)((()=>{d.$.forEach((e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-a"]')))return;e&&(e.style.minHeight="0px")}))}),[]);const[D,H,W]=(0,x.YD)({triggerOnce:!1});return(0,C.jsx)(n.C,{value:y,children:(0,C.jsx)("div",{children:(0,C.jsx)(r.x,{theme:a.ZP,cssVarsRoot:V,resetCSS:!1,children:(0,C.jsxs)(h.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,C.jsx)("div",{ref:D,style:{marginLeft:E+"px",marginRight:E+"px"},children:(0,C.jsx)(u.P,{renderElement:e=>(0,C.jsx)(C.Fragment,{children:e.eventData}),dataList:A,spacing:I,defaultHeight:k*b*.01+"px",defaultWidth:M*b*.01+"px",retainAlreadyRenderedElements:!0})}),(0,w.dhc)(T)&&L&&!H&&-1==e.index&&(0,C.jsx)(v.Z,{event:t[0],inVideoClick:q,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[692],{3388:function(e,t,i){i.d(t,{OC:function(){return l},e8:function(){return r},kT:function(){return n},kW:function(){return a},xg:function(){return o}});const n=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},o=function(e,t){return!(void 0==e.products||0==e.products.length)},r=function(e,t){if(null!=e)return e.filter((e=>1==n(e)))},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const l=function(e,t){var i;if(null==e)return[];if(!("eventsets"in e))return[];const n=null!==(i=e.eventsets[t])&&void 0!==i?i:null;return n?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(n):[]}},5380:function(e,t,i){i.d(t,{Z:function(){return v}});var n=i(4959),o=i(7313),r=i(4892),a=i(6805),l=i(7753),s=i(9821);var d=function(e){const[t,i,n,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,i*h,r]},c=i(9723),h=i(9461),p=i.n(h),u=i(1195),x=i(7108),f=(i(7244),i(123),i(9854)),g=i(9039),m=i(6417);var v=function(e){var t;const i=o.useRef(null);var[s,h,v]=d();const{whatmoreUITheme:w}=(0,o.useContext)(g.I),[j]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[b]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[y]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[S]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[I]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[E]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[z]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),P=(0,l.MO)("whatmoreShopId");var k=b,C=y,_=S;v[a.YP]===a.$w&&(k=I,C=E,_=z);const[L,O]=(0,o.useState)(["initial",window.pageYOffset]),[A,M]=(0,o.useState)(!1),T=null!==(t=e.isSpotlight)&&void 0!==t&&t,V=v[a.YP]===a.$w?.7*(0,f.zGA)(P):(0,f.zGA)(P),B=T?V:1;s*=B,h*=B;const F=T?(0,f.G0o)(P):k,R=T?(0,f.X8j)(P):(0,f.lVn)(P),[Z,D]=(0,o.useState)(!T&&(0,f.eXi)(P));function N(e,t){O(e),e[1]<=100?M(!1):t!=A&&(M(t),D(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(N([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[L]),(0,n.O3)({ref:i,handler:()=>{N(["scrolled-up",L[1]],!0)}});const Y=e.event,$=e.inVideoClick,G=e.closeClick,H=.3*h,W=.6*h,K=.1*h,U=.1*(.5*h),X="round"==w?"10px":"0px",q=(0,f.Z$A)(P);var J=!1,Q=0,ee=0;function te(e){J=e}return(0,m.jsx)("div",{children:Z&&!R?(0,m.jsx)(m.Fragment,{}):A&&R?(0,m.jsx)("div",{style:"left"===F?{left:"1px",bottom:T?(0,f.vnu)(P)+"px":_+"px",position:"fixed",zIndex:q}:{right:"5px",bottom:T?(0,f.vnu)(P)+"px":_+"px",position:"fixed",zIndex:q},children:(0,m.jsxs)("div",{onClick:()=>{N(["initial",L[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===F?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,m.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:X,overflow:"hidden"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,m.jsx)(r.Z,{url:Y.thumbnail_image,isPlaying:!1,event:Y})})}),(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,m.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,m.jsx)(u.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:H+"px"},style:{position:"relative",zIndex:1,left:U+"px",bottom:U+"px"},onClick:G})})}),(0,m.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,m.jsx)(x.Z,{sx:{color:"white",fontSize:2*H+"px",filter:"drop-shadow(0 0 15px black);"}})})]})})]})}):(0,m.jsx)(p(),{nodeRef:i,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var i,n;i=t.x,n=t.y,Q=i,ee=n},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-Q)>5||Math.abs(t.y-ee)>5)?te(!1):$(Y)},children:(0,m.jsx)("div",{ref:i,style:"left"===F?{left:T?(0,f.$II)(P)+"px":C+"px",bottom:T?(0,f.vnu)(P)+"px":_+"px",position:"fixed",zIndex:q}:{right:T?(0,f.$II)(P)+"px":C+"px",bottom:T?(0,f.vnu)(P)+"px":_+"px",position:"fixed",zIndex:q},children:(0,m.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:h+"px",height:s+"px"}),className:"left"===F?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,m.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:X,overflow:"hidden",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,m.jsx)(r.Z,{url:Y.thumbnail_image,isMuted:!0,isPlaying:!0,event:Y})})}),(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,m.jsx)(u.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:H+"px"},onClick:G,style:{position:"relative",zIndex:1,left:K+"px",bottom:K+"px"}})}),(0,m.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,m.jsx)(c.Z,{sx:{color:(0,f.Ya_)(P),fontSize:W+"px",filter:"drop-shadow(0 0 15px black);"}})}),(0,m.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:X,borderBottomRightRadius:X,backgroundImage:j?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,m.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*H+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",j]})})]})})]})})})})}},2209:function(e,t,i){i.r(t);var n=i(7313),o=i(9854),r=i(2860),a=i(7753),l=i(5160),s=i(6967),d=i(5380),c=i(58),h=i(8984),p=i(4669),u=i(941),x=i(9302),f=i(7381),g=i(2575),m=i(7300),v=i(6524),w=i(3388),j=i(7643),b=i(778),y=i(6417);const S=(0,g.Z)({key:"whatmore-css-wsv"}),I=n.lazy((()=>Promise.all([i.e(819),i.e(576),i.e(210),i.e(955),i.e(926),i.e(303),i.e(369),i.e(62)]).then(i.bind(i,9369))));t.default=function(e){const[t,i]=(0,n.useState)(),[g,E]=(0,n.useState)(),[z]=(0,a.j1)("isInDesignMode"),[P]=(0,a.j1)("isDemoBrand"),[k,C]=(0,n.useState)(-2),[_]=(0,a.j1)("whatmoreShopId"),L=(0,a.MO)("isLandingSharedLink"),O=(0,a.MO)("whatmoreShareTemplateId"),A=((0,a.MO)("whatmoreShareStoryId"),(0,a.MO)("whatmoreShareEventId")),M=(0,a.MO)("whatmoreLandingLocationType"),T=(0,a.MO)("whatmoreLoggingActive");var V=(0,o.efR)(_)?r.Dm+"/get_eventset/":r.Gc+"/get_eventset/";(0,n.useEffect)((()=>{(0,s.hb)()}),[]),(0,n.useEffect)((()=>{(0,p.ll)(_)}),[]),(0,n.useEffect)((()=>{null==t||0==t.length||g||!(0,h.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,c.b5)(c.UD)}),[t]),(0,n.useEffect)((()=>{C(-1);const e=v.NX,t=(0,v.H1)(M),n=V.toString()+_.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+_;fetch(n).then((e=>e.json())).then((t=>(0,w.OC)(t,e))).then((e=>(i(e),e))).catch((e=>{E(e.message)}))}),[]),(0,n.useEffect)((()=>{C(-2)}),[t]),(0,n.useEffect)((()=>{null==t||0==t.length||g||L&&"template-embed"==(0,v.zv)(O)&&null!=A&&t.forEach(((e,t)=>{A==e.event_id&&B(e,!0,t)}))}),[t]);const B=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,h.KE)()&&!t&&(0,c.QV)(),(0,m.B6)(e)||(0,m.WJ)(e))return z||P||(async()=>{(0,l.wh)(e),(0,p.Tc)(_,r.h7,r.dU),(0,s.H4)(e.event_id,e.products,"spotlight","video_popup")})(),void C(i)};function F(){return(0,y.jsx)(y.Fragment,{})}return null==t||0==t.length||g?(0,y.jsx)("div",{}):(T&&(0,f.EI)(t),(0,o.B$L)(_)&&k<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,y.jsx)(y.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,y.jsx)(x.C,{value:S,children:-1===k||0===t.length?(0,y.jsx)(F,{}):-2===k&&t.length>0?(0,y.jsx)("div",{children:(0,y.jsx)(j.u,{userInteractionType:b.K.SPOTLIGHT_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!P,children:(0,y.jsx)(d.Z,{event:t[0],inVideoClick:B,closeClick:e=>{e.stopPropagation(),C(-1)},isSpotlight:!0})})}):(0,y.jsx)("div",{children:(0,y.jsx)(n.Suspense,{children:(0,y.jsx)(j.u,{userInteractionType:b.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!P,children:(0,y.jsx)(I,{events:t,index:k,onBack:function(){(0,o.n2L)(_)&&(0,a.MO)("whatmoreAddedToCart")&&(0,u.D)(_,(()=>{}),100,window.location.hostname),C(-2)},template:"template-embed"})})})})})))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[574],{1291:function(e,t,i){i.r(t);var n=i(7313),o=i(6090),r=i(7616),a=i(9039),l=(i(6143),i(7850),i(4444),i(7244),i(123),i(5892),i(1811),i(9302)),s=i(2575),d=i(8866),c=i(7753),h=i(7129),p=i(8631),x=i(9821),m=i(8782),u=i(7381),f=i(9854),w=i(5380),g=i(3933),v=i(6417);const y=(0,s.Z)({key:"whatmore-css-cv"});t.default=function(e){var t;const[i,s,j]=(0,d.Z)(),[b,S,C,E,z]=(0,x.Z)(),P=(0,c.MO)("whatmoreCollectionsTileSize"),L="portrait"==i?0:(0,c.MO)("whatmoreLandscapePadding"),k=(0,c.MO)("whatmoreCollectionsTilesSpacing"),R=(0,c.MO)("whatmoreShopId"),[I]=(0,c.MO)("whatmorePrimaryColor"),{whatmoreRootId:M}=(0,n.useContext)(a.I),{whatmoreIsCollectionsTemplate:A}=(0,n.useContext)(a.I),Z=e.events,O=e.onClick,F=(0,c.MO)("whatmoreTitleFont"),V="portrait"==i?(0,c.MO)("whatmoreTitleFontSizePortrait"):(0,c.MO)("whatmoreTitleFontSize"),B=null!==(t=(0,f.aRS)(R))&&void 0!==t?t:F;function T(e){O(e)}delete r.ZP.styles.global;var D=[];for(let n=0;n<Z.length;)D.push((0,v.jsx)(p.Z,{event:Z[n],onClick:()=>{T(Z[n-1])},removeBorders:!0,borderRadius:"5%"},"collections-tile-"+n)),n+=1;(0,n.useEffect)((()=>{(0,u.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{a.$.forEach((e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-e"]');if(!i)return;i&&e&&(e.style.minHeight="0px")}))}),[]);const[H,N,Y]=(0,g.YD)({triggerOnce:!1});return(0,v.jsx)(l.C,{value:y,children:(0,v.jsx)("div",{children:(0,v.jsx)(o.x,{theme:r.ZP,cssVarsRoot:M,resetCSS:!1,children:(0,v.jsxs)(h.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[e.heading.trim().length>0?(0,v.jsx)("div",{className:"whatmore-events-carousel",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",B,"important"),e.style.setProperty("font-size",V+"px","important"))},style:{color:I,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.wOV)(R),lineHeight:(0,f.vY4)(R),letterSpacing:(0,f.X2K)(R)},children:e.heading})}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)("div",{ref:H,style:{marginLeft:L+"px",marginRight:L+"px"},children:(0,v.jsx)(m.P,{renderElement:e=>(0,v.jsx)(v.Fragment,{children:e.eventData}),dataList:D,spacing:k,defaultHeight:b*P*.01+"px",defaultWidth:S*P*.01+"px",retainAlreadyRenderedElements:!0})}),(0,f.dhc)(R)&&A&&!N&&-1==e.index&&(0,v.jsx)(w.Z,{event:Z[0],inVideoClick:T,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},7129:function(e,t,i){i.d(t,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8631:function(e,t,i){var n=i(7313),o=i(9854),r=i(7753),a=(i(9111),i(123),i(9778),i(4892)),l=i(7129),s=i(9821),d=i(6417);t.Z=function(e){var t;const[i,c,h,p,x]=(0,s.Z)(),[m]=(0,r.j1)("whatmoreSecondaryColor"),[u]=(0,r.j1)("whatmoreShopId"),[f]=(0,r.j1)("whatmoreCollectionsTileSize"),[w,g]=(0,n.useState)(!1),v=(0,o.f63)(u);(0,n.useContext)(l.V);const y=e.event,j=e.onClick,b=e.removeBorders,S=i*f*.01,C=c*f*.01,E=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:C+"px",marginLeft:b?"2px":"5px",marginRight:b?"2px":(0,o.VwM)(u)+"px",marginTop:b?"2px":"5px",marginBottom:b?"2px":"5px",cursor:"pointer"},onClick:()=>{g(!0),j(y)},className:[w?"whatmore-scale-on-tap":""].join(" "),children:(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:E,overflow:"hidden",boxShadow:b?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+v+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+v+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+v+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+v+"DA"},children:(0,d.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:C+"px",borderRadius:E,backgroundColor:"gray",overflow:"hidden"},children:(0,d.jsx)(a.Z,{height:"100%",width:"100%",url:y.thumbnail_image,isPlaying:!0,event:y})})})})}},8782:function(e,t,i){i.d(t,{P:function(){return l}});var n=i(3933),o=i(7313),r=(i(123),i(6417));function a(e){const{ref:t,inView:i,entry:o}=(0,n.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:t,children:i?e.renderElement({eventData:e.data}):(0,r.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function l(e){var t;return(0,o.useEffect)((()=>{const e=document.querySelector(".whatmore-carousel-horizontal-flex");let t,i=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(i=!0,t=e.touches[0].clientX):(i=!0,t=e.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;e.style.pointerEvents="none";const r=2*(t-o);e.scrollLeft+=r,t=o}function r(t){e.style.pointerEvents="auto",i=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",o),e.addEventListener("touchend",r)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",o),e.removeEventListener("touchend",r)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3},className:"whatmore-carousel-horizontal-flex",children:e.dataList.map(((t,i)=>(0,r.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+i)))})}},5380:function(e,t,i){i.d(t,{Z:function(){return g}});var n=i(4959),o=i(7313),r=i(4892),a=i(6805),l=i(7753),s=i(9821);var d=function(e){const[t,i,n,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,i*h,r]},c=i(9723),h=i(9461),p=i.n(h),x=i(1195),m=i(7108),u=(i(7244),i(123),i(9854)),f=i(9039),w=i(6417);var g=function(e){var t;const i=o.useRef(null);var[s,h,g]=d();const{whatmoreUITheme:v}=(0,o.useContext)(f.I),[y]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[j]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[S]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[C]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[E]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[z]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),P=(0,l.MO)("whatmoreShopId");var L=j,k=b,R=S;g[a.YP]===a.$w&&(L=C,k=E,R=z);const[I,M]=(0,o.useState)(["initial",window.pageYOffset]),[A,Z]=(0,o.useState)(!1),O=null!==(t=e.isSpotlight)&&void 0!==t&&t,F=g[a.YP]===a.$w?.7*(0,u.zGA)(P):(0,u.zGA)(P),V=O?F:1;s*=V,h*=V;const B=O?(0,u.G0o)(P):L,T=O?(0,u.X8j)(P):(0,u.lVn)(P),[D,H]=(0,o.useState)(!O&&(0,u.eXi)(P));function N(e,t){M(e),e[1]<=100?Z(!1):t!=A&&(Z(t),H(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(N([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[I]),(0,n.O3)({ref:i,handler:()=>{N(["scrolled-up",I[1]],!0)}});const Y=e.event,W=e.inVideoClick,X=e.closeClick,$=.3*h,q=.6*h,_=.1*h,G=.1*(.5*h),K="round"==v?"10px":"0px",U=(0,u.Z$A)(P);var J=!1,Q=0,ee=0;function te(e){J=e}return(0,w.jsx)("div",{children:D&&!T?(0,w.jsx)(w.Fragment,{}):A&&T?(0,w.jsx)("div",{style:"left"===B?{left:"1px",bottom:O?(0,u.vnu)(P)+"px":R+"px",position:"fixed",zIndex:U}:{right:"5px",bottom:O?(0,u.vnu)(P)+"px":R+"px",position:"fixed",zIndex:U},children:(0,w.jsxs)("div",{onClick:()=>{N(["initial",I[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===B?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,w.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:K,overflow:"hidden"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:Y.thumbnail_image,isPlaying:!1,event:Y})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,w.jsx)(x.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:$+"px"},style:{position:"relative",zIndex:1,left:G+"px",bottom:G+"px"},onClick:X})})}),(0,w.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(m.Z,{sx:{color:"white",fontSize:2*$+"px",filter:"drop-shadow(0 0 15px black);"}})})]})})]})}):(0,w.jsx)(p(),{nodeRef:i,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var i,n;i=t.x,n=t.y,Q=i,ee=n},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-Q)>5||Math.abs(t.y-ee)>5)?te(!1):W(Y)},children:(0,w.jsx)("div",{ref:i,style:"left"===B?{left:O?(0,u.$II)(P)+"px":k+"px",bottom:O?(0,u.vnu)(P)+"px":R+"px",position:"fixed",zIndex:U}:{right:O?(0,u.$II)(P)+"px":k+"px",bottom:O?(0,u.vnu)(P)+"px":R+"px",position:"fixed",zIndex:U},children:(0,w.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:h+"px",height:s+"px"}),className:"left"===B?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,w.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:K,overflow:"hidden",position:"relative"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:Y.thumbnail_image,isMuted:!0,isPlaying:!0,event:Y})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)(x.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:$+"px"},onClick:X,style:{position:"relative",zIndex:1,left:_+"px",bottom:_+"px"}})}),(0,w.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,w.jsx)(c.Z,{sx:{color:(0,u.Ya_)(P),fontSize:q+"px",filter:"drop-shadow(0 0 15px black);"}})}),(0,w.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:K,borderBottomRightRadius:K,backgroundImage:y?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,w.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*$+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",y]})})]})})]})})})})}},9111:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[708],{1291:function(e,t,i){i.r(t);var n=i(7313),o=i(6090),r=i(7616),a=i(9039),l=(i(6143),i(7850),i(4444),i(7244),i(123),i(5892),i(1811),i(9302)),s=i(2575),d=i(8866),c=i(7753),h=i(7129),p=i(8631),x=i(9821),m=i(8782),u=i(7381),f=i(9854),w=i(5380),g=i(3933),v=i(6417);const y=(0,s.Z)({key:"whatmore-css-cv"});t.default=function(e){var t;const[i,s,j]=(0,d.Z)(),[b,S,C,E,z]=(0,x.Z)(),P=(0,c.MO)("whatmoreCollectionsTileSize"),L="portrait"==i?0:(0,c.MO)("whatmoreLandscapePadding"),k=(0,c.MO)("whatmoreCollectionsTilesSpacing"),R=(0,c.MO)("whatmoreShopId"),[I]=(0,c.MO)("whatmorePrimaryColor"),{whatmoreRootId:M}=(0,n.useContext)(a.I),{whatmoreIsCollectionsTemplate:A}=(0,n.useContext)(a.I),Z=e.events,O=e.onClick,F=(0,c.MO)("whatmoreTitleFont"),V="portrait"==i?(0,c.MO)("whatmoreTitleFontSizePortrait"):(0,c.MO)("whatmoreTitleFontSize"),B=null!==(t=(0,f.aRS)(R))&&void 0!==t?t:F;function T(e){O(e)}delete r.ZP.styles.global;var D=[];for(let n=0;n<Z.length;)D.push((0,v.jsx)(p.Z,{event:Z[n],onClick:()=>{T(Z[n-1])},removeBorders:!0,borderRadius:"5%"},"collections-tile-"+n)),n+=1;(0,n.useEffect)((()=>{(0,u.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{a.$.forEach((e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-e"]');if(!i)return;i&&e&&(e.style.minHeight="0px")}))}),[]);const[H,N,Y]=(0,g.YD)({triggerOnce:!1});return(0,v.jsx)(l.C,{value:y,children:(0,v.jsx)("div",{children:(0,v.jsx)(o.x,{theme:r.ZP,cssVarsRoot:M,resetCSS:!1,children:(0,v.jsxs)(h.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[e.heading.trim().length>0?(0,v.jsx)("div",{className:"whatmore-events-carousel",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",B,"important"),e.style.setProperty("font-size",V+"px","important"))},style:{color:I,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.wOV)(R),lineHeight:(0,f.vY4)(R),letterSpacing:(0,f.X2K)(R)},children:e.heading})}):(0,v.jsx)(v.Fragment,{}),(0,v.jsx)("div",{ref:H,style:{marginLeft:L+"px",marginRight:L+"px"},children:(0,v.jsx)(m.P,{renderElement:e=>(0,v.jsx)(v.Fragment,{children:e.eventData}),dataList:D,spacing:k,defaultHeight:b*P*.01+"px",defaultWidth:S*P*.01+"px",retainAlreadyRenderedElements:!0})}),(0,f.dhc)(R)&&A&&!N&&-1==e.index&&(0,v.jsx)(w.Z,{event:Z[0],inVideoClick:T,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},7129:function(e,t,i){i.d(t,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8631:function(e,t,i){var n=i(7313),o=i(9854),r=i(7753),a=(i(9111),i(123),i(9778),i(4892)),l=i(7129),s=i(9821),d=i(6417);t.Z=function(e){var t;const[i,c,h,p,x]=(0,s.Z)(),[m]=(0,r.j1)("whatmoreSecondaryColor"),[u]=(0,r.j1)("whatmoreShopId"),[f]=(0,r.j1)("whatmoreCollectionsTileSize"),[w,g]=(0,n.useState)(!1),v=(0,o.f63)(u);(0,n.useContext)(l.V);const y=e.event,j=e.onClick,b=e.removeBorders,S=i*f*.01,C=c*f*.01,E=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:C+"px",marginLeft:b?"2px":"5px",marginRight:b?"2px":(0,o.VwM)(u)+"px",marginTop:b?"2px":"5px",marginBottom:b?"2px":"5px",cursor:"pointer"},onClick:()=>{g(!0),j(y)},className:[w?"whatmore-scale-on-tap":""].join(" "),children:(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:E,overflow:"hidden",boxShadow:b?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+v+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+v+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+v+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+v+"DA"},children:(0,d.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:C+"px",borderRadius:E,backgroundColor:"gray",overflow:"hidden"},children:(0,d.jsx)(a.Z,{height:"100%",width:"100%",url:y.thumbnail_image,isPlaying:!0,event:y})})})})}},8782:function(e,t,i){i.d(t,{P:function(){return l}});var n=i(3933),o=i(7313),r=(i(123),i(6417));function a(e){const{ref:t,inView:i,entry:o}=(0,n.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:t,children:i?e.renderElement({eventData:e.data}):(0,r.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function l(e){var t;return(0,o.useEffect)((()=>{const e=document.querySelector(".whatmore-carousel-horizontal-flex");let t,i=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(i=!0,t=e.touches[0].clientX):(i=!0,t=e.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;e.style.pointerEvents="none";const r=2*(t-o);e.scrollLeft+=r,t=o}function r(t){e.style.pointerEvents="auto",i=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",o),e.addEventListener("touchend",r)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",o),e.removeEventListener("touchend",r)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3},className:"whatmore-carousel-horizontal-flex",children:e.dataList.map(((t,i)=>(0,r.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+i)))})}},5380:function(e,t,i){i.d(t,{Z:function(){return g}});var n=i(4959),o=i(7313),r=i(4892),a=i(6805),l=i(7753),s=i(9821);var d=function(e){const[t,i,n,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,i*h,r]},c=i(9723),h=i(9461),p=i.n(h),x=i(1195),m=i(7108),u=(i(7244),i(123),i(9854)),f=i(9039),w=i(6417);var g=function(e){var t;const i=o.useRef(null);var[s,h,g]=d();const{whatmoreUITheme:v}=(0,o.useContext)(f.I),[y]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[j]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[S]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[C]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[E]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[z]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),P=(0,l.MO)("whatmoreShopId");var L=j,k=b,R=S;g[a.YP]===a.$w&&(L=C,k=E,R=z);const[I,M]=(0,o.useState)(["initial",window.pageYOffset]),[A,Z]=(0,o.useState)(!1),O=null!==(t=e.isSpotlight)&&void 0!==t&&t,F=g[a.YP]===a.$w?.7*(0,u.zGA)(P):(0,u.zGA)(P),V=O?F:1;s*=V,h*=V;const B=O?(0,u.G0o)(P):L,T=O?(0,u.X8j)(P):(0,u.lVn)(P),[D,H]=(0,o.useState)(!O&&(0,u.eXi)(P));function N(e,t){M(e),e[1]<=100?Z(!1):t!=A&&(Z(t),H(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(N([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[I]),(0,n.O3)({ref:i,handler:()=>{N(["scrolled-up",I[1]],!0)}});const Y=e.event,W=e.inVideoClick,X=e.closeClick,$=.3*h,q=.6*h,_=.1*h,G=.1*(.5*h),K="round"==v?"10px":"0px",U=(0,u.Z$A)(P);var J=!1,Q=0,ee=0;function te(e){J=e}return(0,w.jsx)("div",{children:D&&!T?(0,w.jsx)(w.Fragment,{}):A&&T?(0,w.jsx)("div",{style:"left"===B?{left:"1px",bottom:O?(0,u.vnu)(P)+"px":R+"px",position:"fixed",zIndex:U}:{right:"5px",bottom:O?(0,u.vnu)(P)+"px":R+"px",position:"fixed",zIndex:U},children:(0,w.jsxs)("div",{onClick:()=>{N(["initial",I[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===B?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,w.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:K,overflow:"hidden"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:Y.thumbnail_image,isPlaying:!1,event:Y})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,w.jsx)(x.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:$+"px"},style:{position:"relative",zIndex:1,left:G+"px",bottom:G+"px"},onClick:X})})}),(0,w.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(m.Z,{sx:{color:"white",fontSize:2*$+"px",filter:"drop-shadow(0 0 15px black);"}})})]})})]})}):(0,w.jsx)(p(),{nodeRef:i,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var i,n;i=t.x,n=t.y,Q=i,ee=n},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-Q)>5||Math.abs(t.y-ee)>5)?te(!1):W(Y)},children:(0,w.jsx)("div",{ref:i,style:"left"===B?{left:O?(0,u.$II)(P)+"px":k+"px",bottom:O?(0,u.vnu)(P)+"px":R+"px",position:"fixed",zIndex:U}:{right:O?(0,u.$II)(P)+"px":k+"px",bottom:O?(0,u.vnu)(P)+"px":R+"px",position:"fixed",zIndex:U},children:(0,w.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:h+"px",height:s+"px"}),className:"left"===B?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,w.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:K,overflow:"hidden",position:"relative"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:Y.thumbnail_image,isMuted:!0,isPlaying:!0,event:Y})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)(x.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:$+"px"},onClick:X,style:{position:"relative",zIndex:1,left:_+"px",bottom:_+"px"}})}),(0,w.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,w.jsx)(c.Z,{sx:{color:(0,u.Ya_)(P),fontSize:q+"px",filter:"drop-shadow(0 0 15px black);"}})}),(0,w.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:K,borderBottomRightRadius:K,backgroundImage:y?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,w.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*$+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",y]})})]})})]})})})})}},9111:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[74],{5380:function(e,t,i){i.d(t,{Z:function(){return g}});var n=i(4959),o=i(7313),a=i(4892),r=i(6805),s=i(7753),d=i(9821);var l=function(e){const[t,i,n,o,a]=(0,d.Z)(),[l]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),p=a[r.YP]===r.$w?c/100:l/100*1.2;return[t*p,i*p,a]},c=i(9723),p=i(9461),u=i.n(p),h=i(1195),w=i(7108),f=(i(7244),i(123),i(9854)),x=i(9039),v=i(6417);var g=function(e){var t;const i=o.useRef(null);var[d,p,g]=l();const{whatmoreUITheme:m}=(0,o.useContext)(x.I),[y]=(0,s.j1)("whatmoreEmbedAppVideoTitle"),[b]=(0,s.j1)("whatmoreEmbedAppPositionPortrait"),[j]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[I]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,s.j1)("whatmoreEmbedAppPositionLandscape"),[E]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[L]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),P=(0,s.MO)("whatmoreShopId");var z=b,_=j,k=I;g[r.YP]===r.$w&&(z=S,_=E,k=L);const[T,C]=(0,o.useState)(["initial",window.pageYOffset]),[D,M]=(0,o.useState)(!1),A=null!==(t=e.isSpotlight)&&void 0!==t&&t,V=g[r.YP]===r.$w?.7*(0,f.zGA)(P):(0,f.zGA)(P),O=A?V:1;d*=O,p*=O;const B=A?(0,f.G0o)(P):z,F=A?(0,f.X8j)(P):(0,f.lVn)(P),[Z,R]=(0,o.useState)(!A&&(0,f.eXi)(P));function N(e,t){C(e),e[1]<=100?M(!1):t!=D&&(M(t),R(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(N([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[T]),(0,n.O3)({ref:i,handler:()=>{N(["scrolled-up",T[1]],!0)}});const G=e.event,W=e.inVideoClick,Y=e.closeClick,K=.3*p,U=.6*p,$=.1*p,H=.1*(.5*p),J="round"==m?"10px":"0px",X=(0,f.Z$A)(P);var q=!1,Q=0,ee=0;function te(e){q=e}return(0,v.jsx)("div",{children:Z&&!F?(0,v.jsx)(v.Fragment,{}):D&&F?(0,v.jsx)("div",{style:"left"===B?{left:"1px",bottom:A?(0,f.vnu)(P)+"px":k+"px",position:"fixed",zIndex:X}:{right:"5px",bottom:A?(0,f.vnu)(P)+"px":k+"px",position:"fixed",zIndex:X},children:(0,v.jsxs)("div",{onClick:()=>{N(["initial",T[1]],!1)},style:{margin:"1px",width:p+"px",height:d+"px"},className:"left"===B?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,v.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:J,overflow:"hidden"},children:(0,v.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,v.jsx)(a.Z,{url:G.thumbnail_image,isPlaying:!1,event:G})})}),(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,v.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,v.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,v.jsx)(h.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:K+"px"},style:{position:"relative",zIndex:1,left:H+"px",bottom:H+"px"},onClick:Y})})}),(0,v.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,v.jsx)(w.Z,{sx:{color:"white",fontSize:2*K+"px",filter:"drop-shadow(0 0 15px black);"}})})]})})]})}):(0,v.jsx)(u(),{nodeRef:i,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var i,n;i=t.x,n=t.y,Q=i,ee=n},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{q&&(Math.abs(t.x-Q)>5||Math.abs(t.y-ee)>5)?te(!1):W(G)},children:(0,v.jsx)("div",{ref:i,style:"left"===B?{left:A?(0,f.$II)(P)+"px":_+"px",bottom:A?(0,f.vnu)(P)+"px":k+"px",position:"fixed",zIndex:X}:{right:A?(0,f.$II)(P)+"px":_+"px",bottom:A?(0,f.vnu)(P)+"px":k+"px",position:"fixed",zIndex:X},children:(0,v.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:p+"px",height:d+"px"}),className:"left"===B?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,v.jsx)("div",{style:{boxShadow:"0px 0px 10px 3px #B0B0B0",borderRadius:J,overflow:"hidden",position:"relative"},children:(0,v.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,v.jsx)(a.Z,{url:G.thumbnail_image,isMuted:!0,isPlaying:!0,event:G})})}),(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,v.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,v.jsx)(h.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 15px black);",color:"white",fontSize:K+"px"},onClick:Y,style:{position:"relative",zIndex:1,left:$+"px",bottom:$+"px"}})}),(0,v.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,v.jsx)(c.Z,{sx:{color:(0,f.Ya_)(P),fontSize:U+"px",filter:"drop-shadow(0 0 15px black);"}})}),(0,v.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:J,borderBottomRightRadius:J,backgroundImage:y?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,v.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*K+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",y]})})]})})]})})})})}},4284:function(e,t,i){i.r(t);var n=i(7313),o=i(9854),a=i(2860),r=i(7753),s=i(5160),d=i(6967),l=i(5380),c=i(58),p=i(8984),u=i(4669),h=i(941),w=i(9302),f=i(2575),x=i(7300),v=i(6524),g=i(9039),m=i(7376),y=i(778),b=i(7643),j=i(7008),I=i(7381),S=i(6417);const E=(0,f.Z)({key:"whatmore-css-ppv"}),L=n.lazy((()=>Promise.all([i.e(819),i.e(576),i.e(210),i.e(955),i.e(926),i.e(303),i.e(369),i.e(903)]).then(i.bind(i,9369))));function P(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,i]=(0,n.useState)(),[f,z]=(0,n.useState)(),[_]=(0,r.j1)("isInDesignMode"),[k]=(0,r.j1)("isDemoBrand"),[T]=(0,r.j1)("whatmoreEmbedAppUseVariant"),[C,D]=(0,n.useState)(-2),[M]=(0,r.j1)("whatmoreVariantId"),[A]=(0,r.j1)("whatmoreShopId");var[V]=(0,r.j1)("whatmoreProductId");const O=(0,r.MO)("isLandingSharedLink"),B=(0,r.MO)("whatmoreShareTemplateId"),F=(0,r.MO)("whatmoreShareEventId");V=(0,o.iXA)(A)?P(window.location.href):V;const[Z,R]=(0,n.useState)((()=>"true"===T?M:V));var N=a.Gc+"/v2/brand/"+A+"/product-events";const{whatmoreWidgetSourceDetails:G}=(0,n.useContext)(g.I);(0,n.useEffect)((()=>{(0,I.Oo)("Video shopping powered by Whatmore!"),(0,d.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,j.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,n.useEffect)((()=>{(0,u.ll)(A)}),[]),(0,n.useEffect)((()=>{null==t||0==t.length||f||!(0,p.KE)()||(0,r.MO)("whatmoreVideoPlayerPoolInitiated")||(0,c.b5)(c.UD)}),[t]),(0,n.useEffect)((()=>{D(-1),fetch(N.toString()+"?client_product_id="+Z.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>e.events)).then((e=>(i(e),e))).then((e=>((0,o.yoE)(A)&&function(e,t){setTimeout((async()=>{const i=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!i||i.product_link==P(window.location.href))return;const n={product_id:i.product_id,product_link:P(window.location.href)};fetch(a.Gc+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})}),500)}(e,Z),e))).catch((e=>{z(e.message)}))}),[Z]),(0,n.useEffect)((()=>{var e,i;D(-2),(t&&t.length>0||(0,o.uO6)(A))&&(0,m.PB)({userInteractionType:y.K.PDP_VISITED,widgetSourceDetails:G,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(e=t[0])||void 0===e?void 0:e.products,ctaList:null===t||void 0===t||null===(i=t[0])||void 0===i?void 0:i.cta})}),[t]),(0,n.useEffect)((()=>{let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let t=history.replaceState;history.replaceState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("true"===T){const e=function(e){for(var t=window.location.search.substring(1).split("&"),i=0;i<t.length;i++){var n=t[i].split("=");if(n[0]==e)return n[1]}return!1}("variant");e&&""!==e&&R(e)}}))}),[]),(0,n.useEffect)((()=>{null==t||0==t.length||f||O&&"template-embed"==(0,v.zv)(B)&&null!=F&&t.forEach(((e,t)=>{F==e.event_id&&W(e,!0,t)}))}),[t]);const W=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,p.KE)()&&!t&&(0,c.QV)(),(0,x.B6)(e)||(0,x.WJ)(e))return _||k||(async()=>{(0,s.wh)(e),(0,u.Tc)(A,a.h7,a.dU),(0,d.H4)(e.event_id,e.products,"product_page","video_popup")})(),void D(i)};function Y(){return(0,S.jsx)(S.Fragment,{})}return null==t||0==t.length||f?(0,S.jsx)("div",{}):(0,S.jsx)(w.C,{value:E,children:"no-product"===Z||-1===C||0===t.length?(0,S.jsx)(Y,{}):-2===C&&t.length>0?(0,S.jsx)("div",{children:(0,S.jsx)(b.u,{userInteractionType:y.K.PDP_POPUP_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!_&&!k,children:(0,S.jsx)(l.Z,{event:t[0],inVideoClick:W,closeClick:e=>{e.stopPropagation(),D(-1)}})})}):(0,S.jsx)("div",{children:(0,S.jsx)(n.Suspense,{children:(0,S.jsx)(b.u,{userInteractionType:y.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!_&&!k,children:(0,S.jsx)(L,{events:t,index:C,onBack:function(){(0,o.n2L)(A)&&(0,r.MO)("whatmoreAddedToCart")&&(0,h.D)(A,(()=>{}),100,window.location.hostname),D(-2)},template:"template-product-page"})})})})})}},7376:function(e,t,i){i.d(t,{GF:function(){return o},PB:function(){return s},Z2:function(){return a},y4:function(){return r}});var n=i(733);function o(e){let{userInteractionType:t,userInteractionMetadata:i,widgetSourceDetails:o,event:a,productList:r,ctaList:s}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:i,widgetSourceDetails:o,event:a,productList:r,ctaList:s})}function a(e){let{userInteractionType:t,userInteractionMetadata:i,widgetSourceDetails:o,event:a,productList:r,ctaList:s}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:i,widgetSourceDetails:o,event:a,productList:r,ctaList:s})}function r(e){let{userInteractionType:t,userInteractionMetadata:i,widgetSourceDetails:o,event:a,productList:r,ctaList:s}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:i,widgetSourceDetails:o,event:a,productList:r,ctaList:s})}function s(e){let{userInteractionType:t,userInteractionMetadata:i,widgetSourceDetails:o,event:a,productList:r,ctaList:s}=e;(0,n.s)({userInteractionType:t,userInteractionMetadata:i,widgetSourceDetails:o,event:a,productList:r,ctaList:s})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[790,12],{1332:function(t,e,n){var o=n(7313),c=(n(8743),n(7753)),a=n(5254),r=n(6417);e.Z=function(t){return(0,o.useEffect)((()=>{const t=(0,a.oo)((0,c.MO)("whatmoreSecondaryColor"));!function(t,e,n,o){const c="rgba(".concat(t,",").concat(e,",").concat(n,",").concat(o,")"),a="\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ".concat(c,", 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.8em -1.8em 0 0em ").concat(c,", 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 2.5em 0em 0 0em ").concat(c,", 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.75em 1.75em 0 0em ").concat(c,", 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 0em 2.5em 0 0em ").concat(c,", -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em 1.8em 0 0em ").concat(c,", -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -2.6em 0em 0 0em ").concat(c,", -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em -1.8em 0 0em ").concat(c,";\n }\n }\n "),r=document.createElement("style");r.type="text/css",r.innerHTML=a,document.head.appendChild(r)}(t[0],t[1],t[2],.2)}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:"whatmore-loading-indicator"})})}},3867:function(t,e,n){var o=n(8816),c=n(417),a=n(4885),r=n(7753),i=n(9039),s=n(7313),m=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,s.useContext)(i.I),[l]=(0,r.j1)("whatmoreSecondaryColor"),[d,h]=(0,r.j1)("productRatings"),u=(0,r.MO)("whatmorePrimaryFont"),f=(t.storeId,t.productId),p=(t.productLink,t.fontSize),g=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(f in d)||d[f].avgRating>5)return(0,m.jsx)(m.Fragment,{});const b=d[f].avgRating,y=d[f].totalRatings;return(0,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(b))].map(((t,e)=>(0,m.jsx)(o.Z,{sx:{color:l,fontSize:p+"px"}},"star-icon"+e))),b-Math.floor(b)>.2?(0,m.jsx)(c.Z,{sx:{color:l,fontSize:p+"px"}},"star-half-icon"):b-Math.floor(b)==0?(0,m.jsx)(m.Fragment,{}):(0,m.jsx)(a.Z,{sx:{color:l,fontSize:p+"px"}},"star-outline-icon"),[...Array(Math.floor(5-b))].map(((t,e)=>(0,m.jsx)(a.Z,{sx:{color:l,fontSize:p+"px"}},"star-outline-icon-"+e))),(0,m.jsx)("div",{children:(0,m.jsx)("div",{width:"2px"})}),(0,m.jsx)("div",{children:(0,m.jsx)("div",{style:{backgroundColor:l,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,m.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",b,"\xa0"]})})}),(0,m.jsx)("div",{children:(0,m.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",g,"important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+y+")"]})})]})})}},3175:function(t,e,n){var o=n(1332),c=n(5180),a=n(6417);e.Z=function(t){var e,n;const r=null!==(e=t.height)&&void 0!==e?e:"100%",i=null!==(n=t.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)(c.Z,{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)(o.Z,{})})})]})}},5180:function(t,e,n){var o=n(6417);e.Z=function(t){var e,n,c;const a=null!==(e=t.height)&&void 0!==e?e:"100%",r=null!==(n=t.width)&&void 0!==n?n:"100%",i=null!==(c=t.borderRadius)&&void 0!==c?c:"10px";return(0,o.jsx)("div",{style:{height:a,width:a,borderRadius:i,overflow:"hidden",minHeight:a,minWidth:r,maxHeight:a,maxWidth:r},children:(0,o.jsx)("div",{style:{minHeight:a,minWidth:r},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(t,e,n){var o=n(7313),c=n(3175),a=n(6417);e.Z=function(t){var e,n,r;const[i,s]=(0,o.useState)(!1),m=o.useRef(0),l=(0,o.useRef)(null),d=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},h=null!==(n=t.height)&&void 0!==n?n:"100%",u=null!==(r=t.width)&&void 0!==r?r:"100%";return(0,o.useEffect)((()=>{m.current=0;const t=setInterval((()=>{m.current=m.current+.03,l.current&&d(m.current,5),m.current>=5&&(m.current=0)}),30);return()=>{clearInterval(t)}}),[t.isPlaying]),(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:u,height:h,overflow:"hidden"},children:[(0,a.jsx)("div",{style:{width:i?"100%":"0px",height:i?"100%":"0px"},children:(0,a.jsx)("img",{ref:l,src:t.url,style:{objectFit:"cover",height:h,width:u,backgroundColor:"white"},alt:"image player",onLoad:()=>{s(!0)}})}),i?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(c.Z,{width:u,height:h})]})}},4892:function(t,e,n){n.d(e,{Z:function(){return h}});var o=n(7313),c=n(3933),a=n(868),r=n(8984),i=n(7300),s=n(2887),m=n(4862),l=n(6417);var d=function(t){var e,n;const a=(0,o.useRef)(null),[r,i,s]=(0,c.YD)({triggerOnce:!0}),d=null!==(e=t.height)&&void 0!==e?e:"100%",h=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)((()=>{a.current&&(t.isPlaying?a.current.play():(m.G6&&a.current.play(),a.current.pause()))}),[t.isPlaying,i]),(0,l.jsx)("div",{ref:r,style:{width:d,height:h,overflow:"hidden"},children:i?(0,l.jsx)("video",{ref:a,className:"whatmore-video-player",width:h,height:d,preload:"metadata",loop:!0,playsInline:!0,poster:t.isPlaying?t.url:"",muted:!0,src:t.url,style:{backgroundColor:"white"}}):(0,l.jsx)("div",{width:h,height:d,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var h=function(t){var e,n,m;const[h,u,f]=(0,c.YD)({triggerOnce:!0});if((0,i.WJ)(t.event))return(0,l.jsx)(s.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const p=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200;if((0,r.KE)())return(0,l.jsx)(d,{height:"100%",width:"100%",url:(0,a.V)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:p});const g=(0,o.useRef)(null),b=null!==(n=t.height)&&void 0!==n?n:"100%",y=null!==(m=t.width)&&void 0!==m?m:"100%";return(0,o.useEffect)((()=>{g.current&&(t.isPlaying?g.current.play():g.current.pause())}),[t.isPlaying,u]),(0,l.jsx)("div",{ref:h,style:{width:b,height:y,overflow:"hidden"},children:u?(0,l.jsx)("video",{ref:g,className:"whatmore-video-player",width:y,height:b,preload:"metadata",loop:!0,playsInline:!0,muted:!0,src:(0,a.V)(t.url),style:{backgroundColor:"white"}}):(0,l.jsx)("div",{width:y,height:b,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}},868:function(t,e,n){n.d(e,{V:function(){return i}});var o=n(9854),c=n(7753);const a={"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"},r={"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"},i=function(t){const e=(0,c.MO)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,o.zpr)(e))return t;if("AZURECDN"==(0,o.zpr)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(a))if(t.includes(e))return t.replace(e,a[e]);return t}}if("BUNNYCDN"==(0,o.zpr)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(r))if(t.includes(e))return t.replace(e,r[e]);return t}}return t}},9363:function(t,e,n){n.d(e,{s:function(){return a}});var o=n(9854),c=n(7753);function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,c.MO)("whatmoreShopId");return"shopify"!=(0,o.Ipo)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}},5456:function(t,e,n){n.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},8866:function(t,e,n){var o=n(7313);function c(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=c();const[a,r]=(0,o.useState)([e>n?"portrait":"landscape",e,n]);return(0,o.useLayoutEffect)((()=>{function t(){var[t,e]=c();r(t>e?["portrait",t,e]:["landscape",t,e])}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)}}),[]),a}},9723:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"}),"PlayArrowRounded");e.Z=r},8816:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=r},417:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=r},4885:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=r},8743:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|