whatmore-react-assets 1.0.291 → 1.0.293

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.
@@ -1 +0,0 @@
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),o=n(7616),r=(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),g=n.n(u),v=n(7753),x=n(7129),m=n(1855),f=n(9854),p=n(6966),j=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"),o=e.events,r=e.onClick;return console.debug("#### EventsBrowsingViewPortrait "),(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,f.u6)(s),initialSlide:o.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!0,watchSlidesProgress:!0,touchRatio:.5,children:o.map((e=>(0,w.jsx)(a.o5,{children:t=>{let{isActive:n,isPrev:i,isNext:s,isVisible:o}=t;return i||s||n?(0,w.jsx)(j.Z,{isOnFocus:n&&o,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{r(e)}}):(0,w.jsx)(m.Z,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function M(e){const[t,n,s,o]=(0,d.Z)(),[r,l]=(0,i.useState)((h=s,Math.floor(Math.random()*Math.floor(h))));var h;const u=e.onClick,v=e.events,x=Math.min(s,v.length);return(0,w.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:o+"px",paddingRight:o+"px"},children:(0,w.jsx)("div",{style:{width:n*x*1.1+"px"},children:(0,w.jsx)(a.tq,{slidesPerView:x,watchSlidesProgress:!0,modules:[c.W_],navigation:!0,slidesPerGroup:parseInt(x),children:v.map(((e,t)=>{const n=g()((()=>l(t)),300);return(0,w.jsx)(a.o5,{onMouseEnter:()=>{n()},onMouseLeave:()=>{n.cancel()},children:n=>{let{isActive:i,isPrev:s,isNext:o,isVisible:l}=n;return l?(0,w.jsx)(j.Z,{isOnFocus:t==r,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"),[g]=(0,v.j1)("whatmoreTitleFont"),[m]=(0,v.j1)("whatmoreTitleFontSize"),{whatmoreRootId:j}=(0,i.useContext)(p.I),P=e.events,k=e.onClick,S=null!==(t=(0,f.aR)(c))&&void 0!==t?t:g;function Z(e){k(e)}return console.debug("#### EventsBrowsingViewVanillaJs "),delete o.ZP.styles.global,(0,w.jsx)(r.C,{value:y,children:(0,w.jsx)("div",{children:(0,w.jsx)(s.x,{theme:o.ZP,cssVarsRoot:j,resetCSS:!1,children:(0,w.jsxs)(x.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)(M,{events:P,onClick:Z}):(0,w.jsx)(C,{events:P,onClick:Z})]})})})})}},1855:function(e,t,n){var i=n(7313),s=n(9821),o=n(7129),r=n(6417);t.Z=function(e){var[t,n]=(0,s.Z)(),l=(0,i.useContext)(o.V);return e.event,(0,r.jsx)("div",{style:{marginTop:l.tileTopMargin,marginBottom:l.tileBottomMMargin,marginLeft:l.tileLeftMargin,marginRight:l.tileRightMargin,width:n,height:t,overflow:"hidden"}})}},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);