whatmore-react-assets 1.0.1509 → 1.0.1512

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1509",
3
+ "version": "1.0.1512",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[474],{6945:function(e,t,o){o.r(t);var i=o(9950),n=o(340),r=o(9983),l=o(5873),s=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),a=o(8603),d=o(8378),c=o(9094),p=o(932),u=o(7300),h=o(5491),m=o.n(h),v=o(5830),y=o(7509),f=o(7136),x=o(1348),g=o(4737),w=o(5620),j=o(1351),P=o(6157),C=o(6641),S=o(1957),b=o(4414);const O=(0,a.A)({key:"whatmore-css-hv"});function M(e){const[t,o,n]=(0,p.A)(),r=(0,v.Xd)("whatmoreShopId"),l=e.events,s=e.onClick,a=n*(0,x.kcl)(r),c=(0,x.cbh)(r),[u,h]=(0,i.useState)(c?l.length:a),{whatmoreWidgetSourceDetails:m}=(0,i.useContext)(g.B);return(0,i.useEffect)((()=>{u<=a&&h((e=>e+a))}),[a]),(0,b.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("div",{style:{width:"8968077397"===r&&l.length<4?"200px":window.innerWidth,height:"fit-content"},children:(0,b.jsx)(d.RC,{slidesPerView:l.length>1?"51394281658"==r||"55820812447"==r?2:a:1,initialSlide:l.length>1&&"51394281658"!=r&&"55820812447"!=r?1:0,centeredSlides:"51394281658"!=r&&"55820812447"!=r,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:"51394281658"==r?1:.5,onSlideChange:e=>{(0,j.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:m}),e.realIndex>e.previousIndex&&h((e=>e+a))},loop:c&&l.length>2,children:l.map(((e,t)=>t<=u&&(0,b.jsx)(d.qr,{children:t=>{let{isActive:o,isPrev:i,isNext:n,isVisible:l}=t;return(0,x.DmD)(r)?(0,b.jsx)(S.A,{isOnFocus:o&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}}):(0,b.jsx)(w.A,{isOnFocus:("51394281658"==r||"55820812447"==r||o)&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function N(e){const[t,o,n,r]=(0,p.A)(),[l,s]=(0,i.useState)(-1),a=(0,v.Xd)("whatmoreShopId"),u=e.onClick,h=e.events,y=(0,x.cbh)(a),[C,O]=(0,i.useState)(y?h.length:n),M="8968077397"==a||"19501891"==a?Math.floor(Math.min(n,h.length)):Math.min(n,h.length),N=Math.floor(Math.min(4,h.length)),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(g.B),A=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(A.current){const e="8968077397"===a&&h.length>=4?.7:(0,x.fHt)(a),t=o*M*e+"px";h.length<4||"8968077397"===a?A.current.style.setProperty("width",t,"important"):A.current.style.width=t}}),[o,M,a,C,h.length]),(0,i.useEffect)((()=>{C<=n&&O((e=>e+n))}),[n]),(0,b.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,b.jsx)("div",{ref:A,style:{height:"100%"},children:(0,b.jsx)(d.RC,{slidesPerView:"8968077397"==a?N:M,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:"8968077397"==a||"19501891"==a?Math.min(2,h.length):parseInt(M),onSlideChange:e=>{(0,j.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:I}),e.realIndex>e.previousIndex&&O((e=>e+n))},spaceBetween:0,loop:(y||"8968077397"==a||"19501891"==a)&&h.length>4,style:{height:"100%"},children:h.map(((e,t)=>{const o=m()((()=>s(t)),300);return t<=C&&(0,b.jsx)(d.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),s(-1)},style:{height:"100%"},children:o=>{let{isActive:i,isPrev:n,isNext:r,isVisible:s}=o;return s||"8968077397"==a||"19501891"==a&&(n||r)?(0,x.DmD)(a)?(0,b.jsx)(S.A,{isOnFocus:t==l,playOnUnfocus:!(0,x.aO7)(a)||t==parseInt(M/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,b.jsx)(w.A,{isOnFocus:t==l,playOnUnfocus:!(0,x.aO7)(a)||t==parseInt(M/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,b.jsx)(f.A,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,o,a]=(0,u.A)(),[d]=(0,v.QN)("whatmoreShopId"),[c]=(0,v.QN)("whatmorePrimaryColor"),[p]=(0,v.QN)("whatmoreTitleFont"),h="portrait"==t?(0,v.Xd)("whatmoreTitleFontSizePortrait"):(0,v.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,i.useContext)(g.B),f=(0,v.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,i.useContext)(g.B),j=e.events,P=e.onClick,S=p;function I(e){P(e)}return(0,i.useEffect)((()=>{(0,C.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{l.Sn.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,b.jsx)(s.C,{value:O,children:(0,b.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,b.jsx)(n.s,{theme:r.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,b.jsxs)(y.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||w?(0,b.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",S,"important"),e.style.setProperty("font-size",h+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,x.Odx)(d),lineHeight:(0,x.L0y)(d),letterSpacing:(0,x.l3V)(d)},children:w?"W"!==f?f:"":e.heading})}):(0,b.jsx)(b.Fragment,{}),"landscape"===t?(0,b.jsx)(N,{events:j,onClick:I}):(0,b.jsx)(M,{events:j,onClick:I})]})})})})}},7136:function(e,t,o){var i=o(9950),n=o(932),r=o(7509),l=o(5830),s=o(4414);t.A=function(e){var[t,o]=(0,n.A)();(0,i.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return e.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%":t,overflow:"hidden"}})}},1957:function(e,t,o){var i=o(9950),n=o(932),r=(o(4826),o(5830)),l=o(9879),s=o(7509),a=o(22),d=o(1348),c=o(4737),p=o(6594),u=o(8538),h=o(8149),m=o(5727),v=o(4414);t.A=function(e){var t,o,y,f,x,g,w,j,P,C,S,b,O,M,N,I,A,k,F,_,D,E,R,W,z,T;const[B,U,X,H,V]=(0,n.A)(),L=.5*U;var q=(0,i.useContext)(s.h);const G=(0,r.Xd)("whatmoreUITheme"),K=(0,r.Xd)("whatmoreShopId"),$=(0,r.Xd)("whatmorePrimaryFont"),Q=(0,r.Xd)("whatmoreSecondaryColor"),Y=e.onClick,Z=null===(t=e.isOnFocus)||void 0===t||t,J=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,ee=null!==(y=e.animateOnFocus&&(0,d.n5O)(K))&&void 0!==y&&y,te="portrait"===V[a.dl],oe=(te?1.076*U*(0,d.HWj)(K):U*(0,d.N_4)(K))+"px",ie=(te?1.076*U*(0,d.HWj)(K):U*(0,d.N_4)(K))+"px",ne=(te?.965*U*(0,d.HWj)(K):.859*U*(0,d.N_4)(K))+"px",re=(0,d.VYo)(K),{whatmoreIsPreviewMode:le}=(0,i.useContext)(c.B),se=.25*U,ae=se+"px",[de,ce]=(0,i.useState)(e.event),[pe,ue]=(0,i.useState)(),he=Math.round(+(null===(f=de.products)||void 0===f||null===(x=f[0])||void 0===x?void 0:x.price)),me=Math.round(+(null===de||void 0===de||null===(g=de.products[0])||void 0===g?void 0:g.compare_price)),ve=me&&0!=me&&me>he?Math.round((me-he)/me*100):NaN,[ye,fe]=(0,i.useState)(ve),[xe,ge]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{(0,d.w4b)(K)&&(0,p.fu)(de,(0,d.NCy)(K),K).then((e=>{var t,o,i;ce(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),r=Math.round(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;fe(l),ge(!0)}));(async()=>{var e;const t=await(0,h.M)(null===de||void 0===de||null===(e=de.products)||void 0===e?void 0:e[0],(0,d.NCy)(K),K);ue(t),ge(!0)})()}),[]),(0,v.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",q.tileTopMargin+"px"),e.style.setProperty("margin-bottom",q.tileBottomMMargin+"px"))},className:ee&&!te?Z?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:U,margin:"0 auto",cursor:"pointer"},onClick:()=>{Y(de)},children:["video"===de.event_type&&"55076552858"===K&&!te&&(0,v.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*L,marginLeft:L/2},children:(0,v.jsx)(m.A,{sx:{color:(0,d.KFN)(de.whatmoreShopId)+" !important",opacity:.8,fontSize:L,filter:"drop-shadow(0 0 15px black);"}})}),(0,v.jsx)("div",{style:{width:U,height:te&&Z?"STR2FOC6KG9"==K||"STRDOIDF6O7"==K?B:1.1*B:B,borderRadius:"round"==G?"5px":"0px",boxShadow:"round"==G?re:null,borderWidth:(0,d.YcK)(K),borderColor:(0,d.Fwt)(K),overflow:"hidden"},children:(0,v.jsx)(l.A,{height:(0,d.u06)(K)+" !important",width:"100%",url:de.thumbnail_image,isPlaying:Z||J,event:de})}),(0,v.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(le?(0,d.Tr1)(K):(0,d.UmS)(K))&&(null===de||void 0===de||null===(w=de.products)||void 0===w?void 0:w.length)>0&&(0,v.jsx)("div",{style:{maxWidth:ae,minWidth:null!==(j=de.products)&&void 0!==j&&null!==(P=j[0])&&void 0!==P&&P.thumbnail_image?ae:"0",overflow:"hidden"},children:(0,v.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,d.KZe)(K),"important")},src:null===(C=de.products)||void 0===C||null===(S=C[0])||void 0===S?void 0:S.thumbnail_image,alt:"thumbnail"})}),(0,v.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(K),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",$,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,u.v)(null===(b=de.products[0])||void 0===b?void 0:b.title)}),xe&&(0,d.Nzx)(K)&&(0,v.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,d.vw2)(K)?"row":"row-reverse",justifyContent:(0,d.vw2)(K)?"flex-start":"flex-end"},children:[(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(K),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",$,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(K)?"normal":"bold"},children:(0,p.Sb)(parseFloat(null!==(O=null!==(M=null===pe||void 0===pe||null===(N=pe.variants)||void 0===N||null===(I=N[0])||void 0===I?void 0:I.price)&&void 0!==M?M:null===pe||void 0===pe?void 0:pe.price)&&void 0!==O?O:null===de||void 0===de||null===(A=de.products)||void 0===A||null===(k=A[0])||void 0===k?void 0:k.price)," ",K,null===(F=de.products[0])||void 0===F?void 0:F.currency)}),!isNaN(me)&&me>he&&(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.gld)(K),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",$,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,p.Sb)(parseFloat(null!==(_=null!==(D=null===pe||void 0===pe||null===(E=pe.variants)||void 0===E||null===(R=E[0])||void 0===R?void 0:R.compare_at_price)&&void 0!==D?D:null===pe||void 0===pe?void 0:pe.compare_at_price)&&void 0!==_?_:null===de||void 0===de||null===(W=de.products)||void 0===W||null===(z=W[0])||void 0===z?void 0:z.compare_price)," ",K,null===(T=de.products[0])||void 0===T?void 0:T.currency)})]}),(0,d.Nzx)(K)&&xe&&!isNaN(ye)&&0!=ye&&(0,v.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(K)?"#343434"==Q?(0,d.ub$)(K):Q:(0,d.ub$)(K),alignItems:"center",borderRadius:(0,d.v8m)(K)+"px",width:"fit-content",padding:(0,d.Cf)(K)?"3px 6px":"0px"},children:(0,d.Cf)(K)?(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.BRY)(K),"important"),e.style.setProperty("font-size",ne,"important"),e.style.setProperty("font-family",$,"important"))},children:`${ye}% Off`}):(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d._zx)(K),"important"),e.style.setProperty("font-size",ne,"important"),e.style.setProperty("font-family",(0,d.ogW)(K),"important"))},children:(0,d.rsz)(K)})})]})]})]})}},7229:function(){},4669:function(){},6042:function(){},9130:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[676],{3369:function(t,e,i){i.r(e),i.d(e,{default:function(){return R}});var o=i(9950),n=i(340),r=i(9983),l=i(5873),s=(i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042),i(572)),a=i(8603),d=i(8378),c=i(9094),p=i(932),h=i(7300),u=i(5491),v=i.n(u),m=i(5830),x=i(7509),f=i(7136),y=i(1348),g=i(4737),w=i(1351),b=i(6157),j=i(6641),P=(i(4826),i(9879)),S=i(4616),C=i(6649),k=i(6613),I=i(1131),A=i(4414);function F(t){const[e]=(0,m.QN)("whatmoreShopId"),[i,o,n]=(0,C.A)({triggerOnce:!0}),r=t.event,l=(0,k.At)()?t.isOnFocus:o;return(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,A.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)("p",{children:" "})}),(0,A.jsx)("div",{ref:i,children:l&&(0,y.imx)(e)?(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)(S.A,{event:r})}):(0,A.jsx)("div",{height:"20px"})})]})})}var O=function(t){var e,i,n,r,l,s,a,d;const[c,h,u,v,f]=(0,p.A)();var g=(0,o.useContext)(x.h);const w=(0,m.Xd)("whatmoreUITheme"),b=(0,m.Xd)("whatmoreShopId"),j=(0,m.Xd)("whatmorePrimaryFont"),S=(0,m.Xd)("whatmoreSecondaryColor"),C=t.event,k=t.onClick,O=null===(e=t.isOnFocus)||void 0===e||e,_=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,M=null!==(n=t.animateOnFocus&&(0,y.n5O)(b))&&void 0!==n&&n,N=(0,y.VYo)(b);return(0,A.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",g.tileTopMargin+"px"),t.style.setProperty("margin-bottom",g.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:h,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":c,borderRadius:"round"==w?"5px":"0px",boxShadow:"round"==w||"61187850326"==b||"19501891"==b?N:null,borderWidth:(0,y.YcK)(b),borderColor:(0,y.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:M?O?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{var t,e,i;if("12326200"==b&&"image"==C.event_type&&(null===(t=C.products)||void 0===t?void 0:t.length)>0&&"oos"!=(null===(e=C.products)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.product_status)){var o,n;window.location.href=null===(o=C.products)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.product_link}else{if("12326200"==b&&"image"==C.event_type)return;var r,l,s,a,d,c,p,h,u,v,m,x,f,y,g,w;if("10588815418"==b){if(null!==(r=C.cta)&&void 0!==r&&null!==(l=r[0])&&void 0!==l&&null!==(s=l.cta_link)&&void 0!==s&&s.includes("whatmore")&&""!=(null===(a=C.cta)||void 0===a||null===(d=a[1])||void 0===d?void 0:d.cta_link)&&""==(null===(c=C.cta)||void 0===c||null===(p=c[1])||void 0===p?void 0:p.cta_title))window.location.href=null===(g=C.cta)||void 0===g||null===(w=g[1])||void 0===w?void 0:w.cta_link;else if(null!==(h=C.cta)&&void 0!==h&&null!==(u=h[1])&&void 0!==u&&null!==(v=u.cta_link)&&void 0!==v&&v.includes("whatmore")&&""!=(null===(m=C.cta)||void 0===m||null===(x=m[0])||void 0===x?void 0:x.cta_link)&&""==(null===(f=C.cta)||void 0===f||null===(y=f[0])||void 0===y?void 0:y.cta_title)){var j,P;window.location.href=null===(j=C.cta)||void 0===j||null===(P=j[0])||void 0===P?void 0:P.cta_link}}else k(C)}},children:[(0,A.jsx)(P.A,{height:(0,y.u06)(b)+" !important",width:"100%",url:C.thumbnail_image,isPlaying:O||_,event:C}),""!==(null===C||void 0===C?void 0:C.title)?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"wht-overlay-text",style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis"},children:(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,A.jsx)("p",{style:{fontFamily:j,fontSize:.1*h+"px",fontWeight:"600"},children:"12326200"==b?null===C||void 0===C||null===(r=C.title)||void 0===r?void 0:r.slice(7):null===C||void 0===C?void 0:C.title}),"12326200"==b&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*h+"px",fontWeight:"normal"},children:null===C||void 0===C||null===(l=C.title)||void 0===l?void 0:l.slice(0,7)}),(null===(s=C.products)||void 0===s?void 0:s.length)>0&&"oos"!=(null===(a=C.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.product_status)&&(0,A.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:S,padding:"8px 28px"},children:(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*h+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,A.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,A.jsx)(I.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,y.Q$)(b)&&(0,A.jsxs)("div",{style:{width:h,height:c},children:[(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,A.jsx)(F,{event:C,unfocusedDisplay:!O,isOnFocus:O})]})]})};const _=(0,a.A)({key:"whatmore-css-hv"});function M(t){const[e,i,n]=(0,p.A)(),r=(0,m.Xd)("whatmoreShopId"),l=t.events,s=t.onClick,a=n*(0,y.kcl)(r),c=(0,y.cbh)(r),[h,u]=(0,o.useState)(c?l.length:a),{whatmoreWidgetSourceDetails:v}=(0,o.useContext)(g.B);return(0,o.useEffect)((()=>{h<=a&&u((t=>t+a))}),[a]),(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,A.jsx)(d.RC,{slidesPerView:2,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onSlideChange:t=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:v}),t.realIndex>t.previousIndex&&u((t=>t+a))},loop:c,children:l.map(((t,e)=>e<=h&&(0,A.jsx)(d.qr,{children:e=>{let{isActive:i,isPrev:o,isNext:n,isVisible:r}=e;return o||n||i?(0,A.jsx)(O,{isOnFocus:r,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{s(t)}}):(0,A.jsx)(f.A,{})}},"whatmore-event-tile-portrait-"+t.index)))})})})}function N(t){const[e,i,n,r]=(0,p.A)(),[l,s]=(0,o.useState)(-1),a=(0,m.Xd)("whatmoreShopId"),[h]=(0,m.QN)("whatmoreLandingLocationType"),u=t.onClick,x=t.events,j=(0,y.cbh)(a),[P,S]=(0,o.useState)(j?x.length:n),C=Math.min(n,x.length),{whatmoreWidgetSourceDetails:k}=(0,o.useContext)(g.B),I=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(I.current){const t=i*C*(0,y.fHt)(a)+"px";x.length<4?I.current.style.setProperty("width",t,"important"):I.current.style.width=t}}),[i,C,a,P,x.length]),(0,o.useEffect)((()=>{P<=n&&S((t=>t+n))}),[n]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,A.jsx)("div",{ref:I,style:{height:"100%"},children:(0,A.jsx)(d.RC,{slidesPerView:"product"===h&&"87174349065"===a?2:C,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(C),onSlideChange:t=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:k}),t.realIndex>t.previousIndex&&S((t=>t+n))},spaceBetween:0,loop:j&&x.length>4,style:{height:"100%"},children:x.map(((t,e)=>{const i=v()((()=>s(e)),300);return e<=P&&(0,A.jsx)(d.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),s(-1)},style:{height:"100%"},children:i=>{let{isActive:o,isPrev:n,isNext:r,isVisible:s}=i;return s||n||r?(0,A.jsx)(O,{isOnFocus:e==l,playOnUnfocus:!(0,y.aO7)(a)||e==parseInt(C/2)&&-1==l,animateOnFocus:!0,event:t,onClick:()=>{u(t)}}):(0,A.jsx)(f.A,{})}},"whatmore-event-tile-landscape-"+t.index)}))})})})}var R=function(t){const[e,i,a]=(0,h.A)(),[d]=(0,m.QN)("whatmoreShopId"),[c]=(0,m.QN)("whatmorePrimaryColor"),[p]=(0,m.QN)("whatmoreTitleFont"),u="portrait"==e?(0,m.Xd)("whatmoreTitleFontSizePortrait"):(0,m.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:v}=(0,o.useContext)(g.B),f=(0,m.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,o.useContext)(g.B),b=t.events,P=t.onClick,S=p;function C(t){P(t)}return(0,o.useEffect)((()=>{(0,j.Fk)("Video shopping powered by Whatmore!")}),[]),(0,o.useEffect)((()=>{l.Sn.forEach((t=>{var e;const i=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-g"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-g"]');if(!i)return;i&&t&&(t.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,A.jsx)(s.C,{value:_,children:(0,A.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,A.jsx)(n.s,{theme:r.Ay,cssVarsRoot:v,resetCSS:!1,children:(0,A.jsxs)(x.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[t.heading.trim().length>0||w?(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",S),t.style.setProperty("font-size",u+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,y.Odx)(d),lineHeight:(0,y.L0y)(d),letterSpacing:(0,y.l3V)(d)},children:w?"W"!==f?f:"":t.heading})}):(0,A.jsx)(A.Fragment,{}),"landscape"===e?(0,A.jsx)(N,{events:b,onClick:C}):(0,A.jsx)(M,{events:b,onClick:C})]})})})})}},7509:function(t,e,i){i.d(e,{h:function(){return o}});const o=(0,i(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8538:function(t,e,i){i.d(e,{v:function(){return n}});var o=i(5830);function n(t,e){const i=(0,o.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==i||"72442478904"==i||"58562281529"==i?t:"66168324332"==i&&"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}},7136:function(t,e,i){var o=i(9950),n=i(932),r=i(7509),l=i(5830),s=i(4414);e.A=function(t){var[e,i]=(0,n.A)();(0,o.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:i,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},4616:function(t,e,i){var o=i(9950),n=i(5830),r=i(932),l=i(8538),s=(i(4826),i(1348)),a=i(7973),d=i(4414);e.A=function(t){var e,i,c,p,[h,u]=(0,r.A)();const v=(0,n.Xd)("whatmoreUITheme"),[m]=(0,n.QN)("whatmorePrimaryFont"),[x,f]=(0,o.useState)(0),y=(0,n.Xd)("whatmoreShopId"),g=t.event;if(0==g.products.length)return(0,d.jsx)(d.Fragment,{});const w=.3*u,b=w+"px",j=w+"px",P=.07*u,S=P+"px";return(0,d.jsx)("div",{style:{width:u+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,d.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,d.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",j,"important")},style:{width:(0,s.H$k)(y)?b:"auto",boxShadow:"round"==v?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==v?"5px":"0px",borderWidth:(0,s.YcK)(y),borderColor:(0,s.Fwt)(y),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,s.KZe)(y),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,a.b)(g.products[x].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==v?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:u-5-w+"px",height:"100%",borderRadius:"round"==v?"5px":"0px",overflow:"visible"},children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",S,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",m,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,l.v)(g.products[x].title)})}),(0,s.gZ6)(y)&&(null===(e=g.products[x])||void 0===e||null===(i=e.product_metadata)||void 0===i?void 0:i.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:u-5-w+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==v?"3px":"0"},children:(0,d.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",u-5-w+"px","important"),t.style.setProperty("font-size",.7*P+"px","important"),t.style.setProperty("font-family",m,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(c=g.products[x])||void 0===c||null===(p=c.product_metadata)||void 0===p?void 0:p.product_type})})]})]},x)})}},7973:function(t,e,i){i.d(e,{B:function(){return l},b:function(){return r}});var o=i(1348),n=i(5830);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const i=(0,n.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(i)?"STRNV8MHJTF"==i?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 i=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(i)?"image":null!==n&&void 0!==n&&n.test(i)?"video":void 0}},1131:function(t,e,i){var o=i(4994);e.A=void 0;var n=o(i(9526)),r=i(4414);e.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},4826:function(){},7229:function(){},4669:function(){},6042:function(){},3997:function(){},9130:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[891],{7178:function(e,t,o){o.r(t);var i=o(9950),n=o(340),r=o(9983),l=o(5873),s=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),a=o(8603),d=o(8378),c=o(9094),p=o(932),u=o(7300),h=o(5491),v=o.n(h),m=o(5830),y=o(7509),f=o(7136),x=o(1348),g=o(4737),w=o(1351),P=o(6157),j=o(6641),C=o(1957),S=o(4414);const b=(0,a.A)({key:"whatmore-css-hv"});function M(e){const[t,o,n]=(0,p.A)(),r=(0,m.Xd)("whatmoreShopId"),l=e.events,s=e.onClick,a=n*(0,x.kcl)(r),c=(0,x.cbh)(r),[u,h]=(0,i.useState)(c?l.length:a),{whatmoreWidgetSourceDetails:v}=(0,i.useContext)(g.B);return(0,i.useEffect)((()=>{u<=a&&h((e=>e+a))}),[a]),(0,S.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,S.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,S.jsx)(d.RC,{slidesPerView:l.length>1?a:1,initialSlide:l.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,w.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:v}),e.realIndex>e.previousIndex&&h((e=>e+a))},loop:c,children:l.map(((e,t)=>t<=u&&(0,S.jsx)(d.qr,{children:t=>{let{isActive:o,isPrev:i,isNext:n,isVisible:r}=t;return i||n||o?(0,S.jsx)(C.A,{isOnFocus:o&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}}):(0,S.jsx)(f.A,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function A(e){const[t,o,n,r]=(0,p.A)(),[l,s]=(0,i.useState)(-1),a=(0,m.Xd)("whatmoreShopId"),u=e.onClick,h=e.events,y=(0,x.cbh)(a),[j,b]=(0,i.useState)(y?h.length:n),M=Math.min(n,h.length),{whatmoreWidgetSourceDetails:A}=(0,i.useContext)(g.B),N=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(N.current){const e=o*M*(0,x.fHt)(a)+"px";h.length<4?N.current.style.setProperty("width",e,"important"):N.current.style.width=e}}),[o,M,a,j,h.length]),(0,i.useEffect)((()=>{j<=n&&b((e=>e+n))}),[n]),(0,S.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,S.jsx)("div",{ref:N,style:{height:"100%"},children:(0,S.jsx)(d.RC,{slidesPerView:M,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(M),onSlideChange:e=>{(0,w.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:A}),e.realIndex>e.previousIndex&&b((e=>e+n))},spaceBetween:0,loop:y&&h.length>4,style:{height:"100%"},children:h.map(((e,t)=>{const o=v()((()=>s(t)),300);return t<=j&&(0,S.jsx)(d.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),s(-1)},style:{height:"100%"},children:o=>{let{isActive:i,isPrev:n,isNext:r,isVisible:s}=o;return s||n||r?(0,S.jsx)(C.A,{isOnFocus:t==l,playOnUnfocus:!(0,x.aO7)(a)||t==parseInt(M/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,S.jsx)(f.A,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,o,a]=(0,u.A)(),[d]=(0,m.QN)("whatmoreShopId"),[c]=(0,m.QN)("whatmorePrimaryColor"),[p]=(0,m.QN)("whatmoreTitleFont"),h="portrait"==t?(0,m.Xd)("whatmoreTitleFontSizePortrait"):(0,m.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:v}=(0,i.useContext)(g.B),f=(0,m.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,i.useContext)(g.B),P=e.events,C=e.onClick,N=p;function I(e){C(e)}return(0,i.useEffect)((()=>{(0,j.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{l.Sn.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-h"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,S.jsx)(s.C,{value:b,children:(0,S.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,S.jsx)(n.s,{theme:r.Ay,cssVarsRoot:v,resetCSS:!1,children:(0,S.jsxs)(y.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||w?(0,S.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,S.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",N,"important"),e.style.setProperty("font-size",h+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,x.Odx)(d),lineHeight:(0,x.L0y)(d),letterSpacing:(0,x.l3V)(d)},children:w?"W"!==f?f:"":e.heading})}):(0,S.jsx)(S.Fragment,{}),"landscape"===t?(0,S.jsx)(A,{events:P,onClick:I}):(0,S.jsx)(M,{events:P,onClick:I})]})})})})}},7509:function(e,t,o){o.d(t,{h:function(){return i}});const i=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7136:function(e,t,o){var i=o(9950),n=o(932),r=o(7509),l=o(5830),s=o(4414);t.A=function(e){var[t,o]=(0,n.A)();(0,i.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return e.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%":t,overflow:"hidden"}})}},1957:function(e,t,o){var i=o(9950),n=o(932),r=(o(4826),o(5830)),l=o(9879),s=o(7509),a=o(22),d=o(1348),c=o(4737),p=o(6594),u=o(8538),h=o(8149),v=o(5727),m=o(4414);t.A=function(e){var t,o,y,f,x,g,w,P,j,C,S,b,M,A,N,I,k,O,_,F,R,E,W,T,z,B;const[D,X,H,L,U]=(0,n.A)(),V=.5*X;var q=(0,i.useContext)(s.h);const G=(0,r.Xd)("whatmoreUITheme"),K=(0,r.Xd)("whatmoreShopId"),$=(0,r.Xd)("whatmorePrimaryFont"),Q=(0,r.Xd)("whatmoreSecondaryColor"),Y=e.onClick,Z=null===(t=e.isOnFocus)||void 0===t||t,J=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,ee=null!==(y=e.animateOnFocus&&(0,d.n5O)(K))&&void 0!==y&&y,te="portrait"===U[a.dl],oe=(te?1.076*X*(0,d.HWj)(K):X*(0,d.N_4)(K))+"px",ie=(te?1.076*X*(0,d.HWj)(K):X*(0,d.N_4)(K))+"px",ne=(te?.965*X*(0,d.HWj)(K):.859*X*(0,d.N_4)(K))+"px",re=(0,d.VYo)(K),{whatmoreIsPreviewMode:le}=(0,i.useContext)(c.B),se=.25*X,ae=se+"px",[de,ce]=(0,i.useState)(e.event),[pe,ue]=(0,i.useState)(),he=Math.round(+(null===(f=de.products)||void 0===f||null===(x=f[0])||void 0===x?void 0:x.price)),ve=Math.round(+(null===de||void 0===de||null===(g=de.products[0])||void 0===g?void 0:g.compare_price)),me=ve&&0!=ve&&ve>he?Math.round((ve-he)/ve*100):NaN,[ye,fe]=(0,i.useState)(me),[xe,ge]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{(0,d.w4b)(K)&&(0,p.fu)(de,(0,d.NCy)(K),K).then((e=>{var t,o,i;ce(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),r=Math.round(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;fe(l),ge(!0)}));(async()=>{var e;const t=await(0,h.M)(null===de||void 0===de||null===(e=de.products)||void 0===e?void 0:e[0],(0,d.NCy)(K),K);ue(t),ge(!0)})()}),[]),(0,m.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",q.tileTopMargin+"px"),e.style.setProperty("margin-bottom",q.tileBottomMMargin+"px"))},className:ee&&!te?Z?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:X,margin:"0 auto",cursor:"pointer"},onClick:()=>{Y(de)},children:["video"===de.event_type&&"55076552858"===K&&!te&&(0,m.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*V,marginLeft:V/2},children:(0,m.jsx)(v.A,{sx:{color:(0,d.KFN)(de.whatmoreShopId)+" !important",opacity:.8,fontSize:V,filter:"drop-shadow(0 0 15px black);"}})}),(0,m.jsx)("div",{style:{width:X,height:te&&Z?"STR2FOC6KG9"==K||"STRDOIDF6O7"==K?D:1.1*D:D,borderRadius:"round"==G?"5px":"0px",boxShadow:"round"==G?re:null,borderWidth:(0,d.YcK)(K),borderColor:(0,d.Fwt)(K),overflow:"hidden"},children:(0,m.jsx)(l.A,{height:(0,d.u06)(K)+" !important",width:"100%",url:de.thumbnail_image,isPlaying:Z||J,event:de})}),(0,m.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(le?(0,d.Tr1)(K):(0,d.UmS)(K))&&(null===de||void 0===de||null===(w=de.products)||void 0===w?void 0:w.length)>0&&(0,m.jsx)("div",{style:{maxWidth:ae,minWidth:null!==(P=de.products)&&void 0!==P&&null!==(j=P[0])&&void 0!==j&&j.thumbnail_image?ae:"0",overflow:"hidden"},children:(0,m.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,d.KZe)(K),"important")},src:null===(C=de.products)||void 0===C||null===(S=C[0])||void 0===S?void 0:S.thumbnail_image,alt:"thumbnail"})}),(0,m.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(K),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",$,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,u.v)(null===(b=de.products[0])||void 0===b?void 0:b.title)}),xe&&(0,d.Nzx)(K)&&(0,m.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,d.vw2)(K)?"row":"row-reverse",justifyContent:(0,d.vw2)(K)?"flex-start":"flex-end"},children:[(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(K),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",$,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(K)?"normal":"bold"},children:(0,p.Sb)(parseFloat(null!==(M=null!==(A=null===pe||void 0===pe||null===(N=pe.variants)||void 0===N||null===(I=N[0])||void 0===I?void 0:I.price)&&void 0!==A?A:null===pe||void 0===pe?void 0:pe.price)&&void 0!==M?M:null===de||void 0===de||null===(k=de.products)||void 0===k||null===(O=k[0])||void 0===O?void 0:O.price)," ",K,null===(_=de.products[0])||void 0===_?void 0:_.currency)}),!isNaN(ve)&&ve>he&&(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.gld)(K),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",$,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,p.Sb)(parseFloat(null!==(F=null!==(R=null===pe||void 0===pe||null===(E=pe.variants)||void 0===E||null===(W=E[0])||void 0===W?void 0:W.compare_at_price)&&void 0!==R?R:null===pe||void 0===pe?void 0:pe.compare_at_price)&&void 0!==F?F:null===de||void 0===de||null===(T=de.products)||void 0===T||null===(z=T[0])||void 0===z?void 0:z.compare_price)," ",K,null===(B=de.products[0])||void 0===B?void 0:B.currency)})]}),(0,d.Nzx)(K)&&xe&&!isNaN(ye)&&0!=ye&&(0,m.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(K)?"#343434"==Q?(0,d.ub$)(K):Q:(0,d.ub$)(K),alignItems:"center",borderRadius:(0,d.v8m)(K)+"px",width:"fit-content",padding:(0,d.Cf)(K)?"3px 6px":"0px"},children:(0,d.Cf)(K)?(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.BRY)(K),"important"),e.style.setProperty("font-size",ne,"important"),e.style.setProperty("font-family",$,"important"))},children:`${ye}% Off`}):(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d._zx)(K),"important"),e.style.setProperty("font-size",ne,"important"),e.style.setProperty("font-family",(0,d.ogW)(K),"important"))},children:(0,d.rsz)(K)})})]})]})]})}},5727:function(e,t,o){var i=o(4994);t.A=void 0;var n=i(o(9526)),r=o(4414);t.A=(0,n.default)((0,r.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"}),"PlayArrowRounded")},4826:function(){},7229:function(){},4669:function(){},6042:function(){},9130:function(){}}]);