whatmore-react-assets 1.0.1821 → 1.0.1823

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.
Files changed (65) hide show
  1. package/package.json +1 -1
  2. package/static/css/411.742a9cfc.chunk.css +1 -0
  3. package/static/css/event-click-component.5626d6a2.chunk.css +1 -0
  4. package/static/css/homepage-carousel-view.5cbaba8c.chunk.css +1 -0
  5. package/static/js/245.495d00ff.chunk.js +2 -0
  6. package/static/js/411.14a5f69c.chunk.js +52 -0
  7. package/static/js/598.9757157f.chunk.js +281 -0
  8. package/static/js/865.da3e721a.chunk.js +2 -0
  9. package/static/js/atc-with-form.14662671.chunk.js +1 -0
  10. package/static/js/event-click-component.86dd3ac5.chunk.js +76 -0
  11. package/static/js/homepage-carousel-view.b720e002.chunk.js +15 -0
  12. package/static/js/react-main-app.b83e466d.chunk.js +1 -0
  13. package/whatmore.js +1 -2
  14. package/static/css/banner-template-a.475a42b7.chunk.css +0 -1
  15. package/static/css/carousel-template-a.475a42b7.chunk.css +0 -1
  16. package/static/css/carousel-template-ai.5886a824.chunk.css +0 -1
  17. package/static/css/carousel-template-f.475a42b7.chunk.css +0 -1
  18. package/static/css/carousel-template-feed.475a42b7.chunk.css +0 -1
  19. package/static/css/carousel-template-g.475a42b7.chunk.css +0 -1
  20. package/static/css/carousel-template-h.475a42b7.chunk.css +0 -1
  21. package/static/css/carousel-template-i.475a42b7.chunk.css +0 -1
  22. package/static/css/carousel-template-j.475a42b7.chunk.css +0 -1
  23. package/static/css/carousel-template-view-more.475a42b7.chunk.css +0 -1
  24. package/static/css/collections-template-a.83e3340f.chunk.css +0 -1
  25. package/static/css/collections-template-b.83e3340f.chunk.css +0 -1
  26. package/static/css/collections-template-c.83e3340f.chunk.css +0 -1
  27. package/static/css/collections-template-stories.83e3340f.chunk.css +0 -1
  28. package/static/css/event-click-product.68e25b66.chunk.css +0 -1
  29. package/static/css/spotlight-view.a1594fd1.chunk.css +0 -2
  30. package/static/css/stories-template-a.8292e9da.chunk.css +0 -1
  31. package/static/css/whatmore-root.09bcc075.chunk.css +0 -2
  32. package/static/js/257.731cff2e.chunk.js +0 -1
  33. package/static/js/286.70655d59.chunk.js +0 -1
  34. package/static/js/33.46a8c962.chunk.js +0 -1
  35. package/static/js/512.c411674d.chunk.js +0 -1
  36. package/static/js/526.706d86bb.chunk.js +0 -2
  37. package/static/js/620.8b81307a.chunk.js +0 -1
  38. package/static/js/820.3abb966c.chunk.js +0 -1
  39. package/static/js/832.8a126a68.chunk.js +0 -1
  40. package/static/js/981.93048a23.chunk.js +0 -281
  41. package/static/js/banner-template-a.32ec8591.chunk.js +0 -1
  42. package/static/js/carousel-template-a.f15148d1.chunk.js +0 -1
  43. package/static/js/carousel-template-ai.2232a497.chunk.js +0 -1
  44. package/static/js/carousel-template-b.52683dec.chunk.js +0 -1
  45. package/static/js/carousel-template-f.4ca967f4.chunk.js +0 -1
  46. package/static/js/carousel-template-feed.6e0611d8.chunk.js +0 -15
  47. package/static/js/carousel-template-g.2f11a57c.chunk.js +0 -1
  48. package/static/js/carousel-template-h.95284d4b.chunk.js +0 -1
  49. package/static/js/carousel-template-i.ef4eaa14.chunk.js +0 -1
  50. package/static/js/carousel-template-j.6e45a3e9.chunk.js +0 -1
  51. package/static/js/carousel-template-view-more.faaa02f7.chunk.js +0 -15
  52. package/static/js/collections-template-a.1f191615.chunk.js +0 -1
  53. package/static/js/collections-template-b.27d9d0b6.chunk.js +0 -1
  54. package/static/js/collections-template-c.5bcd3559.chunk.js +0 -1
  55. package/static/js/collections-template-stories.3684ecbf.chunk.js +0 -1
  56. package/static/js/embed-tracking-component.64b05bcf.chunk.js +0 -1
  57. package/static/js/event-click-product.ffdab8eb.chunk.js +0 -127
  58. package/static/js/event-click-spotlight.50e0f126.chunk.js +0 -1
  59. package/static/js/homepage-carousel-view.9dd55d57.chunk.js +0 -1
  60. package/static/js/product-page-view.9c0ab6ef.chunk.js +0 -1
  61. package/static/js/share-shimmer-loader.fe4b39e4.chunk.js +0 -1
  62. package/static/js/spotlight-view.a4edee17.chunk.js +0 -1
  63. package/static/js/stories-template-a.7a417d48.chunk.js +0 -1
  64. package/static/js/whatmore-root.cc24f244.chunk.js +0 -1
  65. /package/static/css/{product-page-view.a1594fd1.chunk.css → react-main-app.a1594fd1.chunk.css} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[268],{22:function(t,e,n){n.d(e,{$S:function(){return c},_:function(){return o},b4:function(){return i},dl:function(){return r},nN:function(){return l},tn:function(){return u},vF:function(){return a}});const o="device_type",r="device_mode",i="mobile",a="tablet",c="desktop",u="portrait",l="landscape"},69:function(t,e,n){n.d(e,{Ij:function(){return i},bi:function(){return a}});let o,r=!1;function i(){return o?o.play().then(()=>{r=!0,console.debug("iOS autoplay restrictions bypassed."),o.pause()}).catch(t=>{console.error("Failed to bless videos:",t.message)}):Promise.reject(new Error("Blessing video not initialized."))}function a(){o||(o=document.createElement("video"),o.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",o.muted=!0,o.playsInline=!0,o.style.display="none",document.body.appendChild(o));const t=()=>{r||i()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},140:function(t,e,n){n.d(e,{$B:function(){return c},A9:function(){return l},Pb:function(){return s},TG:function(){return m},TJ:function(){return p},Zh:function(){return u},lB:function(){return a},tO:function(){return d}});var o,r=n(964);const i=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;function a(t){i&&console.debug("updating user view count for event.");const e={event_id:t.event_id,increase_by:1};fetch(r.$$+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>(i&&console.debug("updating user view count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user view count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating user view count user for event : ",t)})}function c(t,e){i&&console.debug("updating like count for event.");const n={event_id:t.event_id,increase_by:e};fetch(r.$$+"/event/metrics/like",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating like count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating like count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating like count user for event : ",t)})}function u(t){i&&console.debug("updating share count for event.");const e={event_id:t.event_id,increase_by:1};fetch(r.$$+"/event/metrics/share",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>(i&&console.debug("updating share count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating share count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating share count user for event : ",t)})}function l(t,e){i&&console.debug("updating wa click count for event.");const n={event_id:t.event_id,increase_by:e};fetch(r.$$+"/event/metrics/whatsapp",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating whatsapp click count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating whatsapp click count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating whatsapp click count user for event : ",t)})}function s(t,e){i&&console.debug("updating event-product click count for event {} and product {}.",t.event_id,e.product_id);const n={event_id:t.event_id,product_id:e.product_id,increase_by:1};fetch(r.$$+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating user event-product click count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user event-product click count response : "+JSON.stringify(t))}).catch(e=>{console.error("error updating user event-product click count for event {} : ",t.event_id,e)})}function d(t,e,n){i&&console.debug("updating event-product add to cart count for event {} and product {}.",t.event_id,e.product_id);const o={event_id:t.event_id,product_id:e.product_id,increase_by:n};fetch(r.$$+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)}).then(t=>(i&&console.debug("updating user event-product add to cart count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user event-product add to cart count response : "+JSON.stringify(t))}).catch(e=>{console.error("error updating user event-product add to cart count for event {} : ",t.event_id,e)})}function p(t,e){i&&console.debug("updating event-product buy now count for event {} and product {}.",t.event_id,e.product_id);const n={event_id:t.event_id,product_id:e.product_id,increase_by:1};fetch(r.$$+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(t=>(i&&console.debug("updating user event-product buy now count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user event-product buy now count response : "+JSON.stringify(t))}).catch(e=>{console.error("error updating user event-product buy now count for event {} : ",t.event_id,e)})}function m(t){const e={event_id:t.event.event_id,cta_id:t.cta.cta_id,increase_by:1};fetch(r.$$+"/event/metrics/cta/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>(i&&console.debug("updating user cta click count response : HTTP "+t.status),t.json())).then(t=>{i&&console.debug("updating user cta click count response : "+JSON.stringify(t))}).catch(t=>{console.error("error updating cta click count : ",t)})}},851:function(t,e,n){n.d(e,{A:function(){return g}});var o=n(1005),r=n(9950),i=n(9879),a=n(22),c=n(7483),u=n(932);var l=function(t){const[e,n,o,r,i]=(0,u.A)(),[l]=(0,c.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[s]=(0,c.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),d=i[a.dl]===a.nN?s/100:l/100*1.2;return[e*d,n*d,i]},s=n(1628),d=n.n(s),p=n(6702),m=(n(9733),n(4365),n(1348)),h=n(4414);var f=({size:t,color:e="rgba(255, 255, 255, 0.9)"})=>(0,h.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,h.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,h.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:e,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var _=({size:t,color:e="rgba(255, 255, 255, 0.95)"})=>(0,h.jsxs)("svg",{width:.7*t,height:.7*t,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,h.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,h.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:e,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,h.jsxs)("defs",{children:[(0,h.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,h.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,h.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(t){var e;const n=r.useRef(null);var[u,s,g]=l();(0,c.Xd)("whatmoreUITheme");const[v]=(0,c.QN)("whatmorePrimaryFont"),[w]=(0,c.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,c.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,c.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[S]=(0,c.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[x]=(0,c.QN)("whatmoreEmbedAppPositionLandscape"),[T]=(0,c.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[E]=(0,c.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),I=(0,c.Xd)("whatmoreShopId"),j=(0,c.Xd)("isWhatmorePreviewMode");var P=b,$=y,C=S;g[a.dl]===a.nN&&(P=x,$=T,C=E);const[A,k]=(0,r.useState)(["initial",window.pageYOffset]),[O,L]=(0,r.useState)(!1),D=null!==(e=t.isSpotlight)&&void 0!==e&&e,N=g[a.dl]===a.nN?.8*(0,m.O86)(I):1.2*(0,m.O86)(I),W=D?N:1.2;u*=W,s*=W;const z=D?(0,m.LrK)(I):P,V=D?(0,m._2D)(I):(0,m.GSq)(I),[R,M]=(0,r.useState)(!D&&(0,m.n8Q)(I)),F=!D&&(0,m.YE3)(I);function q(t,e){k(t),t[1]<=100?L(!1):e!=O&&(L(e),M(!1))}(0,r.useEffect)(()=>{let t=window.pageYOffset,e=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-t)<100||(q([n>t?"scrolled-down":"scrolled-up",n],!0),t=n>0?n:0),e=!1},o=()=>{e||(window.requestAnimationFrame(n),e=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[A]),(0,o.j)({ref:n,handler:()=>{q(["scrolled-up",A[1]],!0)}});const H=t.event,J=t.inVideoClick,B=t.closeClick,G=.25*s,Q=.5*s,U=.6*s,X="20px",K=(0,m.GvQ)(I);var Y=!1,Z=0,tt=0;function et(t){Y=t}return(0,h.jsx)("div",{className:"wht-popup",children:R&&!V?(0,h.jsx)(h.Fragment,{}):O&&V?(0,h.jsx)("div",{style:"left"===z?{left:"16px",bottom:D?(0,m.pUQ)(I)+"px":C+"px",position:"fixed",zIndex:K}:{right:"16px",bottom:D?(0,m.pUQ)(I)+"px":C+"px",position:"fixed",zIndex:K},children:(0,h.jsxs)("div",{onClick:()=>{q(["initial",A[1]],!1)},style:{width:U+"px",height:U*(16/9)+"px",borderRadius:X,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===z?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",borderRadius:X,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,h.jsx)(i.A,{url:H.thumbnail_image,isPlaying:!1,event:H})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,h.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,h.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:t=>{t.stopPropagation(),B()},children:(0,h.jsx)(f,{size:.8*G})})}),(0,h.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,h.jsx)(p.A,{sx:{color:"white",fontSize:2*G+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,h.jsx)(d(),{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:(t,e)=>{var n,o;n=e.x,o=e.y,Z=n,tt=o},onDrag:(t,e)=>{et(!0)},onStop:(t,e)=>{Y&&(Math.abs(e.x-Z)>5||Math.abs(e.y-tt)>5)?et(!1):(F&&B(t),J(H))},children:(0,h.jsx)("div",{ref:n,style:"left"===z?{left:D?(0,m.D2A)(I)+"px":$+"px",bottom:D?(0,m.pUQ)(I)+"px":C+"px",position:"fixed",zIndex:K}:{right:D?(0,m.D2A)(I)+"px":$+"px",bottom:D?(0,m.pUQ)(I)+"px":C+"px",position:"fixed",zIndex:K},children:(0,h.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==I?u+"px":s+"px",height:t.isSpotlight&&"60122562760"==I?s+"px":u+"px",borderRadius:X,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===z?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:X,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==I?16/9:9/16},children:(0,h.jsx)(i.A,{url:H.thumbnail_image,isMuted:!0,isPlaying:!0,event:H})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,h.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,h.jsx)("div",{className:"close-btn",onClick:B,children:(0,h.jsx)(f,{size:G})})}),(0,h.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,h.jsx)(_,{size:Q})}),(0,h.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:X,borderBottomRightRadius:X,background:w?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,h.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:v,fontWeight:"600",fontSize:.35*G+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:w})})]})})]})})})})}},932:function(t,e,n){var o=n(7483),r=n(1941),i=n(22),a=n(1348);e.A=function(t){const[e,n,c]=(0,r.A)(),[u]=(0,o.QN)("whatmoreLandscapePadding"),[l]=(0,o.QN)("whatmoreShopId"),[s]=(0,o.QN)("whatmoreVideoTileSize"),[d]=(0,o.QN)("whatmoreVideoTileSizePortrait"),p=c>n,m="portrait"==e?d:s,h=!("portrait"!=e||!(c>=481)),f=m/100*1.3*.5,_=m/100;var g=Math.min(c,n),[v,w,b,y]=[.6*g*(16/9),.6*g,1.4,0];function S(t){return Math.round(10*t)/10}var x={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(p){const t=w*f,e=v*f;[v,w,b,y]=[e,t,(c-2*u-2*(0,a.$du)(l))/(1.1*t),u],x[i._]=i.$S,x[i.dl]=i.nN}else if(h){var T=.8*w,E=.8*v;"portrait"==e?(T*=_,E*=_,[v,w,b,y]=[E,T,S(c/(1.2*T)),0],x[i._]=i.vF,x[i.dl]=i.tn):([v,w,b,y]=[E,T,(c-2*u)/(1.1*T),u],x[i._]=i.vF,x[i.dl]=i.nN)}else{T=w,E=v;"portrait"==e?(T=T*_*.9,E=E*_*.9,[v,w,b,y]=[E,T,S(c/(1.15*T)),0],x[i._]=i.b4,x[i.dl]=i.tn):(T=.7*w,E=.7*v,[v,w,b,y]=[E,T,(c-2*u)/(1.1*T),u],x[i._]=i.b4,x[i.dl]=i.nN)}return[v,w,b,y,x]}},1019:function(t,e,n){n.d(e,{B:function(){return i}});var o=n(1348),r=n(964);function i(t){return`${(0,o.jpW)(t)?r.$$:r.MT}/v2/brand/${t}/product-events/recommendation/cdn`}},1085:function(t,e,n){n.d(e,{F5:function(){return r},Pc:function(){return a},Z4:function(){return c},bo:function(){return u},rq:function(){return l}});var o=n(7483);const r=6;function i(){const t=(0,o.Xd)("whatmoreVideoPlayerPool");var e=document.createElement("video");return e.setAttribute("class","whatmore-video-player whatmore-main-video-player-from-pool"),e.setAttribute("width","100%"),e.setAttribute("src","https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4"),e.muted=!0,e.setAttribute("height","100%"),e.setAttribute("preload","auto"),e.setAttribute("loop",""),e.setAttribute("playsinline",""),e.setAttribute("x-webkit-airplay","allow"),e.controls=!1,t.appendChild(e),e}const a=function(t){for(let e=1;e<=t;e++)i();(0,o.t2)("whatmoreVideoPlayerPoolInitiated",!0)};const c=function(t,e,n,r,i){(0,o.Xd)("whatmoreVideoPlayerPool");const a=function(t,e,n){var r=(i=(0,o.Xd)("whatmoreVideoPlayerPool").children,i.length>0?i[0]:null);var i;if(!r)throw new Error("Whatmore :: not enough blessed videos available in video pool.");return t&&(t.includes(".m3u8")||t.includes("m3u8"))?r.canPlayType("application/vnd.apple.mpegurl")&&r.setAttribute("src",t):r.setAttribute("src",t),r.muted=e,n||r.pause(),r}(e,n,r);return t.innerHTML="",t.appendChild(a),a},u=async function(){const t=(0,o.Xd)("whatmoreVideoPlayerPool");(0,o.Xd)("whatmoreVideoPlayerPoolInitiated")||a(r);var e=[];for(let o=0;o<t.children.length;o++){let r=t.children[o];r.muted=!0,r.setAttribute("playsinline","true"),r.setAttribute("webkit-playsinline","true"),r.setAttribute("playsInline","true");var n=r.play().then(t=>(r.pause(),t)).catch(t=>(console.warn("Whatmore :: Blessing failed for video element, retrying...",t),r.volume=0,r.play().then(()=>{r.pause()}).catch(t=>{throw console.error("Whatmore :: Retry blessing failed",t),t})));e.push(n)}await Promise.all(e).then(t=>{(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)}).catch(t=>{console.error("Whatmore :: Error while blessing "+t.message),(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)})},l=function(t){const e=(0,o.Xd)("whatmoreVideoPlayerPool"),n=t.children[0];n.muted=!0,!n.paused&&n.pause(),e.appendChild(n)}},1348:function(t,e,n){n.d(e,{$7F:function(){return xo},$du:function(){return Kn},$lz:function(){return z},A5I:function(){return _},AFg:function(){return ue},AJI:function(){return x},ALN:function(){return Rt},AmR:function(){return bn},B6P:function(){return Yt},BLb:function(){return D},BRY:function(){return hn},BcY:function(){return ut},Br1:function(){return Rn},C1J:function(){return kt},CBm:function(){return oo},Cf:function(){return vn},CfJ:function(){return ge},D2A:function(){return Gt},D7t:function(){return G},DGu:function(){return vo},DLl:function(){return Re},DNc:function(){return I},DiI:function(){return pt},DmD:function(){return Ne},E8r:function(){return To},Eel:function(){return Ln},FKG:function(){return bt},FVo:function(){return $e},FZM:function(){return gt},FlI:function(){return tn},Fwt:function(){return we},FyB:function(){return O},G0Q:function(){return B},GSq:function(){return Ot},GX0:function(){return y},GZ2:function(){return Eo},Gc6:function(){return te},GvQ:function(){return Dt},H$k:function(){return st},HKH:function(){return Tt},HWj:function(){return gn},Hfu:function(){return $},Idi:function(){return Ft},If9:function(){return Oe},JAc:function(){return h},JQp:function(){return wo},JSQ:function(){return Un},JiT:function(){return Q},JwJ:function(){return ao},KFN:function(){return Le},KMo:function(){return V},KPq:function(){return b},KVz:function(){return Jn},KZe:function(){return St},KnH:function(){return ae},Kr7:function(){return En},L0y:function(){return Y},LGx:function(){return rn},LOH:function(){return Ze},LPW:function(){return We},LrK:function(){return Bt},M$H:function(){return Kt},M3_:function(){return un},MJ6:function(){return en},MPe:function(){return lt},MRv:function(){return Se},MdM:function(){return nn},Mq2:function(){return xe},Mz3:function(){return An},N0t:function(){return It},NCy:function(){return qe},NFF:function(){return $n},N_4:function(){return _n},Nzx:function(){return Ct},O86:function(){return Vt},OC6:function(){return M},OLZ:function(){return kn},OSd:function(){return f},Odx:function(){return K},Pjz:function(){return et},PpQ:function(){return Me},Q$:function(){return po},QNr:function(){return jn},QSX:function(){return Zn},Qed:function(){return Pe},R2w:function(){return Mt},R6d:function(){return dn},R7q:function(){return to},R8W:function(){return ce},RG3:function(){return fo},Rdb:function(){return j},SGs:function(){return ee},SK$:function(){return dt},SOt:function(){return fe},Spk:function(){return W},T9r:function(){return Cn},TH:function(){return uo},TYM:function(){return je},Tr1:function(){return Gn},Tzr:function(){return r},U74:function(){return vt},Uht:function(){return ct},UlM:function(){return Te},UmS:function(){return wn},Usu:function(){return sn},VCz:function(){return N},VYo:function(){return De},VhI:function(){return Sn},ViG:function(){return Ge},Vpi:function(){return ot},WDJ:function(){return ze},WH1:function(){return so},WRx:function(){return xn},Wc_:function(){return P},Woi:function(){return rt},XQu:function(){return jt},XYM:function(){return F},YE3:function(){return Nt},YOR:function(){return u},Y_l:function(){return q},YcK:function(){return ve},YqT:function(){return go},ZX9:function(){return Qe},ZzM:function(){return $t},_2D:function(){return Jt},_hU:function(){return yt},_zx:function(){return Fn},aO7:function(){return no},aRV:function(){return lo},ath:function(){return io},bQo:function(){return A},br0:function(){return g},buK:function(){return zt},cYm:function(){return se},cbh:function(){return Xn},dmA:function(){return Be},dnh:function(){return nt},dzp:function(){return Ke},ei:function(){return E},ek9:function(){return S},esc:function(){return ft},fDZ:function(){return At},fHt:function(){return Qn},fpt:function(){return Pt},fwF:function(){return Yn},gZ6:function(){return yo},ga9:function(){return J},gld:function(){return Wn},gq8:function(){return Pn},gvj:function(){return re},hbj:function(){return Ut},hep:function(){return ho},hpk:function(){return cn},i2h:function(){return Vn},i6j:function(){return zn},iQ5:function(){return He},igk:function(){return H},imx:function(){return at},isL:function(){return qt},ivI:function(){return w},ivR:function(){return Ve},jLA:function(){return ht},jWS:function(){return Xt},jpW:function(){return _e},jsS:function(){return Tn},kZI:function(){return Je},kb:function(){return v},kcl:function(){return ke},klK:function(){return Ce},l3V:function(){return Z},lDJ:function(){return he},m4S:function(){return T},m5c:function(){return bo},mJ$:function(){return mt},mOK:function(){return pn},mRH:function(){return yn},mlY:function(){return mo},moP:function(){return an},n5O:function(){return Ae},n8Q:function(){return Lt},nEf:function(){return On},nP1:function(){return d},nWM:function(){return p},naM:function(){return ie},o9q:function(){return de},oB_:function(){return ne},oZc:function(){return Xe},ogW:function(){return Mn},p2R:function(){return it},p6A:function(){return Hn},pUQ:function(){return Qt},pbJ:function(){return oe},qAx:function(){return le},qw1:function(){return Ie},rC6:function(){return pe},rEM:function(){return C},rMH:function(){return me},rh$:function(){return xt},rkx:function(){return Ht},rsz:function(){return qn},s0t:function(){return ye},sIk:function(){return be},sa6:function(){return X},tM2:function(){return ln},tSy:function(){return k},tbf:function(){return Bn},u06:function(){return eo},u1b:function(){return m},uJl:function(){return l},uSp:function(){return co},uXw:function(){return _o},ub$:function(){return mn},uoB:function(){return Nn},v8m:function(){return fn},vDV:function(){return on},vfi:function(){return Wt},vvD:function(){return tt},vvU:function(){return ro},vw2:function(){return Dn},w4b:function(){return Ee},wQ2:function(){return wt},wtw:function(){return Ye},xIo:function(){return Zt},xkB:function(){return Ue},xku:function(){return So},y3u:function(){return Fe},yD5:function(){return R},yW$:function(){return Et},yt9:function(){return s},z00:function(){return L},z1s:function(){return U},zAb:function(){return In},zC7:function(){return _t}});var o=n(7483);const r=function(t,e){!function(t){const e={customizations:t,timestamp:(new Date).getTime()};localStorage.setItem("whatmore_brand_customizations",JSON.stringify(e))}(t);!function(){var n,r,i,a,c,u;const l=(0,o.Xd)("whatmorePrimaryFont"),s=(0,o.Xd)("whatmoreTitleFont"),d=(0,o.Xd)("isProductSwiperCatalogOpen");(0,o.t2)("whatmorePrimaryFont",null!==(n=tt(e))&&void 0!==n?n:l),(0,o.t2)("whatmoreTitleFont",null!==(r=X(e))&&void 0!==r?r:s),(0,o.t2)("isProductSwiperCatalogOpen",null!==(i=xe(e))&&void 0!==i?i:d),(0,o.t2)("whatmorePrimaryFont",null===t||void 0===t?void 0:t.brand_theme_font),(0,o.t2)("whatmoreUITheme",null===t||void 0===t?void 0:t.brand_ui_theme),(0,o.t2)("whatmoreShowViews",null===t||void 0===t?void 0:t.brand_video_view_count),(0,o.t2)("whatmorePrimaryColor",null===t||void 0===t?void 0:t.brand_text_color),(0,o.t2)("whatmoreSecondaryColor",null===t||void 0===t?void 0:t.brand_theme_color),(0,o.t2)("whatmoreTitleFont",null!==(a=null===t||void 0===t||null===(c=t.brand_fonts)||void 0===c?void 0:c.carousel_title_font)&&void 0!==a?a:null===t||void 0===t||null===(u=t.homepage_carousel)||void 0===u?void 0:u.carousel_title_font)}()};function i(t,e,n){var o;if(!e.includes("->"))return e in n&&null!==(o=n[e])&&void 0!==o?o:null;const r=e.split("->")[0];return r in n?i(t,e.substring(e.indexOf("->")+2),n[r]):null}let a={};function c(t,e){if(e in a)return a[e];const n=function(){const t=localStorage.getItem("whatmore_brand_customizations");return t?JSON.parse(t).customizations:null}();if(!n)return null;const o=i(e,e,n);return a[e]=o,o}function u(t){t.sort((t,e)=>t.scheduled_date<e.scheduled_date?1:e.scheduled_date<t.scheduled_date?-1:0)}const l=function(t){return c(0,"show_single_product_tile")},s=function(t){return c(0,"brand_billing")},d=function(t){return c(0,"show_add_to_cart_on_card_template")},p=function(t){return c(0,"add_to_cart_button_type")},m=function(t){return c(0,"show_options_chart")},h=function(t){return c(0,"is_multi_size_chart")},f=function(t){return c(0,"options_chart_image_link")},_=function(t){return c(0,"options_chart_name")},g=function(t){return c(0,"default_swipe_direction")},v=function(t){return c(0,"add_navigation_buttons_for_swipe")},w=function(t){return c(0,"tertiary_color")},b=function(t){return c(0,"atc_button_text")},y=function(t){return c(0,"buy_now_button_text")},S=function(t){return c(0,"show_open_close_products_button")},x=function(t){return c(0,"add_to_cart_form_class_name")},T=function(t){return c(0,"cart_icon_button_click_action")},E=function(t){return c(0,"initiate_cart_slider_event_on_atc_click")},I=function(t){return c(0,"show_swipe_indicator_in_landscape")},j=function(t){return c(0,"coverflow_effect_landscape_view")},P=function(t){return c(0,"atc_config->brand_atc_button_color")},$=function(t){return c(0,"atc_config->brand_atc_button_text_color")},C=function(t){return c(0,"order_tracking->initiate_order_tracking_event_after_atc")},A=function(t){return c(0,"order_tracking->add_whatmore_attribute_on_cart_page")},k=function(t){return c(0,"order_tracking->disable_impression_order_tracking")},O=function(t){return c(0,"atc_config->brand_atc_button_padding_in_px")},L=function(t){return c(0,"atc_config->atc_buy_now_alignment")},D=function(t){return c(0,"utm->activate_utm")},N=function(t){return c(0,"utm->utm_source")},W=function(t){return c(0,"utm->utm_campaign")},z=function(t){return c(0,"utm->utm_medium_product_page")},V=function(t){return c(0,"utm->utm_medium_checkout_page")},R=function(t){return c(0,"utm->utm_medium_cart_page")},M=function(t){return c(0,"banner_config->is_banner_clickable")},F=function(t){return c(0,"banner_config->show_cta")},q=function(t){return c(0,"banner_config->landscape_multiplier")},H=function(t){return c(0,"banner_config->portrait_multiplier")},J=function(t){return c(0,"banner_config->landscape_aspect_ratio")},B=function(t){return c(0,"banner_config->portrait_aspect_ratio")},G=function(t){return c(0,"banner_config->is_full_screen")},Q=function(t){return c(0,"banner_config->show_navigation_dots")},U=function(t){return c(0,"banner_config->selected_dot_color")},X=function(t){return c(0,"brand_fonts->carousel_title_font")},K=function(t){return c(0,"brand_fonts->carousel_title_font_weight")},Y=function(t){return c(0,"brand_fonts->carousel_title_font_line_height")},Z=function(t){return c(0,"brand_fonts->carousel_title_font_letter_spacing")},tt=function(t){return c(0,"brand_fonts->brand_primary_font")},et=function(t){return c(0,"brand_fonts->story_title_font")},nt=function(t){return c(0,"order_tracking->add_whatmore_attribute")},ot=function(t){return c(0,"product_config->tile_type")},rt=function(t){return c(0,"product_config->show_cta")},it=function(t){return c(0,"product_config->tile_bg_opacity")},at=function(t){return c(0,"product_config->details_api_available")},ct=function(t){return c(0,"product_config->update_product_details_on_product_page_load")},ut=function(t){return c(0,"product_config->use_product_page_link_as_client_product_id")},lt=function(t){return c(0,"product_config->navigate_to_cart_page")},st=function(t){return c(0,"product_config->is_tile_width")},dt=function(t){return c(0,"product_config->show_view_product_text")},pt=function(t){return c(0,"product_config->show_go_to_cart_text")},mt=function(t){return c(0,"collections_config->use_page_link_as_collection_id")},ht=function(t){return c(0,"collections_config->multi_carousel_enabled")},ft=function(t){return c(0,"collections_config->story_tile_size_factor")},_t=function(t){return c(0,"collections_config->story_tile_shape")},gt=function(t){return c(0,"collections_config->tile_margin_right")},vt=function(t){return c(0,"collections_config->remove_borders")},wt=function(t){return c(0,"collections_config->show_popup_out_of_view")},bt=function(t){return c(0,"collections_config->homepage_collection_ids")},yt=function(t){return c(0,"collections_config->set_tile_width_auto")},St=function(t){return c(0,"product_config->product_image_fit_type")},xt=function(t){return c(0,"product_config->font_price_multiplicator")},Tt=function(t){return c(0,"product_config->enable_bulk_atc")},Et=function(t){return c(0,"product_config->currency_code_to_symbol_map")},It=function(t){return c(0,"product_config->add_currency_query_param_in_product_url")},jt=function(t){return c(0,"product_config->variant_selection_tile_height_factor")},Pt=function(t){return c(0,"product_config->product_tile_discount_badge_color")},$t=function(t){return c(0,"product_config->show_shop_now_button_only")},Ct=function(t){return c(0,"product_config->show_product_price")},At=function(t){return c(0,"product_page_popup_config->show_product_page_popup")},kt=function(t){return c(0,"product_page_popup_config->show_product_page_popup_in_preview")},Ot=function(t){return c(0,"product_page_popup_config->ultra_minimize_on_scroll")},Lt=function(t){return c(0,"product_page_popup_config->show_popup_on_scroll")},Dt=function(t){return c(0,"product_page_popup_config->popUpZindex")},Nt=function(t){return c(0,"product_page_popup_config->auto_close_on_open")},Wt=function(t){return c(0,"product_page_popup_config->show_order_by_date_events")},zt=function(t){return c(0,"product_page_popup_config->show_all_events")},Vt=function(t){return c(0,"spotlight_config->size_factor")},Rt=function(t){return c(0,"spotlight_config->show_once_to_user")},Mt=function(t){return c(0,"spotlight_config->enable_in_homepage")},Ft=function(t){return c(0,"spotlight_config->enable_page_id_set")},qt=function(t){return c(0,"spotlight_config->enable_all_pages")},Ht=function(t){return c(0,"event_tracking->is_enabled")},Jt=function(t){return c(0,"spotlight_config->ultraminimize_on_scroll")},Bt=function(t){return c(0,"spotlight_config->position")},Gt=function(t){return c(0,"spotlight_config->horizontal_padding")},Qt=function(t){return c(0,"spotlight_config->vertical_padding")},Ut=function(t){return c(0,"spotlight_config->enable_spotlight")},Xt=function(t){return c(0,"ga_tracking_id")},Kt=function(t){return c(0,"ga_config->is_ga_4")},Yt=function(t){return c(0,"ga_config->is_ga_3")},Zt=function(t){return c(0,"ga4_tracking_id")},te=function(t){return c(0,"ga_config->use_existing_ga_id")},ee=function(t){return c(0,"show_whatmore_label_in_landscape_view")},ne=function(t){return c(0,"buy_now_config->show_buy_now_button")},oe=function(t){return c(0,"buy_now_config->show_custom_buy_now_button")},re=function(t){return c(0,"buy_now_config->show_add_to_cart_button")},ie=function(t){return c(0,"buy_now_config->show_view_more_inplace_of_buy_now")},ae=function(t){return c(0,"buy_now_config->view_more_button_text")},ce=function(t){return c(0,"buy_now_config->enable_shopflo_checkout")},ue=function(t){return c(0,"stories_config->show_stories_in_landscape_mode")},le=function(t){return c(0,"stories_config->stories_border_colors")},se=function(t){return c(0,"stories_config->stories_title_font_factor")},de=function(t){return c(0,"stories_config->stories_title_font_color")},pe=function(t){return c(0,"stories_config->show_stories_in_mobile_mode")},me=function(t){return c(0,"stories_config->story_tiles_spacing_factor")},he=function(t){return c(0,"stories_config->story_show_navigation_arrows")},fe=function(t){return c(0,"backend_config->use_cdn_cache_endpoint")},_e=function(t){return!0},ge=function(t){return c(0,"cdn_config->fallback_cdn")},ve=function(t){return c(0,"theme_config->event_tile_border_width")},we=function(t){return c(0,"theme_config->event_tile_border_color")},be=function(t){return c(0,"theme_config->event_view_count_bg_color")},ye=function(t){return c(0,"theme_config->event_view_count_text_color")},Se=function(t){return c(0,"theme_config->event_tile_product_desc_border_width")},xe=function(t){return c(0,"product_config->show_product_swiper_initially")},Te=function(t){return c(0,"product_config->show_cta_icon")},Ee=function(t){return c(0,"product_config->get_price_and_currency_details_from_api")},Ie=function(t){return c(0,"product_config->product_tile_bottom_margin")},je=function(t){return c(0,"product_config->show_first_product_tile")},Pe=function(t){return c(0,"product_config->shop_now_text")},$e=function(t){return c(0,"event_tile_config->view_count_template")},Ce=function(t){return c(0,"event_tile_config->show_views")},Ae=function(t){return c(0,"event_tile_config->animate_on_focus")},ke=function(t){return c(0,"event_tile_config->space_between_tiles")},Oe=function(t){return c(0,"event_tile_config->gap_between_tiles")},Le=function(t){return c(0,"event_tile_config->playback_icon_color")},De=function(t){return c(0,"event_tile_config->shadow_config")},Ne=function(t){return c(0,"event_tile_config->show_product_thumbnail")},We=function(t){return c(0,"event_tile_config->show_product_tile")},ze=function(t){return c(0,"event_tile_config->show_atc_on_hover_premium")},Ve=function(t){return c(0,"event_tile_config->bg_config")},Re=function(t){return c(0,"event_tile_config->show_heading_in_single_tile_carousel")},Me=function(t){return c(0,"event_tile_config->event_thumbnail_b_title_font_multiplier")},Fe=function(t){return c(0,"event_tile_config->event_thumbnail_b_price_font_multiplier")},qe=function(t){return c(0,"brand_metadata->domain_context")},He=function(t){return c(0,"social_sharing->activate_link_sharing")},Je=function(t){return c(0,"social_sharing->link_sharing_title")},Be=function(t){return c(0,"social_sharing->link_sharing_text")},Ge=function(t){return c(0,"social_sharing->show_share_text_below_button")},Qe=function(t){return c(0,"social_sharing->show_whatmore_branding")},Ue=function(t){return c(0,"social_sharing->social_icons_size_multiplier")},Xe=function(t){return c(0,"social_sharing->whatsapp_icon_active")},Ke=function(t){return c(0,"social_sharing->whatsapp_icon_redirect_url")},Ye=function(t){return c(0,"social_sharing->whatsapp_icon_helper_text")},Ze=function(t){return c(0,"social_sharing->whatsapp_icon_helper_text_font_multiplier")},tn=function(t){return c(0,"social_sharing->show_liked_text_below_button")},en=function(t){return c(0,"social_sharing->like_fill_color")},nn=function(t){return c(0,"social_sharing->activate_likes")},on=function(t){return c(0,"social_sharing->share_text_threshold_count")},rn=function(t){return c(0,"social_sharing->like_text_threshold_count")},an=function(t){return c(0,"social_sharing->share_product_url_link")},cn=function(t){return c(0,"navigation_config->enable_browser_navigation_on_click")},un=function(t){return c(0,"navigation_config->navigation_label_name")},ln=function(t){return c(0,"shopnow_config->brand_color_option_border_radius")},sn=function(t){return c(0,"shopnow_config->brand_color_option_border_color")},dn=function(t){return c(0,"shopnow_config->brand_divider_color")},pn=function(t){return c(0,"shopnow_config->is_discount_label_percent")},mn=function(t){return c(0,"shopnow_config->discount_percent_bg_color")},hn=function(t){return c(0,"shopnow_config->discount_text_color")},fn=function(t){return c(0,"shopnow_config->discount_label_border_radius")},_n=function(t){return c(0,"event_tile_with_product_info->landscape_font_multiplier")},gn=function(t){return c(0,"event_tile_with_product_info->portrait_font_multiplier")},vn=function(t){return c(0,"event_tile_with_product_info->show_discount_label")},wn=function(t){return c(0,"event_tile_with_product_info->show_thumbnail_image")},bn=function(t){return c(0,"event_tile_with_product_info->show_product_info")},yn=function(t){return c(0,"event_tile_with_product_info->show_atc_button_outside_tile")},Sn=function(t){return c(0,"event_tile_with_product_info->show_atc_on_hover")},xn=function(t){return c(0,"event_tile_with_product_info->atc_button_color")},Tn=function(t){return c(0,"event_tile_with_product_info->atc_button_text_color")},En=function(t){return c(0,"event_tile_with_product_info->show_atc_button_template_feed")},In=function(t){return c(0,"event_tile_with_product_info->show_thumbnail_image_template_feed")},jn=function(t){return c(0,"event_tile_with_product_info->show_price_info")},Pn=function(t){return c(0,"event_tile_product_card->navigate_to_product")},$n=function(t){return c(0,"meta_pixel_events->video_click_event")},Cn=function(t){return c(0,"meta_pixel_events->video_atc_event")},An=function(t){return c(0,"meta_pixel_events->video_like_event")},kn=function(t){return c(0,"meta_pixel_events->video_share_event")},On=function(t){return c(0,"meta_pixel_events->video_product_tile_click_event")},Ln=function(t){return c(0,"meta_pixel_events->video_watch_event")},Dn=function(t){return c(0,"price_config->show_price_before_mrp")},Nn=function(t){return c(0,"price_config->price_text_color")},Wn=function(t){return c(0,"price_config->mrp_text_color")},zn=function(t){return c(0,"price_config->font_weight")},Vn=function(t){return c(0,"product_config->product_tile_custom_text")},Rn=function(t){return c(0,"product_config->product_tile_custom_text_color")},Mn=function(t){return c(0,"product_config->product_tile_shopnow_custom_font_style")},Fn=function(t){return c(0,"product_config->product_tile_shopnow_custom_text_color")},qn=function(t){return c(0,"product_config->product_tile_shopnow_custom_text")},Hn=function(t){return c(0,"preview_config->product_tile_custom_text")},Jn=function(t){return c(0,"preview_config->video_player_bg_color")},Bn=function(t){return c(0,"preview_config->video_player_height")},Gn=function(t){return c(0,"preview_config->event_tile_show_thumbnail_image")},Qn=function(t){return c(0,"carousel_config->width_multiplier")},Un=function(t){return c(0,"carousel_config->show_navigation_arrows_in_portrait")},Xn=function(t){return c(0,"carousel_config->is_event_loop")},Kn=function(t){return 0},Yn=function(t){return c(0,"video_player_config->pause_videos_after_delay_landscape")},Zn=function(t){return c(0,"video_player_config->video_player_bg_color")},to=function(t){return c(0,"video_player_config->video_player_height")},eo=function(t){return c(0,"video_player_config->thumbnail_video_player_height")},no=function(t){return c(0,"video_player_config->play_video_on_hover")},oo=function(t){return c(0,"video_player_config->set_height_as_auto")},ro=function(t){return c(0,"show_homepage_videos_in_pdp")},io=function(t){return c(0,"brand_s3_directory")},ao=function(t){return c(0,"quiz_config->is_active")},co=function(t){return c(0,"quiz_config->swipe_number_show_question")},uo=function(t){return c(0,"quiz_config->lead_gen_coupon_code")},lo=function(t){return c(0,"quiz_config->lead_gen_sub_heading")},so=function(t){return c(0,"recommendation_config->show_recommended_events")},po=function(t){return c(0,"event_tile_config->show_product_tile_thumbnail_template_a")},mo=function(t){return c(0,"video_player_config->keep_videos_muted")},ho=function(t){return c(0,"brand_ui_theme")},fo=function(t){return c(0,"brand_video_view_count")},_o=function(t){return c(0,"brand_theme_color")},go=function(t){return c(0,"brand_theme_font")},vo=function(t){return c(0,"brand_text_color")},wo=function(t){return c(0,"homepage_carousel->carousel_title_font")},bo=function(t){return c(0,"product_info_text_color")},yo=function(t){return c(0,"product_config->show_product_type")},So=function(t){return c(0,"oos_config->show_oos_videos")},xo=function(t){return c(0,"oos_config->show_oos_product_tile")},To=function(t){return c(0,"oos_config->show_sold_out_label_oos")},Eo=function(t){return c(0,"video_player_config->hide_mute_unmute_button")}},1351:function(t,e,n){n.d(e,{PG:function(){return u},kz:function(){return l},UM:function(){return d},yP:function(){return p},DG:function(){return s}});var o=n(1348),r=n(3330),i=n(6157);function a(t,e,n={},o){var r;const a=u[t];if(!a)return;const c=a.isActionEnabled(),l=null===o||void 0===o||null===(r=o.meta_actions)||void 0===r?void 0:r[a.customAction];(c||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",a.action,o),l&&setTimeout(()=>{null===l||void 0===l||l.forEach(t=>{fbq("trackCustom",t,o)})},500)})()}var c=n(7145);const u={[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 l({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:l}){var s,d,p,m;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:l}),t in u)&&(a(t,null!==(s=null===i||void 0===i?void 0:i[1])&&void 0!==s?s:null===i||void 0===i?void 0:i[0],e,o),(0,r.n)({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(d=null===i||void 0===i||null===(p=i[1])||void 0===p?void 0:p.title)&&void 0!==d?d:null===i||void 0===i||null===(m=i[0])||void 0===m?void 0:m.title}))}function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:l}){var s,d,p,m;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:l}),t in u)&&(a(t,null!==(s=null===i||void 0===i?void 0:i[1])&&void 0!==s?s:null===i||void 0===i?void 0:i[0],e,o),(0,r.n)({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:e.video_duration>0?Math.ceil(e.watch_time/e.video_duration*100):"NA",product_name:null!==(d=null===i||void 0===i||null===(p=i[1])||void 0===p?void 0:p.title)&&void 0!==d?d:null===i||void 0===i||null===(m=i[0])||void 0===m?void 0:m.title}))}function d({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:a}){var l,s,d;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:i,ctaList:a}),t in u)&&(0,r.n)({page_type:n.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(l=null===i||void 0===i||null===(s=i[1])||void 0===s?void 0:s.title)&&void 0!==l?l:null===i||void 0===i||null===(d=i[0])||void 0===d?void 0:d.title})}function p({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i}){(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:o,productList:r,ctaList:i})}},1745:function(t,e,n){n.d(e,{RX:function(){return p},sw:function(){return s},iL:function(){return h},oV:function(){return m},Lt:function(){return u},js:function(){return l},tN:function(){return f},_N:function(){return _},R3:function(){return v},CP:function(){return g}});var o=n(1348);const r="_whatmore-tracking-id";var i=n(2089),a=n(4533),c=n(7483);function u(){const t="https://"+window.location.hostname+"/cart.json";return fetch(t,{method:"GET"})}async function l(){const t="https://"+window.location.hostname+"/cart.json";return await fetch(t,{method:"GET"})}async function s(t){var e;let n,u=(0,i.Ak)(),s=null,p=null,m={},h=null,f=null,_=null,g={};const v=(0,c.Xd)("whatmoreShopId");let w=(0,a.CK)(),b=null===(e=localStorage)||void 0===e?void 0:e.wht_is_impression,y=w.length>0;w.forEach(t=>{g.hasOwnProperty(null===t||void 0===t?void 0:t.product_id)||(g[null===t||void 0===t?void 0:t.product_id]={widgetInfo:null===t||void 0===t?void 0:t.widget_info,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.user_type})});const S=localStorage.getItem("_whatmore_session_id"),x=localStorage.getItem("wht_user_group"),T=localStorage.getItem("wht_ab_test_id"),E=localStorage.getItem("_whatmore_user_id");await l().then(t=>t.json()).then(e=>{u=e.token,n=e.attributes;let i=[];if(i=!0===t?e.items.map(t=>{const e=g[null===t||void 0===t?void 0:t.variant_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}}):e.items.map(t=>{const e=g[null===t||void 0===t?void 0:t.product_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}}),0==i.length)return console.debug("Whatmore :: no cart items available for view products"),null;let l={},w={};if(null==S||"Scale"!=(0,o.yt9)(v)&&"Enterprise"!=(0,o.yt9)(v)&&"Premium"!=(0,o.yt9)(v)||(w={wht_user_attributes:{wht_session_id:S,wht_user_id:E,...x&&{wht_user_group:x},...T&&{wht_ab_test_id:T}}}),b||y){const t="1";w[y?"wvs":"wvi"]=t}!(0,o.tSy)(v)&&(w.hasOwnProperty("wht_user_attributes")&&!n.hasOwnProperty("wht_user_attributes")||w.hasOwnProperty("wvs")&&!n.hasOwnProperty("wvs")||w.hasOwnProperty("wvi")&&!n.hasOwnProperty("wvi"))&&d(w),i.map((e,n)=>{if(s=e.key,p=e.quantity,m=e.properties,h=e.widget_info,f=e.location,_=e.userType,("63330517149"==v||"77604192550"==v||"64157352183"==v||"62758289602"==v)&&g.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))){const t="wtot";l={...l,[null===e||void 0===e?void 0:e.product_id]:(0,a.wm)()+`#${h}`};d({[t]:l})}null!==m&&r in m||!g.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))||async function(t,e,n,o,i="default",u,l,s,d){const p=(0,c.Xd)("whatmoreShopId"),m=l?(0,a.wm)()+("72201044272"==p?`#${o}#${i}#${u?"olduser":"newuser"}`:`#${o}`):d?"_wt_vs":s?"_wt_vi":"";if(""==m||"_wt_vs"==m||"_wt_vi"==m||"77604192550"==p||"64157352183"==p||"80856187185"==p||"86486974743"==p||"62758289602"==p||"63046287536"==p)return;let h={id:t,quantity:e,properties:{...m?{[r]:m}:{},...n}};const f=await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart line item properties.",t)})}(s,p,m,h,f,_,!0,b,y)})}).catch(t=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",t)})}async function d(t){return await fetch("https://"+window.location.hostname+"/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:t})}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart attribute.",t)})}async function p(t,e,n,i,c="default",u){if("24366857"==n||"68234805419"==n||"86879863060"==n)return Promise.resolve({ok:!0,json:()=>{}});let l;if((0,o.dnh)(n)){const o=(0,a.wm)()+("72201044272"==n?`#${i}#${c}#${u?"olduser":"newuser"}:direct`:`#${i}:direct`);l={items:t.map(t=>({id:t,quantity:e,properties:{[r]:o}}))}}else l={items:t.map(t=>({id:t,quantity:e}))};const s=localStorage.getItem("_whatmore_session_id"),p=localStorage.getItem("wht_user_group"),m=localStorage.getItem("wht_ab_test_id"),h=localStorage.getItem("_whatmore_user_id");if(null!=s&&!(0,o.tSy)(n)&&("Scale"==(0,o.yt9)(n)||"Enterprise"==(0,o.yt9)(n)||"Premium"==(0,o.yt9)(n))){const t={wht_user_attributes:{wht_session_id:s,wht_user_id:h,...p&&{wht_user_group:p},...m&&{wht_ab_test_id:m}}};await d(t)}return Promise.resolve({ok:!0,json:()=>{}})}function m(t,e,n,r,i="default",a){const c="https://"+window.location.hostname;var u;const l="72201044272"==n?`came-from-whatmore-live_${r}_${i}_${a?"olduser":"newuser"}`:`came-from-whatmore-live_${r}`;(0,o.BLb)(n)?(u=`${c}/cart/${t}:${e}?`+(0,o.VCz)(n)+"&"+(0,o.Spk)(n)+"&"+(0,o.KMo)(n),(0,o.dnh)(n)&&(u=`${u}&ref=`+l)):(u=`${c}/cart/${t}:${e}`,(0,o.dnh)(n)&&(u=`${u}?ref=`+l)),window.location.href=u}function h(t){const e="https://"+window.location.hostname+"/cart";(0,o.BLb)(t)?window.location.href=e+"?"+(0,o.VCz)(t)+"&"+(0,o.Spk)(t)+"&"+(0,o.yD5)(t):window.location.href=e}async function f(t,e=""){let n;if("27303477337"===e){var o,r;const e="https://"+window.location.hostname,i=window.location.pathname.split("/");n=e+"/"+(null!==i&&void 0!==i&&null!==(o=i[1])&&void 0!==o&&o.startsWith("en-")?(null===i||void 0===i?void 0:i[1])+"/":"")+(null===t||void 0===t||null===(r=t.product_link)||void 0===r?void 0:r.split(".co")[1])+".js"}else n=(null===t||void 0===t?void 0:t.product_link)+".js";const i=await fetch(n,{method:"GET"});if(!i.ok)throw new Error(`Error! status: ${i.status}`);return await i.json()}async function _(t){const e=t.product_link+".json",n=await fetch(e,{method:"GET"});if(!n.ok)throw new Error(`Error! status: ${n.status}`);return await n.json()}async function g(t,e,n,o,i="default",u,l,s,d){const p=(0,c.Xd)("whatmoreShopId"),m=l?(0,a.wm)()+("72201044272"==p?`#${o}#${i}#${u?"olduser":"newuser"}:direct`:`#${o}:direct`):d?"_wt_vs":s?"_wt_vi":"";if(""==m||"_wt_vs"==m||"_wt_vi"==m||"77604192550"==p||"64157352183"==p||"80856187185"==p||"86486974743"==p||"62758289602"==p)return;let h={id:t,quantity:e,properties:{...m?{[r]:m}:{},...n}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)}).then(t=>t.json()).catch(t=>{console.error("Whatmore :: Error while updating cart line item properties direct.",t)})}function v(t,e){const n=(0,a.wm)()+`#${e}:buynow`,o=`\n <form method="post" action="/cart/add" accept-charset="UTF-8" class="form" enctype="multipart/form-data" is="product-form">\n <input type="hidden" name="form_type" value="product" />\n <input type="hidden" name="utf8" value="\u2713" />\n <input name=properties[${r}] type="hidden" value=${n}></input>\n <input type="hidden" name="id" value="${t}" />\n </form> `,i=(new DOMParser).parseFromString(o,"text/html").querySelector('form[action*="/cart/add"]'),c=document.createElement("div");c.appendChild(i),document.body.prepend(c),"function"==typeof handleFloBuyNowBtn&&handleFloBuyNowBtn()}},1941:function(t,e,n){n.d(e,{A:function(){return m}});var o=n(7483),r=n(9950);function i(t){if(!t)return{};var e={};return Array.from(t.attributes).forEach(t=>{var n;e[t.name]=(n=t.value,isNaN(+n)?n:+n)}),e}function a(...t){try{var e;const n=document.getElementById("whatmorePreviewMode");if(!n)return null;const o=null===t||void 0===t?void 0:t[0];if(!o)return!0;let r={};return r=o.includes("function")?{}:i(n),null!==(e=r)&&void 0!==e&&e[o]?r[o]:null}catch(n){return null}}var c=function({disablePreview:t=!1}={}){var e,n,o=t?window.innerHeight:null!==(e=a("height-wh"))&&void 0!==e?e:window.innerHeight,i=t?window.innerWidth:null!==(n=a("width-wh"))&&void 0!==n?n:window.innerWidth,[c,u]=[o,i];const[l,s]=(0,r.useState)([c>u?"portrait":"landscape",c,u]);return(0,r.useLayoutEffect)(()=>{function e(){var e,n,o=t?window.innerHeight:null!==(e=a("height-wh"))&&void 0!==e?e:window.innerHeight,r=t?window.innerWidth:null!==(n=a("width-wh"))&&void 0!==n?n:window.innerWidth,[i,c]=[o,r];s(i>c?["portrait",i,c]:["landscape",i,c])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}},[]),l},u=(n(1348),n(6824));const l=(0,o.Xd)("whatmoreShopId"),s=(0,o.Xd)("whatmoreLoggingActive");function d(t){if("51273072796"==l)return[document.documentElement.clientHeight,document.documentElement.clientWidth];let e=null;if(t){const n=document.getElementById(t);n&&(e=n.closest(".whatmore-base"))}e||(e=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="carousel"])'),e||(e=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="collection"])')));let n=e;for(;n&&n!==document;)if(n=n.parentElement,n&&!n.classList.contains("whatmore-base")){s&&console.log("currentElement : ",n);break}let o=window.innerWidth;if(n){const t=n.getBoundingClientRect().width;if(s&&console.log("parentWidth : ",t),t>0){s&&console.log("good case");const e=window.getComputedStyle(n);o=t-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}n&&0==t&&(n.style.setProperty("width","100%","important"),s&&console.log("Set currElement width to 100% !important"))}return s&&console.log("final width : ",o),[window.innerHeight,o]}var p=function(){const{whatmoreRootId:t}=(0,r.useContext)(u.BR)||{};var[e,n]=d(t);const[o,i]=(0,r.useState)([e>n?"portrait":"landscape",e,n]);return(0,r.useLayoutEffect)(()=>{function e(){var[e,n]=d(t);i(e>n?["portrait",e,n]:["landscape",e,n])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}},[]),o};var m=function(t){var e;const n=(0,o.Xd)("isWhatmorePreviewMode"),r=p(),i=c({disablePreview:null!==(e=null===t||void 0===t?void 0:t.disablePreview)&&void 0!==e&&e});return(0,o.Xd)("whatmoreLoggingActive")&&console.log("mode : ",r),n?i:r}},2039:function(t,e,n){n.d(e,{I:function(){return r},i:function(){return o}});const o=function(t){return"video"===t.event_type},r=function(t){return"image"===t.event_type}},2979:function(t,e,n){n.d(e,{S:function(){return u}});var o=n(6649),r=n(6824),i=n(9950),a=n(7145),c=n(4414);const u=function(t){var e;const[n,u,l]=(0,o.A)({triggerOnce:!1,threshold:null!==(e=t.threshold)&&void 0!==e?e:1}),{whatmoreWidgetSourceDetails:s}=(0,i.useContext)(r.BR);return(0,i.useEffect)(()=>{var e,n,o,r;u&&null!==(e=t.triggerFlag)&&void 0!==e&&e&&(0,a.B)({userInteractionType:t.userInteractionType,userInteractionMetadata:null!==(n=t.userInteractionMetadata)&&void 0!==n?n:{},widgetSourceDetails:s,event:t.event,productList:null!==(o=t.productList)&&void 0!==o?o:[],ctaList:null!==(r=t.ctaList)&&void 0!==r?r:[]})},[u]),(0,c.jsx)("div",{style:{height:"100%"},ref:n,children:t.children})}},3262:function(t,e,n){n.d(e,{initiateCartSliderEvent:function(){return i}});var o=n(7483),r=n(1745);const i=async function(t,e,n,i,a="",c="",u="",l="",s="",d="",p=null){(0,o.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("72603631788"===t||"5220302897"===t){const S=new FormData;S.append("id",a),S.append("quantity","1"),p&&S.append("properties[Size]",p);try{const x=await fetch("/cart/add.js",{method:"POST",body:S}),T=await x.json();T.id?setTimeout(()=>{(0,r.CP)(a),window.location.href="/cart"},500):console.error("Afrozeh ATC failed:",T)}catch(b){console.error("Afrozeh ATC error:",b)}return void setTimeout(e,n)}if("60595503283"===t){async function E(t,e=1){try{const n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t,quantity:e})});n.ok?setTimeout(()=>{(0,r.CP)(t),window.location.href="/cart"},500):console.error("Failed to add item to cart:",n.status)}catch(b){console.error("Error adding to cart:",b)}}return E(a,1),void setTimeout(e,n)}if("60183445561"===t){async function I(t,e=1,n="/cart"){const o=new URLSearchParams;o.append("id",t),o.append("quantity",e.toString()),o.append("return_to",n);const i=await fetch("https://tapee.in/cart/add",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:o.toString(),credentials:"include"}),a=await i.text();return i.ok&&setTimeout(()=>{(0,r.CP)(t),window.location.href="https://tapee.in/cart"},500),a}return I(a).catch(t=>{console.error("Error:",t)}),void setTimeout(e,n)}if("22907887"===t){async function j(t,e=1){const n=new FormData;n.append("id",t),n.append("quantity",e.toString());const o=document.querySelector("cart-notification, cart-drawer");if(o){const t=o.getSectionsToRender();n.append("sections",t.map(t=>t.id).join(","))}n.append("sections_url",window.location.pathname);const r=await fetch("/cart/add.js",{method:"POST",body:n});if(!r.ok){const t=await r.text();throw new Error(`Failed to add to cart: ${t}`)}const i=await r.json();return o&&o.renderContents&&o.renderContents(i),document.body.classList.remove("overflow-hidden"),document.querySelectorAll(".atc-container.active, .atc-variant-container.active, .pdp-atc-container.active").forEach(t=>t.classList.remove("active")),window.dispatchEvent(new CustomEvent("cart:added",{detail:{variantId:t,quantity:e,data:i}})),i}return j(a).then(t=>{setTimeout(()=>{g(a)},500)}).catch(t=>{console.error("Error:",t)}),void setTimeout(e,n)}if("28575536"===t||"64287408360"===t||"8473575520"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.handleFloCartBtn&&window.handleFloCartBtn(),setTimeout(()=>{g(a)},500)}).catch(t=>console.error("[Whatmore] Ripped Up Nutrition ATC error:",t)),void setTimeout(e,n);if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{g(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,n);if("22907887"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{setTimeout(()=>{g(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("56444977250"===t){const P=document.querySelector('button[data-pf-type="ProductATC2"]');return P?(c&&P.setAttribute("data-product-id",c),P.click(),setTimeout(()=>{(0,r.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,n=e.quantity,o=e.properties;(0,r.CP)(t,n,o,u,l,s,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===d||void 0===d||null===(m=d.split("?"))||void 0===m?void 0:m[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&c&&e.setAttribute("data-product-id",c)}),void setTimeout(e,n));var m}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{g(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{g(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("70840582336"===t){const C=a,A=1,k=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(k){let O=k.querySelector('input[name="id"]');O||(O=document.createElement("input"),O.type="hidden",O.name="id",k.appendChild(O)),O.disabled=!1,O.value=C;const L=k.querySelector('input[name="quantity"]');L&&(L.value=A);const D=k.querySelector('button[data-add-to-cart], button[type="submit"]');return D?(D.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),D.click(),D.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{g(C)},500),void setTimeout(e,n)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:C,quantity:A}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{g(C)},500),setTimeout(e,n)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,n)})}if("64683278550"===t){try{const N=document.querySelector('form[action="/cart/add"]');if(!N)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,n);const W=N.querySelector('input[name="id"]');if(!W)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,n);W.value=a;const z=N.querySelector('button[type="submit"]');if(!z)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,n);z.click(),setTimeout(()=>{g(a)},500),setTimeout(e,n)}catch(y){console.error("[ATC 64683278550] error:",y),setTimeout(e,n)}return}if("45050691744"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{jQuery.ajax({type:"GET",url:"/",dataType:"html",success:function(t){jQuery(".drawer__inner.cart-drawer-content").html(jQuery(t).find(".drawer__inner.cart-drawer-content").html()),jQuery(".custom_doscunt_bar").html(jQuery(t).find(".custom_doscunt_bar").html()),jQuery(".some_js_items").html(jQuery(t).find(".some_js_items").html()),jQuery(".header-cart-icon__count").html(jQuery(t).find(".header-cart-icon__count").html());try{jQuery("#FreeShippingText").slick({dots:!0,autoplay:!0,autoplaySpeed:2500,arrows:!0})}catch(e){}jQuery("div#HeaderCartIcon button").trigger("click"),setTimeout(()=>{g(a)},500)}})}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},f=(e,n,o)=>{const r=e.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",n),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",o);let e=r.querySelector('input[name="id"]');if(e)e.setAttribute("value",n),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",n)}}const i=r.querySelector('input[name="product-id"]');i&&i.setAttribute("value",o);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(r),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,n)=>{var o;const r=null!==(o=t.matches)&&void 0!==o&&o.call(t,"form")?t:t.querySelector("form");if(!r)return;let i=r.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",r.prepend(i)),i.value=String(e),i.removeAttribute("disabled");const a=r.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const c=r.querySelector('input[name="product-id"]');c&&(c.value=String(n))})(a,n,o),a}},_=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},g=t=>{(0,r.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),o=n.key,i=n.quantity,a=n.properties;(0,r.CP)(o,i,a,u,l,s,!0,!0,!0)})},v=h(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const V=f(v,a,c);_(V),setTimeout(()=>{g(a)},500),V.remove()}else{var w;fetch(null===d||void 0===d||null===(w=d.split("?"))||void 0===w?void 0:w[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=h(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=f(n,a,c);_(t),setTimeout(()=>{g(a)},500),t.remove()}})}setTimeout(e,n)}},3305:function(t,e,n){var o=n(9950);function r(){return[window.innerHeight,window.innerWidth]}e.A=function(){var[t,e]=r();const[n,i]=(0,o.useState)([t>e?"portrait":"landscape",t,e]);return(0,o.useLayoutEffect)(()=>{function t(){var[t,e]=r();i(t>e?["portrait",t,e]:["landscape",t,e])}return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),screen.orientation&&screen.orientation.addEventListener("change",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),screen.orientation&&screen.orientation.removeEventListener("change",t)}},[]),n}},3330:function(t,e,n){n.d(e,{initializeGA:function(){return h},n:function(){return _},sendVideoViewEventToGA:function(){return f}});var o,r=n(2595),i=n(7732),a=n(1348),c=n(7483),u=n(6157);const l="Whatmore Video Shopping",s=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,d={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},p={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},m={homepage:"Home Page",product_page:"Product Page"};async function h(t){if((0,a.M$H)(t)&&null!==(0,a.xIo)(t)&&(i.Ay.initialize((0,a.xIo)(t)),s&&console.debug("Whatmore: initialized GA4")),(0,a.B6P)(t)&&null!==(0,a.jWS)(t)){const e=(0,a.Gc6)(t);r.Ay.initialize((0,a.jWS)(t),{useExistingGa:e}),s&&console.debug("Whatmore: initialized GA3")}}async function f(t,e,n){(0,a.B6P)(t)&&null!==(0,a.jWS)(t)&&(r.Ay.event({category:l,action:d.video_view,label:m[e]+":"+p[n]}),s&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(t)&&null!==(0,a.xIo)(t)&&(i.Ay.event({category:l,action:d.video_view+":"+m[e]+":"+p[n],value:1,nonInteraction:!1}),s&&console.debug("Whatmore: pushed view event to GA4"))}async function _(t){const e=(0,c.Xd)("whatmoreShopId");if(["56352899156"].includes(e)&&"object"==typeof window.dataLayer){var n,o,r,i;const e=(l=t.selection_type)==u.O.EVENT_VIEW?"whatmore_video_click_event":l==u.O.PRODUCT_TILE_ATC_CLICKED||l==u.O.SHOPNOW_ATC_CLICKED?"whatmore_video_atc_event":l==u.O.PRODUCT_TILE_SHOPNOW_CLICKED?"whatmore_product_tile_click_event":l==u.O.VIDEO_LIKED?"whatmore_video_like_event":l==u.O.VIDEO_SHARE_CTA_CLICKED?"whatmore_video_share_event":l==u.O.VIDEO_PLAYBACK?"whatmore_video_watch_event":void 0;if(!e)return;const c={event:"video_interaction",page_type:null!==(a=t.page_type,n=a.startsWith("index")?"home":a.startsWith("product")?"product_page":a.startsWith("collection")||a.startsWith("page")?"collection_page":void 0)&&void 0!==n?n:"NA",selection_type:e,video_name:null!==(o=t.video_name)&&void 0!==o?o:"NA",video_percentage:null!==(r=t.video_percentage)&&void 0!==r?r:"NA",product_name:null!==(i=t.product_name)&&void 0!==i?i:"NA"};window.dataLayer.push(c),s&&console.debug("Whatmore: pushed event to dataLayer",c)}var a,l}},3788:function(t,e,n){n.d(e,{s:function(){return c}});var o=n(1348),r=n(7483);const i={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},a={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},c=function(t){const e=(0,r.Xd)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,o.CfJ)(e))return t;if("AZURECDN"==(0,o.CfJ)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(i))if(t.includes(e))return t.replace(e,i[e]);return t}}if("BUNNYCDN"==(0,o.CfJ)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(a))if(t.includes(e))return t.replace(e,a[e]);return t}}return t}},3887:function(t,e,n){var o=n(4958),r=n(8781),i=n(4414);e.A=function(t){var e,n;const a=null!==(e=t.height)&&void 0!==e?e:"100%",c=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,i.jsxs)("div",{style:{width:c,height:a,overflow:"hidden",minHeight:a,minWidth:c},children:[(0,i.jsx)(r.A,{height:a,width:c}),(0,i.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,i.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,i.jsx)(o.A,{})})})]})}},4033:function(t,e,n){n.d(e,{n:function(){return o}});const o=()=>{if("undefined"!==typeof window){const t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")&&navigator.vendor.includes("Apple")}return!1}},4365:function(){},4459:function(t,e,n){n.d(e,{E2:function(){return r},YU:function(){return o}});const o=function(t,e){return t+e.toString(16)+e.toString(16)},r=function(t){return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16)]},i=(t,e,n,o)=>{let r,a,c,u,l,s,d,p=Math.round,m="string"==typeof n;return"number"!=typeof t||t<-1||t>1||"string"!=typeof e||"r"!=e[0]&&"#"!=e[0]||n&&!m?null:(d=e.length>9,d=m?n.length>9||"c"==n&&!d:d,l=i.pSBCr(e),u=t<0,s=n&&"c"!=n?i.pSBCr(n):u?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},u=1-(t=u?-1*t:t),l&&s?(o?(r=p(u*l.r+t*s.r),a=p(u*l.g+t*s.g),c=p(u*l.b+t*s.b)):(r=p((u*l.r**2+t*s.r**2)**.5),a=p((u*l.g**2+t*s.g**2)**.5),c=p((u*l.b**2+t*s.b**2)**.5)),m=l.a,s=s.a,l=m>=0||s>=0,m=l?m<0?s:s<0?m:m*u+s*t:0,d?"rgb"+(l?"a(":"(")+r+","+a+","+c+(l?","+p(1e3*m)/1e3:"")+")":"#"+(4294967296+16777216*r+65536*a+256*c+(l?p(255*m):0)).toString(16).slice(1,l?void 0:-2)):null)};i.pSBCr=t=>{const e=parseInt;let n=t.length,o={};if(n>9){const[r,i,a,c]=t=t.split(",");if(n=t.length,n<3||n>4)return null;o.r=e("a"==r[3]?r.slice(5):r.slice(4)),o.g=e(i),o.b=e(a),o.a=c?parseFloat(c):-1}else{if(8==n||6==n||n<4)return null;n<6&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(n>4?t[4]+t[4]:"")),t=e(t.slice(1),16),9==n||5==n?(o.r=t>>24&255,o.g=t>>16&255,o.b=t>>8&255,o.a=Math.round((255&t)/.255)/1e3):(o.r=t>>16,o.g=t>>8&255,o.b=255&t,o.a=-1)}return o},e.Ay=i},4533:function(t,e,n){n.d(e,{CK:function(){return E},Ch:function(){return T},Fu:function(){return x},Hm:function(){return I},NF:function(){return P},d3:function(){return $},wm:function(){return y},zv:function(){return S}});var o=n(2089),r=n(7483),i=n(4820);const a="_whatmore_user_id",c="_whatmore_session_id",u="_whatmore_viewed_products",l="_whatmore_add_to_cart_products",s="_whatmore_session_time",d="_whatmore_store_id",p="_whatmore_qview_index",m="_whatmore_brand_questions",h="_whatmore_seen_questions",f="w_user_type",_=(0,r.Xd)("whatmoreShopId"),g=18e5,v=2592e5,w=6e5,b="_whatmore_bulk_events";function y(){localStorage.getItem(d)!=_&&localStorage.setItem(d,_),null==localStorage.getItem(a)&&function(){new Date;const t=(0,o.Ak)();localStorage.setItem(a,t)}();const t=new Date,e=localStorage.getItem(s);return null==e?localStorage.setItem(f,"newuser"):null!==e&&t.getTime()>e&&localStorage.setItem(f,"olduser"),localStorage.getItem(a)}function S(){const t=new Date,e=JSON.parse(localStorage.getItem(b))||[],n=localStorage.getItem(s);return(null==localStorage.getItem(c)||null==n||t.getTime()>n)&&(localStorage.removeItem(c),localStorage.removeItem(s),function(){const t=(0,o.Ak)(),e=(new Date).getTime()+g;localStorage.setItem(c,t),localStorage.setItem(s,e)}(),e&&e.length>0&&((0,i.u)(e),localStorage.removeItem(b))),localStorage.getItem(c)}function x(t,e,n,o,r){const i=(new Date).getTime(),a={event_id:t.event_id,product_id:e.client_product_id,product_title:e.title,price:e.price,timestamp:i,widget_info:n,location:o,user_type:r?"olduser":"newuser",variants:[]};if(null===localStorage.getItem(l))localStorage.setItem(l,JSON.stringify([a]));else{let t=JSON.parse(localStorage.getItem(l)).filter(t=>t.timestamp+v>i);localStorage.setItem(l,JSON.stringify([...t,a]))}}function T(t,e,n,o,r,i="default",a){const c=[],l=(new Date).getTime();if(e.map(e=>{const u={event_id:t,product_id:e.client_product_id,product_title:e.title,price:e.price,timestamp:l,variants:[],page:n,widget_type:o,widget_info:r,location:i,user_type:a?"olduser":"newuser"};c.push(u)}),null===localStorage.getItem(u))console.debug("viewed Products",JSON.stringify(c)),localStorage.setItem(u,JSON.stringify(c));else{let e=JSON.parse(localStorage.getItem(u)),n=!1;e.map(e=>{let o=Object.assign({},e);return e.event_id===t&&(e.timestamp=l,n=!0),o}),n?localStorage.setItem(u,JSON.stringify(e)):localStorage.setItem(u,JSON.stringify([...e,...c]))}}function E(){const t=(new Date).getTime();let e=JSON.parse(localStorage.getItem(u));if(!e)return[];let n=e.filter(e=>e.timestamp+v>t);return localStorage.setItem(u,JSON.stringify(n)),n}function I(){if(null!=localStorage.getItem(p)){const t=parseInt(localStorage.getItem(p))+1;localStorage.setItem(p,t)}}function j(){const t=localStorage.getItem(h);return new Set(t?JSON.parse(t):[])}function P(t){const e=j();e.add(t),localStorage.setItem(h,JSON.stringify([...e]))}function $(t){const e=(new Date).getTime(),n=JSON.parse(localStorage.getItem(m));if(!n||(null===n||void 0===n?void 0:n.timestamp)+w<e){const n=null===t||void 0===t?void 0:t.filter(t=>!0===(null===t||void 0===t?void 0:t.is_active)),o=j(),r={questionList:n.filter(t=>!o.has(t.id)),timestamp:e};localStorage.setItem(m,JSON.stringify(r)),localStorage.setItem(p,"0")}}},4820:function(t,e,n){n.d(e,{u:function(){return i}});var o=n(964),r=n(6641);const i=function(t){let e={};const n=t.length<10;e.metric_event_list=t,(async()=>{!function(t,e){const n="ingesting analytis-event";(0,r.gv)(n);const i=t;fetch(o.qW+"/event_metrics/bulk",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i),keepalive:e}).then(t=>t.json()).then(t=>{}).catch(t=>{console.error("error "+n,t)})}(e,n)})()}},4833:function(t,e,n){n.d(e,{Gy:function(){return u},Ig:function(){return m},JA:function(){return g},Jh:function(){return _},Mm:function(){return c},S0:function(){return p},Wd:function(){return s},Yt:function(){return h},gf:function(){return l},io:function(){return d},l2:function(){return f},t6:function(){return v}});const o={ta:"template-a",ta1:"template-a-1",tb:"template-b",tc:"template-c",td:"template-d",te:"template-e",tf:"template-f",tg:"template-g",th:"template-h",ti:"template-i","template-j":"tj",ts:"template-stories",tba:"template-banner-a",tem:"template-embed",tsa:"template-stories-a",tsb:"template-stories-b",tfa:"template-feed-a",tca:"template-collections-a",tcb:"template-collections-b",tcc:"template-collections-c",tcd:"template-collections-d",tce:"template-collections-e",tcs:"template-collections-stories",tcf:"template-collections-f",tcg:"template-collections-g",tch:"template-collections-h","template-collections-j":"tcj"},r={"template-a":"ta","template-a-1":"ta1","template-c":"tc","template-d":"td","template-e":"te","template-b":"tb","template-f":"tf","template-g":"tg","template-h":"th","template-i":"ti","template-j":"tj","template-stories":"ts","template-banner-a":"tba","template-embed":"tem","template-stories-a":"tsa","template-stories-b":"tsb","template-feed-a":"tfa","template-collections-a":"tca","template-collections-b":"tcb","template-collections-c":"tcc","template-collections-d":"tcd","template-collections-e":"tce","template-collections-stories":"tcs","template-collections-f":"tcf","template-collections-g":"tcg","template-collections-h":"tch","template-collections-j":"tcj"},i={"template-embed":"0","template-stories-a":"1","template-stories-b":"2","template-a":"3","template-a-1":"4","template-c":"5","template-d":"6","template-e":"7","template-b":"8","template-f":"9","template-stories":"10","template-feed-a":"11","template-collections-a":"12","template-collections-b":"13","template-collections-c":"14","template-collections-d":"15","template-collections-e":"16","template-collections-stories":"17","template-collections-f":"18","template-banner-a":"19","template-g":"20","template-h":"21","template-collections-g":"22","template-collections-h":"23","template-i":"24","template-collections-i":"25","template-j":"26","template-collections-j":"27"},a={index:"h",collection:"c",product:"p",page:"l"},c=function(t){return o[t]},u=function(t){return r[t]},l=function(t){return i[t]},s=function(t){var e;const n=null===(e=t.split("."))||void 0===e?void 0:e[0];return a[n]},d=function(t){return"template-embed"===t},p=function(t){return"non-existent-template"===t||!t},m=function(t){return"invalid-template"===t||!t},h=function(t){return"template-stories-a"===t||"template-stories-b"===t},f=function(t){return"template-banner-a"===t},_="banner",g="spotlight",v=function(t){return"index"===t?"homepage":"collection"===t?"collection":"product"===t||"embed"===t?"product":"homepage"}},4925:function(t,e,n){n.d(e,{h:function(){return c}});var o=n(9950),r=n(4414);const i=(0,o.lazy)(()=>(console.log(`[${(new Date).toLocaleTimeString()}] \ud83c\udfac EventClickComponent chunk loading...`),Promise.all([n.e(598),n.e(865),n.e(411),n.e(260)]).then(n.bind(n,3797))));let a=null;function c(){return a?console.log(`[${(new Date).toLocaleTimeString()}] \u26a1 EventClickComponent already preloaded/preloading`):(console.log(`[${(new Date).toLocaleTimeString()}] \ud83d\udd04 Preloading EventClickComponent on hover...`),a=Promise.all([n.e(598),n.e(865),n.e(411),n.e(260)]).then(n.bind(n,3797)).then(t=>(console.log(`[${(new Date).toLocaleTimeString()}] \u2705 EventClickComponent preload complete`,t),t)).catch(t=>{throw console.error(`[${(new Date).toLocaleTimeString()}] \u274c EventClickComponent preload failed:`,t),t})),a}e.A=function(t){return(0,r.jsx)(i,{...t})}},4958:function(t,e,n){var o=n(9950),r=(n(5410),n(7483)),i=n(4459),a=n(4414);e.A=function(t){return(0,o.useEffect)(()=>{const t=(0,i.E2)((0,r.Xd)("whatmoreSecondaryColor"));!function(t,e,n,o){const r=`rgba(${t},${e},${n},${o})`,i=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${r}, 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.5), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.7), 1.8em -1.8em 0 0em ${r}, 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.5), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.7), 2.5em 0em 0 0em ${r}, 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.5), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.7), 1.75em 1.75em 0 0em ${r}, 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.5), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.7), 0em 2.5em 0 0em ${r}, -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.5), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.7), -1.8em 1.8em 0 0em ${r}, -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.5), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.7), -2.6em 0em 0 0em ${r}, -1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${t}, ${e}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${t}, ${e}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${t}, ${e}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${t}, ${e}, ${n}, 0.5), -2.6em 0em 0 0em rgba(${t}, ${e}, ${n}, 0.7), -1.8em -1.8em 0 0em ${r};\n }\n }\n `,a=document.createElement("style");a.type="text/css",a.innerHTML=i,document.head.appendChild(a)}(t[0],t[1],t[2],.2)},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"whatmore-loading-indicator"})})}},5100:function(t,e,n){var o=n(9950),r=n(1941),i=n(7483),a=n(4414);const c=o.memo(()=>{if(!(0,i.Xd)("isLandingSharedLink"))return(0,a.jsx)(a.Fragment,{});const[t]=(0,r.A)();return(0,a.jsxs)("div",{className:`shimmer-container ${t}`,children:["portrait"===t?(0,a.jsx)("div",{className:"shimmer-item portrait-full",children:(0,a.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map((t,e)=>(0,a.jsx)("div",{className:"shimmer-item landscape-item "+(1===e?"center-item":""),children:(0,a.jsx)("div",{className:"shimmer-effect"})},e)),(0,a.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})});e.A=c},5410:function(){},6157:function(t,e,n){n.d(e,{O:function(){return o},l:function(){return r}});const o=Object.freeze({EVENT_VIEW:"event-view",PRODUCT_CTA_VIEW:"product-cta-view",SHOPNOW_ATC_CLICKED:"shop-now-atc-clicked",SHOPNOW_BUYNOW_CLICKED:"shop-now-buy-now-clicked",PRODUCT_TILE_ATC_CLICKED:"product-tile-atc-clicked",PRODUCT_TILE_SHOPNOW_CLICKED:"product-tile-shopnow-clicked",VIDEO_LIKED:"video-liked",VIDEO_UNLIKED:"video-unliked",VIDEO_SHARE_CTA_CLICKED:"video-share-cta-clicked",VIDEO_MUTED:"video-muted",HOMEPAGE_CAROUSEL_SWIPED:"homepage-carousel-swiped",HOMEPAGE_VISITED:"homepage-visited",COLLECTION_PAGE_VISITED:"collection-page-visited",PDP_VISITED:"product-page-visited",HOMEPAGE_CAROUSEL_WIDGET_VIEW:"homepage-carousel-widget-view",BANNER_WIDGET_VIEW:"banner-widget-view",STORIES_WIDGET_VIEW:"stories-widget-view",COLLECTION_WIDGET_VIEW:"collection-widget-view",SPOTLIGHT_WIDGET_VIEW:"spotlight-widget-view",PDP_POPUP_WIDGET_VIEW:"pdp-popup-widget-view",PDP_POPUP_CLOSED:"pdp-popup-closed",VIDEO_PLAYBACK:"video-watched",SHOPNOW_CLICKED:"shopnow-clicked",WHATSAPP_ICON_CLICKED:"whatsapp-icon-clicked",BANNER_WIDGET_CLICKED:"banner-widget-clicked",QUESTION_VIEWED:"question-viewed",QUESTION_ANSWERED:"question-answered",QUESTION_CLOSED:"question-closed",PRODUCT_TILE_ALL_ATC_CLICKED:"product-tile-all-atc"}),r=function(t,e){return{name:t,metadata:e}}},6493:function(t,e,n){n.d(e,{Cr:function(){return c},cb:function(){return a},lP:function(){return i},yD:function(){return u}});var o=n(1348);const r=(0,n(7483).Xd)("whatmoreShopId"),i=function(t){var e,n;return"event_media_urls"in t?"image"===t.event_type?t.event_media_urls.primary.portrait.content_image_original:"secondary"in t.event_media_urls&&t.event_media_urls.secondary.portrait.content_video_1080p?t.event_media_urls.secondary.portrait.content_video_1080p:null!==(e=t.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==e?e:null===(n=t.event_media_urls.primary.landscape)||void 0===n?void 0:n.content_video_1080p:function(t){return null!=t.event_m3u8_url&&""!==t.event_m3u8_url?t.event_m3u8_url:t.event_hls_url}(t)},a=function(t){var e;return"event_media_urls"in t?"image"===t.event_type?t.event_media_urls.primary.landscape.content_image_original:"secondary"in t.event_media_urls&&t.event_media_urls.secondary.landscape.content_video_1080p?t.event_media_urls.secondary.landscape.content_video_1080p:null!==(e=t.event_media_urls.primary.landscape.content_video_1080p)&&void 0!==e?e:t.event_media_urls.primary.portrait.content_video_1080p:t.event_hls_url},c=function(t){if(t.startsWith("https://cdn.shopify.com")&&t.includes("whatmore_")){const e=(0,o.ath)(r);if(!e)return t;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${e}/${t.split("whatmore_")[1].split("?")[0]}`}return t},u=function(t){if(t.startsWith("https://cdn.shopify.com")&&t.includes("whatmore_")){const e=(0,o.ath)(r);if(!e)return t;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${e}/${t.split("whatmore_")[1].split("?")[0]}`}return t}},6613:function(t,e,n){n.d(e,{At:function(){return o},MN:function(){return r}});const o=()=>"undefined"!==typeof navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream),r=()=>o()||"undefined"!==typeof navigator&&/Macintosh/.test(navigator.userAgent)},6641:function(t,e,n){n.d(e,{Fk:function(){return l},gv:function(){return u},xv:function(){return c}});var o=n(7483);const r="Whatmore : ",i=(0,o.Xd)("whatmoreShopId");function a(t){console.debug(r+t)}function c(t,e="200"){var n;null!==(n="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==n&&n&&(a("total events received : "+(t&&t.length)),a("events data : "+JSON.stringify(t)))}function u(t){var e;null!==(e="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==e&&e&&a(t)}const l=t=>{"STR60LW4WMA"!=i&&"77604192550"!=i&&"80856187185"!=i&&"86486974743"!=i&&console.log(`%c ${t}`,"background: #D53F8C; color: white; font-size: 19px; padding: 5px; font-weight: semibold;","\n\nFind us here -> https://www.whatmore.ai/shoppable-videos/")}},6649:function(t,e,n){var o=n(9950);e.A=({triggerOnce:t=!1,root:e=null,rootMargin:n="0px",threshold:r=0}={})=>{const[i,a]=(0,o.useState)(!1),[c,u]=(0,o.useState)(null),l=(0,o.useRef)(null);return(0,o.useEffect)(()=>{const o=new IntersectionObserver((e,n)=>{e.forEach(e=>{u(e),e.isIntersecting?(a(!0),t&&n.disconnect()):t||a(!1)})},{root:e,rootMargin:n,threshold:r});return l.current&&o.observe(l.current),()=>{o.disconnect()}},[t,e,n,r]),[l,i,c]}},6824:function(t,e,n){n.d(e,{BR:function(){return Q},initializeReactApp:function(){return U}});var o=n(9950),r=n(1352),i=n(7483),a=n(1348),c=n(7740),u=n(4833),l=n(1745);const s=function(t){new PerformanceObserver(e=>{for(const n of e.getEntries()){[`${window.location.origin}/cart/add.js`,`${window.location.origin}/cart/add`].includes(n.name)&&(console.debug("Whatmore :: Fetch request detected to",n.name),(0,a.dnh)(whatmoreShopId)&&setTimeout(()=>{(0,l.sw)(t)},1e3))}}).observe({entryTypes:["resource"]})};var d=n(4414);const p=o.lazy(()=>Promise.all([n.e(598),n.e(411),n.e(760)]).then(n.bind(n,4380)));var m=()=>(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(p,{})});class h extends o.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,e){console.error("[Chunk Loading Error]",t,e);const{whatmoreRootId:n}=this.props,o=document.querySelector(`.whatmore-shimmer-container[data-widget-id="${n}"]`);o&&(o.remove(),console.log(`[Chunk Error] Removed shimmer for widget ${n}`));const r=document.querySelector(`.whatmore-render-root[data-widget-id="${n}"]`);if(r){r.style.opacity="0",r.removeAttribute("data-shimmer-active");const t=r.closest(".whatmore-base");t&&(t.style.minHeight="0px",console.log(`[Chunk Error] Reset minHeight to 0px for widget ${n}`))}}render(){return this.state.hasError?null:this.props.children}}var f=h,_=n(964),g=n(140),v=n(4533),w=n(7802),b=n(851),y=n(1085),S=n(6613),x=n(3330),T=(n(3262),n(572)),E=n(8603),I=n(2039),j=n(1351),P=n(6157),$=n(2979),C=n(6641),A=n(8945),k=n(9821),O=n(69),L=n(1019),D=n(4925),N=n(5100),W=n(3305);const z=(0,E.A)({key:"whatmore-css-ppv"});function V(t){return t.split(/[?#]/)[0]}var R=function(t){var e,n;const[r,c]=(0,o.useState)(),[l,s]=(0,o.useState)(),[p]=(0,i.QN)("isInDesignMode"),[m]=(0,i.QN)("isDemoBrand"),[h]=(0,i.QN)("whatmoreEmbedAppUseVariant"),[f,E]=(0,o.useState)(-2),[R]=(0,W.A)(),[M]=(0,i.QN)("whatmoreVariantId"),[F]=(0,i.QN)("whatmoreShopId");var[q]=(0,i.QN)("whatmoreProductId");const H=(0,i.Xd)("isLandingSharedLink"),J=(0,i.Xd)("whatmoreShareTemplateId"),B=(0,i.Xd)("whatmoreShareEventId"),G=H&&"template-embed"===(0,u.Mm)(J),[U,X]=(0,o.useState)(G);q=(0,a.BcY)(F)?function(t){if("STRR72TX6AT"==t){var e;const t=null===(e=window.location.pathname)||void 0===e?void 0:e.split("/");return t[t.length-1]}return"STR6HARJ3QY"==t||"STRI4V3OYCH"==t||"STRGZ9TGDEQ"==t||"STRJ2T2QPKI"==t?V(window.location.href).split("/").pop():V(window.location.href)}(F):q;const[K,Y]=(0,o.useState)(()=>"true"===h?M:q),[Z,tt]=(0,o.useState)(!1);var et=((0,a.jpW)(F)?_.$$:_.MT)+"/v2/brand/"+F+"/product-events";const{whatmoreWidgetSourceDetails:nt}=(0,o.useContext)(Q);(0,o.useEffect)(()=>{(0,x.initializeGA)(F),(0,C.Fk)("Video shopping powered by Whatmore!"),(0,v.wm)()},[]),(0,o.useEffect)(()=>{null==r||0==r.length||l||!(0,S.MN)()||(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,k._)()?(0,y.Pc)(y.F5):(0,O.bi)())},[r]),(0,o.useEffect)(()=>{if(E(-1),(0,a.WH1)(F)){const t=(0,L.B)(F),e=(0,a.buK)(F);fetch(`${t}?client_product_id=${K}&limit=10&recommended=${!e}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then(t=>t.json()).then(t=>{const n=null===t||void 0===t?void 0:t.events;if((null===n||void 0===n?void 0:n.length)>0){var o;const r=e?null===t||void 0===t?void 0:t.all_events:null===t||void 0===t||null===(o=t.related_events)||void 0===o?void 0:o.map(t=>({...t,isRelatedEvent:!0}));let i=[...n,...r];(0,a.xku)(F)||(i=(0,w.Zf)(i)),c(i)}else c([])}).catch(t=>s(t.message))}else fetch(et.toString()+"?client_product_id="+K.toString()+"&status="+"upcoming".toString()+"&event_type=video").then(t=>t.json()).then(t=>t.events).then(t=>(null!=t&&0!=t.length&&(0,a.vfi)(F)&&(0,a.YOR)(t),(0,a.xku)(F)||(t=(0,w.Zf)(t)),c(t),t)).then(t=>((0,a.Uht)(F)&&function(t,e){setTimeout(async()=>{const n=t.reduce((t,e)=>[...t,...e.products],[]).filter(t=>t.client_product_id==e)[0];if(!n||n.product_link==V(window.location.href))return;const o={product_id:n.product_id,product_link:V(window.location.href)};fetch(_.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})},500)}(t,K),t)).catch(t=>{s(t.message)})},[K]),(0,o.useEffect)(()=>{var t,e;E(-2),(r&&r.length>0||"Scale"==(0,a.yt9)(F)||"Enterprise"==(0,a.yt9)(F)||"Premium"==(0,a.yt9)(F))&&(0,j.yP)({userInteractionType:P.O.PDP_VISITED,widgetSourceDetails:nt,event:null===r||void 0===r?void 0:r[0],productList:null===r||void 0===r||null===(t=r[0])||void 0===t?void 0:t.products,ctaList:null===r||void 0===r||null===(e=r[0])||void 0===e?void 0:e.cta})},[r]),(0,o.useEffect)(()=>{const t=V(window.location.href);"8111554613"===F&&setTimeout(()=>{const t=new Event("change",{bubbles:!0}),e=document.querySelector('[name="id"]')||document.querySelector("[data-variant-picker]")||document.querySelector(".variant-selector");e&&e.dispatchEvent(t)},100);let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let n=history.replaceState;history.replaceState=function(){let t=n.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),t},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))}),window.addEventListener("locationchange",function(){if("24950997070"==F&&window.location.origin+window.location.pathname!=t&&fetch(window.location.origin+window.location.pathname+".json").then(t=>t.json()).then(t=>{var e;return Y(null===t||void 0===t||null===(e=t.product)||void 0===e?void 0:e.id)}),"true"===h){const t=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var o=e[n].split("=");if(o[0]==t)return o[1]}return!1}("variant");t&&""!==t&&Y(t)}})},[]),(0,o.useEffect)(()=>{if(null!=r&&0!==r.length&&!l&&G&&((0,A.H)("whatmore-video-player",()=>{X(!1)}),null!=B)){const t=r.find(t=>B==t.event_id);if(t)return void it(t,!0,r.indexOf(t))}},[r]);const ot=nt.landingLocationType,rt=nt.templateType,it=async(t,e=!1,n=0)=>{if((0,S.MN)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||await((0,k._)()?(0,y.bo)():(0,O.bi)())}if((0,I.i)(t)||(0,I.I)(t))return p||m||(async()=>{const e=(0,u.Wd)(ot)+(0,u.gf)(rt)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,g.lB)(t),(0,x.sendVideoViewEventToGA)(F,_.DK,_.K1),(0,v.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),(0,a.YE3)(F)&&tt(!0),void E(n)};function at(){return(0,d.jsx)(d.Fragment,{})}return null==r||0==r.length||l||(0,u.Ig)(nt.templateType)||!(0,a.fDZ)(F)?(0,d.jsx)("div",{}):(0,d.jsxs)(T.C,{value:z,children:[U&&(0,d.jsx)(N.A,{}),"no-product"===K||-1===f||0===r.length?(0,d.jsx)(at,{}):-2===f&&r.length>0?(0,d.jsx)("div",{onMouseEnter:()=>(0,D.h)(),children:(0,d.jsx)($.S,{userInteractionType:P.O.PDP_POPUP_WIDGET_VIEW,event:r[0],productList:r[0].products,cta:r[0].cta,triggerFlag:!p&&!m,children:(0,d.jsx)(b.A,{event:r[0],inVideoClick:it,closeClick:t=>{var e;t.stopPropagation(),E(-1),(0,j.kz)({userInteractionType:P.O.PDP_POPUP_CLOSED,widgetSourceDetails:nt,event:null===r||void 0===r?void 0:r[0],productList:null===r||void 0===r||null===(e=r[0])||void 0===e?void 0:e.products})}})})}):(0,d.jsx)("div",{children:(0,d.jsx)(o.Suspense,{fallback:f>=0&&"portrait"===R?(0,d.jsx)("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#000",zIndex:2147483648,pointerEvents:"none"},children:(0,d.jsx)("div",{style:{width:window.innerWidth,height:window.innerHeight,overflow:"hidden"},children:(0,d.jsx)("img",{src:(null===(e=r[f])||void 0===e?void 0:e.poster_image)||(null===(n=r[f])||void 0===n?void 0:n.thumbnail_image),alt:"",style:{width:"100%",height:"100%",objectFit:"cover",pointerEvents:"none"}})})}):null,children:(0,d.jsx)($.S,{userInteractionType:P.O.EVENT_VIEW,event:r[0],productList:r[0].products,cta:r[0].cta,triggerFlag:!p&&!m,children:(0,d.jsx)(D.A,{events:r,index:f,onBack:function(){E(Z?-1:-2),X(!1)},template:"template-product-page"})})})})]})};var M=n(3887);const F=(0,E.A)({key:"whatmore-css-wsv"});var q=function(t){const[e,n]=(0,o.useState)(),[r,c]=(0,o.useState)(),[l]=(0,i.QN)("isInDesignMode"),[s]=(0,i.QN)("isDemoBrand"),[p,m]=(0,o.useState)(-2),[h]=(0,W.A)(),[f]=(0,i.QN)("whatmoreShopId"),E=(0,i.Xd)("isLandingSharedLink"),j=(0,i.Xd)("whatmoreShareTemplateId"),A=((0,i.Xd)("whatmoreShareStoryId"),(0,i.Xd)("whatmoreShareEventId")),L=(0,i.Xd)("whatmoreLandingLocationType"),N=(0,i.Xd)("whatmoreLoggingActive"),z=(0,i.Xd)("isWhatmorePreviewMode"),{whatmoreWidgetSourceDetails:V}=(0,o.useContext)(Q);var R=(0,a.SOt)(f)?_.aD+"/get_eventset/":_.$$+"/get_eventset/",q=(0,a.SOt)(f)?_.aD+"/get_eventset_v1/":_.$$+"/get_eventset_v1/";(0,o.useEffect)(()=>{(0,v.wm)()},[]),(0,o.useEffect)(()=>{(0,x.initializeGA)(f)},[]),(0,o.useEffect)(()=>{null==e||0==e.length||r||!(0,S.MN)()||(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,k._)()?(0,y.Pc)(y.F5):(0,O.bi)())},[e]),(0,o.useEffect)(()=>{m(-1);const t=u.JA,e=(0,u.t6)(L),o="78232846646"===f.toString()?q.toString()+f.toString()+"?eventset_type="+t+"&event_type=video&source="+e+"&source_id="+f:R.toString()+f.toString()+"?eventset_type="+t+"&source="+e+"&source_id="+f;fetch(o).then(t=>t.json()).then(e=>(0,w.Po)(e,t)).then(async t=>{if(z&&(null==t||t&&0==(null===t||void 0===t?void 0:t.length))){const{pdpData:t}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();return n(t),t}let e=[...null===t||void 0===t?void 0:t.events,...null===t||void 0===t?void 0:t.all_events];return(0,a.xku)(f)||(e=(0,w.zJ)(e)),e=e.map(t=>{if(!t.poster_image&&t.event_media_urls){var e,n,o,r,i,a;const c=(null===(e=t.event_media_urls)||void 0===e||null===(n=e.primary)||void 0===n||null===(o=n.portrait)||void 0===o?void 0:o.poster_image)||(null===(r=t.event_media_urls)||void 0===r||null===(i=r.secondary)||void 0===i||null===(a=i.portrait)||void 0===a?void 0:a.poster_image)||"";return{...t,poster_image:c}}return t}),n(e),e}).catch(t=>{c(t.message)})},[]),(0,o.useEffect)(()=>{m(-2)},[e]),(0,o.useEffect)(()=>{null==e||0==e.length||r||E&&"template-embed"==(0,u.Mm)(j)&&null!=A&&e.forEach((t,e)=>{A==t.event_id&&B(t,!0,e)})},[e]);const H=V.landingLocationType,J=V.templateType,B=(t,e=!1,n=0)=>{if((0,S.MN)()&&!e){(0,i.Xd)("whatmoreVideoPlayerPoolBlessed")||((0,k._)()?(0,y.bo)():(0,O.Ij)())}if((0,I.i)(t)||(0,I.I)(t))return l||s||(async()=>{const e=(0,u.Wd)(H)+(0,u.gf)(J)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,g.lB)(t),(0,x.sendVideoViewEventToGA)(f,_.DK,_.K1),(0,v.Ch)(t.event_id,t.products,"spotlight","video_popup",e)})(),void m(n)};function G(){return(0,d.jsx)(d.Fragment,{})}return null==e||0==e.length||r?(0,d.jsx)("div",{}):(N&&(0,C.xv)(e),(0,a.ALN)(f)&&p<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,d.jsx)(d.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,d.jsx)(T.C,{value:F,children:-1===p||0===e.length?(0,d.jsx)(G,{}):-2===p&&e.length>0?(0,d.jsx)("div",{onMouseEnter:()=>(0,D.h)(),children:(0,d.jsx)($.S,{userInteractionType:P.O.SPOTLIGHT_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!l&&!s,children:(0,d.jsx)(b.A,{event:e[0],inVideoClick:B,closeClick:t=>{t.stopPropagation(),m(-1)},isSpotlight:!0})})}):(0,d.jsx)("div",{children:(0,d.jsx)(o.Suspense,{fallback:window.innerWidth<=window.innerHeight?(0,d.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ffffff",zIndex:2147483648,pointerEvents:"none"},children:(0,d.jsx)("div",{style:{width:window.innerWidth,height:window.innerHeight,overflow:"hidden"},children:(0,d.jsx)(M.A,{width:"100%",height:"100%"})})}):null,children:(0,d.jsx)($.S,{userInteractionType:P.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!l&&!s,children:(0,d.jsx)(D.A,{events:e,index:p,onBack:function(){m(-2)},template:"template-embed",eventsStories:null})})})})})))};var H,J=function(t){const[e]=(0,i.QN)("whatmoreShopId"),n=(0,i.Xd)("whatmoreLandingLocationType"),{whatmoreWidgetSourceDetails:r}=(0,o.useContext)(Q);return(0,o.useEffect)(()=>{n.startsWith("collection")&&("Scale"!=(0,a.yt9)(e)&&"Enterprise"!=(0,a.yt9)(e)&&"Premium"!=(0,a.yt9)(e)||(0,j.yP)({userInteractionType:P.O.COLLECTION_PAGE_VISITED,widgetSourceDetails:r}))},[]),(0,d.jsx)(d.Fragment,{})};const B=null!==(H="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==H&&H;var G=function(){const{whatmoreEventsBrowsingTemplate:t,whatmoreIsStoriesTemplate:e,whatmoreIsCollectionsTemplate:r,whatmoreIsBannerTemplate:p,whatmoreCollectionId:h,whatmoreRootId:_,whatmoreWidgetSourceDetails:g,whatmoreIsPreviewMode:v,whatmoreUserInfo:w}=(0,o.useContext)(Q),b=(null===g||void 0===g?void 0:g.landingLocationType)||"index",[y]=(0,i.QN)("whatmoreShopId"),[S]=(0,i.QN)("isInDesignMode"),[x]=(0,i.QN)("isDemoBrand"),[T]=(0,i.QN)("whatmoreEmbedAppUseVariant"),[E,I]=(0,i.QN)("brandCustomizationsLoaded");function j(){const t=h;return S||(0,a.hbj)(y)&&((0,a.R2w)(y)&&b.includes("index")||t&&(0,a.Idi)(y).includes(t)||(0,a.isL)(y))}if((0,o.useEffect)(()=>{if(!E)try{const t=localStorage.getItem("whatmore_brand_customizations");if(t){const{customizations:e}=JSON.parse(t);(0,a.Tzr)(e,y),I(!0),B&&console.debug("Whatmore: Customizations loaded from cache in App.js")}}catch(t){console.error("Whatmore: Error loading customizations in App.js:",t)}},[E,y,I]),(0,o.useEffect)(()=>{null==localStorage.getItem("_user_wh_lc")&&"72201044272"==y&&n.e(259).then(n.bind(n,3446)).then(({getLocationDetails:t})=>t()).then(t=>{localStorage.setItem("_user_wh_lc",JSON.stringify(t))}).catch(t=>{localStorage.setItem("_user_wh_lc",JSON.stringify({latitude:"",longitude:""})),console.error(`Whatmore: Error fetching location: ${t}`)})},[y]),(0,o.useEffect)(()=>{"template-embed"===t?(s("true"===T),sessionStorage.setItem("whatmore_atc_observed","true")):null==sessionStorage.getItem("whatmore_atc_observed")&&(s("true"===T),sessionStorage.removeItem("whatmore_atc_observed"))},[t,T]),(0,c.U)()){if((0,u.S0)(t))return(0,d.jsx)(d.Fragment,{});if("index"===b||"collection"===b||b.startsWith("collection")||b.startsWith("page")||b.startsWith("blog")||b.startsWith("article")){if(!(0,u.io)(t))return B&&console.debug(`Whatmore: Shopify, rendering index/collection page carousels: ${t}`),(0,d.jsx)(f,{whatmoreRootId:_,children:(0,d.jsx)(m,{})});if(j())return B&&console.debug(`Whatmore: Shopify, rendering index/collection page spotlight: ${t}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(q,{})});if(b.startsWith("collection")&&(0,u.io)(t))return(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(J,{})})}var P,$,C,A,k,O;return b.startsWith("product")?(0,u.io)(t)||(0,u.Ig)(t)?null!==(P=window)&&void 0!==P&&null!==($=P.Shopify)&&void 0!==$&&null!==(C=$.theme)&&void 0!==C&&C.role&&"main"===window.Shopify.theme.role||window.location.href.includes("localhost:")?(B&&console.debug(`Whatmore: Shopify, rendering PDP-page popup: ${t}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(R,{})})):(null!==(A=window)&&void 0!==A&&null!==(k=A.Shopify)&&void 0!==k&&null!==(O=k.theme)&&void 0!==O&&O.role&&"main"!==window.Shopify.theme.role||S)&&(0,a.C1J)(y)?(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(R,{})}):(B&&console.debug("Whatmore: Shopify, PDP-page popup disabled."),(0,d.jsx)(d.Fragment,{})):(B&&console.debug(`Whatmore: Shopify, rendering PDP-page carousels: ${t}`),(0,d.jsx)(f,{whatmoreRootId:_,children:(0,d.jsx)(m,{})})):((0,a.dnh)(y)&&(0,a.bQo)(y)&&"cart"===b&&(B&&console.debug("Whatmore: initiating whatmore attribution from cart page."),(0,l.sw)("true"===T)),(0,d.jsx)(d.Fragment,{}))}return"index"===b||"collection"===b||b.startsWith("page")?(0,u.io)(t)?(0,u.io)(t)&&j()?(B&&console.debug(`Whatmore: External, rendering index/collection/page spotlight: ${t}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(q,{})})):(B&&console.debug(`Whatmore: External, rendering index/collection page popup: ${t}`),(0,d.jsx)(d.Fragment,{})):(B&&console.debug(`Whatmore: External, rendering index/collection page carousels: ${t}`),(0,d.jsx)(f,{whatmoreRootId:_,children:(0,d.jsx)(m,{})})):b.startsWith("product")||"embed"===b?(0,u.Ig)(t)||(0,u.io)(t)?(0,a.fDZ)(y)?(B&&console.debug(`Whatmore: External, rendering PDP-page popup: ${t}`),(0,d.jsx)(o.Suspense,{fallback:null,children:(0,d.jsx)(R,{})})):(B&&console.debug("Whatmore: External, PDP-page popup disabled."),(0,d.jsx)(d.Fragment,{})):(B&&console.debug(`Whatmore: External, rendering PDP-page carousels: ${t}`),(0,d.jsx)(f,{whatmoreRootId:_,children:(0,d.jsx)(m,{})})):(0,d.jsx)(d.Fragment,{})};const Q=o.createContext({whatmoreEventsBrowsingTemplate:"non-existent-template",whatmoreIsStoriesTemplate:!1,whatmoreIsCollectionsTemplate:!1,whatmoreCollectionId:"",whatmoreCollectionHeading:"",whatmoreIsBannerTemplate:!1,whatmoreRootId:"whatmoreRoot-template-a",whatmoreWidgetSourceDetails:{landingLocationType:"index",templateType:"non-existent-template"},whatmoreIsPreviewMode:"invalid",whatmoreUserInfo:{userType:null}});function U(t){const{rootElement:e,templateType:n,isStoriesTemplate:o,isCollectionsTemplate:i,_isTemplateTypeBanner:a,whatmoreCollectionId:c,whatmoreCollectionHeading:u,whatmoreRootId:l,landingLocationType:s,isInPreviewMode:p,userType:m}=t;r.createRoot(e).render((0,d.jsx)(Q.Provider,{value:{whatmoreEventsBrowsingTemplate:n,whatmoreIsStoriesTemplate:o,whatmoreIsCollectionsTemplate:i,whatmoreCollectionId:c,whatmoreCollectionHeading:u,whatmoreIsBannerTemplate:a,whatmoreRootId:l,whatmoreWidgetSourceDetails:{landingLocationType:s,templateType:n},whatmoreIsPreviewMode:p,whatmoreUserInfo:{userType:m}},children:(0,d.jsx)("div",{style:{display:"block",height:"100%"},id:l,className:"whatmore-root",children:(0,d.jsx)(G,{})})}))}},7145:function(t,e,n){n.d(e,{B:function(){return s}});var o=n(6641),r=n(1348),i=n(7483),a=n(4820);var c=n(6157),u=n(2089),l=n(4533);const s=function({userInteractionType:t="",userInteractionMetadata:e={},widgetSourceDetails:n={},event:s="",productList:d=[],ctaList:p=[]}={}){var m;const h=(0,i.Xd)("isInDesignMode"),f=(0,i.Xd)("isDemoBrand"),_=(0,i.Xd)("whatmoreShopId"),g="72201044272"==_&&"event-view"==t?null!==(m=JSON.parse(localStorage.getItem("_user_wh_lc")))&&void 0!==m?m:{latitude:"",longitude:""}:{};if(e={...e,...g,user_type:null!=localStorage.getItem("w_user_type")?"olduser":"newuser"},!(0,r.rkx)(_)||f||h)return;t!=c.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW&&t!=c.O.STORIES_WIDGET_VIEW&&t!=c.O.COLLECTION_WIDGET_VIEW&&t!=c.O.PDP_POPUP_WIDGET_VIEW||null!=localStorage.getItem("wht_is_impression")||localStorage.setItem("wht_is_impression",!0);const v="_whatmore_bulk_events",w=function(){var t;return{user_id:(0,l.wm)(),session_id:(0,l.zv)(),user_group:null!==(t=localStorage.getItem("wht_user_group"))&&void 0!==t?t:"",user_agent:navigator.userAgent,store_id:(0,i.Xd)("whatmoreShopId"),hostname:window.location.hostname,page_path:window.location.pathname,event_id:(0,u.Ak)(),event_timestamp:Math.round((new Date).getTime()/1e3)}}(),b=(0,c.l)(t,e),y=function(t,e,n,o){var r;return{landing_location_type:e.landingLocationType,template_type:e.templateType,whatmore_event:{id:t.event_id,eventset_id:null!==(r=t.eventset_id)&&void 0!==r?r:null,cta_list:o.map(t=>t.cta_id),product_list:n.map(t=>t.product_id)}}}(s,n,d,p),S=(0,i.Xd)("whatmoreLoggingActive"),x={...w,interaction_data:b,data:y},T=JSON.parse(localStorage.getItem(v))||[];if(T.push(x),localStorage.setItem(v,JSON.stringify(T)),S&&(0,o.xv)(x),clearTimeout(localStorage.getItem("_whatmore_bulk_timer_id")),T.length>=9)(0,a.u)(T),localStorage.removeItem(v);else if(T.length>0){let t=setTimeout(()=>{(0,a.u)(T),localStorage.removeItem(v)},9e3);localStorage.setItem("_whatmore_bulk_timer_id",t)}}},7483:function(t,e,n){n.d(e,{QN:function(){return pt},Xd:function(){return mt},t2:function(){return ht}});var o,r,i,a,c,u,l,s,d,p,m=n(9950),h=n(8453),f=n(1348),_=n(4459),g=n(964);function v(t,e){var n,o=document.getElementById(t);if(!o)return e;var r=null!==(n=o.getAttribute("data-wh"))&&void 0!==n?n:o.getAttribute("data");return r||e}function w(t,e=window.location.href){const n=new URL(e).searchParams.get(t);return n||null}var b=v("whatmoreShopId",g.YZ),y=v("whatmoreExtensionType","index"),S=v("whatmorePageId",null),x=v("whatmoreCollectionId",null!=S?S:"375196188919"),T=v("whatmoreProductId","6923315216522"),E=v("whatmoreVariantId","no-variant"),I=v("whatmoreEmbedAppVideoTitle",""),j=v("whatmoreEmbedAppPositionPortrait","left"),P=v("whatmoreEmbedAppHorizontalPaddingPortrait",10),$=v("whatmoreEmbedAppVerticalPaddingPortrait",10),C=v("whatmoreEmbedAppVideoPlayerSizePortrait",40),A=v("whatmoreEmbedAppPositionLandscape","left"),k=v("whatmoreEmbedAppHorizontalPaddingLandscape",20),O=v("whatmoreEmbedAppVerticalPaddingLandscape",20),L=v("whatmoreEmbedAppVideoPlayerSizeLandscape",60),D=v("whatmoreEmbedAppUseVariant","false");const N="22892183632"==b||"1546387531"==b?80:60;var W=v("whatmoreHeading",""),z=v("whatmoreCollection","invalid-url"),V=v("whatmoreCollectionHeading",""),R=v("whatmoreTitleFontSize","24"),M=v("whatmoreTitleFontSizePortrait",R),F=v("whatmoreLandscapePadding",function(){let t=!1;const e=document.querySelectorAll(".whatmore-widget");for(let n of e){const e=n.getAttribute("data-wh"),o=n.getAttribute("data"),r=e||o||null;if("string"===typeof r&&r.trim().toLowerCase().startsWith("collection")){t=!0;break}}if(t&&"68304765103"==b)return 0;return 40}()),q=v("whatmoreTopBottomPadding",20),H=v("whatmoreStoriesTopBottomPadding",10),J=v("whatmoreStoryTileSize",40),B=v("whatmoreStoryTileSizeDesktop",40),G=v("whatmoreCollectionsTileSize",N),Q=v("whatmoreCollectionsTileSizePortrait",N),U=v("whatmoreVideoTileSize",G),X=v("whatmoreVideoTileSizePortrait",Q),K=v("whatmoreCollectionsTilesSpacing",3),Y="true"===v("whatmoreIsInDesignMode","false"),Z=v("whatmoreShopNowCTA","buy-now"),tt="true"===v("isWhatmoreWebsite","false"),et=null!==(o=(0,f.DGu)(b))&&void 0!==o?o:"#343434",nt=null!==(r=(0,f.uXw)(b))&&void 0!==r?r:"#343434";var ot,rt=w("wtt"),it=w("wsid"),at=w("weid");ot=null!=rt&&null!=at;var ct=null===(i=document)||void 0===i||null===(a=i.documentElement)||void 0===a?void 0:a.lang;!function(){const t=document.documentElement;new MutationObserver(e=>{for(const n of e)"attributes"===n.type&&"lang"===n.attributeName&&(console.log("Language changed to:",t.lang),ht("websiteLanguage",t.lang))}).observe(t,{attributes:!0,attributeFilter:["lang"]})}();var ut=null!==(c=(0,f.JQp)(b))&&void 0!==c?c:"Poppins",lt=null!==(u=(0,f.YqT)(b))&&void 0!==u?u:"Poppins";function st(){return"-apple-system"==ut&&"-apple-system"==lt?(ut="Poppins",lt="Poppins"):"-apple-system"==ut?ut=lt:"-apple-system"==lt&&(lt=ut),[ut,lt]}const{GlobalStateProvider:dt,useGlobalState:pt,getGlobalState:mt,setGlobalState:ht}=(0,h.V)({isInDesignMode:Y,isDemoBrand:b===g.YZ,whatmoreShopId:b,whatmoreProductId:T,whatmoreCollectionId:x,whatmoreLandingLocationType:y,whatmoreEmbedAppPositionPortrait:j,whatmoreEmbedAppHorizontalPaddingPortrait:P,whatmoreEmbedAppVerticalPaddingPortrait:$,whatmoreEmbedAppVideoPlayerSizePortrait:C,whatmoreEmbedAppPositionLandscape:A,whatmoreEmbedAppHorizontalPaddingLandscape:k,whatmoreEmbedAppVerticalPaddingLandscape:O,whatmoreEmbedAppVideoPlayerSizeLandscape:L,whatmoreEmbedAppVideoTitle:I,whatmoreEmbedAppUseVariant:D,whatmoreVariantId:E,whatmoreHeading:W,whatmoreCollectionHeading:V,whatmorePrimaryColor:et,whatmoreSecondaryColor:nt,whatmoreSecondaryColorShade300:(0,_.Ay)(.1,nt),whatmoreSecondaryColorShade600:(0,_.Ay)(.2,nt),whatmoreSecondaryColorShade900:(0,_.Ay)(.5,nt),whatmoreSecondaryColorShade1200:(0,_.Ay)(.8,nt),whatmoreTitleFont:null!==(l=(0,f.sa6)(b))&&void 0!==l?l:st()[0],whatmoreTitleFontSize:R,whatmoreTitleFontSizePortrait:M,whatmorePrimaryFont:null!==(s=(0,f.vvD)(b))&&void 0!==s?s:st()[1],whatmoreLandscapePadding:F,whatmoreTopBottomPadding:q,whatmoreStoriesTopBottomPadding:H,whatmoreVideoTileSize:U,whatmoreVideoTileSizePortrait:X,whatmoreStoryTileSize:J,whatmoreStoryTileSizeDesktop:B,whatmoreCollectionsTilesSpacing:K,whatmoreShowViews:(0,f.RG3)(b),indicatorRenderSeconds:4,isFirstIndicatorRenderDone:!1,isProductSwiperCatalogOpen:(0,f.Mq2)(b),appCartData:{},whatmoreVideoPlayer:m.createRef(),productRatings:null,whatmoreVideoPlayerPool:document.createDocumentFragment(),whatmoreVideoPlayerPoolInitiated:!1,whatmoreVideoPlayerPoolBlessed:!1,whatmoreAddedToCart:!1,whatmoreAllowAutoSlide:!0,muted:(0,f.mlY)(b)||ot||"32788742281"===b,is3DTemplateMuted:!0,isLandingSharedLink:ot,whatmoreShareTemplateId:rt,whatmoreShareStoryId:it,whatmoreShareEventId:at,whatmoreLikedEvents:{},whatmoreLoggingActive:null!==(d="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==d&&d,brandCustomizationsLoaded:!1,isCarouselDataLoading:!0,whatmoreShopNowCTA:Z,websiteLanguage:ct,isWhatmoreWebsite:tt,whatmoreUITheme:null!==(p=(0,f.hep)(b))&&void 0!==p?p:"round",whatmoreCollectionUrl:z,isWhatmorePreviewMode:function(){try{const t=window.location.origin;if(t.includes("app.whatmore.live")||window.location.href.includes("consumer.whatmore.live")||t.includes("dashboard.whatmore.live")||t.includes("localhost")||t.includes("trycloudflare.com")){return!!document.getElementById("whatmorePreviewMode")}return!1}catch(t){return!1}}()})},7740:function(t,e,n){n.d(e,{U:function(){return r}});var o=n(7483);function r(){const t=(0,o.Xd)("whatmoreShopId");return!!(void 0!=window.Shopify||window.location.href.includes("shopify")||window.location.href.includes("localhost:")||window.location.href.includes("dashboard.whatmore.live")||window.location.href.includes("app.whatmore.live")||window.location.href.includes("consumer.whatmore.live")||window.location.href.includes("trycloudflare.com"))&&!t.includes("STR")}},7802:function(t,e,n){n.d(e,{Hl:function(){return r},Np:function(){return a},Po:function(){return c},Z_:function(){return o},Zf:function(){return l},d8:function(){return u},zJ:function(){return i}});const o=function(t,e){return!((void 0==t.products||0==t.products.length)&&(void 0==t.cta||0==t.cta.length))},r=function(t,e){return!(void 0==t.products||0==t.products.length)},i=function(t){if(null!=t)return t.filter(t=>{var e;return null===(e=null===t||void 0===t?void 0:t.in_stock)||void 0===e||e})},a=function(t,e=!1){var n,o;if(null!=t)return e?{events:t.events[0].events,all_events:null!==(o=null===t||void 0===t?void 0:t.all_events)&&void 0!==o?o:[]}:{events:null===t||void 0===t?void 0:t.events,all_events:null!==(n=null===t||void 0===t?void 0:t.all_events)&&void 0!==n?n:[]}};const c=function(t,e){var n,o;let r=[];if(null==t)return[];if("eventsets"in t&&t.eventsets[e]){const n=function(t){if(null==t||0==t.length)return[];let e=[];return t.forEach(t=>{e=e.concat(t.events)}),e}(t.eventsets[e]);r=[...n]}return{events:r,all_events:null!==(n=null===(o=r)||void 0===o?void 0:o.all_events)&&void 0!==n?n:[]}};function u(t){if(null!=t){var e=0;return t.forEach(t=>{t.index=e++}),t}}function l(t){if(null==t)return;let e=0;return t.reduce((t,n)=>{var o;return(null===(o=null===n||void 0===n?void 0:n.in_stock)||void 0===o||o)&&(n.index=e++,t.push(n)),t},[])}},8781:function(t,e,n){var o=n(4414);e.A=function(t){var e,n,r;const i=null!==(e=t.height)&&void 0!==e?e:"100%",a=null!==(n=t.width)&&void 0!==n?n:"100%",c=null!==(r=t.borderRadius)&&void 0!==r?r:"10px";return(0,o.jsx)("div",{style:{height:i,width:i,borderRadius:c,overflow:"hidden",minHeight:i,minWidth:a,maxHeight:i,maxWidth:a},children:(0,o.jsx)("div",{style:{minHeight:i,minWidth:a},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},8945:function(t,e,n){function o(t,e){let n=0;let o=new MutationObserver(function(){document.querySelector("."+t)?(e(),o.disconnect()):0==n&&(n=1,setTimeout(()=>{e(),o.disconnect()},8e3))});o.observe(document.body,{childList:!0,subtree:!0})}n.d(e,{H:function(){return o}})},9098:function(t,e,n){var o=n(9950),r=n(3887),i=n(4414);e.A=function(t){var e,n,a;const[c,u]=(0,o.useState)(!1),l=o.useRef(0),s=(0,o.useRef)(null),d=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},p=null!==(n=t.height)&&void 0!==n?n:"100%",m=null!==(a=t.width)&&void 0!==a?a:"100%";return(0,o.useEffect)(()=>{l.current=0;const t=setInterval(()=>{l.current=l.current+.03,s.current&&d(l.current,5),l.current>=5&&(l.current=0)},30);return()=>{clearInterval(t)}},[t.isPlaying]),(0,i.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:m,height:"100%",overflow:"hidden"},children:[(0,i.jsx)("div",{style:{width:c?"100%":"0px",height:c?"100%":"0px"},children:(0,i.jsx)("img",{ref:s,src:t.url,style:{objectFit:"cover",height:"100%",width:m,backgroundColor:"white"},alt:"image player",onLoad:()=>{u(!0)}})}),c?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(r.A,{width:m,height:p})]})}},9733:function(){},9821:function(t,e,n){function o(){const t=navigator.userAgent||navigator.vendor||window.opera;if(!/iPhone/.test(t))return!1;const{width:e,height:n}=window.screen;return[{width:320,height:480},{width:320,height:568},{width:375,height:667},{width:414,height:736},{width:375,height:812},{width:414,height:896},{width:360,height:780},{width:390,height:844},{width:428,height:926},{width:393,height:852},{width:430,height:932}].some(t=>t.width===e&&t.height===n||t.width===n&&t.height===e)}n.d(e,{_:function(){return o}})},9879:function(t,e,n){n.d(e,{A:function(){return h}});var o=n(9950),r=n(6649),i=n(3788),a=n(6613),c=n(2039),u=n(9098),l=n(4033),s=n(7483),d=n(6493),p=n(4414);var m=function(t){var e,n,i,c,u,m,h,f,_,g,v,w,b,y,S,x,T,E,I,j,P,$,C;const A=(0,o.useRef)(null),[k,O,L]=(0,r.A)({triggerOnce:!0}),D=(0,s.Xd)("whatmoreShopId"),N=null!==(e=t.height)&&void 0!==e?e:"100%",W=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)(()=>{A.current&&(t.isPlaying?A.current.paused&&A.current.play().catch(t=>{"NotAllowedError"!==t.name?console.error("Muted video play error:",t):console.warn("Muted play blocked by iOS autoplay policy")}):"57939755089"==D?(A.current.paused&&((0,l.n)()||(0,a.At)())&&A.current.play().catch(()=>{}),setTimeout(()=>{A.current&&A.current.pause()},300)):A.current.pause())},[t.isPlaying,O]),(0,p.jsx)("div",{ref:k,style:{width:N,height:W,overflow:"hidden",display:"flex",alignItems:"center"},children:O||"51394281658"==D||"8968077397"==D?(0,p.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:W,height:N},children:[(0,p.jsx)("meta",{itemprop:"name",content:null!==(i=null!==(c=null===t||void 0===t||null===(u=t.event)||void 0===u||null===(m=u.products)||void 0===m||null===(h=m[0])||void 0===h?void 0:h.title)&&void 0!==c?c:null===t||void 0===t||null===(f=t.event)||void 0===f?void 0:f.event_id)&&void 0!==i?i:"0"}),(0,p.jsx)("meta",{itemprop:"description",content:null!==(_=null===t||void 0===t||null===(g=t.event)||void 0===g||null===(v=g.products)||void 0===v||null===(w=v[0])||void 0===w?void 0:w.title)&&void 0!==_?_:"whatmore-event"}),(0,p.jsx)("meta",{itemprop:"thumbnailUrl",content:null!==(b=null===t||void 0===t||null===(y=t.event)||void 0===y?void 0:y.poster_image)&&void 0!==b?b:""}),(0,p.jsx)("meta",{itemprop:"contentUrl",content:null!==(S=null===t||void 0===t||null===(x=t.event)||void 0===x?void 0:x.thumbnail_image)&&void 0!==S?S:""}),(0,p.jsx)("meta",{itemprop:"uploadDate",content:null!==(T=`${null===t||void 0===t||null===(E=t.event)||void 0===E?void 0:E.scheduled_date}T00:00:00Z`)&&void 0!==T?T:""}),(0,p.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,p.jsx)("meta",{itemprop:"embedUrl",content:null!==(I=null===t||void 0===t||null===(j=t.event)||void 0===j?void 0:j.thumbnail_image)&&void 0!==I?I:""}),(0,p.jsx)("meta",{itemprop:"interactionCount",content:null!==(P=null===t||void 0===t||null===($=t.event)||void 0===$?void 0:$.total_views)&&void 0!==P?P:0}),(0,p.jsxs)("video",{ref:A,className:"whatmore-video-player-muted",width:W,height:N,preload:"metadata",loop:!0,playsInline:!0,poster:"57939755089"==D?"":t.poster,muted:null===(C=t.isVideoMuted)||void 0===C||C,style:{backgroundColor:"white",borderRadius:t.borderRadius,objectFit:"cover"},children:[(0,p.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,p.jsx)("source",{src:t.url,type:"video/mp4"}),(0,p.jsx)("source",{src:(0,d.yD)(t.url),type:"video/mp4"})]})]}):(0,p.jsx)("div",{width:W,height:N,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var h=function(t){var e,n,l,h,f,_,g,v,w,b,y,S,x,T,E,I,j,P,$,C,A,k,O,L,D;const[N,W,z]=(0,r.A)({triggerOnce:!0}),V=(0,s.Xd)("whatmoreShopId"),R=(0,o.useRef)(null),M=(0,o.useRef)(null);if((0,o.useEffect)(()=>{if(M.current&&clearTimeout(M.current),R.current)if(t.isPlaying)if("81308287252"===V){if(!navigator.getAutoplayPolicy||"disallowed"!==navigator.getAutoplayPolicy("mediaelement")){const e=R.current.play();void 0!==e&&e.catch(()=>{M.current=setTimeout(()=>{R.current&&t.isPlaying&&R.current.play().catch(()=>{})},500)})}}else R.current.play();else R.current.pause();return()=>{M.current&&clearTimeout(M.current)}},[t.isPlaying,W,V]),(0,c.I)(t.event))return(0,p.jsx)(u.A,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const F=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200,q=null===t||void 0===t||null===(n=t.event)||void 0===n?void 0:n.poster_image;if((0,a.MN)())return(0,p.jsx)(m,{isVideoMuted:t.isVideoMuted,event:null===t||void 0===t?void 0:t.event,borderRadius:t.borderRadius,height:"100%",width:"100%",poster:q,url:(0,i.s)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:F});const H=null!==(l=t.height)&&void 0!==l?l:"100%",J=null!==(h=t.width)&&void 0!==h?h:"100%";return(0,p.jsx)("div",{ref:N,style:{width:H,height:J,overflow:"hidden",display:"flex",alignItems:"center"},children:W||"51394281658"==V||"8968077397"==V?(0,p.jsxs)("div",{itemScope:!0,itemtype:"https://schema.org/VideoObject",style:{width:H,height:J},children:[(0,p.jsx)("meta",{itemprop:"name",content:null!==(f=null!==(_=null===t||void 0===t||null===(g=t.event)||void 0===g||null===(v=g.products)||void 0===v||null===(w=v[0])||void 0===w?void 0:w.title)&&void 0!==_?_:null===t||void 0===t||null===(b=t.event)||void 0===b?void 0:b.event_id)&&void 0!==f?f:"0"}),(0,p.jsx)("meta",{itemprop:"description",content:null!==(y=null===t||void 0===t||null===(S=t.event)||void 0===S||null===(x=S.products)||void 0===x||null===(T=x[0])||void 0===T?void 0:T.title)&&void 0!==y?y:"whatmore-event"}),(0,p.jsx)("meta",{itemprop:"thumbnailUrl",content:null!==(E=null===t||void 0===t||null===(I=t.event)||void 0===I?void 0:I.poster_image)&&void 0!==E?E:""}),(0,p.jsx)("meta",{itemprop:"contentUrl",content:null!==(j=null===t||void 0===t||null===(P=t.event)||void 0===P?void 0:P.thumbnail_image)&&void 0!==j?j:""}),(0,p.jsx)("meta",{itemprop:"uploadDate",content:null!==($=`${null===t||void 0===t||null===(C=t.event)||void 0===C?void 0:C.scheduled_date}T00:00:00Z`)&&void 0!==$?$:""}),(0,p.jsx)("meta",{itemprop:"duration",content:"PT3S"}),(0,p.jsx)("meta",{itemprop:"embedUrl",content:null!==(A=null===t||void 0===t||null===(k=t.event)||void 0===k?void 0:k.thumbnail_image)&&void 0!==A?A:""}),(0,p.jsx)("meta",{itemprop:"interactionCount",content:null!==(O=null===t||void 0===t||null===(L=t.event)||void 0===L?void 0:L.total_views)&&void 0!==O?O:0}),(0,p.jsxs)("video",{ref:R,className:"whatmore-video-player-muted",width:J,height:H,preload:"metadata",loop:!0,playsInline:!0,autoPlay:!0,muted:null===(D=t.isVideoMuted)||void 0===D||D,poster:"57939755089"==V?"":q,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,p.jsx)("track",{src:"data:,",kind:"captions",srclang:"en",label:"english_captions"}),(0,p.jsx)("source",{src:(0,i.s)(t.url),type:"video/mp4"}),(0,p.jsx)("source",{src:(0,d.yD)(t.url),type:"video/mp4"})]})]}):(0,p.jsx)("div",{width:J,height:H,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}}}]);