whatmore-react-assets 1.0.398 → 1.0.400
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/{565.efa6c736.chunk.js → 565.3b53d286.chunk.js} +1 -1
- package/static/js/580.f7ec3ed9.chunk.js +1 -0
- package/static/js/{660.7c5a9dd7.chunk.js → 660.35ce195e.chunk.js} +1 -1
- package/static/js/{692.8431123f.chunk.js → 692.6b98bb43.chunk.js} +1 -1
- package/static/js/{708.6864dd77.chunk.js → 708.01e6fdce.chunk.js} +1 -1
- package/static/js/{74.612503b8.chunk.js → 74.e9caa0bf.chunk.js} +1 -1
- package/static/js/972.3c9e4d89.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/580.c7ca98e4.chunk.js +0 -1
- package/static/js/972.0979eb35.chunk.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[580],{3580:function(t,e,n){n.r(e),n.d(e,{default:function(){return h}});var r=n(7313),o=n(8866),i=n(7753),s=(n(9111),n(123),n(9778),n(9854)),a=n(868),d=n(6417);var l=function(t){var e,n;const[l,c,p]=(0,o.Z)(),h=(0,i.MO)("whatmorePrimaryFont"),u=((0,i.MO)("whatmorePrimaryColor"),(0,i.MO)("whatmoreSecondaryColor")),f=(0,i.MO)("whatmoreShopId"),[x,m]=(0,r.useState)(!1),w=t.storyId,g=(0,a.V)(t.imageUrl),v=t.title,y=t.onClick,b=t.template,j=(0,s.f6)(f),z="template-stories-a"===b?"50%":"30%",S="portrait"==l?1:(0,s.Zy)(f),k=Math.floor(t.tileSize*S),C=.12*k*(0,s.LM)(f),F=null!==(e=(0,s.Q)(f))&&void 0!==e?e:h,L=null!==(n=(0,s.u2)(f))&&void 0!==n?n:[u,j,u,j,u];return(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:k*(0,s.jJ)(f)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{m(!0),y(w)},className:[x?"whatmore-scale-on-tap":""].join(" "),children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:z,boxShadow:"0px 2px 1px 0px "+L[0]+"50, 0px -2px 1px 0px "+L[1]+"50, 2px 0px 1px 0px "+L[2]+"50, -2px 0px 1px 0px "+L[3]+"80, 2px -2px 1px 0px "+L[4]+"80, -2px 2px 1px 0px "+L[0]+"DA, 2px 2px 1px 0px "+L[1]+"DA, -2px -2px 1px 0px "+L[2]+"DA"},children:(0,d.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:k+"px",width:k+"px",borderRadius:z,border:"3px solid white",backgroundColor:"gray",overflow:"hidden"},children:(0,d.jsx)("img",{src:g,style:{objectFit:"cover",height:k+"px",width:k+"px",backgroundColor:"white"},alt:"story image"})})}),(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,d.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-size",C+"px","important")},style:{textAlign:"center",color:(0,s.WS)(f),fontFamily:F,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis"},children:v.substring(0,24)})})]})},c=n(9302);const p=(0,n(2575).Z)({key:"whatmore-stories-css"});var h=function(t){const[e,n,a]=(0,o.Z)(),[h]=(0,i.j1)("whatmoreLandscapePadding"),[u]=(0,i.j1)("whatmoreStoryTileSize"),[f]=(0,i.j1)("whatmoreStoryTileSizeDesktop"),[x]=(0,i.j1)("whatmoreShopId"),[m,w]=(0,r.useState)("center"),g=(0,r.useRef)(null);var v=t.eventsStories;const y=t.onClick,b=t.template;(0,r.useEffect)((()=>{!function(){if(g.current){const t=g.current.scrollWidth,e=g.current.offsetWidth;w(t>e?"flex-start":"center")}}()}),[m,a]);const j="landscape"===e?n*(f/100)*.3:a*(u/100)*.5;return(0,d.jsx)(c.C,{value:p,children:(0,d.jsx)("div",{style:{left:h+"px",right:h+"px",marginBottom:"portrait"==e?(0,s.cj)(x):(0,s.TM)(x)},children:"landscape"==e&&!(0,s.DF)(x)||"portrait"==e&&!(0,s.J)(x)?(0,d.jsx)(d.Fragment,{}):(0,d.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:m,height:"fit-content",width:"100%"},className:"whatmore-story-horizontal-flex",ref:g,children:v.map(((t,e)=>(0,d.jsx)(l,{storyId:t.id,tileSize:j,onClick:t=>{y(e)},template:b,imageUrl:t.thumbnail_image,title:t.title},"whatmore-story-"+t.id)))})})})}},868:function(t,e,n){n.d(e,{V:function(){return a}});var r=n(9854),o=n(7753);const i={"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"},a=function(t){const e=(0,o.MO)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,r.zp)(e))return t;if("AZURECDN"==(0,r.zp)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(i))if(t.includes(e))return t.replace(e,i[e]);return t}}if("BUNNYCDN"==(0,r.zp)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(s))if(t.includes(e))return t.replace(e,s[e]);return t}}return t}},8866:function(t,e,n){var r=n(7313);function o(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=o();const[i,s]=(0,r.useState)(["portrait",e,n]);return(0,r.useLayoutEffect)((()=>{function t(){var[t,e]=o();s(t>e?["portrait",t,e]:["landscape",t,e])}return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),screen.orientation&&screen.orientation.addEventListener("change",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),screen.orientation&&screen.orientation.removeEventListener("change",t)}}),[]),i}},9111:function(){},123:function(){},9778:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[972],{3972:function(e,t,n){n.r(t),n.d(t,{default:function(){return k}});var r=n(7753),i=n(7313),a=n(2860),s=n(499),o=n(4897),c=n(5160),u=n(9854),l=n(6967),d=n(8984),h=n(58),g=n(4669),p=n(941),v=n(4136),m=n(7300),I=n(6524),f=n(7643),T=n(778),S=n(6417);const E=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(240),n.e(210),n.e(926),n.e(950),n.e(303),n.e(891)]).then(n.bind(n,4095)))),x=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(240),n.e(576),n.e(950),n.e(364),n.e(530)]).then(n.bind(n,5523)))),_=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(926),n.e(950),n.e(358)]).then(n.bind(n,3827)))),j=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(926),n.e(950),n.e(607)]).then(n.bind(n,6071)))),y=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(926),n.e(950),n.e(986)]).then(n.bind(n,1291)))),w=i.lazy((()=>Promise.all([n.e(302),n.e(580)]).then(n.bind(n,3580)))),M=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(576),n.e(210),n.e(803),n.e(926),n.e(303),n.e(660),n.e(68)]).then(n.bind(n,1660)))),L=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(240),n.e(210),n.e(926),n.e(950),n.e(959)]).then(n.bind(n,4048)))),C=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(240),n.e(576),n.e(950),n.e(303),n.e(364),n.e(67)]).then(n.bind(n,4362)))),O=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(576),n.e(210),n.e(803),n.e(926),n.e(303),n.e(660),n.e(334)]).then(n.bind(n,4658))));var D=function(e){const[t]=(0,r.j1)("isInDesignMode"),[n]=(0,r.j1)("isDemoBrand"),[D]=(0,r.j1)("whatmoreTopBottomPadding"),[b]=(0,r.j1)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:P}=(0,i.useContext)(v.I),[G]=(0,r.j1)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:W}=(0,i.useContext)(v.I),V=(0,r.MO)("isLandingSharedLink"),k=(0,r.MO)("whatmoreShareTemplateId"),N=(0,r.MO)("whatmoreShareStoryId"),z=(0,r.MO)("whatmoreShareEventId"),[U,Z]=(0,i.useState)(-1),[F,K]=(0,i.useState)(null);var R=e.events,A=null;const B=[];function H(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,d.KE)()&&!r&&(0,h.QV)(),t||n||(async()=>{const t=A[e].events[0];(0,c.wh)(t),(0,g.Tc)(G,a.Xh,a.OW),(0,l.H4)(t.event_id,t.products,"homepage","stories")})();var s=0;null!=i&&A[e].events.map(((e,t)=>{e.event_id==i&&(s=t)})),Z(s),K(e)}function X(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,d.KE)()&&!r&&(0,h.QV)(),(0,m.B6)(e)||(0,m.WJ)(e))return t||n||(async()=>{(0,c.wh)(e),(0,g.Tc)(G,a.Xh,a.pR),(0,l.H4)(e.event_id,e.products,"homepage","carousel")})(),void Z(e.index);const i=20;var{status:u,bannerText:p,timeToStartInMins:v}=o.Z.getEventStatus(e);v<=i&&u.name!==s.Z.LIVE.name?console.debug(" TODO : show toast on upcoming live event."):Z(e.index)}function J(e){return(0,S.jsx)(S.Fragment,{})}return R.map((e=>{e.products.map((e=>{B.push(e)}))})),P&&!A&&(A=function(e){var t=e.reduce(((e,t,n)=>{var r=t.storyset_id;return r in e?(e[r].total_events=e[r].total_events+1,e[r].events.push(t)):e[r]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:n,events:[t]},e}),{}),n=Object.values(t);return n.sort(((e,t)=>e.start_event_index-t.start_event_index)),n}(R)),(0,i.useEffect)((()=>{V&&W==(0,I.zv)(k)&&(null!=N&&P?A.forEach(((e,t)=>{N==e.id&&H(t,!0,z)})):null!=z&&R.forEach(((e,t)=>{z==e.event_id&&X(e,!0)})))}),[]),(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{style:{marginTop:(P?b:D)+"px",marginBottom:(P?b:D)+"px"},children:"template-b"===W?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(E,{events:R,onClick:X,heading:e.heading})}):"template-a-1"===W?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(x,{events:R,onClick:X,heading:e.heading})}):"template-feed-a"===W?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(C,{events:R,onClick:X,heading:e.heading})}):"template-collections-a"===W||"template-c"===W?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(f.u,{userInteractionType:T.K.COLLECTION_WIDGET_VIEW,productList:B,triggerFlag:!t&&!n,children:(0,S.jsx)(_,{events:R,onClick:X,heading:e.heading})})}):"template-collections-b"===W||"template-d"===W?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(f.u,{userInteractionType:T.K.COLLECTION_WIDGET_VIEW,productList:B,triggerFlag:!t&&!n,children:(0,S.jsx)(j,{events:R,onClick:X,heading:e.heading})})}):"template-collections-c"===W||"template-e"===W?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(f.u,{userInteractionType:T.K.COLLECTION_WIDGET_VIEW,productList:B,triggerFlag:!t&&!n,children:(0,S.jsx)(y,{events:R,onClick:X,heading:e.heading})})}):"template-collections-d"===W?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(f.u,{userInteractionType:T.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,productList:B,triggerFlag:!t&&!n,children:(0,S.jsx)(E,{events:R,onClick:X,heading:e.heading})})}):"template-collections-e"===W?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(f.u,{userInteractionType:T.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,productList:B,triggerFlag:!t&&!n,children:(0,S.jsx)(L,{events:R,onClick:X,heading:e.heading})})}):"template-banner-a"===W?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(f.u,{userInteractionType:T.K.BANNER_WIDGET_VIEW,event:R[0],productList:[],triggerFlag:!t&&!n,children:(0,S.jsx)(O,{events:R})})}):P?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(f.u,{userInteractionType:T.K.STORIES_WIDGET_VIEW,productList:B,triggerFlag:!t&&!n,children:(0,S.jsx)(w,{eventsStories:A,onClick:H,template:W})})}):(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(f.u,{userInteractionType:T.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,productList:B,triggerFlag:!t&&!n,children:(0,S.jsx)(L,{events:R,onClick:X,heading:e.heading})})})}),-1==U?(0,S.jsx)(J,{}):(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(f.u,{userInteractionType:T.K.EVENT_VIEW,event:R[U],productList:R[U].products,cta:R[U].cta,triggerFlag:!t&&!n,children:(0,S.jsx)(M,{events:R,index:U,onBack:function(e){(0,u.n2)(G)&&(0,r.MO)("whatmoreAddedToCart")&&(0,p.D)(G,(()=>{}),100,window.location.hostname),Z(-1)},slideDirection:P||"horizontal"===(0,u.e8)(G)?"horizontal":"vertical",eventsStories:A,initialStoryIndex:F,template:W})})})]})};const b=function(e,t,n){const i=(0,r.MO)("whatmoreShopId");var a=t.reduce(((e,t,n)=>(t.products.map((e=>e.client_product_id)).forEach((t=>{t in e||(e[t]=!0)})),e)),{}),s=Object.keys(a);if("60960964855"==i&&"undefined"!=typeof fera&&"function"===typeof fera.getRatings){var o={};fera.getRatings(s,(e=>{new Promise(((t,n)=>{e.forEach((e=>{o[e.external_product_id]={avgRating:e.average,totalRatings:e.count}})),t(o)})).then((e=>n(e)))}))}if("23114481744"==i){const e="1e6MQXxzYR19mpw9Km6Dcm86";o={};fetch("https://api.juniphq.com/v1/products?filter[remote_ids]="+s.toString(),{headers:{"Junip-Store-Key":e}}).then((e=>e.json())).then((e=>(e.products.forEach((e=>{o[e.remote_id]={avgRating:parseFloat(e.rating_average).toFixed(1),totalRatings:e.rating_count}})),o))).then((e=>n(e))).catch((e=>console.error(e)))}};var P=n(3388),G=n(7381),W=n(7376);var V=function(e){const[t,n]=(0,i.useState)(),[s,o]=(0,i.useState)(),{whatmoreIsStoriesTemplate:c}=(0,i.useContext)(v.I),{whatmoreIsCollectionsTemplate:g}=(0,i.useContext)(v.I),{whatmoreIsBannerTemplate:p}=(0,i.useContext)(v.I),[m]=(0,r.j1)("whatmoreShopId"),[f]=(0,r.j1)("whatmoreCollectionId"),E=(0,r.MO)("whatmoreLandingLocationType"),x=(0,r.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:_}=(0,i.useContext)(v.I),j=(0,u.cZ)(m)?window.location.href.split(/[?#]/)[0]:f,[y,w]=(0,r.j1)("productRatings");var M=(0,u.ef)(m)?a.Dm+"/v2/events/":a.Gc+"/v2/events/",L=(0,u.ef)(m)?a.Dm+"/get_eventset/":a.Gc+"/get_eventset/",C=(0,u.ef)(m)?a.Dm+"/v2/collection":a.Gc+"/v2/collection",O=(0,u.ef)(m)?a.Dm+"/v2/brand/"+m+"/product-events":a.Gc+"/v2/brand/"+m+"/product-events",V=e.shopId,k="live,upcoming";return(0,i.useEffect)((()=>{(0,l.hb)(),"index"===E?(0,W.PB)({userInteractionType:T.K.HOMEPAGE_VISITED,widgetSourceDetails:_}):"collection"===E&&(0,W.PB)({userInteractionType:T.K.COLLECTION_PAGE_VISITED,widgetSourceDetails:_})}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||s||!(0,d.KE)()||(0,r.MO)("whatmoreVideoPlayerPoolInitiated")||(0,h.b5)(h.UD)}),[t]),(0,i.useEffect)((()=>{var e;if(E.startsWith("product")){var t=(0,r.MO)("whatmoreProductId");t=(0,u.iX)(m)?function(e){return e.split(/[?#]/)[0]}(window.location.href):t,e=O.toString()+"?client_product_id="+t.toString()+"&status="+k.toString()+"&event_type=video"}else if(g)e=C.toString()+"?store_id="+V.toString()+"&client_collection_id="+j;else if(p){const t=I.ls,n=(0,I.H1)(E);e=L.toString()+V.toString()+"?eventset_type="+t+"&source="+n+"&source_id="+m}else e=M.toString()+V.toString()+"?status="+k.toString()+"&is_active="+"true".toString()+(c?"&template_type=stories":"");fetch(e).then((e=>e.json())).then((e=>{if(p){const t=I.ls;return(0,P.OC)(e,t)}return(0,P.kW)(e,g)})).then((e=>(x&&console.debug("initial received events size : "+e.length),c||p?e:(0,P.e8)(e,V)))).then((e=>(null!=e&&0!=e.length&&(0,u.LU)(m)&&function(e,t,n){const i=setInterval((()=>{null===(0,r.MO)("productRatings")&&b(e,t,n)}),1e3);setTimeout((()=>{clearInterval(i)}),1e4)}(m,e,(e=>{w(e)})),e))).then((e=>{null==e||0==e.length||c||(0,u.NO)(V,e),n(e)})).catch((e=>{o(e.message)}))}),[]),null==t||0==t.length||s?(0,S.jsx)("div",{}):(x&&(0,G.EI)(t),function(e,t){if(null!=e){var n=0;e.forEach((e=>{e.index=n++}))}}(t),x&&console.debug("final transformed events data : "+JSON.stringify(t)),x&&console.debug("valid events size : "+t.length),(0,S.jsx)("div",{children:(0,S.jsx)(D,{heading:e.heading,events:t})},"whatmore-main-coponent"))};var k=function(e){const[t]=(0,r.j1)("isInDesignMode"),[n]=(0,r.j1)("isDemoBrand"),[s]=(0,r.j1)("whatmoreShopId"),[o]=(0,r.j1)("whatmoreHeading"),[c]=(0,r.j1)("whatmorePrimaryColor"),[u]=(0,r.j1)("whatmoreSecondaryColor");return(0,i.useEffect)((()=>{(0,g.ll)(s)}),[]),(0,S.jsx)(S.Fragment,{children:(0,S.jsx)("div",{children:t||n?(0,S.jsx)("div",{children:(0,S.jsx)(V,{heading:o,shopId:a.aA})}):(0,S.jsx)("div",{children:(0,S.jsx)(V,{heading:o,shopId:s})})})})}},499:function(e,t){t.Z={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},4897:function(e,t,n){var r=n(499);t.Z=class{static getEventStatus(e){e.time_zone="GMT+5:30";var t=e.start_time+":00",n=e.end_time,i=e.scheduled_date,a=e.status,s=e.time_zone;if(a.toUpperCase()==r.Z.LIVE.name)return{status:r.Z.LIVE,bannerText:" "+r.Z.LIVE.name+" ",timeToStartInMins:0};if(a.toUpperCase()==r.Z.UPCOMING.name){var o=new Date(i+" "+t+" "+s),c=(new Date(i+" "+n+" "+s),function(e){var t=new Date,n=(e.getTime()-t.getTime())/1e3,i=n/60,a=i/60,s=a/24;return n<=0?{status:r.Z.COMPLETED,bannerText:" "+r.Z.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:i<60?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(i)+" min ",timeToStartInMins:i}:a<24?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(a)+" hr ",timeToStartInMins:60*a}:s<7?{status:r.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e.getDay()]+" ",timeToStartInMins:60*s*24}:{status:r.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(o));return{status:c.status,bannerText:c.bannerText,timeToStartInMins:c.timeToStartInMins}}return console.error("invalid status for event :: id : "+e.event_id+", status : "+e.status),{status:r.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},3388:function(e,t,n){n.d(t,{OC:function(){return o},e8:function(){return a},kT:function(){return r},kW:function(){return s},xg:function(){return i}});const r=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},i=function(e,t){return!(void 0==e.products||0==e.products.length)},a=function(e,t){if(null!=e)return e.filter((e=>1==r(e)))},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const o=function(e,t){var n;if(null==e)return[];if(!("eventsets"in e))return[];const r=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return r?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(r):[]}},7376:function(e,t,n){n.d(t,{GF:function(){return i},PB:function(){return o},Z2:function(){return a},y4:function(){return s}});var r=n(795);function i(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:a,productList:s,ctaList:o}=e;(0,r.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:a,productList:s,ctaList:o})}function a(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:a,productList:s,ctaList:o}=e;(0,r.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:a,productList:s,ctaList:o})}function s(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:a,productList:s,ctaList:o}=e;(0,r.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:a,productList:s,ctaList:o})}function o(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:a,productList:s}=e;(0,r.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:a,productList:s})}}}]);
|