whatmore-react-assets 1.0.1017 → 1.0.1019
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/{191.b07bf8ac.chunk.js → 191.cb4bdf56.chunk.js} +1 -1
- package/static/js/299.87a80fce.chunk.js +2 -0
- package/static/js/{305.32f2032d.chunk.js → 305.ad601df2.chunk.js} +1 -1
- package/static/js/{381.21bf5b40.chunk.js → 381.19a33473.chunk.js} +1 -1
- package/static/js/{436.331c3250.chunk.js → 436.3ad32015.chunk.js} +1 -1
- package/static/js/440.61837b0d.chunk.js +1 -0
- package/static/js/530.0cac0f4e.chunk.js +1 -0
- package/static/js/582.d8621734.chunk.js +1 -0
- package/static/js/{608.95ff20e6.chunk.js → 608.b7399a75.chunk.js} +1 -1
- package/static/js/{61.b20c9039.chunk.js → 61.fba7fc7c.chunk.js} +1 -1
- package/static/js/{622.4b71d23c.chunk.js → 622.a99a7cd2.chunk.js} +1 -1
- package/static/js/{704.b3385b36.chunk.js → 704.20b65b11.chunk.js} +1 -1
- package/static/js/{720.d01b4c7c.chunk.js → 720.a1ad101f.chunk.js} +1 -1
- package/static/js/{731.2e7a8b7f.chunk.js → 731.ec8644ec.chunk.js} +1 -1
- package/static/js/{766.64fde403.chunk.js → 766.f901fd75.chunk.js} +1 -1
- package/static/js/77.c2b0c0f3.chunk.js +1 -0
- package/static/js/{818.51d02f17.chunk.js → 818.2a870151.chunk.js} +1 -1
- package/static/js/{820.7b468598.chunk.js → 820.62071231.chunk.js} +1 -1
- package/static/js/836.fd781645.chunk.js +1 -0
- package/static/js/{862.b9913534.chunk.js → 862.df41dcd9.chunk.js} +1 -1
- package/static/js/{872.3179501a.chunk.js → 872.833e95e1.chunk.js} +2 -2
- package/static/js/{965.ebf1a5af.chunk.js → 965.30d3a489.chunk.js} +1 -1
- package/whatmore.js +2 -2
- package/static/js/299.dde3f79f.chunk.js +0 -2
- package/static/js/530.197c2366.chunk.js +0 -1
- package/static/js/582.eca0c3e7.chunk.js +0 -1
- package/static/js/587.7d76c381.chunk.js +0 -1
- package/static/js/903.f013dd45.chunk.js +0 -1
- /package/static/css/{587.4dd2fc0f.chunk.css → 77.4dd2fc0f.chunk.css} +0 -0
- /package/static/css/{903.4dd2fc0f.chunk.css → 836.4dd2fc0f.chunk.css} +0 -0
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[191,465],{3867:function(t,e,o){var r=o(8816),n=o(417),i=o(4885),l=o(7753),s=o(
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[191,465],{3867:function(t,e,o){var r=o(8816),n=o(417),i=o(4885),l=o(7753),s=o(5109),a=o(7313),p=o(6417);e.Z=function(t){var e;const{whatmoreUITheme:o}=(0,a.useContext)(s.I),[d]=(0,l.j1)("whatmoreSecondaryColor"),[f,c]=(0,l.j1)("productRatings"),u=(0,l.MO)("whatmorePrimaryFont"),y=(t.storeId,t.productId),m=(t.productLink,t.fontSize),v=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===f||"undefined"==typeof f||!(y in f)||f[y].avgRating>5)return(0,p.jsx)(p.Fragment,{});const x=f[y].avgRating,h=f[y].totalRatings;return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(x))].map(((t,e)=>(0,p.jsx)(r.Z,{sx:{color:d,fontSize:m+"px"}},"star-icon"+e))),x-Math.floor(x)>.2?(0,p.jsx)(n.Z,{sx:{color:d,fontSize:m+"px"}},"star-half-icon"):x-Math.floor(x)==0?(0,p.jsx)(p.Fragment,{}):(0,p.jsx)(i.Z,{sx:{color:d,fontSize:m+"px"}},"star-outline-icon"),[...Array(Math.floor(5-x))].map(((t,e)=>(0,p.jsx)(i.Z,{sx:{color:d,fontSize:m+"px"}},"star-outline-icon-"+e))),(0,p.jsx)("div",{children:(0,p.jsx)("div",{width:"2px"})}),(0,p.jsx)("div",{children:(0,p.jsx)("div",{style:{backgroundColor:d,borderRadius:"round"==o?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,p.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",u,"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",x,"\xa0"]})})}),(0,p.jsx)("div",{children:(0,p.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",v,"important"),t.style.setProperty("font-size",.8*m+"px","important"),t.style.setProperty("font-family",u,"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","("+h+")"]})})]})})}},9363:function(t,e,o){o.d(e,{$:function(){return l},s:function(){return i}});var r=o(9854),n=o(7753);function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=(0,n.MO)("whatmoreShopId");return"shopify"!=(0,r.Ipo)(o)?"STRNV8MHJTF"==o?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const o=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,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(o)?"image":null!==n&&void 0!==n&&n.test(o)?"video":void 0}},5456:function(t,e,o){o.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))}},1195:function(t,e,o){var r=o(4836);e.Z=void 0;var n=r(o(5045)),i=o(6417),l=(0,n.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=l},9723:function(t,e,o){var r=o(4836);e.Z=void 0;var n=r(o(5045)),i=o(6417),l=(0,n.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=l},8816:function(t,e,o){var r=o(4836);e.Z=void 0;var n=r(o(5045)),i=o(6417),l=(0,n.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=l},417:function(t,e,o){var r=o(4836);e.Z=void 0;var n=r(o(5045)),i=o(6417),l=(0,n.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=l},4885:function(t,e,o){var r=o(4836);e.Z=void 0;var n=r(o(5045)),i=o(6417),l=(0,n.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=l},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 299.87a80fce.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[299],{4362:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return F}});var i=n(7313),r=n(8675),o=n(6090),a=n(7616),s=(n(6143),n(7244),n(123),n(9302)),l=n(2575),d=n(3271),c=n(8866),u=n(7753),h=n(7129),p=n(9854),m=n(5109),f=n(9821),x=n(3933),g=n(6417);function v(t){var e;const{ref:n,inView:i,entry:r}=(0,x.YD)({triggerOnce:!1}),o=null!==(e=t.defaultHeight)&&void 0!==e?e:"fit-content";return(0,g.jsx)(d.Kq,{ref:n,direction:"row",minHeight:o,height:o,width:"100%",justifyContent:"center",alignItems:"center",children:i?t.data.map(((e,n)=>(0,g.jsx)("div",{children:t.renderElement({eventData:e})},"key"+n))):(0,g.jsx)("div",{style:{minHeight:{rowHeight:o},minWidth:"100%"}})})}function y(t){var e;const[n,i,r]=(0,f.Z)(),o=null!==(e=t.elementsPerRow)&&void 0!==e?e:Math.floor(Math.min(r,t.dataList.length)),a=function(t,e){var n=[];const i=e;for(let r=0;r<t.length;r+=i){const e=t.slice(r,r+i);n.push(e)}return n}(t.dataList,o);return(0,g.jsx)(d.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*n,children:a.map(((e,r)=>(0,g.jsx)(v,{renderElement:t.renderElement,data:e,defaultHeight:n,defaultWidth:i},"key-"+r)))})}var w=n(7300),C=(n(4920),n(3439),n(4892)),j=n(1092),b=n(5945),M=n(9219),S=n(7053);var T=function(t){var e,n,r,o,a,s,[l,d]=(0,f.Z)();const[c,h]=(0,i.useState)(0),[x,v]=(0,i.useState)(t.event),[y]=(0,u.j1)("whatmoreShopId"),{whatmoreUITheme:w}=(0,i.useContext)(m.I),[C]=(0,u.j1)("whatmorePrimaryFont"),j=x.products.length,[T,D]=(0,i.useState)(),[P,R]=(0,i.useState)(!1);if(0==j)return(0,g.jsx)(g.Fragment,{});(0,i.useEffect)((()=>{const t=setInterval((()=>{h((t=>(t+1)%j))}),3e3);return()=>{clearInterval(t)}}),[]),(0,i.useEffect)((()=>{(0,p.N8M)(y)&&(0,M.p_)(x,(0,p.Ipo)(y),y).then((t=>{v(t),R(!0)}));(async()=>{var t;const e=await(0,S.p)(null===x||void 0===x||null===(t=x.products)||void 0===t?void 0:t[0],(0,p.Ipo)(y),y);D(e),R(!0)})()}),[]);const I=.08*d+"px",F=.075*d+"px",L=(+x.products[c].price).toFixed(),O=(+x.products[c].compare_price).toFixed();return(0,g.jsxs)("div",{style:{background:(0,p.Ys7)(y),display:"flex",flexDirection:"column",padding:"10px 12px",gap:"6px",borderRadius:"round"==w?"0 0 12px 12px":"0"},children:[(0,g.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",I,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",C,"important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"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:"bolder"},children:(0,b.s)(x.products[c].title)}),(0,g.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[P&&(0,g.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","black","important"),t.style.setProperty("font-size",F,"important"),t.style.setProperty("font-family",C,"important"),t.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,M.jx)(parseFloat(null!==(e=null===T||void 0===T?void 0:T.price)&&void 0!==e?e:null===x||void 0===x||null===(n=x.products)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.price)," ",y,x.products[c].currency)}),!isNaN(O)&&O>L&&P&&(0,g.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#808191","important"),t.style.setProperty("font-size",F,"important"),t.style.setProperty("font-family",C,"important"),t.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,M.jx)(parseFloat(null!==(o=null===T||void 0===T?void 0:T.compare_at_price)&&void 0!==o?o:null===x||void 0===x||null===(a=x.products)||void 0===a||null===(s=a[0])||void 0===s?void 0:s.compare_price)," ",y,x.products[c].currency)})]})]})},D=n(8984);function P(t){const[e,n]=(0,f.Z)(),[i]=(0,u.j1)("whatmoreShowViews"),r=t.event;return(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,g.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,g.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===i?(0,g.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,g.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,g.jsx)(j.Z,{event:r,fontSize:.07*n+"px"})})}):(0,g.jsx)(g.Fragment,{})})})})})}var R=function(t){var e,n,r;const[o,a]=(0,f.Z)();var s=(0,i.useContext)(h.V);const{whatmoreUITheme:l}=(0,i.useContext)(m.I),d=(0,u.MO)("whatmoreSecondaryColor"),c=(0,u.MO)("whatmoreShopId"),v=t.event,y=t.onClick,w=null===(e=t.isOnFocus)||void 0===e||e,j=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,b=null!==(r=t.animateOnFocus&&(0,p.iWI)(c))&&void 0!==r&&r,[M,S,R]=(0,x.YD)({triggerOnce:!0});return(0,g.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",s.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",s.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:a,height:o,borderRadius:"round"==l?"12px":"0px",borderWidth:(0,p.en2)(c),borderColor:"white"==(0,p.qPe)(c)?d:(0,p.qPe)(c),overflow:"hidden",cursor:"pointer"},className:b?w?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{y(v)},children:[(0,g.jsx)(C.Z,{height:"100%",width:"100%",url:v.thumbnail_image,isPlaying:w||j||(0,D.gE)(),event:v}),(0,g.jsxs)("div",{style:{width:a,height:o},ref:M,children:[(0,g.jsx)(P,{event:v,isOnFocus:w}),(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,g.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,g.jsx)("p",{children:" "})}),(0,g.jsx)("div",{style:{width:"100%"},children:S&&(0,p.PWD)(c)?(0,g.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,g.jsx)(T,{event:v})}):(0,g.jsx)("div",{height:"20px"})})]})})]})]})};const I=(0,l.Z)({key:"whatmore-css-hv"});var F=function(t){var e;const[n,l,x]=(0,c.Z)(),[v,C,j]=(0,f.Z)(),[b]=(0,u.j1)("whatmoreShopId"),[M]=(0,u.j1)("whatmorePrimaryColor"),[S]=(0,u.j1)("whatmoreTitleFont"),T="portrait"==n?(0,u.MO)("whatmoreTitleFontSizePortrait"):(0,u.MO)("whatmoreTitleFontSize"),{whatmoreRootId:D}=(0,i.useContext)(m.I),P=t.events,F=t.onClick,L=null!==(e=(0,p.aRS)(b))&&void 0!==e?e:S;function O(t){F(t)}const U=parseInt(Math.floor(j));return delete a.ZP.styles.global,(0,g.jsx)(s.C,{value:I,children:(0,g.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,g.jsx)(o.x,{theme:a.ZP,cssVarsRoot:D,resetCSS:!1,children:(0,g.jsxs)(h.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[t.heading.trim().length>0?(0,g.jsx)(d.M5,{paddingBottom:"28px",children:(0,g.jsx)(d.xv,{bgColor:M,bgClip:"text",fontSize:T,sx:{fontFamily:L+" !important"},align:"center",children:t.heading})}):(0,g.jsx)(g.Fragment,{}),"landscape"===n?(0,g.jsx)(y,{renderElement:t=>{const e=t.eventData;return(0,g.jsx)("div",{style:{margin:"10px"},children:(0,w.B6)(e)||(0,w.WJ)(e)?(0,g.jsx)(R,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{O(e)}}):(0,g.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{O(e)}})})},dataList:P,elementsPerRow:U}):(0,g.jsx)(y,{renderElement:t=>{const e=t.eventData;return(0,g.jsx)("div",{style:{margin:"10px"},children:(0,g.jsx)(R,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{O(e)}})})},dataList:P,elementsPerRow:U})]})})})})}},8675:function(t,e,n){"use strict";n.d(e,{Z:function(){return w}});var i,r,o=n(3271),a=n(5098),s=n(7313),l=n(9821),d=n(2634),c=n(5180),u=n(168),h=n(686);const p=(0,h.F4)(i||(i=(0,u.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),m=(0,h.F4)(r||(r=(0,u.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),f="\n ".concat(p,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\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");var g=n(7753),v=n(7129),y=n(6417);var w=function(t){var e,n,[i,r]=(0,l.Z)();const[u]=(0,g.j1)("whatmorePrimaryFont");var h=(0,s.useContext)(v.V);const p=t.event,m=t.onClick,w=null===(e=t.isOnFocus)||void 0===e||e,C=(t.playOnUnfocus,null!==(n=t.animateOnFocus)&&void 0!==n&&n);return(0,y.jsxs)(o.xu,{animation:C?w?f:x:"none",marginTop:h.tileTopMargin,marginBottom:h.tileBottomMMargin,marginLeft:h.tileLeftMargin,marginRight:h.tileRightMargin,width:r,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{m(p)},cursor:"pointer",children:[(0,y.jsx)(a.Ee,{width:"full",height:"full",src:p.thumbnail_image,objectFit:"cover",fallback:(0,y.jsx)(c.Z,{width:r,height:i}),borderRadius:"lg"}),(0,y.jsx)(o.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,y.jsxs)(o.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,y.jsx)(o.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,y.jsx)(o.Kq,{direction:"column",justifyContent:"flex-start",children:(0,y.jsx)(o.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,y.jsx)(o.Kq,{direction:"row",justifyContent:"space-between",children:(0,y.jsx)(d.Z,{event:p,fontSize:.05*i+"px",maxWidth:.8*r})})})})}),(0,y.jsx)(o.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,y.jsx)(o.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,y.jsx)(o.xu,{width:"full",borderRadius:"lg",children:(0,y.jsxs)(o.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,y.jsx)(o.xv,{color:"white",fontSize:.08*r+"px",fontWeight:"normal",align:"left",children:" "}),(0,y.jsx)(o.xv,{fontSize:.08*r+"px",fontWeight:"normal",align:"left",sx:{fontFamily:u+" !important",color:"white !important"},children:p.title.substring(0,40)}),(0,y.jsx)(o.xv,{fontSize:.08*r+"px",fontWeight:"bold",align:"left",sx:{fontFamily:u+" !important",color:"white !important"},children:p.presenter_name.substring(0,15)})]})})})})]})})]})}},2634:function(t,e,n){"use strict";var i=n(3271),r=n(4897),o=n(499),a=n(6417);e.Z=function(t){var e,n=t.event,s=t.fontSize,l=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:d,bannerText:c,timeToStartInMins:u}=r.Z.getEventStatus(n);return d.name===o.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:l,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:s,fontWeight:"bold",color:"white",children:c})})}):(0,a.jsx)(i.xu,{maxWidth:l,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:s,fontWeight:"medium",children:c})})})}},499:function(t,e){"use strict";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){"use strict";var i=n(499);e.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,r=t.scheduled_date,o=t.status,a=t.time_zone;if(o.toUpperCase()==i.Z.LIVE.name)return{status:i.Z.LIVE,bannerText:" "+i.Z.LIVE.name+" ",timeToStartInMins:0};if(o.toUpperCase()==i.Z.UPCOMING.name){var s=new Date(r+" "+e+" "+a),l=(new Date(r+" "+n+" "+a),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,r=n/60,o=r/60,a=o/24;return n<=0?{status:i.Z.COMPLETED,bannerText:" "+i.Z.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:r<60?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(r)+" min ",timeToStartInMins:r}:o<24?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(o)+" hr ",timeToStartInMins:60*o}:a<7?{status:i.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:i.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:i.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},6040:function(t,e,n){const i=n(500);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0},t.exports.currencySymbolMap=i},500:function(t){t.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},8507:function(t,e){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}var i=function t(e,i){function r(t,r,o){if("undefined"!==typeof document){"number"===typeof(o=n({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+a}}return Object.create({set:r,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var o=n[r].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(i[s]=e.read(a,s),t===s)break}catch(l){}}return t?i[t]:i}},remove:function(t,e){r(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});e.Z=i}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[305],{1092:function(t,e,n){var i=n(237),o=n(9854),r=n(7753),l=n(8811),s=n(7313),a=n(6417);function d(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.Z=function(t){const{whatmoreUITheme:e}=(0,s.useContext)(l.I),n=(0,r.MO)("whatmoreShopId"),p=(0,r.MO)("whatmorePrimaryFont"),c=t.event,h=t.fontSize;if(c.total_views<=0)return(0,a.jsx)(a.Fragment,{});const m=(0,o.S_M)(n);return"template-icon"==m?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XCH)(n),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.alU)(n),borderColor:(0,o.qPe)(n)},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)(i.Z,{sx:{color:(0,o.aLw)(n)+" !important",fontSize:h,fontWeight:"normal"}})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aLw)(n),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("font-size",h,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+d(c.total_views)+" "})})]})})}):"template-text"==m?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XCH)(n),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.alU)(n),borderColor:(0,o.qPe)(n)},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aLw)(n),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"))},style:{fontSize:h,fontWeight:"bold"},children:" "+d(c.total_views)+" views"})})})})}):void 0}},7129:function(t,e,n){n.d(e,{V:function(){return i}});const i=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},4920:function(t,e,n){n.d(e,{Z:function(){return b}});var i=n(7313),o=n(9821),r=(n(3439),n(9723)),l=n(7753),s=n(4892),a=n(7129),d=n(6805),p=n(9854),c=n(1092),h=n(5945),m=n(8811),x=n(9363),u=n(6417);var y=function(t){var e,n,r,s,[a,d]=(0,o.Z)();const{whatmoreUITheme:c}=(0,i.useContext)(m.I),[y]=(0,l.j1)("whatmorePrimaryFont"),[f,w]=(0,i.useState)(0),g=(0,l.MO)("whatmoreShopId"),v=t.event;if(0==v.products.length)return(0,u.jsx)(u.Fragment,{});const j=.3*d,b=j+"px",P=j+"px",C=.07*d,I=C+"px";return(0,u.jsx)("div",{style:{width:d+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,u.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,u.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",P,"important")},style:{width:(0,p.uNj)(g)?b:"auto",boxShadow:"round"==c?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.alU)(g),borderColor:(0,p.qPe)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,u.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,p.yOX)(g),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,x.s)(v.products[f].thumbnail_image,"&width=".concat(400,"&height=",400)),style:{width:"100%",height:"100%",borderRadius:"round"==c?"5px":"0px"},alt:"product image"})}),(0,u.jsxs)("div",{style:{width:d-5-j+"px",height:"100%",borderRadius:"round"==c?"5px":"0px",overflow:"visible"},children:[(0,u.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,u.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",I,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"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:"normal"},children:(0,h.s)(v.products[f].title)})}),(null===(e=v.products[f])||void 0===e||null===(n=e.product_metadata)||void 0===n?void 0:n.product_type)&&(0,u.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:d-5-j+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==c?"3px":"0"},children:(0,u.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",d-5-j+"px","important"),t.style.setProperty("font-size",.7*C+"px","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(r=v.products[f])||void 0===r||null===(s=r.product_metadata)||void 0===s?void 0:s.product_type})})]})]},f)})},f=n(3933),w=n(8984);function g(t){var e,[n,s]=(0,o.Z)();const[d]=(0,l.j1)("whatmoreShopId"),[c,h,m]=(0,f.YD)({triggerOnce:!0});var x=(0,i.useContext)(a.V);const g=t.event,v=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*s,b=(0,w.gE)()?t.isOnFocus:h;return(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,u.jsx)("p",{children:" "})}),x.showPlayButton&&!v?(0,u.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==g.event_type&&(0,u.jsx)(r.Z,{sx:{color:(0,p.Ya_)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,u.jsx)(u.Fragment,{}),(0,u.jsx)("div",{ref:c,children:b&&(0,p.PWD)(d)?(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,u.jsx)(y,{event:g})}):(0,u.jsx)("div",{height:"20px"})})]})})}function v(t){var[e,n]=(0,o.Z)();const[i]=(0,l.j1)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,u.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,u.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,u.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,u.jsx)("p",{style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,u.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,u.jsx)(u.Fragment,{})}function j(t){const[e,n,i,r,s]=(0,o.Z)(),[a]=(0,l.j1)("whatmoreShowViews"),h=(0,l.MO)("whatmoreShopId"),m=t.event,x=t.isOnFocus;return(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,u.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,u.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===a&&"show"===(0,p.qcC)(h)?(0,u.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,u.jsx)(c.Z,{event:m,fontSize:.07*n+"px"})})}):(0,u.jsx)(u.Fragment,{})})}),d.$w===s[d.YP]?(0,u.jsx)(u.Fragment,{}):x?(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,u.jsx)(v,{event:m})}):(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,u.jsx)(v,{event:m})})]})})}var b=function(t){var e,n,r;const[c,h,x,y,f]=(0,o.Z)();var w=(0,i.useContext)(a.V);const{whatmoreUITheme:v}=(0,i.useContext)(m.I),b=(0,l.MO)("whatmoreShopId"),P=t.event,C=t.onClick,I=null===(e=t.isOnFocus)||void 0===e||e,F=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,k=null!==(r=t.animateOnFocus&&(0,p.iWI)(b))&&void 0!==r&&r,M=(0,p.nzC)(b);return(0,u.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",w.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",w.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:h,height:c,borderRadius:"round"==v?"5px":"0px",boxShadow:"round"==v?M:null,borderWidth:(0,p.alU)(b),borderColor:(0,p.qPe)(b),overflow:"hidden",cursor:"pointer"},className:k?I?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{C(P)},children:[(0,u.jsx)(s.Z,{height:(0,p.dXm)(b)+" !important",width:"100%",url:P.thumbnail_image,isPlaying:I||F,event:P}),(0,u.jsxs)("div",{style:{width:h,height:c},children:[(0,u.jsx)(j,{event:P,isOnFocus:I}),"87043703105"===b||"76467011883"===b||!I&&d.$w!==f[d.YP]?null:(0,u.jsx)(g,{event:P,unfocusedDisplay:!I,isOnFocus:I})]})]})}},9363:function(t,e,n){n.d(e,{$:function(){return l},s:function(){return r}});var i=n(9854),o=n(7753);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,o.MO)("whatmoreShopId");return"shopify"!=(0,i.Ipo)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function l(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],i=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(n)?"image":null!==o&&void 0!==o&&o.test(n)?"video":void 0}},6805:function(t,e,n){n.d(e,{$I:function(){return s},$w:function(){return d},AK:function(){return r},AL:function(){return l},YP:function(){return o},me:function(){return i},rE:function(){return a}});const i="device_type",o="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},9821:function(t,e,n){var i=n(6367),o=n(7753),r=n(8866),l=n(6805);e.Z=function(t){const[e,n,s]=(0,r.Z)(),[a]=(0,o.j1)("whatmoreLandscapePadding"),[d]=(0,o.j1)("whatmoreVideoTileSize"),[p]=(0,o.j1)("whatmoreVideoTileSizePortrait"),c=(0,i.useMediaQuery)({query:"(min-width: 1025px)"}),h=(0,i.useMediaQuery)({query:"(min-width: 481px)"}),m="portrait"==e?p:d,x=!("portrait"!=e||!h),u=m/100*1.3*.5,y=m/100;var f=Math.min(s,n),[w,g,v,j]=[.6*f*(16/9),.6*f,1.4,0];function b(t){return Math.round(10*t)/10}var P={DEVICE_TYPE:l.AK,DEVICE_MODE:l.rE};if(c){const t=g*u,e=w*u;[w,g,v,j]=[e,t,(s-2*a)/(1.1*t),a],P[l.me]=l.$I,P[l.YP]=l.$w}else if(x){var C=.8*g,I=.8*w;"portrait"==e?(C*=y,I*=y,[w,g,v,j]=[I,C,b(s/(1.2*C)),0],P[l.me]=l.AL,P[l.YP]=l.rE):([w,g,v,j]=[I,C,(s-2*a)/(1.1*C),a],P[l.me]=l.AL,P[l.YP]=l.$w)}else{C=g,I=w;"portrait"==e?(C=C*y*.9,I=I*y*.9,[w,g,v,j]=[I,C,b(s/(1.15*C)),0],P[l.me]=l.AK,P[l.YP]=l.rE):(C=.7*g,I=.7*w,[w,g,v,j]=[I,C,(s-2*a)/(1.1*C),a],P[l.me]=l.AK,P[l.YP]=l.$w)}return[w,g,v,j,P]}},9723:function(t,e,n){var i=n(4836);e.Z=void 0;var o=i(n(5045)),r=n(6417),l=(0,o.default)((0,r.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=l},237:function(t,e,n){var i=n(4836);e.Z=void 0;var o=i(n(5045)),r=n(6417),l=(0,o.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");e.Z=l},3439:function(){},7244:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[305],{1092:function(t,e,n){var i=n(237),o=n(9854),r=n(7753),l=n(5109),s=n(7313),a=n(6417);function d(t){return t<1e3?t:t<1e5?(t/1e3).toFixed(0)+"K":(t/1e5).toFixed(0)+"L"}e.Z=function(t){const{whatmoreUITheme:e}=(0,s.useContext)(l.I),n=(0,r.MO)("whatmoreShopId"),p=(0,r.MO)("whatmorePrimaryFont"),c=t.event,h=t.fontSize;if(c.total_views<=0)return(0,a.jsx)(a.Fragment,{});const m=(0,o.S_M)(n);return"template-icon"==m?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XCH)(n),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.alU)(n),borderColor:(0,o.qPe)(n)},children:(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)(i.Z,{sx:{color:(0,o.aLw)(n)+" !important",fontSize:h,fontWeight:"normal"}})}),(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aLw)(n),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"),t.style.setProperty("font-size",h,"important"),t.style.setProperty("min-height","0","important"),t.style.setProperty("display","inline","important"),t.style.setProperty("width","auto","important"))},style:{fontWeight:"normal"},children:" "+d(c.total_views)+" "})})]})})}):"template-text"==m?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XCH)(n),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.alU)(n),borderColor:(0,o.qPe)(n)},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,a.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aLw)(n),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",p,"important"))},style:{fontSize:h,fontWeight:"bold"},children:" "+d(c.total_views)+" views"})})})})}):void 0}},7129:function(t,e,n){n.d(e,{V:function(){return i}});const i=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},4920:function(t,e,n){n.d(e,{Z:function(){return b}});var i=n(7313),o=n(9821),r=(n(3439),n(9723)),l=n(7753),s=n(4892),a=n(7129),d=n(6805),p=n(9854),c=n(1092),h=n(5945),m=n(5109),x=n(9363),u=n(6417);var y=function(t){var e,n,r,s,[a,d]=(0,o.Z)();const{whatmoreUITheme:c}=(0,i.useContext)(m.I),[y]=(0,l.j1)("whatmorePrimaryFont"),[f,w]=(0,i.useState)(0),g=(0,l.MO)("whatmoreShopId"),v=t.event;if(0==v.products.length)return(0,u.jsx)(u.Fragment,{});const j=.3*d,b=j+"px",P=j+"px",C=.07*d,I=C+"px";return(0,u.jsx)("div",{style:{width:d+"px",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3)"},children:(0,u.jsxs)("div",{ref:t=>{t&&t.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,u.jsx)("div",{ref:t=>{t&&t.style.setProperty("height",P,"important")},style:{width:(0,p.uNj)(g)?b:"auto",boxShadow:"round"==c?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.alU)(g),borderColor:(0,p.qPe)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,u.jsx)("img",{ref:t=>{t&&(t.style.setProperty("object-fit",(0,p.yOX)(g),"important"),t.style.setProperty("max-width",b,"important"))},src:(0,x.s)(v.products[f].thumbnail_image,"&width=".concat(400,"&height=",400)),style:{width:"100%",height:"100%",borderRadius:"round"==c?"5px":"0px"},alt:"product image"})}),(0,u.jsxs)("div",{style:{width:d-5-j+"px",height:"100%",borderRadius:"round"==c?"5px":"0px",overflow:"visible"},children:[(0,u.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,u.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",I,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"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:"normal"},children:(0,h.s)(v.products[f].title)})}),(null===(e=v.products[f])||void 0===e||null===(n=e.product_metadata)||void 0===n?void 0:n.product_type)&&(0,u.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:d-5-j+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==c?"3px":"0"},children:(0,u.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#000","important"),t.style.setProperty("maxWidth",d-5-j+"px","important"),t.style.setProperty("font-size",.7*C+"px","important"),t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-overflow","ellipsis","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"))},children:null===(r=v.products[f])||void 0===r||null===(s=r.product_metadata)||void 0===s?void 0:s.product_type})})]})]},f)})},f=n(3933),w=n(8984);function g(t){var e,[n,s]=(0,o.Z)();const[d]=(0,l.j1)("whatmoreShopId"),[c,h,m]=(0,f.YD)({triggerOnce:!0});var x=(0,i.useContext)(a.V);const g=t.event,v=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*s,b=(0,w.gE)()?t.isOnFocus:h;return(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,u.jsx)("p",{children:" "})}),x.showPlayButton&&!v?(0,u.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:"video"==g.event_type&&(0,u.jsx)(r.Z,{sx:{color:(0,p.Ya_)(d)+" !important",opacity:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,u.jsx)(u.Fragment,{}),(0,u.jsx)("div",{ref:c,children:b&&(0,p.PWD)(d)?(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,u.jsx)(y,{event:g})}):(0,u.jsx)("div",{height:"20px"})})]})})}function v(t){var[e,n]=(0,o.Z)();const[i]=(0,l.j1)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,u.jsx)("div",{style:{width:"100%",height:"fit-content",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))"},children:(0,u.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,u.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,u.jsx)("p",{style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,u.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-family",i,"important")},style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:r.title.substring(0,60)})]})})})}):(0,u.jsx)(u.Fragment,{})}function j(t){const[e,n,i,r,s]=(0,o.Z)(),[a]=(0,l.j1)("whatmoreShowViews"),h=(0,l.MO)("whatmoreShopId"),m=t.event,x=t.isOnFocus;return(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,u.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,u.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===a&&"show"===(0,p.qcC)(h)?(0,u.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,u.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,u.jsx)(c.Z,{event:m,fontSize:.07*n+"px"})})}):(0,u.jsx)(u.Fragment,{})})}),d.$w===s[d.YP]?(0,u.jsx)(u.Fragment,{}):x?(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,u.jsx)(v,{event:m})}):(0,u.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,u.jsx)(v,{event:m})})]})})}var b=function(t){var e,n,r;const[c,h,x,y,f]=(0,o.Z)();var w=(0,i.useContext)(a.V);const{whatmoreUITheme:v}=(0,i.useContext)(m.I),b=(0,l.MO)("whatmoreShopId"),P=t.event,C=t.onClick,I=null===(e=t.isOnFocus)||void 0===e||e,F=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,k=null!==(r=t.animateOnFocus&&(0,p.iWI)(b))&&void 0!==r&&r,M=(0,p.nzC)(b);return(0,u.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",w.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",w.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:h,height:c,borderRadius:"round"==v?"5px":"0px",boxShadow:"round"==v?M:null,borderWidth:(0,p.alU)(b),borderColor:(0,p.qPe)(b),overflow:"hidden",cursor:"pointer"},className:k?I?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{C(P)},children:[(0,u.jsx)(s.Z,{height:(0,p.dXm)(b)+" !important",width:"100%",url:P.thumbnail_image,isPlaying:I||F,event:P}),(0,u.jsxs)("div",{style:{width:h,height:c},children:[(0,u.jsx)(j,{event:P,isOnFocus:I}),"87043703105"===b||"76467011883"===b||!I&&d.$w!==f[d.YP]?null:(0,u.jsx)(g,{event:P,unfocusedDisplay:!I,isOnFocus:I})]})]})}},9363:function(t,e,n){n.d(e,{$:function(){return l},s:function(){return r}});var i=n(9854),o=n(7753);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,o.MO)("whatmoreShopId");return"shopify"!=(0,i.Ipo)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function l(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],i=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(n)?"image":null!==o&&void 0!==o&&o.test(n)?"video":void 0}},6805:function(t,e,n){n.d(e,{$I:function(){return s},$w:function(){return d},AK:function(){return r},AL:function(){return l},YP:function(){return o},me:function(){return i},rE:function(){return a}});const i="device_type",o="device_mode",r="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},9821:function(t,e,n){var i=n(6367),o=n(7753),r=n(8866),l=n(6805);e.Z=function(t){const[e,n,s]=(0,r.Z)(),[a]=(0,o.j1)("whatmoreLandscapePadding"),[d]=(0,o.j1)("whatmoreVideoTileSize"),[p]=(0,o.j1)("whatmoreVideoTileSizePortrait"),c=(0,i.useMediaQuery)({query:"(min-width: 1025px)"}),h=(0,i.useMediaQuery)({query:"(min-width: 481px)"}),m="portrait"==e?p:d,x=!("portrait"!=e||!h),u=m/100*1.3*.5,y=m/100;var f=Math.min(s,n),[w,g,v,j]=[.6*f*(16/9),.6*f,1.4,0];function b(t){return Math.round(10*t)/10}var P={DEVICE_TYPE:l.AK,DEVICE_MODE:l.rE};if(c){const t=g*u,e=w*u;[w,g,v,j]=[e,t,(s-2*a)/(1.1*t),a],P[l.me]=l.$I,P[l.YP]=l.$w}else if(x){var C=.8*g,I=.8*w;"portrait"==e?(C*=y,I*=y,[w,g,v,j]=[I,C,b(s/(1.2*C)),0],P[l.me]=l.AL,P[l.YP]=l.rE):([w,g,v,j]=[I,C,(s-2*a)/(1.1*C),a],P[l.me]=l.AL,P[l.YP]=l.$w)}else{C=g,I=w;"portrait"==e?(C=C*y*.9,I=I*y*.9,[w,g,v,j]=[I,C,b(s/(1.15*C)),0],P[l.me]=l.AK,P[l.YP]=l.rE):(C=.7*g,I=.7*w,[w,g,v,j]=[I,C,(s-2*a)/(1.1*C),a],P[l.me]=l.AK,P[l.YP]=l.$w)}return[w,g,v,j,P]}},9723:function(t,e,n){var i=n(4836);e.Z=void 0;var o=i(n(5045)),r=n(6417),l=(0,o.default)((0,r.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=l},237:function(t,e,n){var i=n(4836);e.Z=void 0;var o=i(n(5045)),r=n(6417),l=(0,o.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");e.Z=l},3439:function(){},7244:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[381],{3580:function(t,e,r){r.r(e),r.d(e,{default:function(){return m}});var o=r(7313),n=r(8866),i=r(7753),l=(r(9111),r(123),r(9778),r(9854)),a=r(868),s=r(9363),c=(r(8984),r(4892)),p=r(6417);var d=function(t){var e,r;const[d,u,h]=(0,n.Z)(),f=(0,i.MO)("whatmorePrimaryFont"),m=(0,i.MO)("whatmoreSecondaryColor"),x=(0,i.MO)("whatmoreShopId"),[g,v]=(0,o.useState)(!1),w=t.storyId,y=(0,a.V)(t.imageUrl),b=t.title,j=t.onClick,S=t.template,k=(0,l.f63)(x),C="template-stories-a"===S?"50%":"30%",F="portrait"==d?1:(0,l.Zyc)(x),_=Math.floor(t.tileSize*F),R=.12*_*(0,l.LM2)(x),M=null!==(e=(0,l.QaQ)(x))&&void 0!==e?e:f,z=null!==(r=(0,l.u2W)(x))&&void 0!==r?r:[m,k,m,k,m],I=(0,o.useRef)(0),E=(0,o.useRef)(null),O=(0,o.useRef)(null);return(0,o.useEffect)((()=>{O.current&&O.current.play()}),[]),(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:_*(0,l.jJ6)(x)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{v(!0),j(w)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:C,boxShadow:"0px 2px 1px 0px "+z[0]+"50, 0px -2px 1px 0px "+z[1]+"50, 2px 0px 1px 0px "+z[2]+"50, -2px 0px 1px 0px "+z[3]+"80, 2px -2px 1px 0px "+z[4]+"80, -2px 2px 1px 0px "+z[0]+"DA, 2px 2px 1px 0px "+z[1]+"DA, -2px -2px 1px 0px "+z[2]+"DA"},children:(0,p.jsx)("div",{className:"whatmore-story-thumbnail-wrapper",style:{flexShrink:0,objectFit:"cover",height:_+"px",width:_+"px",borderRadius:C,border:"3px solid white",backgroundColor:"#343434"===m?"#d3d3d3":m,overflow:"hidden"},children:"video"==(0,s.$)(y)?(0,p.jsx)(c.Z,{height:"100%",width:"100%",url:y,isPlaying:!0,event:{event_type:"video"},borderRadius:C}):(0,p.jsx)("img",{ref:E,className:"whatmore-story-thumbnail",src:y,loading:"lazy",style:{objectFit:"cover",height:_+"px",width:_+"px",backgroundColor:"white"},alt:"story image",onError:function(){if(I.current<3){let e=(0,a.V)(t.imageUrl);E.current.src="",E.current.src=e,I.current=I.current+1}else console.log("Failed to load image after several attempts"),E.current.src="https://d2oouab8j9eigo.cloudfront.net/background_white.png"}})})}),(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,p.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-size",R+"px","important")},style:{textAlign:"center",color:(0,l.WS3)(x),fontFamily:M,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto"},children:null===b||void 0===b?void 0:b.substring(0,24)})})]})},u=r(
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[381],{3580:function(t,e,r){r.r(e),r.d(e,{default:function(){return m}});var o=r(7313),n=r(8866),i=r(7753),l=(r(9111),r(123),r(9778),r(9854)),a=r(868),s=r(9363),c=(r(8984),r(4892)),p=r(6417);var d=function(t){var e,r;const[d,u,h]=(0,n.Z)(),f=(0,i.MO)("whatmorePrimaryFont"),m=(0,i.MO)("whatmoreSecondaryColor"),x=(0,i.MO)("whatmoreShopId"),[g,v]=(0,o.useState)(!1),w=t.storyId,y=(0,a.V)(t.imageUrl),b=t.title,j=t.onClick,S=t.template,k=(0,l.f63)(x),C="template-stories-a"===S?"50%":"30%",F="portrait"==d?1:(0,l.Zyc)(x),_=Math.floor(t.tileSize*F),R=.12*_*(0,l.LM2)(x),M=null!==(e=(0,l.QaQ)(x))&&void 0!==e?e:f,z=null!==(r=(0,l.u2W)(x))&&void 0!==r?r:[m,k,m,k,m],I=(0,o.useRef)(0),E=(0,o.useRef)(null),O=(0,o.useRef)(null);return(0,o.useEffect)((()=>{O.current&&O.current.play()}),[]),(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:_*(0,l.jJ6)(x)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{v(!0),j(w)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:C,boxShadow:"0px 2px 1px 0px "+z[0]+"50, 0px -2px 1px 0px "+z[1]+"50, 2px 0px 1px 0px "+z[2]+"50, -2px 0px 1px 0px "+z[3]+"80, 2px -2px 1px 0px "+z[4]+"80, -2px 2px 1px 0px "+z[0]+"DA, 2px 2px 1px 0px "+z[1]+"DA, -2px -2px 1px 0px "+z[2]+"DA"},children:(0,p.jsx)("div",{className:"whatmore-story-thumbnail-wrapper",style:{flexShrink:0,objectFit:"cover",height:_+"px",width:_+"px",borderRadius:C,border:"3px solid white",backgroundColor:"#343434"===m?"#d3d3d3":m,overflow:"hidden"},children:"video"==(0,s.$)(y)?(0,p.jsx)(c.Z,{height:"100%",width:"100%",url:y,isPlaying:!0,event:{event_type:"video"},borderRadius:C}):(0,p.jsx)("img",{ref:E,className:"whatmore-story-thumbnail",src:y,loading:"lazy",style:{objectFit:"cover",height:_+"px",width:_+"px",backgroundColor:"white"},alt:"story image",onError:function(){if(I.current<3){let e=(0,a.V)(t.imageUrl);E.current.src="",E.current.src=e,I.current=I.current+1}else console.log("Failed to load image after several attempts"),E.current.src="https://d2oouab8j9eigo.cloudfront.net/background_white.png"}})})}),(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,p.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-size",R+"px","important")},style:{textAlign:"center",color:(0,l.WS3)(x),fontFamily:M,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto"},children:null===b||void 0===b?void 0:b.substring(0,24)})})]})},u=r(5109),h=r(9302);const f=(0,r(2575).Z)({key:"whatmore-stories-css"});var m=function(t){const[e,r,a]=(0,n.Z)(),[s]=(0,i.j1)("whatmoreLandscapePadding"),[c]=(0,i.j1)("whatmoreStoryTileSize"),[m]=(0,i.j1)("whatmoreStoryTileSizeDesktop"),[x]=(0,i.j1)("whatmoreShopId"),[g,v]=(0,o.useState)("portrait"===e?"flex-start":"center"),w=(0,o.useRef)(null);var y=t.eventsStories;const b=t.onClick,j=t.template;(0,o.useEffect)((()=>{u.$.forEach((t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-stories-a"]')))return;t&&(t.style.minHeight="0px")}))}),[]);const S=t=>{if(w.current){const e="left"===t?4*-F:4*F;w.current.scrollBy({left:e,behavior:"smooth"})}};(0,o.useEffect)((()=>{!function(){if(w.current){const t=w.current.scrollWidth,e=w.current.offsetWidth;v(t>e?"flex-start":"center")}}()}),[g,a]);const[k,C]=(0,o.useState)([]);(0,o.useEffect)((()=>{C(y.map((t=>t.storyset_dynamic_thumbnail?Math.floor(Math.random()*(t.events.length-1)):0)))}),[]);const F="landscape"===e?r*(m/100)*.3:a*(c/100)*.5;return(0,p.jsx)(h.C,{value:f,children:"landscape"==e&&!(0,l.DF0)(x)||"portrait"==e&&!(0,l.JaA)(x)?(0,p.jsx)(p.Fragment,{}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:g,height:"fit-content",width:"100%"},className:"whatmore-story-horizontal-flex",ref:w,children:y.map(((t,e)=>{var r,o,n,i,a;const s=t.storyset_dynamic_thumbnail?null!==(r=null===(o=t.events[k[e]])||void 0===o?void 0:o.poster_image)&&void 0!==r?r:t.thumbnail_image:null!==(n=t.thumbnail_image)&&void 0!==n?n:null===t||void 0===t||null===(i=t.events)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.thumbnail_image;return(0,p.jsx)(d,{storyId:t.id,tileSize:(0,l.OFP)(x)?100:F,onClick:t=>{b(e)},template:j,imageUrl:s,fallbackUrl:t.thumbnail_image,title:t.title},"whatmore-story-"+t.id)}))}),"landscape"===e&&(0,l.sMW)(x)&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("button",{onClick:()=>S("left"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",left:0},children:(0,p.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:"<"})}),(0,p.jsx)("button",{onClick:()=>S("right"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",right:0},children:(0,p.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:">"})})]})]})})}},9363:function(t,e,r){r.d(e,{$:function(){return l},s:function(){return i}});var o=r(9854),n=r(7753);function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,n.MO)("whatmoreShopId");return"shopify"!=(0,o.Ipo)(r)?"STRNV8MHJTF"==r?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const r=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,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(r)?"image":null!==n&&void 0!==n&&n.test(r)?"video":void 0}},9111:function(){},9778:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[436],{1492:function(e,t,o){o.r(t),o.d(t,{default:function(){return _}});var n=o(7313),i=o(6090),r=o(7616),l=o(8811),s=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),a=o(2575),d=o(2210),c=o(8486),p=o(9821),u=o(8866),m=o(2279),h=o.n(m),y=o(7753),v=o(7129),x=o(1855),f=o(9854),g=o(4920),w=o(4522),P=o(778),j=o(7381),C=(o(3439),o(4892)),S=o(6805),I=o(9219),O=o(5945),M=o(7053),b=o(6417);var k=function(e){var t,o,i,r,s,a,d,c,u,m,h,x,g,w,P,j,k,F,E;const[Z,_,W,N,D]=(0,p.Z)();var T=(0,n.useContext)(v.V);const{whatmoreUITheme:U}=(0,n.useContext)(l.I),z=(0,y.MO)("whatmoreShopId"),R=(0,y.MO)("whatmorePrimaryFont"),V=(0,y.MO)("whatmoreSecondaryColor"),H=e.onClick,A=null===(t=e.isOnFocus)||void 0===t||t,$=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,G=null!==(i=e.animateOnFocus&&(0,f.iWI)(z))&&void 0!==i&&i,q="portrait"===D[S.YP],B=(q?1.076*_*(0,f.pEd)(z):_*(0,f.H4g)(z))+"px",L=(q?1.076*_*(0,f.pEd)(z):_*(0,f.H4g)(z))+"px",X=(q?.965*_*(0,f.pEd)(z):.859*_*(0,f.H4g)(z))+"px",Y=(0,f.nzC)(z),{whatmoreIsPreviewMode:K}=(0,n.useContext)(l.I),J=.25*_,Q=J+"px",[ee,te]=(0,n.useState)(e.event),[oe,ne]=(0,n.useState)(),ie=Math.round(+(null===(r=ee.products)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.price)),re=Math.round(+(null===ee||void 0===ee||null===(a=ee.products[0])||void 0===a?void 0:a.compare_price)),le=re&&0!=re&&re>ie?Math.round((re-ie)/re*100):NaN,[se,ae]=(0,n.useState)(le);return(0,n.useEffect)((()=>{(0,f.N8M)(z)&&(0,I.p_)(ee,(0,f.Ipo)(z),z).then((e=>{var t,o,n,i;te(e),(null===e||void 0===e||null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.discount)&&ae(null===e||void 0===e||null===(n=e.products)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.discount)}));(async()=>{var e;const t=await(0,M.p)(null===ee||void 0===ee||null===(e=ee.products)||void 0===e?void 0:e[0],(0,f.Ipo)(z),z);ne(t)})()}),[]),(0,b.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",T.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",T.tileBottomMMargin+"px","important"))},children:[(0,b.jsx)("div",{style:{margin:"0 auto",width:_,height:q&&A?"STR2FOC6KG9"==z||"STRDOIDF6O7"==z?Z:1.1*Z:Z,borderRadius:"round"==U?"5px":"0px",boxShadow:"round"==U?Y:null,borderWidth:(0,f.alU)(z),borderColor:(0,f.qPe)(z),overflow:"hidden",cursor:"pointer"},className:G?A?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{H(ee)},children:(0,b.jsx)(C.Z,{height:(0,f.dXm)(z)+" !important",width:"100%",url:ee.thumbnail_image,isPlaying:A||$,event:ee})}),(0,b.jsxs)("div",{onClick:()=>{H(ee)},className:G?A?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{cursor:"pointer",display:"flex",gap:"6px",padding:"16px 12px"},children:[(K?(0,f.uU$)(z):(0,f.EIj)(z))&&(0,b.jsx)("div",{style:{maxWidth:Q,minWidth:null!==(d=ee.products)&&void 0!==d&&null!==(c=d[0])&&void 0!==c&&c.thumbnail_image?Q:"0",overflow:"hidden"},children:(0,b.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,f.yOX)(z),"important")},src:null===(u=ee.products)||void 0===u||null===(m=u[0])||void 0===m?void 0:m.thumbnail_image})}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-size",B,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",R,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,O.s)(null===(h=ee.products[0])||void 0===h?void 0:h.title)}),(0,f.QaY)(z)&&(0,b.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,f.$zZ)(z)?"row":"row-reverse",justifyContent:(0,f.$zZ)(z)?"flex-start":"flex-end"},children:[(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,f.Uyp)(z),"important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("font-family",R,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,f.rPP)(z)?"normal":"bold"},children:(0,I.jx)(parseFloat(null!==(x=null===oe||void 0===oe?void 0:oe.price)&&void 0!==x?x:null===ee||void 0===ee||null===(g=ee.products)||void 0===g||null===(w=g[0])||void 0===w?void 0:w.price)," ",z,null===(P=ee.products[0])||void 0===P?void 0:P.currency)}),!isNaN(re)&&re>ie&&(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,f.kPs)(z),"important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("font-family",R,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,I.jx)(parseFloat(null!==(j=null===oe||void 0===oe?void 0:oe.compare_at_price)&&void 0!==j?j:null===ee||void 0===ee||null===(k=ee.products)||void 0===k||null===(F=k[0])||void 0===F?void 0:F.compare_price)," ",z,null===(E=ee.products[0])||void 0===E?void 0:E.currency)})]}),(0,f.QaY)(z)&&!isNaN(se)&&0!=se&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,f.ZJm)(z)?"#343434"==V?(0,f.ZJm)(z):V:(0,f.ZJm)(z),alignItems:"center",borderRadius:(0,f.CF_)(z)+"px",width:"fit-content",padding:(0,f.Spx)(z)?"3px 6px":"0px"},children:(0,f.Spx)(z)?(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,f.mso)(z),"important"),e.style.setProperty("font-size",X,"important"),e.style.setProperty("font-family",R,"important"))},children:"".concat(se,"% Off")}):(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,f.aUT)(z),"important"),e.style.setProperty("font-size",X,"important"),e.style.setProperty("font-family",(0,f.V3Y)(z),"important"))},children:(0,f.sG7)(z)})})]})]})]})};const F=(0,a.Z)({key:"whatmore-css-hv"});function E(e){const[t,o,i]=(0,p.Z)(),r=(0,y.MO)("whatmoreShopId"),s=e.events,a=e.onClick,u=i*(0,f.u6l)(r),m="32365904011"==r,[h,v]=(0,n.useState)(m?s.length:u),{whatmoreWidgetSourceDetails:j}=(0,n.useContext)(l.I);return(0,n.useEffect)((()=>{h<=u&&v((e=>e+u))}),[u]),(0,b.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,b.jsx)(d.tq,{slidesPerView:s.length>1?u:1,initialSlide:s.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,w.y4)({userInteractionType:P.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:j}),e.realIndex>e.previousIndex&&v((e=>e+u))},loop:m,navigation:m,modules:[c.W_],children:s.map(((e,t)=>t<=h&&(0,b.jsx)(d.o5,{children:t=>{let{isActive:o,isPrev:n,isNext:i,isVisible:l}=t;return n||i||o?(0,f.$X$)(r)?(0,b.jsx)(k,{isOnFocus:o&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,b.jsx)(g.Z,{isOnFocus:o&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,b.jsx)(x.Z,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function Z(e){const[t,o,i,r]=(0,p.Z)(),[s,a]=(0,n.useState)(-1),u=(0,y.MO)("whatmoreShopId"),m=e.onClick,v=e.events,j="32365904011"==u,[C,S]=(0,n.useState)(j?v.length:i),I=Math.min(i,v.length),{whatmoreWidgetSourceDetails:O}=(0,n.useContext)(l.I);return(0,n.useEffect)((()=>{C<=i&&S((e=>e+i))}),[i]),(0,b.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,b.jsx)("div",{style:{width:o*I*(0,f.Su5)(u)+"px"},children:(0,b.jsx)(d.tq,{slidesPerView:I,watchSlidesProgress:!0,modules:[c.W_],navigation:!0,slidesPerGroup:parseInt(I),onSlideChange:e=>{(0,w.y4)({userInteractionType:P.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:O}),e.realIndex>e.previousIndex&&S((e=>e+i))},spaceBetween:(0,f.WGf)(u),loop:j,children:v.map(((e,t)=>{const o=h()((()=>a(t)),300);return t<=C&&(0,b.jsx)(d.o5,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),a(-1)},children:o=>{let{isActive:n,isPrev:i,isNext:r,isVisible:l}=o;return l?(0,f.$X$)(u)?(0,b.jsx)(k,{isOnFocus:t==s,playOnUnfocus:!(0,f.dHy)(u)||t==parseInt(I/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>{m(e)}}):(0,b.jsx)(g.Z,{isOnFocus:t==s,playOnUnfocus:!(0,f.dHy)(u)||t==parseInt(I/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>{m(e)}}):(0,b.jsx)(x.Z,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}var _=function(e){const[t,o,a]=(0,u.Z)(),[d]=(0,y.j1)("whatmoreShopId"),[c]=(0,y.j1)("whatmorePrimaryColor"),[p]=(0,y.j1)("whatmoreTitleFont"),m="portrait"==t?(0,y.MO)("whatmoreTitleFontSizePortrait"):(0,y.MO)("whatmoreTitleFontSize"),{whatmoreRootId:h}=(0,n.useContext)(l.I),x=((0,y.MO)("isInDesignMode"),(0,y.MO)("whatmoreCollectionHeading")),{whatmoreIsCollectionsTemplate:g}=(0,n.useContext)(l.I),w=e.events,P=e.onClick,C=p;function S(e){P(e)}return(0,n.useEffect)((()=>{(0,j.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{l.$.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete r.ZP.styles.global,(0,b.jsx)(s.C,{value:F,children:(0,b.jsx)("div",{className:"whatmore-carousel-events",children:(0,b.jsx)(i.x,{theme:r.ZP,cssVarsRoot:h,resetCSS:!1,children:(0,b.jsxs)(v.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||g?(0,b.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",C,"important"),e.style.setProperty("font-size",m+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.wOV)(d),lineHeight:(0,f.vY4)(d),letterSpacing:(0,f.X2K)(d)},children:g?"W"!==x?x:"":e.heading})}):(0,b.jsx)(b.Fragment,{}),"landscape"===t?(0,b.jsx)(Z,{events:w,onClick:S}):(0,b.jsx)(E,{events:w,onClick:S})]})})})})}},1855:function(e,t,o){var n=o(7313),i=o(9821),r=o(7129),l=o(6417);t.Z=function(e){var[t,o]=(0,i.Z)();return(0,n.useContext)(r.V),e.event,(0,l.jsx)("div",{style:{margin:"0 auto",width:o,height:t,overflow:"hidden"}})}},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[436],{1492:function(e,t,o){o.r(t),o.d(t,{default:function(){return _}});var n=o(7313),i=o(6090),r=o(7616),l=o(5109),s=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),a=o(2575),d=o(2210),c=o(8486),p=o(9821),u=o(8866),m=o(2279),h=o.n(m),y=o(7753),v=o(7129),x=o(1855),f=o(9854),g=o(4920),w=o(4522),P=o(778),j=o(7381),C=(o(3439),o(4892)),S=o(6805),I=o(9219),O=o(5945),M=o(7053),b=o(6417);var k=function(e){var t,o,i,r,s,a,d,c,u,m,h,x,g,w,P,j,k,F,E;const[Z,_,W,N,D]=(0,p.Z)();var T=(0,n.useContext)(v.V);const{whatmoreUITheme:U}=(0,n.useContext)(l.I),z=(0,y.MO)("whatmoreShopId"),R=(0,y.MO)("whatmorePrimaryFont"),V=(0,y.MO)("whatmoreSecondaryColor"),H=e.onClick,A=null===(t=e.isOnFocus)||void 0===t||t,$=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,G=null!==(i=e.animateOnFocus&&(0,f.iWI)(z))&&void 0!==i&&i,q="portrait"===D[S.YP],B=(q?1.076*_*(0,f.pEd)(z):_*(0,f.H4g)(z))+"px",L=(q?1.076*_*(0,f.pEd)(z):_*(0,f.H4g)(z))+"px",X=(q?.965*_*(0,f.pEd)(z):.859*_*(0,f.H4g)(z))+"px",Y=(0,f.nzC)(z),{whatmoreIsPreviewMode:K}=(0,n.useContext)(l.I),J=.25*_,Q=J+"px",[ee,te]=(0,n.useState)(e.event),[oe,ne]=(0,n.useState)(),ie=Math.round(+(null===(r=ee.products)||void 0===r||null===(s=r[0])||void 0===s?void 0:s.price)),re=Math.round(+(null===ee||void 0===ee||null===(a=ee.products[0])||void 0===a?void 0:a.compare_price)),le=re&&0!=re&&re>ie?Math.round((re-ie)/re*100):NaN,[se,ae]=(0,n.useState)(le);return(0,n.useEffect)((()=>{(0,f.N8M)(z)&&(0,I.p_)(ee,(0,f.Ipo)(z),z).then((e=>{var t,o,n,i;te(e),(null===e||void 0===e||null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.discount)&&ae(null===e||void 0===e||null===(n=e.products)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.discount)}));(async()=>{var e;const t=await(0,M.p)(null===ee||void 0===ee||null===(e=ee.products)||void 0===e?void 0:e[0],(0,f.Ipo)(z),z);ne(t)})()}),[]),(0,b.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",T.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",T.tileBottomMMargin+"px","important"))},children:[(0,b.jsx)("div",{style:{margin:"0 auto",width:_,height:q&&A?"STR2FOC6KG9"==z||"STRDOIDF6O7"==z?Z:1.1*Z:Z,borderRadius:"round"==U?"5px":"0px",boxShadow:"round"==U?Y:null,borderWidth:(0,f.alU)(z),borderColor:(0,f.qPe)(z),overflow:"hidden",cursor:"pointer"},className:G?A?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{H(ee)},children:(0,b.jsx)(C.Z,{height:(0,f.dXm)(z)+" !important",width:"100%",url:ee.thumbnail_image,isPlaying:A||$,event:ee})}),(0,b.jsxs)("div",{onClick:()=>{H(ee)},className:G?A?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{cursor:"pointer",display:"flex",gap:"6px",padding:"16px 12px"},children:[(K?(0,f.uU$)(z):(0,f.EIj)(z))&&(0,b.jsx)("div",{style:{maxWidth:Q,minWidth:null!==(d=ee.products)&&void 0!==d&&null!==(c=d[0])&&void 0!==c&&c.thumbnail_image?Q:"0",overflow:"hidden"},children:(0,b.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,f.yOX)(z),"important")},src:null===(u=ee.products)||void 0===u||null===(m=u[0])||void 0===m?void 0:m.thumbnail_image})}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-size",B,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",R,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,O.s)(null===(h=ee.products[0])||void 0===h?void 0:h.title)}),(0,f.QaY)(z)&&(0,b.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,f.$zZ)(z)?"row":"row-reverse",justifyContent:(0,f.$zZ)(z)?"flex-start":"flex-end"},children:[(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,f.Uyp)(z),"important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("font-family",R,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,f.rPP)(z)?"normal":"bold"},children:(0,I.jx)(parseFloat(null!==(x=null===oe||void 0===oe?void 0:oe.price)&&void 0!==x?x:null===ee||void 0===ee||null===(g=ee.products)||void 0===g||null===(w=g[0])||void 0===w?void 0:w.price)," ",z,null===(P=ee.products[0])||void 0===P?void 0:P.currency)}),!isNaN(re)&&re>ie&&(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,f.kPs)(z),"important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("font-family",R,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,I.jx)(parseFloat(null!==(j=null===oe||void 0===oe?void 0:oe.compare_at_price)&&void 0!==j?j:null===ee||void 0===ee||null===(k=ee.products)||void 0===k||null===(F=k[0])||void 0===F?void 0:F.compare_price)," ",z,null===(E=ee.products[0])||void 0===E?void 0:E.currency)})]}),(0,f.QaY)(z)&&!isNaN(se)&&0!=se&&(0,b.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,f.ZJm)(z)?"#343434"==V?(0,f.ZJm)(z):V:(0,f.ZJm)(z),alignItems:"center",borderRadius:(0,f.CF_)(z)+"px",width:"fit-content",padding:(0,f.Spx)(z)?"3px 6px":"0px"},children:(0,f.Spx)(z)?(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,f.mso)(z),"important"),e.style.setProperty("font-size",X,"important"),e.style.setProperty("font-family",R,"important"))},children:"".concat(se,"% Off")}):(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,f.aUT)(z),"important"),e.style.setProperty("font-size",X,"important"),e.style.setProperty("font-family",(0,f.V3Y)(z),"important"))},children:(0,f.sG7)(z)})})]})]})]})};const F=(0,a.Z)({key:"whatmore-css-hv"});function E(e){const[t,o,i]=(0,p.Z)(),r=(0,y.MO)("whatmoreShopId"),s=e.events,a=e.onClick,u=i*(0,f.u6l)(r),m="32365904011"==r,[h,v]=(0,n.useState)(m?s.length:u),{whatmoreWidgetSourceDetails:j}=(0,n.useContext)(l.I);return(0,n.useEffect)((()=>{h<=u&&v((e=>e+u))}),[u]),(0,b.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,b.jsx)(d.tq,{slidesPerView:s.length>1?u:1,initialSlide:s.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,w.y4)({userInteractionType:P.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:j}),e.realIndex>e.previousIndex&&v((e=>e+u))},loop:m,navigation:m,modules:[c.W_],children:s.map(((e,t)=>t<=h&&(0,b.jsx)(d.o5,{children:t=>{let{isActive:o,isPrev:n,isNext:i,isVisible:l}=t;return n||i||o?(0,f.$X$)(r)?(0,b.jsx)(k,{isOnFocus:o&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,b.jsx)(g.Z,{isOnFocus:o&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{a(e)}}):(0,b.jsx)(x.Z,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function Z(e){const[t,o,i,r]=(0,p.Z)(),[s,a]=(0,n.useState)(-1),u=(0,y.MO)("whatmoreShopId"),m=e.onClick,v=e.events,j="32365904011"==u,[C,S]=(0,n.useState)(j?v.length:i),I=Math.min(i,v.length),{whatmoreWidgetSourceDetails:O}=(0,n.useContext)(l.I);return(0,n.useEffect)((()=>{C<=i&&S((e=>e+i))}),[i]),(0,b.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,b.jsx)("div",{style:{width:o*I*(0,f.Su5)(u)+"px"},children:(0,b.jsx)(d.tq,{slidesPerView:I,watchSlidesProgress:!0,modules:[c.W_],navigation:!0,slidesPerGroup:parseInt(I),onSlideChange:e=>{(0,w.y4)({userInteractionType:P.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:O}),e.realIndex>e.previousIndex&&S((e=>e+i))},spaceBetween:(0,f.WGf)(u),loop:j,children:v.map(((e,t)=>{const o=h()((()=>a(t)),300);return t<=C&&(0,b.jsx)(d.o5,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),a(-1)},children:o=>{let{isActive:n,isPrev:i,isNext:r,isVisible:l}=o;return l?(0,f.$X$)(u)?(0,b.jsx)(k,{isOnFocus:t==s,playOnUnfocus:!(0,f.dHy)(u)||t==parseInt(I/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>{m(e)}}):(0,b.jsx)(g.Z,{isOnFocus:t==s,playOnUnfocus:!(0,f.dHy)(u)||t==parseInt(I/2)&&-1==s,animateOnFocus:!0,event:e,onClick:()=>{m(e)}}):(0,b.jsx)(x.Z,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}var _=function(e){const[t,o,a]=(0,u.Z)(),[d]=(0,y.j1)("whatmoreShopId"),[c]=(0,y.j1)("whatmorePrimaryColor"),[p]=(0,y.j1)("whatmoreTitleFont"),m="portrait"==t?(0,y.MO)("whatmoreTitleFontSizePortrait"):(0,y.MO)("whatmoreTitleFontSize"),{whatmoreRootId:h}=(0,n.useContext)(l.I),x=(0,y.MO)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:g}=(0,n.useContext)(l.I),w=e.events,P=e.onClick,C=p;function S(e){P(e)}return(0,n.useEffect)((()=>{(0,j.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{l.$.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete r.ZP.styles.global,(0,b.jsx)(s.C,{value:F,children:(0,b.jsx)("div",{className:"whatmore-carousel-events",children:(0,b.jsx)(i.x,{theme:r.ZP,cssVarsRoot:h,resetCSS:!1,children:(0,b.jsxs)(v.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||g?(0,b.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",C,"important"),e.style.setProperty("font-size",m+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.wOV)(d),lineHeight:(0,f.vY4)(d),letterSpacing:(0,f.X2K)(d)},children:g?"W"!==x?x:"":e.heading})}):(0,b.jsx)(b.Fragment,{}),"landscape"===t?(0,b.jsx)(Z,{events:w,onClick:S}):(0,b.jsx)(E,{events:w,onClick:S})]})})})})}},1855:function(e,t,o){var n=o(7313),i=o(9821),r=o(7129),l=o(6417);t.Z=function(e){var[t,o]=(0,i.Z)();return(0,n.useContext)(r.V),e.event,(0,l.jsx)("div",{style:{margin:"0 auto",width:o,height:t,overflow:"hidden"}})}},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[440],{3440:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return j}});var o=n(7753),i=n(7313),r=n(9854),a=n(4844);const c=function(t){new PerformanceObserver((e=>{for(const n of e.getEntries()){["".concat(window.location.origin,"/cart/add.js"),"".concat(window.location.origin,"/cart/add")].includes(n.name)&&(console.debug("Whatmore :: Fetch request detected to",n.name),(0,r.qcZ)(whatmoreShopId)&&setTimeout((()=>{(0,a.Cj)(t)}),1e3))}})).observe({entryTypes:["resource"]})};var l=n(5416),s=n(5109),u=n(6524);var d,f=n(2279),m=n.n(f),h=n(2860),p=n(6417);const g=i.lazy((()=>Promise.all([n.e(548),n.e(766),n.e(582)]).then(n.bind(n,5582)))),v=i.lazy((()=>Promise.all([n.e(302),n.e(13),n.e(957),n.e(367),n.e(423),n.e(548),n.e(751),n.e(766),n.e(862)]).then(n.bind(n,4284)))),w=i.lazy((()=>Promise.all([n.e(302),n.e(13),n.e(957),n.e(367),n.e(423),n.e(548),n.e(751),n.e(766),n.e(704)]).then(n.bind(n,2209)))),S=null!==(d="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==d&&d;let y=m()((t=>{fetch(h.Gc+"/customization/frontend/"+t).then((t=>t.json())).then((e=>{(0,r.TZM)(e,t),(0,o.bU)("brandCustomizationsLoaded",!0)})).catch((t=>{console.error("Whatmore : Error while fetching brandCustomizations : "+t)}))}),100,{leading:!0,trailing:!1});var j=function(){const[t]=(0,o.j1)("whatmoreLandingLocationType"),[e]=(0,o.j1)("whatmoreShopId"),n=(0,o.MO)("isInDesignMode"),[d,f]=(0,o.j1)("brandCustomizationsLoaded"),[m]=(0,o.j1)("whatmoreEmbedAppUseVariant"),{whatmoreEventsBrowsingTemplate:h}=(0,i.useContext)(s.I);if((0,i.useEffect)((()=>{if(!d){const t=3e5;(0,r.fmD)(t)?f(!0):y(e)}}),[]),(0,i.useEffect)((()=>{c("true"===m),(0,r.cEH)(e)&&function(t){let e=document.createElement("style");e.innerHTML=t,document.head.appendChild(e)}((0,r.cEH)(e))}),[d]),!d)return(0,p.jsx)(p.Fragment,{});if((0,l.G)()){if((0,u.yK)(h))return(0,p.jsx)(p.Fragment,{});if("index"===t||"collection"===t||t.startsWith("collection")){if(!(0,u.ru)(h))return S&&console.debug("Whatmore : Shopify, rendering index/collection page carousels : "+h),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(g,{})})});if(function(){var t,o,i,a,c,l,s,u,d,f,m,h;return n||(null===(t=window)||void 0===t||null===(o=t.Shopify)||void 0===o||null===(i=o.theme)||void 0===i?void 0:i.role)&&"main"!==(null===(a=window)||void 0===a||null===(c=a.Shopify)||void 0===c||null===(l=c.theme)||void 0===l?void 0:l.role)||(0,r.ZKt)(e)&&(null===(s=window)||void 0===s||null===(u=s.Shopify)||void 0===u||null===(d=u.theme)||void 0===d?void 0:d.role)&&"main"===(null===(f=window)||void 0===f||null===(m=f.Shopify)||void 0===m||null===(h=m.theme)||void 0===h?void 0:h.role)}())return S&&console.debug("Whatmore : Shopify, rendering index/collection page spotlight : "+h),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(w,{})})})}var j,_,x,b,I,O,T,E,N,P,W,J;return t.startsWith("product")?(0,u.ru)(h)?(null!==(j=window)&&void 0!==j&&null!==(_=j.Shopify)&&void 0!==_&&null!==(x=_.theme)&&void 0!==x&&x.role&&"main"===(null===(b=window)||void 0===b||null===(I=b.Shopify)||void 0===I||null===(O=I.theme)||void 0===O?void 0:O.role)||window.location.href.includes("localhost:"))&&(0,r.Nbw)(e)?(S&&console.debug("Whatmore : Shopify, rendering PDP-page popup : "+h),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(v,{})})})):(null!==(T=window)&&void 0!==T&&null!==(E=T.Shopify)&&void 0!==E&&null!==(N=E.theme)&&void 0!==N&&N.role&&"main"!==(null===(P=window)||void 0===P||null===(W=P.Shopify)||void 0===W||null===(J=W.theme)||void 0===J?void 0:J.role)||n)&&(0,r.v6T)(e)?(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(v,{})})}):(S&&console.debug("Whatmore : Shopify, PDP-page popup disabled."),(0,p.jsx)(p.Fragment,{})):(S&&console.debug("Whatmore : Shopify, rendering PDP-page carousels : "+h),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(g,{})})})):((0,r.qcZ)(e)&&(0,r.Jy1)(e)&&"cart"===t&&(S&&console.debug("Whatmore : initiating whatmore attribution from cart page."),(0,a.Cj)("true"===m)),(0,p.jsx)(p.Fragment,{}))}return"index"===t||"collection"===t?(0,u.ru)(h)?(S&&console.debug("Whatmore : External, rendering index/collection page popup : "+h),(0,p.jsx)(p.Fragment,{})):(S&&console.debug("Whatmore : External, rendering index/collection page carousels : "+h),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(g,{})})})):t.startsWith("product")||"embed"===t?(0,u.yK)(h)||(0,u.ru)(h)?(0,r.Nbw)(e)?(S&&console.debug("Whatmore : External, rendering PDP-page popup : "+h),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(v,{})})})):(S&&console.debug("Whatmore : External, PDP-page popup disabled."),(0,p.jsx)(p.Fragment,{})):(S&&console.debug("Whatmore : External, rendering PDP-page carousels : "+h),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(g,{})})})):(0,p.jsx)(p.Fragment,{})}},5416:function(t,e,n){"use strict";function o(){return!(void 0==window.Shopify&&!window.location.href.includes("shopify")&&!window.location.href.includes("localhost:"))}n.d(e,{G:function(){return o}})},7381:function(t,e,n){"use strict";n.d(e,{EI:function(){return i},Oo:function(){return a},fs:function(){return r}});function o(t){console.debug("Whatmore : "+t)}function i(t){var e;const n=null!==(e="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==e&&e;n&&(o("total events received : "+(t&&t.length)),o("events data : "+JSON.stringify(t)))}function r(t){var e;null!==(e="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==e&&e&&o(t)}const a=t=>{console.log("%c ".concat(t),"background: #D53F8C; color: white; font-size: 19px; padding: 5px; font-weight: semibold;","\n\nFind us here -> https://whatmore.live")}},4844:function(t,e,n){"use strict";n.d(e,{wW:function(){return d},Cj:function(){return u},JL:function(){return m},bj:function(){return f},Bi:function(){return l},Mj:function(){return s},bN:function(){return h},m3:function(){return p}});var o=n(9854);const i="_whatmore-tracking-id";var r=n(2751),a=n(6967),c=n(7753);function l(){const t="https://"+window.location.hostname+"/cart.json";return fetch(t,{method:"GET"})}async function s(){const t="https://"+window.location.hostname+"/cart.json";return await fetch(t,{method:"GET"})}async function u(t){let e=(0,r.x0)(),n=null,o=null,l={},u=null,d=null,f=null,m={};(0,a.MU)().forEach((t=>{m.hasOwnProperty(null===t||void 0===t?void 0:t.product_id)||(m[null===t||void 0===t?void 0:t.product_id]={widgetInfo:null===t||void 0===t?void 0:t.widget_info,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.user_type})})),await s().then((t=>t.json())).then((r=>{e=r.token;let s=[];if(s=!0===t?r.items.filter((t=>m.hasOwnProperty(JSON.stringify(t.variant_id)))).map((t=>{const e=m[null===t||void 0===t?void 0:t.variant_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}})):r.items.filter((t=>m.hasOwnProperty(JSON.stringify(t.product_id)))).map((t=>{const e=m[null===t||void 0===t?void 0:t.product_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}})),0==s.length)return console.debug("Whatmore :: no cart items available for view products"),null;s.map((t=>{if(n=t.key,o=t.quantity,l=t.properties,u=t.widget_info,d=t.location,f=t.userType,null===l||!(i in l)){const t=async function(t,e,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",l=arguments.length>5?arguments[5]:void 0;const s=(0,c.MO)("whatmoreShopId"),u=(0,a.hb)()+("72201044272"==s?"#".concat(o,"#").concat(r,"#").concat(l?"olduser":"newuser"):"#".concat(o));let d={id:t,quantity:e,properties:{[i]:u,...n}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}).then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while updating cart attribute.",t)}))}(n,o,l,u,d,f);return t}}))})).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",t)}))}async function d(t,e,n,r){let c,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",s=arguments.length>5?arguments[5]:void 0;if((0,o.qcZ)(n)){const o=(0,a.hb)()+("72201044272"==n?"#".concat(r,"#").concat(l,"#").concat(s?"olduser":"newuser",":direct"):"#".concat(r,":direct"));c={items:[{id:t,quantity:e,properties:{[i]:o}}]}}else c={items:[{id:t,quantity:e}]};const u=await fetch("https://"+window.location.hostname+"/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});return u}function f(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",a=arguments.length>5?arguments[5]:void 0;const c="https://"+window.location.hostname;var l;const s="72201044272"==n?"came-from-whatmore-live_".concat(i,"_").concat(r,"_").concat(a?"olduser":"newuser"):"came-from-whatmore-live_".concat(i);(0,o.lj5)(n)?(l="".concat(c,"/cart/").concat(t,":").concat(e)+"?"+(0,o.awP)(n)+"&"+(0,o.n9s)(n)+"&"+(0,o.Uch)(n),(0,o.qcZ)(n)&&(l="".concat(l)+"&ref="+s)):(l="".concat(c,"/cart/").concat(t,":").concat(e),(0,o.qcZ)(n)&&(l="".concat(l)+"?ref="+s)),window.location.href=l}function m(t){const e="https://"+window.location.hostname+"/cart";(0,o.lj5)(t)?window.location.href=e+"?"+(0,o.awP)(t)+"&"+(0,o.n9s)(t)+"&"+(0,o.poG)(t):window.location.href=e}async function h(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("27303477337"===n){var o,i;const n="https://"+window.location.hostname,r=window.location.pathname.split("/");e=n+"/"+(null!==r&&void 0!==r&&null!==(o=r[1])&&void 0!==o&&o.startsWith("en-")?(null===r||void 0===r?void 0:r[1])+"/":"")+(null===t||void 0===t||null===(i=t.product_link)||void 0===i?void 0:i.split(".co")[1])+".js"}else e=(null===t||void 0===t?void 0:t.product_link)+".js";const r=await fetch(e,{method:"GET"});if(!r.ok)throw new Error("Error! status: ".concat(r.status));const a=await r.json();return a}async function p(t){const e=t.product_link+".json",n=await fetch(e,{method:"GET"});if(!n.ok)throw new Error("Error! status: ".concat(n.status));return await n.json()}},6967:function(t,e,n){"use strict";n.d(e,{FF:function(){return y},H4:function(){return j},MU:function(){return _},hb:function(){return w},sQ:function(){return S},xV:function(){return b},xw:function(){return x}});var o=n(2751),i=n(7753),r=n(7008);const a="_whatmore_user_id",c="_whatmore_session_id",l="_whatmore_viewed_products",s="_whatmore_add_to_cart_products",u="_whatmore_session_time",d="_whatmore_store_id",f="_whatmore_qview_index",m="_whatmore_brand_questions",h=(0,i.MO)("whatmoreShopId"),p=18e5,g=2592e5,v="_whatmore_bulk_events";function w(){return localStorage.getItem(d)!=h&&localStorage.setItem(d,h),null==localStorage.getItem(a)&&function(){new Date;const t=(0,o.x0)();localStorage.setItem(a,t)}(),localStorage.getItem(a)}function S(){const t=new Date,e=JSON.parse(localStorage.getItem(v))||[],n=localStorage.getItem(u);return(null==localStorage.getItem(c)||null==n||t.getTime()>n)&&(localStorage.removeItem(c),localStorage.removeItem(u),function(){const t=(0,o.x0)(),e=(new Date).getTime()+p;localStorage.setItem(c,t),localStorage.setItem(u,e)}(),e&&e.length>0&&((0,r.K)(e),localStorage.removeItem(v))),localStorage.getItem(c)}function y(t,e){const n=(new Date).getTime(),o={event_id:t.event_id,product_id:e.client_product_id,product_title:e.title,price:e.price,timestamp:n,variants:[]};if(null===localStorage.getItem(s))localStorage.setItem(s,JSON.stringify([o]));else{let t=JSON.parse(localStorage.getItem(s)).filter((t=>t.timestamp+g>n));localStorage.setItem(s,JSON.stringify([...t,o]))}}function j(t,e,n,o,i){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"default",a=arguments.length>6?arguments[6]:void 0;const c=[],s=(new Date).getTime();if(e.map((e=>{const l={event_id:t,product_id:e.client_product_id,product_title:e.title,price:e.price,timestamp:s,variants:[],page:n,widget_type:o,widget_info:i,location:r,user_type:a?"olduser":"newuser"};c.push(l)})),null===localStorage.getItem(l))console.debug("viewed Products",JSON.stringify(c)),localStorage.setItem(l,JSON.stringify(c));else{let e=JSON.parse(localStorage.getItem(l)),n=!1;e.map((e=>{let o=Object.assign({},e);return e.event_id===t&&(e.timestamp=s,n=!0),o})),n?localStorage.setItem(l,JSON.stringify(e)):localStorage.setItem(l,JSON.stringify([...e,...c]))}}function _(){const t=(new Date).getTime();let e=JSON.parse(localStorage.getItem(l));if(!e)return[];let n=e.filter((e=>e.timestamp+g>t));return localStorage.setItem(l,JSON.stringify(n)),n}function x(){if(null!=localStorage.getItem(f)){const t=parseInt(localStorage.getItem(f))+1;localStorage.setItem(f,t)}}function b(t){const e=(new Date).getTime();if(null==localStorage.getItem(m)){const n={questionList:null===t||void 0===t?void 0:t.filter((t=>1==(null===t||void 0===t?void 0:t.is_active))),timestamp:e};localStorage.setItem(m,JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem(m));if((null===n||void 0===n?void 0:n.timestamp)+6e5>e){const n={questionList:null===t||void 0===t?void 0:t.filter((t=>1==(null===t||void 0===t?void 0:t.is_active))),timestamp:e};localStorage.setItem(m,JSON.stringify(n))}}}},7008:function(t,e,n){"use strict";n.d(e,{K:function(){return r}});var o=n(2860),i=n(7381);const r=function(t){let e={};const n=t.length<10;e.metric_event_list=t,(async()=>{!function(t,e){const n="ingesting analytis-event";(0,i.fs)(n);const r=t;fetch(o.DG+"/event_metrics/bulk",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r),keepalive:e}).then((t=>t.json())).then((t=>{})).catch((t=>{console.error("error "+n,t)}))}(e,n)})()}},8624:function(t,e,n){var o=n(7289).Symbol;t.exports=o},8665:function(t,e,n){var o=n(8624),i=n(3596),r=n(8186),a=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):r(t)}},2306:function(t,e,n){var o=n(5510),i=/^\s+/;t.exports=function(t){return t?t.slice(0,o(t)+1).replace(i,""):t}},2692:function(t,e,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=o},3596:function(t,e,n){var o=n(8624),i=Object.prototype,r=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;t.exports=function(t){var e=r.call(t,c),n=t[c];try{t[c]=void 0;var o=!0}catch(l){}var i=a.call(t);return o&&(e?t[c]=n:delete t[c]),i}},8186:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7289:function(t,e,n){var o=n(2692),i="object"==typeof self&&self&&self.Object===Object&&self,r=o||i||Function("return this")();t.exports=r},5510:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},2279:function(t,e,n){var o=n(1845),i=n(6170),r=n(7923),a=Math.max,c=Math.min;t.exports=function(t,e,n){var l,s,u,d,f,m,h=0,p=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function w(e){var n=l,o=s;return l=s=void 0,h=e,d=t.apply(o,n)}function S(t){return h=t,f=setTimeout(j,e),p?w(t):d}function y(t){var n=t-m;return void 0===m||n>=e||n<0||g&&t-h>=u}function j(){var t=i();if(y(t))return _(t);f=setTimeout(j,function(t){var n=e-(t-m);return g?c(n,u-(t-h)):n}(t))}function _(t){return f=void 0,v&&l?w(t):(l=s=void 0,d)}function x(){var t=i(),n=y(t);if(l=arguments,s=this,m=t,n){if(void 0===f)return S(m);if(g)return clearTimeout(f),f=setTimeout(j,e),w(m)}return void 0===f&&(f=setTimeout(j,e)),d}return e=r(e)||0,o(n)&&(p=!!n.leading,u=(g="maxWait"in n)?a(r(n.maxWait)||0,e):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=m=s=f=void 0},x.flush=function(){return void 0===f?d:_(i())},x}},1845:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},9752:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},2060:function(t,e,n){var o=n(8665),i=n(9752);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==o(t)}},6170:function(t,e,n){var o=n(7289);t.exports=function(){return o.Date.now()}},7923:function(t,e,n){var o=n(2306),i=n(1845),r=n(2060),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(r(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=o(t);var n=c.test(t);return n||l.test(t)?s(t.slice(2),n?2:8):a.test(t)?NaN:+t}},2751:function(t,e,n){"use strict";n.d(e,{x0:function(){return o}});let o=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(t)).reduce(((t,e)=>t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"),"")}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[530],{8675:function(n,t,e){e.d(t,{Z:function(){return w}});var i,r,o=e(3271),a=e(5098),s=e(7313),l=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"]))),x=(0,u.F4)(r||(r=(0,h.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),f="\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(x,"; \n infinite;\n animation-duration:0.2s; \n animation-direction: linear ;\n animation-timing-function: ease-in;\n animation-fill-mode: forwards;\n");var p=e(7753),j=e(7129),v=e(6417);var w=function(n){var t,e,[i,r]=(0,l.Z)();const[h]=(0,p.j1)("whatmorePrimaryFont");var u=(0,s.useContext)(j.V);const m=n.event,x=n.onClick,w=null===(t=n.isOnFocus)||void 0===t||t,C=(n.playOnUnfocus,null!==(e=n.animateOnFocus)&&void 0!==e&&e);return(0,v.jsxs)(o.xu,{animation:C?w?f:g:"none",marginTop:u.tileTopMargin,marginBottom:u.tileBottomMMargin,marginLeft:u.tileLeftMargin,marginRight:u.tileRightMargin,width:r,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{x(m)},cursor:"pointer",children:[(0,v.jsx)(a.Ee,{width:"full",height:"full",src:m.thumbnail_image,objectFit:"cover",fallback:(0,v.jsx)(d.Z,{width:r,height:i}),borderRadius:"lg"}),(0,v.jsx)(o.xu,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,v.jsxs)(o.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,v.jsx)(o.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,v.jsx)(o.Kq,{direction:"column",justifyContent:"flex-start",children:(0,v.jsx)(o.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,v.jsx)(o.Kq,{direction:"row",justifyContent:"space-between",children:(0,v.jsx)(c.Z,{event:m,fontSize:.05*i+"px",maxWidth:.8*r})})})})}),(0,v.jsx)(o.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,v.jsx)(o.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,v.jsx)(o.xu,{width:"full",borderRadius:"lg",children:(0,v.jsxs)(o.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,v.jsx)(o.xv,{color:"white",fontSize:.08*r+"px",fontWeight:"normal",align:"left",children:" "}),(0,v.jsx)(o.xv,{fontSize:.08*r+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:m.title.substring(0,40)}),(0,v.jsx)(o.xv,{fontSize:.08*r+"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),r=e(8675),o=e(6090),a=e(7616),s=(e(6143),e(7244),e(123),e(9302)),l=e(2575),c=e(3271),d=e(9821),h=e(8866),u=e(7753),m=e(9316),x=e(7129),f=e(9854),g=e(5109),p=e(7300),j=e(4920),v=e(6417);const w=(0,l.Z)({key:"whatmore-css-hv"});function C(n,t){var e=[];const i=t;for(let r=0;r<n.length;r+=i){const t=n.slice(r,r+i);e.push(t)}return e}function b(n){var t;const[e,r]=(0,i.useState)(!1),[o,a]=(0,i.useState)(!1),[s]=(0,u.j1)("whatmoreSecondaryColorShade600"),[l]=(0,u.j1)("whatmoreSecondaryColorShade300"),[d]=(0,u.j1)("whatmorePrimaryFont"),h=null!==(t=n.baseFontSize)&&void 0!==t?t:10,x=n.onClick;return(0,v.jsx)(c.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?l:s,animation:o?m.mT:null,onClick:n=>{n.stopPropagation(),a(!0),x()},sx:{cursor:"pointer"},onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},children:(0,v.jsx)(c.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,v.jsxs)(c.xv,{fontSize:h,fontWeight:"normal",sx:{fontFamily:d+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function M(n){var t;const[e,o,a]=(0,d.Z)();var[s,l]=(0,i.useState)(0);const h=n.events,u=n.onClick,m=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,x=C(h,Math.floor(Math.min(a,h.length)));return(0,v.jsx)(c.M5,{children:(0,v.jsxs)(c.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,v.jsx)(v.Fragment,{children:x.map(((n,t)=>t>s?(0,v.jsx)(v.Fragment,{}):(0,v.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,v.jsx)(c.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,v.jsx)(j.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}}):(0,v.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,v.jsx)(v.Fragment,{children:s<x.length-1?(0,v.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,v.jsx)(b,{baseFontSize:.1*o,onClick:()=>{s>=x.length-1||l((n=>n+m))}})}):(0,v.jsx)(v.Fragment,{})})]})})}function y(n){var t;const[e,o,a,s]=(0,d.Z)();var[l,h]=(0,i.useState)(0);const u=n.events,m=n.onClick,x=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,f=C(u,Math.floor(Math.min(a,u.length)));return(0,v.jsx)(c.M5,{paddingLeft:s+"px",paddingRight:s+"px",children:(0,v.jsxs)(c.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,v.jsx)(v.Fragment,{children:f.map(((n,t)=>t>l?(0,v.jsx)(v.Fragment,{}):(0,v.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,v.jsx)(c.xu,{style:{margin:"10px"},children:(0,p.B6)(n)||(0,p.WJ)(n)?(0,v.jsx)(j.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}}):(0,v.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,v.jsx)(v.Fragment,{children:l<f.length-1?(0,v.jsx)(c.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,v.jsx)(b,{baseFontSize:.1*o,onClick:()=>{l>=f.length-1||h((n=>n+x))}})}):(0,v.jsx)(v.Fragment,{})})]})})}t.default=function(n){var t;const[e,r,l]=(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),S=n.events,T=n.onClick,F=null!==(t=(0,f.aRS)(d))&&void 0!==t?t:j;function Z(n){T(n)}return delete a.ZP.styles.global,(0,v.jsx)(s.C,{value:w,children:(0,v.jsx)("div",{className:"whatmore-carousel-events-view-more",children:(0,v.jsx)(o.x,{theme:a.ZP,cssVarsRoot:b,resetCSS:!1,children:(0,v.jsxs)(x.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,v.jsx)(c.M5,{children:(0,v.jsx)(c.xv,{bgColor:m,bgClip:"text",fontSize:C,sx:{fontFamily:F+" !important"},align:"center",children:n.heading})}):(0,v.jsx)(v.Fragment,{}),"landscape"===e?(0,v.jsx)(y,{events:S,onClick:Z,seeMoreIncrement:1}):(0,v.jsx)(M,{events:S,onClick:Z,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){e.d(t,{mT:function(){return c}});var i,r,o,a=e(168),s=e(686);const l=(0,s.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(l," 0.2s linear;\n"),d=(0,s.F4)(r||(r=(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,s.F4)(o||(o=(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),r=e(4897),o=e(499),a=e(6417);t.Z=function(n){var t,e=n.event,s=n.fontSize,l=null!==(t=n.maxWidth)&&void 0!==t?t:"100%",{status:c,bannerText:d,timeToStartInMins:h}=r.Z.getEventStatus(e);return c.name===o.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:l,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:s,fontWeight:"bold",color:"white",children:d})})}):(0,a.jsx)(i.xu,{maxWidth:l,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:s,fontWeight:"medium",children:d})})})}},499:function(n,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(n,t,e){var i=e(499);t.Z=class{static getEventStatus(n){n.time_zone="GMT+5:30";var t=n.start_time+":00",e=n.end_time,r=n.scheduled_date,o=n.status,a=n.time_zone;if(o.toUpperCase()==i.Z.LIVE.name)return{status:i.Z.LIVE,bannerText:" "+i.Z.LIVE.name+" ",timeToStartInMins:0};if(o.toUpperCase()==i.Z.UPCOMING.name){var s=new Date(r+" "+t+" "+a),l=(new Date(r+" "+e+" "+a),function(n){var t=new Date,e=(n.getTime()-t.getTime())/1e3,r=e/60,o=r/60,a=o/24;return e<=0?{status:i.Z.COMPLETED,bannerText:" "+i.Z.COMPLETED.name+" ",timeToStartInMins:0}:e>=1&&e<=30?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(e)+" sec ",timeToStartInMins:e/60}:r<60?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(r)+" min ",timeToStartInMins:r}:o<24?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(o)+" hr ",timeToStartInMins:60*o}:a<7?{status:i.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][n.getDay()]+" ",timeToStartInMins:60*a*24}:{status:i.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 : "+n.event_id+", status : "+n.status),{status:i.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},5945:function(n,t,e){e.d(t,{s:function(){return r}});var i=e(7753);function r(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 H}});var a=n(7753),i=n(7313),r=n(2860),o=n(5160),s=n(9854),l=n(6967),c=n(8984),d=n(58),u=n(4669),_=n(513),p=n(5109),m=n(7300),h=n(6524),v=n(7643),f=n(778),g=n(8181),y=n(6095),w=n(6417);const b=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(688),n.e(820)]).then(n.bind(n,4095)))),S=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)))),I=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)))),k=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)))),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(608)]).then(n.bind(n,1291)))),E=i.lazy((()=>Promise.all([n.e(302),n.e(751),n.e(381)]).then(n.bind(n,3580)))),j=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(576),n.e(351),n.e(123),n.e(751),n.e(926),n.e(688),n.e(818),n.e(191)]).then(n.bind(n,3818)))),T=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(688),n.e(305),n.e(436)]).then(n.bind(n,1492)))),C=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(367),n.e(751),n.e(688),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(688),n.e(305),n.e(299)]).then(n.bind(n,4362)))),L=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(957),n.e(576),n.e(351),n.e(123),n.e(751),n.e(926),n.e(688),n.e(818),n.e(61)]).then(n.bind(n,4658)))),O=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 A=function(e){const[t]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[A]=(0,a.j1)("whatmoreTopBottomPadding"),[N]=(0,a.j1)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:K}=(0,i.useContext)(p.I),[R]=(0,a.j1)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:q}=(0,i.useContext)(p.I),P=(0,a.MO)("isLandingSharedLink"),W=(0,a.MO)("whatmoreShareTemplateId"),M=(0,a.MO)("whatmoreShareStoryId"),G=(0,a.MO)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:H,whatmoreUserInfo:B}=(0,i.useContext)(p.I),z=P&&q===(0,h.zv)(W),[V,F]=(0,i.useState)(z),[U,Y]=(0,i.useState)(-1),[J,Q]=(0,i.useState)(null);let Z=e.events,X=[];if("template-banner-a"!==q){let e=0;for(let t=0;t<(null===Z||void 0===Z?void 0:Z.length);t++){var $,ee,te,ne;const n=(null===Z||void 0===Z||null===($=Z[t])||void 0===$||null===(ee=$.products)||void 0===ee?void 0:ee.length)>0&&(null===Z||void 0===Z||null===(te=Z[t])||void 0===te||null===(ne=te.products)||void 0===ne?void 0:ne.every((e=>"oos"===(null===e||void 0===e?void 0:e.product_status))));!(0,m.B6)(Z[t])&&!(0,m.WJ)(Z[t])||n&&"12326200"!==R||(X.push({...null===Z||void 0===Z?void 0:Z[t],index:e}),e++)}}var ae=null;K&&!ae&&(ae=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}(X));const ie=H.landingLocationType,re=H.templateType;function oe(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,c.KE)()&&!a&&(0,d.QV)(),t||n||(async()=>{const t=ae[e].events[0],n=(0,h.NY)(ie)+(0,h.dS)(re)+"_"+(null===t||void 0===t?void 0:t.event_id);(0,o.wh)(t),(0,u.Tc)(R,r.Xh,r.OW),(0,l.H4)(t.event_id,t.products,"homepage","stories",n,null===t||void 0===t?void 0:t.location,null===B||void 0===B?void 0:B.userType)})();var s=0;null!=i&&ae[e].events.map(((e,t)=>{e.event_id==i&&(s=t)})),Y(s),Q(e)}function se(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,c.KE)()&&!a&&(0,d.QV)(),(0,m.B6)(e)||(0,m.WJ)(e))return t||n||(async()=>{const t=(0,h.NY)(ie)+(0,h.dS)(re)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,o.wh)(e),(0,u.Tc)(R,r.Xh,r.pR),(0,l.H4)(e.event_id,e.products,"homepage","carousel",t)})(),void Y(e.index)}function le(e){return(0,w.jsx)(w.Fragment,{})}return(0,i.useEffect)((()=>{if(z)if((0,y.A)("whatmore-video-player",(()=>{F(!1)})),null!=M&&K){const e=ae.find((e=>M==e.id));if(e)return void oe(ae.indexOf(e),!0,G)}else if(null!=G){const e=X.find((e=>G==e.event_id));if(e)return void se(e,!0)}}),[]),(0,w.jsxs)(w.Fragment,{children:[V&&(0,w.jsx)(g.Z,{}),(0,w.jsx)("div",{className:"whatmore-widget-container",style:{marginTop:(K?N:A)+"px",marginBottom:(K?N:A)+"px"},children:"template-b"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(b,{events:X,onClick:se,heading:e.heading})}):"template-a-1"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(S,{events:X,onClick:se,heading:e.heading})}):"template-feed-a"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(D,{events:X,onClick:se,heading:e.heading})}):"template-collections-a"===q||"template-c"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(I,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-b"===q||"template-d"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(k,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-c"===q||"template-e"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(x,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-d"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(b,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-e"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(T,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-collections-stories"===q||"template-stories"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(O,{events:X,index:U,setScreen:Y,onClick:se,heading:e.heading})})}):"template-f"===q||"template-collections-f"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(C,{events:X,onClick:se,heading:e.heading})})}):"template-banner-a"===q?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.BANNER_WIDGET_VIEW,event:Z[0],triggerFlag:!t&&!n,children:(0,w.jsx)(L,{events:Z})})}):K?(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.STORIES_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(E,{eventsStories:ae,onClick:oe,template:q})})}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,w.jsx)(T,{events:X,onClick:se,heading:e.heading})})})}),-1==U||-2==U?(0,w.jsx)(le,{}):(0,w.jsx)(i.Suspense,{children:(0,w.jsx)(v.u,{userInteractionType:f.K.EVENT_VIEW,event:Z[U],productList:Z[U].products,cta:Z[U].cta,triggerFlag:!t&&!n,children:(0,w.jsx)(j,{events:X,index:U,onBack:function(e){(0,s.n2L)(R)&&(0,a.MO)("whatmoreAddedToCart")&&(0,_.D)(R,(()=>{}),100,window.location.hostname,e),Y(-1),F(!1)},slideDirection:K||"horizontal"===(0,s.e8z)(R)?"horizontal":"vertical",eventsStories:ae,initialStoryIndex:J,template:q})})})]})};const N=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)),{}),o=Object.keys(r);if("60960964855"==i&&"undefined"!=typeof fera&&"function"===typeof fera.getRatings){var s={};fera.getRatings(o,(e=>{new Promise(((t,n)=>{e.forEach((e=>{s[e.external_product_id]={avgRating:e.average,totalRatings:e.count}})),t(s)})).then((e=>n(e)))}))}if("23114481744"==i){const e="1e6MQXxzYR19mpw9Km6Dcm86";s={};fetch("https://api.juniphq.com/v1/products?filter[remote_ids]="+o.toString(),{headers:{"Junip-Store-Key":e}}).then((e=>e.json())).then((e=>(e.products.forEach((e=>{s[e.remote_id]={avgRating:parseFloat(e.rating_average).toFixed(1),totalRatings:e.rating_count}})),s))).then((e=>n(e))).catch((e=>console.error(e)))}};var K=n(3388),R=n(7381),q=n(4522),P=n(7008);const W=[{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 M=function(e){const[t,n]=(0,i.useState)(),[o,u]=(0,i.useState)(),{whatmoreIsStoriesTemplate:_}=(0,i.useContext)(p.I),{whatmoreIsCollectionsTemplate:m}=(0,i.useContext)(p.I),{whatmoreIsBannerTemplate:v}=(0,i.useContext)(p.I),[g]=(0,a.j1)("whatmoreShopId"),[y]=(0,a.j1)("whatmoreCollectionId"),b=(0,a.MO)("whatmoreLandingLocationType"),S=(0,a.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(p.I),{whatmoreUserInfo:k,whatmoreIsPreviewMode:x}=(0,i.useContext)(p.I),{whatmoreCollectionUrl:E}=(0,i.useContext)(p.I),[j]=(0,a.j1)("isInDesignMode"),[T]=(0,a.j1)("isDemoBrand"),C=(0,s.cZT)(g)?(0,s._uv)(g)?E:window.location.href.split(/[?#]/)[0]:y,[D,L]=(0,a.j1)("productRatings"),[O,M]=(0,i.useState)(!1);var G=(0,s.efR)(g)?r.Dm+"/v2/events/":r.Gc+"/v2/events/",H=(0,s.efR)(g)?r.Dm+"/v3/events/":r.Gc+"/v3/events/",B=(0,s.efR)(g)?r.Dm+"/v4/events/":r.Gc+"/v4/events/",z=(0,s.efR)(g)?r.Dm+"/get_eventset/":r.Gc+"/get_eventset/",V=(0,s.efR)(g)?r.Dm+"/v2/collection":r.Gc+"/v2/collection",F=(0,s.efR)(g)?r.Dm+"/v3/collection":r.Gc+"/v3/collection",U=(0,s.efR)(g)?r.Dm+"/v2/brand/"+g+"/product-events":r.Gc+"/v2/brand/"+g+"/product-events",Y=e.shopId,J="live,upcoming",Q="true";return(0,i.useEffect)((()=>{(0,l.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,P.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||o||!(0,c.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,d.b5)(d.UD)}),[t]),(0,i.useEffect)((()=>{var e;if(b.startsWith("product"))if((0,s.C86)(g))e=G.toString()+Y.toString()+"?status="+J.toString()+"&is_active="+Q.toString();else{var t=(0,a.MO)("whatmoreProductId");t=(0,s.iXA)(g)?function(e,t){return"STRQMPNF7QK"==t?encodeURIComponent(e):e.split(/[?#]/)[0]}(window.location.href,g):t,e=U.toString()+"?client_product_id="+t.toString()+"&status="+J.toString()+"&event_type=video"}else if(m||"invalid-url"!==E)e=(0,s.YGB)(g)?"".concat(F.toString(),"?store_id=").concat(Y.toString(),"&client_collection_id=").concat("index"==b&&(0,s.igW)(g).length>0?(0,s.igW)(g)[0]:C):"".concat(V.toString(),"?store_id=").concat(Y.toString(),"&client_collection_id=").concat("index"==b&&(0,s.igW)(g).length>0?(0,s.igW)(g)[0]:C);else if(v){const t=h.ls,n=(0,h.H1)(b);e=z.toString()+Y.toString()+"?eventset_type="+t+"&source="+n+"&source_id="+g}else{var i,r,o,c;if(("72201044272"==g||"2665447536"==g&&x)&&!_)e=H.toString()+Y.toString()+"?status="+J.toString()+"&is_active="+Q.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!==(o=null===(c=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===c?void 0:c.longitude)&&void 0!==o?o:"")+"&user_type="+(null!==k&&void 0!==k&&k.userType?"olduser":"newuser");else e=(0,s.YGB)(g)&&!_?B.toString()+Y.toString()+"?status="+J.toString()+"&is_active="+Q.toString():G.toString()+Y.toString()+"?status="+J.toString()+"&is_active="+Q.toString()+(_?"&template_type=stories":"")}fetch(e).then((e=>e.json())).then((e=>{var t;if(v){const t=h.ls;return(0,K.OC)(e,t)}return(0,s.YGB)(g)&&(null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.length)>0&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,l.xV)(null===e||void 0===e?void 0:e.questions)),(0,K.kW)(e,m||"invalid-url"!==E)})).then((e=>(S&&console.debug("initial received events size : "+e.length),_||m||v?e:(0,K.e8)(e,Y)))).then((e=>(null!=e&&0!=e.length&&(0,s.LUY)(g)&&function(e,t,n){const i=setInterval((()=>{null===(0,a.MO)("productRatings")&&N(e,t,n)}),1e3);setTimeout((()=>{clearInterval(i)}),1e4)}(g,e,(e=>{L(e)})),e))).then((e=>{n((T||j)&&null==e?W:e),M(!0)})).catch((e=>{u(e.message)}))}),[]),(0,i.useEffect)((()=>{"index"===b?t&&t.length>0&&(0,q.PB)({userInteractionType:f.K.HOMEPAGE_VISITED,widgetSourceDetails:I}):"collection"===b&&(t&&t.length>0||(0,s.miB)(g))&&(0,q.PB)({userInteractionType:f.K.COLLECTION_PAGE_VISITED,widgetSourceDetails:I})}),[t]),O&&(null==t||0==t.length||o)&&p.$.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"]'),o=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-stories"]')||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-stories"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]'),s=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"]'),l=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"]'),c=e;if(_){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!m){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}(l||s||o||r)&&(o&&c||r&&c||l&&c||s&&c)&&(c.style.minHeight="0px")})),null==t||0==t.length||o?(0,w.jsx)("div",{}):(S&&(0,R.EI)(t),function(e){if(null!=e){var t=0;e.forEach((e=>{e.index=t++}))}}(t),S&&console.debug("final transformed events data : "+JSON.stringify(t)),S&&console.debug("valid events size : "+t.length),(0,w.jsx)(A,{heading:e.heading,events:t}))},G=n(3933);var H=function(e){const[t]=(0,a.j1)("whatmoreShopId"),[n]=(0,a.j1)("whatmoreHeading"),[r,o]=(0,i.useState)(["initial",window.pageYOffset]),[l,c]=(0,i.useState)(!1),d="2665447536"==t?30:10,_=(0,a.MO)("isLandingSharedLink");(0,i.useEffect)((()=>{if((0,u.ll)(t),!(0,s.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,o(i=[t>n?"scrolled-down":"scrolled-up",t]),i[1]>d&&c(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[p,m,h]=(0,G.YD)({triggerOnce:!0});return(0,w.jsx)("div",{ref:p,style:{display:"block"},children:l||m||_||!(0,s.wc0)(t)?(0,w.jsx)(M,{heading:n,shopId:t}):(0,w.jsx)("div",{})})}},8181:function(e,t,n){var a=n(7313),i=n(8866),r=n(7753),o=n(6417);const s=a.memo((()=>{if(!(0,r.MO)("isLandingSharedLink"))return(0,o.jsx)(o.Fragment,{});const[e]=(0,i.Z)();return(0,o.jsxs)("div",{className:"shimmer-container ".concat(e),children:["portrait"===e?(0,o.jsx)("div",{className:"shimmer-item portrait-full",children:(0,o.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,o.jsx)("div",{className:"shimmer-item landscape-item ".concat(1===t?"center-item":""),children:(0,o.jsx)("div",{className:"shimmer-effect"})},t))),(0,o.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=s},3388:function(e,t,n){n.d(t,{OC:function(){return s},e8:function(){return r},kT:function(){return a},kW:function(){return o},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)))},o=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 s=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 s},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 o=n(733);const s={[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,o.s)({userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:d,productList:u,ctaList:_}),n in s&&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",s[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:s}=e;(0,o.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s})}function d(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s}=e;(0,o.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s})}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s}=e;(0,o.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:r,ctaList:s})}}}]);
|
|
@@ -1 +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(
|
|
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(5109),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)}})]})})})})}}}]);
|