whatmore-react-assets 1.0.964 → 1.0.965

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.964",
3
+ "version": "1.0.965",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[820],{3867:function(t,e,i){var n=i(8816),o=i(417),r=i(4885),l=i(7753),s=i(8811),a=i(7313),d=i(6417);e.Z=function(t){var e;const{whatmoreUITheme:i}=(0,a.useContext)(s.I),[p]=(0,l.j1)("whatmoreSecondaryColor"),[c,h]=(0,l.j1)("productRatings"),u=(0,l.MO)("whatmorePrimaryFont"),x=(t.storeId,t.productId),m=(t.productLink,t.fontSize),f=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===c||"undefined"==typeof c||!(x in c)||c[x].avgRating>5)return(0,d.jsx)(d.Fragment,{});const y=c[x].avgRating,g=c[x].totalRatings;return(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(y))].map(((t,e)=>(0,d.jsx)(n.Z,{sx:{color:p,fontSize:m+"px"}},"star-icon"+e))),y-Math.floor(y)>.2?(0,d.jsx)(o.Z,{sx:{color:p,fontSize:m+"px"}},"star-half-icon"):y-Math.floor(y)==0?(0,d.jsx)(d.Fragment,{}):(0,d.jsx)(r.Z,{sx:{color:p,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-y))].map(((t,e)=>(0,d.jsx)(r.Z,{sx:{color:p,fontSize:m+"px"}},"star-outline-icon-"+e))),(0,d.jsx)("div",{children:(0,d.jsx)("div",{width:"2px"})}),(0,d.jsx)("div",{children:(0,d.jsx)("div",{style:{backgroundColor:p,borderRadius:"round"==i?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",y,"\xa0"]})})}),(0,d.jsx)("div",{children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+g+")"]})})]})})}},4095:function(t,e,i){i.r(e),i.d(e,{default:function(){return B}});var n=i(7313),o=i(6090),r=i(7616),l=i(8811),s=(i(6143),i(7850),i(4444),i(7244),i(123),i(5892),i(1811),i(9302)),a=i(2575),d=i(2210),p=i(8486),c=i(9821),h=i(8866),u=i(2279),x=i.n(u),m=i(7753),f=i(7129),y=i(9854),g=i(1855),w=i(4892),v=i(3933),j=i(1092),P=i(5945),C=i(5456),b=i(3867),I=i(9219),S=i(9363),k=i(7053),M=i(5416),O=i(6417);const F=n.lazy((()=>Promise.all([i.e(576),i.e(955),i.e(74),i.e(465)]).then(i.bind(i,6163))));var _=function(t){var e,i,o,r;const{whatmoreUITheme:s}=(0,n.useContext)(l.I);var[a,d]=(0,c.Z)();const[p]=(0,m.j1)("whatmorePrimaryFont"),[h]=(0,m.j1)("whatmoreSecondaryColorShade900"),[u]=(0,m.j1)("whatmoreShopId"),[x,f]=(0,n.useState)(0),[g,w]=(0,n.useState)(t.event),[v,j]=(0,n.useState)(),[_,z]=(0,n.useState)(!1),L=t.onClick,R=g.products.length,{whatmoreIsPreviewMode:Z}=(0,n.useContext)(l.I);if(0==R)return(0,O.jsx)(O.Fragment,{});(0,n.useEffect)((()=>{(0,y.N8M)(u)&&(0,I.p_)(g,(0,y.Ipo)(u),u).then((t=>{w(t),z(!0)}));(async()=>{var t;const e=await(0,k.p)(null===g||void 0===g||null===(t=g.products)||void 0===t?void 0:t[0],(0,y.Ipo)(u),u);j(e),z(!0)})()}),[]);const T=Z,W=.3*d,E=W+"px",A=W+"px",U=.05*d+"px",B=.07*d,D=B+"px",V=.05*d;return(0,O.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-around",alignItems:"center",marginTop:"2px",marginBottom:"2px",gap:"0px"},children:[(0,O.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:.95*d,height:"fit-content",paddingLeft:"4px",paddingRight:"4px",justifyContent:"space-between",alignItems:"center",gap:"4px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",onClick:L,children:[(0,O.jsx)("div",{style:{width:E,height:A,overflow:"hidden",backgroundColor:h,borderRadius:"round"==s?"5px":"0px",borderWidth:"0px"==(0,y.alU)(u)?"2px":(0,y.alU)(u),borderColor:"white"==(0,y.qPe)(u)?h:(0,y.qPe)(u)},children:(0,O.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,y.yOX)(u),"important")},src:(0,S.s)(g.products[x].thumbnail_image,"&width=".concat(400,"&height=",400)),style:{width:E,height:E,borderRadius:"round"==s?"5px":"0px",backgroundColor:h},alt:"product image"})}),(0,O.jsx)("div",{style:{width:.7*d+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"2px",borderRadius:"round"==s?"5px":"0px"},children:(0,O.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,O.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,O.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",U,"important"),t.style.setProperty("line-height","140%","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:(0,P.s)(g.products[x].title)})}),(0,O.jsxs)("div",{style:{display:"flex",flexFlow:(0,y.$zZ)(u)?"row nowrap":"row-reverse nowrap",width:"100%",height:"fit-content",justifyContent:(0,y.$zZ)(u)?"flex-start":"flex-end",alignItems:"center",gap:"4px"},children:[_&&(0,O.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.Uyp)(u),"important"),t.style.setProperty("font-size",D,"important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",p,"important"))},style:{textAlign:"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,I.jx)(parseFloat((0,M.G)()?null===v||void 0===v?void 0:v.price:null===g||void 0===g||null===(e=g.products)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price),"",u,g.products[x].currency)]}),(0,C.B)(g.products[x].price,g.products[x].compare_price)&&_?(0,O.jsxs)("strike",{ref:t=>{t&&(t.style.setProperty("color",(0,y.kPs)(u),"important"),t.style.setProperty("font-size",.9*B+"px","important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("text-decoration","line-through","important"))},style:{textAlign:"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,I.jx)(parseFloat((0,M.G)()?null===v||void 0===v?void 0:v.compare_at_price:null===g||void 0===g||null===(o=g.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_price),"",u,g.products[x].currency)]}):(0,O.jsx)(O.Fragment,{})]}),(0,O.jsx)(b.Z,{storeId:u,productId:g.products[x].client_product_id,productLink:g.products[x].product_link,fontSize:V})]})})]},x),(0,y.IXJ)(u)||T&&"5141594210"==u?(0,O.jsx)(n.Suspense,{children:(0,O.jsx)(F,{baseFontSize:.05*d,event:g,product:g.products[0],width:.9*d,height:"fit-content"})}):(0,O.jsx)(O.Fragment,{})]})},z=i(3388);i(8984);function L(t){const[e,i,o,r,s]=(0,c.Z)(),{whatmoreUITheme:a}=(0,n.useContext)(l.I),d=(0,m.MO)("whatmoreShowViews"),p=(0,m.MO)("whatmoreShopId"),h=((0,m.MO)("whatmoreSecondaryColorShade600"),t.PRODUCT_BOX_HEIGHT),u=t.PRODUCT_BOX_HEIGHT_IN_PX,x=t.PRODUCT_BOX_MARGIN,[f,g,w]=(0,v.YD)({triggerOnce:!0}),P=t.event;t.isOnFocus;return(0,O.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,O.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,O.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{t.onClick(P)},children:"show"===d?(0,O.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,O.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,O.jsx)(j.Z,{event:P,fontSize:.07*i+"px"})})}):(0,O.jsx)(O.Fragment,{})}),(0,O.jsx)("div",{style:{display:"flex",width:"100%",height:e-h+"px"},onClick:()=>{t.onClick(P)}}),(0,z.xg)(P,p)?(0,O.jsx)("div",{style:{position:"relative",zIndex:1,bottom:x+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:.95*i,height:u,marginLeft:x+"px",marginRight:x+"px",backgroundColor:"white",borderRadius:"round"==a?"5px":"0px",borderWidth:(0,y.alU)(p),borderColor:(0,y.qPe)(p),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,O.jsx)("div",{ref:f,children:g&&(0,y.PWD)(p)?(0,O.jsx)(_,{event:P,onClick:()=>{var e,i;(0,y.I6m)(p)?window.location.href=(i=null===(e=P.products)||void 0===e?void 0:e[0],(0,y.lj5)(p)?i.product_link+"?"+(0,y.awP)(p)+"&"+(0,y.n9s)(p)+"&"+(0,y.vaK)(p):i.product_link):t.onClick(P)}}):(0,O.jsx)("div",{height:"20px"})})}):(0,O.jsx)(O.Fragment,{})]})})}var R=function(t){var e,i,o;const[r,s,a,d,p]=(0,c.Z)();var h=(0,n.useContext)(f.V);const{whatmoreUITheme:u}=(0,n.useContext)(l.I),x=(0,m.MO)("whatmoreShopId"),g=(0,m.MO)("whatmoreSecondaryColorShade600"),v=t.event,j=t.onClick,P=null===(e=t.isOnFocus)||void 0===e||e,C=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,b=null!==(o=t.animateOnFocus&&(0,y.iWI)(x))&&void 0!==o&&o,I=(0,y.IXJ)(x)?.7:.8,S=r*I+"px",k=1-I,M=r*k,F=r*k+"px",_=r*k*.1,R=(0,y.nzC)(x);return(0,O.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",h.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",h.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:s+"px",height:1.2*r+"px",borderRadius:"round"==u?"5px":"0px",boxShadow:"round"==u?R:null,borderWidth:(0,y.alU)(x),borderColor:(0,y.qPe)(x),overflow:"hidden",cursor:"pointer",position:"relative"},className:b?P?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",children:[(0,O.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},className:"whatmore-template-b-event-tile",onClick:()=>{j(v)},children:[(0,O.jsx)(w.Z,{height:S,width:"100%",url:v.thumbnail_image,isPlaying:P||C,event:v}),(0,z.xg)(v,x)?(0,O.jsx)("div",{style:{width:"100%",height:F,backgroundColor:g}}):(0,O.jsx)(O.Fragment,{})]}),(0,O.jsx)(L,{event:v,isOnFocus:P,PRODUCT_BOX_HEIGHT:M,PRODUCT_BOX_HEIGHT_IN_PX:F,PRODUCT_BOX_MARGIN:_,onClick:j})]})},Z=i(778),T=i(4522),W=i(7381);const E=(0,a.Z)({key:"whatmore-css-hv"});function A(t){const[e,i,o]=(0,c.Z)(),r=(0,m.MO)("whatmoreShopId"),s=t.events,a=t.onClick,p=o*(0,y.u6l)(r),{whatmoreWidgetSourceDetails:h}=(0,n.useContext)(l.I);return(0,O.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,O.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,O.jsx)(d.tq,{slidesPerView:s.length>1?p:1,initialSlide:s.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:t=>{(0,T.y4)({userInteractionType:Z.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:h})},children:s.map((t=>(0,O.jsx)(d.o5,{children:e=>{let{isActive:i,isPrev:n,isNext:o,isVisible:r}=e;return n||o||i?(0,O.jsx)(R,{isOnFocus:i&&r,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{a(t)}}):(0,O.jsx)(g.Z,{})}},"whatmore-event-tile-portrait-"+t.index)))})})})}function U(t){const[e,i,o,r]=(0,c.Z)(),[s,a]=(0,n.useState)(-1),h=(0,m.MO)("whatmoreShopId"),u=t.onClick,f=t.events,w=Math.min(o,f.length),{whatmoreWidgetSourceDetails:v}=(0,n.useContext)(l.I);return(0,O.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},children:(0,O.jsx)("div",{style:{width:i*w*1.1+"px"},children:(0,O.jsx)(d.tq,{slidesPerView:w,watchSlidesProgress:!0,modules:[p.W_],navigation:!0,slidesPerGroup:parseInt(w),onSlideChange:()=>{(0,T.y4)({userInteractionType:Z.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:v})},spaceBetween:(0,y.WGf)(h),children:f.map(((t,e)=>{const i=x()((()=>a(e)),300);return(0,O.jsx)(d.o5,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),a(-1)},children:i=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l}=i;return l?(0,O.jsx)(R,{isOnFocus:e==s,playOnUnfocus:!(0,y.dHy)(h)||e==parseInt(w/2)&&-1==s,animateOnFocus:!0,event:t,onClick:()=>{u(t)}}):(0,O.jsx)(g.Z,{})}},"whatmore-event-tile-landscape-"+t.index)}))})})})}var B=function(t){const[e,i,a]=(0,h.Z)(),[d]=(0,m.j1)("whatmorePrimaryColor"),[p]=(0,m.j1)("whatmoreShopId"),[c]=(0,m.j1)("whatmoreSecondaryColor"),[u]=(0,m.j1)("whatmoreTitleFont"),x="portrait"==e?(0,m.MO)("whatmoreTitleFontSizePortrait"):(0,m.MO)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,n.useContext)(l.I),g=((0,m.MO)("isInDesignMode"),t.events),w=t.onClick,v=u,j=(0,m.MO)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:P}=(0,n.useContext)(l.I);function C(t){w(t)}function b(t){const e=t.indexOf(" ",t.indexOf(" ")+1);return-1===e?[t,""]:[t.substring(0,e),t.substring(e)]}return(0,n.useEffect)((()=>{(0,W.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{l.$.forEach((t=>{var e;const i=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-b"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-b"]');if(!i)return;i&&t&&(t.style.minHeight="0px")}))}),[]),delete r.ZP.styles.global,(0,O.jsx)(s.C,{value:E,children:(0,O.jsx)("div",{className:"whatmore-carousel-events",children:(0,O.jsx)(o.x,{theme:r.ZP,cssVarsRoot:y,resetCSS:!1,children:(0,O.jsxs)(f.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!1},children:["10588815418"!==p&&"2310668401"!==p&&"10648977444"!==p&&(t.heading.trim().length>0||P)?(0,O.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,O.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:P?"W"!==j?j:"":t.heading})}):(0,O.jsx)(O.Fragment,{}),"10588815418"==p||"2310668401"==p||"10648977444"==p?(0,O.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"left"},children:(0,O.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,O.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontStyle:"normal"},children:P?"W"!==j?j:"":b(t.heading)[0]}),(0,O.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family","Austin Text SemiBold Trial","important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:P?"W"!==j?j:"":b(t.heading)[1]})]})}):(0,O.jsx)(O.Fragment,{}),"landscape"===e?(0,O.jsx)(U,{events:g,onClick:C}):(0,O.jsx)(A,{events:g,onClick:C})]})})})})}},1092:function(t,e,i){var n=i(237),o=i(9854),r=i(7753),l=i(8811),s=i(7313),a=i(6417);function d(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.Z=function(t){const{whatmoreUITheme:e}=(0,s.useContext)(l.I),i=(0,r.MO)("whatmoreShopId"),p=(0,r.MO)("whatmorePrimaryFont"),c=t.event,h=t.fontSize;if(c.total_views<=0)return(0,a.jsx)(a.Fragment,{});const u=(0,o.S_M)(i);return"template-icon"==u?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XCH)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.alU)(i),borderColor:(0,o.qPe)(i)},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)(n.Z,{sx:{color:(0,o.aLw)(i)+" !important",fontSize:h,fontWeight:"normal"}})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aLw)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("font-size",h,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+d(c.total_views)+" "})})]})})}):"template-text"==u?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XCH)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.alU)(i),borderColor:(0,o.qPe)(i)},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aLw)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"))},style:{fontSize:h,fontWeight:"bold"},children:" "+d(c.total_views)+" views"})})})})}):void 0}},7129:function(t,e,i){i.d(e,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},1855:function(t,e,i){var n=i(7313),o=i(9821),r=i(7129),l=i(6417);e.Z=function(t){var[e,i]=(0,o.Z)();return(0,n.useContext)(r.V),t.event,(0,l.jsx)("div",{style:{margin:"0 auto",width:i,height:e,overflow:"hidden"}})}},9363:function(t,e,i){i.d(e,{$:function(){return l},s:function(){return r}});var n=i(9854),o=i(7753);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const i=(0,o.MO)("whatmoreShopId");return"shopify"!=(0,n.Ipo)(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],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(i)?"image":null!==o&&void 0!==o&&o.test(i)?"video":void 0}},5456:function(t,e,i){i.d(e,{B: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))}},6805:function(t,e,i){i.d(e,{$I:function(){return s},$w:function(){return d},AK:function(){return r},AL:function(){return l},YP:function(){return o},me:function(){return n},rE:function(){return a}});const n="device_type",o="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},9821:function(t,e,i){var n=i(6367),o=i(7753),r=i(8866),l=i(6805);e.Z=function(t){const[e,i,s]=(0,r.Z)(),[a]=(0,o.j1)("whatmoreLandscapePadding"),[d]=(0,o.j1)("whatmoreVideoTileSize"),[p]=(0,o.j1)("whatmoreVideoTileSizePortrait"),c=(0,n.useMediaQuery)({query:"(min-width: 1025px)"}),h=(0,n.useMediaQuery)({query:"(min-width: 481px)"}),u="portrait"==e?p:d,x=!("portrait"!=e||!h),m=u/100*1.3*.5,f=u/100;var y=Math.min(s,i),[g,w,v,j]=[.6*y*(16/9),.6*y,1.4,0];function P(t){return Math.round(10*t)/10}var C={DEVICE_TYPE:l.AK,DEVICE_MODE:l.rE};if(c){const t=w*m,e=g*m;[g,w,v,j]=[e,t,(s-2*a)/(1.1*t),a],C[l.me]=l.$I,C[l.YP]=l.$w}else if(x){var b=.8*w,I=.8*g;"portrait"==e?(b*=f,I*=f,[g,w,v,j]=[I,b,P(s/(1.2*b)),0],C[l.me]=l.AL,C[l.YP]=l.rE):([g,w,v,j]=[I,b,(s-2*a)/(1.1*b),a],C[l.me]=l.AL,C[l.YP]=l.$w)}else{b=w,I=g;"portrait"==e?(b=b*f*.9,I=I*f*.9,[g,w,v,j]=[I,b,P(s/(1.15*b)),0],C[l.me]=l.AK,C[l.YP]=l.rE):(b=.7*w,I=.7*g,[g,w,v,j]=[I,b,(s-2*a)/(1.1*b),a],C[l.me]=l.AK,C[l.YP]=l.$w)}return[g,w,v,j,C]}},8816:function(t,e,i){var n=i(4836);e.Z=void 0;var o=n(i(5045)),r=i(6417),l=(0,o.default)((0,r.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");e.Z=l},417:function(t,e,i){var n=i(4836);e.Z=void 0;var o=n(i(5045)),r=i(6417),l=(0,o.default)((0,r.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.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=l},4885:function(t,e,i){var n=i(4836);e.Z=void 0;var o=n(i(5045)),r=i(6417),l=(0,o.default)((0,r.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.03L22 9.24zM12 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.28L12 15.4z"}),"StarOutline");e.Z=l},237:function(t,e,i){var n=i(4836);e.Z=void 0;var o=n(i(5045)),r=i(6417),l=(0,o.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");e.Z=l},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[820],{3867:function(t,e,i){var n=i(8816),o=i(417),r=i(4885),l=i(7753),s=i(8811),a=i(7313),d=i(6417);e.Z=function(t){var e;const{whatmoreUITheme:i}=(0,a.useContext)(s.I),[p]=(0,l.j1)("whatmoreSecondaryColor"),[c,h]=(0,l.j1)("productRatings"),u=(0,l.MO)("whatmorePrimaryFont"),x=(t.storeId,t.productId),m=(t.productLink,t.fontSize),f=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===c||"undefined"==typeof c||!(x in c)||c[x].avgRating>5)return(0,d.jsx)(d.Fragment,{});const y=c[x].avgRating,g=c[x].totalRatings;return(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(y))].map(((t,e)=>(0,d.jsx)(n.Z,{sx:{color:p,fontSize:m+"px"}},"star-icon"+e))),y-Math.floor(y)>.2?(0,d.jsx)(o.Z,{sx:{color:p,fontSize:m+"px"}},"star-half-icon"):y-Math.floor(y)==0?(0,d.jsx)(d.Fragment,{}):(0,d.jsx)(r.Z,{sx:{color:p,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-y))].map(((t,e)=>(0,d.jsx)(r.Z,{sx:{color:p,fontSize:m+"px"}},"star-outline-icon-"+e))),(0,d.jsx)("div",{children:(0,d.jsx)("div",{width:"2px"})}),(0,d.jsx)("div",{children:(0,d.jsx)("div",{style:{backgroundColor:p,borderRadius:"round"==i?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",y,"\xa0"]})})}),(0,d.jsx)("div",{children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",u,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+g+")"]})})]})})}},4095:function(t,e,i){i.r(e),i.d(e,{default:function(){return B}});var n=i(7313),o=i(6090),r=i(7616),l=i(8811),s=(i(6143),i(7850),i(4444),i(7244),i(123),i(5892),i(1811),i(9302)),a=i(2575),d=i(2210),p=i(8486),c=i(9821),h=i(8866),u=i(2279),x=i.n(u),m=i(7753),f=i(7129),y=i(9854),g=i(1855),w=i(4892),v=i(3933),j=i(1092),P=i(5945),C=i(5456),b=i(3867),I=i(9219),S=i(9363),k=i(7053),M=i(5416),O=i(6417);const F=n.lazy((()=>Promise.all([i.e(576),i.e(955),i.e(74),i.e(465)]).then(i.bind(i,6163))));var _=function(t){var e,i,o,r;const{whatmoreUITheme:s}=(0,n.useContext)(l.I);var[a,d]=(0,c.Z)();const[p]=(0,m.j1)("whatmorePrimaryFont"),[h]=(0,m.j1)("whatmoreSecondaryColorShade900"),[u]=(0,m.j1)("whatmoreShopId"),[x,f]=(0,n.useState)(0),[g,w]=(0,n.useState)(t.event),[v,j]=(0,n.useState)(),[_,z]=(0,n.useState)(!1),L=t.onClick,R=g.products.length,{whatmoreIsPreviewMode:Z}=(0,n.useContext)(l.I);if(0==R)return(0,O.jsx)(O.Fragment,{});(0,n.useEffect)((()=>{(0,y.N8M)(u)&&(0,I.p_)(g,(0,y.Ipo)(u),u).then((t=>{w(t),z(!0)}));(async()=>{var t;const e=await(0,k.p)(null===g||void 0===g||null===(t=g.products)||void 0===t?void 0:t[0],(0,y.Ipo)(u),u);j(e),z(!0)})()}),[]);const T=Z,W=.3*d,E=W+"px",A=W+"px",U=.05*d+"px",B=.07*d,D=B+"px",V=.05*d;return(0,O.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-around",alignItems:"center",marginTop:"2px",marginBottom:"2px",gap:"0px"},children:[(0,O.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:.95*d,height:"fit-content",paddingLeft:"4px",paddingRight:"4px",justifyContent:"space-between",alignItems:"center",gap:"4px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",onClick:L,children:[(0,O.jsx)("div",{style:{width:E,height:A,overflow:"hidden",backgroundColor:h,borderRadius:"round"==s?"5px":"0px",borderWidth:"0px"==(0,y.alU)(u)?"2px":(0,y.alU)(u),borderColor:"white"==(0,y.qPe)(u)?h:(0,y.qPe)(u)},children:(0,O.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,y.yOX)(u),"important")},src:(0,S.s)(g.products[x].thumbnail_image,"&width=".concat(400,"&height=",400)),style:{width:E,height:E,borderRadius:"round"==s?"5px":"0px",backgroundColor:h},alt:"product image"})}),(0,O.jsx)("div",{style:{width:.7*d+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"2px",borderRadius:"round"==s?"5px":"0px"},children:(0,O.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,O.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,O.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",U,"important"),t.style.setProperty("line-height","140%","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:(0,P.s)(g.products[x].title)})}),(0,O.jsxs)("div",{style:{display:"flex",flexFlow:(0,y.$zZ)(u)?"row nowrap":"row-reverse nowrap",width:"100%",height:"fit-content",justifyContent:(0,y.$zZ)(u)?"flex-start":"flex-end",alignItems:"center",gap:"4px"},children:[_&&(0,O.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,y.Uyp)(u),"important"),t.style.setProperty("font-size",D,"important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",p,"important"))},style:{textAlign:"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,I.jx)(parseFloat((0,M.G)()?null===v||void 0===v?void 0:v.price:null===g||void 0===g||null===(e=g.products)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.price),"",u,g.products[x].currency)]}),(0,C.B)(g.products[x].price,g.products[x].compare_price)&&_?(0,O.jsxs)("strike",{ref:t=>{t&&(t.style.setProperty("color",(0,y.kPs)(u),"important"),t.style.setProperty("font-size",.9*B+"px","important"),t.style.setProperty("line-height","140%","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("text-decoration","line-through","important"))},style:{textAlign:"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,I.jx)(parseFloat((0,M.G)()?null===v||void 0===v?void 0:v.compare_at_price:null===g||void 0===g||null===(o=g.products)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.compare_price),"",u,g.products[x].currency)]}):(0,O.jsx)(O.Fragment,{})]}),(0,O.jsx)(b.Z,{storeId:u,productId:g.products[x].client_product_id,productLink:g.products[x].product_link,fontSize:V})]})})]},x),(0,y.IXJ)(u)||T&&"5141594210"==u?(0,O.jsx)(n.Suspense,{children:(0,O.jsx)(F,{baseFontSize:.05*d,event:g,product:g.products[0],width:.9*d,height:"fit-content"})}):(0,O.jsx)(O.Fragment,{})]})},z=i(3388);i(8984);function L(t){const[e,i,o,r,s]=(0,c.Z)(),{whatmoreUITheme:a}=(0,n.useContext)(l.I),d=(0,m.MO)("whatmoreShowViews"),p=(0,m.MO)("whatmoreShopId"),h=((0,m.MO)("whatmoreSecondaryColorShade600"),t.PRODUCT_BOX_HEIGHT),u=t.PRODUCT_BOX_HEIGHT_IN_PX,x=t.PRODUCT_BOX_MARGIN,[f,g,w]=(0,v.YD)({triggerOnce:!0}),P=t.event;t.isOnFocus;return(0,O.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,O.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,O.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{t.onClick(P)},children:"show"===d?(0,O.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,O.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,O.jsx)(j.Z,{event:P,fontSize:.07*i+"px"})})}):(0,O.jsx)(O.Fragment,{})}),(0,O.jsx)("div",{style:{display:"flex",width:"100%",height:e-h+"px"},onClick:()=>{t.onClick(P)}}),(0,z.xg)(P,p)?(0,O.jsx)("div",{style:{position:"relative",zIndex:1,bottom:x+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:.95*i,height:u,marginLeft:x+"px",marginRight:x+"px",backgroundColor:"white",borderRadius:"round"==a?"5px":"0px",borderWidth:(0,y.alU)(p),borderColor:(0,y.qPe)(p),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,O.jsx)("div",{ref:f,children:g&&(0,y.PWD)(p)?(0,O.jsx)(_,{event:P,onClick:()=>{var e,i;(0,y.I6m)(p)?window.location.href=(i=null===(e=P.products)||void 0===e?void 0:e[0],(0,y.lj5)(p)?i.product_link+"?"+(0,y.awP)(p)+"&"+(0,y.n9s)(p)+"&"+(0,y.vaK)(p):i.product_link):t.onClick(P)}}):(0,O.jsx)("div",{height:"20px"})})}):(0,O.jsx)(O.Fragment,{})]})})}var R=function(t){var e,i,o;const[r,s,a,d,p]=(0,c.Z)();var h=(0,n.useContext)(f.V);const{whatmoreUITheme:u}=(0,n.useContext)(l.I),x=(0,m.MO)("whatmoreShopId"),g=(0,m.MO)("whatmoreSecondaryColorShade600"),v=t.event,j=t.onClick,P=null===(e=t.isOnFocus)||void 0===e||e,C=null!==(i=t.playOnUnfocus)&&void 0!==i&&i,b=null!==(o=t.animateOnFocus&&(0,y.iWI)(x))&&void 0!==o&&o,I=(0,y.IXJ)(x)?.7:.8,S=1-I,k=r*S,M=r*S+"px",F=r*S*.1,_=(0,y.nzC)(x);return(0,O.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",h.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",h.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:s+"px",height:1.2*r+"px",borderRadius:"round"==u?"5px":"0px",boxShadow:"round"==u?_:null,borderWidth:(0,y.alU)(x),borderColor:(0,y.qPe)(x),overflow:"hidden",cursor:"pointer",position:"relative"},className:b?P?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",children:[(0,O.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},className:"whatmore-template-b-event-tile",onClick:()=>{j(v)},children:[(0,O.jsx)(w.Z,{height:(0,y.dXm)(x),width:"100%",url:v.thumbnail_image,isPlaying:P||C,event:v}),(0,z.xg)(v,x)?(0,O.jsx)("div",{style:{width:"100%",height:M,backgroundColor:g}}):(0,O.jsx)(O.Fragment,{})]}),(0,O.jsx)(L,{event:v,isOnFocus:P,PRODUCT_BOX_HEIGHT:k,PRODUCT_BOX_HEIGHT_IN_PX:M,PRODUCT_BOX_MARGIN:F,onClick:j})]})},Z=i(778),T=i(4522),W=i(7381);const E=(0,a.Z)({key:"whatmore-css-hv"});function A(t){const[e,i,o]=(0,c.Z)(),r=(0,m.MO)("whatmoreShopId"),s=t.events,a=t.onClick,p=o*(0,y.u6l)(r),{whatmoreWidgetSourceDetails:h}=(0,n.useContext)(l.I);return(0,O.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,O.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,O.jsx)(d.tq,{slidesPerView:s.length>1?p:1,initialSlide:s.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:t=>{(0,T.y4)({userInteractionType:Z.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:h})},children:s.map((t=>(0,O.jsx)(d.o5,{children:e=>{let{isActive:i,isPrev:n,isNext:o,isVisible:r}=e;return n||o||i?(0,O.jsx)(R,{isOnFocus:i&&r,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{a(t)}}):(0,O.jsx)(g.Z,{})}},"whatmore-event-tile-portrait-"+t.index)))})})})}function U(t){const[e,i,o,r]=(0,c.Z)(),[s,a]=(0,n.useState)(-1),h=(0,m.MO)("whatmoreShopId"),u=t.onClick,f=t.events,w=Math.min(o,f.length),{whatmoreWidgetSourceDetails:v}=(0,n.useContext)(l.I);return(0,O.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},children:(0,O.jsx)("div",{style:{width:i*w*1.1+"px"},children:(0,O.jsx)(d.tq,{slidesPerView:w,watchSlidesProgress:!0,modules:[p.W_],navigation:!0,slidesPerGroup:parseInt(w),onSlideChange:()=>{(0,T.y4)({userInteractionType:Z.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:v})},spaceBetween:(0,y.WGf)(h),children:f.map(((t,e)=>{const i=x()((()=>a(e)),300);return(0,O.jsx)(d.o5,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),a(-1)},children:i=>{let{isActive:n,isPrev:o,isNext:r,isVisible:l}=i;return l?(0,O.jsx)(R,{isOnFocus:e==s,playOnUnfocus:!(0,y.dHy)(h)||e==parseInt(w/2)&&-1==s,animateOnFocus:!0,event:t,onClick:()=>{u(t)}}):(0,O.jsx)(g.Z,{})}},"whatmore-event-tile-landscape-"+t.index)}))})})})}var B=function(t){const[e,i,a]=(0,h.Z)(),[d]=(0,m.j1)("whatmorePrimaryColor"),[p]=(0,m.j1)("whatmoreShopId"),[c]=(0,m.j1)("whatmoreSecondaryColor"),[u]=(0,m.j1)("whatmoreTitleFont"),x="portrait"==e?(0,m.MO)("whatmoreTitleFontSizePortrait"):(0,m.MO)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,n.useContext)(l.I),g=((0,m.MO)("isInDesignMode"),t.events),w=t.onClick,v=u,j=(0,m.MO)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:P}=(0,n.useContext)(l.I);function C(t){w(t)}function b(t){const e=t.indexOf(" ",t.indexOf(" ")+1);return-1===e?[t,""]:[t.substring(0,e),t.substring(e)]}return(0,n.useEffect)((()=>{(0,W.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{l.$.forEach((t=>{var e;const i=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-b"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-b"]');if(!i)return;i&&t&&(t.style.minHeight="0px")}))}),[]),delete r.ZP.styles.global,(0,O.jsx)(s.C,{value:E,children:(0,O.jsx)("div",{className:"whatmore-carousel-events",children:(0,O.jsx)(o.x,{theme:r.ZP,cssVarsRoot:y,resetCSS:!1,children:(0,O.jsxs)(f.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!1},children:["10588815418"!==p&&"2310668401"!==p&&"10648977444"!==p&&(t.heading.trim().length>0||P)?(0,O.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,O.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:P?"W"!==j?j:"":t.heading})}):(0,O.jsx)(O.Fragment,{}),"10588815418"==p||"2310668401"==p||"10648977444"==p?(0,O.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"left"},children:(0,O.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[(0,O.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",v,"important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center",fontStyle:"normal"},children:P?"W"!==j?j:"":b(t.heading)[0]}),(0,O.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family","Austin Text SemiBold Trial","important"),t.style.setProperty("font-size",x+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:P?"W"!==j?j:"":b(t.heading)[1]})]})}):(0,O.jsx)(O.Fragment,{}),"landscape"===e?(0,O.jsx)(U,{events:g,onClick:C}):(0,O.jsx)(A,{events:g,onClick:C})]})})})})}},1092:function(t,e,i){var n=i(237),o=i(9854),r=i(7753),l=i(8811),s=i(7313),a=i(6417);function d(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.Z=function(t){const{whatmoreUITheme:e}=(0,s.useContext)(l.I),i=(0,r.MO)("whatmoreShopId"),p=(0,r.MO)("whatmorePrimaryFont"),c=t.event,h=t.fontSize;if(c.total_views<=0)return(0,a.jsx)(a.Fragment,{});const u=(0,o.S_M)(i);return"template-icon"==u?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XCH)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.alU)(i),borderColor:(0,o.qPe)(i)},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)(n.Z,{sx:{color:(0,o.aLw)(i)+" !important",fontSize:h,fontWeight:"normal"}})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aLw)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("font-size",h,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+d(c.total_views)+" "})})]})})}):"template-text"==u?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XCH)(i),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.alU)(i),borderColor:(0,o.qPe)(i)},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aLw)(i),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"))},style:{fontSize:h,fontWeight:"bold"},children:" "+d(c.total_views)+" views"})})})})}):void 0}},7129:function(t,e,i){i.d(e,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},1855:function(t,e,i){var n=i(7313),o=i(9821),r=i(7129),l=i(6417);e.Z=function(t){var[e,i]=(0,o.Z)();return(0,n.useContext)(r.V),t.event,(0,l.jsx)("div",{style:{margin:"0 auto",width:i,height:e,overflow:"hidden"}})}},9363:function(t,e,i){i.d(e,{$:function(){return l},s:function(){return r}});var n=i(9854),o=i(7753);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const i=(0,o.MO)("whatmoreShopId");return"shopify"!=(0,n.Ipo)(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],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(i)?"image":null!==o&&void 0!==o&&o.test(i)?"video":void 0}},5456:function(t,e,i){i.d(e,{B: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))}},6805:function(t,e,i){i.d(e,{$I:function(){return s},$w:function(){return d},AK:function(){return r},AL:function(){return l},YP:function(){return o},me:function(){return n},rE:function(){return a}});const n="device_type",o="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},9821:function(t,e,i){var n=i(6367),o=i(7753),r=i(8866),l=i(6805);e.Z=function(t){const[e,i,s]=(0,r.Z)(),[a]=(0,o.j1)("whatmoreLandscapePadding"),[d]=(0,o.j1)("whatmoreVideoTileSize"),[p]=(0,o.j1)("whatmoreVideoTileSizePortrait"),c=(0,n.useMediaQuery)({query:"(min-width: 1025px)"}),h=(0,n.useMediaQuery)({query:"(min-width: 481px)"}),u="portrait"==e?p:d,x=!("portrait"!=e||!h),m=u/100*1.3*.5,f=u/100;var y=Math.min(s,i),[g,w,v,j]=[.6*y*(16/9),.6*y,1.4,0];function P(t){return Math.round(10*t)/10}var C={DEVICE_TYPE:l.AK,DEVICE_MODE:l.rE};if(c){const t=w*m,e=g*m;[g,w,v,j]=[e,t,(s-2*a)/(1.1*t),a],C[l.me]=l.$I,C[l.YP]=l.$w}else if(x){var b=.8*w,I=.8*g;"portrait"==e?(b*=f,I*=f,[g,w,v,j]=[I,b,P(s/(1.2*b)),0],C[l.me]=l.AL,C[l.YP]=l.rE):([g,w,v,j]=[I,b,(s-2*a)/(1.1*b),a],C[l.me]=l.AL,C[l.YP]=l.$w)}else{b=w,I=g;"portrait"==e?(b=b*f*.9,I=I*f*.9,[g,w,v,j]=[I,b,P(s/(1.15*b)),0],C[l.me]=l.AK,C[l.YP]=l.rE):(b=.7*w,I=.7*g,[g,w,v,j]=[I,b,(s-2*a)/(1.1*b),a],C[l.me]=l.AK,C[l.YP]=l.$w)}return[g,w,v,j,C]}},8816:function(t,e,i){var n=i(4836);e.Z=void 0;var o=n(i(5045)),r=i(6417),l=(0,o.default)((0,r.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");e.Z=l},417:function(t,e,i){var n=i(4836);e.Z=void 0;var o=n(i(5045)),r=i(6417),l=(0,o.default)((0,r.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.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=l},4885:function(t,e,i){var n=i(4836);e.Z=void 0;var o=n(i(5045)),r=i(6417),l=(0,o.default)((0,r.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.03L22 9.24zM12 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.28L12 15.4z"}),"StarOutline");e.Z=l},237:function(t,e,i){var n=i(4836);e.Z=void 0;var o=n(i(5045)),r=i(6417),l=(0,o.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");e.Z=l},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);