whatmore-react-assets 1.0.1734 → 1.0.1735
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,485,939],{22:function(t,e,o){o.d(e,{$S:function(){return s},_:function(){return i},b4:function(){return r},dl:function(){return n},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const i="device_type",n="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,o){var i=o(5830),n=o(1941),r=o(22),l=o(1348);e.A=function(t){const[e,o,s]=(0,n.A)(),[a]=(0,i.QN)("whatmoreLandscapePadding"),[d]=(0,i.QN)("whatmoreShopId"),[c]=(0,i.QN)("whatmoreVideoTileSize"),[p]=(0,i.QN)("whatmoreVideoTileSizePortrait"),u=s>o,h="portrait"==e?p:c,f=!("portrait"!=e||!(s>=481)),m=h/100*1.3*.5,v=h/100;var x=Math.min(s,o),[y,g,w,b]=[.6*x*(16/9),.6*x,1.4,0];function j(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(u){const t=g*m,e=y*m;[y,g,w,b]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],S[r._]=r.$S,S[r.dl]=r.nN}else if(f){var C=.8*g,P=.8*y;"portrait"==e?(C*=v,P*=v,[y,g,w,b]=[P,C,j(s/(1.2*C)),0],S[r._]=r.vF,S[r.dl]=r.tn):([y,g,w,b]=[P,C,(s-2*a)/(1.1*C),a],S[r._]=r.vF,S[r.dl]=r.nN)}else{C=g,P=y;"portrait"==e?(C=C*v*.9,P=P*v*.9,[y,g,w,b]=[P,C,j(s/(1.15*C)),0],S[r._]=r.b4,S[r.dl]=r.tn):(C=.7*g,P=.7*y,[y,g,w,b]=[P,C,(s-2*a)/(1.1*C),a],S[r._]=r.b4,S[r.dl]=r.nN)}return[y,g,w,b,S]}},2835:function(t,e,o){var i=o(7891),n=o(8454),r=o(3781),l=o(5830),s=o(4414);e.A=function(t){var e;const o=(0,l.Xd)("whatmoreUITheme"),[a]=(0,l.QN)("whatmoreSecondaryColor"),[d,c]=(0,l.QN)("productRatings"),p=(0,l.Xd)("whatmorePrimaryFont"),u=t.productId,h=t.fontSize,f=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,s.jsx)(s.Fragment,{});const m=d[u].avgRating,v=d[u].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(m))].map((t,e)=>(0,s.jsx)(i.A,{sx:{color:a,fontSize:h+"px"}},"star-icon"+e)),m-Math.floor(m)>.2?(0,s.jsx)(n.A,{sx:{color:a,fontSize:h+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(r.A,{sx:{color:a,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map((t,e)=>(0,s.jsx)(r.A,{sx:{color:a,fontSize:h+"px"}},"star-outline-icon-"+e)),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:a,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",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",m,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+v+")"]})})]})})}},3161:function(t,e,o){function i(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}o.d(e,{$:function(){return i}})},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return r}});var i=o(5830),n=o(1745);const r=async function(t,e,o,r,l="",s="",a="",d="",c="",p=""){(0,i.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(s&&t.setAttribute("data-product-id",s),t.click(),setTimeout(()=>{(0,n.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(l));if(e){const t=e.key,o=e.quantity,i=e.properties;(0,n.CP)(t,o,i,a,d,c,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===p||void 0===p||null===(u=p.split("?"))||void 0===u?void 0:u[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&s&&e.setAttribute("data-product-id",s)}),void setTimeout(e,o));var u}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{v(l)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const t=l,i=1,n=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(n){let r=n.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",n.appendChild(r)),r.disabled=!1,r.value=t;const l=n.querySelector('input[name="quantity"]');l&&(l.value=i);const s=n.querySelector('button[data-add-to-cart], button[type="submit"]');return s?(s.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),s.click(),s.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{v(t)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:i}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{v(t)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const i=t.querySelector('input[name="id"]');if(!i)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);i.value=l;const n=t.querySelector('button[type="submit"]');if(!n)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);n.click(),setTimeout(()=>{v(l)},500),setTimeout(e,o)}catch(g){console.error("[ATC 64683278550] error:",g),setTimeout(e,o)}return}const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},f=(e,o,i)=>{const n=e.cloneNode(!0);if(n){n.hasAttribute("data-product-variant-id")&&n.setAttribute("data-product-variant-id",o),n.hasAttribute("data-product-id")&&n.setAttribute("data-product-id",i);let e=n.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=n.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const r=n.querySelector('input[name="product-id"]');r&&r.setAttribute("value",i);const l=document.createElement("div");return l.className="whatmore-atc",l.appendChild(n),document.body.appendChild(l),console.log(l,"formElement"),"92319318403"===t&&((t,e,o)=>{var i;const n=null!==(i=t.matches)&&void 0!==i&&i.call(t,"form")?t:t.querySelector("form");if(!n)return;let r=n.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",n.prepend(r)),r.value=String(e),r.removeAttribute("disabled");const l=n.querySelector('select[name="id"]');l&&([...l.options].some(t=>t.value===String(e))?(l.value=String(e),[...l.options].forEach(t=>t.selected=t.value===String(e)),l.dispatchEvent(new Event("change",{bubbles:!0}))):l.removeAttribute("name"));const s=n.querySelector('input[name="product-id"]');s&&(s.value=String(o))})(l,o,i),l}},m=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},v=t=>{(0,n.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),i=o.key,r=o.quantity,l=o.properties;(0,n.CP)(i,r,l,a,d,c,!0,!0,!0)})},x=h(document);if(x||(null===x||void 0===x?void 0:x.length)>0){const t=f(x,l,s);m(t),setTimeout(()=>{v(l)},500),t.remove()}else{var y;fetch(null===p||void 0===p||null===(y=p.split("?"))||void 0===y?void 0:y[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=h(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=f(o,l,s);m(t),setTimeout(()=>{v(l)},500),t.remove()}})}setTimeout(e,o)}},4063:function(t,e,o){var i=o(9950),n=o(3731),r=o(3247),l=o(5830),s=o(5144),a=o(4414);e.A=function(t){var e,o;const[d,c]=(0,i.useState)(!1),[p,u]=(0,i.useState)(!1),[h]=(0,l.QN)("whatmoreSecondaryColor"),[f]=(0,l.QN)("whatmoreSecondaryColorShade600"),[m]=(0,l.QN)("whatmoreSecondaryColorShade300"),[v]=(0,l.QN)("whatmorePrimaryFont"),x=t.onClick,y=t.icon,g=null!==(e=t.borderRadius)&&void 0!==e?e:"sm",w=null!==(o=t.baseFontSize)&&void 0!==o?o:12;return(0,a.jsxs)(r.az,{display:"flex",alignItems:"center",width:"fit-content",height:"fit-content",boxShadow:"lg",borderRadius:g,backgroundColor:d?m:h,animation:p?s.jd:null,padding:"6px 12px",cursor:"pointer",gap:"6px",onClick:t=>{t.stopPropagation(),u(!0),x()},onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[(0,a.jsx)(n.E,{fontSize:w+"px !important",fontWeight:"normal",sx:{fontFamily:v+" !important",color:"white !important"},children:"VIEW MORE"}),y]})}},4431:function(t,e,o){o.r(e),o.d(e,{default:function(){return U}});var i=o(9950),n=(o(4826),o(340)),r=o(5873),l=o(5089),s=(o(3997),o(4669),o(9733),o(4365),o(7229),o(572)),a=o(8603),d=o(932),c=o(1941),p=o(5491),u=o.n(p),h=o(5830),f=o(7509),m=o(7136),v=o(1348),x=o(5551),y=o(1351),g=o(6157),w=o(9879),b=o(6663),j=o(8538),S=o(6594),C=o(22),P=o(6613),T=o(8149),M=o(7740),k=o(7035),A=o(6305),N=o(4833),I=o(4533),E=o(63),_=o(7973),R=o(4414);var O=function({productList:t,firstAvailableProduct:e,setFirstAvailableProduct:o,tileWidth:i}){const n=.06*i,r=n+"px",[l]=(0,h.QN)("whatmorePrimaryFont");return(0,R.jsxs)("div",{onClick:t=>{t.stopPropagation()},style:{display:"flex",flexDirection:"column",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backgroundColor:"#fff",height:"fit-content",padding:"14px",boxShadow:"0px 0px 6px 0px rgba(0, 0, 0, 0.7)"},children:[(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-size",r,"important"),t.style.setProperty("font-weight","600","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:"Select Product"}),(0,R.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px",paddingTop:"8px",maxHeight:.9*i,overflowY:"auto",paddingBottom:"12px"},children:t.map((t,i)=>(0,R.jsxs)("div",{onClick:e=>{e.stopPropagation(),(t=>{o(t)})(t)},style:{WebkitTapHighlightColor:"transparent",cursor:"pointer",padding:"8px",display:"flex",alignItems:"center",gap:"8px",borderRadius:"6px",backgroundColor:(null===e||void 0===e?void 0:e.client_product_id)==(null===t||void 0===t?void 0:t.client_product_id)?"#f0f0f0":"white",border:(null===e||void 0===e?void 0:e.client_product_id)==(null===t||void 0===t?void 0:t.client_product_id)?"1px solid #343434":"none"},children:[(0,R.jsx)("img",{src:(0,_.b)(null===t||void 0===t?void 0:t.thumbnail_image),alt:null===t||void 0===t?void 0:t.title,style:{width:2*n,height:2*n}}),(0,R.jsx)("p",{style:{fontSize:.8*n+"px",fontFamily:l,textTransform:"uppercase",backgroundColor:"inherit"},children:null===t||void 0===t?void 0:t.title})]},i))})]})};var F=function(t){var e,o,n,r,l,s,a,c,p,u,m,F,L,z,D,q,X,W,$,U,B,Y,H,Q;const[V,G,J,K,Z]=(0,d.A)(),tt=(0,h.Xd)("whatmoreShopId"),et=(0,h.Xd)("whatmoreLandingLocationType"),ot="portrait"===Z[C.dl],it=ot?1.076*G*(0,v.HWj)(tt):G*(0,v.N_4)(tt),nt=it+"px",rt=(ot?1.076*G*(0,v.HWj)(tt):G*(0,v.N_4)(tt))+"px",lt=(ot?.965*G*(0,v.HWj)(tt):.859*G*(0,v.N_4)(tt))+"px",[st,at]=(0,i.useState)(t.event),[dt,ct]=(0,i.useState)(!1),pt=(0,h.Xd)("whatmoreSecondaryColor");var ut=(0,i.useContext)(f.h);const ht=null===(e=t.isOnFocus)||void 0===e||e,ft=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,mt=t.onClick,vt=(0,h.Xd)("whatmoreUITheme"),xt=(0,h.Xd)("websiteLanguage"),yt=null!==(n=t.animateOnFocus&&(0,v.n5O)(tt))&&void 0!==n&&n,[gt,wt]=(0,i.useState)(!1),bt=(0,h.Xd)("whatmorePrimaryFont"),[jt,St]=(0,i.useState)(null!==(r=null===(l=st.products)||void 0===l?void 0:l.find(t=>"active"==t.product_status))&&void 0!==r?r:null===(s=st.products)||void 0===s?void 0:s[0]),Ct=jt&&Object.keys(jt).length>0;let Pt,Tt,Mt;if("6573064236"===tt&&Ct){const t=Math.round(+(null===jt||void 0===jt?void 0:jt.price));Tt=t,Pt=Math.round(.6*t),Mt=40}else Pt=Math.round(+(null===jt||void 0===jt?void 0:jt.price)),Tt=Math.round(+(null===jt||void 0===jt?void 0:jt.compare_price)),Mt=Tt&&0!=Tt&&Tt>Pt?Math.round((Tt-Pt)/Tt*100):NaN;const[kt,At]=(0,i.useState)(Mt),[Nt,It]=(0,i.useState)(),{whatmoreIsPreviewMode:Et,whatmoreWidgetSourceDetails:_t,whatmoreUserInfo:Rt}=(0,i.useContext)(x.B),[Ot,Ft]=(0,i.useState)(!1),[Lt,zt,Dt,qt,Xt,Wt]=(0,A.A)(0,jt,st),$t=Ct&&(0,v.mRH)(tt),Ut=Ct&&(0,v.VhI)(tt),Bt=(0,v.WRx)(tt)||pt,Yt=(0,v.jsS)(tt)||"white",Ht=(0,v.KPq)(tt)||"ADD TO CART",[Qt,Vt]=(0,i.useState)(!1),Gt="76767920441"===tt,Jt=.25*G;(0,i.useEffect)(()=>{if("6573064236"!==tt){if(Ct&&(0,v.w4b)(tt)&&(0,S.fu)(st,(0,v.NCy)(tt),tt).then(t=>{var e,o,i;at(t),(null===t||void 0===t||null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.discount)&&At(null===t||void 0===t||null===(i=t.products[0])||void 0===i?void 0:i.discount),wt(!0)}),Ct){(async()=>{let t=jt;for(let i=0;i<(null===st||void 0===st||null===(e=st.products)||void 0===e?void 0:e.length);i++){var e;const o=await(0,T.M)(null===st||void 0===st?void 0:st.products[i],(0,v.NCy)(tt),tt);if(null!==o&&void 0!==o&&o.available){St(null===st||void 0===st?void 0:st.products[i]),t=null===st||void 0===st?void 0:st.products[i];break}}const o=await(0,T.M)(t,(0,v.NCy)(tt),tt);It(o),wt(!0)})()}}else wt(!0)},[Ct]),(0,i.useEffect)(()=>{if(Ct){if("6573064236"===tt)return void wt(!0);(async()=>{const t=await(0,T.M)(jt,(0,v.NCy)(tt),tt);It(t),wt(!0)})()}},[jt]);const Kt=async t=>{if(t.stopPropagation(),!Ct)return;if(ct(!0),"6573064236"===tt&&null!==jt&&void 0!==jt&&jt.product_link)return window.location.href=jt.product_link,void ct(!1);const e=_t.landingLocationType,o=_t.templateType,i=(0,N.Wd)(e)+(0,N.gf)(o)+(null!==st&&void 0!==st&&st.isRelatedEvent?"R":"E")+"_"+(null===st||void 0===st?void 0:st.event_id);(0,I.Ch)(st.event_id,st.products,"homepage","carousel",i,null===st||void 0===st?void 0:st.location,null===Rt||void 0===Rt?void 0:Rt.userType),"init"==Lt.state?(Xt(i,!0),(0,y.kz)({userInteractionType:g.O.PRODUCT_TILE_ATC_CLICKED,widgetSourceDetails:_t,event:st,productList:[jt],ctaList:st.cta})):"awaitingVariantSelection"==Lt.state&&Wt(null,i),setTimeout(()=>{ct(!1),Vt(!1)},3e3)},Zt=ot?"36px":"44px",te=Gt&&ot?{width:.22*G,height:.29*G}:Gt?{width:1.2*Jt,height:1.6*Jt}:null;return(0,R.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",ut.tileTopMargin+"px"),t.style.setProperty("margin-bottom",ut.tileBottomMMargin+"px"))},className:yt&&!ot?ht?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:Gt&&!ot?1.1*G:G},onClick:()=>{mt(st)},onMouseEnter:()=>Ft(!0),onMouseLeave:()=>Ft(!1),children:[(0,R.jsxs)("div",{className:"wht-event-tile-parent-scroll",style:{borderRadius:"round"==vt?"5%":"0px",boxShadow:"round"==vt?"0px 0px 5px 0px #B0B0B0":null,height:V,borderWidth:(0,v.YcK)(tt),borderColor:(0,v.Fwt)(tt),overflow:"hidden",position:"relative"},children:[(0,R.jsx)(w.A,{height:(0,v.u06)(tt)+" !important",width:"100%",url:st.thumbnail_image,isPlaying:ht||ft||(0,P.At)(),event:st}),Ut&&Ct&&(Ot||ot)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{style:{position:"absolute",bottom:Zt,left:0,right:0,display:Qt?"block":"none"},children:(0,R.jsx)(O,{productList:st.products,firstAvailableProduct:jt,setFirstAvailableProduct:St,tileWidth:G})}),(0,R.jsxs)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:Bt||"rgba(0, 0, 0, 0.75)",height:Zt,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",cursor:"pointer",transform:Ot||ot?"translateY(0)":"translateY(100%)",opacity:Ot||ot?1:0,WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none"},onClick:Kt,children:[(0,R.jsx)("div",{style:{flex:1,textAlign:"center",color:Yt,fontSize:"12px",fontFamily:bt,fontWeight:"500",letterSpacing:"0.5px"},children:dt?(0,R.jsx)(E.y,{size:"sm",color:"white"}):Ht}),(0,R.jsx)("span",{style:{height:"100%",borderRight:`1px solid ${Yt}`,opacity:.5}}),(0,R.jsx)("div",{onClick:t=>{t.stopPropagation(),Vt(!Qt)},style:{padding:"0 5%",display:"flex",alignItems:"center",justifyContent:"center",color:Yt,transform:Qt?"rotate(180deg)":"rotate(0deg)",transition:"all 0.25s ease"},children:(0,R.jsx)(b.A,{sx:{fontSize:2*it}})})]})]})]}),(0,R.jsxs)("div",{className:"wht-prod-info",style:{display:(0,v.AmR)(tt)?"flex":"none",flexDirection:"row",padding:Gt&&ot?"6px 4px":"12px 4px",gap:Gt&&ot?"4px":"12px",alignItems:"stretch",minHeight:$t?Gt&&ot?"85px":"110px":"auto"},children:[Gt&&Ct&&te&&(0,R.jsx)("div",{style:{flexShrink:0,display:"flex",alignItems:"stretch"},children:(0,R.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,v.KZe)(tt),"important")},src:(0,_.b)((null===jt||void 0===jt?void 0:jt.thumbnail_image)||(null===jt||void 0===jt?void 0:jt.image)||(null===jt||void 0===jt?void 0:jt.featured_image),"&width=400&height=400"),alt:null===jt||void 0===jt?void 0:jt.title,style:{width:te.width,height:te.height,borderRadius:"round"==vt?"5px":"0px",backgroundColor:"#f5f5f5",objectFit:"contain",marginLeft:ot?"0px":"-3px"}})}),(0,R.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:Gt&&ot?"2px":"5px",flex:1,minWidth:0},children:[Ct&&(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.m5c)(tt),"important"),t.style.setProperty("font-size","45034766485"==tt&&"product"==et?"9px":nt),t.style.setProperty("line-height","120%"),t.style.setProperty("font-family",bt,"important"),t.style.setProperty("-webkit-line-clamp","1","important"),t.style.setProperty("line-clamp","1","important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:(0,j.v)(null===jt||void 0===jt?void 0:jt.title)}),Ct&>&&(0,v.Nzx)(tt)&&(0,R.jsxs)("div",{style:{display:"flex",gap:Gt&&ot?"6px":"12px",flexDirection:(0,v.vw2)(tt)?"row":"row-reverse",justifyContent:(0,v.vw2)(tt)?"flex-start":"flex-end",alignItems:"center",flexWrap:"wrap"},children:[(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.m5c)(tt),"important"),t.style.setProperty("font-size","45034766485"==tt&&"product"==et?"8px":rt),t.style.setProperty("font-family",bt,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,v.i6j)(tt)?"normal":"bold"},children:(0,S.Sb)(parseFloat((0,M.U)()?(null!==(a=null===Nt||void 0===Nt||null===(c=Nt.variants)||void 0===c||null===(p=c[0])||void 0===p?void 0:p.price)&&void 0!==a?a:null===Nt||void 0===Nt?void 0:Nt.price)?(null!==(u=null===Nt||void 0===Nt||null===(m=Nt.variants)||void 0===m||null===(F=m[0])||void 0===F?void 0:F.price)&&void 0!==u?u:null===Nt||void 0===Nt?void 0:Nt.price)/100:Pt:Pt>0?Pt:null===jt||void 0===jt?void 0:jt.price_max)," ",tt,null===(L=st.products[0])||void 0===L?void 0:L.currency)}),!isNaN(Tt)&&Tt>Pt&&(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.gld)(tt),"important"),t.style.setProperty("font-size",rt),t.style.setProperty("font-family",bt,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,S.Sb)(parseFloat((0,M.U)()&&(null!==(z=null===Nt||void 0===Nt||null===(D=Nt.variants)||void 0===D||null===(q=D[0])||void 0===q?void 0:q.compare_at_price)&&void 0!==z?z:null===Nt||void 0===Nt?void 0:Nt.compare_at_price)?(null!==(X=null===Nt||void 0===Nt||null===(W=Nt.variants)||void 0===W||null===($=W[0])||void 0===$?void 0:$.compare_at_price)&&void 0!==X?X:null===Nt||void 0===Nt?void 0:Nt.compare_at_price)/100:Tt)," ",tt,null===(U=st.products[0])||void 0===U?void 0:U.currency)}),(0,v.Nzx)(tt)&&!isNaN(kt)&&0!=kt&>&&$t&&(0,R.jsx)("div",{style:{display:(0,v.QNr)(tt)?"flex":"none",backgroundColor:"green"===(0,v.ub$)(tt)?"#343434"===pt?(0,v.ub$)(tt):pt:(0,v.ub$)(tt),alignItems:"center",borderRadius:(0,v.v8m)(tt)+"px",width:"fit-content",padding:(0,v.Cf)(tt)?"3px 6px":"0px"},children:(0,v.Cf)(tt)?(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.BRY)(tt),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",bt,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${kt}% ${null!==(B=null===k.m||void 0===k.m||null===(Y=k.m[xt])||void 0===Y?void 0:Y.off)&&void 0!==B?B:"off"}`}):(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v._zx)(tt),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",(0,v.ogW)(tt),"important"))},children:(0,v.rsz)(tt)})})]}),Ct&&(0,v.Nzx)(tt)&&!isNaN(kt)&&0!=kt&>&&!$t&&(0,R.jsx)("div",{style:{display:(0,v.QNr)(tt)?"flex":"none",backgroundColor:"green"===(0,v.ub$)(tt)?"#343434"===pt?(0,v.ub$)(tt):pt:(0,v.ub$)(tt),alignItems:"center",borderRadius:(0,v.v8m)(tt)+"px",width:"fit-content",padding:(0,v.Cf)(tt)?"3px 6px":"0px"},children:(0,v.Cf)(tt)?(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v.BRY)(tt),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",bt,"important"),t.style.setProperty("font-weight","normal","important"))},children:`${kt}% ${null!==(H=null===k.m||void 0===k.m||null===(Q=k.m[xt])||void 0===Q?void 0:Q.off)&&void 0!==H?H:"off"}`}):(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,v._zx)(tt),"important"),t.style.setProperty("font-size",lt,"important"),t.style.setProperty("font-family",(0,v.ogW)(tt),"important"))},children:(0,v.rsz)(tt)})}),$t&&(0,R.jsx)("button",{style:{backgroundColor:pt,display:"flex",justifyContent:"center",color:"white",borderRadius:"4px",padding:"8px 16px",fontSize:nt,fontFamily:bt,fontWeight:"500",cursor:"pointer",textAlign:"center",letterSpacing:"0.5px",transition:"opacity 0.2s ease",width:Gt&&ot?"100px":"90%",marginTop:Gt?"6px":"0px",alignSelf:"flex-start",marginLeft:Gt&&ot?"-30px":"0px"},onClick:Kt,onMouseEnter:t=>{t.target.style.opacity="0.8"},onMouseLeave:t=>{t.target.style.opacity="1"},children:dt?(0,R.jsx)(E.y,{size:"sm",display:"flex !important",color:"white"}):Ht})]})]})]})},L=o(6641),z=o(4063);const D=(0,a.A)({key:"whatmore-css-hv"});function q(t){const[e,o,n]=(0,d.A)(),r=(0,h.Xd)("whatmoreShopId"),l=(0,h.Xd)("whatmoreLandingLocationType"),s=t.events,a=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,i.useContext)(x.B),p=Math.ceil(n),u=2*p,[f,w]=(0,i.useState)(u),[b,j]=(0,i.useState)(2*p),S=0===(0,v.If9)(r)?24:(0,v.If9)(r),[C,P]=(0,i.useState)({touchX:0,touchY:0}),T=()=>(0,R.jsx)("div",{className:"navigation-button-next-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,R.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),M=()=>(0,R.jsx)("div",{className:"navigation-button-prev-container",style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,R.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),k=t=>{if("next"===t){const t=2;j(t=>Math.min(t+Math.floor(n),s.length+p+1)),w(e=>Math.min(e+t,s.length+p+1))}else j(t=>Math.max(t-Math.floor(n),u));(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,R.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==r&&"product"==l?"center":"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:t=>{P({touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchEnd:t=>{var e,o,i,n;const r=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-C.touchX,l=(null===(i=t.changedTouches)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.clientY)-C.touchY;Math.sqrt(r**2+l**2)>10&&Math.abs(r)>Math.abs(l)&&k(r>0?"prev":"next")},children:[(0,v.JSQ)(r)&&(0,R.jsxs)(R.Fragment,{children:[b<=s.length+p&&(0,R.jsx)("div",{onClick:()=>k("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,R.jsx)(T,{})}),b>2*p&&(0,R.jsx)("div",{onClick:()=>k("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,R.jsx)(M,{})})]}),(0,R.jsx)("div",{style:{display:"flex",gap:S,transform:`translateX(-${(b-u)*(o+S)}px)`,transition:"transform 0.4s ease-in-out"},children:s.map((t,e)=>e<f?(0,R.jsx)("div",{children:(0,R.jsx)(F,{isOnFocus:e<=b-p-1&&e>=Math.max(0,b-u),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>a(t)})},`whatmore-carousel-tile-${e}`):(0,R.jsx)(m.A,{}))})]})}function X(t){const[e,o,n,r]=(0,d.A)(),[l,s]=(0,i.useState)(-1),a=(0,h.Xd)("whatmoreShopId"),[c,p]=(0,i.useState)("next"),f=t.onClick,m=t.events,{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(x.B),b=Math.min(Math.ceil(n),m.length),[j,S]=(0,i.useState)(0),C=0===(0,v.If9)(a)?24:(0,v.If9)(a),P=()=>(0,R.jsx)("div",{children:(0,R.jsx)("button",{onClick:A,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,R.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),T=()=>(0,R.jsx)("div",{children:(0,R.jsx)("button",{onClick:k,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,R.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,i.useEffect)(()=>{j<=b&&S(t=>t+b)},[b]);const M=()=>{s(-1)},k=()=>{j!==b&&(p("prev"),S(t=>Math.max(Math.ceil(t-n),b)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},A=()=>{j>m.length+n||(p("next"),S(t=>Math.floor(t+n)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},N=j>m.length?m.length-b+1:j-b,I=j>=m.length?m.length:N+b,E=m.slice(N,I);return(0,R.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${r}px`,paddingRight:`${r}px`},children:[j!==b&&(0,R.jsx)("div",{className:"wht-vst-button-prev",style:{position:"absolute",left:r+"px",zIndex:1,top:"50%",transform:"translateY(-65%)"},children:(0,R.jsx)(T,{})}),(0,R.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:C+"px",width:o*n*(0,v.fHt)(a)+"px",justifyContent:m.length>b?"flex-start":"center",overflow:"auto"},children:E.map((t,e)=>{const o=`whatmore-event-tile-landscape-${t.index}${e===b-1?"-last":""}`,i=e===l;return(0,R.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===c?"next":"prev"),onMouseEnter:()=>(t=>{const e=u()(()=>s(t),300);return e(),e.cancel})(e),onMouseLeave:M,children:(0,R.jsx)(F,{isOnFocus:i,playOnUnfocus:!(0,v.aO7)(a)||e==parseInt(b/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>(t=>{f(t)})(t)})},o)})}),j<m.length&&(0,R.jsx)("div",{className:"wht-vst-button-next",style:{position:"absolute",zIndex:1,top:"50%",right:r+"px",transform:"translateY(-65%)"},children:(0,R.jsx)(P,{})})]})}function W(t){const[e,o,n,r]=(0,d.A)(),[l,s]=(0,i.useState)(-1),a=(0,h.Xd)("whatmoreShopId"),[c,p]=(0,i.useState)("next"),f=t.onClick,m=t.events,{whatmoreWidgetSourceDetails:w}=(0,i.useContext)(x.B),b=Math.min(Math.ceil(n),m.length),[j,S]=(0,i.useState)(0),C=0===(0,v.If9)(a)?24:(0,v.If9)(a),[P,T]=(0,i.useState)(!1),[M,k]=(0,i.useState)(0),[A,N]=(0,i.useState)(0),I=({disabled:t})=>(0,R.jsx)("button",{onClick:t?void 0:L,className:"wht-custom-nav-dot-next",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,R.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),E=({disabled:t})=>(0,R.jsx)("button",{onClick:t?void 0:O,className:"wht-custom-nav-dot-prev",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,R.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})});(0,i.useEffect)(()=>{j<=b&&S(t=>t+b)},[b]);const _=()=>{s(-1)},O=()=>{j!==b&&(p("prev"),S(t=>Math.max(Math.ceil(t-n),b)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},L=()=>{j>m.length+n||(p("next"),S(t=>Math.floor(t+n)),(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:w}))},z=j>m.length?m.length-b+1:j-b,D=j>=m.length?m.length:z+b,q=m.slice(z,D);return(0,R.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,R.jsx)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${r}px`,paddingRight:`${r}px`,cursor:P?"grabbing":"grab",userSelect:"none"},onMouseDown:t=>{T(!0),k(t.clientX),N(t.clientY)},onMouseMove:t=>{P&&t.preventDefault()},onMouseUp:t=>{if(!P)return;T(!1);const e=t.clientX-M,o=t.clientY-A;Math.sqrt(e**2+o**2)>50&&Math.abs(e)>Math.abs(o)&&(e>0?O():L())},onMouseLeave:()=>{P&&T(!1)},onTouchStart:t=>{T(!0),k(t.touches[0].clientX),N(t.touches[0].clientY)},onTouchMove:t=>{},onTouchEnd:t=>{if(!P)return;T(!1);const e=t.changedTouches[0].clientX-M,o=t.changedTouches[0].clientY-A;Math.sqrt(e**2+o**2)>50&&Math.abs(e)>Math.abs(o)&&(e>0?O():L())},children:(0,R.jsx)("div",{className:"wht-hide-scrollbar",style:{display:"flex",gap:C+"px",width:o*n*(0,v.fHt)(a)+"px",justifyContent:m.length>b?"flex-start":"center",overflow:"auto"},children:q.map((t,e)=>{const o=`whatmore-event-tile-landscape-${t.index}${e===b-1?"-last":""}`,i=e===l;return(0,R.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===c?"next":"prev"),onMouseEnter:()=>(t=>{const e=u()(()=>s(t),300);return e(),e.cancel})(e),onMouseLeave:_,children:(0,R.jsx)(F,{isOnFocus:i,playOnUnfocus:!(0,v.aO7)(a)||e==parseInt(b/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>(t=>{f(t)})(t)})},o)})})}),(0,R.jsxs)("div",{style:{display:"flex",gap:"14px",marginTop:"16px",width:"78px",height:"33px",alignItems:"center",justifyContent:"center"},children:[(0,R.jsx)(E,{disabled:j===b}),(0,R.jsx)(I,{disabled:j>=m.length})]})]})}function $(t){const[e,o,n]=(0,d.A)(),r=(0,h.Xd)("whatmoreShopId"),l=(0,h.Xd)("whatmoreLandingLocationType"),s=t.events,a=t.onClick,{whatmoreWidgetSourceDetails:c}=(0,i.useContext)(x.B),p=.6*n,u=Math.ceil(p),f=2*u,[w,b]=(0,i.useState)(f),[j,S]=(0,i.useState)(2*u),C=0===(0,v.If9)(r)?24:(0,v.If9)(r),[P,T]=(0,i.useState)({touchX:0,touchY:0}),M=({disabled:t})=>(0,R.jsx)("button",{onClick:t?void 0:()=>A("next"),className:"wht-custom-nav-dot-next-portrait",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,R.jsx)("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(-45deg)",position:"absolute"}})}),k=({disabled:t})=>(0,R.jsx)("button",{onClick:t?void 0:()=>A("prev"),className:"wht-custom-nav-dot-prev-portrait",style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:"#F97316",border:"none",cursor:"pointer",opacity:1,padding:0,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,R.jsx)("div",{style:{width:"8px",height:"8px",borderLeft:"2px solid #fff",borderBottom:"2px solid #fff",transform:"rotate(45deg)",position:"absolute"}})}),A=t=>{if("next"===t){const t=2;S(t=>Math.min(t+Math.floor(n),s.length+u+1)),b(e=>Math.min(e+t,s.length+u+1))}else S(t=>Math.max(t-Math.floor(n),f));(0,y.UM)({userInteractionType:g.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{style:{width:"100%",overflow:"hidden"},children:(0,R.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"45034766485"==r&&"product"==l?"center":"flex-start",paddingLeft:"12px",overflow:"visible",position:"relative",zoom:1.6},onTouchStart:t=>{T({touchX:t.touches[0].clientX,touchY:t.touches[0].clientY})},onTouchEnd:t=>{var e,o,i,n;const r=(null===(e=t.changedTouches)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.clientX)-P.touchX,l=(null===(i=t.changedTouches)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.clientY)-P.touchY;Math.sqrt(r**2+l**2)>10&&Math.abs(r)>Math.abs(l)&&A(r>0?"prev":"next")},children:(0,R.jsx)("div",{style:{display:"flex",gap:C,transform:`translateX(-${(j-f)*(o+C)}px)`,transition:"transform 0.4s ease-in-out"},children:s.map((t,e)=>e<w?(0,R.jsx)("div",{children:(0,R.jsx)(F,{isOnFocus:e<=j-u-1&&e>=Math.max(0,j-f),playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>a(t)})},`whatmore-carousel-tile-${e}`):(0,R.jsx)(m.A,{}))})})}),(0,R.jsxs)("div",{style:{display:"flex",gap:"14px",marginTop:"16px",width:"78px",height:"33px",alignItems:"center",justifyContent:"center",marginLeft:"auto",marginRight:"auto"},children:[(0,R.jsx)(k,{disabled:j<=2*u}),(0,R.jsx)(M,{disabled:j>s.length+u})]})]})}var U=function(t){const[e,o,a]=(0,c.A)(),[d]=(0,h.QN)("whatmoreShopId"),[p]=(0,h.QN)("whatmorePrimaryColor"),[u]=(0,h.QN)("whatmoreSecondaryColor"),[m]=(0,h.QN)("whatmoreTitleFont"),y="portrait"==e?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,i.useContext)(x.B),{whatmoreCollectionHeading:w}=((0,h.Xd)("isInDesignMode"),(0,i.useContext)(x.B)),{whatmoreIsCollectionsTemplate:b}=(0,i.useContext)(x.B),j=t.events,S=t.onClick,C=m;function P(t){S(t)}return(0,i.useEffect)(()=>{(0,L.Fk)("Video shopping powered by Whatmore!")},[]),(0,i.useEffect)(()=>{r.Sn.forEach(t=>{var e;const o=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-f"]');if(!o)return;o&&t&&(t.style.minHeight="0px")})},[]),delete l.Ay.styles.global,(0,R.jsx)(s.C,{value:D,children:(0,R.jsx)("div",{className:"whatmore-carousel-events",children:(0,R.jsx)(n.s,{theme:l.Ay,cssVarsRoot:g,resetCSS:!1,children:(0,R.jsxs)(f.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:10,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||b?(0,R.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"62636458233"==d?"flex-start":"center"},children:(0,R.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",C,"important"),t.style.setProperty("font-size",y+"px"))},style:{color:p,backgroundClip:"text",textAlign:"center",fontWeight:(0,v.Odx)(d),lineHeight:(0,v.L0y)(d),letterSpacing:(0,v.l3V)(d)},children:b?"W"!==w?w:"":t.heading})}):(0,R.jsx)(R.Fragment,{}),"landscape"===e?"6573064236"===d?(0,R.jsx)(W,{events:j,onClick:P}):(0,R.jsx)(X,{events:j,onClick:P}):(0,R.jsxs)(R.Fragment,{children:["6573064236"===d?(0,R.jsx)($,{events:j,onClick:P}):(0,R.jsx)(q,{events:"45034766485"==d?j.slice(0,5):j,onClick:P}),"45034766485"==d&&(0,R.jsx)("div",{className:"wht-tf-view-cta",style:{display:"flex",justifyContent:"center",margin:"8px 0px"},children:(0,R.jsx)(z.A,{baseFontSize:.5*y,onClick:()=>P(null===j||void 0===j?void 0:j[5])})})]})]})})})})}},4826:function(){},7136:function(t,e,o){var i=o(9950),n=o(932),r=o(7509),l=o(5830),s=o(4414);e.A=function(t){var[e,o]=(0,n.A)();(0,i.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:o,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7458:function(t,e,o){o.d(e,{P:function(){return i}});const i=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7509:function(t,e,o){o.d(e,{h:function(){return i}});const i=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7973:function(t,e,o){o.d(e,{B:function(){return l},b:function(){return r}});var i=o(1348),n=o(5830);function r(t,e=""){const o=(0,n.Xd)("whatmoreShopId");return"shopify"!=(0,i.NCy)(o)?"STRNV8MHJTF"==o?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const o=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],i=/\.(jpeg|jpg|gif|png|svg|webp)$/i,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(o)?"image":null!==n&&void 0!==n&&n.test(o)?"video":void 0}},8538:function(t,e,o){o.d(e,{v:function(){return n}});var i=o(5830);function n(t,e){const o=(0,i.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==o||"72442478904"==o||"58562281529"==o?t:"66168324332"==o&&"prod-tile"!=e?null===t||void 0===t||null===(n=t.split("- "))||void 0===n?void 0:n[0]:t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var n}},9733:function(){}}]);
|