whatmore-react-assets 1.0.1509 → 1.0.1513

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.
@@ -1 +0,0 @@
1
- (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[590],{7220:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return y}});var o=n(5830),i=n(9950),r=n(1348),a=n(1745);const l=function(t){new PerformanceObserver((e=>{for(const n of e.getEntries()){[`${window.location.origin}/cart/add.js`,`${window.location.origin}/cart/add`].includes(n.name)&&(console.debug("Whatmore :: Fetch request detected to",n.name),(0,r.dnh)(whatmoreShopId)&&setTimeout((()=>{(0,a.sw)(t)}),1e3))}})).observe({entryTypes:["resource"]})};var c=n(7740),s=n(4737),u=n(4833);var d,f=n(5491),h=n.n(f),p=n(964),m=n(4414);const g=i.lazy((()=>Promise.all([n.e(286),n.e(461),n.e(760)]).then(n.bind(n,1746)))),v=i.lazy((()=>Promise.all([n.e(572),n.e(526),n.e(879),n.e(286),n.e(296),n.e(461),n.e(774)]).then(n.bind(n,3389)))),w=i.lazy((()=>Promise.all([n.e(572),n.e(526),n.e(879),n.e(286),n.e(296),n.e(461),n.e(717)]).then(n.bind(n,8154)))),S=null!==(d="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==d&&d;let _=h()((t=>{fetch(p.$$+"/customization/frontend/"+t).then((t=>t.json())).then((e=>{(0,r.Tzr)(e,t),(0,o.t2)("brandCustomizationsLoaded",!0)})).catch((t=>{console.error("Whatmore : Error while fetching brandCustomizations : "+t)}))}),100,{leading:!0,trailing:!1});var y=function(){var t;const[e]=(0,o.QN)("whatmoreLandingLocationType"),[d]=(0,o.QN)("whatmoreShopId"),f=(0,o.Xd)("isInDesignMode"),[h,p]=(0,o.QN)("brandCustomizationsLoaded"),[y]=(0,o.QN)("whatmoreEmbedAppUseVariant"),{whatmoreEventsBrowsingTemplate:b}=(0,i.useContext)(s.B),[j]=null===(t=performance)||void 0===t?void 0:t.getEntriesByType("navigation");if((0,i.useEffect)((()=>{if(!h){const t=3e5;(0,r.tVc)(t)&&"reload"!=(null===j||void 0===j?void 0:j.type)?p(!0):_(d)}null==localStorage.getItem("_user_wh_lc")&&"72201044272"==d&&n.e(259).then(n.bind(n,3446)).then((t=>{let{getLocationDetails:e}=t;return e()})).then((t=>(localStorage.setItem("_user_wh_lc",JSON.stringify(t)),{}))).catch((t=>{localStorage.setItem("_user_wh_lc",JSON.stringify({latitude:"",longitude:""})),console.error(`Error: ${t}`)}))}),[]),(0,i.useEffect)((()=>{l("true"===y),(0,r.WmJ)(d)&&function(t){let e=document.createElement("style");e.innerHTML=t,document.head.appendChild(e)}((0,r.WmJ)(d))}),[h]),!h)return(0,m.jsx)(m.Fragment,{});if((0,c.U)()){if((0,u.Ig)(b))return(0,m.jsx)(m.Fragment,{});if("index"===e||"collection"===e||e.startsWith("collection")||e.startsWith("page")){if(!(0,u.io)(b))return S&&console.debug("Whatmore : Shopify, rendering index/collection page carousels : "+b),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(g,{})})});if(function(){var t,e,n,i,a,l,c,s,u,h,p,m;const g=(0,o.Xd)("whatmoreCollectionId");return f||(null===(t=window)||void 0===t||null===(e=t.Shopify)||void 0===e||null===(n=e.theme)||void 0===n?void 0:n.role)&&"main"!==(null===(i=window)||void 0===i||null===(a=i.Shopify)||void 0===a||null===(l=a.theme)||void 0===l?void 0:l.role)||(0,r.hbj)(d)&&(null===(c=window)||void 0===c||null===(s=c.Shopify)||void 0===s||null===(u=s.theme)||void 0===u?void 0:u.role)&&"main"===(null===(h=window)||void 0===h||null===(p=h.Shopify)||void 0===p||null===(m=p.theme)||void 0===m?void 0:m.role)&&((0,r.R2w)(d)||g&&(0,r.Idi)(d).includes(g))}())return S&&console.debug("Whatmore : Shopify, rendering index/collection page spotlight : "+b),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(w,{})})})}var x,I,T,O,N,$,W,E,P,J,k,F;return e.startsWith("product")?(0,u.io)(b)?(null!==(x=window)&&void 0!==x&&null!==(I=x.Shopify)&&void 0!==I&&null!==(T=I.theme)&&void 0!==T&&T.role&&"main"===(null===(O=window)||void 0===O||null===(N=O.Shopify)||void 0===N||null===($=N.theme)||void 0===$?void 0:$.role)||window.location.href.includes("localhost:"))&&(0,r.fDZ)(d)?(S&&console.debug("Whatmore : Shopify, rendering PDP-page popup : "+b),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(v,{})})})):(null!==(W=window)&&void 0!==W&&null!==(E=W.Shopify)&&void 0!==E&&null!==(P=E.theme)&&void 0!==P&&P.role&&"main"!==(null===(J=window)||void 0===J||null===(k=J.Shopify)||void 0===k||null===(F=k.theme)||void 0===F?void 0:F.role)||f)&&(0,r.C1J)(d)?(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(v,{})})}):(S&&console.debug("Whatmore : Shopify, PDP-page popup disabled."),(0,m.jsx)(m.Fragment,{})):(S&&console.debug("Whatmore : Shopify, rendering PDP-page carousels : "+b),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(g,{})})})):((0,r.dnh)(d)&&(0,r.bQo)(d)&&"cart"===e&&(S&&console.debug("Whatmore : initiating whatmore attribution from cart page."),(0,a.sw)("true"===y)),(0,m.jsx)(m.Fragment,{}))}return"index"===e||"collection"===e?(0,u.io)(b)?(S&&console.debug("Whatmore : External, rendering index/collection page popup : "+b),(0,m.jsx)(m.Fragment,{})):(S&&console.debug("Whatmore : External, rendering index/collection page carousels : "+b),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(g,{})})})):e.startsWith("product")||"embed"===e?(0,u.Ig)(b)||(0,u.io)(b)?(0,r.fDZ)(d)?(S&&console.debug("Whatmore : External, rendering PDP-page popup : "+b),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(v,{})})})):(S&&console.debug("Whatmore : External, PDP-page popup disabled."),(0,m.jsx)(m.Fragment,{})):(S&&console.debug("Whatmore : External, rendering PDP-page carousels : "+b),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(g,{})})})):(0,m.jsx)(m.Fragment,{})}},7740:function(t,e,n){"use strict";function o(){return!(void 0==window.Shopify&&!window.location.href.includes("shopify")&&!window.location.href.includes("localhost:"))}n.d(e,{U:function(){return o}})},6641:function(t,e,n){"use strict";n.d(e,{Fk:function(){return s},gv:function(){return c},xv:function(){return l}});var o=n(5830);const i="Whatmore : ",r=(0,o.Xd)("whatmoreShopId");function a(t){console.debug(i+t)}function l(t){var e;null!==(e="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==e&&e&&(a("total events received : "+(t&&t.length)),a("events data : "+JSON.stringify(t)))}function c(t){var e;null!==(e="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==e&&e&&a(t)}const s=t=>{"STR60LW4WMA"!=r&&console.log(`%c ${t}`,"background: #D53F8C; color: white; font-size: 19px; padding: 5px; font-weight: semibold;","\n\nFind us here -> https://www.whatmore.ai")}},1745:function(t,e,n){"use strict";n.d(e,{RX:function(){return d},sw:function(){return u},iL:function(){return h},oV:function(){return f},Lt:function(){return c},js:function(){return s},tN:function(){return p},_N:function(){return m}});var o=n(1348);const i="_whatmore-tracking-id";var r=n(2089),a=n(4533),l=n(5830);function c(){const t="https://"+window.location.hostname+"/cart.json";return fetch(t,{method:"GET"})}async function s(){const t="https://"+window.location.hostname+"/cart.json";return await fetch(t,{method:"GET"})}async function u(t){var e;let n,c=(0,r.Ak)(),u=null,d=null,f={},h=null,p=null,m=null,g={};const v=(0,l.Xd)("whatmoreShopId");let w=(0,a.CK)(),S=null===(e=localStorage)||void 0===e?void 0:e.wht_is_impression,_=w.length>0;w.forEach((t=>{g.hasOwnProperty(null===t||void 0===t?void 0:t.product_id)||(g[null===t||void 0===t?void 0:t.product_id]={widgetInfo:null===t||void 0===t?void 0:t.widget_info,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.user_type})})),await s().then((t=>t.json())).then((e=>{c=e.token,n=e.attributes;let r=[];if(r=!0===t?e.items.map((t=>{const e=g[null===t||void 0===t?void 0:t.variant_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}})):e.items.map((t=>{const e=g[null===t||void 0===t?void 0:t.product_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}})),0==r.length)return console.debug("Whatmore :: no cart items available for view products"),null;r.map(((e,c)=>{if(u=e.key,d=e.quantity,f=e.properties,h=e.widget_info,p=e.location,m=e.userType,null!==f&&i in f||!g.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id))){if((S||_)&&0==c&&!(0,o.tSy)(v)){let t=n;if(1===r.length){const{_wvi:e,_wvs:o,...i}=n;t=i}!async function(t,e){const n=t?"__wvs":"__wvi",o={...e,[n]:"1"},i=await fetch("https://"+window.location.hostname+"/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:o})}).then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while updating cart attribute.",t)}))}(_,t,null===e||void 0===e||e.product_id)}}else!async function(t,e,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",c=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,d=arguments.length>8?arguments[8]:void 0;const f=(0,l.Xd)("whatmoreShopId"),h=s?(0,a.wm)()+("72201044272"==f?`#${o}#${r}#${c?"olduser":"newuser"}`:`#${o}`):d?"_wt_vs":u?"_wt_vi":"";if(""==h||"_wt_vs"==h||"_wt_vi"==h||"77604192550"==f||"80856187185"==f||"86486974743"==f)return;let p={id:t,quantity:e,properties:{...h?{[i]:h}:{},...n}};const m=await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)}).then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while updating cart line item properties.",t)}))}(u,d,f,h,p,m,!0,S,_)}))})).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",t)}))}async function d(t,e,n,r){let l,c,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",u=arguments.length>5?arguments[5]:void 0,d=arguments.length>6?arguments[6]:void 0;if((0,o.dnh)(n)){const o=(0,a.wm)()+("72201044272"==n?`#${r}#${s}#${u?"olduser":"newuser"}:direct`:`#${r}:direct`);if(l={items:[{id:t,quantity:e,properties:{[i]:o}}]},"77105758517"==n){c=new URLSearchParams,c.append("product-id",null===d||void 0===d?void 0:d.client_product_id),c.append("id",t),c.append("quantity",e);return await fetch("https://"+window.location.hostname+"/cart/add.js",{method:"POST",body:c})}}else l={items:[{id:t,quantity:e}]};return await fetch("https://"+window.location.hostname+"/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)})}function f(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",a=arguments.length>5?arguments[5]:void 0;const l="https://"+window.location.hostname;var c;const s="72201044272"==n?`came-from-whatmore-live_${i}_${r}_${a?"olduser":"newuser"}`:`came-from-whatmore-live_${i}`;(0,o.BLb)(n)?(c=`${l}/cart/${t}:${e}?`+(0,o.VCz)(n)+"&"+(0,o.Spk)(n)+"&"+(0,o.KMo)(n),(0,o.dnh)(n)&&(c=`${c}&ref=`+s)):(c=`${l}/cart/${t}:${e}`,(0,o.dnh)(n)&&(c=`${c}?ref=`+s)),window.location.href=c}function h(t){const e="https://"+window.location.hostname+"/cart";(0,o.BLb)(t)?window.location.href=e+"?"+(0,o.VCz)(t)+"&"+(0,o.Spk)(t)+"&"+(0,o.yD5)(t):window.location.href=e}async function p(t){let e;if("27303477337"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")){var n,o;const i="https://"+window.location.hostname,r=window.location.pathname.split("/");e=i+"/"+(null!==r&&void 0!==r&&null!==(n=r[1])&&void 0!==n&&n.startsWith("en-")?(null===r||void 0===r?void 0:r[1])+"/":"")+(null===t||void 0===t||null===(o=t.product_link)||void 0===o?void 0:o.split(".co")[1])+".js"}else e=(null===t||void 0===t?void 0:t.product_link)+".js";const i=await fetch(e,{method:"GET"});if(!i.ok)throw new Error(`Error! status: ${i.status}`);return await i.json()}async function m(t){const e=t.product_link+".json",n=await fetch(e,{method:"GET"});if(!n.ok)throw new Error(`Error! status: ${n.status}`);return await n.json()}},4533:function(t,e,n){"use strict";n.d(e,{CK:function(){return j},Ch:function(){return b},Fu:function(){return y},Hm:function(){return x},d3:function(){return I},wm:function(){return S},zv:function(){return _}});var o=n(2089),i=n(5830),r=n(4820);const a="_whatmore_user_id",l="_whatmore_session_id",c="_whatmore_viewed_products",s="_whatmore_add_to_cart_products",u="_whatmore_session_time",d="_whatmore_store_id",f="_whatmore_qview_index",h="_whatmore_brand_questions",p=(0,i.Xd)("whatmoreShopId"),m=18e5,g=2592e5,v=6e5,w="_whatmore_bulk_events";function S(){return localStorage.getItem(d)!=p&&localStorage.setItem(d,p),null==localStorage.getItem(a)&&function(){new Date;const t=(0,o.Ak)();localStorage.setItem(a,t)}(),localStorage.getItem(a)}function _(){const t=new Date,e=JSON.parse(localStorage.getItem(w))||[],n=localStorage.getItem(u);return(null==localStorage.getItem(l)||null==n||t.getTime()>n)&&(localStorage.removeItem(l),localStorage.removeItem(u),function(){const t=(0,o.Ak)(),e=(new Date).getTime()+m;localStorage.setItem(l,t),localStorage.setItem(u,e)}(),e&&e.length>0&&((0,r.u)(e),localStorage.removeItem(w))),localStorage.getItem(l)}function y(t,e,n,o,i){const r=(new Date).getTime(),a={event_id:t.event_id,product_id:e.client_product_id,product_title:e.title,price:e.price,timestamp:r,widget_info:n,location:o,user_type:i?"olduser":"newuser",variants:[]};if(null===localStorage.getItem(s))localStorage.setItem(s,JSON.stringify([a]));else{let t=JSON.parse(localStorage.getItem(s)).filter((t=>t.timestamp+g>r));localStorage.setItem(s,JSON.stringify([...t,a]))}}function b(t,e,n,o,i){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"default",a=arguments.length>6?arguments[6]:void 0;const l=[],s=(new Date).getTime();if(e.map((e=>{const c={event_id:t,product_id:e.client_product_id,product_title:e.title,price:e.price,timestamp:s,variants:[],page:n,widget_type:o,widget_info:i,location:r,user_type:a?"olduser":"newuser"};l.push(c)})),null===localStorage.getItem(c))console.debug("viewed Products",JSON.stringify(l)),localStorage.setItem(c,JSON.stringify(l));else{let e=JSON.parse(localStorage.getItem(c)),n=!1;e.map((e=>{let o=Object.assign({},e);return e.event_id===t&&(e.timestamp=s,n=!0),o})),n?localStorage.setItem(c,JSON.stringify(e)):localStorage.setItem(c,JSON.stringify([...e,...l]))}}function j(){const t=(new Date).getTime();let e=JSON.parse(localStorage.getItem(c));if(!e)return[];let n=e.filter((e=>e.timestamp+g>t));return localStorage.setItem(c,JSON.stringify(n)),n}function x(){if(null!=localStorage.getItem(f)){const t=parseInt(localStorage.getItem(f))+1;localStorage.setItem(f,t)}}function I(t){const e=(new Date).getTime();if(null==localStorage.getItem(h)){const n={questionList:null===t||void 0===t?void 0:t.filter((t=>1==(null===t||void 0===t?void 0:t.is_active))),timestamp:e};localStorage.setItem(h,JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem(h));if((null===n||void 0===n?void 0:n.timestamp)+v>e){const n={questionList:null===t||void 0===t?void 0:t.filter((t=>1==(null===t||void 0===t?void 0:t.is_active))),timestamp:e};localStorage.setItem(h,JSON.stringify(n))}}}},4820:function(t,e,n){"use strict";n.d(e,{u:function(){return r}});var o=n(964),i=n(6641);const r=function(t){let e={};const n=t.length<10;e.metric_event_list=t,(async()=>{!function(t,e){const n="ingesting analytis-event";(0,i.gv)(n);const r=t;fetch(o.qW+"/event_metrics/bulk",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r),keepalive:e}).then((t=>t.json())).then((t=>{})).catch((t=>{console.error("error "+n,t)}))}(e,n)})()}},4635:function(t,e,n){var o=n(4759).Symbol;t.exports=o},2022:function(t,e,n){var o=n(4635),i=n(1581),r=n(5336),a=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):r(t)}},6914:function(t,e,n){var o=n(8798),i=/^\s+/;t.exports=function(t){return t?t.slice(0,o(t)+1).replace(i,""):t}},6658:function(t,e,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=o},1581:function(t,e,n){var o=n(4635),i=Object.prototype,r=i.hasOwnProperty,a=i.toString,l=o?o.toStringTag:void 0;t.exports=function(t){var e=r.call(t,l),n=t[l];try{t[l]=void 0;var o=!0}catch(c){}var i=a.call(t);return o&&(e?t[l]=n:delete t[l]),i}},5336:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4759:function(t,e,n){var o=n(6658),i="object"==typeof self&&self&&self.Object===Object&&self,r=o||i||Function("return this")();t.exports=r},8798:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},5491:function(t,e,n){var o=n(4567),i=n(4378),r=n(2588),a=Math.max,l=Math.min;t.exports=function(t,e,n){var c,s,u,d,f,h,p=0,m=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function w(e){var n=c,o=s;return c=s=void 0,p=e,d=t.apply(o,n)}function S(t){var n=t-h;return void 0===h||n>=e||n<0||g&&t-p>=u}function _(){var t=i();if(S(t))return y(t);f=setTimeout(_,function(t){var n=e-(t-h);return g?l(n,u-(t-p)):n}(t))}function y(t){return f=void 0,v&&c?w(t):(c=s=void 0,d)}function b(){var t=i(),n=S(t);if(c=arguments,s=this,h=t,n){if(void 0===f)return function(t){return p=t,f=setTimeout(_,e),m?w(t):d}(h);if(g)return clearTimeout(f),f=setTimeout(_,e),w(h)}return void 0===f&&(f=setTimeout(_,e)),d}return e=r(e)||0,o(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(r(n.maxWait)||0,e):u,v="trailing"in n?!!n.trailing:v),b.cancel=function(){void 0!==f&&clearTimeout(f),p=0,c=h=s=f=void 0},b.flush=function(){return void 0===f?d:y(i())},b}},4567:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},9248:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},184:function(t,e,n){var o=n(2022),i=n(9248);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==o(t)}},4378:function(t,e,n){var o=n(4759);t.exports=function(){return o.Date.now()}},2588:function(t,e,n){var o=n(6914),i=n(4567),r=n(184),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(r(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=o(t);var n=l.test(t);return n||c.test(t)?s(t.slice(2),n?2:8):a.test(t)?NaN:+t}},2089:function(t,e,n){"use strict";n.d(e,{Ak:function(){return o}});let o=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(t)).reduce(((t,e)=>t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"),"")}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[474],{6945:function(e,t,o){o.r(t);var i=o(9950),n=o(340),r=o(9983),l=o(5873),s=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),a=o(8603),d=o(8378),c=o(9094),p=o(932),u=o(7300),h=o(5491),m=o.n(h),v=o(5830),y=o(7509),f=o(7136),x=o(1348),g=o(4737),w=o(5620),j=o(1351),P=o(6157),C=o(6641),S=o(1957),b=o(4414);const O=(0,a.A)({key:"whatmore-css-hv"});function M(e){const[t,o,n]=(0,p.A)(),r=(0,v.Xd)("whatmoreShopId"),l=e.events,s=e.onClick,a=n*(0,x.kcl)(r),c=(0,x.cbh)(r),[u,h]=(0,i.useState)(c?l.length:a),{whatmoreWidgetSourceDetails:m}=(0,i.useContext)(g.B);return(0,i.useEffect)((()=>{u<=a&&h((e=>e+a))}),[a]),(0,b.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("div",{style:{width:"8968077397"===r&&l.length<4?"200px":window.innerWidth,height:"fit-content"},children:(0,b.jsx)(d.RC,{slidesPerView:l.length>1?"51394281658"==r||"55820812447"==r?2:a:1,initialSlide:l.length>1&&"51394281658"!=r&&"55820812447"!=r?1:0,centeredSlides:"51394281658"!=r&&"55820812447"!=r,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:"51394281658"==r?1:.5,onSlideChange:e=>{(0,j.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:m}),e.realIndex>e.previousIndex&&h((e=>e+a))},loop:c&&l.length>2,children:l.map(((e,t)=>t<=u&&(0,b.jsx)(d.qr,{children:t=>{let{isActive:o,isPrev:i,isNext:n,isVisible:l}=t;return(0,x.DmD)(r)?(0,b.jsx)(S.A,{isOnFocus:o&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}}):(0,b.jsx)(w.A,{isOnFocus:("51394281658"==r||"55820812447"==r||o)&&l,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function N(e){const[t,o,n,r]=(0,p.A)(),[l,s]=(0,i.useState)(-1),a=(0,v.Xd)("whatmoreShopId"),u=e.onClick,h=e.events,y=(0,x.cbh)(a),[C,O]=(0,i.useState)(y?h.length:n),M="8968077397"==a||"19501891"==a?Math.floor(Math.min(n,h.length)):Math.min(n,h.length),N=Math.floor(Math.min(4,h.length)),{whatmoreWidgetSourceDetails:I}=(0,i.useContext)(g.B),A=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(A.current){const e="8968077397"===a&&h.length>=4?.7:(0,x.fHt)(a),t=o*M*e+"px";h.length<4||"8968077397"===a?A.current.style.setProperty("width",t,"important"):A.current.style.width=t}}),[o,M,a,C,h.length]),(0,i.useEffect)((()=>{C<=n&&O((e=>e+n))}),[n]),(0,b.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,b.jsx)("div",{ref:A,style:{height:"100%"},children:(0,b.jsx)(d.RC,{slidesPerView:"8968077397"==a?N:M,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:"8968077397"==a||"19501891"==a?Math.min(2,h.length):parseInt(M),onSlideChange:e=>{(0,j.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:I}),e.realIndex>e.previousIndex&&O((e=>e+n))},spaceBetween:0,loop:(y||"8968077397"==a||"19501891"==a)&&h.length>4,style:{height:"100%"},children:h.map(((e,t)=>{const o=m()((()=>s(t)),300);return t<=C&&(0,b.jsx)(d.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),s(-1)},style:{height:"100%"},children:o=>{let{isActive:i,isPrev:n,isNext:r,isVisible:s}=o;return s||"8968077397"==a||"19501891"==a&&(n||r)?(0,x.DmD)(a)?(0,b.jsx)(S.A,{isOnFocus:t==l,playOnUnfocus:!(0,x.aO7)(a)||t==parseInt(M/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,b.jsx)(w.A,{isOnFocus:t==l,playOnUnfocus:!(0,x.aO7)(a)||t==parseInt(M/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,b.jsx)(f.A,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,o,a]=(0,u.A)(),[d]=(0,v.QN)("whatmoreShopId"),[c]=(0,v.QN)("whatmorePrimaryColor"),[p]=(0,v.QN)("whatmoreTitleFont"),h="portrait"==t?(0,v.Xd)("whatmoreTitleFontSizePortrait"):(0,v.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,i.useContext)(g.B),f=(0,v.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,i.useContext)(g.B),j=e.events,P=e.onClick,S=p;function I(e){P(e)}return(0,i.useEffect)((()=>{(0,C.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{l.Sn.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-a"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,b.jsx)(s.C,{value:O,children:(0,b.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,b.jsx)(n.s,{theme:r.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,b.jsxs)(y.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||w?(0,b.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,b.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",S,"important"),e.style.setProperty("font-size",h+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,x.Odx)(d),lineHeight:(0,x.L0y)(d),letterSpacing:(0,x.l3V)(d)},children:w?"W"!==f?f:"":e.heading})}):(0,b.jsx)(b.Fragment,{}),"landscape"===t?(0,b.jsx)(N,{events:j,onClick:I}):(0,b.jsx)(M,{events:j,onClick:I})]})})})})}},7136:function(e,t,o){var i=o(9950),n=o(932),r=o(7509),l=o(5830),s=o(4414);t.A=function(e){var[t,o]=(0,n.A)();(0,i.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:o,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":t,overflow:"hidden"}})}},1957:function(e,t,o){var i=o(9950),n=o(932),r=(o(4826),o(5830)),l=o(9879),s=o(7509),a=o(22),d=o(1348),c=o(4737),p=o(6594),u=o(8538),h=o(8149),m=o(5727),v=o(4414);t.A=function(e){var t,o,y,f,x,g,w,j,P,C,S,b,O,M,N,I,A,k,F,_,D,E,R,W,z;const[T,B,U,X,H]=(0,n.A)(),V=.5*B;var L=(0,i.useContext)(s.h);const q=(0,r.Xd)("whatmoreUITheme"),G=(0,r.Xd)("whatmoreShopId"),K=(0,r.Xd)("whatmorePrimaryFont"),$=(0,r.Xd)("whatmoreSecondaryColor"),Q=e.onClick,Y=null===(t=e.isOnFocus)||void 0===t||t,Z=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,J=null!==(y=e.animateOnFocus&&(0,d.n5O)(G))&&void 0!==y&&y,ee="portrait"===H[a.dl],te=(ee?1.076*B*(0,d.HWj)(G):B*(0,d.N_4)(G))+"px",oe=(ee?1.076*B*(0,d.HWj)(G):B*(0,d.N_4)(G))+"px",ie=(ee?.965*B*(0,d.HWj)(G):.859*B*(0,d.N_4)(G))+"px",ne=(0,d.VYo)(G),{whatmoreIsPreviewMode:re}=(0,i.useContext)(c.B),le=.25*B,se=le+"px",[ae,de]=(0,i.useState)(e.event),[ce,pe]=(0,i.useState)(),ue=Math.round(+(null===(f=ae.products)||void 0===f||null===(x=f[0])||void 0===x?void 0:x.price)),he=Math.round(+(null===ae||void 0===ae||null===(g=ae.products[0])||void 0===g?void 0:g.compare_price)),me=he&&0!=he&&he>ue?Math.round((he-ue)/he*100):NaN,[ve,ye]=(0,i.useState)(me),[fe,xe]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{(0,d.w4b)(G)&&(0,p.fu)(ae,(0,d.NCy)(G),G).then((e=>{var t,o,i;de(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),r=Math.round(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;ye(l),xe(!0)}));(async()=>{var e;const t=await(0,h.M)(null===ae||void 0===ae||null===(e=ae.products)||void 0===e?void 0:e[0],(0,d.NCy)(G),G);pe(t),xe(!0)})()}),[]),(0,v.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",L.tileTopMargin+"px"),e.style.setProperty("margin-bottom",L.tileBottomMMargin+"px"))},className:J&&!ee?Y?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:B,margin:"0 auto",cursor:"pointer"},onClick:()=>{Q(ae)},children:["video"===ae.event_type&&"55076552858"===G&&!ee&&(0,v.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*V,marginLeft:V/2},children:(0,v.jsx)(m.A,{sx:{color:(0,d.KFN)(ae.whatmoreShopId)+" !important",opacity:.8,fontSize:V,filter:"drop-shadow(0 0 15px black);"}})}),(0,v.jsx)("div",{style:{width:B,height:ee&&Y?"STR2FOC6KG9"==G||"STRDOIDF6O7"==G?T:1.1*T:T,borderRadius:"round"==q?"5px":"0px",boxShadow:"round"==q?ne:null,borderWidth:(0,d.YcK)(G),borderColor:(0,d.Fwt)(G),overflow:"hidden"},children:(0,v.jsx)(l.A,{height:(0,d.u06)(G)+" !important",width:"100%",url:ae.thumbnail_image,isPlaying:Y||Z,event:ae})}),(0,v.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(re?(0,d.Tr1)(G):(0,d.UmS)(G))&&(0,v.jsx)("div",{style:{maxWidth:se,minWidth:null!==(w=ae.products)&&void 0!==w&&null!==(j=w[0])&&void 0!==j&&j.thumbnail_image?se:"0",overflow:"hidden"},children:(0,v.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,d.KZe)(G),"important")},src:null===(P=ae.products)||void 0===P||null===(C=P[0])||void 0===C?void 0:C.thumbnail_image,alt:"thumbnail"})}),(0,v.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(G),"important"),e.style.setProperty("font-size",te,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",K,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,u.v)(null===(S=ae.products[0])||void 0===S?void 0:S.title)}),fe&&(0,d.Nzx)(G)&&(0,v.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,d.vw2)(G)?"row":"row-reverse",justifyContent:(0,d.vw2)(G)?"flex-start":"flex-end"},children:[(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(G),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("font-family",K,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(G)?"normal":"bold"},children:(0,p.Sb)(parseFloat(null!==(b=null!==(O=null===ce||void 0===ce||null===(M=ce.variants)||void 0===M||null===(N=M[0])||void 0===N?void 0:N.price)&&void 0!==O?O:null===ce||void 0===ce?void 0:ce.price)&&void 0!==b?b:null===ae||void 0===ae||null===(I=ae.products)||void 0===I||null===(A=I[0])||void 0===A?void 0:A.price)," ",G,null===(k=ae.products[0])||void 0===k?void 0:k.currency)}),!isNaN(he)&&he>ue&&(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.gld)(G),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("font-family",K,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,p.Sb)(parseFloat(null!==(F=null!==(_=null===ce||void 0===ce||null===(D=ce.variants)||void 0===D||null===(E=D[0])||void 0===E?void 0:E.compare_at_price)&&void 0!==_?_:null===ce||void 0===ce?void 0:ce.compare_at_price)&&void 0!==F?F:null===ae||void 0===ae||null===(R=ae.products)||void 0===R||null===(W=R[0])||void 0===W?void 0:W.compare_price)," ",G,null===(z=ae.products[0])||void 0===z?void 0:z.currency)})]}),(0,d.Nzx)(G)&&fe&&!isNaN(ve)&&0!=ve&&(0,v.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(G)?"#343434"==$?(0,d.ub$)(G):$:(0,d.ub$)(G),alignItems:"center",borderRadius:(0,d.v8m)(G)+"px",width:"fit-content",padding:(0,d.Cf)(G)?"3px 6px":"0px"},children:(0,d.Cf)(G)?(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.BRY)(G),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",K,"important"))},children:`${ve}% Off`}):(0,v.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d._zx)(G),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",(0,d.ogW)(G),"important"))},children:(0,d.rsz)(G)})})]})]})]})}},7229:function(){},4669:function(){},6042:function(){},9130:function(){}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[676],{3369:function(e,t,i){i.r(t),i.d(t,{default:function(){return W}});var o=i(9950),n=i(340),r=i(9983),l=i(5873),s=(i(3997),i(9130),i(4669),i(9733),i(4365),i(7229),i(6042),i(572)),a=i(8603),d=i(8378),c=i(9094),p=i(932),h=i(7300),u=i(5491),m=i.n(u),v=i(5830),x=i(7509),y=i(7136),f=i(1348),g=i(4737),w=i(1351),b=i(6157),j=i(6641),P=(i(4826),i(9879)),S=i(4616),C=i(6649),k=i(6613),I=i(1131),A=i(4414);function F(e){const[t]=(0,v.QN)("whatmoreShopId"),[i,o,n]=(0,C.A)({triggerOnce:!0}),r=e.event,l=(0,k.At)()?e.isOnFocus:o;return(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,A.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)("p",{children:" "})}),(0,A.jsx)("div",{ref:i,children:l&&(0,f.imx)(t)?(0,A.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,A.jsx)(S.A,{event:r})}):(0,A.jsx)("div",{height:"20px"})})]})})}var O=function(e){var t,i,n,r,l,s,a,d;const[c,h,u,m,y]=(0,p.A)();var g=(0,o.useContext)(x.h);const w=(0,v.Xd)("whatmoreUITheme"),b=(0,v.Xd)("whatmoreShopId"),j=(0,v.Xd)("whatmorePrimaryFont"),S=(0,v.Xd)("whatmoreSecondaryColor"),C=e.event,k=e.onClick,O=null===(t=e.isOnFocus)||void 0===t||t,M=null!==(i=e.playOnUnfocus)&&void 0!==i&&i,N=null!==(n=e.animateOnFocus&&(0,f.n5O)(b))&&void 0!==n&&n,R=(0,f.VYo)(b);return(0,A.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",g.tileTopMargin+"px"),e.style.setProperty("margin-bottom",g.tileBottomMMargin+"px"))},style:{margin:"0 10px",width:"8968077397"==b||"19501891"==b?void 0:h,aspectRatio:"8968077397"==b||"19501891"==b?9/16:void 0,height:"8968077397"==b||"19501891"==b?"100%":c,borderRadius:"round"==w?"5px":"0px",boxShadow:"round"==w||"61187850326"==b||"19501891"==b?R:null,borderWidth:(0,f.YcK)(b),borderColor:(0,f.Fwt)(b),overflow:"hidden",cursor:"pointer",position:"relative"},className:N?O?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{var e,t,i,o,n,r,l;if("12326200"==b&&"image"==C.event_type&&(null===(e=C.products)||void 0===e?void 0:e.length)>0&&"oos"!=(null===(t=C.products)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.product_status)){var s,a;window.location.href=null===(s=C.products)||void 0===s||null===(a=s[0])||void 0===a?void 0:a.product_link}else{if("12326200"==b&&"image"==C.event_type)return;var d,c;"10588815418"==b&&""!=(null===(o=C.cta)||void 0===o||null===(n=o[1])||void 0===n?void 0:n.cta_link)&&""==(null===(r=C.cta)||void 0===r||null===(l=r[1])||void 0===l?void 0:l.cta_title)?window.location.href=null===(d=C.cta)||void 0===d||null===(c=d[1])||void 0===c?void 0:c.cta_link:k(C)}},children:[(0,A.jsx)(P.A,{height:(0,f.u06)(b)+" !important",width:"100%",url:C.thumbnail_image,isPlaying:O||M,event:C}),""!==(null===C||void 0===C?void 0:C.title)?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"wht-overlay-text",style:{position:"absolute",bottom:"4%",left:"50%",transform:"translateX(-50%)",color:"white",padding:"0.5rem 0rem 0rem 0.5rem",zIndex:1,width:"90%",maxWidth:"100%",wordWrap:"break-word",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.5)",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden",textOverflow:"ellipsis"},children:(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1px",alignItems:"center"},children:[(0,A.jsx)("p",{style:{fontFamily:j,fontSize:.1*h+"px",fontWeight:"600"},children:"12326200"==b?null===C||void 0===C||null===(r=C.title)||void 0===r?void 0:r.slice(7):null===C||void 0===C?void 0:C.title}),"12326200"==b&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.08*h+"px",fontWeight:"normal"},children:null===C||void 0===C||null===(l=C.title)||void 0===l?void 0:l.slice(0,7)}),(null===(s=C.products)||void 0===s?void 0:s.length)>0&&"oos"!=(null===(a=C.products)||void 0===a||null===(d=a[0])||void 0===d?void 0:d.product_status)&&(0,A.jsx)("button",{style:{display:"flex",alignItems:"center",borderRadius:"200px",marginTop:"4px",backgroundColor:S,padding:"8px 28px"},children:(0,A.jsx)("p",{style:{fontFamily:'"brandon-grotesque"',fontSize:.05*h+"px",fontWeight:"normal"},children:"SHOP NOW"})})]})]})}),(0,A.jsx)("div",{className:"wht-shopping-icon",style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,A.jsx)(I.A,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]}):(0,f.Q$)(b)&&(0,A.jsxs)("div",{style:{width:h,height:c},children:[(0,A.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix"}),(0,A.jsx)(F,{event:C,unfocusedDisplay:!O,isOnFocus:O})]})]})};const M=(0,a.A)({key:"whatmore-css-hv"});function N(e){const[t,i,n]=(0,p.A)(),r=(0,v.Xd)("whatmoreShopId"),l=e.events,s=e.onClick,a=n*(0,f.kcl)(r),c=(0,f.cbh)(r),[h,u]=(0,o.useState)(c?l.length:a),{whatmoreWidgetSourceDetails:m}=(0,o.useContext)(g.B);return(0,o.useEffect)((()=>{h<=a&&u((e=>e+a))}),[a]),(0,A.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,A.jsx)(d.RC,{slidesPerView:2,initialSlide:0,centeredSlides:!1,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:1,onSlideChange:e=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:m}),e.realIndex>e.previousIndex&&u((e=>e+a))},loop:c,children:l.map(((e,t)=>t<=h&&(0,A.jsx)(d.qr,{children:t=>{let{isActive:i,isPrev:o,isNext:n,isVisible:r}=t;return o||n||i?(0,A.jsx)(O,{isOnFocus:r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}}):(0,A.jsx)(y.A,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function R(e){const[t,i,n,r]=(0,p.A)(),[l,s]=(0,o.useState)(-1),a=(0,v.Xd)("whatmoreShopId"),[h]=(0,v.QN)("whatmoreLandingLocationType"),u=e.onClick,x=e.events,j=(0,f.cbh)(a),[P,S]=(0,o.useState)(j?x.length:n),C=Math.min(n,x.length),{whatmoreWidgetSourceDetails:k}=(0,o.useContext)(g.B),I=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(I.current){const e=i*C*(0,f.fHt)(a)+"px";x.length<4?I.current.style.setProperty("width",e,"important"):I.current.style.width=e}}),[i,C,a,P,x.length]),(0,o.useEffect)((()=>{P<=n&&S((e=>e+n))}),[n]),(0,A.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,A.jsx)("div",{ref:I,style:{height:"100%"},children:(0,A.jsx)(d.RC,{slidesPerView:"product"===h&&"87174349065"===a?2:C,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(C),onSlideChange:e=>{(0,w.UM)({userInteractionType:b.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:k}),e.realIndex>e.previousIndex&&S((e=>e+n))},spaceBetween:0,loop:j&&x.length>4,style:{height:"100%"},children:x.map(((e,t)=>{const i=m()((()=>s(t)),300);return t<=P&&(0,A.jsx)(d.qr,{onMouseEnter:()=>{i()},onMouseLeave:()=>{i.cancel(),s(-1)},style:{height:"100%"},children:i=>{let{isActive:o,isPrev:n,isNext:r,isVisible:s}=i;return s||n||r?(0,A.jsx)(O,{isOnFocus:t==l,playOnUnfocus:!(0,f.aO7)(a)||t==parseInt(C/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,A.jsx)(y.A,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}var W=function(e){const[t,i,a]=(0,h.A)(),[d]=(0,v.QN)("whatmoreShopId"),[c]=(0,v.QN)("whatmorePrimaryColor"),[p]=(0,v.QN)("whatmoreTitleFont"),u="portrait"==t?(0,v.Xd)("whatmoreTitleFontSizePortrait"):(0,v.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:m}=(0,o.useContext)(g.B),y=(0,v.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,o.useContext)(g.B),b=e.events,P=e.onClick,S=p;function C(e){P(e)}return(0,o.useEffect)((()=>{(0,j.Fk)("Video shopping powered by Whatmore!")}),[]),(0,o.useEffect)((()=>{l.Sn.forEach((e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-g"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-g"]');if(!i)return;i&&e&&(e.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,A.jsx)(s.C,{value:M,children:(0,A.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,A.jsx)(n.s,{theme:r.Ay,cssVarsRoot:m,resetCSS:!1,children:(0,A.jsxs)(x.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||w?(0,A.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",S),e.style.setProperty("font-size",u+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.Odx)(d),lineHeight:(0,f.L0y)(d),letterSpacing:(0,f.l3V)(d)},children:w?"W"!==y?y:"":e.heading})}):(0,A.jsx)(A.Fragment,{}),"landscape"===t?(0,A.jsx)(R,{events:b,onClick:C}):(0,A.jsx)(N,{events:b,onClick:C})]})})})})}},7509:function(e,t,i){i.d(t,{h:function(){return o}});const o=(0,i(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8538:function(e,t,i){i.d(t,{v:function(){return n}});var o=i(5830);function n(e,t){const i=(0,o.Xd)("whatmoreShopId");return"undefined"==typeof e||"undefined"==e||null==e?"":"6873415750"==i||"72442478904"==i||"58562281529"==i?e:"66168324332"==i&&"prod-tile"!=t?null===e||void 0===e||null===(n=e.split("- "))||void 0===n?void 0:n[0]:e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}));var n}},7136:function(e,t,i){var o=i(9950),n=i(932),r=i(7509),l=i(5830),s=i(4414);t.A=function(e){var[t,i]=(0,n.A)();(0,o.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:i,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":t,overflow:"hidden"}})}},4616:function(e,t,i){var o=i(9950),n=i(5830),r=i(932),l=i(8538),s=(i(4826),i(1348)),a=i(7973),d=i(4414);t.A=function(e){var t,i,c,p,[h,u]=(0,r.A)();const m=(0,n.Xd)("whatmoreUITheme"),[v]=(0,n.QN)("whatmorePrimaryFont"),[x,y]=(0,o.useState)(0),f=(0,n.Xd)("whatmoreShopId"),g=e.event;if(0==g.products.length)return(0,d.jsx)(d.Fragment,{});const w=.3*u,b=w+"px",j=w+"px",P=.07*u,S=P+"px";return(0,d.jsx)("div",{style:{width:u+"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,d.jsxs)("div",{ref:e=>{e&&e.style.setProperty("height","fit-content","important")},style:{display:"flex",flexFlow:"row nowrap",width:"100%",justifyContent:"space-between",alignItems:"center",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",paddingBottom:"5px",gap:"5px"},className:"whatmore-event-tile-product-scale-in-and-out-animation",children:[(0,d.jsx)("div",{ref:e=>{e&&e.style.setProperty("height",j,"important")},style:{width:(0,s.H$k)(f)?b:"auto",boxShadow:"round"==m?"0px 0px 5px 2px #B0B0B0":null,borderRadius:"round"==m?"5px":"0px",borderWidth:(0,s.YcK)(f),borderColor:(0,s.Fwt)(f),overflow:"hidden",backgroundColor:"rgb(220, 220, 220, 1)"},children:(0,d.jsx)("img",{ref:e=>{e&&(e.style.setProperty("object-fit",(0,s.KZe)(f),"important"),e.style.setProperty("max-width",b,"important"))},src:(0,a.b)(g.products[x].thumbnail_image,"&width=400&height=400"),style:{width:"100%",height:"100%",borderRadius:"round"==m?"5px":"0px"},alt:"product image"})}),(0,d.jsxs)("div",{style:{width:u-5-w+"px",height:"100%",borderRadius:"round"==m?"5px":"0px",overflow:"visible"},children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"fit-content",justifyContent:"center",alignItems:"center",paddingBottom:"4px"},children:(0,d.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",S,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",v,"important"),e.style.setProperty("-webkit-line-clamp",3,"important"),e.style.setProperty("line-clamp",3,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"normal"},children:(0,l.v)(g.products[x].title)})}),(0,s.gZ6)(f)&&(null===(t=g.products[x])||void 0===t||null===(i=t.product_metadata)||void 0===i?void 0:i.product_type)&&(0,d.jsx)("div",{style:{display:"flex",opacity:.8,width:"fit-content",maxWidth:u-5-w+"px",padding:"3px 6px",backgroundColor:"#D3D3D3",borderRadius:"round"==m?"3px":"0"},children:(0,d.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#000","important"),e.style.setProperty("maxWidth",u-5-w+"px","important"),e.style.setProperty("font-size",.7*P+"px","important"),e.style.setProperty("font-family",v,"important"),e.style.setProperty("font-weight","bold","important"),e.style.setProperty("text-overflow","ellipsis","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"))},children:null===(c=g.products[x])||void 0===c||null===(p=c.product_metadata)||void 0===p?void 0:p.product_type})})]})]},x)})}},7973:function(e,t,i){i.d(t,{B:function(){return l},b:function(){return r}});var o=i(1348),n=i(5830);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const i=(0,n.Xd)("whatmoreShopId");return"shopify"!=(0,o.NCy)(i)?"STRNV8MHJTF"==i?e+"?format=webp":e:e+t}function l(e){var t;if(null!==e&&void 0!==e&&e.includes("https://w-media.b-cdn.net/process-media"))return"image";const i=null===e||void 0===e||null===(t=e.trim())||void 0===t?void 0:t.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(i)?"image":null!==n&&void 0!==n&&n.test(i)?"video":void 0}},1131:function(e,t,i){var o=i(4994);t.A=void 0;var n=o(i(9526)),r=i(4414);t.A=(0,n.default)([(0,r.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"},"1")],"ShoppingBagTwoTone")},4826:function(){},7229:function(){},4669:function(){},6042:function(){},3997:function(){},9130:function(){}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[891],{7178:function(e,t,o){o.r(t);var i=o(9950),n=o(340),r=o(9983),l=o(5873),s=(o(3997),o(9130),o(4669),o(9733),o(4365),o(7229),o(6042),o(572)),a=o(8603),d=o(8378),c=o(9094),p=o(932),u=o(7300),h=o(5491),v=o.n(h),m=o(5830),y=o(7509),f=o(7136),x=o(1348),g=o(4737),w=o(1351),P=o(6157),j=o(6641),C=o(1957),S=o(4414);const b=(0,a.A)({key:"whatmore-css-hv"});function M(e){const[t,o,n]=(0,p.A)(),r=(0,m.Xd)("whatmoreShopId"),l=e.events,s=e.onClick,a=n*(0,x.kcl)(r),c=(0,x.cbh)(r),[u,h]=(0,i.useState)(c?l.length:a),{whatmoreWidgetSourceDetails:v}=(0,i.useContext)(g.B);return(0,i.useEffect)((()=>{u<=a&&h((e=>e+a))}),[a]),(0,S.jsx)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,S.jsx)("div",{style:{width:window.innerWidth,height:"fit-content"},children:(0,S.jsx)(d.RC,{slidesPerView:l.length>1?a:1,initialSlide:l.length>1?1:0,centeredSlides:!0,centeredSlidesBounds:!1,watchSlidesProgress:!0,touchRatio:.5,onSlideChange:e=>{(0,w.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:v}),e.realIndex>e.previousIndex&&h((e=>e+a))},loop:c,children:l.map(((e,t)=>t<=u&&(0,S.jsx)(d.qr,{children:t=>{let{isActive:o,isPrev:i,isNext:n,isVisible:r}=t;return i||n||o?(0,S.jsx)(C.A,{isOnFocus:o&&r,playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>{s(e)}}):(0,S.jsx)(f.A,{})}},"whatmore-event-tile-portrait-"+e.index)))})})})}function A(e){const[t,o,n,r]=(0,p.A)(),[l,s]=(0,i.useState)(-1),a=(0,m.Xd)("whatmoreShopId"),u=e.onClick,h=e.events,y=(0,x.cbh)(a),[j,b]=(0,i.useState)(y?h.length:n),M=Math.min(n,h.length),{whatmoreWidgetSourceDetails:A}=(0,i.useContext)(g.B),N=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(N.current){const e=o*M*(0,x.fHt)(a)+"px";h.length<4?N.current.style.setProperty("width",e,"important"):N.current.style.width=e}}),[o,M,a,j,h.length]),(0,i.useEffect)((()=>{j<=n&&b((e=>e+n))}),[n]),(0,S.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",paddingLeft:r+"px",paddingRight:r+"px"},className:"whatmore-events-carousel-landscape",children:(0,S.jsx)("div",{ref:N,style:{height:"100%"},children:(0,S.jsx)(d.RC,{slidesPerView:M,watchSlidesProgress:!0,modules:[c.Vx],navigation:!0,slidesPerGroup:parseInt(M),onSlideChange:e=>{(0,w.UM)({userInteractionType:P.O.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:A}),e.realIndex>e.previousIndex&&b((e=>e+n))},spaceBetween:0,loop:y&&h.length>4,style:{height:"100%"},children:h.map(((e,t)=>{const o=v()((()=>s(t)),300);return t<=j&&(0,S.jsx)(d.qr,{onMouseEnter:()=>{o()},onMouseLeave:()=>{o.cancel(),s(-1)},style:{height:"100%"},children:o=>{let{isActive:i,isPrev:n,isNext:r,isVisible:s}=o;return s||n||r?(0,S.jsx)(C.A,{isOnFocus:t==l,playOnUnfocus:!(0,x.aO7)(a)||t==parseInt(M/2)&&-1==l,animateOnFocus:!0,event:e,onClick:()=>{u(e)}}):(0,S.jsx)(f.A,{})}},"whatmore-event-tile-landscape-"+e.index)}))})})})}t.default=function(e){const[t,o,a]=(0,u.A)(),[d]=(0,m.QN)("whatmoreShopId"),[c]=(0,m.QN)("whatmorePrimaryColor"),[p]=(0,m.QN)("whatmoreTitleFont"),h="portrait"==t?(0,m.Xd)("whatmoreTitleFontSizePortrait"):(0,m.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:v}=(0,i.useContext)(g.B),f=(0,m.Xd)("whatmoreCollectionHeading"),{whatmoreIsCollectionsTemplate:w}=(0,i.useContext)(g.B),P=e.events,C=e.onClick,N=p;function I(e){C(e)}return(0,i.useEffect)((()=>{(0,j.Fk)("Video shopping powered by Whatmore!")}),[]),(0,i.useEffect)((()=>{l.Sn.forEach((e=>{var t;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-h"]');if(!o)return;o&&e&&(e.style.minHeight="0px")}))}),[]),delete r.Ay.styles.global,(0,S.jsx)(s.C,{value:b,children:(0,S.jsx)("div",{className:"whatmore-carousel-events",style:{height:"100%"},children:(0,S.jsx)(n.s,{theme:r.Ay,cssVarsRoot:v,resetCSS:!1,children:(0,S.jsxs)(y.h.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||w?(0,S.jsx)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,S.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",N,"important"),e.style.setProperty("font-size",h+"px","important"))},style:{color:c,backgroundClip:"text",textAlign:"center",fontWeight:(0,x.Odx)(d),lineHeight:(0,x.L0y)(d),letterSpacing:(0,x.l3V)(d)},children:w?"W"!==f?f:"":e.heading})}):(0,S.jsx)(S.Fragment,{}),"landscape"===t?(0,S.jsx)(A,{events:P,onClick:I}):(0,S.jsx)(M,{events:P,onClick:I})]})})})})}},7509:function(e,t,o){o.d(t,{h:function(){return i}});const i=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},7136:function(e,t,o){var i=o(9950),n=o(932),r=o(7509),l=o(5830),s=o(4414);t.A=function(e){var[t,o]=(0,n.A)();(0,i.useContext)(r.h);const a=(0,l.Xd)("whatmoreShopId");return e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:o,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":t,overflow:"hidden"}})}},1957:function(e,t,o){var i=o(9950),n=o(932),r=(o(4826),o(5830)),l=o(9879),s=o(7509),a=o(22),d=o(1348),c=o(4737),p=o(6594),u=o(8538),h=o(8149),v=o(5727),m=o(4414);t.A=function(e){var t,o,y,f,x,g,w,P,j,C,S,b,M,A,N,I,k,O,_,F,R,E,W,T,z;const[B,D,X,H,L]=(0,n.A)(),U=.5*D;var V=(0,i.useContext)(s.h);const q=(0,r.Xd)("whatmoreUITheme"),G=(0,r.Xd)("whatmoreShopId"),K=(0,r.Xd)("whatmorePrimaryFont"),$=(0,r.Xd)("whatmoreSecondaryColor"),Q=e.onClick,Y=null===(t=e.isOnFocus)||void 0===t||t,Z=null!==(o=e.playOnUnfocus)&&void 0!==o&&o,J=null!==(y=e.animateOnFocus&&(0,d.n5O)(G))&&void 0!==y&&y,ee="portrait"===L[a.dl],te=(ee?1.076*D*(0,d.HWj)(G):D*(0,d.N_4)(G))+"px",oe=(ee?1.076*D*(0,d.HWj)(G):D*(0,d.N_4)(G))+"px",ie=(ee?.965*D*(0,d.HWj)(G):.859*D*(0,d.N_4)(G))+"px",ne=(0,d.VYo)(G),{whatmoreIsPreviewMode:re}=(0,i.useContext)(c.B),le=.25*D,se=le+"px",[ae,de]=(0,i.useState)(e.event),[ce,pe]=(0,i.useState)(),ue=Math.round(+(null===(f=ae.products)||void 0===f||null===(x=f[0])||void 0===x?void 0:x.price)),he=Math.round(+(null===ae||void 0===ae||null===(g=ae.products[0])||void 0===g?void 0:g.compare_price)),ve=he&&0!=he&&he>ue?Math.round((he-ue)/he*100):NaN,[me,ye]=(0,i.useState)(ve),[fe,xe]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{(0,d.w4b)(G)&&(0,p.fu)(ae,(0,d.NCy)(G),G).then((e=>{var t,o,i;de(e);const n=Math.round(null===(t=e.products)||void 0===t||null===(o=t[0])||void 0===o?void 0:o.price),r=Math.round(null===e||void 0===e||null===(i=e.products[0])||void 0===i?void 0:i.compare_price),l=r&&0!=r&&r>n?Math.round((r-n)/r*100):NaN;ye(l),xe(!0)}));(async()=>{var e;const t=await(0,h.M)(null===ae||void 0===ae||null===(e=ae.products)||void 0===e?void 0:e[0],(0,d.NCy)(G),G);pe(t),xe(!0)})()}),[]),(0,m.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",V.tileTopMargin+"px"),e.style.setProperty("margin-bottom",V.tileBottomMMargin+"px"))},className:J&&!ee?Y?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:D,margin:"0 auto",cursor:"pointer"},onClick:()=>{Q(ae)},children:["video"===ae.event_type&&"55076552858"===G&&!ee&&(0,m.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*U,marginLeft:U/2},children:(0,m.jsx)(v.A,{sx:{color:(0,d.KFN)(ae.whatmoreShopId)+" !important",opacity:.8,fontSize:U,filter:"drop-shadow(0 0 15px black);"}})}),(0,m.jsx)("div",{style:{width:D,height:ee&&Y?"STR2FOC6KG9"==G||"STRDOIDF6O7"==G?B:1.1*B:B,borderRadius:"round"==q?"5px":"0px",boxShadow:"round"==q?ne:null,borderWidth:(0,d.YcK)(G),borderColor:(0,d.Fwt)(G),overflow:"hidden"},children:(0,m.jsx)(l.A,{height:(0,d.u06)(G)+" !important",width:"100%",url:ae.thumbnail_image,isPlaying:Y||Z,event:ae})}),(0,m.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(re?(0,d.Tr1)(G):(0,d.UmS)(G))&&(0,m.jsx)("div",{style:{maxWidth:se,minWidth:null!==(w=ae.products)&&void 0!==w&&null!==(P=w[0])&&void 0!==P&&P.thumbnail_image?se:"0",overflow:"hidden"},children:(0,m.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,d.KZe)(G),"important")},src:null===(j=ae.products)||void 0===j||null===(C=j[0])||void 0===C?void 0:C.thumbnail_image,alt:"thumbnail"})}),(0,m.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(G),"important"),e.style.setProperty("font-size",te,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",K,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,u.v)(null===(S=ae.products[0])||void 0===S?void 0:S.title)}),fe&&(0,d.Nzx)(G)&&(0,m.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,d.vw2)(G)?"row":"row-reverse",justifyContent:(0,d.vw2)(G)?"flex-start":"flex-end"},children:[(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.m5c)(G),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("font-family",K,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(G)?"normal":"bold"},children:(0,p.Sb)(parseFloat(null!==(b=null!==(M=null===ce||void 0===ce||null===(A=ce.variants)||void 0===A||null===(N=A[0])||void 0===N?void 0:N.price)&&void 0!==M?M:null===ce||void 0===ce?void 0:ce.price)&&void 0!==b?b:null===ae||void 0===ae||null===(I=ae.products)||void 0===I||null===(k=I[0])||void 0===k?void 0:k.price)," ",G,null===(O=ae.products[0])||void 0===O?void 0:O.currency)}),!isNaN(he)&&he>ue&&(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.gld)(G),"important"),e.style.setProperty("font-size",oe,"important"),e.style.setProperty("font-family",K,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,p.Sb)(parseFloat(null!==(_=null!==(F=null===ce||void 0===ce||null===(R=ce.variants)||void 0===R||null===(E=R[0])||void 0===E?void 0:E.compare_at_price)&&void 0!==F?F:null===ce||void 0===ce?void 0:ce.compare_at_price)&&void 0!==_?_:null===ae||void 0===ae||null===(W=ae.products)||void 0===W||null===(T=W[0])||void 0===T?void 0:T.compare_price)," ",G,null===(z=ae.products[0])||void 0===z?void 0:z.currency)})]}),(0,d.Nzx)(G)&&fe&&!isNaN(me)&&0!=me&&(0,m.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(G)?"#343434"==$?(0,d.ub$)(G):$:(0,d.ub$)(G),alignItems:"center",borderRadius:(0,d.v8m)(G)+"px",width:"fit-content",padding:(0,d.Cf)(G)?"3px 6px":"0px"},children:(0,d.Cf)(G)?(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d.BRY)(G),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",K,"important"))},children:`${me}% Off`}):(0,m.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,d._zx)(G),"important"),e.style.setProperty("font-size",ie,"important"),e.style.setProperty("font-family",(0,d.ogW)(G),"important"))},children:(0,d.rsz)(G)})})]})]})]})}},5727:function(e,t,o){var i=o(4994);t.A=void 0;var n=i(o(9526)),r=o(4414);t.A=(0,n.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.82"}),"PlayArrowRounded")},4826:function(){},7229:function(){},4669:function(){},6042:function(){},9130:function(){}}]);