whatmore-react-assets 1.0.1638 → 1.0.1639

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262],{3262:function(t,e,r){r.r(e),r.d(e,{initiateCartSliderEvent:function(){return n}});var o=r(1745);const n=async function(t,e,r,n,i="",a="",u="",c="",d="",s=""){if("STRNV8MHJTF"!=t&&"STR6HU283UZ"!=t&&"STR9T3LLEJB"!=t&&"STRWJMIOJNX"!=t&&"STRUDQ36YAC"!=t&&"STR1D5ONOZX"!=t){await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((t=>t.json()));if(null==sessionStorage.getItem("wht_atc_form")){var l;fetch(null===s||void 0===s||null===(l=s.split("?"))||void 0===l?void 0:l[0]).then((t=>t.text())).then((t=>{var e;const r=(new DOMParser).parseFromString(t,"text/html"),n=Array.from(r.querySelectorAll('form[action*="/cart/add"]')).find((t=>t.querySelector('button[type="submit"]')));let l=n.querySelector('input[name="id"]');l||(l=document.createElement("input"),l.type="hidden",l.name="id",l.value="123",n.appendChild(l)),console.log(s,"html"),sessionStorage.setItem("wht_atc_form",n.outerHTML),n.hasAttribute("data-product-id")&&n.setAttribute("data-product-id",a);const m=n.querySelector('input[name="id"]');m&&(m.setAttribute("value",i),m.hasAttribute("disabled")&&m.removeAttribute("disabled"));const p=n.querySelector('input[name="product-id"]');p&&p.setAttribute("value",a);const h=document.createElement("div");h.appendChild(n),document.body.appendChild(h),console.log(h,"formElement");const y=null===(e=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((t=>{const e=t.querySelector('input[name="id"]');return e&&e.value==i})))||void 0===e?void 0:e.querySelector('button[type="submit"]');y&&y.click(),setTimeout((()=>{(0,o.js)().then((t=>t.json())).then((t=>{const e=t.items.find((t=>t.id==i)),r=e.key,n=e.quantity,a=e.properties;(0,o.CP)(r,n,a,u,c,d,!0,!0,!0)}))}),2e3)}))}else{var m;const t=sessionStorage.getItem("wht_atc_form"),e=(new DOMParser).parseFromString(t,"text/html").querySelector('form[action*="/cart/add"]');e.hasAttribute("data-product-id")&&e.setAttribute("data-product-id",a);const r=e.querySelector('input[name="id"]');r&&(r.setAttribute("value",i),r.hasAttribute("disabled")&&r.removeAttribute("disabled"));const n=e.querySelector('input[name="product-id"]');n&&n.setAttribute("value",a);const s=document.createElement("div");s.appendChild(e),document.body.appendChild(s);const l=null===(m=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((t=>{const e=t.querySelector('input[name="id"]');return e&&e.value==i})))||void 0===m?void 0:m.querySelector('button[type="submit"]');l&&l.click(),setTimeout((()=>{(0,o.js)().then((t=>t.json())).then((t=>{const e=t.items.find((t=>t.id==i)),r=e.key,n=e.quantity,a=e.properties;(0,o.CP)(r,n,a,u,c,d,!0,!0,!0)}))}),2e3)}setTimeout(e,r)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,427,907],{69:function(e,t,o){o.d(t,{Ij:function(){return r},bi:function(){return a}});let n,i=!1;function r(){return n?n.play().then((()=>{i=!0,console.debug("iOS autoplay restrictions bypassed."),n.pause()})).catch((e=>{console.error("Failed to bless videos:",e.message)})):Promise.reject(new Error("Blessing video not initialized."))}function a(){n||(n=document.createElement("video"),n.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",n.muted=!0,n.playsInline=!0,n.style.display="none",document.body.appendChild(n));const e=()=>{i||r()};document.addEventListener("click",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0})}},3262:function(e,t,o){o.r(t),o.d(t,{initiateCartSliderEvent:function(){return i}});var n=o(1745);const i=async function(e,t,o,i,r="",a="",c="",u="",d="",s=""){if("STRNV8MHJTF"!=e&&"STR6HU283UZ"!=e&&"STR9T3LLEJB"!=e&&"STRWJMIOJNX"!=e&&"STRUDQ36YAC"!=e&&"STR1D5ONOZX"!=e){await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((e=>e.json()));if(null==sessionStorage.getItem("wht_atc_form")){var l;fetch(null===s||void 0===s||null===(l=s.split("?"))||void 0===l?void 0:l[0]).then((e=>e.text())).then((e=>{var t;const o=(new DOMParser).parseFromString(e,"text/html"),i=Array.from(o.querySelectorAll('form[action*="/cart/add"]')).find((e=>e.querySelector('button[type="submit"]')));let l=i.querySelector('input[name="id"]');l||(l=document.createElement("input"),l.type="hidden",l.name="id",l.value="123",i.appendChild(l)),console.log(s,"html"),sessionStorage.setItem("wht_atc_form",i.outerHTML),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",a);const m=i.querySelector('input[name="id"]');m&&(m.setAttribute("value",r),m.hasAttribute("disabled")&&m.removeAttribute("disabled"));const p=i.querySelector('input[name="product-id"]');p&&p.setAttribute("value",a);const h=document.createElement("div");h.appendChild(i),document.body.appendChild(h),console.log(h,"formElement");const v=null===(t=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((e=>{const t=e.querySelector('input[name="id"]');return t&&t.value==r})))||void 0===t?void 0:t.querySelector('button[type="submit"]');v&&v.click(),setTimeout((()=>{(0,n.js)().then((e=>e.json())).then((e=>{const t=e.items.find((e=>e.id==r)),o=t.key,i=t.quantity,a=t.properties;(0,n.CP)(o,i,a,c,u,d,!0,!0,!0)}))}),2e3)}))}else{var m;const e=sessionStorage.getItem("wht_atc_form"),t=(new DOMParser).parseFromString(e,"text/html").querySelector('form[action*="/cart/add"]');t.hasAttribute("data-product-id")&&t.setAttribute("data-product-id",a);const o=t.querySelector('input[name="id"]');o&&(o.setAttribute("value",r),o.hasAttribute("disabled")&&o.removeAttribute("disabled"));const i=t.querySelector('input[name="product-id"]');i&&i.setAttribute("value",a);const s=document.createElement("div");s.appendChild(t),document.body.appendChild(s);const l=null===(m=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((e=>{const t=e.querySelector('input[name="id"]');return t&&t.value==r})))||void 0===m?void 0:m.querySelector('button[type="submit"]');l&&l.click(),setTimeout((()=>{(0,n.js)().then((e=>e.json())).then((e=>{const t=e.items.find((e=>e.id==r)),o=t.key,i=t.quantity,a=t.properties;(0,n.CP)(o,i,a,c,u,d,!0,!0,!0)}))}),2e3)}setTimeout(t,o)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}},3330:function(e,t,o){o.d(t,{initializeGA:function(){return m},sendVideoViewEventToGA:function(){return p}});var n,i=o(2595),r=o(7732),a=o(1348);const c="Whatmore Video Shopping",u=null!==(n="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==n&&n,d={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},s={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},l={homepage:"Home Page",product_page:"Product Page"};async function m(e){if((0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.initialize((0,a.xIo)(e)),u&&console.debug("Whatmore: initialized GA4")),(0,a.B6P)(e)&&null!==(0,a.jWS)(e)){const t=(0,a.Gc6)(e);i.Ay.initialize((0,a.jWS)(e),{useExistingGa:t}),u&&console.debug("Whatmore: initialized GA3")}}async function p(e,t,o){(0,a.B6P)(e)&&null!==(0,a.jWS)(e)&&(i.Ay.event({category:c,action:d.video_view,label:l[t]+":"+s[o]}),u&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.event({category:c,action:d.video_view+":"+l[t]+":"+s[o],value:1,nonInteraction:!1}),u&&console.debug("Whatmore: pushed view event to GA4"))}},9733:function(){}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,907,939],{2209:function(e,t,o){var n=o(4994);t.A=void 0;var i=n(o(9526)),r=o(4414);t.A=(0,i.default)((0,r.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},3262:function(e,t,o){o.r(t),o.d(t,{initiateCartSliderEvent:function(){return i}});var n=o(1745);const i=async function(e,t,o,i,r="",a="",u="",d="",c="",l=""){if("STRNV8MHJTF"!=e&&"STR6HU283UZ"!=e&&"STR9T3LLEJB"!=e&&"STRWJMIOJNX"!=e&&"STRUDQ36YAC"!=e&&"STR1D5ONOZX"!=e){await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((e=>e.json()));if(null==sessionStorage.getItem("wht_atc_form")){var s;fetch(null===l||void 0===l||null===(s=l.split("?"))||void 0===s?void 0:s[0]).then((e=>e.text())).then((e=>{var t;const o=(new DOMParser).parseFromString(e,"text/html"),i=Array.from(o.querySelectorAll('form[action*="/cart/add"]')).find((e=>e.querySelector('button[type="submit"]')));let s=i.querySelector('input[name="id"]');s||(s=document.createElement("input"),s.type="hidden",s.name="id",s.value="123",i.appendChild(s)),console.log(l,"html"),sessionStorage.setItem("wht_atc_form",i.outerHTML),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",a);const m=i.querySelector('input[name="id"]');m&&(m.setAttribute("value",r),m.hasAttribute("disabled")&&m.removeAttribute("disabled"));const p=i.querySelector('input[name="product-id"]');p&&p.setAttribute("value",a);const v=document.createElement("div");v.appendChild(i),document.body.appendChild(v),console.log(v,"formElement");const h=null===(t=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((e=>{const t=e.querySelector('input[name="id"]');return t&&t.value==r})))||void 0===t?void 0:t.querySelector('button[type="submit"]');h&&h.click(),setTimeout((()=>{(0,n.js)().then((e=>e.json())).then((e=>{const t=e.items.find((e=>e.id==r)),o=t.key,i=t.quantity,a=t.properties;(0,n.CP)(o,i,a,u,d,c,!0,!0,!0)}))}),2e3)}))}else{var m;const e=sessionStorage.getItem("wht_atc_form"),t=(new DOMParser).parseFromString(e,"text/html").querySelector('form[action*="/cart/add"]');t.hasAttribute("data-product-id")&&t.setAttribute("data-product-id",a);const o=t.querySelector('input[name="id"]');o&&(o.setAttribute("value",r),o.hasAttribute("disabled")&&o.removeAttribute("disabled"));const i=t.querySelector('input[name="product-id"]');i&&i.setAttribute("value",a);const l=document.createElement("div");l.appendChild(t),document.body.appendChild(l);const s=null===(m=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((e=>{const t=e.querySelector('input[name="id"]');return t&&t.value==r})))||void 0===m?void 0:m.querySelector('button[type="submit"]');s&&s.click(),setTimeout((()=>{(0,n.js)().then((e=>e.json())).then((e=>{const t=e.items.find((e=>e.id==r)),o=t.key,i=t.quantity,a=t.properties;(0,n.CP)(o,i,a,u,d,c,!0,!0,!0)}))}),2e3)}setTimeout(t,o)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}},3330:function(e,t,o){o.d(t,{initializeGA:function(){return m},sendVideoViewEventToGA:function(){return p}});var n,i=o(2595),r=o(7732),a=o(1348);const u="Whatmore Video Shopping",d=null!==(n="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==n&&n,c={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},l={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},s={homepage:"Home Page",product_page:"Product Page"};async function m(e){if((0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.initialize((0,a.xIo)(e)),d&&console.debug("Whatmore: initialized GA4")),(0,a.B6P)(e)&&null!==(0,a.jWS)(e)){const t=(0,a.Gc6)(e);i.Ay.initialize((0,a.jWS)(e),{useExistingGa:t}),d&&console.debug("Whatmore: initialized GA3")}}async function p(e,t,o){(0,a.B6P)(e)&&null!==(0,a.jWS)(e)&&(i.Ay.event({category:u,action:c.video_view,label:s[t]+":"+l[o]}),d&&console.debug("Whatmore: pushed view event to GA3")),(0,a.M$H)(e)&&null!==(0,a.xIo)(e)&&(r.Ay.event({category:u,action:c.video_view+":"+s[t]+":"+l[o],value:1,nonInteraction:!1}),d&&console.debug("Whatmore: pushed view event to GA4"))}},5727:function(e,t,o){var n=o(4994);t.A=void 0;var i=n(o(9526)),r=o(4414);t.A=(0,i.default)((0,r.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"}),"PlayArrowRounded")}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[806],{2835:function(t,e,n){var o=n(7891),i=n(8454),r=n(3781),s=n(5830),a=n(4414);e.A=function(t){var e;const n=(0,s.Xd)("whatmoreUITheme"),[l]=(0,s.QN)("whatmoreSecondaryColor"),[d,c]=(0,s.QN)("productRatings"),p=(0,s.Xd)("whatmorePrimaryFont"),u=t.productId,h=t.fontSize,x=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,a.jsx)(a.Fragment,{});const v=d[u].avgRating,g=d[u].totalRatings;return(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(v))].map(((t,e)=>(0,a.jsx)(o.A,{sx:{color:l,fontSize:h+"px"}},"star-icon"+e))),v-Math.floor(v)>.2?(0,a.jsx)(i.A,{sx:{color:l,fontSize:h+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(r.A,{sx:{color:l,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map(((t,e)=>(0,a.jsx)(r.A,{sx:{color:l,fontSize:h+"px"}},"star-outline-icon-"+e))),(0,a.jsx)("div",{children:(0,a.jsx)("div",{width:"2px"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{backgroundColor:l,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",v,"\xa0"]})})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",x,"important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+g+")"]})})]})})}},3278:function(t,e,n){n.r(e),n.d(e,{default:function(){return F}});var o=n(9950),i=n(340),r=n(5089),s=n(1941),a=n(5830),l=(n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042),n(572)),d=n(8603),c=n(7509),p=n(5551),u=(n(4826),n(7575)),h=n(2257),x=n(1348),v=n(6649),g=n(3788),f=n(6493),m=n(4895),y=n(5375),w=n(4833),b=n(4414);var j=function(t){var e;const n=t.isMuted,{whatmoreWidgetSourceDetails:i}=(0,o.useContext)(p.B),r=i.templateType,s=(0,w.l2)(r),a=null!==(e=t.iconSize)&&void 0!==e?e:30;function l(e){t.onToggle(e)}return(0,b.jsx)("div",{style:{height:"fit-content",cursor:"pointer"},children:n?(0,b.jsx)(y.A,{sx:{color:"white",fontSize:s?1.3*a:a,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{l(t)}}):(0,b.jsx)(m.A,{sx:{color:"white",fontSize:s?1.3*a:a,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{l(t)}})})},C=n(3771),k=n(6613),I=n(1085),A=n(1079),P=n(5873),S=n(1351),M=n(6157),N=n(3294),R=n(9879),z=n(9821),E=n(69);function T(t){const[e,n]=(0,o.useState)(t.initialMuteState),i=t.events,r=t.activeEventIndex,s=t.setActiveEventIndex,l=(0,a.Xd)("whatmoreShopId"),d="portrait"===t.mode;function c(o){o.stopPropagation(),n(!e),(0,k.MN)()&&((0,z._)()?(0,I.bo)():(0,E.bi)()),t.onMuteToggle()}const p=t.event;return(0,b.jsxs)("div",{style:{position:(0,x.D7t)(l)?"absolute":"relative",top:(0,x.D7t)(l)?0:"",zIndex:1,bottom:(0,x.D7t)(l)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:[(0,b.jsxs)("div",{className:"banner-event-overlay",style:{display:"flex",position:"relative",height:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:["video"==p.event_type&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{style:{width:"100%"},onClick:t=>{c(t)}}),(0,b.jsx)(j,{isMuted:e,onToggle:t=>{c(t)}})]}),i.length>1&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{classname:"banner-navigation-overlay-left",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),s(0===r?i.length-1:r-1)},children:(0,b.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,b.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,b.jsx)(u.A,{})})})}),(0,b.jsx)("div",{classname:"banner-navigation-overlay-right",style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),s(r===i.length-1?0:r+1)},children:(0,b.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,b.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,b.jsx)(h.A,{})})})}),(0,x.JiT)(l)&&(0,b.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:i.map(((t,e)=>{const n=e===r;return(0,b.jsx)("button",{onClick:t=>{t.stopPropagation(),s(e)},style:{width:n?"25px":d?"12px":"14px",height:d?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,x.z1s)(l):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},e)}))})]})]}),!(0,x.OC6)(l)&&(0,b.jsx)("div",{style:{width:"100%",height:"100%"},onClick:c})]})}var D=function(t){var e,n,i,r;const[l,d,c]=(0,s.A)(),[u,h]=(0,o.useState)(!0),m=(0,a.Xd)("whatmoreVideoTileSize"),[y,w,j]=(0,v.A)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:k}=(0,o.useContext)(p.B),I=(0,a.Xd)("whatmoreShopId"),z=t.events,E=t.activeEventIndex,D=t.setActiveEventIndex,B=z[E],F=(0,f.lP)(B),_=(0,f.cb)(B);if((0,o.useEffect)((()=>{P.Sn.forEach((t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;t&&(t.style.minHeight="0px")}))}),[]),"portrait"===l&&!F)return(0,b.jsx)(b.Fragment,{});if("landscape"===l&&!_)return(0,b.jsx)(b.Fragment,{});const X=(0,g.s)("portrait"===l?F:_),W=m/100*(0,x.igk)(I),V=m/100*(0,x.Y_l)(I),Y="portrait"===l?(0,x.G0Q)(I):(0,x.ga9)(I),L="portrait"===l?c*W:c*V,O=L*Y,Q=null!=(null===(e=B.cta)||void 0===e||null===(n=e[1])||void 0===n?void 0:n.cta_link);return(0,b.jsxs)("div",{ref:y,onClick:()=>{var t,e;(0,S.kz)({userInteractionType:M.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:k,event:z[E]}),(0,x.OC6)(I)&&Q&&window.open(null===(t=B.cta)||void 0===t||null===(e=t[1])||void 0===e?void 0:e.cta_link,"_self")},className:"wht-banner-event-tile",style:{position:"relative",margin:"0 auto",width:(0,x.D7t)(I)?"100%":L,minHeight:(0,x.D7t)(I)?c*Y:"",height:(0,x.D7t)(I)?"auto":O,borderWidth:(0,x.YcK)(I),borderColor:(0,x.Fwt)(I),overflow:"hidden",cursor:"pointer"},children:["28273541192"===I?(0,b.jsx)(R.A,{height:"100%",width:"100%",url:X,isPlaying:w,event:B,isVideoMuted:!w||u,source:N.N.BANNER}):(0,b.jsx)(C.A,{height:"100%",width:"100%",url:X,isPlaying:w,event:B,isVideoMuted:!w||u,setDuration:t.setDuration,source:N.N.BANNER}),(0,b.jsx)(T,{isCTAPresent:Q,events:z,activeEventIndex:E,setActiveEventIndex:D,event:B,mode:l,onMuteToggle:()=>h(!u),initialMuteState:u}),(0,x.XYM)(I)&&(null===B||void 0===B||null===(i=B.cta)||void 0===i?void 0:i.length)>1&&(0,b.jsx)("div",{style:{position:"absolute",zIndex:1,bottom:"10%",left:"50%",transform:"translateX(-50%)"},className:"whatmore-ios-css-relative-fix",children:(0,b.jsx)(A.A,{isBanner:!0,event:B,cta:null===B||void 0===B||null===(r=B.cta)||void 0===r?void 0:r[1],fontFactor:.6})})]})};const B=(0,d.A)({key:"whatmore-css-bv"});var F=function(t){const{whatmoreRootId:e}=(0,o.useContext)(p.B),[n,d]=(0,o.useState)(0),u=t.events,[h,x]=(0,o.useState)(-1),[v]=(0,a.QN)("whatmoreShopId"),[g]=(0,s.A)();let f;return(0,o.useEffect)((()=>{f&&clearInterval(f);const t="video"===u[n].event_type,e=t?1e3*h:6e3;return t?-1!=h&&(f=setInterval((()=>{d((t=>t===u.length-1?0:t+1))}),e)):f=setInterval((()=>{d((t=>t===u.length-1?0:t+1))}),e),()=>{clearInterval(f)}}),[h,n]),delete r.Ay.styles.global,(0,b.jsx)(l.C,{value:B,children:(0,b.jsx)("div",{className:"whatmore-banner-events",style:{height:"60183543963"===v&&"portrait"==g?"200px":void 0},children:(0,b.jsx)(i.s,{theme:r.Ay,cssVarsRoot:e,resetCSS:!1,children:(0,b.jsx)(c.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,b.jsx)(D,{activeEventIndex:n,events:u,setActiveEventIndex:d,setDuration:x})})})})})}},4669:function(){},4826:function(){},6042:function(){},7229:function(){},7458:function(t,e,n){n.d(e,{P:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,n){n.d(e,{h:function(){return o}});const o=(0,n(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,n){n.d(e,{B:function(){return s},b:function(){return r}});var o=n(1348),i=n(5830);function r(t,e=""){const n=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function s(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(n)?"image":null!==i&&void 0!==i&&i.test(n)?"video":void 0}},9130:function(){}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[665],{22:function(t,e,i){i.d(e,{$S:function(){return s},_:function(){return n},b4:function(){return r},dl:function(){return o},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const n="device_type",o="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,i){var n=i(5830),o=i(1941),r=i(22),l=i(1348);e.A=function(t){const[e,i,s]=(0,o.A)(),[a]=(0,n.QN)("whatmoreLandscapePadding"),[d]=(0,n.QN)("whatmoreShopId"),[p]=(0,n.QN)("whatmoreVideoTileSize"),[c]=(0,n.QN)("whatmoreVideoTileSizePortrait"),h=s>=1025,x="portrait"==e?c:p,f=!("portrait"!=e||!(s>=481)),u=x/100*1.3*.5,m=x/100;var y=Math.min(s,i),[g,w,v,C]=[.6*y*(16/9),.6*y,1.4,0];function j(t){return Math.round(10*t)/10}var b={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(h){const t=w*u,e=g*u;[g,w,v,C]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],b[r._]=r.$S,b[r.dl]=r.nN}else if(f){var P=.8*w,I=.8*g;"portrait"==e?(P*=m,I*=m,[g,w,v,C]=[I,P,j(s/(1.2*P)),0],b[r._]=r.vF,b[r.dl]=r.tn):([g,w,v,C]=[I,P,(s-2*a)/(1.1*P),a],b[r._]=r.vF,b[r.dl]=r.nN)}else{P=w,I=g;"portrait"==e?(P=P*m*.9,I=I*m*.9,[g,w,v,C]=[I,P,j(s/(1.15*P)),0],b[r._]=r.b4,b[r.dl]=r.tn):(P=.7*w,I=.7*g,[g,w,v,C]=[I,P,(s-2*a)/(1.1*P),a],b[r._]=r.b4,b[r.dl]=r.nN)}return[g,w,v,C,b]}},2835:function(t,e,i){var n=i(7891),o=i(8454),r=i(3781),l=i(5830),s=i(4414);e.A=function(t){var e;const i=(0,l.Xd)("whatmoreUITheme"),[a]=(0,l.QN)("whatmoreSecondaryColor"),[d,p]=(0,l.QN)("productRatings"),c=(0,l.Xd)("whatmorePrimaryFont"),h=t.productId,x=t.fontSize,f=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(h in d)||d[h].avgRating>5)return(0,s.jsx)(s.Fragment,{});const u=d[h].avgRating,m=d[h].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(u))].map(((t,e)=>(0,s.jsx)(n.A,{sx:{color:a,fontSize:x+"px"}},"star-icon"+e))),u-Math.floor(u)>.2?(0,s.jsx)(o.A,{sx:{color:a,fontSize:x+"px"}},"star-half-icon"):u-Math.floor(u)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(r.A,{sx:{color:a,fontSize:x+"px"}},"star-outline-icon"),[...Array(Math.floor(5-u))].map(((t,e)=>(0,s.jsx)(r.A,{sx:{color:a,fontSize:x+"px"}},"star-outline-icon-"+e))),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:a,borderRadius:"round"==i?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*x+"px","important"),t.style.setProperty("font-family",c,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",u,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"important"),t.style.setProperty("font-size",.8*x+"px","important"),t.style.setProperty("font-family",c,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+m+")"]})})]})})}},3590:function(t,e,i){var n=i(2375),o=i(1348),r=i(5830),l=i(4414);function s(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.A=function(t){const e=(0,r.Xd)("whatmoreUITheme"),i=(0,r.Xd)("whatmoreShopId"),a=(0,r.Xd)("whatmorePrimaryFont"),d=t.event,p=t.fontSize;if(d.total_views<=0)return(0,l.jsx)(l.Fragment,{});const c=(0,o.FVo)(i);return"template-icon"==c?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.YcK)(i),borderColor:(0,o.Fwt)(i)},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(n.A,{sx:{color:(0,o.s0t)(i)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"),t.style.setProperty("font-size",p,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+s(d.total_views)+" "})})]})})}):"template-text"==c?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.sIk)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.YcK)(i),borderColor:(0,o.Fwt)(i)},children:(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.s0t)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+s(d.total_views)+" views"})})})})}):void 0}},4669:function(){},6042:function(){},7136:function(t,e,i){var n=i(9950),o=i(932),r=i(7509),l=i(5830),s=i(4414);e.A=function(t){var[e,i]=(0,o.A)();(0,n.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:i,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7206:function(t,e,i){i.r(e),i.d(e,{default:function(){return V}});var n=i(9950),o=i(340),r=i(5089),l=i(5873),s=(i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042),i(572)),a=i(8603),d=i(9946),p=i(9094),c=i(932),h=i(1941),x=i(5491),f=i.n(x),u=i(5830),m=i(7509),y=i(1348),g=i(5551),w=i(7136),v=i(9879),C=i(6649),j=i(3590),b=i(8538),P=i(7458),I=i(2835),S=i(6594),k=i(7973),F=i(8149),A=i(7740),_=i(4414);const M=n.lazy((()=>Promise.all([i.e(437),i.e(286),i.e(451),i.e(413),i.e(939)]).then(i.bind(i,9408))));var O=function(t){var e,i,o,r;const l=(0,u.QN)("whatmoreUITheme");var[s,a]=(0,c.A)();const[d]=(0,u.QN)("whatmorePrimaryFont"),[p]=(0,u.QN)("whatmoreSecondaryColorShade900"),[h]=(0,u.QN)("whatmoreShopId"),[x,f]=(0,n.useState)(0),[m,w]=(0,n.useState)(t.event),[v,C]=(0,n.useState)(),[j,O]=(0,n.useState)(!1),R=t.onClick,N=m.products.length,{whatmoreIsPreviewMode:T}=(0,n.useContext)(g.B);if(0==N)return(0,_.jsx)(_.Fragment,{});(0,n.useEffect)((()=>{(0,y.w4b)(h)&&(0,S.fu)(m,(0,y.NCy)(h),h).then((t=>{w(t),O(!0)}));(async()=>{var t;const e=await(0,F.M)(null===m||void 0===m||null===(t=m.products)||void 0===t?void 0:t[0],(0,y.NCy)(h),h);C(e),O(!0)})()}),[]);const L=T,z=.3*a,B=z+"px",E=z+"px",W=.05*a*(0,y.PpQ)(h)+"px",X=.07*a*(0,y.y3u)(h),U=X+"px",V=.05*a;return(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-around",alignItems:"center",marginTop:"2px",marginBottom:"2px",gap:"0px"},children:[(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:.95*a,height:"fit-content",paddingLeft:"4px",paddingRight:"4px",justifyContent:"space-between",alignItems:"center",gap:"4px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",onClick:R,children:[(0,_.jsx)("div",{style:{width:B,height:E,overflow:"hidden",backgroundColor:"28062416930"===h?void 0:p,borderRadius:"round"==l?"5px":"0px",borderWidth:"0px"==(0,y.YcK)(h)?"2px":(0,y.YcK)(h),borderColor:"28062416930"===h?"white":"white"===(0,y.Fwt)(h)?p:(0,y.Fwt)(h)},children:"28062416930"!==h&&(0,_.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,y.KZe)(h),"important")},src:(0,k.b)(m.products[x].thumbnail_image,"&width=400&height=400"),style:{width:B,height:B,borderRadius:"round"==l?"5px":"0px",backgroundColor:p},alt:"product img"})}),(0,_.jsx)("div",{style:{width:.7*a+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"28062416930"===h?"18px":"2px",borderRadius:"round"==l?"5px":"0px"},children:(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,_.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===h?"center":"flex-start",alignItems:"center"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size","28062416930"===h?"80%":W,"important"),t.style.setProperty("line-height","28062416930"===h?"170%":"140%","important"),t.style.setProperty("font-family",d,"important"),"28062416930"===h?(t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("text-align","center","important"),t.style.setProperty("display","block","important")):(t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important")))},style:{textAlign:"28062416930"===h?"center":"left",fontWeight:"medium"},children:(0,b.v)("56411783377"===h?m.products[x].title.split("|")[0].trim():m.products[x].title)})}),(0,_.jsxs)("div",{className:"wht-price-tb",style:{display:"flex",flexFlow:(0,y.vw2)(h)?"row nowrap":"row-reverse nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===h?"center":(0,y.vw2)(h)?"flex-start":"flex-end",alignItems:"center",gap:"4px"},children:[j&&(0,_.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.uoB)(h),"important"),t.style.setProperty("font-size",U,"important"),t.style.setProperty("line-height","28062416930"===h?"160%":"140%","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("font-weight","28062416930"===h?"bold":void 0,"important"))},style:{textAlign:"28062416930"===h?"center":"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,S.Sb)(parseFloat((0,A.U)()?(null===v||void 0===v?void 0:v.price)/100:null===m||void 0===m||null===(e=m.products)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price),"",h,m.products[x].currency)]}),(0,P.P)(m.products[x].price,m.products[x].compare_price)&&j?(0,_.jsxs)("strike",{ref:t=>{t&&(t.style.setProperty("color",(0,y.gld)(h),"important"),t.style.setProperty("font-size",.9*X+"px","important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("text-decoration","line-through","important"))},style:{textAlign:"28062416930"===h?"center":"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,S.Sb)(parseFloat((0,A.U)()?(null===v||void 0===v?void 0:v.compare_at_price)/100:null===m||void 0===m||null===(o=m.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_price),"",h,m.products[x].currency)]}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsx)(I.A,{storeId:h,productId:m.products[x].client_product_id,productLink:m.products[x].product_link,fontSize:V}),"28062416930"===h&&(0,_.jsx)("button",{onClick:R,onMouseEnter:t=>t.target.style.backgroundColor="#555",onMouseLeave:t=>t.target.style.backgroundColor="black",style:{padding:"2px 5px 2px 5px",backgroundColor:"black",color:"#fff",border:"none",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textAlign:"center"},children:"Buy Now"})]})})]},x),(0,y.nP1)(h)||L&&"5141594210"==h?(0,_.jsx)(n.Suspense,{children:(0,_.jsx)(M,{baseFontSize:.05*a,event:m,product:m.products[0],width:.9*a,height:"fit-content"})}):(0,_.jsx)(_.Fragment,{})]})},R=i(7802),N=i(8141);function T(t){const[e,i,n,o,r]=(0,c.A)(),l=(0,u.Xd)("whatmoreUITheme"),s=(0,u.Xd)("whatmoreShowViews"),a=(0,u.Xd)("whatmoreShopId"),d=t.PRODUCT_BOX_HEIGHT,p=t.PRODUCT_BOX_HEIGHT_IN_PX,h=t.PRODUCT_BOX_MARGIN,[x,f,m]=(0,C.A)({triggerOnce:!0}),g=t.event;t.isOnFocus;return(0,_.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{t.onClick(g)},children:["56411783377"===a&&(0,_.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,_.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center",filter:"drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2))"},children:(0,_.jsx)(N.A,{width:.15*i,height:.15*i})})}),"show"===s?(0,_.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,_.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,_.jsx)(j.A,{event:g,fontSize:.07*i+"px"})})}):(0,_.jsx)(_.Fragment,{})]}),(0,_.jsx)("div",{style:{display:"flex",width:"100%",height:e-d+"px"},onClick:()=>{t.onClick(g)}}),(0,R.Hl)(g,a)?(0,_.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"28062416930"===a?void 0:h+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:"28062416930"===a?"110%":.95*i,height:"28062416930"===a?"20%":p,marginLeft:h+"px",marginRight:h+"px",backgroundColor:"white",borderRadius:"round"==l?"5px":"0px",borderWidth:(0,y.YcK)(a),borderColor:(0,y.Fwt)(a),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,_.jsx)("div",{ref:x,children:f&&(0,y.imx)(a)?(0,_.jsx)(O,{event:g,onClick:()=>{var e,i;(0,y.gq8)(a)?window.location.href=(i=null===(e=g.products)||void 0===e?void 0:e[0],(0,y.BLb)(a)?i.product_link+"?"+(0,y.VCz)(a)+"&"+(0,y.Spk)(a)+"&"+(0,y.$lz)(a):i.product_link):t.onClick(g)}}):(0,_.jsx)("div",{height:"20px"})})}):(0,_.jsx)(_.Fragment,{})]})})}var L=function(t){var e,i,o;const[r,l,s,a,d]=(0,c.A)();var p=(0,n.useContext)(m.h);const h=(0,u.Xd)("whatmoreUITheme"),x=(0,u.Xd)("whatmoreShopId"),f=(0,u.Xd)("whatmoreSecondaryColorShade600"),g=t.event,w=t.onClick,C=null===(e=t.isOnFocus)||void 0===e||e,j=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,b=null!==(o=t.animateOnFocus&&(0,y.n5O)(x))&&void 0!==o&&o,P=(0,y.nP1)(x)?.7:.8,I=r*P+"px",S=1-P,k=r*S,F=r*S+"px",A=r*S*.1,M=(0,y.VYo)(x),O="56411783377"==x?1:1.2;return(0,_.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",p.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",p.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:l+"px",height:r*O+"px",borderRadius:"round"==h?"5px":"0px",boxShadow:"28062416930"===x?void 0:"round"===h?M:null,borderWidth:(0,y.YcK)(x),borderColor:(0,y.Fwt)(x),overflow:"hidden",cursor:"pointer",position:"relative"},className:b?C?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",children:[(0,_.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},className:"whatmore-template-b-event-tile",onClick:()=>{w(g)},children:[(0,_.jsx)(v.A,{height:I,width:"100%",url:g.thumbnail_image,isPlaying:C||j,event:g}),(0,y.Q$)(x)&&(0,R.Hl)(g,x)&&"56411783377"!==x?(0,_.jsx)("div",{style:{width:"100%",height:F,backgroundColor:f}}):(0,_.jsx)(_.Fragment,{})]}),(0,y.Q$)(x)&&(0,_.jsx)(T,{event:g,isOnFocus:C,PRODUCT_BOX_HEIGHT:k,PRODUCT_BOX_HEIGHT_IN_PX:F,PRODUCT_BOX_MARGIN:A,onClick:w})]})},z=i(6157),B=i(1351),E=i(6641);const W=(0,a.A)({key:"whatmore-css-hv"});function X(t){const[e,i,o]=(0,c.A)(),[r,l,s]=(0,h.A)(),a=(0,u.Xd)("whatmoreShopId"),p=t.events,x=t.onClick,f=o*(0,y.kcl)(a),m=(0,y.cbh)(a),[w,v]=(0,n.useState)(Math.min(p.length,m?p.length:f+5)),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(g.B);return(0,n.useEffect)((()=>{w<f+5&&v((t=>Math.min(t+5,p.length)))}),[f,5]),(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,_.jsx)(d.RC,{slidesPerView:p.length>1?"56411783377"==a?2:f:1,initialSlide:"25075712047"===a||"56411783377"==a?0:p.length>1?1:0,centeredSlides:"25075712047"!==a&&"56411783377"!=a,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:t=>{(0,B.UM)({userInteractionType:z.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:C}),t.realIndex>t.previousIndex&&v((t=>Math.min(t+5,p.length)))},loop:(0,y.cbh)(a),children:p.map(((t,e)=>e<=w&&(0,_.jsx)(d.qr,{children:({isActive:e,isPrev:i,isNext:n,isVisible:o})=>(0,_.jsx)(L,{isOnFocus:("56411783377"==a||e)&&o,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{x(t)}})},"whatmore-event-tile-portrait-"+t.index)))})})})}function U(t){const[e,i,o,r]=(0,c.A)(),[l,s]=(0,n.useState)(-1),a=(0,u.Xd)("whatmoreShopId"),h=t.onClick,x=t.events,m=(0,y.cbh)(a),[v,C]=(0,n.useState)(m?x.length:o),j=Math.min(o,x.length),{whatmoreWidgetSourceDetails:b}=(0,n.useContext)(g.B);return(0,n.useEffect)((()=>{v<=o&&C((t=>t+o))}),[o]),(0,_.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},children:(0,_.jsx)("div",{style:{width:i*j*1.1+"px"},children:(0,_.jsx)(d.RC,{slidesPerView:j,watchSlidesProgress:!0,modules:[p.Vx],navigation:!0,slidesPerGroup:parseInt(j),onSlideChange:t=>{(0,B.UM)({userInteractionType:z.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:b}),t.realIndex>t.previousIndex&&C((t=>t+o))},spaceBetween:(0,y.If9)(a),loop:(0,y.cbh)(a),children:x.map(((t,e)=>{const i=f()((()=>s(e)),300);return e<=v&&(0,_.jsx)(d.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),s(-1)},children:({isActive:i,isPrev:n,isNext:o,isVisible:r})=>r?(0,_.jsx)(L,{isOnFocus:e==l,playOnUnfocus:!(0,y.aO7)(a)||e==parseInt(j/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>{h(t)}}):(0,_.jsx)(w.A,{})},"whatmore-event-tile-landscape-"+t.index)}))})})})}var V=function(t){const[e,i,a]=(0,h.A)(),[d]=(0,u.QN)("whatmorePrimaryColor"),[p]=(0,u.QN)("whatmoreShopId"),[c]=(0,u.QN)("whatmoreTitleFont"),x="portrait"==e?(0,u.Xd)("whatmoreTitleFontSizePortrait"):(0,u.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,n.useContext)(g.B),y=t.events,w=t.onClick,v=c,C=(0,u.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:j}=(0,n.useContext)(g.B);function b(t){w(t)}function P(t){const e=t.indexOf(" ",t.indexOf(" ")+1);return-1===e?[t,""]:[t.substring(0,e),t.substring(e)]}return(0,n.useEffect)((()=>{(0,E.Fk)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{l.Sn.forEach((t=>{var e;const i=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-b"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-b"]');if(!i)return;i&&t&&(t.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,_.jsx)(s.C,{value:W,children:(0,_.jsx)("div",{className:"whatmore-carousel-events",children:(0,_.jsx)(o.s,{theme:r.Ay,cssVarsRoot:f,resetCSS:!1,children:(0,_.jsxs)(m.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!1},children:["10588815418"!==p&&"2310668401"!==p&&"10648977444"!==p&&(t.heading.trim().length>0||j)?(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:j?"W"!==C?C:"":t.heading})}):(0,_.jsx)(_.Fragment,{}),"10588815418"==p||"2310668401"==p||"10648977444"==p?(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"left"},children:(0,_.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontStyle:"normal"},children:j?"W"!==C?C:"":P(t.heading)[0]}),(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family","Austin Text SemiBold Trial","important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:j?"W"!==C?C:"":P(t.heading)[1]})]})}):(0,_.jsx)(_.Fragment,{}),"landscape"===e?(0,_.jsx)(U,{events:y,onClick:b}):(0,_.jsx)(X,{events:y,onClick:b})]})})})})}},7229:function(){},7458:function(t,e,i){i.d(e,{P:function(){return n}});const n=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,i){i.d(e,{h:function(){return n}});const n=(0,i(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,i){i.d(e,{B:function(){return l},b:function(){return r}});var n=i(1348),o=i(5830);function r(t,e=""){const i=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,n.NCy)(i)?"STRNV8MHJTF"==i?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const i=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(i)?"image":null!==o&&void 0!==o&&o.test(i)?"video":void 0}},8141:function(t,e,i){i(9950);var n=i(4414);e.A=({width:t=30,height:e=30})=>(0,n.jsxs)("svg",{width:t,height:e,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"white"}),(0,n.jsx)("g",{clipPath:"url(#clip0_1_19)",children:(0,n.jsx)("path",{d:"M16.942 9.3568C16.8684 9.32095 16.7862 9.30645 16.7048 9.31496C16.6234 9.32347 16.5461 9.35464 16.4815 9.40493L12.6621 12.375H10.1875C9.95544 12.375 9.73288 12.4672 9.56878 12.6313C9.40469 12.7954 9.3125 13.0179 9.3125 13.25V16.75C9.3125 16.9821 9.40469 17.2046 9.56878 17.3687C9.73288 17.5328 9.95544 17.625 10.1875 17.625H12.6621L16.4815 20.5951C16.5461 20.6453 16.6235 20.6764 16.705 20.6849C16.7864 20.6933 16.8686 20.6787 16.9421 20.6427C17.0157 20.6068 17.0777 20.5509 17.121 20.4815C17.1644 20.4121 17.1874 20.3319 17.1875 20.25V9.75C17.1875 9.66804 17.1645 9.58773 17.1211 9.51821C17.0777 9.44869 17.0156 9.39276 16.942 9.3568ZM16.3125 19.3553L13.081 16.8424C13.0044 16.7824 12.9098 16.7498 12.8125 16.75H10.1875V13.25H12.8125C12.9098 13.2502 13.0044 13.2176 13.081 13.1576L16.3125 10.6447V19.3553ZM21.872 16.003C21.9541 16.0851 22.0002 16.1964 22.0002 16.3125C22.0002 16.4286 21.9541 16.5399 21.872 16.622C21.7899 16.7041 21.6786 16.7502 21.5625 16.7502C21.4464 16.7502 21.3351 16.7041 21.253 16.622L20.25 15.6185L19.247 16.622C19.1649 16.7041 19.0536 16.7502 18.9375 16.7502C18.8214 16.7502 18.7101 16.7041 18.628 16.622C18.5459 16.5399 18.4998 16.4286 18.4998 16.3125C18.4998 16.1964 18.5459 16.0851 18.628 16.003L19.6315 15L18.628 13.997C18.5459 13.9149 18.4998 13.8036 18.4998 13.6875C18.4998 13.5714 18.5459 13.4601 18.628 13.378C18.7101 13.2959 18.8214 13.2498 18.9375 13.2498C19.0536 13.2498 19.1649 13.2959 19.247 13.378L20.25 14.3815L21.253 13.378C21.3351 13.2959 21.4464 13.2498 21.5625 13.2498C21.6786 13.2498 21.7899 13.2959 21.872 13.378C21.9541 13.4601 22.0002 13.5714 22.0002 13.6875C22.0002 13.8036 21.9541 13.9149 21.872 13.997L20.8685 15L21.872 16.003Z",fill:"#1A1A1A"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_1_19",children:(0,n.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(8 8)"})})})]})},9130:function(){},9733:function(){}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,306,907],{2209:function(t,e,o){var i=o(4994);e.A=void 0;var r=i(o(9526)),n=o(4414);e.A=(0,r.default)((0,n.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},2835:function(t,e,o){var i=o(7891),r=o(8454),n=o(3781),l=o(5830),s=o(4414);e.A=function(t){var e;const o=(0,l.Xd)("whatmoreUITheme"),[a]=(0,l.QN)("whatmoreSecondaryColor"),[d,c]=(0,l.QN)("productRatings"),p=(0,l.Xd)("whatmorePrimaryFont"),u=t.productId,m=t.fontSize,h=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,s.jsx)(s.Fragment,{});const y=d[u].avgRating,v=d[u].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(y))].map(((t,e)=>(0,s.jsx)(i.A,{sx:{color:a,fontSize:m+"px"}},"star-icon"+e))),y-Math.floor(y)>.2?(0,s.jsx)(r.A,{sx:{color:a,fontSize:m+"px"}},"star-half-icon"):y-Math.floor(y)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(n.A,{sx:{color:a,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-y))].map(((t,e)=>(0,s.jsx)(n.A,{sx:{color:a,fontSize:m+"px"}},"star-outline-icon-"+e))),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:a,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",y,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",h,"important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+v+")"]})})]})})}},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return r}});var i=o(1745);const r=async function(t,e,o,r,n="",l="",s="",a="",d="",c=""){if("STRNV8MHJTF"!=t&&"STR6HU283UZ"!=t&&"STR9T3LLEJB"!=t&&"STRWJMIOJNX"!=t&&"STRUDQ36YAC"!=t&&"STR1D5ONOZX"!=t){await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((t=>t.json()));if(null==sessionStorage.getItem("wht_atc_form")){var p;fetch(null===c||void 0===c||null===(p=c.split("?"))||void 0===p?void 0:p[0]).then((t=>t.text())).then((t=>{var e;const o=(new DOMParser).parseFromString(t,"text/html"),r=Array.from(o.querySelectorAll('form[action*="/cart/add"]')).find((t=>t.querySelector('button[type="submit"]')));let p=r.querySelector('input[name="id"]');p||(p=document.createElement("input"),p.type="hidden",p.name="id",p.value="123",r.appendChild(p)),console.log(c,"html"),sessionStorage.setItem("wht_atc_form",r.outerHTML),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",l);const u=r.querySelector('input[name="id"]');u&&(u.setAttribute("value",n),u.hasAttribute("disabled")&&u.removeAttribute("disabled"));const m=r.querySelector('input[name="product-id"]');m&&m.setAttribute("value",l);const h=document.createElement("div");h.appendChild(r),document.body.appendChild(h),console.log(h,"formElement");const y=null===(e=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((t=>{const e=t.querySelector('input[name="id"]');return e&&e.value==n})))||void 0===e?void 0:e.querySelector('button[type="submit"]');y&&y.click(),setTimeout((()=>{(0,i.js)().then((t=>t.json())).then((t=>{const e=t.items.find((t=>t.id==n)),o=e.key,r=e.quantity,l=e.properties;(0,i.CP)(o,r,l,s,a,d,!0,!0,!0)}))}),2e3)}))}else{var u;const t=sessionStorage.getItem("wht_atc_form"),e=(new DOMParser).parseFromString(t,"text/html").querySelector('form[action*="/cart/add"]');e.hasAttribute("data-product-id")&&e.setAttribute("data-product-id",l);const o=e.querySelector('input[name="id"]');o&&(o.setAttribute("value",n),o.hasAttribute("disabled")&&o.removeAttribute("disabled"));const r=e.querySelector('input[name="product-id"]');r&&r.setAttribute("value",l);const c=document.createElement("div");c.appendChild(e),document.body.appendChild(c);const p=null===(u=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((t=>{const e=t.querySelector('input[name="id"]');return e&&e.value==n})))||void 0===u?void 0:u.querySelector('button[type="submit"]');p&&p.click(),setTimeout((()=>{(0,i.js)().then((t=>t.json())).then((t=>{const e=t.items.find((t=>t.id==n)),o=e.key,r=e.quantity,l=e.properties;(0,i.CP)(o,r,l,s,a,d,!0,!0,!0)}))}),2e3)}setTimeout(e,o)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}},3330:function(t,e,o){o.d(e,{initializeGA:function(){return u},sendVideoViewEventToGA:function(){return m}});var i,r=o(2595),n=o(7732),l=o(1348);const s="Whatmore Video Shopping",a=null!==(i="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==i&&i,d={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},c={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},p={homepage:"Home Page",product_page:"Product Page"};async function u(t){if((0,l.M$H)(t)&&null!==(0,l.xIo)(t)&&(n.Ay.initialize((0,l.xIo)(t)),a&&console.debug("Whatmore: initialized GA4")),(0,l.B6P)(t)&&null!==(0,l.jWS)(t)){const e=(0,l.Gc6)(t);r.Ay.initialize((0,l.jWS)(t),{useExistingGa:e}),a&&console.debug("Whatmore: initialized GA3")}}async function m(t,e,o){(0,l.B6P)(t)&&null!==(0,l.jWS)(t)&&(r.Ay.event({category:s,action:d.video_view,label:p[e]+":"+c[o]}),a&&console.debug("Whatmore: pushed view event to GA3")),(0,l.M$H)(t)&&null!==(0,l.xIo)(t)&&(n.Ay.event({category:s,action:d.video_view+":"+p[e]+":"+c[o],value:1,nonInteraction:!1}),a&&console.debug("Whatmore: pushed view event to GA4"))}},3781:function(t,e,o){var i=o(4994);e.A=void 0;var r=i(o(9526)),n=o(4414);e.A=(0,r.default)((0,n.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarOutline")},7458:function(t,e,o){o.d(e,{P:function(){return i}});const i=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7891:function(t,e,o){var i=o(4994);e.A=void 0;var r=i(o(9526)),n=o(4414);e.A=(0,r.default)((0,n.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},7973:function(t,e,o){o.d(e,{B:function(){return l},b:function(){return n}});var i=o(1348),r=o(5830);function n(t,e=""){const o=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,i.NCy)(o)?"STRNV8MHJTF"==o?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const o=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],i=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(o)?"image":null!==r&&void 0!==r&&r.test(o)?"video":void 0}},8454:function(t,e,o){var i=o(4994);e.A=void 0;var r=i(o(9526)),n=o(4414);e.A=(0,r.default)((0,n.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarHalf")},9406:function(t,e,o){o.r(e),o.d(e,{default:function(){return W}});var i=o(9950),r=o(340),n=o(5089),l=o(5873),s=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),a=o(8603),d=o(9946),c=o(9094),p=o(1941),u=o(5830),m=o(7509),h=o(7136),y=o(1348),v=o(5551),f=o(1351),x=o(6157),g=o(6641),w=o(3080),b=o(932),P=(o(4826),o(22)),S=o(6594),j=o(7740),A=o(8538),C=o(8149),I=o(3771),N=o(3936),k=o(7035),_=o(4414);var M=function(t){var e,o,r,n,l,s,a,d,c,p,m,h,f,x,g,w,M,z,F,T,R,W,q,[E,O,V,L,H]=(0,b.A)();O*=null!==(e=t.scaleFactor)&&void 0!==e?e:1,E*=null!==(o=t.scaleFactor)&&void 0!==o?o:1;const B=(0,u.Xd)("whatmoreUITheme"),X=(0,u.Xd)("whatmoreShopId"),$=(0,u.Xd)("whatmorePrimaryFont"),U=(0,u.Xd)("whatmoreSecondaryColor"),D=(0,u.Xd)("websiteLanguage"),G=t.onClick,J=null===(r=t.isOnFocus)||void 0===r||r,Q=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,Y="portrait"===H[P.dl],Z=(Y?1.076*O*(0,y.HWj)(X):O*(0,y.N_4)(X))+"px",K=(Y?1.076*O*(0,y.HWj)(X):O*(0,y.N_4)(X))+"px",tt=(Y?.965*O*(0,y.HWj)(X):.859*O*(0,y.N_4)(X))+"px",et=(0,y.VYo)(X),{whatmoreIsPreviewMode:ot}=(0,i.useContext)(v.B),it=.25*O,rt=it+"px",nt=1.25*it+"px",[lt,st]=(0,i.useState)(t.event),[at,dt]=(0,i.useState)(),ct=null!==(l=null===(s=lt.products)||void 0===s?void 0:s.find((t=>"active"==t.product_status)))&&void 0!==l?l:null===(a=lt.products)||void 0===a?void 0:a[0],pt=Math.round(+(null===ct||void 0===ct?void 0:ct.price)),ut=Math.round(+(null===ct||void 0===ct?void 0:ct.compare_price)),mt=ut&&0!=ut&&ut>pt?Math.round((ut-pt)/ut*100):NaN,[ht,yt]=(0,i.useState)(mt),[vt,ft]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{(0,y.w4b)(X)?(0,S.fu)(lt,(0,y.NCy)(X),X).then((t=>{var e,o,i;st(t);const r=Math.round(null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.price),n=Math.round(null===t||void 0===t||null===(i=t.products[0])||void 0===i?void 0:i.compare_price),l=n&&0!=n&&n>r?Math.round((n-r)/n*100):NaN;yt(l),ft(!0)})):(async()=>{const t=await(0,C.M)(ct,(0,y.NCy)(X),X);dt(t),ft(!0)})()}),[]),(0,_.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","24px"),t.style.setProperty("margin-bottom","12px"))},style:{width:O,margin:"0 auto",cursor:"pointer",filter:J||t.isActive?void 0:"blur(2.5px) drop-shadow(0 0 20px rgba(0, 0, 0, 0.2))"},onClick:()=>{G(lt)},children:[(0,_.jsxs)("div",{style:{position:"relative",width:O,height:E,borderRadius:"round"==B?"5px":"0px",boxShadow:"round"==B?et:null,borderWidth:(0,y.YcK)(X),borderColor:(0,y.Fwt)(X),overflow:"hidden"},children:[(0,_.jsx)("div",{onClick:t=>t.stopPropagation(),style:{display:J||t.isActive?"block":"none",position:"absolute",right:6,top:6,zIndex:10},children:(0,_.jsx)(N.A,{})}),(0,_.jsx)(I.A,{height:"100%",width:"100%",url:null!==(d=null===lt||void 0===lt?void 0:lt.event_hls_url)&&void 0!==d?d:null===lt||void 0===lt?void 0:lt.thumbnail_image,isPlaying:J||Q,event:lt})]}),(0,_.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(ot?(0,y.Tr1)(X):(0,y.UmS)(X))&&(null===lt||void 0===lt||null===(c=lt.products)||void 0===c?void 0:c.length)>0&&(0,_.jsx)("div",{style:{maxHeight:nt,maxWidth:rt,minWidth:null!==ct&&void 0!==ct&&ct.thumbnail_image?rt:"0",overflow:"hidden"},children:(0,_.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,y.KZe)(X),"important")},style:{height:"100%"},src:(null===ct||void 0===ct||null===(p=ct.thumbnail_image)||void 0===p||null===(m=p.split("?"))||void 0===m?void 0:m[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,_.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.m5c)(X),"important"),t.style.setProperty("font-size",Z,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",$,"important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:(0,A.v)(null===ct||void 0===ct?void 0:ct.title)}),vt&&(0,y.Nzx)(X)&&(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,y.vw2)(X)?"row":"row-reverse",justifyContent:(0,y.vw2)(X)?"flex-start":"flex-end"},children:[(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.m5c)(X),"important"),t.style.setProperty("font-size",K,"important"),t.style.setProperty("font-family",$,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,y.i6j)(X)?"normal":"bold"},children:(0,S.Sb)(parseFloat((0,j.U)()?(null!==(h=null===at||void 0===at||null===(f=at.variants)||void 0===f||null===(x=f[0])||void 0===x?void 0:x.price)&&void 0!==h?h:null===at||void 0===at?void 0:at.price)/100:null===ct||void 0===ct?void 0:ct.price)," ",X,null===(g=lt.products[0])||void 0===g?void 0:g.currency)}),!isNaN(ut)&&ut>pt&&(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.gld)(X),"important"),t.style.setProperty("font-size",K,"important"),t.style.setProperty("font-family",$,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:0!==pt?"line-through":"none"},children:(0,S.Sb)(parseFloat((0,j.U)()?(null!==(w=null===at||void 0===at||null===(M=at.variants)||void 0===M||null===(z=M[0])||void 0===z?void 0:z.compare_at_price)&&void 0!==w?w:null===at||void 0===at?void 0:at.compare_at_price)/100:null===ct||void 0===ct?void 0:ct.compare_price)," ",X,null===(F=lt.products[0])||void 0===F?void 0:F.currency)}),"56352899156"==X&&(0,y.Nzx)(X)&&vt&&!isNaN(ht)&&0!=ht&&(0,_.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(X)?"#343434"==U?(0,y.ub$)(X):U:(0,y.ub$)(X),alignItems:"center",borderRadius:(0,y.v8m)(X)+"px",width:"fit-content",padding:"3px 4px"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.BRY)(X),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",$,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${ht}% ${null!==(T=null===k.m||void 0===k.m||null===(R=k.m[D])||void 0===R?void 0:R.off)&&void 0!==T?T:"off"}`})})]}),(J||t.isActive)&&(0,y.Nzx)(X)&&vt&&!isNaN(ht)&&0!=ht&&(0,_.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,y.ub$)(X)?"#343434"==U?(0,y.ub$)(X):U:(0,y.ub$)(X),alignItems:"center",borderRadius:(0,y.v8m)(X)+"px",width:"fit-content",padding:(0,y.Cf)(X)?"3px 6px":"0px"},children:(0,y.Cf)(X)?(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.BRY)(X),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",$,"important"))},children:`${ht}% ${null!==(W=null===k.m||void 0===k.m||null===(q=k.m[D])||void 0===q?void 0:q.off)&&void 0!==W?W:"off"}`}):(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y._zx)(X),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",(0,y.ogW)(X),"important"))},children:(0,y.rsz)(X)})})]})]})]})},z=o(1957);const F=(0,a.A)({key:"whatmore-css-hv"});function T(t){const[e,o,r]=(0,b.A)(),[n,l,s]=(0,p.A)(),a=(0,u.Xd)("whatmoreShopId"),c=t.events,m=t.onClick,g=r*(0,y.kcl)(a),w=(0,y.cbh)(a),[P,S]=(0,i.useState)(w?c.length:g),{whatmoreWidgetSourceDetails:j}=(0,i.useContext)(v.B);return(0,i.useEffect)((()=>{P<=g&&S((t=>t+g))}),[g]),(0,_.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("div",{style:{width:s,height:"fit-content"},children:(0,_.jsx)(d.RC,{slidesPerView:c.length>1?g:1,initialSlide:c.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:t=>{(0,f.UM)({userInteractionType:x.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:j}),t.realIndex>t.previousIndex&&S((t=>t+g))},loop:w,children:c.map(((t,e)=>e<=P&&(0,_.jsx)(d.qr,{children:({isActive:e,isPrev:o,isNext:i,isVisible:r})=>o||i||e?(0,_.jsx)(z.A,{isOnFocus:e&&r,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{m(t)}}):(0,_.jsx)(h.A,{})},"whatmore-event-tile-portrait-"+t.index)))})})})}function R(t){var[e,o,r,n]=(0,w.A)();const l=t.onClick,s=t.index,a=t.events,[u,m]=(0,i.useState)(6),[y,v,f]=(0,p.A)();return(0,_.jsx)("div",{className:"wht-3d-temp",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("div",{style:{width:f,height:"fit-content"},children:(0,_.jsx)(d.RC,{effect:"coverflow",slidesPerView:a.length>=5?5:a.length,slidesPerGroup:1,initialSlide:a.length>=5?2:Math.floor(a.length/2),centeredSlides:!0,onSlideChange:t=>{t.realIndex>t.previousIndex&&m((t=>t+1))},mousewheel:{forceToAxis:!0,thresholdDelta:10},modules:[c.t9,c.Vx,c.FJ],watchSlidesProgress:!0,navigation:!0,loop:!0,coverflowEffect:{rotate:0,stretch:Math.floor(.21*n),depth:100,scale:.8,modifier:1,slideShadows:!1},children:a.map(((t,e)=>e<=u&&(0,_.jsx)(d.qr,{children:({isActive:e,isPrev:o,isNext:i,isVisible:r})=>r?(0,_.jsx)(M,{isOnFocus:e&&s<0,isActive:e,playOnUnfocus:!1,animateOnFocus:!0,event:t,scaleFactor:1.3,onClick:()=>{l(t)}}):(0,_.jsx)(h.A,{})},"whatmore-event-tile-portr-"+t.index)))})})})}var W=function(t){const[e,o,a]=(0,p.A)(),[d]=(0,u.QN)("whatmoreShopId"),[c]=(0,u.QN)("whatmorePrimaryColor"),[h]=(0,u.QN)("whatmoreTitleFont"),f="portrait"==e?(0,u.Xd)("whatmoreTitleFontSizePortrait"):(0,u.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:x}=(0,i.useContext)(v.B),w=(0,u.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:b}=(0,i.useContext)(v.B),P=t.events,S=t.onClick,j=h;function A(t){S(t)}return(0,i.useEffect)((()=>{(0,g.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{l.Sn.forEach((t=>{var e;const o=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&t&&(t.style.minHeight="0px")})),(0,u.t2)("muted",!0)}),[]),delete n.Ay.styles.global,(0,_.jsx)(s.C,{value:F,children:(0,_.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,_.jsx)(r.s,{theme:n.Ay,cssVarsRoot:x,resetCSS:!1,children:(0,_.jsxs)(m.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||b?(0,_.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,_.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",j,"important"),t.style.setProperty("font-size",f+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:b?"W"!==w?w:"":t.heading})}):(0,_.jsx)(_.Fragment,{}),"landscape"===e?(0,_.jsx)(R,{index:t.index,events:P,onClick:A}):(0,_.jsx)(T,{index:t.index,events:P,onClick:A})]})})})})}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see event-click.8f73befa.chunk.js.LICENSE.txt */
2
- (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[57,262,906,907,939],{2173:function(t,e,n){const r=n(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},t.exports.currencySymbolMap=r},2209:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel")},2835:function(t,e,n){"use strict";var r=n(7891),o=n(8454),i=n(3781),u=n(5830),a=n(4414);e.A=function(t){var e;const n=(0,u.Xd)("whatmoreUITheme"),[c]=(0,u.QN)("whatmoreSecondaryColor"),[s,l]=(0,u.QN)("productRatings"),d=(0,u.Xd)("whatmorePrimaryFont"),f=t.productId,p=t.fontSize,m=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===s||"undefined"==typeof s||!(f in s)||s[f].avgRating>5)return(0,a.jsx)(a.Fragment,{});const v=s[f].avgRating,y=s[f].totalRatings;return(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(v))].map(((t,e)=>(0,a.jsx)(r.A,{sx:{color:c,fontSize:p+"px"}},"star-icon"+e))),v-Math.floor(v)>.2?(0,a.jsx)(o.A,{sx:{color:c,fontSize:p+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(i.A,{sx:{color:c,fontSize:p+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map(((t,e)=>(0,a.jsx)(i.A,{sx:{color:c,fontSize:p+"px"}},"star-outline-icon-"+e))),(0,a.jsx)("div",{children:(0,a.jsx)("div",{width:"2px"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{backgroundColor:c,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",v,"\xa0"]})})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",m,"important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+y+")"]})})]})})}},3262:function(t,e,n){"use strict";n.r(e),n.d(e,{initiateCartSliderEvent:function(){return o}});var r=n(1745);const o=async function(t,e,n,o,i="",u="",a="",c="",s="",l=""){if("STRNV8MHJTF"!=t&&"STR6HU283UZ"!=t&&"STR9T3LLEJB"!=t&&"STRWJMIOJNX"!=t&&"STRUDQ36YAC"!=t&&"STR1D5ONOZX"!=t){await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((t=>t.json()));if(null==sessionStorage.getItem("wht_atc_form")){var d;fetch(null===l||void 0===l||null===(d=l.split("?"))||void 0===d?void 0:d[0]).then((t=>t.text())).then((t=>{var e;const n=(new DOMParser).parseFromString(t,"text/html"),o=Array.from(n.querySelectorAll('form[action*="/cart/add"]')).find((t=>t.querySelector('button[type="submit"]')));let d=o.querySelector('input[name="id"]');d||(d=document.createElement("input"),d.type="hidden",d.name="id",d.value="123",o.appendChild(d)),console.log(l,"html"),sessionStorage.setItem("wht_atc_form",o.outerHTML),o.hasAttribute("data-product-id")&&o.setAttribute("data-product-id",u);const f=o.querySelector('input[name="id"]');f&&(f.setAttribute("value",i),f.hasAttribute("disabled")&&f.removeAttribute("disabled"));const p=o.querySelector('input[name="product-id"]');p&&p.setAttribute("value",u);const m=document.createElement("div");m.appendChild(o),document.body.appendChild(m),console.log(m,"formElement");const v=null===(e=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((t=>{const e=t.querySelector('input[name="id"]');return e&&e.value==i})))||void 0===e?void 0:e.querySelector('button[type="submit"]');v&&v.click(),setTimeout((()=>{(0,r.js)().then((t=>t.json())).then((t=>{const e=t.items.find((t=>t.id==i)),n=e.key,o=e.quantity,u=e.properties;(0,r.CP)(n,o,u,a,c,s,!0,!0,!0)}))}),2e3)}))}else{var f;const t=sessionStorage.getItem("wht_atc_form"),e=(new DOMParser).parseFromString(t,"text/html").querySelector('form[action*="/cart/add"]');e.hasAttribute("data-product-id")&&e.setAttribute("data-product-id",u);const n=e.querySelector('input[name="id"]');n&&(n.setAttribute("value",i),n.hasAttribute("disabled")&&n.removeAttribute("disabled"));const o=e.querySelector('input[name="product-id"]');o&&o.setAttribute("value",u);const l=document.createElement("div");l.appendChild(e),document.body.appendChild(l);const d=null===(f=Array.from(document.querySelectorAll('form[action*="/cart/add"]')).find((t=>{const e=t.querySelector('input[name="id"]');return e&&e.value==i})))||void 0===f?void 0:f.querySelector('button[type="submit"]');d&&d.click(),setTimeout((()=>{(0,r.js)().then((t=>t.json())).then((t=>{const e=t.items.find((t=>t.id==i)),n=e.key,o=e.quantity,u=e.properties;(0,r.CP)(n,o,u,a,c,s,!0,!0,!0)}))}),2e3)}setTimeout(e,n)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}},3330:function(t,e,n){"use strict";n.d(e,{initializeGA:function(){return f},sendVideoViewEventToGA:function(){return p}});var r,o=n(2595),i=n(7732),u=n(1348);const a="Whatmore Video Shopping",c=null!==(r="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==r&&r,s={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},l={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},d={homepage:"Home Page",product_page:"Product Page"};async function f(t){if((0,u.M$H)(t)&&null!==(0,u.xIo)(t)&&(i.Ay.initialize((0,u.xIo)(t)),c&&console.debug("Whatmore: initialized GA4")),(0,u.B6P)(t)&&null!==(0,u.jWS)(t)){const e=(0,u.Gc6)(t);o.Ay.initialize((0,u.jWS)(t),{useExistingGa:e}),c&&console.debug("Whatmore: initialized GA3")}}async function p(t,e,n){(0,u.B6P)(t)&&null!==(0,u.jWS)(t)&&(o.Ay.event({category:a,action:s.video_view,label:d[e]+":"+l[n]}),c&&console.debug("Whatmore: pushed view event to GA3")),(0,u.M$H)(t)&&null!==(0,u.xIo)(t)&&(i.Ay.event({category:a,action:s.video_view+":"+d[e]+":"+l[n],value:1,nonInteraction:!1}),c&&console.debug("Whatmore: pushed view event to GA4"))}},3781:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarOutline")},4669:function(){},5727:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"}),"PlayArrowRounded")},6042:function(){},6474:function(t,e,n){"use strict";n.r(e),n.d(e,{capitalize:function(){return o.A},createChainedFunction:function(){return i},createSvgIcon:function(){return u.A},debounce:function(){return a},deprecatedPropType:function(){return c},isMuiElement:function(){return d},ownerDocument:function(){return p},ownerWindow:function(){return m},requirePropFactory:function(){return v},setRef:function(){return h},unstable_ClassNameGenerator:function(){return j},unstable_useEnhancedEffect:function(){return A},unstable_useId:function(){return w},unsupportedProp:function(){return C},useControlled:function(){return P},useEventCallback:function(){return R},useForkRef:function(){return x},useIsFocusVisible:function(){return $}});var r=n(4501),o=n(1676);var i=function(...t){return t.reduce(((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)}),(()=>{}))},u=n(3059);var a=function(t,e=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{t.apply(this,r)}),e)}return r.clear=()=>{clearTimeout(n)},r};var c=function(t,e){return()=>null},s=n(9950),l=n.t(s,2);var d=function(t,e){var n,r;return s.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)};function f(t){return t&&t.ownerDocument||document}var p=f;var m=function(t){return f(t).defaultView||window};var v=function(t,e){return()=>null};function y(t,e){"function"===typeof t?t(e):t&&(t.current=e)}var h=y;var S="undefined"!==typeof window?s.useLayoutEffect:s.useEffect,A=S;let b=0;const g=l["useId".toString()];var w=function(t){if(void 0!==g){const e=g();return null!=t?t:e}return function(t){const[e,n]=s.useState(t),r=t||e;return s.useEffect((()=>{null==e&&(b+=1,n(`mui-${b}`))}),[e]),r}(t)};var C=function(t,e,n,r,o){return null};var P=function({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=s.useRef(void 0!==t),[i,u]=s.useState(e);return[o?t:i,s.useCallback((t=>{o||u(t)}),[])]};var R=function(t){const e=s.useRef(t);return S((()=>{e.current=t})),s.useRef(((...t)=>(0,e.current)(...t))).current};var x=function(...t){return s.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{y(t,e)}))}),t)};class D{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new D}start(t,e){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,e()}),t)}}let T=!0,M=!1;const L=new D,E={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function B(t){t.metaKey||t.altKey||t.ctrlKey||(T=!0)}function I(){T=!1}function N(){"hidden"===this.visibilityState&&M&&(T=!0)}function F(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return T||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!E[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}var $=function(){const t=s.useCallback((t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",B,!0),e.addEventListener("mousedown",I,!0),e.addEventListener("pointerdown",I,!0),e.addEventListener("touchstart",I,!0),e.addEventListener("visibilitychange",N,!0))}),[]),e=s.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!F(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(M=!0,L.start(100,(()=>{M=!1})),e.current=!1,!0)},ref:t}};const j={configure:t=>{r.A.configure(t)}}},7229:function(){},7458:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});const r=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7891:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},7973:function(t,e,n){"use strict";n.d(e,{B:function(){return u},b:function(){return i}});var r=n(1348),o=n(5830);function i(t,e=""){const n=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,r.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function u(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(n)?"image":null!==o&&void 0!==o&&o.test(n)?"video":void 0}},8454:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarHalf")},8558:function(t){t.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},9130:function(){},9211:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}n.d(e,{A:function(){return o}});var o=function t(e,n){function o(t,o,i){if("undefined"!==typeof document){"number"===typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var a in i)i[a]&&(u+="; "+a,!0!==i[a]&&(u+="="+i[a].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+u}}return Object.create({set:o,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),u=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(r[a]=e.read(u,a),t===a)break}catch(c){}}return t?r[t]:r}},remove:function(t,e){o(t,"",r({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,r({},this.attributes,e))},withConverter:function(e){return t(r({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},9526:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6474)},9733:function(){}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[774],{22:function(t,e,i){i.d(e,{$S:function(){return d},_:function(){return n},b4:function(){return r},dl:function(){return o},nN:function(){return l},tn:function(){return c},vF:function(){return a}});const n="device_type",o="device_mode",r="mobile",a="tablet",d="desktop",c="portrait",l="landscape"},932:function(t,e,i){var n=i(5830),o=i(1941),r=i(22),a=i(1348);e.A=function(t){const[e,i,d]=(0,o.A)(),[c]=(0,n.QN)("whatmoreLandscapePadding"),[l]=(0,n.QN)("whatmoreShopId"),[s]=(0,n.QN)("whatmoreVideoTileSize"),[u]=(0,n.QN)("whatmoreVideoTileSizePortrait"),p=d>=1025,h="portrait"==e?u:s,v=!("portrait"!=e||!(d>=481)),f=h/100*1.3*.5,w=h/100;var m=Math.min(d,i),[g,x,_,b]=[.6*m*(16/9),.6*m,1.4,0];function E(t){return Math.round(10*t)/10}var y={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const t=x*f,e=g*f;[g,x,_,b]=[e,t,(d-2*c-2*(0,a.$du)(l))/(1.1*t),c],y[r._]=r.$S,y[r.dl]=r.nN}else if(v){var S=.8*x,I=.8*g;"portrait"==e?(S*=w,I*=w,[g,x,_,b]=[I,S,E(d/(1.2*S)),0],y[r._]=r.vF,y[r.dl]=r.tn):([g,x,_,b]=[I,S,(d-2*c)/(1.1*S),c],y[r._]=r.vF,y[r.dl]=r.nN)}else{S=x,I=g;"portrait"==e?(S=S*w*.9,I=I*w*.9,[g,x,_,b]=[I,S,E(d/(1.15*S)),0],y[r._]=r.b4,y[r.dl]=r.tn):(S=.7*x,I=.7*g,[g,x,_,b]=[I,S,(d-2*c)/(1.1*S),c],y[r._]=r.b4,y[r.dl]=r.nN)}return[g,x,_,b,y]}},1351:function(t,e,i){i.d(e,{PG:function(){return d},kz:function(){return c},UM:function(){return s},yP:function(){return u},DG:function(){return l}});var n=i(1348),o=i(6157);function r(t,e,i={},n){var r;const a=d[t];if(!a)return;const c=a.isActionEnabled(),l=null===n||void 0===n||null===(r=n.meta_actions)||void 0===r?void 0:r[a.customAction];(c||l)&&"function"==typeof fbq&&(async()=>{const n={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===o.O.VIDEO_PLAYBACK&&{watch_time:i.watch_time,video_duration:i.video_duration}};fbq("trackCustom",a.action,n),l&&setTimeout((()=>{null===l||void 0===l||l.forEach((t=>{fbq("trackCustom",t,n)}))}),500)})()}var a=i(7145);const d={[o.O.EVENT_VIEW]:{isActionEnabled:n.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[o.O.VIDEO_PLAYBACK]:{isActionEnabled:n.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[o.O.VIDEO_LIKED]:{isActionEnabled:n.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[o.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:n.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[o.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[o.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function c({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:c}){var l;(0,a.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:c}),t in d&&r(t,null!==(l=null===o||void 0===o?void 0:o[1])&&void 0!==l?l:null===o||void 0===o?void 0:o[0],e,n)}function l({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:c}){var l;(0,a.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:c}),t in d&&r(t,null!==(l=null===o||void 0===o?void 0:o[1])&&void 0!==l?l:null===o||void 0===o?void 0:o[0],e,n)}function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:r}){(0,a.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:r})}function u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:r}){(0,a.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:r})}},3389:function(t,e,i){i.r(e);var n=i(9950),o=i(1348),r=i(964),a=i(5830),d=i(140),c=i(4533),l=i(5901),s=i(1085),u=i(6613),p=i(3330),h=(i(3262),i(572)),v=i(8603),f=i(2039),w=i(4833),m=i(5551),g=i(1351),x=i(6157),_=i(2979),b=i(6641),E=i(8945),y=i(9821),S=i(69),I=i(4414);const A=(0,v.A)({key:"whatmore-css-ppv"}),j=n.lazy((()=>Promise.all([i.e(304),i.e(946),i.e(437),i.e(451),i.e(987),i.e(669),i.e(413),i.e(592)]).then(i.bind(i,6413)))),L=n.lazy((()=>i.e(374).then(i.bind(i,5100))));function P(t){return t.split(/[?#]/)[0]}e.default=function(t){const[e,i]=(0,n.useState)(),[v,N]=(0,n.useState)(),[T]=(0,a.QN)("isInDesignMode"),[C]=(0,a.QN)("isDemoBrand"),[D]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[O,k]=(0,n.useState)(-2),[z]=(0,a.QN)("whatmoreVariantId"),[V]=(0,a.QN)("whatmoreShopId");var[M]=(0,a.QN)("whatmoreProductId");const Q=(0,a.Xd)("isLandingSharedLink"),F=(0,a.Xd)("whatmoreShareTemplateId"),R=(0,a.Xd)("whatmoreShareEventId"),$=Q&&"template-embed"===(0,w.Mm)(F),[K,W]=(0,n.useState)($);M=(0,o.BcY)(V)?"STRR72TX6AT"==V?function(){var t;const e=null===(t=window.location.pathname)||void 0===t?void 0:t.split("/");return e[e.length-1]}():P(window.location.href):M;const[B,U]=(0,n.useState)((()=>"true"===D?z:M));var H=r.$$+"/v2/brand/"+V+"/product-events";const{whatmoreWidgetSourceDetails:X}=(0,n.useContext)(m.B);(0,n.useEffect)((()=>{(0,p.initializeGA)(V),(0,b.Fk)("Video shopping powered by Whatmore!"),(0,c.wm)()}),[]),(0,n.useEffect)((()=>{null==e||0==e.length||v||!(0,u.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,y._)()?(0,s.Pc)(s.F5):(0,S.bi)())}),[e]),(0,n.useEffect)((()=>{if(k(-1),(0,o.WH1)(V)){const t=`${r.$$}/v2/brand/${V}/product-events/recommendation`,e=(0,o.buK)(V);fetch(`${t}?client_product_id=${B}&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})));i([...n,...r])}else i([])})).catch((t=>N(t.message)))}else fetch(H.toString()+"?client_product_id="+B.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((t=>t.json())).then((t=>t.events)).then((t=>(null!=t&&0!=t.length&&(0,o.vfi)(V)&&(0,o.YOR)(t),i(t),t))).then((t=>((0,o.Uht)(V)&&function(t,e){setTimeout((async()=>{const i=t.reduce(((t,e)=>[...t,...e.products]),[]).filter((t=>t.client_product_id==e))[0];if(!i||i.product_link==P(window.location.href))return;const n={product_id:i.product_id,product_link:P(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})}),500)}(t,B),t))).catch((t=>{N(t.message)}))}),[B]),(0,n.useEffect)((()=>{var t,i;k(-2),(e&&e.length>0||(0,o.WKl)(V))&&(0,g.yP)({userInteractionType:x.O.PDP_VISITED,widgetSourceDetails:X,event:null===e||void 0===e?void 0:e[0],productList:null===e||void 0===e||null===(t=e[0])||void 0===t?void 0:t.products,ctaList:null===e||void 0===e||null===(i=e[0])||void 0===i?void 0:i.cta})}),[e]),(0,n.useEffect)((()=>{const t=P(window.location.href);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 i=history.replaceState;history.replaceState=function(){let t=i.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"==V&&window.location.origin+window.location.pathname!=t&&fetch(window.location.origin+window.location.pathname+".json").then((t=>t.json())).then((t=>{var e;return U(null===t||void 0===t||null===(e=t.product)||void 0===e?void 0:e.id)})),"true"===D){const t=function(t){for(var e=window.location.search.substring(1).split("&"),i=0;i<e.length;i++){var n=e[i].split("=");if(n[0]==t)return n[1]}return!1}("variant");t&&""!==t&&U(t)}}))}),[]),(0,n.useEffect)((()=>{if(null!=e&&0!==e.length&&!v&&$&&((0,E.H)("whatmore-video-player",(()=>{W(!1)})),null!=R)){const t=e.find((t=>R==t.event_id));if(t)return void q(t,!0,e.indexOf(t))}}),[e]);const Y=X.landingLocationType,G=X.templateType,q=async(t,e=!1,i=0)=>{if((0,u.MN)()&&!e&&await((0,y._)()?(0,s.bo)():(0,S.bi)()),(0,f.ij)(t)||(0,f.Il)(t))return T||C||(async()=>{const e=(0,w.Wd)(Y)+(0,w.gf)(G)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,d.lB)(t),(0,p.sendVideoViewEventToGA)(V,r.DK,r.K1),(0,c.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),void k(i)};function J(){return(0,I.jsx)(I.Fragment,{})}return null==e||0==e.length||v||(0,w.Ig)(X.templateType)?(0,I.jsx)("div",{}):(0,I.jsxs)(h.C,{value:A,children:[K&&(0,I.jsx)(L,{}),"no-product"===B||-1===O||0===e.length?(0,I.jsx)(J,{}):-2===O&&e.length>0?(0,I.jsx)("div",{children:(0,I.jsx)(_.S,{userInteractionType:x.O.PDP_POPUP_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!T&&!C,children:(0,I.jsx)(l.A,{event:e[0],inVideoClick:q,closeClick:t=>{var i;t.stopPropagation(),k(-1),(0,g.kz)({userInteractionType:x.O.PDP_POPUP_CLOSED,widgetSourceDetails:X,event:null===e||void 0===e?void 0:e[0],productList:null===e||void 0===e||null===(i=e[0])||void 0===i?void 0:i.products})}})})}):(0,I.jsx)("div",{children:(0,I.jsx)(n.Suspense,{children:(0,I.jsx)(_.S,{userInteractionType:x.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!T&&!C,children:(0,I.jsx)(j,{events:e,index:O,onBack:function(){k(-2),W(!1)},template:"template-product-page"})})})})]})}},5901:function(t,e,i){i.d(e,{A:function(){return m}});var n=i(1005),o=i(9950),r=i(9879),a=i(22),d=i(5830),c=i(932);var l=function(t){const[e,i,n,o,r]=(0,c.A)(),[l]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[s]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.dl]===a.nN?s/100:l/100*1.2;return[e*u,i*u,r]},s=i(5727),u=i(1628),p=i.n(u),h=i(2209),v=i(6702),f=(i(9733),i(4365),i(1348)),w=i(4414);var m=function(t){var e;const i=o.useRef(null);var[c,u,m]=l();const g=(0,d.Xd)("whatmoreUITheme"),[x]=(0,d.QN)("whatmoreEmbedAppVideoTitle"),[_]=(0,d.QN)("whatmoreEmbedAppPositionPortrait"),[b]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[y]=(0,d.QN)("whatmoreEmbedAppPositionLandscape"),[S]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[I]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),A=(0,d.Xd)("whatmoreShopId"),j=(0,d.Xd)("isWhatmorePreviewMode");var L=_,P=b,N=E;m[a.dl]===a.nN&&(L=y,P=S,N=I);const[T,C]=(0,o.useState)(["initial",window.pageYOffset]),[D,O]=(0,o.useState)(!1),k=null!==(e=t.isSpotlight)&&void 0!==e&&e,z=m[a.dl]===a.nN?.7*(0,f.O86)(A):(0,f.O86)(A),V=k?z:1;c*=V,u*=V;const M=k?(0,f.LrK)(A):L,Q=k?(0,f._2D)(A):(0,f.GSq)(A),[F,R]=(0,o.useState)(!k&&(0,f.n8Q)(A));function $(t,e){C(t),t[1]<=100?O(!1):e!=D&&(O(e),R(!1))}(0,o.useEffect)((()=>{let t=window.pageYOffset,e=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-t)<100||($([i>t?"scrolled-down":"scrolled-up",i],!0),t=i>0?i:0),e=!1},n=()=>{e||(window.requestAnimationFrame(i),e=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[T]),(0,n.j)({ref:i,handler:()=>{$(["scrolled-up",T[1]],!0)}});const K=t.event,W=t.inVideoClick,B=t.closeClick,U=.3*u,H=.6*u,X=.1*u,Y=.1*(.5*u),G="round"==g?"10px":"0px",q=(0,f.GvQ)(A);var J=!1,Z=0,tt=0;function et(t){J=t}return(0,w.jsx)("div",{className:"wht-popup",children:F&&!Q?(0,w.jsx)(w.Fragment,{}):D&&Q?(0,w.jsx)("div",{style:"left"===M?{left:"1px",bottom:k?(0,f.pUQ)(A)+"px":N+"px",position:"fixed",zIndex:q}:{right:"5px",bottom:k?(0,f.pUQ)(A)+"px":N+"px",position:"fixed",zIndex:q},children:(0,w.jsxs)("div",{onClick:()=>{$(["initial",T[1]],!1)},style:{margin:"1px",width:u+"px",height:c+"px"},className:"left"===M?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.A,{url:K.thumbnail_image,isPlaying:!1,event:K})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,w.jsx)(h.A,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:U+"px"},style:{position:"relative",zIndex:1,left:Y+"px",bottom:Y+"px"},onClick:B})})}),(0,w.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(v.A,{sx:{color:"white",fontSize:2*U+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,w.jsx)(p(),{nodeRef:i,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 i,n;i=e.x,n=e.y,Z=i,tt=n},onDrag:(t,e)=>{et(!0)},onStop:(t,e)=>{J&&(Math.abs(e.x-Z)>5||Math.abs(e.y-tt)>5)?et(!1):W(K)},children:(0,w.jsx)("div",{ref:i,style:"left"===M?{left:k?(0,f.D2A)(A)+"px":P+"px",bottom:k?(0,f.pUQ)(A)+"px":N+"px",position:"fixed",zIndex:q}:{right:k?(0,f.D2A)(A)+"px":P+"px",bottom:k?(0,f.pUQ)(A)+"px":N+"px",position:"fixed",zIndex:q},children:(0,w.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:t.isSpotlight&&"60122562760"==A?c+"px":u+"px",height:t.isSpotlight&&"60122562760"==A?u+"px":c+"px"}),className:"left"===M?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==A?16/9:9/16},children:(0,w.jsx)(r.A,{url:K.thumbnail_image,isMuted:!0,isPlaying:!0,event:K})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)(h.A,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:U+"px"},onClick:B,style:{position:"relative",zIndex:1,left:X+"px",bottom:X+"px"}})}),(0,w.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,w.jsx)(s.A,{sx:{color:(0,f.KFN)(A),fontSize:H+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,w.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:G,borderBottomRightRadius:G,backgroundImage:x?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,w.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*U+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",x]})})]})})]})})})})}},6649:function(t,e,i){var n=i(9950);e.A=({triggerOnce:t=!1,root:e=null,rootMargin:i="0px",threshold:o=0}={})=>{const[r,a]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),l=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const n=new IntersectionObserver(((e,i)=>{e.forEach((e=>{c(e),e.isIntersecting?(a(!0),t&&i.disconnect()):t||a(!1)}))}),{root:e,rootMargin:i,threshold:o});return l.current&&n.observe(l.current),()=>{n.disconnect()}}),[t,e,i,o]),[l,r,d]}},8945:function(t,e,i){function n(t,e){let i=0;let n=new MutationObserver((function(){document.querySelector("."+t)?(e(),n.disconnect()):0==i&&(i=1,setTimeout((()=>{e(),n.disconnect()}),8e3))}));n.observe(document.body,{childList:!0,subtree:!0})}i.d(e,{H:function(){return n}})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[365,717],{22:function(t,e,a){a.d(e,{$S:function(){return r},_:function(){return i},b4:function(){return s},dl:function(){return n},nN:function(){return c},tn:function(){return l},vF:function(){return o}});const i="device_type",n="device_mode",s="mobile",o="tablet",r="desktop",l="portrait",c="landscape"},932:function(t,e,a){var i=a(5830),n=a(1941),s=a(22),o=a(1348);e.A=function(t){const[e,a,r]=(0,n.A)(),[l]=(0,i.QN)("whatmoreLandscapePadding"),[c]=(0,i.QN)("whatmoreShopId"),[_]=(0,i.QN)("whatmoreVideoTileSize"),[d]=(0,i.QN)("whatmoreVideoTileSizePortrait"),p=r>=1025,m="portrait"==e?d:_,u=!("portrait"!=e||!(r>=481)),h=m/100*1.3*.5,f=m/100;var v=Math.min(r,a),[b,y,w,g]=[.6*v*(16/9),.6*v,1.4,0];function k(t){return Math.round(10*t)/10}var x={DEVICE_TYPE:s.b4,DEVICE_MODE:s.tn};if(p){const t=y*h,e=b*h;[b,y,w,g]=[e,t,(r-2*l-2*(0,o.$du)(c))/(1.1*t),l],x[s._]=s.$S,x[s.dl]=s.nN}else if(u){var j=.8*y,A=.8*b;"portrait"==e?(j*=f,A*=f,[b,y,w,g]=[A,j,k(r/(1.2*j)),0],x[s._]=s.vF,x[s.dl]=s.tn):([b,y,w,g]=[A,j,(r-2*l)/(1.1*j),l],x[s._]=s.vF,x[s.dl]=s.nN)}else{j=y,A=b;"portrait"==e?(j=j*f*.9,A=A*f*.9,[b,y,w,g]=[A,j,k(r/(1.15*j)),0],x[s._]=s.b4,x[s.dl]=s.tn):(j=.7*y,A=.7*b,[b,y,w,g]=[A,j,(r-2*l)/(1.1*j),l],x[s._]=s.b4,x[s.dl]=s.nN)}return[b,y,w,g,x]}},5901:function(t,e,a){a.d(e,{A:function(){return v}});var i=a(1005),n=a(9950),s=a(9879),o=a(22),r=a(5830),l=a(932);var c=function(t){const[e,a,i,n,s]=(0,l.A)(),[c]=(0,r.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[_]=(0,r.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),d=s[o.dl]===o.nN?_/100:c/100*1.2;return[e*d,a*d,s]},_=a(5727),d=a(1628),p=a.n(d),m=a(2209),u=a(6702),h=(a(9733),a(4365),a(1348)),f=a(4414);var v=function(t){var e;const a=n.useRef(null);var[l,d,v]=c();const b=(0,r.Xd)("whatmoreUITheme"),[y]=(0,r.QN)("whatmoreEmbedAppVideoTitle"),[w]=(0,r.QN)("whatmoreEmbedAppPositionPortrait"),[g]=(0,r.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[k]=(0,r.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[x]=(0,r.QN)("whatmoreEmbedAppPositionLandscape"),[j]=(0,r.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[A]=(0,r.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),S=(0,r.Xd)("whatmoreShopId"),N=(0,r.Xd)("isWhatmorePreviewMode");var I=w,E=g,R=k;v[o.dl]===o.nN&&(I=x,E=j,R=A);const[P,C]=(0,n.useState)(["initial",window.pageYOffset]),[L,z]=(0,n.useState)(!1),D=null!==(e=t.isSpotlight)&&void 0!==e&&e,T=v[o.dl]===o.nN?.7*(0,h.O86)(S):(0,h.O86)(S),M=D?T:1;l*=M,d*=M;const F=D?(0,h.LrK)(S):I,O=D?(0,h._2D)(S):(0,h.GSq)(S),[K,Q]=(0,n.useState)(!D&&(0,h.n8Q)(S));function V(t,e){C(t),t[1]<=100?z(!1):e!=L&&(z(e),Q(!1))}(0,n.useEffect)((()=>{let t=window.pageYOffset,e=!1;const a=()=>{const a=window.pageYOffset;Math.abs(a-t)<100||(V([a>t?"scrolled-down":"scrolled-up",a],!0),t=a>0?a:0),e=!1},i=()=>{e||(window.requestAnimationFrame(a),e=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[P]),(0,i.j)({ref:a,handler:()=>{V(["scrolled-up",P[1]],!0)}});const B=t.event,H=t.inVideoClick,q=t.closeClick,W=.3*d,G=.6*d,X=.1*d,J=.1*(.5*d),U="round"==b?"10px":"0px",Y=(0,h.GvQ)(S);var $=!1,Z=0,tt=0;function et(t){$=t}return(0,f.jsx)("div",{className:"wht-popup",children:K&&!O?(0,f.jsx)(f.Fragment,{}):L&&O?(0,f.jsx)("div",{style:"left"===F?{left:"1px",bottom:D?(0,h.pUQ)(S)+"px":R+"px",position:"fixed",zIndex:Y}:{right:"5px",bottom:D?(0,h.pUQ)(S)+"px":R+"px",position:"fixed",zIndex:Y},children:(0,f.jsxs)("div",{onClick:()=>{V(["initial",P[1]],!1)},style:{margin:"1px",width:d+"px",height:l+"px"},className:"left"===F?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,f.jsx)(s.A,{url:B.thumbnail_image,isPlaying:!1,event:B})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,f.jsx)(m.A,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:W+"px"},style:{position:"relative",zIndex:1,left:J+"px",bottom:J+"px"},onClick:q})})}),(0,f.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,f.jsx)(u.A,{sx:{color:"white",fontSize:2*W+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(p(),{nodeRef:a,cancel:".activate-button,.close-btn",bounds:N?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(t,e)=>{var a,i;a=e.x,i=e.y,Z=a,tt=i},onDrag:(t,e)=>{et(!0)},onStop:(t,e)=>{$&&(Math.abs(e.x-Z)>5||Math.abs(e.y-tt)>5)?et(!1):H(B)},children:(0,f.jsx)("div",{ref:a,style:"left"===F?{left:D?(0,h.D2A)(S)+"px":E+"px",bottom:D?(0,h.pUQ)(S)+"px":R+"px",position:"fixed",zIndex:Y}:{right:D?(0,h.D2A)(S)+"px":E+"px",bottom:D?(0,h.pUQ)(S)+"px":R+"px",position:"fixed",zIndex:Y},children:(0,f.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:t.isSpotlight&&"60122562760"==S?l+"px":d+"px",height:t.isSpotlight&&"60122562760"==S?d+"px":l+"px"}),className:"left"===F?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==S?16/9:9/16},children:(0,f.jsx)(s.A,{url:B.thumbnail_image,isMuted:!0,isPlaying:!0,event:B})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)(m.A,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:W+"px"},onClick:q,style:{position:"relative",zIndex:1,left:X+"px",bottom:X+"px"}})}),(0,f.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,f.jsx)(_.A,{sx:{color:(0,h.KFN)(S),fontSize:G+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,f.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:U,borderBottomRightRadius:U,backgroundImage:y?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,f.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*W+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",y]})})]})})]})})})})}},6018:function(t,e,a){a.d(e,{bannerData:function(){return s},eventsData:function(){return i},n:function(){return o},storiesData:function(){return n}});const i=[{event_id:2333,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:204,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/sadabahaar-chanderi-suit-set",client_product_id:"6780183806018",price:"2800.00",currency:"INR",title:"Sadabahaar Chanderi Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/products/5_72f81f91-e027-4497-9dfe-20480b862c54.jpg?v=1684509430",compare_price:"6999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:1,event_state:"ready",poster_image:null,total_views:37,total_like:1,total_share:0,total_whatsapp:0},{event_id:2335,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:2108,brand:"whatmore-dev",product_link:"https://www.ordinaree.com/products/grease-black-designer-blackless-long-dress-for-women-online",client_product_id:"7210211311652",price:"5040.00",currency:"INR",title:"Grease Backless Long Dress",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0106/4897/7444/products/DSC_0377_45ee56eb-1240-4a17-9332-841809f132cf.jpg?v=1673001396",compare_price:"5600.00",product_metadata:null,product_status:"active"},{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:4,event_state:"ready",poster_image:null,total_views:31,total_like:0,total_share:0,total_whatsapp:0},{event_id:2336,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:632,brand:"whatmore-dev",product_link:"https://www.meerasplussizestore.com/products/basil-brick-ajrakh-handblock-printed-kurta",client_product_id:"6864880173194",price:"876.00",currency:"INR",title:"Basil & Brick Ajrakh Handblock Printed Kurta",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0363/0075/0986/products/Dark-Green-Maroon-Pati-Ajrakh-Kurti-SCL_6948.jpg?v=1653729466",compare_price:"2190.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:5,event_state:"ready",poster_image:null,total_views:21,total_like:0,total_share:0,total_whatsapp:0},{event_id:2338,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1728,brand:"whatmore-dev",product_link:"https://suta.in/products/ratri-kamal",client_product_id:"6916488003649",price:"4200.00",currency:"INR",title:"Ratri kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/ratri-kamal-293774.jpg?v=1668084259",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1732,brand:"whatmore-dev",product_link:"https://suta.in/products/kedar-ki-dor-blouse",client_product_id:"6625859502145",price:"4200.00",currency:"INR",title:"Kedar Ki Dor",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/files/DSC01009.jpg?v=1712326816",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1736,brand:"whatmore-dev",product_link:"https://suta.in/products/swarna-kamal",client_product_id:"6916483317825",price:"4200.00",currency:"INR",title:"Swarna Kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/swarna-kamal-472043.jpg?v=1668093054",compare_price:null,product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_496a26de-50cd-4823-8731-a97e0757efcf.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_496a26de-50cd-4823-8731-a97e0757efcf.mp4?v=1677477938",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:6,event_state:"ready",poster_image:null,total_views:28,total_like:0,total_share:0,total_whatsapp:0},{event_id:3255,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:3636,brand:"whatmore-dev",product_link:"https://buysohi.com/products/sohear8383",client_product_id:"7679599771864",price:"543.00",currency:"INR",title:"Gold Plated Pearl Stud",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0626/0218/2872/products/SS22_SOHEAR8383_1.jpg?v=1651755514",compare_price:"1699.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-01-24",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b0045891-f042-47d4-a87a-187c96a1857e.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b0045891-f042-47d4-a87a-187c96a1857e.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:7,event_state:"ready",poster_image:null,total_views:36,total_like:1,total_share:3,total_whatsapp:0},{event_id:3877,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-03",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_CoH_liSAYOj.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_CoH_liSAYOj_b1999a62-134d-4301-9808-5d09e64a8979.mp4?v=1677477812",presenter_email:null,presenter_phone:null,room_id:null,event_type:"video",is_active:!0,rank:20,event_state:"ready",poster_image:null,total_views:16,total_like:0,total_share:0,total_whatsapp:0},{event_id:4188,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:4459,brand:"whatmore-dev",product_link:"https://theethnic.co/products/black-ruching-jacket-kurta-set",client_product_id:"8011323769076",price:"7499.00",currency:"INR",title:"Black Ruching Jacket Kurta Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0650/7937/8164/products/1_5102cd2e-a419-4682-abf1-d9619e6e96d7.jpg?v=1674275880",compare_price:"9999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-07",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_c398aa0e-f0ac-4aba-91f5-4b1bcc5b1d51.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_7acda7d8-9762-47c7-9ee2-35e14db4c3fb.mp4?v=1677477803",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:23,event_state:"ready",poster_image:null,total_views:8,total_like:0,total_share:1,total_whatsapp:0},{event_id:28701,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:364,cta_link:"https://lovechild.in/collections/fragrances",client_cta_id:"https://lovechild.in/collections/fragrances",cta_title:"Explore",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-10",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",discount_coupon_image:"",event_hls_url:"https://d1zl4k1t5o4s75.cloudfront.net/whatmoredev/1080p_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:57,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:28767,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-11",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973716",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973708",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:58,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:48,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:24,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/evil-eye-adjustable-ring-gold",client_product_id:"6923301748874",price:"1250.00",currency:"INR",title:"Evil Eye adjustable ring - Gold",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/WhatsAppImage2020-09-21at11.38.01AM_1_700x_c51dd690-b6d8-4059-b3e0-13a2edf3feea.jpg?v=1656673474",compare_price:"1300",product_metadata:null,product_status:"active"},{product_id:23,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/rose-water-200ml",client_product_id:"6923319771274",price:"250.00",currency:"INR",title:"ROSE WATER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/RoseWaterFront-01_250x_2x_c4cd34f3-625d-463a-bf36-3b159322b7ed.png?v=1656673764",compare_price:null,product_metadata:null,product_status:"active"},{product_id:21,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923307647114",price:"1300.00",currency:"INR",title:"HONEY & LEMON FACE CLEANSER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/C5D_9156-01_250x_2x_2f91ab64-e5a4-42f1-baf3-5f3ecffb2b50_1.png?v=1656673584",compare_price:"1340",product_metadata:null,product_status:"active"},{product_id:22,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923317051530",price:"350.00",currency:"INR",title:"HONEY AND ROSE BODY CREAM 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/2_250x_2x_47ffd4b3-4100-4afb-b4c8-a09867e40ddb.png?v=1656673726",compare_price:null,product_metadata:null,product_status:"active"}],cta:[{cta_id:73,cta_link:"https://honeyandspice.in/collections/central-indian",client_cta_id:"https://honeyandspice.in/collections/central-indian",cta_title:"Shop Now",thumbnail_image:"",cta_type:""}],title:"BTS of HoneyAndSpice",description:"",brand:"whatmore-dev",scheduled_date:"2023-08-10",status:"upcoming",start_time:"19:00",end_time:"20:00",actual_start_time:null,actual_end_time:null,presenter_name:"Honey and Spice",thumbnail_image:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-01942fec-68a5-4417-aa28-a0bff121a3ec.mp4",discount_coupon_image:"",event_hls_url:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-2f0d18e6-a519-4e70-b8b3-529b90a04c28.mp4",presenter_email:null,presenter_phone:"+919888988889",room_id:null,event_type:"video",is_active:!0,rank:59,event_state:"ready",poster_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0},{event_id:33888,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937498",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937490",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:60,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2b78b138-b18f-45e3-b8dc-6ce59075872f.webp?v=1708937505",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33890,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937809",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937801",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:61,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.webp?v=1708937816",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33947,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947355",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947347",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:62,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_81844dee-68c7-425e-96bf-d3ac63c664e7.webp?v=1708947362",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41975,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:482,cta_link:"https://tests.com",client_cta_id:"https://tests.com",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:69,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_51411814-cff2-491f-aca3-303e84307049.webp?v=1714033531",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41976,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:481,cta_link:"https://test1231.com",client_cta_id:"https://test1231.com",cta_title:" ",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:70,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_c2a47941-cafb-4765-ac6c-d6414679c6bd.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41977,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033513",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:71,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_a0f26d1d-462b-4548-848c-806702cf9c95.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0}],n=[{event_id:51771,storyset_id:2428,storyset_name:"Jordan 11",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_d717c269-b583-49c1-a824-fbff481d4bcf.webp?v=1717565002",storyset_event_rank:1,storyset_dynamic_thumbnail:!0,products:[{product_id:45352,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/air-jordan-11-retro-low-black-varsity-royal",client_product_id:"8172829409418",price:"150.00",currency:null,title:'Air Jordan 11 Retro Low "Black/Varsity Royal"',description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-jordan-11-retro-low-black-varsity-royal-big-kids-shoes-Fw0r7C_5.webp?v=1717415768",compare_price:"13000.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:981,cta_link:"https://www.youtube.com/watch?v=o8MPzuKa0kk",client_cta_id:"https://www.youtube.com/watch?v=o8MPzuKa0kk",cta_title:"yt video",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-05",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_6179c4ad-b50b-46ec-bea7-c295f194ee65.mp4?v=1717564356",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_6179c4ad-b50b-46ec-bea7-c295f194ee65.mp4?v=1717564349",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!1,rank:58,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_6179c4ad-b50b-46ec-bea7-c295f194ee65.webp?v=1717564363",gif_image:null,total_views:73,total_like:1,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:62737,storyset_id:2428,storyset_name:"Jordan 11",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_d717c269-b583-49c1-a824-fbff481d4bcf.webp?v=1717565002",storyset_event_rank:5,storyset_dynamic_thumbnail:!0,products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-07-18",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2oouab8j9eigo.cloudfront.net/whatmoredev/f4a0bd71-f845-4b7e-b33d-2ef49e8eb7e9.webp",discount_coupon_image:"",event_hls_url:"https://d2oouab8j9eigo.cloudfront.net/whatmoredev/f4a0bd71-f845-4b7e-b33d-2ef49e8eb7e9.webp",presenter_email:null,presenter_phone:"",room_id:null,event_type:"image",is_active:!0,rank:71,event_state:"ready",poster_image:null,gif_image:null,total_views:11,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:51761,storyset_id:2430,storyset_name:"86 OG",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_ed308ae1-2b51-4645-8887-3eb91e132c0f.mp4?v=1724150740",storyset_event_rank:3,storyset_dynamic_thumbnail:!0,products:[{product_id:45596,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/nike-air-max-1-86-og",client_product_id:"8177839865994",price:"160.00",currency:null,title:"Nike Air Max 1 '86 OG",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-max-1-86-og-mens-shoes-gKcnc4_1.jpg?v=1717563099",compare_price:"180.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-05",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_2a1b2831-f396-4ca6-b2af-4e4d2cc8c7af.mp4?v=1724151068",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_8fca9eb3-61f6-43c7-bcb2-8907829984d9.mp4?v=1717564355",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!1,rank:61,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_8fca9eb3-61f6-43c7-bcb2-8907829984d9.webp?v=1717564369",gif_image:null,total_views:38,total_like:1,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:54146,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:1,storyset_dynamic_thumbnail:!0,products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-14",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_f4832882-abae-4211-81b1-864bb4454ec5.mp4?v=1718369029",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_f4832882-abae-4211-81b1-864bb4454ec5.mp4?v=1718369021",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:36,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_f4832882-abae-4211-81b1-864bb4454ec5.webp?v=1718369036",gif_image:null,total_views:58,total_like:2,total_share:1,total_whatsapp:0,in_stock:!0},{event_id:51764,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:2,storyset_dynamic_thumbnail:!0,products:[{product_id:45595,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/nike-air-force-1-07-lv8",client_product_id:"8177876074634",price:"125.00",currency:null,title:"Nike Air Force 1 '07 LV8",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-force-1-07-lv8-mens-shoes-CgLD9b_1.webp?v=1717564002",compare_price:"150.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-05",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_ae3074b5-de26-4ab0-ac18-cfc72dfe8abb.mp4?v=1717564353",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_ae3074b5-de26-4ab0-ac18-cfc72dfe8abb.mp4?v=1717564346",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!1,rank:59,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_ae3074b5-de26-4ab0-ac18-cfc72dfe8abb.webp?v=1717564360",gif_image:null,total_views:10,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:54144,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:3,storyset_dynamic_thumbnail:!0,products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-14",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_b2df1a7d-e4fc-4947-823a-32d905e3dd65.mp4?v=1718369027",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_b2df1a7d-e4fc-4947-823a-32d905e3dd65.mp4?v=1718369020",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:34,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_b2df1a7d-e4fc-4947-823a-32d905e3dd65.webp?v=1718369034",gif_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:54145,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:4,storyset_dynamic_thumbnail:!0,products:[{product_id:49151,brand:"whatmore-dev",product_link:"https://mymoonstruck.com/products/multi-color-floral-print-front-mid-waist-cut-maxi",client_product_id:"8451541336276",price:"1999.00",currency:"INR",title:"Mid-Waist Cut Maxi Dress with Multi-Color Floral Print",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0214/9724/9892/files/044A5356.jpg?v=1717840649",compare_price:"3499.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-14",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_2f9f937f-690d-4924-9151-b10e11ef8885.mp4?v=1718369034",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_2f9f937f-690d-4924-9151-b10e11ef8885.mp4?v=1718369026",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:35,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",gif_image:null,total_views:9,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:54143,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:5,storyset_dynamic_thumbnail:!0,products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-14",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_630a1493-8a5a-463d-baa3-e852c9f59eb0.mp4",discount_coupon_image:"",event_hls_url:"https://d1zl4k1t5o4s75.cloudfront.net/whatmoredev/1080p_630a1493-8a5a-463d-baa3-e852c9f59eb0.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:33,event_state:"ready",poster_image:"https://whatmorelive-brand-image-poster-assets.b-cdn.net/whatmoredev/poster_630a1493-8a5a-463d-baa3-e852c9f59eb0.webp",gif_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0}],s=[{event_id:53794,title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-13",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_fa2c9012-744f-4ed4-b57f-999e4416d173.mp4?v=1718279110",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_fa2c9012-744f-4ed4-b57f-999e4416d173.mp4?v=1718279102",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:28,event_state:"ready",products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}]},{event_id:53796,title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-13",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_f6a021eb-d66f-4fe6-8344-6d57f0c59bd3.mp4?v=1718279143",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_f6a021eb-d66f-4fe6-8344-6d57f0c59bd3.mp4?v=1718279136",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:30,event_state:"ready",products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}]},{event_id:97566,title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-11-07",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_92d8c48a-f937-4e2e-8cd4-e93b0af583cb.mp4?v=1730968309",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_92d8c48a-f937-4e2e-8cd4-e93b0af583cb.mp4?v=1730968301",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:271,event_state:"ready",products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}]}],o=[{event_id:53437,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,storyset_dynamic_thumbnail:!1,products:[{product_id:45352,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/air-jordan-11-retro-low-black-varsity-royal",client_product_id:"8172829409418",price:"150.00",currency:null,title:'Air Jordan 11 Retro Low "Black/Varsity Royal"',description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-jordan-11-retro-low-black-varsity-royal-big-kids-shoes-Fw0r7C_5.webp?v=1717415768",compare_price:"13000.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-12",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_dff713cb-45c9-47bd-b895-284fb57844d7.mp4?v=1718177755",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_dff713cb-45c9-47bd-b895-284fb57844d7.mp4?v=1718177747",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:20,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_dff713cb-45c9-47bd-b895-284fb57844d7.webp?v=1718177762",gif_image:null,total_views:49,total_like:1,total_share:1,total_whatsapp:0,in_stock:!0},{event_id:53412,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,storyset_dynamic_thumbnail:!1,products:[{product_id:45352,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/air-jordan-11-retro-low-black-varsity-royal",client_product_id:"8172829409418",price:"150.00",currency:null,title:'Air Jordan 11 Retro Low "Black/Varsity Royal"',description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-jordan-11-retro-low-black-varsity-royal-big-kids-shoes-Fw0r7C_5.webp?v=1717415768",compare_price:"13000.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-12",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_bedf634b-94eb-4f1b-be9a-cca174a1cbcb.mp4?v=1718176568",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_bedf634b-94eb-4f1b-be9a-cca174a1cbcb.mp4?v=1718176560",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:6,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_bedf634b-94eb-4f1b-be9a-cca174a1cbcb.webp?v=1718176574",gif_image:null,total_views:42,total_like:1,total_share:2,total_whatsapp:0,in_stock:!0},{event_id:51771,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,storyset_dynamic_thumbnail:!1,products:[{product_id:45352,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/air-jordan-11-retro-low-black-varsity-royal",client_product_id:"8172829409418",price:"150.00",currency:null,title:'Air Jordan 11 Retro Low "Black/Varsity Royal"',description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-jordan-11-retro-low-black-varsity-royal-big-kids-shoes-Fw0r7C_5.webp?v=1717415768",compare_price:"13000.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:981,cta_link:"https://www.youtube.com/watch?v=o8MPzuKa0kk",client_cta_id:"https://www.youtube.com/watch?v=o8MPzuKa0kk",cta_title:"yt video",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-05",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_6179c4ad-b50b-46ec-bea7-c295f194ee65.mp4?v=1717564356",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_6179c4ad-b50b-46ec-bea7-c295f194ee65.mp4?v=1717564349",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!1,rank:58,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_6179c4ad-b50b-46ec-bea7-c295f194ee65.webp?v=1717564363",gif_image:null,total_views:73,total_like:1,total_share:0,total_whatsapp:0,in_stock:!0}]},6649:function(t,e,a){var i=a(9950);e.A=({triggerOnce:t=!1,root:e=null,rootMargin:a="0px",threshold:n=0}={})=>{const[s,o]=(0,i.useState)(!1),[r,l]=(0,i.useState)(null),c=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const i=new IntersectionObserver(((e,a)=>{e.forEach((e=>{l(e),e.isIntersecting?(o(!0),t&&a.disconnect()):t||o(!1)}))}),{root:e,rootMargin:a,threshold:n});return c.current&&i.observe(c.current),()=>{i.disconnect()}}),[t,e,a,n]),[c,s,r]}},7802:function(t,e,a){a.d(e,{Hl:function(){return n},Np:function(){return o},Po:function(){return r},Z_:function(){return i},Zf:function(){return c},d8:function(){return l},zJ:function(){return s}});const i=function(t,e){return!((void 0==t.products||0==t.products.length)&&(void 0==t.cta||0==t.cta.length))},n=function(t,e){return!(void 0==t.products||0==t.products.length)},s=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}))},o=function(t,e=!1){var a,i;if(null!=t)return e?{events:t.events[0].events,all_events:null!==(i=null===t||void 0===t?void 0:t.all_events)&&void 0!==i?i:[]}:{events:null===t||void 0===t?void 0:t.events,all_events:null!==(a=null===t||void 0===t?void 0:t.all_events)&&void 0!==a?a:[]}};const r=function(t,e){var a,i;let n=[];if(null==t)return[];if("eventsets"in t&&t.eventsets[e]){const a=function(t){if(null==t||0==t.length)return[];let e=[];return t.forEach((t=>{e=e.concat(t.events)})),e}(t.eventsets[e]);n=[...a]}return{events:n,all_events:null!==(a=null===(i=n)||void 0===i?void 0:i.all_events)&&void 0!==a?a:[]}};function l(t){if(null!=t){var e=0;return t.forEach((t=>{t.index=e++})),t}}function c(t){if(null==t)return;let e=0;return t.reduce(((t,a)=>{var i;return(null===(i=null===a||void 0===a?void 0:a.in_stock)||void 0===i||i)&&(a.index=e++,t.push(a)),t}),[])}},8154:function(t,e,a){a.r(e);var i=a(9950),n=a(1348),s=a(964),o=a(5830),r=a(140),l=a(4533),c=a(5901),_=a(1085),d=a(6613),p=a(3330),m=(a(3262),a(572)),u=a(6641),h=a(8603),f=a(2039),v=a(4833),b=a(7802),y=a(2979),w=a(6157),g=a(5551),k=a(69),x=a(9821),j=a(6018),A=a(4414);const S=(0,h.A)({key:"whatmore-css-wsv"}),N=i.lazy((()=>Promise.all([a.e(304),a.e(946),a.e(437),a.e(451),a.e(987),a.e(669),a.e(413),a.e(657)]).then(a.bind(a,6413))));e.default=function(t){const[e,a]=(0,i.useState)(),[h,I]=(0,i.useState)(),[E]=(0,o.QN)("isInDesignMode"),[R]=(0,o.QN)("isDemoBrand"),[P,C]=(0,i.useState)(-2),[L]=(0,o.QN)("whatmoreShopId"),z=(0,o.Xd)("isLandingSharedLink"),D=(0,o.Xd)("whatmoreShareTemplateId"),T=((0,o.Xd)("whatmoreShareStoryId"),(0,o.Xd)("whatmoreShareEventId")),M=(0,o.Xd)("whatmoreLandingLocationType"),F=(0,o.Xd)("whatmoreLoggingActive"),O=(0,o.Xd)("isWhatmorePreviewMode"),{whatmoreWidgetSourceDetails:K}=(0,i.useContext)(g.B);var Q=(0,n.SOt)(L)?s.aD+"/get_eventset/":s.$$+"/get_eventset/",V=(0,n.SOt)(L)?s.aD+"/get_eventset_v1/":s.$$+"/get_eventset_v1/";(0,i.useEffect)((()=>{(0,l.wm)()}),[]),(0,i.useEffect)((()=>{(0,p.initializeGA)(L)}),[]),(0,i.useEffect)((()=>{null==e||0==e.length||h||!(0,d.MN)()||(0,o.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,x._)()?(0,_.Pc)(_.F5):(0,k.bi)())}),[e]),(0,i.useEffect)((()=>{C(-1);const t=v.JA,e=(0,v.t6)(M),i="78232846646"===L.toString()?V.toString()+L.toString()+"?eventset_type="+t+"&event_type=video&source="+e+"&source_id="+L:Q.toString()+L.toString()+"?eventset_type="+t+"&source="+e+"&source_id="+L;fetch(i).then((t=>t.json())).then((e=>(0,b.Po)(e,t))).then((t=>{if(O&&(null==t||t&&0==(null===t||void 0===t?void 0:t.length)))return a(j.n),j.n;let e=[...null===t||void 0===t?void 0:t.events,...null===t||void 0===t?void 0:t.all_events];return(0,n.xku)(L)||(e=(0,b.zJ)(e)),a(e),e})).catch((t=>{I(t.message)}))}),[]),(0,i.useEffect)((()=>{C(-2)}),[e]),(0,i.useEffect)((()=>{null==e||0==e.length||h||z&&"template-embed"==(0,v.Mm)(D)&&null!=T&&e.forEach(((t,e)=>{T==t.event_id&&q(t,!0,e)}))}),[e]);const B=K.landingLocationType,H=K.templateType,q=(t,e=!1,a=0)=>{if((0,d.MN)()&&!e&&((0,x._)()?(0,_.bo)():(0,k.Ij)()),(0,f.ij)(t)||(0,f.Il)(t))return E||R||(async()=>{const e=(0,v.Wd)(B)+(0,v.gf)(H)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,r.lB)(t),(0,p.sendVideoViewEventToGA)(L,s.DK,s.K1),(0,l.Ch)(t.event_id,t.products,"spotlight","video_popup",e)})(),void C(a)};function W(){return(0,A.jsx)(A.Fragment,{})}return null==e||0==e.length||h?(0,A.jsx)("div",{}):(F&&(0,u.xv)(e),(0,n.ALN)(L)&&P<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,A.jsx)(A.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,A.jsx)(m.C,{value:S,children:-1===P||0===e.length?(0,A.jsx)(W,{}):-2===P&&e.length>0?(0,A.jsx)("div",{children:(0,A.jsx)(y.S,{userInteractionType:w.O.SPOTLIGHT_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!E&&!R,children:(0,A.jsx)(c.A,{event:e[0],inVideoClick:q,closeClick:t=>{t.stopPropagation(),C(-1)},isSpotlight:!0})})}):(0,A.jsx)("div",{children:(0,A.jsx)(i.Suspense,{children:(0,A.jsx)(y.S,{userInteractionType:w.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!E&&!R,children:(0,A.jsx)(N,{events:e,index:P,onBack:function(){C(-2)},template:"template-embed"})})})})})))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[199],{1351:function(e,t,n){n.d(t,{PG:function(){return r},kz:function(){return s},UM:function(){return d},yP:function(){return u},DG:function(){return c}});var i=n(1348),o=n(6157);function l(e,t,n={},i){var l;const a=r[e];if(!a)return;const s=a.isActionEnabled(),c=null===i||void 0===i||null===(l=i.meta_actions)||void 0===l?void 0:l[a.customAction];(s||c)&&"function"==typeof fbq&&(async()=>{const i={id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link,...e===o.O.VIDEO_PLAYBACK&&{watch_time:n.watch_time,video_duration:n.video_duration}};fbq("trackCustom",a.action,i),c&&setTimeout((()=>{null===c||void 0===c||c.forEach((e=>{fbq("trackCustom",e,i)}))}),500)})()}var a=n(7145);const r={[o.O.EVENT_VIEW]:{isActionEnabled:i.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[o.O.VIDEO_PLAYBACK]:{isActionEnabled:i.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[o.O.VIDEO_LIKED]:{isActionEnabled:i.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[o.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:i.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[o.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[o.O.SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[o.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function s({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:s}){var c;(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:s}),e in r&&l(e,null!==(c=null===o||void 0===o?void 0:o[1])&&void 0!==c?c:null===o||void 0===o?void 0:o[0],t,i)}function c({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:s}){var c;(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:s}),e in r&&l(e,null!==(c=null===o||void 0===o?void 0:o[1])&&void 0!==c?c:null===o||void 0===o?void 0:o[0],t,i)}function d({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:l}){(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:l})}function u({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:l}){(0,a.B)({userInteractionType:e,userInteractionMetadata:t,widgetSourceDetails:n,event:i,productList:o,ctaList:l})}},3350:function(e,t,n){n.r(t),n.d(t,{default:function(){return V}});var i=n(9950),o=n(964),l=n(140),a=n(5830),r=n(1348),s=n(4533),c=n(6613),d=n(1085),u=n(5551),v=n(2039),p=n(4833),m=n(2979),h=n(6157),g=n(8945),_=n(9821),S=n(4414);const y=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(946),n.e(340),n.e(571),n.e(987),n.e(669),n.e(665)]).then(n.bind(n,7206)))),w=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(437),n.e(571),n.e(516),n.e(620),n.e(116)]).then(n.bind(n,7144)))),I=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(879),n.e(571),n.e(987),n.e(703),n.e(423)]).then(n.bind(n,517)))),f=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(879),n.e(571),n.e(987),n.e(703),n.e(412)]).then(n.bind(n,7646)))),E=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(879),n.e(571),n.e(987),n.e(703),n.e(221)]).then(n.bind(n,5451)))),x=i.lazy((()=>Promise.all([n.e(317),n.e(59),n.e(571),n.e(491)]).then(n.bind(n,4295)))),O=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(946),n.e(57),n.e(571),n.e(987),n.e(669),n.e(988),n.e(620),n.e(474)]).then(n.bind(n,6945)))),T=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(475),n.e(571),n.e(669),n.e(485)]).then(n.bind(n,9418)))),C=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(946),n.e(571),n.e(987),n.e(676)]).then(n.bind(n,3369)))),b=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(946),n.e(57),n.e(571),n.e(987),n.e(669),n.e(988),n.e(891)]).then(n.bind(n,7178)))),D=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(946),n.e(437),n.e(286),n.e(451),n.e(57),n.e(571),n.e(987),n.e(669),n.e(413),n.e(988),n.e(306)]).then(n.bind(n,9406)))),j=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(437),n.e(571),n.e(669),n.e(516),n.e(933)]).then(n.bind(n,6989)))),L=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(946),n.e(437),n.e(286),n.e(451),n.e(438),n.e(571),n.e(987),n.e(669),n.e(413),n.e(427),n.e(806)]).then(n.bind(n,3278)))),q=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(879),n.e(571),n.e(987),n.e(1)]).then(n.bind(n,4596)))),P=i.lazy((()=>Promise.all([n.e(317),n.e(304),n.e(59),n.e(946),n.e(437),n.e(286),n.e(451),n.e(571),n.e(987),n.e(669),n.e(413),n.e(906)]).then(n.bind(n,6413)))),A=i.lazy((()=>n.e(374).then(n.bind(n,5100))));var W=function(e){var t,W;const[k]=(0,a.QN)("isInDesignMode"),[$]=(0,a.QN)("isDemoBrand"),[N]=(0,a.QN)("whatmoreTopBottomPadding"),[G]=(0,a.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:V}=(0,i.useContext)(u.B),[B]=(0,a.QN)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:F}=(0,i.useContext)(u.B),M=(0,a.Xd)("isLandingSharedLink"),z=(0,a.Xd)("whatmoreShareTemplateId"),R=(0,a.Xd)("whatmoreShareStoryId"),K=(0,a.Xd)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:H,whatmoreUserInfo:U}=(0,i.useContext)(u.B),J=M&&F===(0,p.Mm)(z),[Q,X]=(0,i.useState)(J),[Z,Y]=(0,i.useState)(-1),[ee,te]=(0,i.useState)(null);let ne=e.events;const ie=e.allEvents;var oe=null;V&&!oe&&(oe=function(e){var t=e.reduce(((e,t,n)=>{var i,o=t.storyset_id;return o in e?(e[o].total_events=e[o].total_events+1,e[o].events.push(t)):e[o]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(i=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==i&&i,events:[t]},e}),{}),n=Object.values(t);return n.sort(((e,t)=>e.start_event_index-t.start_event_index)),n}(ne));const le=H.landingLocationType,ae=H.templateType;function re(e,t=!1,i=null){(0,c.MN)()&&(0,_._)()&&!t&&(0,d.bo)(),k||$||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:i}=await Promise.all([n.e(286),n.e(907)]).then(n.bind(n,3330));t();const a=oe[e].events[0],r=(0,p.Wd)(le)+(0,p.gf)(ae)+(null!==a&&void 0!==a&&a.isRelatedEvent?"R":"E")+"_"+(null===a||void 0===a?void 0:a.event_id);(0,l.lB)(a),i(B,o.TB,o.OL),(0,s.Ch)(a.event_id,a.products,"homepage","stories",r,null===a||void 0===a?void 0:a.location,null===U||void 0===U?void 0:U.userType)})();var a=0;null!=i&&oe[e].events.map(((e,t)=>{e.event_id==i&&(a=t)})),Y(a),te(e)}async function se(e,t=!1){(0,c.MN)()&&(0,_._)()&&!t&&await(0,d.bo)(),Y(e.index),((0,v.ij)(e)||(0,v.Il)(e))&&(k||$||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:i}=await Promise.all([n.e(286),n.e(907)]).then(n.bind(n,3330));t();const a=(0,p.Wd)(le)+(0,p.gf)(ae)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.lB)(e),i(B,o.TB,o.Dk),(0,s.Ch)(e.event_id,e.products,"homepage","carousel",a)})())}function ce(e){return(0,S.jsx)(S.Fragment,{})}return(0,i.useEffect)((()=>{if(J)if((0,g.H)("whatmore-video-player",(()=>{X(!1)})),null!=R&&V){const e=oe.find((e=>R==e.id));if(e)return void re(oe.indexOf(e),!0,K)}else if(null!=K){const e=ne.find((e=>K==e.event_id));if(e)return void se(e,!0)}}),[]),(0,S.jsxs)(S.Fragment,{children:[Q&&(0,S.jsx)(A,{}),-1==Z||-2==Z?(0,S.jsx)(ce,{}):(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.EVENT_VIEW,event:ne[Z],productList:null===(t=ne[Z])||void 0===t?void 0:t.products,cta:null===(W=ne[Z])||void 0===W?void 0:W.cta,triggerFlag:!k&&!$,children:(0,S.jsx)(P,{events:ie,index:Z,onBack:async function(){Y(-1),X(!1)},slideDirection:V||"horizontal"===(0,r.br0)(B)?"horizontal":"vertical",eventsStories:oe,initialStoryIndex:ee,template:F})})}),(0,S.jsx)("div",{className:"whatmore-widget-container",style:{height:"100%",marginTop:(V?G:N)+"px",marginBottom:(V?G:N)+"px"},children:"template-b"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(y,{events:ne,onClick:se,heading:e.heading})})}):"template-a-1"===F||"template-collections-a-1"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(w,{events:ne,onClick:se,heading:e.heading})}):"template-feed-a"===F||"template-collections-feed-a"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(j,{events:ne,onClick:se,heading:e.heading})}):"template-collections-a"===F||"template-c"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(I,{events:ne,index:Z,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-b"===F||"template-d"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(f,{events:ne,index:Z,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-c"===F||"template-e"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(E,{events:ne,index:Z,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-d"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(y,{events:ne,index:Z,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-e"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(O,{events:ne,index:Z,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-stories"===F||"template-stories"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(q,{events:ne,index:Z,setScreen:Y,onClick:se,heading:e.heading})})}):"template-f"===F||"template-collections-f"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(T,{events:ne,onClick:se,heading:e.heading})})}):"template-g"===F||"template-collections-g"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(C,{events:ne,onClick:se,heading:e.heading})})}):"template-h"===F||"template-collections-h"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(b,{events:ne,onClick:se,heading:e.heading})})}):"template-i"===F||"template-collections-i"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(D,{index:Z,events:ne,onClick:se,heading:e.heading})})}):"template-banner-a"===F?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.BANNER_WIDGET_VIEW,event:ne[0],triggerFlag:!k&&!$,children:(0,S.jsx)(L,{events:ne})})}):V?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.STORIES_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(x,{eventsStories:oe,onClick:re,template:F})})}):(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(m.S,{userInteractionType:h.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!$,children:(0,S.jsx)(O,{events:ne,onClick:se,heading:e.heading})})})})]})},k=n(7802),$=n(6641),N=n(1351),G=n(5873);var V=function(e){const[t,l]=(0,i.useState)(),[v,m]=(0,i.useState)(),[g,y]=(0,i.useState)(),{whatmoreIsStoriesTemplate:w}=(0,i.useContext)(u.B),{whatmoreIsCollectionsTemplate:I}=(0,i.useContext)(u.B),{whatmoreIsBannerTemplate:f}=(0,i.useContext)(u.B),[E]=(0,a.QN)("whatmoreShopId"),[x]=(0,a.QN)("whatmoreCollectionId"),O=(0,a.Xd)("whatmoreLandingLocationType"),T=(0,a.Xd)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:C}=(0,i.useContext)(u.B),{whatmoreUserInfo:b,whatmoreIsPreviewMode:D}=(0,i.useContext)(u.B),j=(0,a.Xd)("whatmoreCollectionUrl"),[L]=(0,a.QN)("isInDesignMode"),[q]=(0,a.QN)("isDemoBrand"),P=(0,r.mJ$)(E)?(0,r.jLA)(E)?j:window.location.href.split(/[?#]/)[0]:x,[A,V]=(0,a.QN)("productRatings"),[B,F]=(0,i.useState)(!1);var M=(0,r.SOt)(E)?o.aD+"/v2/events/":o.$$+"/v2/events/",z=(0,r.SOt)(E)?o.aD+"/v3/events/":o.$$+"/v3/events/",R=(0,r.SOt)(E)?o.aD+"/v4/events/":o.$$+"/v4/events/",K=(0,r.SOt)(E)?o.aD+"/v5/events/":o.$$+"/v5/events/",H=((0,r.SOt)(E)?o.aD:o.$$,(0,r.SOt)(E)?o.aD+"/get_eventset/":o.$$+"/get_eventset/"),U=(0,r.SOt)(E)?o.aD+"/v2/collection":o.$$+"/v2/collection",J=(0,r.SOt)(E)?o.aD+"/v3/collection":o.$$+"/v3/collection",Q=(0,r.SOt)(E)?o.aD+"/v4/collection":o.$$+"/v4/collection",X=(0,r.SOt)(E)?o.aD+"/v2/brand/"+E+"/product-events":o.$$+"/v2/brand/"+E+"/product-events",Z=e.shopId,Y="live,upcoming",ee="true";return(0,i.useEffect)((()=>{null!=t&&0!=t.length&&!g&&(0,c.MN)()&&!(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,_._)()&&(0,d.Pc)(d.F5)}),[t]),(0,i.useEffect)((()=>{var e,t,i,c;if((0,s.wm)(),O.startsWith("product")){var d=(0,a.Xd)("whatmoreProductId");if(d=(0,r.BcY)(E)?function(e,t){return"STRQMPNF7QK"==t?encodeURIComponent(e):e.split(/[?#]/)[0]}(window.location.href,E):d,(0,r.vvU)(E))c=M.toString()+Z.toString()+"?status="+Y.toString()+"&is_active="+ee.toString()+(w?"&template_type=stories":"");else if((0,r.WH1)(E)){c=`${c=`${o.$$}/v2/brand/${E}/product-events/recommendation`}?client_product_id=${d}&limit=10&recommended=${!(0,r.buK)(E)}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`}else c=X.toString()+"?client_product_id="+d.toString()+"&status="+Y.toString()+"&event_type=video"}else if(I||"invalid-url"!==j)c=(0,r.JwJ)(E)?`${J.toString()}?store_id=${Z.toString()}&client_collection_id=${"index"==O&&(0,r.FKG)(E).length>0?(0,r.FKG)(E)[0]:P}`:"78232846646"==E?`${Q.toString()}?store_id=${Z.toString()}&client_collection_id=${"index"==O&&(0,r.FKG)(E).length>0?(0,r.FKG)(E)[0]:P}`:`${U.toString()}?store_id=${Z.toString()}&client_collection_id=${"index"==O&&(0,r.FKG)(E).length>0?(0,r.FKG)(E)[0]:P}`;else if(f){const e=p.Jh,t=(0,p.t6)(O);c=H.toString()+Z.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+E}else{var u,v,h,g;if(("72201044272"==E||"2665447536"==E&&D)&&!w)c=z.toString()+Z.toString()+"?status="+Y.toString()+"&is_active="+ee.toString()+"&latitude="+(null!==(u=null===(v=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===v?void 0:v.latitude)&&void 0!==u?u:"")+"&longitude="+(null!==(h=null===(g=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===g?void 0:g.longitude)&&void 0!==h?h:"")+"&user_type="+(null!==b&&void 0!==b&&b.userType?"olduser":"newuser");else c=(0,r.JwJ)(E)&&!w?R.toString()+Z.toString()+"?status="+Y.toString()+"&is_active="+ee.toString():"78232846646"!=E||w?M.toString()+Z.toString()+"?status="+Y.toString()+"&is_active="+ee.toString()+(w?"&template_type=stories":""):K.toString()+Z.toString()+"?status="+Y.toString()+"&is_active="+ee.toString()}const _=null===(e=window)||void 0===e||null===(t=e.whatmore)||void 0===t||null===(i=t.storyEvents)||void 0===i?void 0:i.events;w&&O.startsWith("index")&&"object"==typeof _&&(null===_||void 0===_?void 0:_.length)>0?(l(_),m(_),F(!0)):fetch(c).then((e=>e.json())).then((e=>{var t;if(f){const t=p.Jh;return(0,k.Po)(e,t)}return(0,r.JwJ)(E)&&(null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.length)>0&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,s.d3)(null===e||void 0===e?void 0:e.questions)),(0,k.Np)(e,I||"invalid-url"!==j)})).then((e=>{var t,n;T&&console.debug("initial received events size : "+e.length);let i=[...null===e||void 0===e?void 0:e.events,...null===e||void 0===e?void 0:e.all_events];i=(0,r.xku)(E)?(0,k.d8)(i):(0,k.Zf)(i),m(i);const o=null!==(t=null===e||void 0===e||null===(n=e.events)||void 0===n?void 0:n.length)&&void 0!==t?t:0;return i.slice(0,o)})).then((e=>{if((q||L)&&(null==e||e&&0==(null===e||void 0===e?void 0:e.length))){const e=async()=>{const{eventsData:e,storiesData:t,bannerData:i}=await n.e(365).then(n.bind(n,6018));l(w?t:f?i:e)};e()}else l(e);F(!0)})).catch((e=>{y(e.message),F(!0)}))}),[]),(0,i.useEffect)((()=>{"index"===O?t&&t.length>0&&(0,N.yP)({userInteractionType:h.O.HOMEPAGE_VISITED,widgetSourceDetails:C}):"collection"===O?(t&&t.length>0||(0,r.BZ$)(E))&&(0,N.yP)({userInteractionType:h.O.COLLECTION_PAGE_VISITED,widgetSourceDetails:C}):"product"===O&&(t&&t.length>0||(0,r.WKl)(E))&&(0,N.yP)({userInteractionType:h.O.PDP_VISITED,widgetSourceDetails:C})}),[t]),B&&(null==t||0==t.length||g)&&G.Sn.forEach((e=>{var t,n,i,o;const l=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),a=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-feed-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]')||e.querySelector('.whatmore-template-type[data-wh="template-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-stories"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]')||e.querySelector('.whatmore-template-type[data="template-g"]')||e.querySelector('.whatmore-template-type[data="template-h"]'),r=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-d"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-h"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]')||e.querySelector('.whatmore-template-type[data="template-collections-d"]')||e.querySelector('.whatmore-template-type[data="template-collections-f"]')||e.querySelector('.whatmore-template-type[data="template-collections-g"]')||e.querySelector('.whatmore-template-type[data="template-collections-h"]'),s=null!==(o=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==o?o:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),c=e;if(w){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!I){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}(s||r||a||l)&&(a&&c||l&&c||s&&c||r&&c)&&(c.style.minHeight="0px")})),null==t||0==t.length||g?(0,S.jsx)("div",{}):(T&&(0,$.xv)(t),T&&console.debug("final transformed events data : "+JSON.stringify(t)),T&&console.debug("valid events size : "+t.length),(0,S.jsx)(W,{heading:e.heading,events:t,allEvents:v}))}},7802:function(e,t,n){n.d(t,{Hl:function(){return o},Np:function(){return a},Po:function(){return r},Z_:function(){return i},Zf:function(){return c},d8:function(){return s},zJ:function(){return l}});const i=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},o=function(e,t){return!(void 0==e.products||0==e.products.length)},l=function(e){if(null!=e)return e.filter((e=>{var t;return null===(t=null===e||void 0===e?void 0:e.in_stock)||void 0===t||t}))},a=function(e,t=!1){var n,i;if(null!=e)return t?{events:e.events[0].events,all_events:null!==(i=null===e||void 0===e?void 0:e.all_events)&&void 0!==i?i:[]}:{events:null===e||void 0===e?void 0:e.events,all_events:null!==(n=null===e||void 0===e?void 0:e.all_events)&&void 0!==n?n:[]}};const r=function(e,t){var n,i;let o=[];if(null==e)return[];if("eventsets"in e&&e.eventsets[t]){const n=function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{t=t.concat(e.events)})),t}(e.eventsets[t]);o=[...n]}return{events:o,all_events:null!==(n=null===(i=o)||void 0===i?void 0:i.all_events)&&void 0!==n?n:[]}};function s(e){if(null!=e){var t=0;return e.forEach((e=>{e.index=t++})),e}}function c(e){if(null==e)return;let t=0;return e.reduce(((e,n)=>{var i;return(null===(i=null===n||void 0===n?void 0:n.in_stock)||void 0===i||i)&&(n.index=t++,e.push(n)),e}),[])}},8945:function(e,t,n){function i(e,t){let n=0;let i=new MutationObserver((function(){document.querySelector("."+e)?(t(),i.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),i.disconnect()}),8e3))}));i.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{H:function(){return i}})}}]);