whatmore-react-assets 1.0.367 → 1.0.369
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/108.23835899.chunk.js +1 -0
- package/static/js/{143.e0163ed7.chunk.js → 143.11d4ffa5.chunk.js} +1 -1
- package/static/js/184.72b4e2f6.chunk.js +1 -0
- package/static/js/303.208b8342.chunk.js +2 -0
- package/static/js/334.84842919.chunk.js +1 -0
- package/static/js/364.30e2338d.chunk.js +1 -0
- package/static/js/530.575b81b1.chunk.js +1 -0
- package/static/js/607.70a43142.chunk.js +1 -0
- package/static/js/67.4ca59d65.chunk.js +1 -0
- package/static/js/68.f1be6d7d.chunk.js +1 -0
- package/static/js/736.12c32ff7.chunk.js +1 -0
- package/static/js/891.7c25eeaa.chunk.js +1 -0
- package/static/js/972.5a85ed0a.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/166.c59f20bd.chunk.js +0 -1
- package/static/js/184.5f4b68a9.chunk.js +0 -1
- package/static/js/204.fb4f8ecd.chunk.js +0 -1
- package/static/js/26.634dea1e.chunk.js +0 -1
- package/static/js/282.04d1c7e5.chunk.js +0 -2
- package/static/js/468.2c5b7309.chunk.js +0 -1
- package/static/js/517.f5cefba0.chunk.js +0 -1
- package/static/js/602.05967c40.chunk.js +0 -1
- package/static/js/607.1390eb7e.chunk.js +0 -1
- package/static/js/667.1b2b1955.chunk.js +0 -1
- package/static/js/891.d2418050.chunk.js +0 -1
- package/static/js/972.aaca7b6b.chunk.js +0 -1
- /package/static/css/{204.3c3dc8c6.chunk.css → 108.3c3dc8c6.chunk.css} +0 -0
- /package/static/css/{667.b9d66740.chunk.css → 334.b9d66740.chunk.css} +0 -0
- /package/static/css/{517.4d5cedea.chunk.css → 530.4d5cedea.chunk.css} +0 -0
- /package/static/css/{602.4d5cedea.chunk.css → 67.4d5cedea.chunk.css} +0 -0
- /package/static/css/{166.50b9b14a.chunk.css → 68.50b9b14a.chunk.css} +0 -0
- /package/static/css/{26.3c3dc8c6.chunk.css → 736.3c3dc8c6.chunk.css} +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[108,736],{3867:function(t,e,n){var r=n(8816),o=n(417),i=n(4885),a=n(7753),s=n(4136),l=n(7313),u=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,l.useContext)(s.I),[c]=(0,a.j1)("whatmoreSecondaryColor"),[p,f]=(0,a.j1)("productRatings"),d=(0,a.MO)("whatmorePrimaryFont"),m=(t.storeId,t.productId),y=(t.productLink,t.fontSize),x=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===p||"undefined"==typeof p||!(m in p)||p[m].avgRating>5)return(0,u.jsx)(u.Fragment,{});const h=p[m].avgRating,v=p[m].totalRatings;return(0,u.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(h))].map(((t,e)=>(0,u.jsx)(r.Z,{sx:{color:c,fontSize:y+"px"}},"star-icon"+e))),h-Math.floor(h)>.2?(0,u.jsx)(o.Z,{sx:{color:c,fontSize:y+"px"}},"star-half-icon"):h-Math.floor(h)==0?(0,u.jsx)(u.Fragment,{}):(0,u.jsx)(i.Z,{sx:{color:c,fontSize:y+"px"}},"star-outline-icon"),[...Array(Math.floor(5-h))].map(((t,e)=>(0,u.jsx)(i.Z,{sx:{color:c,fontSize:y+"px"}},"star-outline-icon-"+e))),(0,u.jsx)("div",{children:(0,u.jsx)("div",{width:"2px"})}),(0,u.jsx)("div",{children:(0,u.jsx)("div",{style:{backgroundColor:c,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,u.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*y+"px","important"),t.style.setProperty("font-family",d,"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,"\xa0"]})})}),(0,u.jsx)("div",{children:(0,u.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",x,"important"),t.style.setProperty("font-size",.8*y+"px","important"),t.style.setProperty("font-family",d,"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","("+v+")"]})})]})})}},499:function(t,e){e.Z={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},4897:function(t,e,n){var r=n(499);e.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,o=t.scheduled_date,i=t.status,a=t.time_zone;if(i.toUpperCase()==r.Z.LIVE.name)return{status:r.Z.LIVE,bannerText:" "+r.Z.LIVE.name+" ",timeToStartInMins:0};if(i.toUpperCase()==r.Z.UPCOMING.name){var s=new Date(o+" "+e+" "+a),l=(new Date(o+" "+n+" "+a),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,o=n/60,i=o/60,a=i/24;return n<=0?{status:r.Z.COMPLETED,bannerText:" "+r.Z.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:o<60?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:i<24?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(i)+" hr ",timeToStartInMins:60*i}:a<7?{status:r.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:r.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(s));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:r.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},3388:function(t,e,n){n.d(e,{OC:function(){return s},e8:function(){return i},kT:function(){return r},kW:function(){return a},xg:function(){return o}});const r=function(t,e){return!((void 0==t.products||0==t.products.length)&&(void 0==t.cta||0==t.cta.length))},o=function(t,e){return!(void 0==t.products||0==t.products.length)},i=function(t,e){if(null!=t)return t.filter((t=>1==r(t)))},a=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=t)return e?t.events[0].events:t.events};const s=function(t,e){var n;if(null==t)return[];if(!("eventsets"in t))return[];const r=null!==(n=t.eventsets[e])&&void 0!==n?n:null;return r?function(t){if(null==t||0==t.length)return[];let e=[];return t.forEach((t=>{t.events.forEach((t=>{e.push(t)}))})),e}(r):[]}},5456:function(t,e,n){n.d(e,{B:function(){return r}});const r=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},8816:function(t,e,n){var r=n(5318);e.Z=void 0;var o=r(n(5045)),i=n(6417),a=(0,o.default)((0,i.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=a},417:function(t,e,n){var r=n(5318);e.Z=void 0;var o=r(n(5045)),i=n(6417),a=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=a},4885:function(t,e,n){var r=n(5318);e.Z=void 0;var o=r(n(5045)),i=n(6417),a=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=a},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[143],{4284:function(e,t,n){n.r(t);var o=n(7313),i=n(9854),a=n(2860),r=n(7753),c=n(5160),s=(n(4844),n(6967)),d=n(5380),h=n(58),l=n(8984),u=(n(7247),n(1824),n(4669)),p=n(941),w=n(9302),f=n(2575),v=n(7300),m=n(6524),g=(n(4136),n(6417));const E=(0,f.Z)({key:"whatmore-css-ppv"}),S=o.lazy((()=>Promise.all([n.e(819),n.e(576),n.e(210),n.e(803),n.e(926),n.e(
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[143],{4284:function(e,t,n){n.r(t);var o=n(7313),i=n(9854),a=n(2860),r=n(7753),c=n(5160),s=(n(4844),n(6967)),d=n(5380),h=n(58),l=n(8984),u=(n(7247),n(1824),n(4669)),p=n(941),w=n(9302),f=n(2575),v=n(7300),m=n(6524),g=(n(4136),n(6417));const E=(0,f.Z)({key:"whatmore-css-ppv"}),S=o.lazy((()=>Promise.all([n.e(819),n.e(576),n.e(210),n.e(803),n.e(926),n.e(303),n.e(607),n.e(108)]).then(n.bind(n,2607))));function j(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,o.useState)(),[f,y]=(0,o.useState)(),[_]=(0,r.j1)("isInDesignMode"),[k]=(0,r.j1)("isDemoBrand"),[b]=(0,r.j1)("whatmoreEmbedAppUseVariant"),[x,I]=(0,o.useState)(-2),[C]=(0,r.j1)("whatmoreVariantId"),[M]=(0,r.j1)("whatmoreShopId");var[O]=(0,r.j1)("whatmoreProductId");const P=(0,r.MO)("isLandingSharedLink"),T=(0,r.MO)("whatmoreShareTemplateId"),V=((0,r.MO)("whatmoreShareStoryId"),(0,r.MO)("whatmoreShareEventId"));O=(0,i.iX)(M)?j(window.location.href):O;const[D,L]=(0,o.useState)((()=>"true"===b?C:O));var U=a.Gc+"/v2/brand/"+M+"/product-events";(0,o.useEffect)((()=>{(0,s.hb)()}),[]),(0,o.useEffect)((()=>{(0,u.ll)(M)}),[]),(0,o.useEffect)((()=>{null==t||0==t.length||f||!(0,l.KE)()||(0,r.MO)("whatmoreVideoPlayerPoolInitiated")||(0,h.b5)(h.UD)}),[t]),(0,o.useEffect)((()=>{I(-1),fetch(U.toString()+"?client_product_id="+D.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>e.events)).then((e=>(n(e),e))).then((e=>((0,i.yo)(M)&&function(e,t){setTimeout((async()=>{const n=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!n||n.product_link==j(window.location.href))return;const o={product_id:n.product_id,product_link:j(window.location.href)};fetch(a.Gc+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})}),500)}(e,D),e))).catch((e=>{y(e.message)}))}),[D]),(0,o.useEffect)((()=>{I(-2)}),[t]),(0,o.useEffect)((()=>{let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let t=history.replaceState;history.replaceState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("true"===b){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var o=t[n].split("=");if(o[0]==e)return o[1]}return!1}("variant");e&&""!==e&&L(e)}}))}),[]),(0,o.useEffect)((()=>{null==t||0==t.length||f||P&&"template-embed"==(0,m.zv)(T)&&null!=V&&t.forEach(((e,t)=>{V==e.event_id&&A(e,!0,t)}))}),[t]);const A=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,l.KE)()&&!t&&(0,h.QV)(),(0,v.B6)(e)||(0,v.WJ)(e))return _||k||(async()=>{(0,c.wh)(e),(0,u.Tc)(M,a.h7,a.dU),(0,s.H4)(e.event_id,e.products,"product_page","video_popup")})(),void I(n)};function B(){return(0,g.jsx)(g.Fragment,{})}return null==t||0==t.length||f?(0,g.jsx)("div",{}):(0,g.jsx)(w.C,{value:E,children:"no-product"===D||-1===x||0===t.length?(0,g.jsx)(B,{}):-2===x&&t.length>0?(0,g.jsx)("div",{children:(0,g.jsx)(d.Z,{event:t[0],inVideoClick:A,closeClick:e=>{e.stopPropagation(),I(-1)}})}):(0,g.jsx)("div",{children:(0,g.jsx)(o.Suspense,{children:(0,g.jsx)(S,{events:t,index:x,onBack:function(){(0,i.n2)(M)&&(0,r.MO)("whatmoreAddedToCart")&&(0,p.D)(M,(()=>{}),100,window.location.hostname),I(-2)},template:"template-product-page"})})})})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[184],{7381:function(e,t,n){n.d(t,{E:function(){return r}});function o(e){console.debug("Whatmore : "+e)}function r(e){var t;const n=null!==(t="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==t&&t;n&&(o("total events received : "+(e&&e.length)),o("events data : "+JSON.stringify(e)))}},3388:function(e,t,n){n.d(t,{OC:function(){return c},e8:function(){return i},kT:function(){return o},kW:function(){return u},xg:function(){return r}});const o=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},r=function(e,t){return!(void 0==e.products||0==e.products.length)},i=function(e,t){if(null!=e)return e.filter((e=>1==o(e)))},u=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 c=function(e,t){var n;if(null==e)return[];if(!("eventsets"in e))return[];const o=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return o?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(o):[]}},2209:function(e,t,n){n.r(t);var o=n(7313),r=n(9854),i=n(2860),u=n(7753),c=n(5160),s=n(6967),l=n(5380),a=n(58),h=n(8984),d=n(4669),f=n(941),v=n(9302),g=n(7381),m=n(2575),p=n(7300),w=n(6524),E=n(3388),S=n(6417);const j=(0,m.Z)({key:"whatmore-css-wsv"}),k=o.lazy((()=>Promise.all([n.e(819),n.e(576),n.e(210),n.e(803),n.e(926),n.e(303),n.e(607),n.e(736)]).then(n.bind(n,2607))));t.default=function(e){const[t,n]=(0,o.useState)(),[m,x]=(0,o.useState)(),[O]=(0,u.j1)("isInDesignMode"),[M]=(0,u.j1)("isDemoBrand"),[_,b]=(0,o.useState)(-2),[y]=(0,u.j1)("whatmoreShopId"),C=(0,u.MO)("isLandingSharedLink"),I=(0,u.MO)("whatmoreShareTemplateId"),L=((0,u.MO)("whatmoreShareStoryId"),(0,u.MO)("whatmoreShareEventId")),D=(0,u.MO)("whatmoreLandingLocationType"),T=(0,u.MO)("whatmoreLoggingActive");var P=(0,r.ef)(y)?i.Dm+"/get_eventset/":i.Gc+"/get_eventset/";(0,o.useEffect)((()=>{(0,s.hb)()}),[]),(0,o.useEffect)((()=>{(0,d.ll)(y)}),[]),(0,o.useEffect)((()=>{null==t||0==t.length||m||!(0,h.KE)()||(0,u.MO)("whatmoreVideoPlayerPoolInitiated")||(0,a.b5)(a.UD)}),[t]),(0,o.useEffect)((()=>{b(-1);const e=w.NX,t=(0,w.H1)(D),o=P.toString()+y.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+y;fetch(o).then((e=>e.json())).then((t=>(0,E.OC)(t,e))).then((e=>(n(e),e))).catch((e=>{x(e.message)}))}),[]),(0,o.useEffect)((()=>{b(-2)}),[t]),(0,o.useEffect)((()=>{null==t||0==t.length||m||C&&"template-embed"==(0,w.zv)(I)&&null!=L&&t.forEach(((e,t)=>{L==e.event_id&&A(e,!0,t)}))}),[t]);const A=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,h.KE)()&&!t&&(0,a.QV)(),(0,p.B6)(e)||(0,p.WJ)(e))return O||M||(async()=>{(0,c.wh)(e),(0,d.Tc)(y,i.h7,i.dU),(0,s.H4)(e.event_id,e.products,"spotlight","video_popup")})(),void b(n)};function B(){return(0,S.jsx)(S.Fragment,{})}return null==t||0==t.length||m?(0,S.jsx)("div",{}):(T&&(0,g.E)(t),(0,S.jsx)(v.C,{value:j,children:-1===_||0===t.length?(0,S.jsx)(B,{}):-2===_&&t.length>0?(0,S.jsx)("div",{children:(0,S.jsx)(l.Z,{event:t[0],inVideoClick:A,closeClick:e=>{e.stopPropagation(),b(-1)}})}):(0,S.jsx)("div",{children:(0,S.jsx)(o.Suspense,{children:(0,S.jsx)(k,{events:t,index:_,onBack:function(){(0,r.n2)(y)&&(0,u.MO)("whatmoreAddedToCart")&&(0,f.D)(y,(()=>{}),100,window.location.hostname),b(-2)},template:"template-embed"})})})}))}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 303.208b8342.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[303],{9219:function(t,i,o){"use strict";o.d(i,{p_:function(){return l},Rb:function(){return _},jx:function(){return s}});var n=o(6233),r=o(6040),e=o.n(r),c=o(9854);function a(t,i){var o;return null!==(o=(0,c.Qx)(i)[t])&&void 0!==o?o:e()(t)}function u(){return null!=window.Shopify||"undefined"!=typeof window.Shopify}function d(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function p(t){if(t%1>=.1){return t.toString().split(".")[0].length>=4?parseInt(t):t.toFixed(2)}return parseInt(t)}function s(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"INR";if(!t||void 0==typeof t)return"";if(!u())return"70993772860"==o||"72534294803"==o?"$"+i+d(p(t)):a(null!==n&&void 0!==n?n:"INR",o)+i+d(p(t));const r=window.Shopify.currency?window.Shopify.currency.active:"INR",e=parseFloat(window.Shopify.currency?window.Shopify.currency.rate:"1.0");return a(r,o)+i+d(p(t*e))}async function l(t,i,o){for(let a=0;a<t.products.length;a++){var r,e,c;const u=await(0,n.vX)(t.products[a],i,o);t.products[a].price=null!==(r=u.price)&&void 0!==r?r:t.products[a].price,t.products[a].compare_price=null!==(e=u.compare_at_price)&&void 0!==e?e:t.products[a].compare_price,t.products[a].currency=null!==(c=u.currency_code)&&void 0!==c?c:t.products[a].currency}return t}async function _(t,i,o){var r,e,c;const a=await(0,n.vX)(t,i,o);return t.price=null!==(r=a.price)&&void 0!==r?r:t.price,t.compare_price=null!==(e=a.compare_at_price)&&void 0!==e?e:t.compare_price,t.currency=null!==(c=a.currency_code)&&void 0!==c?c:t.currency,t}},5945:function(t,i,o){"use strict";function n(t){return"undefined"==typeof t||"undefined"==t||null==t?"":t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}o.d(i,{s:function(){return n}})},6233:function(t,i,o){"use strict";o.d(i,{jg:function(){return _t},TE:function(){return ht},rY:function(){return mt},OM:function(){return ft},vX:function(){return vt},Y4:function(){return st},ln:function(){return lt}});var n=o(9854);function r(t){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var n in o)t[n]=o[n]}return t}var e=function t(i,o){function n(t,n,e){if("undefined"!==typeof document){"number"===typeof(e=r({},o,e)).expires&&(e.expires=new Date(Date.now()+864e5*e.expires)),e.expires&&(e.expires=e.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var a in e)e[a]&&(c+="; "+a,!0!==e[a]&&(c+="="+e[a].split(";")[0]));return document.cookie=t+"="+i.write(n,t)+c}}return Object.create({set:n,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var o=document.cookie?document.cookie.split("; "):[],n={},r=0;r<o.length;r++){var e=o[r].split("="),c=e.slice(1).join("=");try{var a=decodeURIComponent(e[0]);if(n[a]=i.read(c,a),t===a)break}catch(u){}}return t?n[t]:n}},remove:function(t,i){n(t,"",r({},i,{expires:-1}))},withAttributes:function(i){return t(this.converter,r({},this.attributes,i))},withConverter:function(i){return t(r({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(i)}})}({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:"/"}),c=e;const a={STRCGMYX28X:"https://"+window.location.hostname,STRBG6F06XL:"https://"+window.location.hostname,STR1QF8R1DW:"https://"+window.location.hostname},u={STRCGMYX28X:3,STRBG6F06XL:117,STR1QF8R1DW:119},d={STRCGMYX28X:"nw3koAz7Hto68rxqiSDrqnMjztjbHNx7ykL9wjgfjC7Ur1mlKvQXx5bpmKYmXstGbtDrOZLN4Z7N0s1MAbWMGNKJsgAlQlUhGnqX1YxbGk3TRoylHggI6Ff050u596yR",STRBG6F06XL:"lm1W2C/SI57r29COyX9BEab=37i0J6/R7?baVkFmDje1J/bo8vHG8XYlCk!0LMR1",STR1QF8R1DW:"06e026ab-a7a8-42d2-9876-33828cbd681a"},p="ansxwhatmore-access-token";function s(t){return t.product_metadata.sku_id}function l(t){return u[t]}function _(t){return a[t]}async function m(t,i){const o=_(i);return function(t){const i=t.data.product_data;"options"in i&&0!=i.options.length||(i.options=[{product_option_id:"invalid",product_option_value:[{product_option_value_id:"invalid",option_value_id:"46",name:"invalid",image:"",quantity:"1",subtract:"1",price:"0.0000",price_prefix:"+",special_price:"0.0000",special_price_prefix:"+",weight:"0.00000000",weight_prefix:"+",sku:"8903568188345"}],option_id:"1",name:"invalid",type:"radio",value:"",required:"1"}]);const o=i.options[0].product_option_id;var n=Object.entries(i.options[0].product_option_value).map((t=>{const n=t[1];return{id:i.product_id+"::"+o+"::"+n.product_option_value_id,product_id:i.product_id,title:"",price:100*i.price,compare_at_price:100*i.mrp,available:parseInt(n.quantity)>0,option1:n.name,option2:null,option3:null,options:[n.name]}}));const r=(n=n.filter((t=>1==t.available))).map((t=>t.option1));return{id:i.product_id,title:i.product_title,body_html:i.description,variants:n,options:r}}(await fetch(o+"/getProductDetails",{method:"POST",body:JSON.stringify({merchant_store_id:l(i),sku:s(t)}),headers:{[p]:d[i]}}).then((t=>t.json())).catch((t=>console.error(t))))}async function h(t,i,o){_(o);const n=t.split("::"),r=n[0],e=n[1],c=n[2];return whatmoreatc(r,i,e,c),await new Promise((t=>setTimeout(t,1500))),"whatmoreatc_success"in localStorage&&"true"==localStorage.getItem("whatmoreatc_success")?{ok:!0,status:200,json:function(){return{}}}:{ok:!1,status:500,json:function(){return{}}}}const f={STRR72TX6AT:"https://www.cbazaar.com"};function v(t){return t.product_metadata.sku_id}function w(t){return f[t]}async function y(t,i){function o(t){const i=t.data.product_data[0];var o=[{id:i.product_id,product_id:i.product_id,title:i.product_title,price:100*i.price,compare_at_price:100*i.mrp,currency_code:i.currency_code,available:!i.outOfStock,option1:null,option2:null,option3:null,options:[]}];const n=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:i.product_id,title:i.product_title,body_html:"",variants:o,options:n}}const n=w(i);return o(await fetch(n+"/productsv3api/getproductdetails/"+v(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t))))}const S={STRRPY8YRZE:"https://idaho-o.com"},b=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"Y2tfZTI1OWVmNWVlNzg5MzIzYzIzOWU3ZDE0NjQwNmUwZmZkZGY4NDQ5Yzpjc19iYzdkZjI0MGEwYTgzNDhlZjNhMTI4ZTA3MDRkMmMwNmU5ZGM4NTM5");function T(t){return t.product_metadata.sku_id}function R(t){return S[t]}async function g(t,i){const o=R(i);return function(t){const i=t;var o=Object.entries(i.attributes[0].options).map(((t,o)=>{var n;return{id:(null!==(n=i.variations[o])&&void 0!==n?n:i.variations[0])+":"+i.id+":"+t[1],product_id:i.id,title:"",price:100*i.price,compare_at_price:100*i.price,available:"instock"===i.stock_status,option1:t[1],option2:null,option3:null,options:[t[1]]}}));const n=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:i.product_id,title:i.product_title,body_html:i.description,variants:o,options:n}}(await fetch(o+"/wp-json/wc/v3/products/"+T(t),{method:"GET",headers:{Authorization:"Basic "+b}}).then((t=>t.json())).catch((t=>console.error(t))))}async function k(t,i,o){const n=t.split(":"),r=n[0],e=n[1],c=n[2],a=R(o)+"/wp-admin/admin-ajax.php",u={Authorization:"Basic "+b},d=new FormData;d.append("action","woocommerce_ajax_add_to_cart"),d.append("product_id",e),d.append("product_sku",""),d.append("quantity",i),d.append("variation_id",r),d.append("variation[attribute_pa_size]",c?c.toLowerCase():"");return await fetch(a,{method:"POST",headers:u,body:d}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}var j;const D={STRMM0QP0CU:"https://"+window.location.hostname},N=null!==(j=c.get("form_key"))&&void 0!==j?j:"undefined",C=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"ds243corrt3qkd1rhoeyfes3ztefxjae");function G(t){return t.product_metadata.sku_id}function O(t){return D[t]}async function U(t,i){var o=await async function(t){const i=O(t);return(await fetch(i+"/rest/V1/products/attributes/ready_to_wear_sizes",{method:"GET",headers:{Authorization:"Bearer "+C}}).then((t=>t.json())).catch((t=>console.error(t)))).options.reduce(((t,i,o)=>(i.value&&i.label&&(t[i.value]=i.label),t)),{})}(i),n=[];return t.split(",").forEach((t=>{t in o&&n.push(t+":"+o[t])})),n}async function M(t){var i=[];return t.options.forEach((t=>{t.values.forEach((o=>{"Ready to wear"==o.title&&i.push(t.option_id+":"+o.option_type_id)}))})),i.length>0?i[0]:void 0}async function A(t,i){async function o(t){const o=t,n=o.extension_attributes.is_ready_to_ware,r=o.custom_attributes.reduce(((t,i,o)=>(t[i.attribute_code]=i.value,t)),{});async function e(){var t;return{id:o.id,title:o.name,body_html:r.description,variants:[{id:"single_option::"+o.id,product_id:o.id,title:"",price:100*(null!==(t=r.special_price)&&void 0!==t?t:o.price),compare_at_price:100*o.price,available:!0,option1:o.extension_attributes.stock_item.item_id,option2:null,option3:null,options:[o.extension_attributes.stock_item.item_id]}],images:[{id:o.id,product_id:o.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:["single_option::"+o.id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:[o.extension_attributes.stock_item.item_id]}]}}if(0==n)return await e();if(!("ready_to_wear_sizes"in r))return await e();const c=await U(r.ready_to_wear_sizes,i),a=await M(t);return a?await async function(t,i){const n=t.map(((t,n)=>{var e;const c=o.extension_attributes.stock_item.item_id,a=t.split(":")[0],u=t.split(":")[1];return{id:"multi_option::"+o.id+":"+c+":"+u+":"+a+":"+i,product_id:o.id,title:"",price:100*(null!==(e=r.special_price)&&void 0!==e?e:o.price),compare_at_price:100*o.price,available:!0,option1:u,option2:null,option3:null,options:null}})),e=t.map(((t,i)=>{t.split(":")[0];return t.split(":")[1]}));return{id:o.id,title:o.name,body_html:r.description,variants:n,images:[{id:o.id,product_id:o.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:["single_option::"+o.id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:e}]}}(c,a):await e()}const n=O(i),r=await fetch(n+"/rest/default/V1/products/"+G(t),{method:"GET",headers:{Authorization:"Bearer "+C,"User-Agent":"PostmanRuntime/7.32.3"}}).then((t=>t.json())).catch((t=>console.error(t)));return await o(r)}async function B(t,i,o){var n,r;if(t.startsWith("single_option::")){const n=t.split("::")[1],r=O(o)+"/ajaxcart",e={Authorization:"Bearer "+C},c=new FormData;c.append("product",n),c.append("item",n),c.append("qty",i),c.append("form_key",N);return await fetch(r,{method:"POST",headers:e,body:c}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const e=t.split("::")[1].split(":"),c=e[0],a=(e[1],e[2]),u=(e[3],null!==(n=e[4])&&void 0!==n?n:void 0),d=null!==(r=e[5])&&void 0!==r?r:void 0,p=O(o)+"/ajaxcart",s={Authorization:"Bearer "+C},l=new FormData;l.append("product",c),l.append("item",c),l.append("qty",i),l.append("options["+u+"]",d),l.append("options[size_"+u+"]",a),l.append("form_key",N);return await fetch(p,{method:"POST",headers:s,body:l}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const P={STRK70X2OVV:"http://dev-panash.panashindia.com",STR3PNIYEZ6:"https://www.panashindia.com"};function E(t){return t.product_metadata.sku_id}function L(t){return P[t]}async function F(t,i){function o(t){const i=t.data.product_data;var o=[{id:i.product_id,product_id:i.product_id,title:i.product_title,price:100*i.price,compare_at_price:100*i.mrp,currency_code:i.currency_code,available:!0,option1:null,option2:null,option3:null,options:[]}];const n=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:i.product_id,title:i.product_title,body_html:"",variants:o,options:n}}const n=L(i);return o(await fetch(n+"/productsv3api/Productdetails/index/sku/"+E(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t))))}const z={STRNV8MHJTF:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR6HU283UZ:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR9T3LLEJB:"https://cart-pim.wforwoman.com/api/v1/whatmore",STRWJMIOJNX:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR1D5ONOZX:"https://cart-pim.wforwoman.com/api/v1/whatmore",STRUDQ36YAC:"https://cart-pim.wforwoman.com/api/v1/whatmore"},I={STRNV8MHJTF:1,STR6HU283UZ:1,STR9T3LLEJB:5,STRWJMIOJNX:2,STR1D5ONOZX:4,STRUDQ36YAC:3},X=window.location.hostname.substring(10,4)+"_cart",$=window.location.hostname.substring(10,4)+"_carts",x=window.location.hostname.substring(10,4)+"_curr";function K(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}function Y(t){return I[t]}function Z(t){return z[t]}function J(t){var i;return null!==(i=c.get(x))&&void 0!==i?i:"INR"}async function H(t,i){const o=Z(i);return function(t){const i=t.data.product_data[0];var o=Object.entries(i.variation).map((t=>{const i=t[1],o=i.configrable_atribute_value;return{id:i.id_product,product_id:i.id_product,title:"",price:100*i.selling_price,compare_at_price:100*i.price,available:"in-stock"==i.stock_status,option1:o,option2:null,option3:null,options:[o]}}));const n=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:i.product_id,title:i.product_title,body_html:i.description,variants:o,options:n}}(await fetch(o+"/get-product?url_key="+K(t)+"&store="+Y(i)+"¤cy="+J(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}async function V(t,i,o){const n=Z(o),r=c.get(X),e=c.get($);var a={varient_id:t,qty:i,store:Y(o)};r&&e&&(a={varient_id:t,qty:i,store:Y(o),cart_id:r,cart_session:e});return await fetch(n+"/add-product",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((t=>t.json())).then((t=>(r||(c.set(X,t.data.cart_id,{expires:365}),c.set($,t.data.cart_session,{expires:365})),{ok:!0,status:200,json:function(){return{}}})))}const W={STRJ5VPPT3U:"https://"+window.location.hostname};function q(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}function Q(t){return W[t]}async function tt(t,i){const o=Q(i);return function(t){const i=t;null==i.variations&&(i.variations=["no-variations"]);var o=Object.entries(i.variations).map((t=>{const o=t[1];return{id:i.product_id+"::"+o,product_id:i.product_id,title:"",price:100*i.price,compare_at_price:100*i.mrp,available:!0,option1:o,option2:null,option3:null,options:[o]}}));const n=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:i.product_id,title:i.product_title,body_html:i.description,variants:o,options:n}}((await fetch(o+"/catalog/whatsmoreproducts?slug="+q(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)))).product_detail)}async function it(t,i,o){const n=Q(o),r=t.split("::"),e=r[0],c=r.length>1?r[1]:"";return await fetch(n+"/cart/addtocart?productid="+e+("no-variations"===c||t?"":"&variation_value="+c)+"&qty="+i,{method:"GET"}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const ot="https://www.ninecolours.com";function nt(t){const i=t.product_link.split("-");return i[i.length-1]}function rt(t){return"STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t}function et(t){return"STRRPY8YRZE"==t}function ct(t){return"STR5KA9X0OZ"==t||"STRR72TX6AT"==t}function at(t){return"STRMM0QP0CU"==t}function ut(t){return"STRJ5VPPT3U"==t}function dt(t){return"STRCGMYX28X"==t||"STRBG6F06XL"==t||"STR1QF8R1DW"==t}function pt(t){return"STRK70X2OVV"==t||"STR3PNIYEZ6"==t}async function st(t,i){if(rt(i))return async function(t,i){const o=Z(i);return function(t){const i=t.data.product_data[0];var o=Object.entries(i.variation).map((t=>{const i=t[1],o=i.configrable_atribute_value;return{id:i.id_product,product_id:i.id_product,title:"",price:i.selling_price,compare_at_price:i.price,available:"in-stock"==i.stock_status,option1:o,option2:null,option3:null}}));const n=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:i.product_id,title:i.product_title,body_html:i.description,variants:o,images:[{id:i.product_id,product_id:i.product_id,position:1,src:i.thumbnail_image,variant_ids:[i.product_id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:n}]}}}(await fetch(o+"/get-product?url_key="+K(t)+"&store="+Y(i)+"¤cy="+J(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t))))}(t,i);if(et(i))return async function(t,i){const o=R(i);return function(t){const i=t;var o=Object.entries(i.attributes[0].options).map(((t,o)=>{var n;return{id:(null!==(n=i.variations[o])&&void 0!==n?n:i.variations[0])+":"+i.id+":"+t[1],product_id:i.id,title:"",price:i.price,compare_at_price:i.price,available:"instock"===i.stock_status,option1:t[1],option2:null,option3:null}}));const n=o.map((t=>t.option1));return{product:{id:i.id,title:i.name,body_html:i.short_description,variants:o,images:[{id:i.images[0].id,product_id:i.id,position:1,src:i.images[0].src,variant_ids:[i.variations[0]]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:n}]}}}(await fetch(o+"/wp-json/wc/v3/products/"+T(t),{method:"GET",headers:{Authorization:"Basic "+b}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,i);if(ct(i))return async function(t,i){function o(t){const i=t.data.product_data[0];var o=[{id:i.product_id,product_id:i.product_id,title:i.product_title,price:i.price,compare_at_price:i.mrp,currency_code:i.currency_code,available:!i.outOfStock,option1:null,option2:null,option3:null}];const n=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:i.product_id,title:i.product_title,body_html:"",variants:o,images:[{id:i.product_id,product_id:i.product_id,position:1,src:i.thumbnail_image,variant_ids:[i.product_id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:n}]}}}const n=w(i);return o(await fetch(n+"/productsv3api/getproductdetails/"+v(t),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,i);if(pt(i))return async function(t,i){function o(t){const i=t.data.product_data;var o=[{id:i.product_id,product_id:i.product_id,title:i.product_title,price:i.price,compare_at_price:i.mrp,currency_code:i.currency_code,available:!0,option1:null,option2:null,option3:null}];const n=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:i.product_id,title:i.product_title,body_html:"",variants:o,images:[{id:i.product_id,product_id:i.product_id,position:1,src:i.thumbnail_image,variant_ids:[i.product_id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:n}]}}}const n=L(i);return o(await fetch(n+"/productsv3api/Productdetails/index/sku/"+E(t),{method:"GET",headers:{redirect:"follow"}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,i);if(at(i))return async function(t,i){async function o(t){const o=t,n=o.extension_attributes.is_ready_to_ware,r=o.custom_attributes.reduce(((t,i,o)=>(t[i.attribute_code]=i.value,t)),{});async function e(){var t;return{product:{id:o.id,title:o.name,body_html:r.description,variants:[{id:"single_option::"+o.id,product_id:o.id,title:"",price:null!==(t=r.special_price)&&void 0!==t?t:o.price,compare_at_price:o.price,available:!0,option1:o.extension_attributes.stock_item.item_id,option2:null,option3:null}],images:[{id:o.id,product_id:o.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:[o.id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:[o.extension_attributes.stock_item.item_id]}]}}}if(0==n)return await e();if(!("ready_to_wear_sizes"in r))return await e();const c=await U(r.ready_to_wear_sizes,i),a=await M(t);return a?await async function(t,i){const n=t.map(((t,n)=>{var e;const c=o.extension_attributes.stock_item.item_id,a=t.split(":")[0],u=t.split(":")[1];return{id:"multi_option::"+o.id+":"+c+":"+u+":"+a+":"+i,product_id:o.id,title:"",price:null!==(e=r.special_price)&&void 0!==e?e:o.price,compare_at_price:o.price,available:!0,option1:u,option2:null,option3:null,options:null}})),e=t.map(((t,i)=>(t.split(":")[0],t.split(":")[1])));return{product:{id:o.id,title:o.name,body_html:r.description,variants:n,images:[{id:o.id,product_id:o.id,position:1,src:"https://ik.imagekit.io/wb2spwtue/kreeva/tr:h-433,w-315,q-80,cm-pad_resize/media/catalog/product"+r.thumbnail,variant_ids:[o.id]}],options:[{id:o.product_id,product_id:o.product_id,name:"Size",position:1,values:e}]}}}(c,a):await e()}const n=O(i),r=await fetch(n+"/rest/default/V1/products/"+G(t),{method:"GET",headers:{Authorization:"Bearer "+C}}).then((t=>t.json())).catch((t=>console.error(t)));return await o(r)}(t,i);if(ut(i))return async function(t,i){const o=Q(i);return function(t){const i=t;null==i.variations&&(i.variations=["no-variations"]);var o=Object.entries(i.variations).map((t=>{const o=t[1];return{id:i.product_id+"::"+o,product_id:i.product_id,title:"",price:i.price,compare_at_price:i.mrp,available:!0,option1:o,option2:null,option3:null}}));const n=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:i.product_id,title:i.product_title,body_html:i.description,variants:o,images:[{id:i.product_id,product_id:i.product_id,position:1,src:i.thumbnail_image,variant_ids:[i.product_id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:n}]}}}((await fetch(o+"/catalog/whatsmoreproducts?slug="+q(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)))).product_detail)}(t,i);if(dt(i))return async function(t,i){const o=_(i);return function(t){const i=t.data.product_data;"options"in i&&0!=i.options.length||(i.options=[{product_option_id:"invalid",product_option_value:[{product_option_value_id:"invalid",option_value_id:"46",name:"invalid",image:"",quantity:"1",subtract:"1",price:"0.0000",price_prefix:"+",special_price:"0.0000",special_price_prefix:"+",weight:"0.00000000",weight_prefix:"+",sku:"8903568188345"}],option_id:"1",name:"invalid",type:"radio",value:"",required:"1"}]);const o=i.options[0].product_option_id;var n=Object.entries(i.options[0].product_option_value).map((t=>{const n=t[1];return{id:i.product_id+"::"+o+"::"+n.product_option_value_id,product_id:i.product_id,title:"",price:i.price,compare_at_price:i.mrp,available:parseInt(n.quantity)>0,option1:n.name,option2:null,option3:null}}));const r=(n=n.filter((t=>1==t.available))).map((t=>t.option1));return{product:{id:i.product_id,title:i.product_title,body_html:i.description,variants:n,images:[{id:i.product_id,product_id:i.product_id,position:1,src:i.thumbnail_image,variant_ids:[i.product_id]}],options:[{id:i.product_id,product_id:i.product_id,name:"Size",position:1,values:r}]}}}(await fetch(o+"/getProductDetails",{method:"POST",body:JSON.stringify({merchant_store_id:l(i),sku:s(t)}),headers:{[p]:d[i]}}).then((t=>t.json())).catch((t=>console.error(t))))}(t,i);if("STRGA3S8N41"==i){function o(t){const i=t.data.product_data[0];return{product:{id:i.product_id,title:i.product_title,body_html:i.description,variants:[{id:i.product_id,product_id:i.product_id,title:i.product_title,price:i.price,compare_at_price:i.mrp,currency_code:i.currency_code,option1:"variant-1",option2:null,option3:null}],images:[{id:i.product_id,product_id:i.product_id,position:1,src:i.thumbnail_image[0],variant_ids:[i.product_id]}]}}}const n=ot;return o(await fetch(n+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:nt(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function lt(t,i){if(rt(i))return H(t,i);if(et(i))return g(t,i);if(ct(i))return y(t,i);if(pt(i))return F(t,i);if(at(i))return A(t,i);if(ut(i))return tt(t,i);if(dt(i))return m(t,i);if("STRGA3S8N41"==i){function o(t){const i=t.data.product_data[0];return{id:i.product_id,title:i.product_title,body_html:i.description,variants:[{id:i.product_id,title:"variant-1",option1:"variant-1",option2:null,option3:null,available:!0,price:i.price,compare_at_price:i.mrp,currency_code:i.currency_code,options:["variant-1"]}],options:[{name:"variant",position:1,values:["variant-1"]}]}}const n=ot;return o(await fetch(n+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:nt(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function _t(t,i,o){if(rt(o))return await V(t,i,o);if(et(o))return await k(t,i,o);if(at(o))return B(t,i,o);if(ut(o))return it(t,i,o);if(dt(o))return h(t,i,o);if("STRGA3S8N41"==o){const o=ot;return await fetch(o+"/whatmore-addtocart ",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t,qty:i})})}return{}}async function mt(t,i,o){if(rt(o))return async function(t,i,o){await V(t,i,o);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(o)?"".concat(r,"/checkout")+"?"+(0,n.aw)(o)+"&"+(0,n.n9)(o)+"&"+(0,n.Uc)(o):"".concat(r,"/checkout"),window.location.href=e}(t,i,o);if(et(o))return async function(t,i,o){await k(t,i,o);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(o)?"".concat(r,"/cart")+"?"+(0,n.aw)(o)+"&"+(0,n.n9)(o)+"&"+(0,n.Uc)(o):"".concat(r,"/cart"),window.location.href=e}(t,i,o);if(at(o))return async function(t,i,o){await B(t,i,o);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(o)?"".concat(r,"/checkout/cart")+"?"+(0,n.aw)(o)+"&"+(0,n.n9)(o)+"&"+(0,n.Uc)(o):"".concat(r,"/checkout/cart"),window.location.href=e}(t,i,o);if(ut(o))return async function(t,i,o){await it(t,i,o);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(o)?"".concat(r,"/checkout")+"?"+(0,n.aw)(o)+"&"+(0,n.n9)(o)+"&"+(0,n.Uc)(o):"".concat(r,"/checkout"),window.location.href=e}(t,i,o);if(dt(o))return async function(t,i,o){await h(t,i,o);const r="https://"+window.location.hostname;var e;e=(0,n.lj)(o)?"".concat(r,"/checkout")+"?"+(0,n.aw)(o)+"&"+(0,n.n9)(o)+"&"+(0,n.Uc)(o):"".concat(r,"/checkout"),window.location.href=e}(t,i,o);if("STRGA3S8N41"==o){await _t(t,i,o);const e="https://"+window.location.hostname;var r;r=(0,n.lj)(o)?"".concat(e,"/cart")+"?"+(0,n.aw)(o)+"&"+(0,n.n9)(o)+"&"+(0,n.Uc)(o):"".concat(e,"/cart"),window.location.href=r}return{}}async function ht(t){if(rt(t))return async function(t){const i="https://"+window.location.hostname;var o;o=(0,n.lj)(t)?"".concat(i,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(i,"/cart"),window.location.href=o}(t);if(et(t))return async function(t){const i="https://"+window.location.hostname;var o;o=(0,n.lj)(t)?"".concat(i,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(i,"/cart"),window.location.href=o}(t);if(at(t))return async function(t){const i="https://"+window.location.hostname;var o;o=(0,n.lj)(t)?"".concat(i,"/checkout/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(i,"/checkout/cart"),window.location.href=o}(t);if(ut(t))return async function(t){const i="https://"+window.location.hostname;var o;o=(0,n.lj)(t)?"".concat(i,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(i,"/cart"),window.location.href=o}(t);if(dt(t))return async function(t){const i="https://"+window.location.hostname;var o;o=(0,n.lj)(t)?"".concat(i,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(i,"/cart"),window.location.href=o}(t);if("STRGA3S8N41"==t){const o="https://"+window.location.hostname;var i;i=(0,n.lj)(t)?"".concat(o,"/cart")+"?"+(0,n.aw)(t)+"&"+(0,n.n9)(t)+"&"+(0,n.Uc)(t):"".concat(o,"/cart"),window.location.href=i}return{}}function ft(t){if(rt(t))return function(t){const i=c.get(X),o=Z(t);return fetch(o+"/get-cart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cart_id:i})}).then((t=>t.json())).then((t=>({json:function(){return{item_count:t.data.item_count}}})))}(t);if(et(t))return function(t){const i=R(t);return fetch(i+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+b}}).then((t=>t.json())).then((t=>({json:function(){var i;return{item_count:null!==(i=t.data.item_count)&&void 0!==i?i:0}}})))}(t);if(at(t))return function(t){const i=O(t);return fetch(i+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+C}}).then((t=>t.json())).then((t=>({json:function(){var i;return{item_count:null!==(i=t.data.item_count)&&void 0!==i?i:0}}})))}(t);if(ut(t))return Promise.resolve({json:function(){return{item_count:0}}});if(dt(t))return Promise.resolve({json:function(){return{item_count:0}}});if("STRGA3S8N41"==t){return fetch(ot+"/whatmore-cartcount ",{method:"GET",headers:{"Content-Type":"application/json"}})}return{}}async function vt(t,i,o){if(rt(o))return async function(t,i){const o=await H(t,i);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:J()}}(t,o);if(et(o))return async function(t,i){const o=await g(t,i);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:"INR"}}(t,o);if(at(o))return async function(t,i){const o=await A(t,i);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:"INR"}}(t,o);if(ut(o))return async function(t,i){const o=await tt(t,i);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:"INR"}}(t,o);if(ct(o))return async function(t,i){const o=await y(t,i);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:o.variants[0].currency_code}}(t,o);if(pt(o))return async function(t,i){const o=await F(t,i);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:o.variants[0].currency_code}}(t,o);if(dt(o))return async function(t,i){const o=await m(t,i);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:"INR"}}(t,o);if("STRGA3S8N41"==o){const i=await lt(t,o);return{price:i.variants[0].price,compare_at_price:i.variants[0].compare_at_price,currency_code:i.variants[0].currency_code}}return{}}},6040:function(t,i,o){const n=o(500);t.exports=function(t){if("string"!==typeof t)return;const i=t.toUpperCase();return Object.prototype.hasOwnProperty.call(n,i)?n[i]:void 0},t.exports.currencySymbolMap=n},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:"$"}},6143:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[334,68,12],{51:function(t,e,n){n.d(e,{Z:function(){return i}});var o=n(7313),c=n(7753),a=n(5254),r=n(6417);var i=function(t){return(0,o.useEffect)((()=>{const t=(0,a.oo)((0,c.MO)("whatmoreSecondaryColor"));!function(t,e,n,o){const c="rgba(".concat(t,",").concat(e,",").concat(n,",").concat(o,")"),a="\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ".concat(c,", 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.8em -1.8em 0 0em ").concat(c,", 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 2.5em 0em 0 0em ").concat(c,", 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 1.75em 1.75em 0 0em ").concat(c,", 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), 0em 2.5em 0 0em ").concat(c,", -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em 1.8em 0 0em ").concat(c,", -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -2.6em 0em 0 0em ").concat(c,", -1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.8em -1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 2.5em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 1.75em 1.75em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), 0em 2.5em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.2), -1.8em 1.8em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.5), -2.6em 0em 0 0em rgba(").concat(t,", ").concat(e,", ").concat(n,", 0.7), -1.8em -1.8em 0 0em ").concat(c,";\n }\n }\n "),r=document.createElement("style");r.type="text/css",r.innerHTML=a,document.head.appendChild(r)}(t[0],t[1],t[2],.2)}),[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("span",{className:"whatmore-loading-indicator"})})}},4658:function(t,e,n){n.r(e),n.d(e,{default:function(){return k}});var o=n(7313),c=n(6090),a=n(7616),r=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),i=n(2575),s=n(8866),l=n(7753),m=n(7129),d=n(4136),h=(n(3439),n(4892),n(9854)),u=n(3933),f=n(868),g=n(342),p=n(3437),w=n(3455),v=n(6417);var x=function(t){var e;const n=t.isMuted,o=null!==(e=t.iconSize)&&void 0!==e?e:30;function c(){t.onToggle()}return(0,v.jsx)("div",{style:{cursor:"pointer"},children:n?(0,v.jsx)(w.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}}):(0,v.jsx)(p.Z,{sx:{color:"white",fontSize:o,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}})})},y=(n(6422),n(264)),b=n(8984),j=n(58);function P(t){const[e,n]=(0,o.useState)(t.initialMuteState);function c(){n(!e),(0,b.KE)()&&(0,j.QV)(),t.onMuteToggle()}t.event;return(0,v.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,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",width:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:[(0,v.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>c()}),(0,v.jsx)(x,{isMuted:e,onToggle:()=>{c()}})]}),(0,v.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>c()})]})})}var C=function(t){const[e,n,c]=(0,s.Z)(),[a,r]=(0,o.useState)(!0),{whatmoreUITheme:i}=(0,o.useContext)(d.I),m=(0,l.MO)("whatmoreVideoTileSize"),{ref:p,inView:w,entry:x}=(0,u.YD)({triggerOnce:!1}),b=(0,l.MO)("whatmoreShopId"),j=t.event,C=(0,h.nz)(b),M=(0,g.uv)(j),k=(0,g.WN)(j);if("portrait"===e&&!M)return(0,v.jsx)(v.Fragment,{});if("landscape"===e&&!k)return(0,v.jsx)(v.Fragment,{});const z=(0,f.V)("portrait"===e?M:k),Z="portrait"===e?c*(m/100):c*(m/100*.8),S="portrait"===e?Z*(16/9):Z*(9/16);return(0,v.jsxs)("div",{ref:p,style:{margin:"0 auto",width:Z,height:S,padding:"0px",borderRadius:"round"==i?"5px":"0px",boxShadow:"round"==i?C:null,borderWidth:(0,h.al)(b),borderColor:(0,h.qP)(b),overflow:"hidden",cursor:"pointer"},children:[(0,v.jsx)(y.Z,{height:"100%",width:"100%",url:z,isPlaying:w,event:j,isVideoMuted:a}),(0,v.jsx)(P,{event:j,onMuteToggle:()=>r(!a),initialMuteState:a})]})};const M=(0,i.Z)({key:"whatmore-css-bv"});var k=function(t){const[e,n,i]=(0,s.Z)(),{whatmoreRootId:h}=((0,l.MO)("whatmorePrimaryColor"),(0,l.MO)("whatmoreShopId"),(0,l.MO)("whatmoreSecondaryColor"),(0,l.MO)("whatmoreTitleFont"),(0,o.useContext)(d.I)),u=t.events;return delete a.ZP.styles.global,(0,v.jsx)(r.C,{value:M,children:(0,v.jsx)("div",{children:(0,v.jsx)(c.x,{theme:a.ZP,cssVarsRoot:h,resetCSS:!1,children:(0,v.jsx)(m.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,v.jsx)(C,{event:u[0]})})})})})}},3867:function(t,e,n){var o=n(8816),c=n(417),a=n(4885),r=n(7753),i=n(4136),s=n(7313),l=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,s.useContext)(i.I),[m]=(0,r.j1)("whatmoreSecondaryColor"),[d,h]=(0,r.j1)("productRatings"),u=(0,r.MO)("whatmorePrimaryFont"),f=(t.storeId,t.productId),g=(t.productLink,t.fontSize),p=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(f in d)||d[f].avgRating>5)return(0,l.jsx)(l.Fragment,{});const w=d[f].avgRating,v=d[f].totalRatings;return(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(w))].map(((t,e)=>(0,l.jsx)(o.Z,{sx:{color:m,fontSize:g+"px"}},"star-icon"+e))),w-Math.floor(w)>.2?(0,l.jsx)(c.Z,{sx:{color:m,fontSize:g+"px"}},"star-half-icon"):w-Math.floor(w)==0?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(a.Z,{sx:{color:m,fontSize:g+"px"}},"star-outline-icon"),[...Array(Math.floor(5-w))].map(((t,e)=>(0,l.jsx)(a.Z,{sx:{color:m,fontSize:g+"px"}},"star-outline-icon-"+e))),(0,l.jsx)("div",{children:(0,l.jsx)("div",{width:"2px"})}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{style:{backgroundColor:m,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*g+"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",w,"\xa0"]})})}),(0,l.jsx)("div",{children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",p,"important"),t.style.setProperty("font-size",.8*g+"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","("+v+")"]})})]})})}},7129:function(t,e,n){n.d(e,{V:function(){return o}});const o=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},3175:function(t,e,n){var o=n(51),c=n(5180),a=n(6417);e.Z=function(t){var e,n;const r=null!==(e=t.height)&&void 0!==e?e:"100%",i=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,a.jsxs)("div",{style:{width:i,height:r,overflow:"hidden",minHeight:r,minWidth:i},children:[(0,a.jsx)(c.Z,{height:r,width:i}),(0,a.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignContent:"center",width:"100%",height:"100%",position:"relative",zIndex:1,bottom:"100%",className:"whatmore-ios-css-relative-fix"},children:(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,a.jsx)(o.Z,{})})})]})}},5180:function(t,e,n){var o=n(6417);e.Z=function(t){var e,n,c;const a=null!==(e=t.height)&&void 0!==e?e:"100%",r=null!==(n=t.width)&&void 0!==n?n:"100%",i=null!==(c=t.borderRadius)&&void 0!==c?c:"10px";return(0,o.jsx)("div",{style:{height:a,width:a,borderRadius:i,overflow:"hidden",minHeight:a,minWidth:r,maxHeight:a,maxWidth:r},children:(0,o.jsx)("div",{style:{minHeight:a,minWidth:r},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(t,e,n){var o=n(7313),c=(n(6422),n(3175)),a=n(6417);e.Z=function(t){var e,n,r;const[i,s]=(0,o.useState)(!1),l=o.useRef(0),m=(0,o.useRef)(null),d=null!==(e=t.timeUpdateCallback)&&void 0!==e?e:()=>{},h=null!==(n=t.height)&&void 0!==n?n:"100%",u=null!==(r=t.width)&&void 0!==r?r:"100%";return(0,o.useEffect)((()=>{l.current=0;const t=setInterval((()=>{l.current=l.current+.03,m.current&&d(l.current,5),l.current>=5&&(l.current=0)}),30);return()=>{clearInterval(t)}}),[t.isPlaying]),(0,a.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:u,height:h,overflow:"hidden"},children:[(0,a.jsx)("div",{style:{width:i?"100%":"0px",height:i?"100%":"0px"},children:(0,a.jsx)("img",{ref:m,src:t.url,style:{objectFit:"cover",height:h,width:u,backgroundColor:"white"},alt:"image player",onLoad:()=>{s(!0)}})}),i?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(c.Z,{width:u,height:h})]})}},4892:function(t,e,n){n.d(e,{Z:function(){return d}});var o=n(7313),c=n(3933),a=n(868),r=n(8984),i=n(7300),s=(n(6422),n(2887)),l=n(6417);var m=function(t){var e,n;const a=(0,o.useRef)(null),[r,i,s]=(0,c.YD)({triggerOnce:!0}),m=null!==(e=t.height)&&void 0!==e?e:"100%",d=null!==(n=t.width)&&void 0!==n?n:"100%";return(0,o.useEffect)((()=>{a.current&&(t.isPlaying?a.current.play():a.current.pause())}),[t.isPlaying,i]),(0,l.jsx)("div",{ref:r,style:{width:m,height:d,overflow:"hidden"},children:i?(0,l.jsx)("video",{ref:a,className:"whatmore-video-player",width:d,height:m,preload:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,src:t.url,style:{backgroundColor:"white"}}):(0,l.jsx)("div",{width:d,height:m,ref:t=>{t&&t.style.setProperty("display","block","important")}})})};var d=function(t){var e,n,d;const[h,u,f]=(0,c.YD)({triggerOnce:!0});if((0,i.WJ)(t.event))return(0,l.jsx)(s.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback});const g=null!==(e=t.pauseFromPlayTimeInMs)&&void 0!==e?e:200;if((0,r.KE)())return(0,l.jsx)(m,{height:"100%",width:"100%",url:(0,a.V)(t.url),isPlaying:t.isPlaying,pauseFromPlayTimeInMs:g});const p=(0,o.useRef)(null),w=null!==(n=t.height)&&void 0!==n?n:"100%",v=null!==(d=t.width)&&void 0!==d?d:"100%";return(0,o.useEffect)((()=>{p.current&&(t.isPlaying?p.current.play():p.current.pause())}),[t.isPlaying,u]),(0,l.jsx)("div",{ref:h,style:{width:w,height:v,overflow:"hidden"},children:u?(0,l.jsx)("video",{ref:p,className:"whatmore-video-player",width:v,height:w,preload:"auto",loop:!0,playsInline:!0,muted:!0,src:(0,a.V)(t.url),style:{backgroundColor:"white"}}):(0,l.jsx)("div",{width:v,height:w,ref:t=>{t&&t.style.setProperty("display","block","important")}})})}},868:function(t,e,n){n.d(e,{V:function(){return i}});var o=n(9854),c=n(7753);const a={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.azureedge.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.azureedge.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.azureedge.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets.azureedge.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.azureedge.net"},r={"https://d3syezql093hs1.cloudfront.net":"https://whatmore-brand-video-assets.b-cdn.net","https://d2r0bijhs9mx1s.cloudfront.net":"https://whatmore-brand-thumbnail-video-assets.b-cdn.net","https://d2oouab8j9eigo.cloudfront.net":"https://whatmore-brand-story-assets.b-cdn.net","https://d28nus7q7qajdn.cloudfront.net":"https://whatmore-video-assets-old.b-cdn.net","https://d1zl4k1t5o4s75.cloudfront.net":"https://whatmore-brand-video-assets-720p.b-cdn.net"},i=function(t){const e=(0,c.MO)("whatmoreShopId");if(!t)return t;if(t.startsWith("https://cdn.shopify.com"))return t;if("AWSCDN"==(0,o.zp)(e))return t;if("AZURECDN"==(0,o.zp)(e)){if(t.includes(".azureedge.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(a))if(t.includes(e))return t.replace(e,a[e]);return t}}if("BUNNYCDN"==(0,o.zp)(e)){if(t.includes(".b-cdn.net"))return t;if(t.includes(".cloudfront.net")){for(const e of Object.keys(r))if(t.includes(e))return t.replace(e,r[e]);return t}}return t}},5456:function(t,e,n){n.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},6422:function(t,e,n){var o=n(7313),c=n(7753);e.Z=function(t){const[e,n]=(0,c.j1)("muted");return(0,o.useEffect)((()=>{}),[]),[e,n]}},8866:function(t,e,n){var o=n(7313);function c(){return[window.innerHeight,window.innerWidth]}e.Z=function(t){var[e,n]=c();const[a,r]=(0,o.useState)(["portrait",e,n]);return(0,o.useLayoutEffect)((()=>{function t(){var[t,e]=c();r(t>e?["portrait",t,e]:["landscape",t,e])}return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),screen.orientation&&screen.orientation.addEventListener("change",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),screen.orientation&&screen.orientation.removeEventListener("change",t)}}),[]),a}},9723:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.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=r},8816:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.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=r},417:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.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=r},4885:function(t,e,n){var o=n(5318);e.Z=void 0;var c=o(n(5045)),a=n(6417),r=(0,c.default)((0,a.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=r},3439:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[364],{8675:function(t,e,n){n.d(e,{Z:function(){return v}});var i,o,r=n(3271),l=n(5098),a=n(7313),s=n(9821),d=n(2634),c=n(5180),h=n(168),p=n(686);const x=(0,p.F4)(i||(i=(0,h.Z)(["\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(1.05);\n }\n"]))),m=(0,p.F4)(o||(o=(0,h.Z)(["\n 0% {\n transform: scale(1.05);\n }\n 100% {\n transform: scale(1);\n }\n"]))),f="\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"),g="\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 u=n(7753),w=n(7129),y=n(6417);var v=function(t){var e,n,[i,o]=(0,s.Z)();const[h]=(0,u.j1)("whatmorePrimaryFont");var p=(0,a.useContext)(w.V);const x=t.event,m=t.onClick,v=null===(e=t.isOnFocus)||void 0===e||e,j=(t.playOnUnfocus,null!==(n=t.animateOnFocus)&&void 0!==n&&n);return(0,y.jsxs)(r.xu,{animation:j?v?f:g:"none",marginTop:p.tileTopMargin,marginBottom:p.tileBottomMMargin,marginLeft:p.tileLeftMargin,marginRight:p.tileRightMargin,width:o,height:i,borderRadius:"lg",sx:{boxShadow:"0px 0px 10px 3px #B0B0B0"},overflow:"hidden",onClick:()=>{m(x)},cursor:"pointer",children:[(0,y.jsx)(l.Ee,{width:"full",height:"full",src:x.thumbnail_image,objectFit:"cover",fallback:(0,y.jsx)(c.Z,{width:o,height:i}),borderRadius:"lg"}),(0,y.jsx)(r.xu,{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden"},width:"full",height:"full",borderRadius:"lg",overflow:"hidden",className:"whatmore-ios-css-relative-fix",children:(0,y.jsxs)(r.Kq,{direction:"column",height:"full",width:"full",justifyContent:"space-between",children:[(0,y.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-t, transparent, blackAlpha.200, blackAlpha.400, blackAlpha.600)",children:(0,y.jsx)(r.Kq,{direction:"column",justifyContent:"flex-start",children:(0,y.jsx)(r.xu,{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px",children:(0,y.jsx)(r.Kq,{direction:"row",justifyContent:"space-between",children:(0,y.jsx)(d.Z,{event:x,fontSize:.05*i+"px",maxWidth:.8*o})})})})}),(0,y.jsx)(r.xu,{w:"100%",borderRadius:"lg",bgGradient:"linear(to-b, transparent, blackAlpha.300, blackAlpha.400, blackAlpha.500, blackAlpha.600)",children:(0,y.jsx)(r.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",alignContent:"center",children:(0,y.jsx)(r.xu,{width:"full",borderRadius:"lg",children:(0,y.jsxs)(r.Kq,{direction:"column",justifyContent:"space-between",alignContent:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px",children:[(0,y.jsx)(r.xv,{color:"white",fontSize:.08*o+"px",fontWeight:"normal",align:"left",children:" "}),(0,y.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"normal",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:x.title.substring(0,40)}),(0,y.jsx)(r.xv,{fontSize:.08*o+"px",fontWeight:"bold",align:"left",sx:{fontFamily:h+" !important",color:"white !important"},children:x.presenter_name.substring(0,15)})]})})})})]})})]})}},2634:function(t,e,n){var i=n(3271),o=n(4897),r=n(499),l=n(6417);e.Z=function(t){var e,n=t.event,a=t.fontSize,s=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:d,bannerText:c,timeToStartInMins:h}=o.Z.getEventStatus(n);return d.name===r.Z.LIVE.name?(0,l.jsx)(i.xu,{maxWidth:s,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:d.color,children:(0,l.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,l.jsx)(i.xv,{fontSize:a,fontWeight:"bold",color:"white",children:c})})}):(0,l.jsx)(i.xu,{maxWidth:s,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:d.color,children:(0,l.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,l.jsx)(i.xv,{fontSize:a,fontWeight:"medium",children:c})})})}},1092:function(t,e,n){var i=n(237),o=n(9854),r=n(7753),l=n(4136),a=n(7313),s=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,a.useContext)(l.I),n=(0,r.MO)("whatmoreShopId"),c=(0,r.MO)("whatmorePrimaryFont"),h=t.event,p=t.fontSize;if(h.total_views<=0)return(0,s.jsx)(s.Fragment,{});const x=(0,o.S_)(n);return"template-icon"==x?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XC)(n),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.al)(n),borderColor:(0,o.qP)(n)},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:[(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)(i.Z,{sx:{color:(0,o.aL)(n)+" !important",fontSize:p,fontWeight:"normal"}})}),(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aL)(n),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",c,"important"),t.style.setProperty("font-size",p,"important"),t.style.setProperty("display","flex","important"))},style:{alignItems:"center",fontWeight:"normal"},children:" "+d(h.total_views)+" "})})]})})}):"template-text"==x?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{style:{width:"fit-content",padding:"2px",paddingLeft:"6px",paddingRight:"6px",backgroundColor:(0,o.XC)(n),color:"white",borderRadius:"round"==e?"5px":"0px",borderWidth:(0,o.al)(n),borderColor:(0,o.qP)(n)},children:(0,s.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",gap:"3px",alignItems:"center"},children:(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,o.aL)(n),"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",c,"important"))},style:{fontSize:p,fontWeight:"bold"},children:" "+d(h.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 j}});var i=n(7313),o=n(9821),r=(n(3439),n(9723)),l=n(7753),a=n(4892),s=n(7129),d=n(6805),c=n(9854),h=n(1092),p=n(5945),x=n(4136),m=n(6417);var f=function(t){var[e,n]=(0,o.Z)();const{whatmoreUITheme:r}=(0,i.useContext)(x.I),[a]=(0,l.j1)("whatmorePrimaryFont"),[s]=(0,l.j1)("whatmorePrimaryColor"),[d]=(0,l.j1)("whatmoreSecondaryColor"),[h,f]=(0,i.useState)(0),g=(0,l.MO)("whatmoreShopId"),u=t.event,w=u.products.length;if(0==w)return(0,m.jsx)(m.Fragment,{});(0,i.useEffect)((()=>{const t=setInterval((()=>{f((t=>(t+1)%w))}),3e3);return()=>{clearInterval(t)}}),[]);const y=.3*n,v=y+"px",j=y+"px",b=.07*n+"px";return(0,m.jsx)("div",{style:{width:n+"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,m.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",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,m.jsx)("div",{style:{width:v,height:j,boxShadow:"round"==r?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==r?"5px":"0px",borderWidth:(0,c.al)(g),borderColor:(0,c.qP)(g),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,m.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,c.yO)(g),"important")},src:u.products[h].thumbnail_image,style:{width:"100%",height:"100%",borderRadius:"round"==r?"5px":"0px"},alt:"product image"})}),(0,m.jsx)("div",{style:{width:n-5-y+"px",height:j,borderRadius:"round"==r?"5px":"0px",overflow:"visible"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",height:"100%",justifyContent:"center",alignItems:"center"},children:(0,m.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",b,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",a,"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,p.s)(u.products[h].title)})})})]},h)})},g=n(3933),u=n(8984);function w(t){var e,[n,a]=(0,o.Z)();const[d]=(0,l.j1)("whatmoreShopId"),[h,p,x]=(0,g.YD)({triggerOnce:!0});var w=(0,i.useContext)(s.V);const y=t.event,v=null!==(e=t.unfocusedDisplay)&&void 0!==e&&e,j=.5*a;return(0,m.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,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)("p",{children:" "})}),w.showPlayButton&&!v?(0,m.jsx)("div",{style:{position:"relative",top:"10%",overflow:"hidden",marginLeft:"5px",marginRight:"5px",width:"100%"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"},children:(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)(r.Z,{sx:{color:"#F5F5F5 !important",opacity:(0,u.KE)()?0:.8,fontSize:j,filter:"drop-shadow(0 0 15px black);"}})})})}):(0,m.jsx)(m.Fragment,{}),(0,m.jsx)("div",{ref:h,children:p&&(0,c.PW)(d)?(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)(f,{event:y})}):(0,m.jsx)("div",{height:"20px"})})]})})}function y(t){var[e,n]=(0,o.Z)();const[i]=(0,l.j1)("whatmorePrimaryFont"),r=t.event;return r.title.trim().length?(0,m.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,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-end",alignContent:"center",width:"100%",height:"100%"},children:(0,m.jsx)("div",{style:{width:"100%",padding:"2px"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"flex-start",marginLeft:"5px",marginRight:"5px",marginBottom:"2px"},children:[(0,m.jsx)("p",{style:{color:"white",fontSize:.08*n+"px",fontWeight:"normal",textAlign:"left"},children:" "}),(0,m.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,m.jsx)(m.Fragment,{})}function v(t){const[e,n,i,r,a]=(0,o.Z)(),[s]=(0,l.j1)("whatmoreShowViews"),c=t.event,p=t.isOnFocus;return(0,m.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,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,m.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,m.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===s?(0,m.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,m.jsx)(h.Z,{event:c,fontSize:.07*n+"px"})})}):(0,m.jsx)(m.Fragment,{})})}),d.$w===a[d.YP]?(0,m.jsx)(m.Fragment,{}):p?(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-out-animation",children:(0,m.jsx)(y,{event:c})}):(0,m.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,m.jsx)(y,{event:c})})]})})}var j=function(t){var e,n,r;const[h,p,f,g,u]=(0,o.Z)();var y=(0,i.useContext)(s.V);const{whatmoreUITheme:j}=(0,i.useContext)(x.I),b=(0,l.MO)("whatmoreShopId"),C=t.event,F=t.onClick,P=null===(e=t.isOnFocus)||void 0===e||e,I=null!==(n=t.playOnUnfocus)&&void 0!==n&&n,k=null!==(r=t.animateOnFocus&&(0,c.iW)(b))&&void 0!==r&&r,R=(0,c.nz)(b);return(0,m.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top",y.tileTopMargin+"px","important"),t.style.setProperty("margin-bottom",y.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:p,height:h,borderRadius:"round"==j?"5px":"0px",boxShadow:"round"==j?R:null,borderWidth:(0,c.al)(b),borderColor:(0,c.qP)(b),overflow:"hidden",cursor:"pointer"},className:k?P?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{F(C)},children:[(0,m.jsx)(a.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:P||I,event:C}),(0,m.jsxs)("div",{style:{width:p,height:h},children:[(0,m.jsx)(v,{event:C,isOnFocus:P}),P||d.$w===u[d.YP]?(0,m.jsx)(w,{event:C,unfocusedDisplay:!P}):null]})]})}},9723:function(t,e,n){var i=n(5318);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(5318);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(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[530],{5523:function(n,t,e){e.r(t);var o=e(7313),r=e(8675),i=e(6090),a=e(7616),s=(e(6143),e(7244),e(123),e(9302)),c=e(2575),l=e(3271),h=e(9821),d=e(8866),u=(e(2279),e(7753)),m=e(9316),f=e(7129),g=e(9854),x=e(4136),j=e(7300),p=e(4920),C=e(6417);const v=(0,c.Z)({key:"whatmore-css-hv"});function w(n,t){var e=[];const o=t;for(let r=0;r<n.length;r+=o){const t=n.slice(r,r+o);e.push(t)}return e}function F(n){var t;const[e,r]=(0,o.useState)(!1),[i,a]=(0,o.useState)(!1),[s]=(0,u.j1)("whatmoreSecondaryColorShade600"),[c]=(0,u.j1)("whatmoreSecondaryColorShade300"),[h]=(0,u.j1)("whatmorePrimaryFont"),d=null!==(t=n.baseFontSize)&&void 0!==t?t:10,f=n.onClick;return(0,C.jsx)(l.xu,{width:"fit-content",height:"fit-content",paddingY:"4px",boxShadow:"lg",borderRadius:"md",backgroundColor:e?c:s,animation:i?m.mT:null,onClick:n=>{n.stopPropagation(),a(!0),f()},sx:{cursor:"pointer"},onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},children:(0,C.jsx)(l.Kq,{direction:"row",width:"fit-content",alignContent:"center",children:(0,C.jsxs)(l.xv,{fontSize:d,fontWeight:"normal",sx:{fontFamily:h+" !important",color:"white !important"},children:["\xa0"," view more ","\xa0"]})})})}function y(n){var t;const[e,i,a]=(0,h.Z)();var[s,c]=(0,o.useState)(0);const d=n.events,u=n.onClick,m=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,f=w(d,Math.floor(Math.min(a,d.length)));return(0,C.jsx)(l.M5,{children:(0,C.jsxs)(l.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:f.map(((n,t)=>t>s?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,C.jsx)(l.xu,{style:{margin:"10px"},children:(0,j.B6)(n)||(0,j.WJ)(n)?(0,C.jsx)(p.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}}):(0,C.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{u(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,C.jsx)(C.Fragment,{children:s<f.length-1?(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(F,{baseFontSize:.1*i,onClick:()=>{s>=f.length-1||c((n=>n+m))}})}):(0,C.jsx)(C.Fragment,{})})]})})}function k(n){var t;const[e,i,a,s]=(0,h.Z)();var[c,d]=(0,o.useState)(0);const u=n.events,m=n.onClick,f=null!==(t=n.seeMoreIncrement)&&void 0!==t?t:1,g=w(u,Math.floor(Math.min(a,u.length)));return(0,C.jsx)(l.M5,{paddingLeft:s+"px",paddingRight:s+"px",children:(0,C.jsxs)(l.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"center",alignContent:"center",children:[(0,C.jsx)(C.Fragment,{children:g.map(((n,t)=>t>c?(0,C.jsx)(C.Fragment,{}):(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:n.map(((n,t)=>(0,C.jsx)(l.xu,{style:{margin:"10px"},children:(0,j.B6)(n)||(0,j.WJ)(n)?(0,C.jsx)(p.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}}):(0,C.jsx)(r.Z,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:n,onClick:()=>{m(n)}})},"event-"+t)))},"event-stack-"+t)))}),(0,C.jsx)(C.Fragment,{children:c<g.length-1?(0,C.jsx)(l.Kq,{direction:"row",width:"100%",height:"fit-content",marginY:"10px",justifyContent:"center",alignContent:"center",children:(0,C.jsx)(F,{baseFontSize:.1*i,onClick:()=>{c>=g.length-1||d((n=>n+f))}})}):(0,C.jsx)(C.Fragment,{})})]})})}t.default=function(n){var t;const[e,r,c]=(0,d.Z)(),[h]=(0,u.j1)("whatmoreShopId"),[m]=(0,u.j1)("whatmorePrimaryColor"),[j]=(0,u.j1)("whatmoreSecondaryColor"),[p]=(0,u.j1)("whatmoreTitleFont"),w="portrait"==e?(0,u.MO)("whatmoreTitleFontSizePortrait"):(0,u.MO)("whatmoreTitleFontSize"),{whatmoreRootId:F}=(0,o.useContext)(x.I),S=n.events,M=n.onClick,O=null!==(t=(0,g.aR)(h))&&void 0!==t?t:p;function b(n){M(n)}return delete a.ZP.styles.global,(0,C.jsx)(s.C,{value:v,children:(0,C.jsx)("div",{children:(0,C.jsx)(i.x,{theme:a.ZP,cssVarsRoot:F,resetCSS:!1,children:(0,C.jsxs)(f.V.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[n.heading.trim().length>0?(0,C.jsx)(l.M5,{children:(0,C.jsx)(l.xv,{bgColor:m,bgClip:"text",fontSize:w,sx:{fontFamily:O+" !important"},align:"center",children:n.heading})}):(0,C.jsx)(C.Fragment,{}),"landscape"===e?(0,C.jsx)(k,{events:S,onClick:b,seeMoreIncrement:1}):(0,C.jsx)(y,{events:S,onClick:b,seeMoreIncrement:2})]})})})})}},9316:function(n,t,e){e.d(t,{mT:function(){return l}});var o,r,i,a=e(168),s=e(686);const c=(0,s.F4)(o||(o=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),l="\n ".concat(c," 0.2s linear;\n"),h=(0,s.F4)(r||(r=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),d=("\n ".concat(h," 0.5s infinite linear;\n"),(0,s.F4)(i||(i=(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(d," ").concat(3,"s ease-in-out;\n")},5945:function(n,t,e){function o(n){return"undefined"==typeof n||"undefined"==n||null==n?"":n.replace(/\w\S*/g,(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}))}e.d(t,{s:function(){return o}})},6143:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[607],{2607:function(t,e,n){n.r(e),n.d(e,{EventClickComponentContext:function(){return un},default:function(){return pn}});var i=n(4897),o=n(7313),r=n(5160),a=n(7753),l=n(6417);var d=n(499),s=n(6422),c=n(2210),h=n(8486),u=n(3271),p=n(9854),x=n(7789),g=n(7053),m=n(4844),f=(n(8493),n(264));var v=function(t){return(0,l.jsx)(f.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,event:t.event})},w=n(5098),j=n(3437),C=n(3455);var S,b,y,k,I=function(t){const[e,n]=(0,s.Z)(),[i,o,r,a]=(0,x.Z)(),d=.08*a;function c(){n(!e)}return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",children:e?(0,l.jsx)(C.Z,{sx:{color:"white",fontSize:d,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}}):(0,l.jsx)(j.Z,{sx:{color:"white",fontSize:d,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{c()}})})})},F=n(168),_=n(8449),T=n(5180),P=n(686);const O=(0,P.F4)(S||(S=(0,F.Z)(["\n 0%,10%,15% {\n opacity: 0; \n }\n 25%{\n opacity: 0.25;\n transform: translateY(-25%);\n }\n 50%{\n opacity: 0.5;\n transform: translateY(0%);\n }\n 75% {\n opacity: 0.75;\n transform: translateY(-8%)\n }\n 100%{\n opacity: 1;\n transform: translateY(0%)\n }\n"]))),z="".concat(O," 0.5s linear"),E=(0,P.F4)(b||(b=(0,F.Z)(["\n 30% { transform: scale(1.2); }\n 40%, 60% { transform: rotate(-20deg) scale(1.2); }\n 50% { transform: rotate(20deg) scale(1.2); }\n 70% { transform: rotate(0deg) scale(1.2); }\n 100% { transform: scale(1); }\n"]))),R="\n ".concat(E," 1.5s linear;\n"),M=(0,P.F4)(y||(y=(0,F.Z)(["\n 3% { transform: scale(1.2); }\n 4%, 6% { transform: rotate(-20deg) scale(1.2); }\n 5%,7% { transform: rotate(20deg) scale(1.2); }\n 8% { transform: rotate(0deg) scale(1.2); }\n 10% { transform: scale(1); }\n"]))),Z=("\n ".concat(M," 10s linear infinite;\n"),(0,P.F4)(k||(k=(0,F.Z)(["\n 0% { transform: scale(1); }\n 10% { transform: scale(1.2); }\n 20% { transform: scale(1); }\n"]))));"\n ".concat(Z," 5s ease-in-out infinite;\n");var q,K=n(4937);const H=(0,P.F4)(q||(q=(0,F.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"]))),L="\n ".concat(H," ").concat(3,"s ease-in-out;\n");function D(t){const[e,n,i,r]=(0,x.Z)(),[d]=(0,a.j1)("whatmoreSecondaryColor"),[s,c]=(0,o.useState)(0),h=t.event,p=t.onClick,g=h.products.length;t.isFirstProductsIconClickDone;(0,o.useEffect)((()=>{const t=setInterval((()=>{c((t=>(t+1)%g))}),3e3);return()=>{clearInterval(t)}}),[]);const m=.24,f=.024;var v=r*m+"px",j=r*m+"px",C=r*f*1.5+"px",S=r*f+"px",b=r*f*1.5+"px";if(void 0==h.products||0==h.products.length)return(0,l.jsx)(l.Fragment,{});var y=h.products;return(0,l.jsx)(u.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",height:"fit-content",width:"fit-content",borderRadius:"lg",children:(0,l.jsxs)(u.xu,{margin:"10px",width:v,height:j,boxShadow:"dark-lg",borderColor:"white",borderWidth:"2px",borderRadius:"lg",overflow:"visible",backgroundColor:"gray.100",animation:z,onClick:()=>p(),children:[(0,l.jsx)(w.Ee,{width:"100%",height:"100%",src:y[s].thumbnail_image,objectFit:"cover",borderRadius:"lg",animation:L},s),(0,l.jsx)(u.xu,{width:"100%",height:"100%",style:{position:"relative",zIndex:2,bottom:"100%"},className:"whatmore-ios-css-relative-fix",borderRadius:"lg",children:(0,l.jsx)(u.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"flex-end",children:(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",backgroundColor:d,borderRadius:"lg",marginX:"5px",marginY:"5px",paddingX:"2px",paddingY:"2px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:S,fontFamily:"sans-serif",fontWeight:"semibold",textAlign:"center",lineHeight:"100%",sx:{color:"white !important"},children:["\xa0","Shop Now","\xa0"]}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(K.Z,{sx:{color:"white",fontSize:b}})})]})})})}),(0,l.jsx)(u.Kq,{direction:"row",height:"fit-content",width:v,justifyContent:"flex-end",style:{position:"relative",zIndex:3,bottom:"210%",left:"5%"},className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.Ct,{fontSize:C,variant:"subtle",textColor:d,bgColor:"gray.100",borderRadius:"md",boxShadow:"dark-lg",children:g>1?g:""})})]})})}var A=function(t){const[e,n]=(0,a.j1)("isProductSwiperCatalogOpen"),[i,r,d,s]=(0,x.Z)(),[c,h]=(0,o.useState)(!1),p=t.onToggle,g=t.event,m=.07*s;return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.bK,{style:{marginTop:"10px"},children:e?(0,l.jsx)(_.Z,{sx:{color:"white",fontSize:m,filter:"drop-shadow(0 0 5px black);",position:"relative",zIndex:2},onClick:()=>{p("minimize-button")}}):(0,l.jsx)(D,{event:g,onClick:()=>{p("products-button"),h(!0)},isFirstProductsIconClickDone:c})})})},W=n(2634),B=n(8302);var N,V,U=function(t){const e=t.onCloseCallback,[n,i,o,r]=(0,x.Z)(),a=.08*r;return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",children:(0,l.jsx)(B.Z,{sx:{boxShadow:3,color:"white",fontSize:a,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),e(t)}})})})},Y=n(756),X=n(5428),J=n(8022);var G=function(t){var e,n;const[i,r,a,d]=(0,x.Z)(),[s,c]=(0,o.useState)(!0),{slideDirection:h}=(0,o.useContext)(un),p=null!==(e=t.showForSeconds)&&void 0!==e?e:3,g=null!==(n=t.delayInSeconds)&&void 0!==n?n:1;t.swipeUp,(0,o.useEffect)((()=>{const t=setTimeout((()=>{c(!1)}),1e3*p);return()=>{clearTimeout(t)}}),[]);const m=.15*d,f=.07*d,v=(0,P.F4)(N||(N=(0,F.Z)(["\n 0% {\n transform: translateY(0%) rotate(0deg);\n }\n 50% {\n transform: translateY(-100%) translateX(+10%) rotate(+30deg);\n }\n 100% {\n transform: translateY(0%) rotate(0deg);\n }\n "]))),w="".concat(v," infinite 1.5s linear"),j=(0,P.F4)(V||(V=(0,F.Z)(["\n 0% {\n transform: translateY(0%) rotate(0deg);\n }\n 50% {\n transform: translateX(30%) translateY(20%) rotate(-30deg);\n }\n 100% {\n transform: translateY(0%) rotate(0deg);\n }\n "]))),C="".concat(j," infinite 1.5s linear");return(0,l.jsx)(Y.MT,{unmountOnExit:!0,initialScale:.2,in:s,reverse:!0,delay:g,children:(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",paddingTop:100,borderRadius:"3xl",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"100%",height:"fit-content",justifyContent:"flex-end",children:[(0,l.jsx)(u.M5,{animation:"vertical"===h?w:C,children:"vertical"===h?(0,l.jsx)(X.Z,{sx:{color:"white !important",fontSize:m,filter:"drop-shadow(0 0 20px black);"}}):(0,l.jsx)(J.Z,{sx:{color:"white !important",fontSize:m,filter:"drop-shadow(0 0 20px black);"}})}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{textShadow:"dark-lg",fontSize:f+"px",fontWeight:"semibold",sx:{color:"white !important",textShadow:"0px 0px 20px black !important;"},children:"swipe for more"})})]})})})};var $=function(t){const[e,n]=(0,a.j1)("isFirstIndicatorRenderDone"),[i]=(0,a.j1)("indicatorRenderSeconds"),r=i,d=t.swipeUp;return(0,o.useEffect)((()=>{const t=setTimeout((()=>{n(!0)}),3e3+1e3*r);return()=>{clearTimeout(t)}}),[]),e?null:(0,l.jsx)(G,{showForSeconds:.8*r,delayInSeconds:3,swipeUp:d})},Q=n(9316),tt=n(5254);const et="15px";var nt=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreSecondaryColor"),[d]=(0,a.j1)("whatmorePrimaryFont"),[s]=(0,a.j1)("whatmoreShopId"),[c,h,g,m]=(0,x.Z)(),[f,v]=(0,o.useState)(!1),w=t.product,j=t.event,C=.1*g,S=.95*m,b=.05*m;return(0,l.jsx)(u.Kq,{direction:"row",width:m,height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",bgGradient:"linear(to-b, transparent, blackAlpha.400, blackAlpha.800)",children:(0,l.jsx)(u.Kq,{direction:"column",width:"fit-content",height:C,justifyContent:"center",aligntItems:"center",alignContent:"center",children:(0,l.jsx)(u.xu,{width:S+"px",height:"fit-content",padding:"6px",marginTop:et,backgroundColor:i,borderRadius:"5px",animation:f?Q.mT:null,onAnimationEnd:()=>{v(!1)},marginBottom:(0,p.pq)(s),onClick:()=>{v(!0),function(t,i){e||n||(async()=>{(0,r.wz)(t,i)})()}(j,w),window.location.href=function(t){return(0,p.lj)(s)?t.product_link+"?"+(0,p.aw)(s)+"&"+(0,p.n9)(s)+"&"+(0,p.v)(s):t.product_link}(w)},_hover:{backgroundColor:(0,tt.lA)(i,8)},cursor:"pointer",children:(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*b+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:d+" !important",color:"white !important"},children:"Shop Now"})})})})})},it=n(7009),ot=n(5945),rt=n(5456),at=n(6984),lt=n(6227),dt=n(7329);n(9111);function st(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),[d,s]=(0,o.useState)(!1),c=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,x=t.width,g=t.height,m=t.title,f=t.showInProgressIcon;return(0,l.jsx)(u.xu,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:f?(0,tt.lA)(n,8):n,onClick:t=>{t.stopPropagation(),h(),s(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:[(0,l.jsxs)(u.xv,{lineHeight:"100%",fontSize:1.4*c+"px",fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,p.KC)(r)+" !important"},children:["\xa0",m,"\xa0"]}),f?(0,l.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,l.jsx)(dt.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*c+"px"}})}):(0,l.jsx)(l.Fragment,{})]})})}function ct(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),[d,s]=(0,o.useState)(!1),c=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,x=t.width,g=t.height;return(0,l.jsx)(u.xu,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),s(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",children:(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xv,{lineHeight:"100%",fontSize:1.4*c,fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,p.KC)(r)+" !important"},children:["\xa0",(0,p.t)(r),"\xa0"]})})})})}function ht(t){var e;const[n]=(0,a.j1)("whatmorePrimaryFont"),[i]=(0,a.j1)("whatmoreShopId"),o=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),r=t.width,d=t.height;return(0,l.jsx)(u.xu,{width:r,height:d,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:"gray",borderWidth:"1px",onClick:t=>{t.stopPropagation()},children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:(0,l.jsxs)(u.xv,{color:"gray",lineHeight:"100%",fontSize:1.3*o,fontWeight:"semibold",sx:{fontFamily:n+" !important",color:"gray !important"},children:["\xa0"," Sold Out ","\xa0"]})})})}function ut(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[o]=(0,a.j1)("whatmoreShopId"),r=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),d=t.onClick,s=t.cartCount,c=t.width,h=t.height,p=t.onCartIconClick;return(0,l.jsx)(u.xu,{width:c,height:h,padding:"2x",boxShadow:"lg",backgroundColor:"white",borderColor:n,borderWidth:"1px",onClick:t=>{t.stopPropagation()},cursor:"pointer",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"5px",justifyContent:"center",children:[(0,l.jsx)(u.M5,{paddingX:"5px",onClick:()=>{p()},children:(0,l.jsx)(lt.Z,{sx:{color:n,fontSize:1.6*r}})}),(0,l.jsx)(u.xv,{color:n,fontSize:1.3*r,fontWeight:"semibold",sx:{fontFamily:i+" !important"},children:s}),(0,l.jsx)(u.M5,{paddingX:"5px",onClick:t=>{t.stopPropagation(),d()},children:(0,l.jsx)(at.Z,{sx:{color:n,fontSize:1.6*r}})})]})})}var pt=function(t){var e,n,i,o;const[r]=(0,a.j1)("whatmoreShopId"),d=t.event,s=t.product,c=null!==(e=t.baseFontSize)&&void 0!==e?e:10,h=null===(n=t.showAddedToCart)||void 0===n||n,u=t.cartState,p=t.cartCount,x=t.onClickAtc,g=t.onCartIconClick;function m(){x()}const f=null!==(i=t.width)&&void 0!==i?i:"100%",v=null!==(o=t.height)&&void 0!==o?o:"100%";return"errored"==u?(0,l.jsx)(Y.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:v,width:f},children:(0,l.jsx)(ht,{event:d,product:s,baseFontSize:c,width:f,height:v})}):"init"==u?0==p?(0,l.jsx)(ct,{onClick:m,event:d,product:s,baseFontSize:c,width:f,height:v}):h?(0,l.jsx)(Y.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:v,width:f},children:(0,l.jsx)(ut,{onClick:m,event:d,product:s,baseFontSize:c,cartCount:p,width:f,height:v,onCartIconClick:g})}):(0,l.jsx)(ct,{onClick:m,event:d,product:s,baseFontSize:c,width:f,height:v}):(0,l.jsx)(st,{onClick:m,event:d,product:s,baseFontSize:c,width:f,height:v,title:"awaitingVariantSelection"==u?"Done":"",showInProgressIcon:"atcApiCallInProgress"==u||"productVariantDetailsApiCallInProgress"==u})},xt=n(6163),gt=n(6967),mt=n(6233);const ft=(0,a.MO)("isInDesignMode"),vt=(0,a.MO)("isDemoBrand");async function wt(t,e,n,i,o,r){return"shopify"==n?(0,m.wW)(t,e,i):(ft||vt||(async()=>{(0,gt.FF)(o,r)})(),(0,mt.jg)(t,e,i))}function jt(t,e){return"shopify"==t?(0,m.JL)(e):(0,mt.TE)(e)}var Ct=function(t,e,n){const[i]=(0,a.j1)("whatmoreShopId"),[l]=(0,a.j1)("isInDesignMode"),[d]=(0,a.j1)("isDemoBrand"),[s,c]=(0,o.useState)(null),h=(0,o.useRef)(null),{closeClickComponent:u}=(0,o.useContext)(un),[x,m]=(0,o.useState)({state:"init",cart_count:t});function f(t,e){m({state:t,cart_count:null!==e&&void 0!==e?e:x.cart_count}),"init"!=t&&"errored"!=t?(0,a.bU)("whatmoreAllowAutoSlide",!1):(0,a.bU)("whatmoreAllowAutoSlide",!0)}function v(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}function w(t){const o=function(t){const e=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==e.length?null:e[0].id}(t);if(!o)return void f("init",x.cart_count);f("atcApiCallInProgress",null);wt(o,1,(0,p.Ip)(i),i,n,e).then((t=>{if(!t.ok)throw new Error(t.status);return t.json()})).then((t=>(function(t,e,n){l||d||(async()=>{(0,r.JX)(t,e,n)})()}(n,e,1),f("init",x.cart_count+1),(0,a.bU)("whatmoreAddedToCart",!0),t))).catch((t=>{f("errored",null),console.error("Error while adding to cart:",t)}))}return[x,s,function(){f("productVariantDetailsApiCallInProgress",null),(0,g.pO)(e,(0,p.Ip)(i),i).then((t=>{h.current=t.variants;const e=function(t){var e=[],n=[],i=[];return t.variants.forEach((o=>{var r,a,l;o.option1&&e.push({option:o.option1,available:null===(r=o.available)||void 0===r||r,type:t.options[0].name}),o.option2&&n.push({option:o.option2,available:null===(a=o.available)||void 0===a||a,type:t.options[1].name}),o.option3&&i.push({option:o.option3,available:null===(l=o.available)||void 0===l||l,type:t.options[2].name})})),e=e.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),n=n.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),i=i.reduce(((t,e,n)=>{var i=t.filter((t=>t.option==e.option));return 0==i.length?[...t,e]:(i[0].available=i[0].available|e.available,t)}),[]),[e,n,i]}(t);c(e),!function(t){return t[0].length<=1&&t[1].length<=1&&t[2].length<=1}(e)?f("awaitingVariantSelection",null):!function(){if(h.current&&h.current.length>=1)return h.current.filter((t=>t.available)).length>=1;return!1}()?f("errored",null):w([v(e[0]),v(e[1]),v(e[2])])})).catch((t=>{f("errored",null)}))},w,function(t){var e,n;const i=h.current.filter((e=>e.option1==t[0]&&e.option2==t[1]&&e.option3==t[2]));return 0==i.length?null:{price:(null!==(e=i[0].price)&&void 0!==e?e:0)/100,compare_price:(null!==(n=i[0].compare_at_price)&&void 0!==n?n:0)/100}},function(){"do_nothing"!==(0,p.v9)(i)&&("go_to_cart_page"!==(0,p.v9)(i)?"open_cart_slider"!==(0,p.v9)(i)||null!==u&&u():jt((0,p.Ip)(i),i))}]};var St=function(t){var e,n,i,r;t.product,t.event;const d=t.productVariantOptions,s=null!==(e=t.width)&&void 0!==e?e:"100%",c=null!==(n=t.height)&&void 0!==n?n:"fit-content",h=null!==(i=t.baseFontSize)&&void 0!==i?i:10,p=t.onOptionSelected,g=null!==(r=t.optionTitleColor)&&void 0!==r?r:"black",[m]=(0,a.j1)("isInDesignMode"),[f]=(0,a.j1)("isDemoBrand"),[v]=(0,a.j1)("whatmoreSecondaryColor"),[w]=(0,a.j1)("whatmorePrimaryFont"),[j]=(0,a.j1)("whatmoreShopId"),[C,S,b,y]=(0,x.Z)();function k(t){if(0==t.length)return null;const e=t.filter((t=>t.available));return 0==e.length?null:e[0].option}const[I,F]=(0,o.useState)([k(d[0]),k(d[1]),k(d[2])]);return(0,o.useEffect)((()=>{p(I)}),[I]),(0,l.jsx)(u.Kq,{direction:"column",width:s,height:c,justifyContent:"flex-start",alignItems:"center",spacing:"5px",children:d.map(((t,e)=>{if(0!=t.length)return(0,l.jsxs)(u.Kq,{width:"100%",direction:"column",alignItems:"center",justifyContent:"flex-start",children:[(0,l.jsx)(u.M5,{width:"100%",children:(0,l.jsx)(u.iz,{color:"blackAlpha.500",size:"1px",width:"20%"})}),(0,l.jsxs)(u.xv,{as:"b",fontSize:1.2*h+"px",sx:{color:g+" !important",fontFamily:w+" !important"},align:"center",children:["\xa0",t[0].type,"\xa0"]}),(0,l.jsx)(u.Eq,{justify:"center",children:t.map((t=>{return(0,l.jsx)(u.Uc,{children:(0,l.jsx)(u.xu,{borderRadius:"2px",padding:"2px",onClick:n=>{n.stopPropagation(),t.available&&F([0==e?t.option:I[0],1==e?t.option:I[1],2==e?t.option:I[2]])},backgroundColor:t.option==I[e]?v:"white",_hover:{bg:t.option==I[e]?v:(0,tt.lA)(v,5)},cursor:"pointer",children:(0,l.jsxs)(u.xv,{as:t.available?"samp":"s",fontSize:h+"px",sx:{color:(t.available?t.option==I[e]?"white":"black":"gray")+" !important",fontFamily:w+" !important"},align:"center",paddingX:(n=t.option,n.length>=3?"0px":.5*h+"px"),children:["\xa0",t.option,"\xa0"]})})},t.option);var n}))},e)]},e)}))})},bt=n(9219),yt=n(4136);var kt=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreSecondaryColor"),d=(0,a.MO)("whatmoreSecondaryColorShade900"),[s]=(0,a.j1)("whatmorePrimaryFont"),[c]=(0,a.j1)("whatmoreShopId"),[h,g,m,f]=(0,x.Z)(),[v,j]=(0,o.useState)(!1),[C,S]=(0,o.useState)(t.product),{whatmoreUITheme:b}=(0,o.useContext)(yt.I),[y,k,I,F,_,T]=Ct(0,C,t.event),[P,O]=(0,o.useState)(null),[z,E]=(0,o.useState)(parseFloat(C.price)),[R,M]=(0,o.useState)(parseFloat(C.compare_price)),[Z,q]=(0,o.useState)(C.currency),K=t.event,H=t.productClickHandler;(0,o.useEffect)((()=>{(0,p.N8)(c)&&(0,bt.Rb)(C,(0,p.Ip)(c),c).then((t=>{S(t),E(parseFloat(t.price)),M(parseFloat(t.compare_price)),q(t.currency)}))}),[]);var L=.68*f,D=.55*L,A=.4*L,W=L*(.55-.4),B=L+"px",N=A+"px",V=W+"px",U=.12*A;const X=(0,p.IT)(c);return(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:et,marginBottom:(0,p.pq)(c),width:B,height:"fit-content",boxShadow:"round"==b?"dark-lg":null,onClick:()=>{!function(t,i){e||n||(async()=>{(0,r.wz)(t,i)})(),H(i),j(!0)}(K,C)},backgroundColor:(0,tt.lA)("#ffffff",(0,p.U5)(c)),animation:v?Q.mT:null,borderRadius:"round"==b?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,p.al)(c),borderColor:(0,p.qP)(c)},children:[(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,l.jsx)(u.xu,{height:N,width:N,bgColor:d,children:(0,l.jsx)(w.Ee,{width:N,height:N,src:C.thumbnail_image,sx:{objectFit:(0,p.yO)(c)+" !important"}})}),(0,l.jsxs)(u.xu,{height:N,width:L-A+"px",children:[(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:(0,p.Fr)(c)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:2,fontSize:1.1*U+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:s+" !important",color:"black !important",padding:"0px !important",letterSpacing:"normal !important"},children:(0,ot.s)(null==C.title?"":C.title.toString())}),(0,p.is)(c)?(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==b?"lg":null,backgroundColor:"white",paddingX:"5px",paddingY:"5px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:1*U+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"black !important",padding:"0px !important",letterSpacing:"normal !important"},children:["\xa0"," "+(0,bt.jx)(z,"",c,Z)," \xa0"]}),(0,l.jsx)(u.M5,{children:(0,rt.B)(z,R)?(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:.9*U+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"gray !important",padding:"0px !important",letterSpacing:"normal !important",textDecoration:"line-through !important"},children:[" ",(0,bt.jx)(R,"",c,Z)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{})]}),(0,p.Fr)(c)?(0,l.jsx)(u.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,l.jsx)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:d,sx:{borderRadius:"round"==b?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,l.jsx)(it.Z,{sx:{color:i,fontSize:1.3*U+"px"}})}),(0,l.jsx)(u.xu,{width:"2px"})]})}):(0,l.jsx)(l.Fragment,{})]})]}),(0,l.jsx)(Y.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==y.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==y.state&&null!=k?(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",marginTop:.1*D+"px",marginBottom:.1*D+"px",overflowY:"auto",overflowX:"hidden",maxHeight:D*X+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(St,{width:B,height:"fit-conten",event:K,product:C,productVariantOptions:k,baseFontSize:1.2*U,onOptionSelected:t=>{!function(t){O(t);const e=_(t);e&&(E(e.price),M(e.compare_price))}(t)}})}):(0,l.jsx)(l.Fragment,{})}),(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:V,justifyContent:"center",alignItems:"center",children:(0,l.jsx)(pt,{baseFontSize:.3*W,event:K,product:C,cartState:y.state,cartCount:y.cart_count,onClickAtc:t=>{"init"==y.state?I():"awaitingVariantSelection"==y.state&&F(P)},onCartIconClick:()=>{T()}})})]})},It=n(3867);var Ft=function(t){var e,n,i;const[o]=(0,a.j1)("isInDesignMode"),[d]=(0,a.j1)("isDemoBrand"),[s]=(0,a.j1)("whatmoreSecondaryColor"),[c]=(0,a.j1)("whatmorePrimaryFont"),h=t.event,p=t.product,x=null!==(e=t.baseFontSize)&&void 0!==e?e:10,g=null!==(n=t.width)&&void 0!==n?n:"fit-content",m=null!==(i=t.height)&&void 0!==i?i:"fit-content";return(0,l.jsx)(u.rU,{href:p.product_link,color:s,onClick:()=>{!function(t,e){o||d||(async()=>{(0,r.$L)(t,e)})()}(h,p)},children:(0,l.jsx)(u.xu,{width:g,height:m,padding:"2x",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"5px",spacing:"5px",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{lineHeight:"100%",fontSize:1.4*x,fontWeight:"semibold",sx:{fontFamily:c+" !important",color:s+" !important"},children:" VIEW MORE "})}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(it.Z,{sx:{color:s,fontSize:1.4*x}})})]})})})},_t=n(7605);function Tt(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),[d,s]=(0,o.useState)(!1),c=(t.event,t.product,null!==(e=t.baseFontSize)&&void 0!==e?e:10),h=t.onClick,x=t.width,g=t.height,m=t.title;return(0,l.jsx)(u.xu,{width:x,height:g,padding:"2x",boxShadow:"lg",backgroundColor:n,onClick:t=>{t.stopPropagation(),h(),s(!0)},animation:d?Q.mT:null,onAnimationEnd:()=>{s(!1)},cursor:"pointer",children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,l.jsxs)(u.xv,{lineHeight:"100%",fontSize:1.4*c+"px",fontWeight:"semibold",sx:{fontFamily:i+" !important",color:(0,p.KC)(r)+" !important",minHeight:"0px !important"},children:["\xa0",m,"\xa0"]})})})}var Pt=function(t){var e,n,i;const[o]=(0,a.j1)("whatmoreShopId"),r=t.event,d=t.product,s=null!==(e=t.baseFontSize)&&void 0!==e?e:10,c=t.onShopNowClick,h=null!==(n=t.width)&&void 0!==n?n:"100%",u=null!==(i=t.height)&&void 0!==i?i:"100%";return(0,l.jsx)(Tt,{onClick:function(){c()},event:r,product:d,baseFontSize:s,width:h,height:u,title:"SHOP NOW"})};var Ot=function(t){var e;const[n]=(0,a.j1)("isInDesignMode"),[i]=(0,a.j1)("isDemoBrand"),[d]=(0,a.j1)("whatmoreSecondaryColor"),[s]=(0,a.j1)("whatmorePrimaryFont"),[c]=(0,a.j1)("whatmoreShopId"),[h,g,m,f]=(0,x.Z)(),[v,j]=(0,o.useState)(!1),[C,S]=(0,o.useState)(t.product),[b,y,k,I,F,_]=Ct(0,C,t.event),[T,P]=(0,o.useState)(null),[O,z]=(0,o.useState)(parseFloat(C.price)),[E,R]=(0,o.useState)(parseFloat(C.compare_price)),[M,Z]=(0,o.useState)(C.currency),q=t.event,K=t.productClickHandler,H=null!==(e=t.tileWidthFactor)&&void 0!==e?e:1;(0,o.useEffect)((()=>{(0,p.N8)(c)&&(0,bt.Rb)(C,brandDomainContext(c),c).then((t=>{S(t),z(parseFloat(t.price)),R(parseFloat(t.compare_price)),Z(t.currency)}))}),[]);var L=f*H,D=.3*L,A=L+"px",W=.7*D,B=.9*W,N=.12*D;const V=(0,p.IT)(c);function U(t,e){n||i||(async()=>{(0,r.wz)(t,e)})(),K(e),j(!0)}return(0,l.jsx)(u.Kq,{direction:"row",width:A,height:"fit-content",justifyContent:"center",children:(0,l.jsx)(u.xu,{marginTop:et,marginBottom:(0,p.pq)(c),width:A,onClick:t=>{},animation:v?Q.mT:null,borderRadius:"lg",onAnimationEnd:()=>{j(!1)},children:(0,l.jsxs)(u.Kq,{direction:"column",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",spacing:"0px",children:[(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"70%",justifyContent:"space-around",alignItems:"center",borderTopRadius:"lg",overflow:"hidden",onClick:()=>{U(q,C)},children:[(0,l.jsx)(u.xu,{height:W+"px",width:W+"px",children:(0,l.jsx)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",children:(0,l.jsx)(u.xu,{height:B+"px",width:B+"px",borderRadius:"lg",bgColor:"gray.100",overflow:"hidden",children:(0,l.jsx)(w.Ee,{width:B+"px",height:B+"px",src:C.thumbnail_image,objectFit:"cover"})})})}),(0,l.jsx)(u.xu,{height:W+"px",width:L-W+"px",children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"space-between",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",spacing:"2px",children:[(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:1.2*N+"px",fontWeight:"medium",lineHeight:"120%",sx:{fontFamily:s+" !important",color:"white !important"},children:(0,ot.s)(C.title.toString())}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",aligntItems:"center",marginTop:"5px",children:[(0,p.is)(c)?(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",aligntItems:"center",borderRadius:"lg",backgroundColor:"blackAlpha.500",paddingX:"10px",paddingY:"5px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:1*N+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"white !important"},children:["\xa0"," ",(0,bt.jx)(parseFloat(O),"",c,M)," \xa0"]}),(0,l.jsx)(u.M5,{children:(0,rt.B)(C.price,C.compare_price)?(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:.8*N+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"#F9F6EE !important",textDecoration:"line-through !important"},children:[" ",(0,bt.jx)(parseFloat(E),"",c,M)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(It.Z,{storeId:c,productId:C.client_product_id,productLink:C.product_link,fontSize:1*N,fontColor:"white"})})]})]})})]}),(0,l.jsx)(Y.Rg,{unmountOnExit:!0,initialScale:.5,in:"awaitingVariantSelection"==b.state,style:{height:"fit-content",width:"100%"},children:"awaitingVariantSelection"==b.state&&null!=y?(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",marginTop:.1*D+"px",marginBottom:.1*D+"px",overflowY:"auto",overflowX:"hidden",maxHeight:D*V+"px",overscrollBehavior:"contain",onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(St,{width:A,height:"fit-content",event:q,product:C,productVariantOptions:y,baseFontSize:1*N,onOptionSelected:t=>{!function(t){P(t);const e=F(t);e&&(z(e.price),R(e.compare_price))}(t)},optionTitleColor:"white"})}):(0,l.jsx)(l.Fragment,{})}),(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"30%",justifyContent:"center",alignItems:"center",paddingBottom:"2px",paddingLeft:"2px",paddingRight:"2px",children:[(0,l.jsx)(u.xu,{width:"100%",height:"100%",children:(0,l.jsx)(Ft,{baseFontSize:.8*N,event:q,product:C,width:"100%",height:"100%"})}),(0,l.jsx)(u.xu,{width:"100%",height:"100%",borderRadius:"md",overflow:"hidden",children:(0,p.Ib)(c)?(0,l.jsx)(Pt,{baseFontSize:.8*N,event:q,product:C,borderRadius:"md",onShopNowClick:t=>{U(q,C)}}):(0,l.jsx)(l.Fragment,{children:"form"===(0,p._5)(c)?(0,l.jsx)(xt.default,{baseFontSize:.8*N,event:q,product:C,width:"100%",height:"100%",showAddedToCart:!0}):(0,l.jsx)(pt,{baseFontSize:.8*N,event:q,product:C,cartState:b.state,cartCount:b.cart_count,borderRadius:"md",onClickAtc:t=>{"init"==b.state?k():"awaitingVariantSelection"==b.state&&I(T)},onCartIconClick:()=>{_()}})})})]})]})})})};var zt=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i]=(0,a.j1)("whatmoreSecondaryColor"),d=(0,a.MO)("whatmoreSecondaryColorShade900"),[s]=(0,a.j1)("whatmorePrimaryFont"),[c]=(0,a.j1)("whatmoreShopId"),[h,g,m,f]=(0,x.Z)(),[v,j]=(0,o.useState)(!1),[C,S]=(0,o.useState)(t.product),{whatmoreUITheme:b}=(0,o.useContext)(yt.I),[y,k]=(0,o.useState)(parseFloat(C.price)),[I,F]=(0,o.useState)(parseFloat(C.compare_price)),[_,T]=(0,o.useState)(C.currency),P=t.event;t.productClickHandler,(0,o.useEffect)((()=>{(0,p.N8)(c)&&(0,bt.Rb)(C,(0,p.Ip)(c),c).then((t=>{S(t),k(parseFloat(t.price)),F(parseFloat(t.compare_price)),T(t.currency)}))}),[]);var O=.68*f,z=.4*O,E=O+"px",R=z+"px",M=O*(.55-.4)+"px",Z=.12*z;function q(t){return(0,p.lj)(c)?t.product_link+"?"+(0,p.aw)(c)+"&"+(0,p.n9)(c)+"&"+(0,p.v)(c):t.product_link}function K(t,i){e||n||(async()=>{(0,r.wz)(t,i)})(),j(!0)}return(0,p.IT)(c),(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"flex-start",alignContent:"center",marginTop:et,marginBottom:(0,p.pq)(c),width:E,height:"fit-content",boxShadow:"round"==b?"dark-lg":null,onClick:()=>{K(P,C),window.location.href=q(C)},backgroundColor:(0,tt.lA)("#ffffff",(0,p.U5)(c)),animation:v?Q.mT:null,borderRadius:"round"==b?"xl":null,overflow:"hidden",onAnimationEnd:()=>{j(!1)},spacing:0,sx:{borderWidth:(0,p.al)(c),borderColor:(0,p.qP)(c)},children:[(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-start",alignContent:"center",cursor:"pointer",children:[(0,l.jsx)(u.xu,{height:R,width:R,bgColor:d,children:(0,l.jsx)(w.Ee,{width:R,height:R,src:C.thumbnail_image,sx:{objectFit:(0,p.yO)(c)+" !important"}})}),(0,l.jsxs)(u.xu,{height:R,width:O-z+"px",children:[(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:(0,p.Fr)(c)?"flex-end":"center",alignContent:"center",width:"fit-content",height:"100%",paddingX:"10px",paddingY:"10px",children:[(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},sx:{fontFamily:s+" !important",color:"black !important",lineHeight:"120% !important",fontWeight:"medium !important",fontSize:1.1*Z+"px !important",noOfLines:"2 !important",minHeight:"0px !important"},children:(0,ot.s)(null==C.title?"":C.title.toString())}),(0,p.is)(c)?(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"flex-start",alignContent:"center",marginTop:"5px",borderRadius:"round"==b?"lg":null,backgroundColor:"white",paddingX:"5px",paddingY:"5px",children:[(0,l.jsxs)(u.xv,{noOfLines:1,fontSize:1*Z+"px",fontWeight:"semibold",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"black !important",minHeight:"0px !important"},children:["\xa0"," "+(0,bt.jx)(y,"",c,_)," \xa0"]}),(0,l.jsx)(u.M5,{children:(0,rt.B)(y,I)?(0,l.jsxs)(u.xv,{as:"s",noOfLines:1,fontSize:.9*Z+"px",fontWeight:"medium",lineHeight:"100%",textAlign:"center",sx:{fontFamily:s+" !important",color:"gray !important"},children:[" ",(0,bt.jx)(I,"",c,_)]}):(0,l.jsx)(l.Fragment,{})})]}):(0,l.jsx)(l.Fragment,{})]}),(0,p.Fr)(c)?(0,l.jsx)(u.Kq,{className:"whatmore-ios-css-relative-fix",style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:"flex-start",height:"100%",width:"100%",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",marginTop:"5px",backgroundColor:"transparent",children:[(0,l.jsx)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",justifyContent:"center",alignItems:"center",backgroundColor:d,sx:{borderRadius:"round"==b?"5px":"0px",padding:"2px"},spacing:"0px",children:(0,l.jsx)(it.Z,{sx:{color:i,fontSize:1.3*Z+"px"}})}),(0,l.jsx)(u.xu,{width:"2px"})]})}):(0,l.jsx)(l.Fragment,{})]})]}),(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:M,justifyContent:"center",alignItems:"center",children:(0,l.jsx)(Pt,{baseFontSize:.8*Z,event:P,product:C,borderRadius:"md",onShopNowClick:t=>{K(P,C),window.location.href=q(C)}})})]})};var Et,Rt=function(t){const[e]=(0,a.j1)("whatmoreShopId"),n=(0,p.ey)(e),i=t.event,o=t.product;return"broad-tile"==n?(0,l.jsx)(kt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"broad-tile-no-cta"==n?(0,l.jsx)(zt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler}):"link_only"==n?(0,l.jsx)(nt,{product:t.product,event:t.event}):"narrow-tile"==n?(0,l.jsx)(Ot,{event:i,product:o,productClickHandler:t.productClickHandler,tileWidthFactor:i.products.length>1?.68:void 0}):(0,l.jsx)(kt,{product:t.product,event:t.event,productClickHandler:t.productClickHandler})};const Mt=(0,P.F4)(Et||(Et=(0,F.Z)(["\n 0% { \n opacity: 0;\n }\n 10%{\n opacity: 0.5;\n }\n 20%{\n opacity: 1;\n }\n \n"]))),Zt=("\n ".concat(Mt," ").concat(3,"s ease-in-out;\n"),function(t,e){return(0,p.lj)(e)?t+"?"+(0,p.aw)(e)+"&"+(0,p.n9)(e)+"&"+(0,p.po)(e):t});var qt=function(t){const[e,n,i,r]=(0,x.Z)(),[d,s]=(0,o.useState)(!1),{whatmoreUITheme:c}=(0,o.useContext)(yt.I),h=(0,a.MO)("whatmoreSecondaryColor"),g=(0,a.MO)("whatmoreSecondaryColorShade1200"),m=(0,a.MO)("whatmorePrimaryFont"),f=(0,a.MO)("whatmoreShopId"),v=(t.event,t.cta),w=.05*r;return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Kq,{direction:"row",height:"fit-content",width:"100%",justifyContent:"center",marginBottom:.03*r+"px",marginTop:.03*r+"px",children:(0,l.jsx)(u.rU,{href:Zt(v.cta_link,f),color:"white",children:(0,l.jsx)(u.xv,{fontSize:w+"px",variant:"subtle",textColor:h,bgColor:g,sx:{boxShadow:"round"==c?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==c?"5px":"0px",borderWidth:(0,p.al)(f),borderColor:(0,p.qP)(f),fontFamily:m+" !important",textAlign:"center!important"},paddingY:"3px",paddingX:.05*r+"px",children:v.cta_title})})})})},Kt=n(3388);var Ht=function(t){const[e,n,i,o]=(0,x.Z)(),[r]=(0,a.j1)("whatmoreShopId"),d=t.event,s=t.productClickHandler,g=(0,p.ey)(r);if(!(0,Kt.kT)(d))return(0,l.jsx)(l.Fragment,{});if(1==d.products.length&&(void 0==d.cta||0==d.cta.length)){const t=d.products[0];return(0,p.rn)(r)?(0,l.jsx)(u.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))",children:(0,l.jsx)(u.M5,{children:(0,l.jsx)(Ot,{event:d,product:t,productClickHandler:s},d.event_id+t.product_id)})}):(0,l.jsx)(u.Kq,{direction:"horizontal",width:o,height:"fit-content",justifyContent:"center",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,l.jsx)(u.M5,{children:(0,l.jsx)(Rt,{event:d,product:t,productClickHandler:s},d.event_id+t.product_id)})})}return(0,l.jsx)(u.M5,{children:(0,l.jsx)("div",{onTouchStart:t=>{t.stopPropagation()},onTouchEnd:t=>{t.stopPropagation()},children:(0,l.jsx)(u.xu,{width:o+"px",backgroundImage:"narrow-tile"==g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4), rgba(0,0,0,0.6), rgba(0,0,0,0.8))":null,children:(0,l.jsxs)(c.tq,{slidesPerView:1==d.products.length?1:1.4,initialSlide:d.products.length<=2?0:1,centeredSlides:!0,modules:[h.Gk],mousewheel:{invert:!1,thresholdDelta:20},nested:!0,children:[d.products.map((t=>(0,l.jsx)(c.o5,{children:(0,l.jsx)(u.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,l.jsx)(Rt,{event:d,product:t,productClickHandler:s},d.event_id+t.product_id)})},d.event_id+t.product_id))),void 0!=d.cta&&d.cta.map((t=>(0,l.jsx)(c.o5,{children:(0,l.jsx)(u.Kq,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-end",alignItems:"center",children:(0,l.jsx)(qt,{event:d,cta:t},d.event_id+t.cta_id)})},d.event_id+t.cta_id)))]})})})})};var Lt=function(t){const[e,n]=(0,a.j1)("isProductSwiperCatalogOpen"),i=t.event,r=t.productClickHandler;return(0,o.useContext)(un).isIOS&&e?(0,l.jsx)(Ht,{event:i,productClickHandler:r},i.event_id):(0,l.jsx)(Y.MT,{unmountOnExit:!0,initialScale:.2,in:e,children:(0,l.jsx)(Ht,{event:i,productClickHandler:r},i.event_id)})};function Dt(t){const e=t.event,[n,i,o,r]=(0,x.Z)(),[d]=(0,a.j1)("whatmorePrimaryFont");return(0,l.jsx)(u.xu,{width:"fit-content",height:"fit-content",padding:"5px",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",height:"fit-content",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{overflow:"hidden",size:.15*r+"px",children:(0,l.jsx)(w.Ee,{width:"100%",height:"100%",src:e.thumbnail_image})})}),(0,l.jsx)(u.xu,{width:"fit-content",height:"fit-content",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"fit-content",height:"fit-content",children:[(0,l.jsx)(u.xv,{color:"white",fontSize:.05*r+"px",fontWeight:"bold",fontFamily:"sans-serif",align:"left",sx:{fontFamily:d+" !important"},children:e.presenter_name.substring(0,15)}),(0,l.jsx)(W.Z,{event:e,fontSize:.03*r+"px"})]})})]})})}var At,Wt=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i,r]=(0,a.j1)("isProductSwiperCatalogOpen"),[d,c]=(0,s.Z)(),[h,x]=(0,a.j1)("isFirstIndicatorRenderDone"),g=(0,o.useContext)(un),[m]=(0,a.j1)("whatmoreShopId"),f=t.event,v=t.isLast,w=t.onCloseCallback,j=t.focusRef,C=t.productClickHandler;return(0,l.jsx)(u.xu,{width:"full",height:"full",borderRadius:"md",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,l.jsx)(u.xu,{width:"full",margin:"2px",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"space-between",paddingRight:"10px",paddingLeft:"10px",children:[(0,l.jsx)(Dt,{event:f}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,l.jsx)(I,{focusRef:j}),(0,l.jsx)(U,{event:f,onCloseCallback:w})]})]})}),(0,l.jsx)(u.xu,{width:"100%",height:"100%",onClick:()=>{c(!d)}}),(0,l.jsxs)(u.xu,{width:"full",height:"fit-content",children:[g.totalEvents>1&&!h&&g.showSwipeIndicator?(0,l.jsx)(u.xu,{width:"full",margin:"2px",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,l.jsx)($,{swipeUp:!v})})}):null,void 0!=f.products&&f.products.length>0?(0,l.jsxs)(u.xu,{width:"full",children:[(0,p.Jm)(m)?(0,l.jsx)(u.xu,{w:"100%",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,l.jsx)(A,{event:f,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,l.jsx)(Lt,{event:f,productClickHandler:C})})]}):(0,l.jsx)("div",{})]})]})})};function Bt(t){var e;const[n]=(0,a.j1)("whatmorePrimaryFont"),i=t.setOpenShopNow,o=t.FONT_SIZE,r=t.setLockSwiper,d=null!==(e=t.headerText)&&void 0!==e?e:"Shop Now";return(0,l.jsxs)(u.kC,{justifyContent:"center",paddingTop:"10px",paddingBottom:"8px",width:"100%",children:[(0,l.jsx)(u.kC,{width:"10%",display:"flex !important"}),(0,l.jsx)(u.kC,{width:"90%",justifyContent:"center",children:(0,l.jsx)(u.xv,{align:"center",fontSize:1.25*o,fontWeight:"semibold",sx:{color:"black !important",fontFamily:n+" !important"},as:"b",children:d})}),(0,l.jsx)(u.kC,{justifyContent:"center",width:"10%",alignItems:"center",onClick:t=>{t.stopPropagation(),i(!1),r(!1)},cursor:"pointer",children:(0,l.jsx)(B.Z,{sx:{boxShadow:3,color:"black !important",fontSize:1.2*o,filter:"drop-shadow(0 0 5px black);"}})})]})}function Nt(t){const[e,n,i,o]=(0,x.Z)(),[r]=(0,a.j1)("whatmorePrimaryFont"),[d]=(0,a.j1)("whatmoreShopId"),s=(t.data,t.event,t.product,t.setShowOptionsChart);var c=.4*o*.8*.13;const h=(0,P.F4)(At||(At=(0,F.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),g="".concat(h," 0.5s");return(0,l.jsx)(u.Kq,{bg:"black",height:"100%",opacity:"100%",width:"100%",borderTopRadius:"xl",animation:g,justifyContent:"center",alignItems:"center",children:(0,l.jsxs)(u.xu,{width:"100%",height:"100%",children:[(0,l.jsx)(u.xu,{width:"100%",height:"100%",children:(0,l.jsx)(w.Ee,{width:"100%",height:"100%",src:(0,p.KM)(d),objectFit:"cover",borderTopRadius:"xl"})}),(0,l.jsx)(u.Kq,{width:"100%",height:"100%",direction:"column",justifyContent:"flex-start",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-end",alignItems:"center",onClick:()=>{s(!1)},cursor:"pointer",padding:"10px",children:(0,l.jsx)(B.Z,{sx:{boxShadow:3,color:"white !important",fontSize:2*c,filter:"drop-shadow(0 0 5px black);"}})})})]})})}var Vt=n(9748),Ut=n(5630),Yt=(n(51),n(6665));function Xt(t){var e;const[n,i]=(0,o.useState)(null),r=t.product;return(0,o.useEffect)((()=>{(0,m.bN)(r).then((t=>{i(t.variants)}))}),[]),null==n?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)("div",{style:{width:null!==(e=t.width)&&void 0!==e?e:"100%",borderRadius:"6px",overflow:"hidden",height:1.5*t.height,backgroundColor:"white"},children:(0,l.jsxs)("form",{method:"post",action:"/cart/add","accept-charset":"UTF-8",class:"shopify-product-form",enctype:"multipart/form-data",is:"product-form",children:[(0,l.jsx)("input",{type:"hidden",name:"form_type",value:"product"}),(0,l.jsx)("input",{type:"hidden",name:"utf8",value:"\u2713"}),(0,l.jsx)("input",{type:"hidden",name:"id",value:t.variantId}),(0,l.jsx)("input",{type:"hidden",value:t.product.product_link,name:"productUrl"}),(0,l.jsx)("div",{class:"shiprocket-headless","data-type":"product"}),(0,l.jsx)("textarea",{"data-variant-json":"",class:"hide","aria-hidden":"true","aria-label":"Product JSON",children:JSON.stringify(n).toString()})]})})}function Jt(t){const e=(0,a.MO)("whatmoreShopId"),n=t.product;return"63748341981"==e||"55845847231"==e||"47837511839"==e?(0,l.jsx)(Xt,{product:n,variantId:t.variantId,height:t.height,width:t.width}):(0,l.jsx)(l.Fragment,{})}function Gt(t){var e,n;const[i]=(0,a.j1)("isInDesignMode"),[d]=(0,a.j1)("isDemoBrand"),[s]=(0,a.j1)("whatmoreShopId"),[c]=(0,a.j1)("whatmorePrimaryFont"),[h]=(0,a.j1)("whatmoreSecondaryColor"),{whatmoreUITheme:x}=(0,o.useContext)(yt.I),[g,f]=(0,o.useState)(!1),{closeClickComponent:v}=(0,o.useContext)(un),[w,j]=(0,o.useState)(!1),C=t.FONT_SIZE,S=t.data,b=t.event,y=t.selectedVariantId,k=t.product,I=t.itemQuantity,F=t.PRODUCT_TILE_WIDTH,_=t.cartItemCount,T=t.addToCartFlag,P=t.setAddToCartFlag,O=t.soldOutFlag,z=t.setSoldOutFlag;const E=t=>{!function(t,e){i||d||(async()=>{(0,r.$L)(t,e)})()}(b,k),"buy-now"==t&&function(t,e,n,i){"shopify"==n?(0,m.bj)(t,e,i):(0,mt.rY)(t,e,i)}(void 0!==y?y:S.product.variants[0].id,I,(0,p.Ip)(s),s),"view-more"==t&&(window.location.href=k.product_link+"?"+(0,p.aw)(s)+"&"+(0,p.n9)(s)+"&"+(0,p.v)(s)+((0,p.C0)(s)?"¤cy="+k.currency:""))};return(0,l.jsxs)(u.Kq,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",position:t.position,bg:"#D3D3D3",borderRadius:"10px",bottom:"10px",left:"50%",zIndex:"1",transform:"translateX(-50%)",direction:"row",width:"95%",paddingX:"20px",paddingTop:"15px",paddingBottom:"15px",spacing:"15px",fontSize:.9*C,children:[" ",O?(0,l.jsx)(Vt.zx,{width:"90%",bg:"#252324",variant:"outline",opacity:4,_hover:{bg:"#252324"},height:2.5*C,disabled:!0,sx:{borderRadius:"round"==x?"5px":"0px",borderWidth:(0,p.al)(s),borderColor:(0,p.qP)(s)},children:(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:"white !important",fontFamily:c+" !important"},children:"Sold Out"})}):(0,l.jsxs)(u.Kq,{direction:"vertical"==(0,p.rc)(s)?"column":"row",width:"100%",spacing:"15px",fontSize:.9*C,justifyContent:"center",children:[(0,p.$b)(s)?(0,l.jsx)(Vt.zx,{width:"90%",height:2.5*C,onClick:async t=>{if(t.stopPropagation(),f(!0),function(t,e,n){i||d||(async()=>{(0,r.JX)(t,e,n)})()}(b,k,I),void 0===y)return void console.log("ERROR ! Select the option.");const e=void 0!==y?y:S.product.variants[0].id,n=S.product.variants.filter((t=>t.id==e))[0].price;wt(e,I,(0,p.Ip)(s),s,b,k).then((t=>{if(!t.ok)throw new Error(t.status);return f(!1),P(!0),t.json()})).then((t=>((0,a.bU)("whatmoreAddedToCart",!0),(0,p.k)(s)&&(i||(async()=>{const t=await(0,m.Mj)().then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for initiateOrderTrackingEvent.",t)}));(0,_t.a)(s,window.location.hostname,"",b.event_id,k.product_id,e,n,I,"add-to-cart",t.token)})()),t))).catch((t=>{f(!1),z(!0),console.error("Error:",t)}))},sx:{paddingLeft:"5px !important",paddingRight:"5px !important",backgroundColor:h+" !important",borderRadius:"round"==x?"5px":"0px",borderWidth:(0,p.al)(s),borderColor:(0,p.qP)(s),_hover:{color:h+" !important",backgroundColor:"transparent !important",borderWidth:(0,p.p5)(s),borderColor:null!==(e=(0,p.yx)(s))&&void 0!==e?e:h}},children:g?(0,l.jsx)(Ut.$,{display:"flex !important",color:"white"}):(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:(0,p.KC)(s)+" !important",fontFamily:c+" !important",_hover:{color:h+" !important"}},fontSize:C,children:(0,p.t)(s)})}):(0,l.jsx)(l.Fragment,{}),(0,p.cD)(s)?(0,l.jsx)(l.Fragment,{children:(0,p.H$)(s)?(0,l.jsx)(Jt,{variantId:void 0!==y?y:S.product.variants[0].id,product:k,height:2.5*C,width:"90%",fontSize:C,fontFamily:c}):(0,l.jsx)(l.Fragment,{children:(0,p.St)(s)?(0,l.jsx)(Vt.zx,{width:"90%",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*C,onClick:()=>E("view-more"),sx:{backgroundColor:"white !important",borderRadius:"round"==x?"5px":"0px",borderWidth:(0,p.al)(s),borderColor:(0,p.qP)(s)},children:(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:h+"!important",fontFamily:c+" !important"},fontSize:C,children:(0,p.Z5)(s)})}):(0,l.jsx)(Vt.zx,{width:"90%",variant:"outline",_hover:{bg:"#E9DCC9"},height:2.5*C,onClick:()=>E("buy-now"),sx:{backgroundColor:"white !important",borderRadius:"round"==x?"5px":"0px",borderWidth:(0,p.p5)(s),borderColor:null!==(n=(0,p.yx)(s))&&void 0!==n?n:h,_hover:{backgroundColor:"transparent !important"}},children:(0,l.jsx)(u.xv,{fontWeight:"extrabold",sx:{color:h+"!important",fontFamily:c+" !important"},fontSize:C,children:(0,p.Zu)(s)})})})}):(0,l.jsx)(l.Fragment,{})]}),(0,l.jsx)(l.Fragment,{children:(0,p.$b)(s)?(0,l.jsx)(l.Fragment,{children:w?(0,l.jsx)(u.kC,{width:"10%",spacing:"0",right:0,children:(0,l.jsx)("div",{className:"whatmore-rotate-indefinitely",children:(0,l.jsx)(Yt.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*C}})})}):(0,l.jsxs)(u.kC,{animation:T?R:"none",onAnimationEnd:()=>P(!1),width:"10%",spacing:"0",right:0,onClick:()=>{"do_nothing"!==(0,p.v9)(s)&&("go_to_cart_page"!==(0,p.v9)(s)?(j(!0),function(t){"open_cart_slider"!==(0,p.v9)(t)||null!==v&&v()}(s)):jt((0,p.Ip)(s),s))},cursor:"pointer",children:[(0,l.jsx)(lt.Z,{sx:{filter:"drop-shadow(0 0 15px black);",color:"#F5F5F5",fontSize:2.5*C}}),_>0?(0,l.jsx)(u.Cd,{padding:"2px",bg:"white",size:1.1*C,top:.03*-F,verticalAlign:"top",position:"relative",left:.11*-F,zIndex:"1",children:(0,l.jsx)(u.xv,{sx:{color:"black !important",fontFamily:c+" !important"},fontWeight:"bold",fontSize:.7*C,children:_})}):(0,l.jsx)(l.Fragment,{})]})}):(0,l.jsx)(l.Fragment,{})})]})}function $t(t){const[e]=(0,a.j1)("whatmoreSecondaryColor"),[n]=(0,a.j1)("whatmorePrimaryFont"),i=t.FONT_SIZE,o=t.data;return(0,l.jsxs)(u.Kq,{direction:"column",paddingX:"20px",height:"fit-content",children:[(0,l.jsx)(u.Kq,{children:(0,l.jsx)(u.xv,{fontSize:i,fontWeight:"bold",justifyContent:"center",sx:{color:"black !important",fontFamily:n+" !important"},children:"Description"})}),(0,l.jsx)(u.Kq,{children:(0,l.jsx)(u.xu,{overflowY:"auto",scrollBehavior:"smooth",sx:{"::-webkit-scrollbar":{display:"none"}},children:(0,l.jsx)(u.xv,{fontSize:.8*i,justifyContent:"normal",dangerouslySetInnerHTML:{__html:(r=o.product.body_html,r.replace(/style="[^"]*color[^"]*"/gi,""))},sx:{fontFamily:n+" !important",lineHeight:"140% !important"}})})})]});var r}function Qt(t){var e;const[n,i]=(0,o.useState)(t.product),[r]=(0,a.j1)("whatmoreSecondaryColor"),[d]=(0,a.j1)("whatmorePrimaryFont"),[s]=(0,a.j1)("whatmoreShopId");(0,a.MO)("whatmoreSecondaryColorShade900");(0,o.useEffect)((()=>{(0,p.N8)(s)&&(0,bt.Rb)(n,(0,p.Ip)(s),s).then((t=>{i(t)}))}),[]);const c=t.FONT_SIZE,h=t.data,x=t.itemPrice;const g=null===(e=t.data.product.variants.find((e=>e.id==t.selectedVariantId)))||void 0===e?void 0:e.compare_at_price,m=g&&0!=g?Math.ceil((g-x)/g*100):NaN;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(u.kC,{direction:"column",paddingLeft:"20px",paddingRight:"20px",paddingY:"5px",children:[(0,l.jsx)(u.kC,{children:(0,l.jsx)(u.rU,{href:function(t){return(0,p.lj)(s)?t.product_link+"?"+(0,p.aw)(s)+"&"+(0,p.n9)(s)+"&"+(0,p.v)(s)+((0,p.C0)(s)?"¤cy="+t.currency:""):t.product_link+((0,p.C0)(s)?"?currency="+t.currency:"")}(n),color:"white",children:(0,l.jsx)(u.xv,{isTruncated:!0,noOfLines:2,padding:"2px",fontSize:1.1*c,sx:{color:"black !important",lineHeight:"140% !important",fontFamily:d+" !important"},as:"b",children:h.product.title})})}),(0,l.jsxs)(u.kC,{direction:"row",gap:"6px",paddingTop:"4px",children:[g&&g!=x&&(0,l.jsx)(u.xv,{as:"s",padding:"2px",fontSize:1.2*c,fontWeight:"semibold",sx:{color:"gray !important",fontFamily:d+" !important"},children:(0,bt.jx)(parseFloat(g)," ",s,n.currency)}),(0,l.jsx)(u.xv,{as:"b",padding:"2px",fontSize:1.2*c,fontWeight:"semibold",sx:{color:"black !important",fontFamily:d+" !important"},children:(0,bt.jx)(parseFloat(x)," ",s,n.currency)}),!isNaN(m)&&0!=m&&(0,l.jsx)(u.xu,{display:"flex",bg:"green",alignItems:"center",borderRadius:"4px",width:"fit-content",px:"8px",children:(0,l.jsx)(u.xv,{fontSize:"14px",sx:{color:"white !important",fontFamily:d+" !important"},children:"".concat(m,"% off")})})]})]})})}function te(t){var e,n;const[i]=(0,a.j1)("whatmorePrimaryFont"),[r]=(0,a.j1)("whatmoreShopId"),{setShowOptionsChart:d}=(0,o.useContext)(ce),[s,c]=(0,o.useState)({}),h=(0,a.MO)("whatmoreSecondaryColorShade300"),x=((0,a.MO)("whatmoreSecondaryColorShade600"),(0,a.MO)("whatmoreSecondaryColorShade1200"),t.selectedColor),g=t.selectOptionFirstHandler,m=t.selectOptionSecondHandler,f=t.selectOptionThirdHandler,v=(t.PRODUCT_TILE_HEIGHT,t.PRODUCT_TILE_WIDTH,t.FONT_SIZE),j=t.data,C=(t.product,(t,e)=>{c((n=>({...n,[t]:e})))});(0,o.useEffect)((()=>{c((t=>{var e,n,i,o,r,a,l,d,s,c,h,u,p,x,g,m,f,v,w,C;return{...t,[null===j||void 0===j||null===(e=j.product)||void 0===e||null===(n=e.options)||void 0===n||null===(i=n[0])||void 0===i?void 0:i.name]:null===(o=j.product.options)||void 0===o||null===(r=o[0])||void 0===r||null===(a=r.values)||void 0===a?void 0:a[0],[null===j||void 0===j||null===(l=j.product)||void 0===l||null===(d=l.options)||void 0===d||null===(s=d[1])||void 0===s?void 0:s.name]:null===j||void 0===j||null===(c=j.product)||void 0===c||null===(h=c.options)||void 0===h||null===(u=h[1])||void 0===u||null===(p=u.values)||void 0===p?void 0:p[0],[null===j||void 0===j||null===(x=j.product)||void 0===x||null===(g=x.options)||void 0===g||null===(m=g[2])||void 0===m?void 0:m.name]:null===j||void 0===j||null===(f=j.product)||void 0===f||null===(v=f.options)||void 0===v||null===(w=v[2])||void 0===w||null===(C=w.values)||void 0===C?void 0:C[0]}}))}),[]);let S=[];for(let o=0;o<(null===j||void 0===j||null===(b=j.product)||void 0===b||null===(y=b.images)||void 0===y?void 0:y.length);o++){var b,y,k,I;(null===j||void 0===j||null===(k=j.product)||void 0===k||null===(I=k.images[o].variant_ids)||void 0===I?void 0:I.length)>0&&S.push(o)}return(0,l.jsx)(u.kC,{direction:"row",paddingLeft:"20px",paddingRight:"20px",paddingY:"10px",children:(null===j||void 0===j||null===(e=j.product)||void 0===e||null===(n=e.options)||void 0===n?void 0:n.length)>0&&(0,l.jsx)(u.kC,{direction:"column",w:"fit-content",justifyContent:"flex-end",gap:"4px",children:j.product.options.map(((e,n)=>{var o,a;return(0,l.jsx)(l.Fragment,{children:(e.values.length>1||"Color"===e.name)&&(0,l.jsxs)(u.kC,{direction:"column",gap:"4px",children:[(0,l.jsxs)(u.kC,{justifyContent:"space-between",alignItems:"center",children:[(0,l.jsx)(u.xv,{fontSize:1*v,sx:{color:"black !important",fontFamily:i+" !important",fontWeight:"bold"},children:e.name}),"Size"===e.name&&(0,p.eg)(r)?(0,l.jsx)(u.kC,{justifyContent:"center",marginTop:"10px",children:(0,l.jsx)(u.xv,{fontSize:.7*v,as:"u",sx:{color:"black !important",fontFamily:i+" !important"},onClick:()=>{null!==d&&d(!0)},children:(0,p.me)(r)})}):(0,l.jsx)(l.Fragment,{})]}),(0,l.jsx)(u.Ug,{spacing:0,flexWrap:"wrap",alignContent:"flex-start",alignItems:"center",justifyContent:"flex-start",children:e.values.map(((t,o)=>{var a,d;return"Color"===e.name&&S.length===(null===e||void 0===e||null===(a=e.values)||void 0===a?void 0:a.length)?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.kC,{paddingBottom:"8px",px:"2px",paddingRight:"8px",children:(0,l.jsx)(u.xu,{boxShadow:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px",borderRadius:(0,p.lm)(r),size:"sm",border:s[e.name]===t?"2px solid ".concat((0,p.u)(r)," !important"):"",width:"fit-content !important",onClick:()=>{C(e.name,t);const i=e.values.indexOf(t);x(i),0===n&&g(t),1===n&&m(t),2===n&&f(t)},children:(0,l.jsx)(w.Ee,{padding:"2px",borderRadius:(0,p.lm)(r),width:"58px",height:"58px",src:j.product.images[S[o]].src})})},t)}):(0,l.jsx)(u.kC,{paddingBottom:"8px",paddingRight:"8px",children:(0,l.jsx)(Vt.zx,{size:"sm",px:"8px !important",bg:s[e.name]===t?(null!==(d=(0,p.CP)(r))&&void 0!==d?d:h)+" !important":(0,p.bC)(r)+" !important",width:"fit-content !important",onClick:()=>{C(e.name,t),0===n&&g(t),1===n&&m(t),2===n&&f(t)},children:(0,l.jsx)(u.xv,{fontSize:.9*v,sx:{fontFamily:i+" !important",fontWeight:"normal",color:s[e.name]===t?(0,p.cY)(r)+" !important":(0,p.Fb)(r)+" !important"},children:t})})},t)}))}),n===(null===j||void 0===j||null===(o=j.product)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.length)-1&&(0,l.jsx)(u.M5,{paddingTop:"8px",width:"100%",children:(0,l.jsx)(u.iz,{color:t.dividerColor,size:"xs"})})]})})}))})})}var ee,ne=n(8782);function ie(t){var e,n;const[i,r,d,s]=(0,x.Z)();var c=.4*s*.8,h=c*(16/9)*.6*.8;const g=1.1*c,f=g*(16/9)*.8;var v=.13*c;const[j,C]=(0,o.useState)(!1),S=t.data,b=t.event,y=t.product,k=t.setOpenShopNow,I=t.setLockSwiper,[_]=(0,a.j1)("whatmoreEmbedAppUseVariant"),[O,z]=(0,o.useState)((()=>{if("true"===_)return ae(S,y.client_product_id)})),[E,R]=(0,o.useState)((()=>{if("true"===_)return le(S,y.client_product_id)})),[M,Z]=(0,o.useState)((()=>{if("true"===_)return de(S,y.client_product_id)})),[q,K]=(0,o.useState)(),[H,L]=(0,o.useState)(1),[D,A]=(0,o.useState)(),[W,B]=(0,o.useState)(0),[N,V]=(0,o.useState)(!1),[U,Y]=(0,o.useState)(!1),[X,J]=(0,o.useState)(y.thumbnail_image),G=(0,o.useContext)(yt.I),$=(0,a.MO)("whatmoreShopId"),Q=((0,a.MO)("whatmoreSecondaryColorShade300"),(0,a.MO)("whatmoreSecondaryColorShade600"),(0,a.MO)("whatmoreSecondaryColorShade1200"),(0,o.useCallback)((t=>{z(t)}),[])),tt=(0,o.useCallback)((t=>{R(t)}),[]),et=(0,o.useCallback)((t=>{Z(t)}),[]);(0,o.useEffect)((()=>{const t=oe(S,O,E,M);K(t),A(re(S,t)),L(1),Y(!1);const e=se(S,t);null!==e&&J(e)}),[O,E,M]),(0,o.useEffect)((()=>{const t=void 0===q?S.product.variants[0].price:re(S,q);A(t*H)}),[H]),(0,o.useEffect)((()=>{function t(t){const e=document.getElementById("whatmore-shopnow-view");e&&!e.contains(t.target)&&(k(!1),I(!1))}function e(t){t.preventDefault(),t.stopPropagation(),n.scrollTop+=t.deltaY}document.addEventListener("click",t);const n=document.getElementById("whatmore-shopnow-view");return null===n||void 0===n||n.addEventListener("wheel",e),()=>{document.removeEventListener("click",t),document.removeEventListener("wheel",e)}}),[]),(0,o.useEffect)((()=>{const t=async function(t,e){return"shopify"==t?(0,m.Bi)():(0,mt.OM)(e)}((0,p.Ip)($),$);t.then((t=>t.json())).then((t=>{B(t.item_count)})).catch((t=>{console.error("Cart Add Error:",t)}))}),[N]);const[nt,it]=(0,o.useState)(0),ot=(0,P.F4)(ee||(ee=(0,F.Z)(["\n 0% {\n transform: translateY(100%);\n }\n "]))),rt="".concat(ot," 0.5s"),at=t.data.product.images;let lt=0,dt=at.length,st=0;for(let o=0,a=0;o<at.length;o++){var ct,ht;if((null===(ct=at[o])||void 0===ct||null===(ht=ct.variant_ids)||void 0===ht?void 0:ht.length)>0){if(a++,a===nt+1){st=1,lt=o;continue}if(1==st){dt=o;break}}}return(0,l.jsxs)(u.kC,{sx:{"&::-webkit-scrollbar":{width:"0px"}},id:"whatmore-shopnow-view",position:"relative",maxHeight:"75vh",overflowY:"scroll",direction:"column",bg:"#FFF",height:"fit-content",opacity:"100%",borderTopRadius:"round"==(null===G||void 0===G?void 0:G.whatmoreUITheme)?"xl":null,animation:rt,children:[(0,l.jsx)(Bt,{setOpenShopNow:k,setLockSwiper:I,FONT_SIZE:v}),(0,l.jsx)(u.M5,{marginBottom:"10px",px:"20px",py:"5px",children:(0,l.jsx)(u.kC,{bg:"whiteAlpha.900",width:"fit-content",height:"fit-content",borderRadius:"round"==(null===G||void 0===G?void 0:G.whatmoreUITheme)?"lg":null,overflow:"hidden",sx:{borderWidth:(0,p.al)($),borderColor:(0,p.qP)($)},children:(0,l.jsx)(u.kC,{width:"100%",children:(0,l.jsx)(ne.P,{renderElement:t=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(u.xu,{width:g+"px",height:f+"px",children:(0,l.jsx)(w.Ee,{width:g+"px",height:f+"px",borderRadius:"round"==(null===G||void 0===G?void 0:G.whatmoreUITheme)?"lg":null,src:t.eventData.src,alt:y.handle,sx:{objectFit:(0,p.yO)($)+" !important"},fallback:(0,l.jsx)(T.Z,{width:g+"px",height:f+"px",borderRadius:"round"==(null===G||void 0===G?void 0:G.whatmoreUITheme)?"10px":"0px"})})})}),dataList:null===S||void 0===S||null===(e=S.product)||void 0===e?void 0:e.images.slice(lt,dt),spacing:10,defaultHeight:g+"px",defaultWidth:f+"px",retainAlreadyRenderedElements:!0})})})}),(0,l.jsx)(Qt,{data:S,product:y,PRODUCT_TILE_HEIGHT:h,PRODUCT_TILE_WIDTH:c,FONT_SIZE:v,getVariantPrice:re,selectedVariantId:q,itemPrice:D,itemQuantity:H,setItemQuantity:L,thumbnailImage:X}),S.product.variants.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.M5,{paddingTop:"4px",width:"100%",children:(0,l.jsx)(u.iz,{color:(0,p.W8)($),size:"xs",width:"90%"})}),(0,l.jsx)(te,{data:S,dividerColor:(0,p.W8)($),selectedColor:t=>{it(t)},product:y,PRODUCT_TILE_HEIGHT:h,PRODUCT_TILE_WIDTH:c,FONT_SIZE:v,selectOptionFirstHandler:Q,selectOptionSecondHandler:tt,selectOptionThirdHandler:et,getVariantPrice:re,selectedOptionFirst:O,selectedOptionSecond:E,selectedOptionThird:M,selectedVariantId:q})]}),p.$2&&(null===S||void 0===S||null===(n=S.product)||void 0===n?void 0:n.body_html)&&(0,l.jsx)($t,{PRODUCT_TILE_HEIGHT:h,FONT_SIZE:v,data:S,handleToggle:()=>C(!j),show:j}),(0,l.jsx)(u.xu,{sx:{pointerEvents:"none"},paddingTop:"20px",opacity:0,children:(0,l.jsx)(Gt,{position:"relative",data:S,FONT_SIZE:v,product:y})}),(0,l.jsx)(Gt,{position:"fixed",selectedVariantId:q,data:S,FONT_SIZE:v,PRODUCT_TILE_WIDTH:c,product:y,itemQuantity:H,cartItemCount:W,addToCartFlag:N,setAddToCartFlag:V,soldOutFlag:U,setSoldOutFlag:Y,event:b})]})}const oe=(t,e,n,i)=>{if(void 0===e&&void 0===n&&void 0===i)return t.product.variants[0].id;if(void 0===i&&void 0===n)return t.product.variants.find((t=>t.option1===e)).id;if(void 0===i&&void 0===e)return t.product.variants.find((t=>t.option2===n)).id;if(void 0===n&&void 0===e)return t.product.variants.find((t=>t.option3===i)).id;if(void 0===n)return t.product.variants.find((t=>t.option1===e&&t.option3===i)).id;if(void 0===i)return t.product.variants.find((t=>t.option1===e&&t.option2===n)).id;if(void 0===e)return t.product.variants.find((t=>t.option2===n&&t.option3===i)).id;const o=t.product.variants.find((t=>t.option1===e&&t.option2===n&&t.option3===i));return void 0===o?t.product.variants[0].id:o.id},re=(t,e)=>t.product.variants.find((t=>t.id===e)).price,ae=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option1,le=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option2,de=(t,e)=>t.product.variants.find((t=>t.id.toString()===e)).option3,se=(t,e)=>{const n=t.product.images.find((t=>t.variant_ids.find((t=>t===e))));return void 0===n?null:n.src},ce=(0,o.createContext)({setShowOptionsChart:null});var he=function(t){const e=t.event,n=t.data,i=t.currentProduct,r=t.setOpenShopNow,a=t.setLockSwiper,[d,s]=(t.isLast,t.onCloseCallback,t.focusRef,(0,o.useState)(!1));return(0,l.jsx)(ce.Provider,{value:{setShowOptionsChart:s},children:(0,l.jsxs)(u.xu,{width:"full",height:"full",borderRadius:"md",children:[(0,l.jsx)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",children:(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(ie,{data:n,event:e,product:i,setOpenShopNow:r,setLockSwiper:a})})}),d?(0,l.jsx)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"flex-end",style:{position:"relative",zIndex:1,bottom:"100%"},className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(Nt,{data:n,event:e,product:i,setShowOptionsChart:()=>{s(!1)}})})}):(0,l.jsx)(l.Fragment,{})]})})};var ue=function(t){var e,[n,i,r,d]=(0,x.Z)();const[s,c]=(0,o.useState)(!1),[h,m]=(0,o.useState)(),[f,w]=(0,o.useState)(),j=(0,a.MO)("whatmoreShopId"),C=t.event,S=t.onBack,b=o.useRef(),y=t.isPlaying,k=t.isLast,I=t.setLockSwiper,F=t.selectedVariantId,_=null===(e=t.showOverlay)||void 0===e||e,T="center";return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:d,height:r,sx:{overflow:"hidden"},children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:T,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(u.oM,{width:"full",ratio:d/r,children:(0,l.jsx)(v,{height:"100%",width:"100%",url:C.event_hls_url,isPlaying:y,event:C})})})}),_?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:T,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(Wt,{focusRef:b,event:t.event,isLast:k,onCloseCallback:S,productClickHandler:async t=>{const e=await(0,g.gK)(t,(0,p.Ip)(j),j);w(t),m(e),c(!0),I(!0)}})})}):(0,l.jsx)(l.Fragment,{}),!0===s?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:T,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(he,{focusRef:b,event:t.event,isLast:k,onCloseCallback:()=>S(),setLockSwiper:I,data:h,currentProduct:f,setOpenShopNow:c,selectedVariantId:F})})}):(0,l.jsx)("div",{})]})})};const pe=function(t,e){return isNaN(t)||isNaN(e)||e<=0||t>e?0:Math.ceil(t/e*100)};function xe(t){var e,n,[i,o,r,d]=(0,x.Z)();const[s]=(0,a.j1)("whatmoreSecondaryColor"),[c]=(0,a.j1)("whatmoreSecondaryColorShade900"),[h]=(0,a.j1)("whatmoreShopId"),p=t.progress,g=null!==(e=t.totalSiblings)&&void 0!==e?e:1,m=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0;return(0,l.jsx)(u.Kq,{width:"96%",height:"fit-content",direction:"row",justifyContent:"center",alignItems:"center",spacing:"1px",children:[...Array(g).keys()].map((t=>(0,l.jsx)(u.Kq,{width:"100%",height:.004*r+"px",backgroundColor:t<m?s:c+"99",borderRightRadius:"lg",borderLeftRadius:"lg",direction:"row",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",sx:{display:"block !important"},children:t==m?(0,l.jsx)(u.xu,{height:"100%",width:p+"%",bgColor:s,borderRightRadius:"lg",borderLeftRadius:"lg",sx:{display:"block !important"}}):(0,l.jsx)(l.Fragment,{})},"event-progress-bar-slab-"+t)))})}var ge=n(868),me=n(442);n(1824);const fe=t=>t>=1e3?(t/1e3).toFixed(1)+"k":t;var ve=function(t){var e,n,i,o=t.whatmoreShareTemplateId;const d=t.whatmoreShareStoryId,s=t.whatmoreShareEventId,c=t.event,h=null===(e=t.showShareText)||void 0===e||e,g=null!==(n=t.shareButtonBottomMargin)&&void 0!==n?n:0,m=(0,a.MO)("whatmoreShopId"),f=(0,a.MO)("isInDesignMode"),v=(0,a.MO)("isDemoBrand"),w=(0,a.MO)("whatmorePrimaryFont"),[j,C,S,b]=(0,x.Z)(),y=null!==(i=t.iconSize)&&void 0!==i?i:.1*b;function k(){const t=(0,a.MO)("whatmoreLandingLocationType");!function(t){f||v||(async()=>{(0,r.x0)(t)})()}(c),(t.startsWith("product")||"embed"===t)&&(o="te");var e=window.location.pathname+"?wtt="+o+"&wsid="+d+"&weid="+s;(0,p.lj)(m)&&(e=e+"&"+(0,p.aw)(m)+"&utm_campaign=video-share&utm_medium="+t);const n={title:(0,p.JN)(m),text:(0,p.QR)(m),url:e};navigator.share(n)}return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",style:{marginBottom:g+"px"},children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[(0,l.jsx)(me.Z,{sx:{boxShadow:3,rotate:"-30deg",color:"white",fontSize:y,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),k()}}),h&&(0,p.u8)(m)?(0,l.jsxs)(u.xv,{fontSize:.3*y+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:w+" !important",color:"white !important",paddingRight:"10%"},children:["\xa0",c.total_share>(0,p.LW)(m)?fe(c.total_share):"Share","\xa0"]}):(0,l.jsx)(l.Fragment,{})]})})})},we=n(6524),je=n(7933),Ce=n(2785);var Se=function(t){var e;const n=(0,a.MO)("whatmoreShopId"),i=(0,a.MO)("whatmorePrimaryFont"),d=(0,a.MO)("whatmoreLikedEvents"),s=((0,a.MO)("whatmoreSecondaryColor"),(0,a.MO)("isInDesignMode")),c=(0,a.MO)("isDemoBrand"),h=t.event,[g,m]=(0,o.useState)(null!==(e=d[h.event_id])&&void 0!==e&&e),[f,v,w,j]=(0,x.Z)(),C=.1*j;function S(t,e){s||c||(async()=>{(0,r.Z6)(t,e)})()}function b(){(0,a.bU)("whatmoreLikedEvents",{...d,[h.event_id]:!g}),S(h,g?-1:1),m(!g)}const y=h.total_like+(g?1:0);return(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{cursor:"pointer",children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"fit-content",width:"fit-content",children:[g?(0,l.jsx)(Ce.Z,{sx:{boxShadow:3,color:"red",fontSize:C,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),b()}}):(0,l.jsx)(je.Z,{sx:{boxShadow:3,color:"white",fontSize:C,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{t.stopPropagation(),b()}}),(0,l.jsx)(l.Fragment,{children:(0,p.CE)(n)?(0,l.jsxs)(u.xv,{fontSize:.3*C+"px",fontWeight:"semibold",align:"center",sx:{fontFamily:i+" !important",color:"white !important",position:"relative",bottom:"5px"},children:["\xa0",y>=(0,p.zK)(n)?fe(y):"Like","\xa0"]}):(0,l.jsx)(l.Fragment,{})})]})})})};function be(t){var e;const n=t.event,[i,r,d,s]=(0,x.Z)(),[c]=(0,a.j1)("whatmorePrimaryFont"),{whatmoreIsStoriesTemplate:h}=(0,o.useContext)(yt.I),[g]=(0,a.j1)("whatmoreSecondaryColor"),[m]=(0,a.j1)("whatmoreShopId"),f=(0,p.f6)(m),v=null!==(e=(0,p.u2)(m))&&void 0!==e?e:[g,f,g,f,g];return(0,l.jsx)(l.Fragment,{children:h?(0,l.jsx)(u.xu,{width:"100%",height:"fit-content",padding:"5px",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"100%",height:"fit-content",justifyContent:"flex-start",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.Cd,{overflow:"hidden",size:.14*s+"px",sx:{boxShadow:"0px 2px 1px 0px "+v[0]+"50, 0px -2px 1px 0px "+v[1]+"50, 2px 0px 1px 0px "+v[2]+"50, -2px 0px 1px 0px "+v[3]+"80, 2px -2px 1px 0px "+v[4]+"80, -2px 2px 1px 0px "+v[0]+"DA, 2px 2px 1px 0px "+v[1]+"DA, -2px -2px 1px 0px "+v[2]+"DA"},children:(0,l.jsx)("img",{src:(0,ge.V)(n.storyset_thumbnail_image),style:{objectFit:"cover",height:"100%",width:"100%",backgroundColor:"white"}})})}),(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xv,{style:{overflow:"hidden",textOverflow:"ellipsis"},noOfLines:1,fontSize:.05*s+"px",fontWeight:"medium",lineHeight:"100%",sx:{fontFamily:c+" !important",color:"white !important",textShadow:"0px 0px 4px black !important;"},children:n.storyset_name})})]})}):(0,l.jsx)(l.Fragment,{})})}var ye=function(t){const[e]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[i,r]=(0,a.j1)("isProductSwiperCatalogOpen"),[d,c]=(0,s.Z)(),[h,g]=(0,a.j1)("isFirstIndicatorRenderDone"),[m]=(0,a.j1)("whatmoreSecondaryColor"),[f]=(0,a.j1)("whatmoreSecondaryColorShade900"),[v]=(0,a.j1)("whatmoreShopId"),w=(0,o.useContext)(un),{whatmoreIsStoriesTemplate:j}=(0,o.useContext)(yt.I),{whatmoreEventsBrowsingTemplate:C}=(0,o.useContext)(yt.I),[S,b,y,k]=(0,x.Z)(),F=t.event,_=t.storySetId,T=t.isLast,P=t.onCloseCallback,O=t.focusRef,z=t.productClickHandler,E=t.videoPlayingData,R=t.totalSiblingEvents,M=t.indexAmongSiblings,Z=t.leftOpenSpaceClickHandler,q=t.midOpenSpaceClickHandler,K=t.rightOpenSpaceClickHandler;return(0,l.jsx)(u.xu,{width:"full",height:"full",borderRadius:"md",children:(0,l.jsxs)(u.Kq,{direction:"column",width:"full",height:"full",justifyContent:"space-between",children:[(0,l.jsxs)(u.Kq,{width:"full",height:"fit-content",direction:"column",justifyContent:"flex-start",alignItems:"center",bgGradient:"linear(to-t, transparent, whiteAlpha.100, blackAlpha.200, blackAlpha.400, blackAlpha.800)",children:[w.showVideoPlayingData?(0,l.jsx)(u.Kq,{direction:"row",width:"100%",height:"fit-content",marginTop:"5px",justifyContent:"center",children:(0,l.jsx)(xe,{progress:pe(E.current_time,E.video_duration),totalSiblings:R,indexAmongSiblings:M})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.xu,{width:"full",margin:"2px",marginTop:"5px",children:(0,l.jsxs)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingRight:"10px",paddingLeft:"10px",children:[(0,l.jsx)(be,{event:F}),(0,l.jsxs)(u.Kq,{direction:"row",width:"fit-content",justifyContent:"end",paddingLeft:"10px",children:[(0,we.ZK)(C)?(0,l.jsx)(ve,{whatmoreShareTemplateId:(0,we.QN)(C),whatmoreShareStoryId:_,whatmoreShareEventId:F.event_id,event:F,showShareText:!1,iconSize:.07*k,shareButtonBottomMargin:6}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(I,{focusRef:O}),(0,l.jsx)(U,{event:F,onCloseCallback:P})]})]})})]}),(0,l.jsxs)(u.Kq,{width:"100%",height:"100%",direction:"row",justifyContent:"center",children:[(0,l.jsx)(u.xu,{width:"33%",height:"100%",onClick:()=>{Z()},sx:{display:"block !important"}}),(0,l.jsx)(u.xu,{width:"34%",height:"100%",onClick:()=>{q()},sx:{display:"block !important"}}),(0,l.jsx)(u.xu,{width:"33%",height:"100%",onClick:()=>{K()},sx:{display:"block !important"}})]}),(0,l.jsxs)(u.xu,{width:"full",height:"fit-content",children:[w.totalEvents>1&&!h&&w.showSwipeIndicator?(0,l.jsx)(u.xu,{width:"full",margin:"2px",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"center",children:(0,l.jsx)($,{swipeUp:!T})})}):null,(0,p.jY)(v)?(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingX:"2%",children:(0,l.jsx)(Se,{event:F})})}):(0,l.jsx)(l.Fragment,{}),(0,p.RO)(v)&&!(0,we.ZK)(C)?(0,l.jsx)(u.xu,{width:"full",height:"fit-content",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",paddingX:"1%",children:(0,l.jsx)(ve,{whatmoreShareTemplateId:(0,we.QN)(C),whatmoreShareStoryId:_,whatmoreShareEventId:F.event_id,event:F})})}):(0,l.jsx)(l.Fragment,{}),(0,Kt.kT)(F)?(0,l.jsxs)(u.xu,{width:"full",children:[(0,p.Jm)(v)?(0,l.jsx)(u.xu,{w:"100%",children:(0,l.jsx)(u.Kq,{direction:"row",width:"full",height:"fit-content",justifyContent:"flex-end",children:(0,l.jsx)(A,{event:F,onToggle:t=>{r("minimize-button"!==t)}})})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(u.xu,{display:"flex",width:"100%",height:"fit-content",children:(0,l.jsx)(Lt,{event:F,productClickHandler:z})})]}):(0,l.jsx)(l.Fragment,{})]})]})})},ke=n(2279),Ie=n.n(ke),Fe=n(342);var _e=function(t){var e,n,i,r,d,s,[c,h,m,v]=(0,x.Z)();const[w,j]=(0,o.useState)(!1),[C,S]=(0,o.useState)(),[b,y]=(0,o.useState)(),[k,I]=(0,o.useState)({current_time:0,video_duration:0,is_video_ended:!1}),F=(0,a.MO)("whatmoreShopId"),_=t.event,T=t.storyId,P=t.onBack,O=o.useRef(),z=t.isPlaying,E=t.isLast,R=t.setLockSwiper,M=t.onVideoEndedCallback,Z=t.progressUpdateCallback,q=null!==(e=t.totalSiblingEvents)&&void 0!==e?e:0,K=null!==(n=t.indexAmongSiblings)&&void 0!==n?n:0,H=null===(i=t.showOverlay)||void 0===i||i,L=null!==(r=t.leftOpenSpaceClickHandler)&&void 0!==r?r:()=>{},D=null!==(d=t.midOpenSpaceClickHandler)&&void 0!==d?d:()=>{},A=null!==(s=t.rightOpenSpaceClickHandler)&&void 0!==s?s:()=>{},W="center",B=Ie()((()=>{M()}),1e3,{leading:!0,trailing:!1});return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:v,height:m,sx:{overflow:"hidden"},children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:W,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(u.oM,{width:"full",ratio:v/m,children:(0,l.jsx)(f.Z,{height:"100%",width:"100%",url:(0,ge.V)((0,Fe.uv)(_)),isPlaying:z,timeUpdateCallback:function(t,e){const n=pe(t,e);Z(n);const i=k.is_video_ended;n>=99&&z&&!i?(B(),I({current_time:t,video_duration:e,is_video_ended:!0})):I({current_time:t,video_duration:e,is_video_ended:i})},event:_})})})}),H?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:W,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(ye,{focusRef:O,event:t.event,isLast:E,onCloseCallback:()=>P(),productClickHandler:async t=>{const e=await(0,g.gK)(t,(0,p.Ip)(F),F);y(t),S(e),j(!0),R(!0),(0,a.bU)("whatmoreAllowAutoSlide",!1)},videoPlayingData:k,totalSiblingEvents:q,indexAmongSiblings:K,leftOpenSpaceClickHandler:L,midOpenSpaceClickHandler:D,rightOpenSpaceClickHandler:A,storySetId:T})})}):(0,l.jsx)(l.Fragment,{}),!0===w?(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"200%"},direction:"column",justifyContent:W,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",children:(0,l.jsx)(he,{focusRef:O,event:t.event,isLast:E,onCloseCallback:()=>P(),setLockSwiper:R,data:C,currentProduct:b,setOpenShopNow:t=>{j(t),(0,a.bU)("whatmoreAllowAutoSlide",!t)}})})}):(0,l.jsx)("div",{})]})})},Te=n(7300),Pe=n(8984),Oe=n(58),ze=n(9723);var Ee=function(t){var[e,n,i,o]=(0,x.Z)();(0,a.MO)("whatmoreShopId");const r=t.event,d=t.isPlaying,s="center";return(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:o,height:i,sx:{overflow:"hidden"},children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:s,height:"full",width:"full",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"white",children:(0,l.jsx)(u.oM,{width:"full",ratio:o/i,children:(0,l.jsx)(f.Z,{height:"100%",width:"100%",url:(0,ge.V)((0,Fe.uv)(r)),isPlaying:d,timeUpdateCallback:function(t,e){},event:r})})})}),(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:s,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{borderRadius:"md",backgroundColor:"transparent",width:"100%",height:"100%",backdropFilter:"auto",backdropBlur:"10px",onClick:t=>{(0,Oe.QV)()},children:(0,l.jsxs)(u.Kq,{direction:"column",justifyContent:"center",alignItems:"center",height:"full",width:"full",children:[(0,l.jsx)(ze.Z,{sx:{boxShadow:3,color:"white",fontSize:.4*o,filter:"drop-shadow(0 0 5px black);"},onClick:t=>{(0,Oe.QV)()}}),(0,l.jsx)(u.xv,{color:"white",fontSize:.05*o+"px",fontWeight:"bold",align:"left",children:"Please click to play video.."})]})})})]})})};var Re=function(t){var e,n;const o=t.event,r=null===(e=t.isPlaying)||void 0===e||e,c=t.onBack,h=t.isLast,u=t.setLockSwiper,p=(t.heightFactor,t.widthFactor,t.onVideoEndedCallback),x=t.progressUpdateCallback,[g,m]=(0,s.Z)(),[f]=(0,a.j1)("whatmoreVideoPlayerPoolBlessed"),v=null===(n=t.showOverlay)||void 0===n||n;function w(){m(!g)}if((0,Pe.KE)()&&0==f)return(0,l.jsx)(Ee,{event:o,onBack:c,isPlaying:r,isLast:h,setLockSwiper:u,onVideoEndedCallback:p,progressUpdateCallback:x,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:v},"shopping-video-view"+o.event_id);if((0,Te.B6)(o)||(0,Te.WJ)(o))return(0,l.jsx)(_e,{event:o,onBack:c,isPlaying:r,isLast:h,setLockSwiper:u,onVideoEndedCallback:p,progressUpdateCallback:x,totalSiblingEvents:1,indexAmongSiblings:0,leftOpenSpaceClickHandler:()=>{w()},midOpenSpaceClickHandler:()=>{w()},rightOpenSpaceClickHandler:()=>{w()},showOverlay:v},"shopping-video-view"+o.event_id);if((0,Te.yC)(o)){var{status:j,bannerText:C,timeToStartInMins:S}=i.Z.getEventStatus(o);if(j.name===d.Z.LIVE.name)return(0,l.jsx)(ue,{event:o,onBack:c,isPlaying:r,isLast:h,showOverlay:v},"shopping-live-view"+o.event_id)}return console.error("Can't render event which is neither video or a currently-live-event"),(0,l.jsx)("div",{})},Me=n(204),Ze=n(8866),qe=n(9284),Ke=n.n(qe),He=n(7463),Le=n(2154);function De(t){var e;const[n,i]=(0,o.useState)(!1),r=t.onClick,a=null!==(e=t.fontSize)&&void 0!==e?e:50;return(0,l.jsx)("div",{style:{height:"fit-content",width:"fit-content",backgroundColor:"black",opacity:.4,borderRadius:"50%"},className:[n?"whatmore-scale-on-tap":""].join(" "),children:"left"===t.type?(0,l.jsx)(Le.Z,{sx:{color:"white",fontSize:a+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{i(!0),setTimeout((()=>{i(!1)}),500),r(t,"up")}}):(0,l.jsx)(He.Z,{sx:{color:"white",fontSize:a+"px",filter:"drop-shadow(0 0 5px black);"},onClick:t=>{i(!0),setTimeout((()=>{i(!1)}),500),r(t,"down")}})})}var Ae=function(t){var e,n,i;const o=null!==(e=t.relativeBottomPercentage)&&void 0!==e?e:"30%",r=null!==(n=t.width)&&void 0!==n?n:"100%",a=null!==(i=t.fontSize)&&void 0!==i?i:50,d=t.handleClick;return(0,l.jsx)("div",{style:{position:"relative",zIndex:1,bottom:o,width:"100%",height:"fit-content",display:"flex",flexFlow:"row nowrap",justifyContent:"center"},id:"here",children:(0,l.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:r,height:"fit-content",paddingRight:"5px",paddingLeft:"5px",paddingTop:"5px",paddingBottom:"5px",justifyContent:"space-between",alignContent:"center"},children:[(0,l.jsx)(De,{type:"left",onClick:d,fontSize:a}),(0,l.jsx)(De,{type:"right",onClick:d,fontSize:a})]})})},We=n(2860),Be=n(4669);var Ne=function(t,e){function n(t,e){return 1==e?0:t<0?e+t:t>=e?t-e:t}const i=(0,o.useRef)({prevIndex:n(t-1,e),activeIndex:t,nextIndex:n(t+1,e)});return[function(){return i.current},function(t){i.current="right"==t?{prevIndex:n(i.current.activeIndex,e),activeIndex:n(i.current.activeIndex+1,e),nextIndex:n(i.current.activeIndex+2,e)}:{prevIndex:n(i.current.activeIndex-2,e),activeIndex:n(i.current.activeIndex-1,e),nextIndex:n(i.current.activeIndex,e)}},function(t){return n(i.current.activeIndex+t)}]};var Ve=function(t,e){const n=(0,o.useRef)({clientX:0,clientY:0});return[function(t){n.current.clientX=t.changedTouches[0].clientX,n.current.clientY=t.changedTouches[0].clientY},function(i){const o=n.current.clientX,r=n.current.clientY;var a=o-i.changedTouches[0].clientX,l=r-i.changedTouches[0].clientY;return"vertical"==t&&Math.abs(l)>e||"horizontal"==t&&Math.abs(a)>e?"vertical"==t?l>0?"right":"left":a>0?"right":"left":null}]};var Ue=function(t,e){const n=(0,o.useRef)(Ie()(((t,e)=>{t(e)}),300,{leading:!0,trailing:!1}));return[function(i,o){var r=0;if(r="vertical"==t?i.deltaY:i.deltaX,Math.abs(r)<=e)return;const a=r>0?"right":"left";n.current(o,a)}]},Ye=n(5173);var Xe=function(t){const e=t.events,n=t.eventIndex,i=t.onBack;var[d,g,m,f]=(0,x.Z)();const[v,w]=(0,s.Z)(),[j]=(0,a.j1)("isInDesignMode"),[C]=(0,a.j1)("isDemoBrand"),[S,b]=(0,o.useState)(!0),[y,k]=(0,a.j1)("isFirstIndicatorRenderDone"),[I,F]=(0,o.useState)(!1),{setCloseClickComponent:_}=(0,o.useContext)(un),{slideDirection:T}=(0,o.useContext)(un),[P]=(0,a.j1)("whatmoreShopId"),[O]=(0,a.j1)("whatmoreLandingLocationType"),[z,E]=Ne(n,e.length),[R,M]=Ve(T,50),[Z]=Ue("vertical",30),[q,K]=(0,o.useState)(!1),[H,L]=(0,o.useState)(null);function D(){K(!1)}function A(){D(),setTimeout((()=>{i()}),500)}function W(){(0,a.MO)("whatmoreAllowAutoSlide")&&(E("right"),H.slideNext())}function B(t,e){E(e),function(t,e){H&&("left"===e?H.slidePrev():H.slideNext())}(0,e)}(0,o.useEffect)((()=>(K(!0),()=>{})),[]),_(A);const N=Math.round(.05*m);return(0,l.jsx)(Ke(),{isOpen:q,onAfterOpen:function(){},onRequestClose:D,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,l.jsx)(Ye.Z,{children:(0,l.jsxs)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:(0,tt.lA)("#000000",13)},onTouchStart:t=>{R(t)},onTouchEnd:t=>{const e=M(t);e&&B(0,e)},onWheel:t=>{Z(t,(t=>{B(0,t)}))},children:[(0,l.jsx)(c.tq,{speed:400,threshold:N,slidesPerView:1,direction:T,modules:[h.tl,h.Gk],initialSlide:n,loop:1!=e.length,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,allowSlideNext:!I,allowSlidePrev:!I,allowTouchMove:!1,onSwiper:t=>{L(t)},onSlideChange:t=>{var n;S?b(!1):(y||k(!0),n=e[z().activeIndex],j||C||(async()=>{(0,r.wh)(n),"index"===O?((0,Be.Tc)(P,We.Xh,We.pR),(0,gt.H4)(n.event_id,n.products,We.Xh,We.pR)):O.startsWith("product")||"embed"===O?((0,Be.Tc)(P,We.h7,We.dU),(0,gt.H4)(n.event_id,n.products,We.h7,We.dU)):O.startsWith("collection")?((0,Be.Tc)(P,We.U$,We.Pk),(0,gt.H4)(n.event_id,n.products,We.U$,We.Pk)):((0,Be.Tc)(P,We.Xh,We.pR),(0,gt.H4)(n.event_id,n.products,We.Xh,We.pR))})())},children:[...Array(Math.min(e.length,3)).keys()].map((t=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:n,isPrev:i,isNext:o,isVisible:r,isDuplicate:a}=t;const s=n?"activeIndex":i?"prevIndex":"nextIndex";return(0,l.jsx)(u.Kq,{direction:"column",height:d,justifyContent:"center",children:(0,l.jsx)(Re,{event:e[z()[s]],onBack:A,isPlaying:1==e.length||n&&r,isLast:!1,setLockSwiper:F,onVideoEndedCallback:W,progressUpdateCallback:t=>{}})})}},"event-vertical-scroll-slide-"+t)))}),e.length>1&&!I&&(0,p.h6)(P)&&"horizontal"===(0,p.e8)(P)&&"horizontal"===T?(0,l.jsx)(Ae,{relativeBottomPercentage:"50%",width:f,handleClick:(t,e)=>{B(0,"down"==e?"right":"left")},fontSize:parseInt(.12*f)}):(0,l.jsx)(l.Fragment,{})]})})})},Je=n(4892);var Ge=function(t){var e,n,i,[r,d,c,h]=(0,x.Z)();const[p]=(0,s.Z)(),[g]=(0,a.j1)("whatmorePrimaryColor"),[m]=(0,a.j1)("whatmoreSecondaryColor"),f=t.event,v=(t.onBack,o.useRef(),null!==(e=t.showPausedVideo)&&void 0!==e&&e),j=null!==(n=t.heightFactor)&&void 0!==n?n:1,C="flex-end";return h*=null!==(i=t.widthFactor)&&void 0!==i?i:1,c*=j,(0,l.jsx)(u.M5,{children:(0,l.jsxs)(u.xu,{width:h,height:c,children:[(0,l.jsx)(u.Kq,{direction:"column",justifyContent:C,height:"full",width:"full",children:(0,l.jsx)(u.xu,{children:(0,l.jsx)(u.oM,{width:"full",ratio:9/16,children:v?(0,Te.B6)(f)||(0,Te.WJ)(f)?(0,l.jsx)(Je.Z,{height:"100%",width:"100%",url:f.thumbnail_image,isPlaying:!1,pauseFromPlayTimeInMs:1e3,event:f}):(0,l.jsx)(w.Ee,{width:"full",height:"full",src:f.thumbnail_image,objectFit:"cover",borderRadius:"lg"}):(0,l.jsx)(u.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+g+", gray, "+m+")"})})})}),(0,l.jsx)(u.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:C,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(u.xu,{children:(0,l.jsx)(u.oM,{width:"full",ratio:9/16,children:(0,l.jsx)(u.xu,{width:"full",height:"full",backgroundColor:"blackAlpha.400"})})})})]})})},$e=n(1168);n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811);const Qe=t=>{let{children:e,customClass:n,show:i,closeCallback:o}=t;return $e.createPortal((0,l.jsxs)("div",{className:"whatmore-landscape-modal whatmore-root ".concat(n),style:{display:i?"block":"none"},children:[(0,l.jsx)("div",{className:"whatmore-landscape-modal-overlay",onClick:o}),(0,l.jsx)("div",{className:"whatmore-landscape-modal-content",children:e})]}),document.body)};Qe.defaultProps={children:(0,l.jsx)("div",{children:"Empty Modal"}),customClass:"",show:!1,closeCallback:()=>!1};var tn=Qe;var en=function(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[i]=(0,a.j1)("whatmorePrimaryFont"),o=(t.height,t.width,null!==(e=t.fontSize)&&void 0!==e?e:"8");return(0,l.jsx)(u.rU,{href:"https://www.whatmore.live",isExternal:!0,children:(0,l.jsxs)(u.Kq,{direction:"row",justifyContent:"flex-start",alignItems:"center",width:"fit-content",spacing:"2px",paddingLeft:"2px",paddingRight:"2px",paddingBottom:"2px",marginBottom:"2px",children:[(0,l.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:i,fontWeight:"normal",fontSize:o+"px",margin:0,padding:0,lineHeight:"110%"},children:"powered by whatmore"}),(0,l.jsx)(u.xu,{width:"10px"}),(0,l.jsx)("img",{src:"https://whatmore-other-assets.b-cdn.net/whatmore/whatmore_logo.png",style:{objectFit:"contain",backgroundColor:"transparent",borderRadius:"0px"}})]})})};var nn=function(t){var[e,n,i,d]=(0,x.Z)();const[s]=(0,a.j1)("isInDesignMode"),[g]=(0,a.j1)("isDemoBrand"),[m,f]=(0,a.j1)("isFirstIndicatorRenderDone"),[v,w]=(0,o.useState)(0!=t.eventIndex),{setCloseClickComponent:j}=(0,o.useContext)(un),[C,S]=(0,o.useState)(!1),[b]=(0,a.j1)("whatmoreShopId"),[y]=(0,a.j1)("whatmoreLandingLocationType"),{whatmoreUITheme:k}=(0,o.useContext)(yt.I),[I,F]=(0,o.useState)(!1),[_,T]=(0,o.useState)(null);function P(){F(!1)}const O=t.events,z=t.eventIndex,E=t.onBack;function R(){P(),setTimeout((()=>{E()}),500)}function M(){_&&!_.isEnd&&(0,a.MO)("whatmoreAllowAutoSlide")&&_.slideNext()}(0,o.useEffect)((()=>(F(!0),()=>{})),[]),j(R);const Z=parseInt(Math.min(5,O.length));return(0,l.jsx)(tn,{show:I,closeCallback:P,customClass:"whatmore-landscape-modal-swipe-view",children:(0,l.jsxs)(u.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:(0,tt.lA)("#000000",13),children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xu,{height:"fit-content",width:d*Z,children:(0,l.jsx)(c.tq,{onInit:t=>{T(t)},slidesPerView:Z,centeredSlides:!0,allowTouchMove:!1,initialSlide:z,modules:[h.lI,h.W_,h.Gk],navigation:Z>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*i),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:d*Z,watchSlidesProgress:!0,onSlideChange:t=>{var e;v?w(!1):(m||f(!0),e=O[t.activeIndex],s||g||(async()=>{(0,r.wh)(e),"index"===y?((0,Be.Tc)(b,We.Xh,We.pR),(0,gt.H4)(e.event_id,e.products,We.Xh,We.pR)):y.startsWith("product")||"embed"===y?((0,Be.Tc)(b,We.h7,We.dU),(0,gt.H4)(e.event_id,e.products,We.h7,We.dU)):y.startsWith("collection")?((0,Be.Tc)(b,We.U$,We.Pk),(0,gt.H4)(e.event_id,e.products,We.U$,We.Pk)):((0,Be.Tc)(b,We.Xh,We.pR),(0,gt.H4)(e.event_id,e.products,We.Xh,We.pR))})())},mousewheel:{invert:!1,thresholdDelta:20},children:O.map(((t,e)=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:n,isPrev:o,isNext:r,isVisible:a,isDuplicate:s}=t;return n?(0,l.jsx)(u.Kq,{direction:"column",height:i,width:1*d,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,l.jsx)(u.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,p.al)(b),borderColor:(0,p.qP)(b)},children:(0,l.jsx)(Re,{event:O[e],onBack:R,isPlaying:!0,isLast:e===O.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:M,progressUpdateCallback:t=>{}})})}):r||o?(0,l.jsx)(u.Kq,{direction:"column",height:i,width:d,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{_.slideTo(e,300)},children:(0,l.jsx)(u.xu,{overflow:"hidden",sx:{borderRadius:"round"==k?"10px":"0px",borderWidth:(0,p.al)(b),borderColor:(0,p.qP)(b)},children:(0,l.jsx)(Re,{event:O[e],onBack:R,isPlaying:!1,isLast:e===O.length-1,setLockSwiper:S,widthFactor:1,heightFactor:1,onVideoEndedCallback:M,progressUpdateCallback:t=>{},showOverlay:!1})})}):(0,l.jsx)(l.Fragment,{})}},"event-horizontal-scroll-slide"+t.event_id)))})})}),(0,p.XF)(b)?(0,l.jsx)(u.M5,{children:(0,l.jsx)(en,{height:.04*i,width:.1*d,fontSize:.02*i})}):(0,l.jsx)(l.Fragment,{})]})})},on=n(6090),rn=n(7616),an=n(9302),ln=n(2575);var dn=function(t){var e;const n=t.stories,i=t.onBack,d=t.onStoryCompleteCallback,h=t.isActive,p=(t.isNext,t.isPrev,null!==(e=t.initialEventIndex)&&void 0!==e?e:0),g=n.events;var[m,f,v,w]=(0,x.Z)();const[j,C]=(0,s.Z)(),[S]=(0,a.j1)("isInDesignMode"),[b]=(0,a.j1)("isDemoBrand"),[y]=(0,a.j1)("whatmoreShopId"),[k]=(0,a.j1)("whatmoreSecondaryColorShade900"),[I]=(0,a.j1)("whatmoreSecondaryColor"),[F,_]=(0,o.useState)(!0),[T,P]=(0,a.j1)("isFirstIndicatorRenderDone"),{setCloseClickComponent:O}=(0,o.useContext)(un),{slideDirection:z}=(0,o.useContext)(un),[E,R]=(0,o.useState)(null),[M,Z]=(0,o.useState)(!1),[q,K]=(0,o.useState)(0),[H,L]=Ne(p,g.length);function D(){i()}function A(){if(!(0,a.MO)("whatmoreAllowAutoSlide"))return;H().activeIndex+1>=g.length?d("right"):(L("right"),E&&E.slideNext())}function W(t){const e=H().activeIndex;"right"==t&&e+1>=g.length||"left"==t&&e-1<0?d(t):(L(t),E&&("left"==t?E.slidePrev():E.slideNext()))}return g[H().activeIndex],(0,l.jsx)("div",{children:(0,l.jsx)(c.tq,{speed:1,slidesPerView:1,direction:"horizontal",initialSlide:0,loop:!0,height:v,width:w,watchSlidesProgress:!0,allowTouchMove:!1,onSwiper:t=>{R(t)},onSlideChange:t=>{var e;F?_(!1):(T||P(!0),e=g[H().activeIndex],S||b||(async()=>{(0,r.wh)(e),(0,Be.Tc)(y,We.Xh,We.OW),(0,gt.H4)(e.event_id,e.products,"homepage","stories")})())},children:[...Array(Math.min(g.length,3)).keys()].map((t=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:e,isPrev:i,isNext:o,isVisible:r,isDuplicate:a}=t;if(h){const t=e?"activeIndex":i?"prevIndex":"nextIndex",o=g[H()[t]];return(0,l.jsx)(u.Kq,{direction:"column",height:v,justifyContent:"center",children:(0,Te.B6)(o)||(0,Te.WJ)(o)?(0,l.jsx)(_e,{event:o,totalSiblingEvents:g.length,indexAmongSiblings:H()[t],onBack:D,isPlaying:h&&e&&r,isLast:!1,setLockSwiper:Z,onVideoEndedCallback:A,progressUpdateCallback:t=>{},leftOpenSpaceClickHandler:()=>{W("left")},midOpenSpaceClickHandler:()=>{C(!j)},rightOpenSpaceClickHandler:()=>{W("right")},storyId:n.id},"shopping-video-view"+o.event_id):(0,l.jsx)(l.Fragment,{})})}return(0,l.jsx)(u.Kq,{direction:"column",height:m,justifyContent:"center",children:(0,l.jsx)(Me.Z,{})})}},"event-story-view-slide-"+t)))})})};var sn=function(t){const e=t.onBack,n=t.eventsStories,i=t.initialStoryIndex;var[d,p,g,m]=(0,x.Z)();const[f,v]=(0,s.Z)(),[w]=(0,a.j1)("isInDesignMode"),[j]=(0,a.j1)("isDemoBrand"),[C,S]=(0,o.useState)(!0),[b,y]=(0,a.j1)("isFirstIndicatorRenderDone"),[k,I]=(0,o.useState)(!1),{setCloseClickComponent:F}=(0,o.useContext)(un),{slideDirection:_}=(0,o.useContext)(un),[T]=(0,a.j1)("whatmoreShopId"),[P,O]=Ne(i,n.length),[z,E]=Ve("horizontal",50),[R]=Ue("vertical",30),M=t.eventIndex,[Z,q]=(0,o.useState)(!1),[K,H]=(0,o.useState)(null);function L(){q(!1)}function D(){L(),setTimeout((()=>{e()}),500)}function A(t){K&&(0,a.MO)("whatmoreAllowAutoSlide")&&(O(t),"right"==t?K.slideNext():K.slidePrev())}function W(t,e){A(e)}return(0,o.useEffect)((()=>(q(!0),()=>{})),[]),F(D),(0,l.jsx)(Ke(),{isOpen:Z,onAfterOpen:function(){},onRequestClose:L,overlayClassName:"whatmore-modal",className:"whatmore-modal-content",ariaHideApp:!1,children:(0,l.jsx)("div",{style:{height:window.innerHeight,width:window.innerWidth,backgroundColor:"#00000088"},onTouchStart:t=>{z(t)},onTouchEnd:t=>{const e=E(t);e&&W(0,e)},onWheel:t=>{R(t,(t=>{W(0,t)}))},children:(0,l.jsx)(c.tq,{speed:1,slidesPerView:1,direction:"horizontal",modules:[h.SH,h.Gk],initialSlide:i,loop:n.length>1,height:window.innerHeight,width:window.innerWidth,watchSlidesProgress:!0,onSwiper:t=>{H(t)},onSlideChange:t=>{var e;C?S(!1):(e=n[P().activeIndex].events[0],w||j||(async()=>{(0,r.wh)(e),(0,Be.Tc)(T,We.Xh,We.OW),(0,gt.H4)(e.event_id,e.products,"homepage","stories")})())},allowTouchMove:!1,cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},children:[...Array(Math.min(n.length,3)).keys()].map((t=>(0,l.jsx)(c.o5,{children:t=>{let{isActive:e,isPrev:o,isNext:r,isVisible:a,isDuplicate:s}=t;const c=e?"activeIndex":o?"prevIndex":"nextIndex";return(0,l.jsx)(u.Kq,{direction:"column",height:d,justifyContent:"center",children:(0,l.jsx)(dn,{stories:n[P()[c]],onBack:D,isActive:e&&a,isNext:r,isPrev:o,onStoryCompleteCallback:A,nextStories:n[P().nextIndex],prevStories:n[P().prevIndex],initialEventIndex:i==P()[c]?M:0},"event-story-view-"+n[P()[c]].id)})}},"event-vertical-scroll-slide-"+t)))})})})};var cn=function(t){var[e,n,i,d]=(0,x.Z)();const[s]=(0,a.j1)("isInDesignMode"),[g]=(0,a.j1)("isDemoBrand"),[m,f]=(0,a.j1)("isFirstIndicatorRenderDone"),[v,w]=(0,o.useState)(0!=t.eventIndex),{setCloseClickComponent:j}=(0,o.useContext)(un),[C,S]=(0,o.useState)(!1),[b]=(0,a.j1)("whatmoreShopId"),[y,k]=(0,o.useState)(!1),[I,F]=(0,o.useState)(null);function _(){k(!1)}t.events;const T=t.eventIndex,P=t.onBack,O=t.eventsStories,z=t.initialStoryIndex;function E(){_(),setTimeout((()=>{P()}),500)}function R(t){I&&!I.isEnd&&("right"==t?I.slideNext():I.slidePrev())}(0,o.useEffect)((()=>(k(!0),()=>{})),[]),j(E);const M=parseInt(Math.min(5,O.length));return(0,l.jsx)(tn,{show:y,closeCallback:_,customClass:"whatmore-landscape-modal-stories-view",children:(0,l.jsxs)(u.Kq,{direction:"column",width:window.innerWidth,height:window.innerHeight,justifyContent:"center",aligntItems:"center",backgroundColor:"blackAlpha.800",children:[(0,l.jsx)(u.M5,{children:(0,l.jsx)(u.xu,{height:"fit-content",width:d*M,children:(0,l.jsx)(c.tq,{onInit:t=>{F(t)},slidesPerView:M,centeredSlides:!0,allowTouchMove:!1,initialSlide:z,modules:[h.lI,h.W_,h.Gk],navigation:M>=5,effect:"coverflow",coverflowEffect:{rotate:-8,stretch:Math.floor(.22*i),depth:100,scale:.7,modifier:1,slideShadows:!1},height:"fit-content",width:d*M,watchSlidesProgress:!0,onSlideChange:t=>{var e;v?w(!1):(m||f(!0),e=O[t.activeIndex].events[0],s||g||(async()=>{(0,r.wh)(e),(0,Be.Tc)(b,We.Xh,We.OW),(0,gt.H4)(e.event_id,e.products,"homepage","stories")})())},mousewheel:{invert:!1,thresholdDelta:20},children:O.map(((t,e)=>(0,l.jsx)(c.o5,{children:n=>{let{isActive:o,isPrev:r,isNext:a,isVisible:s,isDuplicate:c}=n;if(o){const n=1;return(0,l.jsx)(u.Kq,{direction:"column",height:i,width:d*n,justifyContent:"center",marginLeft:"auto",marginRight:"auto",children:(0,l.jsx)(u.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,l.jsx)(dn,{stories:t,onBack:E,isActive:o&&s,isNext:!1,isPrev:!1,onStoryCompleteCallback:R,initialEventIndex:z==e?T:0},"event-story-view-"+t.id)})})}return r||a?(0,l.jsx)(u.Kq,{direction:"column",height:i,width:d,justifyContent:"center",marginLeft:"auto",marginRight:"auto",onClick:t=>{I.slideTo(e,300)},children:(0,l.jsx)(u.xu,{borderRadius:"xl",overflow:"hidden",backgroundColor:"transparent",boxShadow:"dark-lg",children:(0,l.jsx)(Ge,{showPausedVideo:!0,event:O[e].events[0],onBack:E,isPlaying:!1,setLockSwiper:S})})}):(0,l.jsx)(l.Fragment,{})}},"event-horizontal-scroll-slide-"+e)))})})}),(0,p.XF)(b)?(0,l.jsx)(u.M5,{children:(0,l.jsx)(en,{height:.04*i,width:.1*d,fontSize:.02*i})}):(0,l.jsx)(l.Fragment,{})]})})};const hn=(0,ln.Z)({key:"whatmore-css-sv"}),un=(0,o.createContext)({isIOS:!1,totalEvents:0,closeClickComponent:null,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:"vertical",showSwipeIndicator:!0});var pn=function(t){var e,n;const[r,c,h]=(0,Ze.Z)(),[u,x]=(0,s.Z)(),[g]=(0,a.j1)("whatmoreShopId"),{whatmoreRootId:m}=(0,o.useContext)(yt.I),{whatmoreIsStoriesTemplate:f}=(0,o.useContext)(yt.I);var v=t.events,w=t.index,j=t.onBack,C=t.eventsStories,S=t.initialStoryIndex,b=(t.template,(0,p.cX)(g)),y=v[w],k="portrait"===r?null!==(e=t.slideDirection)&&void 0!==e?e:"vertical":null!==(n=t.slideDirection)&&void 0!==n?n:v.length>1?"horizontal":"vertical",I="portrait"===r?!(0,p.h6)(g)&&!f:(0,p.n8)(g),F=(y=v[w],[]);if((0,o.useLayoutEffect)((()=>{(0,p.TL)(g)&&(window.location.href.includes(b)?history.replaceState(null,"","#"+b):history.pushState(null,"","#"+b),window.addEventListener("popstate",(()=>{window.location.href.includes(b)||j()})))}),[]),(0,Te.yC)(y)){var{status:_,bannerText:T,timeToStartInMins:P}=i.Z.getEventStatus(v[w]);if(_.name!=d.Z.LIVE.name)return(0,l.jsx)("div",{children:"// TODO : fix event registration view for live events"})}if(delete rn.ZP.styles.global,f)return(0,l.jsx)(an.C,{value:hn,children:(0,l.jsx)(on.x,{theme:rn.ZP,cssVarsRoot:m,resetCSS:!1,children:(0,l.jsx)(un.Provider,{value:{isIOS:(0,Pe.KE)(),totalEvents:v.length,closeClickComponent:j,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:k,showSwipeIndicator:I},children:"portrait"===r?(0,l.jsx)(sn,{eventsStories:C,initialStoryIndex:S,onBack:j,eventIndex:w}):v.length>1&&(0,p.Bb)(g)?(0,l.jsx)(cn,{eventsStories:C,initialStoryIndex:S,onBack:j,eventIndex:w}):(0,l.jsx)(sn,{eventsStories:C,initialStoryIndex:S,onBack:j,eventIndex:w})})})});F=[];for(var O=0;O<v.length;O++)if((0,Te.B6)(v[O])||(0,Te.WJ)(v[O]))F.push(v[O]);else if((0,Te.yC)(v[O])){var{status:_,bannerText:T,timeToStartInMins:P}=i.Z.getEventStatus(v[O]);_.name===d.Z.LIVE.name&&F.push(v[O])}return(0,l.jsx)(an.C,{value:hn,children:(0,l.jsx)(on.x,{theme:rn.ZP,cssVarsRoot:m,resetCSS:!1,children:(0,l.jsx)(un.Provider,{value:{isIOS:(0,Pe.KE)(),totalEvents:v.length,closeClickComponent:j,setCloseClickComponent:t=>{},showVideoPlayingData:!0,slideDirection:k,showSwipeIndicator:I},children:"portrait"===r?(0,l.jsx)(Xe,{events:F,eventIndex:w,onBack:j}):v.length>1?(0,l.jsx)(nn,{events:F,eventIndex:w,onBack:j}):(0,l.jsx)(Xe,{events:F,eventIndex:w,onBack:j})})})})}},204:function(t,e,n){var i=n(3271),o=(n(7313),n(6422)),r=n(7753),a=n(7789),l=n(6417);e.Z=function(t){const[e,n,d,s]=(0,a.Z)(),[c]=(0,o.Z)(),[h]=(0,r.j1)("whatmorePrimaryColor"),[u]=(0,r.j1)("whatmoreSecondaryColor"),p="flex-end";return(0,l.jsx)(i.M5,{children:(0,l.jsxs)(i.xu,{width:s,height:d,backgroundColor:"whiteAlpha.200",backdropBlur:"10px",children:[(0,l.jsx)(i.Kq,{direction:"column",justifyContent:p,height:"full",width:"full",children:(0,l.jsx)(i.xu,{borderRadius:"md",backgroundColor:"transparent",children:(0,l.jsx)(i.oM,{width:"full",ratio:s/d,children:(0,l.jsx)(i.xu,{w:"100%",h:"100%",bgGradient:"linear(to-br, "+h+", gray, "+u+")"})})})}),(0,l.jsx)(i.Kq,{style:{position:"relative",zIndex:1,bottom:"100%"},direction:"column",justifyContent:p,height:"full",width:"full",className:"whatmore-ios-css-relative-fix",children:(0,l.jsx)(i.xu,{padding:"2px",margin:"5px",borderRadius:"md",backgroundColor:"transparent",children:(0,l.jsx)(i.oM,{width:"full",ratio:9/16,children:(0,l.jsx)(i.xu,{width:"full",height:"full",borderRadius:"md",backdropFilter:"auto",backdropBlur:"5px"})})})})]})})}},9316:function(t,e,n){n.d(e,{mT:function(){return s}});var i,o,r,a=n(168),l=n(686);const d=(0,l.F4)(i||(i=(0,a.Z)(["\n 0% { transform: scale(1); }\n 50%, { transform: scale(0.95); }\n 100% { transform: scale(1); }\n"]))),s="\n ".concat(d," 0.2s linear;\n"),c=(0,l.F4)(o||(o=(0,a.Z)(["\n 100% { \n -webkit-transform: rotate(360deg); \n transform:rotate(360deg); \n }\n"]))),h=("\n ".concat(c," 0.5s infinite linear;\n"),(0,l.F4)(r||(r=(0,a.Z)(["\n 0% { \n opacity: 1;\n transform: translateY(100%);\n }\n 10%{\n transform: translateY(0%);\n }\n 12%{\n transform: translateY(-5%);\n }\n 20%{\n transform: translateY(0%);\n }\n 95%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n }\n"]))));"\n ".concat(h," ").concat(3,"s ease-in-out;\n")},6163:function(t,e,n){n.r(e),n.d(e,{default:function(){return m}});var i=n(3271),o=n(5427),r=n(7313),a=n(7753),l=n(756),d=(n(4844),n(5160));var s=n(9316),c=n(9748),h=n(2607),u=n(9854),p=(n(7605),n(7053)),x=n(6417);function g(t){var e;const[n]=(0,a.j1)("whatmoreSecondaryColor"),[r]=(0,a.j1)("whatmorePrimaryFont"),l=null!==(e=t.baseFontSize)&&void 0!==e?e:10,d=t.width,s=t.height;return(0,x.jsx)(i.xu,{width:d,height:s,padding:"0px",boxShadow:"lg",borderRadius:"md",backgroundColor:"white",borderColor:n,borderWidth:"1px",children:(0,x.jsxs)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",paddingX:"4px",paddingY:"2px",justifyContent:"center",children:[(0,x.jsxs)(i.xv,{color:n,fontSize:1.3*l,fontWeight:"semibold",sx:{fontFamily:r+" !important"},children:["\xa0"," In Cart ","\xa0"]}),(0,x.jsx)(i.M5,{paddingX:"5px",children:(0,x.jsx)(o.Z,{sx:{color:n,fontSize:1.5*l}})})]})})}var m=function(t){var e,n,o,m;const[f]=(0,a.j1)("whatmorePrimaryFont"),[v]=(0,a.j1)("isInDesignMode"),[w]=(0,a.j1)("isDemoBrand"),[j,C]=(0,a.j1)("appCartData"),[S]=(0,a.j1)("whatmoreShopId"),[b]=[(0,u.hm)(S)],y=(0,u.hm)(S),[k,I]=(0,r.useState)(!1),[F,_]=(0,r.useState)({state:"initial"}),[T,P]=(0,r.useState)({loaded:!1,client_product_id:"",variant_id:"",variant_price:""}),{closeClickComponent:O}=(0,r.useContext)(h.EventClickComponentContext),z=t.event,E=t.product,R=null!==(e=t.baseFontSize)&&void 0!==e?e:10;function M(t,e,n){v||w||(async()=>{(0,d.JX)(t,e,n)})()}(0,r.useEffect)((()=>{!async function(){const t=await(0,p.gK)(E,(0,u.Ip)(S),S);P({loaded:!0,client_product_id:E.client_product_id,variant_id:t.product.variants[0].id,variant_price:t.product.variants[0].price})}()}),[]);const Z=null!==(n=t.width)&&void 0!==n?n:"fit-content",q=null!==(o=t.height)&&void 0!==o?o:"fit-content",K=(null!==(m=(0,u.Jb)(S))&&void 0!==m?m:2)+"px";return T.loaded?(0,x.jsx)("div",{style:{width:Z,height:q},children:(0,x.jsx)("a",{href:"javascript:void(0)","data-variant-id":T.variant_id,"data-action-atc":"",rel:"nofollow","aria-describedby":"a11y-external-message",children:(0,x.jsx)(c.zx,{type:"submit",className:(0,u.Sl)(S),sx:{width:Z,height:q,minHeight:q},onClick:t=>{I(!0),M(z,E,1),null!==O&&setTimeout((()=>{O()}),2e3)},children:"initial"===F.state?(0,x.jsx)(l.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:q,width:Z},children:(0,x.jsx)(i.xu,{width:"100%",height:"100%",padding:K,boxShadow:"lg",borderRadius:"md",backgroundColor:y,borderColor:y,borderWidth:"1px",animation:k?s.mT:null,onAnimationEnd:()=>{I(!1)},children:(0,x.jsx)(i.Kq,{direction:"row",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingY:"2px",children:(0,x.jsx)(i.M5,{children:(0,x.jsxs)(i.xv,{lineHeight:"100%",fontSize:1.3*R,fontWeight:"semibold",sx:{fontFamily:f+" !important",color:(0,u.KC)(S)+" !important"},children:["\xa0"," ADD TO CART ","\xa0"]})})})})}):(0,x.jsx)(l.Rg,{unmountOnExit:!0,in:!0,initialScale:.5,style:{height:q,width:Z},children:(0,x.jsx)(g,{event:z,product:E,baseFontSize:R,cartState:F,width:Z,height:q})})})})}):(0,x.jsx)(x.Fragment,{})}},2634:function(t,e,n){var i=n(3271),o=n(4897),r=n(499),a=n(6417);e.Z=function(t){var e,n=t.event,l=t.fontSize,d=null!==(e=t.maxWidth)&&void 0!==e?e:"100%",{status:s,bannerText:c,timeToStartInMins:h}=o.Z.getEventStatus(n);return s.name===r.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:d,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"bold",color:"white",children:c})})}):(0,a.jsx)(i.xu,{maxWidth:d,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:s.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:l,fontWeight:"medium",children:c})})})}},7605:function(t,e,n){n.d(e,{a:function(){return i}});n(5160);const i=async function(t,e,n,i,o,r,a,l,d,s){}},264:function(t,e,n){var i=n(7313),o=n(7300),r=n(6422),a=n(2607),l=n(3175),d=n(2887),s=n(8493),c=n(7753),h=(n(868),n(6417));function u(t){var e,n,o;const[a,d]=(0,r.Z)(),[s,c]=(0,i.useState)(!1),u=(0,i.useRef)(null),p=t.timeUpdateCallback,x=null!==(e=t.height)&&void 0!==e?e:"100%",g=null!==(n=t.width)&&void 0!==n?n:"100%",m=null!==(o=t.isVideoMuted)&&void 0!==o?o:a;return(0,i.useEffect)((()=>{u.current&&(t.isPlaying?u.current.paused&&u.current.play():u.current.pause(),p&&u.current.addEventListener("timeupdate",(t=>{var e,n;u.current&&p(null!==(e=u.current.currentTime)&&void 0!==e?e:0,null!==(n=u.current.duration)&&void 0!==n?n:0)})))}),[t.isPlaying]),(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:g,height:x,overflow:"hidden"},children:[(0,h.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,h.jsx)("video",{ref:u,className:"whatmore-video-player",width:g,height:x,preload:"auto",loop:!0,playsInline:!0,muted:!!m,src:t.url,onLoadedData:()=>{c(!0)}})}),s?(0,h.jsx)(h.Fragment,{}):(0,h.jsx)(l.Z,{width:g,height:x})]})}e.Z=function(t){var e,n;return(0,o.WJ)(t.event)?(0,h.jsx)(d.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback}):1==(0,i.useContext)(a.EventClickComponentContext).isIOS&&1==(0,c.MO)("whatmoreVideoPlayerPoolBlessed")?(0,h.jsx)(s.Z,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(n=t.isVideoMuted)&&void 0!==n?n:null}):(0,h.jsx)(u,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null})}},8493:function(t,e,n){var i=n(7313),o=n(6422),r=n(7753),a=(n(2607),n(204),n(3175)),l=n(58),d=n(6417);function s(t){var e,n,s;const[c,h]=(0,o.Z)(),[u,p]=(0,i.useState)(i.useRef()),[x,g]=(0,r.j1)("whatmoreVideoPlayerPoolBlessed"),[m,f]=(0,i.useState)(!0),v=t.timeUpdateCallback,w=null!==(e=t.isVideoMuted)&&void 0!==e?e:c,j=null!==(n=t.height)&&void 0!==n?n:"100%",C=null!==(s=t.width)&&void 0!==s?s:"100%";return(0,i.useLayoutEffect)((()=>{var e;u.current&&x&&(0==u.current.children.length?((e=(0,l.Bi)(u.current,t.url,w||!t.isPlaying,t.isPlaying)).addEventListener("loadeddata",(()=>{f(!1)})),v&&e.addEventListener("timeupdate",(t=>{var n,i;e&&v(null!==(n=e.currentTime)&&void 0!==n?n:0,null!==(i=e.duration)&&void 0!==i?i:0)}))):((e=u.current.children[0]).muted=w||!t.isPlaying,t.isPlaying?e.play():e.pause()))}),[w,t.isPlaying,x]),(0,i.useLayoutEffect)((()=>()=>{u.current&&0!=u.current.children.length&&(0,l.P7)(u.current)}),[]),(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:C,height:j,overflow:"hidden"},children:[(0,d.jsx)("div",{ref:u,style:{width:m?"0px":"100%",height:m?"0px":"100%"},className:"whatmore-video-player-ios-holder"}),m?(0,d.jsx)(a.Z,{width:C,height:j}):(0,d.jsx)(d.Fragment,{})]})}e.Z=function(t){var e;return(0,d.jsx)(s,{height:t.height,width:t.width,url:t.url,isPlaying:t.isPlaying,timeUpdateCallback:t.timeUpdateCallback,isVideoMuted:null!==(e=t.isVideoMuted)&&void 0!==e?e:null})}},8782:function(t,e,n){n.d(e,{P:function(){return d}});var i=n(3933),o=n(8866),r=n(7313),a=(n(123),n(6417));function l(t){const{ref:e,inView:n,entry:o}=(0,i.YD)({triggerOnce:t.retainAlreadyRenderedElements});return(0,a.jsx)("div",{ref:e,children:n?t.renderElement({eventData:t.data}):(0,a.jsx)("div",{style:{minWidth:t.defaultHeight,minHeight:t.defaultWidth}})})}function d(t){var e;const[n,i,d]=(0,o.Z)();return(0,r.useEffect)((()=>{function t(t){t.preventDefault(),t.stopPropagation(),e.scrollLeft+=t.deltaX,e.scrollLeft+=t.deltaY}const e=document.querySelector(".whatmore-carousel-horizontal-flex");return null===e||void 0===e||e.addEventListener("wheel",t),()=>{document.removeEventListener("wheel",t)}}),[]),(0,a.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(e=t.spacing)&&void 0!==e?e:3,overflowX:"auto"},className:"whatmore-carousel-horizontal-flex",children:t.dataList.map(((e,n)=>(0,a.jsx)(l,{renderElement:t.renderElement,data:e,defaultHeight:t.defaultHeight,defaultWidth:t.defaultWidth,retainAlreadyRenderedElements:t.retainAlreadyRenderedElements},"key-"+n)))})}},342:function(t,e,n){n.d(e,{WN:function(){return o},uv:function(){return i}});const i=function(t){var e;return"event_media_urls"in t?"secondary"in t.event_media_urls?t.event_media_urls.secondary.portrait.content_video_1080p:null!==(e=t.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==e?e:null:t.event_hls_url},o=function(t){return"event_media_urls"in t?"secondary"in t.event_media_urls?t.event_media_urls.secondary.landscape.content_video_1080p:t.event_media_urls.primary.landscape.content_video_1080p:t.event_hls_url}},7789:function(t,e,n){var i=n(8866);e.Z=function(t){const[e,n,o]=(0,i.Z)();var r="landscape"==e?n*(9/16):o;if("landscape"==e){const t=.85;return[n,r,n*t,r*t]}return[n,r,n,r]}},7053:function(t,e,n){n.d(e,{gK:function(){return r},pO:function(){return a}});var i=n(6233),o=n(4844);async function r(t,e,n){return"shopify"==e?(0,o.dg)(t):(0,i.Y4)(t,n)}async function a(t,e,n){return"shopify"==e?(0,o.bN)(t):(0,i.ln)(t,n)}},9111:function(){}}]);
|