whatmore-react-assets 1.0.382 → 1.0.384

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.
Files changed (32) hide show
  1. package/package.json +1 -1
  2. package/static/js/108.b2ddec17.chunk.js +1 -0
  3. package/static/js/13.f1f86e40.chunk.js +1 -0
  4. package/static/js/{358.5dd83204.chunk.js → 358.25840fff.chunk.js} +1 -1
  5. package/static/js/{561.95fd0242.chunk.js → 542.c8f2041b.chunk.js} +1 -1
  6. package/static/js/565.6c370e71.chunk.js +1 -0
  7. package/static/js/607.764c4b8f.chunk.js +1 -0
  8. package/static/js/67.c5b3a991.chunk.js +1 -0
  9. package/static/js/692.d1c70c0d.chunk.js +1 -0
  10. package/static/js/708.6864dd77.chunk.js +1 -0
  11. package/static/js/74.93b08909.chunk.js +1 -0
  12. package/static/js/{870.06605388.chunk.js → 870.39699dfa.chunk.js} +1 -1
  13. package/static/js/891.8a973baa.chunk.js +1 -0
  14. package/static/js/959.0117bf7b.chunk.js +1 -0
  15. package/static/js/972.5d266595.chunk.js +1 -0
  16. package/static/js/{708.c2687c75.chunk.js → 986.82a241b8.chunk.js} +1 -1
  17. package/whatmore.js +2 -2
  18. package/static/js/108.23835899.chunk.js +0 -1
  19. package/static/js/143.11d4ffa5.chunk.js +0 -1
  20. package/static/js/184.bc98c639.chunk.js +0 -1
  21. package/static/js/2.f7775db8.chunk.js +0 -1
  22. package/static/js/319.be28a971.chunk.js +0 -1
  23. package/static/js/607.68628a19.chunk.js +0 -1
  24. package/static/js/67.918ff54d.chunk.js +0 -1
  25. package/static/js/736.12c32ff7.chunk.js +0 -1
  26. package/static/js/891.24ef2324.chunk.js +0 -1
  27. package/static/js/959.45be2922.chunk.js +0 -1
  28. package/static/js/972.4c055304.chunk.js +0 -1
  29. /package/static/css/{143.87d68d74.chunk.css → 692.87d68d74.chunk.css} +0 -0
  30. /package/static/css/{736.3c3dc8c6.chunk.css → 708.3c3dc8c6.chunk.css} +0 -0
  31. /package/static/css/{184.87d68d74.chunk.css → 74.87d68d74.chunk.css} +0 -0
  32. /package/static/css/{708.c26c04d7.chunk.css → 986.c26c04d7.chunk.css} +0 -0
@@ -0,0 +1 @@
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(870)]).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(607),n.e(68)]).then(n.bind(n,2607)))),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(607),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})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[708],{1291:function(e,t,n){n.r(t);var r=n(7313),i=n(6090),o=n(7616),l=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),a=n(2575),x=n(8866),p=n(7753),d=n(7129),s=n(4136),h=n(8631),c=(n(6066),n(9821)),u=n(8782),f=n(6417);const m=(0,a.Z)({key:"whatmore-css-cv"});t.default=function(e){const[t,n,a]=(0,x.Z)(),[g,w,v,j,y]=(0,c.Z)(),C=(0,p.MO)("whatmoreCollectionsTileSize"),b="portrait"==t?0:(0,p.MO)("whatmoreLandscapePadding"),R=(0,p.MO)("whatmoreCollectionsTilesSpacing"),{whatmoreRootId:k}=(0,r.useContext)(s.I),S=e.events,P=e.onClick;delete o.ZP.styles.global;var L=[];for(let r=0;r<S.length;)L.push((0,f.jsx)(h.Z,{event:S[r],onClick:()=>{var e;e=S[r-1],P(e)},removeBorders:!0,borderRadius:"5%"},"collections-tile-"+r)),r+=1;return(0,f.jsx)(l.C,{value:m,children:(0,f.jsx)("div",{children:(0,f.jsx)(i.x,{theme:o.ZP,cssVarsRoot:k,resetCSS:!1,children:(0,f.jsx)(d.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,f.jsx)("div",{style:{marginLeft:b+"px",marginRight:b+"px"},children:(0,f.jsx)(u.P,{renderElement:e=>(0,f.jsx)(f.Fragment,{children:e.eventData}),dataList:L,spacing:R,defaultHeight:g*C*.01+"px",defaultWidth:w*C*.01+"px",retainAlreadyRenderedElements:!0})})})})})})}},7129:function(e,t,n){n.d(t,{V:function(){return r}});const r=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8631:function(e,t,n){var r=n(7313),i=n(9854),o=n(7753),l=(n(9111),n(123),n(9778),n(4892)),a=n(7129),x=n(9821),p=n(6417);t.Z=function(e){var t;const[n,d,s,h,c]=(0,x.Z)(),[u]=(0,o.j1)("whatmorePrimaryFont"),[f]=(0,o.j1)("whatmorePrimaryColor"),[m]=(0,o.j1)("whatmoreSecondaryColor"),[g]=(0,o.j1)("whatmoreShopId"),[w]=(0,o.j1)("whatmoreCollectionsTileSize"),[v,j]=(0,r.useState)(!1),y=(0,i.f6)(g);(0,r.useContext)(a.V);const C=e.event,b=e.onClick,R=e.removeBorders,k=n*w*.01,S=d*w*.01,P=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:S+"px",marginLeft:R?"2px":"5px",marginRight:R?"2px":"5px",marginTop:R?"2px":"5px",marginBottom:R?"2px":"5px",cursor:"pointer"},onClick:()=>{j(!0),b(C)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:P,overflow:"hidden",boxShadow:R?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+y+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+y+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+y+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+y+"DA"},children:(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:k+"px",width:S+"px",borderRadius:P,backgroundColor:"gray",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:!0,event:C})})})})}},6066:function(e,t,n){var r=n(7313),i=n(9854),o=n(7753),l=(n(9111),n(123),n(9778),n(4892)),a=n(7129),x=n(9821),p=n(6417);t.Z=function(e){var t;const[n,d,s,h,c]=(0,x.Z)(),[u]=(0,o.j1)("whatmorePrimaryFont"),[f]=(0,o.j1)("whatmorePrimaryColor"),[m]=(0,o.j1)("whatmoreSecondaryColor"),[g]=(0,o.j1)("whatmoreShopId"),[w]=(0,o.j1)("whatmoreCollectionsTileSize"),[v,j]=(0,r.useState)(!1),y=(0,i.f6)(g);(0,r.useContext)(a.V);const C=e.event1,b=e.event2,R=e.onClick,k=.01*w,S=n*k,P=n*k*.5,L=d*k,Z=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",M="15%",B=e.removeBorders;return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:S+"px",width:L+"px",marginLeft:B?"2px":"5px",marginRight:B?"2px":"5px",marginTop:B?"2px":"5px",marginBottom:B?"2px":"5px",cursor:"pointer"},children:(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:B?"0px":Z,boxShadow:B?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+y+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+y+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+y+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+y+"DA"},onClick:()=>{j(!0),R(C)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P+"px",width:L+"px",borderTopLeftRadius:B?"0px":M,borderTopRightRadius:B?"0px":M,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:!0,event:C})}),(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P+"px",width:L+"px",borderBottomLeftRadius:B?"0px":M,borderBottomRightRadius:B?"0px":M,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})]})})}},8782:function(e,t,n){n.d(t,{P:function(){return x}});var r=n(3933),i=n(8866),o=n(7313),l=(n(123),n(6417));function a(e){const{ref:t,inView:n,entry:i}=(0,r.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,l.jsx)("div",{ref:t,children:n?e.renderElement({eventData:e.data}):(0,l.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function x(e){var t;const[n,r,x]=(0,i.Z)();return(0,o.useEffect)((()=>{function e(e){e.preventDefault(),e.stopPropagation(),t.scrollLeft+=e.deltaX,t.scrollLeft+=e.deltaY}const t=document.querySelector(".whatmore-carousel-horizontal-flex");return null===t||void 0===t||t.addEventListener("wheel",e),()=>{document.removeEventListener("wheel",e)}}),[]),(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3,overflowX:"auto"},className:"whatmore-carousel-horizontal-flex",children:e.dataList.map(((t,n)=>(0,l.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+n)))})}},9111:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[986],{1291:function(e,t,n){n.r(t);var r=n(7313),i=n(6090),o=n(7616),l=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),a=n(2575),x=n(8866),p=n(7753),d=n(7129),s=n(4136),h=n(8631),c=(n(6066),n(9821)),u=n(8782),f=n(6417);const m=(0,a.Z)({key:"whatmore-css-cv"});t.default=function(e){const[t,n,a]=(0,x.Z)(),[g,w,v,j,y]=(0,c.Z)(),C=(0,p.MO)("whatmoreCollectionsTileSize"),b="portrait"==t?0:(0,p.MO)("whatmoreLandscapePadding"),R=(0,p.MO)("whatmoreCollectionsTilesSpacing"),{whatmoreRootId:S}=(0,r.useContext)(s.I),k=e.events,P=e.onClick;delete o.ZP.styles.global;var L=[];for(let r=0;r<k.length;)L.push((0,f.jsx)(h.Z,{event:k[r],onClick:()=>{var e;e=k[r-1],P(e)},removeBorders:!0,borderRadius:"5%"},"collections-tile-"+r)),r+=1;return(0,f.jsx)(l.C,{value:m,children:(0,f.jsx)("div",{children:(0,f.jsx)(i.x,{theme:o.ZP,cssVarsRoot:S,resetCSS:!1,children:(0,f.jsx)(d.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,f.jsx)("div",{style:{marginLeft:b+"px",marginRight:b+"px"},children:(0,f.jsx)(u.P,{renderElement:e=>(0,f.jsx)(f.Fragment,{children:e.eventData}),dataList:L,spacing:R,defaultHeight:g*C*.01+"px",defaultWidth:w*C*.01+"px",retainAlreadyRenderedElements:!0})})})})})})}},7129:function(e,t,n){n.d(t,{V:function(){return r}});const r=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8631:function(e,t,n){var r=n(7313),i=n(9854),o=n(7753),l=(n(9111),n(123),n(9778),n(4892)),a=n(7129),x=n(9821),p=n(6417);t.Z=function(e){var t;const[n,d,s,h,c]=(0,x.Z)(),[u]=(0,o.j1)("whatmorePrimaryFont"),[f]=(0,o.j1)("whatmorePrimaryColor"),[m]=(0,o.j1)("whatmoreSecondaryColor"),[g]=(0,o.j1)("whatmoreShopId"),[w]=(0,o.j1)("whatmoreCollectionsTileSize"),[v,j]=(0,r.useState)(!1),y=(0,i.f6)(g);(0,r.useContext)(a.V);const C=e.event,b=e.onClick,R=e.removeBorders,S=n*w*.01,k=d*w*.01,P=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:k+"px",marginLeft:R?"2px":"5px",marginRight:R?"2px":"5px",marginTop:R?"2px":"5px",marginBottom:R?"2px":"5px",cursor:"pointer"},onClick:()=>{j(!0),b(C)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:P,overflow:"hidden",boxShadow:R?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+y+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+y+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+y+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+y+"DA"},children:(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:k+"px",borderRadius:P,backgroundColor:"gray",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:!0,event:C})})})})}},6066:function(e,t,n){var r=n(7313),i=n(9854),o=n(7753),l=(n(9111),n(123),n(9778),n(4892)),a=n(7129),x=n(9821),p=n(6417);t.Z=function(e){var t;const[n,d,s,h,c]=(0,x.Z)(),[u]=(0,o.j1)("whatmorePrimaryFont"),[f]=(0,o.j1)("whatmorePrimaryColor"),[m]=(0,o.j1)("whatmoreSecondaryColor"),[g]=(0,o.j1)("whatmoreShopId"),[w]=(0,o.j1)("whatmoreCollectionsTileSize"),[v,j]=(0,r.useState)(!1),y=(0,i.f6)(g);(0,r.useContext)(a.V);const C=e.event1,b=e.event2,R=e.onClick,S=.01*w,k=n*S,P=n*S*.5,L=d*S,Z=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",M="15%",B=e.removeBorders;return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:k+"px",width:L+"px",marginLeft:B?"2px":"5px",marginRight:B?"2px":"5px",marginTop:B?"2px":"5px",marginBottom:B?"2px":"5px",cursor:"pointer"},children:(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:B?"0px":Z,boxShadow:B?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+y+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+y+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+y+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+y+"DA"},onClick:()=>{j(!0),R(C)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P+"px",width:L+"px",borderTopLeftRadius:B?"0px":M,borderTopRightRadius:B?"0px":M,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:!0,event:C})}),(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P+"px",width:L+"px",borderBottomLeftRadius:B?"0px":M,borderBottomRightRadius:B?"0px":M,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})]})})}},8782:function(e,t,n){n.d(t,{P:function(){return x}});var r=n(3933),i=n(8866),o=n(7313),l=(n(123),n(6417));function a(e){const{ref:t,inView:n,entry:i}=(0,r.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,l.jsx)("div",{ref:t,children:n?e.renderElement({eventData:e.data}):(0,l.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function x(e){var t;const[n,r,x]=(0,i.Z)();return(0,o.useEffect)((()=>{function t(e){e.preventDefault(),e.stopPropagation(),n.scrollLeft+=e.deltaX,n.scrollLeft+=e.deltaY}const n=document.querySelector(".whatmore-carousel-horizontal-flex");return e.isScroll&&(null===n||void 0===n||n.addEventListener("wheel",t)),()=>{document.removeEventListener("wheel",t)}}),[]),(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3,overflowX:"auto"},className:"whatmore-carousel-horizontal-flex",children:e.dataList.map(((t,n)=>(0,l.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+n)))})}},9111:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);