whatmore-react-assets 1.0.1748 → 1.0.1750
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/{142.9d2701bb.chunk.js → 142.4d3cc0f8.chunk.js} +1 -1
- package/static/js/261.84f06522.chunk.js +1 -0
- package/static/js/{banner-template-a.acb4bb04.chunk.js → banner-template-a.e429a3e9.chunk.js} +1 -1
- package/static/js/carousel-template-f.a02fc104.chunk.js +1 -0
- package/static/js/carousel-template-g.ecd11a54.chunk.js +1 -0
- package/static/js/{carousel-template-view-more.db84e032.chunk.js → carousel-template-view-more.42d1c355.chunk.js} +1 -1
- package/static/js/{collections-template-stories.924f47e1.chunk.js → collections-template-stories.7e325851.chunk.js} +1 -1
- package/static/js/{event-click-product.fa05560e.chunk.js → event-click-product.a9e0eb10.chunk.js} +2 -2
- package/static/js/{event-click-spotlight.81f65ec2.chunk.js → event-click-spotlight.b83605b3.chunk.js} +2 -2
- package/static/js/{event-click.3ca45660.chunk.js → event-click.056c4885.chunk.js} +2 -2
- package/whatmore.js +2 -2
- package/static/js/261.a6d7b06d.chunk.js +0 -1
- package/static/js/carousel-template-f.36e14f99.chunk.js +0 -1
- package/static/js/carousel-template-g.0ca7d5da.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[142,262,939],{22:function(t,e,o){o.d(e,{$S:function(){return a},_:function(){return r},b4:function(){return i},dl:function(){return n},nN:function(){return d},tn:function(){return s},vF:function(){return l}});const r="device_type",n="device_mode",i="mobile",l="tablet",a="desktop",s="portrait",d="landscape"},932:function(t,e,o){var r=o(5830),n=o(1941),i=o(22),l=o(1348);e.A=function(t){const[e,o,a]=(0,n.A)(),[s]=(0,r.QN)("whatmoreLandscapePadding"),[d]=(0,r.QN)("whatmoreShopId"),[c]=(0,r.QN)("whatmoreVideoTileSize"),[u]=(0,r.QN)("whatmoreVideoTileSizePortrait"),p=a>o,m="portrait"==e?u:c,y=!("portrait"!=e||!(a>=481)),f=m/100*1.3*.5,v=m/100;var h=Math.min(a,o),[x,g,w,b]=[.6*h*(16/9),.6*h,1.4,0];function S(t){return Math.round(10*t)/10}var P={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(p){const t=g*f,e=x*f;[x,g,w,b]=[e,t,(a-2*s-2*(0,l.$du)(d))/(1.1*t),s],P[i._]=i.$S,P[i.dl]=i.nN}else if(y){var j=.8*g,T=.8*x;"portrait"==e?(j*=v,T*=v,[x,g,w,b]=[T,j,S(a/(1.2*j)),0],P[i._]=i.vF,P[i.dl]=i.tn):([x,g,w,b]=[T,j,(a-2*s)/(1.1*j),s],P[i._]=i.vF,P[i.dl]=i.nN)}else{j=g,T=x;"portrait"==e?(j=j*v*.9,T=T*v*.9,[x,g,w,b]=[T,j,S(a/(1.15*j)),0],P[i._]=i.b4,P[i.dl]=i.tn):(j=.7*g,T=.7*x,[x,g,w,b]=[T,j,(a-2*s)/(1.1*j),s],P[i._]=i.b4,P[i.dl]=i.nN)}return[x,g,w,b,P]}},1957:function(t,e,o){var r=o(9950),n=o(932),i=(o(4826),o(5830)),l=o(9879),a=o(7509),s=o(22),d=o(1348),c=o(5551),u=o(6594),p=o(8538),m=o(8149),y=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,S,P,j,T,C,A,N,k,_,M,q,E,I,R,z,O,F,$,D;const[L,W,X,U,J]=(0,n.A)(),V=.5*W;(0,r.useContext)(a.h);const B=(0,i.Xd)("whatmoreUITheme"),Y=(0,i.Xd)("whatmoreShopId"),H=(0,i.Xd)("whatmorePrimaryFont"),Q=(0,i.Xd)("whatmoreSecondaryColor"),G=(0,i.Xd)("websiteLanguage"),K=t.onClick,Z=null===(e=t.isOnFocus)||void 0===e||e,tt=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,et=null!==(S=t.animateOnFocus&&(0,d.n5O)(Y))&&void 0!==S&&S,ot="portrait"===J[s.dl],rt=(ot?1.076*W*(0,d.HWj)(Y):W*(0,d.N_4)(Y))+"px",nt=(ot?1.076*W*(0,d.HWj)(Y):W*(0,d.N_4)(Y))+"px",it=(ot?.965*W*(0,d.HWj)(Y):.859*W*(0,d.N_4)(Y))+"px",lt=(0,d.VYo)(Y),{whatmoreIsPreviewMode:at,whatmoreWidgetSourceDetails:st}=(0,r.useContext)(c.B),dt=.25*W,ct=dt+"px",ut=1.25*dt+"px",[pt,mt]=(0,r.useState)(t.event),[yt,ft]=(0,r.useState)(),[vt,ht]=(0,r.useState)(!1),xt=null!==(P=null===(j=pt.products)||void 0===j?void 0:j.find(t=>"active"==t.product_status))&&void 0!==P?P:null===(T=pt.products)||void 0===T?void 0:T[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,[St,Pt]=(0,r.useState)(bt),[jt,Tt]=(0,r.useState)(!1),[Ct,At,Nt,kt,_t,Mt]=(0,h.A)(0,xt,pt);return(0,r.useEffect)(()=>{(0,d.w4b)(Y)?(0,u.fu)(pt,(0,d.NCy)(Y),Y).then(t=>{var e,o,r;mt(t);const n=Math.round(null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.price),i=Math.round(null===t||void 0===t||null===(r=t.products[0])||void 0===r?void 0:r.compare_price),l=i&&0!=i&&i>n?Math.round((i-n)/i*100):NaN;Pt(l),Tt(!0)}):(async()=>{const t=await(0,m.M)(xt,(0,d.NCy)(Y),Y);ft(t),Tt(!0)})()},[]),(0,b.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","12px"),t.style.setProperty("margin-bottom","12px"))},className:et&&!ot?Z?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:W,margin:"0 auto",cursor:"pointer"},onClick:()=>{K(pt)},onMouseEnter:()=>ht(!0),onMouseLeave:()=>ht(!1),children:["video"===pt.event_type&&"55076552858"===Y&&!ot&&(0,b.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*V,marginLeft:V/2},children:(0,b.jsx)(y.A,{sx:{color:(0,d.KFN)(pt.whatmoreShopId)+" !important",opacity:.8,fontSize:V,filter:"drop-shadow(0 0 15px black);"}})}),(0,b.jsxs)("div",{style:{width:W,height:ot&&Z?"STR2FOC6KG9"==Y||"STRDOIDF6O7"==Y?L:1.1*L:L,borderRadius:"round"==B?"5px":"0px",boxShadow:"round"==B?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:pt.thumbnail_image,isPlaying:Z||tt,event:pt}),"70946685152"===Y&&(0,b.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,pointerEvents:"none"},children:(0,b.jsx)("div",{style:{transform:"scale(2.25)"},children:(0,b.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/heeras/heeras.png",alt:"overlay"})})}),"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=st.landingLocationType,o=st.templateType,r=(0,x.Wd)(e)+(0,x.gf)(o)+(null!==pt&&void 0!==pt&&pt.isRelatedEvent?"R":"E")+"_"+(null===pt||void 0===pt?void 0:pt.event_id);"init"==Ct.state?(_t(r),(0,g.kz)({userInteractionType:w.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:st,event:pt,productList:[xt],ctaList:pt.cta})):"awaitingVariantSelection"==Ct.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:[(at?(0,d.Tr1)(Y):(0,d.UmS)(Y))&&(null===pt||void 0===pt||null===(C=pt.products)||void 0===C?void 0:C.length)>0&&(0,b.jsx)("div",{style:{maxHeight:ut,maxWidth:ct,minWidth:null!==xt&&void 0!==xt&&xt.thumbnail_image?ct:"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===(A=xt.thumbnail_image)||void 0===A||null===(N=A.split("?"))||void 0===N?void 0:N[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,p.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",nt,"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!==(k=null===yt||void 0===yt||null===(_=yt.variants)||void 0===_||null===(M=_[0])||void 0===M?void 0:M.price)&&void 0!==k?k:null===yt||void 0===yt?void 0:yt.price)/100:null===xt||void 0===xt?void 0:xt.price)," ",Y,null===(q=pt.products[0])||void 0===q?void 0:q.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",nt,"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!==(E=null===yt||void 0===yt||null===(I=yt.variants)||void 0===I||null===(R=I[0])||void 0===R?void 0:R.compare_at_price)&&void 0!==E?E:null===yt||void 0===yt?void 0:yt.compare_at_price)/100:null===xt||void 0===xt?void 0:xt.compare_price)," ",Y,null===(z=pt.products[0])||void 0===z?void 0:z.currency)}),"56352899156"==Y&&(0,d.Nzx)(Y)&&jt&&!isNaN(St)&&0!=St&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(Y)?"#343434"==Q?(0,d.ub$)(Y):Q:(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",it,"important"),t.style.setProperty("font-family",H,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${St}% ${null!==(O=null===v.m||void 0===v.m||null===(F=v.m[G])||void 0===F?void 0:F.off)&&void 0!==O?O:"off"}`})})]}),(0,d.Nzx)(Y)&&jt&&!isNaN(St)&&0!=St&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(Y)?"#343434"==Q?(0,d.ub$)(Y):Q:(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",it,"important"),t.style.setProperty("font-family",H,"important"))},children:`${St}% ${null!==($=null===v.m||void 0===v.m||null===(D=v.m[G])||void 0===D?void 0:D.off)&&void 0!==$?$:"off"}`}):(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d._zx)(Y),"important"),t.style.setProperty("font-size",it,"important"),t.style.setProperty("font-family",(0,d.ogW)(Y),"important"))},children:(0,d.rsz)(Y)})})]}),""!=(null===pt||void 0===pt?void 0:pt.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===pt||void 0===pt?void 0:pt.title})})]})]})}},2835:function(t,e,o){var r=o(7891),n=o(8454),i=o(3781),l=o(5830),a=o(4414);e.A=function(t){var e;const o=(0,l.Xd)("whatmoreUITheme"),[s]=(0,l.QN)("whatmoreSecondaryColor"),[d,c]=(0,l.QN)("productRatings"),u=(0,l.Xd)("whatmorePrimaryFont"),p=t.productId,m=t.fontSize,y=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(p in d)||d[p].avgRating>5)return(0,a.jsx)(a.Fragment,{});const f=d[p].avgRating,v=d[p].totalRatings;return(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(f))].map((t,e)=>(0,a.jsx)(r.A,{sx:{color:s,fontSize:m+"px"}},"star-icon"+e)),f-Math.floor(f)>.2?(0,a.jsx)(n.A,{sx:{color:s,fontSize:m+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(i.A,{sx:{color:s,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map((t,e)=>(0,a.jsx)(i.A,{sx:{color:s,fontSize:m+"px"}},"star-outline-icon-"+e)),(0,a.jsx)("div",{children:(0,a.jsx)("div",{width:"2px"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{backgroundColor:s,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*m+"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,a.jsx)("div",{children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",y,"important"),t.style.setProperty("font-size",.8*m+"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+")"]})})]})})}},3161:function(t,e,o){function r(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}o.d(e,{$:function(){return r}})},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return i}});var r=o(5830),n=o(1745);const i=async function(t,e,o,i,l="",a="",s="",d="",c="",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("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(a&&t.setAttribute("data-product-id",a),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,r=e.properties;(0,n.CP)(t,o,r,s,d,c,!0,!0,!0)}})},500),void setTimeout(e,o)):(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").querySelector('button[data-pf-type="ProductATC2"]');e&&a&&e.setAttribute("data-product-id",a)}),void setTimeout(e,o));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const t=l,r=1,n=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(n){let i=n.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",n.appendChild(i)),i.disabled=!1,i.value=t;const l=n.querySelector('input[name="quantity"]');l&&(l.value=r);const a=n.querySelector('button[data-add-to-cart], button[type="submit"]');return a?(a.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),a.click(),a.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{v(t)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:r}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{v(t)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const r=t.querySelector('input[name="id"]');if(!r)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);r.value=l;const n=t.querySelector('button[type="submit"]');if(!n)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);n.click(),setTimeout(()=>{v(l)},500),setTimeout(e,o)}catch(g){console.error("[ATC 64683278550] error:",g),setTimeout(e,o)}return}const m=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},y=(e,o,r)=>{const n=e.cloneNode(!0);if(n){n.hasAttribute("data-product-variant-id")&&n.setAttribute("data-product-variant-id",o),n.hasAttribute("data-product-id")&&n.setAttribute("data-product-id",r);let e=n.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=n.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const i=n.querySelector('input[name="product-id"]');i&&i.setAttribute("value",r);const l=document.createElement("div");return l.className="whatmore-atc",l.appendChild(n),document.body.appendChild(l),console.log(l,"formElement"),"92319318403"===t&&((t,e,o)=>{var r;const n=null!==(r=t.matches)&&void 0!==r&&r.call(t,"form")?t:t.querySelector("form");if(!n)return;let i=n.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",n.prepend(i)),i.value=String(e),i.removeAttribute("disabled");const l=n.querySelector('select[name="id"]');l&&([...l.options].some(t=>t.value===String(e))?(l.value=String(e),[...l.options].forEach(t=>t.selected=t.value===String(e)),l.dispatchEvent(new Event("change",{bubbles:!0}))):l.removeAttribute("name"));const a=n.querySelector('input[name="product-id"]');a&&(a.value=String(o))})(l,o,r),l}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},v=t=>{(0,n.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),r=o.key,i=o.quantity,l=o.properties;(0,n.CP)(r,i,l,s,d,c,!0,!0,!0)})},h=m(document);if(h||(null===h||void 0===h?void 0:h.length)>0){const t=y(h,l,a);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=m(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=y(o,l,a);f(t),setTimeout(()=>{v(l)},500),t.remove()}})}setTimeout(e,o)}},4826:function(){},7136:function(t,e,o){var r=o(9950),n=o(932),i=o(7509),l=o(5830),a=o(4414);e.A=function(t){var[e,o]=(0,n.A)();(0,r.useContext)(i.h);const s=(0,l.Xd)("whatmoreShopId");return t.event,(0,a.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==s?void 0:o,aspectRatio:"8968077397"==s?9/16:void 0,height:"8968077397"==s?"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 i}});var r=o(1348),n=o(5830);function i(t,e=""){const o=(0,n.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,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.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 r=o(5830);function n(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===(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
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[142,262,939],{22:function(t,e,o){o.d(e,{$S:function(){return a},_:function(){return r},b4:function(){return i},dl:function(){return n},nN:function(){return d},tn:function(){return s},vF:function(){return l}});const r="device_type",n="device_mode",i="mobile",l="tablet",a="desktop",s="portrait",d="landscape"},932:function(t,e,o){var r=o(5830),n=o(1941),i=o(22),l=o(1348);e.A=function(t){const[e,o,a]=(0,n.A)(),[s]=(0,r.QN)("whatmoreLandscapePadding"),[d]=(0,r.QN)("whatmoreShopId"),[c]=(0,r.QN)("whatmoreVideoTileSize"),[p]=(0,r.QN)("whatmoreVideoTileSizePortrait"),u=a>o,m="portrait"==e?p:c,y=!("portrait"!=e||!(a>=481)),f=m/100*1.3*.5,v=m/100;var h=Math.min(a,o),[x,g,w,b]=[.6*h*(16/9),.6*h,1.4,0];function S(t){return Math.round(10*t)/10}var P={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(u){const t=g*f,e=x*f;[x,g,w,b]=[e,t,(a-2*s-2*(0,l.$du)(d))/(1.1*t),s],P[i._]=i.$S,P[i.dl]=i.nN}else if(y){var j=.8*g,T=.8*x;"portrait"==e?(j*=v,T*=v,[x,g,w,b]=[T,j,S(a/(1.2*j)),0],P[i._]=i.vF,P[i.dl]=i.tn):([x,g,w,b]=[T,j,(a-2*s)/(1.1*j),s],P[i._]=i.vF,P[i.dl]=i.nN)}else{j=g,T=x;"portrait"==e?(j=j*v*.9,T=T*v*.9,[x,g,w,b]=[T,j,S(a/(1.15*j)),0],P[i._]=i.b4,P[i.dl]=i.tn):(j=.7*g,T=.7*x,[x,g,w,b]=[T,j,(a-2*s)/(1.1*j),s],P[i._]=i.b4,P[i.dl]=i.nN)}return[x,g,w,b,P]}},1957:function(t,e,o){var r=o(9950),n=o(932),i=(o(4826),o(5830)),l=o(9879),a=o(7509),s=o(22),d=o(1348),c=o(5551),p=o(6594),u=o(8538),m=o(8149),y=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,S,P,j,T,C,A,N,k,_,M,q,E,I,R,z,O,F,$,D;const[L,W,X,U,J]=(0,n.A)(),V=.5*W;(0,r.useContext)(a.h);const B=(0,i.Xd)("whatmoreUITheme"),Y=(0,i.Xd)("whatmoreShopId"),H=(0,i.Xd)("whatmorePrimaryFont"),Q=(0,i.Xd)("whatmoreSecondaryColor"),G=(0,i.Xd)("websiteLanguage"),K=t.onClick,Z=null===(e=t.isOnFocus)||void 0===e||e,tt=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,et=null!==(S=t.animateOnFocus&&(0,d.n5O)(Y))&&void 0!==S&&S,ot="portrait"===J[s.dl],rt=(ot?1.076*W*(0,d.HWj)(Y):W*(0,d.N_4)(Y))+"px",nt=(ot?1.076*W*(0,d.HWj)(Y):W*(0,d.N_4)(Y))+"px",it=(ot?.965*W*(0,d.HWj)(Y):.859*W*(0,d.N_4)(Y))+"px",lt=(0,d.VYo)(Y),{whatmoreIsPreviewMode:at,whatmoreWidgetSourceDetails:st}=(0,r.useContext)(c.B),dt=.25*W,ct=dt+"px",pt=1.25*dt+"px",[ut,mt]=(0,r.useState)(t.event),[yt,ft]=(0,r.useState)(),[vt,ht]=(0,r.useState)(!1),xt=null!==(P=null===(j=ut.products)||void 0===j?void 0:j.find(t=>"active"==t.product_status))&&void 0!==P?P:null===(T=ut.products)||void 0===T?void 0:T[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,[St,Pt]=(0,r.useState)(bt),[jt,Tt]=(0,r.useState)(!1),[Ct,At,Nt,kt,_t,Mt]=(0,h.A)(0,xt,ut);return(0,r.useEffect)(()=>{(0,d.w4b)(Y)?(0,p.fu)(ut,(0,d.NCy)(Y),Y).then(t=>{var e,o,r;mt(t);const n=Math.round(null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.price),i=Math.round(null===t||void 0===t||null===(r=t.products[0])||void 0===r?void 0:r.compare_price),l=i&&0!=i&&i>n?Math.round((i-n)/i*100):NaN;Pt(l),Tt(!0)}):(async()=>{const t=await(0,m.M)(xt,(0,d.NCy)(Y),Y);ft(t),Tt(!0)})()},[]),(0,b.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","12px"),t.style.setProperty("margin-bottom","12px"))},className:et&&!ot?Z?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:W,margin:"0 auto",cursor:"pointer"},onClick:()=>{K(ut)},onMouseEnter:()=>ht(!0),onMouseLeave:()=>ht(!1),children:["video"===ut.event_type&&"55076552858"===Y&&!ot&&(0,b.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*V,marginLeft:V/2},children:(0,b.jsx)(y.A,{sx:{color:(0,d.KFN)(ut.whatmoreShopId)+" !important",opacity:.8,fontSize:V,filter:"drop-shadow(0 0 15px black);"}})}),(0,b.jsxs)("div",{style:{width:W,height:ot&&Z?"STR2FOC6KG9"==Y||"STRDOIDF6O7"==Y?L:1.1*L:L,borderRadius:"round"==B?"5px":"0px",boxShadow:"round"==B?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:ut.thumbnail_image,isPlaying:Z||tt,event:ut}),"70946685152"===Y&&(0,b.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2,pointerEvents:"none"},children:(0,b.jsx)("div",{style:{transform:"scale(2.25)"},children:(0,b.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/heeras/heeras.png",alt:"overlay"})})}),"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=st.landingLocationType,o=st.templateType,r=(0,x.Wd)(e)+(0,x.gf)(o)+(null!==ut&&void 0!==ut&&ut.isRelatedEvent?"R":"E")+"_"+(null===ut||void 0===ut?void 0:ut.event_id);"init"==Ct.state?(_t(r),(0,g.kz)({userInteractionType:w.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:st,event:ut,productList:[xt],ctaList:ut.cta})):"awaitingVariantSelection"==Ct.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:[(at?(0,d.Tr1)(Y):(0,d.UmS)(Y))&&(null===ut||void 0===ut||null===(C=ut.products)||void 0===C?void 0:C.length)>0&&(0,b.jsx)("div",{style:{maxHeight:pt,maxWidth:ct,minWidth:null!==xt&&void 0!==xt&&xt.thumbnail_image?ct:"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===(A=xt.thumbnail_image)||void 0===A||null===(N=A.split("?"))||void 0===N?void 0:N[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,u.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",nt,"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,p.Sb)(parseFloat((0,f.U)()?(null!==(k=null===yt||void 0===yt||null===(_=yt.variants)||void 0===_||null===(M=_[0])||void 0===M?void 0:M.price)&&void 0!==k?k:null===yt||void 0===yt?void 0:yt.price)/100:null===xt||void 0===xt?void 0:xt.price)," ",Y,null===(q=ut.products[0])||void 0===q?void 0:q.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",nt,"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,p.Sb)(parseFloat((0,f.U)()?(null!==(E=null===yt||void 0===yt||null===(I=yt.variants)||void 0===I||null===(R=I[0])||void 0===R?void 0:R.compare_at_price)&&void 0!==E?E:null===yt||void 0===yt?void 0:yt.compare_at_price)/100:null===xt||void 0===xt?void 0:xt.compare_price)," ",Y,null===(z=ut.products[0])||void 0===z?void 0:z.currency)}),"56352899156"==Y&&(0,d.Nzx)(Y)&&jt&&!isNaN(St)&&0!=St&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(Y)?"#343434"==Q?(0,d.ub$)(Y):Q:(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",it,"important"),t.style.setProperty("font-family",H,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${St}% ${null!==(O=null===v.m||void 0===v.m||null===(F=v.m[G])||void 0===F?void 0:F.off)&&void 0!==O?O:"off"}`})})]}),(0,d.Nzx)(Y)&&jt&&!isNaN(St)&&0!=St&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(Y)?"#343434"==Q?(0,d.ub$)(Y):Q:(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",it,"important"),t.style.setProperty("font-family",H,"important"))},children:`${St}% ${null!==($=null===v.m||void 0===v.m||null===(D=v.m[G])||void 0===D?void 0:D.off)&&void 0!==$?$:"off"}`}):(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d._zx)(Y),"important"),t.style.setProperty("font-size",it,"important"),t.style.setProperty("font-family",(0,d.ogW)(Y),"important"))},children:(0,d.rsz)(Y)})})]}),""!=(null===ut||void 0===ut?void 0:ut.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===ut||void 0===ut?void 0:ut.title})})]})]})}},2835:function(t,e,o){var r=o(7891),n=o(8454),i=o(3781),l=o(5830),a=o(4414);e.A=function(t){var e;const o=(0,l.Xd)("whatmoreUITheme"),[s]=(0,l.QN)("whatmoreSecondaryColor"),[d,c]=(0,l.QN)("productRatings"),p=(0,l.Xd)("whatmorePrimaryFont"),u=t.productId,m=t.fontSize,y=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,a.jsx)(a.Fragment,{});const f=d[u].avgRating,v=d[u].totalRatings;return(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(f))].map((t,e)=>(0,a.jsx)(r.A,{sx:{color:s,fontSize:m+"px"}},"star-icon"+e)),f-Math.floor(f)>.2?(0,a.jsx)(n.A,{sx:{color:s,fontSize:m+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(i.A,{sx:{color:s,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map((t,e)=>(0,a.jsx)(i.A,{sx:{color:s,fontSize:m+"px"}},"star-outline-icon-"+e)),(0,a.jsx)("div",{children:(0,a.jsx)("div",{width:"2px"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{backgroundColor:s,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",f,"\xa0"]})})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",y,"important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+v+")"]})})]})})}},3161:function(t,e,o){function r(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}o.d(e,{$:function(){return r}})},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return i}});var r=o(5830),n=o(1745);const i=async function(t,e,o,i,l="",a="",s="",d="",c="",p=""){(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("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(a&&t.setAttribute("data-product-id",a),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,r=e.properties;(0,n.CP)(t,o,r,s,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").querySelector('button[data-pf-type="ProductATC2"]');e&&a&&e.setAttribute("data-product-id",a)}),void setTimeout(e,o));var u}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const t=l,r=1,n=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(n){let i=n.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",n.appendChild(i)),i.disabled=!1,i.value=t;const l=n.querySelector('input[name="quantity"]');l&&(l.value=r);const a=n.querySelector('button[data-add-to-cart], button[type="submit"]');return a?(a.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),a.click(),a.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{v(t)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:r}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{v(t)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const r=t.querySelector('input[name="id"]');if(!r)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);r.value=l;const n=t.querySelector('button[type="submit"]');if(!n)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);n.click(),setTimeout(()=>{v(l)},500),setTimeout(e,o)}catch(g){console.error("[ATC 64683278550] error:",g),setTimeout(e,o)}return}const m=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},y=(e,o,r)=>{const n=e.cloneNode(!0);if(n){n.hasAttribute("data-product-variant-id")&&n.setAttribute("data-product-variant-id",o),n.hasAttribute("data-product-id")&&n.setAttribute("data-product-id",r);let e=n.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=n.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const i=n.querySelector('input[name="product-id"]');i&&i.setAttribute("value",r);const l=document.createElement("div");return l.className="whatmore-atc",l.appendChild(n),document.body.appendChild(l),console.log(l,"formElement"),"92319318403"===t&&((t,e,o)=>{var r;const n=null!==(r=t.matches)&&void 0!==r&&r.call(t,"form")?t:t.querySelector("form");if(!n)return;let i=n.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",n.prepend(i)),i.value=String(e),i.removeAttribute("disabled");const l=n.querySelector('select[name="id"]');l&&([...l.options].some(t=>t.value===String(e))?(l.value=String(e),[...l.options].forEach(t=>t.selected=t.value===String(e)),l.dispatchEvent(new Event("change",{bubbles:!0}))):l.removeAttribute("name"));const a=n.querySelector('input[name="product-id"]');a&&(a.value=String(o))})(l,o,r),l}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},v=t=>{(0,n.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),r=o.key,i=o.quantity,l=o.properties;(0,n.CP)(r,i,l,s,d,c,!0,!0,!0)})},h=m(document);if(h||(null===h||void 0===h?void 0:h.length)>0){const t=y(h,l,a);f(t),setTimeout(()=>{v(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=m(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=y(o,l,a);f(t),setTimeout(()=>{v(l)},500),t.remove()}})}setTimeout(e,o)}},4826:function(){},7136:function(t,e,o){var r=o(9950),n=o(932),i=o(7509),l=o(5830),a=o(4414);e.A=function(t){var[e,o]=(0,n.A)();(0,r.useContext)(i.h);const s=(0,l.Xd)("whatmoreShopId");return t.event,(0,a.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==s?void 0:o,aspectRatio:"8968077397"==s?9/16:void 0,height:"8968077397"==s?"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 i}});var r=o(1348),n=o(5830);function i(t,e=""){const o=(0,n.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,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.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 r=o(5830);function n(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===(n=t.split("- "))||void 0===n?void 0:n[0]:"6573064236"===o?t.replace(/\b\w/g,function(t){return t.toUpperCase()}):t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var n}},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[261],{22:function(t,e,r){r.d(e,{$S:function(){return s},_:function(){return o},b4:function(){return i},dl:function(){return n},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const o="device_type",n="device_mode",i="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,r){var o=r(5830),n=r(1941),i=r(22),l=r(1348);e.A=function(t){const[e,r,s]=(0,n.A)(),[a]=(0,o.QN)("whatmoreLandscapePadding"),[d]=(0,o.QN)("whatmoreShopId"),[p]=(0,o.QN)("whatmoreVideoTileSize"),[c]=(0,o.QN)("whatmoreVideoTileSizePortrait"),f=s>r,u="portrait"==e?c:p,y=!("portrait"!=e||!(s>=481)),m=u/100*1.3*.5,h=u/100;var x=Math.min(s,r),[g,v,w,j]=[.6*x*(16/9),.6*x,1.4,0];function b(t){return Math.round(10*t)/10}var A={DEVICE_TYPE:i.b4,DEVICE_MODE:i.tn};if(f){const t=v*m,e=g*m;[g,v,w,j]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],A[i._]=i.$S,A[i.dl]=i.nN}else if(y){var k=.8*v,P=.8*g;"portrait"==e?(k*=h,P*=h,[g,v,w,j]=[P,k,b(s/(1.2*k)),0],A[i._]=i.vF,A[i.dl]=i.tn):([g,v,w,j]=[P,k,(s-2*a)/(1.1*k),a],A[i._]=i.vF,A[i.dl]=i.nN)}else{k=v,P=g;"portrait"==e?(k=k*h*.9,P=P*h*.9,[g,v,w,j]=[P,k,b(s/(1.15*k)),0],A[i._]=i.b4,A[i.dl]=i.tn):(k=.7*v,P=.7*g,[g,v,w,j]=[P,k,(s-2*a)/(1.1*k),a],A[i._]=i.b4,A[i.dl]=i.nN)}return[g,v,w,j,A]}},2835:function(t,e,r){var o=r(7891),n=r(8454),i=r(3781),l=r(5830),s=r(4414);e.A=function(t){var e;const r=(0,l.Xd)("whatmoreUITheme"),[a]=(0,l.QN)("whatmoreSecondaryColor"),[d,p]=(0,l.QN)("productRatings"),c=(0,l.Xd)("whatmorePrimaryFont"),f=t.productId,u=t.fontSize,y=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(f in d)||d[f].avgRating>5)return(0,s.jsx)(s.Fragment,{});const m=d[f].avgRating,h=d[f].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:a,fontSize:u+"px"}},"star-icon"+e)),m-Math.floor(m)>.2?(0,s.jsx)(n.A,{sx:{color:a,fontSize:u+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(i.A,{sx:{color:a,fontSize:u+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map((t,e)=>(0,s.jsx)(i.A,{sx:{color:a,fontSize:u+"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"==r?"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*u+"px","important"),t.style.setProperty("font-family",c,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",m,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",y,"important"),t.style.setProperty("font-size",.8*u+"px","important"),t.style.setProperty("font-family",c,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+h+")"]})})]})})}},3161:function(t,e,r){function o(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}r.d(e,{$:function(){return o}})},7458:function(t,e,r){r.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,r){r.d(e,{h:function(){return o}});const o=(0,r(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,r){r.d(e,{B:function(){return l},b:function(){return i}});var o=r(1348),n=r(5830);function i(t,e=""){const r=(0,n.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(r)?"STRNV8MHJTF"==r?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 r=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(r)?"image":null!==n&&void 0!==n&&n.test(r)?"video":void 0}},8538:function(t,e,r){r.d(e,{v:function(){return n}});var o=r(5830);function n(t,e){const r=(0,o.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==r||"72442478904"==r||"58562281529"==r?t:"66168324332"==r&&"prod-tile"!=e?null===t||void 0===t||null===(n=t.split("- "))||void 0===n?void 0:n[0]:"6573064236"===r?t.replace(/\b\w/g,function(t){return t.toUpperCase()}):t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var n}},9258:function(t,e,r){r.d(e,{A:function(){return a}});var o=r(2375),n=r(1348),i=r(5830),l=r(4414);function s(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}var a=function(t){const e=(0,i.Xd)("whatmoreUITheme"),r=(0,i.Xd)("whatmoreShopId"),a=(0,i.Xd)("whatmorePrimaryFont"),d=t.event,p=t.fontSize;if(d.total_views<=0)return(0,l.jsx)(l.Fragment,{});const c=(0,n.FVo)(r),f=()=>"57939755089"===r?{backgroundImage:"url(data:image/png;base64,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)"}:{backgroundColor:(0,n.sIk)(r)};return"template-icon"==c?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"event-view-count",style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",...f(),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(r),borderColor:(0,n.Fwt)(r)},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(o.A,{sx:{color:(0,n.s0t)(r)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(r),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"),t.style.setProperty("font-size",p),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+s(d.total_views)+" "})})]})})}):"template-text"==c?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",...f(),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,n.YcK)(r),borderColor:(0,n.Fwt)(r)},children:(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,n.s0t)(r),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+s(d.total_views)+" views"})})})})}):void 0}},9664:function(t,e,r){var o=r(9950),n=r(5830),i=r(932),l=r(8538),s=r(7458),a=r(2835),d=r(1348),p=r(6594),c=r(5551),f=r(7973),u=r(8149),y=r(7740),m=r(3161),h=r(4414);const x=o.lazy(()=>Promise.all([r.e(607),r.e(187),r.e(688),r.e(939)]).then(r.bind(r,9408)));e.Ay=function(t){var e,r,g,v;const w=(0,n.QN)("whatmoreUITheme");var[j,b]=(0,i.A)();const[A]=(0,n.QN)("whatmorePrimaryFont"),[k]=(0,n.QN)("whatmoreSecondaryColorShade900"),[P]=(0,n.QN)("whatmoreShopId"),[F,N]=(0,o.useState)(0),[S,C]=(0,o.useState)(t.event),[M,I]=(0,o.useState)(),[Y,B]=(0,o.useState)(!1),q=t.onClick,z=S.products.length,{whatmoreIsPreviewMode:L}=(0,o.useContext)(c.B);if(0==z)return(0,h.jsx)(h.Fragment,{});(0,o.useEffect)(()=>{(0,d.w4b)(P)&&(0,p.fu)(S,(0,d.NCy)(P),P).then(t=>{C(t),B(!0)});(async()=>{var t;const e=await(0,u.M)(null===S||void 0===S||null===(t=S.products)||void 0===t?void 0:t[0],(0,d.NCy)(P),P);I(e),B(!0)})()},[]);const Q=L,D=.3*b,W=D+"px",G=D+"px",R=.05*b*(0,d.PpQ)(P)+"px",U=.07*b*(0,d.y3u)(P),V=U+"px",Z=.05*b;return(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-around",alignItems:"center",marginTop:"2px",marginBottom:"2px",gap:"0px"},children:[(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:.95*b,height:"fit-content",paddingLeft:"4px",paddingRight:"4px",justifyContent:"space-between",alignItems:"center",gap:"4px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",onClick:q,children:[(0,h.jsx)("div",{style:{width:W,height:G,overflow:"hidden",backgroundColor:"28062416930"===P?void 0:k,borderRadius:"round"==w?"5px":"0px",borderWidth:"0px"==(0,d.YcK)(P)?"2px":(0,d.YcK)(P),borderColor:"28062416930"===P?"white":"white"===(0,d.Fwt)(P)?k:(0,d.Fwt)(P)},children:"28062416930"!==P&&(0,h.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,d.KZe)(P),"important")},src:(0,f.b)(S.products[F].thumbnail_image,"&width=400&height=400"),style:{width:W,height:W,borderRadius:"round"==w?"5px":"0px",backgroundColor:k},alt:"product img"})}),(0,h.jsx)("div",{style:{width:.7*b+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"28062416930"===P?"18px":"2px",borderRadius:"round"==w?"5px":"0px"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,h.jsx)("div",{className:"wht-title-tb",style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===P?"center":"flex-start",alignItems:"center"},children:(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size","28062416930"===P?"80%":R),t.style.setProperty("line-height","28062416930"===P?"170%":"140%","important"),t.style.setProperty("font-family",A,"important"),"28062416930"===P?(t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("text-align","center","important"),t.style.setProperty("display","block","important")):(t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important")))},style:{textAlign:"28062416930"===P?"center":"left",fontWeight:"medium"},children:(0,l.v)("56411783377"===P?S.products[F].title.split("|")[0].trim():"58396311733"===P?(0,m.$)(S.products[F].title):S.products[F].title)})}),(0,h.jsxs)("div",{className:"wht-price-tb",style:{display:"flex",flexFlow:(0,d.vw2)(P)?"row nowrap":"row-reverse nowrap",width:"100%",height:"fit-content",justifyContent:"28062416930"===P?"center":(0,d.vw2)(P)?"flex-start":"flex-end",alignItems:"center",gap:"4px"},children:[Y&&(0,h.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.uoB)(P),"important"),t.style.setProperty("font-size",V),t.style.setProperty("line-height","28062416930"===P?"160%":"140%","important"),t.style.setProperty("font-family",A,"important"),t.style.setProperty("font-weight","28062416930"===P?"bold":void 0,"important"))},style:{textAlign:"28062416930"===P?"center":"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,p.Sb)(parseFloat((0,y.U)()?(null===M||void 0===M?void 0:M.price)/100:null===S||void 0===S||null===(e=S.products)||void 0===e||null===(r=e[0])||void 0===r?void 0:r.price),"",P,S.products[F].currency)]}),(0,s.P)(S.products[F].price,S.products[F].compare_price)&&Y?(0,h.jsxs)("strike",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(P),"important"),t.style.setProperty("font-size",.9*U+"px","important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",A,"important"),t.style.setProperty("text-decoration","line-through","important"))},style:{textAlign:"28062416930"===P?"center":"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,p.Sb)(parseFloat((0,y.U)()?(null===M||void 0===M?void 0:M.compare_at_price)/100:null===S||void 0===S||null===(g=S.products)||void 0===g||null===(v=g[0])||void 0===v?void 0:v.compare_price),"",P,S.products[F].currency)]}):(0,h.jsx)(h.Fragment,{})]}),(0,h.jsx)(a.A,{storeId:P,productId:S.products[F].client_product_id,productLink:S.products[F].product_link,fontSize:Z}),"28062416930"===P&&(0,h.jsx)("button",{onClick:q,onMouseEnter:t=>t.target.style.backgroundColor="#555",onMouseLeave:t=>t.target.style.backgroundColor="black",style:{padding:"2px 5px 2px 5px",backgroundColor:"black",color:"#fff",border:"none",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textAlign:"center"},children:"Buy Now"})]})})]},F),(0,d.nP1)(P)||Q&&"5141594210"==P?(0,h.jsx)(o.Suspense,{children:(0,h.jsx)(x,{baseFontSize:.05*b,event:S,product:S.products[0],width:.9*b,height:"fit-content"})}):(0,h.jsx)(h.Fragment,{})]})}},9733:function(){}}]);
|
package/static/js/{banner-template-a.acb4bb04.chunk.js → banner-template-a.e429a3e9.chunk.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,806,939],{69:function(t,e,o){o.d(e,{Ij:function(){return i},bi:function(){return a}});let n,r=!1;function i(){return n?n.play().then(()=>{r=!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=()=>{r||i()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},2835:function(t,e,o){var n=o(7891),r=o(8454),i=o(3781),a=o(5830),s=o(4414);e.A=function(t){var e;const o=(0,a.Xd)("whatmoreUITheme"),[l]=(0,a.QN)("whatmoreSecondaryColor"),[d,c]=(0,a.QN)("productRatings"),u=(0,a.Xd)("whatmorePrimaryFont"),p=t.productId,m=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 f=d[p].avgRating,v=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(f))].map((t,e)=>(0,s.jsx)(n.A,{sx:{color:l,fontSize:m+"px"}},"star-icon"+e)),f-Math.floor(f)>.2?(0,s.jsx)(r.A,{sx:{color:l,fontSize:m+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(i.A,{sx:{color:l,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map((t,e)=>(0,s.jsx)(i.A,{sx:{color:l,fontSize:m+"px"}},"star-outline-icon-"+e)),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:l,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",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",h,"important"),t.style.setProperty("font-size",.8*m+"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+")"]})})]})})}},3161:function(t,e,o){function n(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}o.d(e,{$:function(){return n}})},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return i}});var n=o(5830),r=o(1745);const i=async function(t,e,o,i,a="",s="",l="",d="",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("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(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,o=e.quantity,n=e.properties;(0,r.CP)(t,o,n,l,d,c,!0,!0,!0)}})},500),void setTimeout(e,o)):(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").querySelector('button[data-pf-type="ProductATC2"]');e&&s&&e.setAttribute("data-product-id",s)}),void setTimeout(e,o));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{v(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const t=a,n=1,r=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(r){let i=r.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",r.appendChild(i)),i.disabled=!1,i.value=t;const a=r.querySelector('input[name="quantity"]');a&&(a.value=n);const s=r.querySelector('button[data-add-to-cart], button[type="submit"]');return s?(s.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),s.click(),s.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{v(t)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:n}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{v(t)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const n=t.querySelector('input[name="id"]');if(!n)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);n.value=a;const r=t.querySelector('button[type="submit"]');if(!r)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);r.click(),setTimeout(()=>{v(a)},500),setTimeout(e,o)}catch(x){console.error("[ATC 64683278550] error:",x),setTimeout(e,o)}return}const m=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},h=(e,o,n)=>{const r=e.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",o),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",n);let e=r.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const i=r.querySelector('input[name="product-id"]');i&&i.setAttribute("value",n);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(r),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,o)=>{var n;const r=null!==(n=t.matches)&&void 0!==n&&n.call(t,"form")?t:t.querySelector("form");if(!r)return;let i=r.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",r.prepend(i)),i.value=String(e),i.removeAttribute("disabled");const a=r.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const s=r.querySelector('input[name="product-id"]');s&&(s.value=String(o))})(a,o,n),a}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},v=t=>{(0,r.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),n=o.key,i=o.quantity,a=o.properties;(0,r.CP)(n,i,a,l,d,c,!0,!0,!0)})},y=m(document);if(y||(null===y||void 0===y?void 0:y.length)>0){const t=h(y,a,s);f(t),setTimeout(()=>{v(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"),o=m(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=h(o,a,s);f(t),setTimeout(()=>{v(a)},500),t.remove()}})}setTimeout(e,o)}},3278:function(t,e,o){o.r(e),o.d(e,{default:function(){return D}});var n=o(9950),r=o(340),i=o(5089),a=o(1941),s=o(5830),l=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),d=o(8603),c=o(7509),u=o(5551),p=(o(4826),o(7575)),m=o(2257),h=o(1348),f=o(6649),v=o(3788),y=o(6493),g=o(4895),x=o(5375),b=o(4833),w=o(4414);var S=function(t){var e;const[o]=(0,s.QN)("whatmoreShopId"),r=t.isMuted,{whatmoreWidgetSourceDetails:i}=(0,n.useContext)(u.B),a=i.templateType,l=(0,b.l2)(a),d=null!==(e=t.iconSize)&&void 0!==e?e:30;function c(e){t.onToggle(e)}return!0===(0,h.GZ2)(o)?(0,w.jsx)(w.Fragment,{}):(0,w.jsx)("div",{style:{height:"fit-content",cursor:"pointer"},children:r?(0,w.jsx)(x.A,{sx:{color:"white",fontSize:l?1.3*d:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{c(t)}}):(0,w.jsx)(g.A,{sx:{color:"white",fontSize:l?1.3*d:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{c(t)}})})},j=o(3771),C=o(6613),T=o(1085),A=o(1079),k=o(5873),P=o(1351),I=o(6157),E=o(3294),q=o(9879),M=o(9821),N=o(69);function R(t){const[e,o]=(0,n.useState)(t.initialMuteState),r=t.events,i=t.activeEventIndex,a=t.setActiveEventIndex,l=(0,s.Xd)("whatmoreShopId"),d="portrait"===t.mode;function c(n){n.stopPropagation(),o(!e),(0,C.MN)()&&((0,M._)()?(0,T.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)(S,{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)(m.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 o=e===i;return(0,w.jsx)("button",{onClick:t=>{t.stopPropagation(),a(e)},style:{width:o?"25px":d?"12px":"14px",height:d?"12px":"14px",borderRadius:o?"10px":"50%",backgroundColor:o?(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 O=function(t){var e,o,r,i;const[l,d,c]=(0,a.A)(),[p,m]=(0,n.useState)(!0),g=(0,s.Xd)("whatmoreVideoTileSize"),[x,b,S]=(0,f.A)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(u.B),T=(0,s.Xd)("whatmoreShopId"),M=t.events,N=t.activeEventIndex,O=t.setActiveEventIndex,z=M[N],D=(0,y.lP)(z),_=(0,y.cb)(z);if((0,n.useEffect)(()=>{k.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&&!D)return(0,w.jsx)(w.Fragment,{});if("landscape"===l&&!_)return(0,w.jsx)(w.Fragment,{});const F=(0,v.s)("portrait"===l?D:_),B=g/100*(0,h.igk)(T),X=g/100*(0,h.Y_l)(T),L="portrait"===l?(0,h.G0Q)(T):(0,h.ga9)(T),J="portrait"===l?c*B:c*X,$=J*L,W=null!=(null===(e=z.cta)||void 0===e||null===(o=e[1])||void 0===o?void 0:o.cta_link);return(0,w.jsxs)("div",{ref:x,onClick:()=>{var t,e;(0,P.kz)({userInteractionType:I.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:C,event:M[N]}),(0,h.OC6)(T)&&window.open(null===(t=z.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)(T)?"100%":J,minHeight:(0,h.D7t)(T)?c*L:"",height:(0,h.D7t)(T)?"auto":$,borderWidth:(0,h.YcK)(T),borderColor:(0,h.Fwt)(T),overflow:"hidden",cursor:"pointer"},children:["28273541192"===T?(0,w.jsx)(q.A,{height:"100%",width:"100%",url:F,isPlaying:b,event:z,isVideoMuted:!b||p,source:E.N.BANNER}):(0,w.jsx)(j.A,{height:"100%",width:"100%",url:F,isPlaying:b,event:z,isVideoMuted:!b||p,setDuration:t.setDuration,source:E.N.BANNER}),(0,w.jsx)(R,{isCTAPresent:W,events:M,activeEventIndex:N,setActiveEventIndex:O,event:z,mode:l,onMuteToggle:()=>m(!p),initialMuteState:p}),(0,h.XYM)(T)&&(null===z||void 0===z||null===(r=z.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)(A.A,{isBanner:!0,event:z,cta:null===z||void 0===z||null===(i=z.cta)||void 0===i?void 0:i[1],fontFactor:.6})})]})};const z=(0,d.A)({key:"whatmore-css-bv"});var D=function(t){const{whatmoreRootId:e}=(0,n.useContext)(u.B),[o,d]=(0,n.useState)(0),p=t.events,[m,h]=(0,n.useState)(-1),[f]=(0,s.QN)("whatmoreShopId"),[v]=(0,a.A)();let y;return(0,n.useEffect)(()=>{y&&clearInterval(y);const t="video"===p[o].event_type,e=t?1e3*m:6e3;return t?-1!=m&&(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)}},[m,o]),delete i.Ay.styles.global,(0,w.jsx)(l.C,{value:z,children:(0,w.jsx)("div",{className:"whatmore-banner-events",style:{height:"60183543963"===f&&"portrait"==v?"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)(O,{activeEventIndex:o,events:p,setActiveEventIndex:d,setDuration:h})})})})})}},4826:function(){},7458:function(t,e,o){o.d(e,{P:function(){return n}});const n=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,o){o.d(e,{h:function(){return n}});const n=(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 a},b:function(){return i}});var n=o(1348),r=o(5830);function i(t,e=""){const o=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,n.NCy)(o)?"STRNV8MHJTF"==o?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 o=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(o)?"image":null!==r&&void 0!==r&&r.test(o)?"video":void 0}},8538:function(t,e,o){o.d(e,{v:function(){return r}});var n=o(5830);function r(t,e){const o=(0,n.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===(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(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,806,939],{69:function(t,e,o){o.d(e,{Ij:function(){return i},bi:function(){return a}});let n,r=!1;function i(){return n?n.play().then(()=>{r=!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=()=>{r||i()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},2835:function(t,e,o){var n=o(7891),r=o(8454),i=o(3781),a=o(5830),s=o(4414);e.A=function(t){var e;const o=(0,a.Xd)("whatmoreUITheme"),[l]=(0,a.QN)("whatmoreSecondaryColor"),[d,c]=(0,a.QN)("productRatings"),u=(0,a.Xd)("whatmorePrimaryFont"),p=t.productId,m=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 f=d[p].avgRating,v=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(f))].map((t,e)=>(0,s.jsx)(n.A,{sx:{color:l,fontSize:m+"px"}},"star-icon"+e)),f-Math.floor(f)>.2?(0,s.jsx)(r.A,{sx:{color:l,fontSize:m+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(i.A,{sx:{color:l,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map((t,e)=>(0,s.jsx)(i.A,{sx:{color:l,fontSize:m+"px"}},"star-outline-icon-"+e)),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:l,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",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",h,"important"),t.style.setProperty("font-size",.8*m+"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+")"]})})]})})}},3161:function(t,e,o){function n(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}o.d(e,{$:function(){return n}})},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return i}});var n=o(5830),r=o(1745);const i=async function(t,e,o,i,a="",s="",l="",d="",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("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(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,o=e.quantity,n=e.properties;(0,r.CP)(t,o,n,l,d,c,!0,!0,!0)}})},500),void setTimeout(e,o)):(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").querySelector('button[data-pf-type="ProductATC2"]');e&&s&&e.setAttribute("data-product-id",s)}),void setTimeout(e,o));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{v(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const t=a,n=1,r=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(r){let i=r.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",r.appendChild(i)),i.disabled=!1,i.value=t;const a=r.querySelector('input[name="quantity"]');a&&(a.value=n);const s=r.querySelector('button[data-add-to-cart], button[type="submit"]');return s?(s.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),s.click(),s.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{v(t)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:n}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{v(t)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const n=t.querySelector('input[name="id"]');if(!n)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);n.value=a;const r=t.querySelector('button[type="submit"]');if(!r)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);r.click(),setTimeout(()=>{v(a)},500),setTimeout(e,o)}catch(x){console.error("[ATC 64683278550] error:",x),setTimeout(e,o)}return}const m=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},h=(e,o,n)=>{const r=e.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",o),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",n);let e=r.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const i=r.querySelector('input[name="product-id"]');i&&i.setAttribute("value",n);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(r),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,o)=>{var n;const r=null!==(n=t.matches)&&void 0!==n&&n.call(t,"form")?t:t.querySelector("form");if(!r)return;let i=r.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",r.prepend(i)),i.value=String(e),i.removeAttribute("disabled");const a=r.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const s=r.querySelector('input[name="product-id"]');s&&(s.value=String(o))})(a,o,n),a}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},v=t=>{(0,r.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),n=o.key,i=o.quantity,a=o.properties;(0,r.CP)(n,i,a,l,d,c,!0,!0,!0)})},y=m(document);if(y||(null===y||void 0===y?void 0:y.length)>0){const t=h(y,a,s);f(t),setTimeout(()=>{v(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"),o=m(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=h(o,a,s);f(t),setTimeout(()=>{v(a)},500),t.remove()}})}setTimeout(e,o)}},3278:function(t,e,o){o.r(e),o.d(e,{default:function(){return D}});var n=o(9950),r=o(340),i=o(5089),a=o(1941),s=o(5830),l=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),d=o(8603),c=o(7509),u=o(5551),p=(o(4826),o(7575)),m=o(2257),h=o(1348),f=o(6649),v=o(3788),y=o(6493),g=o(4895),x=o(5375),b=o(4833),w=o(4414);var S=function(t){var e;const[o]=(0,s.QN)("whatmoreShopId"),r=t.isMuted,{whatmoreWidgetSourceDetails:i}=(0,n.useContext)(u.B),a=i.templateType,l=(0,b.l2)(a),d=null!==(e=t.iconSize)&&void 0!==e?e:30;function c(e){t.onToggle(e)}return!0===(0,h.GZ2)(o)?(0,w.jsx)(w.Fragment,{}):(0,w.jsx)("div",{style:{height:"fit-content",cursor:"pointer"},children:r?(0,w.jsx)(x.A,{sx:{color:"white",fontSize:l?1.3*d:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{c(t)}}):(0,w.jsx)(g.A,{sx:{color:"white",fontSize:l?1.3*d:d,backgroundColor:"rgba(0, 0, 0, 0.4)",borderRadius:"50%",padding:"10px"},onClick:t=>{c(t)}})})},j=o(3771),C=o(6613),T=o(1085),A=o(1079),k=o(5873),P=o(1351),I=o(6157),E=o(3294),q=o(9879),M=o(9821),N=o(69);function R(t){const[e,o]=(0,n.useState)(t.initialMuteState),r=t.events,i=t.activeEventIndex,a=t.setActiveEventIndex,l=(0,s.Xd)("whatmoreShopId"),d="portrait"===t.mode;function c(n){n.stopPropagation(),o(!e),(0,C.MN)()&&((0,M._)()?(0,T.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)(S,{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)(m.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 o=e===i;return(0,w.jsx)("button",{onClick:t=>{t.stopPropagation(),a(e)},style:{width:o?"25px":d?"12px":"14px",height:d?"12px":"14px",borderRadius:o?"10px":"50%",backgroundColor:o?(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 O=function(t){var e,o,r,i;const[l,d,c]=(0,a.A)(),[p,m]=(0,n.useState)(!0),g=(0,s.Xd)("whatmoreVideoTileSize"),[x,b,S]=(0,f.A)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(u.B),T=(0,s.Xd)("whatmoreShopId"),M=t.events,N=t.activeEventIndex,O=t.setActiveEventIndex,z=M[N],D=(0,y.lP)(z),_=(0,y.cb)(z);if((0,n.useEffect)(()=>{k.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&&!D)return(0,w.jsx)(w.Fragment,{});if("landscape"===l&&!_)return(0,w.jsx)(w.Fragment,{});const F=(0,v.s)("portrait"===l?D:_),B=g/100*(0,h.igk)(T),X=g/100*(0,h.Y_l)(T),L="portrait"===l?(0,h.G0Q)(T):(0,h.ga9)(T),J="portrait"===l?c*B:c*X,$=J*L,W=null!=(null===(e=z.cta)||void 0===e||null===(o=e[1])||void 0===o?void 0:o.cta_link);return(0,w.jsxs)("div",{ref:x,onClick:()=>{var t,e;(0,P.kz)({userInteractionType:I.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:C,event:M[N]}),(0,h.OC6)(T)&&window.open(null===(t=z.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)(T)?"100%":J,minHeight:(0,h.D7t)(T)?c*L:"",height:(0,h.D7t)(T)?"auto":$,borderWidth:(0,h.YcK)(T),borderColor:(0,h.Fwt)(T),overflow:"hidden",cursor:"pointer"},children:["28273541192"===T?(0,w.jsx)(q.A,{height:"100%",width:"100%",url:F,isPlaying:b,event:z,isVideoMuted:!b||p,source:E.N.BANNER}):(0,w.jsx)(j.A,{height:"100%",width:"100%",url:F,isPlaying:b,event:z,isVideoMuted:!b||p,setDuration:t.setDuration,source:E.N.BANNER}),(0,w.jsx)(R,{isCTAPresent:W,events:M,activeEventIndex:N,setActiveEventIndex:O,event:z,mode:l,onMuteToggle:()=>m(!p),initialMuteState:p}),(0,h.XYM)(T)&&(null===z||void 0===z||null===(r=z.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)(A.A,{isBanner:!0,event:z,cta:null===z||void 0===z||null===(i=z.cta)||void 0===i?void 0:i[1],fontFactor:.6})})]})};const z=(0,d.A)({key:"whatmore-css-bv"});var D=function(t){const{whatmoreRootId:e}=(0,n.useContext)(u.B),[o,d]=(0,n.useState)(0),p=t.events,[m,h]=(0,n.useState)(-1),[f]=(0,s.QN)("whatmoreShopId"),[v]=(0,a.A)();let y;return(0,n.useEffect)(()=>{y&&clearInterval(y);const t="video"===p[o].event_type,e=t?1e3*m:6e3;return t?-1!=m&&(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)}},[m,o]),delete i.Ay.styles.global,(0,w.jsx)(l.C,{value:z,children:(0,w.jsx)("div",{className:"whatmore-banner-events",style:{height:"60183543963"===f&&"portrait"==v?"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)(O,{activeEventIndex:o,events:p,setActiveEventIndex:d,setDuration:h})})})})})}},4826:function(){},7458:function(t,e,o){o.d(e,{P:function(){return n}});const n=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,o){o.d(e,{h:function(){return n}});const n=(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 a},b:function(){return i}});var n=o(1348),r=o(5830);function i(t,e=""){const o=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,n.NCy)(o)?"STRNV8MHJTF"==o?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 o=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(o)?"image":null!==r&&void 0!==r&&r.test(o)?"video":void 0}},8538:function(t,e,o){o.d(e,{v:function(){return r}});var n=o(5830);function r(t,e){const o=(0,n.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===(r=t.split("- "))||void 0===r?void 0:r[0]:"6573064236"===o?t.replace(/\b\w/g,function(t){return t.toUpperCase()}):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 n},b4:function(){return r},dl:function(){return i},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const n="device_type",i="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,o){var n=o(5830),i=o(1941),r=o(22),l=o(1348);e.A=function(t){const[e,o,s]=(0,i.A)(),[a]=(0,n.QN)("whatmoreLandscapePadding"),[d]=(0,n.QN)("whatmoreShopId"),[c]=(0,n.QN)("whatmoreVideoTileSize"),[u]=(0,n.QN)("whatmoreVideoTileSizePortrait"),p=s>o,h="portrait"==e?u:c,f=!("portrait"!=e||!(s>=481)),m=h/100*1.3*.5,v=h/100;var x=Math.min(s,o),[y,g,w,b]=[.6*x*(16/9),.6*x,1.4,0];function j(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const t=g*m,e=y*m;[y,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(f){var C=.8*g,P=.8*y;"portrait"==e?(C*=v,P*=v,[y,g,w,b]=[P,C,j(s/(1.2*C)),0],S[r._]=r.vF,S[r.dl]=r.tn):([y,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=y;"portrait"==e?(C=C*v*.9,P=P*v*.9,[y,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*y,[y,g,w,b]=[P,C,(s-2*a)/(1.1*C),a],S[r._]=r.b4,S[r.dl]=r.nN)}return[y,g,w,b,S]}},2835:function(t,e,o){var n=o(7891),i=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"),u=(0,l.Xd)("whatmorePrimaryFont"),p=t.productId,h=t.fontSize,f=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,v=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)(n.A,{sx:{color:a,fontSize:h+"px"}},"star-icon"+e)),m-Math.floor(m)>.2?(0,s.jsx)(i.A,{sx:{color:a,fontSize:h+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(r.A,{sx:{color:a,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].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",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",f,"important"),t.style.setProperty("font-size",.8*h+"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+")"]})})]})})}},3161:function(t,e,o){function n(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}o.d(e,{$:function(){return n}})},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return r}});var n=o(5830),i=o(1745);const r=async function(t,e,o,r,l="",s="",a="",d="",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("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(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,n=e.properties;(0,i.CP)(t,o,n,a,d,c,!0,!0,!0)}})},500),void setTimeout(e,o)):(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").querySelector('button[data-pf-type="ProductATC2"]');e&&s&&e.setAttribute("data-product-id",s)}),void setTimeout(e,o));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const t=l,n=1,i=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(i){let r=i.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",i.appendChild(r)),r.disabled=!1,r.value=t;const l=i.querySelector('input[name="quantity"]');l&&(l.value=n);const s=i.querySelector('button[data-add-to-cart], button[type="submit"]');return s?(s.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),s.click(),s.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{v(t)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:n}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{v(t)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const n=t.querySelector('input[name="id"]');if(!n)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);n.value=l;const i=t.querySelector('button[type="submit"]');if(!i)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);i.click(),setTimeout(()=>{v(l)},500),setTimeout(e,o)}catch(g){console.error("[ATC 64683278550] error:",g),setTimeout(e,o)}return}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},f=(e,o,n)=>{const i=e.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",o),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",n);let e=i.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=i.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const r=i.querySelector('input[name="product-id"]');r&&r.setAttribute("value",n);const l=document.createElement("div");return l.className="whatmore-atc",l.appendChild(i),document.body.appendChild(l),console.log(l,"formElement"),"92319318403"===t&&((t,e,o)=>{var n;const i=null!==(n=t.matches)&&void 0!==n&&n.call(t,"form")?t:t.querySelector("form");if(!i)return;let r=i.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",i.prepend(r)),r.value=String(e),r.removeAttribute("disabled");const l=i.querySelector('select[name="id"]');l&&([...l.options].some(t=>t.value===String(e))?(l.value=String(e),[...l.options].forEach(t=>t.selected=t.value===String(e)),l.dispatchEvent(new Event("change",{bubbles:!0}))):l.removeAttribute("name"));const s=i.querySelector('input[name="product-id"]');s&&(s.value=String(o))})(l,o,n),l}},m=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),n=o.key,r=o.quantity,l=o.properties;(0,i.CP)(n,r,l,a,d,c,!0,!0,!0)})},x=h(document);if(x||(null===x||void 0===x?void 0:x.length)>0){const t=f(x,l,s);m(t),setTimeout(()=>{v(l)},500),t.remove()}else{var y;fetch(null===u||void 0===u||null===(y=u.split("?"))||void 0===y?void 0:y[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=f(o,l,s);m(t),setTimeout(()=>{v(l)},500),t.remove()}})}setTimeout(e,o)}},4063:function(t,e,o){var n=o(9950),i=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,n.useState)(!1),[u,p]=(0,n.useState)(!1),[h]=(0,l.QN)("whatmoreSecondaryColor"),[f]=(0,l.QN)("whatmoreSecondaryColorShade600"),[m]=(0,l.QN)("whatmoreSecondaryColorShade300"),[v]=(0,l.QN)("whatmorePrimaryFont"),x=t.onClick,y=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?m:h,animation:u?s.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:t=>{t.stopPropagation(),p(!0),x()},onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[(0,a.jsx)(i.E,{fontSize:w+"px !important",fontWeight:"normal",sx:{fontFamily:v+" !important",color:"white !important"},children:"VIEW MORE"}),y]})}},4431:function(t,e,o){o.r(e),o.d(e,{default:function(){return Y}});var n=o(9950),i=(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),u=o(5491),p=o.n(u),h=o(5830),f=o(7509),m=o(7136),v=o(1348),x=o(5551),y=o(1351),g=o(6157),w=o(9879),b=o(6663),j=o(8538),S=o(6594),C=o(22),P=o(6613),M=o(8149),T=o(7740),k=o(7035),A=o(6305),N=o(4833),I=o(4533),E=o(63),_=o(7973),R=o(4414);var O=function({productList:t,firstAvailableProduct:e,setFirstAvailableProduct:o,tileWidth:n}){const i=.06*n,r=i+"px",[l]=(0,h.QN)("whatmorePrimaryFont");return(0,R.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,R.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,R.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",paddingTop:"8px",maxHeight:.9*n,overflowY:"auto",paddingBottom:"12px"},children:t.map((t,n)=>(0,R.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,R.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*i,height:2*i}}),(0,R.jsx)("p",{style:{fontSize:.8*i+"px",fontFamily:l,textTransform:"uppercase",backgroundColor:"inherit"},children:null===t||void 0===t?void 0:t.title})]},n))})]})};var F=function(t){var e,o,i,r,l,s,a,c,u,p,m,F,X,z,L,q,D,W,$,Y,B,U,H,Q;const[V,G,J,K,Z]=(0,d.A)(),tt=(0,h.Xd)("whatmoreShopId"),et=(0,h.Xd)("whatmoreLandingLocationType"),ot="portrait"===Z[C.dl],nt=ot?1.076*G*(0,v.HWj)(tt):G*(0,v.N_4)(tt),it=nt+"px",rt=(ot?1.076*G*(0,v.HWj)(tt):G*(0,v.N_4)(tt))+"px",lt=(ot?.965*G*(0,v.HWj)(tt):.859*G*(0,v.N_4)(tt))+"px",[st,at]=(0,n.useState)(t.event),[dt,ct]=(0,n.useState)(!1),ut=(0,h.Xd)("whatmoreSecondaryColor");var pt=(0,n.useContext)(f.h);const ht=null===(e=t.isOnFocus)||void 0===e||e,ft=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,mt=t.onClick,vt=(0,h.Xd)("whatmoreUITheme"),xt=(0,h.Xd)("websiteLanguage"),yt=null!==(i=t.animateOnFocus&&(0,v.n5O)(tt))&&void 0!==i&&i,[gt,wt]=(0,n.useState)(!1),bt=(0,h.Xd)("whatmorePrimaryFont"),[jt,St]=(0,n.useState)(null!==(r=null===(l=st.products)||void 0===l?void 0:l.find(t=>"active"==t.product_status))&&void 0!==r?r:null===(s=st.products)||void 0===s?void 0:s[0]),Ct=jt&&Object.keys(jt).length>0;let Pt,Mt,Tt;if("6573064236"===tt&&Ct){const t=null===jt||void 0===jt?void 0:jt.price;Mt=t,Pt=Math.floor(.6*t),Tt=40}else Pt=Math.round(+(null===jt||void 0===jt?void 0:jt.price)),Mt=Math.round(+(null===jt||void 0===jt?void 0:jt.compare_price)),Tt=Mt&&0!=Mt&&Mt>Pt?Math.round((Mt-Pt)/Mt*100):NaN;const[kt,At]=(0,n.useState)(Tt),[Nt,It]=(0,n.useState)(),{whatmoreIsPreviewMode:Et,whatmoreWidgetSourceDetails:_t,whatmoreUserInfo:Rt}=(0,n.useContext)(x.B),[Ot,Ft]=(0,n.useState)(!1),[Xt,zt,Lt,qt,Dt,Wt]=(0,A.A)(0,jt,st),$t=Ct&&(0,v.mRH)(tt),Yt=Ct&&(0,v.VhI)(tt),Bt=(0,v.WRx)(tt)||ut,Ut=(0,v.jsS)(tt)||"white",Ht=(0,v.KPq)(tt)||"ADD TO CART",[Qt,Vt]=(0,n.useState)(!1),Gt="76767920441"===tt||"55840899223"===tt,Jt=.25*G;(0,n.useEffect)(()=>{if("6573064236"!==tt){if(Ct&&(0,v.w4b)(tt)&&(0,S.fu)(st,(0,v.NCy)(tt),tt).then(t=>{var e,o,n;at(t),(null===t||void 0===t||null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.discount)&&At(null===t||void 0===t||null===(n=t.products[0])||void 0===n?void 0:n.discount),wt(!0)}),Ct){(async()=>{let t=jt;for(let n=0;n<(null===st||void 0===st||null===(e=st.products)||void 0===e?void 0:e.length);n++){var e;const o=await(0,M.M)(null===st||void 0===st?void 0:st.products[n],(0,v.NCy)(tt),tt);if(null!==o&&void 0!==o&&o.available){St(null===st||void 0===st?void 0:st.products[n]),t=null===st||void 0===st?void 0:st.products[n];break}}const o=await(0,M.M)(t,(0,v.NCy)(tt),tt);It(o),wt(!0)})()}}else wt(!0)},[Ct]),(0,n.useEffect)(()=>{if(Ct){if("6573064236"===tt)return void wt(!0);(async()=>{const t=await(0,M.M)(jt,(0,v.NCy)(tt),tt);It(t),wt(!0)})()}},[jt]);const Kt=async t=>{if("6573064236"===tt&&null!==jt&&void 0!==jt&&jt.product_link)return t.stopPropagation(),void(window.location.href=jt.product_link);if(t.stopPropagation(),!Ct)return;ct(!0);const e=_t.landingLocationType,o=_t.templateType,n=(0,N.Wd)(e)+(0,N.gf)(o)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);(0,I.Ch)(st.event_id,st.products,"homepage","carousel",n,null===st||void 0===st?void 0:st.location,null===Rt||void 0===Rt?void 0:Rt.userType),"init"==Xt.state?(Dt(n,!0),(0,y.kz)({userInteractionType:g.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:_t,event:st,productList:[jt],ctaList:st.cta})):"awaitingVariantSelection"==Xt.state&&Wt(null,n),setTimeout(()=>{ct(!1),Vt(!1)},3e3)},Zt=ot?"36px":"44px",te=Gt&&ot?{width:.22*G,height:.29*G}:Gt?{width:1.2*Jt,height:1.6*Jt}:null;return(0,R.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",pt.tileTopMargin+"px"),t.style.setProperty("margin-bottom",pt.tileBottomMMargin+"px"))},className:yt&&!ot?ht?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:Gt&&!ot?1.1*G:G},onClick:()=>{mt(st)},onMouseEnter:()=>Ft(!0),onMouseLeave:()=>Ft(!1),children:[(0,R.jsxs)("div",{className:"wht-event-tile-parent-scroll",style:{borderRadius:"round"==vt?"5%":"0px",boxShadow:"round"==vt?"0px 0px 5px 0px #B0B0B0":null,height:V,borderWidth:(0,v.YcK)(tt),borderColor:(0,v.Fwt)(tt),overflow:"hidden",position:"relative"},children:[(0,R.jsx)(w.A,{height:(0,v.u06)(tt)+" !important",width:"100%",url:st.thumbnail_image,isPlaying:ht||ft||(0,P.At)(),event:st}),Yt&&Ct&&(Ot||ot)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{style:{position:"absolute",bottom:Zt,left:0,right:0,display:Qt?"block":"none"},children:(0,R.jsx)(O,{productList:st.products,firstAvailableProduct:jt,setFirstAvailableProduct:St,tileWidth:G})}),(0,R.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:Bt||"rgba(0, 0, 0, 0.75)",height:Zt,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:Ot||ot?"translateY(0)":"translateY(100%)",opacity:Ot||ot?1:0,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none"},onClick:Kt,children:[(0,R.jsx)("div",{style:{flex:1,textAlign:"center",color:Ut,fontSize:"12px",fontFamily:bt,fontWeight:"500",letterSpacing:"0.5px"},children:dt?(0,R.jsx)(E.y,{size:"sm",color:"white"}):Ht}),(0,R.jsx)("span",{style:{height:"100%",borderRight:`1px solid ${Ut}`,opacity:.5}}),(0,R.jsx)("div",{onClick:t=>{t.stopPropagation(),Vt(!Qt)},style:{padding:"0 5%",display:"flex",alignItems:"center",justifyContent:"center",color:Ut,transform:Qt?"rotate(180deg)":"rotate(0deg)",transition:"all 0.25s ease"},children:(0,R.jsx)(b.A,{sx:{fontSize:2*nt}})})]})]})]}),(0,R.jsxs)("div",{className:"wht-prod-info",style:{display:(0,v.AmR)(tt)?"flex":"none",flexDirection:"row",padding:Gt&&ot?"6px 4px":"12px 4px",gap:Gt&&ot?"4px":"12px",alignItems:"stretch",minHeight:$t?Gt&&ot?"85px":"110px":"auto"},children:[Gt&&Ct&&te&&(0,R.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,R.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,v.KZe)(tt),"important")},src:(0,_.b)((null===jt||void 0===jt?void 0:jt.thumbnail_image)||(null===jt||void 0===jt?void 0:jt.image)||(null===jt||void 0===jt?void 0:jt.featured_image),"&width=400&height=400"),alt:null===jt||void 0===jt?void 0:jt.title,style:{width:te.width,height:te.height,borderRadius:"round"==vt?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:ot?"0px":"-3px"}})}),(0,R.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:Gt&&ot?"2px":"5px",flex:1,minWidth:0},children:[Ct&&(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.m5c)(tt),"important"),t.style.setProperty("font-size","45034766485"==tt&&"product"==et?"9px":it),t.style.setProperty("line-height","120%"),t.style.setProperty("font-family",bt,"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===jt||void 0===jt?void 0:jt.title)}),Ct&>&&(0,v.Nzx)(tt)&&(0,R.jsxs)("div",{style:{display:"flex",gap:Gt&&ot?"6px":"12px",flexDirection:(0,v.vw2)(tt)?"row":"row-reverse",justifyContent:(0,v.vw2)(tt)?"flex-start":"flex-end",alignItems:"center",flexWrap:"wrap"},children:[(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.m5c)(tt),"important"),t.style.setProperty("font-size","45034766485"==tt&&"product"==et?"8px":rt),t.style.setProperty("font-family",bt,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,v.i6j)(tt)?"normal":"bold"},children:(0,S.Sb)(parseFloat((0,T.U)()?(null!==(a=null===Nt||void 0===Nt||null===(c=Nt.variants)||void 0===c||null===(u=c[0])||void 0===u?void 0:u.price)&&void 0!==a?a:null===Nt||void 0===Nt?void 0:Nt.price)?(null!==(p=null===Nt||void 0===Nt||null===(m=Nt.variants)||void 0===m||null===(F=m[0])||void 0===F?void 0:F.price)&&void 0!==p?p:null===Nt||void 0===Nt?void 0:Nt.price)/100:Pt:Pt>0?Pt:null===jt||void 0===jt?void 0:jt.price_max)," ",tt,null===(X=st.products[0])||void 0===X?void 0:X.currency)}),!isNaN(Mt)&&Mt>Pt&&(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.gld)(tt),"important"),t.style.setProperty("font-size",rt),t.style.setProperty("font-family",bt,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,S.Sb)(parseFloat((0,T.U)()&&(null!==(z=null===Nt||void 0===Nt||null===(L=Nt.variants)||void 0===L||null===(q=L[0])||void 0===q?void 0:q.compare_at_price)&&void 0!==z?z:null===Nt||void 0===Nt?void 0:Nt.compare_at_price)?(null!==(D=null===Nt||void 0===Nt||null===(W=Nt.variants)||void 0===W||null===($=W[0])||void 0===$?void 0:$.compare_at_price)&&void 0!==D?D:null===Nt||void 0===Nt?void 0:Nt.compare_at_price)/100:Mt)," ",tt,null===(Y=st.products[0])||void 0===Y?void 0:Y.currency)}),(0,v.Nzx)(tt)&&!isNaN(kt)&&0!=kt&>&&$t&&(0,R.jsx)("div",{style:{display:(0,v.QNr)(tt)?"flex":"none",backgroundColor:"green"===(0,v.ub$)(tt)?"#343434"===ut?(0,v.ub$)(tt):ut:(0,v.ub$)(tt),alignItems:"center",borderRadius:(0,v.v8m)(tt)+"px",width:"fit-content",padding:(0,v.Cf)(tt)?"3px 6px":"0px"},children:(0,v.Cf)(tt)?(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.BRY)(tt),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",bt,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${kt}% ${null!==(B=null===k.m||void 0===k.m||null===(U=k.m[xt])||void 0===U?void 0:U.off)&&void 0!==B?B:"off"}`}):(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v._zx)(tt),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",(0,v.ogW)(tt),"important"))},children:(0,v.rsz)(tt)})})]}),Ct&&(0,v.Nzx)(tt)&&!isNaN(kt)&&0!=kt&>&&!$t&&(0,R.jsx)("div",{style:{display:(0,v.QNr)(tt)?"flex":"none",backgroundColor:"green"===(0,v.ub$)(tt)?"#343434"===ut?(0,v.ub$)(tt):ut:(0,v.ub$)(tt),alignItems:"center",borderRadius:(0,v.v8m)(tt)+"px",width:"fit-content",padding:(0,v.Cf)(tt)?"3px 6px":"0px"},children:(0,v.Cf)(tt)?(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.BRY)(tt),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",bt,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${kt}% ${null!==(H=null===k.m||void 0===k.m||null===(Q=k.m[xt])||void 0===Q?void 0:Q.off)&&void 0!==H?H:"off"}`}):(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v._zx)(tt),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",(0,v.ogW)(tt),"important"))},children:(0,v.rsz)(tt)})}),$t&&(0,R.jsx)("button",{style:{backgroundColor:ut,display:"flex",justifyContent:"center",color:"white",borderRadius:"4px",padding:"8px 16px",fontSize:it,fontFamily:bt,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:Gt&&ot?"100px":"90%",marginTop:Gt?"6px":"0px",alignSelf:"flex-start",marginLeft:Gt&&ot?"-30px":"0px"},onClick:Kt,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:dt?(0,R.jsx)(E.y,{size:"sm",display:"flex !important",color:"white"}):Ht})]})]})]})},X=o(6641),z=o(4063);const L=(0,a.A)({key:"whatmore-css-hv"});function q(t){const[e,o,i]=(0,d.A)(),r=(0,h.Xd)("whatmoreShopId"),l=(0,h.Xd)("whatmoreLandingLocationType"),s=t.events,a=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,n.useContext)(x.B),u=Math.ceil(i),p=2*u,[f,w]=(0,n.useState)(p),[b,j]=(0,n.useState)(2*u),S=0===(0,v.If9)(r)?24:(0,v.If9)(r),[C,P]=(0,n.useState)({touchX:0,touchY:0}),M=()=>(0,R.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,R.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),T=()=>(0,R.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,R.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),k=t=>{if("next"===t){const t=2;j(t=>Math.min(t+Math.floor(i),s.length+u+1)),w(e=>Math.min(e+t,s.length+u+1))}else j(t=>Math.max(t-Math.floor(i),p));(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,R.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,n,i;const r=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-C.touchX,l=(null===(n=t.changedTouches)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.clientY)-C.touchY;Math.sqrt(r**2+l**2)>10&&Math.abs(r)>Math.abs(l)&&k(r>0?"prev":"next")},children:[(0,v.JSQ)(r)&&(0,R.jsxs)(R.Fragment,{children:[b<=s.length+u&&(0,R.jsx)("div",{onClick:()=>k("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,R.jsx)(M,{})}),b>2*u&&(0,R.jsx)("div",{onClick:()=>k("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,R.jsx)(T,{})})]}),(0,R.jsx)("div",{style:{display:"flex",gap:S,transform:`translateX(-${(b-p)*(o+S)}px)`,transition:"transform 0.4s ease-in-out"},children:s.map((t,e)=>e<f?(0,R.jsx)("div",{children:(0,R.jsx)(F,{isOnFocus:e<=b-u-1&&e>=Math.max(0,b-p),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>a(t)})},`whatmore-carousel-tile-${e}`):(0,R.jsx)(m.A,{}))})]})}function D(t){const[e,o,i,r]=(0,d.A)(),[l,s]=(0,n.useState)(-1),a=(0,h.Xd)("whatmoreShopId"),[c,u]=(0,n.useState)("next"),f=t.onClick,m=t.events,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(x.B),b=Math.min(Math.ceil(i),m.length),[j,S]=(0,n.useState)(0),C=0===(0,v.If9)(a)?24:(0,v.If9)(a),P=()=>(0,R.jsx)("div",{children:(0,R.jsx)("button",{onClick:A,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,R.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),M=()=>(0,R.jsx)("div",{children:(0,R.jsx)("button",{onClick:k,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,R.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,n.useEffect)(()=>{j<=b&&S(t=>t+b)},[b]);const T=()=>{s(-1)},k=()=>{j!==b&&(u("prev"),S(t=>Math.max(Math.ceil(t-i),b)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},A=()=>{j>m.length+i||(u("next"),S(t=>Math.floor(t+i)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},N=j>m.length?m.length-b+1:j-b,I=j>=m.length?m.length:N+b,E=m.slice(N,I);return(0,R.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,R.jsx)("div",{className:"wht-vst-button-prev",style:{position:"absolute",left:r+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,R.jsx)(M,{})}),(0,R.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:C+"px",width:o*i*(0,v.fHt)(a)+"px",justifyContent:m.length>b?"flex-start":"center",overflow:"auto"},children:E.map((t,e)=>{const o=`whatmore-event-tile-landscape-${t.index}${e===b-1?"-last":""}`,n=e===l;return(0,R.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===c?"next":"prev"),onMouseEnter:()=>(t=>{const e=p()(()=>s(t),300);return e(),e.cancel})(e),onMouseLeave:T,children:(0,R.jsx)(F,{isOnFocus:n,playOnUnfocus:!(0,v.aO7)(a)||e==parseInt(b/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>(t=>{f(t)})(t)})},o)})}),j<m.length&&(0,R.jsx)("div",{className:"wht-vst-button-next",style:{position:"absolute",zIndex:1,top:"50%",right:r+"px",transform:"translateY(-65%)"},children:(0,R.jsx)(P,{})})]})}function W(t){const[e,o,i,r]=(0,d.A)(),[l,s]=(0,n.useState)(-1),a=(0,h.Xd)("whatmoreShopId"),[c,u]=(0,n.useState)("next"),f=t.onClick,m=t.events,{whatmoreWidgetSourceDetails:w}=(0,n.useContext)(x.B),b=Math.min(Math.ceil(i),m.length),[j,S]=(0,n.useState)(0),C=0===(0,v.If9)(a)?24:(0,v.If9)(a),[P,M]=(0,n.useState)(!1),[T,k]=(0,n.useState)(0),[A,N]=(0,n.useState)(0),I=({disabled:t})=>(0,R.jsx)("button",{onClick:t?void 0:X,className:"wht-custom-nav-dot-next",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,R.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),E=({disabled:t})=>(0,R.jsx)("button",{onClick:t?void 0:O,className:"wht-custom-nav-dot-prev",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,R.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})});(0,n.useEffect)(()=>{j<=b&&S(t=>t+b)},[b]);const _=()=>{s(-1)},O=()=>{j!==b&&(u("prev"),S(t=>Math.max(Math.ceil(t-i),b)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},X=()=>{j>m.length+i||(u("next"),S(t=>Math.floor(t+i)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},z=j>m.length?m.length-b+1:j-b,L=j>=m.length?m.length:z+b,q=m.slice(z,L);return(0,R.jsxs)("div",{style:{position:"relative",width:"100%",minHeight:`${e+60}px`,paddingBottom:"50px"},children:[(0,R.jsx)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${r}px`,paddingRight:`${r}px`,cursor:P?"grabbing":"grab",userSelect:"none"},onMouseDown:t=>{M(!0),k(t.clientX),N(t.clientY)},onMouseMove:t=>{P&&t.preventDefault()},onMouseUp:t=>{if(!P)return;M(!1);const e=t.clientX-T,o=t.clientY-A;Math.sqrt(e**2+o**2)>50&&Math.abs(e)>Math.abs(o)&&(e>0?O():X())},onMouseLeave:()=>{P&&M(!1)},onTouchStart:t=>{M(!0),k(t.touches[0].clientX),N(t.touches[0].clientY)},onTouchMove:t=>{},onTouchEnd:t=>{if(!P)return;M(!1);const e=t.changedTouches[0].clientX-T,o=t.changedTouches[0].clientY-A;Math.sqrt(e**2+o**2)>50&&Math.abs(e)>Math.abs(o)&&(e>0?O():X())},children:(0,R.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:C+"px",width:o*i*(0,v.fHt)(a)+"px",justifyContent:m.length>b?"flex-start":"center",overflow:"auto"},children:q.map((t,e)=>{const o=`whatmore-event-tile-landscape-${t.index}${e===b-1?"-last":""}`,n=e===l;return(0,R.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===c?"next":"prev"),onMouseEnter:()=>(t=>{const e=p()(()=>s(t),300);return e(),e.cancel})(e),onMouseLeave:_,children:(0,R.jsx)(F,{isOnFocus:n,playOnUnfocus:!(0,v.aO7)(a)||e==parseInt(b/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>(t=>{f(t)})(t)})},o)})})}),(0,R.jsxs)("div",{style:{position:"absolute",bottom:"0",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"14px",width:"78px",height:"33px",alignItems:"center",justifyContent:"center"},children:[(0,R.jsx)(E,{disabled:j===b}),(0,R.jsx)(I,{disabled:j>=m.length})]})]})}function $(t){const[e,o,i]=(0,d.A)(),r=(0,h.Xd)("whatmoreShopId"),l=(0,h.Xd)("whatmoreLandingLocationType"),s=t.events,a=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,n.useContext)(x.B),u=.6*i,p=Math.ceil(u),f=2*p,[w,b]=(0,n.useState)(f),[j,S]=(0,n.useState)(2*p),C=0===(0,v.If9)(r)?24:(0,v.If9)(r),P=(0,n.useRef)({touchX:0,touchY:0}),M=(0,n.useRef)(!1),T=({disabled:t})=>(0,R.jsx)("button",{onClick:t?void 0:()=>A("next"),className:"wht-custom-nav-dot-next-portrait",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,R.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),k=({disabled:t})=>(0,R.jsx)("button",{onClick:t?void 0:()=>A("prev"),className:"wht-custom-nav-dot-prev-portrait",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,R.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})}),A=t=>{if("next"===t){const t=2,e=s.length+1;S(t=>Math.min(t+Math.floor(i),e)),b(e=>Math.min(e+t,s.length))}else S(t=>Math.max(t-Math.floor(i),f));(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,R.jsx)("div",{style:{width:"100%",overflow:"hidden",paddingBottom:"50px"},children:(0,R.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==r&&"product"==l?"center":"flex-start",paddingLeft:"12px",overflow:"visible",position:"relative",zoom:1.3,paddingBottom:"60px"},onTouchStart:t=>{t.target.closest("button")||(M.current=!1,P.current={touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchMove:t=>{if(0===P.current.touchX&&0===P.current.touchY)return;const e=t.touches[0].clientX-P.current.touchX,o=t.touches[0].clientY-P.current.touchY;Math.sqrt(e**2+o**2)>10&&!M.current&&(M.current=!0)},onTouchEnd:t=>{var e,o,n,i;if(t.target.closest("button"))return;if(!M.current)return void(P.current={touchX:0,touchY:0});const r=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-P.current.touchX,l=(null===(n=t.changedTouches)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.clientY)-P.current.touchY;Math.sqrt(r**2+l**2)>50&&Math.abs(r)>Math.abs(l)&&A(r>0?"prev":"next"),P.current={touchX:0,touchY:0},M.current=!1},children:[(0,R.jsx)("div",{style:{display:"flex",gap:C,transform:`translateX(-${(j-f)*(o+C)}px)`,transition:"transform 0.4s ease-in-out"},children:s.map((t,e)=>e<w?(0,R.jsx)("div",{children:(0,R.jsx)(F,{isOnFocus:e<=j-p-1&&e>=Math.max(0,j-f),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>a(t)})},`whatmore-carousel-tile-${e}`):(0,R.jsx)(m.A,{}))}),(0,R.jsxs)("div",{style:{position:"absolute",bottom:"-35px",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"14px",width:"78px",height:"33px",alignItems:"center",justifyContent:"center"},children:[(0,R.jsx)(k,{disabled:j<=2*p}),(0,R.jsx)(T,{disabled:j>=s.length+1})]})]})})}var Y=function(t){const[e,o,a]=(0,c.A)(),[d]=(0,h.QN)("whatmoreShopId"),[u]=(0,h.QN)("whatmorePrimaryColor"),[p]=(0,h.QN)("whatmoreSecondaryColor"),[m]=(0,h.QN)("whatmoreTitleFont"),y="portrait"==e?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,n.useContext)(x.B),{whatmoreCollectionHeading:w}=((0,h.Xd)("isInDesignMode"),(0,n.useContext)(x.B)),{whatmoreIsCollectionsTemplate:b}=(0,n.useContext)(x.B),j=t.events,S=t.onClick,C=m;function P(t){S(t)}return(0,n.useEffect)(()=>{(0,X.Fk)("Video shopping powered by Whatmore!")},[]),(0,n.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,R.jsx)(s.C,{value:L,children:(0,R.jsx)("div",{className:"whatmore-carousel-events",children:(0,R.jsx)(i.s,{theme:l.Ay,cssVarsRoot:g,resetCSS:!1,children:(0,R.jsxs)(f.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||b?(0,R.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==d?"flex-start":"center"},children:(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",C,"important"),t.style.setProperty("font-size",y+"px"))},style:{color:u,backgroundClip:"text",textAlign:"center",fontWeight:(0,v.Odx)(d),lineHeight:(0,v.L0y)(d),letterSpacing:(0,v.l3V)(d)},children:b?"W"!==w?w:"":t.heading})}):(0,R.jsx)(R.Fragment,{}),"landscape"===e?"6573064236"===d?(0,R.jsx)(W,{events:j,onClick:P}):(0,R.jsx)(D,{events:j,onClick:P}):(0,R.jsxs)(R.Fragment,{children:["6573064236"===d?(0,R.jsx)($,{events:j,onClick:P}):(0,R.jsx)(q,{events:"45034766485"==d?j.slice(0,5):j,onClick:P}),"45034766485"==d&&(0,R.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,R.jsx)(z.A,{baseFontSize:.5*y,onClick:()=>P(null===j||void 0===j?void 0:j[5])})})]})]})})})})}},4826:function(){},7136:function(t,e,o){var n=o(9950),i=o(932),r=o(7509),l=o(5830),s=o(4414);e.A=function(t){var[e,o]=(0,i.A)();(0,n.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0: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 n}});const n=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,o){o.d(e,{h:function(){return n}});const n=(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 n=o(1348),i=o(5830);function r(t,e=""){const o=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,n.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],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.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 n=o(5830);function i(t,e){const o=(0,n.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]:"6573064236"===o?t.replace(/\b\w/g,function(t){return t.toUpperCase()}):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([[676],{22:function(t,e,n){n.d(e,{$S:function(){return s},_:function(){return i},b4:function(){return r},dl:function(){return o},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const i="device_type",o="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,n){var i=n(5830),o=n(1941),r=n(22),l=n(1348);e.A=function(t){const[e,n,s]=(0,o.A)(),[a]=(0,i.QN)("whatmoreLandscapePadding"),[d]=(0,i.QN)("whatmoreShopId"),[c]=(0,i.QN)("whatmoreVideoTileSize"),[u]=(0,i.QN)("whatmoreVideoTileSizePortrait"),p=s>n,h="portrait"==e?u:c,f=!("portrait"!=e||!(s>=481)),v=h/100*1.3*.5,m=h/100;var x=Math.min(s,n),[y,w,g,b]=[.6*x*(16/9),.6*x,1.4,0];function C(t){return Math.round(10*t)/10}var j={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const t=w*v,e=y*v;[y,w,g,b]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],j[r._]=r.$S,j[r.dl]=r.nN}else if(f){var S=.8*w,P=.8*y;"portrait"==e?(S*=m,P*=m,[y,w,g,b]=[P,S,C(s/(1.2*S)),0],j[r._]=r.vF,j[r.dl]=r.tn):([y,w,g,b]=[P,S,(s-2*a)/(1.1*S),a],j[r._]=r.vF,j[r.dl]=r.nN)}else{S=w,P=y;"portrait"==e?(S=S*m*.9,P=P*m*.9,[y,w,g,b]=[P,S,C(s/(1.15*S)),0],j[r._]=r.b4,j[r.dl]=r.tn):(S=.7*w,P=.7*y,[y,w,g,b]=[P,S,(s-2*a)/(1.1*S),a],j[r._]=r.b4,j[r.dl]=r.nN)}return[y,w,g,b,j]}},1131:function(t,e,n){var i=n(4994);e.A=void 0;var o=i(n(9526)),r=n(4414);e.A=(0,o.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},3369:function(t,e,n){n.r(e),n.d(e,{default:function(){return O}});var i=n(9950),o=n(340),r=n(5089),l=n(5873),s=(n(3997),n(9130),n(4669),n(9733),n(4365),n(7229),n(6042),n(572)),a=n(8603),d=n(9946),c=n(9094),u=n(932),p=n(1941),h=n(5491),f=n.n(h),v=n(5830),m=n(7509),x=n(7136),y=n(1348),w=n(5551),g=n(1351),b=n(6157),C=n(6641),j=(n(4826),n(9879)),S=n(4616),P=n(6649),I=n(6613),k=n(1131),_=n(8141),A=n(4414);function E(t){const[e]=(0,v.QN)("whatmoreShopId"),[n,i,o,r,l]=(0,u.A)(),[s,a,d]=(0,P.A)({triggerOnce:!0}),c=t.event,p=(0,I.At)()?t.isOnFocus:a;return(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,A.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:["56411783377"===e&&(0,A.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginTop:"10px"},children:(0,A.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center",filter:"drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.2))"},children:(0,A.jsx)(_.A,{width:.15*i,height:.15*i})})}),(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)("p",{children:" "})}),(0,A.jsx)("div",{ref:s,children:p&&(0,y.imx)(e)?(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)(S.A,{event:c})}):(0,A.jsx)("div",{height:"20px"})})]})})}var F=function(t){var e,n,o,r,l,s,a,d;const[c,p,h,f,x]=(0,u.A)();var w=(0,i.useContext)(m.h);const g=(0,v.Xd)("whatmoreUITheme"),b=(0,v.Xd)("whatmoreShopId"),C=(0,v.Xd)("whatmorePrimaryFont"),S=(0,v.Xd)("whatmoreSecondaryColor"),P=t.event,I=t.onClick,_=null===(e=t.isOnFocus)||void 0===e||e,F=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,N=null!==(o=t.animateOnFocus&&(0,y.n5O)(b))&&void 0!==o&&o,L=(0,y.VYo)(b);return(0,A.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",w.tileTopMargin+"px"),t.style.setProperty("margin-bottom",w.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:p,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":c,borderRadius:"round"==g?"5px":"0px",boxShadow:"round"==g||"61187850326"==b||"19501891"==b?L:null,borderWidth:(0,y.YcK)(b),borderColor:(0,y.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:N?_?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{var t,e,n;if("12326200"==b&&"image"==P.event_type&&(null===(t=P.products)||void 0===t?void 0:t.length)>0&&"oos"!=(null===(e=P.products)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.product_status)){var i,o;window.location.href=null===(i=P.products)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.product_link}else{if("12326200"==b&&"image"==P.event_type)return;var r,l,s,a,d,c,u,p,h,f,v,m,x,y,w,g;if("10588815418"==b){if(null!==(r=P.cta)&&void 0!==r&&null!==(l=r[0])&&void 0!==l&&null!==(s=l.cta_link)&&void 0!==s&&s.includes("whatmore")&&""!=(null===(a=P.cta)||void 0===a||null===(d=a[1])||void 0===d?void 0:d.cta_link)&&""==(null===(c=P.cta)||void 0===c||null===(u=c[1])||void 0===u?void 0:u.cta_title))window.location.href=null===(w=P.cta)||void 0===w||null===(g=w[1])||void 0===g?void 0:g.cta_link;else if(null!==(p=P.cta)&&void 0!==p&&null!==(h=p[1])&&void 0!==h&&null!==(f=h.cta_link)&&void 0!==f&&f.includes("whatmore")&&""!=(null===(v=P.cta)||void 0===v||null===(m=v[0])||void 0===m?void 0:m.cta_link)&&""==(null===(x=P.cta)||void 0===x||null===(y=x[0])||void 0===y?void 0:y.cta_title)){var C,j;window.location.href=null===(C=P.cta)||void 0===C||null===(j=C[0])||void 0===j?void 0:j.cta_link}}else I(P)}},children:[(0,A.jsx)(j.A,{height:(0,y.u06)(b)+" !important",width:"100%",url:P.thumbnail_image,isPlaying:_||F,event:P}),""!==(null===P||void 0===P?void 0:P.title)?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"wht-overlay-text",style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis"},children:(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,A.jsx)("p",{style:{fontFamily:C,fontSize:.1*p+"px",fontWeight:"600"},children:"12326200"==b?null===P||void 0===P||null===(r=P.title)||void 0===r?void 0:r.slice(7):null===P||void 0===P?void 0:P.title}),"12326200"==b&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*p+"px",fontWeight:"normal"},children:null===P||void 0===P||null===(l=P.title)||void 0===l?void 0:l.slice(0,7)}),(null===(s=P.products)||void 0===s?void 0:s.length)>0&&"oos"!=(null===(a=P.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.product_status)&&(0,A.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:S,padding:"8px 28px"},children:(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*p+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,A.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,A.jsx)(k.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,y.Q$)(b)&&(0,A.jsxs)("div",{style:{width:p,height:c},children:[(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,A.jsx)(E,{event:P,unfocusedDisplay:!_,isOnFocus:_})]})]})};const N=(0,a.A)({key:"whatmore-css-hv"});function L(t){const[e,n,o]=(0,u.A)(),[r,l,s]=(0,p.A)(),a=(0,v.Xd)("whatmoreShopId"),h=t.events,f=t.onClick,m=o*(0,y.kcl)(a),C=(0,y.cbh)(a),[j,S]=(0,i.useState)(C?h.length:m),{whatmoreWidgetSourceDetails:P}=(0,i.useContext)(w.B);(0,i.useEffect)(()=>{j<=m&&S(t=>t+m)},[m]);const I="6573064236"===a?.9*s:s;return(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("div",{style:{width:I,height:"fit-content"},children:(0,A.jsx)(d.RC,{slidesPerView:2,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onSlideChange:t=>{(0,g.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:P}),t.realIndex>t.previousIndex&&S(t=>t+m)},loop:C,modules:(0,y.JSQ)(a)?[c.Vx]:[],navigation:(0,y.JSQ)(a),children:h.map((t,e)=>e<=j&&(0,A.jsx)(d.qr,{children:({isActive:e,isPrev:n,isNext:i,isVisible:o})=>n||i||e?(0,A.jsx)(F,{isOnFocus:o,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{f(t)}}):(0,A.jsx)(x.A,{})},"whatmore-event-tile-portrait-"+t.index))})})})}function M(t){const[e,n,o,r]=(0,u.A)(),[l,s]=(0,i.useState)(-1),a=(0,v.Xd)("whatmoreShopId"),[p]=(0,v.QN)("whatmoreLandingLocationType"),h=t.onClick,m=t.events,C=(0,y.cbh)(a),[j,S]=(0,i.useState)(C?m.length:o),P=Math.min(o,m.length),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(w.B),k=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(k.current){const t=n*P*(0,y.fHt)(a)+"px";m.length<4?k.current.style.setProperty("width",t,"important"):k.current.style.width=t}},[n,P,a,j,m.length]),(0,i.useEffect)(()=>{j<=o&&S(t=>t+o)},[o]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,A.jsx)("div",{ref:k,style:{height:"100%"},children:(0,A.jsx)(d.RC,{slidesPerView:"product"===p&&"87174349065"===a?2:P,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(P),onSlideChange:t=>{(0,g.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:I}),t.realIndex>t.previousIndex&&S(t=>t+o)},spaceBetween:0,loop:C&&m.length>4,style:{height:"100%"},children:m.map((t,e)=>{const n=f()(()=>s(e),300);return e<=j&&(0,A.jsx)(d.qr,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel(),s(-1)},style:{height:"100%"},children:({isActive:n,isPrev:i,isNext:o,isVisible:r})=>r||i||o?(0,A.jsx)(F,{isOnFocus:e==l,playOnUnfocus:!(0,y.aO7)(a)||e==parseInt(P/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>{h(t)}}):(0,A.jsx)(x.A,{})},"whatmore-event-tile-landscape-"+t.index)})})})})}var O=function(t){const[e,n,a]=(0,p.A)(),[d]=(0,v.QN)("whatmoreShopId"),[c]=(0,v.QN)("whatmorePrimaryColor"),[u]=(0,v.QN)("whatmoreTitleFont"),h="portrait"==e?(0,v.Xd)("whatmoreTitleFontSizePortrait"):(0,v.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:f}=(0,i.useContext)(w.B),{whatmoreCollectionHeading:x}=(0,i.useContext)(w.B),{whatmoreIsCollectionsTemplate:g}=(0,i.useContext)(w.B),b=t.events,j=t.onClick,S=u;function P(t){j(t)}return(0,i.useEffect)(()=>{(0,C.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{l.Sn.forEach(t=>{var e;const n=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-g"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-g"]');if(!n)return;n&&t&&(t.style.minHeight="0px")})},[]),delete r.Ay.styles.global,(0,A.jsx)(s.C,{value:N,children:(0,A.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,A.jsx)(o.s,{theme:r.Ay,cssVarsRoot:f,resetCSS:!1,children:(0,A.jsxs)(m.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||g?(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",S),t.style.setProperty("font-size",h+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:g?"W"!==x?x:"":t.heading})}):(0,A.jsx)(A.Fragment,{}),"landscape"===e?(0,A.jsx)(M,{events:b,onClick:P}):(0,A.jsx)(L,{events:b,onClick:P})]})})})})}},3997:function(){},4616:function(t,e,n){var i=n(9950),o=n(5830),r=n(932),l=n(8538),s=(n(4826),n(1348)),a=n(7973),d=n(4414);e.A=function(t){var e,n,c,u,[p,h]=(0,r.A)();const f=(0,o.Xd)("whatmoreUITheme"),[v]=(0,o.QN)("whatmorePrimaryFont"),[m,x]=(0,i.useState)(0),y=(0,o.Xd)("whatmoreShopId"),w=t.event;if(0==w.products.length)return(0,d.jsx)(d.Fragment,{});const g=.3*h,b=g+"px",C=g+"px",j=.07*h,S=j+"px";return(0,d.jsx)("div",{style:{width:h+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,d.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,d.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",C,"important")},style:{width:(0,s.H$k)(y)?b:"auto",boxShadow:"round"==f?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==f?"5px":"0px",borderWidth:(0,s.YcK)(y),borderColor:(0,s.Fwt)(y),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(y),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,a.b)(w.products[m].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==f?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:h-5-g+"px",height:"100%",borderRadius:"round"==f?"5px":"0px",overflow:"visible"},children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",S),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,l.v)(w.products[m].title)})}),(0,s.gZ6)(y)&&(null===(e=w.products[m])||void 0===e||null===(n=e.product_metadata)||void 0===n?void 0:n.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:h-5-g+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==f?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",h-5-g+"px","important"),t.style.setProperty("font-size",.7*j+"px","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(c=w.products[m])||void 0===c||null===(u=c.product_metadata)||void 0===u?void 0:u.product_type})})]})]},m)})}},4669:function(){},4826:function(){},6042:function(){},6474:function(t,e,n){n.r(e),n.d(e,{capitalize:function(){return o.A},createChainedFunction:function(){return r},createSvgIcon:function(){return l.A},debounce:function(){return s},deprecatedPropType:function(){return a},isMuiElement:function(){return u},ownerDocument:function(){return h},ownerWindow:function(){return f},requirePropFactory:function(){return v},setRef:function(){return x},unstable_ClassNameGenerator:function(){return V},unstable_useEnhancedEffect:function(){return w},unstable_useId:function(){return C},unsupportedProp:function(){return j},useControlled:function(){return S},useEventCallback:function(){return P},useForkRef:function(){return I},useIsFocusVisible:function(){return T}});var i=n(4501),o=n(1676);var r=function(...t){return t.reduce((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)},()=>{})},l=n(3059);var s=function(t,e=166){let n;function i(...i){clearTimeout(n),n=setTimeout(()=>{t.apply(this,i)},e)}return i.clear=()=>{clearTimeout(n)},i};var a=function(t,e){return()=>null},d=n(9950),c=n.t(d,2);var u=function(t,e){var n,i;return d.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(i=t.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)};function p(t){return t&&t.ownerDocument||document}var h=p;var f=function(t){return p(t).defaultView||window};var v=function(t,e){return()=>null};function m(t,e){"function"===typeof t?t(e):t&&(t.current=e)}var x=m;var y="undefined"!==typeof window?d.useLayoutEffect:d.useEffect,w=y;let g=0;const b=c["useId".toString()];var C=function(t){if(void 0!==b){const e=b();return null!=t?t:e}return function(t){const[e,n]=d.useState(t),i=t||e;return d.useEffect(()=>{null==e&&(g+=1,n(`mui-${g}`))},[e]),i}(t)};var j=function(t,e,n,i,o){return null};var S=function({controlled:t,default:e,name:n,state:i="value"}){const{current:o}=d.useRef(void 0!==t),[r,l]=d.useState(e);return[o?t:r,d.useCallback(t=>{o||l(t)},[])]};var P=function(t){const e=d.useRef(t);return y(()=>{e.current=t}),d.useRef((...t)=>(0,e.current)(...t)).current};var I=function(...t){return d.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{m(t,e)})},t)};class k{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new k}start(t,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},t)}}let _=!0,A=!1;const E=new k,F={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 N(t){t.metaKey||t.altKey||t.ctrlKey||(_=!0)}function L(){_=!1}function M(){"hidden"===this.visibilityState&&A&&(_=!0)}function O(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return _||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!F[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}var T=function(){const t=d.useCallback(t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",N,!0),e.addEventListener("mousedown",L,!0),e.addEventListener("pointerdown",L,!0),e.addEventListener("touchstart",L,!0),e.addEventListener("visibilitychange",M,!0))},[]),e=d.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!O(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(A=!0,E.start(100,()=>{A=!1}),e.current=!1,!0)},ref:t}};const V={configure:t=>{i.A.configure(t)}}},7136:function(t,e,n){var i=n(9950),o=n(932),r=n(7509),l=n(5830),s=n(4414);e.A=function(t){var[e,n]=(0,o.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:n,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7229:function(){},7509:function(t,e,n){n.d(e,{h:function(){return i}});const i=(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 l},b:function(){return r}});var i=n(1348),o=n(5830);function r(t,e=""){const n=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,i.NCy)(n)?"STRNV8MHJTF"==n?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 n=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,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(n)?"image":null!==o&&void 0!==o&&o.test(n)?"video":void 0}},8141:function(t,e,n){n(9950);var i=n(4414);e.A=({width:t=30,height:e=30})=>(0,i.jsxs)("svg",{width:t,height:e,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{width:"30",height:"30",rx:"15",fill:"white"}),(0,i.jsx)("g",{clipPath:"url(#clip0_1_19)",children:(0,i.jsx)("path",{d:"M16.942 9.3568C16.8684 9.32095 16.7862 9.30645 16.7048 9.31496C16.6234 9.32347 16.5461 9.35464 16.4815 9.40493L12.6621 12.375H10.1875C9.95544 12.375 9.73288 12.4672 9.56878 12.6313C9.40469 12.7954 9.3125 13.0179 9.3125 13.25V16.75C9.3125 16.9821 9.40469 17.2046 9.56878 17.3687C9.73288 17.5328 9.95544 17.625 10.1875 17.625H12.6621L16.4815 20.5951C16.5461 20.6453 16.6235 20.6764 16.705 20.6849C16.7864 20.6933 16.8686 20.6787 16.9421 20.6427C17.0157 20.6068 17.0777 20.5509 17.121 20.4815C17.1644 20.4121 17.1874 20.3319 17.1875 20.25V9.75C17.1875 9.66804 17.1645 9.58773 17.1211 9.51821C17.0777 9.44869 17.0156 9.39276 16.942 9.3568ZM16.3125 19.3553L13.081 16.8424C13.0044 16.7824 12.9098 16.7498 12.8125 16.75H10.1875V13.25H12.8125C12.9098 13.2502 13.0044 13.2176 13.081 13.1576L16.3125 10.6447V19.3553ZM21.872 16.003C21.9541 16.0851 22.0002 16.1964 22.0002 16.3125C22.0002 16.4286 21.9541 16.5399 21.872 16.622C21.7899 16.7041 21.6786 16.7502 21.5625 16.7502C21.4464 16.7502 21.3351 16.7041 21.253 16.622L20.25 15.6185L19.247 16.622C19.1649 16.7041 19.0536 16.7502 18.9375 16.7502C18.8214 16.7502 18.7101 16.7041 18.628 16.622C18.5459 16.5399 18.4998 16.4286 18.4998 16.3125C18.4998 16.1964 18.5459 16.0851 18.628 16.003L19.6315 15L18.628 13.997C18.5459 13.9149 18.4998 13.8036 18.4998 13.6875C18.4998 13.5714 18.5459 13.4601 18.628 13.378C18.7101 13.2959 18.8214 13.2498 18.9375 13.2498C19.0536 13.2498 19.1649 13.2959 19.247 13.378L20.25 14.3815L21.253 13.378C21.3351 13.2959 21.4464 13.2498 21.5625 13.2498C21.6786 13.2498 21.7899 13.2959 21.872 13.378C21.9541 13.4601 22.0002 13.5714 22.0002 13.6875C22.0002 13.8036 21.9541 13.9149 21.872 13.997L20.8685 15L21.872 16.003Z",fill:"#1A1A1A"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_1_19",children:(0,i.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(8 8)"})})})]})},8538:function(t,e,n){n.d(e,{v:function(){return o}});var i=n(5830);function o(t,e){const n=(0,i.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]:"6573064236"===n?t.replace(/\b\w/g,function(t){return t.toUpperCase()}):t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var o}},9130:function(){},9526:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=n(6474)},9733:function(){}}]);
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
100% {
|
|
53
53
|
transform: scale(1);
|
|
54
54
|
}
|
|
55
|
-
`} 0.3s ease-in-out;\n`)},5242:function(t,n,e){var r=e(3731),i=e(1422),o=e(3247),a=e(7239),s=e(5388),c=e(4414);n.A=function(t){var n,e=t.event,l=t.fontSize,u=null!==(n=t.maxWidth)&&void 0!==n?n:"100%",{status:d,bannerText:f,timeToStartInMins:h}=a.A.getEventStatus(e);return d.name===s.A.LIVE.name?(0,c.jsx)(o.az,{maxWidth:u,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.color,children:(0,c.jsx)(i.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,c.jsx)(r.E,{fontSize:l,fontWeight:"bold",color:"white",children:f})})}):(0,c.jsx)(o.az,{maxWidth:u,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.color,children:(0,c.jsx)(i.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,c.jsx)(r.E,{fontSize:l,fontWeight:"medium",children:f})})})}},5388:function(t,n){n.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},6474:function(t,n,e){e.r(n),e.d(n,{capitalize:function(){return i.A},createChainedFunction:function(){return o},createSvgIcon:function(){return a.A},debounce:function(){return s},deprecatedPropType:function(){return c},isMuiElement:function(){return d},ownerDocument:function(){return h},ownerWindow:function(){return m},requirePropFactory:function(){return p},setRef:function(){return v},unstable_ClassNameGenerator:function(){return P},unstable_useEnhancedEffect:function(){return w},unstable_useId:function(){return j},unsupportedProp:function(){return C},useControlled:function(){return M},useEventCallback:function(){return S},useForkRef:function(){return E},useIsFocusVisible:function(){return L}});var r=e(4501),i=e(1676);var o=function(...t){return t.reduce((t,n)=>null==n?t:function(...e){t.apply(this,e),n.apply(this,e)},()=>{})},a=e(3059);var s=function(t,n=166){let e;function r(...r){clearTimeout(e),e=setTimeout(()=>{t.apply(this,r)},n)}return r.clear=()=>{clearTimeout(e)},r};var c=function(t,n){return()=>null},l=e(9950),u=e.t(l,2);var d=function(t,n){var e,r;return l.isValidElement(t)&&-1!==n.indexOf(null!=(e=t.type.muiName)?e: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 h=f;var m=function(t){return f(t).defaultView||window};var p=function(t,n){return()=>null};function g(t,n){"function"===typeof t?t(n):t&&(t.current=n)}var v=g;var x="undefined"!==typeof window?l.useLayoutEffect:l.useEffect,w=x;let b=0;const y=u["useId".toString()];var j=function(t){if(void 0!==y){const n=y();return null!=t?t:n}return function(t){const[n,e]=l.useState(t),r=t||n;return l.useEffect(()=>{null==n&&(b+=1,e(`mui-${b}`))},[n]),r}(t)};var C=function(t,n,e,r,i){return null};var M=function({controlled:t,default:n,name:e,state:r="value"}){const{current:i}=l.useRef(void 0!==t),[o,a]=l.useState(n);return[i?t:o,l.useCallback(t=>{i||a(t)},[])]};var S=function(t){const n=l.useRef(t);return x(()=>{n.current=t}),l.useRef((...t)=>(0,n.current)(...t)).current};var E=function(...t){return l.useMemo(()=>t.every(t=>null==t)?null:n=>{t.forEach(t=>{g(t,n)})},t)};class A{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new A}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let T=!0,I=!1;const F=new A,k={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 N(t){t.metaKey||t.altKey||t.ctrlKey||(T=!0)}function O(){T=!1}function z(){"hidden"===this.visibilityState&&I&&(T=!0)}function R(t){const{target:n}=t;try{return n.matches(":focus-visible")}catch(e){}return T||function(t){const{type:n,tagName:e}=t;return!("INPUT"!==e||!k[n]||t.readOnly)||"TEXTAREA"===e&&!t.readOnly||!!t.isContentEditable}(n)}var L=function(){const t=l.useCallback(t=>{var n;null!=t&&((n=t.ownerDocument).addEventListener("keydown",N,!0),n.addEventListener("mousedown",O,!0),n.addEventListener("pointerdown",O,!0),n.addEventListener("touchstart",O,!0),n.addEventListener("visibilitychange",z,!0))},[]),n=l.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(t){return!!R(t)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(I=!0,F.start(100,()=>{I=!1}),n.current=!1,!0)},ref:t}};const P={configure:t=>{r.A.configure(t)}}},7144:function(t,n,e){e.r(n);var r=e(9950),i=e(3852),o=e(340),a=e(5089),s=e(8726),c=(e(3997),e(9733),e(4365),e(572)),l=e(8603),u=e(3731),d=e(1422),f=e(3247),h=e(6086),m=e(932),p=e(1941),g=e(5830),v=(e(5144),e(7509)),x=e(1348),w=e(5551),b=e(2039),y=e(5620),j=e(4063),C=e(4414);const M=(0,l.A)({key:"whatmore-css-hv"});function S(t,n){var e=[];const r=n;for(let i=0;i<t.length;i+=r){const n=t.slice(i,i+r);e.push(n)}return e}function E(t){var n;const[e,o,a]=(0,m.A)();var[c,l]=(0,r.useState)(0);const u=t.events,p=t.onClick,g=null!==(n=t.seeMoreIncrement)&&void 0!==n?n:1,v=S(u,Math.floor(Math.min(a,u.length)));return(0,C.jsx)(h.o,{children:(0,C.jsxs)(d.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:v.map((t,n)=>n>c?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:t.map((t,n)=>(0,C.jsx)(f.az,{style:{margin:"10px"},children:(0,b.ij)(t)||(0,b.Il)(t)?(0,C.jsx)(y.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{p(t)}}):(0,C.jsx)(i.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{p(t)}})},"event-"+n))},"event-stack-"+n))}),(0,C.jsx)(C.Fragment,{children:c<v.length-1?(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(j.A,{baseFontSize:.1*o,icon:(0,C.jsx)(s.A,{style:{color:"white"}}),onClick:()=>{c>=v.length-1||l(t=>t+g)}})}):(0,C.jsx)(C.Fragment,{})})]})})}function A(t){var n;const[e,o,a,c]=(0,m.A)();var[l,u]=(0,r.useState)(0);const p=t.events,g=t.onClick,v=null!==(n=t.seeMoreIncrement)&&void 0!==n?n:1,x=S(p,Math.floor(Math.min(a,p.length)));return(0,C.jsx)(h.o,{paddingLeft:c+"px",paddingRight:c+"px",children:(0,C.jsxs)(d.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:x.map((t,n)=>n>l?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:t.map((t,n)=>(0,C.jsx)(f.az,{style:{margin:"10px"},children:(0,b.ij)(t)||(0,b.Il)(t)?(0,C.jsx)(y.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{g(t)}}):(0,C.jsx)(i.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{g(t)}})},"event-"+n))},"event-stack-"+n))}),(0,C.jsx)(C.Fragment,{children:l<x.length-1?(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(j.A,{baseFontSize:.1*o,onClick:()=>{l>=x.length-1||u(t=>t+v)},icon:(0,C.jsx)(s.A,{style:{color:"white"}})})}):(0,C.jsx)(C.Fragment,{})})]})})}n.default=function(t){var n;const[e,i,s]=(0,p.A)(),[l]=(0,g.QN)("whatmoreShopId"),[d]=(0,g.QN)("whatmorePrimaryColor"),[f]=(0,g.QN)("whatmoreSecondaryColor"),[m]=(0,g.QN)("whatmoreTitleFont"),b="portrait"==e?(0,g.Xd)("whatmoreTitleFontSizePortrait"):(0,g.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,r.useContext)(w.B),j=t.events,S=t.onClick,T=null!==(n=(0,x.sa6)(l))&&void 0!==n?n:m;function I(t){S(t)}return delete a.Ay.styles.global,(0,C.jsx)(c.C,{value:M,children:(0,C.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,C.jsx)(o.s,{theme:a.Ay,cssVarsRoot:y,resetCSS:!1,children:(0,C.jsxs)(v.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[t.heading.trim().length>0?(0,C.jsx)(h.o,{children:(0,C.jsx)(u.E,{bgColor:d,bgClip:"text",fontSize:b,sx:{fontFamily:T+" !important"},align:"center",children:t.heading})}):(0,C.jsx)(C.Fragment,{}),"landscape"===e?(0,C.jsx)(A,{events:j,onClick:I,seeMoreIncrement:1}):(0,C.jsx)(E,{events:j,onClick:I,seeMoreIncrement:2})]})})})})}},7239:function(t,n,e){var r=e(5388);n.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var n=t.start_time+":00",e=t.end_time,i=t.scheduled_date,o=t.status,a=t.time_zone;if(o.toUpperCase()==r.A.LIVE.name)return{status:r.A.LIVE,bannerText:" "+r.A.LIVE.name+" ",timeToStartInMins:0};if(o.toUpperCase()==r.A.UPCOMING.name){var s=new Date(i+" "+n+" "+a),c=(new Date(i+" "+e+" "+a),function(t){var n=new Date,e=(t.getTime()-n.getTime())/1e3,i=e/60,o=i/60,a=o/24;return e<=0?{status:r.A.COMPLETED,bannerText:" "+r.A.COMPLETED.name+" ",timeToStartInMins:0}:e>=1&&e<=30?{status:r.A.UPCOMING,bannerText:"Starts in "+Math.round(e)+" sec ",timeToStartInMins:e/60}:i<60?{status:r.A.UPCOMING,bannerText:"Starts in "+Math.round(i)+" min ",timeToStartInMins:i}:o<24?{status:r.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" hr ",timeToStartInMins:60*o}:a<7?{status:r.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:r.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(s));return{status:c.status,bannerText:c.bannerText,timeToStartInMins:c.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:r.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},7509:function(t,n,e){e.d(n,{h:function(){return r}});const r=(0,e(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,n,e){e.d(n,{B:function(){return a},b:function(){return o}});var r=e(1348),i=e(5830);function o(t,n=""){const e=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,r.NCy)(e)?"STRNV8MHJTF"==e?t+"?format=webp":t:t+n}function a(t){var n;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const e=null===t||void 0===t||null===(n=t.trim())||void 0===n?void 0:n.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(e)?"image":null!==i&&void 0!==i&&i.test(e)?"video":void 0}},8538:function(t,n,e){e.d(n,{v:function(){return i}});var r=e(5830);function i(t,n){const e=(0,r.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==e||"72442478904"==e||"58562281529"==e?t:"66168324332"==e&&"prod-tile"!=n?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}},8726:function(t,n,e){var r=e(4994);n.A=void 0;var i=r(e(9526)),o=e(4414);n.A=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},9526:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=e(6474)},9733:function(){}}]);
|
|
55
|
+
`} 0.3s ease-in-out;\n`)},5242:function(t,n,e){var r=e(3731),i=e(1422),o=e(3247),a=e(7239),s=e(5388),c=e(4414);n.A=function(t){var n,e=t.event,l=t.fontSize,u=null!==(n=t.maxWidth)&&void 0!==n?n:"100%",{status:d,bannerText:f,timeToStartInMins:h}=a.A.getEventStatus(e);return d.name===s.A.LIVE.name?(0,c.jsx)(o.az,{maxWidth:u,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.color,children:(0,c.jsx)(i.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,c.jsx)(r.E,{fontSize:l,fontWeight:"bold",color:"white",children:f})})}):(0,c.jsx)(o.az,{maxWidth:u,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.color,children:(0,c.jsx)(i.B,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,c.jsx)(r.E,{fontSize:l,fontWeight:"medium",children:f})})})}},5388:function(t,n){n.A={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},6474:function(t,n,e){e.r(n),e.d(n,{capitalize:function(){return i.A},createChainedFunction:function(){return o},createSvgIcon:function(){return a.A},debounce:function(){return s},deprecatedPropType:function(){return c},isMuiElement:function(){return d},ownerDocument:function(){return h},ownerWindow:function(){return m},requirePropFactory:function(){return p},setRef:function(){return v},unstable_ClassNameGenerator:function(){return P},unstable_useEnhancedEffect:function(){return w},unstable_useId:function(){return j},unsupportedProp:function(){return C},useControlled:function(){return M},useEventCallback:function(){return S},useForkRef:function(){return E},useIsFocusVisible:function(){return L}});var r=e(4501),i=e(1676);var o=function(...t){return t.reduce((t,n)=>null==n?t:function(...e){t.apply(this,e),n.apply(this,e)},()=>{})},a=e(3059);var s=function(t,n=166){let e;function r(...r){clearTimeout(e),e=setTimeout(()=>{t.apply(this,r)},n)}return r.clear=()=>{clearTimeout(e)},r};var c=function(t,n){return()=>null},l=e(9950),u=e.t(l,2);var d=function(t,n){var e,r;return l.isValidElement(t)&&-1!==n.indexOf(null!=(e=t.type.muiName)?e: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 h=f;var m=function(t){return f(t).defaultView||window};var p=function(t,n){return()=>null};function g(t,n){"function"===typeof t?t(n):t&&(t.current=n)}var v=g;var x="undefined"!==typeof window?l.useLayoutEffect:l.useEffect,w=x;let b=0;const y=u["useId".toString()];var j=function(t){if(void 0!==y){const n=y();return null!=t?t:n}return function(t){const[n,e]=l.useState(t),r=t||n;return l.useEffect(()=>{null==n&&(b+=1,e(`mui-${b}`))},[n]),r}(t)};var C=function(t,n,e,r,i){return null};var M=function({controlled:t,default:n,name:e,state:r="value"}){const{current:i}=l.useRef(void 0!==t),[o,a]=l.useState(n);return[i?t:o,l.useCallback(t=>{i||a(t)},[])]};var S=function(t){const n=l.useRef(t);return x(()=>{n.current=t}),l.useRef((...t)=>(0,n.current)(...t)).current};var E=function(...t){return l.useMemo(()=>t.every(t=>null==t)?null:n=>{t.forEach(t=>{g(t,n)})},t)};class A{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new A}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let T=!0,I=!1;const F=new A,k={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 N(t){t.metaKey||t.altKey||t.ctrlKey||(T=!0)}function O(){T=!1}function z(){"hidden"===this.visibilityState&&I&&(T=!0)}function R(t){const{target:n}=t;try{return n.matches(":focus-visible")}catch(e){}return T||function(t){const{type:n,tagName:e}=t;return!("INPUT"!==e||!k[n]||t.readOnly)||"TEXTAREA"===e&&!t.readOnly||!!t.isContentEditable}(n)}var L=function(){const t=l.useCallback(t=>{var n;null!=t&&((n=t.ownerDocument).addEventListener("keydown",N,!0),n.addEventListener("mousedown",O,!0),n.addEventListener("pointerdown",O,!0),n.addEventListener("touchstart",O,!0),n.addEventListener("visibilitychange",z,!0))},[]),n=l.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(t){return!!R(t)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(I=!0,F.start(100,()=>{I=!1}),n.current=!1,!0)},ref:t}};const P={configure:t=>{r.A.configure(t)}}},7144:function(t,n,e){e.r(n);var r=e(9950),i=e(3852),o=e(340),a=e(5089),s=e(8726),c=(e(3997),e(9733),e(4365),e(572)),l=e(8603),u=e(3731),d=e(1422),f=e(3247),h=e(6086),m=e(932),p=e(1941),g=e(5830),v=(e(5144),e(7509)),x=e(1348),w=e(5551),b=e(2039),y=e(5620),j=e(4063),C=e(4414);const M=(0,l.A)({key:"whatmore-css-hv"});function S(t,n){var e=[];const r=n;for(let i=0;i<t.length;i+=r){const n=t.slice(i,i+r);e.push(n)}return e}function E(t){var n;const[e,o,a]=(0,m.A)();var[c,l]=(0,r.useState)(0);const u=t.events,p=t.onClick,g=null!==(n=t.seeMoreIncrement)&&void 0!==n?n:1,v=S(u,Math.floor(Math.min(a,u.length)));return(0,C.jsx)(h.o,{children:(0,C.jsxs)(d.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:v.map((t,n)=>n>c?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:t.map((t,n)=>(0,C.jsx)(f.az,{style:{margin:"10px"},children:(0,b.ij)(t)||(0,b.Il)(t)?(0,C.jsx)(y.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{p(t)}}):(0,C.jsx)(i.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{p(t)}})},"event-"+n))},"event-stack-"+n))}),(0,C.jsx)(C.Fragment,{children:c<v.length-1?(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(j.A,{baseFontSize:.1*o,icon:(0,C.jsx)(s.A,{style:{color:"white"}}),onClick:()=>{c>=v.length-1||l(t=>t+g)}})}):(0,C.jsx)(C.Fragment,{})})]})})}function A(t){var n;const[e,o,a,c]=(0,m.A)();var[l,u]=(0,r.useState)(0);const p=t.events,g=t.onClick,v=null!==(n=t.seeMoreIncrement)&&void 0!==n?n:1,x=S(p,Math.floor(Math.min(a,p.length)));return(0,C.jsx)(h.o,{paddingLeft:c+"px",paddingRight:c+"px",children:(0,C.jsxs)(d.B,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:x.map((t,n)=>n>l?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:t.map((t,n)=>(0,C.jsx)(f.az,{style:{margin:"10px"},children:(0,b.ij)(t)||(0,b.Il)(t)?(0,C.jsx)(y.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{g(t)}}):(0,C.jsx)(i.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{g(t)}})},"event-"+n))},"event-stack-"+n))}),(0,C.jsx)(C.Fragment,{children:l<x.length-1?(0,C.jsx)(d.B,{direction:"row",width:"100%",height:"fit-content",marginY:"10px !important",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(j.A,{baseFontSize:.1*o,onClick:()=>{l>=x.length-1||u(t=>t+v)},icon:(0,C.jsx)(s.A,{style:{color:"white"}})})}):(0,C.jsx)(C.Fragment,{})})]})})}n.default=function(t){var n;const[e,i,s]=(0,p.A)(),[l]=(0,g.QN)("whatmoreShopId"),[d]=(0,g.QN)("whatmorePrimaryColor"),[f]=(0,g.QN)("whatmoreSecondaryColor"),[m]=(0,g.QN)("whatmoreTitleFont"),b="portrait"==e?(0,g.Xd)("whatmoreTitleFontSizePortrait"):(0,g.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,r.useContext)(w.B),j=t.events,S=t.onClick,T=null!==(n=(0,x.sa6)(l))&&void 0!==n?n:m;function I(t){S(t)}return delete a.Ay.styles.global,(0,C.jsx)(c.C,{value:M,children:(0,C.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,C.jsx)(o.s,{theme:a.Ay,cssVarsRoot:y,resetCSS:!1,children:(0,C.jsxs)(v.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[t.heading.trim().length>0?(0,C.jsx)(h.o,{children:(0,C.jsx)(u.E,{bgColor:d,bgClip:"text",fontSize:b,sx:{fontFamily:T+" !important"},align:"center",children:t.heading})}):(0,C.jsx)(C.Fragment,{}),"landscape"===e?(0,C.jsx)(A,{events:j,onClick:I,seeMoreIncrement:1}):(0,C.jsx)(E,{events:j,onClick:I,seeMoreIncrement:2})]})})})})}},7239:function(t,n,e){var r=e(5388);n.A=class{static getEventStatus(t){t.time_zone="GMT+5:30";var n=t.start_time+":00",e=t.end_time,i=t.scheduled_date,o=t.status,a=t.time_zone;if(o.toUpperCase()==r.A.LIVE.name)return{status:r.A.LIVE,bannerText:" "+r.A.LIVE.name+" ",timeToStartInMins:0};if(o.toUpperCase()==r.A.UPCOMING.name){var s=new Date(i+" "+n+" "+a),c=(new Date(i+" "+e+" "+a),function(t){var n=new Date,e=(t.getTime()-n.getTime())/1e3,i=e/60,o=i/60,a=o/24;return e<=0?{status:r.A.COMPLETED,bannerText:" "+r.A.COMPLETED.name+" ",timeToStartInMins:0}:e>=1&&e<=30?{status:r.A.UPCOMING,bannerText:"Starts in "+Math.round(e)+" sec ",timeToStartInMins:e/60}:i<60?{status:r.A.UPCOMING,bannerText:"Starts in "+Math.round(i)+" min ",timeToStartInMins:i}:o<24?{status:r.A.UPCOMING,bannerText:"Starts in "+Math.round(o)+" hr ",timeToStartInMins:60*o}:a<7?{status:r.A.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:r.A.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(s));return{status:c.status,bannerText:c.bannerText,timeToStartInMins:c.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:r.A.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},7509:function(t,n,e){e.d(n,{h:function(){return r}});const r=(0,e(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,n,e){e.d(n,{B:function(){return a},b:function(){return o}});var r=e(1348),i=e(5830);function o(t,n=""){const e=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,r.NCy)(e)?"STRNV8MHJTF"==e?t+"?format=webp":t:t+n}function a(t){var n;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const e=null===t||void 0===t||null===(n=t.trim())||void 0===n?void 0:n.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(e)?"image":null!==i&&void 0!==i&&i.test(e)?"video":void 0}},8538:function(t,n,e){e.d(n,{v:function(){return i}});var r=e(5830);function i(t,n){const e=(0,r.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==e||"72442478904"==e||"58562281529"==e?t:"66168324332"==e&&"prod-tile"!=n?null===t||void 0===t||null===(i=t.split("- "))||void 0===i?void 0:i[0]:"6573064236"===e?t.replace(/\b\w/g,function(t){return t.toUpperCase()}):t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var i}},8726:function(t,n,e){var r=e(4994);n.A=void 0;var i=r(e(9526)),o=e(4414);n.A=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},9526:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=e(6474)},9733:function(){}}]);
|