whatmore-react-assets 1.0.293 → 1.0.295

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([[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(6966),m=e(9821),g=e(3933),p=e(6417);function j(n){const{ref:t,inView:e,entry:i}=(0,g.YD)({triggerOnce:!1});return(0,p.jsx)(d.Kq,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",alignItems:"center",children:n.data.map(((i,o)=>(0,p.jsx)("div",{ref:t,children:e?n.renderElement({eventData:i}):(0,p.jsx)("div",{height:n.defaultHeight,width:n.defaultWidth})},"key"+o)))})}function v(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",children:a.map(((t,o)=>(0,p.jsx)(j,{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)(),[j,y,R]=(0,m.Z)(),[k]=(0,h.j1)("whatmoreShopId"),[Z]=(0,h.j1)("whatmorePrimaryColor"),[F]=(0,h.j1)("whatmoreSecondaryColor"),[S]=(0,h.j1)("whatmoreTitleFont"),[M]=(0,h.j1)("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:S;function q(n){W(n)}const B=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:Z,bgClip:"text",fontSize:M,sx:{fontFamily:z+" !important"},align:"center",children:n.heading})}):(0,p.jsx)(p.Fragment,{}),"landscape"===e?(0,p.jsx)(v,{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:()=>{q(t)}}):(0,p.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{q(t)}})})},dataList:L,elementsPerRow:B}):(0,p.jsx)(v,{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:()=>{q(t)}})})},dataList:L,elementsPerRow:B})]})})})})}},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),j=e(7129),v=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)(j.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,v.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,v.jsx)(a.Ee,{width:"full",height:"full",src:f.thumbnail_image,objectFit:"cover",fallback:(0,v.jsx)(c.Z,{width:o,height:i}),borderRadius:"lg"}),(0,v.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,v.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,v.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,v.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,v.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,v.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,v.jsx)(d.Z,{event:f,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,v.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,v.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,v.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,v.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,v.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,v.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,v.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"})})}}}]);