whatmore-react-assets 1.0.1700 → 1.0.1701
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/262.950664ed.chunk.js +1 -0
- package/static/js/964.5966040c.chunk.js +1 -0
- package/static/js/atc-with-form.b80457b3.chunk.js +1 -0
- package/static/js/banner-template-a.220771b0.chunk.js +1 -0
- package/static/js/carousel-template-f.b8a6b9aa.chunk.js +1 -0
- package/static/js/carousel-template-feed.eab8e29b.chunk.js +15 -0
- package/static/js/event-click.f7f1e1c9.chunk.js +2 -0
- package/static/js/product-page-view.068a6d54.chunk.js +1 -0
- package/static/js/spotlight-view.cea28368.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/262.e0c5a88e.chunk.js +0 -1
- package/static/js/964.c8025e2f.chunk.js +0 -1
- package/static/js/atc-with-form.baee52ab.chunk.js +0 -1
- package/static/js/banner-template-a.6a6ae252.chunk.js +0 -1
- package/static/js/carousel-template-f.fab86ad9.chunk.js +0 -1
- package/static/js/carousel-template-feed.eac0d5cc.chunk.js +0 -15
- package/static/js/event-click.a798e450.chunk.js +0 -2
- package/static/js/product-page-view.9a50dfd8.chunk.js +0 -1
- package/static/js/spotlight-view.ef0df8a8.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262],{3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return n}});var r=o(5830),i=o(1745);const n=async function(t,e,o,n,a="",c="",d="",u="",s="",l=""){(0,r.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(c&&t.setAttribute("data-product-id",c),t.click(),setTimeout(()=>{(0,i.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,r=e.properties;(0,i.CP)(t,o,r,d,u,s,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===l||void 0===l||null===(m=l.split("?"))||void 0===m?void 0:m[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&c&&e.setAttribute("data-product-id",c)}),void setTimeout(e,o));var m}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{y(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(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);const p=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=(t,e,o)=>{const r=t.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",e),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",o);let t=r.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const o=t.querySelector('option[selected="selected"]');o&&o.setAttribute("value",e)}}const i=r.querySelector('input[name="product-id"]');i&&i.setAttribute("value",o);const n=document.createElement("div");return n.className="whatmore-atc",n.appendChild(r),document.body.appendChild(n),console.log(n,"formElement"),n}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),r=o.key,n=o.quantity,a=o.properties;(0,i.CP)(r,n,a,d,u,s,!0,!0,!0)})},v=p(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const t=h(v,a,c);f(t),setTimeout(()=>{y(a)},500),t.remove()}else{var S;fetch(null===l||void 0===l||null===(S=l.split("?"))||void 0===S?void 0:S[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=p(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=h(o,a,c);f(t),setTimeout(()=>{y(a)},500),t.remove()}})}setTimeout(e,o)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,939,964],{22:function(t,e,o){o.d(e,{$S:function(){return a},_:function(){return r},b4:function(){return n},dl:function(){return i},nN:function(){return d},tn:function(){return s},vF:function(){return l}});const r="device_type",i="device_mode",n="mobile",l="tablet",a="desktop",s="portrait",d="landscape"},932:function(t,e,o){var r=o(5830),i=o(1941),n=o(22),l=o(1348);e.A=function(t){const[e,o,a]=(0,i.A)(),[s]=(0,r.QN)("whatmoreLandscapePadding"),[d]=(0,r.QN)("whatmoreShopId"),[p]=(0,r.QN)("whatmoreVideoTileSize"),[c]=(0,r.QN)("whatmoreVideoTileSizePortrait"),u=a>o,m="portrait"==e?c:p,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 P(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:n.b4,DEVICE_MODE:n.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],S[n._]=n.$S,S[n.dl]=n.nN}else if(y){var j=.8*g,C=.8*x;"portrait"==e?(j*=v,C*=v,[x,g,w,b]=[C,j,P(a/(1.2*j)),0],S[n._]=n.vF,S[n.dl]=n.tn):([x,g,w,b]=[C,j,(a-2*s)/(1.1*j),s],S[n._]=n.vF,S[n.dl]=n.nN)}else{j=g,C=x;"portrait"==e?(j=j*v*.9,C=C*v*.9,[x,g,w,b]=[C,j,P(a/(1.15*j)),0],S[n._]=n.b4,S[n.dl]=n.tn):(j=.7*g,C=.7*x,[x,g,w,b]=[C,j,(a-2*s)/(1.1*j),s],S[n._]=n.b4,S[n.dl]=n.nN)}return[x,g,w,b,S]}},1957:function(t,e,o){var r=o(9950),i=o(932),n=(o(4826),o(5830)),l=o(9879),a=o(7509),s=o(22),d=o(1348),p=o(5551),c=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,P,S,j,C,N,T,A,_,k,M,I,R,z,F,E,$,O,q,D;const[L,W,X,U,V]=(0,i.A)(),B=.5*W;(0,r.useContext)(a.h);const Y=(0,n.Xd)("whatmoreUITheme"),H=(0,n.Xd)("whatmoreShopId"),J=(0,n.Xd)("whatmorePrimaryFont"),Q=(0,n.Xd)("whatmoreSecondaryColor"),K=(0,n.Xd)("websiteLanguage"),G=t.onClick,Z=null===(e=t.isOnFocus)||void 0===e||e,tt=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,et=null!==(P=t.animateOnFocus&&(0,d.n5O)(H))&&void 0!==P&&P,ot="portrait"===V[s.dl],rt=(ot?1.076*W*(0,d.HWj)(H):W*(0,d.N_4)(H))+"px",it=(ot?1.076*W*(0,d.HWj)(H):W*(0,d.N_4)(H))+"px",nt=(ot?.965*W*(0,d.HWj)(H):.859*W*(0,d.N_4)(H))+"px",lt=(0,d.VYo)(H),{whatmoreIsPreviewMode:at,whatmoreWidgetSourceDetails:st}=(0,r.useContext)(p.B),dt=.25*W,pt=dt+"px",ct=1.25*dt+"px",[ut,mt]=(0,r.useState)(t.event),[yt,ft]=(0,r.useState)(),[vt,ht]=(0,r.useState)(!1),xt=null!==(S=null===(j=ut.products)||void 0===j?void 0:j.find(t=>"active"==t.product_status))&&void 0!==S?S:null===(C=ut.products)||void 0===C?void 0:C[0],gt=Math.round(+(null===xt||void 0===xt?void 0:xt.price)),wt=Math.round(+(null===xt||void 0===xt?void 0:xt.compare_price)),bt=wt&&0!=wt&&wt>gt?Math.round((wt-gt)/wt*100):NaN,[Pt,St]=(0,r.useState)(bt),[jt,Ct]=(0,r.useState)(!1),[Nt,Tt,At,_t,kt,Mt]=(0,h.A)(0,xt,ut);return(0,r.useEffect)(()=>{(0,d.w4b)(H)?(0,c.fu)(ut,(0,d.NCy)(H),H).then(t=>{var e,o,r;mt(t);const i=Math.round(null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.price),n=Math.round(null===t||void 0===t||null===(r=t.products[0])||void 0===r?void 0:r.compare_price),l=n&&0!=n&&n>i?Math.round((n-i)/n*100):NaN;St(l),Ct(!0)}):(async()=>{const t=await(0,m.M)(xt,(0,d.NCy)(H),H);ft(t),Ct(!0)})()},[]),(0,b.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","12px"),t.style.setProperty("margin-bottom","12px"))},className:et&&!ot?Z?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:W,margin:"0 auto",cursor:"pointer"},onClick:()=>{G(ut)},onMouseEnter:()=>ht(!0),onMouseLeave:()=>ht(!1),children:["video"===ut.event_type&&"55076552858"===H&&!ot&&(0,b.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*B,marginLeft:B/2},children:(0,b.jsx)(y.A,{sx:{color:(0,d.KFN)(ut.whatmoreShopId)+" !important",opacity:.8,fontSize:B,filter:"drop-shadow(0 0 15px black);"}})}),(0,b.jsxs)("div",{style:{width:W,height:ot&&Z?"STR2FOC6KG9"==H||"STRDOIDF6O7"==H?L:1.1*L:L,borderRadius:"round"==Y?"5px":"0px",boxShadow:"round"==Y?lt:null,borderWidth:(0,d.YcK)(H),borderColor:(0,d.Fwt)(H),overflow:"hidden",position:"relative"},children:[(0,b.jsx)(l.A,{height:(0,d.u06)(H)+" !important",width:"100%",url:ut.thumbnail_image,isPlaying:Z||tt,event:ut}),"9238315068"===H&&(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"==Nt.state?(kt(r),(0,g.kz)({userInteractionType:w.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:st,event:ut,productList:[xt],ctaList:ut.cta})):"awaitingVariantSelection"==Nt.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:J,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)(H):(0,d.UmS)(H))&&(null===ut||void 0===ut||null===(N=ut.products)||void 0===N?void 0:N.length)>0&&(0,b.jsx)("div",{style:{maxHeight:ct,maxWidth:pt,minWidth:null!==xt&&void 0!==xt&&xt.thumbnail_image?pt:"0",overflow:"hidden"},children:(0,b.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,d.KZe)(H),"important")},style:{height:"100%"},src:(null===xt||void 0===xt||null===(T=xt.thumbnail_image)||void 0===T||null===(A=T.split("?"))||void 0===A?void 0:A[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)(H),"important"),t.style.setProperty("font-size",rt,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",J,"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)(H)&&(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,d.vw2)(H)?"row":"row-reverse",justifyContent:(0,d.vw2)(H)?"flex-start":"flex-end"},children:[(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(H),"important"),t.style.setProperty("font-size",it,"important"),t.style.setProperty("font-family",J,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(H)?"normal":"bold"},children:(0,c.Sb)(parseFloat((0,f.U)()?(null!==(_=null===yt||void 0===yt||null===(k=yt.variants)||void 0===k||null===(M=k[0])||void 0===M?void 0:M.price)&&void 0!==_?_:null===yt||void 0===yt?void 0:yt.price)/100:null===xt||void 0===xt?void 0:xt.price)," ",H,null===(I=ut.products[0])||void 0===I?void 0:I.currency)}),!isNaN(wt)&&wt>gt&&(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(H),"important"),t.style.setProperty("font-size",it,"important"),t.style.setProperty("font-family",J,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,c.Sb)(parseFloat((0,f.U)()?(null!==(R=null===yt||void 0===yt||null===(z=yt.variants)||void 0===z||null===(F=z[0])||void 0===F?void 0:F.compare_at_price)&&void 0!==R?R:null===yt||void 0===yt?void 0:yt.compare_at_price)/100:null===xt||void 0===xt?void 0:xt.compare_price)," ",H,null===(E=ut.products[0])||void 0===E?void 0:E.currency)}),"56352899156"==H&&(0,d.Nzx)(H)&&jt&&!isNaN(Pt)&&0!=Pt&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(H)?"#343434"==Q?(0,d.ub$)(H):Q:(0,d.ub$)(H),alignItems:"center",borderRadius:(0,d.v8m)(H)+"px",width:"fit-content",padding:"3px 4px"},children:(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(H),"important"),t.style.setProperty("font-size",nt,"important"),t.style.setProperty("font-family",J,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${Pt}% ${null!==($=null===v.m||void 0===v.m||null===(O=v.m[K])||void 0===O?void 0:O.off)&&void 0!==$?$:"off"}`})})]}),(0,d.Nzx)(H)&&jt&&!isNaN(Pt)&&0!=Pt&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(H)?"#343434"==Q?(0,d.ub$)(H):Q:(0,d.ub$)(H),alignItems:"center",borderRadius:(0,d.v8m)(H)+"px",width:"fit-content",padding:(0,d.Cf)(H)?"3px 6px":"0px"},children:(0,d.Cf)(H)?(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(H),"important"),t.style.setProperty("font-size",nt,"important"),t.style.setProperty("font-family",J,"important"))},children:`${Pt}% ${null!==(q=null===v.m||void 0===v.m||null===(D=v.m[K])||void 0===D?void 0:D.off)&&void 0!==q?q:"off"}`}):(0,b.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d._zx)(H),"important"),t.style.setProperty("font-size",nt,"important"),t.style.setProperty("font-family",(0,d.ogW)(H),"important"))},children:(0,d.rsz)(H)})})]}),""!=(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",J,"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),i=o(8454),n=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,p]=(0,l.QN)("productRatings"),c=(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)(i.A,{sx:{color:s,fontSize:m+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(n.A,{sx:{color:s,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map((t,e)=>(0,a.jsx)(n.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",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",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",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","("+v+")"]})})]})})}},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return n}});var r=o(5830),i=o(1745);const n=async function(t,e,o,n,l="",a="",s="",d="",p="",c=""){(0,r.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(a&&t.setAttribute("data-product-id",a),t.click(),setTimeout(()=>{(0,i.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(l));if(e){const t=e.key,o=e.quantity,r=e.properties;(0,i.CP)(t,o,r,s,d,p,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===c||void 0===c||null===(u=c.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);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=(t,e,o)=>{const r=t.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",e),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",o);let t=r.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const o=t.querySelector('option[selected="selected"]');o&&o.setAttribute("value",e)}}const i=r.querySelector('input[name="product-id"]');i&&i.setAttribute("value",o);const n=document.createElement("div");return n.className="whatmore-atc",n.appendChild(r),document.body.appendChild(n),console.log(n,"formElement"),n}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},v=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),r=o.key,n=o.quantity,l=o.properties;(0,i.CP)(r,n,l,s,d,p,!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===c||void 0===c||null===(x=c.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),i=o(932),n=o(7509),l=o(5830),a=o(4414);e.A=function(t){var[e,o]=(0,i.A)();(0,r.useContext)(n.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 n}});var r=o(1348),i=o(5830);function n(t,e=""){const o=(0,i.Xd)("whatmoreShopId");return"shopify"!=(0,r.NCy)(o)?"STRNV8MHJTF"==o?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const o=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(o)?"image":null!==i&&void 0!==i&&i.test(o)?"video":void 0}},8538:function(t,e,o){o.d(e,{v:function(){return i}});var r=o(5830);function i(t,e){const o=(0,r.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==o||"72442478904"==o||"58562281529"==o?t:"66168324332"==o&&"prod-tile"!=e?null===t||void 0===t||null===(i=t.split("- "))||void 0===i?void 0:i[0]:t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var i}},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,939],{3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return n}});var r=o(5830),i=o(1745);const n=async function(t,e,o,n,a="",c="",d="",u="",s="",l=""){(0,r.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(c&&t.setAttribute("data-product-id",c),t.click(),setTimeout(()=>{(0,i.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,r=e.properties;(0,i.CP)(t,o,r,d,u,s,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===l||void 0===l||null===(m=l.split("?"))||void 0===m?void 0:m[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&c&&e.setAttribute("data-product-id",c)}),void setTimeout(e,o));var m}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{y(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(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);const p=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=(t,e,o)=>{const r=t.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",e),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",o);let t=r.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const o=t.querySelector('option[selected="selected"]');o&&o.setAttribute("value",e)}}const i=r.querySelector('input[name="product-id"]');i&&i.setAttribute("value",o);const n=document.createElement("div");return n.className="whatmore-atc",n.appendChild(r),document.body.appendChild(n),console.log(n,"formElement"),n}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),r=o.key,n=o.quantity,a=o.properties;(0,i.CP)(r,n,a,d,u,s,!0,!0,!0)})},v=p(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const t=h(v,a,c);f(t),setTimeout(()=>{y(a)},500),t.remove()}else{var S;fetch(null===l||void 0===l||null===(S=l.split("?"))||void 0===S?void 0:S[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=p(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=h(o,a,c);f(t),setTimeout(()=>{y(a)},500),t.remove()}})}setTimeout(e,o)}}}]);
|
|
@@ -0,0 +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,h=t.fontSize,m=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 v=d[p].avgRating,f=d[p].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(v))].map((t,e)=>(0,s.jsx)(n.A,{sx:{color:l,fontSize:h+"px"}},"star-icon"+e)),v-Math.floor(v)>.2?(0,s.jsx)(r.A,{sx:{color:l,fontSize:h+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(i.A,{sx:{color:l,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map((t,e)=>(0,s.jsx)(i.A,{sx:{color:l,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: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*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,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",m,"important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+f+")"]})})]})})}},3262:function(t,e,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("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(()=>{f(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(()=>{f(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},m=(t,e,o)=>{const n=t.cloneNode(!0);if(n){n.hasAttribute("data-product-variant-id")&&n.setAttribute("data-product-variant-id",e),n.hasAttribute("data-product-id")&&n.setAttribute("data-product-id",o);let t=n.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=n.querySelector('select[name="id"]');if(t){const o=t.querySelector('option[selected="selected"]');o&&o.setAttribute("value",e)}}const r=n.querySelector('input[name="product-id"]');r&&r.setAttribute("value",o);const i=document.createElement("div");return i.className="whatmore-atc",i.appendChild(n),document.body.appendChild(i),console.log(i,"formElement"),i}},v=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},f=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=h(document);if(y||(null===y||void 0===y?void 0:y.length)>0){const t=m(y,a,s);v(t),setTimeout(()=>{f(a)},500),t.remove()}else{var g;fetch(null===u||void 0===u||null===(g=u.split("?"))||void 0===g?void 0:g[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=h(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=m(o,a,s);v(t),setTimeout(()=>{f(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)),h=o(2257),m=o(1348),v=o(6649),f=o(3788),y=o(6493),g=o(4895),x=o(5375),b=o(4833),w=o(4414);var j=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,m.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)}})})},S=o(3771),C=o(6613),A=o(1085),k=o(1079),T=o(5873),I=o(1351),P=o(6157),M=o(3294),N=o(9879),E=o(9821),R=o(69);function q(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,E._)()?(0,A.bo)():(0,R.bi)()),t.onMuteToggle()}const u=t.event;return(0,w.jsxs)("div",{style:{position:(0,m.D7t)(l)?"absolute":"relative",top:(0,m.D7t)(l)?0:"",zIndex:1,bottom:(0,m.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,m.OC6)(l)||c(t)}}),(0,w.jsx)(j,{isMuted:e,onToggle:t=>{c(t)}})]}),r.length>1&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{classname:"banner-navigation-overlay-left",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),a(0===i?r.length-1:i-1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,w.jsx)(p.A,{})})})}),(0,w.jsx)("div",{classname:"banner-navigation-overlay-right",style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),a(i===r.length-1?0:i+1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,w.jsx)(h.A,{})})})}),(0,m.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,m.z1s)(l):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},e)})})]})]}),!(0,m.OC6)(l)&&(0,w.jsx)("div",{style:{width:"100%",height:"100%"},onClick:c})]})}var z=function(t){var e,o,r,i;const[l,d,c]=(0,a.A)(),[p,h]=(0,n.useState)(!0),g=(0,s.Xd)("whatmoreVideoTileSize"),[x,b,j]=(0,v.A)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:C}=(0,n.useContext)(u.B),A=(0,s.Xd)("whatmoreShopId"),E=t.events,R=t.activeEventIndex,z=t.setActiveEventIndex,_=E[R],D=(0,y.lP)(_),F=(0,y.cb)(_);if((0,n.useEffect)(()=>{T.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&&!F)return(0,w.jsx)(w.Fragment,{});const B=(0,f.s)("portrait"===l?D:F),O=g/100*(0,m.igk)(A),X=g/100*(0,m.Y_l)(A),L="portrait"===l?(0,m.G0Q)(A):(0,m.ga9)(A),J="portrait"===l?c*O:c*X,$=J*L,V=null!=(null===(e=_.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,I.kz)({userInteractionType:P.O.BANNER_WIDGET_CLICKED,widgetSourceDetails:C,event:E[R]}),(0,m.OC6)(A)&&window.open(null===(t=_.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,m.D7t)(A)?"100%":J,minHeight:(0,m.D7t)(A)?c*L:"",height:(0,m.D7t)(A)?"auto":$,borderWidth:(0,m.YcK)(A),borderColor:(0,m.Fwt)(A),overflow:"hidden",cursor:"pointer"},children:["28273541192"===A?(0,w.jsx)(N.A,{height:"100%",width:"100%",url:B,isPlaying:b,event:_,isVideoMuted:!b||p,source:M.N.BANNER}):(0,w.jsx)(S.A,{height:"100%",width:"100%",url:B,isPlaying:b,event:_,isVideoMuted:!b||p,setDuration:t.setDuration,source:M.N.BANNER}),(0,w.jsx)(q,{isCTAPresent:V,events:E,activeEventIndex:R,setActiveEventIndex:z,event:_,mode:l,onMuteToggle:()=>h(!p),initialMuteState:p}),(0,m.XYM)(A)&&(null===_||void 0===_||null===(r=_.cta)||void 0===r?void 0:r.length)>1&&(0,w.jsx)("div",{style:{position:"absolute",zIndex:1,bottom:"10%",left:"50%",transform:"translateX(-50%)"},className:"whatmore-ios-css-relative-fix",children:(0,w.jsx)(k.A,{isBanner:!0,event:_,cta:null===_||void 0===_||null===(i=_.cta)||void 0===i?void 0:i[1],fontFactor:.6})})]})};const _=(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,[h,m]=(0,n.useState)(-1),[v]=(0,s.QN)("whatmoreShopId"),[f]=(0,a.A)();let y;return(0,n.useEffect)(()=>{y&&clearInterval(y);const t="video"===p[o].event_type,e=t?1e3*h:6e3;return t?-1!=h&&(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)}},[h,o]),delete i.Ay.styles.global,(0,w.jsx)(l.C,{value:_,children:(0,w.jsx)("div",{className:"whatmore-banner-events",style:{height:"60183543963"===v&&"portrait"==f?"200px":void 0},children:(0,w.jsx)(r.s,{theme:i.Ay,cssVarsRoot:e,resetCSS:!1,children:(0,w.jsx)(c.h.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,w.jsx)(z,{activeEventIndex:o,events:p,setActiveEventIndex:d,setDuration:m})})})})})}},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(){}}]);
|
|
@@ -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 a},_:function(){return i},b4:function(){return n},dl:function(){return r},nN:function(){return d},tn:function(){return s},vF:function(){return l}});const i="device_type",r="device_mode",n="mobile",l="tablet",a="desktop",s="portrait",d="landscape"},932:function(t,e,o){var i=o(5830),r=o(1941),n=o(22),l=o(1348);e.A=function(t){const[e,o,a]=(0,r.A)(),[s]=(0,i.QN)("whatmoreLandscapePadding"),[d]=(0,i.QN)("whatmoreShopId"),[c]=(0,i.QN)("whatmoreVideoTileSize"),[p]=(0,i.QN)("whatmoreVideoTileSizePortrait"),u=a>o,h="portrait"==e?p:c,m=!("portrait"!=e||!(a>=481)),f=h/100*1.3*.5,y=h/100;var v=Math.min(a,o),[x,g,w,b]=[.6*v*(16/9),.6*v,1.4,0];function j(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:n.b4,DEVICE_MODE:n.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],S[n._]=n.$S,S[n.dl]=n.nN}else if(m){var C=.8*g,P=.8*x;"portrait"==e?(C*=y,P*=y,[x,g,w,b]=[P,C,j(a/(1.2*C)),0],S[n._]=n.vF,S[n.dl]=n.tn):([x,g,w,b]=[P,C,(a-2*s)/(1.1*C),s],S[n._]=n.vF,S[n.dl]=n.nN)}else{C=g,P=x;"portrait"==e?(C=C*y*.9,P=P*y*.9,[x,g,w,b]=[P,C,j(a/(1.15*C)),0],S[n._]=n.b4,S[n.dl]=n.tn):(C=.7*g,P=.7*x,[x,g,w,b]=[P,C,(a-2*s)/(1.1*C),s],S[n._]=n.b4,S[n.dl]=n.nN)}return[x,g,w,b,S]}},2835:function(t,e,o){var i=o(7891),r=o(8454),n=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,h=t.fontSize,m=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,a.jsx)(a.Fragment,{});const f=d[u].avgRating,y=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)(i.A,{sx:{color:s,fontSize:h+"px"}},"star-icon"+e)),f-Math.floor(f)>.2?(0,a.jsx)(r.A,{sx:{color:s,fontSize:h+"px"}},"star-half-icon"):f-Math.floor(f)==0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(n.A,{sx:{color:s,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-f))].map((t,e)=>(0,a.jsx)(n.A,{sx:{color:s,fontSize:h+"px"}},"star-outline-icon-"+e)),(0,a.jsx)("div",{children:(0,a.jsx)("div",{width:"2px"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{backgroundColor: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*h+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",f,"\xa0"]})})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",m,"important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+y+")"]})})]})})}},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return n}});var i=o(5830),r=o(1745);const n=async function(t,e,o,n,l="",a="",s="",d="",c="",p=""){(0,i.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(a&&t.setAttribute("data-product-id",a),t.click(),setTimeout(()=>{(0,r.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(l));if(e){const t=e.key,o=e.quantity,i=e.properties;(0,r.CP)(t,o,i,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(()=>{y(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(()=>{y(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},m=(t,e,o)=>{const i=t.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",e),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",o);let t=i.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=i.querySelector('select[name="id"]');if(t){const o=t.querySelector('option[selected="selected"]');o&&o.setAttribute("value",e)}}const r=i.querySelector('input[name="product-id"]');r&&r.setAttribute("value",o);const n=document.createElement("div");return n.className="whatmore-atc",n.appendChild(i),document.body.appendChild(n),console.log(n,"formElement"),n}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,r.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),i=o.key,n=o.quantity,l=o.properties;(0,r.CP)(i,n,l,s,d,c,!0,!0,!0)})},v=h(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const t=m(v,l,a);f(t),setTimeout(()=>{y(l)},500),t.remove()}else{var x;fetch(null===p||void 0===p||null===(x=p.split("?"))||void 0===x?void 0:x[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=h(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=m(o,l,a);f(t),setTimeout(()=>{y(l)},500),t.remove()}})}setTimeout(e,o)}},4063:function(t,e,o){var i=o(9950),r=o(3731),n=o(3247),l=o(5830),a=o(5144),s=o(4414);e.A=function(t){var e,o;const[d,c]=(0,i.useState)(!1),[p,u]=(0,i.useState)(!1),[h]=(0,l.QN)("whatmoreSecondaryColor"),[m]=(0,l.QN)("whatmoreSecondaryColorShade600"),[f]=(0,l.QN)("whatmoreSecondaryColorShade300"),[y]=(0,l.QN)("whatmorePrimaryFont"),v=t.onClick,x=t.icon,g=null!==(e=t.borderRadius)&&void 0!==e?e:"sm",w=null!==(o=t.baseFontSize)&&void 0!==o?o:12;return(0,s.jsxs)(n.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:g,backgroundColor:d?f:h,animation:p?a.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:t=>{t.stopPropagation(),u(!0),v()},onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[(0,s.jsx)(r.E,{fontSize:w+"px !important",fontWeight:"normal",sx:{fontFamily:y+" !important",color:"white !important"},children:"VIEW MORE"}),x]})}},4431:function(t,e,o){o.r(e),o.d(e,{default:function(){return X}});var i=o(9950),r=(o(4826),o(340)),n=o(5873),l=o(5089),a=(o(3997),o(4669),o(9733),o(4365),o(7229),o(572)),s=o(8603),d=o(932),c=o(1941),p=o(5491),u=o.n(p),h=o(5830),m=o(7509),f=o(7136),y=o(1348),v=o(5551),x=o(1351),g=o(6157),w=o(9879),b=o(6663),j=o(8538),S=o(6594),C=o(22),P=o(6613),k=o(8149),A=o(7740),N=o(7035),T=o(6305),M=o(4833),I=o(4533),_=o(63),R=o(7973),E=o(4414);var z=function({productList:t,firstAvailableProduct:e,setFirstAvailableProduct:o,tileWidth:i}){const r=.06*i,n=r+"px",[l]=(0,h.QN)("whatmorePrimaryFont");return(0,E.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,E.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-size",n,"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,E.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",paddingTop:"8px",maxHeight:.9*i,overflowY:"auto",paddingBottom:"12px"},children:t.map((t,i)=>(0,E.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,E.jsx)("img",{src:(0,R.b)(null===t||void 0===t?void 0:t.thumbnail_image),alt:null===t||void 0===t?void 0:t.title,style:{width:2*r,height:2*r}}),(0,E.jsx)("p",{style:{fontSize:.8*r+"px",fontFamily:l,textTransform:"uppercase",backgroundColor:"inherit"},children:null===t||void 0===t?void 0:t.title})]},i))})]})};var F=function(t){var e,o,r,n,l,a,s,c,p,u,f,F,O,L,W,D,$,X;const[q,B,Q,U,H]=(0,d.A)(),Y=(0,h.Xd)("whatmoreShopId"),V=(0,h.Xd)("whatmoreLandingLocationType"),J="portrait"===H[C.dl],G=J?1.076*B*(0,y.HWj)(Y):B*(0,y.N_4)(Y),K=G+"px",Z=(J?1.076*B*(0,y.HWj)(Y):B*(0,y.N_4)(Y))+"px",tt=(J?.965*B*(0,y.HWj)(Y):.859*B*(0,y.N_4)(Y))+"px",[et,ot]=(0,i.useState)(t.event),[it,rt]=(0,i.useState)(!1),nt=(0,h.Xd)("whatmoreSecondaryColor");var lt=(0,i.useContext)(m.h);const at=null===(e=t.isOnFocus)||void 0===e||e,st=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,dt=t.onClick,ct=(0,h.Xd)("whatmoreUITheme"),pt=(0,h.Xd)("websiteLanguage"),ut=null!==(r=t.animateOnFocus&&(0,y.n5O)(Y))&&void 0!==r&&r,[ht,mt]=(0,i.useState)(!1),ft=(0,h.Xd)("whatmorePrimaryFont"),[yt,vt]=(0,i.useState)(null!==(n=null===(l=et.products)||void 0===l?void 0:l.find(t=>"active"==t.product_status))&&void 0!==n?n:null===(a=et.products)||void 0===a?void 0:a[0]),xt=yt&&Object.keys(yt).length>0,gt=Math.round(+(null===yt||void 0===yt?void 0:yt.price)),wt=Math.round(+(null===yt||void 0===yt?void 0:yt.compare_price)),bt=wt&&0!=wt&&wt>gt?Math.round((wt-gt)/wt*100):NaN,[jt,St]=(0,i.useState)(bt),[Ct,Pt]=(0,i.useState)(),{whatmoreIsPreviewMode:kt,whatmoreWidgetSourceDetails:At,whatmoreUserInfo:Nt}=(0,i.useContext)(v.B),[Tt,Mt]=(0,i.useState)(!1),[It,_t,Rt,Et,zt,Ft]=(0,T.A)(0,yt,et),Ot=xt&&(0,y.mRH)(Y),Lt=xt&&(0,y.VhI)(Y),Wt=(0,y.WRx)(Y)||nt,Dt=(0,y.jsS)(Y)||"white",[$t,Xt]=(0,i.useState)(!1),qt="76767920441"===Y,Bt=.25*B;(0,i.useEffect)(()=>{if(xt&&(0,y.w4b)(Y)&&(0,S.fu)(et,(0,y.NCy)(Y),Y).then(t=>{var e,o,i;ot(t),(null===t||void 0===t||null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.discount)&&St(null===t||void 0===t||null===(i=t.products[0])||void 0===i?void 0:i.discount),mt(!0)}),xt){(async()=>{let t=yt;for(let i=0;i<(null===et||void 0===et||null===(e=et.products)||void 0===e?void 0:e.length);i++){var e;const o=await(0,k.M)(null===et||void 0===et?void 0:et.products[i],(0,y.NCy)(Y),Y);if(null!==o&&void 0!==o&&o.available){vt(null===et||void 0===et?void 0:et.products[i]),t=null===et||void 0===et?void 0:et.products[i];break}}const o=await(0,k.M)(t,(0,y.NCy)(Y),Y);Pt(o),mt(!0)})()}},[xt]),(0,i.useEffect)(()=>{if(xt){(async()=>{const t=await(0,k.M)(yt,(0,y.NCy)(Y),Y);Pt(t),mt(!0)})()}},[yt]);const Qt=async t=>{if(t.stopPropagation(),!xt)return;rt(!0);const e=At.landingLocationType,o=At.templateType,i=(0,M.Wd)(e)+(0,M.gf)(o)+(null!==et&&void 0!==et&&et.isRelatedEvent?"R":"E")+"_"+(null===et||void 0===et?void 0:et.event_id);(0,I.Ch)(et.event_id,et.products,"homepage","carousel",i,null===et||void 0===et?void 0:et.location,null===Nt||void 0===Nt?void 0:Nt.userType),"init"==It.state?(zt(i,!0),(0,x.kz)({userInteractionType:g.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:At,event:et,productList:[yt],ctaList:et.cta})):"awaitingVariantSelection"==It.state&&Ft(null,i),setTimeout(()=>{rt(!1),Xt(!1)},3e3)},Ut=J?"36px":"44px",Ht=qt&&J?{width:.22*B,height:.29*B}:qt?{width:1.2*Bt,height:1.6*Bt}:null;return(0,E.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",lt.tileTopMargin+"px"),t.style.setProperty("margin-bottom",lt.tileBottomMMargin+"px"))},className:ut&&!J?at?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:qt&&!J?1.1*B:B},onClick:()=>{dt(et)},onMouseEnter:()=>Mt(!0),onMouseLeave:()=>Mt(!1),children:[(0,E.jsxs)("div",{className:"wht-event-tile-parent-scroll",style:{borderRadius:"round"==ct?"5%":"0px",boxShadow:"round"==ct?"0px 0px 5px 0px #B0B0B0":null,height:q,borderWidth:(0,y.YcK)(Y),borderColor:(0,y.Fwt)(Y),overflow:"hidden",position:"relative"},children:[(0,E.jsx)(w.A,{height:(0,y.u06)(Y)+" !important",width:"100%",url:et.thumbnail_image,isPlaying:at||st||(0,P.At)(),event:et}),Lt&&xt&&(Tt||J)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{style:{position:"absolute",bottom:Ut,left:0,right:0,display:$t?"block":"none"},children:(0,E.jsx)(z,{productList:et.products,firstAvailableProduct:yt,setFirstAvailableProduct:vt,tileWidth:B})}),(0,E.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:Wt||"rgba(0, 0, 0, 0.75)",height:Ut,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:Tt||J?"translateY(0)":"translateY(100%)",opacity:Tt||J?1:0,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none"},onClick:Qt,children:[(0,E.jsx)("div",{style:{flex:1,textAlign:"center",color:Dt,fontSize:"12px",fontFamily:ft,fontWeight:"500",letterSpacing:"0.5px"},children:it?(0,E.jsx)(_.y,{size:"sm",color:"white"}):"ADD TO CART"}),(0,E.jsx)("span",{style:{height:"100%",borderRight:`1px solid ${Dt}`,opacity:.5}}),(0,E.jsx)("div",{onClick:t=>{t.stopPropagation(),Xt(!$t)},style:{padding:"0 5%",display:"flex",alignItems:"center",justifyContent:"center",color:Dt,transform:$t?"rotate(180deg)":"rotate(0deg)",transition:"all 0.25s ease"},children:(0,E.jsx)(b.A,{sx:{fontSize:2*G}})})]})]})]}),(0,E.jsxs)("div",{className:"wht-prod-info",style:{display:(0,y.AmR)(Y)?"flex":"none",flexDirection:"row",padding:qt&&J?"6px 4px":"12px 4px",gap:qt&&J?"4px":"12px",alignItems:"stretch",minHeight:Ot?qt&&J?"85px":"110px":"auto"},children:[qt&&xt&&Ht&&(0,E.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,E.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,y.KZe)(Y),"important")},src:(0,R.b)((null===yt||void 0===yt?void 0:yt.thumbnail_image)||(null===yt||void 0===yt?void 0:yt.image)||(null===yt||void 0===yt?void 0:yt.featured_image),"&width=400&height=400"),alt:null===yt||void 0===yt?void 0:yt.title,style:{width:Ht.width,height:Ht.height,borderRadius:"round"==ct?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:J?"0px":"-3px"}})}),(0,E.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:qt&&J?"2px":"5px",flex:1,minWidth:0},children:[xt&&(0,E.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.m5c)(Y),"important"),t.style.setProperty("font-size","45034766485"==Y&&"product"==V?"9px":K),t.style.setProperty("line-height","120%"),t.style.setProperty("font-family",ft,"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===yt||void 0===yt?void 0:yt.title)}),xt&&ht&&(0,y.Nzx)(Y)&&(0,E.jsxs)("div",{style:{display:"flex",gap:qt&&J?"6px":"12px",flexDirection:(0,y.vw2)(Y)?"row":"row-reverse",justifyContent:(0,y.vw2)(Y)?"flex-start":"flex-end",alignItems:"center",flexWrap:"wrap"},children:[(0,E.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.m5c)(Y),"important"),t.style.setProperty("font-size","45034766485"==Y&&"product"==V?"8px":Z),t.style.setProperty("font-family",ft,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,y.i6j)(Y)?"normal":"bold"},children:(0,S.Sb)(parseFloat((0,A.U)()?(null!==(s=null===Ct||void 0===Ct||null===(c=Ct.variants)||void 0===c||null===(p=c[0])||void 0===p?void 0:p.price)&&void 0!==s?s:null===Ct||void 0===Ct?void 0:Ct.price)/100:(null===yt||void 0===yt?void 0:yt.price)>0?null===yt||void 0===yt?void 0:yt.price:null===yt||void 0===yt?void 0:yt.price_max)," ",Y,null===(u=et.products[0])||void 0===u?void 0:u.currency)}),!isNaN(wt)&&wt>gt&&(0,E.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.gld)(Y),"important"),t.style.setProperty("font-size",Z),t.style.setProperty("font-family",ft,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,S.Sb)(parseFloat((0,A.U)()?(null!==(f=null===Ct||void 0===Ct||null===(F=Ct.variants)||void 0===F||null===(O=F[0])||void 0===O?void 0:O.compare_at_price)&&void 0!==f?f:null===Ct||void 0===Ct?void 0:Ct.compare_at_price)/100:null===yt||void 0===yt?void 0:yt.compare_price)," ",Y,null===(L=et.products[0])||void 0===L?void 0:L.currency)}),(0,y.Nzx)(Y)&&!isNaN(jt)&&0!=jt&&ht&&Ot&&(0,E.jsx)("div",{style:{display:(0,y.QNr)(Y)?"flex":"none",backgroundColor:"green"===(0,y.ub$)(Y)?"#343434"===nt?(0,y.ub$)(Y):nt:(0,y.ub$)(Y),alignItems:"center",borderRadius:(0,y.v8m)(Y)+"px",width:"fit-content",padding:(0,y.Cf)(Y)?"3px 6px":"0px"},children:(0,y.Cf)(Y)?(0,E.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.BRY)(Y),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",ft,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${jt}% ${null!==(W=null===N.m||void 0===N.m||null===(D=N.m[pt])||void 0===D?void 0:D.off)&&void 0!==W?W:"off"}`}):(0,E.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y._zx)(Y),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",(0,y.ogW)(Y),"important"))},children:(0,y.rsz)(Y)})})]}),xt&&(0,y.Nzx)(Y)&&!isNaN(jt)&&0!=jt&&ht&&!Ot&&(0,E.jsx)("div",{style:{display:(0,y.QNr)(Y)?"flex":"none",backgroundColor:"green"===(0,y.ub$)(Y)?"#343434"===nt?(0,y.ub$)(Y):nt:(0,y.ub$)(Y),alignItems:"center",borderRadius:(0,y.v8m)(Y)+"px",width:"fit-content",padding:(0,y.Cf)(Y)?"3px 6px":"0px"},children:(0,y.Cf)(Y)?(0,E.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.BRY)(Y),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",ft,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${jt}% ${null!==($=null===N.m||void 0===N.m||null===(X=N.m[pt])||void 0===X?void 0:X.off)&&void 0!==$?$:"off"}`}):(0,E.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y._zx)(Y),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",(0,y.ogW)(Y),"important"))},children:(0,y.rsz)(Y)})}),Ot&&(0,E.jsx)("button",{style:{backgroundColor:nt,display:"flex",justifyContent:"center",color:"white",borderRadius:"4px",padding:"8px 16px",fontSize:K,fontFamily:ft,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:qt&&J?"100px":"90%",marginTop:qt?"6px":"0px",alignSelf:"flex-start",marginLeft:qt&&J?"-30px":"0px"},onClick:Qt,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:it?(0,E.jsx)(_.y,{size:"sm",display:"flex !important",color:"white"}):"ADD TO CART"})]})]})]})},O=o(6641),L=o(4063);const W=(0,s.A)({key:"whatmore-css-hv"});function D(t){const[e,o,r]=(0,d.A)(),n=(0,h.Xd)("whatmoreShopId"),l=(0,h.Xd)("whatmoreLandingLocationType"),a=t.events,s=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,i.useContext)(v.B),p=Math.ceil(r),u=2*p,[m,w]=(0,i.useState)(u),[b,j]=(0,i.useState)(2*p),S=0===(0,y.If9)(n)?24:(0,y.If9)(n),[C,P]=(0,i.useState)({touchX:0,touchY:0}),k=()=>(0,E.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,E.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),A=()=>(0,E.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,E.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),N=t=>{if("next"===t){const t=2;j(t=>Math.min(t+Math.floor(r),a.length+p+1)),w(e=>Math.min(e+t,a.length+p+1))}else j(t=>Math.max(t-Math.floor(r),u));(0,x.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,E.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==n&&"product"==l?"center":"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:t=>{P({touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchEnd:t=>{var e,o,i,r;const n=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-C.touchX,l=(null===(i=t.changedTouches)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.clientY)-C.touchY;Math.sqrt(n**2+l**2)>10&&Math.abs(n)>Math.abs(l)&&N(n>0?"prev":"next")},children:[(0,y.JSQ)(n)&&(0,E.jsxs)(E.Fragment,{children:[b<=a.length+p&&(0,E.jsx)("div",{onClick:()=>N("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,E.jsx)(k,{})}),b>2*p&&(0,E.jsx)("div",{onClick:()=>N("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,E.jsx)(A,{})})]}),(0,E.jsx)("div",{style:{display:"flex",gap:S,transform:`translateX(-${(b-u)*(o+S)}px)`,transition:"transform 0.4s ease-in-out"},children:a.map((t,e)=>e<m?(0,E.jsx)("div",{children:(0,E.jsx)(F,{isOnFocus:e<=b-p-1&&e>=Math.max(0,b-u),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>s(t)})},`whatmore-carousel-tile-${e}`):(0,E.jsx)(f.A,{}))})]})}function $(t){const[e,o,r,n]=(0,d.A)(),[l,a]=(0,i.useState)(-1),s=(0,h.Xd)("whatmoreShopId"),[c,p]=(0,i.useState)("next"),m=t.onClick,f=t.events,{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(v.B),b=Math.min(Math.ceil(r),f.length),[j,S]=(0,i.useState)(0),C=0===(0,y.If9)(s)?24:(0,y.If9)(s),P=()=>(0,E.jsx)("div",{children:(0,E.jsx)("button",{onClick:T,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,E.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),k=()=>(0,E.jsx)("div",{children:(0,E.jsx)("button",{onClick:N,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,E.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,i.useEffect)(()=>{j<=b&&S(t=>t+b)},[b]);const A=()=>{a(-1)},N=()=>{j!==b&&(p("prev"),S(t=>Math.max(Math.ceil(t-r),b)),(0,x.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},T=()=>{j>f.length+r||(p("next"),S(t=>Math.floor(t+r)),(0,x.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},M=j>f.length?f.length-b+1:j-b,I=j>=f.length?f.length:M+b,_=f.slice(M,I);return(0,E.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${n}px`,paddingRight:`${n}px`},children:[j!==b&&(0,E.jsx)("div",{className:"wht-vst-button-prev",style:{position:"absolute",left:n+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,E.jsx)(k,{})}),(0,E.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:C+"px",width:o*r*(0,y.fHt)(s)+"px",justifyContent:f.length>b?"flex-start":"center",overflow:"auto"},children:_.map((t,e)=>{const o=`whatmore-event-tile-landscape-${t.index}${e===b-1?"-last":""}`,i=e===l;return(0,E.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===c?"next":"prev"),onMouseEnter:()=>(t=>{const e=u()(()=>a(t),300);return e(),e.cancel})(e),onMouseLeave:A,children:(0,E.jsx)(F,{isOnFocus:i,playOnUnfocus:!(0,y.aO7)(s)||e==parseInt(b/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>(t=>{m(t)})(t)})},o)})}),j<f.length&&(0,E.jsx)("div",{className:"wht-vst-button-next",style:{position:"absolute",zIndex:1,top:"50%",right:n+"px",transform:"translateY(-65%)"},children:(0,E.jsx)(P,{})})]})}var X=function(t){const[e,o,s]=(0,c.A)(),[d]=(0,h.QN)("whatmoreShopId"),[p]=(0,h.QN)("whatmorePrimaryColor"),[u]=(0,h.QN)("whatmoreSecondaryColor"),[f]=(0,h.QN)("whatmoreTitleFont"),x="portrait"==e?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,i.useContext)(v.B),{whatmoreCollectionHeading:w}=((0,h.Xd)("isInDesignMode"),(0,i.useContext)(v.B)),{whatmoreIsCollectionsTemplate:b}=(0,i.useContext)(v.B),j=t.events,S=t.onClick,C=f;function P(t){S(t)}return(0,i.useEffect)(()=>{(0,O.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{n.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,E.jsx)(a.C,{value:W,children:(0,E.jsx)("div",{className:"whatmore-carousel-events",children:(0,E.jsx)(r.s,{theme:l.Ay,cssVarsRoot:g,resetCSS:!1,children:(0,E.jsxs)(m.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||b?(0,E.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==d?"flex-start":"center"},children:(0,E.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",C,"important"),t.style.setProperty("font-size",x+"px"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:b?"W"!==w?w:"":t.heading})}):(0,E.jsx)(E.Fragment,{}),"landscape"===e?(0,E.jsx)($,{events:j,onClick:P}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(D,{events:"45034766485"==d?j.slice(0,5):j,onClick:P}),"45034766485"==d&&(0,E.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,E.jsx)(L.A,{baseFontSize:.5*x,onClick:()=>P(null===j||void 0===j?void 0:j[5])})})]})]})})})})}},4826:function(){},7136:function(t,e,o){var i=o(9950),r=o(932),n=o(7509),l=o(5830),a=o(4414);e.A=function(t){var[e,o]=(0,r.A)();(0,i.useContext)(n.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 i}});const i=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,o){o.d(e,{h:function(){return i}});const i=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,o){o.d(e,{B:function(){return l},b:function(){return n}});var i=o(1348),r=o(5830);function n(t,e=""){const o=(0,r.Xd)("whatmoreShopId");return"shopify"!=(0,i.NCy)(o)?"STRNV8MHJTF"==o?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const o=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],i=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(o)?"image":null!==r&&void 0!==r&&r.test(o)?"video":void 0}},8538:function(t,e,o){o.d(e,{v:function(){return r}});var i=o(5830);function r(t,e){const o=(0,i.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==o||"72442478904"==o||"58562281529"==o?t:"66168324332"==o&&"prod-tile"!=e?null===t||void 0===t||null===(r=t.split("- "))||void 0===r?void 0:r[0]:t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var r}},9733:function(){}}]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,933,939],{3262:function(t,e,n){n.r(e),n.d(e,{initiateCartSliderEvent:function(){return r}});var i=n(5830),o=n(1745);const r=async function(t,e,n,r,a="",l="",s="",d="",c="",u=""){(0,i.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(l&&t.setAttribute("data-product-id",l),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,n=e.quantity,i=e.properties;(0,o.CP)(t,n,i,s,d,c,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&l&&e.setAttribute("data-product-id",l)}),void setTimeout(e,n));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(()=>{x(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{x(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},m=(t,e,n)=>{const i=t.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",e),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",n);let t=i.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=i.querySelector('select[name="id"]');if(t){const n=t.querySelector('option[selected="selected"]');n&&n.setAttribute("value",e)}}const o=i.querySelector('input[name="product-id"]');o&&o.setAttribute("value",n);const r=document.createElement("div");return r.className="whatmore-atc",r.appendChild(i),document.body.appendChild(r),console.log(r,"formElement"),r}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},x=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),i=n.key,r=n.quantity,a=n.properties;(0,o.CP)(i,r,a,s,d,c,!0,!0,!0)})},g=h(document);if(g||(null===g||void 0===g?void 0:g.length)>0){const t=m(g,a,l);f(t),setTimeout(()=>{x(a)},500),t.remove()}else{var 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"),n=h(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=m(n,a,l);f(t),setTimeout(()=>{x(a)},500),t.remove()}})}setTimeout(e,n)}},3852:function(t,e,n){n.d(e,{A:function(){return v}});var i=n(3247),o=n(1422),r=n(3731),a=n(211),l=n(9950),s=n(932),d=n(5242),c=n(8781),u=n(8283);const p=u.i7`
|
|
2
|
+
0% {
|
|
3
|
+
transform: scale(1);
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
transform: scale(1.05);
|
|
7
|
+
}
|
|
8
|
+
`,h=u.i7`
|
|
9
|
+
0% {
|
|
10
|
+
transform: scale(1.05);
|
|
11
|
+
}
|
|
12
|
+
100% {
|
|
13
|
+
transform: scale(1);
|
|
14
|
+
}
|
|
15
|
+
`,m=`\n ${p}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`,f=`\n ${h}; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n`;var x=n(5830),g=n(7509),y=n(4414);var v=function(t){var e,n,[u,p]=(0,s.A)();const[h]=(0,x.QN)("whatmorePrimaryFont");var v=(0,l.useContext)(g.h);const w=t.event,b=t.onClick,j=null===(e=t.isOnFocus)||void 0===e||e,C=(t.playOnUnfocus,null!==(n=t.animateOnFocus)&&void 0!==n&&n);return(0,y.jsxs)(i.az,{animation:C?j?m:f:"none",marginTop:v.tileTopMargin,marginBottom:v.tileBottomMMargin,marginLeft:v.tileLeftMargin,marginRight:v.tileRightMargin,width:p,height:u,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{b(w)},cursor:"pointer",children:[(0,y.jsx)(a._,{width:"full",height:"full",src:w.thumbnail_image,objectFit:"cover",fallback:(0,y.jsx)(c.A,{width:p,height:u}),borderRadius:"lg"}),(0,y.jsx)(i.az,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,y.jsxs)(o.B,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,y.jsx)(i.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,y.jsx)(o.B,{direction:"column",justifyContent:"flex-start",children:(0,y.jsx)(i.az,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,y.jsx)(o.B,{direction:"row",justifyContent:"space-between",children:(0,y.jsx)(d.A,{event:w,fontSize:.05*u+"px",maxWidth:.8*p})})})})}),(0,y.jsx)(i.az,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,y.jsx)(o.B,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,y.jsx)(i.az,{width:"full",borderRadius:"lg",children:(0,y.jsxs)(o.B,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,y.jsx)(r.E,{color:"white",fontSize:.08*p+"px",fontWeight:"normal",align:"left",children:" "}),(0,y.jsx)(r.E,{fontSize:.08*p+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:w.title.substring(0,40)}),(0,y.jsx)(r.E,{fontSize:.08*p+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:w.presenter_name.substring(0,15)})]})})})})]})})]})}},4826:function(){},6989:function(t,e,n){n.r(e),n.d(e,{default:function(){return D}});var i=n(9950),o=n(3852),r=n(340),a=n(5089),l=(n(3997),n(9733),n(4365),n(572)),s=n(8603),d=n(6086),c=n(3731),u=n(1941),p=n(5830),h=n(7509),m=n(1348),f=n(5551),x=n(1422),g=n(932),y=n(6649),v=n(4414);function w(t){var e;const[n,i,o]=(0,y.A)({triggerOnce:!1}),r=null!==(e=t.defaultHeight)&&void 0!==e?e:"fit-content";return(0,v.jsx)(x.B,{ref:n,direction:"row",minHeight:r,height:r,width:"100%",justifyContent:"center",alignItems:"center",children:i?t.data.map((e,n)=>(0,v.jsx)("div",{children:t.renderElement({eventData:e})},"key"+n)):(0,v.jsx)("div",{style:{minHeight:{rowHeight:r},minWidth:"100%"}})})}function b(t){var e;const[n,i,o]=(0,g.A)(),r=null!==(e=t.elementsPerRow)&&void 0!==e?e:Math.floor(Math.min(o,t.dataList.length)),a=function(t,e){var n=[];const i=e;for(let o=0;o<t.length;o+=i){const e=t.slice(o,o+i);n.push(e)}return n}(t.dataList,r);return(0,v.jsx)(x.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*n,children:a.map((e,o)=>(0,v.jsx)(w,{renderElement:t.renderElement,data:e,defaultHeight:n,defaultWidth:i},"key-"+o))})}var j=n(2039),C=(n(4826),n(9879)),S=n(9258),A=n(8538),k=n(6594),T=n(7973),P=n(8149),F=n(7740),R=n(22);var N=function(t){var e,n,o,r,[a,l,s,d,c]=(0,g.A)();const u="portrait"===c[R.dl],[h,f]=(0,i.useState)(0),[x,y]=(0,i.useState)(t.event),[w]=(0,p.QN)("whatmoreShopId"),b=(0,p.QN)("whatmoreUITheme"),[j]=(0,p.QN)("whatmorePrimaryFont"),[C]=(0,p.QN)("whatmoreSecondaryColorShade900"),S=x.products.length,[N,O]=(0,i.useState)(),[M,I]=(0,i.useState)(!1);if(0==S)return(0,v.jsx)(v.Fragment,{});(0,i.useEffect)(()=>{const t=setInterval(()=>{f(t=>(t+1)%S)},3e3);return()=>{clearInterval(t)}},[]),(0,i.useEffect)(()=>{(0,m.w4b)(w)?(0,k.fu)(x,(0,m.NCy)(w),w).then(t=>{y(t),I(!0)}):(async()=>{var t;const e=await(0,P.M)(null===x||void 0===x||null===(t=x.products)||void 0===t?void 0:t[0],(0,m.NCy)(w),w);O(e),I(!0)})()},[]);const z=(u?1.23*l*(0,m.HWj)(w):1.4*l*(0,m.N_4)(w))+"px",E=(u?1.15*l*(0,m.HWj)(w):1.31*l*(0,m.N_4)(w))+"px",B=(+x.products[h].price).toFixed(),_=(+x.products[h].compare_price).toFixed(),L=.25*l,q=(0,m.zAb)(w);return(0,v.jsxs)("div",{style:{background:"9238315068"===w?"transparent":(0,m.ivR)(w),display:"flex",flexDirection:q?"row":"column",padding:"10px 12px",gap:q?"8px":"6px",borderRadius:"round"==b?"0 0 12px 12px":"0",alignItems:q?"center":"stretch"},children:[(0,v.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",flex:q?"1":"none"},children:[(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",z),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",j,"important"),t.style.setProperty("-webkit-line-clamp",1),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,A.v)(x.products[h].title)}),(0,v.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[M&&(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",E),t.style.setProperty("font-family",j,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,k.Sb)(parseFloat((0,F.U)()?(null===N||void 0===N?void 0:N.price)/100:null===x||void 0===x||null===(e=x.products)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.price)," ",w,x.products[h].currency)}),!isNaN(_)&&_>B&&M&&(0,v.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#808191","important"),t.style.setProperty("font-size",E),t.style.setProperty("font-family",j,"important"),t.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,k.Sb)(parseFloat((0,F.U)()?(null===N||void 0===N?void 0:N.compare_at_price)/100:null===x||void 0===x||null===(o=x.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_price)," ",w,x.products[h].currency)})]})]}),q&&(0,v.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,m.KZe)(w),"important")},src:(0,T.b)(x.products[h].thumbnail_image,"&width=400&height=400"),style:{width:L,height:L,borderRadius:"round"==b?"5px":"0px",backgroundColor:C,flexShrink:0},alt:"product img"})]})},O=n(6613),M=n(6305),I=n(4833),z=n(1351),E=n(6157),B=n(4533),_=n(9664);function L(t){const[e,n]=(0,g.A)(),[i]=(0,p.QN)("whatmoreShowViews"),o=t.event;return(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,v.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,v.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,v.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===i?(0,v.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,v.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,v.jsx)(S.A,{event:o,fontSize:.07*n+"px"})})}):(0,v.jsx)(v.Fragment,{})})})})})}var q=function(t){var e,n,o,r,a,l,s=(0,i.useContext)(h.h);const d=(0,p.Xd)("whatmoreUITheme"),c=(0,p.Xd)("whatmoreSecondaryColor"),u=(0,p.Xd)("whatmoreShopId"),[x]=(0,p.QN)("whatmorePrimaryFont");var[w,b,j,S,A]=(0,g.A)();const k="portrait"===A[R.dl],T=t.event,P=t.onClick,F=null===(e=t.isOnFocus)||void 0===e||e,q=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,W=null!==(o=t.animateOnFocus&&(0,m.n5O)(u))&&void 0!==o&&o,[D,U,Q]=(0,y.A)({triggerOnce:!0}),[H,X]=(0,i.useState)(!1),{whatmoreWidgetSourceDetails:$,whatmoreUserInfo:J}=(0,i.useContext)(f.B),V=null!==(r=null===(a=T.products)||void 0===a?void 0:a.find(t=>"active"==t.product_status))&&void 0!==r?r:null===(l=T.products)||void 0===l?void 0:l[0],G=V&&Object.keys(V).length>0,[Y,Z,K,tt,et,nt]=(0,M.A)(0,V,T),it=.07*b+"px",ot=G&&(0,m.Kr7)(u),rt=(0,m.ZzM)(u),at=rt?"BUY NOW":"ADD TO CART",lt=t=>{if(t.stopPropagation(),!G)return;const e=$.landingLocationType,n=$.templateType,i=(0,I.Wd)(e)+(0,I.gf)(n)+(null!==T&&void 0!==T&&T.isRelatedEvent?"R":"E")+"_"+(null===T||void 0===T?void 0:T.event_id);if((0,B.Ch)(T.event_id,T.products,"homepage","carousel",i,null===T||void 0===T?void 0:T.location,null===J||void 0===J?void 0:J.userType),rt&&V){const t=V.product_link;if(t)return void window.open(t,"_blank")}"init"==Y.state?(et(i,!0),(0,z.kz)({userInteractionType:E.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:$,event:T,productList:[V],ctaList:T.cta})):"awaitingVariantSelection"==Y.state&&nt(null,i)};return(0,v.jsxs)("div",{style:{display:"flex",flexDirection:"column",margin:"0 auto"},children:[(0,v.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",s.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom","9238315068"===u?"0px":s.tileBottomMMargin+"px","important"))},style:{width:b,height:w,borderRadius:"round"==d?"12px":"0px",borderWidth:"9238315068"===u?0:(0,m.MRv)(u),borderColor:"9238315068"===u?"transparent":"white"==(0,m.Fwt)(u)?c:(0,m.Fwt)(u),overflow:"hidden",cursor:"pointer",position:"relative"},className:W?F?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{P(T)},onMouseEnter:()=>X(!0),onMouseLeave:()=>X(!1),children:[(0,v.jsx)(C.A,{height:"100%",width:"100%",url:T.thumbnail_image,isPlaying:F||q||(0,O.At)(),event:T}),"9238315068"===u&&G&&(H||k)&&(0,v.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:H||k?"rgba(0, 0, 0, 0.75)":"rgba(0, 0, 0, 0.6)",padding:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:H||k?"translateY(0)":"translateY(100%)",opacity:H||k?1:0,zIndex:10},onClick:lt,onMouseEnter:t=>{t.target.style.background="rgba(0, 0, 0, 0.85)"},onMouseLeave:t=>{t.target.style.background="rgba(0, 0, 0, 0.75)"},children:(0,v.jsx)("span",{style:{color:"white",fontSize:it,fontFamily:x,fontWeight:"500",textAlign:"center",letterSpacing:"0.5px"},children:at})}),(0,v.jsxs)("div",{style:{width:b,height:w},ref:D,children:[(0,v.jsx)(L,{event:T,isOnFocus:F}),"9238315068"!==u&&(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,v.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,v.jsx)("p",{children:" "})}),(0,v.jsx)("div",{style:{width:"100%"},children:U&&(0,m.imx)(u)?(0,v.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",style:"40273707171"===u?{backgroundColor:"white",borderRadius:"2px",margin:"5px"}:{},children:"40273707171"===u?(0,v.jsx)(_.Ay,{event:T}):(0,v.jsx)(N,{event:T})}):(0,v.jsx)("div",{height:"20px"})})]})})]})]}),"9238315068"===u&&U&&(0,m.imx)(u)&&(0,v.jsx)("div",{style:{width:b,marginBottom:s.tileBottomMMargin+"px"},className:"whatmore-event-tile-component-fade-in-animation",children:(0,v.jsx)(N,{event:T})}),ot&&(0,v.jsx)("div",{style:{width:b,padding:"15px 0"},children:(0,v.jsx)("button",{style:{backgroundColor:c,color:"white",border:"none",borderRadius:"12px",padding:"8px 8px",fontSize:it,fontFamily:x,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:"100%"},onClick:lt,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:at})})]})};const W=(0,s.A)({key:"whatmore-css-hv"});var D=function(t){var e;const[n,s,x]=(0,u.A)(),[y,w,C]=(0,g.A)(),[S]=(0,p.QN)("whatmoreShopId"),[A]=(0,p.QN)("whatmorePrimaryColor"),[k]=(0,p.QN)("whatmoreTitleFont"),T="portrait"==n?(0,p.Xd)("whatmoreTitleFontSizePortrait"):(0,p.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:P}=(0,i.useContext)(f.B),F=t.events,R=t.onClick,N=null!==(e=(0,m.sa6)(S))&&void 0!==e?e:k;function O(t){R(t)}const M=parseInt(Math.floor(C));return delete a.Ay.styles.global,(0,v.jsx)(l.C,{value:W,children:(0,v.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,v.jsx)(r.s,{theme:a.Ay,cssVarsRoot:P,resetCSS:!1,children:(0,v.jsxs)(h.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[t.heading.trim().length>0?(0,v.jsx)(d.o,{paddingBottom:"28px",children:(0,v.jsx)(c.E,{bgColor:A,bgClip:"text",fontSize:T,sx:{fontFamily:N+" !important"},align:"center",children:t.heading})}):(0,v.jsx)(v.Fragment,{}),"landscape"===n?(0,v.jsx)(b,{renderElement:t=>{const e=t.eventData;return(0,v.jsx)("div",{style:{margin:"10px"},children:(0,j.ij)(e)||(0,j.Il)(e)?(0,v.jsx)(q,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{O(e)}}):(0,v.jsx)(o.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{O(e)}})})},dataList:F,elementsPerRow:M}):(0,v.jsx)(b,{renderElement:t=>{const e=t.eventData;return(0,v.jsx)("div",{style:{margin:"10px"},children:(0,v.jsx)(q,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{O(e)}})})},dataList:F,elementsPerRow:M})]})})})})}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see event-click.f7f1e1c9.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,534,906,939],{2173:function(t,e,n){const r=n(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},t.exports.currencySymbolMap=r},2835:function(t,e,n){"use strict";var r=n(7891),o=n(8454),i=n(3781),u=n(5830),c=n(4414);e.A=function(t){var e;const n=(0,u.Xd)("whatmoreUITheme"),[s]=(0,u.QN)("whatmoreSecondaryColor"),[a,l]=(0,u.QN)("productRatings"),d=(0,u.Xd)("whatmorePrimaryFont"),f=t.productId,p=t.fontSize,m=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===a||"undefined"==typeof a||!(f in a)||a[f].avgRating>5)return(0,c.jsx)(c.Fragment,{});const v=a[f].avgRating,y=a[f].totalRatings;return(0,c.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,c.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(v))].map((t,e)=>(0,c.jsx)(r.A,{sx:{color:s,fontSize:p+"px"}},"star-icon"+e)),v-Math.floor(v)>.2?(0,c.jsx)(o.A,{sx:{color:s,fontSize:p+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(i.A,{sx:{color:s,fontSize:p+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map((t,e)=>(0,c.jsx)(i.A,{sx:{color:s,fontSize:p+"px"}},"star-outline-icon-"+e)),(0,c.jsx)("div",{children:(0,c.jsx)("div",{width:"2px"})}),(0,c.jsx)("div",{children:(0,c.jsx)("div",{style:{backgroundColor:s,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",v,"\xa0"]})})}),(0,c.jsx)("div",{children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",m,"important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+y+")"]})})]})})}},3262:function(t,e,n){"use strict";n.r(e),n.d(e,{initiateCartSliderEvent:function(){return i}});var r=n(5830),o=n(1745);const i=async function(t,e,n,i,u="",c="",s="",a="",l="",d=""){(0,r.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(c&&t.setAttribute("data-product-id",c),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(u));if(e){const t=e.key,n=e.quantity,r=e.properties;(0,o.CP)(t,n,r,s,a,l,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===d||void 0===d||null===(f=d.split("?"))||void 0===f?void 0:f[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&c&&e.setAttribute("data-product-id",c)}),void setTimeout(e,n));var f}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,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(()=>{y(u)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(u)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);const p=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},m=(t,e,n)=>{const r=t.cloneNode(!0);if(r){r.hasAttribute("data-product-variant-id")&&r.setAttribute("data-product-variant-id",e),r.hasAttribute("data-product-id")&&r.setAttribute("data-product-id",n);let t=r.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=r.querySelector('select[name="id"]');if(t){const n=t.querySelector('option[selected="selected"]');n&&n.setAttribute("value",e)}}const o=r.querySelector('input[name="product-id"]');o&&o.setAttribute("value",n);const i=document.createElement("div");return i.className="whatmore-atc",i.appendChild(r),document.body.appendChild(i),console.log(i,"formElement"),i}},v=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),r=n.key,i=n.quantity,u=n.properties;(0,o.CP)(r,i,u,s,a,l,!0,!0,!0)})},h=p(document);if(h||(null===h||void 0===h?void 0:h.length)>0){const t=m(h,u,c);v(t),setTimeout(()=>{y(u)},500),t.remove()}else{var S;fetch(null===d||void 0===d||null===(S=d.split("?"))||void 0===S?void 0:S[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=p(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=m(n,u,c);v(t),setTimeout(()=>{y(u)},500),t.remove()}})}setTimeout(e,n)}},3781:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarOutline")},6474:function(t,e,n){"use strict";n.r(e),n.d(e,{capitalize:function(){return o.A},createChainedFunction:function(){return i},createSvgIcon:function(){return u.A},debounce:function(){return c},deprecatedPropType:function(){return s},isMuiElement:function(){return d},ownerDocument:function(){return p},ownerWindow:function(){return m},requirePropFactory:function(){return v},setRef:function(){return h},unstable_ClassNameGenerator:function(){return U},unstable_useEnhancedEffect:function(){return C},unstable_useId:function(){return T},unsupportedProp:function(){return w},useControlled:function(){return R},useEventCallback:function(){return D},useForkRef:function(){return P},useIsFocusVisible:function(){return j}});var r=n(4501),o=n(1676);var i=function(...t){return t.reduce((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)},()=>{})},u=n(3059);var c=function(t,e=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{t.apply(this,r)},e)}return r.clear=()=>{clearTimeout(n)},r};var s=function(t,e){return()=>null},a=n(9950),l=n.t(a,2);var d=function(t,e){var n,r;return a.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)};function f(t){return t&&t.ownerDocument||document}var p=f;var m=function(t){return f(t).defaultView||window};var v=function(t,e){return()=>null};function y(t,e){"function"===typeof t?t(e):t&&(t.current=e)}var h=y;var S="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,C=S;let b=0;const A=l["useId".toString()];var T=function(t){if(void 0!==A){const e=A();return null!=t?t:e}return function(t){const[e,n]=a.useState(t),r=t||e;return a.useEffect(()=>{null==e&&(b+=1,n(`mui-${b}`))},[e]),r}(t)};var w=function(t,e,n,r,o){return null};var R=function({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=a.useRef(void 0!==t),[i,u]=a.useState(e);return[o?t:i,a.useCallback(t=>{o||u(t)},[])]};var D=function(t){const e=a.useRef(t);return S(()=>{e.current=t}),a.useRef((...t)=>(0,e.current)(...t)).current};var P=function(...t){return a.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{y(t,e)})},t)};class x{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new x}start(t,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},t)}}let g=!0,M=!1;const L=new x,N={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $(t){t.metaKey||t.altKey||t.ctrlKey||(g=!0)}function E(){g=!1}function B(){"hidden"===this.visibilityState&&M&&(g=!0)}function F(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return g||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!N[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}var j=function(){const t=a.useCallback(t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",$,!0),e.addEventListener("mousedown",E,!0),e.addEventListener("pointerdown",E,!0),e.addEventListener("touchstart",E,!0),e.addEventListener("visibilitychange",B,!0))},[]),e=a.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!F(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(M=!0,L.start(100,()=>{M=!1}),e.current=!1,!0)},ref:t}};const U={configure:t=>{r.A.configure(t)}}},7458:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});const r=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7891:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},7973:function(t,e,n){"use strict";n.d(e,{B:function(){return u},b:function(){return i}});var r=n(1348),o=n(5830);function i(t,e=""){const n=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,r.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function u(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(n)?"image":null!==o&&void 0!==o&&o.test(n)?"video":void 0}},8454:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarHalf")},8538:function(t,e,n){"use strict";n.d(e,{v:function(){return o}});var r=n(5830);function o(t,e){const n=(0,r.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n||"58562281529"==n?t:"66168324332"==n&&"prod-tile"!=e?null===t||void 0===t||null===(o=t.split("- "))||void 0===o?void 0:o[0]:t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var o}},8558:function(t){t.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},9211:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}n.d(e,{A:function(){return o}});var o=function t(e,n){function o(t,o,i){if("undefined"!==typeof document){"number"===typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var c in i)i[c]&&(u+="; "+c,!0!==i[c]&&(u+="="+i[c].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+u}}return Object.create({set:o,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),u=i.slice(1).join("=");try{var c=decodeURIComponent(i[0]);if(r[c]=e.read(u,c),t===c)break}catch(s){}}return t?r[t]:r}},remove:function(t,e){o(t,"",r({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,r({},this.attributes,e))},withConverter:function(e){return t(r({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},9526:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6474)},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,774],{22:function(t,e,i){i.d(e,{$S:function(){return d},_:function(){return o},b4:function(){return r},dl:function(){return n},nN:function(){return l},tn:function(){return s},vF:function(){return a}});const o="device_type",n="device_mode",r="mobile",a="tablet",d="desktop",s="portrait",l="landscape"},69:function(t,e,i){i.d(e,{Ij:function(){return r},bi:function(){return a}});let o,n=!1;function r(){return o?o.play().then(()=>{n=!0,console.debug("iOS autoplay restrictions bypassed."),o.pause()}).catch(t=>{console.error("Failed to bless videos:",t.message)}):Promise.reject(new Error("Blessing video not initialized."))}function a(){o||(o=document.createElement("video"),o.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",o.muted=!0,o.playsInline=!0,o.style.display="none",document.body.appendChild(o));const t=()=>{n||r()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},851:function(t,e,i){i.d(e,{A:function(){return g}});var o=i(1005),n=i(9950),r=i(9879),a=i(22),d=i(5830),s=i(932);var l=function(t){const[e,i,o,n,r]=(0,s.A)(),[l]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.dl]===a.nN?c/100:l/100*1.2;return[e*u,i*u,r]},c=i(1628),u=i.n(c),p=i(6702),h=(i(9733),i(4365),i(1348)),v=i(4414);var m=({size:t,color:e="rgba(255, 255, 255, 0.9)"})=>(0,v.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.3))"},className:"premium-close-icon",children:[(0,v.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.4)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1",style:{backdropFilter:"blur(8px)",transition:"all 0.3s ease"}}),(0,v.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}}),(0,v.jsx)("style",{jsx:!0,children:"\n .premium-close-icon:hover circle { fill: rgba(255, 255, 255, 0.15); stroke: rgba(255, 255, 255, 0.4); }\n .premium-close-icon:hover path { stroke: white; }\n "})]});var f=({size:t,color:e="rgba(255, 255, 255, 0.95)"})=>(0,v.jsxs)("svg",{width:.7*t,height:.7*t,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,v.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,v.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:e,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,v.jsxs)("defs",{children:[(0,v.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,v.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,v.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,v.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,v.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,v.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,v.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,v.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,v.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(t){var e;const i=n.useRef(null);var[s,c,g]=l();(0,d.Xd)("whatmoreUITheme");const[w]=(0,d.QN)("whatmorePrimaryFont"),[x]=(0,d.QN)("whatmoreEmbedAppVideoTitle"),[y]=(0,d.QN)("whatmoreEmbedAppPositionPortrait"),[b]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[_]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,d.QN)("whatmoreEmbedAppPositionLandscape"),[E]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[j]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),A=(0,d.Xd)("whatmoreShopId"),T=(0,d.Xd)("isWhatmorePreviewMode");var I=y,k=b,C=_;g[a.dl]===a.nN&&(I=S,k=E,C=j);const[L,P]=(0,n.useState)(["initial",window.pageYOffset]),[N,O]=(0,n.useState)(!1),D=null!==(e=t.isSpotlight)&&void 0!==e&&e,z=g[a.dl]===a.nN?.8*(0,h.O86)(A):1.2*(0,h.O86)(A),M=D?z:1.2;s*=M,c*=M;const R=D?(0,h.LrK)(A):I,V=D?(0,h._2D)(A):(0,h.GSq)(A),[Q,F]=(0,n.useState)(!D&&(0,h.n8Q)(A));function q(t,e){P(t),t[1]<=100?O(!1):e!=N&&(O(e),F(!1))}(0,n.useEffect)(()=>{let t=window.pageYOffset,e=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-t)<100||(q([i>t?"scrolled-down":"scrolled-up",i],!0),t=i>0?i:0),e=!1},o=()=>{e||(window.requestAnimationFrame(i),e=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[L]),(0,o.j)({ref:i,handler:()=>{q(["scrolled-up",L[1]],!0)}});const $=t.event,B=t.inVideoClick,W=t.closeClick,H=.25*c,U=.5*c,G=.6*c,K="20px",X=(0,h.GvQ)(A);var Y=!1,J=0,Z=0;function tt(t){Y=t}return(0,v.jsx)("div",{className:"wht-popup",children:Q&&!V?(0,v.jsx)(v.Fragment,{}):N&&V?(0,v.jsx)("div",{style:"left"===R?{left:"16px",bottom:D?(0,h.pUQ)(A)+"px":C+"px",position:"fixed",zIndex:X}:{right:"16px",bottom:D?(0,h.pUQ)(A)+"px":C+"px",position:"fixed",zIndex:X},children:(0,v.jsxs)("div",{onClick:()=>{q(["initial",L[1]],!1)},style:{width:G+"px",height:G*(16/9)+"px",borderRadius:K,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===R?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,v.jsx)("div",{style:{overflow:"hidden",borderRadius:K,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,v.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,v.jsx)(r.A,{url:$.thumbnail_image,isPlaying:!1,event:$})})}),(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,v.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,v.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:t=>{t.stopPropagation(),W()},children:(0,v.jsx)(m,{size:.8*H})})}),(0,v.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,v.jsx)(p.A,{sx:{color:"white",fontSize:2*H+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,v.jsx)(u(),{nodeRef:i,cancel:".activate-button,.close-btn",bounds:T?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(t,e)=>{var i,o;i=e.x,o=e.y,J=i,Z=o},onDrag:(t,e)=>{tt(!0)},onStop:(t,e)=>{Y&&(Math.abs(e.x-J)>5||Math.abs(e.y-Z)>5)?tt(!1):B($)},children:(0,v.jsx)("div",{ref:i,style:"left"===R?{left:D?(0,h.D2A)(A)+"px":k+"px",bottom:D?(0,h.pUQ)(A)+"px":C+"px",position:"fixed",zIndex:X}:{right:D?(0,h.D2A)(A)+"px":k+"px",bottom:D?(0,h.pUQ)(A)+"px":C+"px",position:"fixed",zIndex:X},children:(0,v.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==A?s+"px":c+"px",height:t.isSpotlight&&"60122562760"==A?c+"px":s+"px",borderRadius:K,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===R?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,v.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:K,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,v.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==A?16/9:9/16},children:(0,v.jsx)(r.A,{url:$.thumbnail_image,isMuted:!0,isPlaying:!0,event:$})})}),(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,v.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,v.jsx)("div",{className:"close-btn",onClick:W,children:(0,v.jsx)(m,{size:H})})}),(0,v.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,v.jsx)(f,{size:U})}),(0,v.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:K,borderBottomRightRadius:K,background:x?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,v.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:w,fontWeight:"600",fontSize:.35*H+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:x})})]})})]})})})})}},932:function(t,e,i){var o=i(5830),n=i(1941),r=i(22),a=i(1348);e.A=function(t){const[e,i,d]=(0,n.A)(),[s]=(0,o.QN)("whatmoreLandscapePadding"),[l]=(0,o.QN)("whatmoreShopId"),[c]=(0,o.QN)("whatmoreVideoTileSize"),[u]=(0,o.QN)("whatmoreVideoTileSizePortrait"),p=d>i,h="portrait"==e?u:c,v=!("portrait"!=e||!(d>=481)),m=h/100*1.3*.5,f=h/100;var g=Math.min(d,i),[w,x,y,b]=[.6*g*(16/9),.6*g,1.4,0];function _(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const t=x*m,e=w*m;[w,x,y,b]=[e,t,(d-2*s-2*(0,a.$du)(l))/(1.1*t),s],S[r._]=r.$S,S[r.dl]=r.nN}else if(v){var E=.8*x,j=.8*w;"portrait"==e?(E*=f,j*=f,[w,x,y,b]=[j,E,_(d/(1.2*E)),0],S[r._]=r.vF,S[r.dl]=r.tn):([w,x,y,b]=[j,E,(d-2*s)/(1.1*E),s],S[r._]=r.vF,S[r.dl]=r.nN)}else{E=x,j=w;"portrait"==e?(E=E*f*.9,j=j*f*.9,[w,x,y,b]=[j,E,_(d/(1.15*E)),0],S[r._]=r.b4,S[r.dl]=r.tn):(E=.7*x,j=.7*w,[w,x,y,b]=[j,E,(d-2*s)/(1.1*E),s],S[r._]=r.b4,S[r.dl]=r.nN)}return[w,x,y,b,S]}},1351:function(t,e,i){i.d(e,{PG:function(){return s},kz:function(){return l},UM:function(){return u},yP:function(){return p},DG:function(){return c}});var o=i(1348),n=i(3330),r=i(6157);function a(t,e,i={},o){var n;const a=s[t];if(!a)return;const d=a.isActionEnabled(),l=null===o||void 0===o||null===(n=o.meta_actions)||void 0===n?void 0:n[a.customAction];(d||l)&&"function"==typeof fbq&&(async()=>{const o={id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link,...t===r.O.VIDEO_PLAYBACK&&{watch_time:i.watch_time,video_duration:i.video_duration}};fbq("trackCustom",a.action,o),l&&setTimeout(()=>{null===l||void 0===l||l.forEach(t=>{fbq("trackCustom",t,o)})},500)})()}var d=i(7145);const s={[r.O.EVENT_VIEW]:{isActionEnabled:o.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[r.O.VIDEO_PLAYBACK]:{isActionEnabled:o.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[r.O.VIDEO_LIKED]:{isActionEnabled:o.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[r.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:o.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[r.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:o.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:o.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.SHOPNOW_CLICKED]:{isActionEnabled:o.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[r.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:o.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function l({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:o,productList:r,ctaList:l}){var c,u,p,h;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:o,productList:r,ctaList:l}),t in s)&&(a(t,null!==(c=null===r||void 0===r?void 0:r[1])&&void 0!==c?c:null===r||void 0===r?void 0:r[0],e,o),(0,n.n)({page_type:i.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(h=r[0])||void 0===h?void 0:h.title}))}function c({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:o,productList:r,ctaList:l}){var c,u,p,h;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:o,productList:r,ctaList:l}),t in s)&&(a(t,null!==(c=null===r||void 0===r?void 0:r[1])&&void 0!==c?c:null===r||void 0===r?void 0:r[0],e,o),(0,n.n)({page_type:i.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:e.video_duration>0?Math.ceil(e.watch_time/e.video_duration*100):"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(h=r[0])||void 0===h?void 0:h.title}))}function u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:o,productList:r,ctaList:a}){var l,c,u;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:o,productList:r,ctaList:a}),t in s)&&(0,n.n)({page_type:i.landingLocationType,selection_type:t,video_name:o.event_id,video_percentage:"NA",product_name:null!==(l=null===r||void 0===r||null===(c=r[1])||void 0===c?void 0:c.title)&&void 0!==l?l:null===r||void 0===r||null===(u=r[0])||void 0===u?void 0:u.title})}function p({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:o,productList:n,ctaList:r}){(0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:i,event:o,productList:n,ctaList:r})}},3262:function(t,e,i){i.r(e),i.d(e,{initiateCartSliderEvent:function(){return r}});var o=i(5830),n=i(1745);const r=async function(t,e,i,r,a="",d="",s="",l="",c="",u=""){(0,o.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(d&&t.setAttribute("data-product-id",d),t.click(),setTimeout(()=>{(0,n.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,i=e.quantity,o=e.properties;(0,n.CP)(t,i,o,s,l,c,!0,!0,!0)}})},500),void setTimeout(e,i)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&d&&e.setAttribute("data-product-id",d)}),void setTimeout(e,i));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(()=>{f(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,i);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(()=>{f(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,i);const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let i=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return i||(i=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),i},v=(t,e,i)=>{const o=t.cloneNode(!0);if(o){o.hasAttribute("data-product-variant-id")&&o.setAttribute("data-product-variant-id",e),o.hasAttribute("data-product-id")&&o.setAttribute("data-product-id",i);let t=o.querySelector('input[name="id"]');if(t)t.setAttribute("value",e),t.hasAttribute("disabled")&&t.removeAttribute("disabled");else{const t=o.querySelector('select[name="id"]');if(t){const i=t.querySelector('option[selected="selected"]');i&&i.setAttribute("value",e)}}const n=o.querySelector('input[name="product-id"]');n&&n.setAttribute("value",i);const r=document.createElement("div");return r.className="whatmore-atc",r.appendChild(o),document.body.appendChild(r),console.log(r,"formElement"),r}},m=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},f=t=>{(0,n.js)().then(t=>t.json()).then(e=>{const i=e.items.find(e=>e.id==t),o=i.key,r=i.quantity,a=i.properties;(0,n.CP)(o,r,a,s,l,c,!0,!0,!0)})},g=h(document);if(g||(null===g||void 0===g?void 0:g.length)>0){const t=v(g,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}else{var w;fetch(null===u||void 0===u||null===(w=u.split("?"))||void 0===w?void 0:w[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),i=h(e);if(i||(null===i||void 0===i?void 0:i.length)>0){const t=v(i,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}})}setTimeout(e,i)}},3389:function(t,e,i){i.r(e);var o=i(9950),n=i(1348),r=i(964),a=i(5830),d=i(140),s=i(4533),l=i(851),c=i(1085),u=i(6613),p=i(3330),h=(i(3262),i(572)),v=i(8603),m=i(2039),f=i(4833),g=i(5551),w=i(1351),x=i(6157),y=i(2979),b=i(6641),_=i(8945),S=i(9821),E=i(69),j=i(4414);const A=(0,v.A)({key:"whatmore-css-ppv"}),T=o.lazy(()=>Promise.all([i.e(304),i.e(946),i.e(607),i.e(187),i.e(987),i.e(411),i.e(688),i.e(592)]).then(i.bind(i,4688))),I=o.lazy(()=>i.e(374).then(i.bind(i,5100)));function k(t){return t.split(/[?#]/)[0]}e.default=function(t){const[e,i]=(0,o.useState)(),[v,C]=(0,o.useState)(),[L]=(0,a.QN)("isInDesignMode"),[P]=(0,a.QN)("isDemoBrand"),[N]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[O,D]=(0,o.useState)(-2),[z]=(0,a.QN)("whatmoreVariantId"),[M]=(0,a.QN)("whatmoreShopId");var[R]=(0,a.QN)("whatmoreProductId");const V=(0,a.Xd)("isLandingSharedLink"),Q=(0,a.Xd)("whatmoreShareTemplateId"),F=(0,a.Xd)("whatmoreShareEventId"),q=V&&"template-embed"===(0,f.Mm)(Q),[$,B]=(0,o.useState)(q);R=(0,n.BcY)(M)?function(t){if("STRR72TX6AT"==t){var e;const t=null===(e=window.location.pathname)||void 0===e?void 0:e.split("/");return t[t.length-1]}return"STR6HARJ3QY"==t||"STRI4V3OYCH"==t?k(window.location.href).split("/").pop():k(window.location.href)}(M):R;const[W,H]=(0,o.useState)(()=>"true"===N?z:R);var U=r.$$+"/v2/brand/"+M+"/product-events";const{whatmoreWidgetSourceDetails:G}=(0,o.useContext)(g.B);(0,o.useEffect)(()=>{(0,p.initializeGA)(M),(0,b.Fk)("Video shopping powered by Whatmore!"),(0,s.wm)()},[]),(0,o.useEffect)(()=>{null==e||0==e.length||v||!(0,u.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,S._)()?(0,c.Pc)(c.F5):(0,E.bi)())},[e]),(0,o.useEffect)(()=>{if(D(-1),(0,n.WH1)(M)){const t=`${r.$$}/v2/brand/${M}/product-events/recommendation`,e=(0,n.buK)(M);fetch(`${t}?client_product_id=${W}&limit=10&recommended=${!e}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then(t=>t.json()).then(t=>{const o=null===t||void 0===t?void 0:t.events;if((null===o||void 0===o?void 0:o.length)>0){var n;const r=e?null===t||void 0===t?void 0:t.all_events:null===t||void 0===t||null===(n=t.related_events)||void 0===n?void 0:n.map(t=>({...t,isRelatedEvent:!0}));i([...o,...r])}else i([])}).catch(t=>C(t.message))}else fetch(U.toString()+"?client_product_id="+W.toString()+"&status="+"upcoming".toString()+"&event_type=video").then(t=>t.json()).then(t=>t.events).then(t=>(null!=t&&0!=t.length&&(0,n.vfi)(M)&&(0,n.YOR)(t),i(t),t)).then(t=>((0,n.Uht)(M)&&function(t,e){setTimeout(async()=>{const i=t.reduce((t,e)=>[...t,...e.products],[]).filter(t=>t.client_product_id==e)[0];if(!i||i.product_link==k(window.location.href))return;const o={product_id:i.product_id,product_link:k(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})},500)}(t,W),t)).catch(t=>{C(t.message)})},[W]),(0,o.useEffect)(()=>{var t,i;D(-2),(e&&e.length>0||"Scale"==(0,n.yt9)(M)||"Enterprise"==(0,n.yt9)(M)||"Premium"==(0,n.yt9)(M))&&(0,w.yP)({userInteractionType:x.O.PDP_VISITED,widgetSourceDetails:G,event:null===e||void 0===e?void 0:e[0],productList:null===e||void 0===e||null===(t=e[0])||void 0===t?void 0:t.products,ctaList:null===e||void 0===e||null===(i=e[0])||void 0===i?void 0:i.cta})},[e]),(0,o.useEffect)(()=>{const t=k(window.location.href);let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let i=history.replaceState;history.replaceState=function(){let t=i.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),t},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))}),window.addEventListener("locationchange",function(){if("24950997070"==M&&window.location.origin+window.location.pathname!=t&&fetch(window.location.origin+window.location.pathname+".json").then(t=>t.json()).then(t=>{var e;return H(null===t||void 0===t||null===(e=t.product)||void 0===e?void 0:e.id)}),"true"===N){const t=function(t){for(var e=window.location.search.substring(1).split("&"),i=0;i<e.length;i++){var o=e[i].split("=");if(o[0]==t)return o[1]}return!1}("variant");t&&""!==t&&H(t)}})},[]),(0,o.useEffect)(()=>{if(null!=e&&0!==e.length&&!v&&q&&((0,_.H)("whatmore-video-player",()=>{B(!1)}),null!=F)){const t=e.find(t=>F==t.event_id);if(t)return void Y(t,!0,e.indexOf(t))}},[e]);const K=G.landingLocationType,X=G.templateType,Y=async(t,e=!1,i=0)=>{if((0,u.MN)()&&!e&&await((0,S._)()?(0,c.bo)():(0,E.bi)()),(0,m.ij)(t)||(0,m.Il)(t))return L||P||(async()=>{const e=(0,f.Wd)(K)+(0,f.gf)(X)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,d.lB)(t),(0,p.sendVideoViewEventToGA)(M,r.DK,r.K1),(0,s.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),void D(i)};function J(){return(0,j.jsx)(j.Fragment,{})}return null==e||0==e.length||v||(0,f.Ig)(G.templateType)||!(0,n.fDZ)(M)?(0,j.jsx)("div",{}):(0,j.jsxs)(h.C,{value:A,children:[$&&(0,j.jsx)(I,{}),"no-product"===W||-1===O||0===e.length?(0,j.jsx)(J,{}):-2===O&&e.length>0?(0,j.jsx)("div",{children:(0,j.jsx)(y.S,{userInteractionType:x.O.PDP_POPUP_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!L&&!P,children:(0,j.jsx)(l.A,{event:e[0],inVideoClick:Y,closeClick:t=>{var i;t.stopPropagation(),D(-1),(0,w.kz)({userInteractionType:x.O.PDP_POPUP_CLOSED,widgetSourceDetails:G,event:null===e||void 0===e?void 0:e[0],productList:null===e||void 0===e||null===(i=e[0])||void 0===i?void 0:i.products})}})})}):(0,j.jsx)("div",{children:(0,j.jsx)(o.Suspense,{children:(0,j.jsx)(y.S,{userInteractionType:x.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!L&&!P,children:(0,j.jsx)(T,{events:e,index:O,onBack:function(){D(-2),B(!1)},template:"template-product-page"})})})})]})}},6649:function(t,e,i){var o=i(9950);e.A=({triggerOnce:t=!1,root:e=null,rootMargin:i="0px",threshold:n=0}={})=>{const[r,a]=(0,o.useState)(!1),[d,s]=(0,o.useState)(null),l=(0,o.useRef)(null);return(0,o.useEffect)(()=>{const o=new IntersectionObserver((e,i)=>{e.forEach(e=>{s(e),e.isIntersecting?(a(!0),t&&i.disconnect()):t||a(!1)})},{root:e,rootMargin:i,threshold:n});return l.current&&o.observe(l.current),()=>{o.disconnect()}},[t,e,i,n]),[l,r,d]}},8945:function(t,e,i){function o(t,e){let i=0;let o=new MutationObserver(function(){document.querySelector("."+t)?(e(),o.disconnect()):0==i&&(i=1,setTimeout(()=>{e(),o.disconnect()},8e3))});o.observe(document.body,{childList:!0,subtree:!0})}i.d(e,{H:function(){return o}})},9733:function(){}}]);
|