whatmore-react-assets 1.0.1183 → 1.0.1185

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[824],{9219:function(t,n,o){o.d(n,{p_:function(){return p},Rb:function(){return v},jx:function(){return l}});var i=o(3145),r=o(6040),e=o.n(r),a=o(9854);function c(t,n){var o,i;return"STRI2XC0BMX"==n||"STRDG36BBP5"==n?null!==(i=(0,a.QxN)(n)[t])&&void 0!==i?i:t+" ":null!==(o=(0,a.QxN)(n)[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 s(t){if(t%1>=.1){return t.toString().split(".")[0].length>=4?parseInt(t):t.toFixed(2)}return parseInt(t)}function l(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"INR";if(!t||void 0==typeof t)return"";if(!u()){if("70993772860"==o||"72534294803"==o)return"$"+n+d(s(t));"STRY2V4XO5L"!=o&&"STRTFEDEDAP"!=o||(n="");const r="STRY2V4XO5L"==o||"STRTFEDEDAP"==o?t.toFixed(2):s(t);return c(null!==i&&void 0!==i?i:"INR",o)+n+d(r)}const r=t/100;if("57677938765"==o&&"object"==typeof Currency&&"INR"!==Currency.currentCurrency){var e;const t=null!==(e=c(Currency.currentCurrency,o))&&void 0!==e?e:"",i=Currency.convert(r,"INR",Currency.currentCurrency);return`${t}${n}${isNaN(i)?"":d(s(i))}`}if("1972174947"==o&&"object"==typeof DoublyGlobalCurrency&&"PKR"!==DoublyGlobalCurrency.currentCurrency){var a;const t=null!==(a=c(DoublyGlobalCurrency.currentCurrency,o))&&void 0!==a?a:"",i=DoublyGlobalCurrency.convert(r,"PKR",DoublyGlobalCurrency.currentCurrency);return`${t}${n}${isNaN(i)?"":d(s(i))}`}if("4392910921"==o&&"object"==typeof Currency&&"USD"!==Currency.currentCurrency){var l;const t=null!==(l=c(Currency.currentCurrency,o))&&void 0!==l?l:"",i=Currency.convert(r,"USD",Currency.currentCurrency);return`${t}${n}${isNaN(i)?"":d(s(i))}`}const p=window.Shopify.currency?window.Shopify.currency.active:i;return"24638181"==o?d(s(r))+n+c(p,o):c(p,o)+n+d(s(r))}async function p(t,n,o){for(let c=0;c<t.products.length;c++){var r,e,a;if(1==c&&"STRDOIDF6O7"==o)break;const u=await(0,i.vX)(t.products[c],n,o);t.products[c].price=null!==(r=u.price)&&void 0!==r?r:t.products[c].price,t.products[c].compare_price=null!==(e=u.compare_at_price)&&void 0!==e?e:t.products[c].compare_price,t.products[c].currency=null!==(a=u.currency_code)&&void 0!==a?a:t.products[c].currency,"STRTFEDEDAP"==o&&(t.products[c].discount=u.discount)}return t}async function v(t,n,o){var r,e,a;const c=await(0,i.vX)(t,n,o);return t.price=null!==(r=c.price)&&void 0!==r?r:t.price,t.compare_price=null!==(e=c.compare_at_price)&&void 0!==e?e:t.compare_price,t.currency=null!==(a=c.currency_code)&&void 0!==a?a:t.currency,t}},5945:function(t,n,o){o.d(n,{s:function(){return r}});var i=o(7753);function r(t){const n=(0,i.MO)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n||"58562281529"==n?t:t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},3145:function(t,n,o){o.d(n,{jg:function(){return kt},TE:function(){return Ct},rY:function(){return jt},OM:function(){return Nt},vX:function(){return It},ln:function(){return Rt}});var i=o(9854),r=o(8507);const e={STRDG36BBP5:"https://flash.andaazfashion.com",STRI2XC0BMX:"https://www.andaazfashion.com"};function a(t){const n=r.Z.get("andaaz_currency_code");return n||null}async function c(t,n){const o=function(t){return e[t]}(n),i=await fetch(`${o}/whatmore/index/index/?url=${function(t){var n,o;return null===t||void 0===t||null===(n=t.product_link)||void 0===n||null===(o=n.split(".com/"))||void 0===o?void 0:o[1]}(t)}${null==a()?"&currency_code=GBP":"&currency_code="+a()}`,{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){const n=t.data.product_data;var o=[{id:n.product_id,product_id:n.product_id,title:n.product_title,price:n.price,compare_at_price:n.mrp,currency_code:n.currency_code,available:"in_stock"==n.stock_status,option1:null,option2:null,option3:null}];const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:"",variants:o,options:i}}(i)}const u={STRCGMYX28X:"https://"+window.location.hostname,STRBG6F06XL:"https://"+window.location.hostname,STR1QF8R1DW:"https://"+window.location.hostname},d={S:0,M:1,L:2,XL:3,XXL:4};async function s(t){const n=localStorage.getItem("_whatmore_kt"),o=localStorage.getItem("_whatmore_kt_start_time");if(n&&o&&(new Date).getTime()<=parseInt(o)+6e5)return n;const i=await async function(t){const n=`https://api.whatmore.live/product/access/ans?store_id=${t}`;return await fetch(n).then((t=>t.json()))}(t);return localStorage.setItem("_whatmore_kt",i.token),localStorage.setItem("_whatmore_kt_start_time",(new Date).getTime()),i.token}function l(t){return u[t]}async function p(t,n){const o=l(n),i=await fetch(o+`/kartify/products?skus=${function(t){return t.product_metadata.sku_id}(t)}`,{headers:{apiKey:await s(n)}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n,o,i,r,e,a,c;const u=null===(n=t.products)||void 0===n?void 0:n[0];"options"in u&&0!=u.options.length||(u.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"}]);var s=u.variants.map((t=>{var n,o;return{id:u.product_id+"::"+(null===t||void 0===t?void 0:t.product_option_id)+"::"+(null===t||void 0===t?void 0:t.product_option_value_id),product_id:u.product_id,title:null===t||void 0===t?void 0:t.title,price:null===t||void 0===t||null===(n=t.itemPrice)||void 0===n?void 0:n.netSellerPayable,compare_at_price:null===t||void 0===t||null===(o=t.itemPrice)||void 0===o?void 0:o.mrp,available:t.status&&t.live,option1:""==t.size?null:t.size,option2:null,option3:null,options:[null===t||void 0===t?void 0:t.size]}}));(s=s.filter((t=>1==t.available))).sort(((t,n)=>d[t.option1]-d[n.option1]));const l=s.map((t=>t.option1)),p=[null===u||void 0===u||null===(o=u.variants)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.imageUrl];return{id:u.product_id,title:null===(r=u.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.title,body_html:u.short_description,variants:s,options:l.length>0&&!l.includes(null)?[{id:u.product_id,product_id:u.product_id,name:""!==(null===(a=s)||void 0===a||null===(c=a[0])||void 0===c?void 0:c.size)?"Size":"",position:1,values:l}]:[],images:p}}(i)}async function v(t,n,o){l(o);const i=t.split("::"),r=i[0],e="null"==i[1]?null:i[1],a="null"==i[2]?null:i[2];return whatmoreatc(r,n,e,a),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 _={STRR72TX6AT:"https://www.cbazaar.com"};async function h(t,n){function o(t){const n=t.data.product_data[0];var o=[{id:n.product_id,product_id:n.product_id,title:n.product_title,price:100*n.price,compare_at_price:100*n.mrp,currency_code:n.currency_code,available:!n.outOfStock,option1:null,option2:null,option3:null,options:[]}];const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:"",variants:o,options:i}}const i=function(t){return _[t]}(n),r=await fetch(i+"/productsv3api/getproductdetails/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t)));return o(r)}const m={STR2FOC6KG9:"https://api.whatmore.live/private/do/product/info?store_id=STR2FOC6KG9&product_id=",STRDOIDF6O7:"https://api.whatmore.live/private/do/product/info?store_id=STRDOIDF6O7&product_id="};async function f(t,n){const o=function(t){return m[t]}(n),i=await fetch(o+function(t){var n;return null===t||void 0===t||null===(n=t.product_metadata)||void 0===n?void 0:n.product_id}(t)).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n,o;const i=[];var r=t.data.product_data;null===r||void 0===r||null===(n=r.options)||void 0===n||null===(o=n.items)||void 0===o||o.forEach((t=>{if(null!==t&&void 0!==t&&t.stage){var n,o;null===t||void 0===t||null===(n=t.stage)||void 0===n||null===(o=n.items)||void 0===o||o.forEach((n=>{if(null!==n&&void 0!==n&&n.stage){var o,e;null===n||void 0===n||null===(o=n.stage)||void 0===o||null===(e=o.items)||void 0===e||e.forEach((o=>{const e={id:null===o||void 0===o?void 0:o.id,title:null===o||void 0===o?void 0:o.product_title,productLink:null===o||void 0===o?void 0:o.product_url,price:null===o||void 0===o?void 0:o.price,compare_at_price:null===r||void 0===r?void 0:r.mrp,image:null===o||void 0===o?void 0:o.thumbnail_image,available:!0,option1:null===t||void 0===t?void 0:t.variant,option2:null===n||void 0===n?void 0:n.variant,option3:null===o||void 0===o?void 0:o.variant,swatchUrl1:null===t||void 0===t?void 0:t.swatchUrl,swatchUrl2:null===n||void 0===n?void 0:n.swatchUrl,swatchUrl3:null===o||void 0===o?void 0:o.swatchUrl};i.push(e)}))}else{const o={id:null===n||void 0===n?void 0:n.id,title:null===n||void 0===n?void 0:n.product_title,productLink:null===n||void 0===n?void 0:n.product_url,price:null===n||void 0===n?void 0:n.price,compare_at_price:null===r||void 0===r?void 0:r.mrp,image:null===n||void 0===n?void 0:n.thumbnail_image,available:!0,option1:null===t||void 0===t?void 0:t.variant,option2:null===n||void 0===n?void 0:n.variant,option3:null,swatchUrl1:null===t||void 0===t?void 0:t.swatchUrl,swatchUrl2:null===n||void 0===n?void 0:n.swatchUrl};i.push(o)}}))}else{const n={id:null===t||void 0===t?void 0:t.id,title:null===t||void 0===t?void 0:t.product_title,productLink:null===t||void 0===t?void 0:t.product_url,price:null===t||void 0===t?void 0:t.price,compare_at_price:null===r||void 0===r?void 0:r.mrp,available:!0,image:null===t||void 0===t?void 0:t.thumbnail_image,option1:null===t||void 0===t?void 0:t.variant,option2:null,option3:null,swatchUrl1:null===t||void 0===t?void 0:t.swatchUrl};i.push(n)}}));const e=[];i.forEach((t=>{var n,o,i,a,c,u,d,s,l;null!==t&&void 0!==t&&t.option1&&(0==e.length&&e.push({name:null===r||void 0===r||null===(n=r.options)||void 0===n?void 0:n.id,position:1,values:[]}),!e[0].values.includes(t.option1)&&e[0].values.push(t.option1));null!==t&&void 0!==t&&t.option2&&(1==e.length&&e.push({name:null===r||void 0===r||null===(o=r.options)||void 0===o?void 0:o.items[0].stage.id,position:2,values:[]}),!e[1].values.includes(t.option2)&&e[1].values.push(t.option2));null!==t&&void 0!==t&&t.option3&&(2==e.length&&e.push({name:null===r||void 0===r||null===(i=r.options)||void 0===i||null===(a=i.items)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.stage)||void 0===u||null===(d=u.items)||void 0===d||null===(s=d[0])||void 0===s||null===(l=s.stage)||void 0===l?void 0:l.id,position:3,values:[]}),!e[2].values.includes(t.option3)&&e[2].values.push(t.option3))}));const a=e.findIndex((t=>{var n,o;return null===t||void 0===t||null===(n=t.name)||void 0===n||null===(o=n.toLowerCase())||void 0===o?void 0:o.includes("color")}));return{id:r.product_id,title:r.product_title,body_html:r.description,variants:0==i.length?[{id:r.product_id,title:null===r||void 0===r?void 0:r.product_title,price:null===r||void 0===r?void 0:r.price,compare_at_price:null===r||void 0===r?void 0:r.mrp,available:!0,image:null===r||void 0===r?void 0:r.thumbnail_image}]:i,options:e,images:-1!==a?i.map((t=>({optionsrc:null===t||void 0===t?void 0:t[`swatchUrl${a+1}`],src:null===t||void 0===t?void 0:t.image,color:null===t||void 0===t?void 0:t[`option${a+1}`]}))):i.map((t=>null===t||void 0===t?void 0:t.image))}}(i)}const w={STRRPY8YRZE:"https://idaho-o.com"},y=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"Y2tfZTI1OWVmNWVlNzg5MzIzYzIzOWU3ZDE0NjQwNmUwZmZkZGY4NDQ5Yzpjc19iYzdkZjI0MGEwYTgzNDhlZjNhMTI4ZTA3MDRkMmMwNmU5ZGM4NTM5");function T(t){return w[t]}async function S(t,n){const o=T(n),i=await fetch(o+"/wp-json/wc/v3/products/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{Authorization:"Basic "+y}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n;const o=t;var i=o.attributes[0].options.map(((t,n)=>{var i;return{id:(null!==(i=o.variations[n])&&void 0!==i?i:o.variations[0])+":"+o.id+":"+t[1],product_id:o.id,title:o.name,price:o.price,compare_at_price:o.price,available:"instock"===o.stock_status,option1:t,option2:null,option3:null,options:[t]}}));const r=(i=i.filter((t=>1==t.available))).map((t=>t.option1)),e=null===o||void 0===o||null===(n=o.images)||void 0===n?void 0:n.map((t=>null===t||void 0===t?void 0:t.src));return{id:o.product_id,title:o.name,body_html:o.description,variants:i,images:e,options:[{id:o.product_id,product_id:o.product_id,name:o.attributes[0].name.toUpperCase(),position:1,values:r}]}}(i)}async function g(t,n,o){const i=t.split(":"),r=i[0],e=i[1],a=i[2],c=T(o)+"/wp-admin/admin-ajax.php",u={Authorization:"Basic "+y},d=new FormData;d.append("action","woocommerce_ajax_add_to_cart"),d.append("product_id",e),d.append("product_sku",""),d.append("quantity",n),d.append("variation_id",r),d.append("variation[attribute_pa_size]",a?a.toLowerCase():"");return await fetch(c,{method:"POST",headers:u,body:d}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const b={STRVHD8LG12:"https://prod.indina.in"};async function R(t,n){const o=function(t){return b[t]}(n),i=await fetch(`${o}/api/products/${function(t){var n,o;return null===t||void 0===t||null===(n=t.product_link)||void 0===n||null===(o=n.split("/products/"))||void 0===o?void 0:o[1]}(t)}`,{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n,o,i,r;const e=t;var a=[{id:e.id,product_id:e.id,title:e.name,price:null===(n=e.product_attributes)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.final_price,compare_at_price:null===(i=e.product_attributes)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.price,currency_code:"INR",available:!0,option1:null,option2:null,option3:null}];const c=(a=a.filter((t=>1==t.available))).map((t=>t.option1));return{id:e.id,title:e.name,body_html:"",variants:a,options:c}}(i)}const k={STRGXL92H5M:"https://webapi.jaipurrugs.com"};async function j(t){const n=localStorage.getItem("_whatmore_jrugs_kt"),o=localStorage.getItem("_whatmore_jrugs_end_time");if(n&&o&&(new Date).getTime()<=parseInt(o))return n;const i=await async function(t){return await fetch("https://webapi.jaipurrugs.com/api/oauth/access_token",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:"test@pixxeldigital.com",Password:"test@123",client_id:"DD92F35C-FA0F-48A8-AF09-13197463D6CF",client_secret:"373C883D-350F-4823-BEDD-F85241777825",grant_type:"password"})}).then((t=>t.json()))}();return localStorage.setItem("_whatmore_jrugs_kt",i.token),localStorage.setItem("_whatmore_jrugs_end_time",(new Date).getTime()+6e5),i.token}async function C(t,n){const o=function(t){return k[t]}(n);return function(t){const n=null===t||void 0===t?void 0:t[0],o=[{id:n.product_id,product_id:n.product_id,title:n.product_title,price:n.price,available:"in_stock"==n.stock_status,compare_at_price:n.mrp,option1:null,option2:null,option3:null}];return{id:n.product_id,title:n.product_title,body_html:n.description,variants:o,currency_code:n.currency_code,options:[]}}(await fetch(o+"/api/WebsiteMaster/test/Whatmore-product-detail",{method:"POST",body:JSON.stringify({product_id:t.product_id}),headers:{"Content-Type":"application/json",Authorization:`Bearer ${await j()}`}}).then((t=>t.json())).catch((t=>console.error(t))))}var N;const I={STRMM0QP0CU:"https://"+window.location.hostname},P=null!==(N=r.Z.get("form_key"))&&void 0!==N?N:"undefined",D=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"ds243corrt3qkd1rhoeyfes3ztefxjae");function O(t){return I[t]}async function U(t,n){var o=await async function(t){const n=O(t);return(await fetch(n+"/rest/V1/products/attributes/ready_to_wear_sizes",{method:"GET",headers:{Authorization:"Bearer "+D}}).then((t=>t.json())).catch((t=>console.error(t)))).options.reduce(((t,n,o)=>(n.value&&n.label&&(t[n.value]=n.label),t)),{})}(n),i=[];return t.split(",").forEach((t=>{t in o&&i.push(t+":"+o[t])})),i}async function $(t,n){async function o(t){const o=t,i=o.extension_attributes.is_ready_to_ware,r=o.custom_attributes.reduce(((t,n,o)=>(t[n.attribute_code]=n.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==i)return await e();if(!("ready_to_wear_sizes"in r))return await e();const a=await U(r.ready_to_wear_sizes,n),c=await async function(t){var n=[];return t.options.forEach((t=>{t.values.forEach((o=>{"Ready to wear"==o.title&&n.push(t.option_id+":"+o.option_type_id)}))})),n.length>0?n[0]:void 0}(t);return c?await async function(t,n){const i=t.map(((t,i)=>{var e;const a=o.extension_attributes.stock_item.item_id,c=t.split(":")[0],u=t.split(":")[1];return{id:"multi_option::"+o.id+":"+a+":"+u+":"+c+":"+n,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,n)=>{t.split(":")[0];return t.split(":")[1]}));return{id:o.id,title:o.name,body_html:r.description,variants:i,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}]}}(a,c):await e()}const i=O(n),r=await fetch(i+"/rest/default/V1/products/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{Authorization:"Bearer "+D,"User-Agent":"PostmanRuntime/7.32.3"}}).then((t=>t.json())).catch((t=>console.error(t)));return await o(r)}async function G(t,n,o){var i,r;if(t.startsWith("single_option::")){const i=t.split("::")[1],r=O(o)+"/ajaxcart",e={Authorization:"Bearer "+D},a=new FormData;a.append("product",i),a.append("item",i),a.append("qty",n),a.append("form_key",P);return await fetch(r,{method:"POST",headers:e,body:a}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const e=t.split("::")[1].split(":"),a=e[0],c=(e[1],e[2]),u=(e[3],null!==(i=e[4])&&void 0!==i?i:void 0),d=null!==(r=e[5])&&void 0!==r?r:void 0,s=O(o)+"/ajaxcart",l={Authorization:"Bearer "+D},p=new FormData;p.append("product",a),p.append("item",a),p.append("qty",n),p.append("options["+u+"]",d),p.append("options[size_"+u+"]",c),p.append("form_key",P);return await fetch(s,{method:"POST",headers:l,body:p}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const E={STRK70X2OVV:"http://dev-panash.panashindia.com",STR3PNIYEZ6:"https://www.panashindia.com"};async function X(t,n){function o(t){const n=t.data.product_data;var o=[{id:n.product_id,product_id:n.product_id,title:n.product_title,price:100*n.price,compare_at_price:100*n.mrp,currency_code:n.currency_code,available:!0,option1:null,option2:null,option3:null,options:[]}];const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:"",variants:o,options:i}}const i=function(t){return E[t]}(n),r=await fetch(i+"/productsv3api/Productdetails/index/sku/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t)));return o(r)}const z={STRVIY73X3V:"https://staging.samyakk.com",STRBXUH5UGQ:"https://www.samyakk.com"};async function A(t,n){const o=function(t){return z[t]}(n),i=await fetch(o+"/rest/V2/get/product/"+function(t){var n,o;return null===t||void 0===t||null===(n=t.product_link)||void 0===n||null===(o=n.split(".com/"))||void 0===o?void 0:o[1]}(t),{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n;const o=t;var i=[{id:o.id,product_id:o.id,title:o.name,price:o.price,currency_code:null!==(n=o.currency_code)&&void 0!==n?n:"INR",available:o.stock_status,option1:null,option2:null,option3:null}];return i=i.filter((t=>1==t.available)),{id:o.id,title:o.name,body_html:"",variants:i,options:[]}}(i)}const F={STRHFVBOIST:"https://stag-tss.thesouledstore.com"},M={STRHFVBOIST:"tss-v2__is_exclusive_whatmore"};function B(t){return null!==localStorage.getItem(M[t])?JSON.parse(localStorage.getItem(M[t])).value:"none"}async function x(t){const n=JSON.parse(localStorage.getItem("_whatmore_tss_tk")),o=null===n||void 0===n?void 0:n.timestamp;if(n&&o&&(new Date).getTime()<=1e3*parseInt(o)+862e5)return n.value;const i=await async function(t){const n=`https://api.whatmore.live/product/access/tss?store_id=${t}`;return await fetch(n).then((t=>t.json()))}(t);return localStorage.setItem("_whatmore_tss_tk",JSON.stringify({value:i.token,timestamp:i.timestamp})),i.token}async function J(t,n){const o=function(t){return F[t]}(n)+"/api/v2/external/cataloguemgmt/product-detail/";return function(t){var o;const i=null===t||void 0===t||null===(o=t.object)||void 0===o?void 0:o.product_details,r=[{id:i.id,product_id:i.id,title:i.product,price:"none"==B(n)?i.price:B(n)?i.exclusive_price:i.spl_price>0?i.spl_price:i.price,available:!0,compare_at_price:i.price,option1:null,option2:null,option3:null}];return{id:i.id,title:i.product,body_html:"",variants:r,currency_code:"INR",options:[]}}(await fetch(o,{method:"POST",headers:{"content-type":"application/json","API-AUTH":await x(n)},body:JSON.stringify({product_slug:null===t||void 0===t?void 0:t.product_link.split("/product/")[1],gender_type:"0"})}).then((t=>t.json())).catch((t=>console.error(t))))}const Z={STRY2V4XO5L:"https://usqa.utsav.bz",STRTFEDEDAP:"https://www.utsavfashion.com"};function V(t){var n;return null!==(n=r.Z.get("currency_code"))&&void 0!==n?n:"USD"}async function L(t,n){const o=function(t){return Z[t]}(n),i=await fetch(o+`/rest/default/V1/utsav/product/detail?url=${function(t){var n,o;return null===t||void 0===t||null===(n=t.product_link)||void 0===n||null===(o=n.split("/product/"))||void 0===o?void 0:o[1]}(t)}`,{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).then((t=>JSON.parse(t))).catch((t=>console.error(t)));return function(t){var n;const o=t.data.product_data;var i=[{id:o.product_id,product_id:o.product_id,title:o.product_title,price:o.price,available:"in_stock"==o.Stock_status,compare_at_price:o.mrp,currency_code:null!==(n=o.currency_code)&&void 0!==n?n:"INR",option1:null,option2:null,option3:null}];return i=i.filter((t=>1==t.available)),{id:o.product_id,title:o.product_title,body_html:"",options:[],variants:i,discount:o.discount_percentage}}(i)}const Y={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"},H={STRNV8MHJTF:1,STR6HU283UZ:1,STR9T3LLEJB:5,STRWJMIOJNX:2,STR1D5ONOZX:4,STRUDQ36YAC:3},W=window.location.hostname.substring(10,4)+"_cart",q=window.location.hostname.substring(10,4)+"_carts",Q=window.location.hostname.substring(10,4)+"_curr";function K(t){return H[t]}function tt(t){return Y[t]}function nt(t){var n;return null!==(n=r.Z.get(Q))&&void 0!==n?n:"INR"}async function ot(t,n){const o=tt(n),i=await fetch(o+"/get-product?url_key="+function(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}(t)+"&store="+K(n)+"&currency="+nt(),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){const n=t.data.product_data[0];var o=Object.entries(n.variation).map((t=>{const n=t[1],o=n.configrable_atribute_value;return{id:n.id_product,product_id:n.id_product,title:"",price:100*n.selling_price,compare_at_price:100*n.price,available:"in-stock"==n.stock_status,option1:o,option2:null,option3:null,options:[o]}}));const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:n.description,variants:o,options:i}}(i)}async function it(t,n,o){const i=tt(o),e=r.Z.get(W),a=r.Z.get(q);var c={varient_id:t,qty:n,store:K(o)};e&&a&&(c={varient_id:t,qty:n,store:K(o),cart_id:e,cart_session:a});return await fetch(i+"/add-product",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then((t=>t.json())).then((t=>(e||(r.Z.set(W,t.data.cart_id,{expires:365}),r.Z.set(q,t.data.cart_session,{expires:365})),{ok:!0,status:200,json:function(){return{}}})))}const rt={STRJ5VPPT3U:"https://"+window.location.hostname,STR45JIP5JW:"https://"+window.location.hostname};function et(t){return rt[t]}async function at(t,n){const o=et(n),i=await fetch(o+"/catalog/whatsmoreproducts?slug="+function(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}(t),{method:"GET"}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){const n=t;null==n.variations&&(n.variations="no-variations");var o=Object.entries(n.variations.split(",")).map((t=>{const o=t[1];return{id:n.product_id+"::"+o,product_id:n.product_id,title:"",price:100*n.price,compare_at_price:100*n.mrp,available:!0,option1:o,option2:null,option3:null,options:[o]}}));const i=(o=o.filter((t=>1==t.available))).map((t=>t.option1));return{id:n.product_id,title:n.product_title,body_html:n.description,variants:o,options:i}}(i.product_detail)}async function ct(t,n,o){const i=et(o),r=t.split("::"),e=r[0],a=r.length>1?r[1]:"";return await fetch(i+"/cart/addtocart?productid="+e+("no-variations"!==a&&t?"&variation_value="+a:"")+"&qty="+n,{method:"GET"}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const ut="https://www.ninecolours.com";function dt(t){const n=t.product_link.split("-");return n[n.length-1]}function st(t){return"STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t}function lt(t){return"STRRPY8YRZE"==t}function pt(t){return"STR5KA9X0OZ"==t||"STRR72TX6AT"==t}function vt(t){return"STRMM0QP0CU"==t}function _t(t){return"STRJ5VPPT3U"==t||"STR45JIP5JW"==t}function ht(t){return"STRCGMYX28X"==t||"STRBG6F06XL"==t||"STR1QF8R1DW"==t}function mt(t){return"STRK70X2OVV"==t||"STR3PNIYEZ6"==t}function ft(t){return"STRVIY73X3V"==t||"STRBXUH5UGQ"==t}function wt(t){return"STRGXL92H5M"==t}function yt(t){return"STRY2V4XO5L"==t||"STRTFEDEDAP"==t}function Tt(t){return"STRDG36BBP5"==t||"STRI2XC0BMX"==t}function St(t){return"STRVHD8LG12"==t}function gt(t){return"STR2FOC6KG9"==t||"STRDOIDF6O7"==t}function bt(t){return"STRHFVBOIST"==t}async function Rt(t,n){if(st(n))return ot(t,n);if(lt(n))return S(t,n);if(pt(n))return h(t,n);if(mt(n))return X(t,n);if(vt(n))return $(t,n);if(_t(n))return at(t,n);if(ht(n))return p(t,n);if(ft(n))return A(t,n);if(wt(n))return C(t,n);if(yt(n))return L(t,n);if(Tt(n))return c(t,n);if(St(n))return R(t,n);if(gt(n))return f(t,n);if(bt(n))return J(t,n);if("STRGA3S8N41"==n){function o(t){const n=t.data.product_data[0];return{id:n.product_id,title:n.product_title,body_html:n.description,variants:[{id:n.product_id,title:"variant-1",option1:"variant-1",option2:null,option3:null,available:!0,price:n.price,compare_at_price:n.mrp,currency_code:n.currency_code,options:["variant-1"]}],options:[{name:"variant",position:1,values:["variant-1"]}]}}const i=ut;return o(await fetch(i+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:dt(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function kt(t,n,o){if(st(o))return await it(t,n,o);if(lt(o))return await g(t,n,o);if(vt(o))return G(t,n,o);if(_t(o))return ct(t,n,o);if(ht(o))return v(t,n,o);if(gt(o))return async function(t,n,o){const i=t;return"function"===typeof window.addToCartWM?window.addToCartWM(i):console.error("addToCartWM function is not available."),{ok:!0,status:200,json:function(){return{}}}}(t);if("STRGA3S8N41"==o){const o=ut;return await fetch(o+"/whatmore-addtocart ",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t,qty:n})})}return{}}async function jt(t,n,o){if(st(o))return async function(t,n,o){await it(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?`${r}/checkout?`+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):`${r}/checkout`,window.location.href=e}(t,n,o);if(lt(o))return async function(t,n,o){await g(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?`${r}/cart?`+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):`${r}/cart`,window.location.href=e}(t,n,o);if(vt(o))return async function(t,n,o){await G(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?`${r}/checkout/cart?`+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):`${r}/checkout/cart`,window.location.href=e}(t,n,o);if(_t(o))return async function(t,n,o){await ct(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?`${r}/checkout?`+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):`${r}/checkout`,window.location.href=e}(t,n,o);if(ht(o))return async function(t,n,o){await v(t,n,o);const r="https://"+window.location.hostname;var e;e=(0,i.lj5)(o)?`${r}/checkout?`+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):`${r}/checkout`,window.location.href=e}(t,n,o);if("STRGA3S8N41"==o){await kt(t,n,o);const e="https://"+window.location.hostname;var r;r=(0,i.lj5)(o)?`${e}/cart?`+(0,i.awP)(o)+"&"+(0,i.n9s)(o)+"&"+(0,i.Uch)(o):`${e}/cart`,window.location.href=r}return{}}async function Ct(t){if(st(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?`${n}/cart?`+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):`${n}/cart`,window.location.href=o}(t);if(lt(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?`${n}/cart?`+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):`${n}/cart`,window.location.href=o}(t);if(vt(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?`${n}/checkout/cart?`+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):`${n}/checkout/cart`,window.location.href=o}(t);if(_t(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?`${n}/cart?`+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):`${n}/cart`,window.location.href=o}(t);if(ht(t))return async function(t){const n="https://"+window.location.hostname;var o;o=(0,i.lj5)(t)?`${n}/cart?`+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):`${n}/cart`,window.location.href=o}(t);if(gt(t))return function(t){var n;n="https://"+window.location.hostname+"/bp",window.location.href=n}();if("STRGA3S8N41"==t){const o="https://"+window.location.hostname;var n;n=(0,i.lj5)(t)?`${o}/cart?`+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):`${o}/cart`,window.location.href=n}return{}}function Nt(t){if(st(t))return function(t){const n=r.Z.get(W),o=tt(t);return fetch(o+"/get-cart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cart_id:n})}).then((t=>t.json())).then((t=>({json:function(){return{item_count:t.data.item_count}}})))}(t);if(lt(t))return function(t){const n=T(t);return fetch(n+"/wp-json/wc/v3/cart",{method:"GET",headers:{Authorization:"Basic "+y}}).then((t=>t.json())).then((t=>({json:function(){var n;return{item_count:null!==(n=t.data.item_count)&&void 0!==n?n:0}}})))}(t);if(vt(t))return function(t){const n=O(t);return fetch(n+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+D}}).then((t=>t.json())).then((t=>({json:function(){var n;return{item_count:null!==(n=t.data.item_count)&&void 0!==n?n:0}}})))}(t);if(_t(t))return Promise.resolve({json:function(){return{item_count:0}}});if(ht(t))return Promise.resolve({json:function(){return{item_count:0}}});if(gt(t))return async function(t){let n=0;return"function"==typeof window.getCartCount&&(n=await window.getCartCount()),Promise.resolve({json:function(){return{item_count:n}}})}();if("STRGA3S8N41"==t){return fetch(ut+"/whatmore-cartcount ",{method:"GET",headers:{"Content-Type":"application/json"}})}return{}}async function It(t,n,o){if(st(o))return async function(t,n){const o=await ot(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:nt()}}(t,o);if(lt(o))return async function(t,n){const o=await S(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:"INR"}}(t,o);if(vt(o))return async function(t,n){const o=await $(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:"INR"}}(t,o);if(_t(o))return async function(t,n){const o=await at(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:"INR"}}(t,o);if(pt(o))return async function(t,n){const o=await h(t,n);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(mt(o))return async function(t,n){const o=await X(t,n);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(ht(o))return async function(t,n){var o,i,r,e;const a=await p(t,n);return{price:null===(o=a.variants[0])||void 0===o||null===(i=o.itemPrice)||void 0===i?void 0:i.netSellerPayable,compare_at_price:null===(r=a.variants[0])||void 0===r||null===(e=r.itemPrice)||void 0===e?void 0:e.mrp,currency_code:"INR"}}(t,o);if(ft(o))return async function(t,n){var o,i,r,e;const a=await A(t,n);return{price:null===(o=a.variants)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.price,compare_at_price:null,currency_code:null===(r=a.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.currency_code}}(t,o);if(wt(o))return async function(t,n){var o,i;const r=await C(t,n);return{price:null===(o=r.variants[0])||void 0===o?void 0:o.price,compare_at_price:null===(i=r.variants[0])||void 0===i?void 0:i.compare_at_price,currency_code:r.currency_code}}(t,o);if(yt(o))return async function(t,n){var o,i,r,e;const a=await L(t,n);return{price:null===(o=a.variants)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.price,compare_at_price:null===(r=a.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.compare_at_price,currency_code:V(),discount:a.discount}}(t,o);if(Tt(o))return async function(t,n){const o=await c(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:o.variants[0].currency_code}}(t,o);if(St(o))return async function(t,n){const o=await R(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:o.variants[0].currency_code}}(t,o);if(gt(o))return async function(t,n){const o=await f(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:"INR"}}(t,o);if(bt(o))return async function(t,n){var o,i;const r=await J(t,n);return{price:null===(o=r.variants[0])||void 0===o?void 0:o.price,compare_at_price:null===(i=r.variants[0])||void 0===i?void 0:i.compare_at_price,currency_code:r.currency_code}}(t,o);if("STRGA3S8N41"==o){const n=await Rt(t,o);return{price:n.variants[0].price,compare_at_price:n.variants[0].compare_at_price,currency_code:n.variants[0].currency_code}}return{}}},7053:function(t,n,o){o.d(n,{p:function(){return e}});var i=o(3145),r=o(4844);async function e(t,n,o){return"shopify"==n?(0,r.bN)(t,o):(0,i.ln)(t,o)}},6143:function(){}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[180],{3440:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return _}});var o=n(7753),i=n(7313),r=n(9854),l=n(4844);const a=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.qcZ)(whatmoreShopId)&&setTimeout((()=>{(0,l.Cj)(t)}),1e3))}})).observe({entryTypes:["resource"]})};var c=n(5416),s=n(364),u=n(6524);var d,f=n(2279),h=n.n(f),m=n(2860),p=n(6417);const g=i.lazy((()=>Promise.all([n.e(548),n.e(766),n.e(428)]).then(n.bind(n,5582)))),v=i.lazy((()=>Promise.all([n.e(302),n.e(13),n.e(240),n.e(367),n.e(423),n.e(548),n.e(145),n.e(766),n.e(281)]).then(n.bind(n,4284)))),w=i.lazy((()=>Promise.all([n.e(302),n.e(13),n.e(240),n.e(367),n.e(423),n.e(548),n.e(145),n.e(766),n.e(312)]).then(n.bind(n,2209)))),S=null!==(d="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==d&&d;let y=h()((t=>{fetch(m.Gc+"/customization/frontend/"+t).then((t=>t.json())).then((e=>{(0,r.TZM)(e,t),(0,o.bU)("brandCustomizationsLoaded",!0)})).catch((t=>{console.error("Whatmore : Error while fetching brandCustomizations : "+t)}))}),100,{leading:!0,trailing:!1});var _=function(){var t;const[e]=(0,o.j1)("whatmoreLandingLocationType"),[d]=(0,o.j1)("whatmoreShopId"),f=(0,o.MO)("isInDesignMode"),[h,m]=(0,o.j1)("brandCustomizationsLoaded"),[_]=(0,o.j1)("whatmoreEmbedAppUseVariant"),{whatmoreEventsBrowsingTemplate:j}=(0,i.useContext)(s.I),[b]=null===(t=performance)||void 0===t?void 0:t.getEntriesByType("navigation");if((0,i.useEffect)((()=>{if(!h){const t=3e5;(0,r.fmD)(t)&&"reload"!=(null===b||void 0===b?void 0:b.type)?m(!0):y(d)}null==localStorage.getItem("_user_wh_lc")&&"72201044272"==d&&n.e(897).then(n.bind(n,3488)).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)((()=>{a("true"===_),(0,r.cEH)(d)&&function(t){let e=document.createElement("style");e.innerHTML=t,document.head.appendChild(e)}((0,r.cEH)(d))}),[h]),!h)return(0,p.jsx)(p.Fragment,{});if((0,c.G)()){if((0,u.yK)(j))return(0,p.jsx)(p.Fragment,{});if("index"===e||"collection"===e||e.startsWith("collection")){if(!(0,u.ru)(j))return S&&console.debug("Whatmore : Shopify, rendering index/collection page carousels : "+j),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(g,{})})});if(function(){var t,e,n,o,i,l,a,c,s,u,h,m;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===(o=window)||void 0===o||null===(i=o.Shopify)||void 0===i||null===(l=i.theme)||void 0===l?void 0:l.role)||(0,r.ZKt)(d)&&(null===(a=window)||void 0===a||null===(c=a.Shopify)||void 0===c||null===(s=c.theme)||void 0===s?void 0:s.role)&&"main"===(null===(u=window)||void 0===u||null===(h=u.Shopify)||void 0===h||null===(m=h.theme)||void 0===m?void 0:m.role)}())return S&&console.debug("Whatmore : Shopify, rendering index/collection page spotlight : "+j),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(w,{})})})}var x,I,O,T,E,N,$,P,W,J,F,D;return e.startsWith("product")?(0,u.ru)(j)?(null!==(x=window)&&void 0!==x&&null!==(I=x.Shopify)&&void 0!==I&&null!==(O=I.theme)&&void 0!==O&&O.role&&"main"===(null===(T=window)||void 0===T||null===(E=T.Shopify)||void 0===E||null===(N=E.theme)||void 0===N?void 0:N.role)||window.location.href.includes("localhost:"))&&(0,r.Nbw)(d)?(S&&console.debug("Whatmore : Shopify, rendering PDP-page popup : "+j),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(v,{})})})):(null!==($=window)&&void 0!==$&&null!==(P=$.Shopify)&&void 0!==P&&null!==(W=P.theme)&&void 0!==W&&W.role&&"main"!==(null===(J=window)||void 0===J||null===(F=J.Shopify)||void 0===F||null===(D=F.theme)||void 0===D?void 0:D.role)||f)&&(0,r.v6T)(d)?(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(v,{})})}):(S&&console.debug("Whatmore : Shopify, PDP-page popup disabled."),(0,p.jsx)(p.Fragment,{})):(S&&console.debug("Whatmore : Shopify, rendering PDP-page carousels : "+j),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(g,{})})})):((0,r.qcZ)(d)&&(0,r.Jy1)(d)&&"cart"===e&&(S&&console.debug("Whatmore : initiating whatmore attribution from cart page."),(0,l.Cj)("true"===_)),(0,p.jsx)(p.Fragment,{}))}return"index"===e||"collection"===e?(0,u.ru)(j)?(S&&console.debug("Whatmore : External, rendering index/collection page popup : "+j),(0,p.jsx)(p.Fragment,{})):(S&&console.debug("Whatmore : External, rendering index/collection page carousels : "+j),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(g,{})})})):e.startsWith("product")||"embed"===e?(0,u.yK)(j)||(0,u.ru)(j)?(0,r.Nbw)(d)?(S&&console.debug("Whatmore : External, rendering PDP-page popup : "+j),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(v,{})})})):(S&&console.debug("Whatmore : External, PDP-page popup disabled."),(0,p.jsx)(p.Fragment,{})):(S&&console.debug("Whatmore : External, rendering PDP-page carousels : "+j),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(i.Suspense,{children:(0,p.jsx)(g,{})})})):(0,p.jsx)(p.Fragment,{})}},5416:function(t,e,n){"use strict";function o(){return!(void 0==window.Shopify&&!window.location.href.includes("shopify")&&!window.location.href.includes("localhost:"))}n.d(e,{G:function(){return o}})},7381:function(t,e,n){"use strict";n.d(e,{EI:function(){return l},Oo:function(){return c},fs:function(){return a}});var o=n(7753);const i=(0,o.MO)("whatmoreShopId");function r(t){console.debug("Whatmore : "+t)}function l(t){var e;const n=null!==(e="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==e&&e;n&&(r("total events received : "+(t&&t.length)),r("events data : "+JSON.stringify(t)))}function a(t){var e;null!==(e="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==e&&e&&r(t)}const c=t=>{"STR60LW4WMA"!=i&&console.log(`%c ${t}`,"background: #D53F8C; color: white; font-size: 19px; padding: 5px; font-weight: semibold;","\n\nFind us here -> https://whatmore.live")}},4844:function(t,e,n){"use strict";n.d(e,{wW:function(){return d},Cj:function(){return u},JL:function(){return h},bj:function(){return f},Bi:function(){return c},Mj:function(){return s},bN:function(){return m},m3:function(){return p}});var o=n(9854);const i="_whatmore-tracking-id";var r=n(2751),l=n(6967),a=n(7753);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){let e=(0,r.x0)(),n=null,o=null,c={},u=null,d=null,f=null,h={};(0,l.MU)().forEach((t=>{h.hasOwnProperty(null===t||void 0===t?void 0:t.product_id)||(h[null===t||void 0===t?void 0:t.product_id]={widgetInfo:null===t||void 0===t?void 0:t.widget_info,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.user_type})})),await s().then((t=>t.json())).then((r=>{e=r.token;let s=[];if(s=!0===t?r.items.filter((t=>h.hasOwnProperty(JSON.stringify(t.variant_id)))).map((t=>{const e=h[null===t||void 0===t?void 0:t.variant_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}})):r.items.filter((t=>h.hasOwnProperty(JSON.stringify(t.product_id)))).map((t=>{const e=h[null===t||void 0===t?void 0:t.product_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}})),0==s.length)return console.debug("Whatmore :: no cart items available for view products"),null;s.map((t=>{if(n=t.key,o=t.quantity,c=t.properties,u=t.widget_info,d=t.location,f=t.userType,null===c||!(i in c)){const t=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;const s=(0,a.MO)("whatmoreShopId"),u=(0,l.hb)()+("72201044272"==s?`#${o}#${r}#${c?"olduser":"newuser"}`:`#${o}`);let d={id:t,quantity:e,properties:{[i]:u,...n}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}).then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while updating cart attribute.",t)}))}(n,o,c,u,d,f);return t}}))})).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",t)}))}async function d(t,e,n,r){let a,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.qcZ)(n)){const o=(0,l.hb)()+("72201044272"==n?`#${r}#${s}#${u?"olduser":"newuser"}:direct`:`#${r}:direct`);if(a={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 a={items:[{id:t,quantity:e}]};const f=await fetch("https://"+window.location.hostname+"/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});return f}function f(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",l=arguments.length>5?arguments[5]:void 0;const a="https://"+window.location.hostname;var c;const s="72201044272"==n?`came-from-whatmore-live_${i}_${r}_${l?"olduser":"newuser"}`:`came-from-whatmore-live_${i}`;(0,o.lj5)(n)?(c=`${a}/cart/${t}:${e}?`+(0,o.awP)(n)+"&"+(0,o.n9s)(n)+"&"+(0,o.Uch)(n),(0,o.qcZ)(n)&&(c=`${c}&ref=`+s)):(c=`${a}/cart/${t}:${e}`,(0,o.qcZ)(n)&&(c=`${c}?ref=`+s)),window.location.href=c}function h(t){const e="https://"+window.location.hostname+"/cart";(0,o.lj5)(t)?window.location.href=e+"?"+(0,o.awP)(t)+"&"+(0,o.n9s)(t)+"&"+(0,o.poG)(t):window.location.href=e}async function m(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("27303477337"===n){var o,i;const n="https://"+window.location.hostname,r=window.location.pathname.split("/");e=n+"/"+(null!==r&&void 0!==r&&null!==(o=r[1])&&void 0!==o&&o.startsWith("en-")?(null===r||void 0===r?void 0:r[1])+"/":"")+(null===t||void 0===t||null===(i=t.product_link)||void 0===i?void 0:i.split(".co")[1])+".js"}else e=(null===t||void 0===t?void 0:t.product_link)+".js";const r=await fetch(e,{method:"GET"});if(!r.ok)throw new Error(`Error! status: ${r.status}`);const l=await r.json();return l}async function p(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()}},6967:function(t,e,n){"use strict";n.d(e,{FF:function(){return y},H4:function(){return _},MU:function(){return j},hb:function(){return w},sQ:function(){return S},xV:function(){return x},xw:function(){return b}});var o=n(2751),i=n(7753),r=n(7008);const l="_whatmore_user_id",a="_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",m=(0,i.MO)("whatmoreShopId"),p=18e5,g=2592e5,v="_whatmore_bulk_events";function w(){return localStorage.getItem(d)!=m&&localStorage.setItem(d,m),null==localStorage.getItem(l)&&function(){new Date;const t=(0,o.x0)();localStorage.setItem(l,t)}(),localStorage.getItem(l)}function S(){const t=new Date,e=JSON.parse(localStorage.getItem(v))||[],n=localStorage.getItem(u);return(null==localStorage.getItem(a)||null==n||t.getTime()>n)&&(localStorage.removeItem(a),localStorage.removeItem(u),function(){const t=(0,o.x0)(),e=(new Date).getTime()+p;localStorage.setItem(a,t),localStorage.setItem(u,e)}(),e&&e.length>0&&((0,r.K)(e),localStorage.removeItem(v))),localStorage.getItem(a)}function y(t,e,n,o,i){const r=(new Date).getTime(),l={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([l]));else{let t=JSON.parse(localStorage.getItem(s)).filter((t=>t.timestamp+g>r));localStorage.setItem(s,JSON.stringify([...t,l]))}}function _(t,e,n,o,i){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"default",l=arguments.length>6?arguments[6]:void 0;const a=[],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:l?"olduser":"newuser"};a.push(c)})),null===localStorage.getItem(c))console.debug("viewed Products",JSON.stringify(a)),localStorage.setItem(c,JSON.stringify(a));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,...a]))}}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 b(){if(null!=localStorage.getItem(f)){const t=parseInt(localStorage.getItem(f))+1;localStorage.setItem(f,t)}}function x(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)+6e5>e){const n={questionList:null===t||void 0===t?void 0:t.filter((t=>1==(null===t||void 0===t?void 0:t.is_active))),timestamp:e};localStorage.setItem(h,JSON.stringify(n))}}}},7008:function(t,e,n){"use strict";n.d(e,{K:function(){return r}});var o=n(2860),i=n(7381);const r=function(t){let e={};const n=t.length<10;e.metric_event_list=t,(async()=>{!function(t,e){const n="ingesting analytis-event";(0,i.fs)(n);const r=t;fetch(o.DG+"/event_metrics/bulk",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r),keepalive:e}).then((t=>t.json())).then((t=>{})).catch((t=>{console.error("error "+n,t)}))}(e,n)})()}},8624:function(t,e,n){var o=n(7289).Symbol;t.exports=o},8665:function(t,e,n){var o=n(8624),i=n(3596),r=n(8186),l=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?i(t):r(t)}},2306:function(t,e,n){var o=n(5510),i=/^\s+/;t.exports=function(t){return t?t.slice(0,o(t)+1).replace(i,""):t}},2692:function(t,e,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=o},3596:function(t,e,n){var o=n(8624),i=Object.prototype,r=i.hasOwnProperty,l=i.toString,a=o?o.toStringTag:void 0;t.exports=function(t){var e=r.call(t,a),n=t[a];try{t[a]=void 0;var o=!0}catch(c){}var i=l.call(t);return o&&(e?t[a]=n:delete t[a]),i}},8186:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7289:function(t,e,n){var o=n(2692),i="object"==typeof self&&self&&self.Object===Object&&self,r=o||i||Function("return this")();t.exports=r},5510:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},2279:function(t,e,n){var o=n(1845),i=n(6170),r=n(7923),l=Math.max,a=Math.min;t.exports=function(t,e,n){var c,s,u,d,f,h,m=0,p=!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,m=e,d=t.apply(o,n)}function S(t){return m=t,f=setTimeout(_,e),p?w(t):d}function y(t){var n=t-h;return void 0===h||n>=e||n<0||g&&t-m>=u}function _(){var t=i();if(y(t))return j(t);f=setTimeout(_,function(t){var n=e-(t-h);return g?a(n,u-(t-m)):n}(t))}function j(t){return f=void 0,v&&c?w(t):(c=s=void 0,d)}function b(){var t=i(),n=y(t);if(c=arguments,s=this,h=t,n){if(void 0===f)return S(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)&&(p=!!n.leading,u=(g="maxWait"in n)?l(r(n.maxWait)||0,e):u,v="trailing"in n?!!n.trailing:v),b.cancel=function(){void 0!==f&&clearTimeout(f),m=0,c=h=s=f=void 0},b.flush=function(){return void 0===f?d:j(i())},b}},1845:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},9752:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},2060:function(t,e,n){var o=n(8665),i=n(9752);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==o(t)}},6170:function(t,e,n){var o=n(7289);t.exports=function(){return o.Date.now()}},7923:function(t,e,n){var o=n(2306),i=n(1845),r=n(2060),l=/^[-+]0x[0-9a-f]+$/i,a=/^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=a.test(t);return n||c.test(t)?s(t.slice(2),n?2:8):l.test(t)?NaN:+t}},2751:function(t,e,n){"use strict";n.d(e,{x0:function(){return o}});let o=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(t)).reduce(((t,e)=>t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"),"")}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[876,950,842],{1332:function(e,t,n){var r=n(7313),i=(n(8743),n(7753)),o=n(5254),a=n(6417);t.Z=function(e){return(0,r.useEffect)((()=>{const e=(0,o.oo)((0,i.MO)("whatmoreSecondaryColor"));!function(e,t,n,r){const i=`rgba(${e},${t},${n},${r})`,o=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${i}, 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.7), 1.8em -1.8em 0 0em ${i}, 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.5), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 2.5em 0em 0 0em ${i}, 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 1.75em 1.75em 0 0em ${i}, 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.7), 0em 2.5em 0 0em ${i}, -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.5), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -1.8em 1.8em 0 0em ${i}, -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -2.6em 0em 0 0em ${i}, -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${n}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${n}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${n}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${n}, 0.5), -2.6em 0em 0 0em rgba(${e}, ${t}, ${n}, 0.7), -1.8em -1.8em 0 0em ${i};\n }\n }\n `,a=document.createElement("style");a.type="text/css",a.innerHTML=o,document.head.appendChild(a)}(e[0],e[1],e[2],.2)}),[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"whatmore-loading-indicator"})})}},4658:function(e,t,n){n.r(t),n.d(t,{default:function(){return R}});var r=n(7313),i=n(6090),o=n(7616),a=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),s=n(2575),l=n(7129),d=n(364),m=(n(3439),n(7753)),c=n(7931),u=n(9018),h=n(9854),p=n(3933),v=n(8866),f=n(868),g=n(342),x=n(3437),$=n(3455),y=n(6417);var b=function(e){var t;const n=e.isMuted,r=null!==(t=e.iconSize)&&void 0!==t?t:30;function i(){e.onToggle()}return(0,y.jsx)("div",{style:{cursor:"pointer"},children:n?(0,y.jsx)($.Z,{sx:{color:"white",fontSize:r,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{i()}}):(0,y.jsx)(x.Z,{sx:{color:"white",fontSize:r,filter:"drop-shadow(0 0 5px black);"},onClick:()=>{i()}})})},w=n(1896),j=n(8984),_=n(58),C=n(6119),I=n(32),P=n(4522),S=n(778),M=n(3433);n(4892);function k(e){const[t,n]=(0,r.useState)(e.initialMuteState),i=e.events,o=e.activeEventIndex,a=e.setActiveEventIndex,s=(0,m.MO)("whatmoreShopId"),l="portrait"===e.mode;function d(){(0,h.hr)(s)&&e.isCTAPresent||(n(!t),(0,j.KE)()&&(0,_.QV)(),e.onMuteToggle())}const p=e.event;return(0,y.jsx)("div",{style:{position:(0,h.SJ)(s)?"absolute":"relative",top:(0,h.SJ)(s)?0:"",zIndex:1,bottom:(0,h.SJ)(s)?"":"100%",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,y.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,y.jsxs)("div",{className:"banner-event-overlay",style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",width:"100%",paddingRight:"1%",paddingLeft:"1%",paddingTop:"1%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:[!(e.isCTAPresent&&(0,h.hr)(s)||"video"!==p.event_type)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>d()}),(0,y.jsx)(b,{isMuted:t,onToggle:()=>{d()}})]}),i.length>1&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{classname:"banner-navigation-overlay",style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:e=>{e.stopPropagation(),a(0===o?i.length-1:o-1)},children:(0,y.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,y.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px"},children:(0,y.jsx)(c.Z,{})})})}),(0,y.jsx)("div",{style:{position:"absolute",right:"10px",top:"50%",transform:"translateY(-50%)",backgroundColor:"transparent",borderRadius:"50%",zIndex:2,border:"2px solid white",padding:"2px",cursor:"pointer"},onClick:e=>{e.stopPropagation(),a(o===i.length-1?0:o+1)},children:(0,y.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:"50%",padding:"6px"},children:(0,y.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",color:"#252525",height:"20px",textAlign:"center"},children:(0,y.jsx)(u.Z,{})})})}),(0,h.cRS)(s)&&(0,y.jsx)("div",{style:{display:"flex",position:"absolute",bottom:"7%",left:"50%",transform:"translateX(-50%)",gap:"24px",zIndex:1},children:i.map(((e,t)=>{const n=t===o;return(0,y.jsx)("button",{onClick:e=>{e.stopPropagation(),a(t)},style:{width:n?"25px":l?"12px":"14px",height:l?"12px":"14px",borderRadius:n?"10px":"50%",backgroundColor:n?(0,h.YFz)(s):"#f8eeec",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.3)"}},t)}))})]})]}),(0,y.jsx)("div",{style:{width:"100%",height:"100%"},onClick:()=>d()})]})})}var z=function(e){var t,n,i,o;const[a,s,l]=(0,v.Z)(),[c,u]=(0,r.useState)(!0),x=(0,m.MO)("whatmoreVideoTileSize"),{ref:$,inView:b,entry:j}=(0,p.YD)({triggerOnce:!1}),{whatmoreWidgetSourceDetails:_}=(0,r.useContext)(d.I),z=(0,m.MO)("whatmoreShopId"),Z=e.events,R=e.activeEventIndex,F=e.setActiveEventIndex,E=Z[R],N=(0,g.uv)(E),L=(0,g.WN)(E);if((0,r.useEffect)((()=>{I.IR.forEach((e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-banner-a"]')))return;e&&(e.style.minHeight="0px")}))}),[]),"portrait"===a&&!N)return(0,y.jsx)(y.Fragment,{});if("landscape"===a&&!L)return(0,y.jsx)(y.Fragment,{});const T=(0,f.V)("portrait"===a?N:L),W=x/100*(0,h.b4p)(z),O=x/100*(0,h.GmU)(z),A="portrait"===a?(0,h.oOc)(z):(0,h.snl)(z),V="portrait"===a?l*W:l*O,D=V*A,B=null!=(null===(t=E.cta)||void 0===t||null===(n=t[1])||void 0===n?void 0:n.cta_link);return(0,y.jsxs)("div",{ref:$,onClick:()=>{var e,t;(0,P.GF)({userInteractionType:S.K.BANNER_WIDGET_CLICKED,widgetSourceDetails:_,event:Z[R]}),(0,h.hr)(z)&&B&&window.open(null===(e=E.cta)||void 0===e||null===(t=e[1])||void 0===t?void 0:t.cta_link,"_self")},style:{position:"relative",margin:"0 auto",width:(0,h.SJ)(z)?"100%":V,minHeight:(0,h.SJ)(z)?l*A:"",height:(0,h.SJ)(z)?"auto":D,borderWidth:(0,h.alU)(z),borderColor:(0,h.qPe)(z),overflow:"hidden",cursor:"pointer"},children:[(0,y.jsx)(w.Z,{height:"100%",width:"100%",url:T,isPlaying:b,event:E,isVideoMuted:!b||c,setDuration:e.setDuration,source:M.j.BANNER}),(0,y.jsx)(k,{isCTAPresent:B,events:Z,activeEventIndex:R,setActiveEventIndex:F,event:E,mode:a,onMuteToggle:()=>u(!c),initialMuteState:c}),(0,h.j1_)(z)&&(null===E||void 0===E||null===(i=E.cta)||void 0===i?void 0:i.length)>1&&(0,y.jsx)("div",{style:{position:"absolute",zIndex:1,bottom:"10%",left:"50%",transform:"translateX(-50%)"},className:"whatmore-ios-css-relative-fix",children:(0,y.jsx)(C.Z,{isBanner:!0,event:E,cta:null===E||void 0===E||null===(o=E.cta)||void 0===o?void 0:o[1],fontFactor:.6})})]})};const Z=(0,s.Z)({key:"whatmore-css-bv"});var R=function(e){const{whatmoreRootId:t}=(0,r.useContext)(d.I),[n,s]=(0,r.useState)(0),m=e.events,[c,u]=(0,r.useState)(-1);let h;return(0,r.useEffect)((()=>{h&&clearInterval(h);const e="video"===m[n].event_type,t=e?1e3*c:6e3;return e?-1!=c&&(h=setInterval((()=>{s((e=>e===m.length-1?0:e+1))}),t)):h=setInterval((()=>{s((e=>e===m.length-1?0:e+1))}),t),()=>{clearInterval(h)}}),[c,n]),delete o.ZP.styles.global,(0,y.jsx)(a.C,{value:Z,children:(0,y.jsx)("div",{className:"whatmore-banner-events",children:(0,y.jsx)(i.x,{theme:o.ZP,cssVarsRoot:t,resetCSS:!1,children:(0,y.jsx)(l.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,y.jsx)(z,{activeEventIndex:n,events:m,setActiveEventIndex:s,setDuration:u})})})})})}},3867:function(e,t,n){var r=n(8816),i=n(417),o=n(4885),a=n(7753),s=n(6417);t.Z=function(e){var t;const n=(0,a.MO)("whatmoreUITheme"),[l]=(0,a.j1)("whatmoreSecondaryColor"),[d,m]=(0,a.j1)("productRatings"),c=(0,a.MO)("whatmorePrimaryFont"),u=e.productId,h=e.fontSize,p=null!==(t=e.fontColor)&&void 0!==t?t:"gray";if(null===d||"undefined"==typeof d||!(u in d)||d[u].avgRating>5)return(0,s.jsx)(s.Fragment,{});const v=d[u].avgRating,f=d[u].totalRatings;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(v))].map(((e,t)=>(0,s.jsx)(r.Z,{sx:{color:l,fontSize:h+"px"}},"star-icon"+t))),v-Math.floor(v)>.2?(0,s.jsx)(i.Z,{sx:{color:l,fontSize:h+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(o.Z,{sx:{color:l,fontSize:h+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map(((e,t)=>(0,s.jsx)(o.Z,{sx:{color:l,fontSize:h+"px"}},"star-outline-icon-"+t))),(0,s.jsx)("div",{children:(0,s.jsx)("div",{width:"2px"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{style:{backgroundColor:l,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,s.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color","white","important"),e.style.setProperty("font-size",.8*h+"px","important"),e.style.setProperty("font-family",c,"important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"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:"medium"},children:["\xa0",v,"\xa0"]})})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{ref:e=>{e&&(e.style.setProperty("color",p,"important"),e.style.setProperty("font-size",.8*h+"px","important"),e.style.setProperty("font-family",c,"important"),e.style.setProperty("-webkit-line-clamp",2,"important"),e.style.setProperty("line-clamp",2,"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:"medium"},children:["\xa0","("+f+")"]})})]})})}},7129:function(e,t,n){n.d(t,{V:function(){return r}});const r=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},3175:function(e,t,n){var r=n(1332),i=n(5180),o=n(6417);t.Z=function(e){var t,n;const a=null!==(t=e.height)&&void 0!==t?t:"100%",s=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,o.jsxs)("div",{style:{width:s,height:a,overflow:"hidden",minHeight:a,minWidth:s},children:[(0,o.jsx)(i.Z,{height:a,width:s}),(0,o.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,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,o.jsx)(r.Z,{})})})]})}},5180:function(e,t,n){var r=n(6417);t.Z=function(e){var t,n,i;const o=null!==(t=e.height)&&void 0!==t?t:"100%",a=null!==(n=e.width)&&void 0!==n?n:"100%",s=null!==(i=e.borderRadius)&&void 0!==i?i:"10px";return(0,r.jsx)("div",{style:{height:o,width:o,borderRadius:s,overflow:"hidden",minHeight:o,minWidth:a,maxHeight:o,maxWidth:a},children:(0,r.jsx)("div",{style:{minHeight:o,minWidth:a},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(e,t,n){var r=n(7313),i=n(3175),o=n(6417);t.Z=function(e){var t,n,a;const[s,l]=(0,r.useState)(!1),d=r.useRef(0),m=(0,r.useRef)(null),c=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},u=null!==(n=e.height)&&void 0!==n?n:"100%",h=null!==(a=e.width)&&void 0!==a?a:"100%";return(0,r.useEffect)((()=>{d.current=0;const e=setInterval((()=>{d.current=d.current+.03,m.current&&c(d.current,5),d.current>=5&&(d.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:"100%",overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,o.jsx)("img",{ref:m,src:e.url,style:{objectFit:"cover",height:"100%",width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{l(!0)}})}),s?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.Z,{width:h,height:u})]})}},4892:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(7313),i=n(3933),o=n(868),a=n(8984),s=n(7300),l=n(2887),d=n(4862),m=n(7753),c=n(342),u=(n(9854),n(6417));var h=function(e){var t,n,o,s;const l=(0,r.useRef)(null),[h,p,v]=(0,i.YD)({triggerOnce:!0}),f=(0,m.MO)("whatmoreShopId"),g=null!==(t=e.height)&&void 0!==t?t:"100%",x=null!==(n=e.width)&&void 0!==n?n:"100%";return(0,r.useEffect)((()=>{l.current&&(e.isPlaying?l.current.play():((d.G6||(0,a.gE)())&&l.current.play(),"57939755089"==f?setTimeout((()=>{l.current.pause()}),300):l.current.pause()))}),[e.isPlaying,p]),(0,u.jsx)("div",{ref:h,style:{width:g,height:x,overflow:"hidden",display:"flex",alignItems:"center"},children:p||"51394281658"==f||"8968077397"==f?(0,u.jsxs)("video",{ref:l,className:"whatmore-video-player-muted",width:x,height:g,preload:"metadata",loop:!0,src:e.url,playsInline:!0,poster:e.isPlaying&&1!=(null===(o=e.event)||void 0===o?void 0:o.index)&&"STRTFEDEDAP"!==f&&"STRY2V4XO5L"!==f?e.url:e.poster,muted:null===(s=e.isVideoMuted)||void 0===s||s,style:{backgroundColor:"white",borderRadius:e.borderRadius,objectFit:"cover"},children:[(0,u.jsx)("source",{src:e.url,type:"video/mp4"}),(0,u.jsx)("source",{src:(0,c.vW)(e.url),type:"video/mp4"})]}):(0,u.jsx)("div",{width:x,height:g,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var p=function(e){var t,n,d,p,v,f,g,x,$;const[y,b,w]=(0,i.YD)({triggerOnce:!0}),j=(0,m.MO)("whatmoreShopId");if((0,s.WJ)(e.event))return(0,u.jsx)(l.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const _=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200,C=null!==e&&void 0!==e&&null!==(n=e.event)&&void 0!==n&&null!==(d=n.poster_image)&&void 0!==d&&d.startsWith("https://cdn.shopify.com")?(null===e||void 0===e||null===(p=e.event)||void 0===p||null===(v=p.poster_image)||void 0===v?void 0:v.split("?")[0])+"?width=400&height=400":null===e||void 0===e||null===(f=e.event)||void 0===f?void 0:f.poster_image;if((0,a.KE)())return(0,u.jsx)(h,{isVideoMuted:e.isVideoMuted,event:null===e||void 0===e?void 0:e.event,borderRadius:e.borderRadius,height:"100%",width:"100%",poster:C,url:(0,o.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:_});const I=(0,r.useRef)(null),P=null!==(g=e.height)&&void 0!==g?g:"100%",S=null!==(x=e.width)&&void 0!==x?x:"100%";return(0,r.useEffect)((()=>{I.current&&(e.isPlaying?I.current.play():I.current.pause())}),[e.isPlaying,b]),(0,u.jsx)("div",{ref:y,style:{width:P,height:S,overflow:"hidden",display:"flex",alignItems:"center"},children:b||"51394281658"==j||"8968077397"==j?(0,u.jsxs)("video",{ref:I,className:"whatmore-video-player-muted",width:S,height:P,preload:"metadata",loop:!0,playsInline:!0,muted:null===($=e.isVideoMuted)||void 0===$||$,poster:"57939755089"==j?"":C,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,u.jsx)("source",{src:(0,o.V)(e.url),type:"video/mp4"}),(0,u.jsx)("source",{src:(0,c.vW)(e.url),type:"video/mp4"})]}):(0,u.jsx)("div",{width:S,height:P,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},868:function(e,t,n){n.d(t,{V:function(){return s}});var r=n(9854),i=n(7753);const o={"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"},a={"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"},s=function(e){const t=(0,i.MO)("whatmoreShopId");if(!e)return e;if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,r.zpr)(t))return e;if("AZURECDN"==(0,r.zpr)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(o))if(e.includes(t))return e.replace(t,o[t]);return e}}if("BUNNYCDN"==(0,r.zpr)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},342:function(e,t,n){n.d(t,{$W:function(){return s},WN:function(){return a},uv:function(){return o},vW:function(){return l}});var r=n(9854);const i=(0,n(7753).MO)("whatmoreShopId"),o=function(e){var t,n;return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.portrait.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.portrait.content_video_1080p?e.event_media_urls.secondary.portrait.content_video_1080p:null!==(t=e.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==t?t:null===(n=e.event_media_urls.primary.landscape)||void 0===n?void 0:n.content_video_1080p:e.event_hls_url},a=function(e){return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.landscape.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.landscape.content_video_1080p?e.event_media_urls.secondary.landscape.content_video_1080p:e.event_media_urls.primary.landscape.content_video_1080p:e.event_hls_url},s=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,r.QFt)(i);if(!t)return e;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e},l=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,r.QFt)(i);if(!t)return e;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e}},9363:function(e,t,n){n.d(t,{$:function(){return a},s:function(){return o}});var r=n(9854),i=n(7753);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,i.MO)("whatmoreShopId");return"shopify"!=(0,r.Ipo)(n)?"STRNV8MHJTF"==n?e+"?format=webp":e:e+t}function a(e){var t;if(null!==e&&void 0!==e&&e.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===e||void 0===e||null===(t=e.trim())||void 0===t?void 0:t.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(n)?"image":null!==i&&void 0!==i&&i.test(n)?"video":void 0}},5456:function(e,t,n){n.d(t,{B:function(){return r}});const r=function(e,t){return!(isNaN(t)||!t||("string"===typeof t||t instanceof String)&&!t.trim().length)&&!(parseInt(t)<=parseInt(e))}},1195:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.Z=a},7931:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");t.Z=a},9018:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");t.Z=a},9723:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.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");t.Z=a},8816:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");t.Z=a},417:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");t.Z=a},4885:function(e,t,n){var r=n(5318);t.Z=void 0;var i=r(n(5045)),o=n(6417),a=(0,i.default)((0,o.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");t.Z=a},8743:function(){},3439:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
@@ -42,4 +42,4 @@
42
42
  100%{
43
43
  opacity: 0;
44
44
  }
45
- `},2634:function(t,n,e){var i=e(3271),r=e(4897),o=e(499),a=e(6417);n.Z=function(t){var n,e=t.event,s=t.fontSize,l=null!==(n=t.maxWidth)&&void 0!==n?n:"100%",{status:c,bannerText:d,timeToStartInMins:h}=r.Z.getEventStatus(e);return c.name===o.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:l,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:c.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:s,fontWeight:"bold",color:"white",children:d})})}):(0,a.jsx)(i.xu,{maxWidth:l,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:c.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:s,fontWeight:"medium",children:d})})})}},499:function(t,n){n.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,n,e){var i=e(499);n.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var n=t.start_time+":00",e=t.end_time,r=t.scheduled_date,o=t.status,a=t.time_zone;if(o.toUpperCase()==i.Z.LIVE.name)return{status:i.Z.LIVE,bannerText:" "+i.Z.LIVE.name+" ",timeToStartInMins:0};if(o.toUpperCase()==i.Z.UPCOMING.name){var s=new Date(r+" "+n+" "+a),l=(new Date(r+" "+e+" "+a),function(t){var n=new Date,e=(t.getTime()-n.getTime())/1e3,r=e/60,o=r/60,a=o/24;return e<=0?{status:i.Z.COMPLETED,bannerText:" "+i.Z.COMPLETED.name+" ",timeToStartInMins:0}:e>=1&&e<=30?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(e)+" sec ",timeToStartInMins:e/60}:r<60?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(r)+" min ",timeToStartInMins:r}:o<24?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(o)+" hr ",timeToStartInMins:60*o}:a<7?{status:i.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:i.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(s));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:i.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},5945:function(t,n,e){e.d(n,{s:function(){return r}});var i=e(7753);function r(t){const n=(0,i.MO)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n?t:t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},6306:function(t,n,e){var i=e(5318);n.Z=void 0;var r=i(e(5045)),o=e(6417),a=(0,r.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");n.Z=a},6143:function(){}}]);
45
+ `},2634:function(t,n,e){var i=e(3271),r=e(4897),o=e(499),a=e(6417);n.Z=function(t){var n,e=t.event,s=t.fontSize,l=null!==(n=t.maxWidth)&&void 0!==n?n:"100%",{status:c,bannerText:d,timeToStartInMins:h}=r.Z.getEventStatus(e);return c.name===o.Z.LIVE.name?(0,a.jsx)(i.xu,{maxWidth:l,width:"fit-content",borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"tomato",color:c.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",paddingLeft:"2px",paddingRight:"2px",children:(0,a.jsx)(i.xv,{fontSize:s,fontWeight:"bold",color:"white",children:d})})}):(0,a.jsx)(i.xu,{maxWidth:l,borderRadius:"md",paddingLeft:"2px",paddingRight:"2px",backgroundColor:"white",color:c.color,children:(0,a.jsx)(i.Kq,{direction:"row",justifyContent:"flex-start",width:"fit-content",alignContent:"center",children:(0,a.jsx)(i.xv,{fontSize:s,fontWeight:"medium",children:d})})})}},499:function(t,n){n.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,n,e){var i=e(499);n.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var n=t.start_time+":00",e=t.end_time,r=t.scheduled_date,o=t.status,a=t.time_zone;if(o.toUpperCase()==i.Z.LIVE.name)return{status:i.Z.LIVE,bannerText:" "+i.Z.LIVE.name+" ",timeToStartInMins:0};if(o.toUpperCase()==i.Z.UPCOMING.name){var s=new Date(r+" "+n+" "+a),l=(new Date(r+" "+e+" "+a),function(t){var n=new Date,e=(t.getTime()-n.getTime())/1e3,r=e/60,o=r/60,a=o/24;return e<=0?{status:i.Z.COMPLETED,bannerText:" "+i.Z.COMPLETED.name+" ",timeToStartInMins:0}:e>=1&&e<=30?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(e)+" sec ",timeToStartInMins:e/60}:r<60?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(r)+" min ",timeToStartInMins:r}:o<24?{status:i.Z.UPCOMING,bannerText:"Starts in "+Math.round(o)+" hr ",timeToStartInMins:60*o}:a<7?{status:i.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:i.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(s));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:i.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},5945:function(t,n,e){e.d(n,{s:function(){return r}});var i=e(7753);function r(t){const n=(0,i.MO)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n||"58562281529"==n?t:t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},6306:function(t,n,e){var i=e(5318);n.Z=void 0;var r=i(e(5045)),o=e(6417),a=(0,r.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");n.Z=a},6143:function(){}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[897],{3488:function(o,t,e){e.r(t),e.d(t,{getLocationDetails:function(){return i}});const i=()=>new Promise(((o,t)=>{"geolocation"in navigator?navigator.geolocation.getCurrentPosition((t=>{const e=t.coords.latitude,i=t.coords.longitude;o({latitude:e,longitude:i})}),(o=>{t(o.message)})):t("Geolocation is not available in this browser.")}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[441],{1332:function(e,t,r){var n=r(7313),i=(r(8743),r(7753)),o=r(5254),a=r(6417);t.Z=function(e){return(0,n.useEffect)((()=>{const e=(0,o.oo)((0,i.MO)("whatmoreSecondaryColor"));!function(e,t,r,n){const i=`rgba(${e},${t},${r},${n})`,o=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${i}, 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7);\n }\n 12.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.7), 1.8em -1.8em 0 0em ${i}, 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5);\n }\n 25% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.5), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 2.5em 0em 0 0em ${i}, 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 37.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 1.75em 1.75em 0 0em ${i}, 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 50% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.7), 0em 2.5em 0 0em ${i}, -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 62.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.5), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -1.8em 1.8em 0 0em ${i}, -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 75% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -2.6em 0em 0 0em ${i}, -1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2);\n }\n 87.5% {\n box-shadow: 0em -2.6em 0em 0em rgba(${e}, ${t}, ${r}, 0.2), 1.8em -1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 2.5em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 1.75em 1.75em 0 0em rgba(${e}, ${t}, ${r}, 0.2), 0em 2.5em 0 0em rgba(${e}, ${t}, ${r}, 0.2), -1.8em 1.8em 0 0em rgba(${e}, ${t}, ${r}, 0.5), -2.6em 0em 0 0em rgba(${e}, ${t}, ${r}, 0.7), -1.8em -1.8em 0 0em ${i};\n }\n }\n `,a=document.createElement("style");a.type="text/css",a.innerHTML=o,document.head.appendChild(a)}(e[0],e[1],e[2],.2)}),[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("span",{className:"whatmore-loading-indicator"})})}},3580:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var n=r(7313),i=r(8866),o=r(7753),a=(r(9111),r(123),r(9778),r(9854)),s=r(868),l=r(9363),m=r(4892),d=r(6417);var u=function(e){var t,r;const i=(0,o.MO)("whatmorePrimaryFont"),u=(0,o.MO)("whatmoreSecondaryColor"),c=(0,o.MO)("whatmoreShopId"),[h,p]=(0,n.useState)(!1),f=e.storyId,g=(0,s.V)(e.imageUrl),$=e.title,v=e.onClick,b=e.template,x=(0,a.f63)(c),w="template-stories-a"===b?"50%":"30%",y=Math.floor(e.tileSize),j=.12*y*(0,a.LM2)(c),_=null!==(t=(0,a.QaQ)(c))&&void 0!==t?t:i,k=null!==(r=(0,a.u2W)(c))&&void 0!==r?r:[u,x,u,x,u],S=(0,n.useRef)(0),C=(0,n.useRef)(null),F=(0,n.useRef)(null);return(0,n.useEffect)((()=>{F.current&&F.current.play()}),[]),(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:y*(0,a.jJ6)(c)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{p(!0),v(f)},className:[h?"whatmore-scale-on-tap":""].join(" "),children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:w,boxShadow:"0px 2px 1px 0px "+k[0]+"50, 0px -2px 1px 0px "+k[1]+"50, 2px 0px 1px 0px "+k[2]+"50, -2px 0px 1px 0px "+k[3]+"80, 2px -2px 1px 0px "+k[4]+"80, -2px 2px 1px 0px "+k[0]+"DA, 2px 2px 1px 0px "+k[1]+"DA, -2px -2px 1px 0px "+k[2]+"DA"},children:(0,d.jsx)("div",{className:"whatmore-story-thumbnail-wrapper",style:{flexShrink:0,objectFit:"cover",height:y+"px",width:y+"px",borderRadius:w,border:"3px solid white",backgroundColor:"#343434"===u?"#d3d3d3":u,overflow:"hidden"},children:"video"==(0,l.$)(g)?(0,d.jsx)(m.Z,{height:"100%",width:"100%",url:g,isPlaying:!0,event:{event_type:"video"},borderRadius:w}):(0,d.jsx)("img",{ref:C,className:"whatmore-story-thumbnail",src:g.startsWith("https://cdn.shopify.com")?g.split("?")[0]+"?width=400&height=400":g,loading:"lazy",style:{objectFit:"cover",height:y+"px",width:y+"px",backgroundColor:"white"},alt:"story",onError:function(){if(S.current<3){let t=(0,s.V)(e.imageUrl);C.current.src="",C.current.src=t,S.current=S.current+1}else console.log("Failed to load image after several attempts"),C.current.src="https://d2oouab8j9eigo.cloudfront.net/background_white.png"}})})}),(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,d.jsx)("p",{ref:e=>{e&&e.style.setProperty("font-size",j+"px","important")},style:{textAlign:"center",color:(0,a.WS3)(c),fontFamily:_,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto"},children:null===$||void 0===$?void 0:$.substring(0,24)})})]})},c=r(32),h=r(9302);const p=(0,r(2575).Z)({key:"whatmore-stories-css"});var f=function(e){const[t,r,s]=(0,i.Z)(),[l]=(0,o.j1)("whatmoreStoryTileSize"),[m]=(0,o.j1)("whatmoreStoryTileSizeDesktop"),[f]=(0,o.j1)("whatmoreShopId"),[g,$]=(0,n.useState)("portrait"===t?"flex-start":"center"),v=(0,n.useRef)(null);var b=e.eventsStories;const x=e.onClick,w=e.template;(0,n.useEffect)((()=>{c.IR.forEach((e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]')))return;e&&(e.style.minHeight="0px")}))}),[]);const y=e=>{if(v.current){const t="left"===e?4*-k:4*k;v.current.scrollBy({left:t,behavior:"smooth"})}};(0,n.useEffect)((()=>{!function(){if(v.current){const e=v.current.scrollWidth,t=v.current.offsetWidth;$(e>t?"flex-start":"center")}}()}),[g,s]);const[j,_]=(0,n.useState)([]);(0,n.useEffect)((()=>{_(b.map((e=>e.storyset_dynamic_thumbnail?Math.floor(Math.random()*(e.events.length-1)):0)))}),[]);const k="landscape"===t?r*(m/100)*.3:s*(l/100)*.5;return(0,d.jsx)(h.C,{value:p,children:"landscape"==t&&!(0,a.DF0)(f)||"portrait"==t&&!(0,a.JaA)(f)?(0,d.jsx)(d.Fragment,{}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:g,height:"fit-content",width:"100%"},className:"whatmore-story-horizontal-flex",ref:v,children:b.map(((e,t)=>{var r,n,i,o,s;const l=e.storyset_dynamic_thumbnail?null!==(r=null===(n=e.events[j[t]])||void 0===n?void 0:n.poster_image)&&void 0!==r?r:e.thumbnail_image:null!==(i=e.thumbnail_image)&&void 0!==i?i:null===e||void 0===e||null===(o=e.events)||void 0===o||null===(s=o[0])||void 0===s?void 0:s.thumbnail_image;return(0,d.jsx)(u,{storyId:e.id,tileSize:(0,a.OFP)(f)?100:k,onClick:e=>{x(t)},template:w,imageUrl:l,fallbackUrl:e.thumbnail_image,title:e.title},"whatmore-story-"+e.id)}))}),"landscape"===t&&(0,a.sMW)(f)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{onClick:()=>y("left"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",left:0},children:(0,d.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:"<"})}),(0,d.jsx)("button",{onClick:()=>y("right"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",right:0},children:(0,d.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:">"})})]})]})})}},3175:function(e,t,r){var n=r(1332),i=r(5180),o=r(6417);t.Z=function(e){var t,r;const a=null!==(t=e.height)&&void 0!==t?t:"100%",s=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,o.jsxs)("div",{style:{width:s,height:a,overflow:"hidden",minHeight:a,minWidth:s},children:[(0,o.jsx)(i.Z,{height:a,width:s}),(0,o.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,o.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,o.jsx)(n.Z,{})})})]})}},5180:function(e,t,r){var n=r(6417);t.Z=function(e){var t,r,i;const o=null!==(t=e.height)&&void 0!==t?t:"100%",a=null!==(r=e.width)&&void 0!==r?r:"100%",s=null!==(i=e.borderRadius)&&void 0!==i?i:"10px";return(0,n.jsx)("div",{style:{height:o,width:o,borderRadius:s,overflow:"hidden",minHeight:o,minWidth:a,maxHeight:o,maxWidth:a},children:(0,n.jsx)("div",{style:{minHeight:o,minWidth:a},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(e,t,r){var n=r(7313),i=r(3175),o=r(6417);t.Z=function(e){var t,r,a;const[s,l]=(0,n.useState)(!1),m=n.useRef(0),d=(0,n.useRef)(null),u=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},c=null!==(r=e.height)&&void 0!==r?r:"100%",h=null!==(a=e.width)&&void 0!==a?a:"100%";return(0,n.useEffect)((()=>{m.current=0;const e=setInterval((()=>{m.current=m.current+.03,d.current&&u(m.current,5),m.current>=5&&(m.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,o.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:"100%",overflow:"hidden"},children:[(0,o.jsx)("div",{style:{width:s?"100%":"0px",height:s?"100%":"0px"},children:(0,o.jsx)("img",{ref:d,src:e.url,style:{objectFit:"cover",height:"100%",width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{l(!0)}})}),s?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.Z,{width:h,height:c})]})}},4892:function(e,t,r){r.d(t,{Z:function(){return p}});var n=r(7313),i=r(3933),o=r(868),a=r(8984),s=r(7300),l=r(2887),m=r(4862),d=r(7753),u=r(342),c=(r(9854),r(6417));var h=function(e){var t,r,o,s;const l=(0,n.useRef)(null),[h,p,f]=(0,i.YD)({triggerOnce:!0}),g=(0,d.MO)("whatmoreShopId"),$=null!==(t=e.height)&&void 0!==t?t:"100%",v=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,n.useEffect)((()=>{l.current&&(e.isPlaying?l.current.play():((m.G6||(0,a.gE)())&&l.current.play(),"57939755089"==g?setTimeout((()=>{l.current.pause()}),300):l.current.pause()))}),[e.isPlaying,p]),(0,c.jsx)("div",{ref:h,style:{width:$,height:v,overflow:"hidden",display:"flex",alignItems:"center"},children:p||"51394281658"==g||"8968077397"==g?(0,c.jsxs)("video",{ref:l,className:"whatmore-video-player-muted",width:v,height:$,preload:"metadata",loop:!0,src:e.url,playsInline:!0,poster:e.isPlaying&&1!=(null===(o=e.event)||void 0===o?void 0:o.index)&&"STRTFEDEDAP"!==g&&"STRY2V4XO5L"!==g?e.url:e.poster,muted:null===(s=e.isVideoMuted)||void 0===s||s,style:{backgroundColor:"white",borderRadius:e.borderRadius,objectFit:"cover"},children:[(0,c.jsx)("source",{src:e.url,type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.vW)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:v,height:$,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var p=function(e){var t,r,m,p,f,g,$,v,b;const[x,w,y]=(0,i.YD)({triggerOnce:!0}),j=(0,d.MO)("whatmoreShopId");if((0,s.WJ)(e.event))return(0,c.jsx)(l.Z,{height:e.height,width:e.width,url:e.url,isPlaying:e.isPlaying,timeUpdateCallback:e.timeUpdateCallback});const _=null!==(t=e.pauseFromPlayTimeInMs)&&void 0!==t?t:200,k=null!==e&&void 0!==e&&null!==(r=e.event)&&void 0!==r&&null!==(m=r.poster_image)&&void 0!==m&&m.startsWith("https://cdn.shopify.com")?(null===e||void 0===e||null===(p=e.event)||void 0===p||null===(f=p.poster_image)||void 0===f?void 0:f.split("?")[0])+"?width=400&height=400":null===e||void 0===e||null===(g=e.event)||void 0===g?void 0:g.poster_image;if((0,a.KE)())return(0,c.jsx)(h,{isVideoMuted:e.isVideoMuted,event:null===e||void 0===e?void 0:e.event,borderRadius:e.borderRadius,height:"100%",width:"100%",poster:k,url:(0,o.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:_});const S=(0,n.useRef)(null),C=null!==($=e.height)&&void 0!==$?$:"100%",F=null!==(v=e.width)&&void 0!==v?v:"100%";return(0,n.useEffect)((()=>{S.current&&(e.isPlaying?S.current.play():S.current.pause())}),[e.isPlaying,w]),(0,c.jsx)("div",{ref:x,style:{width:C,height:F,overflow:"hidden",display:"flex",alignItems:"center"},children:w||"51394281658"==j||"8968077397"==j?(0,c.jsxs)("video",{ref:S,className:"whatmore-video-player-muted",width:F,height:C,preload:"metadata",loop:!0,playsInline:!0,muted:null===(b=e.isVideoMuted)||void 0===b||b,poster:"57939755089"==j?"":k,style:{backgroundColor:"white",objectFit:"cover"},children:[(0,c.jsx)("source",{src:(0,o.V)(e.url),type:"video/mp4"}),(0,c.jsx)("source",{src:(0,u.vW)(e.url),type:"video/mp4"})]}):(0,c.jsx)("div",{width:F,height:C,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},868:function(e,t,r){r.d(t,{V:function(){return s}});var n=r(9854),i=r(7753);const o={"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"},a={"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"},s=function(e){const t=(0,i.MO)("whatmoreShopId");if(!e)return e;if(e.startsWith("https://cdn.shopify.com"))return e;if("AWSCDN"==(0,n.zpr)(t))return e;if("AZURECDN"==(0,n.zpr)(t)){if(e.includes(".azureedge.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(o))if(e.includes(t))return e.replace(t,o[t]);return e}}if("BUNNYCDN"==(0,n.zpr)(t)){if(e.includes(".b-cdn.net"))return e;if(e.includes(".cloudfront.net")){for(const t of Object.keys(a))if(e.includes(t))return e.replace(t,a[t]);return e}}return e}},342:function(e,t,r){r.d(t,{$W:function(){return s},WN:function(){return a},uv:function(){return o},vW:function(){return l}});var n=r(9854);const i=(0,r(7753).MO)("whatmoreShopId"),o=function(e){var t,r;return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.portrait.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.portrait.content_video_1080p?e.event_media_urls.secondary.portrait.content_video_1080p:null!==(t=e.event_media_urls.primary.portrait.content_video_1080p)&&void 0!==t?t:null===(r=e.event_media_urls.primary.landscape)||void 0===r?void 0:r.content_video_1080p:e.event_hls_url},a=function(e){return"event_media_urls"in e?"image"===e.event_type?e.event_media_urls.primary.landscape.content_image_original:"secondary"in e.event_media_urls&&e.event_media_urls.secondary.landscape.content_video_1080p?e.event_media_urls.secondary.landscape.content_video_1080p:e.event_media_urls.primary.landscape.content_video_1080p:e.event_hls_url},s=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,n.QFt)(i);if(!t)return e;return`https://whatmore-brand-video-assets-720p.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e},l=function(e){if(e.startsWith("https://cdn.shopify.com")&&e.includes("whatmore_")){const t=(0,n.QFt)(i);if(!t)return e;return`https://whatmore-brand-thumbnail-video-assets.b-cdn.net/${t}/${e.split("whatmore_")[1].split("?")[0]}`}return e}},9363:function(e,t,r){r.d(t,{$:function(){return a},s:function(){return o}});var n=r(9854),i=r(7753);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,i.MO)("whatmoreShopId");return"shopify"!=(0,n.Ipo)(r)?"STRNV8MHJTF"==r?e+"?format=webp":e:e+t}function a(e){var t;if(null!==e&&void 0!==e&&e.includes("https://w-media.b-cdn.net/process-media"))return"image";const r=null===e||void 0===e||null===(t=e.trim())||void 0===t?void 0:t.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,i=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(r)?"image":null!==i&&void 0!==i&&i.test(r)?"video":void 0}},8743:function(){},9111:function(){},123:function(){},9778:function(){}}]);