whatmore-react-assets 1.0.1687 → 1.0.1688
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/262.8d4f90aa.chunk.js +1 -0
- package/static/js/964.082e053e.chunk.js +1 -0
- package/static/js/atc-with-form.e13a71fd.chunk.js +1 -0
- package/static/js/banner-template-a.eed0c43c.chunk.js +1 -0
- package/static/js/carousel-template-f.9cca57f9.chunk.js +1 -0
- package/static/js/{carousel-template-feed.2bab458c.chunk.js → carousel-template-feed.86ddbb4a.chunk.js} +2 -2
- package/static/js/event-click.884dcdc9.chunk.js +2 -0
- package/static/js/{product-page-view.e45cff3a.chunk.js → product-page-view.2558d839.chunk.js} +1 -1
- package/static/js/spotlight-view.5ca9adff.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/262.b1610a25.chunk.js +0 -1
- package/static/js/964.81bd7d39.chunk.js +0 -1
- package/static/js/atc-with-form.63e447e3.chunk.js +0 -1
- package/static/js/banner-template-a.07c50c87.chunk.js +0 -1
- package/static/js/carousel-template-f.217c3f14.chunk.js +0 -1
- package/static/js/event-click.bad7c7b6.chunk.js +0 -2
- package/static/js/spotlight-view.48243dc9.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
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(5830),i=r(1745);const n=async function(t,e,r,n,u="",a="",c="",d="",l="",s=""){(0,o.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t&&quantityInput?(a&&t.setAttribute("data-product-id",a),t.click(),setTimeout(()=>{(0,i.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(u));if(e){const t=e.key,r=e.quantity,o=e.properties;(0,i.CP)(t,r,o,c,d,l,!0,!0,!0)}})},500),void setTimeout(e,r)):(fetch(null===s||void 0===s||null===(m=s.split("?"))||void 0===m?void 0:m[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),r=e.querySelector('button[data-pf-type="ProductATC2"]'),o=e.querySelector('input[data-pf-type="QuantityField"]');r&&o&&(o.value="1",u&&o.setAttribute("data-variants-continue",u),a&&r.setAttribute("data-product-id",a))}),void setTimeout(e,r));var m}const p=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let r=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return r||(r=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),r},f=(t,e,r)=>{const o=t.cloneNode(!0);if(o){o.hasAttribute("data-product-variant-id")&&o.setAttribute("data-product-variant-id",e),o.hasAttribute("data-product-id")&&o.setAttribute("data-product-id",r);let t=o.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=o.querySelector('select[name="id"]');if(t){const r=t.querySelector('option[selected="selected"]');r&&r.setAttribute("value",e)}}const i=o.querySelector('input[name="product-id"]');i&&i.setAttribute("value",r);const n=document.createElement("div");return n.className="whatmore-atc",n.appendChild(o),document.body.appendChild(n),console.log(n,"formElement"),n}},v=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const r=e.items.find(e=>e.id==t),o=r.key,n=r.quantity,u=r.properties;(0,i.CP)(o,n,u,c,d,l,!0,!0,!0)})},h=p(document);if(h||(null===h||void 0===h?void 0:h.length)>0){const t=f(h,u,a);v(t),setTimeout(()=>{y(u)},500),t.remove()}else{var b;fetch(null===s||void 0===s||null===(b=s.split("?"))||void 0===b?void 0:b[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),r=p(e);if(r||(null===r||void 0===r?void 0:r.length)>0){const t=f(r,u,a);v(t),setTimeout(()=>{y(u)},500),t.remove()}})}setTimeout(e,r)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,939,964],{22:function(t,e,o){o.d(e,{$S:function(){return s},_:function(){return r},b4:function(){return n},dl:function(){return i},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const r="device_type",i="device_mode",n="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,o){var r=o(5830),i=o(1941),n=o(22),l=o(1348);e.A=function(t){const[e,o,s]=(0,i.A)(),[a]=(0,r.QN)("whatmoreLandscapePadding"),[d]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("whatmoreVideoTileSize"),[u]=(0,r.QN)("whatmoreVideoTileSizePortrait"),c=s>o,y="portrait"==e?u:p,m=!("portrait"!=e||!(s>=481)),f=y/100*1.3*.5,v=y/100;var h=Math.min(s,o),[x,g,w,b]=[.6*h*(16/9),.6*h,1.4,0];function P(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:n.b4,DEVICE_MODE:n.tn};if(c){const t=g*f,e=x*f;[x,g,w,b]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],S[n._]=n.$S,S[n.dl]=n.nN}else if(m){var j=.8*g,C=.8*x;"portrait"==e?(j*=v,C*=v,[x,g,w,b]=[C,j,P(s/(1.2*j)),0],S[n._]=n.vF,S[n.dl]=n.tn):([x,g,w,b]=[C,j,(s-2*a)/(1.1*j),a],S[n._]=n.vF,S[n.dl]=n.nN)}else{j=g,C=x;"portrait"==e?(j=j*v*.9,C=C*v*.9,[x,g,w,b]=[C,j,P(s/(1.15*j)),0],S[n._]=n.b4,S[n.dl]=n.tn):(j=.7*g,C=.7*x,[x,g,w,b]=[C,j,(s-2*a)/(1.1*j),a],S[n._]=n.b4,S[n.dl]=n.nN)}return[x,g,w,b,S]}},1957:function(t,e,o){var r=o(9950),i=o(932),n=(o(4826),o(5830)),l=o(9879),s=o(7509),a=o(22),d=o(1348),p=o(5551),u=o(6594),c=o(8538),y=o(8149),m=o(5727),f=o(7740),v=o(7035),h=o(6305),x=o(4833),g=o(1351),w=o(6157),b=o(4414);e.A=function(t){var e,o,P,S,j,C,A,N,T,_,k,M,I,R,z,F,E,q,D,L,O;const[$,W,X,U,V]=(0,i.A)(),B=.5*W;(0,r.useContext)(s.h);const Q=(0,n.Xd)("whatmoreUITheme"),Y=(0,n.Xd)("whatmoreShopId"),H=(0,n.Xd)("whatmorePrimaryFont"),J=(0,n.Xd)("whatmoreSecondaryColor"),K=(0,n.Xd)("websiteLanguage"),Z=t.onClick,G=null===(e=t.isOnFocus)||void 0===e||e,tt=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,et=null!==(P=t.animateOnFocus&&(0,d.n5O)(Y))&&void 0!==P&&P,ot="portrait"===V[a.dl],rt=(ot?1.076*W*(0,d.HWj)(Y):W*(0,d.N_4)(Y))+"px",it=(ot?1.076*W*(0,d.HWj)(Y):W*(0,d.N_4)(Y))+"px",nt=(ot?.965*W*(0,d.HWj)(Y):.859*W*(0,d.N_4)(Y))+"px",lt=(0,d.VYo)(Y),{whatmoreIsPreviewMode:st,whatmoreWidgetSourceDetails:at}=(0,r.useContext)(p.B),dt=.25*W,pt=dt+"px",ut=1.25*dt+"px",[ct,yt]=(0,r.useState)(t.event),[mt,ft]=(0,r.useState)(),[vt,ht]=(0,r.useState)(!1),xt=null!==(S=null===(j=ct.products)||void 0===j?void 0:j.find(t=>"active"==t.product_status))&&void 0!==S?S:null===(C=ct.products)||void 0===C?void 0:C[0],gt=Math.round(+(null===xt||void 0===xt?void 0:xt.price)),wt=Math.round(+(null===xt||void 0===xt?void 0:xt.compare_price)),bt=wt&&0!=wt&&wt>gt?Math.round((wt-gt)/wt*100):NaN,[Pt,St]=(0,r.useState)(bt),[jt,Ct]=(0,r.useState)(!1),[At,Nt,Tt,_t,kt,Mt]=(0,h.A)(0,xt,ct);return(0,r.useEffect)(()=>{(0,d.w4b)(Y)?(0,u.fu)(ct,(0,d.NCy)(Y),Y).then(t=>{var e,o,r;yt(t);const i=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===(r=t.products[0])||void 0===r?void 0:r.compare_price),l=n&&0!=n&&n>i?Math.round((n-i)/n*100):NaN;St(l),Ct(!0)}):(async()=>{const t=await(0,y.M)(xt,(0,d.NCy)(Y),Y);ft(t),Ct(!0)})()},[]),(0,b.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","12px"),t.style.setProperty("margin-bottom","12px"))},className:et&&!ot?G?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:W,margin:"0 auto",cursor:"pointer"},onClick:()=>{Z(ct)},onMouseEnter:()=>ht(!0),onMouseLeave:()=>ht(!1),children:["video"===ct.event_type&&"55076552858"===Y&&!ot&&(0,b.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*B,marginLeft:B/2},children:(0,b.jsx)(m.A,{sx:{color:(0,d.KFN)(ct.whatmoreShopId)+" !important",opacity:.8,fontSize:B,filter:"drop-shadow(0 0 15px black);"}})}),(0,b.jsxs)("div",{style:{width:W,height:ot&&G?"STR2FOC6KG9"==Y||"STRDOIDF6O7"==Y?$:1.1*$:$,borderRadius:"round"==Q?"5px":"0px",boxShadow:"round"==Q?lt:null,borderWidth:(0,d.YcK)(Y),borderColor:(0,d.Fwt)(Y),overflow:"hidden",position:"relative"},children:[(0,b.jsx)(l.A,{height:(0,d.u06)(Y)+" !important",width:"100%",url:ct.thumbnail_image,isPlaying:G||tt,event:ct}),"9238315068"===Y&&(vt||ot)&&(0,b.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:vt||ot?"rgba(0, 0, 0, 0.75)":"rgba(0, 0, 0, 0.6)",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:vt||ot?"translateY(0)":"translateY(100%)",opacity:vt||ot?1:0},onClick:t=>{t.stopPropagation();const e=at.landingLocationType,o=at.templateType,r=(0,x.Wd)(e)+(0,x.gf)(o)+(null!==ct&&void 0!==ct&&ct.isRelatedEvent?"R":"E")+"_"+(null===ct||void 0===ct?void 0:ct.event_id);"init"==At.state?(kt(r),(0,g.kz)({userInteractionType:w.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:at,event:ct,productList:[xt],ctaList:ct.cta})):"awaitingVariantSelection"==At.state&&Mt(null,r)},onMouseEnter:t=>{t.target.style.background="rgba(0, 0, 0, 0.85)"},onMouseLeave:t=>{t.target.style.background="rgba(0, 0, 0, 0.75)"},children:(0,b.jsx)("span",{style:{color:"white",fontSize:rt,fontFamily:H,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:"ADD TO CART"})})]}),(0,b.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(st?(0,d.Tr1)(Y):(0,d.UmS)(Y))&&(null===ct||void 0===ct||null===(A=ct.products)||void 0===A?void 0:A.length)>0&&(0,b.jsx)("div",{style:{maxHeight:ut,maxWidth:pt,minWidth:null!==xt&&void 0!==xt&&xt.thumbnail_image?pt:"0",overflow:"hidden"},children:(0,b.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,d.KZe)(Y),"important")},style:{height:"100%"},src:(null===xt||void 0===xt||null===(N=xt.thumbnail_image)||void 0===N||null===(T=N.split("?"))||void 0===T?void 0:T[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,b.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(Y),"important"),t.style.setProperty("font-size",rt,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",H,"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,c.v)(null===xt||void 0===xt?void 0:xt.title)}),jt&&(0,d.Nzx)(Y)&&(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,d.vw2)(Y)?"row":"row-reverse",justifyContent:(0,d.vw2)(Y)?"flex-start":"flex-end"},children:[(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(Y),"important"),t.style.setProperty("font-size",it,"important"),t.style.setProperty("font-family",H,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(Y)?"normal":"bold"},children:(0,u.Sb)(parseFloat((0,f.U)()?(null!==(_=null===mt||void 0===mt||null===(k=mt.variants)||void 0===k||null===(M=k[0])||void 0===M?void 0:M.price)&&void 0!==_?_:null===mt||void 0===mt?void 0:mt.price)/100:null===xt||void 0===xt?void 0:xt.price)," ",Y,null===(I=ct.products[0])||void 0===I?void 0:I.currency)}),!isNaN(wt)&&wt>gt&&(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(Y),"important"),t.style.setProperty("font-size",it,"important"),t.style.setProperty("font-family",H,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,u.Sb)(parseFloat((0,f.U)()?(null!==(R=null===mt||void 0===mt||null===(z=mt.variants)||void 0===z||null===(F=z[0])||void 0===F?void 0:F.compare_at_price)&&void 0!==R?R:null===mt||void 0===mt?void 0:mt.compare_at_price)/100:null===xt||void 0===xt?void 0:xt.compare_price)," ",Y,null===(E=ct.products[0])||void 0===E?void 0:E.currency)}),"56352899156"==Y&&(0,d.Nzx)(Y)&&jt&&!isNaN(Pt)&&0!=Pt&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(Y)?"#343434"==J?(0,d.ub$)(Y):J:(0,d.ub$)(Y),alignItems:"center",borderRadius:(0,d.v8m)(Y)+"px",width:"fit-content",padding:"3px 4px"},children:(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(Y),"important"),t.style.setProperty("font-size",nt,"important"),t.style.setProperty("font-family",H,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${Pt}% ${null!==(q=null===v.m||void 0===v.m||null===(D=v.m[K])||void 0===D?void 0:D.off)&&void 0!==q?q:"off"}`})})]}),(0,d.Nzx)(Y)&&jt&&!isNaN(Pt)&&0!=Pt&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(Y)?"#343434"==J?(0,d.ub$)(Y):J:(0,d.ub$)(Y),alignItems:"center",borderRadius:(0,d.v8m)(Y)+"px",width:"fit-content",padding:(0,d.Cf)(Y)?"3px 6px":"0px"},children:(0,d.Cf)(Y)?(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(Y),"important"),t.style.setProperty("font-size",nt,"important"),t.style.setProperty("font-family",H,"important"))},children:`${Pt}% ${null!==(L=null===v.m||void 0===v.m||null===(O=v.m[K])||void 0===O?void 0:O.off)&&void 0!==L?L:"off"}`}):(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d._zx)(Y),"important"),t.style.setProperty("font-size",nt,"important"),t.style.setProperty("font-family",(0,d.ogW)(Y),"important"))},children:(0,d.rsz)(Y)})})]}),""!=(null===ct||void 0===ct?void 0:ct.title)&&(window.location.pathname.includes("/categories/")||window.location.pathname.includes("/products/"))&&(0,b.jsx)("div",{className:"wht-video-title",style:{display:"none",justifyContent:"center",borderRadius:"5px",alignItems:"center",padding:"6px 8px"},children:(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#343434"),t.style.setProperty("font-size",rt,"important"),t.style.setProperty("font-family",H,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-align","center","important"))},children:null===ct||void 0===ct?void 0:ct.title})})]})]})}},2835:function(t,e,o){var r=o(7891),i=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,p]=(0,l.QN)("productRatings"),u=(0,l.Xd)("whatmorePrimaryFont"),c=t.productId,y=t.fontSize,m=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(c in d)||d[c].avgRating>5)return(0,s.jsx)(s.Fragment,{});const f=d[c].avgRating,v=d[c].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(f))].map((t,e)=>(0,s.jsx)(r.A,{sx:{color:a,fontSize:y+"px"}},"star-icon"+e)),f-Math.floor(f)>.2?(0,s.jsx)(i.A,{sx:{color:a,fontSize:y+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(n.A,{sx:{color:a,fontSize:y+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map((t,e)=>(0,s.jsx)(n.A,{sx:{color:a,fontSize:y+"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*y+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",f,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",m,"important"),t.style.setProperty("font-size",.8*y+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+v+")"]})})]})})}},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return n}});var r=o(5830),i=o(1745);const n=async function(t,e,o,n,l="",s="",a="",d="",p="",u=""){(0,r.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t&&quantityInput?(s&&t.setAttribute("data-product-id",s),t.click(),setTimeout(()=>{(0,i.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(l));if(e){const t=e.key,o=e.quantity,r=e.properties;(0,i.CP)(t,o,r,a,d,p,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===u||void 0===u||null===(c=u.split("?"))||void 0===c?void 0:c[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=e.querySelector('button[data-pf-type="ProductATC2"]'),r=e.querySelector('input[data-pf-type="QuantityField"]');o&&r&&(r.value="1",l&&r.setAttribute("data-variants-continue",l),s&&o.setAttribute("data-product-id",s))}),void setTimeout(e,o));var c}const y=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},m=(t,e,o)=>{const r=t.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",e),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",o);let t=r.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const o=t.querySelector('option[selected="selected"]');o&&o.setAttribute("value",e)}}const i=r.querySelector('input[name="product-id"]');i&&i.setAttribute("value",o);const n=document.createElement("div");return n.className="whatmore-atc",n.appendChild(r),document.body.appendChild(n),console.log(n,"formElement"),n}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},v=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),r=o.key,n=o.quantity,l=o.properties;(0,i.CP)(r,n,l,a,d,p,!0,!0,!0)})},h=y(document);if(h||(null===h||void 0===h?void 0:h.length)>0){const t=m(h,l,s);f(t),setTimeout(()=>{v(l)},500),t.remove()}else{var x;fetch(null===u||void 0===u||null===(x=u.split("?"))||void 0===x?void 0:x[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=y(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=m(o,l,s);f(t),setTimeout(()=>{v(l)},500),t.remove()}})}setTimeout(e,o)}},4826:function(){},7136:function(t,e,o){var r=o(9950),i=o(932),n=o(7509),l=o(5830),s=o(4414);e.A=function(t){var[e,o]=(0,i.A)();(0,r.useContext)(n.h);const a=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:o,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7458:function(t,e,o){o.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))}},7509:function(t,e,o){o.d(e,{h:function(){return r}});const r=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,o){o.d(e,{B:function(){return l},b:function(){return n}});var r=o(1348),i=o(5830);function n(t,e=""){const o=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,r.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],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(o)?"image":null!==i&&void 0!==i&&i.test(o)?"video":void 0}},8538:function(t,e,o){o.d(e,{v:function(){return i}});var r=o(5830);function i(t,e){const o=(0,r.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==o||"72442478904"==o||"58562281529"==o?t:"66168324332"==o&&"prod-tile"!=e?null===t||void 0===t||null===(i=t.split("- "))||void 0===i?void 0:i[0]:t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var i}},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,939],{3262:function(t,e,r){r.r(e),r.d(e,{initiateCartSliderEvent:function(){return n}});var o=r(5830),i=r(1745);const n=async function(t,e,r,n,u="",a="",c="",d="",l="",s=""){(0,o.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t&&quantityInput?(a&&t.setAttribute("data-product-id",a),t.click(),setTimeout(()=>{(0,i.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(u));if(e){const t=e.key,r=e.quantity,o=e.properties;(0,i.CP)(t,r,o,c,d,l,!0,!0,!0)}})},500),void setTimeout(e,r)):(fetch(null===s||void 0===s||null===(m=s.split("?"))||void 0===m?void 0:m[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),r=e.querySelector('button[data-pf-type="ProductATC2"]'),o=e.querySelector('input[data-pf-type="QuantityField"]');r&&o&&(o.value="1",u&&o.setAttribute("data-variants-continue",u),a&&r.setAttribute("data-product-id",a))}),void setTimeout(e,r));var m}const p=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let r=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return r||(r=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),r},f=(t,e,r)=>{const o=t.cloneNode(!0);if(o){o.hasAttribute("data-product-variant-id")&&o.setAttribute("data-product-variant-id",e),o.hasAttribute("data-product-id")&&o.setAttribute("data-product-id",r);let t=o.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=o.querySelector('select[name="id"]');if(t){const r=t.querySelector('option[selected="selected"]');r&&r.setAttribute("value",e)}}const i=o.querySelector('input[name="product-id"]');i&&i.setAttribute("value",r);const n=document.createElement("div");return n.className="whatmore-atc",n.appendChild(o),document.body.appendChild(n),console.log(n,"formElement"),n}},v=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const r=e.items.find(e=>e.id==t),o=r.key,n=r.quantity,u=r.properties;(0,i.CP)(o,n,u,c,d,l,!0,!0,!0)})},h=p(document);if(h||(null===h||void 0===h?void 0:h.length)>0){const t=f(h,u,a);v(t),setTimeout(()=>{y(u)},500),t.remove()}else{var b;fetch(null===s||void 0===s||null===(b=s.split("?"))||void 0===b?void 0:b[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),r=p(e);if(r||(null===r||void 0===r?void 0:r.length)>0){const t=f(r,u,a);v(t),setTimeout(()=>{y(u)},500),t.remove()}})}setTimeout(e,r)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,806,939],{69:function(t,e,n){n.d(e,{Ij:function(){return i},bi:function(){return a}});let o,r=!1;function i(){return o?o.play().then(()=>{r=!0,console.debug("iOS autoplay restrictions bypassed."),o.pause()}).catch(t=>{console.error("Failed to bless videos:",t.message)}):Promise.reject(new Error("Blessing video not initialized."))}function a(){o||(o=document.createElement("video"),o.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",o.muted=!0,o.playsInline=!0,o.style.display="none",document.body.appendChild(o));const t=()=>{r||i()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},2835:function(t,e,n){var o=n(7891),r=n(8454),i=n(3781),a=n(5830),s=n(4414);e.A=function(t){var e;const n=(0,a.Xd)("whatmoreUITheme"),[l]=(0,a.QN)("whatmoreSecondaryColor"),[d,c]=(0,a.QN)("productRatings"),u=(0,a.Xd)("whatmorePrimaryFont"),p=t.productId,v=t.fontSize,h=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(p in d)||d[p].avgRating>5)return(0,s.jsx)(s.Fragment,{});const m=d[p].avgRating,f=d[p].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(m))].map((t,e)=>(0,s.jsx)(o.A,{sx:{color:l,fontSize:v+"px"}},"star-icon"+e)),m-Math.floor(m)>.2?(0,s.jsx)(r.A,{sx:{color:l,fontSize:v+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(i.A,{sx:{color:l,fontSize:v+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map((t,e)=>(0,s.jsx)(i.A,{sx:{color:l,fontSize:v+"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:l,borderRadius:"round"==n?"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*v+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",m,"\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*v+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+f+")"]})})]})})}},3262:function(t,e,n){n.r(e),n.d(e,{initiateCartSliderEvent:function(){return i}});var o=n(5830),r=n(1745);const i=async function(t,e,n,i,a="",s="",l="",d="",c="",u=""){(0,o.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t&&quantityInput?(s&&t.setAttribute("data-product-id",s),t.click(),setTimeout(()=>{(0,r.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,n=e.quantity,o=e.properties;(0,r.CP)(t,n,o,l,d,c,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=e.querySelector('button[data-pf-type="ProductATC2"]'),o=e.querySelector('input[data-pf-type="QuantityField"]');n&&o&&(o.value="1",a&&o.setAttribute("data-variants-continue",a),s&&n.setAttribute("data-product-id",s))}),void setTimeout(e,n));var p}const v=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},h=(t,e,n)=>{const o=t.cloneNode(!0);if(o){o.hasAttribute("data-product-variant-id")&&o.setAttribute("data-product-variant-id",e),o.hasAttribute("data-product-id")&&o.setAttribute("data-product-id",n);let t=o.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=o.querySelector('select[name="id"]');if(t){const n=t.querySelector('option[selected="selected"]');n&&n.setAttribute("value",e)}}const r=o.querySelector('input[name="product-id"]');r&&r.setAttribute("value",n);const i=document.createElement("div");return i.className="whatmore-atc",i.appendChild(o),document.body.appendChild(i),console.log(i,"formElement"),i}},m=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},f=t=>{(0,r.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),o=n.key,i=n.quantity,a=n.properties;(0,r.CP)(o,i,a,l,d,c,!0,!0,!0)})},y=v(document);if(y||(null===y||void 0===y?void 0:y.length)>0){const t=h(y,a,s);m(t),setTimeout(()=>{f(a)},500),t.remove()}else{var g;fetch(null===u||void 0===u||null===(g=u.split("?"))||void 0===g?void 0:g[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=v(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=h(n,a,s);m(t),setTimeout(()=>{f(a)},500),t.remove()}})}setTimeout(e,n)}},3278:function(t,e,n){n.r(e),n.d(e,{default:function(){return F}});var o=n(9950),r=n(340),i=n(5089),a=n(1941),s=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),u=n(5551),p=(n(4826),n(7575)),v=n(2257),h=n(1348),m=n(6649),f=n(3788),y=n(6493),g=n(4895),x=n(5375),b=n(4833),w=n(4414);var j=function(t){var e;const n=t.isMuted,{whatmoreWidgetSourceDetails:r}=(0,o.useContext)(u.B),i=r.templateType,a=(0,b.l2)(i),s=null!==(e=t.iconSize)&&void 0!==e?e:30;function l(e){t.onToggle(e)}return(0,w.jsx)("div",{style:{height:"fit-content",cursor:"pointer"},children:n?(0,w.jsx)(x.A,{sx:{color:"white",fontSize:a?1.3*s:s,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{l(t)}}):(0,w.jsx)(g.A,{sx:{color:"white",fontSize:a?1.3*s:s,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{l(t)}})})},S=n(3771),A=n(6613),C=n(1085),k=n(1079),I=n(5873),P=n(1351),T=n(6157),M=n(3294),R=n(9879),E=n(9821),N=n(69);function q(t){const[e,n]=(0,o.useState)(t.initialMuteState),r=t.events,i=t.activeEventIndex,a=t.setActiveEventIndex,l=(0,s.Xd)("whatmoreShopId"),d="portrait"===t.mode;function c(o){o.stopPropagation(),n(!e),(0,A.MN)()&&((0,E._)()?(0,C.bo)():(0,N.bi)()),t.onMuteToggle()}const u=t.event;return(0,w.jsxs)("div",{style:{position:(0,h.D7t)(l)?"absolute":"relative",top:(0,h.D7t)(l)?0:"",zIndex:1,bottom:(0,h.D7t)(l)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:[(0,w.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"==u.event_type&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{style:{width:"100%"},onClick:t=>{(0,h.OC6)(l)||c(t)}}),(0,w.jsx)(j,{isMuted:e,onToggle:t=>{c(t)}})]}),r.length>1&&(0,w.jsxs)(w.Fragment,{children:[(0,w.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(),a(0===i?r.length-1:i-1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,w.jsx)(p.A,{})})})}),(0,w.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(),a(i===r.length-1?0:i+1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,w.jsx)(v.A,{})})})}),(0,h.JiT)(l)&&(0,w.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:r.map((t,e)=>{const n=e===i;return(0,w.jsx)("button",{onClick:t=>{t.stopPropagation(),a(e)},style:{width:n?"25px":d?"12px":"14px",height:d?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,h.z1s)(l):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},e)})})]})]}),!(0,h.OC6)(l)&&(0,w.jsx)("div",{style:{width:"100%",height:"100%"},onClick:c})]})}var z=function(t){var e,n,r,i;const[l,d,c]=(0,a.A)(),[p,v]=(0,o.useState)(!0),g=(0,s.Xd)("whatmoreVideoTileSize"),[x,b,j]=(0,m.A)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:A}=(0,o.useContext)(u.B),C=(0,s.Xd)("whatmoreShopId"),E=t.events,N=t.activeEventIndex,z=t.setActiveEventIndex,D=E[N],F=(0,y.lP)(D),_=(0,y.cb)(D);if((0,o.useEffect)(()=>{I.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,w.jsx)(w.Fragment,{});if("landscape"===l&&!_)return(0,w.jsx)(w.Fragment,{});const B=(0,f.s)("portrait"===l?F:_),X=g/100*(0,h.igk)(C),L=g/100*(0,h.Y_l)(C),O="portrait"===l?(0,h.G0Q)(C):(0,h.ga9)(C),V="portrait"===l?c*X:c*L,W=V*O,J=null!=(null===(e=D.cta)||void 0===e||null===(n=e[1])||void 0===n?void 0:n.cta_link);return(0,w.jsxs)("div",{ref:x,onClick:()=>{var t,e;(0,P.kz)({userInteractionType:T.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:A,event:E[N]}),(0,h.OC6)(C)&&window.open(null===(t=D.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,h.D7t)(C)?"100%":V,minHeight:(0,h.D7t)(C)?c*O:"",height:(0,h.D7t)(C)?"auto":W,borderWidth:(0,h.YcK)(C),borderColor:(0,h.Fwt)(C),overflow:"hidden",cursor:"pointer"},children:["28273541192"===C?(0,w.jsx)(R.A,{height:"100%",width:"100%",url:B,isPlaying:b,event:D,isVideoMuted:!b||p,source:M.N.BANNER}):(0,w.jsx)(S.A,{height:"100%",width:"100%",url:B,isPlaying:b,event:D,isVideoMuted:!b||p,setDuration:t.setDuration,source:M.N.BANNER}),(0,w.jsx)(q,{isCTAPresent:J,events:E,activeEventIndex:N,setActiveEventIndex:z,event:D,mode:l,onMuteToggle:()=>v(!p),initialMuteState:p}),(0,h.XYM)(C)&&(null===D||void 0===D||null===(r=D.cta)||void 0===r?void 0:r.length)>1&&(0,w.jsx)("div",{style:{position:"absolute",zIndex:1,bottom:"10%",left:"50%",transform:"translateX(-50%)"},className:"whatmore-ios-css-relative-fix",children:(0,w.jsx)(k.A,{isBanner:!0,event:D,cta:null===D||void 0===D||null===(i=D.cta)||void 0===i?void 0:i[1],fontFactor:.6})})]})};const D=(0,d.A)({key:"whatmore-css-bv"});var F=function(t){const{whatmoreRootId:e}=(0,o.useContext)(u.B),[n,d]=(0,o.useState)(0),p=t.events,[v,h]=(0,o.useState)(-1),[m]=(0,s.QN)("whatmoreShopId"),[f]=(0,a.A)();let y;return(0,o.useEffect)(()=>{y&&clearInterval(y);const t="video"===p[n].event_type,e=t?1e3*v:6e3;return t?-1!=v&&(y=setInterval(()=>{d(t=>t===p.length-1?0:t+1)},e)):y=setInterval(()=>{d(t=>t===p.length-1?0:t+1)},e),()=>{clearInterval(y)}},[v,n]),delete i.Ay.styles.global,(0,w.jsx)(l.C,{value:D,children:(0,w.jsx)("div",{className:"whatmore-banner-events",style:{height:"60183543963"===m&&"portrait"==f?"200px":void 0},children:(0,w.jsx)(r.s,{theme:i.Ay,cssVarsRoot:e,resetCSS:!1,children:(0,w.jsx)(c.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,w.jsx)(z,{activeEventIndex:n,events:p,setActiveEventIndex:d,setDuration:h})})})})})}},4826: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 a},b:function(){return i}});var o=n(1348),r=n(5830);function i(t,e=""){const n=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function a(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,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(n)?"image":null!==r&&void 0!==r&&r.test(n)?"video":void 0}},8538:function(t,e,n){n.d(e,{v:function(){return r}});var o=n(5830);function r(t,e){const n=(0,o.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n||"58562281529"==n?t:"66168324332"==n&&"prod-tile"!=e?null===t||void 0===t||null===(r=t.split("- "))||void 0===r?void 0:r[0]:t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var r}},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,485,939],{22:function(t,e,o){o.d(e,{$S:function(){return s},_:function(){return i},b4:function(){return r},dl:function(){return n},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const i="device_type",n="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,o){var i=o(5830),n=o(1941),r=o(22),l=o(1348);e.A=function(t){const[e,o,s]=(0,n.A)(),[a]=(0,i.QN)("whatmoreLandscapePadding"),[d]=(0,i.QN)("whatmoreShopId"),[c]=(0,i.QN)("whatmoreVideoTileSize"),[p]=(0,i.QN)("whatmoreVideoTileSizePortrait"),u=s>o,h="portrait"==e?p:c,m=!("portrait"!=e||!(s>=481)),f=h/100*1.3*.5,y=h/100;var v=Math.min(s,o),[x,g,w,b]=[.6*v*(16/9),.6*v,1.4,0];function j(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(u){const t=g*f,e=x*f;[x,g,w,b]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],S[r._]=r.$S,S[r.dl]=r.nN}else if(m){var C=.8*g,P=.8*x;"portrait"==e?(C*=y,P*=y,[x,g,w,b]=[P,C,j(s/(1.2*C)),0],S[r._]=r.vF,S[r.dl]=r.tn):([x,g,w,b]=[P,C,(s-2*a)/(1.1*C),a],S[r._]=r.vF,S[r.dl]=r.nN)}else{C=g,P=x;"portrait"==e?(C=C*y*.9,P=P*y*.9,[x,g,w,b]=[P,C,j(s/(1.15*C)),0],S[r._]=r.b4,S[r.dl]=r.tn):(C=.7*g,P=.7*x,[x,g,w,b]=[P,C,(s-2*a)/(1.1*C),a],S[r._]=r.b4,S[r.dl]=r.nN)}return[x,g,w,b,S]}},2835:function(t,e,o){var i=o(7891),n=o(8454),r=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,h=t.fontSize,m=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 f=d[u].avgRating,y=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(f))].map((t,e)=>(0,s.jsx)(i.A,{sx:{color:a,fontSize:h+"px"}},"star-icon"+e)),f-Math.floor(f)>.2?(0,s.jsx)(n.A,{sx:{color:a,fontSize:h+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(r.A,{sx:{color:a,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map((t,e)=>(0,s.jsx)(r.A,{sx:{color:a,fontSize:h+"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*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",f,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",m,"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","("+y+")"]})})]})})}},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return r}});var i=o(5830),n=o(1745);const r=async function(t,e,o,r,l="",s="",a="",d="",c="",p=""){(0,i.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t&&quantityInput?(s&&t.setAttribute("data-product-id",s),t.click(),setTimeout(()=>{(0,n.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(l));if(e){const t=e.key,o=e.quantity,i=e.properties;(0,n.CP)(t,o,i,a,d,c,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===p||void 0===p||null===(u=p.split("?"))||void 0===u?void 0:u[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=e.querySelector('button[data-pf-type="ProductATC2"]'),i=e.querySelector('input[data-pf-type="QuantityField"]');o&&i&&(i.value="1",l&&i.setAttribute("data-variants-continue",l),s&&o.setAttribute("data-product-id",s))}),void setTimeout(e,o));var u}const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},m=(t,e,o)=>{const i=t.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",e),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",o);let t=i.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=i.querySelector('select[name="id"]');if(t){const o=t.querySelector('option[selected="selected"]');o&&o.setAttribute("value",e)}}const n=i.querySelector('input[name="product-id"]');n&&n.setAttribute("value",o);const r=document.createElement("div");return r.className="whatmore-atc",r.appendChild(i),document.body.appendChild(r),console.log(r,"formElement"),r}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,n.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),i=o.key,r=o.quantity,l=o.properties;(0,n.CP)(i,r,l,a,d,c,!0,!0,!0)})},v=h(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const t=m(v,l,s);f(t),setTimeout(()=>{y(l)},500),t.remove()}else{var x;fetch(null===p||void 0===p||null===(x=p.split("?"))||void 0===x?void 0:x[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=h(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=m(o,l,s);f(t),setTimeout(()=>{y(l)},500),t.remove()}})}setTimeout(e,o)}},4063:function(t,e,o){var i=o(9950),n=o(3731),r=o(3247),l=o(5830),s=o(5144),a=o(4414);e.A=function(t){var e,o;const[d,c]=(0,i.useState)(!1),[p,u]=(0,i.useState)(!1),[h]=(0,l.QN)("whatmoreSecondaryColor"),[m]=(0,l.QN)("whatmoreSecondaryColorShade600"),[f]=(0,l.QN)("whatmoreSecondaryColorShade300"),[y]=(0,l.QN)("whatmorePrimaryFont"),v=t.onClick,x=t.icon,g=null!==(e=t.borderRadius)&&void 0!==e?e:"sm",w=null!==(o=t.baseFontSize)&&void 0!==o?o:12;return(0,a.jsxs)(r.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:g,backgroundColor:d?f:h,animation:p?s.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:t=>{t.stopPropagation(),u(!0),v()},onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[(0,a.jsx)(n.E,{fontSize:w+"px !important",fontWeight:"normal",sx:{fontFamily:y+" !important",color:"white !important"},children:"VIEW MORE"}),x]})}},4431:function(t,e,o){o.r(e),o.d(e,{default:function(){return $}});var i=o(9950),n=(o(4826),o(340)),r=o(5873),l=o(5089),s=(o(3997),o(4669),o(9733),o(4365),o(7229),o(572)),a=o(8603),d=o(932),c=o(1941),p=o(5491),u=o.n(p),h=o(5830),m=o(7509),f=o(7136),y=o(1348),v=o(5551),x=o(1351),g=o(6157),w=o(9879),b=o(6663),j=o(8538),S=o(6594),C=o(22),P=o(6613),A=o(8149),k=o(7740),M=o(7035),N=o(6305),T=o(4833),I=o(4533),R=o(63),_=o(7973),z=o(4414);var E=function({productList:t,firstAvailableProduct:e,setFirstAvailableProduct:o,tileWidth:i}){const n=.06*i,r=n+"px",[l]=(0,h.QN)("whatmorePrimaryFont");return(0,z.jsxs)("div",{onClick:t=>{t.stopPropagation()},style:{display:"flex",flexDirection:"column",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backgroundColor:"#fff",height:"fit-content",padding:"14px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.7)"},children:[(0,z.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-size",r,"important"),t.style.setProperty("font-weight","600","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"))},children:"Select Product"}),(0,z.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",paddingTop:"8px",maxHeight:.9*i,overflowY:"auto",paddingBottom:"12px"},children:t.map((t,i)=>(0,z.jsxs)("div",{onClick:e=>{e.stopPropagation(),(t=>{o(t)})(t)},style:{WebkitTapHighlightColor:"transparent",cursor:"pointer",padding:"8px",display:"flex",alignItems:"center",gap:"8px",borderRadius:"6px",backgroundColor:(null===e||void 0===e?void 0:e.client_product_id)==(null===t||void 0===t?void 0:t.client_product_id)?"#f0f0f0":"white",border:(null===e||void 0===e?void 0:e.client_product_id)==(null===t||void 0===t?void 0:t.client_product_id)?"1px solid #343434":"none"},children:[(0,z.jsx)("img",{src:(0,_.b)(null===t||void 0===t?void 0:t.thumbnail_image),alt:null===t||void 0===t?void 0:t.title,style:{width:2*n,height:2*n}}),(0,z.jsx)("p",{style:{fontSize:.8*n+"px",fontFamily:l,textTransform:"uppercase",backgroundColor:"inherit"},children:null===t||void 0===t?void 0:t.title})]},i))})]})};var F=function(t){var e,o,n,r,l,s,a,c,p,u,f,_,F,O,L,D,W,X;const[$,q,B,Q,U]=(0,d.A)(),H=(0,h.Xd)("whatmoreShopId"),Y=(0,h.Xd)("whatmoreLandingLocationType"),V="portrait"===U[C.dl],J=V?1.076*q*(0,y.HWj)(H):q*(0,y.N_4)(H),G=J+"px",K=(V?1.076*q*(0,y.HWj)(H):q*(0,y.N_4)(H))+"px",Z=(V?.965*q*(0,y.HWj)(H):.859*q*(0,y.N_4)(H))+"px",[tt,et]=(0,i.useState)(t.event),[ot,it]=(0,i.useState)(!1),nt=(0,h.Xd)("whatmoreSecondaryColor");var rt=(0,i.useContext)(m.h);const lt=null===(e=t.isOnFocus)||void 0===e||e,st=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,at=t.onClick,dt=(0,h.Xd)("whatmoreUITheme"),ct=(0,h.Xd)("websiteLanguage"),pt=null!==(n=t.animateOnFocus&&(0,y.n5O)(H))&&void 0!==n&&n,[ut,ht]=(0,i.useState)(!1),mt=(0,h.Xd)("whatmorePrimaryFont"),[ft,yt]=(0,i.useState)(null!==(r=null===(l=tt.products)||void 0===l?void 0:l.find(t=>"active"==t.product_status))&&void 0!==r?r:null===(s=tt.products)||void 0===s?void 0:s[0]),vt=ft&&Object.keys(ft).length>0,xt=Math.round(+(null===ft||void 0===ft?void 0:ft.price)),gt=Math.round(+(null===ft||void 0===ft?void 0:ft.compare_price)),wt=gt&&0!=gt&>>xt?Math.round((gt-xt)/gt*100):NaN,[bt,jt]=(0,i.useState)(wt),[St,Ct]=(0,i.useState)(),{whatmoreIsPreviewMode:Pt,whatmoreWidgetSourceDetails:At,whatmoreUserInfo:kt}=(0,i.useContext)(v.B),[Mt,Nt]=(0,i.useState)(!1),[Tt,It,Rt,_t,zt,Et]=(0,N.A)(0,ft,tt),Ft=vt&&(0,y.mRH)(H),Ot=vt&&(0,y.VhI)(H),Lt=(0,y.WRx)(H)||nt,Dt=(0,y.jsS)(H)||"white",[Wt,Xt]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(vt&&(0,y.w4b)(H)&&(0,S.fu)(tt,(0,y.NCy)(H),H).then(t=>{var e,o,i;et(t),(null===t||void 0===t||null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.discount)&&jt(null===t||void 0===t||null===(i=t.products[0])||void 0===i?void 0:i.discount),ht(!0)}),vt){(async()=>{let t=ft;for(let i=0;i<(null===tt||void 0===tt||null===(e=tt.products)||void 0===e?void 0:e.length);i++){var e;const o=await(0,A.M)(null===tt||void 0===tt?void 0:tt.products[i],(0,y.NCy)(H),H);if(null!==o&&void 0!==o&&o.available){yt(null===tt||void 0===tt?void 0:tt.products[i]),t=null===tt||void 0===tt?void 0:tt.products[i];break}}const o=await(0,A.M)(t,(0,y.NCy)(H),H);Ct(o),ht(!0)})()}},[vt]),(0,i.useEffect)(()=>{if(vt){(async()=>{const t=await(0,A.M)(ft,(0,y.NCy)(H),H);Ct(t),ht(!0)})()}},[ft]);const $t=async t=>{if(t.stopPropagation(),!vt)return;if(!Wt)return void Xt(!0);it(!0);const e=At.landingLocationType,o=At.templateType,i=(0,T.Wd)(e)+(0,T.gf)(o)+(null!==tt&&void 0!==tt&&tt.isRelatedEvent?"R":"E")+"_"+(null===tt||void 0===tt?void 0:tt.event_id);(0,I.Ch)(tt.event_id,tt.products,"homepage","carousel",i,null===tt||void 0===tt?void 0:tt.location,null===kt||void 0===kt?void 0:kt.userType),"init"==Tt.state?(zt(i,!0),(0,x.kz)({userInteractionType:g.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:At,event:tt,productList:[ft],ctaList:tt.cta})):"awaitingVariantSelection"==Tt.state&&Et(null,i),setTimeout(()=>{it(!1),Xt(!1)},3e3)},qt=V?"36px":"44px";return(0,z.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",rt.tileTopMargin+"px"),t.style.setProperty("margin-bottom",rt.tileBottomMMargin+"px"))},className:pt&&!V?lt?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:q},onClick:()=>{at(tt)},onMouseEnter:()=>Nt(!0),onMouseLeave:()=>Nt(!1),children:[(0,z.jsxs)("div",{style:{borderRadius:"round"==dt?"5%":"0px",boxShadow:"round"==dt?"0px 0px 5px 0px #B0B0B0":null,height:$,borderWidth:(0,y.YcK)(H),borderColor:(0,y.Fwt)(H),overflow:"hidden",position:"relative"},children:[(0,z.jsx)(w.A,{height:(0,y.u06)(H)+" !important",width:"100%",url:tt.thumbnail_image,isPlaying:lt||st||(0,P.At)(),event:tt}),Ot&&vt&&(Mt||V)&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{style:{position:"absolute",bottom:qt,left:0,right:0,display:Wt?"block":"none"},children:(0,z.jsx)(E,{productList:tt.products,firstAvailableProduct:ft,setFirstAvailableProduct:yt,tileWidth:q})}),(0,z.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:Lt||"rgba(0, 0, 0, 0.75)",height:qt,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:Mt||V?"translateY(0)":"translateY(100%)",opacity:Mt||V?1:0,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none"},onClick:$t,children:[(0,z.jsx)("div",{style:{flex:1,textAlign:"center",color:Dt,fontSize:"12px",fontFamily:mt,fontWeight:"500",letterSpacing:"0.5px"},children:ot?(0,z.jsx)(R.y,{size:"sm",color:"white"}):"ADD TO CART"}),(0,z.jsx)("span",{style:{height:"100%",borderRight:`1px solid ${Dt}`,opacity:.5}}),(0,z.jsx)("div",{onClick:t=>{t.stopPropagation(),Xt(!Wt)},style:{padding:"0 5%",display:"flex",alignItems:"center",justifyContent:"center",color:Dt,transform:Wt?"rotate(180deg)":"rotate(0deg)",transition:"all 0.25s ease"},children:(0,z.jsx)(b.A,{sx:{fontSize:2*J}})})]})]})]}),(0,z.jsxs)("div",{className:"wht-prod-info",style:{display:(0,y.AmR)(H)?"flex":"none",flexDirection:"column",padding:"12px 4px",gap:"5px",alignItems:"flex-start",minHeight:Ft?"110px":"auto",justifyContent:Ft?"space-between":"flex-start"},children:[vt&&(0,z.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.m5c)(H),"important"),t.style.setProperty("font-size","45034766485"==H&&"product"==Y?"9px":G),t.style.setProperty("line-height","120%"),t.style.setProperty("font-family",mt,"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,j.v)(null===ft||void 0===ft?void 0:ft.title)}),vt&&ut&&(0,y.Nzx)(H)&&(0,z.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,y.vw2)(H)?"row":"row-reverse",justifyContent:(0,y.vw2)(H)?"flex-start":"flex-end",alignItems:"center"},children:[(0,z.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.m5c)(H),"important"),t.style.setProperty("font-size","45034766485"==H&&"product"==Y?"8px":K),t.style.setProperty("font-family",mt,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,y.i6j)(H)?"normal":"bold"},children:(0,S.Sb)(parseFloat((0,k.U)()?(null!==(a=null===St||void 0===St||null===(c=St.variants)||void 0===c||null===(p=c[0])||void 0===p?void 0:p.price)&&void 0!==a?a:null===St||void 0===St?void 0:St.price)/100:(null===ft||void 0===ft?void 0:ft.price)>0?null===ft||void 0===ft?void 0:ft.price:null===ft||void 0===ft?void 0:ft.price_max)," ",H,null===(u=tt.products[0])||void 0===u?void 0:u.currency)}),!isNaN(gt)&>>xt&&(0,z.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.gld)(H),"important"),t.style.setProperty("font-size",K),t.style.setProperty("font-family",mt,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,S.Sb)(parseFloat((0,k.U)()?(null!==(f=null===St||void 0===St||null===(_=St.variants)||void 0===_||null===(F=_[0])||void 0===F?void 0:F.compare_at_price)&&void 0!==f?f:null===St||void 0===St?void 0:St.compare_at_price)/100:null===ft||void 0===ft?void 0:ft.compare_price)," ",H,null===(O=tt.products[0])||void 0===O?void 0:O.currency)}),(0,y.Nzx)(H)&&!isNaN(bt)&&0!=bt&&ut&&Ft&&(0,z.jsx)("div",{style:{display:(0,y.QNr)(H)?"flex":"none",backgroundColor:"green"===(0,y.ub$)(H)?"#343434"===nt?(0,y.ub$)(H):nt:(0,y.ub$)(H),alignItems:"center",borderRadius:(0,y.v8m)(H)+"px",width:"fit-content",padding:(0,y.Cf)(H)?"3px 6px":"0px"},children:(0,y.Cf)(H)?(0,z.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.BRY)(H),"important"),t.style.setProperty("font-size",Z,"important"),t.style.setProperty("font-family",mt,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${bt}% ${null!==(L=null===M.m||void 0===M.m||null===(D=M.m[ct])||void 0===D?void 0:D.off)&&void 0!==L?L:"off"}`}):(0,z.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y._zx)(H),"important"),t.style.setProperty("font-size",Z,"important"),t.style.setProperty("font-family",(0,y.ogW)(H),"important"))},children:(0,y.rsz)(H)})})]}),vt&&(0,y.Nzx)(H)&&!isNaN(bt)&&0!=bt&&ut&&!Ft&&(0,z.jsx)("div",{style:{display:(0,y.QNr)(H)?"flex":"none",backgroundColor:"green"===(0,y.ub$)(H)?"#343434"===nt?(0,y.ub$)(H):nt:(0,y.ub$)(H),alignItems:"center",borderRadius:(0,y.v8m)(H)+"px",width:"fit-content",padding:(0,y.Cf)(H)?"3px 6px":"0px"},children:(0,y.Cf)(H)?(0,z.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.BRY)(H),"important"),t.style.setProperty("font-size",Z,"important"),t.style.setProperty("font-family",mt,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${bt}% ${null!==(W=null===M.m||void 0===M.m||null===(X=M.m[ct])||void 0===X?void 0:X.off)&&void 0!==W?W:"off"}`}):(0,z.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y._zx)(H),"important"),t.style.setProperty("font-size",Z,"important"),t.style.setProperty("font-family",(0,y.ogW)(H),"important"))},children:(0,y.rsz)(H)})}),Ft&&(0,z.jsx)("button",{style:{backgroundColor:nt,display:"flex",justifyContent:"center",color:"white",borderRadius:"4px",padding:"8px 16px",fontSize:G,fontFamily:mt,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:V?"90%":"70%",marginTop:"auto",alignSelf:"flex-start"},onClick:$t,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:ot?(0,z.jsx)(R.y,{size:"sm",display:"flex !important",color:"white"}):"ADD TO CART"})]})]})},O=o(6641),L=o(4063);const D=(0,a.A)({key:"whatmore-css-hv"});function W(t){const[e,o,n]=(0,d.A)(),r=(0,h.Xd)("whatmoreShopId"),l=(0,h.Xd)("whatmoreLandingLocationType"),s=t.events,a=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,i.useContext)(v.B),p=Math.ceil(n),u=2*p,[m,w]=(0,i.useState)(u),[b,j]=(0,i.useState)(2*p),S=0===(0,y.If9)(r)?24:(0,y.If9)(r),[C,P]=(0,i.useState)({touchX:0,touchY:0}),A=()=>(0,z.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,z.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),k=()=>(0,z.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,z.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),M=t=>{if("next"===t){const t=2;j(t=>Math.min(t+Math.floor(n),s.length+p+1)),w(e=>Math.min(e+t,s.length+p+1))}else j(t=>Math.max(t-Math.floor(n),u));(0,x.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,z.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==r&&"product"==l?"center":"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:t=>{P({touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchEnd:t=>{var e,o,i,n;const r=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-C.touchX,l=(null===(i=t.changedTouches)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.clientY)-C.touchY;Math.sqrt(r**2+l**2)>10&&Math.abs(r)>Math.abs(l)&&M(r>0?"prev":"next")},children:[(0,y.JSQ)(r)&&(0,z.jsxs)(z.Fragment,{children:[b<=s.length+p&&(0,z.jsx)("div",{onClick:()=>M("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,z.jsx)(A,{})}),b>2*p&&(0,z.jsx)("div",{onClick:()=>M("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,z.jsx)(k,{})})]}),(0,z.jsx)("div",{style:{display:"flex",gap:S,transform:`translateX(-${(b-u)*(o+S)}px)`,transition:"transform 0.4s ease-in-out"},children:s.map((t,e)=>e<m?(0,z.jsx)("div",{children:(0,z.jsx)(F,{isOnFocus:e<=b-p-1&&e>=Math.max(0,b-u),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>a(t)})},`whatmore-carousel-tile-${e}`):(0,z.jsx)(f.A,{}))})]})}function X(t){const[e,o,n,r]=(0,d.A)(),[l,s]=(0,i.useState)(-1),a=(0,h.Xd)("whatmoreShopId"),[c,p]=(0,i.useState)("next"),m=t.onClick,f=t.events,{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(v.B),b=Math.min(Math.ceil(n),f.length),[j,S]=(0,i.useState)(0),C=0===(0,y.If9)(a)?24:(0,y.If9)(a),P=()=>(0,z.jsx)("div",{children:(0,z.jsx)("button",{onClick:N,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,z.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),A=()=>(0,z.jsx)("div",{children:(0,z.jsx)("button",{onClick:M,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,z.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,i.useEffect)(()=>{j<=b&&S(t=>t+b)},[b]);const k=()=>{s(-1)},M=()=>{j!==b&&(p("prev"),S(t=>Math.max(Math.ceil(t-n),b)),(0,x.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},N=()=>{j>f.length+n||(p("next"),S(t=>Math.floor(t+n)),(0,x.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},T=j>f.length?f.length-b+1:j-b,I=j>=f.length?f.length:T+b,R=f.slice(T,I);return(0,z.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${r}px`,paddingRight:`${r}px`},children:[j!==b&&(0,z.jsx)("div",{className:"wht-vst-button-prev",style:{position:"absolute",left:r+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,z.jsx)(A,{})}),(0,z.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:C+"px",width:o*n*(0,y.fHt)(a)+"px",justifyContent:f.length>b?"flex-start":"center",overflow:"auto"},children:R.map((t,e)=>{const o=`whatmore-event-tile-landscape-${t.index}${e===b-1?"-last":""}`,i=e===l;return(0,z.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===c?"next":"prev"),onMouseEnter:()=>(t=>{const e=u()(()=>s(t),300);return e(),e.cancel})(e),onMouseLeave:k,children:(0,z.jsx)(F,{isOnFocus:i,playOnUnfocus:!(0,y.aO7)(a)||e==parseInt(b/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>(t=>{m(t)})(t)})},o)})}),j<f.length&&(0,z.jsx)("div",{className:"wht-vst-button-next",style:{position:"absolute",zIndex:1,top:"50%",right:r+"px",transform:"translateY(-65%)"},children:(0,z.jsx)(P,{})})]})}var $=function(t){const[e,o,a]=(0,c.A)(),[d]=(0,h.QN)("whatmoreShopId"),[p]=(0,h.QN)("whatmorePrimaryColor"),[u]=(0,h.QN)("whatmoreSecondaryColor"),[f]=(0,h.QN)("whatmoreTitleFont"),x="portrait"==e?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,i.useContext)(v.B),{whatmoreCollectionHeading:w}=((0,h.Xd)("isInDesignMode"),(0,i.useContext)(v.B)),{whatmoreIsCollectionsTemplate:b}=(0,i.useContext)(v.B),j=t.events,S=t.onClick,C=f;function P(t){S(t)}return(0,i.useEffect)(()=>{(0,O.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{r.Sn.forEach(t=>{var e;const o=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-f"]');if(!o)return;o&&t&&(t.style.minHeight="0px")})},[]),delete l.Ay.styles.global,(0,z.jsx)(s.C,{value:D,children:(0,z.jsx)("div",{className:"whatmore-carousel-events",children:(0,z.jsx)(n.s,{theme:l.Ay,cssVarsRoot:g,resetCSS:!1,children:(0,z.jsxs)(m.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||b?(0,z.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==d?"flex-start":"center"},children:(0,z.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",C,"important"),t.style.setProperty("font-size",x+"px"))},style:{color:p,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,z.jsx)(z.Fragment,{}),"landscape"===e?(0,z.jsx)(X,{events:j,onClick:P}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(W,{events:"45034766485"==d?j.slice(0,5):j,onClick:P}),"45034766485"==d&&(0,z.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,z.jsx)(L.A,{baseFontSize:.5*x,onClick:()=>P(null===j||void 0===j?void 0:j[5])})})]})]})})})})}},4826:function(){},7136:function(t,e,o){var i=o(9950),n=o(932),r=o(7509),l=o(5830),s=o(4414);e.A=function(t){var[e,o]=(0,n.A)();(0,i.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:o,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},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))}},7509:function(t,e,o){o.d(e,{h:function(){return i}});const i=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,o){o.d(e,{B:function(){return l},b:function(){return r}});var i=o(1348),n=o(5830);function r(t,e=""){const o=(0,n.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,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(o)?"image":null!==n&&void 0!==n&&n.test(o)?"video":void 0}},8538:function(t,e,o){o.d(e,{v:function(){return n}});var i=o(5830);function n(t,e){const o=(0,i.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==o||"72442478904"==o||"58562281529"==o?t:"66168324332"==o&&"prod-tile"!=e?null===t||void 0===t||null===(n=t.split("- "))||void 0===n?void 0:n[0]:t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var n}},9733:function(){}}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,933,939],{3262:function(t,e,n){n.r(e),n.d(e,{initiateCartSliderEvent:function(){return r}});var i=n(5830),o=n(1745);const r=async function(t,e,n,r,a="",l="",s="",d="",c="",u=""){(0,i.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]')
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,933,939],{3262:function(t,e,n){n.r(e),n.d(e,{initiateCartSliderEvent:function(){return r}});var i=n(5830),o=n(1745);const r=async function(t,e,n,r,a="",l="",s="",d="",c="",u=""){(0,i.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t&&quantityInput?(l&&t.setAttribute("data-product-id",l),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,n=e.quantity,i=e.properties;(0,o.CP)(t,n,i,s,d,c,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=e.querySelector('button[data-pf-type="ProductATC2"]'),i=e.querySelector('input[data-pf-type="QuantityField"]');n&&i&&(i.value="1",a&&i.setAttribute("data-variants-continue",a),l&&n.setAttribute("data-product-id",l))}),void setTimeout(e,n));var p}const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},m=(t,e,n)=>{const i=t.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",e),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",n);let t=i.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=i.querySelector('select[name="id"]');if(t){const n=t.querySelector('option[selected="selected"]');n&&n.setAttribute("value",e)}}const o=i.querySelector('input[name="product-id"]');o&&o.setAttribute("value",n);const r=document.createElement("div");return r.className="whatmore-atc",r.appendChild(i),document.body.appendChild(r),console.log(r,"formElement"),r}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},x=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),i=n.key,r=n.quantity,a=n.properties;(0,o.CP)(i,r,a,s,d,c,!0,!0,!0)})},g=h(document);if(g||(null===g||void 0===g?void 0:g.length)>0){const t=m(g,a,l);f(t),setTimeout(()=>{x(a)},500),t.remove()}else{var v;fetch(null===u||void 0===u||null===(v=u.split("?"))||void 0===v?void 0:v[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=h(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=m(n,a,l);f(t),setTimeout(()=>{x(a)},500),t.remove()}})}setTimeout(e,n)}},3852:function(t,e,n){n.d(e,{A:function(){return y}});var i=n(3247),o=n(1422),r=n(3731),a=n(211),l=n(9950),s=n(932),d=n(5242),c=n(8781),u=n(8283);const p=u.i7`
|
|
2
2
|
0% {
|
|
3
3
|
transform: scale(1);
|
|
4
4
|
}
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
100% {
|
|
13
13
|
transform: scale(1);
|
|
14
14
|
}
|
|
15
|
-
`,m=`\n ${p}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`,f=`\n ${h}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`;var x=n(5830),g=n(7509),v=n(4414);var y=function(t){var e,n,[u,p]=(0,s.A)();const[h]=(0,x.QN)("whatmorePrimaryFont");var y=(0,l.useContext)(g.h);const w=t.event,b=t.onClick,j=null===(e=t.isOnFocus)||void 0===e||e,S=(t.playOnUnfocus,null!==(n=t.animateOnFocus)&&void 0!==n&&n);return(0,v.jsxs)(i.az,{animation:S?j?m:f:"none",marginTop:y.tileTopMargin,marginBottom:y.tileBottomMMargin,marginLeft:y.tileLeftMargin,marginRight:y.tileRightMargin,width:p,height:u,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{b(w)},cursor:"pointer",children:[(0,v.jsx)(a._,{width:"full",height:"full",src:w.thumbnail_image,objectFit:"cover",fallback:(0,v.jsx)(c.A,{width:p,height:u}),borderRadius:"lg"}),(0,v.jsx)(i.az,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,v.jsxs)(o.B,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,v.jsx)(i.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,v.jsx)(o.B,{direction:"column",justifyContent:"flex-start",children:(0,v.jsx)(i.az,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,v.jsx)(o.B,{direction:"row",justifyContent:"space-between",children:(0,v.jsx)(d.A,{event:w,fontSize:.05*u+"px",maxWidth:.8*p})})})})}),(0,v.jsx)(i.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,v.jsx)(o.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,v.jsx)(i.az,{width:"full",borderRadius:"lg",children:(0,v.jsxs)(o.B,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,v.jsx)(r.E,{color:"white",fontSize:.08*p+"px",fontWeight:"normal",align:"left",children:" "}),(0,v.jsx)(r.E,{fontSize:.08*p+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:w.title.substring(0,40)}),(0,v.jsx)(r.E,{fontSize:.08*p+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:w.presenter_name.substring(0,15)})]})})})})]})})]})}},4826:function(){},6989:function(t,e,n){n.r(e),n.d(e,{default:function(){return D}});var i=n(9950),o=n(3852),r=n(340),a=n(5089),l=(n(3997),n(9733),n(4365),n(572)),s=n(8603),d=n(6086),c=n(3731),u=n(1941),p=n(5830),h=n(7509),m=n(1348),f=n(5551),x=n(1422),g=n(932),v=n(6649),y=n(4414);function w(t){var e;const[n,i,o]=(0,v.A)({triggerOnce:!1}),r=null!==(e=t.defaultHeight)&&void 0!==e?e:"fit-content";return(0,y.jsx)(x.B,{ref:n,direction:"row",minHeight:r,height:r,width:"100%",justifyContent:"center",alignItems:"center",children:i?t.data.map((e,n)=>(0,y.jsx)("div",{children:t.renderElement({eventData:e})},"key"+n)):(0,y.jsx)("div",{style:{minHeight:{rowHeight:r},minWidth:"100%"}})})}function b(t){var e;const[n,i,o]=(0,g.A)(),r=null!==(e=t.elementsPerRow)&&void 0!==e?e:Math.floor(Math.min(o,t.dataList.length)),a=function(t,e){var n=[];const i=e;for(let o=0;o<t.length;o+=i){const e=t.slice(o,o+i);n.push(e)}return n}(t.dataList,r);return(0,y.jsx)(x.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*n,children:a.map((e,o)=>(0,y.jsx)(w,{renderElement:t.renderElement,data:e,defaultHeight:n,defaultWidth:i},"key-"+o))})}var j=n(2039),S=(n(4826),n(9879)),C=n(9258),A=n(8538),k=n(6594),F=n(7973),P=n(8149),T=n(7740),R=n(22);var M=function(t){var e,n,o,r,[a,l,s,d,c]=(0,g.A)();const u="portrait"===c[R.dl],[h,f]=(0,i.useState)(0),[x,v]=(0,i.useState)(t.event),[w]=(0,p.QN)("whatmoreShopId"),b=(0,p.QN)("whatmoreUITheme"),[j]=(0,p.QN)("whatmorePrimaryFont"),[S]=(0,p.QN)("whatmoreSecondaryColorShade900"),C=x.products.length,[M,N]=(0,i.useState)(),[I,O]=(0,i.useState)(!1);if(0==C)return(0,y.jsx)(y.Fragment,{});(0,i.useEffect)(()=>{const t=setInterval(()=>{f(t=>(t+1)%C)},3e3);return()=>{clearInterval(t)}},[]),(0,i.useEffect)(()=>{(0,m.w4b)(w)?(0,k.fu)(x,(0,m.NCy)(w),w).then(t=>{v(t),O(!0)}):(async()=>{var t;const e=await(0,P.M)(null===x||void 0===x||null===(t=x.products)||void 0===t?void 0:t[0],(0,m.NCy)(w),w);N(e),O(!0)})()},[]);const z=(u?1.23*l*(0,m.HWj)(w):1.4*l*(0,m.N_4)(w))+"px",B=(u?1.15*l*(0,m.HWj)(w):1.31*l*(0,m.N_4)(w))+"px",E=(+x.products[h].price).toFixed(),L=(+x.products[h].compare_price).toFixed(),_=.25*l,q=(0,m.zAb)(w);return(0,y.jsxs)("div",{style:{background:"9238315068"===w?"transparent":(0,m.ivR)(w),display:"flex",flexDirection:q?"row":"column",padding:"10px 12px",gap:q?"8px":"6px",borderRadius:"round"==b?"0 0 12px 12px":"0",alignItems:q?"center":"stretch"},children:[(0,y.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",flex:q?"1":"none"},children:[(0,y.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",z),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",j,"important"),t.style.setProperty("-webkit-line-clamp",1),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"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,A.v)(x.products[h].title)}),(0,y.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[I&&(0,y.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",B),t.style.setProperty("font-family",j,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,k.Sb)(parseFloat((0,T.U)()?(null===M||void 0===M?void 0:M.price)/100:null===x||void 0===x||null===(e=x.products)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)," ",w,x.products[h].currency)}),!isNaN(L)&&L>E&&I&&(0,y.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#808191","important"),t.style.setProperty("font-size",B),t.style.setProperty("font-family",j,"important"),t.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,k.Sb)(parseFloat((0,T.U)()?(null===M||void 0===M?void 0:M.compare_at_price)/100:null===x||void 0===x||null===(o=x.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_price)," ",w,x.products[h].currency)})]})]}),q&&(0,y.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,m.KZe)(w),"important")},src:(0,F.b)(x.products[h].thumbnail_image,"&width=400&height=400"),style:{width:_,height:_,borderRadius:"round"==b?"5px":"0px",backgroundColor:S,flexShrink:0},alt:"product img"})]})},N=n(6613),I=n(6305),O=n(4833),z=n(1351),B=n(6157),E=n(4533),L=n(9664);function _(t){const[e,n]=(0,g.A)(),[i]=(0,p.QN)("whatmoreShowViews"),o=t.event;return(0,y.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,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,y.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===i?(0,y.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,y.jsx)(C.A,{event:o,fontSize:.07*n+"px"})})}):(0,y.jsx)(y.Fragment,{})})})})})}var q=function(t){var e,n,o,r,a,l,s=(0,i.useContext)(h.h);const d=(0,p.Xd)("whatmoreUITheme"),c=(0,p.Xd)("whatmoreSecondaryColor"),u=(0,p.Xd)("whatmoreShopId"),[x]=(0,p.QN)("whatmorePrimaryFont");var[w,b,j,C,A]=(0,g.A)();const k="portrait"===A[R.dl],F=t.event,P=t.onClick,T=null===(e=t.isOnFocus)||void 0===e||e,q=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,W=null!==(o=t.animateOnFocus&&(0,m.n5O)(u))&&void 0!==o&&o,[D,U,Q]=(0,v.A)({triggerOnce:!0}),[H,X]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:V,whatmoreUserInfo:J}=(0,i.useContext)(f.B),Y=null!==(r=null===(a=F.products)||void 0===a?void 0:a.find(t=>"active"==t.product_status))&&void 0!==r?r:null===(l=F.products)||void 0===l?void 0:l[0],Z=Y&&Object.keys(Y).length>0,[K,G,$,tt,et,nt]=(0,I.A)(0,Y,F),it=.07*b+"px",ot=Z&&(0,m.Kr7)(u),rt=(0,m.ZzM)(u),at=rt?"BUY NOW":"ADD TO CART",lt=t=>{if(t.stopPropagation(),!Z)return;const e=V.landingLocationType,n=V.templateType,i=(0,O.Wd)(e)+(0,O.gf)(n)+(null!==F&&void 0!==F&&F.isRelatedEvent?"R":"E")+"_"+(null===F||void 0===F?void 0:F.event_id);if((0,E.Ch)(F.event_id,F.products,"homepage","carousel",i,null===F||void 0===F?void 0:F.location,null===J||void 0===J?void 0:J.userType),rt&&Y){const t=Y.product_link;if(t)return void window.open(t,"_blank")}"init"==K.state?(et(i,!0),(0,z.kz)({userInteractionType:B.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:V,event:F,productList:[Y],ctaList:F.cta})):"awaitingVariantSelection"==K.state&&nt(null,i)};return(0,y.jsxs)("div",{style:{display:"flex",flexDirection:"column",margin:"0 auto"},children:[(0,y.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",s.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom","9238315068"===u?"0px":s.tileBottomMMargin+"px","important"))},style:{width:b,height:w,borderRadius:"round"==d?"12px":"0px",borderWidth:"9238315068"===u?0:(0,m.MRv)(u),borderColor:"9238315068"===u?"transparent":"white"==(0,m.Fwt)(u)?c:(0,m.Fwt)(u),overflow:"hidden",cursor:"pointer",position:"relative"},className:W?T?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{P(F)},onMouseEnter:()=>X(!0),onMouseLeave:()=>X(!1),children:[(0,y.jsx)(S.A,{height:"100%",width:"100%",url:F.thumbnail_image,isPlaying:T||q||(0,N.At)(),event:F}),"9238315068"===u&&Z&&(H||k)&&(0,y.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:H||k?"rgba(0, 0, 0, 0.75)":"rgba(0, 0, 0, 0.6)",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:H||k?"translateY(0)":"translateY(100%)",opacity:H||k?1:0,zIndex:10},onClick:lt,onMouseEnter:t=>{t.target.style.background="rgba(0, 0, 0, 0.85)"},onMouseLeave:t=>{t.target.style.background="rgba(0, 0, 0, 0.75)"},children:(0,y.jsx)("span",{style:{color:"white",fontSize:it,fontFamily:x,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:at})}),(0,y.jsxs)("div",{style:{width:b,height:w},ref:D,children:[(0,y.jsx)(_,{event:F,isOnFocus:T}),"9238315068"!==u&&(0,y.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,y.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)("p",{children:" "})}),(0,y.jsx)("div",{style:{width:"100%"},children:U&&(0,m.imx)(u)?(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",style:"40273707171"===u?{backgroundColor:"white",borderRadius:"2px",margin:"5px"}:{},children:"40273707171"===u?(0,y.jsx)(L.Ay,{event:F}):(0,y.jsx)(M,{event:F})}):(0,y.jsx)("div",{height:"20px"})})]})})]})]}),"9238315068"===u&&U&&(0,m.imx)(u)&&(0,y.jsx)("div",{style:{width:b,marginBottom:s.tileBottomMMargin+"px"},className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)(M,{event:F})}),ot&&(0,y.jsx)("div",{style:{width:b,padding:"15px 0"},children:(0,y.jsx)("button",{style:{backgroundColor:c,color:"white",border:"none",borderRadius:"12px",padding:"8px 8px",fontSize:it,fontFamily:x,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:"100%"},onClick:lt,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:at})})]})};const W=(0,s.A)({key:"whatmore-css-hv"});var D=function(t){var e;const[n,s,x]=(0,u.A)(),[v,w,S]=(0,g.A)(),[C]=(0,p.QN)("whatmoreShopId"),[A]=(0,p.QN)("whatmorePrimaryColor"),[k]=(0,p.QN)("whatmoreTitleFont"),F="portrait"==n?(0,p.Xd)("whatmoreTitleFontSizePortrait"):(0,p.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:P}=(0,i.useContext)(f.B),T=t.events,R=t.onClick,M=null!==(e=(0,m.sa6)(C))&&void 0!==e?e:k;function N(t){R(t)}const I=parseInt(Math.floor(S));return delete a.Ay.styles.global,(0,y.jsx)(l.C,{value:W,children:(0,y.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,y.jsx)(r.s,{theme:a.Ay,cssVarsRoot:P,resetCSS:!1,children:(0,y.jsxs)(h.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[t.heading.trim().length>0?(0,y.jsx)(d.o,{paddingBottom:"28px",children:(0,y.jsx)(c.E,{bgColor:A,bgClip:"text",fontSize:F,sx:{fontFamily:M+" !important"},align:"center",children:t.heading})}):(0,y.jsx)(y.Fragment,{}),"landscape"===n?(0,y.jsx)(b,{renderElement:t=>{const e=t.eventData;return(0,y.jsx)("div",{style:{margin:"10px"},children:(0,j.ij)(e)||(0,j.Il)(e)?(0,y.jsx)(q,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{N(e)}}):(0,y.jsx)(o.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{N(e)}})})},dataList:T,elementsPerRow:I}):(0,y.jsx)(b,{renderElement:t=>{const e=t.eventData;return(0,y.jsx)("div",{style:{margin:"10px"},children:(0,y.jsx)(q,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{N(e)}})})},dataList:T,elementsPerRow:I})]})})})})}}}]);
|
|
15
|
+
`,m=`\n ${p}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`,f=`\n ${h}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`;var x=n(5830),g=n(7509),v=n(4414);var y=function(t){var e,n,[u,p]=(0,s.A)();const[h]=(0,x.QN)("whatmorePrimaryFont");var y=(0,l.useContext)(g.h);const w=t.event,b=t.onClick,j=null===(e=t.isOnFocus)||void 0===e||e,C=(t.playOnUnfocus,null!==(n=t.animateOnFocus)&&void 0!==n&&n);return(0,v.jsxs)(i.az,{animation:C?j?m:f:"none",marginTop:y.tileTopMargin,marginBottom:y.tileBottomMMargin,marginLeft:y.tileLeftMargin,marginRight:y.tileRightMargin,width:p,height:u,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{b(w)},cursor:"pointer",children:[(0,v.jsx)(a._,{width:"full",height:"full",src:w.thumbnail_image,objectFit:"cover",fallback:(0,v.jsx)(c.A,{width:p,height:u}),borderRadius:"lg"}),(0,v.jsx)(i.az,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,v.jsxs)(o.B,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,v.jsx)(i.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,v.jsx)(o.B,{direction:"column",justifyContent:"flex-start",children:(0,v.jsx)(i.az,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,v.jsx)(o.B,{direction:"row",justifyContent:"space-between",children:(0,v.jsx)(d.A,{event:w,fontSize:.05*u+"px",maxWidth:.8*p})})})})}),(0,v.jsx)(i.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,v.jsx)(o.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,v.jsx)(i.az,{width:"full",borderRadius:"lg",children:(0,v.jsxs)(o.B,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,v.jsx)(r.E,{color:"white",fontSize:.08*p+"px",fontWeight:"normal",align:"left",children:" "}),(0,v.jsx)(r.E,{fontSize:.08*p+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:w.title.substring(0,40)}),(0,v.jsx)(r.E,{fontSize:.08*p+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:w.presenter_name.substring(0,15)})]})})})})]})})]})}},4826:function(){},6989:function(t,e,n){n.r(e),n.d(e,{default:function(){return D}});var i=n(9950),o=n(3852),r=n(340),a=n(5089),l=(n(3997),n(9733),n(4365),n(572)),s=n(8603),d=n(6086),c=n(3731),u=n(1941),p=n(5830),h=n(7509),m=n(1348),f=n(5551),x=n(1422),g=n(932),v=n(6649),y=n(4414);function w(t){var e;const[n,i,o]=(0,v.A)({triggerOnce:!1}),r=null!==(e=t.defaultHeight)&&void 0!==e?e:"fit-content";return(0,y.jsx)(x.B,{ref:n,direction:"row",minHeight:r,height:r,width:"100%",justifyContent:"center",alignItems:"center",children:i?t.data.map((e,n)=>(0,y.jsx)("div",{children:t.renderElement({eventData:e})},"key"+n)):(0,y.jsx)("div",{style:{minHeight:{rowHeight:r},minWidth:"100%"}})})}function b(t){var e;const[n,i,o]=(0,g.A)(),r=null!==(e=t.elementsPerRow)&&void 0!==e?e:Math.floor(Math.min(o,t.dataList.length)),a=function(t,e){var n=[];const i=e;for(let o=0;o<t.length;o+=i){const e=t.slice(o,o+i);n.push(e)}return n}(t.dataList,r);return(0,y.jsx)(x.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*n,children:a.map((e,o)=>(0,y.jsx)(w,{renderElement:t.renderElement,data:e,defaultHeight:n,defaultWidth:i},"key-"+o))})}var j=n(2039),C=(n(4826),n(9879)),S=n(9258),A=n(8538),k=n(6594),F=n(7973),P=n(8149),T=n(7740),R=n(22);var M=function(t){var e,n,o,r,[a,l,s,d,c]=(0,g.A)();const u="portrait"===c[R.dl],[h,f]=(0,i.useState)(0),[x,v]=(0,i.useState)(t.event),[w]=(0,p.QN)("whatmoreShopId"),b=(0,p.QN)("whatmoreUITheme"),[j]=(0,p.QN)("whatmorePrimaryFont"),[C]=(0,p.QN)("whatmoreSecondaryColorShade900"),S=x.products.length,[M,I]=(0,i.useState)(),[N,O]=(0,i.useState)(!1);if(0==S)return(0,y.jsx)(y.Fragment,{});(0,i.useEffect)(()=>{const t=setInterval(()=>{f(t=>(t+1)%S)},3e3);return()=>{clearInterval(t)}},[]),(0,i.useEffect)(()=>{(0,m.w4b)(w)?(0,k.fu)(x,(0,m.NCy)(w),w).then(t=>{v(t),O(!0)}):(async()=>{var t;const e=await(0,P.M)(null===x||void 0===x||null===(t=x.products)||void 0===t?void 0:t[0],(0,m.NCy)(w),w);I(e),O(!0)})()},[]);const z=(u?1.23*l*(0,m.HWj)(w):1.4*l*(0,m.N_4)(w))+"px",B=(u?1.15*l*(0,m.HWj)(w):1.31*l*(0,m.N_4)(w))+"px",E=(+x.products[h].price).toFixed(),L=(+x.products[h].compare_price).toFixed(),_=.25*l,q=(0,m.zAb)(w);return(0,y.jsxs)("div",{style:{background:"9238315068"===w?"transparent":(0,m.ivR)(w),display:"flex",flexDirection:q?"row":"column",padding:"10px 12px",gap:q?"8px":"6px",borderRadius:"round"==b?"0 0 12px 12px":"0",alignItems:q?"center":"stretch"},children:[(0,y.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",flex:q?"1":"none"},children:[(0,y.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",z),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",j,"important"),t.style.setProperty("-webkit-line-clamp",1),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"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,A.v)(x.products[h].title)}),(0,y.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[N&&(0,y.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",B),t.style.setProperty("font-family",j,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,k.Sb)(parseFloat((0,T.U)()?(null===M||void 0===M?void 0:M.price)/100:null===x||void 0===x||null===(e=x.products)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)," ",w,x.products[h].currency)}),!isNaN(L)&&L>E&&N&&(0,y.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#808191","important"),t.style.setProperty("font-size",B),t.style.setProperty("font-family",j,"important"),t.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,k.Sb)(parseFloat((0,T.U)()?(null===M||void 0===M?void 0:M.compare_at_price)/100:null===x||void 0===x||null===(o=x.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_price)," ",w,x.products[h].currency)})]})]}),q&&(0,y.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,m.KZe)(w),"important")},src:(0,F.b)(x.products[h].thumbnail_image,"&width=400&height=400"),style:{width:_,height:_,borderRadius:"round"==b?"5px":"0px",backgroundColor:C,flexShrink:0},alt:"product img"})]})},I=n(6613),N=n(6305),O=n(4833),z=n(1351),B=n(6157),E=n(4533),L=n(9664);function _(t){const[e,n]=(0,g.A)(),[i]=(0,p.QN)("whatmoreShowViews"),o=t.event;return(0,y.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,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,y.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===i?(0,y.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,y.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,y.jsx)(S.A,{event:o,fontSize:.07*n+"px"})})}):(0,y.jsx)(y.Fragment,{})})})})})}var q=function(t){var e,n,o,r,a,l,s=(0,i.useContext)(h.h);const d=(0,p.Xd)("whatmoreUITheme"),c=(0,p.Xd)("whatmoreSecondaryColor"),u=(0,p.Xd)("whatmoreShopId"),[x]=(0,p.QN)("whatmorePrimaryFont");var[w,b,j,S,A]=(0,g.A)();const k="portrait"===A[R.dl],F=t.event,P=t.onClick,T=null===(e=t.isOnFocus)||void 0===e||e,q=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,W=null!==(o=t.animateOnFocus&&(0,m.n5O)(u))&&void 0!==o&&o,[D,U,Q]=(0,v.A)({triggerOnce:!0}),[H,X]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:V,whatmoreUserInfo:J}=(0,i.useContext)(f.B),Y=null!==(r=null===(a=F.products)||void 0===a?void 0:a.find(t=>"active"==t.product_status))&&void 0!==r?r:null===(l=F.products)||void 0===l?void 0:l[0],Z=Y&&Object.keys(Y).length>0,[K,G,$,tt,et,nt]=(0,N.A)(0,Y,F),it=.07*b+"px",ot=Z&&(0,m.Kr7)(u),rt=(0,m.ZzM)(u),at=rt?"BUY NOW":"ADD TO CART",lt=t=>{if(t.stopPropagation(),!Z)return;const e=V.landingLocationType,n=V.templateType,i=(0,O.Wd)(e)+(0,O.gf)(n)+(null!==F&&void 0!==F&&F.isRelatedEvent?"R":"E")+"_"+(null===F||void 0===F?void 0:F.event_id);if((0,E.Ch)(F.event_id,F.products,"homepage","carousel",i,null===F||void 0===F?void 0:F.location,null===J||void 0===J?void 0:J.userType),rt&&Y){const t=Y.product_link;if(t)return void window.open(t,"_blank")}"init"==K.state?(et(i,!0),(0,z.kz)({userInteractionType:B.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:V,event:F,productList:[Y],ctaList:F.cta})):"awaitingVariantSelection"==K.state&&nt(null,i)};return(0,y.jsxs)("div",{style:{display:"flex",flexDirection:"column",margin:"0 auto"},children:[(0,y.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",s.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom","9238315068"===u?"0px":s.tileBottomMMargin+"px","important"))},style:{width:b,height:w,borderRadius:"round"==d?"12px":"0px",borderWidth:"9238315068"===u?0:(0,m.MRv)(u),borderColor:"9238315068"===u?"transparent":"white"==(0,m.Fwt)(u)?c:(0,m.Fwt)(u),overflow:"hidden",cursor:"pointer",position:"relative"},className:W?T?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{P(F)},onMouseEnter:()=>X(!0),onMouseLeave:()=>X(!1),children:[(0,y.jsx)(C.A,{height:"100%",width:"100%",url:F.thumbnail_image,isPlaying:T||q||(0,I.At)(),event:F}),"9238315068"===u&&Z&&(H||k)&&(0,y.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:H||k?"rgba(0, 0, 0, 0.75)":"rgba(0, 0, 0, 0.6)",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:H||k?"translateY(0)":"translateY(100%)",opacity:H||k?1:0,zIndex:10},onClick:lt,onMouseEnter:t=>{t.target.style.background="rgba(0, 0, 0, 0.85)"},onMouseLeave:t=>{t.target.style.background="rgba(0, 0, 0, 0.75)"},children:(0,y.jsx)("span",{style:{color:"white",fontSize:it,fontFamily:x,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:at})}),(0,y.jsxs)("div",{style:{width:b,height:w},ref:D,children:[(0,y.jsx)(_,{event:F,isOnFocus:T}),"9238315068"!==u&&(0,y.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,y.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)("p",{children:" "})}),(0,y.jsx)("div",{style:{width:"100%"},children:U&&(0,m.imx)(u)?(0,y.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",style:"40273707171"===u?{backgroundColor:"white",borderRadius:"2px",margin:"5px"}:{},children:"40273707171"===u?(0,y.jsx)(L.Ay,{event:F}):(0,y.jsx)(M,{event:F})}):(0,y.jsx)("div",{height:"20px"})})]})})]})]}),"9238315068"===u&&U&&(0,m.imx)(u)&&(0,y.jsx)("div",{style:{width:b,marginBottom:s.tileBottomMMargin+"px"},className:"whatmore-event-tile-component-fade-in-animation",children:(0,y.jsx)(M,{event:F})}),ot&&(0,y.jsx)("div",{style:{width:b,padding:"15px 0"},children:(0,y.jsx)("button",{style:{backgroundColor:c,color:"white",border:"none",borderRadius:"12px",padding:"8px 8px",fontSize:it,fontFamily:x,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:"100%"},onClick:lt,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:at})})]})};const W=(0,s.A)({key:"whatmore-css-hv"});var D=function(t){var e;const[n,s,x]=(0,u.A)(),[v,w,C]=(0,g.A)(),[S]=(0,p.QN)("whatmoreShopId"),[A]=(0,p.QN)("whatmorePrimaryColor"),[k]=(0,p.QN)("whatmoreTitleFont"),F="portrait"==n?(0,p.Xd)("whatmoreTitleFontSizePortrait"):(0,p.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:P}=(0,i.useContext)(f.B),T=t.events,R=t.onClick,M=null!==(e=(0,m.sa6)(S))&&void 0!==e?e:k;function I(t){R(t)}const N=parseInt(Math.floor(C));return delete a.Ay.styles.global,(0,y.jsx)(l.C,{value:W,children:(0,y.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,y.jsx)(r.s,{theme:a.Ay,cssVarsRoot:P,resetCSS:!1,children:(0,y.jsxs)(h.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[t.heading.trim().length>0?(0,y.jsx)(d.o,{paddingBottom:"28px",children:(0,y.jsx)(c.E,{bgColor:A,bgClip:"text",fontSize:F,sx:{fontFamily:M+" !important"},align:"center",children:t.heading})}):(0,y.jsx)(y.Fragment,{}),"landscape"===n?(0,y.jsx)(b,{renderElement:t=>{const e=t.eventData;return(0,y.jsx)("div",{style:{margin:"10px"},children:(0,j.ij)(e)||(0,j.Il)(e)?(0,y.jsx)(q,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{I(e)}}):(0,y.jsx)(o.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{I(e)}})})},dataList:T,elementsPerRow:N}):(0,y.jsx)(b,{renderElement:t=>{const e=t.eventData;return(0,y.jsx)("div",{style:{margin:"10px"},children:(0,y.jsx)(q,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{I(e)}})})},dataList:T,elementsPerRow:N})]})})})})}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see event-click.884dcdc9.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,534,906,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},2835:function(t,e,n){"use strict";var r=n(7891),o=n(8454),i=n(3781),u=n(5830),c=n(4414);e.A=function(t){var e;const n=(0,u.Xd)("whatmoreUITheme"),[s]=(0,u.QN)("whatmoreSecondaryColor"),[a,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===a||"undefined"==typeof a||!(f in a)||a[f].avgRating>5)return(0,c.jsx)(c.Fragment,{});const v=a[f].avgRating,y=a[f].totalRatings;return(0,c.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,c.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,c.jsx)(r.A,{sx:{color:s,fontSize:p+"px"}},"star-icon"+e)),v-Math.floor(v)>.2?(0,c.jsx)(o.A,{sx:{color:s,fontSize:p+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(i.A,{sx:{color:s,fontSize:p+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map((t,e)=>(0,c.jsx)(i.A,{sx:{color:s,fontSize:p+"px"}},"star-outline-icon-"+e)),(0,c.jsx)("div",{children:(0,c.jsx)("div",{width:"2px"})}),(0,c.jsx)("div",{children:(0,c.jsx)("div",{style:{backgroundColor:s,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,c.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,c.jsx)("div",{children:(0,c.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 i}});var r=n(5830),o=n(1745);const i=async function(t,e,n,i,u="",c="",s="",a="",l="",d=""){(0,r.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t&&quantityInput?(c&&t.setAttribute("data-product-id",c),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(u));if(e){const t=e.key,n=e.quantity,r=e.properties;(0,o.CP)(t,n,r,s,a,l,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===d||void 0===d||null===(f=d.split("?"))||void 0===f?void 0:f[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=e.querySelector('button[data-pf-type="ProductATC2"]'),r=e.querySelector('input[data-pf-type="QuantityField"]');n&&r&&(r.value="1",u&&r.setAttribute("data-variants-continue",u),c&&n.setAttribute("data-product-id",c))}),void setTimeout(e,n));var f}const p=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},m=(t,e,n)=>{const r=t.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",e),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",n);let t=r.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const n=t.querySelector('option[selected="selected"]');n&&n.setAttribute("value",e)}}const o=r.querySelector('input[name="product-id"]');o&&o.setAttribute("value",n);const i=document.createElement("div");return i.className="whatmore-atc",i.appendChild(r),document.body.appendChild(i),console.log(i,"formElement"),i}},v=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),r=n.key,i=n.quantity,u=n.properties;(0,o.CP)(r,i,u,s,a,l,!0,!0,!0)})},h=p(document);if(h||(null===h||void 0===h?void 0:h.length)>0){const t=m(h,u,c);v(t),setTimeout(()=>{y(u)},500),t.remove()}else{var S;fetch(null===d||void 0===d||null===(S=d.split("?"))||void 0===S?void 0:S[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=p(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=m(n,u,c);v(t),setTimeout(()=>{y(u)},500),t.remove()}})}setTimeout(e,n)}},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")},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 c},deprecatedPropType:function(){return s},isMuiElement:function(){return d},ownerDocument:function(){return p},ownerWindow:function(){return m},requirePropFactory:function(){return v},setRef:function(){return h},unstable_ClassNameGenerator:function(){return I},unstable_useEnhancedEffect:function(){return b},unstable_useId:function(){return R},unsupportedProp:function(){return D},useControlled:function(){return T},useEventCallback:function(){return w},useForkRef:function(){return P},useIsFocusVisible:function(){return U}});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 c=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 s=function(t,e){return()=>null},a=n(9950),l=n.t(a,2);var d=function(t,e){var n,r;return a.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?a.useLayoutEffect:a.useEffect,b=S;let A=0;const C=l["useId".toString()];var R=function(t){if(void 0!==C){const e=C();return null!=t?t:e}return function(t){const[e,n]=a.useState(t),r=t||e;return a.useEffect(()=>{null==e&&(A+=1,n(`mui-${A}`))},[e]),r}(t)};var D=function(t,e,n,r,o){return null};var T=function({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=a.useRef(void 0!==t),[i,u]=a.useState(e);return[o?t:i,a.useCallback(t=>{o||u(t)},[])]};var w=function(t){const e=a.useRef(t);return S(()=>{e.current=t}),a.useRef((...t)=>(0,e.current)(...t)).current};var P=function(...t){return a.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{y(t,e)})},t)};class x{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new x}start(t,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},t)}}let g=!0,M=!1;const L=new x,N={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||(g=!0)}function E(){g=!1}function F(){"hidden"===this.visibilityState&&M&&(g=!0)}function $(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return g||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!N[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}var U=function(){const t=a.useCallback(t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",B,!0),e.addEventListener("mousedown",E,!0),e.addEventListener("pointerdown",E,!0),e.addEventListener("touchstart",E,!0),e.addEventListener("visibilitychange",F,!0))},[]),e=a.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!$(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(M=!0,L.start(100,()=>{M=!1}),e.current=!1,!0)},ref:t}};const I={configure:t=>{r.A.configure(t)}}},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")},8538:function(t,e,n){"use strict";n.d(e,{v:function(){return o}});var r=n(5830);function o(t,e){const n=(0,r.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n||"58562281529"==n?t:"66168324332"==n&&"prod-tile"!=e?null===t||void 0===t||null===(o=t.split("- "))||void 0===o?void 0:o[0]:t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var o}},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:"$"}},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 c in i)i[c]&&(u+="; "+c,!0!==i[c]&&(u+="="+i[c].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 c=decodeURIComponent(i[0]);if(r[c]=e.read(u,c),t===c)break}catch(s){}}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(){}}]);
|
package/static/js/{product-page-view.e45cff3a.chunk.js → product-page-view.2558d839.chunk.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,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 s},tn:function(){return l},vF:function(){return a}});const n="device_type",o="device_mode",r="mobile",a="tablet",d="desktop",l="portrait",s="landscape"},69:function(t,e,i){i.d(e,{Ij:function(){return r},bi:function(){return a}});let n,o=!1;function r(){return n?n.play().then(()=>{o=!0,console.debug("iOS autoplay restrictions bypassed."),n.pause()}).catch(t=>{console.error("Failed to bless videos:",t.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 t=()=>{o||r()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},851:function(t,e,i){i.d(e,{A:function(){return g}});var n=i(1005),o=i(9950),r=i(9879),a=i(22),d=i(5830),l=i(932);var s=function(t){const[e,i,n,o,r]=(0,l.A)(),[s]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.dl]===a.nN?c/100:s/100*1.2;return[e*u,i*u,r]},c=i(1628),u=i.n(c),p=i(6702),v=(i(9733),i(4365),i(1348)),h=i(4414);var m=({size:t,color:e="rgba(255, 255, 255, 0.9)"})=>(0,h.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.3))"},className:"premium-close-icon",children:[(0,h.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.4)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1",style:{backdropFilter:"blur(8px)",transition:"all 0.3s ease"}}),(0,h.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}}),(0,h.jsx)("style",{jsx:!0,children:"\n .premium-close-icon:hover circle { fill: rgba(255, 255, 255, 0.15); stroke: rgba(255, 255, 255, 0.4); }\n .premium-close-icon:hover path { stroke: white; }\n "})]});var f=({size:t,color:e="rgba(255, 255, 255, 0.95)"})=>(0,h.jsxs)("svg",{width:.7*t,height:.7*t,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,h.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,h.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:e,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,h.jsxs)("defs",{children:[(0,h.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,h.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,h.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(t){var e;const i=o.useRef(null);var[l,c,g]=s();(0,d.Xd)("whatmoreUITheme");const[w]=(0,d.QN)("whatmorePrimaryFont"),[x]=(0,d.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,d.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[_]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,d.QN)("whatmoreEmbedAppPositionLandscape"),[E]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[j]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),A=(0,d.Xd)("whatmoreShopId"),I=(0,d.Xd)("isWhatmorePreviewMode");var T=b,L=y,k=_;g[a.dl]===a.nN&&(T=S,L=E,k=j);const[C,P]=(0,o.useState)(["initial",window.pageYOffset]),[N,O]=(0,o.useState)(!1),D=null!==(e=t.isSpotlight)&&void 0!==e&&e,z=g[a.dl]===a.nN?.8*(0,v.O86)(A):1.2*(0,v.O86)(A),M=D?z:1.2;l*=M,c*=M;const R=D?(0,v.LrK)(A):T,Q=D?(0,v._2D)(A):(0,v.GSq)(A),[V,F]=(0,o.useState)(!D&&(0,v.n8Q)(A));function q(t,e){P(t),t[1]<=100?O(!1):e!=N&&(O(e),F(!1))}(0,o.useEffect)(()=>{let t=window.pageYOffset,e=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-t)<100||(q([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)},[C]),(0,n.j)({ref:i,handler:()=>{q(["scrolled-up",C[1]],!0)}});const B=t.event,W=t.inVideoClick,H=t.closeClick,U=.25*c,$=.5*c,G=.6*c,K="20px",X=(0,v.GvQ)(A);var Y=!1,J=0,Z=0;function tt(t){Y=t}return(0,h.jsx)("div",{className:"wht-popup",children:V&&!Q?(0,h.jsx)(h.Fragment,{}):N&&Q?(0,h.jsx)("div",{style:"left"===R?{left:"16px",bottom:D?(0,v.pUQ)(A)+"px":k+"px",position:"fixed",zIndex:X}:{right:"16px",bottom:D?(0,v.pUQ)(A)+"px":k+"px",position:"fixed",zIndex:X},children:(0,h.jsxs)("div",{onClick:()=>{q(["initial",C[1]],!1)},style:{width:G+"px",height:G*(16/9)+"px",borderRadius:K,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===R?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",borderRadius:K,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,h.jsx)(r.A,{url:B.thumbnail_image,isPlaying:!1,event:B})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,h.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,h.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:t=>{t.stopPropagation(),H()},children:(0,h.jsx)(m,{size:.8*U})})}),(0,h.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,h.jsx)(p.A,{sx:{color:"white",fontSize:2*U+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,h.jsx)(u(),{nodeRef:i,cancel:".activate-button,.close-btn",bounds:I?"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,J=i,Z=n},onDrag:(t,e)=>{tt(!0)},onStop:(t,e)=>{Y&&(Math.abs(e.x-J)>5||Math.abs(e.y-Z)>5)?tt(!1):W(B)},children:(0,h.jsx)("div",{ref:i,style:"left"===R?{left:D?(0,v.D2A)(A)+"px":L+"px",bottom:D?(0,v.pUQ)(A)+"px":k+"px",position:"fixed",zIndex:X}:{right:D?(0,v.D2A)(A)+"px":L+"px",bottom:D?(0,v.pUQ)(A)+"px":k+"px",position:"fixed",zIndex:X},children:(0,h.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==A?l+"px":c+"px",height:t.isSpotlight&&"60122562760"==A?c+"px":l+"px",borderRadius:K,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===R?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:K,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==A?16/9:9/16},children:(0,h.jsx)(r.A,{url:B.thumbnail_image,isMuted:!0,isPlaying:!0,event:B})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,h.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,h.jsx)("div",{className:"close-btn",onClick:H,children:(0,h.jsx)(m,{size:U})})}),(0,h.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,h.jsx)(f,{size:$})}),(0,h.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:K,borderBottomRightRadius:K,background:x?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,h.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:w,fontWeight:"600",fontSize:.35*U+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:x})})]})})]})})})})}},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)(),[l]=(0,n.QN)("whatmoreLandscapePadding"),[s]=(0,n.QN)("whatmoreShopId"),[c]=(0,n.QN)("whatmoreVideoTileSize"),[u]=(0,n.QN)("whatmoreVideoTileSizePortrait"),p=d>i,v="portrait"==e?u:c,h=!("portrait"!=e||!(d>=481)),m=v/100*1.3*.5,f=v/100;var g=Math.min(d,i),[w,x,b,y]=[.6*g*(16/9),.6*g,1.4,0];function _(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const t=x*m,e=w*m;[w,x,b,y]=[e,t,(d-2*l-2*(0,a.$du)(s))/(1.1*t),l],S[r._]=r.$S,S[r.dl]=r.nN}else if(h){var E=.8*x,j=.8*w;"portrait"==e?(E*=f,j*=f,[w,x,b,y]=[j,E,_(d/(1.2*E)),0],S[r._]=r.vF,S[r.dl]=r.tn):([w,x,b,y]=[j,E,(d-2*l)/(1.1*E),l],S[r._]=r.vF,S[r.dl]=r.nN)}else{E=x,j=w;"portrait"==e?(E=E*f*.9,j=j*f*.9,[w,x,b,y]=[j,E,_(d/(1.15*E)),0],S[r._]=r.b4,S[r.dl]=r.tn):(E=.7*x,j=.7*w,[w,x,b,y]=[j,E,(d-2*l)/(1.1*E),l],S[r._]=r.b4,S[r.dl]=r.nN)}return[w,x,b,y,S]}},1351:function(t,e,i){i.d(e,{PG:function(){return l},kz:function(){return s},UM:function(){return u},yP:function(){return p},DG:function(){return c}});var n=i(1348),o=i(3330),r=i(6157);function a(t,e,i={},n){var o;const a=l[t];if(!a)return;const d=a.isActionEnabled(),s=null===n||void 0===n||null===(o=n.meta_actions)||void 0===o?void 0:o[a.customAction];(d||s)&&"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===r.O.VIDEO_PLAYBACK&&{watch_time:i.watch_time,video_duration:i.video_duration}};fbq("trackCustom",a.action,n),s&&setTimeout(()=>{null===s||void 0===s||s.forEach(t=>{fbq("trackCustom",t,n)})},500)})()}var d=i(7145);const l={[r.O.EVENT_VIEW]:{isActionEnabled:n.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[r.O.VIDEO_PLAYBACK]:{isActionEnabled:n.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[r.O.VIDEO_LIKED]:{isActionEnabled:n.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[r.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:n.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[r.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[r.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:s}){var c,u,p,v;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:s}),t in l)&&(a(t,null!==(c=null===r||void 0===r?void 0:r[1])&&void 0!==c?c:null===r||void 0===r?void 0:r[0],e,n),(0,o.n)({page_type:i.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(v=r[0])||void 0===v?void 0:v.title}))}function c({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:s}){var c,u,p,v;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:s}),t in l)&&(a(t,null!==(c=null===r||void 0===r?void 0:r[1])&&void 0!==c?c:null===r||void 0===r?void 0:r[0],e,n),(0,o.n)({page_type:i.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:e.video_duration>0?Math.ceil(e.watch_time/e.video_duration*100):"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(v=r[0])||void 0===v?void 0:v.title}))}function u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:a}){var s,c,u;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:a}),t in l)&&(0,o.n)({page_type:i.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:"NA",product_name:null!==(s=null===r||void 0===r||null===(c=r[1])||void 0===c?void 0:c.title)&&void 0!==s?s:null===r||void 0===r||null===(u=r[0])||void 0===u?void 0:u.title})}function p({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:r}){(0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:r})}},3262:function(t,e,i){i.r(e),i.d(e,{initiateCartSliderEvent:function(){return r}});var n=i(5830),o=i(1745);const r=async function(t,e,i,r,a="",d="",l="",s="",c="",u=""){(0,n.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]'),n=document.querySelector('input[data-pf-type="QuantityField"]');return t&&n?(n.value="1",a&&n.setAttribute("data-variants-continue",a),d&&t.setAttribute("data-product-id",d),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,i=e.quantity,n=e.properties;(0,o.CP)(t,i,n,l,s,c,!0,!0,!0)}})},500),void setTimeout(e,i)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),i=e.querySelector('button[data-pf-type="ProductATC2"]'),n=e.querySelector('input[data-pf-type="QuantityField"]');i&&n&&(n.value="1",a&&n.setAttribute("data-variants-continue",a),d&&i.setAttribute("data-product-id",d))}),void setTimeout(e,i));var p}const v=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let i=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return i||(i=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),i},h=(t,e,i)=>{const n=t.cloneNode(!0);if(n){n.hasAttribute("data-product-variant-id")&&n.setAttribute("data-product-variant-id",e),n.hasAttribute("data-product-id")&&n.setAttribute("data-product-id",i);let t=n.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=n.querySelector('select[name="id"]');if(t){const i=t.querySelector('option[selected="selected"]');i&&i.setAttribute("value",e)}}const o=n.querySelector('input[name="product-id"]');o&&o.setAttribute("value",i);const r=document.createElement("div");return r.className="whatmore-atc",r.appendChild(n),document.body.appendChild(r),console.log(r,"formElement"),r}},m=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},f=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const i=e.items.find(e=>e.id==t),n=i.key,r=i.quantity,a=i.properties;(0,o.CP)(n,r,a,l,s,c,!0,!0,!0)})},g=v(document);if(g||(null===g||void 0===g?void 0:g.length)>0){const t=h(g,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}else{var w;fetch(null===u||void 0===u||null===(w=u.split("?"))||void 0===w?void 0:w[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),i=v(e);if(i||(null===i||void 0===i?void 0:i.length)>0){const t=h(i,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}})}setTimeout(e,i)}},3389:function(t,e,i){i.r(e);var n=i(9950),o=i(1348),r=i(964),a=i(5830),d=i(140),l=i(4533),s=i(851),c=i(1085),u=i(6613),p=i(3330),v=(i(3262),i(572)),h=i(8603),m=i(2039),f=i(4833),g=i(5551),w=i(1351),x=i(6157),b=i(2979),y=i(6641),_=i(8945),S=i(9821),E=i(69),j=i(4414);const A=(0,h.A)({key:"whatmore-css-ppv"}),I=n.lazy(()=>Promise.all([i.e(304),i.e(946),i.e(607),i.e(187),i.e(987),i.e(411),i.e(637),i.e(592)]).then(i.bind(i,5637))),T=n.lazy(()=>i.e(374).then(i.bind(i,5100)));function L(t){return t.split(/[?#]/)[0]}e.default=function(t){const[e,i]=(0,n.useState)(),[h,k]=(0,n.useState)(),[C]=(0,a.QN)("isInDesignMode"),[P]=(0,a.QN)("isDemoBrand"),[N]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[O,D]=(0,n.useState)(-2),[z]=(0,a.QN)("whatmoreVariantId"),[M]=(0,a.QN)("whatmoreShopId");var[R]=(0,a.QN)("whatmoreProductId");const Q=(0,a.Xd)("isLandingSharedLink"),V=(0,a.Xd)("whatmoreShareTemplateId"),F=(0,a.Xd)("whatmoreShareEventId"),q=Q&&"template-embed"===(0,f.Mm)(V),[B,W]=(0,n.useState)(q);R=(0,o.BcY)(M)?function(t){if("STRR72TX6AT"==t){var e;const t=null===(e=window.location.pathname)||void 0===e?void 0:e.split("/");return t[t.length-1]}return"STR6HARJ3QY"==t||"STRI4V3OYCH"==t?L(window.location.href).split("/").pop():L(window.location.href)}(M):R;const[H,U]=(0,n.useState)(()=>"true"===N?z:R);var $=r.$$+"/v2/brand/"+M+"/product-events";const{whatmoreWidgetSourceDetails:G}=(0,n.useContext)(g.B);(0,n.useEffect)(()=>{(0,p.initializeGA)(M),(0,y.Fk)("Video shopping powered by Whatmore!"),(0,l.wm)()},[]),(0,n.useEffect)(()=>{null==e||0==e.length||h||!(0,u.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,S._)()?(0,c.Pc)(c.F5):(0,E.bi)())},[e]),(0,n.useEffect)(()=>{if(D(-1),(0,o.WH1)(M)){const t=`${r.$$}/v2/brand/${M}/product-events/recommendation`,e=(0,o.buK)(M);fetch(`${t}?client_product_id=${H}&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=>k(t.message))}else fetch($.toString()+"?client_product_id="+H.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)(M)&&(0,o.YOR)(t),i(t),t)).then(t=>((0,o.Uht)(M)&&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==L(window.location.href))return;const n={product_id:i.product_id,product_link:L(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})},500)}(t,H),t)).catch(t=>{k(t.message)})},[H]),(0,n.useEffect)(()=>{var t,i;D(-2),(e&&e.length>0||"Scale"==(0,o.yt9)(M)||"Enterprise"==(0,o.yt9)(M)||"Premium"==(0,o.yt9)(M))&&(0,w.yP)({userInteractionType:x.O.PDP_VISITED,widgetSourceDetails:G,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=L(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"==M&&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"===N){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&&!h&&q&&((0,_.H)("whatmore-video-player",()=>{W(!1)}),null!=F)){const t=e.find(t=>F==t.event_id);if(t)return void Y(t,!0,e.indexOf(t))}},[e]);const K=G.landingLocationType,X=G.templateType,Y=async(t,e=!1,i=0)=>{if((0,u.MN)()&&!e&&await((0,S._)()?(0,c.bo)():(0,E.bi)()),(0,m.ij)(t)||(0,m.Il)(t))return C||P||(async()=>{const e=(0,f.Wd)(K)+(0,f.gf)(X)+(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)(M,r.DK,r.K1),(0,l.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),void D(i)};function J(){return(0,j.jsx)(j.Fragment,{})}return null==e||0==e.length||h||(0,f.Ig)(G.templateType)||!(0,o.fDZ)(M)?(0,j.jsx)("div",{}):(0,j.jsxs)(v.C,{value:A,children:[B&&(0,j.jsx)(T,{}),"no-product"===H||-1===O||0===e.length?(0,j.jsx)(J,{}):-2===O&&e.length>0?(0,j.jsx)("div",{children:(0,j.jsx)(b.S,{userInteractionType:x.O.PDP_POPUP_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!C&&!P,children:(0,j.jsx)(s.A,{event:e[0],inVideoClick:Y,closeClick:t=>{var i;t.stopPropagation(),D(-1),(0,w.kz)({userInteractionType:x.O.PDP_POPUP_CLOSED,widgetSourceDetails:G,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,j.jsx)("div",{children:(0,j.jsx)(n.Suspense,{children:(0,j.jsx)(b.S,{userInteractionType:x.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!C&&!P,children:(0,j.jsx)(I,{events:e,index:O,onBack:function(){D(-2),W(!1)},template:"template-product-page"})})})})]})}},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,l]=(0,n.useState)(null),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{const n=new IntersectionObserver((e,i)=>{e.forEach(e=>{l(e),e.isIntersecting?(a(!0),t&&i.disconnect()):t||a(!1)})},{root:e,rootMargin:i,threshold:o});return s.current&&n.observe(s.current),()=>{n.disconnect()}},[t,e,i,o]),[s,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}})},9733:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,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 s},tn:function(){return l},vF:function(){return a}});const n="device_type",o="device_mode",r="mobile",a="tablet",d="desktop",l="portrait",s="landscape"},69:function(t,e,i){i.d(e,{Ij:function(){return r},bi:function(){return a}});let n,o=!1;function r(){return n?n.play().then(()=>{o=!0,console.debug("iOS autoplay restrictions bypassed."),n.pause()}).catch(t=>{console.error("Failed to bless videos:",t.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 t=()=>{o||r()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},851:function(t,e,i){i.d(e,{A:function(){return g}});var n=i(1005),o=i(9950),r=i(9879),a=i(22),d=i(5830),l=i(932);var s=function(t){const[e,i,n,o,r]=(0,l.A)(),[s]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.dl]===a.nN?c/100:s/100*1.2;return[e*u,i*u,r]},c=i(1628),u=i.n(c),p=i(6702),v=(i(9733),i(4365),i(1348)),h=i(4414);var m=({size:t,color:e="rgba(255, 255, 255, 0.9)"})=>(0,h.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.3))"},className:"premium-close-icon",children:[(0,h.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.4)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1",style:{backdropFilter:"blur(8px)",transition:"all 0.3s ease"}}),(0,h.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}}),(0,h.jsx)("style",{jsx:!0,children:"\n .premium-close-icon:hover circle { fill: rgba(255, 255, 255, 0.15); stroke: rgba(255, 255, 255, 0.4); }\n .premium-close-icon:hover path { stroke: white; }\n "})]});var f=({size:t,color:e="rgba(255, 255, 255, 0.95)"})=>(0,h.jsxs)("svg",{width:.7*t,height:.7*t,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,h.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,h.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:e,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,h.jsxs)("defs",{children:[(0,h.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,h.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,h.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(t){var e;const i=o.useRef(null);var[l,c,g]=s();(0,d.Xd)("whatmoreUITheme");const[w]=(0,d.QN)("whatmorePrimaryFont"),[x]=(0,d.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,d.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[_]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,d.QN)("whatmoreEmbedAppPositionLandscape"),[E]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[j]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),A=(0,d.Xd)("whatmoreShopId"),I=(0,d.Xd)("isWhatmorePreviewMode");var T=b,L=y,k=_;g[a.dl]===a.nN&&(T=S,L=E,k=j);const[C,P]=(0,o.useState)(["initial",window.pageYOffset]),[N,O]=(0,o.useState)(!1),D=null!==(e=t.isSpotlight)&&void 0!==e&&e,z=g[a.dl]===a.nN?.8*(0,v.O86)(A):1.2*(0,v.O86)(A),M=D?z:1.2;l*=M,c*=M;const R=D?(0,v.LrK)(A):T,V=D?(0,v._2D)(A):(0,v.GSq)(A),[Q,F]=(0,o.useState)(!D&&(0,v.n8Q)(A));function q(t,e){P(t),t[1]<=100?O(!1):e!=N&&(O(e),F(!1))}(0,o.useEffect)(()=>{let t=window.pageYOffset,e=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-t)<100||(q([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)},[C]),(0,n.j)({ref:i,handler:()=>{q(["scrolled-up",C[1]],!0)}});const B=t.event,W=t.inVideoClick,H=t.closeClick,U=.25*c,$=.5*c,G=.6*c,K="20px",X=(0,v.GvQ)(A);var Y=!1,J=0,Z=0;function tt(t){Y=t}return(0,h.jsx)("div",{className:"wht-popup",children:Q&&!V?(0,h.jsx)(h.Fragment,{}):N&&V?(0,h.jsx)("div",{style:"left"===R?{left:"16px",bottom:D?(0,v.pUQ)(A)+"px":k+"px",position:"fixed",zIndex:X}:{right:"16px",bottom:D?(0,v.pUQ)(A)+"px":k+"px",position:"fixed",zIndex:X},children:(0,h.jsxs)("div",{onClick:()=>{q(["initial",C[1]],!1)},style:{width:G+"px",height:G*(16/9)+"px",borderRadius:K,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===R?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",borderRadius:K,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,h.jsx)(r.A,{url:B.thumbnail_image,isPlaying:!1,event:B})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,h.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,h.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:t=>{t.stopPropagation(),H()},children:(0,h.jsx)(m,{size:.8*U})})}),(0,h.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,h.jsx)(p.A,{sx:{color:"white",fontSize:2*U+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,h.jsx)(u(),{nodeRef:i,cancel:".activate-button,.close-btn",bounds:I?"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,J=i,Z=n},onDrag:(t,e)=>{tt(!0)},onStop:(t,e)=>{Y&&(Math.abs(e.x-J)>5||Math.abs(e.y-Z)>5)?tt(!1):W(B)},children:(0,h.jsx)("div",{ref:i,style:"left"===R?{left:D?(0,v.D2A)(A)+"px":L+"px",bottom:D?(0,v.pUQ)(A)+"px":k+"px",position:"fixed",zIndex:X}:{right:D?(0,v.D2A)(A)+"px":L+"px",bottom:D?(0,v.pUQ)(A)+"px":k+"px",position:"fixed",zIndex:X},children:(0,h.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==A?l+"px":c+"px",height:t.isSpotlight&&"60122562760"==A?c+"px":l+"px",borderRadius:K,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===R?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:K,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==A?16/9:9/16},children:(0,h.jsx)(r.A,{url:B.thumbnail_image,isMuted:!0,isPlaying:!0,event:B})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,h.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,h.jsx)("div",{className:"close-btn",onClick:H,children:(0,h.jsx)(m,{size:U})})}),(0,h.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,h.jsx)(f,{size:$})}),(0,h.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:K,borderBottomRightRadius:K,background:x?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,h.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:w,fontWeight:"600",fontSize:.35*U+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:x})})]})})]})})})})}},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)(),[l]=(0,n.QN)("whatmoreLandscapePadding"),[s]=(0,n.QN)("whatmoreShopId"),[c]=(0,n.QN)("whatmoreVideoTileSize"),[u]=(0,n.QN)("whatmoreVideoTileSizePortrait"),p=d>i,v="portrait"==e?u:c,h=!("portrait"!=e||!(d>=481)),m=v/100*1.3*.5,f=v/100;var g=Math.min(d,i),[w,x,b,y]=[.6*g*(16/9),.6*g,1.4,0];function _(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const t=x*m,e=w*m;[w,x,b,y]=[e,t,(d-2*l-2*(0,a.$du)(s))/(1.1*t),l],S[r._]=r.$S,S[r.dl]=r.nN}else if(h){var E=.8*x,j=.8*w;"portrait"==e?(E*=f,j*=f,[w,x,b,y]=[j,E,_(d/(1.2*E)),0],S[r._]=r.vF,S[r.dl]=r.tn):([w,x,b,y]=[j,E,(d-2*l)/(1.1*E),l],S[r._]=r.vF,S[r.dl]=r.nN)}else{E=x,j=w;"portrait"==e?(E=E*f*.9,j=j*f*.9,[w,x,b,y]=[j,E,_(d/(1.15*E)),0],S[r._]=r.b4,S[r.dl]=r.tn):(E=.7*x,j=.7*w,[w,x,b,y]=[j,E,(d-2*l)/(1.1*E),l],S[r._]=r.b4,S[r.dl]=r.nN)}return[w,x,b,y,S]}},1351:function(t,e,i){i.d(e,{PG:function(){return l},kz:function(){return s},UM:function(){return u},yP:function(){return p},DG:function(){return c}});var n=i(1348),o=i(3330),r=i(6157);function a(t,e,i={},n){var o;const a=l[t];if(!a)return;const d=a.isActionEnabled(),s=null===n||void 0===n||null===(o=n.meta_actions)||void 0===o?void 0:o[a.customAction];(d||s)&&"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===r.O.VIDEO_PLAYBACK&&{watch_time:i.watch_time,video_duration:i.video_duration}};fbq("trackCustom",a.action,n),s&&setTimeout(()=>{null===s||void 0===s||s.forEach(t=>{fbq("trackCustom",t,n)})},500)})()}var d=i(7145);const l={[r.O.EVENT_VIEW]:{isActionEnabled:n.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[r.O.VIDEO_PLAYBACK]:{isActionEnabled:n.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[r.O.VIDEO_LIKED]:{isActionEnabled:n.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[r.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:n.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[r.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[r.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:s}){var c,u,p,v;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:s}),t in l)&&(a(t,null!==(c=null===r||void 0===r?void 0:r[1])&&void 0!==c?c:null===r||void 0===r?void 0:r[0],e,n),(0,o.n)({page_type:i.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(v=r[0])||void 0===v?void 0:v.title}))}function c({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:s}){var c,u,p,v;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:s}),t in l)&&(a(t,null!==(c=null===r||void 0===r?void 0:r[1])&&void 0!==c?c:null===r||void 0===r?void 0:r[0],e,n),(0,o.n)({page_type:i.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:e.video_duration>0?Math.ceil(e.watch_time/e.video_duration*100):"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(v=r[0])||void 0===v?void 0:v.title}))}function u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:a}){var s,c,u;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:r,ctaList:a}),t in l)&&(0,o.n)({page_type:i.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:"NA",product_name:null!==(s=null===r||void 0===r||null===(c=r[1])||void 0===c?void 0:c.title)&&void 0!==s?s:null===r||void 0===r||null===(u=r[0])||void 0===u?void 0:u.title})}function p({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:r}){(0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:n,productList:o,ctaList:r})}},3262:function(t,e,i){i.r(e),i.d(e,{initiateCartSliderEvent:function(){return r}});var n=i(5830),o=i(1745);const r=async function(t,e,i,r,a="",d="",l="",s="",c="",u=""){(0,n.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t&&quantityInput?(d&&t.setAttribute("data-product-id",d),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,i=e.quantity,n=e.properties;(0,o.CP)(t,i,n,l,s,c,!0,!0,!0)}})},500),void setTimeout(e,i)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),i=e.querySelector('button[data-pf-type="ProductATC2"]'),n=e.querySelector('input[data-pf-type="QuantityField"]');i&&n&&(n.value="1",a&&n.setAttribute("data-variants-continue",a),d&&i.setAttribute("data-product-id",d))}),void setTimeout(e,i));var p}const v=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let i=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return i||(i=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),i},h=(t,e,i)=>{const n=t.cloneNode(!0);if(n){n.hasAttribute("data-product-variant-id")&&n.setAttribute("data-product-variant-id",e),n.hasAttribute("data-product-id")&&n.setAttribute("data-product-id",i);let t=n.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=n.querySelector('select[name="id"]');if(t){const i=t.querySelector('option[selected="selected"]');i&&i.setAttribute("value",e)}}const o=n.querySelector('input[name="product-id"]');o&&o.setAttribute("value",i);const r=document.createElement("div");return r.className="whatmore-atc",r.appendChild(n),document.body.appendChild(r),console.log(r,"formElement"),r}},m=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},f=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const i=e.items.find(e=>e.id==t),n=i.key,r=i.quantity,a=i.properties;(0,o.CP)(n,r,a,l,s,c,!0,!0,!0)})},g=v(document);if(g||(null===g||void 0===g?void 0:g.length)>0){const t=h(g,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}else{var w;fetch(null===u||void 0===u||null===(w=u.split("?"))||void 0===w?void 0:w[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),i=v(e);if(i||(null===i||void 0===i?void 0:i.length)>0){const t=h(i,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}})}setTimeout(e,i)}},3389:function(t,e,i){i.r(e);var n=i(9950),o=i(1348),r=i(964),a=i(5830),d=i(140),l=i(4533),s=i(851),c=i(1085),u=i(6613),p=i(3330),v=(i(3262),i(572)),h=i(8603),m=i(2039),f=i(4833),g=i(5551),w=i(1351),x=i(6157),b=i(2979),y=i(6641),_=i(8945),S=i(9821),E=i(69),j=i(4414);const A=(0,h.A)({key:"whatmore-css-ppv"}),I=n.lazy(()=>Promise.all([i.e(304),i.e(946),i.e(607),i.e(187),i.e(987),i.e(411),i.e(637),i.e(592)]).then(i.bind(i,5637))),T=n.lazy(()=>i.e(374).then(i.bind(i,5100)));function L(t){return t.split(/[?#]/)[0]}e.default=function(t){const[e,i]=(0,n.useState)(),[h,k]=(0,n.useState)(),[C]=(0,a.QN)("isInDesignMode"),[P]=(0,a.QN)("isDemoBrand"),[N]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[O,D]=(0,n.useState)(-2),[z]=(0,a.QN)("whatmoreVariantId"),[M]=(0,a.QN)("whatmoreShopId");var[R]=(0,a.QN)("whatmoreProductId");const V=(0,a.Xd)("isLandingSharedLink"),Q=(0,a.Xd)("whatmoreShareTemplateId"),F=(0,a.Xd)("whatmoreShareEventId"),q=V&&"template-embed"===(0,f.Mm)(Q),[B,W]=(0,n.useState)(q);R=(0,o.BcY)(M)?function(t){if("STRR72TX6AT"==t){var e;const t=null===(e=window.location.pathname)||void 0===e?void 0:e.split("/");return t[t.length-1]}return"STR6HARJ3QY"==t||"STRI4V3OYCH"==t?L(window.location.href).split("/").pop():L(window.location.href)}(M):R;const[H,U]=(0,n.useState)(()=>"true"===N?z:R);var $=r.$$+"/v2/brand/"+M+"/product-events";const{whatmoreWidgetSourceDetails:G}=(0,n.useContext)(g.B);(0,n.useEffect)(()=>{(0,p.initializeGA)(M),(0,y.Fk)("Video shopping powered by Whatmore!"),(0,l.wm)()},[]),(0,n.useEffect)(()=>{null==e||0==e.length||h||!(0,u.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,S._)()?(0,c.Pc)(c.F5):(0,E.bi)())},[e]),(0,n.useEffect)(()=>{if(D(-1),(0,o.WH1)(M)){const t=`${r.$$}/v2/brand/${M}/product-events/recommendation`,e=(0,o.buK)(M);fetch(`${t}?client_product_id=${H}&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=>k(t.message))}else fetch($.toString()+"?client_product_id="+H.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)(M)&&(0,o.YOR)(t),i(t),t)).then(t=>((0,o.Uht)(M)&&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==L(window.location.href))return;const n={product_id:i.product_id,product_link:L(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})},500)}(t,H),t)).catch(t=>{k(t.message)})},[H]),(0,n.useEffect)(()=>{var t,i;D(-2),(e&&e.length>0||"Scale"==(0,o.yt9)(M)||"Enterprise"==(0,o.yt9)(M)||"Premium"==(0,o.yt9)(M))&&(0,w.yP)({userInteractionType:x.O.PDP_VISITED,widgetSourceDetails:G,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=L(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"==M&&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"===N){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&&!h&&q&&((0,_.H)("whatmore-video-player",()=>{W(!1)}),null!=F)){const t=e.find(t=>F==t.event_id);if(t)return void Y(t,!0,e.indexOf(t))}},[e]);const K=G.landingLocationType,X=G.templateType,Y=async(t,e=!1,i=0)=>{if((0,u.MN)()&&!e&&await((0,S._)()?(0,c.bo)():(0,E.bi)()),(0,m.ij)(t)||(0,m.Il)(t))return C||P||(async()=>{const e=(0,f.Wd)(K)+(0,f.gf)(X)+(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)(M,r.DK,r.K1),(0,l.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),void D(i)};function J(){return(0,j.jsx)(j.Fragment,{})}return null==e||0==e.length||h||(0,f.Ig)(G.templateType)||!(0,o.fDZ)(M)?(0,j.jsx)("div",{}):(0,j.jsxs)(v.C,{value:A,children:[B&&(0,j.jsx)(T,{}),"no-product"===H||-1===O||0===e.length?(0,j.jsx)(J,{}):-2===O&&e.length>0?(0,j.jsx)("div",{children:(0,j.jsx)(b.S,{userInteractionType:x.O.PDP_POPUP_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!C&&!P,children:(0,j.jsx)(s.A,{event:e[0],inVideoClick:Y,closeClick:t=>{var i;t.stopPropagation(),D(-1),(0,w.kz)({userInteractionType:x.O.PDP_POPUP_CLOSED,widgetSourceDetails:G,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,j.jsx)("div",{children:(0,j.jsx)(n.Suspense,{children:(0,j.jsx)(b.S,{userInteractionType:x.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!C&&!P,children:(0,j.jsx)(I,{events:e,index:O,onBack:function(){D(-2),W(!1)},template:"template-product-page"})})})})]})}},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,l]=(0,n.useState)(null),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{const n=new IntersectionObserver((e,i)=>{e.forEach(e=>{l(e),e.isIntersecting?(a(!0),t&&i.disconnect()):t||a(!1)})},{root:e,rootMargin:i,threshold:o});return s.current&&n.observe(s.current),()=>{n.disconnect()}},[t,e,i,o]),[s,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}})},9733:function(){}}]);
|