whatmore-react-assets 1.0.341 → 1.0.343

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[95],{51:function(e,t,n){n.d(t,{Z:function(){return r}});n(7313);var i=n(6417);var r=function(e){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("span",{className:"whatmore-loading-indicator"})})}},4095:function(e,t,n){n.r(t),n.d(t,{default:function(){return E}});var i=n(7313),r=n(4664),o=n(7616),s=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),l=n(2575),a=n(2210),d=n(8486),c=n(9821),h=n(8866),p=n(2279),u=n.n(p),f=n(7753),x=n(7129),m=n(9854),y=n(4136),g=n(1855),w=n(4892),v=n(3933),j=n(1092),b=n(5945),C=n(5456),P=n(3867),I=n(9219),k=n(6417);const F=i.lazy((()=>Promise.all([n.e(576),n.e(843),n.e(607),n.e(12)]).then(n.bind(n,6163))));var O=function(e){const{whatmoreUITheme:t}=(0,i.useContext)(y.I);var[n,r]=(0,c.Z)();const[o]=(0,f.j1)("whatmorePrimaryFont"),[s]=(0,f.j1)("whatmoreSecondaryColorShade900"),[l]=(0,f.j1)("whatmoreShopId"),[a,d]=(0,i.useState)(0),[h,p]=(0,i.useState)(e.event),u=e.onClick,x=h.products.length;if(0==x)return(0,k.jsx)(k.Fragment,{});(0,i.useEffect)((()=>{const e=setInterval((()=>{d((e=>(e+1)%x))}),4e3);return()=>{clearInterval(e)}}),[]),(0,i.useEffect)((()=>{(0,m.N8)(l)&&(0,I.p_)(h,(0,m.Ip)(l),l).then((e=>{p(e)}))}),[]);const g=.3*r,w=g+"px",v=g+"px",j=.05*r+"px",O=.07*r,M=O+"px",S=.05*r;return(0,k.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,k.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:.95*r,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:u,children:[(0,k.jsx)("div",{style:{width:w,height:v,overflow:"hidden",backgroundColor:s,borderRadius:"round"==t?"5px":"0px",borderWidth:"0px"==(0,m.al)(l)?"2px":(0,m.al)(l),borderColor:"white"==(0,m.qP)(l)?s:(0,m.qP)(l)},children:(0,k.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,m.yO)(l),"important")},src:h.products[a].thumbnail_image,style:{width:w,height:w,borderRadius:"round"==t?"5px":"0px",backgroundColor:s},alt:"product image"})}),(0,k.jsx)("div",{style:{width:.7*r+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"2px",borderRadius:"round"==t?"5px":"0px"},children:(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",paddingTop:"5px"},children:[(0,k.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,k.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size",j,"important"),e.style.setProperty("line-height","140%","important"),e.style.setProperty("font-family",o,"important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"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"))},style:{textAlign:"left",fontWeight:"medium"},children:(0,b.s)(h.products[a].title)})}),(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"4px"},children:[(0,k.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size",M,"important"),e.style.setProperty("line-height","140%","important"),e.style.setProperty("font-family",o,"important"))},style:{textAlign:"left",fontWeight:"medium",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",(0,I.jx)(parseFloat(h.products[a].price),"",l,h.products[a].currency)]}),(0,k.jsx)("div",{children:(0,C.B)(h.products[a].price,h.products[a].compare_price)?(0,k.jsxs)("strike",{ref:e=>{e&&(e.style.setProperty("color","gray","important"),e.style.setProperty("font-size",.9*O+"px","important"),e.style.setProperty("line-height","140%","important"),e.style.setProperty("font-family",o,"important"),e.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(h.products[a].compare_price),"",l,h.products[a].currency)]}):(0,k.jsx)(k.Fragment,{})})]}),(0,k.jsx)(P.Z,{storeId:l,productId:h.products[a].client_product_id,productLink:h.products[a].product_link,fontSize:S})]})})]},a),(0,m.IX)(l)?(0,k.jsx)(i.Suspense,{children:(0,k.jsx)(F,{baseFontSize:.05*r,event:h,product:h.products[0],width:.9*r,height:"fit-content"})}):(0,k.jsx)(k.Fragment,{})]})},M=n(3388);function S(e){const[t,n,r,o,s]=(0,c.Z)(),{whatmoreUITheme:l}=(0,i.useContext)(y.I),a=(0,f.MO)("whatmoreShowViews"),d=(0,f.MO)("whatmoreShopId"),h=((0,f.MO)("whatmoreSecondaryColorShade600"),e.PRODUCT_BOX_HEIGHT),p=e.PRODUCT_BOX_HEIGHT_IN_PX,u=e.PRODUCT_BOX_MARGIN,[x,g,w]=(0,v.YD)({triggerOnce:!0}),b=e.event;e.isOnFocus;return(0,k.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,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,k.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center",width:"100%"},onClick:()=>{e.onClick(b)},children:"show"===a?(0,k.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,k.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,k.jsx)(j.Z,{event:b,fontSize:.07*n+"px"})})}):(0,k.jsx)(k.Fragment,{})}),(0,k.jsx)("div",{style:{display:"flex",width:"100%",height:t-h+"px"},onClick:()=>{e.onClick(b)}}),(0,M.xg)(b,d)?(0,k.jsx)("div",{style:{position:"relative",zIndex:1,bottom:u+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:.95*n,height:p,marginLeft:u+"px",marginRight:u+"px",backgroundColor:"white",borderRadius:"round"==l?"5px":"0px",borderWidth:(0,m.al)(d),borderColor:(0,m.qP)(d),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,k.jsx)("div",{ref:x,children:g&&(0,m.PW)(d)?(0,k.jsx)(O,{event:b,onClick:()=>{e.onClick(b)}}):(0,k.jsx)("div",{height:"20px"})})}):(0,k.jsx)(k.Fragment,{})]})})}var z=function(e){var t,n,r;const[o,s,l,a,d]=(0,c.Z)();var h=(0,i.useContext)(x.V);const{whatmoreUITheme:p}=(0,i.useContext)(y.I),u=(0,f.MO)("whatmoreShopId"),g=(0,f.MO)("whatmoreSecondaryColorShade600"),v=e.event,j=e.onClick,b=null===(t=e.isOnFocus)||void 0===t||t,C=null!==(n=e.playOnUnfocus)&&void 0!==n&&n,P=null!==(r=e.animateOnFocus&&(0,m.iW)(u))&&void 0!==r&&r,I=(0,m.IX)(u)?.7:.8,F=o*I+"px",O=1-I,z=o*O,_=o*O+"px",R=o*O*.1,Z=(0,m.nz)(u);return(0,k.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",h.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",h.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:s+"px",height:1.2*o+"px",borderRadius:"round"==p?"5px":"0px",boxShadow:"round"==p?Z:null,borderWidth:(0,m.al)(u),borderColor:(0,m.qP)(u),overflow:"hidden",cursor:"pointer",position:"relative"},className:P?b?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{},children:[(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"center"},children:[(0,k.jsx)(w.Z,{height:F,width:"100%",url:v.thumbnail_image,isPlaying:b||C,event:v}),(0,M.xg)(v,u)?(0,k.jsx)("div",{style:{width:"100%",height:_,backgroundColor:g}}):(0,k.jsx)(k.Fragment,{})]}),(0,k.jsx)(S,{event:v,isOnFocus:b,PRODUCT_BOX_HEIGHT:z,PRODUCT_BOX_HEIGHT_IN_PX:_,PRODUCT_BOX_MARGIN:R,onClick:j})]})};const _=(0,l.Z)({key:"whatmore-css-hv"});function R(e){const[t,n,i]=(0,c.Z)(),r=(0,f.MO)("whatmoreShopId"),o=e.events,s=e.onClick;return(0,k.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,k.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,k.jsx)(a.tq,{slidesPerView:i*(0,m.u6)(r),initialSlide:o.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!0,watchSlidesProgress:!0,touchRatio:.5,children:o.map((e=>(0,k.jsx)(a.o5,{children:t=>{let{isActive:n,isPrev:i,isNext:r,isVisible:o}=t;return i||r||n?(0,k.jsx)(z,{isOnFocus:n&&o,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}}):(0,k.jsx)(g.Z,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function Z(e){const[t,n,r,o]=(0,c.Z)(),[s,l]=(0,i.useState)((h=r,Math.floor(Math.random()*Math.floor(h))));var h;const p=e.onClick,f=e.events,x=Math.min(r,f.length);return(0,k.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:o+"px",paddingRight:o+"px"},children:(0,k.jsx)("div",{style:{width:n*x*1.1+"px"},children:(0,k.jsx)(a.tq,{slidesPerView:x,watchSlidesProgress:!0,modules:[d.W_],navigation:!0,slidesPerGroup:parseInt(x),children:f.map(((e,t)=>{const n=u()((()=>l(t)),300);return(0,k.jsx)(a.o5,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel()},children:n=>{let{isActive:i,isPrev:r,isNext:o,isVisible:l}=n;return l?(0,k.jsx)(z,{isOnFocus:t==s,playOnUnfocus:!0,animateOnFocus:!0,event:e,onClick:()=>{p(e)}}):(0,k.jsx)(g.Z,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}var E=function(e){var t;const[n,l,a]=(0,h.Z)(),[d]=(0,f.j1)("whatmorePrimaryColor"),[c]=(0,f.j1)("whatmoreShopId"),[p]=(0,f.j1)("whatmoreSecondaryColor"),[u]=(0,f.j1)("whatmoreTitleFont"),g="portrait"==n?(0,f.MO)("whatmoreTitleFontSizePortrait"):(0,f.MO)("whatmoreTitleFontSize"),{whatmoreRootId:w}=(0,i.useContext)(y.I),v=e.events,j=e.onClick,b=null!==(t=(0,m.aR)(c))&&void 0!==t?t:u;function C(e){j(e)}return delete o.ZP.styles.global,(0,k.jsx)(s.C,{value:_,children:(0,k.jsx)("div",{children:(0,k.jsx)(r.x,{theme:o.ZP,cssVarsRoot:w,resetCSS:!1,children:(0,k.jsxs)(x.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!1},children:[e.heading.trim().length>0?(0,k.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,k.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",b,"important"),e.style.setProperty("font-size",g+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:e.heading})}):(0,k.jsx)(k.Fragment,{}),"landscape"===n?(0,k.jsx)(Z,{events:v,onClick:C}):(0,k.jsx)(R,{events:v,onClick:C})]})})})})}},1092:function(e,t,n){var i=n(237),r=n(9854),o=n(7753),s=n(4136),l=n(7313),a=n(6417);function d(e){return e<1e3?e:e<1e5?(e/1e3).toFixed(0)+"K":(e/1e5).toFixed(0)+"L"}t.Z=function(e){const{whatmoreUITheme:t}=(0,l.useContext)(s.I),n=(0,o.MO)("whatmoreShopId"),c=(0,o.MO)("whatmorePrimaryFont"),h=e.event,p=e.fontSize;if(h.total_views<=0)return(0,a.jsx)(a.Fragment,{});const u=(0,r.S_)(n);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,r.XC)(n),color:"white",borderRadius:"round"==t?"5px":"0px",borderWidth:(0,r.al)(n),borderColor:(0,r.qP)(n)},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)(i.Z,{sx:{color:(0,r.aL)(n)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,r.aL)(n),"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",c,"important"),e.style.setProperty("font-size",p,"important"))},style:{fontWeight:"normal"},children:" "+d(h.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,r.XC)(n),color:"white",borderRadius:"round"==t?"5px":"0px",borderWidth:(0,r.al)(n),borderColor:(0,r.qP)(n)},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:e=>{e&&(e.style.setProperty("color",(0,r.aL)(n),"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",c,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+d(h.total_views)+" views"})})})})}):void 0}},7129:function(e,t,n){n.d(t,{V:function(){return i}});const i=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},3175:function(e,t,n){var i=n(208),r=n(51),o=n(6417);t.Z=function(e){var t,n;const s=null!==(t=e.height)&&void 0!==t?t:"100%",l=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,o.jsxs)("div",{style:{width:l,height:s,overflow:"hidden"},children:[(0,o.jsx)(i.Od,{height:"100%",width:"100%",speed:0,startColor:"#202020",endColor:"#606060"}),(0,o.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,o.jsx)(r.Z,{})})})]})}},2887:function(e,t,n){var i=n(7313),r=(n(6422),n(3175)),o=n(6417);t.Z=function(e){var t,n,s;const[l,a]=(0,i.useState)(!1),d=i.useRef(0),c=(0,i.useRef)(null),h=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},p=null!==(n=e.height)&&void 0!==n?n:"100%",u=null!==(s=e.width)&&void 0!==s?s:"100%";return(0,i.useEffect)((()=>{d.current=0;const e=setInterval((()=>{d.current=d.current+.03,c.current&&h(d.current,5),d.current>=5&&(d.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:u,height:p,overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:l?"100%":"0px",height:l?"100%":"0px"},children:(0,o.jsx)("img",{ref:c,src:e.url,style:{objectFit:"cover",height:p,width:u,backgroundColor:"white"},alt:"image player",onLoad:()=>{a(!0)}})}),l?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(r.Z,{width:"100%",height:"100%"})]})}},4892:function(e,t,n){n.d(t,{Z:function(){return h}});var i=n(7313),r=n(3933),o=n(868),s=n(8984),l=n(7300),a=(n(6422),n(2887)),d=n(6417);var c=function(e){var t,n;const o=(0,i.useRef)(null),[s,l,a]=(0,r.YD)({triggerOnce:!0}),c=null!==(t=e.height)&&void 0!==t?t:"100%",h=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,i.useEffect)((()=>{o.current&&(e.isPlaying?o.current.play():o.current.pause())}),[e.isPlaying,l]),(0,d.jsx)("div",{ref:s,style:{width:c,height:h,overflow:"hidden"},children:l?(0,d.jsx)("video",{ref:o,className:"whatmore-video-player",width:h,height:c,preload:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,src:e.url,style:{backgroundColor:"white"}}):(0,d.jsx)("div",{width:h,height:c,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var h=function(e){var t,n,h;const[p,u,f]=(0,r.YD)({triggerOnce:!0});if((0,l.WJ)(e.event))return(0,d.jsx)(a.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const x=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200;if((0,s.KE)())return(0,d.jsx)(c,{height:"100%",width:"100%",url:(0,o.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:x});const m=(0,i.useRef)(null),y=null!==(n=e.height)&&void 0!==n?n:"100%",g=null!==(h=e.width)&&void 0!==h?h:"100%";return(0,i.useEffect)((()=>{m.current&&(e.isPlaying?m.current.play():m.current.pause())}),[e.isPlaying,u]),(0,d.jsx)("div",{ref:p,style:{width:y,height:g,overflow:"hidden"},children:u?(0,d.jsx)("video",{ref:m,className:"whatmore-video-player",width:g,height:y,preload:"auto",loop:!0,playsInline:!0,muted:!0,src:(0,o.V)(e.url),style:{backgroundColor:"white"}}):(0,d.jsx)("div",{width:g,height:y,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},1855:function(e,t,n){var i=n(7313),r=n(9821),o=n(7129),s=n(6417);t.Z=function(e){var[t,n]=(0,r.Z)();return(0,i.useContext)(o.V),e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:n,height:t,overflow:"hidden"}})}},868:function(e,t,n){n.d(t,{V:function(){return l}});var i=n(9854),r=n(7753);const o={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},s={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},l=function(e){const t=(0,r.MO)("whatmoreShopId");if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,i.zp)(t))return e;if("AZURECDN"==(0,i.zp)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(o))if(e.includes(t))return e.replace(t,o[t]);return e}}if("BUNNYCDN"==(0,i.zp)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(s))if(e.includes(t))return e.replace(t,s[t]);return e}}return e}},6805:function(e,t,n){n.d(t,{$I:function(){return l},$w:function(){return d},AK:function(){return o},AL:function(){return s},YP:function(){return r},me:function(){return i},rE:function(){return a}});const i="device_type",r="device_mode",o="mobile",s="tablet",l="desktop",a="portrait",d="landscape"},6422:function(e,t,n){var i=n(7313),r=n(7753);t.Z=function(e){const[t,n]=(0,r.j1)("muted");return(0,i.useEffect)((()=>{}),[]),[t,n]}},8866:function(e,t,n){var i=n(7313);function r(){return[window.innerHeight,window.innerWidth]}t.Z=function(e){var[t,n]=r();const[o,s]=(0,i.useState)(["portrait",t,n]);return(0,i.useLayoutEffect)((()=>{function e(){var[e,t]=r();s(e>t?["portrait",e,t]:["landscape",e,t])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}}),[]),o}},9821:function(e,t,n){var i=n(6367),r=n(7753),o=n(8866),s=n(6805);t.Z=function(e){const[t,n,l]=(0,o.Z)(),[a]=(0,r.j1)("whatmoreLandscapePadding"),[d]=(0,r.j1)("whatmoreVideoTileSize"),c=(0,i.useMediaQuery)({query:"(min-width: 1025px)"}),h=(0,i.useMediaQuery)({query:"(min-width: 481px)"}),p=!("portrait"!=t||!h),u=d/100*1.3*.5,f=d/100;var x=Math.min(l,n),[m,y,g,w]=[.6*x*(16/9),.6*x,1.4,0];function v(e){return Math.round(10*e)/10}var j={DEVICE_TYPE:s.AK,DEVICE_MODE:s.rE};if(c){const e=y*u,t=m*u;[m,y,g,w]=[t,e,(l-2*a)/(1.1*e),a],j[s.me]=s.$I,j[s.YP]=s.$w}else if(p){var b=.8*y,C=.8*m;"portrait"==t?(b*=f,C*=f,[m,y,g,w]=[C,b,v(l/(1.2*b)),0],j[s.me]=s.AL,j[s.YP]=s.rE):([m,y,g,w]=[C,b,(l-2*a)/(1.1*b),a],j[s.me]=s.AL,j[s.YP]=s.$w)}else{b=y,C=m;"portrait"==t?(b*=f,C*=f,[m,y,g,w]=[C,b,v(l/(1.15*b)),0],j[s.me]=s.AK,j[s.YP]=s.rE):(b=.7*y,C=.7*m,[m,y,g,w]=[C,b,(l-2*a)/(1.1*b),a],j[s.me]=s.AK,j[s.YP]=s.$w)}return[m,y,g,w,j]}},237:function(e,t,n){var i=n(5318);t.Z=void 0;var r=i(n(5045)),o=n(6417),s=(0,r.default)((0,o.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");t.Z=s},123:function(){},7244:function(){}}]);