whatmore-react-assets 1.0.985 → 1.0.987

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.985",
3
+ "version": "1.0.987",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[816],{4816:function(n,e,t){t.r(e),t.d(e,{default:function(){return a}});var i=t(7313),o=t(2210),r=t(8486),s=t(6159),l=t(6417);r.ZP.use([r.o3]);var a=n=>{var e;const{imageUrls:t,onBack:r}=n,[a,c]=(0,i.useState)(null),h=window.location.hostname,[d,p]=(0,i.useState)("https://".concat(h).concat(null===(e=t[0])||void 0===e?void 0:e.url)),[u,g]=(0,i.useState)(!0);(0,i.useEffect)((()=>{a&&a.initialized&&a.update()}),[a]);const x=n.onBack;return u?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("style",{children:"\n .thumbnail-container {\n padding: 5px 2px 10px 2px;\n box-sizing: border-box; \n display: flex; \n flex-direction: column; \n align-items: center;\n }\n .close-button-container {\n position: absolute;\n top: -2px;\n right: -2px;\n z-index: 2; \n }\n\n .thumbnail-container img {\n cursor: pointer;\n border-radius: 5px;\n width: 100%; \n height: 100%;\n object-fit: cover;\n transition: transform 0.2s ease;\n }\n\n .thumbnail-container img:hover {\n transform: scale(1.05);\n }\n\n .swiper-slide-thumb-active .thumbnail-container img {\n border: 1.5px solid white;\n box-shadow:rgba(255, 255, 255, 0.9);\n transform: scale(1.05); \n }\n\n .swiper-slide img {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .shop-now-button {\n background-color: rgba(120, 120, 120, 0.8); \n color: white; \n padding: 0 24px; \n font-size: 16px; \n border-radius: 15px;\n cursor: pointer;\n text-align: center;\n text-decoration: none;\n transition: background-color 0.3s ease;\n width: 220px; \n height: 40px;\n margin-top: 25px;\n display: flex; \n justify-content: center; \n align-items: center; \n }\n\n .shop-now-button:hover {\n background-color: rgba(128, 128, 128, 0.9); \n }\n "}),(0,l.jsxs)("div",{style:{width:"100%",height:"100vh",backgroundColor:"rgba(52, 52, 52, 0.8)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",overflow:"hidden",marginTop:"-10vh"},children:[(0,l.jsx)(o.tq,{spaceBetween:10,slidesPerView:1,loop:!0,thumbs:{swiper:a},watchSlidesVisibility:!0,watchSlidesProgress:!0,style:{width:"100%",height:"60vh",marginBottom:"10px"},children:t.map(((n,e)=>{var t;return(0,l.jsx)(o.o5,{children:(0,l.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative",overflow:"hidden"},children:[(0,l.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,height:"100%",backgroundImage:"url(".concat(n.imageUrl,")"),backgroundSize:"cover",filter:"blur(20px)",zIndex:0}}),(0,l.jsx)("img",{src:(null===n||void 0===n||null===(t=n.imageUrl)||void 0===t?void 0:t.split("?")[0])+"?width=400&height=400",alt:n.title,style:{position:"absolute",top:"0",left:"50%",transform:"translateX(-50%)",height:"100%",objectFit:"contain",zIndex:1}})]})},e)}))}),(0,l.jsx)(o.tq,{onSwiper:c,spaceBetween:2,slidesPerView:Math.min(t.length,8),freeMode:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,style:{width:"100%",height:"15vh",marginTop:"10px"},children:t.map(((n,e)=>{var t;return(0,l.jsx)(o.o5,{children:(0,l.jsx)("div",{className:"thumbnail-container",children:(0,l.jsx)("img",{src:(null===n||void 0===n||null===(t=n.imageUrl)||void 0===t?void 0:t.split("?")[0])+"?width=400&height=400",alt:n.title,style:{width:"100%",height:"100%",objectFit:"cover",cursor:"pointer"},onClick:()=>{return e=n.url,p("https://".concat(h).concat(e));var e}})})},e)}))}),(0,l.jsx)("div",{className:"shop-now-button-container",children:(0,l.jsx)("a",{href:d,target:"_blank",className:"shop-now-button",children:"Shop Now"})}),(0,l.jsx)("div",{className:"close-button-container",style:{position:"absolute",top:"10px",right:"10px"},children:(0,l.jsx)(s.Z,{onCloseCallback:x})})]})]}):null}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[862],{8181:function(e,t,n){var i=n(7313),o=n(8866),r=n(7753),a=n(6417);const s=i.memo((()=>{if(!(0,r.MO)("isLandingSharedLink"))return(0,a.jsx)(a.Fragment,{});const[e]=(0,o.Z)();return(0,a.jsxs)("div",{className:"shimmer-container ".concat(e),children:["portrait"===e?(0,a.jsx)("div",{className:"shimmer-item portrait-full",children:(0,a.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,a.jsx)("div",{className:"shimmer-item landscape-item ".concat(1===t?"center-item":""),children:(0,a.jsx)("div",{className:"shimmer-effect"})},t))),(0,a.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));t.Z=s},5380:function(e,t,n){n.d(t,{Z:function(){return g}});var i=n(4959),o=n(7313),r=n(4892),a=n(6805),s=n(7753),d=n(9821);var c=function(e){const[t,n,i,o,r]=(0,d.Z)(),[c]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[l]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.YP]===a.$w?l/100:c/100*1.2;return[t*u,n*u,r]},l=n(9723),u=n(9461),p=n.n(u),h=n(1195),m=n(7108),v=(n(7244),n(123),n(9854)),f=n(8811),w=n(6417);var g=function(e){var t;const n=o.useRef(null);var[d,u,g]=c();const{whatmoreUITheme:x}=(0,o.useContext)(f.I),[_]=(0,s.j1)("whatmoreEmbedAppVideoTitle"),[y]=(0,s.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[j]=(0,s.j1)("whatmoreEmbedAppPositionLandscape"),[I]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[S]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),L=(0,s.MO)("whatmoreShopId");var C=y,P=b,D=E;g[a.YP]===a.$w&&(C=j,P=I,D=S);const[T,O]=(0,o.useState)(["initial",window.pageYOffset]),[k,A]=(0,o.useState)(!1),K=null!==(t=e.isSpotlight)&&void 0!==t&&t,z=g[a.YP]===a.$w?.7*(0,v.zGA)(L):(0,v.zGA)(L),V=K?z:1;d*=V,u*=V;const M=K?(0,v.G0o)(L):C,N=K?(0,v.X8j)(L):(0,v.lVn)(L),[Z,W]=(0,o.useState)(!K&&(0,v.eXi)(L));function Y(e,t){O(e),e[1]<=100?A(!1):t!=k&&(A(t),W(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(Y([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[T]),(0,i.O3)({ref:n,handler:()=>{Y(["scrolled-up",T[1]],!0)}});const R=e.event,F=e.inVideoClick,H=e.closeClick,U=.3*u,$=.6*u,B=.1*u,G=.1*(.5*u),q="round"==x?"10px":"0px",J=(0,v.Z$A)(L);var Q=!1,X=0,ee=0;function te(e){Q=e}return(0,w.jsx)("div",{children:Z&&!N?(0,w.jsx)(w.Fragment,{}):k&&N?(0,w.jsx)("div",{style:"left"===M?{left:"1px",bottom:K?(0,v.vnu)(L)+"px":D+"px",position:"fixed",zIndex:J}:{right:"5px",bottom:K?(0,v.vnu)(L)+"px":D+"px",position:"fixed",zIndex:J},children:(0,w.jsxs)("div",{onClick:()=>{Y(["initial",T[1]],!1)},style:{margin:"1px",width:u+"px",height:d+"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.Z,{url:R.thumbnail_image,isPlaying:!1,event:R})})}),(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.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:U+"px"},style:{position:"relative",zIndex:1,left:G+"px",bottom:G+"px"},onClick:H})})}),(0,w.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(m.Z,{sx:{color:"white",fontSize:2*U+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,w.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,X=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{Q&&(Math.abs(t.x-X)>5||Math.abs(t.y-ee)>5)?te(!1):F(R)},children:(0,w.jsx)("div",{ref:n,style:"left"===M?{left:K?(0,v.$II)(L)+"px":P+"px",bottom:K?(0,v.vnu)(L)+"px":D+"px",position:"fixed",zIndex:J}:{right:K?(0,v.$II)(L)+"px":P+"px",bottom:K?(0,v.vnu)(L)+"px":D+"px",position:"fixed",zIndex:J},children:(0,w.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:u+"px",height:d+"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:9/16},children:(0,w.jsx)(r.Z,{url:R.thumbnail_image,isMuted:!0,isPlaying:!0,event:R})})}),(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.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:U+"px"},onClick:H,style:{position:"relative",zIndex:1,left:B+"px",bottom:B+"px"}})}),(0,w.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,w.jsx)(l.Z,{sx:{color:(0,v.Ya_)(L),fontSize:$+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,w.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:q,borderBottomRightRadius:q,backgroundImage:_?"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",_]})})]})})]})})})})}},4284:function(e,t,n){n.r(t);var i=n(7313),o=n(9854),r=n(2860),a=n(7753),s=n(5160),d=n(6967),c=n(5380),l=n(58),u=n(8984),p=n(4669),h=n(513),m=n(9302),v=n(2575),f=n(7300),w=n(6524),g=n(8811),x=n(4522),_=n(778),y=n(7643),b=n(7008),E=n(7381),j=n(8181),I=n(6095),S=n(6417);const L=(0,v.Z)({key:"whatmore-css-ppv"}),C=i.lazy((()=>Promise.all([n.e(819),n.e(576),n.e(351),n.e(955),n.e(926),n.e(824),n.e(703),n.e(903)]).then(n.bind(n,3703))));function P(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,i.useState)(),[v,D]=(0,i.useState)(),[T]=(0,a.j1)("isInDesignMode"),[O]=(0,a.j1)("isDemoBrand"),[k]=(0,a.j1)("whatmoreEmbedAppUseVariant"),[A,K]=(0,i.useState)(-2),[z]=(0,a.j1)("whatmoreVariantId"),[V]=(0,a.j1)("whatmoreShopId");var[M]=(0,a.j1)("whatmoreProductId");const N=(0,a.MO)("isLandingSharedLink"),Z=(0,a.MO)("whatmoreShareTemplateId"),W=(0,a.MO)("whatmoreShareEventId"),Y=N&&"template-embed"===(0,w.zv)(Z),[R,F]=(0,i.useState)(Y);M=(0,o.iXA)(V)?P(window.location.href):M;const[H,U]=(0,i.useState)((()=>"true"===k?z:M));var $=r.Gc+"/v2/brand/"+V+"/product-events";const{whatmoreWidgetSourceDetails:B}=(0,i.useContext)(g.I);(0,i.useEffect)((()=>{(0,E.Oo)("Video shopping powered by Whatmore!"),(0,d.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,b.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{(0,p.ll)(V)}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||v||!(0,u.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,l.b5)(l.UD)}),[t]),(0,i.useEffect)((()=>{if(K(-1),(0,o.ly4)(V)){const e="".concat(r.Gc,"/v2/brand/").concat(V,"/product-events/recommendation");fetch("".concat(e,"?client_product_id=").concat(H,"&limit=10&origin=").concat(window.location.hostname,"&status=live,upcoming&event_type=video")).then((e=>e.json())).then((e=>{e.product_info.length>0?n([...e.events,...e.related_events,{event_type:"recommended_images",product_list:[...e.product_info]}]):n([...e.events,...e.related_events])})).catch((e=>D(e.message)))}else fetch($.toString()+"?client_product_id="+H.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>e.events)).then((e=>(null!=e&&0!=e.length&&(0,o.Htz)(V)&&(0,o.d0x)(e),n(e),e))).then((e=>((0,o.yoE)(V)&&function(e,t){setTimeout((async()=>{const n=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!n||n.product_link==P(window.location.href))return;const i={product_id:n.product_id,product_link:P(window.location.href)};fetch(r.Gc+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})}),500)}(e,H),e))).catch((e=>{D(e.message)}))}),[H]),(0,i.useEffect)((()=>{var e,n;K(-2),(t&&t.length>0||(0,o.uO6)(V))&&(0,x.PB)({userInteractionType:_.K.PDP_VISITED,widgetSourceDetails:B,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(e=t[0])||void 0===e?void 0:e.products,ctaList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.cta})}),[t]),(0,i.useEffect)((()=>{let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let t=history.replaceState;history.replaceState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("true"===k){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var i=t[n].split("=");if(i[0]==e)return i[1]}return!1}("variant");e&&""!==e&&U(e)}}))}),[]),(0,i.useEffect)((()=>{if(null!=t&&0!==t.length&&!v&&Y&&((0,I.A)("whatmore-video-player",(()=>{F(!1)})),null!=W)){const e=t.find((e=>W==e.event_id));if(e)return void J(e,!0,t.indexOf(e))}}),[t]);const G=B.landingLocationType,q=B.templateType,J=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,u.KE)()&&!t&&(0,l.QV)(),(0,f.B6)(e)||(0,f.WJ)(e))return T||O||(async()=>{const t=(0,w.NY)(G)+(0,w.dS)(q)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,s.wh)(e),(0,p.Tc)(V,r.h7,r.dU),(0,d.H4)(e.event_id,e.products,"product_page","video_popup",t)})(),void K(n)};function Q(){return(0,S.jsx)(S.Fragment,{})}return null==t||0==t.length||v?(0,S.jsx)("div",{}):(0,S.jsxs)(m.C,{value:L,children:[R&&(0,S.jsx)(j.Z,{}),"no-product"===H||-1===A||0===t.length?(0,S.jsx)(Q,{}):-2===A&&t.length>0?(0,S.jsx)("div",{children:(0,S.jsx)(y.u,{userInteractionType:_.K.PDP_POPUP_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!T&&!O,children:(0,S.jsx)(c.Z,{event:t[0],inVideoClick:J,closeClick:e=>{e.stopPropagation(),K(-1)}})})}):(0,S.jsx)("div",{children:(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(y.u,{userInteractionType:_.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!T&&!O,children:(0,S.jsx)(C,{events:t,index:A,onBack:function(e){(0,o.n2L)(V)&&(0,a.MO)("whatmoreAddedToCart")&&(0,h.D)(V,(()=>{}),100,window.location.hostname,e),K(-2),F(!1)},template:"template-product-page"})})})})]})}},6095: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,{A:function(){return i}})},6805:function(e,t,n){n.d(t,{$I:function(){return s},$w:function(){return c},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return i},rE:function(){return d}});const i="device_type",o="device_mode",r="mobile",a="tablet",s="desktop",d="portrait",c="landscape"},9821:function(e,t,n){var i=n(6367),o=n(7753),r=n(8866),a=n(6805);t.Z=function(e){const[t,n,s]=(0,r.Z)(),[d]=(0,o.j1)("whatmoreLandscapePadding"),[c]=(0,o.j1)("whatmoreVideoTileSize"),[l]=(0,o.j1)("whatmoreVideoTileSizePortrait"),u=(0,i.useMediaQuery)({query:"(min-width: 1025px)"}),p=(0,i.useMediaQuery)({query:"(min-width: 481px)"}),h="portrait"==t?l:c,m=!("portrait"!=t||!p),v=h/100*1.3*.5,f=h/100;var w=Math.min(s,n),[g,x,_,y]=[.6*w*(16/9),.6*w,1.4,0];function b(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(u){const e=x*v,t=g*v;[g,x,_,y]=[t,e,(s-2*d)/(1.1*e),d],E[a.me]=a.$I,E[a.YP]=a.$w}else if(m){var j=.8*x,I=.8*g;"portrait"==t?(j*=f,I*=f,[g,x,_,y]=[I,j,b(s/(1.2*j)),0],E[a.me]=a.AL,E[a.YP]=a.rE):([g,x,_,y]=[I,j,(s-2*d)/(1.1*j),d],E[a.me]=a.AL,E[a.YP]=a.$w)}else{j=x,I=g;"portrait"==t?(j=j*f*.9,I=I*f*.9,[g,x,_,y]=[I,j,b(s/(1.15*j)),0],E[a.me]=a.AK,E[a.YP]=a.rE):(j=.7*x,I=.7*g,[g,x,_,y]=[I,j,(s-2*d)/(1.1*j),d],E[a.me]=a.AK,E[a.YP]=a.$w)}return[g,x,_,y,E]}},4522:function(e,t,n){n.d(t,{gW:function(){return s},GF:function(){return d},y4:function(){return l},PB:function(){return u},Z2:function(){return c}});var i=n(9854),o=n(7753),r=n(778);var a=n(733);const s={[r.K.EVENT_VIEW]:"whatmore_video_click_event",[r.K.VIDEO_LIKED]:"whatmore_video_like_event",[r.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[r.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[r.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event"};function d(e){var t;let{userInteractionType:n,userInteractionMetadata:d,widgetSourceDetails:c,event:l,productList:u,ctaList:p}=e;(0,a.s)({userInteractionType:n,userInteractionMetadata:d,widgetSourceDetails:c,event:l,productList:u,ctaList:p}),n in s&&function(e,t){const n=(0,o.MO)("whatmoreShopId");(e!=r.K.EVENT_VIEW||(0,i.UAB)(n))&&(e!=r.K.SHOPNOW_ATC_CLICKED&&e!=r.K.PRODUCT_TILE_ATC_CLICKED||(0,i.Tn_)(n))&&(e!=r.K.VIDEO_LIKED||(0,i.sKB)(n))&&(e!=r.K.VIDEO_SHARE_CTA_CLICKED||(0,i.YOU)(n))&&(e!=r.K.PRODUCT_TILE_SHOPNOW_CLICKED&&e!=r.K.SHOPNOW_CLICKED||(0,i.ejq)(n))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[e],{id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link})})()}(n,null!==(t=null===u||void 0===u?void 0:u[1])&&void 0!==t?t:null===u||void 0===u?void 0:u[0])}function c(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s}=e;(0,a.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s})}function l(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s}=e;(0,a.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s})}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s}=e;(0,a.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s})}},7244:function(){}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[862],{8181:function(e,t,n){var i=n(7313),o=n(8866),r=n(7753),a=n(6417);const s=i.memo((()=>{if(!(0,r.MO)("isLandingSharedLink"))return(0,a.jsx)(a.Fragment,{});const[e]=(0,o.Z)();return(0,a.jsxs)("div",{className:"shimmer-container ".concat(e),children:["portrait"===e?(0,a.jsx)("div",{className:"shimmer-item portrait-full",children:(0,a.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,a.jsx)("div",{className:"shimmer-item landscape-item ".concat(1===t?"center-item":""),children:(0,a.jsx)("div",{className:"shimmer-effect"})},t))),(0,a.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));t.Z=s},5380:function(e,t,n){n.d(t,{Z:function(){return g}});var i=n(4959),o=n(7313),r=n(4892),a=n(6805),s=n(7753),d=n(9821);var c=function(e){const[t,n,i,o,r]=(0,d.Z)(),[c]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[l]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.YP]===a.$w?l/100:c/100*1.2;return[t*u,n*u,r]},l=n(9723),u=n(9461),p=n.n(u),h=n(1195),m=n(7108),v=(n(7244),n(123),n(9854)),f=n(8811),w=n(6417);var g=function(e){var t;const n=o.useRef(null);var[d,u,g]=c();const{whatmoreUITheme:x}=(0,o.useContext)(f.I),[_]=(0,s.j1)("whatmoreEmbedAppVideoTitle"),[y]=(0,s.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[I]=(0,s.j1)("whatmoreEmbedAppPositionLandscape"),[j]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[S]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),L=(0,s.MO)("whatmoreShopId");var C=y,P=b,D=E;g[a.YP]===a.$w&&(C=I,P=j,D=S);const[T,O]=(0,o.useState)(["initial",window.pageYOffset]),[k,A]=(0,o.useState)(!1),K=null!==(t=e.isSpotlight)&&void 0!==t&&t,z=g[a.YP]===a.$w?.7*(0,v.zGA)(L):(0,v.zGA)(L),V=K?z:1;d*=V,u*=V;const M=K?(0,v.G0o)(L):C,N=K?(0,v.X8j)(L):(0,v.lVn)(L),[Z,W]=(0,o.useState)(!K&&(0,v.eXi)(L));function Y(e,t){O(e),e[1]<=100?A(!1):t!=k&&(A(t),W(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(Y([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[T]),(0,i.O3)({ref:n,handler:()=>{Y(["scrolled-up",T[1]],!0)}});const R=e.event,F=e.inVideoClick,H=e.closeClick,U=.3*u,$=.6*u,B=.1*u,G=.1*(.5*u),q="round"==x?"10px":"0px",J=(0,v.Z$A)(L);var Q=!1,X=0,ee=0;function te(e){Q=e}return(0,w.jsx)("div",{children:Z&&!N?(0,w.jsx)(w.Fragment,{}):k&&N?(0,w.jsx)("div",{style:"left"===M?{left:"1px",bottom:K?(0,v.vnu)(L)+"px":D+"px",position:"fixed",zIndex:J}:{right:"5px",bottom:K?(0,v.vnu)(L)+"px":D+"px",position:"fixed",zIndex:J},children:(0,w.jsxs)("div",{onClick:()=>{Y(["initial",T[1]],!1)},style:{margin:"1px",width:u+"px",height:d+"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.Z,{url:R.thumbnail_image,isPlaying:!1,event:R})})}),(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.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:U+"px"},style:{position:"relative",zIndex:1,left:G+"px",bottom:G+"px"},onClick:H})})}),(0,w.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(m.Z,{sx:{color:"white",fontSize:2*U+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,w.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,X=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{Q&&(Math.abs(t.x-X)>5||Math.abs(t.y-ee)>5)?te(!1):F(R)},children:(0,w.jsx)("div",{ref:n,style:"left"===M?{left:K?(0,v.$II)(L)+"px":P+"px",bottom:K?(0,v.vnu)(L)+"px":D+"px",position:"fixed",zIndex:J}:{right:K?(0,v.$II)(L)+"px":P+"px",bottom:K?(0,v.vnu)(L)+"px":D+"px",position:"fixed",zIndex:J},children:(0,w.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:u+"px",height:d+"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:9/16},children:(0,w.jsx)(r.Z,{url:R.thumbnail_image,isMuted:!0,isPlaying:!0,event:R})})}),(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.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:U+"px"},onClick:H,style:{position:"relative",zIndex:1,left:B+"px",bottom:B+"px"}})}),(0,w.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,w.jsx)(l.Z,{sx:{color:(0,v.Ya_)(L),fontSize:$+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,w.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:q,borderBottomRightRadius:q,backgroundImage:_?"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",_]})})]})})]})})})})}},4284:function(e,t,n){n.r(t);var i=n(7313),o=n(9854),r=n(2860),a=n(7753),s=n(5160),d=n(6967),c=n(5380),l=n(58),u=n(8984),p=n(4669),h=n(513),m=n(9302),v=n(2575),f=n(7300),w=n(6524),g=n(8811),x=n(4522),_=n(778),y=n(7643),b=n(7008),E=n(7381),I=n(8181),j=n(6095),S=n(6417);const L=(0,v.Z)({key:"whatmore-css-ppv"}),C=i.lazy((()=>Promise.all([n.e(819),n.e(576),n.e(351),n.e(955),n.e(926),n.e(824),n.e(703),n.e(903)]).then(n.bind(n,3703))));function P(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,i.useState)(),[v,D]=(0,i.useState)(),{whatmoreIsPreviewMode:T}=(0,i.useContext)(g.I),[O]=(0,a.j1)("isInDesignMode"),[k]=(0,a.j1)("isDemoBrand"),[A]=(0,a.j1)("whatmoreEmbedAppUseVariant"),[K,z]=(0,i.useState)(-2),[V]=(0,a.j1)("whatmoreVariantId"),[M]=(0,a.j1)("whatmoreShopId");var[N]=(0,a.j1)("whatmoreProductId");const Z=(0,a.MO)("isLandingSharedLink"),W=(0,a.MO)("whatmoreShareTemplateId"),Y=(0,a.MO)("whatmoreShareEventId"),R=Z&&"template-embed"===(0,w.zv)(W),[F,H]=(0,i.useState)(R);N=(0,o.iXA)(M)?P(window.location.href):N;const[U,$]=(0,i.useState)((()=>"true"===A?V:N));var B=r.Gc+"/v2/brand/"+M+"/product-events";const{whatmoreWidgetSourceDetails:G}=(0,i.useContext)(g.I);(0,i.useEffect)((()=>{(0,E.Oo)("Video shopping powered by Whatmore!"),(0,d.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,b.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{(0,p.ll)(M)}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||v||!(0,u.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,l.b5)(l.UD)}),[t]),(0,i.useEffect)((()=>{if(z(-1),!(0,o.ly4)(M)||"57708314789"==M&&T)fetch(B.toString()+"?client_product_id="+U.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>e.events)).then((e=>(null!=e&&0!=e.length&&(0,o.Htz)(M)&&(0,o.d0x)(e),n(e),e))).then((e=>((0,o.yoE)(M)&&function(e,t){setTimeout((async()=>{const n=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!n||n.product_link==P(window.location.href))return;const i={product_id:n.product_id,product_link:P(window.location.href)};fetch(r.Gc+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})}),500)}(e,U),e))).catch((e=>{D(e.message)}));else{const e="".concat(r.Gc,"/v2/brand/").concat(M,"/product-events/recommendation");fetch("".concat(e,"?client_product_id=").concat(U,"&limit=10&origin=").concat(window.location.hostname,"&status=live,upcoming&event_type=video")).then((e=>e.json())).then((e=>{e.product_info.length>0?n([...e.events,...e.related_events,{event_type:"recommended_images",product_list:[...e.product_info]}]):n([...e.events,...e.related_events])})).catch((e=>D(e.message)))}}),[U]),(0,i.useEffect)((()=>{var e,n;z(-2),(t&&t.length>0||(0,o.uO6)(M))&&(0,x.PB)({userInteractionType:_.K.PDP_VISITED,widgetSourceDetails:G,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(e=t[0])||void 0===e?void 0:e.products,ctaList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.cta})}),[t]),(0,i.useEffect)((()=>{let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let t=history.replaceState;history.replaceState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("true"===A){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var i=t[n].split("=");if(i[0]==e)return i[1]}return!1}("variant");e&&""!==e&&$(e)}}))}),[]),(0,i.useEffect)((()=>{if(null!=t&&0!==t.length&&!v&&R&&((0,j.A)("whatmore-video-player",(()=>{H(!1)})),null!=Y)){const e=t.find((e=>Y==e.event_id));if(e)return void Q(e,!0,t.indexOf(e))}}),[t]);const q=G.landingLocationType,J=G.templateType,Q=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,u.KE)()&&!t&&(0,l.QV)(),(0,f.B6)(e)||(0,f.WJ)(e))return O||k||(async()=>{const t=(0,w.NY)(q)+(0,w.dS)(J)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,s.wh)(e),(0,p.Tc)(M,r.h7,r.dU),(0,d.H4)(e.event_id,e.products,"product_page","video_popup",t)})(),void z(n)};function X(){return(0,S.jsx)(S.Fragment,{})}return null==t||0==t.length||v?(0,S.jsx)("div",{}):(0,S.jsxs)(m.C,{value:L,children:[F&&(0,S.jsx)(I.Z,{}),"no-product"===U||-1===K||0===t.length?(0,S.jsx)(X,{}):-2===K&&t.length>0?(0,S.jsx)("div",{children:(0,S.jsx)(y.u,{userInteractionType:_.K.PDP_POPUP_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!O&&!k,children:(0,S.jsx)(c.Z,{event:t[0],inVideoClick:Q,closeClick:e=>{e.stopPropagation(),z(-1)}})})}):(0,S.jsx)("div",{children:(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(y.u,{userInteractionType:_.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!O&&!k,children:(0,S.jsx)(C,{events:t,index:K,onBack:function(e){(0,o.n2L)(M)&&(0,a.MO)("whatmoreAddedToCart")&&(0,h.D)(M,(()=>{}),100,window.location.hostname,e),z(-2),H(!1)},template:"template-product-page"})})})})]})}},6095: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,{A:function(){return i}})},6805:function(e,t,n){n.d(t,{$I:function(){return s},$w:function(){return c},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return i},rE:function(){return d}});const i="device_type",o="device_mode",r="mobile",a="tablet",s="desktop",d="portrait",c="landscape"},9821:function(e,t,n){var i=n(6367),o=n(7753),r=n(8866),a=n(6805);t.Z=function(e){const[t,n,s]=(0,r.Z)(),[d]=(0,o.j1)("whatmoreLandscapePadding"),[c]=(0,o.j1)("whatmoreVideoTileSize"),[l]=(0,o.j1)("whatmoreVideoTileSizePortrait"),u=(0,i.useMediaQuery)({query:"(min-width: 1025px)"}),p=(0,i.useMediaQuery)({query:"(min-width: 481px)"}),h="portrait"==t?l:c,m=!("portrait"!=t||!p),v=h/100*1.3*.5,f=h/100;var w=Math.min(s,n),[g,x,_,y]=[.6*w*(16/9),.6*w,1.4,0];function b(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(u){const e=x*v,t=g*v;[g,x,_,y]=[t,e,(s-2*d)/(1.1*e),d],E[a.me]=a.$I,E[a.YP]=a.$w}else if(m){var I=.8*x,j=.8*g;"portrait"==t?(I*=f,j*=f,[g,x,_,y]=[j,I,b(s/(1.2*I)),0],E[a.me]=a.AL,E[a.YP]=a.rE):([g,x,_,y]=[j,I,(s-2*d)/(1.1*I),d],E[a.me]=a.AL,E[a.YP]=a.$w)}else{I=x,j=g;"portrait"==t?(I=I*f*.9,j=j*f*.9,[g,x,_,y]=[j,I,b(s/(1.15*I)),0],E[a.me]=a.AK,E[a.YP]=a.rE):(I=.7*x,j=.7*g,[g,x,_,y]=[j,I,(s-2*d)/(1.1*I),d],E[a.me]=a.AK,E[a.YP]=a.$w)}return[g,x,_,y,E]}},4522:function(e,t,n){n.d(t,{gW:function(){return s},GF:function(){return d},y4:function(){return l},PB:function(){return u},Z2:function(){return c}});var i=n(9854),o=n(7753),r=n(778);var a=n(733);const s={[r.K.EVENT_VIEW]:"whatmore_video_click_event",[r.K.VIDEO_LIKED]:"whatmore_video_like_event",[r.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[r.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[r.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event"};function d(e){var t;let{userInteractionType:n,userInteractionMetadata:d,widgetSourceDetails:c,event:l,productList:u,ctaList:p}=e;(0,a.s)({userInteractionType:n,userInteractionMetadata:d,widgetSourceDetails:c,event:l,productList:u,ctaList:p}),n in s&&function(e,t){const n=(0,o.MO)("whatmoreShopId");(e!=r.K.EVENT_VIEW||(0,i.UAB)(n))&&(e!=r.K.SHOPNOW_ATC_CLICKED&&e!=r.K.PRODUCT_TILE_ATC_CLICKED||(0,i.Tn_)(n))&&(e!=r.K.VIDEO_LIKED||(0,i.sKB)(n))&&(e!=r.K.VIDEO_SHARE_CTA_CLICKED||(0,i.YOU)(n))&&(e!=r.K.PRODUCT_TILE_SHOPNOW_CLICKED&&e!=r.K.SHOPNOW_CLICKED||(0,i.ejq)(n))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[e],{id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link})})()}(n,null!==(t=null===u||void 0===u?void 0:u[1])&&void 0!==t?t:null===u||void 0===u?void 0:u[0])}function c(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s}=e;(0,a.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s})}function l(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s}=e;(0,a.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s})}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s}=e;(0,a.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s})}},7244:function(){}}]);