whatmore-react-assets 1.0.313 → 1.0.315
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/{517.6ef987a1.chunk.js → 517.84bd1306.chunk.js} +1 -1
- package/static/js/602.91c715e6.chunk.js +1 -0
- package/static/js/850.b913d034.chunk.js +1 -0
- package/static/js/95.1055b415.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/602.a704c380.chunk.js +0 -1
- package/static/js/850.6ee07b0e.chunk.js +0 -1
- package/static/js/95.e8461bf9.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[517],{9262:function(n,t,e){"use strict";e(7313),e(9821),e(2634),e(6417)},8675:function(n,t,e){"use strict";e.d(t,{Z:function(){return w}});var i,o,r=e(3271),a=e(5098),c=e(7313),l=e(9821),s=e(2634),u=e(5180),d=e(168),f=e(686);const h=(0,f.F4)(i||(i=(0,d.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),x=(0,f.F4)(o||(o=(0,d.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),m="\n ".concat(h,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n"),g="\n ".concat(x,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n");var p=e(7753),v=e(7129),j=e(6417);var w=function(n){var t,e,[i,o]=(0,l.Z)();const[d]=(0,p.j1)("whatmorePrimaryFont");var f=(0,c.useContext)(v.V);const h=n.event,x=n.onClick,w=null===(t=n.isOnFocus)||void 0===t||t,b=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,j.jsxs)(r.xu,{animation:b?w?m:g:"none",marginTop:f.tileTopMargin,marginBottom:f.tileBottomMMargin,marginLeft:f.tileLeftMargin,marginRight:f.tileRightMargin,width:o,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{x(h)},cursor:"pointer",children:[(0,j.jsx)(a.Ee,{width:"full",height:"full",src:h.thumbnail_image,objectFit:"cover",fallback:(0,j.jsx)(u.Z,{width:o,height:i}),borderRadius:"lg"}),(0,j.jsx)(r.xu,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,j.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,j.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,j.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,j.jsx)(s.Z,{event:h,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,j.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,j.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,j.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:d+" !important",color:"white !important"},children:h.title.substring(0,40)}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:d+" !important",color:"white !important"},children:h.presenter_name.substring(0,15)})]})})})})]})})]})}},5523:function(n,t,e){"use strict";e.r(t);var i=e(7313),o=e(8675),r=(e(9262),e(4664)),a=e(7616),c=(e(6143),e(7244),e(123),e(9302)),l=e(2575),s=e(3271),u=e(9821),d=e(8866),f=(e(2279),e(7753)),h=e(9316),x=e(7129),m=e(9854),g=e(4136),p=e(7300),v=e(7148),j=e(6417);const w=(0,l.Z)({key:"whatmore-css-hv"});function b(n,t){var e=[];const i=t;for(let o=0;o<n.length;o+=i){const t=n.slice(o,o+i);e.push(t)}return e}function y(n){var t;const[e,o]=(0,i.useState)(!1),[r,a]=(0,i.useState)(!1),[c]=(0,f.j1)("whatmoreSecondaryColorShade600"),[l]=(0,f.j1)("whatmoreSecondaryColorShade300"),[u]=(0,f.j1)("whatmorePrimaryFont"),d=null!==(t=n.baseFontSize)&&void 0!==t?t:10,x=n.onClick;return(0,j.jsx)(s.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?l:c,animation:r?h.mT:null,onClick:n=>{n.stopPropagation(),a(!0),x()},sx:{cursor:"pointer"},onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},children:(0,j.jsx)(s.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,j.jsxs)(s.xv,{fontSize:d,fontWeight:"normal",sx:{fontFamily:u+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function C(n){var t;const[e,r,a]=(0,u.Z)();var[c,l]=(0,i.useState)(0);const d=n.events,f=n.onClick,h=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,x=b(d,Math.floor(Math.min(a,d.length)));return(0,j.jsx)(s.M5,{children:(0,j.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,j.jsx)(j.Fragment,{children:x.map(((n,t)=>t>c?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,j.jsx)(s.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,j.jsx)(v.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}}):(0,j.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,j.jsx)(j.Fragment,{children:c<x.length-1?(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,j.jsx)(y,{baseFontSize:.1*r,onClick:()=>{c>=x.length-1||l((n=>n+h))}})}):(0,j.jsx)(j.Fragment,{})})]})})}function F(n){var t;const[e,r,a,c]=(0,u.Z)();var[l,d]=(0,i.useState)(0);const f=n.events,h=n.onClick,x=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,m=b(f,Math.floor(Math.min(a,f.length)));return(0,j.jsx)(s.M5,{paddingLeft:c+"px",paddingRight:c+"px",children:(0,j.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,j.jsx)(j.Fragment,{children:m.map(((n,t)=>t>l?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,j.jsx)(s.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,j.jsx)(v.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{h(n)}}):(0,j.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{h(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,j.jsx)(j.Fragment,{children:l<m.length-1?(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,j.jsx)(y,{baseFontSize:.1*r,onClick:()=>{l>=m.length-1||d((n=>n+x))}})}):(0,j.jsx)(j.Fragment,{})})]})})}t.default=function(n){var t;const[e,o,l]=(0,d.Z)(),[u]=(0,f.j1)("whatmoreShopId"),[h]=(0,f.j1)("whatmorePrimaryColor"),[p]=(0,f.j1)("whatmoreSecondaryColor"),[v]=(0,f.j1)("whatmoreTitleFont"),[b]=(0,f.j1)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,i.useContext)(g.I),S=n.events,k=n.onClick,M=null!==(t=(0,m.aR)(u))&&void 0!==t?t:v;function O(n){k(n)}return delete a.ZP.styles.global,(0,j.jsx)(c.C,{value:w,children:(0,j.jsx)("div",{children:(0,j.jsx)(r.x,{theme:a.ZP,cssVarsRoot:y,resetCSS:!1,children:(0,j.jsxs)(x.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,j.jsx)(s.M5,{children:(0,j.jsx)(s.xv,{bgColor:h,bgClip:"text",fontSize:b,sx:{fontFamily:M+" !important"},align:"center",children:n.heading})}):(0,j.jsx)(j.Fragment,{}),"landscape"===e?(0,j.jsx)(F,{events:S,onClick:O,seeMoreIncrement:1}):(0,j.jsx)(C,{events:S,onClick:O,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){"use strict";e.d(t,{mT:function(){return s}});var i,o,r,a=e(168),c=e(686);const l=(0,c.F4)(i||(i=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),s="\n ".concat(l," 0.2s linear;\n"),u=(0,c.F4)(o||(o=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),d=("\n ".concat(u," 0.5s infinite linear;\n"),(0,c.F4)(r||(r=(0,a.Z)(["\n 0% { \n opacity: 1;\n transform: translateY(100%);\n }\n 10%{\n transform: translateY(0%);\n }\n 12%{\n transform: translateY(-5%);\n }\n 20%{\n transform: translateY(0%);\n }\n 95%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n }\n"]))));"\n ".concat(d," ").concat(3,"s ease-in-out;\n")},2634:function(n,t,e){"use strict";var i=e(3271),o=e(4897),r=e(499),a=e(6417);t.Z=function(n){var t,e=n.event,c=n.fontSize,l=null!==(t=n.maxWidth)&&void 0!==t?t:"100%",{status:s,bannerText:u,timeToStartInMins:d}=o.Z.getEventStatus(e);return s.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:l,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:c,fontWeight:"bold",color:"white",children:u})})}):(0,a.jsx)(i.xu,{maxWidth:l,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:c,fontWeight:"medium",children:u})})})}},5180:function(n,t,e){"use strict";var i=e(3271),o=e(208),r=e(6417);t.Z=function(n){var t,e,a;const c=null!==(t=n.height)&&void 0!==t?t:"100%",l=null!==(e=n.width)&&void 0!==e?e:"100%",s=null!==(a=n.borderRadius)&&void 0!==a?a:"lg";return(0,r.jsx)(i.xu,{borderRadius:s,overflow:"hidden",children:(0,r.jsx)(o.Od,{height:c,width:l,speed:.5,startColor:"gray.400",endColor:"white"})})}},8624:function(n,t,e){var i=e(7289).Symbol;n.exports=i},8665:function(n,t,e){var i=e(8624),o=e(3596),r=e(8186),a=i?i.toStringTag:void 0;n.exports=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":a&&a in Object(n)?o(n):r(n)}},2306:function(n,t,e){var i=e(5510),o=/^\s+/;n.exports=function(n){return n?n.slice(0,i(n)+1).replace(o,""):n}},2692:function(n,t,e){var i="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;n.exports=i},3596:function(n,t,e){var i=e(8624),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,c=i?i.toStringTag:void 0;n.exports=function(n){var t=r.call(n,c),e=n[c];try{n[c]=void 0;var i=!0}catch(l){}var o=a.call(n);return i&&(t?n[c]=e:delete n[c]),o}},8186:function(n){var t=Object.prototype.toString;n.exports=function(n){return t.call(n)}},7289:function(n,t,e){var i=e(2692),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();n.exports=r},5510:function(n){var t=/\s/;n.exports=function(n){for(var e=n.length;e--&&t.test(n.charAt(e)););return e}},2279:function(n,t,e){var i=e(1845),o=e(6170),r=e(7923),a=Math.max,c=Math.min;n.exports=function(n,t,e){var l,s,u,d,f,h,x=0,m=!1,g=!1,p=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function v(t){var e=l,i=s;return l=s=void 0,x=t,d=n.apply(i,e)}function j(n){return x=n,f=setTimeout(b,t),m?v(n):d}function w(n){var e=n-h;return void 0===h||e>=t||e<0||g&&n-x>=u}function b(){var n=o();if(w(n))return y(n);f=setTimeout(b,function(n){var e=t-(n-h);return g?c(e,u-(n-x)):e}(n))}function y(n){return f=void 0,p&&l?v(n):(l=s=void 0,d)}function C(){var n=o(),e=w(n);if(l=arguments,s=this,h=n,e){if(void 0===f)return j(h);if(g)return clearTimeout(f),f=setTimeout(b,t),v(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=r(t)||0,i(e)&&(m=!!e.leading,u=(g="maxWait"in e)?a(r(e.maxWait)||0,t):u,p="trailing"in e?!!e.trailing:p),C.cancel=function(){void 0!==f&&clearTimeout(f),x=0,l=h=s=f=void 0},C.flush=function(){return void 0===f?d:y(o())},C}},1845:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},9752:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},2060:function(n,t,e){var i=e(8665),o=e(9752);n.exports=function(n){return"symbol"==typeof n||o(n)&&"[object Symbol]"==i(n)}},6170:function(n,t,e){var i=e(7289);n.exports=function(){return i.Date.now()}},7923:function(n,t,e){var i=e(2306),o=e(1845),r=e(2060),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(r(n))return NaN;if(o(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=o(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=i(n);var e=c.test(n);return e||l.test(n)?s(n.slice(2),e?2:8):a.test(n)?NaN:+n}}}]);
|
|
1
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[517],{9262:function(n,t,e){"use strict";e(7313),e(9821),e(2634),e(6417)},8675:function(n,t,e){"use strict";e.d(t,{Z:function(){return w}});var i,o,r=e(3271),a=e(5098),c=e(7313),l=e(9821),s=e(2634),u=e(5180),d=e(168),f=e(686);const h=(0,f.F4)(i||(i=(0,d.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),x=(0,f.F4)(o||(o=(0,d.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),m="\n ".concat(h,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n"),g="\n ".concat(x,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n");var p=e(7753),v=e(7129),j=e(6417);var w=function(n){var t,e,[i,o]=(0,l.Z)();const[d]=(0,p.j1)("whatmorePrimaryFont");var f=(0,c.useContext)(v.V);const h=n.event,x=n.onClick,w=null===(t=n.isOnFocus)||void 0===t||t,b=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,j.jsxs)(r.xu,{animation:b?w?m:g:"none",marginTop:f.tileTopMargin,marginBottom:f.tileBottomMMargin,marginLeft:f.tileLeftMargin,marginRight:f.tileRightMargin,width:o,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{x(h)},cursor:"pointer",children:[(0,j.jsx)(a.Ee,{width:"full",height:"full",src:h.thumbnail_image,objectFit:"cover",fallback:(0,j.jsx)(u.Z,{width:o,height:i}),borderRadius:"lg"}),(0,j.jsx)(r.xu,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,j.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,j.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,j.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,j.jsx)(s.Z,{event:h,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,j.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,j.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,j.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:d+" !important",color:"white !important"},children:h.title.substring(0,40)}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:d+" !important",color:"white !important"},children:h.presenter_name.substring(0,15)})]})})})})]})})]})}},5523:function(n,t,e){"use strict";e.r(t);var i=e(7313),o=e(8675),r=(e(9262),e(4664)),a=e(7616),c=(e(6143),e(7244),e(123),e(9302)),l=e(2575),s=e(3271),u=e(9821),d=e(8866),f=(e(2279),e(7753)),h=e(9316),x=e(7129),m=e(9854),g=e(4136),p=e(7300),v=e(7148),j=e(6417);const w=(0,l.Z)({key:"whatmore-css-hv"});function b(n,t){var e=[];const i=t;for(let o=0;o<n.length;o+=i){const t=n.slice(o,o+i);e.push(t)}return e}function y(n){var t;const[e,o]=(0,i.useState)(!1),[r,a]=(0,i.useState)(!1),[c]=(0,f.j1)("whatmoreSecondaryColorShade600"),[l]=(0,f.j1)("whatmoreSecondaryColorShade300"),[u]=(0,f.j1)("whatmorePrimaryFont"),d=null!==(t=n.baseFontSize)&&void 0!==t?t:10,x=n.onClick;return(0,j.jsx)(s.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?l:c,animation:r?h.mT:null,onClick:n=>{n.stopPropagation(),a(!0),x()},sx:{cursor:"pointer"},onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},children:(0,j.jsx)(s.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,j.jsxs)(s.xv,{fontSize:d,fontWeight:"normal",sx:{fontFamily:u+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function C(n){var t;const[e,r,a]=(0,u.Z)();var[c,l]=(0,i.useState)(0);const d=n.events,f=n.onClick,h=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,x=b(d,Math.floor(Math.min(a,d.length)));return(0,j.jsx)(s.M5,{children:(0,j.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,j.jsx)(j.Fragment,{children:x.map(((n,t)=>t>c?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,j.jsx)(s.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,j.jsx)(v.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}}):(0,j.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{f(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,j.jsx)(j.Fragment,{children:c<x.length-1?(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,j.jsx)(y,{baseFontSize:.1*r,onClick:()=>{c>=x.length-1||l((n=>n+h))}})}):(0,j.jsx)(j.Fragment,{})})]})})}function F(n){var t;const[e,r,a,c]=(0,u.Z)();var[l,d]=(0,i.useState)(0);const f=n.events,h=n.onClick,x=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,m=b(f,Math.floor(Math.min(a,f.length)));return(0,j.jsx)(s.M5,{paddingLeft:c+"px",paddingRight:c+"px",children:(0,j.jsxs)(s.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,j.jsx)(j.Fragment,{children:m.map(((n,t)=>t>l?(0,j.jsx)(j.Fragment,{}):(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,j.jsx)(s.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,j.jsx)(v.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{h(n)}}):(0,j.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{h(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,j.jsx)(j.Fragment,{children:l<m.length-1?(0,j.jsx)(s.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,j.jsx)(y,{baseFontSize:.1*r,onClick:()=>{l>=m.length-1||d((n=>n+x))}})}):(0,j.jsx)(j.Fragment,{})})]})})}t.default=function(n){var t;const[e,o,l]=(0,d.Z)(),[u]=(0,f.j1)("whatmoreShopId"),[h]=(0,f.j1)("whatmorePrimaryColor"),[p]=(0,f.j1)("whatmoreSecondaryColor"),[v]=(0,f.j1)("whatmoreTitleFont"),b="portrait"==e?(0,f.MO)("whatmoreTitleFontSizePortrait"):(0,f.MO)("whatmoreTitleFontSize"),{whatmoreRootId:y}=(0,i.useContext)(g.I),S=n.events,k=n.onClick,M=null!==(t=(0,m.aR)(u))&&void 0!==t?t:v;function O(n){k(n)}return delete a.ZP.styles.global,(0,j.jsx)(c.C,{value:w,children:(0,j.jsx)("div",{children:(0,j.jsx)(r.x,{theme:a.ZP,cssVarsRoot:y,resetCSS:!1,children:(0,j.jsxs)(x.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,j.jsx)(s.M5,{children:(0,j.jsx)(s.xv,{bgColor:h,bgClip:"text",fontSize:b,sx:{fontFamily:M+" !important"},align:"center",children:n.heading})}):(0,j.jsx)(j.Fragment,{}),"landscape"===e?(0,j.jsx)(F,{events:S,onClick:O,seeMoreIncrement:1}):(0,j.jsx)(C,{events:S,onClick:O,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){"use strict";e.d(t,{mT:function(){return s}});var i,o,r,a=e(168),c=e(686);const l=(0,c.F4)(i||(i=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),s="\n ".concat(l," 0.2s linear;\n"),u=(0,c.F4)(o||(o=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),d=("\n ".concat(u," 0.5s infinite linear;\n"),(0,c.F4)(r||(r=(0,a.Z)(["\n 0% { \n opacity: 1;\n transform: translateY(100%);\n }\n 10%{\n transform: translateY(0%);\n }\n 12%{\n transform: translateY(-5%);\n }\n 20%{\n transform: translateY(0%);\n }\n 95%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n }\n"]))));"\n ".concat(d," ").concat(3,"s ease-in-out;\n")},2634:function(n,t,e){"use strict";var i=e(3271),o=e(4897),r=e(499),a=e(6417);t.Z=function(n){var t,e=n.event,c=n.fontSize,l=null!==(t=n.maxWidth)&&void 0!==t?t:"100%",{status:s,bannerText:u,timeToStartInMins:d}=o.Z.getEventStatus(e);return s.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:l,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:c,fontWeight:"bold",color:"white",children:u})})}):(0,a.jsx)(i.xu,{maxWidth:l,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:c,fontWeight:"medium",children:u})})})}},5180:function(n,t,e){"use strict";var i=e(3271),o=e(208),r=e(6417);t.Z=function(n){var t,e,a;const c=null!==(t=n.height)&&void 0!==t?t:"100%",l=null!==(e=n.width)&&void 0!==e?e:"100%",s=null!==(a=n.borderRadius)&&void 0!==a?a:"lg";return(0,r.jsx)(i.xu,{borderRadius:s,overflow:"hidden",children:(0,r.jsx)(o.Od,{height:c,width:l,speed:.5,startColor:"gray.400",endColor:"white"})})}},8624:function(n,t,e){var i=e(7289).Symbol;n.exports=i},8665:function(n,t,e){var i=e(8624),o=e(3596),r=e(8186),a=i?i.toStringTag:void 0;n.exports=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":a&&a in Object(n)?o(n):r(n)}},2306:function(n,t,e){var i=e(5510),o=/^\s+/;n.exports=function(n){return n?n.slice(0,i(n)+1).replace(o,""):n}},2692:function(n,t,e){var i="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;n.exports=i},3596:function(n,t,e){var i=e(8624),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,c=i?i.toStringTag:void 0;n.exports=function(n){var t=r.call(n,c),e=n[c];try{n[c]=void 0;var i=!0}catch(l){}var o=a.call(n);return i&&(t?n[c]=e:delete n[c]),o}},8186:function(n){var t=Object.prototype.toString;n.exports=function(n){return t.call(n)}},7289:function(n,t,e){var i=e(2692),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();n.exports=r},5510:function(n){var t=/\s/;n.exports=function(n){for(var e=n.length;e--&&t.test(n.charAt(e)););return e}},2279:function(n,t,e){var i=e(1845),o=e(6170),r=e(7923),a=Math.max,c=Math.min;n.exports=function(n,t,e){var l,s,u,d,f,h,x=0,m=!1,g=!1,p=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function v(t){var e=l,i=s;return l=s=void 0,x=t,d=n.apply(i,e)}function j(n){return x=n,f=setTimeout(b,t),m?v(n):d}function w(n){var e=n-h;return void 0===h||e>=t||e<0||g&&n-x>=u}function b(){var n=o();if(w(n))return y(n);f=setTimeout(b,function(n){var e=t-(n-h);return g?c(e,u-(n-x)):e}(n))}function y(n){return f=void 0,p&&l?v(n):(l=s=void 0,d)}function C(){var n=o(),e=w(n);if(l=arguments,s=this,h=n,e){if(void 0===f)return j(h);if(g)return clearTimeout(f),f=setTimeout(b,t),v(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=r(t)||0,i(e)&&(m=!!e.leading,u=(g="maxWait"in e)?a(r(e.maxWait)||0,t):u,p="trailing"in e?!!e.trailing:p),C.cancel=function(){void 0!==f&&clearTimeout(f),x=0,l=h=s=f=void 0},C.flush=function(){return void 0===f?d:y(o())},C}},1845:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},9752:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},2060:function(n,t,e){var i=e(8665),o=e(9752);n.exports=function(n){return"symbol"==typeof n||o(n)&&"[object Symbol]"==i(n)}},6170:function(n,t,e){var i=e(7289);n.exports=function(){return i.Date.now()}},7923:function(n,t,e){var i=e(2306),o=e(1845),r=e(2060),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(r(n))return NaN;if(o(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=o(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=i(n);var e=c.test(n);return e||l.test(n)?s(n.slice(2),e?2:8):a.test(n)?NaN:+n}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[602],{9262:function(n,t,e){e(7313),e(9821),e(2634),e(6417)},8091:function(n,t,e){e.r(t),e.d(t,{default:function(){return y}});var i=e(7313),o=e(8675),r=(e(9262),e(4664)),a=e(7616),l=(e(6143),e(7244),e(123),e(9302)),s=e(2575),d=e(3271),c=e(8866),h=e(7753),u=e(7129),f=e(9854),x=e(4136),m=e(9821),g=e(3933),p=e(6417);function v(n){var t;const{ref:e,inView:i,entry:o}=(0,g.YD)({triggerOnce:!1}),r=null!==(t=n.defaultHeight)&&void 0!==t?t:"fit-content";return(0,p.jsx)(d.Kq,{ref:e,direction:"row",minHeight:r,height:r,width:"100%",justifyContent:"center",alignItems:"center",children:i?n.data.map(((t,e)=>(0,p.jsx)("div",{children:n.renderElement({eventData:t})},"key"+e))):(0,p.jsx)("div",{style:{minHeight:{rowHeight:r},minWidth:"100%"}})})}function j(n){var t;const[e,i,o]=(0,m.Z)(),r=null!==(t=n.elementsPerRow)&&void 0!==t?t:Math.floor(Math.min(o,n.dataList.length)),a=function(n,t){var e=[];const i=t;for(let o=0;o<n.length;o+=i){const t=n.slice(o,o+i);e.push(t)}return e}(n.dataList,r);return(0,p.jsx)(d.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*e,children:a.map(((t,o)=>(0,p.jsx)(v,{renderElement:n.renderElement,data:t,defaultHeight:e,defaultWidth:i},"key-"+o)))})}var w=e(7300),b=e(7148);const C=(0,s.Z)({key:"whatmore-css-hv"});var y=function(n){var t;const[e,s,g]=(0,c.Z)(),[v,y,R]=(0,m.Z)(),[k]=(0,h.j1)("whatmoreShopId"),[F]=(0,h.j1)("whatmorePrimaryColor"),[Z]=(0,h.j1)("whatmoreSecondaryColor"),[M]=(0,h.j1)("whatmoreTitleFont"),S="portrait"==e?(0,h.MO)("whatmoreTitleFontSizePortrait"):(0,h.MO)("whatmoreTitleFontSize"),{whatmoreRootId:O}=(0,i.useContext)(x.I),L=n.events,W=n.onClick,z=null!==(t=(0,f.aR)(k))&&void 0!==t?t:M;function P(n){W(n)}const q=parseInt(Math.floor(R));return delete a.ZP.styles.global,(0,p.jsx)(l.C,{value:C,children:(0,p.jsx)("div",{children:(0,p.jsx)(r.x,{theme:a.ZP,cssVarsRoot:O,resetCSS:!1,children:(0,p.jsxs)(u.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,p.jsx)(d.M5,{children:(0,p.jsx)(d.xv,{bgColor:F,bgClip:"text",fontSize:S,sx:{fontFamily:z+" !important"},align:"center",children:n.heading})}):(0,p.jsx)(p.Fragment,{}),"landscape"===e?(0,p.jsx)(j,{renderElement:n=>{const t=n.eventData;return(0,p.jsx)("div",{style:{margin:"10px"},children:(0,w.B6)(t)||(0,w.WJ)(t)?(0,p.jsx)(b.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{P(t)}}):(0,p.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{P(t)}})})},dataList:L,elementsPerRow:q}):(0,p.jsx)(j,{renderElement:n=>{const t=n.eventData;return(0,p.jsx)("div",{style:{margin:"10px"},children:(0,p.jsx)(b.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{P(t)}})})},dataList:L,elementsPerRow:q})]})})})})}},8675:function(n,t,e){e.d(t,{Z:function(){return w}});var i,o,r=e(3271),a=e(5098),l=e(7313),s=e(9821),d=e(2634),c=e(5180),h=e(168),u=e(686);const f=(0,u.F4)(i||(i=(0,h.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),x=(0,u.F4)(o||(o=(0,h.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),m="\n ".concat(f,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n"),g="\n ".concat(x,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n");var p=e(7753),v=e(7129),j=e(6417);var w=function(n){var t,e,[i,o]=(0,s.Z)();const[h]=(0,p.j1)("whatmorePrimaryFont");var u=(0,l.useContext)(v.V);const f=n.event,x=n.onClick,w=null===(t=n.isOnFocus)||void 0===t||t,b=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,j.jsxs)(r.xu,{animation:b?w?m:g:"none",marginTop:u.tileTopMargin,marginBottom:u.tileBottomMMargin,marginLeft:u.tileLeftMargin,marginRight:u.tileRightMargin,width:o,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{x(f)},cursor:"pointer",children:[(0,j.jsx)(a.Ee,{width:"full",height:"full",src:f.thumbnail_image,objectFit:"cover",fallback:(0,j.jsx)(c.Z,{width:o,height:i}),borderRadius:"lg"}),(0,j.jsx)(r.xu,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,j.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,j.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,j.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,j.jsx)(d.Z,{event:f,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,j.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,j.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,j.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,j.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,j.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:f.title.substring(0,40)}),(0,j.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:f.presenter_name.substring(0,15)})]})})})})]})})]})}},2634:function(n,t,e){var i=e(3271),o=e(4897),r=e(499),a=e(6417);t.Z=function(n){var t,e=n.event,l=n.fontSize,s=null!==(t=n.maxWidth)&&void 0!==t?t:"100%",{status:d,bannerText:c,timeToStartInMins:h}=o.Z.getEventStatus(e);return d.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:s,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"bold",color:"white",children:c})})}):(0,a.jsx)(i.xu,{maxWidth:s,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"medium",children:c})})})}},5180:function(n,t,e){var i=e(3271),o=e(208),r=e(6417);t.Z=function(n){var t,e,a;const l=null!==(t=n.height)&&void 0!==t?t:"100%",s=null!==(e=n.width)&&void 0!==e?e:"100%",d=null!==(a=n.borderRadius)&&void 0!==a?a:"lg";return(0,r.jsx)(i.xu,{borderRadius:d,overflow:"hidden",children:(0,r.jsx)(o.Od,{height:l,width:s,speed:.5,startColor:"gray.400",endColor:"white"})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[850],{4048:function(e,t,n){n.r(t);var i=n(7313),s=n(4664),r=n(7616),o=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),l=n(2575),a=n(2210),c=n(8486),d=n(9821),h=n(8866),u=n(2279),x=n.n(u),v=n(7753),f=n(7129),m=n(1855),p=n(9854),j=n(4136),g=n(7148),w=n(6417);const y=(0,l.Z)({key:"whatmore-css-hv"});function C(e){const[t,n,i]=(0,d.Z)(),s=(0,v.MO)("whatmoreShopId"),r=e.events,o=e.onClick;return(0,w.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,w.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,w.jsx)(a.tq,{slidesPerView:i*(0,p.u6)(s),initialSlide:r.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!0,watchSlidesProgress:!0,touchRatio:.5,children:r.map((e=>(0,w.jsx)(a.o5,{children:t=>{let{isActive:n,isPrev:i,isNext:s,isVisible:r}=t;return i||s||n?(0,w.jsx)(g.Z,{isOnFocus:n&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{o(e)}}):(0,w.jsx)(m.Z,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function P(e){const[t,n,s,r]=(0,d.Z)(),[o,l]=(0,i.useState)((h=s,Math.floor(Math.random()*Math.floor(h))));var h;const u=e.onClick,v=e.events,f=Math.min(s,v.length);return(0,w.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},children:(0,w.jsx)("div",{style:{width:n*f*1.1+"px"},children:(0,w.jsx)(a.tq,{slidesPerView:f,watchSlidesProgress:!0,modules:[c.W_],navigation:!0,slidesPerGroup:parseInt(f),children:v.map(((e,t)=>{const n=x()((()=>l(t)),300);return(0,w.jsx)(a.o5,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel()},children:n=>{let{isActive:i,isPrev:s,isNext:r,isVisible:l}=n;return l?(0,w.jsx)(g.Z,{isOnFocus:t==o,playOnUnfocus:!0,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,w.jsx)(m.Z,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){var t;const[n,l,a]=(0,h.Z)(),[c]=(0,v.j1)("whatmoreShopId"),[d]=(0,v.j1)("whatmorePrimaryColor"),[u]=(0,v.j1)("whatmoreSecondaryColor"),[x]=(0,v.j1)("whatmoreTitleFont"),m="portrait"==n?(0,v.MO)("whatmoreTitleFontSizePortrait"):(0,v.MO)("whatmoreTitleFontSize"),{whatmoreRootId:g}=(0,i.useContext)(j.I),M=e.events,k=e.onClick,S=null!==(t=(0,p.aR)(c))&&void 0!==t?t:x;function Z(e){k(e)}return delete r.ZP.styles.global,(0,w.jsx)(o.C,{value:y,children:(0,w.jsx)("div",{children:(0,w.jsx)(s.x,{theme:r.ZP,cssVarsRoot:g,resetCSS:!1,children:(0,w.jsxs)(f.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0?(0,w.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,w.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",S,"important"),e.style.setProperty("font-size",m+"px","important"))},style:{color:d,backgroundClip:"text",textAlign:"center"},children:e.heading})}):(0,w.jsx)(w.Fragment,{}),"landscape"===n?(0,w.jsx)(P,{events:M,onClick:Z}):(0,w.jsx)(C,{events:M,onClick:Z})]})})})})}},1855:function(e,t,n){var i=n(7313),s=n(9821),r=n(7129),o=n(6417);t.Z=function(e){var[t,n]=(0,s.Z)();return(0,i.useContext)(r.V),e.event,(0,o.jsx)("div",{style:{margin:"0 auto",width:n,height:t,overflow:"hidden"}})}},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -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 O=i.lazy((()=>Promise.all([n.e(576),n.e(843),n.e(310),n.e(12)]).then(n.bind(n,6163))));var F=function(e){var[t,n]=(0,c.Z)();const[r]=(0,f.j1)("whatmorePrimaryFont"),[o]=(0,f.j1)("whatmoreSecondaryColorShade900"),[s]=(0,f.j1)("whatmoreShopId"),l=(0,f.MO)("whatmoreUITheme"),[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)(s)&&(0,I.p_)(h,(0,m.Ip)(s),s).then((e=>{p(e)}))}),[]);const y=.3*n,g=y+"px",w=y+"px",v=.05*n+"px",j=.07*n,F=j+"px",M=.05*n;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*n,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:g,height:w,overflow:"hidden",backgroundColor:o,borderRadius:"round"==l?"5px":"0px",borderWidth:"0px"==(0,m.al)(s)?"2px":(0,m.al)(s),borderColor:"white"==(0,m.qP)(s)?o:(0,m.qP)(s)},children:(0,k.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,m.yO)(s),"important")},src:h.products[a].thumbnail_image,style:{width:g,height:g,borderRadius:"round"==l?"5px":"0px",backgroundColor:o},alt:"product image"})}),(0,k.jsx)("div",{style:{width:.7*n+"px",height:"100%",overflow:"visible",marginBottom:"2px",marginRight:"2px",borderRadius:"round"==l?"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",v,"important"),e.style.setProperty("line-height","140%","important"),e.style.setProperty("font-family",r,"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",F,"important"),e.style.setProperty("line-height","140%","important"),e.style.setProperty("font-family",r,"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),"",s,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*j+"px","important"),e.style.setProperty("line-height","140%","important"),e.style.setProperty("font-family",r,"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),"",s,h.products[a].currency)]}):(0,k.jsx)(k.Fragment,{})})]}),(0,k.jsx)(P.Z,{storeId:s,productId:h.products[a].client_product_id,productLink:h.products[a].product_link,fontSize:M})]})})]},a),(0,m.IX)(s)?(0,k.jsx)(i.Suspense,{children:(0,k.jsx)(O,{baseFontSize:.05*n,event:h,product:h.products[0],width:.9*n,height:"fit-content"})}):(0,k.jsx)(k.Fragment,{})]})},M=n(3388);function S(e){const[t,n,i,r,o]=(0,c.Z)(),s=(0,f.MO)("whatmoreShowViews"),l=(0,f.MO)("whatmoreShopId"),a=(0,f.MO)("whatmoreUITheme"),d=((0,f.MO)("whatmoreSecondaryColorShade600"),e.PRODUCT_BOX_HEIGHT),h=e.PRODUCT_BOX_HEIGHT_IN_PX,p=e.PRODUCT_BOX_MARGIN,[u,x,y]=(0,v.YD)({triggerOnce:!0}),g=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(g)},children:"show"===s?(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:g,fontSize:.07*n+"px"})})}):(0,k.jsx)(k.Fragment,{})}),(0,k.jsx)("div",{style:{display:"flex",width:"100%",height:t-d+"px"},onClick:()=>{e.onClick(g)}}),(0,M.xg)(g,l)?(0,k.jsx)("div",{style:{position:"relative",zIndex:1,bottom:p+"px",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",width:.95*n,height:h,marginLeft:p+"px",marginRight:p+"px",backgroundColor:"white",borderRadius:"round"==a?"5px":"0px",borderWidth:(0,m.al)(l),borderColor:(0,m.qP)(l),paddingLeft:"5px",paddingRight:"5px",overflow:"hidden"},children:(0,k.jsx)("div",{ref:u,children:x&&(0,m.PW)(l)?(0,k.jsx)(F,{event:g,onClick:()=>{e.onClick(g)}}):(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 p=(0,f.MO)("whatmoreShopId"),u=(0,f.MO)("whatmoreUITheme"),y=(0,f.MO)("whatmoreSecondaryColorShade600"),g=e.event,v=e.onClick,j=null===(t=e.isOnFocus)||void 0===t||t,b=null!==(n=e.playOnUnfocus)&&void 0!==n&&n,C=null!==(r=e.animateOnFocus&&(0,m.iW)(p))&&void 0!==r&&r,P=(0,m.IX)(p)?.7:.8,I=o*P+"px",O=1-P,F=o*O,z=o*O+"px",_=o*O*.1,R=(0,m.nz)(p);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"==u?"5px":"0px",boxShadow:"round"==u?R:null,borderWidth:(0,m.al)(p),borderColor:(0,m.qP)(p),overflow:"hidden",cursor:"pointer",position:"relative"},className:C?j?"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:I,width:"100%",url:g.thumbnail_image,isPlaying:j||b,event:g}),(0,M.xg)(g,p)?(0,k.jsx)("div",{style:{width:"100%",height:z,backgroundColor:y}}):(0,k.jsx)(k.Fragment,{})]}),(0,k.jsx)(S,{event:g,isOnFocus:j,PRODUCT_BOX_HEIGHT:F,PRODUCT_BOX_HEIGHT_IN_PX:z,PRODUCT_BOX_MARGIN:_,onClick:v})]})};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(6417);function l(e){return e<1e3?e:e<1e5?(e/1e3).toFixed(0)+"K":(e/1e5).toFixed(0)+"L"}t.Z=function(e){const t=(0,o.MO)("whatmoreShopId"),n=(0,o.MO)("whatmoreUITheme"),a=(0,o.MO)("whatmorePrimaryFont"),d=e.event,c=e.fontSize;if(d.total_views<=0)return(0,s.jsx)(s.Fragment,{});const h=(0,r.S_)(t);return"template-icon"==h?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,r.XC)(t),color:"white",borderRadius:"round"==n?"5px":"0px",borderWidth:(0,r.al)(t),borderColor:(0,r.qP)(t)},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)(i.Z,{sx:{color:(0,r.aL)(t)+" !important",fontSize:c,fontWeight:"normal"}})}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,r.aL)(t),"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",a,"important"),e.style.setProperty("font-size",c,"important"))},style:{fontWeight:"normal"},children:" "+l(d.total_views)+" "})})]})})}):"template-text"==h?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,r.XC)(t),color:"white",borderRadius:"round"==n?"5px":"0px",borderWidth:(0,r.al)(t),borderColor:(0,r.qP)(t)},children:(0,s.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,r.aL)(t),"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",a,"important"))},style:{fontSize:c,fontWeight:"bold"},children:" "+l(d.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(){}}]);
|