whatmore-react-assets 1.0.962 → 1.0.963

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 (61) hide show
  1. package/package.json +1 -1
  2. package/static/css/191.35f97ebb.chunk.css +2 -0
  3. package/static/css/{299.cfd4f932.chunk.css → 299.e325bb93.chunk.css} +1 -1
  4. package/static/css/{580.156c29ed.chunk.css → 381.6f769dad.chunk.css} +1 -1
  5. package/static/css/{436.b7e97097.chunk.css → 436.1471d6e3.chunk.css} +1 -1
  6. package/static/css/465.4dd2fc0f.chunk.css +1 -0
  7. package/static/css/{530.cfd4f932.chunk.css → 530.e325bb93.chunk.css} +1 -1
  8. package/static/css/587.4dd2fc0f.chunk.css +1 -0
  9. package/static/css/{708.f09036c7.chunk.css → 608.55d08668.chunk.css} +1 -1
  10. package/static/css/{150.9e9becee.chunk.css → 61.646138cd.chunk.css} +2 -2
  11. package/static/css/{965.f09036c7.chunk.css → 622.55d08668.chunk.css} +1 -1
  12. package/static/css/{894.a1d63d66.chunk.css → 704.4c845eb0.chunk.css} +1 -1
  13. package/static/css/{622.f09036c7.chunk.css → 720.55d08668.chunk.css} +1 -1
  14. package/static/css/{891.fbde3819.chunk.css → 820.42b647f6.chunk.css} +1 -1
  15. package/static/css/{692.a1d63d66.chunk.css → 862.4c845eb0.chunk.css} +1 -1
  16. package/static/css/{678.33bd74d7.chunk.css → 872.3251bfdb.chunk.css} +2 -2
  17. package/static/css/903.4dd2fc0f.chunk.css +1 -0
  18. package/static/css/{926.bdf34ed3.chunk.css → 926.a640d0a5.chunk.css} +1 -1
  19. package/static/css/{84.f09036c7.chunk.css → 965.55d08668.chunk.css} +1 -1
  20. package/static/js/191.b07bf8ac.chunk.js +1 -0
  21. package/static/js/{299.66dc537f.chunk.js → 299.dde3f79f.chunk.js} +2 -2
  22. package/static/js/305.0e75e675.chunk.js +1 -0
  23. package/static/js/381.21bf5b40.chunk.js +1 -0
  24. package/static/js/{436.2f3e8683.chunk.js → 436.ee1e5ed9.chunk.js} +1 -1
  25. package/static/js/{530.b17a2974.chunk.js → 530.197c2366.chunk.js} +1 -1
  26. package/static/js/582.9f933b37.chunk.js +1 -0
  27. package/static/js/{587.a6c6aa1a.chunk.js → 587.7d76c381.chunk.js} +1 -1
  28. package/static/js/608.95ff20e6.chunk.js +1 -0
  29. package/static/js/61.b20c9039.chunk.js +1 -0
  30. package/static/js/622.4b71d23c.chunk.js +1 -0
  31. package/static/js/704.1bce5b03.chunk.js +1 -0
  32. package/static/js/720.d01b4c7c.chunk.js +1 -0
  33. package/static/js/731.2e7a8b7f.chunk.js +1 -0
  34. package/static/js/{74.51601764.chunk.js → 74.5b4f2461.chunk.js} +1 -1
  35. package/static/js/751.31bafe40.chunk.js +1 -0
  36. package/static/js/{766.b0b031dd.chunk.js → 766.561cf75f.chunk.js} +1 -1
  37. package/static/js/820.fdeedfdf.chunk.js +1 -0
  38. package/static/js/862.5436d914.chunk.js +1 -0
  39. package/static/js/872.4016352d.chunk.js +2 -0
  40. package/static/js/{903.4869d0ad.chunk.js → 903.f013dd45.chunk.js} +1 -1
  41. package/static/js/965.ebf1a5af.chunk.js +1 -0
  42. package/whatmore.js +2 -2
  43. package/static/css/465.c06703f2.chunk.css +0 -1
  44. package/static/css/582.b99b0bd7.chunk.css +0 -2
  45. package/static/css/587.c06703f2.chunk.css +0 -1
  46. package/static/css/903.c06703f2.chunk.css +0 -1
  47. package/static/js/150.84a1166e.chunk.js +0 -1
  48. package/static/js/236.b067d827.chunk.js +0 -1
  49. package/static/js/249.7e8858c2.chunk.js +0 -1
  50. package/static/js/580.9ccb5384.chunk.js +0 -1
  51. package/static/js/582.c89aac05.chunk.js +0 -1
  52. package/static/js/622.961fd6e8.chunk.js +0 -1
  53. package/static/js/678.e969420c.chunk.js +0 -2
  54. package/static/js/692.464f4bf6.chunk.js +0 -1
  55. package/static/js/708.707b257f.chunk.js +0 -1
  56. package/static/js/84.d8f545fe.chunk.js +0 -1
  57. package/static/js/891.7b51e3e6.chunk.js +0 -1
  58. package/static/js/894.057c58cd.chunk.js +0 -1
  59. package/static/js/920.a3cf9f33.chunk.js +0 -1
  60. package/static/js/950.b581d925.chunk.js +0 -1
  61. package/static/js/965.a53eb182.chunk.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[530],{8675:function(n,t,e){e.d(t,{Z:function(){return v}});var i,o,r=e(3271),a=e(5098),l=e(7313),s=e(9821),c=e(2634),d=e(5180),h=e(168),u=e(686);const m=(0,u.F4)(i||(i=(0,h.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),f=(0,u.F4)(o||(o=(0,h.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),x="\n ".concat(m,"; \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(f,"; \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),w=e(6417);var v=function(n){var t,e,[i,o]=(0,s.Z)();const[h]=(0,p.j1)("whatmorePrimaryFont");var u=(0,l.useContext)(j.V);const m=n.event,f=n.onClick,v=null===(t=n.isOnFocus)||void 0===t||t,C=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,w.jsxs)(r.xu,{animation:C?v?x: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:()=>{f(m)},cursor:"pointer",children:[(0,w.jsx)(a.Ee,{width:"full",height:"full",src:m.thumbnail_image,objectFit:"cover",fallback:(0,w.jsx)(d.Z,{width:o,height:i}),borderRadius:"lg"}),(0,w.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,w.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,w.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,w.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,w.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,w.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,w.jsx)(c.Z,{event:m,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,w.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,w.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,w.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,w.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,w.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,w.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:m.title.substring(0,40)}),(0,w.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:m.presenter_name.substring(0,15)})]})})})})]})})]})}},5523:function(n,t,e){e.r(t);var i=e(7313),o=e(8675),r=e(6090),a=e(7616),l=(e(6143),e(7244),e(123),e(9302)),s=e(2575),c=e(3271),d=e(9821),h=e(8866),u=e(7753),m=e(9316),f=e(7129),x=e(9854),g=e(5572),p=e(7300),j=e(4920),w=e(6417);const v=(0,s.Z)({key:"whatmore-css-hv"});function C(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 b(n){var t;const[e,o]=(0,i.useState)(!1),[r,a]=(0,i.useState)(!1),[l]=(0,u.j1)("whatmoreSecondaryColorShade600"),[s]=(0,u.j1)("whatmoreSecondaryColorShade300"),[d]=(0,u.j1)("whatmorePrimaryFont"),h=null!==(t=n.baseFontSize)&&void 0!==t?t:10,f=n.onClick;return(0,w.jsx)(c.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?s:l,animation:r?m.mT:null,onClick:n=>{n.stopPropagation(),a(!0),f()},sx:{cursor:"pointer"},onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},children:(0,w.jsx)(c.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,w.jsxs)(c.xv,{fontSize:h,fontWeight:"normal",sx:{fontFamily:d+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function y(n){var t;const[e,r,a]=(0,d.Z)();var[l,s]=(0,i.useState)(0);const h=n.events,u=n.onClick,m=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,f=C(h,Math.floor(Math.min(a,h.length)));return(0,w.jsx)(c.M5,{children:(0,w.jsxs)(c.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,w.jsx)(w.Fragment,{children:f.map(((n,t)=>t>l?(0,w.jsx)(w.Fragment,{}):(0,w.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,w.jsx)(c.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,w.jsx)(j.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}}):(0,w.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,w.jsx)(w.Fragment,{children:l<f.length-1?(0,w.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,w.jsx)(b,{baseFontSize:.1*r,onClick:()=>{l>=f.length-1||s((n=>n+m))}})}):(0,w.jsx)(w.Fragment,{})})]})})}function F(n){var t;const[e,r,a,l]=(0,d.Z)();var[s,h]=(0,i.useState)(0);const u=n.events,m=n.onClick,f=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,x=C(u,Math.floor(Math.min(a,u.length)));return(0,w.jsx)(c.M5,{paddingLeft:l+"px",paddingRight:l+"px",children:(0,w.jsxs)(c.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,w.jsx)(w.Fragment,{children:x.map(((n,t)=>t>s?(0,w.jsx)(w.Fragment,{}):(0,w.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,w.jsx)(c.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,w.jsx)(j.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}}):(0,w.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,w.jsx)(w.Fragment,{children:s<x.length-1?(0,w.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,w.jsx)(b,{baseFontSize:.1*r,onClick:()=>{s>=x.length-1||h((n=>n+f))}})}):(0,w.jsx)(w.Fragment,{})})]})})}t.default=function(n){var t;const[e,o,s]=(0,h.Z)(),[d]=(0,u.j1)("whatmoreShopId"),[m]=(0,u.j1)("whatmorePrimaryColor"),[p]=(0,u.j1)("whatmoreSecondaryColor"),[j]=(0,u.j1)("whatmoreTitleFont"),C="portrait"==e?(0,u.MO)("whatmoreTitleFontSizePortrait"):(0,u.MO)("whatmoreTitleFontSize"),{whatmoreRootId:b}=(0,i.useContext)(g.I),k=n.events,S=n.onClick,M=null!==(t=(0,x.aRS)(d))&&void 0!==t?t:j;function Z(n){S(n)}return delete a.ZP.styles.global,(0,w.jsx)(l.C,{value:v,children:(0,w.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,w.jsx)(r.x,{theme:a.ZP,cssVarsRoot:b,resetCSS:!1,children:(0,w.jsxs)(f.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,w.jsx)(c.M5,{children:(0,w.jsx)(c.xv,{bgColor:m,bgClip:"text",fontSize:C,sx:{fontFamily:M+" !important"},align:"center",children:n.heading})}):(0,w.jsx)(w.Fragment,{}),"landscape"===e?(0,w.jsx)(F,{events:k,onClick:Z,seeMoreIncrement:1}):(0,w.jsx)(y,{events:k,onClick:Z,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){e.d(t,{mT:function(){return c}});var i,o,r,a=e(168),l=e(686);const s=(0,l.F4)(i||(i=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),c="\n ".concat(s," 0.2s linear;\n"),d=(0,l.F4)(o||(o=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),h=("\n ".concat(d," 0.5s infinite linear;\n"),(0,l.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(h," ").concat(3,"s ease-in-out;\n")},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:c,bannerText:d,timeToStartInMins:h}=o.Z.getEventStatus(e);return c.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:s,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:c.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:d})})}):(0,a.jsx)(i.xu,{maxWidth:s,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:c.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:d})})})}},5945:function(n,t,e){e.d(t,{s:function(){return o}});var i=e(7753);function o(n){const t=(0,i.MO)("whatmoreShopId");return"undefined"==typeof n||"undefined"==n||null==n?"":"6873415750"==t||"72442478904"==t?n:n.replace(/\w\S*/g,(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}))}},6143:function(){}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[530],{8675:function(n,t,e){e.d(t,{Z:function(){return v}});var i,o,r=e(3271),a=e(5098),l=e(7313),s=e(9821),c=e(2634),d=e(5180),h=e(168),u=e(686);const m=(0,u.F4)(i||(i=(0,h.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),f=(0,u.F4)(o||(o=(0,h.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),x="\n ".concat(m,"; \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(f,"; \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),w=e(6417);var v=function(n){var t,e,[i,o]=(0,s.Z)();const[h]=(0,p.j1)("whatmorePrimaryFont");var u=(0,l.useContext)(j.V);const m=n.event,f=n.onClick,v=null===(t=n.isOnFocus)||void 0===t||t,C=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,w.jsxs)(r.xu,{animation:C?v?x: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:()=>{f(m)},cursor:"pointer",children:[(0,w.jsx)(a.Ee,{width:"full",height:"full",src:m.thumbnail_image,objectFit:"cover",fallback:(0,w.jsx)(d.Z,{width:o,height:i}),borderRadius:"lg"}),(0,w.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,w.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,w.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,w.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,w.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,w.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,w.jsx)(c.Z,{event:m,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,w.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,w.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,w.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,w.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,w.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,w.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:m.title.substring(0,40)}),(0,w.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:m.presenter_name.substring(0,15)})]})})})})]})})]})}},5523:function(n,t,e){e.r(t);var i=e(7313),o=e(8675),r=e(6090),a=e(7616),l=(e(6143),e(7244),e(123),e(9302)),s=e(2575),c=e(3271),d=e(9821),h=e(8866),u=e(7753),m=e(9316),f=e(7129),x=e(9854),g=e(8811),p=e(7300),j=e(4920),w=e(6417);const v=(0,s.Z)({key:"whatmore-css-hv"});function C(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 b(n){var t;const[e,o]=(0,i.useState)(!1),[r,a]=(0,i.useState)(!1),[l]=(0,u.j1)("whatmoreSecondaryColorShade600"),[s]=(0,u.j1)("whatmoreSecondaryColorShade300"),[d]=(0,u.j1)("whatmorePrimaryFont"),h=null!==(t=n.baseFontSize)&&void 0!==t?t:10,f=n.onClick;return(0,w.jsx)(c.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?s:l,animation:r?m.mT:null,onClick:n=>{n.stopPropagation(),a(!0),f()},sx:{cursor:"pointer"},onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},children:(0,w.jsx)(c.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,w.jsxs)(c.xv,{fontSize:h,fontWeight:"normal",sx:{fontFamily:d+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function y(n){var t;const[e,r,a]=(0,d.Z)();var[l,s]=(0,i.useState)(0);const h=n.events,u=n.onClick,m=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,f=C(h,Math.floor(Math.min(a,h.length)));return(0,w.jsx)(c.M5,{children:(0,w.jsxs)(c.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,w.jsx)(w.Fragment,{children:f.map(((n,t)=>t>l?(0,w.jsx)(w.Fragment,{}):(0,w.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,w.jsx)(c.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,w.jsx)(j.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}}):(0,w.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,w.jsx)(w.Fragment,{children:l<f.length-1?(0,w.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,w.jsx)(b,{baseFontSize:.1*r,onClick:()=>{l>=f.length-1||s((n=>n+m))}})}):(0,w.jsx)(w.Fragment,{})})]})})}function F(n){var t;const[e,r,a,l]=(0,d.Z)();var[s,h]=(0,i.useState)(0);const u=n.events,m=n.onClick,f=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,x=C(u,Math.floor(Math.min(a,u.length)));return(0,w.jsx)(c.M5,{paddingLeft:l+"px",paddingRight:l+"px",children:(0,w.jsxs)(c.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,w.jsx)(w.Fragment,{children:x.map(((n,t)=>t>s?(0,w.jsx)(w.Fragment,{}):(0,w.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,w.jsx)(c.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,w.jsx)(j.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}}):(0,w.jsx)(o.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,w.jsx)(w.Fragment,{children:s<x.length-1?(0,w.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,w.jsx)(b,{baseFontSize:.1*r,onClick:()=>{s>=x.length-1||h((n=>n+f))}})}):(0,w.jsx)(w.Fragment,{})})]})})}t.default=function(n){var t;const[e,o,s]=(0,h.Z)(),[d]=(0,u.j1)("whatmoreShopId"),[m]=(0,u.j1)("whatmorePrimaryColor"),[p]=(0,u.j1)("whatmoreSecondaryColor"),[j]=(0,u.j1)("whatmoreTitleFont"),C="portrait"==e?(0,u.MO)("whatmoreTitleFontSizePortrait"):(0,u.MO)("whatmoreTitleFontSize"),{whatmoreRootId:b}=(0,i.useContext)(g.I),k=n.events,S=n.onClick,M=null!==(t=(0,x.aRS)(d))&&void 0!==t?t:j;function Z(n){S(n)}return delete a.ZP.styles.global,(0,w.jsx)(l.C,{value:v,children:(0,w.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,w.jsx)(r.x,{theme:a.ZP,cssVarsRoot:b,resetCSS:!1,children:(0,w.jsxs)(f.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,w.jsx)(c.M5,{children:(0,w.jsx)(c.xv,{bgColor:m,bgClip:"text",fontSize:C,sx:{fontFamily:M+" !important"},align:"center",children:n.heading})}):(0,w.jsx)(w.Fragment,{}),"landscape"===e?(0,w.jsx)(F,{events:k,onClick:Z,seeMoreIncrement:1}):(0,w.jsx)(y,{events:k,onClick:Z,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){e.d(t,{mT:function(){return c}});var i,o,r,a=e(168),l=e(686);const s=(0,l.F4)(i||(i=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),c="\n ".concat(s," 0.2s linear;\n"),d=(0,l.F4)(o||(o=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),h=("\n ".concat(d," 0.5s infinite linear;\n"),(0,l.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(h," ").concat(3,"s ease-in-out;\n")},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:c,bannerText:d,timeToStartInMins:h}=o.Z.getEventStatus(e);return c.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:s,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:c.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:d})})}):(0,a.jsx)(i.xu,{maxWidth:s,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:c.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:d})})})}},5945:function(n,t,e){e.d(t,{s:function(){return o}});var i=e(7753);function o(n){const t=(0,i.MO)("whatmoreShopId");return"undefined"==typeof n||"undefined"==n||null==n?"":"6873415750"==t||"72442478904"==t?n:n.replace(/\w\S*/g,(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}))}},6143:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[582],{5582:function(e,t,n){n.r(t),n.d(t,{default:function(){return U}});var a=n(7753),i=n(7313),r=n(2860),s=n(499),o=n(4897),l=n(5160),c=n(9854),d=n(6967),u=n(8984),_=n(58),p=n(4669),m=n(513),h=n(8811),v=n(7300),f=n(6524),g=n(7643),y=n(778),w=n(8181),b=n(6095),S=n(6417);const I=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(351),n.e(751),n.e(926),n.e(824),n.e(820)]).then(n.bind(n,4095)))),k=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(576),n.e(751),n.e(305),n.e(530)]).then(n.bind(n,5523)))),x=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(423),n.e(751),n.e(926),n.e(731),n.e(622)]).then(n.bind(n,3827)))),E=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(423),n.e(751),n.e(926),n.e(731),n.e(965)]).then(n.bind(n,6071)))),T=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(423),n.e(751),n.e(926),n.e(731),n.e(608)]).then(n.bind(n,1291)))),j=i.lazy((()=>Promise.all([n.e(302),n.e(751),n.e(381)]).then(n.bind(n,3580)))),C=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(576),n.e(351),n.e(955),n.e(751),n.e(926),n.e(824),n.e(74),n.e(191)]).then(n.bind(n,8074)))),O=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(351),n.e(751),n.e(926),n.e(824),n.e(305),n.e(436)]).then(n.bind(n,1492)))),L=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(751),n.e(824),n.e(872)]).then(n.bind(n,9085)))),D=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(576),n.e(751),n.e(824),n.e(305),n.e(299)]).then(n.bind(n,4362)))),A=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(576),n.e(351),n.e(955),n.e(751),n.e(926),n.e(824),n.e(74),n.e(61)]).then(n.bind(n,4658)))),N=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(367),n.e(423),n.e(751),n.e(926),n.e(720)]).then(n.bind(n,8767))));var M=function(e){const[t]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[M]=(0,a.j1)("whatmoreTopBottomPadding"),[P]=(0,a.j1)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:K}=(0,i.useContext)(h.I),[R]=(0,a.j1)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:q}=(0,i.useContext)(h.I),W=(0,a.MO)("isLandingSharedLink"),G=(0,a.MO)("whatmoreShareTemplateId"),V=(0,a.MO)("whatmoreShareStoryId"),H=(0,a.MO)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:U,whatmoreUserInfo:z}=(0,i.useContext)(h.I),B=W&&q===(0,f.zv)(G),[F,Z]=(0,i.useState)(B),[Y,J]=(0,i.useState)(-1),[Q,X]=(0,i.useState)(null);let $=e.events,ee=[];if("template-banner-a"!==q){let e=0;for(let t=0;t<(null===$||void 0===$?void 0:$.length);t++){var te,ne,ae,ie;const n=(null===$||void 0===$||null===(te=$[t])||void 0===te||null===(ne=te.products)||void 0===ne?void 0:ne.length)>0&&(null===$||void 0===$||null===(ae=$[t])||void 0===ae||null===(ie=ae.products)||void 0===ie?void 0:ie.every((e=>"oos"===(null===e||void 0===e?void 0:e.product_status))));if(!(0,v.B6)($[t])&&!(0,v.WJ)($[t])||n&&"12326200"!=R){if((0,v.yC)(null===$||void 0===$?void 0:$[t])){var{status:re,bannerText:se,timeToStartInMins:oe}=o.Z.getEventStatus($[t]);re.name===s.Z.LIVE.name&&(ee.push({...null===$||void 0===$?void 0:$[t],index:e}),e++)}}else ee.push({...null===$||void 0===$?void 0:$[t],index:e}),e++}}var le=null;K&&!le&&(le=function(e){var t=e.reduce(((e,t,n)=>{var a,i=t.storyset_id;return i in e?(e[i].total_events=e[i].total_events+1,e[i].events.push(t)):e[i]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(a=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==a&&a,events:[t]},e}),{}),n=Object.values(t);return n.sort(((e,t)=>e.start_event_index-t.start_event_index)),n}(ee));const ce=U.landingLocationType,de=U.templateType;function ue(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,u.KE)()&&!a&&(0,_.QV)(),t||n||(async()=>{const t=le[e].events[0],n=(0,f.NY)(ce)+(0,f.dS)(de)+"_"+(null===t||void 0===t?void 0:t.event_id);(0,l.wh)(t),(0,p.Tc)(R,r.Xh,r.OW),(0,d.H4)(t.event_id,t.products,"homepage","stories",n,null===t||void 0===t?void 0:t.location,null===z||void 0===z?void 0:z.userType)})();var s=0;null!=i&&le[e].events.map(((e,t)=>{e.event_id==i&&(s=t)})),J(s),X(e)}function _e(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,u.KE)()&&!a&&(0,_.QV)(),(0,v.B6)(e)||(0,v.WJ)(e))return t||n||(async()=>{const t=(0,f.NY)(ce)+(0,f.dS)(de)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.wh)(e),(0,p.Tc)(R,r.Xh,r.pR),(0,d.H4)(e.event_id,e.products,"homepage","carousel",t)})(),void J(e.index);const i=20;var{status:c,bannerText:m,timeToStartInMins:h}=o.Z.getEventStatus(e);h<=i&&c.name!==s.Z.LIVE.name?console.debug(" TODO : show toast on upcoming live event."):J(e.index)}function pe(e){return(0,S.jsx)(S.Fragment,{})}return(0,i.useEffect)((()=>{if(B)if((0,b.A)("whatmore-video-player",(()=>{Z(!1)})),null!=V&&K){const e=le.find((e=>V==e.id));if(e)return void ue(le.indexOf(e),!0,H)}else if(null!=H){const e=ee.find((e=>H==e.event_id));if(e)return void _e(e,!0)}}),[]),(0,S.jsxs)(S.Fragment,{children:[F&&(0,S.jsx)(w.Z,{}),(0,S.jsx)("div",{className:"whatmore-widget-container",style:{marginTop:(K?P:M)+"px",marginBottom:(K?P:M)+"px"},children:"template-b"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(I,{events:ee,onClick:_e,heading:e.heading})}):"template-a-1"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(k,{events:ee,onClick:_e,heading:e.heading})}):"template-feed-a"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(D,{events:ee,onClick:_e,heading:e.heading})}):"template-collections-a"===q||"template-c"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,S.jsx)(x,{events:ee,index:Y,setScreen:J,onClick:_e,heading:e.heading})})}):"template-collections-b"===q||"template-d"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,S.jsx)(E,{events:ee,index:Y,setScreen:J,onClick:_e,heading:e.heading})})}):"template-collections-c"===q||"template-e"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,S.jsx)(T,{events:ee,index:Y,setScreen:J,onClick:_e,heading:e.heading})})}):"template-collections-d"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,S.jsx)(I,{events:ee,index:Y,setScreen:J,onClick:_e,heading:e.heading})})}):"template-collections-e"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,S.jsx)(O,{events:ee,index:Y,setScreen:J,onClick:_e,heading:e.heading})})}):"template-collections-stories"===q||"template-stories"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,S.jsx)(N,{events:ee,index:Y,setScreen:J,onClick:_e,heading:e.heading})})}):"template-f"===q||"template-collections-f"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,S.jsx)(L,{events:ee,onClick:_e,heading:e.heading})})}):"template-banner-a"===q?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.BANNER_WIDGET_VIEW,event:$[0],triggerFlag:!t&&!n,children:(0,S.jsx)(A,{events:$})})}):K?(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.STORIES_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,S.jsx)(j,{eventsStories:le,onClick:ue,template:q})})}):(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,S.jsx)(O,{events:ee,onClick:_e,heading:e.heading})})})}),-1==Y||-2==Y?(0,S.jsx)(pe,{}):(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(g.u,{userInteractionType:y.K.EVENT_VIEW,event:$[Y],productList:$[Y].products,cta:$[Y].cta,triggerFlag:!t&&!n,children:(0,S.jsx)(C,{events:ee,index:Y,onBack:function(e){(0,c.n2L)(R)&&(0,a.MO)("whatmoreAddedToCart")&&(0,m.D)(R,(()=>{}),100,window.location.hostname,e),J(-1),Z(!1)},slideDirection:K||"horizontal"===(0,c.e8z)(R)?"horizontal":"vertical",eventsStories:le,initialStoryIndex:Q,template:q})})})]})};const P=function(e,t,n){const i=(0,a.MO)("whatmoreShopId");var r=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(r);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 K=n(3388),R=n(7381),q=n(4522),W=n(7008);const G=[{event_id:2333,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:204,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/sadabahaar-chanderi-suit-set",client_product_id:"6780183806018",price:"2800.00",currency:"INR",title:"Sadabahaar Chanderi Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/products/5_72f81f91-e027-4497-9dfe-20480b862c54.jpg?v=1684509430",compare_price:"6999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:1,event_state:"ready",poster_image:null,total_views:37,total_like:1,total_share:0,total_whatsapp:0},{event_id:2335,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:2108,brand:"whatmore-dev",product_link:"https://www.ordinaree.com/products/grease-black-designer-blackless-long-dress-for-women-online",client_product_id:"7210211311652",price:"5040.00",currency:"INR",title:"Grease Backless Long Dress",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0106/4897/7444/products/DSC_0377_45ee56eb-1240-4a17-9332-841809f132cf.jpg?v=1673001396",compare_price:"5600.00",product_metadata:null,product_status:"active"},{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:4,event_state:"ready",poster_image:null,total_views:31,total_like:0,total_share:0,total_whatsapp:0},{event_id:2336,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:632,brand:"whatmore-dev",product_link:"https://www.meerasplussizestore.com/products/basil-brick-ajrakh-handblock-printed-kurta",client_product_id:"6864880173194",price:"876.00",currency:"INR",title:"Basil & Brick Ajrakh Handblock Printed Kurta",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0363/0075/0986/products/Dark-Green-Maroon-Pati-Ajrakh-Kurti-SCL_6948.jpg?v=1653729466",compare_price:"2190.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:5,event_state:"ready",poster_image:null,total_views:21,total_like:0,total_share:0,total_whatsapp:0},{event_id:2338,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1728,brand:"whatmore-dev",product_link:"https://suta.in/products/ratri-kamal",client_product_id:"6916488003649",price:"4200.00",currency:"INR",title:"Ratri kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/ratri-kamal-293774.jpg?v=1668084259",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1732,brand:"whatmore-dev",product_link:"https://suta.in/products/kedar-ki-dor-blouse",client_product_id:"6625859502145",price:"4200.00",currency:"INR",title:"Kedar Ki Dor",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/files/DSC01009.jpg?v=1712326816",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1736,brand:"whatmore-dev",product_link:"https://suta.in/products/swarna-kamal",client_product_id:"6916483317825",price:"4200.00",currency:"INR",title:"Swarna Kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/swarna-kamal-472043.jpg?v=1668093054",compare_price:null,product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_496a26de-50cd-4823-8731-a97e0757efcf.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_496a26de-50cd-4823-8731-a97e0757efcf.mp4?v=1677477938",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:6,event_state:"ready",poster_image:null,total_views:28,total_like:0,total_share:0,total_whatsapp:0},{event_id:3255,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:3636,brand:"whatmore-dev",product_link:"https://buysohi.com/products/sohear8383",client_product_id:"7679599771864",price:"543.00",currency:"INR",title:"Gold Plated Pearl Stud",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0626/0218/2872/products/SS22_SOHEAR8383_1.jpg?v=1651755514",compare_price:"1699.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-01-24",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b0045891-f042-47d4-a87a-187c96a1857e.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b0045891-f042-47d4-a87a-187c96a1857e.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:7,event_state:"ready",poster_image:null,total_views:36,total_like:1,total_share:3,total_whatsapp:0},{event_id:3877,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-03",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_CoH_liSAYOj.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_CoH_liSAYOj_b1999a62-134d-4301-9808-5d09e64a8979.mp4?v=1677477812",presenter_email:null,presenter_phone:null,room_id:null,event_type:"video",is_active:!0,rank:20,event_state:"ready",poster_image:null,total_views:16,total_like:0,total_share:0,total_whatsapp:0},{event_id:4188,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:4459,brand:"whatmore-dev",product_link:"https://theethnic.co/products/black-ruching-jacket-kurta-set",client_product_id:"8011323769076",price:"7499.00",currency:"INR",title:"Black Ruching Jacket Kurta Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0650/7937/8164/products/1_5102cd2e-a419-4682-abf1-d9619e6e96d7.jpg?v=1674275880",compare_price:"9999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-07",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_c398aa0e-f0ac-4aba-91f5-4b1bcc5b1d51.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_7acda7d8-9762-47c7-9ee2-35e14db4c3fb.mp4?v=1677477803",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:23,event_state:"ready",poster_image:null,total_views:8,total_like:0,total_share:1,total_whatsapp:0},{event_id:28701,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:364,cta_link:"https://lovechild.in/collections/fragrances",client_cta_id:"https://lovechild.in/collections/fragrances",cta_title:"Explore",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-10",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",discount_coupon_image:"",event_hls_url:"https://d1zl4k1t5o4s75.cloudfront.net/whatmoredev/1080p_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:57,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:28767,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-11",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973716",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973708",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:58,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:48,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:24,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/evil-eye-adjustable-ring-gold",client_product_id:"6923301748874",price:"1250.00",currency:"INR",title:"Evil Eye adjustable ring - Gold",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/WhatsAppImage2020-09-21at11.38.01AM_1_700x_c51dd690-b6d8-4059-b3e0-13a2edf3feea.jpg?v=1656673474",compare_price:"1300",product_metadata:null,product_status:"active"},{product_id:23,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/rose-water-200ml",client_product_id:"6923319771274",price:"250.00",currency:"INR",title:"ROSE WATER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/RoseWaterFront-01_250x_2x_c4cd34f3-625d-463a-bf36-3b159322b7ed.png?v=1656673764",compare_price:null,product_metadata:null,product_status:"active"},{product_id:21,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923307647114",price:"1300.00",currency:"INR",title:"HONEY & LEMON FACE CLEANSER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/C5D_9156-01_250x_2x_2f91ab64-e5a4-42f1-baf3-5f3ecffb2b50_1.png?v=1656673584",compare_price:"1340",product_metadata:null,product_status:"active"},{product_id:22,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923317051530",price:"350.00",currency:"INR",title:"HONEY AND ROSE BODY CREAM 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/2_250x_2x_47ffd4b3-4100-4afb-b4c8-a09867e40ddb.png?v=1656673726",compare_price:null,product_metadata:null,product_status:"active"}],cta:[{cta_id:73,cta_link:"https://honeyandspice.in/collections/central-indian",client_cta_id:"https://honeyandspice.in/collections/central-indian",cta_title:"Shop Now",thumbnail_image:"",cta_type:""}],title:"BTS of HoneyAndSpice",description:"",brand:"whatmore-dev",scheduled_date:"2023-08-10",status:"upcoming",start_time:"19:00",end_time:"20:00",actual_start_time:null,actual_end_time:null,presenter_name:"Honey and Spice",thumbnail_image:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-01942fec-68a5-4417-aa28-a0bff121a3ec.mp4",discount_coupon_image:"",event_hls_url:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-2f0d18e6-a519-4e70-b8b3-529b90a04c28.mp4",presenter_email:null,presenter_phone:"+919888988889",room_id:null,event_type:"video",is_active:!0,rank:59,event_state:"ready",poster_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0},{event_id:33888,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937498",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937490",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:60,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2b78b138-b18f-45e3-b8dc-6ce59075872f.webp?v=1708937505",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33890,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937809",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937801",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:61,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.webp?v=1708937816",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33947,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947355",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947347",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:62,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_81844dee-68c7-425e-96bf-d3ac63c664e7.webp?v=1708947362",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41975,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:482,cta_link:"https://tests.com",client_cta_id:"https://tests.com",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:69,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_51411814-cff2-491f-aca3-303e84307049.webp?v=1714033531",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41976,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:481,cta_link:"https://test1231.com",client_cta_id:"https://test1231.com",cta_title:" ",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:70,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_c2a47941-cafb-4765-ac6c-d6414679c6bd.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41977,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033513",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:71,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_a0f26d1d-462b-4548-848c-806702cf9c95.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0}];var V=function(e){const[t,n]=(0,i.useState)(),[s,o]=(0,i.useState)(),{whatmoreIsStoriesTemplate:l}=(0,i.useContext)(h.I),{whatmoreIsCollectionsTemplate:p}=(0,i.useContext)(h.I),{whatmoreIsBannerTemplate:m}=(0,i.useContext)(h.I),[v]=(0,a.j1)("whatmoreShopId"),[g]=(0,a.j1)("whatmoreCollectionId"),w=(0,a.MO)("whatmoreLandingLocationType"),b=(0,a.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(h.I),{whatmoreUserInfo:k,whatmoreIsPreviewMode:x}=(0,i.useContext)(h.I),{whatmoreCollectionUrl:E}=(0,i.useContext)(h.I),[T]=(0,a.j1)("isInDesignMode"),[j]=(0,a.j1)("isDemoBrand"),C=(0,c.cZT)(v)?(0,c._uv)(v)?E:window.location.href.split(/[?#]/)[0]:g,[O,L]=(0,a.j1)("productRatings"),[D,A]=(0,i.useState)(!1);var N=(0,c.efR)(v)?r.Dm+"/v2/events/":r.Gc+"/v2/events/",V=(0,c.efR)(v)?r.Dm+"/v3/events/":r.Gc+"/v3/events/",H=(0,c.efR)(v)?r.Dm+"/v4/events/":r.Gc+"/v4/events/",U=(0,c.efR)(v)?r.Dm+"/get_eventset/":r.Gc+"/get_eventset/",z=(0,c.efR)(v)?r.Dm+"/v2/collection":r.Gc+"/v2/collection",B=(0,c.efR)(v)?r.Dm+"/v3/collection":r.Gc+"/v3/collection",F=(0,c.efR)(v)?r.Dm+"/v2/brand/"+v+"/product-events":r.Gc+"/v2/brand/"+v+"/product-events",Z=e.shopId,Y="live,upcoming",J="true";return(0,i.useEffect)((()=>{(0,d.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,W.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||s||!(0,u.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,_.b5)(_.UD)}),[t]),(0,i.useEffect)((()=>{var e;if(w.startsWith("product"))if((0,c.C86)(v))e=N.toString()+Z.toString()+"?status="+Y.toString()+"&is_active="+J.toString();else{var t=(0,a.MO)("whatmoreProductId");t=(0,c.iXA)(v)?function(e,t){return"STRQMPNF7QK"==t?encodeURIComponent(e):e.split(/[?#]/)[0]}(window.location.href,v):t,e=F.toString()+"?client_product_id="+t.toString()+"&status="+Y.toString()+"&event_type=video"}else if(p||"invalid-url"!==E)e=(0,c.YGB)(v)?"".concat(B.toString(),"?store_id=").concat(Z.toString(),"&client_collection_id=").concat("index"==w&&(0,c.igW)(v).length>0?(0,c.igW)(v)[0]:C):"".concat(z.toString(),"?store_id=").concat(Z.toString(),"&client_collection_id=").concat("index"==w&&(0,c.igW)(v).length>0?(0,c.igW)(v)[0]:C);else if(m){const t=f.ls,n=(0,f.H1)(w);e=U.toString()+Z.toString()+"?eventset_type="+t+"&source="+n+"&source_id="+v}else{var i,r,s,u;if(("72201044272"==v||"2665447536"==v&&x)&&!l)e=V.toString()+Z.toString()+"?status="+Y.toString()+"&is_active="+J.toString()+"&latitude="+(null!==(i=null===(r=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===r?void 0:r.latitude)&&void 0!==i?i:"")+"&longitude="+(null!==(s=null===(u=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===u?void 0:u.longitude)&&void 0!==s?s:"")+"&user_type="+(null!==k&&void 0!==k&&k.userType?"olduser":"newuser");else e=(0,c.YGB)(v)&&!l?H.toString()+Z.toString()+"?status="+Y.toString()+"&is_active="+J.toString():N.toString()+Z.toString()+"?status="+Y.toString()+"&is_active="+J.toString()+(l?"&template_type=stories":"")}fetch(e).then((e=>e.json())).then((e=>{if(m){const t=f.ls;return(0,K.OC)(e,t)}return(0,c.YGB)(v)&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,d.xV)(null===e||void 0===e?void 0:e.questions)),(0,K.kW)(e,p||"invalid-url"!==E)})).then((e=>(b&&console.debug("initial received events size : "+e.length),l||p||m?e:(0,K.e8)(e,Z)))).then((e=>(null!=e&&0!=e.length&&(0,c.LUY)(v)&&function(e,t,n){const i=setInterval((()=>{null===(0,a.MO)("productRatings")&&P(e,t,n)}),1e3);setTimeout((()=>{clearInterval(i)}),1e4)}(v,e,(e=>{L(e)})),e))).then((e=>{null==e||0==e.length||l||m||(0,c.NOv)(Z,e),n((j||T)&&null==e?G:e),A(!0)})).catch((e=>{o(e.message)}))}),[]),(0,i.useEffect)((()=>{"index"===w?t&&t.length>0&&(0,q.PB)({userInteractionType:y.K.HOMEPAGE_VISITED,widgetSourceDetails:I}):"collection"===w&&(t&&t.length>0||(0,c.miB)(v))&&(0,q.PB)({userInteractionType:y.K.COLLECTION_PAGE_VISITED,widgetSourceDetails:I})}),[t]),(D&&(null==t||0==t.length)||s)&&h.$.forEach((e=>{var t,n,a,i;const r=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),s=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]'),o=null!==(a=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-d"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]'))&&void 0!==a?a:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]')||e.querySelector('.whatmore-template-type[data="template-collections-d"]'),c=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),d=e;if(l){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!p){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}(c||o||s||r)&&(s&&d||r&&d||c&&d||o&&d)&&(d.style.minHeight="0px")})),null==t||0==t.length||s?(0,S.jsx)("div",{}):(b&&(0,R.EI)(t),function(e){if(null!=e){var t=0;e.forEach((e=>{e.index=t++}))}}(t),b&&console.debug("final transformed events data : "+JSON.stringify(t)),b&&console.debug("valid events size : "+t.length),(0,S.jsx)(M,{heading:e.heading,events:t}))},H=n(3933);var U=function(e){const[t]=(0,a.j1)("whatmoreShopId"),[n]=(0,a.j1)("whatmoreHeading"),[r,s]=(0,i.useState)(["initial",window.pageYOffset]),[o,l]=(0,i.useState)(!1),d="2665447536"==t?30:10,u=(0,a.MO)("isLandingSharedLink");(0,i.useEffect)((()=>{if((0,p.ll)(t),!(0,c.wc0)(t))return;const e=d;let n=window.pageYOffset,a=!1;const i=()=>{const t=window.pageYOffset;var i,r;Math.abs(t-n)<e?a=!1:(r=!0,s(i=[t>n?"scrolled-down":"scrolled-up",t]),i[1]>d&&l(r),n=t>0?t:0,a=!1)},r=()=>{a||(window.requestAnimationFrame(i),a=!0)};return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)}),[]);const[_,m,h]=(0,H.YD)({triggerOnce:!0});return(0,S.jsx)("div",{ref:_,style:{display:"block"},children:o||m||u||!(0,c.wc0)(t)?(0,S.jsx)(V,{heading:n,shopId:t}):(0,S.jsx)("div",{})})}},8181:function(e,t,n){var a=n(7313),i=n(8866),r=n(7753),s=n(6417);const o=a.memo((()=>{if(!(0,r.MO)("isLandingSharedLink"))return(0,s.jsx)(s.Fragment,{});const[e]=(0,i.Z)();return(0,s.jsxs)("div",{className:"shimmer-container ".concat(e),children:["portrait"===e?(0,s.jsx)("div",{className:"shimmer-item portrait-full",children:(0,s.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,s.jsx)("div",{className:"shimmer-item landscape-item ".concat(1===t?"center-item":""),children:(0,s.jsx)("div",{className:"shimmer-effect"})},t))),(0,s.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));t.Z=o},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 a=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,r=e.status,s=e.time_zone;if(r.toUpperCase()==a.Z.LIVE.name)return{status:a.Z.LIVE,bannerText:" "+a.Z.LIVE.name+" ",timeToStartInMins:0};if(r.toUpperCase()==a.Z.UPCOMING.name){var o=new Date(i+" "+t+" "+s),l=(new Date(i+" "+n+" "+s),function(e){var t=new Date,n=(e.getTime()-t.getTime())/1e3,i=n/60,r=i/60,s=r/24;return n<=0?{status:a.Z.COMPLETED,bannerText:" "+a.Z.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:a.Z.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:i<60?{status:a.Z.UPCOMING,bannerText:"Starts in "+Math.round(i)+" min ",timeToStartInMins:i}:r<24?{status:a.Z.UPCOMING,bannerText:"Starts in "+Math.round(r)+" hr ",timeToStartInMins:60*r}:s<7?{status:a.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e.getDay()]+" ",timeToStartInMins:60*s*24}:{status:a.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(o));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+e.event_id+", status : "+e.status),{status:a.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},3388:function(e,t,n){n.d(t,{OC:function(){return o},e8:function(){return r},kT:function(){return a},kW:function(){return s},xg:function(){return i}});const a=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)},r=function(e,t){if(null!=e)return e.filter((e=>1==a(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 a=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return a?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(a):[]}},6095:function(e,t,n){function a(e,t){let n=0;let a=new MutationObserver((function(){document.querySelector("."+e)?(t(),a.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),a.disconnect()}),8e3))}));a.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{A:function(){return a}})},4522:function(e,t,n){n.d(t,{gW:function(){return o},GF:function(){return l},y4:function(){return d},PB:function(){return u},Z2:function(){return c}});var a=n(9854),i=n(7753),r=n(778);var s=n(733);const o={[r.K.EVENT_VIEW]:"whatmore_video_click_event",[r.K.VIDEO_LIKED]:"whatmore_video_like_event",[r.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[r.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[r.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event"};function l(e){var t;let{userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:d,productList:u,ctaList:_}=e;(0,s.s)({userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:d,productList:u,ctaList:_}),n in o&&function(e,t){const n=(0,i.MO)("whatmoreShopId");(e!=r.K.EVENT_VIEW||(0,a.UAB)(n))&&(e!=r.K.SHOPNOW_ATC_CLICKED&&e!=r.K.PRODUCT_TILE_ATC_CLICKED||(0,a.Tn_)(n))&&(e!=r.K.VIDEO_LIKED||(0,a.sKB)(n))&&(e!=r.K.VIDEO_SHARE_CTA_CLICKED||(0,a.YOU)(n))&&(e!=r.K.PRODUCT_TILE_SHOPNOW_CLICKED&&e!=r.K.SHOPNOW_CLICKED||(0,a.ejq)(n))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",o[e],{id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link})})()}(n,null!==(t=null===u||void 0===u?void 0:u[1])&&void 0!==t?t:null===u||void 0===u?void 0:u[0])}function c(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:o}=e;(0,s.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:o})}function d(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:o}=e;(0,s.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:o})}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:o}=e;(0,s.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:o})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[587],{3867:function(t,e,n){var r=n(8816),i=n(417),o=n(4885),a=n(7753),s=n(5572),l=n(7313),c=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,l.useContext)(s.I),[u]=(0,a.j1)("whatmoreSecondaryColor"),[d,p]=(0,a.j1)("productRatings"),f=(0,a.MO)("whatmorePrimaryFont"),m=(t.storeId,t.productId),v=(t.productLink,t.fontSize),y=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(m in d)||d[m].avgRating>5)return(0,c.jsx)(c.Fragment,{});const I=d[m].avgRating,_=d[m].totalRatings;return(0,c.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,c.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(I))].map(((t,e)=>(0,c.jsx)(r.Z,{sx:{color:u,fontSize:v+"px"}},"star-icon"+e))),I-Math.floor(I)>.2?(0,c.jsx)(i.Z,{sx:{color:u,fontSize:v+"px"}},"star-half-icon"):I-Math.floor(I)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(o.Z,{sx:{color:u,fontSize:v+"px"}},"star-outline-icon"),[...Array(Math.floor(5-I))].map(((t,e)=>(0,c.jsx)(o.Z,{sx:{color:u,fontSize:v+"px"}},"star-outline-icon-"+e))),(0,c.jsx)("div",{children:(0,c.jsx)("div",{width:"2px"})}),(0,c.jsx)("div",{children:(0,c.jsx)("div",{style:{backgroundColor:u,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*v+"px","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",I,"\xa0"]})})}),(0,c.jsx)("div",{children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",y,"important"),t.style.setProperty("font-size",.8*v+"px","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+_+")"]})})]})})}},499:function(t,e){e.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(t,e,n){var r=n(499);e.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,i=t.scheduled_date,o=t.status,a=t.time_zone;if(o.toUpperCase()==r.Z.LIVE.name)return{status:r.Z.LIVE,bannerText:" "+r.Z.LIVE.name+" ",timeToStartInMins:0};if(o.toUpperCase()==r.Z.UPCOMING.name){var s=new Date(i+" "+e+" "+a),l=(new Date(i+" "+n+" "+a),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,i=n/60,o=i/60,a=o/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}:o<24?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(o)+" hr ",timeToStartInMins:60*o}:a<7?{status:r.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:r.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(s));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:r.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},9363:function(t,e,n){n.d(e,{$:function(){return a},s:function(){return o}});var r=n(9854),i=n(7753);function o(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,i.MO)("whatmoreShopId");return"shopify"!=(0,r.Ipo)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function a(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(n)?"image":null!==i&&void 0!==i&&i.test(n)?"video":void 0}},5456:function(t,e,n){n.d(e,{B:function(){return r}});const r=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},4522:function(t,e,n){n.d(e,{gW:function(){return s},GF:function(){return l},y4:function(){return u},PB:function(){return d},Z2:function(){return c}});var r=n(9854),i=n(7753),o=n(778);var a=n(733);const s={[o.K.EVENT_VIEW]:"whatmore_video_click_event",[o.K.VIDEO_LIKED]:"whatmore_video_like_event",[o.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[o.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[o.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[o.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[o.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event"};function l(t){var e;let{userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:u,productList:d,ctaList:p}=t;(0,a.s)({userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:u,productList:d,ctaList:p}),n in s&&function(t,e){const n=(0,i.MO)("whatmoreShopId");(t!=o.K.EVENT_VIEW||(0,r.UAB)(n))&&(t!=o.K.SHOPNOW_ATC_CLICKED&&t!=o.K.PRODUCT_TILE_ATC_CLICKED||(0,r.Tn_)(n))&&(t!=o.K.VIDEO_LIKED||(0,r.sKB)(n))&&(t!=o.K.VIDEO_SHARE_CTA_CLICKED||(0,r.YOU)(n))&&(t!=o.K.PRODUCT_TILE_SHOPNOW_CLICKED&&t!=o.K.SHOPNOW_CLICKED||(0,r.ejq)(n))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[t],{id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link})})()}(n,null!==(e=null===d||void 0===d?void 0:d[1])&&void 0!==e?e:null===d||void 0===d?void 0:d[0])}function c(t){let{userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s}=t;(0,a.s)({userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s})}function u(t){let{userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s}=t;(0,a.s)({userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s})}function d(t){let{userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s}=t;(0,a.s)({userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s})}},8816:function(t,e,n){var r=n(4836);e.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=a},417:function(t,e,n){var r=n(4836);e.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=a},4885:function(t,e,n){var r=n(4836);e.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=a},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[587],{3867:function(t,e,n){var r=n(8816),i=n(417),o=n(4885),a=n(7753),s=n(8811),l=n(7313),c=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,l.useContext)(s.I),[u]=(0,a.j1)("whatmoreSecondaryColor"),[d,p]=(0,a.j1)("productRatings"),f=(0,a.MO)("whatmorePrimaryFont"),m=(t.storeId,t.productId),v=(t.productLink,t.fontSize),y=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(m in d)||d[m].avgRating>5)return(0,c.jsx)(c.Fragment,{});const I=d[m].avgRating,_=d[m].totalRatings;return(0,c.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,c.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(I))].map(((t,e)=>(0,c.jsx)(r.Z,{sx:{color:u,fontSize:v+"px"}},"star-icon"+e))),I-Math.floor(I)>.2?(0,c.jsx)(i.Z,{sx:{color:u,fontSize:v+"px"}},"star-half-icon"):I-Math.floor(I)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(o.Z,{sx:{color:u,fontSize:v+"px"}},"star-outline-icon"),[...Array(Math.floor(5-I))].map(((t,e)=>(0,c.jsx)(o.Z,{sx:{color:u,fontSize:v+"px"}},"star-outline-icon-"+e))),(0,c.jsx)("div",{children:(0,c.jsx)("div",{width:"2px"})}),(0,c.jsx)("div",{children:(0,c.jsx)("div",{style:{backgroundColor:u,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*v+"px","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",I,"\xa0"]})})}),(0,c.jsx)("div",{children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",y,"important"),t.style.setProperty("font-size",.8*v+"px","important"),t.style.setProperty("font-family",f,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+_+")"]})})]})})}},499:function(t,e){e.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(t,e,n){var r=n(499);e.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,i=t.scheduled_date,o=t.status,a=t.time_zone;if(o.toUpperCase()==r.Z.LIVE.name)return{status:r.Z.LIVE,bannerText:" "+r.Z.LIVE.name+" ",timeToStartInMins:0};if(o.toUpperCase()==r.Z.UPCOMING.name){var s=new Date(i+" "+e+" "+a),l=(new Date(i+" "+n+" "+a),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,i=n/60,o=i/60,a=o/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}:o<24?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(o)+" hr ",timeToStartInMins:60*o}:a<7?{status:r.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:r.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(s));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:r.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},9363:function(t,e,n){n.d(e,{$:function(){return a},s:function(){return o}});var r=n(9854),i=n(7753);function o(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,i.MO)("whatmoreShopId");return"shopify"!=(0,r.Ipo)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function a(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(n)?"image":null!==i&&void 0!==i&&i.test(n)?"video":void 0}},5456:function(t,e,n){n.d(e,{B:function(){return r}});const r=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},4522:function(t,e,n){n.d(e,{gW:function(){return s},GF:function(){return l},y4:function(){return u},PB:function(){return d},Z2:function(){return c}});var r=n(9854),i=n(7753),o=n(778);var a=n(733);const s={[o.K.EVENT_VIEW]:"whatmore_video_click_event",[o.K.VIDEO_LIKED]:"whatmore_video_like_event",[o.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[o.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[o.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[o.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[o.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event"};function l(t){var e;let{userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:u,productList:d,ctaList:p}=t;(0,a.s)({userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:u,productList:d,ctaList:p}),n in s&&function(t,e){const n=(0,i.MO)("whatmoreShopId");(t!=o.K.EVENT_VIEW||(0,r.UAB)(n))&&(t!=o.K.SHOPNOW_ATC_CLICKED&&t!=o.K.PRODUCT_TILE_ATC_CLICKED||(0,r.Tn_)(n))&&(t!=o.K.VIDEO_LIKED||(0,r.sKB)(n))&&(t!=o.K.VIDEO_SHARE_CTA_CLICKED||(0,r.YOU)(n))&&(t!=o.K.PRODUCT_TILE_SHOPNOW_CLICKED&&t!=o.K.SHOPNOW_CLICKED||(0,r.ejq)(n))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[t],{id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link})})()}(n,null!==(e=null===d||void 0===d?void 0:d[1])&&void 0!==e?e:null===d||void 0===d?void 0:d[0])}function c(t){let{userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s}=t;(0,a.s)({userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s})}function u(t){let{userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s}=t;(0,a.s)({userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s})}function d(t){let{userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s}=t;(0,a.s)({userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:r,event:i,productList:o,ctaList:s})}},8816:function(t,e,n){var r=n(4836);e.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=a},417:function(t,e,n){var r=n(4836);e.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=a},4885:function(t,e,n){var r=n(4836);e.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=a},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[608],{1291:function(e,t,r){r.r(t);var o=r(7313),a=r(6090),i=r(7616),l=r(8811),n=(r(6143),r(7850),r(4444),r(7244),r(123),r(5892),r(1811),r(9302)),s=r(2575),c=r(8866),h=r(7753),m=r(7129),d=r(8631),p=r(9821),g=r(8782),u=r(7381),w=r(9854),f=r(5380),x=r(3933),y=r(6417);const v=(0,s.Z)({key:"whatmore-css-cv"});t.default=function(e){var t;const[r,s,C]=(0,c.Z)(),[S,M,j,O,P]=(0,p.Z)(),k=(0,h.MO)("whatmoreCollectionsTileSize"),T=(0,h.MO)("whatmoreCollectionsTileSizePortrait"),R="portrait"===r?T:k,Z="portrait"==r?0:(0,h.MO)("whatmoreLandscapePadding"),b=(0,h.MO)("whatmoreCollectionsTilesSpacing"),z=(0,h.MO)("whatmoreShopId"),[I]=(0,h.MO)("whatmorePrimaryColor"),{whatmoreRootId:E}=(0,o.useContext)(l.I),{whatmoreIsCollectionsTemplate:F}=(0,o.useContext)(l.I),V=e.events,q=e.onClick,L=(0,h.MO)("whatmoreTitleFont"),B="portrait"==r?(0,h.MO)("whatmoreTitleFontSizePortrait"):(0,h.MO)("whatmoreTitleFontSize"),H=null!==(t=(0,w.aRS)(z))&&void 0!==t?t:L;function W(e){q(e)}delete i.ZP.styles.global;const Y=.055*M;var A=[];for(let o=0;o<V.length;)A.push((0,y.jsx)(d.Z,{mode:r,event:V[o],onClick:()=>{W(V[o-1])},removeBorders:!0,borderRadius:"5%",fontSize:Y},"collections-tile-"+o)),o+=1;(0,o.useEffect)((()=>{(0,u.Oo)("Video shopping powered by Whatmore!")}),[]),(0,o.useEffect)((()=>{l.$.forEach((e=>{var t;const r=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-e"]');if(!r)return;r&&e&&(e.style.minHeight="0px")}))}),[]);const[D,X,_]=(0,x.YD)({triggerOnce:!1});return(0,y.jsx)(n.C,{value:v,children:(0,y.jsx)("div",{className:F?"whatmore-collection-events":"whatmore-carousel-events",children:(0,y.jsx)(a.x,{theme:i.ZP,cssVarsRoot:E,resetCSS:!1,children:(0,y.jsxs)(m.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[e.heading.trim().length>0&&!F&&(0,w.wXY)(z)?(0,y.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,y.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",H,"important"),e.style.setProperty("font-size",B+"px","important"))},style:{color:I,backgroundClip:"text",textAlign:"center",fontWeight:(0,w.wOV)(z),lineHeight:(0,w.vY4)(z),letterSpacing:(0,w.X2K)(z)},children:e.heading})}):(0,y.jsx)(y.Fragment,{}),(0,y.jsx)("div",{ref:D,style:{marginLeft:Z+"px",marginRight:Z+"px"},children:(0,y.jsx)(g.P,{renderElement:e=>(0,y.jsx)(y.Fragment,{children:e.eventData}),dataList:A,spacing:b,defaultHeight:S*R*.01+"px",defaultWidth:M*R*.01+"px",retainAlreadyRenderedElements:!0})}),(0,w.dhc)(z)&&F&&!X&&-1==e.index&&(0,y.jsx)(f.Z,{event:V[0],inVideoClick:W,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[61,191,465],{4658:function(t,e,n){n.r(e),n.d(e,{default:function(){return R}});var o=n(7313),r=n(6090),i=n(7616),a=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),l=n(2575),s=n(7129),d=n(8811),c=(n(3439),n(7753)),p=n(7931),u=n(9018),v=n(9854),x=n(3933),h=n(8866),f=n(868),g=n(342),m=n(3437),y=n(3455),w=n(6417);var j=function(t){var e;const n=t.isMuted,o=null!==(e=t.iconSize)&&void 0!==e?e:30;function r(){t.onToggle()}return(0,w.jsx)("div",{style:{cursor:"pointer"},children:n?(0,w.jsx)(y.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{r()}}):(0,w.jsx)(m.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{r()}})})},b=n(1896),C=n(8984),I=n(58),S=n(6119),M=n(4522),k=n(778),P=n(3433);function Z(t){const[e,n]=(0,o.useState)(t.initialMuteState),r=t.events,i=t.activeEventIndex,a=t.setActiveEventIndex,l=(0,c.MO)("whatmoreShopId"),s="portrait"===t.mode;function d(){(0,v.hr)(l)&&t.isCTAPresent||(n(!e),(0,C.KE)()&&(0,I.QV)(),t.onMuteToggle())}const x=t.event;return(0,w.jsx)("div",{style:{position:(0,v.SJ)(l)?"absolute":"relative",top:(0,v.SJ)(l)?0:"",zIndex:1,bottom:(0,v.SJ)(l)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,w.jsxs)("div",{className:"banner-event-overlay",style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",width:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:[!(t.isCTAPresent&&(0,v.hr)(l)||"video"!==x.event_type)&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>d()}),(0,w.jsx)(j,{isMuted:e,onToggle:()=>{d()}})]}),r.length>1&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{classname:"banner-navigation-overlay",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),a(0===i?r.length-1:i-1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,w.jsx)(p.Z,{})})})}),(0,w.jsx)("div",{style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:t=>{t.stopPropagation(),a(i===r.length-1?0:i+1)},children:(0,w.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,w.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,w.jsx)(u.Z,{})})})}),(0,v.cRS)(l)&&(0,w.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:r.map(((t,e)=>{const n=e===i;return(0,w.jsx)("button",{onClick:t=>{t.stopPropagation(),a(e)},style:{width:n?"25px":s?"12px":"14px",height:s?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,v.YFz)(l):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},e)}))})]})]}),(0,w.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>d()})]})})}var z=function(t){var e,n,r;const[i,a,l]=(0,h.Z)(),[s,p]=(0,o.useState)(!0),{whatmoreUITheme:u}=(0,o.useContext)(d.I),m=(0,c.MO)("whatmoreVideoTileSize"),{ref:y,inView:j,entry:C}=(0,x.YD)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:I}=(0,o.useContext)(d.I),z=(0,c.MO)("whatmoreShopId"),L=t.events,R=t.activeEventIndex,T=t.setActiveEventIndex,E=L[R],A=((0,v.nzC)(z),(0,g.uv)(E)),F=(0,g.WN)(E);if("portrait"===i&&!A)return(0,w.jsx)(w.Fragment,{});if("landscape"===i&&!F)return(0,w.jsx)(w.Fragment,{});const N=(0,f.V)("portrait"===i?A:F),_=m/100*(0,v.b4p)(z),V=m/100*(0,v.GmU)(z),B="portrait"===i?(0,v.oOc)(z):(0,v.snl)(z),D="portrait"===i?l*_:l*V,O=D*B,J=null!=(null===(e=E.cta)||void 0===e||null===(n=e[1])||void 0===n?void 0:n.cta_link);return(0,o.useEffect)((()=>{d.$.forEach((t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;const n=t.querySelector(".whatmore-base");n&&(n.style.minHeight="0px")}))}),[]),(0,w.jsxs)("div",{ref:y,onClick:()=>{var t,e;(0,M.GF)({userInteractionType:k.K.BANNER_WIDGET_CLICKED,widgetSourceDetails:I,event:L[R]}),(0,v.hr)(z)&&J&&!(0,v.j1_)(z)&&window.open(null===(t=E.cta)||void 0===t||null===(e=t[1])||void 0===e?void 0:e.cta_link,"_self")},style:{position:"relative",margin:"0 auto",width:(0,v.SJ)(z)?"100%":D,minHeight:(0,v.SJ)(z)?l*B:"",height:(0,v.SJ)(z)?"auto":O,borderWidth:(0,v.alU)(z),borderColor:(0,v.qPe)(z),overflow:"hidden",cursor:"pointer"},children:[(0,w.jsx)(b.Z,{height:"100%",width:"100%",url:N,isPlaying:j,event:E,isVideoMuted:s,setDuration:t.setDuration,source:P.j.BANNER}),(0,w.jsx)(Z,{isCTAPresent:J,events:L,activeEventIndex:R,setActiveEventIndex:T,event:E,mode:i,onMuteToggle:()=>p(!s),initialMuteState:s}),(0,v.j1_)(z)&&(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"portrait"===i?"12%":"20%"},className:"whatmore-ios-css-relative-fix",children:(0,w.jsx)("div",{children:(0,w.jsx)(S.Z,{event:E,cta:null===E||void 0===E||null===(r=E.cta)||void 0===r?void 0:r[1],fontFactor:.6})})})]})};const L=(0,l.Z)({key:"whatmore-css-bv"});var R=function(t){const{whatmoreRootId:e}=(0,o.useContext)(d.I),[n,l]=(0,o.useState)(0),c=t.events,[p,u]=(0,o.useState)(-1);let v;return(0,o.useEffect)((()=>{v&&clearInterval(v);const t="video"===c[n].event_type,e=t?1e3*p:6e3;return t?-1!=p&&(v=setInterval((()=>{l((t=>t===c.length-1?0:t+1))}),e)):v=setInterval((()=>{l((t=>t===c.length-1?0:t+1))}),e),()=>{clearInterval(v)}}),[p,n]),delete i.ZP.styles.global,(0,w.jsx)(a.C,{value:L,children:(0,w.jsx)("div",{className:"whatmore-banner-events",children:(0,w.jsx)(r.x,{theme:i.ZP,cssVarsRoot:e,resetCSS:!1,children:(0,w.jsx)(s.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,w.jsx)(z,{activeEventIndex:n,events:c,setActiveEventIndex:l,setDuration:u})})})})})}},3867:function(t,e,n){var o=n(8816),r=n(417),i=n(4885),a=n(7753),l=n(8811),s=n(7313),d=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,s.useContext)(l.I),[c]=(0,a.j1)("whatmoreSecondaryColor"),[p,u]=(0,a.j1)("productRatings"),v=(0,a.MO)("whatmorePrimaryFont"),x=(t.storeId,t.productId),h=(t.productLink,t.fontSize),f=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===p||"undefined"==typeof p||!(x in p)||p[x].avgRating>5)return(0,d.jsx)(d.Fragment,{});const g=p[x].avgRating,m=p[x].totalRatings;return(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(g))].map(((t,e)=>(0,d.jsx)(o.Z,{sx:{color:c,fontSize:h+"px"}},"star-icon"+e))),g-Math.floor(g)>.2?(0,d.jsx)(r.Z,{sx:{color:c,fontSize:h+"px"}},"star-half-icon"):g-Math.floor(g)==0?(0,d.jsx)(d.Fragment,{}):(0,d.jsx)(i.Z,{sx:{color:c,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-g))].map(((t,e)=>(0,d.jsx)(i.Z,{sx:{color:c,fontSize:h+"px"}},"star-outline-icon-"+e))),(0,d.jsx)("div",{children:(0,d.jsx)("div",{width:"2px"})}),(0,d.jsx)("div",{children:(0,d.jsx)("div",{style:{backgroundColor:c,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",g,"\xa0"]})})}),(0,d.jsx)("div",{children:(0,d.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"important"),t.style.setProperty("font-size",.8*h+"px","important"),t.style.setProperty("font-family",v,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+m+")"]})})]})})}},7129:function(t,e,n){n.d(e,{V:function(){return o}});const o=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},9363:function(t,e,n){n.d(e,{$:function(){return a},s:function(){return i}});var o=n(9854),r=n(7753);function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,r.MO)("whatmoreShopId");return"shopify"!=(0,o.Ipo)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function a(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(n)?"image":null!==r&&void 0!==r&&r.test(n)?"video":void 0}},5456:function(t,e,n){n.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},1195:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");e.Z=a},7931:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");e.Z=a},9018:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");e.Z=a},9723:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"}),"PlayArrowRounded");e.Z=a},8816:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=a},417:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=a},4885:function(t,e,n){var o=n(4836);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=a},3439:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[622],{3827:function(e,t,o){o.r(t);var r=o(7313),i=o(6090),n=o(7616),l=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),a=o(2575),s=o(8866),p=o(7753),x=o(7129),d=o(8811),h=o(8631),c=o(6066),m=o(8782),u=o(9821),g=o(7381),f=o(5380),w=o(3933),v=o(9854),j=o(6417);const C=(0,a.Z)({key:"whatmore-css-cv"});t.default=function(e){const t=e.events,[o,a,y]=(0,s.Z)(),[b,S,k,R,Z]=(0,u.Z)(),[M,P]=(0,r.useState)(Array(t.length).fill(0).map((()=>Math.random()))),T=(0,p.MO)("whatmoreCollectionsTileSize"),B=(0,p.MO)("whatmoreCollectionsTileSizePortrait"),L="portrait"===o?B:T,O="portrait"==o?0:(0,p.MO)("whatmoreLandscapePadding"),I=(0,p.MO)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:A}=(0,r.useContext)(d.I),D=(0,p.MO)("whatmoreShopId"),{whatmoreRootId:E}=(0,r.useContext)(d.I),F=e.onClick;function V(e){F(e)}(0,r.useEffect)((()=>{(0,g.Oo)("Video shopping powered by Whatmore!")}),[]),delete n.ZP.styles.global;var z=[];for(let r=0,i=!1;r<t.length;)i&&r!=t.length-1&&M[r]>.2?(z.push((0,j.jsx)(c.Z,{mode:o,event1:t[r],event2:t[r+1],onClick:()=>{V(t[r-1])}},"collections-tile-"+r)),r+=2,i=!i):(z.push((0,j.jsx)(h.Z,{mode:o,event:t[r],onClick:()=>{V(t[r-1])},borderRadius:"10%",removeBorders:!1},"collections-tile-"+r)),r+=1,i=!i);(0,r.useEffect)((()=>{d.$.forEach((e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-a"]')))return;e&&(e.style.minHeight="0px")}))}),[]);const[_,q,H]=(0,w.YD)({triggerOnce:!1});return(0,j.jsx)(l.C,{value:C,children:(0,j.jsx)("div",{className:A?"whatmore-collection-events":"whatmore-carousel-events",children:(0,j.jsx)(i.x,{theme:n.ZP,cssVarsRoot:E,resetCSS:!1,children:(0,j.jsxs)(x.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,j.jsx)("div",{ref:_,style:{marginLeft:O+"px",marginRight:O+"px"},children:(0,j.jsx)(m.P,{renderElement:e=>(0,j.jsx)(j.Fragment,{children:e.eventData}),dataList:z,spacing:I,defaultHeight:b*L*.01+"px",defaultWidth:S*L*.01+"px",retainAlreadyRenderedElements:!0})}),(0,v.dhc)(D)&&A&&!q&&-1==e.index&&(0,j.jsx)(f.Z,{event:t[0],inVideoClick:V,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},6066:function(e,t,o){var r=o(7313),i=o(9854),n=o(7753),l=(o(9111),o(123),o(9778),o(4892)),a=o(7129),s=o(9821),p=o(6417);t.Z=function(e){var t;const[o,x,d,h,c]=(0,s.Z)(),[m]=(0,n.j1)("whatmoreSecondaryColor"),[u]=(0,n.j1)("whatmoreShopId"),[g]=(0,n.j1)("whatmoreCollectionsTileSize"),[f]=(0,n.j1)("whatmoreCollectionsTileSizePortrait"),w="portrait"===e.mode?f:g,[v,j]=(0,r.useState)(!1),C=(0,i.f63)(u);(0,r.useContext)(a.V);const y=e.event1,b=e.event2,S=e.onClick,k=.01*w,R=o*k,Z=o*k*.5,M=x*k,P=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",T="15%",B=e.removeBorders;return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:R+"px",width:M+"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":P,boxShadow:B?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+C+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+C+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+C+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+C+"DA"},onClick:()=>{j(!0),S(y)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:Z+"px",width:M+"px",borderTopLeftRadius:B?"0px":T,borderTopRightRadius:B?"0px":T,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:y.thumbnail_image,isPlaying:!0,event:y})}),(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:Z+"px",width:M+"px",borderBottomLeftRadius:B?"0px":T,borderBottomRightRadius:B?"0px":T,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})})]})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[704],{3388:function(e,t,n){n.d(t,{OC:function(){return l},e8:function(){return r},kT:function(){return i},kW:function(){return a},xg:function(){return o}});const i=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},o=function(e,t){return!(void 0==e.products||0==e.products.length)},r=function(e,t){if(null!=e)return e.filter((e=>1==i(e)))},a=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 l=function(e,t){var n;if(null==e)return[];if(!("eventsets"in e))return[];const i=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return i?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(i):[]}},5380:function(e,t,n){n.d(t,{Z:function(){return v}});var i=n(4959),o=n(7313),r=n(4892),a=n(6805),l=n(7753),s=n(9821);var d=function(e){const[t,n,i,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,n*h,r]},c=n(9723),h=n(9461),u=n.n(h),p=n(1195),f=n(7108),m=(n(7244),n(123),n(9854)),x=n(8811),g=n(6417);var v=function(e){var t;const n=o.useRef(null);var[s,h,v]=d();const{whatmoreUITheme:w}=(0,o.useContext)(x.I),[j]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[b]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[y]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[I]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[S]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[P]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),z=(0,l.MO)("whatmoreShopId");var _=b,C=y,L=E;v[a.YP]===a.$w&&(_=I,C=S,L=P);const[A,k]=(0,o.useState)(["initial",window.pageYOffset]),[M,O]=(0,o.useState)(!1),T=null!==(t=e.isSpotlight)&&void 0!==t&&t,V=v[a.YP]===a.$w?.7*(0,m.zGA)(z):(0,m.zGA)(z),Y=T?V:1;s*=Y,h*=Y;const D=T?(0,m.G0o)(z):_,Z=T?(0,m.X8j)(z):(0,m.lVn)(z),[$,F]=(0,o.useState)(!T&&(0,m.eXi)(z));function N(e,t){k(e),e[1]<=100?O(!1):t!=M&&(O(t),F(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(N([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[A]),(0,i.O3)({ref:n,handler:()=>{N(["scrolled-up",A[1]],!0)}});const R=e.event,K=e.inVideoClick,W=e.closeClick,B=.3*h,G=.6*h,H=.1*h,q=.1*(.5*h),Q="round"==w?"10px":"0px",U=(0,m.Z$A)(z);var X=!1,J=0,ee=0;function te(e){X=e}return(0,g.jsx)("div",{children:$&&!Z?(0,g.jsx)(g.Fragment,{}):M&&Z?(0,g.jsx)("div",{style:"left"===D?{left:"1px",bottom:T?(0,m.vnu)(z)+"px":L+"px",position:"fixed",zIndex:U}:{right:"5px",bottom:T?(0,m.vnu)(z)+"px":L+"px",position:"fixed",zIndex:U},children:(0,g.jsxs)("div",{onClick:()=>{N(["initial",A[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===D?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,g.jsx)("div",{style:{overflow:"hidden"},children:(0,g.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,g.jsx)(r.Z,{url:R.thumbnail_image,isPlaying:!1,event:R})})}),(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,g.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,g.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,g.jsx)(p.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:B+"px"},style:{position:"relative",zIndex:1,left:q+"px",bottom:q+"px"},onClick:W})})}),(0,g.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,g.jsx)(f.Z,{sx:{color:"white",fontSize:2*B+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,g.jsx)(u(),{nodeRef:n,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,J=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{X&&(Math.abs(t.x-J)>5||Math.abs(t.y-ee)>5)?te(!1):K(R)},children:(0,g.jsx)("div",{ref:n,style:"left"===D?{left:T?(0,m.$II)(z)+"px":C+"px",bottom:T?(0,m.vnu)(z)+"px":L+"px",position:"fixed",zIndex:U}:{right:T?(0,m.$II)(z)+"px":C+"px",bottom:T?(0,m.vnu)(z)+"px":L+"px",position:"fixed",zIndex:U},children:(0,g.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:h+"px",height:s+"px"}),className:"left"===D?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,g.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,g.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,g.jsx)(r.Z,{url:R.thumbnail_image,isMuted:!0,isPlaying:!0,event:R})})}),(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,g.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,g.jsx)(p.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:B+"px"},onClick:W,style:{position:"relative",zIndex:1,left:H+"px",bottom:H+"px"}})}),(0,g.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,g.jsx)(c.Z,{sx:{color:(0,m.Ya_)(z),fontSize:G+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,g.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:Q,borderBottomRightRadius:Q,backgroundImage:j?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,g.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*B+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",j]})})]})})]})})})})}},2209:function(e,t,n){n.r(t);var i=n(7313),o=n(9854),r=n(2860),a=n(7753),l=n(5160),s=n(6967),d=n(5380),c=n(58),h=n(8984),u=n(4669),p=n(513),f=n(9302),m=n(7381),x=n(2575),g=n(7300),v=n(6524),w=n(3388),j=n(7643),b=n(778),y=n(8811),E=n(6417);const I=(0,x.Z)({key:"whatmore-css-wsv"}),S=i.lazy((()=>Promise.all([n.e(819),n.e(576),n.e(351),n.e(955),n.e(926),n.e(824),n.e(74),n.e(587)]).then(n.bind(n,8074))));t.default=function(e){const[t,n]=(0,i.useState)(),[x,P]=(0,i.useState)(),[z]=(0,a.j1)("isInDesignMode"),[_]=(0,a.j1)("isDemoBrand"),[C,L]=(0,i.useState)(-2),[A]=(0,a.j1)("whatmoreShopId"),k=(0,a.MO)("isLandingSharedLink"),M=(0,a.MO)("whatmoreShareTemplateId"),O=((0,a.MO)("whatmoreShareStoryId"),(0,a.MO)("whatmoreShareEventId")),T=(0,a.MO)("whatmoreLandingLocationType"),V=(0,a.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:Y}=(0,i.useContext)(y.I);var D=(0,o.efR)(A)?r.Dm+"/get_eventset/":r.Gc+"/get_eventset/";(0,i.useEffect)((()=>{(0,s.hb)()}),[]),(0,i.useEffect)((()=>{(0,u.ll)(A)}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||x||!(0,h.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,c.b5)(c.UD)}),[t]),(0,i.useEffect)((()=>{L(-1);const e=v.NX,t=(0,v.H1)(T),i=D.toString()+A.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+A;fetch(i).then((e=>e.json())).then((t=>(0,w.OC)(t,e))).then((e=>(n(e),e))).catch((e=>{P(e.message)}))}),[]),(0,i.useEffect)((()=>{L(-2)}),[t]),(0,i.useEffect)((()=>{null==t||0==t.length||x||k&&"template-embed"==(0,v.zv)(M)&&null!=O&&t.forEach(((e,t)=>{O==e.event_id&&F(e,!0,t)}))}),[t]);const Z=Y.landingLocationType,$=Y.templateType,F=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,h.KE)()&&!t&&(0,c.QV)(),(0,g.B6)(e)||(0,g.WJ)(e))return z||_||(async()=>{const t=(0,v.NY)(Z)+(0,v.dS)($)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,l.wh)(e),(0,u.Tc)(A,r.h7,r.dU),(0,s.H4)(e.event_id,e.products,"spotlight","video_popup",t)})(),void L(n)};function N(){return(0,E.jsx)(E.Fragment,{})}return null==t||0==t.length||x?(0,E.jsx)("div",{}):(V&&(0,m.EI)(t),(0,o.B$L)(A)&&C<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,E.jsx)(E.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,E.jsx)(f.C,{value:I,children:-1===C||0===t.length?(0,E.jsx)(N,{}):-2===C&&t.length>0?(0,E.jsx)("div",{children:(0,E.jsx)(j.u,{userInteractionType:b.K.SPOTLIGHT_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!_,children:(0,E.jsx)(d.Z,{event:t[0],inVideoClick:F,closeClick:e=>{e.stopPropagation(),L(-1)},isSpotlight:!0})})}):(0,E.jsx)("div",{children:(0,E.jsx)(i.Suspense,{children:(0,E.jsx)(j.u,{userInteractionType:b.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!_,children:(0,E.jsx)(S,{events:t,index:C,onBack:function(){(0,o.n2L)(A)&&(0,a.MO)("whatmoreAddedToCart")&&(0,p.D)(A,(()=>{}),100,window.location.hostname),L(-2)},template:"template-embed"})})})})})))}},6805:function(e,t,n){n.d(t,{$I:function(){return l},$w:function(){return d},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return i},rE:function(){return s}});const i="device_type",o="device_mode",r="mobile",a="tablet",l="desktop",s="portrait",d="landscape"},9821:function(e,t,n){var i=n(6367),o=n(7753),r=n(8866),a=n(6805);t.Z=function(e){const[t,n,l]=(0,r.Z)(),[s]=(0,o.j1)("whatmoreLandscapePadding"),[d]=(0,o.j1)("whatmoreVideoTileSize"),[c]=(0,o.j1)("whatmoreVideoTileSizePortrait"),h=(0,i.useMediaQuery)({query:"(min-width: 1025px)"}),u=(0,i.useMediaQuery)({query:"(min-width: 481px)"}),p="portrait"==t?c:d,f=!("portrait"!=t||!u),m=p/100*1.3*.5,x=p/100;var g=Math.min(l,n),[v,w,j,b]=[.6*g*(16/9),.6*g,1.4,0];function y(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(h){const e=w*m,t=v*m;[v,w,j,b]=[t,e,(l-2*s)/(1.1*e),s],E[a.me]=a.$I,E[a.YP]=a.$w}else if(f){var I=.8*w,S=.8*v;"portrait"==t?(I*=x,S*=x,[v,w,j,b]=[S,I,y(l/(1.2*I)),0],E[a.me]=a.AL,E[a.YP]=a.rE):([v,w,j,b]=[S,I,(l-2*s)/(1.1*I),s],E[a.me]=a.AL,E[a.YP]=a.$w)}else{I=w,S=v;"portrait"==t?(I=I*x*.9,S=S*x*.9,[v,w,j,b]=[S,I,y(l/(1.15*I)),0],E[a.me]=a.AK,E[a.YP]=a.rE):(I=.7*w,S=.7*v,[v,w,j,b]=[S,I,(l-2*s)/(1.1*I),s],E[a.me]=a.AK,E[a.YP]=a.$w)}return[v,w,j,b,E]}},7244:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[720],{8767:function(e,t,i){i.r(t),i.d(t,{default:function(){return b}});var n=i(7313),o=i(6090),r=i(7616),a=i(8811),l=(i(6143),i(7850),i(4444),i(7244),i(123),i(5892),i(1811),i(9302)),s=i(2575),d=i(8866),c=i(7753),h=i(7129),p=i(9854),m=(i(9111),i(9778),i(4892)),u=i(9821),x=i(6417);var f=function(e){var t;const[i,o,r,a,l]=(0,u.Z)(),s=(0,c.MO)("whatmoreSecondaryColor"),d=(0,c.MO)("whatmorePrimaryFont"),h=(0,c.MO)("whatmoreShopId"),f=(0,c.MO)("whatmoreCollectionsTileSize"),w=(0,c.MO)("whatmoreCollectionsTileSizePortrait"),v="portrait"===e.mode?w:f,[g,y]=(0,n.useState)(!1),j=(0,p.f63)(h),b=e.event,E=e.onClick,S=e.removeBorders,P=o*v*.01,C=(0,p.eHp)(h);return(0,x.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:S?"2px":(0,p.VwM)(h)+"px",marginTop:S?"2px":"5px",marginBottom:S?"2px":"5px",cursor:"pointer"},onClick:()=>{y(!0),E(b)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:[(0,x.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,borderRadius:"50%",overflow:"hidden",boxShadow:S?"":"0px 1px 1px 0px "+s+"50, 0px -1px 1px 0px "+j+"50, 1px 0px 1px 0px "+s+"50, -1px 0px 1px 0px "+j+"80, 1px -1px 1px 0px "+s+"80, -1px 1px 1px 0px "+j+"DA, 1px 1px 1px 0px "+s+"DA, -1px -1px 1px 0px "+j+"DA"},children:(0,x.jsx)(x.Fragment,{children:(0,x.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P*C+"px",width:P*C+"px",borderRadius:"50%",backgroundColor:s,overflow:"hidden"},children:(0,x.jsx)(m.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})})}),(0,x.jsx)("div",{style:{fontFamily:d,paddingTop:"10px",fontSize:null!==(t=e.fontSize)&&void 0!==t?t:10},children:(0,x.jsx)("p",{children:b.title})})]})},w=i(8782),v=i(7381),g=i(5380),y=i(3933);const j=(0,s.Z)({key:"whatmore-css-cv"});var b=function(e){const[t,i,s]=(0,d.Z)(),[m,b,E,S,P]=(0,u.Z)(),C=(0,c.MO)("whatmoreCollectionsTileSize"),z=(0,c.MO)("whatmoreCollectionsTileSizePortrait"),M="portrait"===t?z:C,L="portrait"==t?0:(0,c.MO)("whatmoreLandscapePadding"),A=(0,c.MO)("whatmoreCollectionsTilesSpacing"),I=(0,c.MO)("whatmoreShopId"),[k]=(0,c.MO)("whatmorePrimaryColor"),{whatmoreRootId:O}=(0,n.useContext)(a.I),R=e.events,F=e.onClick,{whatmoreIsCollectionsTemplate:Z}=((0,c.MO)("whatmoreTitleFont"),(0,n.useContext)(a.I));function T(e){F(e)}"portrait"==t?(0,c.MO)("whatmoreTitleFontSizePortrait"):(0,c.MO)("whatmoreTitleFontSize"),(0,p.aRS)(I);const[V,Y,D]=(0,y.YD)({triggerOnce:!1});delete r.ZP.styles.global;const $=.055*b;var H=[];for(let n=0;n<R.length;)H.push((0,x.jsx)(f,{mode:t,event:R[n],onClick:()=>{T(R[n-1])},removeBorders:(0,p.Xtg)(I),fontSize:$},"collections-tile-"+n)),n+=1;return(0,n.useEffect)((()=>{(0,v.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{a.$.forEach((e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-stories"]');if(!i)return;i&&e&&(e.style.minHeight="0px")}))}),[]),(0,x.jsx)(l.C,{value:j,children:(0,x.jsx)("div",{className:Z?"whatmore-collection-events":"whatmore-carousel-events",children:(0,x.jsx)(o.x,{theme:r.ZP,cssVarsRoot:O,resetCSS:!1,children:(0,x.jsxs)(h.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,x.jsx)("div",{ref:V,style:{marginLeft:L+"px",marginRight:L+"px"},children:(0,x.jsx)(w.P,{renderElement:e=>(0,x.jsx)(x.Fragment,{children:e.eventData}),dataList:H,spacing:A,defaultHeight:m*M*.01+"px",defaultWidth:b*M*.01+"px",retainAlreadyRenderedElements:!0})}),(0,p.dhc)(I)&&!Y&&-1==e.index&&(0,x.jsx)(g.Z,{event:R[0],inVideoClick:T,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},7129:function(e,t,i){i.d(t,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8782:function(e,t,i){i.d(t,{P:function(){return l}});var n=i(3933),o=i(7313),r=(i(123),i(6417));function a(e){const{ref:t,inView:i,entry:o}=(0,n.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:t,children:i?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,r.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function l(e){var t,i;return(0,o.useEffect)((()=>{const e=document.querySelector(".whatmore-carousel-horizontal-flex");let t,i=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(i=!0,t=e.touches[0].clientX):(i=!0,t=e.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;e.style.pointerEvents="none";const r=2*(t-o);e.scrollLeft+=r,t=o}function r(t){e.style.pointerEvents="auto",i=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",o),e.addEventListener("touchend",r)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",o),e.removeEventListener("touchend",r)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(i=e.dataList)||void 0===i?void 0:i.map(((t,i)=>(0,r.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+i)))})}},5380:function(e,t,i){i.d(t,{Z:function(){return v}});var n=i(4959),o=i(7313),r=i(4892),a=i(6805),l=i(7753),s=i(9821);var d=function(e){const[t,i,n,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,i*h,r]},c=i(9723),h=i(9461),p=i.n(h),m=i(1195),u=i(7108),x=(i(7244),i(123),i(9854)),f=i(8811),w=i(6417);var v=function(e){var t;const i=o.useRef(null);var[s,h,v]=d();const{whatmoreUITheme:g}=(0,o.useContext)(f.I),[y]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[j]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[P]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[C]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),z=(0,l.MO)("whatmoreShopId");var M=j,L=b,A=E;v[a.YP]===a.$w&&(M=S,L=P,A=C);const[I,k]=(0,o.useState)(["initial",window.pageYOffset]),[O,R]=(0,o.useState)(!1),F=null!==(t=e.isSpotlight)&&void 0!==t&&t,Z=v[a.YP]===a.$w?.7*(0,x.zGA)(z):(0,x.zGA)(z),T=F?Z:1;s*=T,h*=T;const V=F?(0,x.G0o)(z):M,Y=F?(0,x.X8j)(z):(0,x.lVn)(z),[D,$]=(0,o.useState)(!F&&(0,x.eXi)(z));function H(e,t){k(e),e[1]<=100?R(!1):t!=O&&(R(t),$(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(H([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[I]),(0,n.O3)({ref:i,handler:()=>{H(["scrolled-up",I[1]],!0)}});const N=e.event,_=e.inVideoClick,B=e.closeClick,q=.3*h,W=.6*h,X=.1*h,K=.1*(.5*h),G="round"==g?"10px":"0px",Q=(0,x.Z$A)(z);var U=!1,J=0,ee=0;function te(e){U=e}return(0,w.jsx)("div",{children:D&&!Y?(0,w.jsx)(w.Fragment,{}):O&&Y?(0,w.jsx)("div",{style:"left"===V?{left:"1px",bottom:F?(0,x.vnu)(z)+"px":A+"px",position:"fixed",zIndex:Q}:{right:"5px",bottom:F?(0,x.vnu)(z)+"px":A+"px",position:"fixed",zIndex:Q},children:(0,w.jsxs)("div",{onClick:()=>{H(["initial",I[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===V?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:N.thumbnail_image,isPlaying:!1,event:N})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,w.jsx)(m.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:q+"px"},style:{position:"relative",zIndex:1,left:K+"px",bottom:K+"px"},onClick:B})})}),(0,w.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(u.Z,{sx:{color:"white",fontSize:2*q+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,w.jsx)(p(),{nodeRef:i,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var i,n;i=t.x,n=t.y,J=i,ee=n},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{U&&(Math.abs(t.x-J)>5||Math.abs(t.y-ee)>5)?te(!1):_(N)},children:(0,w.jsx)("div",{ref:i,style:"left"===V?{left:F?(0,x.$II)(z)+"px":L+"px",bottom:F?(0,x.vnu)(z)+"px":A+"px",position:"fixed",zIndex:Q}:{right:F?(0,x.$II)(z)+"px":L+"px",bottom:F?(0,x.vnu)(z)+"px":A+"px",position:"fixed",zIndex:Q},children:(0,w.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:h+"px",height:s+"px"}),className:"left"===V?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:N.thumbnail_image,isMuted:!0,isPlaying:!0,event:N})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)(m.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:q+"px"},onClick:B,style:{position:"relative",zIndex:1,left:X+"px",bottom:X+"px"}})}),(0,w.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,w.jsx)(c.Z,{sx:{color:(0,x.Ya_)(z),fontSize:W+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,w.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:G,borderBottomRightRadius:G,backgroundImage:y?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,w.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*q+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",y]})})]})})]})})})})}},6805:function(e,t,i){i.d(t,{$I:function(){return l},$w:function(){return d},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return n},rE:function(){return s}});const n="device_type",o="device_mode",r="mobile",a="tablet",l="desktop",s="portrait",d="landscape"},9821:function(e,t,i){var n=i(6367),o=i(7753),r=i(8866),a=i(6805);t.Z=function(e){const[t,i,l]=(0,r.Z)(),[s]=(0,o.j1)("whatmoreLandscapePadding"),[d]=(0,o.j1)("whatmoreVideoTileSize"),[c]=(0,o.j1)("whatmoreVideoTileSizePortrait"),h=(0,n.useMediaQuery)({query:"(min-width: 1025px)"}),p=(0,n.useMediaQuery)({query:"(min-width: 481px)"}),m="portrait"==t?c:d,u=!("portrait"!=t||!p),x=m/100*1.3*.5,f=m/100;var w=Math.min(l,i),[v,g,y,j]=[.6*w*(16/9),.6*w,1.4,0];function b(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(h){const e=g*x,t=v*x;[v,g,y,j]=[t,e,(l-2*s)/(1.1*e),s],E[a.me]=a.$I,E[a.YP]=a.$w}else if(u){var S=.8*g,P=.8*v;"portrait"==t?(S*=f,P*=f,[v,g,y,j]=[P,S,b(l/(1.2*S)),0],E[a.me]=a.AL,E[a.YP]=a.rE):([v,g,y,j]=[P,S,(l-2*s)/(1.1*S),s],E[a.me]=a.AL,E[a.YP]=a.$w)}else{S=g,P=v;"portrait"==t?(S=S*f*.9,P=P*f*.9,[v,g,y,j]=[P,S,b(l/(1.15*S)),0],E[a.me]=a.AK,E[a.YP]=a.rE):(S=.7*g,P=.7*v,[v,g,y,j]=[P,S,(l-2*s)/(1.1*S),s],E[a.me]=a.AK,E[a.YP]=a.$w)}return[v,g,y,j,E]}},9111:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[731],{7129:function(e,t,i){i.d(t,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8631:function(e,t,i){var n=i(7313),o=i(9854),r=i(7753),a=(i(9111),i(123),i(9778),i(4892)),l=i(7129),d=i(9821),s=i(8811),c=i(6417);t.Z=function(e){var t;const[i,p,h,x,u]=(0,d.Z)(),[m]=(0,r.j1)("whatmoreSecondaryColor"),[f]=(0,r.j1)("whatmoreShopId"),[w]=(0,r.j1)("whatmoreCollectionsTileSize"),[v]=(0,r.j1)("whatmoreCollectionsTileSizePortrait"),g="portrait"===e.mode?v:w,y=(0,r.j1)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:j}=(0,n.useContext)(s.I),[b,E]=(0,n.useState)(!1),P=(0,o.f63)(f),z=j.landingLocationType;(0,n.useContext)(l.V);const L=e.event,S=e.onClick,C=e.removeBorders,A=i*g*.01,k=p*g*.01,I=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,c.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,o.XnJ)(f)?"auto":k+"px",marginLeft:C?"2px":"5px",marginRight:C?"2px":(0,o.VwM)(f)+"px",marginTop:C?"2px":"5px",marginBottom:C?"2px":"5px",cursor:"pointer"},onClick:()=>{E(!0),S(L)},className:[b?"whatmore-scale-on-tap":""].join(" "),children:[(0,c.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:I,overflow:"hidden",boxShadow:C?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+P+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+P+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+P+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+P+"DA"},children:(0,c.jsx)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:A+"px",width:"40273707171"==f?"auto":k+"px",borderRadius:I,backgroundColor:"gray",overflow:"hidden"},children:(0,c.jsx)(a.Z,{height:"100%",width:"100%",url:L.thumbnail_image,isPlaying:!0,event:L})})}),z.startsWith("product")&&(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,c.jsx)("p",{ref:t=>{var i;t&&(t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-size",(null!==(i=e.fontSize)&&void 0!==i?i:10)+"px","important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},children:null===L||void 0===L?void 0:L.title})})]})}},8782:function(e,t,i){i.d(t,{P:function(){return l}});var n=i(3933),o=i(7313),r=(i(123),i(6417));function a(e){const{ref:t,inView:i,entry:o}=(0,n.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:t,children:i?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,r.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function l(e){var t,i;return(0,o.useEffect)((()=>{const e=document.querySelector(".whatmore-carousel-horizontal-flex");let t,i=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(i=!0,t=e.touches[0].clientX):(i=!0,t=e.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;e.style.pointerEvents="none";const r=2*(t-o);e.scrollLeft+=r,t=o}function r(t){e.style.pointerEvents="auto",i=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",o),e.addEventListener("touchend",r)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",o),e.removeEventListener("touchend",r)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(i=e.dataList)||void 0===i?void 0:i.map(((t,i)=>(0,r.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+i)))})}},5380:function(e,t,i){i.d(t,{Z:function(){return v}});var n=i(4959),o=i(7313),r=i(4892),a=i(6805),l=i(7753),d=i(9821);var s=function(e){const[t,i,n,o,r]=(0,d.Z)(),[s]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),p=r[a.YP]===a.$w?c/100:s/100*1.2;return[t*p,i*p,r]},c=i(9723),p=i(9461),h=i.n(p),x=i(1195),u=i(7108),m=(i(7244),i(123),i(9854)),f=i(8811),w=i(6417);var v=function(e){var t;const i=o.useRef(null);var[d,p,v]=s();const{whatmoreUITheme:g}=(0,o.useContext)(f.I),[y]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[j]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[P]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[z]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[L]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),S=(0,l.MO)("whatmoreShopId");var C=j,A=b,k=E;v[a.YP]===a.$w&&(C=P,A=z,k=L);const[I,R]=(0,o.useState)(["initial",window.pageYOffset]),[M,V]=(0,o.useState)(!1),Y=null!==(t=e.isSpotlight)&&void 0!==t&&t,Z=v[a.YP]===a.$w?.7*(0,m.zGA)(S):(0,m.zGA)(S),F=Y?Z:1;d*=F,p*=F;const D=Y?(0,m.G0o)(S):C,$=Y?(0,m.X8j)(S):(0,m.lVn)(S),[N,T]=(0,o.useState)(!Y&&(0,m.eXi)(S));function _(e,t){R(e),e[1]<=100?V(!1):t!=M&&(V(t),T(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(_([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[I]),(0,n.O3)({ref:i,handler:()=>{_(["scrolled-up",I[1]],!0)}});const O=e.event,H=e.inVideoClick,W=e.closeClick,X=.3*p,B=.6*p,q=.1*p,K=.1*(.5*p),G="round"==g?"10px":"0px",Q=(0,m.Z$A)(S);var J=!1,U=0,ee=0;function te(e){J=e}return(0,w.jsx)("div",{children:N&&!$?(0,w.jsx)(w.Fragment,{}):M&&$?(0,w.jsx)("div",{style:"left"===D?{left:"1px",bottom:Y?(0,m.vnu)(S)+"px":k+"px",position:"fixed",zIndex:Q}:{right:"5px",bottom:Y?(0,m.vnu)(S)+"px":k+"px",position:"fixed",zIndex:Q},children:(0,w.jsxs)("div",{onClick:()=>{_(["initial",I[1]],!1)},style:{margin:"1px",width:p+"px",height:d+"px"},className:"left"===D?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:O.thumbnail_image,isPlaying:!1,event:O})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,w.jsx)(x.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:X+"px"},style:{position:"relative",zIndex:1,left:K+"px",bottom:K+"px"},onClick:W})})}),(0,w.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,w.jsx)(u.Z,{sx:{color:"white",fontSize:2*X+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,w.jsx)(h(),{nodeRef:i,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var i,n;i=t.x,n=t.y,U=i,ee=n},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-U)>5||Math.abs(t.y-ee)>5)?te(!1):H(O)},children:(0,w.jsx)("div",{ref:i,style:"left"===D?{left:Y?(0,m.$II)(S)+"px":A+"px",bottom:Y?(0,m.vnu)(S)+"px":k+"px",position:"fixed",zIndex:Q}:{right:Y?(0,m.$II)(S)+"px":A+"px",bottom:Y?(0,m.vnu)(S)+"px":k+"px",position:"fixed",zIndex:Q},children:(0,w.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:p+"px",height:d+"px"}),className:"left"===D?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,w.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,w.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,w.jsx)(r.Z,{url:O.thumbnail_image,isMuted:!0,isPlaying:!0,event:O})})}),(0,w.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,w.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,w.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,w.jsx)(x.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:X+"px"},onClick:W,style:{position:"relative",zIndex:1,left:q+"px",bottom:q+"px"}})}),(0,w.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,w.jsx)(c.Z,{sx:{color:(0,m.Ya_)(S),fontSize:B+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,w.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:G,borderBottomRightRadius:G,backgroundImage:y?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,w.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*X+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",y]})})]})})]})})})})}},6805:function(e,t,i){i.d(t,{$I:function(){return l},$w:function(){return s},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return n},rE:function(){return d}});const n="device_type",o="device_mode",r="mobile",a="tablet",l="desktop",d="portrait",s="landscape"},9821:function(e,t,i){var n=i(6367),o=i(7753),r=i(8866),a=i(6805);t.Z=function(e){const[t,i,l]=(0,r.Z)(),[d]=(0,o.j1)("whatmoreLandscapePadding"),[s]=(0,o.j1)("whatmoreVideoTileSize"),[c]=(0,o.j1)("whatmoreVideoTileSizePortrait"),p=(0,n.useMediaQuery)({query:"(min-width: 1025px)"}),h=(0,n.useMediaQuery)({query:"(min-width: 481px)"}),x="portrait"==t?c:s,u=!("portrait"!=t||!h),m=x/100*1.3*.5,f=x/100;var w=Math.min(l,i),[v,g,y,j]=[.6*w*(16/9),.6*w,1.4,0];function b(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:a.AK,DEVICE_MODE:a.rE};if(p){const e=g*m,t=v*m;[v,g,y,j]=[t,e,(l-2*d)/(1.1*e),d],E[a.me]=a.$I,E[a.YP]=a.$w}else if(u){var P=.8*g,z=.8*v;"portrait"==t?(P*=f,z*=f,[v,g,y,j]=[z,P,b(l/(1.2*P)),0],E[a.me]=a.AL,E[a.YP]=a.rE):([v,g,y,j]=[z,P,(l-2*d)/(1.1*P),d],E[a.me]=a.AL,E[a.YP]=a.$w)}else{P=g,z=v;"portrait"==t?(P=P*f*.9,z=z*f*.9,[v,g,y,j]=[z,P,b(l/(1.15*P)),0],E[a.me]=a.AK,E[a.YP]=a.rE):(P=.7*g,z=.7*v,[v,g,y,j]=[z,P,(l-2*d)/(1.1*P),d],E[a.me]=a.AK,E[a.YP]=a.$w)}return[v,g,y,j,E]}},9111:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);