whatmore-react-assets 1.0.863 → 1.0.864
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[303],{9219:function(t,n,o){o.d(n,{p_:function(){return p},Rb:function(){return v},jx:function(){return l}});var i=o(6230),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",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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)}if("57677938765"==o&&"object"==typeof Currency&&"INR"!==Currency.currentCurrency){var e;const i=null!==(e=c(Currency.currentCurrency,o))&&void 0!==e?e:"",r=Currency.convert(t,"INR",Currency.currentCurrency);return`${i}${n}${isNaN(r)?"":d(s(r))}`}if("1972174947"==o&&"object"==typeof DoublyGlobalCurrency&&"PKR"!==DoublyGlobalCurrency.currentCurrency){var a;const i=null!==(a=c(DoublyGlobalCurrency.currentCurrency,o))&&void 0!==a?a:"",r=DoublyGlobalCurrency.convert(t,"PKR",DoublyGlobalCurrency.currentCurrency);return`${i}${n}${isNaN(r)?"":d(s(r))}`}if("4392910921"==o&&"object"==typeof Currency&&"USD"!==Currency.currentCurrency){var l;const i=null!==(l=c(Currency.currentCurrency,o))&&void 0!==l?l:"",r=Currency.convert(t,"USD",Currency.currentCurrency);return`${i}${n}${isNaN(r)?"":d(s(r))}`}const p=window.Shopify.currency?window.Shopify.currency.active:i,v=parseFloat(window.Shopify.currency?"26413664"==o&&r?"1.0":window.Shopify.currency.rate:"1.0");return c(p,o)+n+d(s(t*("88566890817"==o?1:v)))}async function p(t,n,o){for(let c=0;c<t.products.length;c++){var r,e,a;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?t:t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}},6230:function(t,n,o){o.d(n,{jg:function(){return yt},TE:function(){return St},rY:function(){return Tt},OM:function(){return gt},vX:function(){return bt},ln:function(){return wt}});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()?"¤cy_code=GBP":"¤cy_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 f={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 m(t,n){const o=function(t){return f[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===r||void 0===r?void 0:r.product_title,price:null===o||void 0===o?void 0:o.price,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===r||void 0===r?void 0:r.product_title,price:null===n||void 0===n?void 0:n.price,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===r||void 0===r?void 0:r.product_title,price:null===t||void 0===t?void 0:t.price,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: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 P;const D={STRMM0QP0CU:"https://"+window.location.hostname},N=null!==(P=r.Z.get("form_key"))&&void 0!==P?P:"undefined",U=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"ds243corrt3qkd1rhoeyfes3ztefxjae");function I(t){return D[t]}async function O(t,n){var o=await async function(t){const n=I(t);return(await fetch(n+"/rest/V1/products/attributes/ready_to_wear_sizes",{method:"GET",headers:{Authorization:"Bearer "+U}}).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 O(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=I(n),r=await fetch(i+"/rest/default/V1/products/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{Authorization:"Bearer "+U,"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=I(o)+"/ajaxcart",e={Authorization:"Bearer "+U},a=new FormData;a.append("product",i),a.append("item",i),a.append("qty",n),a.append("form_key",N);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=I(o)+"/ajaxcart",l={Authorization:"Bearer "+U},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",N);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 M={STRY2V4XO5L:"https://usqa.utsav.bz",STRTFEDEDAP:"https://www.utsavfashion.com"};function F(t){var n;return null!==(n=r.Z.get("currency_code"))&&void 0!==n?n:"USD"}async function Z(t,n){const o=function(t){return M[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 B={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"},x={STRNV8MHJTF:1,STR6HU283UZ:1,STR9T3LLEJB:5,STRWJMIOJNX:2,STR1D5ONOZX:4,STRUDQ36YAC:3},J=window.location.hostname.substring(10,4)+"_cart",V=window.location.hostname.substring(10,4)+"_carts",Y=window.location.hostname.substring(10,4)+"_curr";function L(t){return x[t]}function W(t){return B[t]}function q(t){var n;return null!==(n=r.Z.get(Y))&&void 0!==n?n:"INR"}async function Q(t,n){const o=W(n),i=await fetch(o+"/get-product?url_key="+function(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}(t)+"&store="+L(n)+"¤cy="+q(),{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 H(t,n,o){const i=W(o),e=r.Z.get(J),a=r.Z.get(V);var c={varient_id:t,qty:n,store:L(o)};e&&a&&(c={varient_id:t,qty:n,store:L(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(J,t.data.cart_id,{expires:365}),r.Z.set(V,t.data.cart_session,{expires:365})),{ok:!0,status:200,json:function(){return{}}})))}const K={STRJ5VPPT3U:"https://"+window.location.hostname,STR45JIP5JW:"https://"+window.location.hostname};function tt(t){return K[t]}async function nt(t,n){const o=tt(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 ot(t,n,o){const i=tt(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 it="https://www.ninecolours.com";function rt(t){const n=t.product_link.split("-");return n[n.length-1]}function et(t){return"STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t}function at(t){return"STRRPY8YRZE"==t}function ct(t){return"STR5KA9X0OZ"==t||"STRR72TX6AT"==t}function ut(t){return"STRMM0QP0CU"==t}function dt(t){return"STRJ5VPPT3U"==t||"STR45JIP5JW"==t}function st(t){return"STRCGMYX28X"==t||"STRBG6F06XL"==t||"STR1QF8R1DW"==t}function lt(t){return"STRK70X2OVV"==t||"STR3PNIYEZ6"==t}function pt(t){return"STRVIY73X3V"==t||"STRBXUH5UGQ"==t}function vt(t){return"STRGXL92H5M"==t}function _t(t){return"STRY2V4XO5L"==t||"STRTFEDEDAP"==t}function ht(t){return"STRDG36BBP5"==t||"STRI2XC0BMX"==t}function ft(t){return"STRVHD8LG12"==t}function mt(t){return"STR2FOC6KG9"==t||"STRDOIDF6O7"==t}async function wt(t,n){if(et(n))return Q(t,n);if(at(n))return S(t,n);if(ct(n))return h(t,n);if(lt(n))return X(t,n);if(ut(n))return $(t,n);if(dt(n))return nt(t,n);if(st(n))return p(t,n);if(pt(n))return A(t,n);if(vt(n))return C(t,n);if(_t(n))return Z(t,n);if(ht(n))return c(t,n);if(ft(n))return R(t,n);if(mt(n))return m(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=it;return o(await fetch(i+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:rt(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function yt(t,n,o){if(et(o))return await H(t,n,o);if(at(o))return await g(t,n,o);if(ut(o))return G(t,n,o);if(dt(o))return ot(t,n,o);if(st(o))return v(t,n,o);if(mt(o))return async function(t,n,o){console.log(t,"vid");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=it;return await fetch(o+"/whatmore-addtocart ",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:t,qty:n})})}return{}}async function Tt(t,n,o){if(et(o))return async function(t,n,o){await H(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(at(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(ut(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(dt(o))return async function(t,n,o){await ot(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(st(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 yt(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 St(t){if(et(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(at(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(ut(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(dt(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(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(mt(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 gt(t){if(et(t))return function(t){const n=r.Z.get(J),o=W(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(at(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(ut(t))return function(t){const n=I(t);return fetch(n+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+U}}).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(dt(t))return Promise.resolve({json:function(){return{item_count:0}}});if(st(t))return Promise.resolve({json:function(){return{item_count:0}}});if(mt(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(it+"/whatmore-cartcount ",{method:"GET",headers:{"Content-Type":"application/json"}})}return{}}async function bt(t,n,o){if(et(o))return async function(t,n){const o=await Q(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:q()}}(t,o);if(at(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(ut(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(dt(o))return async function(t,n){const o=await nt(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(ct(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(lt(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(st(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(pt(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(vt(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(_t(o))return async function(t,n){var o,i,r,e;const a=await Z(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:F(),discount:a.discount}}(t,o);if(ht(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(ft(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(mt(o))return async function(t,n){return{price:(await m(t,n)).variants[0].price,compare_at_price:0,currency_code:"INR"}}(t,o);if("STRGA3S8N41"==o){const n=await wt(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{}}},6143:function(){}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 411.ae14d195.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[411],{1332:function(e,t,r){"use strict";var n=r(7313),o=(r(8743),r(7753)),i=r(5254),s=r(6417);t.Z=function(e){return(0,n.useEffect)((()=>{const e=(0,i.oo)((0,o.MO)("whatmoreSecondaryColor"));!function(e,t,r,n){const o=`rgba(${e},${t},${r},${n})`,i=`\n @keyframes whatmore-loading-indicator-keyframe {\n 0%,\n 100% {\n box-shadow: 0em -2.6em 0em 0em ${o}, 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 ${o}, 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 ${o}, 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 ${o}, 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 ${o}, -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 ${o}, -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 ${o}, -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 ${o};\n }\n }\n `,s=document.createElement("style");s.type="text/css",s.innerHTML=i,document.head.appendChild(s)}(e[0],e[1],e[2],.2)}),[]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("span",{className:"whatmore-loading-indicator"})})}},9085:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return T}});var n=r(7313),o=(r(3439),r(6090)),i=r(8811),s=r(7616),a=(r(6143),r(4444),r(7244),r(123),r(5892),r(9302)),l=r(2575),d=r(9821),c=r(8866),m=r(2279),u=r.n(m),h=r(7753),p=r(7129),f=r(1855),$=r(9854),g=r(7376),v=r(778),y=r(4892),x=r(5945),w=r(9219),b=r(6805),C=r(8984),P=r(7053),j=r(6417);var M=function(e){var t,r,o,s,a,l,c,m,u,f;const[g,v,M,S,D]=(0,d.Z)(),E=(0,h.MO)("whatmoreShopId"),R="portrait"===D[b.YP],T=(R?1.076*v*(0,$.pEd)(E):v*(0,$.H4g)(E))+"px",I=(R?1.076*v*(0,$.pEd)(E):v*(0,$.H4g)(E))+"px",N=(R?.965*v*(0,$.pEd)(E):.859*v*(0,$.H4g)(E))+"px",[O,L]=(0,n.useState)(e.event),k=(0,h.MO)("whatmoreSecondaryColor");var F=(0,n.useContext)(p.V);const B=null===(t=e.isOnFocus)||void 0===t||t,U=null!==(r=e.playOnUnfocus)&&void 0!==r&&r,A=e.onClick,{whatmoreUITheme:Z}=(0,n.useContext)(i.I),K=null!==(o=e.animateOnFocus&&(0,$.iWI)(E))&&void 0!==o&&o,[Y,W]=(0,n.useState)(!(0,$.N8M)(E)),z=(0,h.MO)("whatmorePrimaryFont"),G=Math.round(+(null===(s=O.products[0])||void 0===s?void 0:s.price)),H=Math.round(+(null===(a=O.products[0])||void 0===a?void 0:a.compare_price)),V=H&&0!=H&&H>G?Math.round((H-G)/H*100):NaN,[X,_]=(0,n.useState)(V),[J,q]=(0,n.useState)();return(0,n.useEffect)((()=>{(0,$.N8M)(E)&&(0,w.p_)(O,(0,$.Ipo)(E),E).then((e=>{var t,r,n;L(e),(null===e||void 0===e||null===(t=e.products)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.discount)&&_(null===e||void 0===e||null===(n=e.products[0])||void 0===n?void 0:n.discount),W(!0)}));(async()=>{var e;const t=await(0,P.p)(null===O||void 0===O||null===(e=O.products)||void 0===e?void 0:e[0],(0,$.Ipo)(E),E);q(t)})()}),[]),(0,j.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",F.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",F.tileBottomMMargin+"px","important"))},className:K&&!R?B?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{margin:"0 auto",cursor:"pointer",width:v},onClick:()=>{A(O)},children:[(0,j.jsx)("div",{style:{borderRadius:"round"==Z?"5%":"0px",boxShadow:"round"==Z?"0px 0px 5px 0px #B0B0B0":null,height:g,borderWidth:(0,$.alU)(E),borderColor:(0,$.qPe)(E),overflow:"hidden"},children:(0,j.jsx)(y.Z,{height:"100%",width:"100%",url:O.thumbnail_image,isPlaying:B||U||(0,C.gE)(),event:O})}),(0,j.jsxs)("div",{style:{display:(0,$.pvY)(E)?"flex":"none",flexDirection:"column",padding:"12px 4px",gap:"5px"},children:[(0,j.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-size",T,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",z,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},children:(0,x.s)(null===(l=O.products[0])||void 0===l?void 0:l.title)}),Y&&(0,$.QaY)(E)&&(0,j.jsxs)("div",{style:{display:"flex",gap:"12px",flexDirection:(0,$.$zZ)(E)?"row":"row-reverse",justifyContent:(0,$.$zZ)(E)?"flex-start":"flex-end"},children:[(0,j.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,$.Uyp)(E),"important"),e.style.setProperty("font-size",I,"important"),e.style.setProperty("font-family",z,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,$.rPP)(E)?"normal":"bold"},children:(0,w.jx)(parseFloat("88566890817"==E?(null===J||void 0===J?void 0:J.price)/100:null===(c=O.products[0])||void 0===c?void 0:c.price)," ",E,null===(m=O.products[0])||void 0===m?void 0:m.currency)}),!isNaN(H)&&H>G&&(0,j.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,$.kPs)(E),"important"),e.style.setProperty("font-size",I,"important"),e.style.setProperty("font-family",z,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textDecoration:"line-through"},children:(0,w.jx)(parseFloat("88566890817"==E?(null===J||void 0===J?void 0:J.compare_price)/100:null===(u=O.products[0])||void 0===u?void 0:u.compare_price)," ",E,null===(f=O.products[0])||void 0===f?void 0:f.currency)})]}),(0,$.QaY)(E)&&!isNaN(X)&&0!=X&&Y&&(0,j.jsx)("div",{style:{display:(0,$.aKo)(E)?"flex":"none",backgroundColor:"green"==(0,$.ZJm)(E)?"#343434"==k?(0,$.ZJm)(E):k:(0,$.ZJm)(E),alignItems:"center",borderRadius:(0,$.CF_)(E)+"px",width:"fit-content",padding:(0,$.Spx)(E)?"3px 6px":"0px"},children:(0,$.Spx)(E)?(0,j.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,$.mso)(E),"important"),e.style.setProperty("font-size",N,"important"),e.style.setProperty("font-family",z,"important"))},children:`${X}% Off`}):(0,j.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color",(0,$.aUT)(E),"important"),e.style.setProperty("font-size",N,"important"),e.style.setProperty("font-family",(0,$.V3Y)(E),"important"))},children:(0,$.sG7)(E)})})]})]})},S=r(7381);const D=(0,l.Z)({key:"whatmore-css-hv"});function E(e){const[t,r,o]=(0,d.Z)(),s=(0,h.MO)("whatmoreShopId"),a=e.events,l=e.onClick,{whatmoreWidgetSourceDetails:c}=(0,n.useContext)(i.I),m=Math.ceil(o),u=2*m,[p,y]=(0,n.useState)(u),[x,w]=(0,n.useState)(2*m),b=0===(0,$.WGf)(s)?24:(0,$.WGf)(s),[C,P]=(0,n.useState)({touchX:0,touchY:0}),S=()=>(0,j.jsx)("div",{style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,j.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right-portrait"})}),D=()=>(0,j.jsx)("div",{style:{width:"50px",borderRadius:"50%",height:"50px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,j.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left-portrait"})}),E=e=>{if("next"===e){const e=2;w((e=>Math.min(e+Math.floor(o),a.length+m+1))),y((t=>Math.min(t+e,a.length+m+1)))}else w((e=>Math.max(e-Math.floor(o),u)));(0,g.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:c})};return(0,j.jsxs)("div",{className:"whatmore-events-carousel-portrait",style:{display:"flex",justifyContent:"flex-start",paddingLeft:"12px",overflow:"hidden",position:"relative"},onTouchStart:e=>{P({touchX:e.touches[0].clientX,touchY:e.touches[0].clientY})},onTouchEnd:e=>{var t,r,n,o;const i=(null===(t=e.changedTouches)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.clientX)-C.touchX,s=(null===(n=e.changedTouches)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.clientY)-C.touchY;Math.sqrt(i**2+s**2)>10&&Math.abs(i)>Math.abs(s)&&E(i>0?"prev":"next")},children:[(0,$.Yxs)(s)&&(0,j.jsxs)(j.Fragment,{children:[x<=a.length+m&&(0,j.jsx)("div",{onClick:()=>E("next"),style:{position:"absolute",zIndex:1,top:"50%",right:"0",transform:"translateY(-100%)"},children:(0,j.jsx)(S,{})}),x>2*m&&(0,j.jsx)("div",{onClick:()=>E("prev"),style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateY(-100%)"},children:(0,j.jsx)(D,{})})]}),(0,j.jsx)("div",{style:{display:"flex",gap:b,transform:`translateX(-${(x-u)*(r+b)}px)`,transition:"transform 0.4s ease-in-out"},children:a.map(((e,t)=>t<p?(0,j.jsx)("div",{children:(0,j.jsx)(M,{isOnFocus:t<=x-m-1&&t>=Math.max(0,x-u),playOnUnfocus:!1,animateOnFocus:!0,event:e,onClick:()=>l(e)})},`whatmore-carousel-tile-${t}`):(0,j.jsx)(f.Z,{})))})]})}function R(e){const[t,r,o,s]=(0,d.Z)(),[a,l]=(0,n.useState)(-1),c=(0,h.MO)("whatmoreShopId"),[m,p]=(0,n.useState)("next"),f=e.onClick,y=e.events,{whatmoreWidgetSourceDetails:x}=(0,n.useContext)(i.I),w=Math.min(Math.ceil(o),y.length),[b,C]=(0,n.useState)(0),P=0===(0,$.WGf)(c)?24:(0,$.WGf)(c),S=()=>(0,j.jsx)("div",{children:(0,j.jsx)("button",{onClick:T,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,j.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-right"})})}),D=()=>(0,j.jsx)("div",{children:(0,j.jsx)("button",{onClick:R,style:{width:"50px",borderRadius:"6px",height:"100px",backgroundColor:"rgba(0, 0, 0, 0.3)"},children:(0,j.jsx)("div",{style:{display:"flex"},className:"whatmore-arrow-left"})})});(0,n.useEffect)((()=>{b<=w&&C((e=>e+w))}),[w]);const E=()=>{l(-1)},R=()=>{b!==w&&(p("prev"),C((e=>Math.max(Math.ceil(e-o),w))),(0,g.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:x}))},T=()=>{b>y.length+o||(p("next"),C((e=>Math.floor(e+o))),(0,g.y4)({userInteractionType:v.K.HOMEPAGE_CAROUSEL_SWIPED,widgetSourceDetails:x}))},I=b>y.length?y.length-w+1:b-w,N=b>=y.length?y.length:I+w,O=y.slice(I,N);return(0,j.jsxs)("div",{className:"whatmore-events-carousel-landscape",style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:`${s}px`,paddingRight:`${s}px`},children:[y.length>=o-1&&(0,j.jsx)("div",{style:{position:"absolute",left:"0",zIndex:1,top:"50%",transform:"translateX(50%) translateY(-65%)"},children:b!==w&&(0,j.jsx)(D,{})}),(0,j.jsx)("div",{style:{display:"flex",gap:P+"px",width:r*o*(0,$.Su5)(c)+"px",paddingLeft:"8px",justifyContent:y.length<=o-1?"center":"flex-start",overflow:"hidden"},children:O.map(((e,t)=>{const r=`whatmore-event-tile-landscape-${e.index}${t===w-1?"-last":""}`,n=t===a;return(0,j.jsx)("div",{className:"whatmore-event-tile-horizontal-swipe-animation-"+("next"===m?"next":"prev"),onMouseEnter:()=>(e=>{const t=u()((()=>l(e)),300);return t(),t.cancel})(t),onMouseLeave:E,children:(0,j.jsx)(M,{isOnFocus:n,playOnUnfocus:!0,animateOnFocus:!0,event:e,onClick:()=>(e=>{f(e)})(e)})},r)}))}),y.length>=o-1&&(0,j.jsx)("div",{style:{position:"absolute",zIndex:1,top:"50%",right:s+"px",transform:"translateY(-65%)"},children:b<=y.length&&(0,j.jsx)(S,{})})]})}var T=function(e){const[t,r,l]=(0,c.Z)(),[d]=(0,h.j1)("whatmoreShopId"),[m]=(0,h.j1)("whatmorePrimaryColor"),[u]=(0,h.j1)("whatmoreSecondaryColor"),[f]=(0,h.j1)("whatmoreTitleFont"),g="portrait"==t?(0,h.MO)("whatmoreTitleFontSizePortrait"):(0,h.MO)("whatmoreTitleFontSize"),{whatmoreRootId:v}=(0,n.useContext)(i.I),y=((0,h.MO)("isInDesignMode"),(0,h.MO)("whatmoreCollectionHeading")),{whatmoreIsCollectionsTemplate:x}=(0,n.useContext)(i.I),w=e.events,b=e.onClick,C=f;function P(e){b(e)}return(0,n.useEffect)((()=>{(0,S.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{i.$.forEach((e=>{var t;const r=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-f"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-f"]');if(!r)return;r&&e&&(e.style.minHeight="0px")}))}),[]),delete s.ZP.styles.global,(0,j.jsx)(a.C,{value:D,children:(0,j.jsx)("div",{children:(0,j.jsx)(o.x,{theme:s.ZP,cssVarsRoot:v,resetCSS:!1,children:(0,j.jsxs)(p.V.Provider,{value:{tileTopMargin:25,tileBottomMMargin:25,tileLeftMargin:4,tileRightMargin:4,showPlayButton:!0},children:[e.heading.trim().length>0||x?(0,j.jsx)("div",{className:"whatmore-events-carousel",style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,j.jsx)("p",{ref:e=>{e&&(e.style.setProperty("font-family",C,"important"),e.style.setProperty("font-size",g+"px","important"))},style:{color:m,backgroundClip:"text",textAlign:"center",fontWeight:(0,$.wOV)(d),lineHeight:(0,$.vY4)(d),letterSpacing:(0,$.X2K)(d)},children:x?"W"!==y?y:"":e.heading})}):(0,j.jsx)(j.Fragment,{}),"landscape"===t?(0,j.jsx)(R,{events:w,onClick:P}):(0,j.jsx)(E,{events:w,onClick:P})]})})})})}},7129:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});const n=(0,r(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},3175:function(e,t,r){"use strict";var n=r(1332),o=r(5180),i=r(6417);t.Z=function(e){var t,r;const s=null!==(t=e.height)&&void 0!==t?t:"100%",a=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,i.jsxs)("div",{style:{width:a,height:s,overflow:"hidden",minHeight:s,minWidth:a},children:[(0,i.jsx)(o.Z,{height:s,width:a}),(0,i.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,i.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"center",width:"100%",height:"fit-content"},children:(0,i.jsx)(n.Z,{})})})]})}},5180:function(e,t,r){"use strict";var n=r(6417);t.Z=function(e){var t,r,o;const i=null!==(t=e.height)&&void 0!==t?t:"100%",s=null!==(r=e.width)&&void 0!==r?r:"100%",a=null!==(o=e.borderRadius)&&void 0!==o?o:"10px";return(0,n.jsx)("div",{style:{height:i,width:i,borderRadius:a,overflow:"hidden",minHeight:i,minWidth:s,maxHeight:i,maxWidth:s},children:(0,n.jsx)("div",{style:{minHeight:i,minWidth:s},height:"100%",width:"100%",className:"whatmore-shimmer"})})}},2887:function(e,t,r){"use strict";var n=r(7313),o=r(3175),i=r(6417);t.Z=function(e){var t,r,s;const[a,l]=(0,n.useState)(!1),d=n.useRef(0),c=(0,n.useRef)(null),m=null!==(t=e.timeUpdateCallback)&&void 0!==t?t:()=>{},u=null!==(r=e.height)&&void 0!==r?r:"100%",h=null!==(s=e.width)&&void 0!==s?s:"100%";return(0,n.useEffect)((()=>{d.current=0;const e=setInterval((()=>{d.current=d.current+.03,c.current&&m(d.current,5),d.current>=5&&(d.current=0)}),30);return()=>{clearInterval(e)}}),[e.isPlaying]),(0,i.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",width:h,height:u,overflow:"hidden"},children:[(0,i.jsx)("div",{style:{width:a?"100%":"0px",height:a?"100%":"0px"},children:(0,i.jsx)("img",{ref:c,src:e.url,style:{objectFit:"cover",height:u,width:h,backgroundColor:"white"},alt:"image player",onLoad:()=>{l(!0)}})}),a?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(o.Z,{width:h,height:u})]})}},4892:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(7313),o=r(3933),i=r(868),s=r(8984),a=r(7300),l=r(2887),d=r(4862),c=r(7753),m=r(6417);var u=function(e){var t,r;const i=(0,n.useRef)(null),[a,l,u]=(0,o.YD)({triggerOnce:!0}),h=(0,c.MO)("whatmoreShopId"),p=null!==(t=e.height)&&void 0!==t?t:"100%",f=null!==(r=e.width)&&void 0!==r?r:"100%";return(0,n.useEffect)((()=>{i.current&&(e.isPlaying?i.current.play():((d.G6||(0,s.gE)())&&i.current.play(),i.current.pause()))}),[e.isPlaying,l]),(0,m.jsx)("div",{ref:a,style:{width:p,height:f,overflow:"hidden"},children:l?(0,m.jsx)("video",{ref:i,className:"whatmore-video-player",width:f,height:p,preload:"metadata",loop:!0,playsInline:!0,poster:e.isPlaying&&"STRTFEDEDAP"!==h&&"STRY2V4XO5L"!==h?e.url:e.poster,muted:!0,src:e.url,style:{backgroundColor:"white"}}):(0,m.jsx)("div",{width:f,height:p,ref:e=>{e&&e.style.setProperty("display","block","important")}})})};var h=function(e){var t,r,d,c;const[h,p,f]=(0,o.YD)({triggerOnce:!0});if((0,a.WJ)(e.event))return(0,m.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;var g;if((0,s.KE)())return(0,m.jsx)(u,{height:"100%",width:"100%",poster:null===e||void 0===e||null===(g=e.event)||void 0===g?void 0:g.poster_image,url:(0,i.V)(e.url),isPlaying:e.isPlaying,pauseFromPlayTimeInMs:$});const v=(0,n.useRef)(null),y=null!==(r=e.height)&&void 0!==r?r:"100%",x=null!==(d=e.width)&&void 0!==d?d:"100%";return(0,n.useEffect)((()=>{v.current&&(e.isPlaying?v.current.play():v.current.pause())}),[e.isPlaying,p]),(0,m.jsx)("div",{ref:h,style:{width:y,height:x,overflow:"hidden"},children:p?(0,m.jsx)("video",{ref:v,className:"whatmore-video-player",width:x,height:y,preload:"metadata",loop:!0,playsInline:!0,muted:!0,src:(0,i.V)(e.url),poster:null===e||void 0===e||null===(c=e.event)||void 0===c?void 0:c.poster_image,style:{backgroundColor:"white"}}):(0,m.jsx)("div",{width:x,height:y,ref:e=>{e&&e.style.setProperty("display","block","important")}})})}},1855:function(e,t,r){"use strict";var n=r(7313),o=r(9821),i=r(7129),s=r(6417);t.Z=function(e){var[t,r]=(0,o.Z)();return(0,n.useContext)(i.V),e.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:r,height:t,overflow:"hidden"}})}},868:function(e,t,r){"use strict";r.d(t,{V:function(){return a}});var n=r(9854),o=r(7753);const i={"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"},s={"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"},a=function(e){const t=(0,o.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(i))if(e.includes(t))return e.replace(t,i[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(s))if(e.includes(t))return e.replace(t,s[t]);return e}}return e}},6805:function(e,t,r){"use strict";r.d(t,{$I:function(){return a},$w:function(){return d},AK:function(){return i},AL:function(){return s},YP:function(){return o},me:function(){return n},rE:function(){return l}});const n="device_type",o="device_mode",i="mobile",s="tablet",a="desktop",l="portrait",d="landscape"},8866:function(e,t,r){"use strict";var n=r(7313);function o(){return[window.innerHeight,window.innerWidth]}t.Z=function(e){var[t,r]=o();const[i,s]=(0,n.useState)([t>r?"portrait":"landscape",t,r]);return(0,n.useLayoutEffect)((()=>{function e(){var[e,t]=o();s(e>t?["portrait",e,t]:["landscape",e,t])}return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),screen.orientation&&screen.orientation.addEventListener("change",e),e(),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),screen.orientation&&screen.orientation.removeEventListener("change",e)}}),[]),i}},9821:function(e,t,r){"use strict";var n=r(6367),o=r(7753),i=r(8866),s=r(6805);t.Z=function(e){const[t,r,a]=(0,i.Z)(),[l]=(0,o.j1)("whatmoreLandscapePadding"),[d]=(0,o.j1)("whatmoreVideoTileSize"),[c]=(0,o.j1)("whatmoreVideoTileSizePortrait"),m=(0,n.useMediaQuery)({query:"(min-width: 1025px)"}),u=(0,n.useMediaQuery)({query:"(min-width: 481px)"}),h="portrait"==t?c:d,p=!("portrait"!=t||!u),f=h/100*1.3*.5,$=h/100;var g=Math.min(a,r),[v,y,x,w]=[.6*g*(16/9),.6*g,1.4,0];function b(e){return Math.round(10*e)/10}var C={DEVICE_TYPE:s.AK,DEVICE_MODE:s.rE};if(m){const e=y*f,t=v*f;[v,y,x,w]=[t,e,(a-2*l)/(1.1*e),l],C[s.me]=s.$I,C[s.YP]=s.$w}else if(p){var P=.8*y,j=.8*v;"portrait"==t?(P*=$,j*=$,[v,y,x,w]=[j,P,b(a/(1.2*P)),0],C[s.me]=s.AL,C[s.YP]=s.rE):([v,y,x,w]=[j,P,(a-2*l)/(1.1*P),l],C[s.me]=s.AL,C[s.YP]=s.$w)}else{P=y,j=v;"portrait"==t?(P=P*$*.9,j=j*$*.9,[v,y,x,w]=[j,P,b(a/(1.15*P)),0],C[s.me]=s.AK,C[s.YP]=s.rE):(P=.7*y,j=.7*v,[v,y,x,w]=[j,P,(a-2*l)/(1.1*P),l],C[s.me]=s.AK,C[s.YP]=s.$w)}return[v,y,x,w,C]}},7053:function(e,t,r){"use strict";r.d(t,{p:function(){return i}});var n=r(6230),o=r(4844);async function i(e,t,r){return"shopify"==t?(0,o.bN)(e):(0,n.ln)(e,r)}},6040:function(e,t,r){const n=r(500);e.exports=function(e){if("string"!==typeof e)return;const t=e.toUpperCase();return Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0},e.exports.currencySymbolMap=n},500:function(e){e.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},8743:function(){},3439:function(){},123:function(){},7244:function(){},5892:function(){},4444:function(){},8507:function(e,t){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var n=function e(t,n){function o(e,o,i){if("undefined"!==typeof document){"number"===typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in i)i[a]&&(s+="; "+a,!0!==i[a]&&(s+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+s}}return Object.create({set:o,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),s=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(n[a]=t.read(s,a),e===a)break}catch(l){}}return e?n[e]:n}},remove:function(e,t){o(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});t.Z=n}}]);
|