whatmore-react-assets 1.0.1624 → 1.0.1625
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/{46.39891776.chunk.js → 46.441fb357.chunk.js} +1 -1
- package/static/js/620.89dab4db.chunk.js +1 -0
- package/static/js/852.bf15b7af.chunk.js +1 -0
- package/static/js/event-click-spotlight.fdddf784.chunk.js +2 -0
- package/static/js/product-page-view.267b242b.chunk.js +1 -0
- package/static/js/whatmore-root.d5718651.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/620.e6ba9961.chunk.js +0 -1
- package/static/js/852.73a172be.chunk.js +0 -1
- package/static/js/event-click-spotlight.f1811e12.chunk.js +0 -2
- package/static/js/product-page-view.9e3f7224.chunk.js +0 -1
- package/static/js/whatmore-root.96bef909.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
opacity: 1;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
`;const p=function(t,e){return(0,c.BLb)(e)?t+"?"+(0,c.VCz)(e)+"&"+(0,c.Spk)(e)+"&"+(0,c.yD5)(e):t};e.A=function(t){var e;const[i,s,v,x]=(0,a.A)(),m=(0,d.Xd)("isInDesignMode"),g=(0,d.Xd)("isDemoBrand"),f=(0,d.Xd)("whatmoreSecondaryColor"),w=(0,d.Xd)("whatmorePrimaryFont"),j=(0,d.Xd)("whatmoreShopId"),y=t.cta,b=.06*x;return(0,h.jsx)(n.o,{children:(0,h.jsx)(o.B,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:.03*x+"px",marginTop:.03*x+"px",children:(0,h.jsx)(r.N,{href:p(y.cta_link,j),color:"white",onClick:()=>{m||g||(async()=>{(0,u.TG)(t)})()},children:(0,h.jsx)(l.E,{fontSize:b*(null!==(e=t.fontFactor)&&void 0!==e?e:1)+"px",variant:"subtle",textColor:t.isBanner?f:"#fff",bgColor:t.isBanner?"#fff":f,borderRadius:"round"==(0,c.hep)(j)?"5px":"0",sx:{boxShadow:"1px 1px #0000001a",fontFamily:w+" !important",textAlign:"center!important",fontWeight:t.isBanner?"bold":void 0},padding:"10px",paddingX:.06*x+"px",children:y.cta_title})})})})}},3080:function(t,e,i){var n=i(1941);e.A=function(t){const[e,i,o]=(0,n.A)({disablePreview:!0});var r="landscape"==e?i*(9/16):o;if("landscape"==e){const t=.85;return[i,r,i*t,r*t]}return[i,r,i,r]}},3294:function(t,e,i){i.d(e,{N:function(){return n}});const n={BANNER:"banner",CAROUSEL_EVENT_OPENED:"carousel_event_opened",CAROUSEL_THUMBNAIL_VIEW:"carousel_thumbnail_view",STORY_EVENT_OPENED:"story_event_opened",STORY_THUMBNAIL_VIEW:"story_thumbnail_view"}},3771:function(t,e,i){i.d(e,{A:function(){return
|
|
87
|
+
`;const p=function(t,e){return(0,c.BLb)(e)?t+"?"+(0,c.VCz)(e)+"&"+(0,c.Spk)(e)+"&"+(0,c.yD5)(e):t};e.A=function(t){var e;const[i,s,v,x]=(0,a.A)(),m=(0,d.Xd)("isInDesignMode"),g=(0,d.Xd)("isDemoBrand"),f=(0,d.Xd)("whatmoreSecondaryColor"),w=(0,d.Xd)("whatmorePrimaryFont"),j=(0,d.Xd)("whatmoreShopId"),y=t.cta,b=.06*x;return(0,h.jsx)(n.o,{children:(0,h.jsx)(o.B,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:.03*x+"px",marginTop:.03*x+"px",children:(0,h.jsx)(r.N,{href:p(y.cta_link,j),color:"white",onClick:()=>{m||g||(async()=>{(0,u.TG)(t)})()},children:(0,h.jsx)(l.E,{fontSize:b*(null!==(e=t.fontFactor)&&void 0!==e?e:1)+"px",variant:"subtle",textColor:t.isBanner?f:"#fff",bgColor:t.isBanner?"#fff":f,borderRadius:"round"==(0,c.hep)(j)?"5px":"0",sx:{boxShadow:"1px 1px #0000001a",fontFamily:w+" !important",textAlign:"center!important",fontWeight:t.isBanner?"bold":void 0},padding:"10px",paddingX:.06*x+"px",children:y.cta_title})})})})}},3080:function(t,e,i){var n=i(1941);e.A=function(t){const[e,i,o]=(0,n.A)({disablePreview:!0});var r="landscape"==e?i*(9/16):o;if("landscape"==e){const t=.85;return[i,r,i*t,r*t]}return[i,r,i,r]}},3294:function(t,e,i){i.d(e,{N:function(){return n}});const n={BANNER:"banner",CAROUSEL_EVENT_OPENED:"carousel_event_opened",CAROUSEL_THUMBNAIL_VIEW:"carousel_thumbnail_view",STORY_EVENT_OPENED:"story_event_opened",STORY_THUMBNAIL_VIEW:"story_thumbnail_view"}},3771:function(t,e,i){i.d(e,{A:function(){return y}});var n=i(9950),o=i(2039),r=i(6670),l=i(1046),a=i(16),d=i(9098),s=i(5830),c=i(1085),u=i(3294),h=i(1348),p=i(4033),v=(i(5410),i(5551)),x=i(6493),m=i(4414);function g(t){var e,i,o;const[l,d]=(0,r.A)(),[g,f]=(0,n.useState)(n.useRef()),w=t.posterImage,[j,y]=(0,s.QN)("whatmoreVideoPlayerPoolBlessed"),[b,C]=(0,n.useState)(!0),[S,k]=(0,n.useState)(!1),I=t.timeUpdateCallback,{whatmoreIsPreviewMode:_}=(0,n.useContext)(v.B),z=null!==(e=t.isVideoMuted)&&void 0!==e?e:l,E=null!==(i=t.height)&&void 0!==i?i:"100%",T=null!==(o=t.width)&&void 0!==o?o:"100%",N=(0,s.Xd)("whatmoreShopId");(0,n.useLayoutEffect)((()=>{if(g.current&&j)if(0==g.current.children.length){const i=(0,x.Cr)(t.url);(e=(0,c.Z4)(g.current,t.url,z||!t.isPlaying,t.isPlaying,i)).setAttribute("playsinline","true"),e.setAttribute("preload","auto"),e.addEventListener("loadeddata",(()=>{C(!1)})),I&&e.addEventListener("timeupdate",(t=>{var i,n;e&&I(null!==(i=e.currentTime)&&void 0!==i?i:0,null!==(n=e.duration)&&void 0!==n?n:0)}))}else{var e;(e=g.current.children[0]).muted=z||!t.isPlaying,t.isPlaying?e.play():(e.pause(),(0,h.fwF)(N)&&t.source==u.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&e.play(),setTimeout((()=>{!t.isPlaying&&e.pause()}),(0,p.n)()?1900:800)))}}),[z,t.isPlaying,j,b]),(0,n.useLayoutEffect)((()=>()=>{g.current&&0!=g.current.children.length&&(0,c.rq)(g.current)}),[]);const F=(0,s.Xd)("whatmoreLandingLocationType");return(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:T,height:E,overflow:"hidden",backgroundColor:_?(0,h.KVz)(N):(0,h.QSX)(N),filter:t.showQuestion?"blur(24px)":""},children:[(0,m.jsx)("div",{ref:g,style:{width:b?"0px":"100%",height:b?"0px":_?(0,h.tbf)(N):(0,h.CBm)(N)&&"product"==F?"auto":(0,h.R7q)(N)},className:"whatmore-video-player-ios-holder"}),"40273707171"!==N&&b&&S?(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:w,style:{height:"100%",width:T,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):b&&!S&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,m.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:w,height:"100%",width:T,onLoad:()=>{k(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:T,height:E,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var f=function(t){var e;return(0,m.jsx)(g,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,source:t.source,posterImage:t.posterImage,showQuestion:t.showQuestion})},w=i(3788);function j(t){var e,i,o;const[l,d]=(0,r.A)(),[c,g]=(0,n.useState)(!1),[f,j]=(0,n.useState)(!1),y=t.setDuration,b=(0,n.useRef)(null),C=(0,s.Xd)("whatmoreShopId"),S=t.timeUpdateCallback,{whatmoreIsPreviewMode:k}=(0,n.useContext)(v.B),I=(0,s.Xd)("whatmoreLandingLocationType"),_=null!==(e=t.height)&&void 0!==e?e:"100%",z=null!==(i=t.width)&&void 0!==i?i:"100%",E=null!==(o=t.isVideoMuted)&&void 0!==o?o:l,T=null===t||void 0===t?void 0:t.posterImage;return(0,n.useEffect)((()=>{b.current&&(t.isPlaying?b.current.paused&&b.current.play():b.current.pause(),S&&b.current.addEventListener("timeupdate",(t=>{var e,i;b.current&&S(null!==(e=b.current.currentTime)&&void 0!==e?e:0,null!==(i=b.current.duration)&&void 0!==i?i:0)})))}),[t.isPlaying,t.url]),(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:z,height:_,overflow:"hidden",backgroundColor:k?(0,h.KVz)(C):(0,h.QSX)(C),filter:null!==t&&void 0!==t&&t.showQuestion?"blur(24px)":""},children:[(0,m.jsx)("div",{style:{width:c?"100%":"0px",height:c?k?(0,h.tbf)(C):(0,h.CBm)(C)&&"product"==I?"auto":(0,h.R7q)(C):"0px"},children:(0,m.jsxs)("video",{ref:b,className:"whatmore-video-player",preload:"auto",loop:!0,src:"banner"==t.source?t.url:void 0,playsInline:!0,muted:!(!E&&t.isPlaying),onLoadedData:()=>{g(!0),t.isPlaying&&b.current&&b.current.play(),(0,h.fwF)(C)&&t.source==u.N.CAROUSEL_EVENT_OPENED&&(!t.isPlaying&&b.current&&b.current.play(),setTimeout((()=>{!t.isPlaying&&b.current&&b.current.pause()}),(0,p.n)()?1900:800))},onLoadedMetadata:()=>{b.current&&y&&y(b.current.duration)},poster:"banner"==t.source?t.url:T,children:[(0,m.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,m.jsx)("source",{src:(0,w.s)(t.url),type:"video/mp4"}),(0,m.jsx)("source",{src:(0,x.Cr)(t.url),type:"video/mp4"})]})}),"40273707171"!==C&&!c&&f?(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:T,style:{height:"100%",width:z,animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})})})}):!c&&!f&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,m.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,m.jsx)("img",{src:T,height:"100%",width:z,onLoad:()=>{j(!0)},style:{animation:t.isPlaying?"fadeInFromNoneAnimation 1.5s infinite":""}})}),(0,m.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(a.A,{width:z,height:_,style:{position:"absolute",top:"50%",left:"50%",opacity:"0.6"}})})]})})]})}var y=function(t){var e,i,r,a;return(0,o.Il)(t.event)?(0,m.jsx)(d.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,n.useContext)(l.EventClickComponentContext).isIOS&&1==(0,s.Xd)("whatmoreVideoPlayerPoolBlessed")&&"banner"!=t.source?(0,m.jsx)(f,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(r=t.isVideoMuted)&&void 0!==r?r:null,source:t.source,posterImage:null===(a=t.event)||void 0===a?void 0:a.poster_image,showQuestion:null===t||void 0===t?void 0:t.question}):(0,m.jsx)(j,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null,setDuration:t.setDuration,source:t.source,posterImage:null===(i=t.event)||void 0===i?void 0:i.poster_image,showQuestion:null===t||void 0===t?void 0:t.question})}},3936:function(t,e,i){var n=i(6086),o=i(3247),r=(i(9950),i(3080)),l=i(4895),a=i(5375),d=i(6670),s=i(4414);e.A=function(t){const[e,i]=(0,d.A)(),[c,u,h,p]=(0,r.A)(),v=.1*p;function x(){i(!e)}return(0,s.jsx)(n.o,{children:(0,s.jsx)(o.jl,{cursor:"pointer",children:e?(0,s.jsx)(a.A,{sx:{color:"white",fontSize:v,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{x()}}):(0,s.jsx)(l.A,{sx:{color:"white",fontSize:v,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:()=>{x()}})})})}},5144:function(t,e,i){i.d(e,{jd:function(){return o},so:function(){return r}});var n=i(8283);const o=`\n ${n.i7`
|
|
88
88
|
0% { transform: scale(1); }
|
|
89
89
|
50%, { transform: scale(0.95); }
|
|
90
90
|
100% { transform: scale(1); }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[620],{1131:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},2375:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},3590:function(t,e,i){var o=i(2375),n=i(1348),r=i(5830),s=i(4414);function l(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.A=function(t){const e=(0,r.Xd)("whatmoreUITheme"),i=(0,r.Xd)("whatmoreShopId"),a=(0,r.Xd)("whatmorePrimaryFont"),d=t.event,p=t.fontSize;if(d.total_views<=0)return(0,s.jsx)(s.Fragment,{});const h=(0,n.FVo)(i);return"template-icon"==h?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,n.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(i),borderColor:(0,n.Fwt)(i)},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)(o.A,{sx:{color:(0,n.s0t)(i)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"),t.style.setProperty("font-size",p,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+l(d.total_views)+" "})})]})})}):"template-text"==h?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,n.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(i),borderColor:(0,n.Fwt)(i)},children:(0,s.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+l(d.total_views)+" views"})})})})}):void 0}},4616:function(t,e,i){var o=i(9950),n=i(5830),r=i(932),s=i(8538),l=(i(4826),i(1348)),a=i(7973),d=i(4414);e.A=function(t){var e,i,p,h,[c,m]=(0,r.A)();const x=(0,n.Xd)("whatmoreUITheme"),[y]=(0,n.QN)("whatmorePrimaryFont"),[f,v]=(0,o.useState)(0),w=(0,n.Xd)("whatmoreShopId"),g=t.event;if(0==g.products.length)return(0,d.jsx)(d.Fragment,{});const u=.3*m,j=u+"px",b=u+"px",P=.07*m,F=P+"px";return(0,d.jsx)("div",{style:{width:m+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,d.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,d.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",b,"important")},style:{width:(0,l.H$k)(w)?j:"auto",boxShadow:"round"==x?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==x?"5px":"0px",borderWidth:(0,l.YcK)(w),borderColor:(0,l.Fwt)(w),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,l.KZe)(w),"important"),t.style.setProperty("max-width",j,"important"))},src:(0,a.b)(g.products[f].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==x?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:m-5-u+"px",height:"100%",borderRadius:"round"==x?"5px":"0px",overflow:"visible"},children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",F),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"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:"normal"},children:(0,s.v)(g.products[f].title)})}),(0,l.gZ6)(w)&&(null===(e=g.products[f])||void 0===e||null===(i=e.product_metadata)||void 0===i?void 0:i.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:m-5-u+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==x?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",m-5-u+"px","important"),t.style.setProperty("font-size",.7*P+"px","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","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"))},children:null===(p=g.products[f])||void 0===p||null===(h=p.product_metadata)||void 0===h?void 0:h.product_type})})]})]},f)})}},5620:function(t,e,i){i.d(e,{A:function(){return u}});var o=i(9950),n=i(932),r=(i(4826),i(5727)),s=i(5830),l=i(9879),a=i(7509),d=i(22),p=i(1348),h=i(3590),c=i(4616),m=i(6649),x=i(6613),y=i(1131),f=(i(4365),i(4414));function v(t){var e,[i,l]=(0,n.A)();const[d]=(0,s.QN)("whatmoreShopId"),[h,y,v]=(0,m.A)({triggerOnce:!0});var w=(0,o.useContext)(a.h);const g=t.event,u=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*l,b=(0,x.At)()?t.isOnFocus:y;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)("p",{children:" "})}),w.showPlayButton&&!u||"90999947547"==d?(0,f.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,f.jsxs)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:["90999947547"==d&&(0,f.jsx)("div",{style:{boxShadow:"dark-lg",transform:"scale(1.25)"},children:(0,f.jsx)("img",{src:"https://s3.ap-south-1.amazonaws.com/whatmorelive.brand.other.assets/meeral/meeral-sale.png"})}),"90999947547"!=d&&"video"==g.event_type&&(0,f.jsx)(r.A,{sx:{color:(0,p.KFN)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})]})})}):(0,f.jsx)(f.Fragment,{}),(0,f.jsx)("div",{ref:h,children:b&&(0,p.imx)(d)?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(c.A,{event:g})}):(0,f.jsx)("div",{height:"20px"})})]})})}function w(t){var[e,i]=(0,n.A)();const[o]=(0,s.QN)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,f.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,f.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,f.jsx)("p",{style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,f.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",o,"important")},style:{color:"white",fontSize:.08*i+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,f.jsx)(f.Fragment,{})}function g(t){const[e,i,o,r,l]=(0,n.A)(),[a]=(0,s.QN)("whatmoreShowViews"),c=(0,s.Xd)("whatmoreShopId"),m=t.event,x=t.isOnFocus;return(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,f.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",alignItems:"center"},children:["show"===a&&"show"===(0,p.klK)(c)?(0,f.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,f.jsx)(h.A,{event:m,fontSize:.07*i+"px"})})}):(0,f.jsx)(f.Fragment,{}),!1]})}),d.nN===l[d.dl]?(0,f.jsx)(f.Fragment,{}):x?(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,f.jsx)(w,{event:m})}):(0,f.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,f.jsx)(w,{event:m})})]})})}var u=function(t){var e,i,r;const[h,c,m,x,w]=(0,n.A)();var u=(0,o.useContext)(a.h);const j=(0,s.Xd)("whatmoreUITheme"),b=(0,s.Xd)("whatmoreShopId"),[P]=(0,s.Xd)("whatmorePrimaryFont"),F=t.event,C=t.onClick,k=null===(e=t.isOnFocus)||void 0===e||e,I=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,S=null!==(r=t.animateOnFocus&&(0,p.n5O)(b))&&void 0!==r&&r,A=(0,p.VYo)(b);return(0,f.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",u.tileTopMargin+"px"),t.style.setProperty("margin-bottom",u.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:c,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":h,borderRadius:"round"==j?"5px":"0px",boxShadow:"round"==j||"61187850326"==b||"19501891"==b?A:null,borderWidth:(0,p.YcK)(b),borderColor:(0,p.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:S?k?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{C(F)},children:[(0,f.jsx)(l.A,{height:(0,p.u06)(b)+" !important",width:"100%",url:F.thumbnail_image,isPlaying:k||I,event:F}),"51394281658"===b?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,fontSize:"1.4rem",fontWeight:"600",width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis",fontFamily:P+" !important"},children:null===F||void 0===F?void 0:F.title}),(0,f.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,f.jsx)(y.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,p.Q$)(b)&&(0,f.jsxs)("div",{style:{width:c,height:h},children:[(0,f.jsx)(g,{event:F,isOnFocus:k}),"87043703105"===b||"76467011883"===b||!k&&d.nN!==w[d.dl]?null:(0,f.jsx)(v,{event:F,unfocusedDisplay:!k,isOnFocus:k})]})]})}},7973:function(t,e,i){i.d(e,{B:function(){return s},b:function(){return r}});var o=i(1348),n=i(5830);function r(t,e=""){const i=(0,n.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(i)?"STRNV8MHJTF"==i?t+"?format=webp":t:t+e}function s(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const i=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(i)?"image":null!==n&&void 0!==n&&n.test(i)?"video":void 0}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[852],{852:function(t,e,n){n.r(e),n.d(e,{initiateCartSliderEvent:function(){return a}});const o=function(){fetch("/cart.json").then((t=>t.json())).then((t=>{fetch("/cart?view=item").then((t=>t.text())).then((e=>{const n=(new DOMParser).parseFromString(e,"text/html").getElementById("CartDrawer"),o=document.getElementById("CartDrawer");n&&o&&(o.innerHTML=n.innerHTML);const r=document.querySelector("cart-drawer");r&&r.classList.remove("is-empty");const a=document.querySelector("cart-drawer-items");a&&a.classList.remove("is-empty");const c=document.getElementById("cart-icon-bubble");if(c.querySelector(".cart-count-bubble")){c.querySelectorAll('.cart-count-bubble span[aria-hidden="true"]').forEach((e=>{e.textContent=t.item_count}))}else{const e=document.createElement("div");e.className="cart-count-bubble",e.innerHTML=`\n <span aria-hidden="true">${t.item_count}</span>\n <span class="visually-hidden">${t.item_count} items</span>\n `,c.appendChild(e)}c.click();document.getElementById("CartDrawer-Overlay").addEventListener("click",(()=>{const t=document.querySelector("cart-drawer");t&&t.classList.remove("active"),document.body.classList.remove("overflow-hidden")}))})).catch((t=>{}))})).catch((t=>{console.log(t)}))},r=t=>{try{const e=document.querySelector("#halo-cart-sidebar .halo-sidebar-wrapper .previewCart-wrapper"),n='\n <div class="loading-overlay loading-overlay--custom">\n <div class="loading-overlay__spinner">\n <svg aria-hidden="true" focusable="false" role="presentation" class="spinner" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\n <circle class="path" fill="none" stroke-width="6" cx="33" cy="33" r="30"></circle>\n </svg>\n </div>\n </div>\n ',o="is-loading";e.classList.add(o),e.insertAdjacentHTML("afterbegin",n),fetch(window.routes.root+"/cart?view=ajax_side_cart",{method:"GET",cache:"no-cache"}).then((t=>t.text())).then((t=>{const n=(new DOMParser).parseFromString(t,"text/html");e.innerHTML=n.body.innerHTML,e.classList.remove(o)})).finally((()=>{document.body.querySelector("[data-cart-count]").textContent=cart.item_count,document.dispatchEvent(new CustomEvent("cart-update",{detail:t}));document.getElementById("cart-icon-bubble").click()})).catch((t=>{}))}catch(e){}},a=async function(t,e,n,a,c=""){if("STRNV8MHJTF"!=t&&"STR6HU283UZ"!=t&&"STR9T3LLEJB"!=t&&"STRWJMIOJNX"!=t&&"STRUDQ36YAC"!=t&&"STR1D5ONOZX"!=t){var i=await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((t=>t.json()));if("57939755089"==t||"27358003275"==t||"63748341981"==t||"68237558034"==t||"63046287536"==t||"9734029408"==t||"83411075365"==t||"36300750986"==t||"16957273"==t||"9483952"==t||"57265094752"==t||"58538459329"==t||"80266658086"==t||"46784020646"==t||"52982579389"==t||"76291703063"==t||"68546691304"==t)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0,detail:{cart:i,openMiniCart:!0}}));else if("19506115"==t)window.PXUTheme.jsAjaxCart.showDrawer(),window.PXUTheme.jsAjaxCart.updateView();else if("54465429691"==t||"41096085665"==t)refreshCart(i),window.setTimeout((function(){$.fancybox.close(),$(".cart-button").click()}),500);else if("25427564"==t||"4243849314"==t||"57708314789"==t||"86986621247"==t||"58745159727"==t){(new theme.CartDrawer).open()}else if("62602182872"==t||"57362710572"==t)CartJS.getCart(),$(".block-cart").addClass("active");else if("58767048885"==t||"55820812447"==t||"83096174866"==t||"63791857821"==t||"50529403072"==t||"70963003672"==t||"20157815"==t||"60492578980"==t||"12183765088"==t||"58546946211"==t||"42070737058"==t||"71321583919"==t||"68492624171"==t||"74541891876"==t||"21187677"==t||"74021110038"==t||"58193838255"==t||"25151799349"==t||"72651899165"==t||"52022313149"==t||"64983957725"==t||"69610111257"==t||"61209641060"==t||"87043703105"==t||"69699436842"==t)document.documentElement.dispatchEvent(new CustomEvent("ajaxProduct:added",{bubbles:!0,detail:{}})),document.documentElement.dispatchEvent(new CustomEvent("cart:open",{bubbles:!0,detail:{}}));else if("2665447536"==t||"51364757670"==t||"45740720296"==t||"66229010609"==t)fetch("/?section_id=cart-drawer").then((t=>t.text())).then((t=>{const e=(new DOMParser).parseFromString(t,"text/html").getElementById("cart-drawer").innerHTML;$("#cart-drawer").html(e),$('[aria-controls="cart-drawer"]')[0].click(),$(".header__cart-count .count-bubble ").html(d.item_count).css("opacity",1)}));else if("57824805033"==t||"59504656436"==t||"58112966749"==t||"9989358"==t||"26958037078"==t)o();else if("80856187185"==t||"71256211737"==t)fetch("/cart?section_id=mini-cart").then((t=>t.text())).then((t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector(".mini-cart__inner").innerHTML;$(".mini-cart__inner").html(e).addClass("active__drawer")})).catch((t=>{console.error(t)})),o();else if("61094723750"==t||"45034766485"==t)SLIDECART&&(SLIDECART_UPDATE(),SLIDECART_OPEN());else if("10272035"==t){const t=document.querySelector(".cart-drawer"),e=t.parentNode;e.classList.add("menu-opening"),e.setAttribute("open","open"),t.style.visibility="visible",t.style.transform="translate(0)"}else if("1972174947"==t||"55194878152"==t||"49198989466"==t)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh:opend",{bubbles:!0,detail:{}}));else if("64463667449"==t||"63897370681"==t||"81998840121"==t||"70964478228"==t)document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0})),document.documentElement.dispatchEvent(new CustomEvent("cart:updated",{bubbles:!0,detail:{cart:i}})),document.getElementById("mini-cart").open=!0;else if("81545986363"==t)document.dispatchEvent(new CustomEvent("theme:cartchanged",{bubbles:!0})),document.dispatchEvent(new CustomEvent("theme:open-cart-drawer",{bubbles:!0}));else if("41346334884"==t||"74448077083"==t||"26562420"==t||"26759856318"==t)document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh")),document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:open"));else if("6873415750"==t)document.dispatchEvent(new CustomEvent("cart:change",{bubbles:!0,detail:{cart:i}})),document.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}));else if("59547517063"==t||"59612954814"==t)(()=>{try{var t=document.querySelector("cart-notification")||document.querySelector("cart-drawer"),e=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";Shopify.locale.length>0&&(e+=Shopify.locale+"/"),null!==t&&"function"===typeof t.renderContents&&fetch(e+"cart?sections=cart-drawer,cart-icon-bubble",{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){var n=document.querySelector("cart-drawer.drawer.is-empty");null!==n&&n.classList.remove("is-empty");try{return e.clone().json().then((function(e){try{var n={sections:e};t.renderContents(n)}catch(o){console.error(o)}}))}catch(o){console.error(o)}})).catch((t=>{}))}catch(n){}})();else if("61086662810"==t)(()=>{try{var t=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form"),e=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";if(Shopify.locale.length>0&&(e+=Shopify.locale+"/"),null!==t&&"function"===typeof t.renderContents){var n=t.getSectionsToRender().map((t=>t.id));fetch(e+"cart?sections="+n.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){try{return e.clone().json().then((function(e){try{var n={sections:e};t.renderContents(n)}catch(o){console.error(o)}}))}catch(n){console.error(n)}})).catch((t=>{}))}}catch(o){console.error(o)}})();else if("5827756145"==t){let t=document.getElementById("cart-config");t=JSON.parse(t.innerHTML||"{}"),"undefined"!==typeof window.Shopify&&"undefined"!==typeof window.Shopify.theme&&"undefined"!==typeof window.Shopify.theme.ajaxCart&&"function"===typeof window.Shopify.theme.ajaxCart.updateView&&(Shopify.theme.ajaxCart.updateView({cart_url:"/cart"},i),Shopify.theme.ajaxCart.showDrawer(t))}else if("73454354741"==t)0!==Object.keys(i).length&&r(i);else if("71830962487"==t)"undefined"!==typeof window.Shopify&&"function"===typeof window.Shopify.onCartUpdate&&-1===Shopify.onCartUpdate.toString().indexOf("There are now")&&window.Shopify.onCartUpdate(i,!0);else if("81516986679"==t||"1293622"==t||"73143124251"==t)document.documentElement.dispatchEvent(new CustomEvent("apps:product-added-to-cart",{bubbles:!0}));else if("78232846646"==t){const t=await fetch("/?section_id=cart-drawer"),e=await t.text(),n=document.createElement("div");n.innerHTML=e;const o=n.querySelector(".cart-drawer").innerHTML;document.querySelector(".cart-drawer").innerHTML=o,document.querySelector(".cart-drawer").classList.add("cart-drawer--active")}else if("50529403072"==t){new theme.Drawers("CartDrawer","cart").open()}else if("66789277933"==t){var d=await fetch("/?section_id=ajax-cart-drawer"),l=await d.text();const t=(new DOMParser).parseFromString(l,"text/html").getElementById("shopify-section-ajax-cart-drawer"),e=t.innerHTML;let n,o=document.querySelector("[data-cart-drwaer-body]"),r=0;t.querySelector("[data-cart-wrapper]")&&(r=parseInt(t.querySelector("[data-cart-wrapper]").getAttribute("data-item-count")),n=t.querySelector("[data-cart-wrapper]").getAttribute("data-item-total")),o.innerHTML=e,r>0&&getQuantityElement(o),cartCountUpdate(r),cartNoteUpdate();let a=document.querySelector("#ajax-cart-drawer[data-side-drawer]");document.querySelector("[data-cart-wrapper]").querySelectorAll("[data-add-to-cart]");getCartItemRemoveElements(a),cartGiftWrapElement(a),cartTermhandlerClick(),cartTermsHandler()}else if("83103121690"==t||"90617479486"==t)document.querySelector(".cart-count").click();else if("19827331"==t){const t=document.getElementById("main-cart-items");if(t){const e=await fetch("/cart"),n=await e.text(),o=(new DOMParser).parseFromString(n,"text/html").getElementById("main-cart-items");o&&(t.innerHTML=o.innerHTML)}$jq(".slider").removeClass("hidden-block").addClass("show-cart-slider")}else if("829620282"==t)try{$.get("/?view=cart",(t=>{const e=document.getElementById("osc-main-wrapper");e.innerHTML=t,updateQty(),removeQty(),$("#osc-icon-span").click(osCloseCart);const n=e.querySelector("#osc-total");calculateProgressBar(n.dataset.totalPrice),osOpenCart()})),document.getElementById("os-pp-error").innerHTML="";const t=parseInt(document.getElementById("osh-cart-bubble").innerHTML)+parseInt(1);$("#osh-cart-bubble").css("display","flex"),$("#osh-cart-bubble").text(t)}catch(h){console.log(h)}else if("24366857"==t||"68234805419"==t||"86879863060"==t){var s,u;if(!c)return;let t=document.querySelector("product-form");const e=t.querySelector("form");if(e){const t=e.querySelector('input[name="id"]');t&&(t.value=c)}null===t||void 0===t||null===(s=t.handleFormSubmit)||void 0===s||s.call(t,{preventDefault:()=>{}}),null===t||void 0===t||null===(u=t.onSubmitHandler)||void 0===u||u.call(t,{preventDefault:()=>{}})}else if("56517427254"==t){document.querySelector('[data-id="#nt_cart_canvas"]').click()}else{if("58273038492"==t&&$("#cart-drawer").toggleClass("active"),"62335516854"==t)(new theme.CartDrawer).open();"59993653290"==t&&$("body").toggleClass("show-cart-summary").hasClass("show-cart-summary"),document.documentElement.dispatchEvent(new CustomEvent("product:added",{bubbles:!0,detail:{}})),function(t){var e,n;try{var o=t.item_count;if($("[data-cart-item-count]").html(o),$(".header__cart-count").html(o),$(".site-header__cart-count span[data-cart-count]").html(o),$("#CartCount [data-cart-count]").length>0?$("#CartCount [data-cart-count]").html(o):$("#CartCount").length>0&&$("#CartCount").html($("#CartCount").html().replace(/(\d+)/,t.item_count)),$("#CartCount.hide").length>0&&$("#CartCount.hide").removeClass("hide"),$("#site-cart-handle .count-holder .count").length>0&&$("#site-cart-handle .count-holder .count").html($("#site-cart-handle .count-holder .count").html().replace(/(\d+)/,t.item_count)),$("#minicart .count.cart-target").length>0&&$("#minicart .count.cart-target").html($("#minicart .count.cart-target").html().replace(/(\d+)/,t.item_count)),$("#sidebar #meta .count").length>0&&$("#sidebar #meta .count").html($("#sidebar #meta .count").html().replace(/(\d+)/,t.item_count)),document.querySelectorAll(".js-drawer-open-cart").length>0&&document.querySelectorAll(".js-drawer-open-cart")[0].click(),$(".site-header__cart .site-header__cart-indicator").length>0&&($(".site-header__cart .site-header__cart-indicator").html($(".site-header__cart .site-header__cart-indicator").html().replace(/(\d+)/,t.item_count)),t.item_count>0&&$(".site-header__cart .site-header__cart-indicator").removeClass("hide")),$(".cart-count").length>0&&$(".cart-count").html($(".cart-count").html().replace(/(\d+)/,t.item_count)),$(".cartCount[data-cart-count]").length>0&&$(".cartCount[data-cart-count]").html($(".cartCount[data-cart-count]").html().replace(/(\d+)/,t.item_count)),$("[data-js-cart-count-desktop]").length>0&&($("[data-js-cart-count-desktop]").html(t.item_count),$("[data-js-cart-count-desktop]").attr("data-js-cart-count-desktop",t.item_count)),$(".cart-item-count-header").length>0){var r=$(".cart-item-count-header").first();!0===r.hasClass("cart-item-count-header--total")?r.find(".money").length&&(r=r.find(".money").first()).html(bndlr.formatPrice(t.items_subtotal_price)):r.html(r.html().replace(/(\d+)/,t.item_count))}if($("#CartCost").length>0&&"undefined"!==typeof theme&&"undefined"!==typeof theme.moneyFormat){var a=utils.formatMoney(t.items_subtotal_price,theme.moneyFormat);$("#CartCost").html(a)}if("function"==typeof refreshCart&&refreshCart(t),"undefined"!==typeof slate&&"undefined"!==typeof slate.cart&&"function"==typeof slate.cart.updateCart&&slate.cart.updateCart(),"undefined"!==typeof ajaxCart&&"function"===typeof ajaxCart.load&&ajaxCart.load(),$(".mega-nav-count.nav-main-cart-amount.count-items").length>0&&($(".mega-nav-count.nav-main-cart-amount.count-items").html($(".mega-nav-count.nav-main-cart-amount.count-items").html().replace(/(\d+)/,t.item_count)),$(".mega-nav-count.nav-main-cart-amount.count-items.hidden").removeClass("hidden")),$("#cart-icon-bubble").length>0){var c='#cart-icon-bubble .cart-count-bubble span[aria-hidden="true"]';$(c).length>0?$(c).html($(c).html().replace(/(\d+)/,t.item_count)):$("#cart-icon-bubble").append('<div class="cart-count-bubble"><span aria-hidden="true">'+t.item_count+"</span></div>")}"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.updateQuickCart&&Shopify.updateQuickCart(t),"undefined"!==typeof bcActionList&&"function"===typeof bcActionList.atcBuildMiniCartSlideTemplate&&(bcActionList.atcBuildMiniCartSlideTemplate(t),"function"===typeof openMiniCart&&openMiniCart()),$(".custom-cart-eye-txt").length>0&&$(".custom-cart-eye-txt").html($(".custom-cart-eye-txt").html().replace(/(\d+)/,t.item_count)),$(".cart_count").length>0&&$(".cart_count").each((function(e,n){$(n).html($(n).html().replace(/(\d+)/,t.item_count))})),document.querySelector(".cart-count")&&(document.querySelector(".cart-count").innerHTML=document.querySelector(".cart-count").innerHTML.replace(/(\d+)/,t.item_count)),$(".cart-count-bubble [data-cart-count]").length>0&&$(".cart-count-bubble [data-cart-count]").html($(".cart-count-bubble [data-cart-count]").html().replace(/(\d+)/,t.item_count)),$(".cart-count-bubble span.visually-hidden").length>0&&$(".cart-count-bubble span.visually-hidden").html($(".cart-count-bubble span.visually-hidden").html().replace(/(\d+)/,t.item_count)),$(".header-cart-count .cart_count_val").length>0&&($(".header-cart-count .cart_count_val").html(t.item_count),$(".header-cart-count").removeClass("empty_cart_count")),"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.updateCartInfo&&$(".top-cart-holder .cart-target form .cart-info .cart-content").length>0&&Shopify.updateCartInfo(t,".top-cart-holder .cart-target form .cart-info .cart-content");var i=new CustomEvent("wetheme-toggle-right-drawer",{detail:{type:"cart",forceOpen:void 0,params:{cart:t}}});document.documentElement.dispatchEvent(i),"undefined"!==typeof window.vndHlp&&"function"===typeof window.vndHlp.refreshCart&&window.vndHlp.refreshCart(t);try{"function"===typeof window.renderCart&&(window.renderCart(t),t.items.length>0&&$(".mini-cart.is-empty").removeClass("is-empty"))}catch(h){}try{"undefined"!==typeof window.SATCB&&"undefined"!==typeof window.SATCB.Helpers&&"function"===typeof window.SATCB.Helpers.openCartSlider&&window.SATCB.Helpers.openCartSlider()}catch(h){}try{document.dispatchEvent(new CustomEvent("theme:cart:change",{detail:{cart:t,cartCount:t.item_count},bubbles:!0}))}catch(h){}if("undefined"!==typeof window.cartStore&&"function"===typeof window.cartStore.setState&&window.cartStore.setState({justAdded:{},popupActive:!0,item_count:t.item_count,items:t.items,cart:t}),"undefined"!==typeof window.Shopify&&"function"===typeof window.Shopify.onCartUpdate&&-1===Shopify.onCartUpdate.toString().indexOf("There are now")&&window.Shopify.onCartUpdate(t,!0),"undefined"!==typeof theme&&"undefined"!==typeof theme.Cart&&"function"===typeof theme.Cart.setCurrentData&&theme.Cart.setCurrentData(t),"undefined"!==typeof window.halo&&"function"===typeof window.halo.updateSidebarCart){window.halo.updateSidebarCart(t);var d=$("[data-cart-sidebar]");d.length>0&&d[0].click()}if("undefined"!==typeof window.Shopify&&"undefined"!==typeof window.Shopify.theme&&"undefined"!==typeof window.Shopify.theme.ajaxCart&&"function"===typeof window.Shopify.theme.ajaxCart.updateView&&Shopify.theme.ajaxCart.updateView({cart_url:"/cart"},t),"undefined"!==typeof window.theme&&"undefined"!==typeof window.theme.cart&&"function"===typeof window.theme.cart.updateAllHtml)try{window.theme.cart.updateAllHtml(),window.theme.cart.updateTotals(t),document.querySelector(".header--cart-toggle").click()}catch(h){}if("function"===typeof monster_setCartItems)try{monster_setCartItems(t.items)}catch(h){console.error(h)}try{"undefined"!==typeof window.refreshCartContents&&window.refreshCartContents(t)}catch(h){}$(".header-actions [data-header-cart-count]").length>0&&$(".header-actions [data-header-cart-count]").html(t.item_count),window.dispatchEvent(new Event("update_cart")),"undefined"!==typeof clientSpecifics&&"undefined"!==typeof clientSpecifics.update_cart&&clientSpecifics.update_cart.trigger(t)}catch(h){console.log(h)}try{var l=document.querySelector(".minicart__outerbox"),s=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/";Shopify.locale.length>0&&(s+=Shopify.locale+"/"),null!==l&&"function"===typeof window.cartContentUpdate&&(sectionsToRender=l.dataset.section,fetch(s+"cart?sections="+sectionsToRender,{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(e){try{return e.clone().json().then((function(e){t.sections=e,window.cartContentUpdate(t,l,sectionsToRender)}))}catch(h){console.error(h)}})))}catch(h){console.error(h)}if("undefined"!==typeof window.SLIDECART_UPDATE)try{window.SLIDECART_UPDATE()}catch(h){console.log(h)}if("undefined"!==typeof window.SLIDECART_OPEN&&setTimeout((function(){try{window.SLIDECART_OPEN()}catch(h){console.log(h)}}),500),"undefined"!==typeof Shopify&&"undefined"!==typeof Shopify.theme&&"undefined"!==typeof Shopify.theme.jsAjaxCart&&"function"===typeof Shopify.theme.jsAjaxCart.updateView&&Shopify.theme.jsAjaxCart.updateView(),"undefined"!==typeof CartJS&&"function"===typeof CartJS.getCart)try{CartJS.getCart()}catch(h){console.log(h)}try{$(".sp-cart .sp-dropdown-toggle").length&&"undefined"!==typeof Shopify&&"function"===typeof Shopify.getCart&&Shopify.getCart(),$("form.cart-drawer").length>0&&($(".cart-drawer input").first().trigger("blur"),setTimeout((function(){$(".cart-drawer input").first().trigger("input")}),350))}catch(h){console.log(h)}try{var u=document.querySelector("m-cart-drawer");null!==u&&"function"===typeof u.onCartDrawerUpdate&&(u.onCartDrawerUpdate(),"function"===typeof u.open&&u.open())}catch(h){console.log(h)}try{document.dispatchEvent(new CustomEvent("cart:refresh"))}catch(h){}try{document.documentElement.dispatchEvent(new CustomEvent("cart:refresh",{bubbles:!0}))}catch(h){}if("undefined"!==typeof window.HsCartDrawer&&"function"===typeof window.HsCartDrawer.updateSlideCart&&debounce("hscartdrawer",(function(){try{HsCartDrawer.updateSlideCart()}catch(h){console.log(h)}}),100),"function"===typeof window.HS_SLIDE_CART_UPDATE&&debounce("hscartdrawer2",(function(){try{window.HS_SLIDE_CART_UPDATE()}catch(h){console.log(h)}}),100),"undefined"!==typeof window.HS_SLIDE_CART_OPEN&&"function"===typeof window.HS_SLIDE_CART_OPEN&&debounce("hscartdraweropen",(function(){try{window.HS_SLIDE_CART_OPEN()}catch(h){console.log(h)}}),100),"undefined"!==typeof theme&&"undefined"!==typeof theme.Cart&&"function"===typeof theme.Cart.updateCart&&theme.Cart.updateCart(),"undefined"!==typeof window.cart&&"function"===typeof window.cart.getCart&&window.cart.getCart(),"function"===typeof window.updateMiniCartContents)try{window.updateMiniCartContents()}catch(h){}if("function"===typeof window.loadEgCartDrawer)try{window.loadEgCartDrawer()}catch(h){}try{document.dispatchEvent(new CustomEvent("cart:build"))}catch(h){}try{document.dispatchEvent(new CustomEvent("obsidian:upsell:refresh")),document.dispatchEvent(new CustomEvent("obsidian:upsell:open"))}catch(h){}var m=document.getElementById("site-cart");if(null!==m)try{m.show()}catch(h){}if("undefined"!==typeof window.theme&&"function"===typeof window.theme.updateCartSummaries)try{window.theme.updateCartSummaries()}catch(h){}if("undefined"!==typeof window.CD_REFRESHCART)try{window.CD_REFRESHCART()}catch(h){console.log(h)}if("undefined"!==typeof window.CD_OPENCART&&setTimeout((function(){try{window.CD_OPENCART()}catch(h){console.log(h)}}),500),"function"===typeof window.buildCart)try{window.buildCart()}catch(h){console.log(h)}if("undefined"!==typeof window.PXUTheme&&"undefined"!==typeof window.PXUTheme.jsAjaxCart&&"function"===typeof window.PXUTheme.jsAjaxCart.updateView)try{window.PXUTheme.jsAjaxCart.updateView()}catch(h){}if("undefined"!==typeof window.theme&&"function"===typeof window.theme.addedToCartHandler)try{window.theme.addedToCartHandler({})}catch(h){}try{i=new Event("tcustomizer-event-cart-change"),document.dispatchEvent(i)}catch(h){}try{document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:refresh",{bubbles:!0})),setTimeout((function(){document.dispatchEvent(new CustomEvent("dispatch:cart-drawer:open"))}),500)}catch(h){}try{var p=document.querySelector("cart-notification")||document.querySelector("cart-drawer");s=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/",Shopify.locale.length>0&&(s+=Shopify.locale+"/"),null!==p&&"function"===typeof p.renderContents&&fetch(s+"cart?sections=cart-drawer,cart-icon-bubble",{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){var e=document.querySelector("cart-drawer.drawer.is-empty");null!==e&&e.classList.remove("is-empty");try{return t.clone().json().then((function(t){try{var e={sections:t};p.renderContents(e)}catch(h){console.error(h)}}))}catch(h){console.error(h)}}))}catch(h){console.error(h)}try{var f=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form");if(s=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/",Shopify.locale.length>0&&(s+=Shopify.locale+"/"),null!==f&&"function"===typeof f.renderContents){var w=f.getSectionsToRender().map((t=>t.id));fetch(s+"cart?sections="+w.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){try{return t.clone().json().then((function(t){try{var e={sections:t};f.renderContents(e)}catch(h){console.error(h)}}))}catch(h){console.error(h)}}))}}catch(h){console.error(h)}try{f=document.querySelector("mini-cart")||document.querySelector("cart-drawer")||document.querySelector("product-form"),s=window.location.origin?window.location.origin+"/":window.location.protocol+"//"+window.location.host+"/",null!==f&&"function"===typeof f.renderContents&&(w=f.getSectionsToRender().map((t=>null===t||void 0===t?void 0:t.section)),fetch(s+"cart?sections="+w.toString(),{method:"GET",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"}}).then((function(t){try{return t.clone().json().then((function(t){try{var e={sections:t};f.renderContents(e)}catch(h){console.error(h)}}))}catch(h){console.error(h)}})))}catch(h){console.error(h)}null===(e=document)||void 0===e||null===(n=e.documentElement)||void 0===n||n.dispatchEvent(new CustomEvent("cart:refresh:opend",{bubbles:!0,detail:{}})),console.log("entered")}(i)}setTimeout(e,n)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see event-click-spotlight.fdddf784.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[657],{1351:function(t,e,n){"use strict";n.d(e,{PG:function(){return a},kz:function(){return s},UM:function(){return u},yP:function(){return d},DG:function(){return l}});var o=n(1348),i=n(6157);function r(t,e,n={},o){var r;const c=a[t];if(!c)return;const s=c.isActionEnabled(),l=null===o||void 0===o||null===(r=o.meta_actions)||void 0===r?void 0:r[c.customAction];(s||l)&&"function"==typeof fbq&&(async()=>{const o={id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link,...t===i.O.VIDEO_PLAYBACK&&{watch_time:n.watch_time,video_duration:n.video_duration}};fbq("trackCustom",c.action,o),l&&setTimeout((()=>{null===l||void 0===l||l.forEach((t=>{fbq("trackCustom",t,o)}))}),500)})()}var c=n(7145);const a={[i.O.EVENT_VIEW]:{isActionEnabled:o.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[i.O.VIDEO_PLAYBACK]:{isActionEnabled:o.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[i.O.VIDEO_LIKED]:{isActionEnabled:o.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[i.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:o.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[i.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:o.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[i.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:o.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[i.O.SHOPNOW_CLICKED]:{isActionEnabled:o.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[i.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:o.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:s}){var l;(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:s}),t in a&&r(t,null!==(l=null===i||void 0===i?void 0:i[1])&&void 0!==l?l:null===i||void 0===i?void 0:i[0],e,o)}function l({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:s}){var l;(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:s}),t in a&&r(t,null!==(l=null===i||void 0===i?void 0:i[1])&&void 0!==l?l:null===i||void 0===i?void 0:i[0],e,o)}function u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:r}){(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:r})}function d({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:r}){(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:r})}},2173:function(t,e,n){const o=n(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(o,e)?o[e]:void 0},t.exports.currencySymbolMap=o},2835:function(t,e,n){"use strict";var o=n(7891),i=n(8454),r=n(3781),c=n(5830),a=n(4414);e.A=function(t){var e;const n=(0,c.Xd)("whatmoreUITheme"),[s]=(0,c.QN)("whatmoreSecondaryColor"),[l,u]=(0,c.QN)("productRatings"),d=(0,c.Xd)("whatmorePrimaryFont"),p=t.productId,f=t.fontSize,v=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===l||"undefined"==typeof l||!(p in l)||l[p].avgRating>5)return(0,a.jsx)(a.Fragment,{});const m=l[p].avgRating,D=l[p].totalRatings;return(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(m))].map(((t,e)=>(0,a.jsx)(o.A,{sx:{color:s,fontSize:f+"px"}},"star-icon"+e))),m-Math.floor(m)>.2?(0,a.jsx)(i.A,{sx:{color:s,fontSize:f+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(r.A,{sx:{color:s,fontSize:f+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map(((t,e)=>(0,a.jsx)(r.A,{sx:{color:s,fontSize:f+"px"}},"star-outline-icon-"+e))),(0,a.jsx)("div",{children:(0,a.jsx)("div",{width:"2px"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{backgroundColor:s,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*f+"px","important"),t.style.setProperty("font-family",d,"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",m,"\xa0"]})})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",v,"important"),t.style.setProperty("font-size",.8*f+"px","important"),t.style.setProperty("font-family",d,"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","("+D+")"]})})]})})}},3781:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.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.03zM12 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.28z"}),"StarOutline")},4669:function(){},6042:function(){},7229:function(){},7458:function(t,e,n){"use strict";n.d(e,{P: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))}},7891:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.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")},7973:function(t,e,n){"use strict";n.d(e,{B:function(){return c},b:function(){return r}});var o=n(1348),i=n(5830);function r(t,e=""){const n=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function c(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(n)?"image":null!==i&&void 0!==i&&i.test(n)?"video":void 0}},8454:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.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.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarHalf")},8558: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:"$"}},9130:function(){},9211:function(t,e,n){"use strict";function o(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}n.d(e,{A:function(){return i}});var i=function t(e,n){function i(t,i,r){if("undefined"!==typeof document){"number"===typeof(r=o({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var a in r)r[a]&&(c+="; "+a,!0!==r[a]&&(c+="="+r[a].split(";")[0]));return document.cookie=t+"="+e.write(i,t)+c}}return Object.create({set:i,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],o={},i=0;i<n.length;i++){var r=n[i].split("="),c=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(o[a]=e.read(c,a),t===a)break}catch(s){}}return t?o[t]:o}},remove:function(t,e){i(t,"",o({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,o({},this.attributes,e))},withConverter:function(e){return t(o({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({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:"/"})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[774,907],{22:function(e,t,n){n.d(t,{$S:function(){return d},_:function(){return i},b4:function(){return r},dl:function(){return o},nN:function(){return s},tn:function(){return c},vF:function(){return a}});const i="device_type",o="device_mode",r="mobile",a="tablet",d="desktop",c="portrait",s="landscape"},69:function(e,t,n){n.d(t,{Ij:function(){return r},bi:function(){return a}});let i,o=!1;function r(){return i?i.play().then((()=>{o=!0,console.debug("iOS autoplay restrictions bypassed."),i.pause()})).catch((e=>{console.error("Failed to bless videos:",e.message)})):Promise.reject(new Error("Blessing video not initialized."))}function a(){i||(i=document.createElement("video"),i.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",i.muted=!0,i.playsInline=!0,i.style.display="none",document.body.appendChild(i));const e=()=>{o||r()};document.addEventListener("click",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0})}},932:function(e,t,n){var i=n(5830),o=n(1941),r=n(22),a=n(1348);t.A=function(e){const[t,n,d]=(0,o.A)(),[c]=(0,i.QN)("whatmoreLandscapePadding"),[s]=(0,i.QN)("whatmoreShopId"),[l]=(0,i.QN)("whatmoreVideoTileSize"),[u]=(0,i.QN)("whatmoreVideoTileSizePortrait"),p=d>=1025,v="portrait"==t?u:l,h=!("portrait"!=t||!(d>=481)),m=v/100*1.3*.5,f=v/100;var w=Math.min(d,n),[g,_,x,b]=[.6*w*(16/9),.6*w,1.4,0];function y(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const e=_*m,t=g*m;[g,_,x,b]=[t,e,(d-2*c-2*(0,a.$du)(s))/(1.1*e),c],E[r._]=r.$S,E[r.dl]=r.nN}else if(h){var S=.8*_,A=.8*g;"portrait"==t?(S*=f,A*=f,[g,_,x,b]=[A,S,y(d/(1.2*S)),0],E[r._]=r.vF,E[r.dl]=r.tn):([g,_,x,b]=[A,S,(d-2*c)/(1.1*S),c],E[r._]=r.vF,E[r.dl]=r.nN)}else{S=_,A=g;"portrait"==t?(S=S*f*.9,A=A*f*.9,[g,_,x,b]=[A,S,y(d/(1.15*S)),0],E[r._]=r.b4,E[r.dl]=r.tn):(S=.7*_,A=.7*g,[g,_,x,b]=[A,S,(d-2*c)/(1.1*S),c],E[r._]=r.b4,E[r.dl]=r.nN)}return[g,_,x,b,E]}},1351:function(e,t,n){n.d(t,{PG:function(){return d},kz:function(){return c},UM:function(){return l},yP:function(){return u},DG:function(){return s}});var i=n(1348),o=n(6157);function r(e,t,n={},i){var r;const a=d[e];if(!a)return;const c=a.isActionEnabled(),s=null===i||void 0===i||null===(r=i.meta_actions)||void 0===r?void 0:r[a.customAction];(c||s)&&"function"==typeof fbq&&(async()=>{const i={id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link,...e===o.O.VIDEO_PLAYBACK&&{watch_time:n.watch_time,video_duration:n.video_duration}};fbq("trackCustom",a.action,i),s&&setTimeout((()=>{null===s||void 0===s||s.forEach((e=>{fbq("trackCustom",e,i)}))}),500)})()}var a=n(7145);const d={[o.O.EVENT_VIEW]:{isActionEnabled:i.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[o.O.VIDEO_PLAYBACK]:{isActionEnabled:i.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[o.O.VIDEO_LIKED]:{isActionEnabled:i.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[o.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:i.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[o.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[o.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function c({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:c}){var s;(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:c}),e in d&&r(e,null!==(s=null===o||void 0===o?void 0:o[1])&&void 0!==s?s:null===o||void 0===o?void 0:o[0],t,i)}function s({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:c}){var s;(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:c}),e in d&&r(e,null!==(s=null===o||void 0===o?void 0:o[1])&&void 0!==s?s:null===o||void 0===o?void 0:o[0],t,i)}function l({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:r}){(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:r})}function u({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:r}){(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:r})}},3330:function(e,t,n){n.d(t,{initializeGA:function(){return p},sendVideoViewEventToGA:function(){return v}});var i,o=n(2595),r=n(7732),a=n(1348);const d="Whatmore Video Shopping",c=null!==(i="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==i&&i,s={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},l={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},u={homepage:"Home Page",product_page:"Product Page"};async function p(e){if((0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.initialize((0,a.xIo)(e)),c&&console.debug("Whatmore: initialized GA4")),(0,a.B6P)(e)&&null!==(0,a.jWS)(e)){const t=(0,a.Gc6)(e);o.Ay.initialize((0,a.jWS)(e),{useExistingGa:t}),c&&console.debug("Whatmore: initialized GA3")}}async function v(e,t,n){(0,a.B6P)(e)&&null!==(0,a.jWS)(e)&&(o.Ay.event({category:d,action:s.video_view,label:u[t]+":"+l[n]}),c&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.event({category:d,action:s.video_view+":"+u[t]+":"+l[n],value:1,nonInteraction:!1}),c&&console.debug("Whatmore: pushed view event to GA4"))}},3389:function(e,t,n){n.r(t);var i=n(9950),o=n(1348),r=n(964),a=n(5830),d=n(140),c=n(4533),s=n(5901),l=n(1085),u=n(6613),p=n(3330),v=n(852),h=n(572),m=n(8603),f=n(2039),w=n(4833),g=n(5551),_=n(1351),x=n(6157),b=n(2979),y=n(6641),E=n(8945),S=n(9821),A=n(69),I=n(4414);const j=(0,m.A)({key:"whatmore-css-ppv"}),P=i.lazy((()=>Promise.all([n.e(304),n.e(946),n.e(437),n.e(451),n.e(987),n.e(669),n.e(46),n.e(592)]).then(n.bind(n,1046)))),L=i.lazy((()=>n.e(374).then(n.bind(n,5100))));function C(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,i.useState)(),[m,N]=(0,i.useState)(),[T]=(0,a.QN)("isInDesignMode"),[O]=(0,a.QN)("isDemoBrand"),[D]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[k,z]=(0,i.useState)(-2),[V]=(0,a.QN)("whatmoreVariantId"),[M]=(0,a.QN)("whatmoreShopId");var[Q]=(0,a.QN)("whatmoreProductId");const W=(0,a.Xd)("isLandingSharedLink"),F=(0,a.Xd)("whatmoreShareTemplateId"),R=(0,a.Xd)("whatmoreShareEventId"),B=W&&"template-embed"===(0,w.Mm)(F),[$,G]=(0,i.useState)(B);Q=(0,o.BcY)(M)?"STRR72TX6AT"==M?function(){var e;const t=null===(e=window.location.pathname)||void 0===e?void 0:e.split("/");return t[t.length-1]}():C(window.location.href):Q;const[K,H]=(0,i.useState)((()=>"true"===D?V:Q));var U=r.$$+"/v2/brand/"+M+"/product-events";const{whatmoreWidgetSourceDetails:X}=(0,i.useContext)(g.B);(0,i.useEffect)((()=>{(0,p.initializeGA)(M),(0,y.Fk)("Video shopping powered by Whatmore!"),(0,c.wm)()}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||m||!(0,u.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,S._)()?(0,l.Pc)(l.F5):(0,A.bi)())}),[t]),(0,i.useEffect)((()=>{if(z(-1),(0,o.WH1)(M)){const e=`${r.$$}/v2/brand/${M}/product-events/recommendation`,t=(0,o.buK)(M);fetch(`${e}?client_product_id=${K}&limit=10&recommended=${!t}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then((e=>e.json())).then((e=>{const i=null===e||void 0===e?void 0:e.events;if((null===i||void 0===i?void 0:i.length)>0){var o;const r=t?null===e||void 0===e?void 0:e.all_events:null===e||void 0===e||null===(o=e.related_events)||void 0===o?void 0:o.map((e=>({...e,isRelatedEvent:!0})));n([...i,...r])}else n([])})).catch((e=>N(e.message)))}else fetch(U.toString()+"?client_product_id="+K.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>e.events)).then((e=>(null!=e&&0!=e.length&&(0,o.vfi)(M)&&(0,o.YOR)(e),n(e),e))).then((e=>((0,o.Uht)(M)&&function(e,t){setTimeout((async()=>{const n=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!n||n.product_link==C(window.location.href))return;const i={product_id:n.product_id,product_link:C(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})}),500)}(e,K),e))).catch((e=>{N(e.message)}))}),[K]),(0,i.useEffect)((()=>{var e,n;z(-2),(t&&t.length>0||(0,o.WKl)(M))&&(0,_.yP)({userInteractionType:x.O.PDP_VISITED,widgetSourceDetails:X,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===(n=t[0])||void 0===n?void 0:n.cta})}),[t]),(0,i.useEffect)((()=>{const e=C(window.location.href);let t=history.pushState;history.pushState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),e};let n=history.replaceState;history.replaceState=function(){let e=n.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("24950997070"==M&&window.location.origin+window.location.pathname!=e&&fetch(window.location.origin+window.location.pathname+".json").then((e=>e.json())).then((e=>{var t;return H(null===e||void 0===e||null===(t=e.product)||void 0===t?void 0:t.id)})),"true"===D){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var i=t[n].split("=");if(i[0]==e)return i[1]}return!1}("variant");e&&""!==e&&H(e)}}))}),[]),(0,i.useEffect)((()=>{if(null!=t&&0!==t.length&&!m&&B&&((0,E.H)("whatmore-video-player",(()=>{G(!1)})),null!=R)){const e=t.find((e=>R==e.event_id));if(e)return void J(e,!0,t.indexOf(e))}}),[t]);const Y=X.landingLocationType,q=X.templateType,J=async(e,t=!1,n=0)=>{if((0,u.MN)()&&!t&&await((0,S._)()?(0,l.bo)():(0,A.bi)()),(0,f.ij)(e)||(0,f.Il)(e))return T||O||(async()=>{const t=(0,w.Wd)(Y)+(0,w.gf)(q)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,d.lB)(e),(0,p.sendVideoViewEventToGA)(M,r.DK,r.K1),(0,c.Ch)(e.event_id,e.products,"product_page","video_popup",t)})(),void z(n)};function Z(){return(0,I.jsx)(I.Fragment,{})}return null==t||0==t.length||m?(0,I.jsx)("div",{}):(0,I.jsxs)(h.C,{value:j,children:[$&&(0,I.jsx)(L,{}),"no-product"===K||-1===k||0===t.length?(0,I.jsx)(Z,{}):-2===k&&t.length>0?(0,I.jsx)("div",{children:(0,I.jsx)(b.S,{userInteractionType:x.O.PDP_POPUP_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!T&&!O,children:(0,I.jsx)(s.A,{event:t[0],inVideoClick:J,closeClick:e=>{var n;e.stopPropagation(),z(-1),(0,_.kz)({userInteractionType:x.O.PDP_POPUP_CLOSED,widgetSourceDetails:X,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.products})}})})}):(0,I.jsx)("div",{children:(0,I.jsx)(i.Suspense,{children:(0,I.jsx)(b.S,{userInteractionType:x.O.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!T&&!O,children:(0,I.jsx)(P,{events:t,index:k,onBack:function(){(0,o.ei)(M)&&(0,a.Xd)("whatmoreAddedToCart")&&(0,v.initiateCartSliderEvent)(M,(()=>{}),100,window.location.hostname),z(-2),G(!1)},template:"template-product-page"})})})})]})}},5901:function(e,t,n){n.d(t,{A:function(){return w}});var i=n(1005),o=n(9950),r=n(9879),a=n(22),d=n(5830),c=n(932);var s=function(e){const[t,n,i,o,r]=(0,c.A)(),[s]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[l]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.dl]===a.nN?l/100:s/100*1.2;return[t*u,n*u,r]},l=n(5727),u=n(1628),p=n.n(u),v=n(2209),h=n(6702),m=(n(9733),n(4365),n(1348)),f=n(4414);var w=function(e){var t;const n=o.useRef(null);var[c,u,w]=s();const g=(0,d.Xd)("whatmoreUITheme"),[_]=(0,d.QN)("whatmoreEmbedAppVideoTitle"),[x]=(0,d.QN)("whatmoreEmbedAppPositionPortrait"),[b]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[y]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[E]=(0,d.QN)("whatmoreEmbedAppPositionLandscape"),[S]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[A]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),I=(0,d.Xd)("whatmoreShopId"),j=(0,d.Xd)("isWhatmorePreviewMode");var P=x,L=b,C=y;w[a.dl]===a.nN&&(P=E,L=S,C=A);const[N,T]=(0,o.useState)(["initial",window.pageYOffset]),[O,D]=(0,o.useState)(!1),k=null!==(t=e.isSpotlight)&&void 0!==t&&t,z=w[a.dl]===a.nN?.7*(0,m.O86)(I):(0,m.O86)(I),V=k?z:1;c*=V,u*=V;const M=k?(0,m.LrK)(I):P,Q=k?(0,m._2D)(I):(0,m.GSq)(I),[W,F]=(0,o.useState)(!k&&(0,m.n8Q)(I));function R(e,t){T(e),e[1]<=100?D(!1):t!=O&&(D(t),F(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(R([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[N]),(0,i.j)({ref:n,handler:()=>{R(["scrolled-up",N[1]],!0)}});const B=e.event,$=e.inVideoClick,G=e.closeClick,K=.3*u,H=.6*u,U=.1*u,X=.1*(.5*u),Y="round"==g?"10px":"0px",q=(0,m.GvQ)(I);var J=!1,Z=0,ee=0;function te(e){J=e}return(0,f.jsx)("div",{className:"wht-popup",children:W&&!Q?(0,f.jsx)(f.Fragment,{}):O&&Q?(0,f.jsx)("div",{style:"left"===M?{left:"1px",bottom:k?(0,m.pUQ)(I)+"px":C+"px",position:"fixed",zIndex:q}:{right:"5px",bottom:k?(0,m.pUQ)(I)+"px":C+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{onClick:()=>{R(["initial",N[1]],!1)},style:{margin:"1px",width:u+"px",height:c+"px"},className:"left"===M?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,f.jsx)(r.A,{url:B.thumbnail_image,isPlaying:!1,event:B})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,f.jsx)(v.A,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:K+"px"},style:{position:"relative",zIndex:1,left:X+"px",bottom:X+"px"},onClick:G})})}),(0,f.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,f.jsx)(h.A,{sx:{color:"white",fontSize:2*K+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",bounds:j?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,Z=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-Z)>5||Math.abs(t.y-ee)>5)?te(!1):$(B)},children:(0,f.jsx)("div",{ref:n,style:"left"===M?{left:k?(0,m.D2A)(I)+"px":L+"px",bottom:k?(0,m.pUQ)(I)+"px":C+"px",position:"fixed",zIndex:q}:{right:k?(0,m.D2A)(I)+"px":L+"px",bottom:k?(0,m.pUQ)(I)+"px":C+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:e.isSpotlight&&"60122562760"==I?c+"px":u+"px",height:e.isSpotlight&&"60122562760"==I?u+"px":c+"px"}),className:"left"===M?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==I?16/9:9/16},children:(0,f.jsx)(r.A,{url:B.thumbnail_image,isMuted:!0,isPlaying:!0,event:B})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)(v.A,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:K+"px"},onClick:G,style:{position:"relative",zIndex:1,left:U+"px",bottom:U+"px"}})}),(0,f.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,f.jsx)(l.A,{sx:{color:(0,m.KFN)(I),fontSize:H+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,f.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:Y,borderBottomRightRadius:Y,backgroundImage:_?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,f.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",_]})})]})})]})})})})}},6649:function(e,t,n){var i=n(9950);t.A=({triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:o=0}={})=>{const[r,a]=(0,i.useState)(!1),[d,c]=(0,i.useState)(null),s=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const i=new IntersectionObserver(((t,n)=>{t.forEach((t=>{c(t),t.isIntersecting?(a(!0),e&&n.disconnect()):e||a(!1)}))}),{root:t,rootMargin:n,threshold:o});return s.current&&i.observe(s.current),()=>{i.disconnect()}}),[e,t,n,o]),[s,r,d]}},8945:function(e,t,n){function i(e,t){let n=0;let i=new MutationObserver((function(){document.querySelector("."+e)?(t(),i.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),i.disconnect()}),8e3))}));i.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{H:function(){return i}})},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[199],{1351:function(e,t,n){n.d(t,{PG:function(){return r},kz:function(){return s},UM:function(){return d},yP:function(){return u},DG:function(){return c}});var i=n(1348),o=n(6157);function a(e,t,n={},i){var a;const l=r[e];if(!l)return;const s=l.isActionEnabled(),c=null===i||void 0===i||null===(a=i.meta_actions)||void 0===a?void 0:a[l.customAction];(s||c)&&"function"==typeof fbq&&(async()=>{const i={id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link,...e===o.O.VIDEO_PLAYBACK&&{watch_time:n.watch_time,video_duration:n.video_duration}};fbq("trackCustom",l.action,i),c&&setTimeout((()=>{null===c||void 0===c||c.forEach((e=>{fbq("trackCustom",e,i)}))}),500)})()}var l=n(7145);const r={[o.O.EVENT_VIEW]:{isActionEnabled:i.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[o.O.VIDEO_PLAYBACK]:{isActionEnabled:i.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[o.O.VIDEO_LIKED]:{isActionEnabled:i.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[o.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:i.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[o.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[o.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function s({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:s}){var c;(0,l.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:s}),e in r&&a(e,null!==(c=null===o||void 0===o?void 0:o[1])&&void 0!==c?c:null===o||void 0===o?void 0:o[0],t,i)}function c({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:s}){var c;(0,l.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:s}),e in r&&a(e,null!==(c=null===o||void 0===o?void 0:o[1])&&void 0!==c?c:null===o||void 0===o?void 0:o[0],t,i)}function d({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:a}){(0,l.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:a})}function u({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:a}){(0,l.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:a})}},3350:function(e,t,n){n.r(t),n.d(t,{default:function(){return B}});var i=n(9950),o=n(964),a=n(140),l=n(5830),r=n(1348),s=n(4533),c=n(6613),d=n(1085),u=n(5551),m=n(2039),p=n(4833),h=n(2979),v=n(6157),g=n(8945),_=n(9821),S=n(4414);const y=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(946),n.e(571),n.e(987),n.e(669),n.e(665)]).then(n.bind(n,7206)))),w=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(437),n.e(571),n.e(620),n.e(116)]).then(n.bind(n,7144)))),f=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(879),n.e(571),n.e(987),n.e(703),n.e(423)]).then(n.bind(n,517)))),I=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(879),n.e(571),n.e(987),n.e(703),n.e(412)]).then(n.bind(n,7646)))),E=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(879),n.e(571),n.e(987),n.e(703),n.e(221)]).then(n.bind(n,5451)))),x=i.lazy((()=>Promise.all([n.e(572),n.e(571),n.e(491)]).then(n.bind(n,3319)))),O=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(946),n.e(571),n.e(987),n.e(669),n.e(48),n.e(620),n.e(474)]).then(n.bind(n,6945)))),T=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(475),n.e(571),n.e(669),n.e(485)]).then(n.bind(n,9418)))),C=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(946),n.e(571),n.e(987),n.e(676)]).then(n.bind(n,3369)))),b=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(946),n.e(571),n.e(987),n.e(669),n.e(48),n.e(891)]).then(n.bind(n,7178)))),j=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(946),n.e(437),n.e(286),n.e(451),n.e(571),n.e(987),n.e(669),n.e(852),n.e(46),n.e(48),n.e(306)]).then(n.bind(n,9406)))),D=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(437),n.e(571),n.e(669),n.e(933)]).then(n.bind(n,6989)))),L=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(946),n.e(437),n.e(286),n.e(451),n.e(571),n.e(987),n.e(669),n.e(852),n.e(46),n.e(806)]).then(n.bind(n,3278)))),A=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(879),n.e(571),n.e(987),n.e(1)]).then(n.bind(n,4596)))),q=i.lazy((()=>Promise.all([n.e(572),n.e(304),n.e(317),n.e(526),n.e(946),n.e(437),n.e(286),n.e(451),n.e(571),n.e(987),n.e(669),n.e(852),n.e(46),n.e(906)]).then(n.bind(n,1046)))),P=i.lazy((()=>n.e(374).then(n.bind(n,5100))));var k=function(e){var t,k;const[W]=(0,l.QN)("isInDesignMode"),[N]=(0,l.QN)("isDemoBrand"),[G]=(0,l.QN)("whatmoreTopBottomPadding"),[$]=(0,l.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:B}=(0,i.useContext)(u.B),[V]=(0,l.QN)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:M}=(0,i.useContext)(u.B),F=(0,l.Xd)("isLandingSharedLink"),z=(0,l.Xd)("whatmoreShareTemplateId"),R=(0,l.Xd)("whatmoreShareStoryId"),H=(0,l.Xd)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:K,whatmoreUserInfo:U}=(0,i.useContext)(u.B),J=F&&M===(0,p.Mm)(z),[Q,X]=(0,i.useState)(J),[Z,Y]=(0,i.useState)(-1),[ee,te]=(0,i.useState)(null);let ne=e.events;var ie=null;B&&!ie&&(ie=function(e){var t=e.reduce(((e,t,n)=>{var i,o=t.storyset_id;return o in e?(e[o].total_events=e[o].total_events+1,e[o].events.push(t)):e[o]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(i=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==i&&i,events:[t]},e}),{}),n=Object.values(t);return n.sort(((e,t)=>e.start_event_index-t.start_event_index)),n}(ne));const oe=K.landingLocationType,ae=K.templateType;function le(e,t=!1,i=null){(0,c.MN)()&&(0,_._)()&&!t&&(0,d.bo)(),W||N||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:i}=await Promise.all([n.e(286),n.e(907)]).then(n.bind(n,3330));t();const l=ie[e].events[0],r=(0,p.Wd)(oe)+(0,p.gf)(ae)+(null!==l&&void 0!==l&&l.isRelatedEvent?"R":"E")+"_"+(null===l||void 0===l?void 0:l.event_id);(0,a.lB)(l),i(V,o.TB,o.OL),(0,s.Ch)(l.event_id,l.products,"homepage","stories",r,null===l||void 0===l?void 0:l.location,null===U||void 0===U?void 0:U.userType)})();var l=0;null!=i&&ie[e].events.map(((e,t)=>{e.event_id==i&&(l=t)})),Y(l),te(e)}async function re(e,t=!1){(0,c.MN)()&&(0,_._)()&&!t&&await(0,d.bo)(),Y(e.index),((0,m.ij)(e)||(0,m.Il)(e))&&(W||N||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:i}=await Promise.all([n.e(286),n.e(907)]).then(n.bind(n,3330));t();const l=(0,p.Wd)(oe)+(0,p.gf)(ae)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,a.lB)(e),i(V,o.TB,o.Dk),(0,s.Ch)(e.event_id,e.products,"homepage","carousel",l)})())}function se(e){return(0,S.jsx)(S.Fragment,{})}return(0,i.useEffect)((()=>{if(J)if((0,g.H)("whatmore-video-player",(()=>{X(!1)})),null!=R&&B){const e=ie.find((e=>R==e.id));if(e)return void le(ie.indexOf(e),!0,H)}else if(null!=H){const e=ne.find((e=>H==e.event_id));if(e)return void re(e,!0)}}),[]),(0,S.jsxs)(S.Fragment,{children:[Q&&(0,S.jsx)(P,{}),-1==Z||-2==Z?(0,S.jsx)(se,{}):(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.EVENT_VIEW,event:ne[Z],productList:null===(t=ne[Z])||void 0===t?void 0:t.products,cta:null===(k=ne[Z])||void 0===k?void 0:k.cta,triggerFlag:!W&&!N,children:(0,S.jsx)(q,{events:ne,index:Z,onBack:async function(){if((0,r.ei)(V)&&(0,l.Xd)("whatmoreAddedToCart")){(await n.e(852).then(n.bind(n,852)).then((e=>e.initiateCartSliderEvent)))(V,(()=>{}),100,window.location.hostname)}Y(-1),X(!1)},slideDirection:B||"horizontal"===(0,r.br0)(V)?"horizontal":"vertical",eventsStories:ie,initialStoryIndex:ee,template:M})})}),(0,S.jsx)("div",{className:"whatmore-widget-container",style:{height:"100%",marginTop:(B?$:G)+"px",marginBottom:(B?$:G)+"px"},children:"template-b"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(y,{events:ne,onClick:re,heading:e.heading})})}):"template-a-1"===M||"template-collections-a-1"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(w,{events:ne,onClick:re,heading:e.heading})}):"template-feed-a"===M||"template-collections-feed-a"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(D,{events:ne,onClick:re,heading:e.heading})}):"template-collections-a"===M||"template-c"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(f,{events:ne,index:Z,setScreen:Y,onClick:re,heading:e.heading})})}):"template-collections-b"===M||"template-d"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(I,{events:ne,index:Z,setScreen:Y,onClick:re,heading:e.heading})})}):"template-collections-c"===M||"template-e"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(E,{events:ne,index:Z,setScreen:Y,onClick:re,heading:e.heading})})}):"template-collections-d"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(y,{events:ne,index:Z,setScreen:Y,onClick:re,heading:e.heading})})}):"template-collections-e"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(O,{events:ne,index:Z,setScreen:Y,onClick:re,heading:e.heading})})}):"template-collections-stories"===M||"template-stories"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.COLLECTION_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(A,{events:ne,index:Z,setScreen:Y,onClick:re,heading:e.heading})})}):"template-f"===M||"template-collections-f"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(T,{events:ne,onClick:re,heading:e.heading})})}):"template-g"===M||"template-collections-g"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(C,{events:ne,onClick:re,heading:e.heading})})}):"template-h"===M||"template-collections-h"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(b,{events:ne,onClick:re,heading:e.heading})})}):"template-i"===M||"template-collections-i"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(j,{index:Z,events:ne,onClick:re,heading:e.heading})})}):"template-banner-a"===M?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.BANNER_WIDGET_VIEW,event:ne[0],triggerFlag:!W&&!N,children:(0,S.jsx)(L,{events:ne})})}):B?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.STORIES_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(x,{eventsStories:ie,onClick:le,template:M})})}):(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(h.S,{userInteractionType:v.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!W&&!N,children:(0,S.jsx)(O,{events:ne,onClick:re,heading:e.heading})})})})]})},W=n(7802),N=n(6641),G=n(1351),$=n(5873);var B=function(e){const[t,a]=(0,i.useState)(),[m,h]=(0,i.useState)(),{whatmoreIsStoriesTemplate:g}=(0,i.useContext)(u.B),{whatmoreIsCollectionsTemplate:y}=(0,i.useContext)(u.B),{whatmoreIsBannerTemplate:w}=(0,i.useContext)(u.B),[f]=(0,l.QN)("whatmoreShopId"),[I]=(0,l.QN)("whatmoreCollectionId"),E=(0,l.Xd)("whatmoreLandingLocationType"),x=(0,l.Xd)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:O}=(0,i.useContext)(u.B),{whatmoreUserInfo:T,whatmoreIsPreviewMode:C}=(0,i.useContext)(u.B),b=(0,l.Xd)("whatmoreCollectionUrl"),[j]=(0,l.QN)("isInDesignMode"),[D]=(0,l.QN)("isDemoBrand"),L=(0,r.mJ$)(f)?(0,r.jLA)(f)?b:window.location.href.split(/[?#]/)[0]:I,[A,q]=(0,l.QN)("productRatings"),[P,B]=(0,i.useState)(!1);var V=(0,r.SOt)(f)?o.aD+"/v2/events/":o.$$+"/v2/events/",M=(0,r.SOt)(f)?o.aD+"/v3/events/":o.$$+"/v3/events/",F=(0,r.SOt)(f)?o.aD+"/v4/events/":o.$$+"/v4/events/",z=(0,r.SOt)(f)?o.aD+"/v5/events/":o.$$+"/v5/events/",R=((0,r.SOt)(f)?o.aD:o.$$,(0,r.SOt)(f)?o.aD+"/get_eventset/":o.$$+"/get_eventset/"),H=(0,r.SOt)(f)?o.aD+"/v2/collection":o.$$+"/v2/collection",K=(0,r.SOt)(f)?o.aD+"/v3/collection":o.$$+"/v3/collection",U=(0,r.SOt)(f)?o.aD+"/v4/collection":o.$$+"/v4/collection",J=(0,r.SOt)(f)?o.aD+"/v2/brand/"+f+"/product-events":o.$$+"/v2/brand/"+f+"/product-events",Q=e.shopId,X="live,upcoming",Z="true";return(0,i.useEffect)((()=>{null!=t&&0!=t.length&&!m&&(0,c.MN)()&&!(0,l.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,_._)()&&(0,d.Pc)(d.F5)}),[t]),(0,i.useEffect)((()=>{var e,t,i,o;if((0,s.wm)(),E.startsWith("product"))if((0,r.vvU)(f))o=V.toString()+Q.toString()+"?status="+X.toString()+"&is_active="+Z.toString()+(g?"&template_type=stories":"");else{var c=(0,l.Xd)("whatmoreProductId");c=(0,r.BcY)(f)?function(e,t){return"STRQMPNF7QK"==t?encodeURIComponent(e):e.split(/[?#]/)[0]}(window.location.href,f):c,o=J.toString()+"?client_product_id="+c.toString()+"&status="+X.toString()+"&event_type=video"}else if(y||"invalid-url"!==b)o=(0,r.JwJ)(f)?`${K.toString()}?store_id=${Q.toString()}&client_collection_id=${"index"==E&&(0,r.FKG)(f).length>0?(0,r.FKG)(f)[0]:L}`:"78232846646"==f?`${U.toString()}?store_id=${Q.toString()}&client_collection_id=${"index"==E&&(0,r.FKG)(f).length>0?(0,r.FKG)(f)[0]:L}`:`${H.toString()}?store_id=${Q.toString()}&client_collection_id=${"index"==E&&(0,r.FKG)(f).length>0?(0,r.FKG)(f)[0]:L}`;else if(w){const e=p.Jh,t=(0,p.t6)(E);o=R.toString()+Q.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+f}else{var d,u,m,v;if(("72201044272"==f||"2665447536"==f&&C)&&!g)o=M.toString()+Q.toString()+"?status="+X.toString()+"&is_active="+Z.toString()+"&latitude="+(null!==(d=null===(u=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===u?void 0:u.latitude)&&void 0!==d?d:"")+"&longitude="+(null!==(m=null===(v=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===v?void 0:v.longitude)&&void 0!==m?m:"")+"&user_type="+(null!==T&&void 0!==T&&T.userType?"olduser":"newuser");else o=(0,r.JwJ)(f)&&!g?F.toString()+Q.toString()+"?status="+X.toString()+"&is_active="+Z.toString():"78232846646"!=f||g?V.toString()+Q.toString()+"?status="+X.toString()+"&is_active="+Z.toString()+(g?"&template_type=stories":""):z.toString()+Q.toString()+"?status="+X.toString()+"&is_active="+Z.toString()}const _=null===(e=window)||void 0===e||null===(t=e.whatmore)||void 0===t||null===(i=t.storyEvents)||void 0===i?void 0:i.events;if(g&&E.startsWith("index")&&"object"==typeof _&&(null===_||void 0===_?void 0:_.length)>0){var S,I,O;const e=null===(S=window)||void 0===S||null===(I=S.whatmore)||void 0===I||null===(O=I.storyEvents)||void 0===O?void 0:O.events;a(e),B(!0)}else fetch(o).then((e=>e.json())).then((e=>{var t;if(w){const t=p.Jh;return(0,W.Po)(e,t)}return(0,r.JwJ)(f)&&(null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.length)>0&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,s.d3)(null===e||void 0===e?void 0:e.questions)),(0,W.Np)(e,y||"invalid-url"!==b)})).then((e=>{x&&console.debug("initial received events size : "+e.length);let t=e;return t=(0,r.xku)(f)?(0,W.d8)(t):(0,W.Zf)(t),t})).then((e=>{var t;if("28849832033"!==f&&"85317058852"!==f||!Array.isArray(e)||(e=function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}(e)),(D||j)&&(null==e||e&&0==(null===(t=e)||void 0===t?void 0:t.length))){(async()=>{const{eventsData:e,storiesData:t,bannerData:i}=await n.e(365).then(n.bind(n,6018));a(g?t:w?i:e)})()}else a(e);B(!0)})).catch((e=>{h(e.message),B(!0)}))}),[]),(0,i.useEffect)((()=>{"index"===E?t&&t.length>0&&(0,G.yP)({userInteractionType:v.O.HOMEPAGE_VISITED,widgetSourceDetails:O}):"collection"===E&&(t&&t.length>0||(0,r.BZ$)(f))&&(0,G.yP)({userInteractionType:v.O.COLLECTION_PAGE_VISITED,widgetSourceDetails:O})}),[t]),P&&(null==t||0==t.length||m)&&$.Sn.forEach((e=>{var t,n,i,o;const a=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),l=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-feed-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]')||e.querySelector('.whatmore-template-type[data-wh="template-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-stories"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]')||e.querySelector('.whatmore-template-type[data="template-g"]')||e.querySelector('.whatmore-template-type[data="template-h"]'),r=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-d"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-h"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]')||e.querySelector('.whatmore-template-type[data="template-collections-d"]')||e.querySelector('.whatmore-template-type[data="template-collections-f"]')||e.querySelector('.whatmore-template-type[data="template-collections-g"]')||e.querySelector('.whatmore-template-type[data="template-collections-h"]'),s=null!==(o=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==o?o:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),c=e;if(g){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!y){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}(s||r||l||a)&&(l&&c||a&&c||s&&c||r&&c)&&(c.style.minHeight="0px")})),null==t||0==t.length||m?(0,S.jsx)("div",{}):(x&&(0,N.xv)(t),x&&console.debug("final transformed events data : "+JSON.stringify(t)),x&&console.debug("valid events size : "+t.length),(0,S.jsx)(k,{heading:e.heading,events:t}))}},7802:function(e,t,n){n.d(t,{Hl:function(){return o},Np:function(){return l},Po:function(){return r},Z_:function(){return i},Zf:function(){return c},d8:function(){return s},zJ:function(){return a}});const i=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)},a=function(e){if(null!=e)return e.filter((e=>{var t;return null===(t=null===e||void 0===e?void 0:e.in_stock)||void 0===t||t}))},l=function(e,t=!1){var n,i;if(null!=e)return t?[...e.events[0].events,...null!==(i=null===e||void 0===e?void 0:e.all_events)&&void 0!==i?i:[]]:[...e.events,...null!==(n=null===e||void 0===e?void 0:e.all_events)&&void 0!==n?n:[]]};const r=function(e,t){let n=[];if(null==e)return[];if("eventsets"in e&&e.eventsets[t]){const i=function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{t=t.concat(e.events)})),t}(e.eventsets[t]);n=[...i]}return"all_events"in e&&Array.isArray(e.all_events)&&(n=[...n,...e.all_events]),n};function s(e){if(null!=e){var t=0;return e.forEach((e=>{e.index=t++})),e}}function c(e){if(null==e)return;let t=0;return e.reduce(((e,n)=>{var i;return(null===(i=null===n||void 0===n?void 0:n.in_stock)||void 0===i||i)&&(n.index=t++,e.push(n)),e}),[])}},8945:function(e,t,n){function i(e,t){let n=0;let i=new MutationObserver((function(){document.querySelector("."+e)?(t(),i.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),i.disconnect()}),8e3))}));i.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{H:function(){return i}})}}]);
|