whatmore-react-assets 1.0.1374 → 1.0.1376
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see 824.5e1bcf5b.chunk.js.LICENSE.txt */
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[824],{9219:function(t,n,o){"use strict";o.d(n,{p_:function(){return p},Rb:function(){return v},jx:function(){return s}});var i=o(873),r=o(6040),e=o.n(r),c=o(9854);function a(t,n){var o,i;return"STRI2XC0BMX"==n||"STRDG36BBP5"==n?null!==(i=(0,c.QxN)(n)[t])&&void 0!==i?i:t+" ":"73791930678"===n?"CHF ":null!==(o=(0,c.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 l(t){if(t%1>=.1){return t.toString().split(".")[0].length>=4?parseInt(t):t.toFixed(2)}return parseInt(t)}function s(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(l(t));"STRY2V4XO5L"!=o&&"STRTFEDEDAP"!=o||(n="");const r="STRY2V4XO5L"==o||"STRTFEDEDAP"==o?t.toFixed(2):l(t);return a(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=a(Currency.currentCurrency,o))&&void 0!==e?e:"",i=Currency.convert(r,"INR",Currency.currentCurrency);return`${t}${n}${isNaN(i)?"":d(l(i))}`}if("1972174947"==o&&"object"==typeof DoublyGlobalCurrency&&"PKR"!==DoublyGlobalCurrency.currentCurrency){var c;const t=null!==(c=a(DoublyGlobalCurrency.currentCurrency,o))&&void 0!==c?c:"",i=DoublyGlobalCurrency.convert(r,"PKR",DoublyGlobalCurrency.currentCurrency);return`${t}${n}${isNaN(i)?"":d(l(i))}`}if("4392910921"==o&&"object"==typeof Currency&&"USD"!==Currency.currentCurrency){var s;const t=null!==(s=a(Currency.currentCurrency,o))&&void 0!==s?s:"",i=Currency.convert(r,"USD",Currency.currentCurrency);return`${t}${n}${isNaN(i)?"":d(l(i))}`}const p=window.Shopify.currency?window.Shopify.currency.active:i;return"24638181"==o?d(l(r))+n+a(p,o):a(p,o)+n+d(l(r))}async function p(t,n,o){for(let a=0;a<t.products.length;a++){var r,e,c;if(1==a&&"STRDOIDF6O7"==o)break;const u=await(0,i.vX)(t.products[a],n,o);t.products[a].price=null!==(r=u.price)&&void 0!==r?r:t.products[a].price,t.products[a].compare_price=null!==(e=u.compare_at_price)&&void 0!==e?e:t.products[a].compare_price,t.products[a].currency=null!==(c=u.currency_code)&&void 0!==c?c:t.products[a].currency,"STRTFEDEDAP"==o&&(t.products[a].discount=u.discount)}return t}async function v(t,n,o){var r,e,c;const a=await(0,i.vX)(t,n,o);return t.price=null!==(r=a.price)&&void 0!==r?r:t.price,t.compare_price=null!==(e=a.compare_at_price)&&void 0!==e?e:t.compare_price,t.currency=null!==(c=a.currency_code)&&void 0!==c?c:t.currency,t}},5945:function(t,n,o){"use strict";o.d(n,{s:function(){return r}});var i=o(7753);function r(t,n){const o=(0,i.MO)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==o||"72442478904"==o||"58562281529"==o?t:"66168324332"==o&&"prod-tile"!=n?null===t||void 0===t||null===(r=t.split("- "))||void 0===r?void 0:r[0]:t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}));var r}},873:function(t,n,o){"use strict";o.d(n,{jg:function(){return kt},TE:function(){return Nt},rY:function(){return jt},OM:function(){return Pt},vX:function(){return Ut},ln:function(){return Ct}});var i=o(9854);function r(t){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)t[i]=o[i]}return t}var e=function t(n,o){function i(t,i,e){if("undefined"!==typeof document){"number"===typeof(e=r({},o,e)).expires&&(e.expires=new Date(Date.now()+864e5*e.expires)),e.expires&&(e.expires=e.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var a in e)e[a]&&(c+="; "+a,!0!==e[a]&&(c+="="+e[a].split(";")[0]));return document.cookie=t+"="+n.write(i,t)+c}}return Object.create({set:i,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var o=document.cookie?document.cookie.split("; "):[],i={},r=0;r<o.length;r++){var e=o[r].split("="),c=e.slice(1).join("=");try{var a=decodeURIComponent(e[0]);if(i[a]=n.read(c,a),t===a)break}catch(u){}}return t?i[t]:i}},remove:function(t,n){i(t,"",r({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,r({},this.attributes,n))},withConverter:function(n){return t(r({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),c=e;const a={STRDG36BBP5:"https://betav2.andaazfashion.com",STRI2XC0BMX:"https://www.andaazfashion.com"};function u(t){const n=c.get("andaaz_currency_code");return n||null}async function d(t,n){const o=function(t){return a[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==u()?"¤cy_code=GBP":"¤cy_code="+u()}`,{method:"GET",headers:{redirect:"follow",mode:"no-cors"}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n,o;const i=t.data.product_data;var r=[{id:null===i||void 0===i?void 0:i.product_id,product_id:null===i||void 0===i?void 0:i.product_id,title:null===i||void 0===i?void 0:i.product_title,price:null===i||void 0===i?void 0:i.price,compare_at_price:null===i||void 0===i?void 0:i.mrp,currency_code:null===i||void 0===i?void 0:i.currency_code,available:"in_stock"==(null===i||void 0===i?void 0:i.stock_status),option1:null,option2:null,option3:null}];const e=null===(o=r=null===(n=r)||void 0===n?void 0:n.filter((t=>1==(null===t||void 0===t?void 0:t.available))))||void 0===o?void 0:o.map((t=>null===t||void 0===t?void 0:t.option1));return{id:null===i||void 0===i?void 0:i.product_id,title:null===i||void 0===i?void 0:i.product_title,body_html:"",variants:r,options:e}}(i)}const l={STRCGMYX28X:"https://"+window.location.hostname,STRBG6F06XL:"https://"+window.location.hostname,STR1QF8R1DW:"https://"+window.location.hostname},s={S:0,M:1,L:2,XL:3,XXL:4};async function p(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 v(t){return l[t]}async function _(t,n){const o=v(n),i=await fetch(o+`/kartify/products?skus=${function(t){return t.product_metadata.sku_id}(t)}`,{headers:{apiKey:await p(n)}}).then((t=>t.json())).catch((t=>console.error(t)));return function(t){var n,o,i,r,e,c,a;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 d=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]}}));(d=d.filter((t=>1==t.available))).sort(((t,n)=>s[t.option1]-s[n.option1]));const l=d.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:d,options:l.length>0&&!l.includes(null)?[{id:u.product_id,product_id:u.product_id,name:""!==(null===(c=d)||void 0===c||null===(a=c[0])||void 0===a?void 0:a.size)?"Size":"",position:1,values:l}]:[],images:p}}(i)}async function h(t,n,o){v(o);const i=t.split("::"),r=i[0],e="null"==i[1]?null:i[1],c="null"==i[2]?null:i[2];return whatmoreatc(r,n,e,c),await new Promise((t=>setTimeout(t,1500))),"whatmoreatc_success"in localStorage&&"true"==localStorage.getItem("whatmoreatc_success")?{ok:!0,status:200,json:function(){return{}}}:{ok:!1,status:500,json:function(){return{}}}}const f={STRR72TX6AT:"https://www.cbazaar.com"};async function m(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 f[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 w={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 y(t,n){const o=function(t){return w[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,c,a,u,d,l,s;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===(c=i.items)||void 0===c||null===(a=c[0])||void 0===a||null===(u=a.stage)||void 0===u||null===(d=u.items)||void 0===d||null===(l=d[0])||void 0===l||null===(s=l.stage)||void 0===s?void 0:s.id,position:3,values:[]}),!e[2].values.includes(t.option3)&&e[2].values.push(t.option3))}));const c=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!==c?i.map((t=>({optionsrc:null===t||void 0===t?void 0:t[`swatchUrl${c+1}`],src:null===t||void 0===t?void 0:t.image,color:null===t||void 0===t?void 0:t[`option${c+1}`]}))):[null===r||void 0===r?void 0:r.thumbnail_image]}}(i)}const S={STRRPY8YRZE:"https://idaho-o.com"},T=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"Y2tfZTI1OWVmNWVlNzg5MzIzYzIzOWU3ZDE0NjQwNmUwZmZkZGY4NDQ5Yzpjc19iYzdkZjI0MGEwYTgzNDhlZjNhMTI4ZTA3MDRkMmMwNmU5ZGM4NTM5");function R(t){return S[t]}async function g(t,n){const o=R(n),i=await fetch(o+"/wp-json/wc/v3/products/"+function(t){return t.product_metadata.sku_id}(t),{method:"GET",headers:{Authorization:"Basic "+T}}).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 b(t,n,o){const i=t.split(":"),r=i[0],e=i[1],c=i[2],a=R(o)+"/wp-admin/admin-ajax.php",u={Authorization:"Basic "+T},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]",c?c.toLowerCase():"");return await fetch(a,{method:"POST",headers:u,body:d}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const D={STRVHD8LG12:"https://prod.indina.in"};async function C(t,n){const o=function(t){return D[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 c=[{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 a=(c=c.filter((t=>1==t.available))).map((t=>t.option1));return{id:e.id,title:e.name,body_html:"",variants:c,options:a}}(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 N(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 U={STRMM0QP0CU:"https://"+window.location.hostname},$=null!==(P=c.get("form_key"))&&void 0!==P?P:"undefined",O=(window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),window.location.hostname.substring(10,4),"ds243corrt3qkd1rhoeyfes3ztefxjae");function I(t){return U[t]}async function G(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 "+O}}).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 B(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 c=await G(r.ready_to_wear_sizes,n),a=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 a?await async function(t,n){const i=t.map(((t,i)=>{var e;const c=o.extension_attributes.stock_item.item_id,a=t.split(":")[0],u=t.split(":")[1];return{id:"multi_option::"+o.id+":"+c+":"+u+":"+a+":"+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}]}}(c,a):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 "+O,"User-Agent":"PostmanRuntime/7.32.3"}}).then((t=>t.json())).catch((t=>console.error(t)));return await o(r)}async function M(t,n,o){var i,r;if(t.startsWith("single_option::")){const i=t.split("::")[1],r=I(o)+"/ajaxcart",e={Authorization:"Bearer "+O},c=new FormData;c.append("product",i),c.append("item",i),c.append("qty",n),c.append("form_key",$);return await fetch(r,{method:"POST",headers:e,body:c}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const e=t.split("::")[1].split(":"),c=e[0],a=(e[1],e[2]),u=(e[3],null!==(i=e[4])&&void 0!==i?i:void 0),d=null!==(r=e[5])&&void 0!==r?r:void 0,l=I(o)+"/ajaxcart",s={Authorization:"Bearer "+O},p=new FormData;p.append("product",c),p.append("item",c),p.append("qty",n),p.append("options["+u+"]",d),p.append("options[size_"+u+"]",a),p.append("form_key",$);return await fetch(l,{method:"POST",headers:s,body:p}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const A={STRK70X2OVV:"http://dev-panash.panashindia.com",STR3PNIYEZ6:"https://www.panashindia.com"};async function E(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 A[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 F={STRVIY73X3V:"https://staging.samyakk.com",STRBXUH5UGQ:"https://www.samyakk.com"};async function L(t,n){const o=function(t){return F[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 X={STRHFVBOIST:"https://api.thesouledstore.com"},K={STRHFVBOIST:"is_exclusive_whatmore"};function V(t){return null!==localStorage.getItem(K[t])?JSON.parse(localStorage.getItem(K[t])):"none"}async function z(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 Y(t,n){var o,i,r;const e=function(t){return X[t]}(n)+"/api/v2/product/"+(null===t||void 0===t||null===(o=t.product_link.split("/product/"))||void 0===o||null===(i=o[1])||void 0===i||null===(r=i.split("?"))||void 0===r?void 0:r[0]);return function(t){const o=t,i=[{id:o.id,product_id:o.id,title:o.product,price:"none"==V(n)?o.price:V(n)?o.exclusive_price:o.spl_price>0?o.spl_price:o.price,available:!0,compare_at_price:o.price,option1:null,option2:null,option3:null}];return{id:o.id,title:o.product,body_html:"",variants:i,currency_code:"INR",options:[]}}(await fetch(e,{method:"POST",headers:{"content-type":"application/json","API-AUTH":await z(n)},body:JSON.stringify({gender_type:"1"})}).then((t=>t.json())).catch((t=>console.error(t))))}const H={STRY2V4XO5L:"https://usqa.utsav.bz",STRTFEDEDAP:"https://www.utsavfashion.com"};function x(t){var n;return null!==(n=c.get("currency_code"))&&void 0!==n?n:"USD"}async function J(t,n){const o=function(t){return H[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 Z={STRNV8MHJTF:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR6HU283UZ:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR9T3LLEJB:"https://cart-pim.wforwoman.com/api/v1/whatmore",STRWJMIOJNX:"https://cart-pim.wforwoman.com/api/v1/whatmore",STR1D5ONOZX:"https://cart-pim.wforwoman.com/api/v1/whatmore",STRUDQ36YAC:"https://cart-pim.wforwoman.com/api/v1/whatmore"},W={STRNV8MHJTF:1,STR6HU283UZ:1,STR9T3LLEJB:5,STRWJMIOJNX:2,STR1D5ONOZX:4,STRUDQ36YAC:3},Q=window.location.hostname.substring(10,4)+"_cart",q=window.location.hostname.substring(10,4)+"_carts",tt=window.location.hostname.substring(10,4)+"_curr";function nt(t){return W[t]}function ot(t){return Z[t]}function it(t){var n;return null!==(n=c.get(tt))&&void 0!==n?n:"INR"}async function rt(t,n){const o=ot(n),i=await fetch(o+"/get-product?url_key="+function(t){return t.product_link.match(/\/([^\/]+)\/?$/)[1].replace(".html","")}(t)+"&store="+nt(n)+"¤cy="+it(),{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 et(t,n,o){const i=ot(o),r=c.get(Q),e=c.get(q);var a={varient_id:t,qty:n,store:nt(o)};r&&e&&(a={varient_id:t,qty:n,store:nt(o),cart_id:r,cart_session:e});return await fetch(i+"/add-product",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((t=>t.json())).then((t=>(r||(c.set(Q,t.data.cart_id,{expires:365}),c.set(q,t.data.cart_session,{expires:365})),{ok:!0,status:200,json:function(){return{}}})))}const ct={STRJ5VPPT3U:"https://"+window.location.hostname,STR45JIP5JW:"https://"+window.location.hostname};function at(t){return ct[t]}async function ut(t,n){const o=at(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 dt(t,n,o){const i=at(o),r=t.split("::"),e=r[0],c=r.length>1?r[1]:"";return await fetch(i+"/cart/addtocart?productid="+e+("no-variations"!==c&&t?"&variation_value="+c:"")+"&qty="+n,{method:"GET"}).then((t=>t.json())).then((t=>({ok:!0,status:200,json:function(){return{}}})))}const lt="https://www.ninecolours.com";function st(t){const n=t.product_link.split("-");return n[n.length-1]}function pt(t){return"STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t}function vt(t){return"STRRPY8YRZE"==t}function _t(t){return"STR5KA9X0OZ"==t||"STRR72TX6AT"==t}function ht(t){return"STRMM0QP0CU"==t}function ft(t){return"STRJ5VPPT3U"==t||"STR45JIP5JW"==t}function mt(t){return"STRCGMYX28X"==t||"STRBG6F06XL"==t||"STR1QF8R1DW"==t}function wt(t){return"STRK70X2OVV"==t||"STR3PNIYEZ6"==t}function yt(t){return"STRVIY73X3V"==t||"STRBXUH5UGQ"==t}function St(t){return"STRGXL92H5M"==t}function Tt(t){return"STRY2V4XO5L"==t||"STRTFEDEDAP"==t}function Rt(t){return"STRDG36BBP5"==t||"STRI2XC0BMX"==t}function gt(t){return"STRVHD8LG12"==t}function bt(t){return"STR2FOC6KG9"==t||"STRDOIDF6O7"==t}function Dt(t){return"STRHFVBOIST"==t}async function Ct(t,n){if(pt(n))return rt(t,n);if(vt(n))return g(t,n);if(_t(n))return m(t,n);if(wt(n))return E(t,n);if(ht(n))return B(t,n);if(ft(n))return ut(t,n);if(mt(n))return _(t,n);if(yt(n))return L(t,n);if(St(n))return N(t,n);if(Tt(n))return J(t,n);if(Rt(n))return d(t,n);if(gt(n))return C(t,n);if(bt(n))return y(t,n);if(Dt(n))return Y(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=lt;return o(await fetch(i+"/whatmore-productfetch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_code:st(t)})}).then((t=>t.json())).catch((t=>console.error(t))))}return{}}async function kt(t,n,o){if(pt(o))return await et(t,n,o);if(vt(o))return await b(t,n,o);if(ht(o))return M(t,n,o);if(ft(o))return dt(t,n,o);if(mt(o))return h(t,n,o);if(bt(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=lt;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(pt(o))return async function(t,n,o){await et(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(vt(o))return async function(t,n,o){await b(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(ht(o))return async function(t,n,o){await M(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(ft(o))return async function(t,n,o){await dt(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(mt(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("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 Nt(t){if(pt(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}/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}/checkout/cart?`+(0,i.awP)(t)+"&"+(0,i.n9s)(t)+"&"+(0,i.Uch)(t):`${n}/checkout/cart`,window.location.href=o}(t);if(ft(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 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(bt(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 Pt(t){if(pt(t))return function(t){const n=c.get(Q),o=ot(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(vt(t))return function(t){const n=R(t);return fetch(n+"/wp-json/wc/v3/cart",{method:"GET",headers:{Authorization:"Basic "+T}}).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(ht(t))return function(t){const n=I(t);return fetch(n+"/wp-json/wc/v3/cart`",{method:"GET",headers:{Authorization:"Basic "+O}}).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(ft(t))return Promise.resolve({json:function(){return{item_count:0}}});if(mt(t))return Promise.resolve({json:function(){return{item_count:0}}});if(bt(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(lt+"/whatmore-cartcount ",{method:"GET",headers:{"Content-Type":"application/json"}})}return{}}async function Ut(t,n,o){if(pt(o))return async function(t,n){const o=await rt(t,n);return{price:o.variants[0].price/100,compare_at_price:o.variants[0].compare_at_price/100,currency_code:it()}}(t,o);if(vt(o))return async function(t,n){const o=await g(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:"INR"}}(t,o);if(ht(o))return async function(t,n){const o=await B(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(ft(o))return async function(t,n){const o=await ut(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 m(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(wt(o))return async function(t,n){const o=await E(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){var o,i,r,e;const c=await _(t,n);return{price:null===(o=c.variants[0])||void 0===o||null===(i=o.itemPrice)||void 0===i?void 0:i.netSellerPayable,compare_at_price:null===(r=c.variants[0])||void 0===r||null===(e=r.itemPrice)||void 0===e?void 0:e.mrp,currency_code:"INR"}}(t,o);if(yt(o))return async function(t,n){var o,i,r,e;const c=await L(t,n);return{price:null===(o=c.variants)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.price,compare_at_price:null,currency_code:null===(r=c.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.currency_code}}(t,o);if(St(o))return async function(t,n){var o,i;const r=await N(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(Tt(o))return async function(t,n){var o,i,r,e;const c=await J(t,n);return{price:null===(o=c.variants)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.price,compare_at_price:null===(r=c.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.compare_at_price,currency_code:x(),discount:c.discount}}(t,o);if(Rt(o))return async function(t,n){var o,i,r,e,c,a;const u=await d(t,n);return{price:null===u||void 0===u||null===(o=u.variants)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.price,compare_at_price:null===u||void 0===u||null===(r=u.variants)||void 0===r||null===(e=r[0])||void 0===e?void 0:e.compare_at_price,currency_code:null===u||void 0===u||null===(c=u.variants)||void 0===c||null===(a=c[0])||void 0===a?void 0:a.currency_code}}(t,o);if(gt(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(bt(o))return async function(t,n){const o=await y(t,n);return{price:o.variants[0].price,compare_at_price:o.variants[0].compare_at_price,currency_code:"INR"}}(t,o);if(Dt(o))return async function(t,n){var o,i;const r=await Y(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 Ct(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){"use strict";o.d(n,{p:function(){return e}});var i=o(873),r=o(4844);async function e(t,n,o){if(t)return"shopify"==n?(0,r.bN)(t,o):(0,i.ln)(t,o)}},6040:function(t,n,o){const i=o(500);t.exports=function(t){if("string"!==typeof t)return;const n=t.toUpperCase();return Object.prototype.hasOwnProperty.call(i,n)?i[n]:void 0},t.exports.currencySymbolMap=i},500:function(t){t.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},6143:function(){}}]);
|
package/static/js/{product-page-view.0213f33b.chunk.js → product-page-view.c72d39c7.chunk.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[281],{8181:function(e,t,n){var i=n(7313),o=n(8866),r=n(7753),a=n(6417);const d=i.memo((()=>{if(!(0,r.MO)("isLandingSharedLink"))return(0,a.jsx)(a.Fragment,{});const[e]=(0,o.Z)();return(0,a.jsxs)("div",{className:`shimmer-container ${e}`,children:["portrait"===e?(0,a.jsx)("div",{className:"shimmer-item portrait-full",children:(0,a.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,a.jsx)("div",{className:"shimmer-item landscape-item "+(1===t?"center-item":""),children:(0,a.jsx)("div",{className:"shimmer-effect"})},t))),(0,a.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));t.Z=d},7951:function(e,t,n){n.d(t,{BU:function(){return r},FC:function(){return a}});let i,o=!1;function r(){return i?i.play().then((()=>{o=!0,console.debug("iOS autoplay restrictions bypassed."),i.pause()})).catch((e=>{console.error("Failed to bless videos:",e.message)})):Promise.reject(new Error("Blessing video not initialized."))}function a(){i||(i=document.createElement("video"),i.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",i.muted=!0,i.playsInline=!0,i.style.display="none",document.body.appendChild(i));const e=()=>{o||r()};document.addEventListener("click",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0})}},5380:function(e,t,n){n.d(t,{Z:function(){return w}});var i=n(4959),o=n(7313),r=n(4892),a=n(6805),d=n(7753),s=n(9821);var l=function(e){const[t,n,i,o,r]=(0,s.Z)(),[l]=(0,d.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,d.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.YP]===a.$w?c/100:l/100*1.2;return[t*u,n*u,r]},c=n(9723),u=n(9461),p=n.n(u),h=n(1195),v=n(7108),m=(n(7244),n(123),n(9854)),f=n(6417);var w=function(e){var t;const n=o.useRef(null);var[s,u,w]=l();const g=(0,d.MO)("whatmoreUITheme"),[x]=(0,d.j1)("whatmoreEmbedAppVideoTitle"),[_]=(0,d.j1)("whatmoreEmbedAppPositionPortrait"),[y]=(0,d.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,d.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[b]=(0,d.j1)("whatmoreEmbedAppPositionLandscape"),[I]=(0,d.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[j]=(0,d.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),S=(0,d.MO)("whatmoreShopId");var L=_,C=y,P=E;w[a.YP]===a.$w&&(L=b,C=I,P=j);const[D,O]=(0,o.useState)(["initial",window.pageYOffset]),[T,K]=(0,o.useState)(!1),A=null!==(t=e.isSpotlight)&&void 0!==t&&t,k=w[a.YP]===a.$w?.7*(0,m.zGA)(S):(0,m.zGA)(S),z=A?k:1;s*=z,u*=z;const V=A?(0,m.G0o)(S):L,M=A?(0,m.X8j)(S):(0,m.lVn)(S),[N,F]=(0,o.useState)(!A&&(0,m.eXi)(S));function Y(e,t){O(e),e[1]<=100?K(!1):t!=T&&(K(t),F(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(Y([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[D]),(0,i.O3)({ref:n,handler:()=>{Y(["scrolled-up",D[1]],!0)}});const $=e.event,R=e.inVideoClick,Z=e.closeClick,W=.3*u,U=.6*u,B=.1*u,H=.1*(.5*u),G="round"==g?"10px":"0px",q=(0,m.Z$A)(S);var J=!1,X=0,Q=0;function ee(e){J=e}return(0,f.jsx)("div",{children:N&&!M?(0,f.jsx)(f.Fragment,{}):T&&M?(0,f.jsx)("div",{style:"left"===V?{left:"1px",bottom:A?(0,m.vnu)(S)+"px":P+"px",position:"fixed",zIndex:q}:{right:"5px",bottom:A?(0,m.vnu)(S)+"px":P+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{onClick:()=>{Y(["initial",D[1]],!1)},style:{margin:"1px",width:u+"px",height:s+"px"},className:"left"===V?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,f.jsx)(r.Z,{url:$.thumbnail_image,isPlaying:!1,event:$})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,f.jsx)(h.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:W+"px"},style:{position:"relative",zIndex:1,left:H+"px",bottom:H+"px"},onClick:Z})})}),(0,f.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,f.jsx)(v.Z,{sx:{color:"white",fontSize:2*W+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,X=n,Q=i},onDrag:(e,t)=>{ee(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-X)>5||Math.abs(t.y-Q)>5)?ee(!1):R($)},children:(0,f.jsx)("div",{ref:n,style:"left"===V?{left:A?(0,m.$II)(S)+"px":C+"px",bottom:A?(0,m.vnu)(S)+"px":P+"px",position:"fixed",zIndex:q}:{right:A?(0,m.$II)(S)+"px":C+"px",bottom:A?(0,m.vnu)(S)+"px":P+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:e.isSpotlight&&"60122562760"==S?s+"px":u+"px",height:e.isSpotlight&&"60122562760"==S?u+"px":s+"px"}),className:"left"===V?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==S?16/9:9/16},children:(0,f.jsx)(r.Z,{url:$.thumbnail_image,isMuted:!0,isPlaying:!0,event:$})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)(h.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:W+"px"},onClick:Z,style:{position:"relative",zIndex:1,left:B+"px",bottom:B+"px"}})}),(0,f.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,f.jsx)(c.Z,{sx:{color:(0,m.Ya_)(S),fontSize:U+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,f.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:G,borderBottomRightRadius:G,backgroundImage:x?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,f.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*W+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",x]})})]})})]})})})})}},4284:function(e,t,n){n.r(t);var i=n(7313),o=n(9854),r=n(2860),a=n(7753),d=n(5160),s=n(6967),l=n(5380),c=n(58),u=n(8984),p=n(4669),h=n(513),v=n(9302),m=n(2575),f=n(7300),w=n(6524),g=n(364),x=n(4522),_=n(778),y=n(7643),E=n(7008),b=n(7381),I=n(8181),j=n(6095),S=n(653),L=n(7951),C=n(6417);const P=(0,m.Z)({key:"whatmore-css-ppv"}),D=i.lazy((()=>Promise.all([n.e(819),n.e(210),n.e(577),n.e(745),n.e(926),n.e(824),n.e(348),n.e(647)]).then(n.bind(n,6348))));function O(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,i.useState)(),[m,T]=(0,i.useState)(),{whatmoreIsPreviewMode:K}=(0,i.useContext)(g.I),[A]=(0,a.j1)("isInDesignMode"),[k]=(0,a.j1)("isDemoBrand"),[z]=(0,a.j1)("whatmoreEmbedAppUseVariant"),[V,M]=(0,i.useState)(-2),[N]=(0,a.j1)("whatmoreVariantId"),[F]=(0,a.j1)("whatmoreShopId");var[Y]=(0,a.j1)("whatmoreProductId");const $=(0,a.MO)("isLandingSharedLink"),R=(0,a.MO)("whatmoreShareTemplateId"),Z=(0,a.MO)("whatmoreShareEventId"),W=$&&"template-embed"===(0,w.zv)(R),[U,B]=(0,i.useState)(W);Y=(0,o.iXA)(F)?O(window.location.href):Y;const[H,G]=(0,i.useState)((()=>"true"===z?N:Y));var q=r.Gc+"/v2/brand/"+F+"/product-events";const{whatmoreWidgetSourceDetails:J}=(0,i.useContext)(g.I),[X,Q]=(0,i.useState)(window.location.pathname);(0,i.useEffect)((()=>{(0,b.Oo)("Video shopping powered by Whatmore!"),(0,s.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,E.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{(0,p.ll)(F)}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||m||!(0,u.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||((0,S.j)()?(0,c.b5)(c.UD):(0,L.FC)())}),[t]),(0,i.useEffect)((()=>{if(M(-1),(0,o.ly4)(F)){const e=`${r.Gc}/v2/brand/${F}/product-events/recommendation`,t=(0,o.FSv)(F);fetch(`${e}?client_product_id=${H}&limit=10&recommended=${!t}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then((e=>e.json())).then((e=>{var i;const o=e=>{var t;return null===(t=e.products)||void 0===t?void 0:t.some((e=>"oos"!=(null===e||void 0===e?void 0:e.product_status)))},r=null===e||void 0===e||null===(i=e.events)||void 0===i?void 0:i.filter((e=>o(e)));if((null===r||void 0===r?void 0:r.length)>0){var a,d,s;const i=t?null===e||void 0===e||null===(a=e.all_events)||void 0===a?void 0:a.filter((e=>o(e))):null===e||void 0===e||null===(d=e.related_events)||void 0===d?void 0:d.filter((e=>o(e))).map((e=>({...e,isRelatedEvent:!0})));(null===i||void 0===i?void 0:i.length)>0&&(null===e||void 0===e||null===(s=e.product_info)||void 0===s?void 0:s.length)>0&&"6749782119"!=F?n([...r,...i,{event_type:"recommended_images",product_list:[...e.product_info]}]):n([...r,...i])}else n([])})).catch((e=>T(e.message)))}else fetch(q.toString()+"?client_product_id="+H.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>e.events)).then((e=>(null!=e&&0!=e.length&&(0,o.Htz)(F)&&(0,o.d0x)(e),n(e),e))).then((e=>((0,o.yoE)(F)&&function(e,t){setTimeout((async()=>{const n=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!n||n.product_link==O(window.location.href))return;const i={product_id:n.product_id,product_link:O(window.location.href)};fetch(r.Gc+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})}),500)}(e,H),e))).catch((e=>{T(e.message)}))}),[H,X]),(0,i.useEffect)((()=>{var e,n;M(-2),(t&&t.length>0||(0,o.uO6)(F))&&(0,x.PB)({userInteractionType:_.K.PDP_VISITED,widgetSourceDetails:J,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(e=t[0])||void 0===e?void 0:e.products,ctaList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.cta})}),[t]),(0,i.useEffect)((()=>{let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let t=history.replaceState;history.replaceState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{Q(window.location.pathname),window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("true"===z){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var i=t[n].split("=");if(i[0]==e)return i[1]}return!1}("variant");e&&""!==e&&G(e)}}))}),[]),(0,i.useEffect)((()=>{if(null!=t&&0!==t.length&&!m&&W&&((0,j.A)("whatmore-video-player",(()=>{B(!1)})),null!=Z)){const e=t.find((e=>Z==e.event_id));if(e)return void ne(e,!0,t.indexOf(e))}}),[t]);const ee=J.landingLocationType,te=J.templateType,ne=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,u.KE)()&&!t&&await((0,S.j)()?(0,c.QV)():(0,L.FC)()),(0,f.B6)(e)||(0,f.WJ)(e))return A||k||(async()=>{const t=(0,w.NY)(ee)+(0,w.dS)(te)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,d.wh)(e),(0,p.Tc)(F,r.h7,r.dU),(0,s.H4)(e.event_id,e.products,"product_page","video_popup",t)})(),void M(n)};function ie(){return(0,C.jsx)(C.Fragment,{})}return null==t||0==t.length||m?(0,C.jsx)("div",{}):(0,C.jsxs)(v.C,{value:P,children:[U&&(0,C.jsx)(I.Z,{}),"no-product"===H||-1===V||0===t.length?(0,C.jsx)(ie,{}):-2===V&&t.length>0?(0,C.jsx)("div",{children:(0,C.jsx)(y.u,{userInteractionType:_.K.PDP_POPUP_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!A&&!k,children:(0,C.jsx)(l.Z,{event:t[0],inVideoClick:ne,closeClick:e=>{var n;e.stopPropagation(),M(-1),(0,x.GF)({userInteractionType:_.K.PDP_POPUP_CLOSED,widgetSourceDetails:J,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.products})}})})}):(0,C.jsx)("div",{children:(0,C.jsx)(i.Suspense,{children:(0,C.jsx)(y.u,{userInteractionType:_.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!A&&!k,children:(0,C.jsx)(D,{events:t,index:V,onBack:function(e){(0,o.n2L)(F)&&(0,a.MO)("whatmoreAddedToCart")&&(0,h.D)(F,(()=>{}),100,window.location.hostname,e),M(-2),B(!1)},template:"template-product-page"})})})})]})}},6095:function(e,t,n){function i(e,t){let n=0;let i=new MutationObserver((function(){document.querySelector("."+e)?(t(),i.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),i.disconnect()}),8e3))}));i.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{A:function(){return i}})},6805:function(e,t,n){n.d(t,{$I:function(){return d},$w:function(){return l},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return i},rE:function(){return s}});const i="device_type",o="device_mode",r="mobile",a="tablet",d="desktop",s="portrait",l="landscape"},9821:function(e,t,n){var i=n(7753),o=n(8866),r=n(6805),a=n(9854);t.Z=function(e){const[t,n,d]=(0,o.Z)(),[s]=(0,i.j1)("whatmoreLandscapePadding"),[l]=(0,i.j1)("whatmoreShopId"),[c]=(0,i.j1)("whatmoreVideoTileSize"),[u]=(0,i.j1)("whatmoreVideoTileSizePortrait"),p=d>=1025,h="portrait"==t?u:c,v=!("portrait"!=t||!(d>=481)),m=h/100*1.3*.5,f=h/100;var w=Math.min(d,n),[g,x,_,y]=[.6*w*(16/9),.6*w,1.4,0];function E(e){return Math.round(10*e)/10}var b={DEVICE_TYPE:r.AK,DEVICE_MODE:r.rE};if(p){const e=x*m,t=g*m;[g,x,_,y]=[t,e,(d-2*s-2*(0,a.mZU)(l))/(1.1*e),s],b[r.me]=r.$I,b[r.YP]=r.$w}else if(v){var I=.8*x,j=.8*g;"portrait"==t?(I*=f,j*=f,[g,x,_,y]=[j,I,E(d/(1.2*I)),0],b[r.me]=r.AL,b[r.YP]=r.rE):([g,x,_,y]=[j,I,(d-2*s)/(1.1*I),s],b[r.me]=r.AL,b[r.YP]=r.$w)}else{I=x,j=g;"portrait"==t?(I=I*f*.9,j=j*f*.9,[g,x,_,y]=[j,I,E(d/(1.15*I)),0],b[r.me]=r.AK,b[r.YP]=r.rE):(I=.7*x,j=.7*g,[g,x,_,y]=[j,I,(d-2*s)/(1.1*I),s],b[r.me]=r.AK,b[r.YP]=r.$w)}return[g,x,_,y,b]}},4522:function(e,t,n){n.d(t,{gW:function(){return s},GF:function(){return l},y4:function(){return u},PB:function(){return p},Z2:function(){return c}});var i=n(9854),o=n(7753),r=n(778);function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(0,o.MO)("whatmoreShopId");(e!=r.K.EVENT_VIEW||(0,i.UAB)(a))&&(e!=r.K.VIDEO_PLAYBACK||(0,i.JP0)(a))&&(e!=r.K.SHOPNOW_ATC_CLICKED&&e!=r.K.PRODUCT_TILE_ATC_CLICKED||(0,i.Tn_)(a))&&(e!=r.K.VIDEO_LIKED||(0,i.sKB)(a))&&(e!=r.K.VIDEO_SHARE_CTA_CLICKED||(0,i.YOU)(a))&&(e!=r.K.PRODUCT_TILE_SHOPNOW_CLICKED&&e!=r.K.SHOPNOW_CLICKED||(0,i.ejq)(a))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[e],{id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link,...e===r.K.VIDEO_PLAYBACK?{watch_time:n.watch_time,video_duration:n.video_duration}:{}})})()}var d=n(733);const s={[r.K.EVENT_VIEW]:"whatmore_video_click_event",[r.K.VIDEO_LIKED]:"whatmore_video_like_event",[r.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[r.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[r.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[r.K.VIDEO_PLAYBACK]:"whatmore_video_watch_event"};function l(e){var t;let{userInteractionType:n,userInteractionMetadata:i,widgetSourceDetails:o,event:r,productList:l,ctaList:c}=e;(0,d.s)({userInteractionType:n,userInteractionMetadata:i,widgetSourceDetails:o,event:r,productList:l,ctaList:c}),n in s&&a(n,null!==(t=null===l||void 0===l?void 0:l[1])&&void 0!==t?t:null===l||void 0===l?void 0:l[0])}function c(e){var t;let{userInteractionType:n,userInteractionMetadata:i,widgetSourceDetails:o,event:r,productList:l,ctaList:c}=e;(0,d.s)({userInteractionType:n,userInteractionMetadata:i,widgetSourceDetails:o,event:r,productList:l,ctaList:c}),n in s&&a(n,null!==(t=null===l||void 0===l?void 0:l[1])&&void 0!==t?t:null===l||void 0===l?void 0:l[0],i)}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:a}=e;(0,d.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:a})}function p(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:a}=e;(0,d.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:a})}},7244:function(){}}]);
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[281],{8181:function(e,t,n){var i=n(7313),o=n(8866),r=n(7753),a=n(6417);const d=i.memo((()=>{if(!(0,r.MO)("isLandingSharedLink"))return(0,a.jsx)(a.Fragment,{});const[e]=(0,o.Z)();return(0,a.jsxs)("div",{className:`shimmer-container ${e}`,children:["portrait"===e?(0,a.jsx)("div",{className:"shimmer-item portrait-full",children:(0,a.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,a.jsx)("div",{className:"shimmer-item landscape-item "+(1===t?"center-item":""),children:(0,a.jsx)("div",{className:"shimmer-effect"})},t))),(0,a.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));t.Z=d},7951:function(e,t,n){n.d(t,{BU:function(){return r},FC:function(){return a}});let i,o=!1;function r(){return i?i.play().then((()=>{o=!0,console.debug("iOS autoplay restrictions bypassed."),i.pause()})).catch((e=>{console.error("Failed to bless videos:",e.message)})):Promise.reject(new Error("Blessing video not initialized."))}function a(){i||(i=document.createElement("video"),i.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",i.muted=!0,i.playsInline=!0,i.style.display="none",document.body.appendChild(i));const e=()=>{o||r()};document.addEventListener("click",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0})}},5380:function(e,t,n){n.d(t,{Z:function(){return w}});var i=n(4959),o=n(7313),r=n(4892),a=n(6805),d=n(7753),s=n(9821);var l=function(e){const[t,n,i,o,r]=(0,s.Z)(),[l]=(0,d.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,d.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.YP]===a.$w?c/100:l/100*1.2;return[t*u,n*u,r]},c=n(9723),u=n(9461),p=n.n(u),h=n(1195),v=n(7108),m=(n(7244),n(123),n(9854)),f=n(6417);var w=function(e){var t;const n=o.useRef(null);var[s,u,w]=l();const g=(0,d.MO)("whatmoreUITheme"),[x]=(0,d.j1)("whatmoreEmbedAppVideoTitle"),[_]=(0,d.j1)("whatmoreEmbedAppPositionPortrait"),[y]=(0,d.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[E]=(0,d.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[b]=(0,d.j1)("whatmoreEmbedAppPositionLandscape"),[j]=(0,d.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[I]=(0,d.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),S=(0,d.MO)("whatmoreShopId");var L=_,C=y,P=E;w[a.YP]===a.$w&&(L=b,C=j,P=I);const[D,O]=(0,o.useState)(["initial",window.pageYOffset]),[T,K]=(0,o.useState)(!1),A=null!==(t=e.isSpotlight)&&void 0!==t&&t,k=w[a.YP]===a.$w?.7*(0,m.zGA)(S):(0,m.zGA)(S),z=A?k:1;s*=z,u*=z;const V=A?(0,m.G0o)(S):L,M=A?(0,m.X8j)(S):(0,m.lVn)(S),[N,F]=(0,o.useState)(!A&&(0,m.eXi)(S));function Y(e,t){O(e),e[1]<=100?K(!1):t!=T&&(K(t),F(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(Y([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)}),[D]),(0,i.O3)({ref:n,handler:()=>{Y(["scrolled-up",D[1]],!0)}});const $=e.event,R=e.inVideoClick,Z=e.closeClick,W=.3*u,U=.6*u,B=.1*u,H=.1*(.5*u),G="round"==g?"10px":"0px",q=(0,m.Z$A)(S);var J=!1,X=0,Q=0;function ee(e){J=e}return(0,f.jsx)("div",{children:N&&!M?(0,f.jsx)(f.Fragment,{}):T&&M?(0,f.jsx)("div",{style:"left"===V?{left:"1px",bottom:A?(0,m.vnu)(S)+"px":P+"px",position:"fixed",zIndex:q}:{right:"5px",bottom:A?(0,m.vnu)(S)+"px":P+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{onClick:()=>{Y(["initial",D[1]],!1)},style:{margin:"1px",width:u+"px",height:s+"px"},className:"left"===V?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,f.jsx)(r.Z,{url:$.thumbnail_image,isPlaying:!1,event:$})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,f.jsx)(h.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:W+"px"},style:{position:"relative",zIndex:1,left:H+"px",bottom:H+"px"},onClick:Z})})}),(0,f.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,f.jsx)(v.Z,{sx:{color:"white",fontSize:2*W+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,X=n,Q=i},onDrag:(e,t)=>{ee(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-X)>5||Math.abs(t.y-Q)>5)?ee(!1):R($)},children:(0,f.jsx)("div",{ref:n,style:"left"===V?{left:A?(0,m.$II)(S)+"px":C+"px",bottom:A?(0,m.vnu)(S)+"px":P+"px",position:"fixed",zIndex:q}:{right:A?(0,m.$II)(S)+"px":C+"px",bottom:A?(0,m.vnu)(S)+"px":P+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:e.isSpotlight&&"60122562760"==S?s+"px":u+"px",height:e.isSpotlight&&"60122562760"==S?u+"px":s+"px"}),className:"left"===V?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==S?16/9:9/16},children:(0,f.jsx)(r.Z,{url:$.thumbnail_image,isMuted:!0,isPlaying:!0,event:$})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)(h.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:W+"px"},onClick:Z,style:{position:"relative",zIndex:1,left:B+"px",bottom:B+"px"}})}),(0,f.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,f.jsx)(c.Z,{sx:{color:(0,m.Ya_)(S),fontSize:U+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,f.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:G,borderBottomRightRadius:G,backgroundImage:x?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,f.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*W+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",x]})})]})})]})})})})}},4284:function(e,t,n){n.r(t);var i=n(7313),o=n(9854),r=n(2860),a=n(7753),d=n(5160),s=n(6967),l=n(5380),c=n(58),u=n(8984),p=n(4669),h=n(513),v=n(9302),m=n(2575),f=n(7300),w=n(6524),g=n(364),x=n(4522),_=n(778),y=n(7643),E=n(7008),b=n(7381),j=n(8181),I=n(6095),S=n(653),L=n(7951),C=n(6417);const P=(0,m.Z)({key:"whatmore-css-ppv"}),D=i.lazy((()=>Promise.all([n.e(819),n.e(210),n.e(577),n.e(745),n.e(926),n.e(824),n.e(348),n.e(647)]).then(n.bind(n,6348))));function O(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,i.useState)(),[m,T]=(0,i.useState)(),{whatmoreIsPreviewMode:K}=(0,i.useContext)(g.I),[A]=(0,a.j1)("isInDesignMode"),[k]=(0,a.j1)("isDemoBrand"),[z]=(0,a.j1)("whatmoreEmbedAppUseVariant"),[V,M]=(0,i.useState)(-2),[N]=(0,a.j1)("whatmoreVariantId"),[F]=(0,a.j1)("whatmoreShopId");var[Y]=(0,a.j1)("whatmoreProductId");const $=(0,a.MO)("isLandingSharedLink"),R=(0,a.MO)("whatmoreShareTemplateId"),Z=(0,a.MO)("whatmoreShareEventId"),W=$&&"template-embed"===(0,w.zv)(R),[U,B]=(0,i.useState)(W);Y=(0,o.iXA)(F)?O(window.location.href):Y;const[H,G]=(0,i.useState)((()=>"true"===z?N:Y));var q=r.Gc+"/v2/brand/"+F+"/product-events";const{whatmoreWidgetSourceDetails:J}=(0,i.useContext)(g.I);(0,i.useEffect)((()=>{(0,b.Oo)("Video shopping powered by Whatmore!"),(0,s.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,E.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{(0,p.ll)(F)}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||m||!(0,u.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||((0,S.j)()?(0,c.b5)(c.UD):(0,L.FC)())}),[t]),(0,i.useEffect)((()=>{if(M(-1),(0,o.ly4)(F)){const e=`${r.Gc}/v2/brand/${F}/product-events/recommendation`,t=(0,o.FSv)(F);fetch(`${e}?client_product_id=${H}&limit=10&recommended=${!t}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then((e=>e.json())).then((e=>{var i;const o=e=>{var t;return null===(t=e.products)||void 0===t?void 0:t.some((e=>"oos"!=(null===e||void 0===e?void 0:e.product_status)))},r=null===e||void 0===e||null===(i=e.events)||void 0===i?void 0:i.filter((e=>o(e)));if((null===r||void 0===r?void 0:r.length)>0){var a,d,s;const i=t?null===e||void 0===e||null===(a=e.all_events)||void 0===a?void 0:a.filter((e=>o(e))):null===e||void 0===e||null===(d=e.related_events)||void 0===d?void 0:d.filter((e=>o(e))).map((e=>({...e,isRelatedEvent:!0})));(null===i||void 0===i?void 0:i.length)>0&&(null===e||void 0===e||null===(s=e.product_info)||void 0===s?void 0:s.length)>0&&"6749782119"!=F?n([...r,...i,{event_type:"recommended_images",product_list:[...e.product_info]}]):n([...r,...i])}else n([])})).catch((e=>T(e.message)))}else fetch(q.toString()+"?client_product_id="+H.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>e.events)).then((e=>(null!=e&&0!=e.length&&(0,o.Htz)(F)&&(0,o.d0x)(e),n(e),e))).then((e=>((0,o.yoE)(F)&&function(e,t){setTimeout((async()=>{const n=e.reduce(((e,t)=>[...e,...t.products]),[]).filter((e=>e.client_product_id==t))[0];if(!n||n.product_link==O(window.location.href))return;const i={product_id:n.product_id,product_link:O(window.location.href)};fetch(r.Gc+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})}),500)}(e,H),e))).catch((e=>{T(e.message)}))}),[H]),(0,i.useEffect)((()=>{var e,n;M(-2),(t&&t.length>0||(0,o.uO6)(F))&&(0,x.PB)({userInteractionType:_.K.PDP_VISITED,widgetSourceDetails:J,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(e=t[0])||void 0===e?void 0:e.products,ctaList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.cta})}),[t]),(0,i.useEffect)((()=>{let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let t=history.replaceState;history.replaceState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("24950997070"==F&&fetch(window.location.origin+window.location.pathname+".json").then((e=>e.json())).then((e=>{var t;return G(null===e||void 0===e||null===(t=e.product)||void 0===t?void 0:t.id)})),"true"===z){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var i=t[n].split("=");if(i[0]==e)return i[1]}return!1}("variant");e&&""!==e&&G(e)}}))}),[]),(0,i.useEffect)((()=>{if(null!=t&&0!==t.length&&!m&&W&&((0,I.A)("whatmore-video-player",(()=>{B(!1)})),null!=Z)){const e=t.find((e=>Z==e.event_id));if(e)return void ee(e,!0,t.indexOf(e))}}),[t]);const X=J.landingLocationType,Q=J.templateType,ee=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,u.KE)()&&!t&&await((0,S.j)()?(0,c.QV)():(0,L.FC)()),(0,f.B6)(e)||(0,f.WJ)(e))return A||k||(async()=>{const t=(0,w.NY)(X)+(0,w.dS)(Q)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,d.wh)(e),(0,p.Tc)(F,r.h7,r.dU),(0,s.H4)(e.event_id,e.products,"product_page","video_popup",t)})(),void M(n)};function te(){return(0,C.jsx)(C.Fragment,{})}return null==t||0==t.length||m?(0,C.jsx)("div",{}):(0,C.jsxs)(v.C,{value:P,children:[U&&(0,C.jsx)(j.Z,{}),"no-product"===H||-1===V||0===t.length?(0,C.jsx)(te,{}):-2===V&&t.length>0?(0,C.jsx)("div",{children:(0,C.jsx)(y.u,{userInteractionType:_.K.PDP_POPUP_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!A&&!k,children:(0,C.jsx)(l.Z,{event:t[0],inVideoClick:ee,closeClick:e=>{var n;e.stopPropagation(),M(-1),(0,x.GF)({userInteractionType:_.K.PDP_POPUP_CLOSED,widgetSourceDetails:J,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.products})}})})}):(0,C.jsx)("div",{children:(0,C.jsx)(i.Suspense,{children:(0,C.jsx)(y.u,{userInteractionType:_.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!A&&!k,children:(0,C.jsx)(D,{events:t,index:V,onBack:function(e){(0,o.n2L)(F)&&(0,a.MO)("whatmoreAddedToCart")&&(0,h.D)(F,(()=>{}),100,window.location.hostname,e),M(-2),B(!1)},template:"template-product-page"})})})})]})}},6095:function(e,t,n){function i(e,t){let n=0;let i=new MutationObserver((function(){document.querySelector("."+e)?(t(),i.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),i.disconnect()}),8e3))}));i.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{A:function(){return i}})},6805:function(e,t,n){n.d(t,{$I:function(){return d},$w:function(){return l},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return i},rE:function(){return s}});const i="device_type",o="device_mode",r="mobile",a="tablet",d="desktop",s="portrait",l="landscape"},9821:function(e,t,n){var i=n(7753),o=n(8866),r=n(6805),a=n(9854);t.Z=function(e){const[t,n,d]=(0,o.Z)(),[s]=(0,i.j1)("whatmoreLandscapePadding"),[l]=(0,i.j1)("whatmoreShopId"),[c]=(0,i.j1)("whatmoreVideoTileSize"),[u]=(0,i.j1)("whatmoreVideoTileSizePortrait"),p=d>=1025,h="portrait"==t?u:c,v=!("portrait"!=t||!(d>=481)),m=h/100*1.3*.5,f=h/100;var w=Math.min(d,n),[g,x,_,y]=[.6*w*(16/9),.6*w,1.4,0];function E(e){return Math.round(10*e)/10}var b={DEVICE_TYPE:r.AK,DEVICE_MODE:r.rE};if(p){const e=x*m,t=g*m;[g,x,_,y]=[t,e,(d-2*s-2*(0,a.mZU)(l))/(1.1*e),s],b[r.me]=r.$I,b[r.YP]=r.$w}else if(v){var j=.8*x,I=.8*g;"portrait"==t?(j*=f,I*=f,[g,x,_,y]=[I,j,E(d/(1.2*j)),0],b[r.me]=r.AL,b[r.YP]=r.rE):([g,x,_,y]=[I,j,(d-2*s)/(1.1*j),s],b[r.me]=r.AL,b[r.YP]=r.$w)}else{j=x,I=g;"portrait"==t?(j=j*f*.9,I=I*f*.9,[g,x,_,y]=[I,j,E(d/(1.15*j)),0],b[r.me]=r.AK,b[r.YP]=r.rE):(j=.7*x,I=.7*g,[g,x,_,y]=[I,j,(d-2*s)/(1.1*j),s],b[r.me]=r.AK,b[r.YP]=r.$w)}return[g,x,_,y,b]}},4522:function(e,t,n){n.d(t,{gW:function(){return s},GF:function(){return l},y4:function(){return u},PB:function(){return p},Z2:function(){return c}});var i=n(9854),o=n(7753),r=n(778);function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(0,o.MO)("whatmoreShopId");(e!=r.K.EVENT_VIEW||(0,i.UAB)(a))&&(e!=r.K.VIDEO_PLAYBACK||(0,i.JP0)(a))&&(e!=r.K.SHOPNOW_ATC_CLICKED&&e!=r.K.PRODUCT_TILE_ATC_CLICKED||(0,i.Tn_)(a))&&(e!=r.K.VIDEO_LIKED||(0,i.sKB)(a))&&(e!=r.K.VIDEO_SHARE_CTA_CLICKED||(0,i.YOU)(a))&&(e!=r.K.PRODUCT_TILE_SHOPNOW_CLICKED&&e!=r.K.SHOPNOW_CLICKED||(0,i.ejq)(a))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[e],{id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link,...e===r.K.VIDEO_PLAYBACK?{watch_time:n.watch_time,video_duration:n.video_duration}:{}})})()}var d=n(733);const s={[r.K.EVENT_VIEW]:"whatmore_video_click_event",[r.K.VIDEO_LIKED]:"whatmore_video_like_event",[r.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[r.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[r.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[r.K.VIDEO_PLAYBACK]:"whatmore_video_watch_event"};function l(e){var t;let{userInteractionType:n,userInteractionMetadata:i,widgetSourceDetails:o,event:r,productList:l,ctaList:c}=e;(0,d.s)({userInteractionType:n,userInteractionMetadata:i,widgetSourceDetails:o,event:r,productList:l,ctaList:c}),n in s&&a(n,null!==(t=null===l||void 0===l?void 0:l[1])&&void 0!==t?t:null===l||void 0===l?void 0:l[0])}function c(e){var t;let{userInteractionType:n,userInteractionMetadata:i,widgetSourceDetails:o,event:r,productList:l,ctaList:c}=e;(0,d.s)({userInteractionType:n,userInteractionMetadata:i,widgetSourceDetails:o,event:r,productList:l,ctaList:c}),n in s&&a(n,null!==(t=null===l||void 0===l?void 0:l[1])&&void 0!==t?t:null===l||void 0===l?void 0:l[0],i)}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:a}=e;(0,d.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:a})}function p(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:a}=e;(0,d.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:a})}},7244:function(){}}]);
|