whatmore-react-assets 1.0.1424 → 1.0.1425
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/static/js/{348.1667d3ab.chunk.js → 348.2f3932eb.chunk.js} +1 -1
- package/static/js/824.be000355.chunk.js +2 -0
- package/static/js/app-main.e481a23d.chunk.js +1 -0
- package/static/js/homepage-carousel-view.bdf39eac.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/824.d0a74da1.chunk.js +0 -2
- package/static/js/app-main.d4733527.chunk.js +0 -1
- package/static/js/homepage-carousel-view.40bb7c8e.chunk.js +0 -1
@@ -1,2 +0,0 @@
|
|
1
|
-
/*! For license information please see 824.d0a74da1.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:null!==i&&void 0!==i?i:"INR";return console.log(p,i,"cc"),"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 jt},rY:function(){return Nt},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 N(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 j(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 N()}`}}).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 j(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 Nt(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 jt(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 j(t,n);return{price:null===(o=r.variants[0])||void 0===o?void 0:o.price,compare_at_price:null===(i=r.variants[0])||void 0===i?void 0:i.compare_at_price,currency_code:r.currency_code}}(t,o);if(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(){}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[180],{3440:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return _}});var o=n(7753),i=n(7313),r=n(9854),l=n(4844);const a=function(t){new PerformanceObserver((e=>{for(const n of e.getEntries()){[`${window.location.origin}/cart/add.js`,`${window.location.origin}/cart/add`].includes(n.name)&&(console.debug("Whatmore :: Fetch request detected to",n.name),(0,r.qcZ)(whatmoreShopId)&&setTimeout((()=>{(0,l.Cj)(t)}),1e3))}})).observe({entryTypes:["resource"]})};var c=n(5416),s=n(364),u=n(6524);var d,f=n(2279),h=n.n(f),g=n(2860),m=n(6417);const p=i.lazy((()=>Promise.all([n.e(561),n.e(219),n.e(428)]).then(n.bind(n,5582)))),v=i.lazy((()=>Promise.all([n.e(302),n.e(13),n.e(240),n.e(423),n.e(561),n.e(751),n.e(219),n.e(281)]).then(n.bind(n,4284)))),w=i.lazy((()=>Promise.all([n.e(302),n.e(13),n.e(240),n.e(423),n.e(561),n.e(751),n.e(219),n.e(312)]).then(n.bind(n,2209)))),S=null!==(d="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==d&&d;let y=h()((t=>{fetch(g.Gc+"/customization/frontend/"+t).then((t=>t.json())).then((e=>{(0,r.TZM)(e,t),(0,o.bU)("brandCustomizationsLoaded",!0)})).catch((t=>{console.error("Whatmore : Error while fetching brandCustomizations : "+t)}))}),100,{leading:!0,trailing:!1});var _=function(){var t;const[e]=(0,o.j1)("whatmoreLandingLocationType"),[d]=(0,o.j1)("whatmoreShopId"),f=(0,o.MO)("isInDesignMode"),[h,g]=(0,o.j1)("brandCustomizationsLoaded"),[_]=(0,o.j1)("whatmoreEmbedAppUseVariant"),{whatmoreEventsBrowsingTemplate:j}=(0,i.useContext)(s.I),[x]=null===(t=performance)||void 0===t?void 0:t.getEntriesByType("navigation");if((0,i.useEffect)((()=>{if(!h){const t=3e5;(0,r.fmD)(t)&&"reload"!=(null===x||void 0===x?void 0:x.type)?g(!0):y(d)}null==localStorage.getItem("_user_wh_lc")&&"72201044272"==d&&n.e(897).then(n.bind(n,3488)).then((t=>{let{getLocationDetails:e}=t;return e()})).then((t=>(localStorage.setItem("_user_wh_lc",JSON.stringify(t)),{}))).catch((t=>{localStorage.setItem("_user_wh_lc",JSON.stringify({latitude:"",longitude:""})),console.error(`Error: ${t}`)}))}),[]),(0,i.useEffect)((()=>{a("true"===_),(0,r.cEH)(d)&&function(t){let e=document.createElement("style");e.innerHTML=t,document.head.appendChild(e)}((0,r.cEH)(d))}),[h]),!h)return(0,m.jsx)(m.Fragment,{});if((0,c.G)()){if((0,u.yK)(j))return(0,m.jsx)(m.Fragment,{});if("index"===e||"collection"===e||e.startsWith("collection")||e.startsWith("page")){if(!(0,u.ru)(j))return S&&console.debug("Whatmore : Shopify, rendering index/collection page carousels : "+j),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(p,{})})});if(function(){var t,e,n,i,l,a,c,s,u,h,g,m;const p=(0,o.MO)("whatmoreCollectionId");return f||(null===(t=window)||void 0===t||null===(e=t.Shopify)||void 0===e||null===(n=e.theme)||void 0===n?void 0:n.role)&&"main"!==(null===(i=window)||void 0===i||null===(l=i.Shopify)||void 0===l||null===(a=l.theme)||void 0===a?void 0:a.role)||(0,r.ZKt)(d)&&(null===(c=window)||void 0===c||null===(s=c.Shopify)||void 0===s||null===(u=s.theme)||void 0===u?void 0:u.role)&&"main"===(null===(h=window)||void 0===h||null===(g=h.Shopify)||void 0===g||null===(m=g.theme)||void 0===m?void 0:m.role)&&((0,r.$i1)(d)||p&&(0,r.x6U)(d).includes(p))}())return S&&console.debug("Whatmore : Shopify, rendering index/collection page spotlight : "+j),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(w,{})})})}var b,I,O,T,E,$,N,P,W,J,F,D;return e.startsWith("product")?(0,u.ru)(j)?(null!==(b=window)&&void 0!==b&&null!==(I=b.Shopify)&&void 0!==I&&null!==(O=I.theme)&&void 0!==O&&O.role&&"main"===(null===(T=window)||void 0===T||null===(E=T.Shopify)||void 0===E||null===($=E.theme)||void 0===$?void 0:$.role)||window.location.href.includes("localhost:"))&&(0,r.Nbw)(d)?(S&&console.debug("Whatmore : Shopify, rendering PDP-page popup : "+j),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(v,{})})})):(null!==(N=window)&&void 0!==N&&null!==(P=N.Shopify)&&void 0!==P&&null!==(W=P.theme)&&void 0!==W&&W.role&&"main"!==(null===(J=window)||void 0===J||null===(F=J.Shopify)||void 0===F||null===(D=F.theme)||void 0===D?void 0:D.role)||f)&&(0,r.v6T)(d)?(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(v,{})})}):(S&&console.debug("Whatmore : Shopify, PDP-page popup disabled."),(0,m.jsx)(m.Fragment,{})):(S&&console.debug("Whatmore : Shopify, rendering PDP-page carousels : "+j),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(p,{})})})):((0,r.qcZ)(d)&&(0,r.Jy1)(d)&&"cart"===e&&(S&&console.debug("Whatmore : initiating whatmore attribution from cart page."),(0,l.Cj)("true"===_)),(0,m.jsx)(m.Fragment,{}))}return"index"===e||"collection"===e?(0,u.ru)(j)?(S&&console.debug("Whatmore : External, rendering index/collection page popup : "+j),(0,m.jsx)(m.Fragment,{})):(S&&console.debug("Whatmore : External, rendering index/collection page carousels : "+j),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(p,{})})})):e.startsWith("product")||"embed"===e?(0,u.yK)(j)||(0,u.ru)(j)?(0,r.Nbw)(d)?(S&&console.debug("Whatmore : External, rendering PDP-page popup : "+j),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(v,{})})})):(S&&console.debug("Whatmore : External, PDP-page popup disabled."),(0,m.jsx)(m.Fragment,{})):(S&&console.debug("Whatmore : External, rendering PDP-page carousels : "+j),(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(i.Suspense,{children:(0,m.jsx)(p,{})})})):(0,m.jsx)(m.Fragment,{})}},5416:function(t,e,n){"use strict";function o(){return!(void 0==window.Shopify&&!window.location.href.includes("shopify")&&!window.location.href.includes("localhost:"))}n.d(e,{G:function(){return o}})},7381:function(t,e,n){"use strict";n.d(e,{EI:function(){return l},Oo:function(){return c},fs:function(){return a}});var o=n(7753);const i=(0,o.MO)("whatmoreShopId");function r(t){console.debug("Whatmore : "+t)}function l(t){var e;const n=null!==(e="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==e&&e;n&&(r("total events received : "+(t&&t.length)),r("events data : "+JSON.stringify(t)))}function a(t){var e;null!==(e="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==e&&e&&r(t)}const c=t=>{"STR60LW4WMA"!=i&&console.log(`%c ${t}`,"background: #D53F8C; color: white; font-size: 19px; padding: 5px; font-weight: semibold;","\n\nFind us here -> https://www.whatmore.ai")}},4844:function(t,e,n){"use strict";n.d(e,{wW:function(){return d},Cj:function(){return u},JL:function(){return h},bj:function(){return f},Bi:function(){return c},Mj:function(){return s},bN:function(){return g},m3:function(){return m}});var o=n(9854);const i="_whatmore-tracking-id";var r=n(2751),l=n(6967),a=n(7753);function c(){const t="https://"+window.location.hostname+"/cart.json";return fetch(t,{method:"GET"})}async function s(){const t="https://"+window.location.hostname+"/cart.json";return await fetch(t,{method:"GET"})}async function u(t){var e;let n=(0,r.x0)(),o=null,c=null,u={},d=null,f=null,h=null,g={},m=(0,l.MU)(),p=null===(e=localStorage)||void 0===e?void 0:e.wht_is_impression,v=m.length>0;m.forEach((t=>{g.hasOwnProperty(null===t||void 0===t?void 0:t.product_id)||(g[null===t||void 0===t?void 0:t.product_id]={widgetInfo:null===t||void 0===t?void 0:t.widget_info,location:null===t||void 0===t?void 0:t.location,userType:null===t||void 0===t?void 0:t.user_type})})),await s().then((t=>t.json())).then((e=>{n=e.token;let r=[];if(r=!0===t?e.items.map((t=>{const e=g[null===t||void 0===t?void 0:t.variant_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}})):e.items.map((t=>{const e=g[null===t||void 0===t?void 0:t.product_id];return{...t,location:null===e||void 0===e?void 0:e.location,userType:null===e||void 0===e?void 0:e.userType,widget_info:null===e||void 0===e?void 0:e.widgetInfo}})),0==r.length)return console.debug("Whatmore :: no cart items available for view products"),null;r.map((e=>{if(o=e.key,c=e.quantity,u=e.properties,d=e.widget_info,f=e.location,h=e.userType,null===u||!(i in u)){const n=async function(t,e,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",c=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,d=arguments.length>8?arguments[8]:void 0;const f=(0,a.MO)("whatmoreShopId"),h=s?(0,l.hb)()+("72201044272"==f?`#${o}#${r}#${c?"olduser":"newuser"}`:`#${o}`):d?"_wt_vs":u?"_wt_vi":"";if(""==h||"9238315068"==f&&("_wt_vs"==h||"_wt_vi"==h))return;let g={id:t,quantity:e,properties:{...h?{[i]:h}:{},...n}};return await fetch("https://"+window.location.hostname+"/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}).then((t=>t.json())).catch((t=>{console.error("Whatmore :: Error while updating cart attribute.",t)}))}(o,c,u,d,f,h,g.hasOwnProperty(JSON.stringify(!0===t?e.variant_id:e.product_id)),p,v);return n}}))})).catch((t=>{console.error("Whatmore :: Error while fetching cart_token for cart attribute update.",t)}))}async function d(t,e,n,r){let a,c,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",u=arguments.length>5?arguments[5]:void 0,d=arguments.length>6?arguments[6]:void 0;if((0,o.qcZ)(n)){const o=(0,l.hb)()+("72201044272"==n?`#${r}#${s}#${u?"olduser":"newuser"}:direct`:`#${r}:direct`);if(a={items:[{id:t,quantity:e,properties:{[i]:o}}]},"77105758517"==n){c=new URLSearchParams,c.append("product-id",null===d||void 0===d?void 0:d.client_product_id),c.append("id",t),c.append("quantity",e);return await fetch("https://"+window.location.hostname+"/cart/add.js",{method:"POST",body:c})}}else a={items:[{id:t,quantity:e}]};const f=await fetch("https://"+window.location.hostname+"/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});return f}function f(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",l=arguments.length>5?arguments[5]:void 0;const a="https://"+window.location.hostname;var c;const s="72201044272"==n?`came-from-whatmore-live_${i}_${r}_${l?"olduser":"newuser"}`:`came-from-whatmore-live_${i}`;(0,o.lj5)(n)?(c=`${a}/cart/${t}:${e}?`+(0,o.awP)(n)+"&"+(0,o.n9s)(n)+"&"+(0,o.Uch)(n),(0,o.qcZ)(n)&&(c=`${c}&ref=`+s)):(c=`${a}/cart/${t}:${e}`,(0,o.qcZ)(n)&&(c=`${c}?ref=`+s)),window.location.href=c}function h(t){const e="https://"+window.location.hostname+"/cart";(0,o.lj5)(t)?window.location.href=e+"?"+(0,o.awP)(t)+"&"+(0,o.n9s)(t)+"&"+(0,o.poG)(t):window.location.href=e}async function g(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("27303477337"===n){var o,i;const n="https://"+window.location.hostname,r=window.location.pathname.split("/");e=n+"/"+(null!==r&&void 0!==r&&null!==(o=r[1])&&void 0!==o&&o.startsWith("en-")?(null===r||void 0===r?void 0:r[1])+"/":"")+(null===t||void 0===t||null===(i=t.product_link)||void 0===i?void 0:i.split(".co")[1])+".js"}else e=(null===t||void 0===t?void 0:t.product_link)+".js";const r=await fetch(e,{method:"GET"});if(!r.ok)throw new Error(`Error! status: ${r.status}`);const l=await r.json();return l}async function m(t){const e=t.product_link+".json",n=await fetch(e,{method:"GET"});if(!n.ok)throw new Error(`Error! status: ${n.status}`);return await n.json()}},6967:function(t,e,n){"use strict";n.d(e,{FF:function(){return y},H4:function(){return _},MU:function(){return j},hb:function(){return w},sQ:function(){return S},xV:function(){return b},xw:function(){return x}});var o=n(2751),i=n(7753),r=n(7008);const l="_whatmore_user_id",a="_whatmore_session_id",c="_whatmore_viewed_products",s="_whatmore_add_to_cart_products",u="_whatmore_session_time",d="_whatmore_store_id",f="_whatmore_qview_index",h="_whatmore_brand_questions",g=(0,i.MO)("whatmoreShopId"),m=18e5,p=2592e5,v="_whatmore_bulk_events";function w(){return localStorage.getItem(d)!=g&&localStorage.setItem(d,g),null==localStorage.getItem(l)&&function(){new Date;const t=(0,o.x0)();localStorage.setItem(l,t)}(),localStorage.getItem(l)}function S(){const t=new Date,e=JSON.parse(localStorage.getItem(v))||[],n=localStorage.getItem(u);return(null==localStorage.getItem(a)||null==n||t.getTime()>n)&&(localStorage.removeItem(a),localStorage.removeItem(u),function(){const t=(0,o.x0)(),e=(new Date).getTime()+m;localStorage.setItem(a,t),localStorage.setItem(u,e)}(),e&&e.length>0&&((0,r.K)(e),localStorage.removeItem(v))),localStorage.getItem(a)}function y(t,e,n,o,i){const r=(new Date).getTime(),l={event_id:t.event_id,product_id:e.client_product_id,product_title:e.title,price:e.price,timestamp:r,widget_info:n,location:o,user_type:i?"olduser":"newuser",variants:[]};if(null===localStorage.getItem(s))localStorage.setItem(s,JSON.stringify([l]));else{let t=JSON.parse(localStorage.getItem(s)).filter((t=>t.timestamp+p>r));localStorage.setItem(s,JSON.stringify([...t,l]))}}function _(t,e,n,o,i){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"default",l=arguments.length>6?arguments[6]:void 0;const a=[],s=(new Date).getTime();if(e.map((e=>{const c={event_id:t,product_id:e.client_product_id,product_title:e.title,price:e.price,timestamp:s,variants:[],page:n,widget_type:o,widget_info:i,location:r,user_type:l?"olduser":"newuser"};a.push(c)})),null===localStorage.getItem(c))console.debug("viewed Products",JSON.stringify(a)),localStorage.setItem(c,JSON.stringify(a));else{let e=JSON.parse(localStorage.getItem(c)),n=!1;e.map((e=>{let o=Object.assign({},e);return e.event_id===t&&(e.timestamp=s,n=!0),o})),n?localStorage.setItem(c,JSON.stringify(e)):localStorage.setItem(c,JSON.stringify([...e,...a]))}}function j(){const t=(new Date).getTime();let e=JSON.parse(localStorage.getItem(c));if(!e)return[];let n=e.filter((e=>e.timestamp+p>t));return localStorage.setItem(c,JSON.stringify(n)),n}function x(){if(null!=localStorage.getItem(f)){const t=parseInt(localStorage.getItem(f))+1;localStorage.setItem(f,t)}}function b(t){const e=(new Date).getTime();if(null==localStorage.getItem(h)){const n={questionList:null===t||void 0===t?void 0:t.filter((t=>1==(null===t||void 0===t?void 0:t.is_active))),timestamp:e};localStorage.setItem(h,JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem(h));if((null===n||void 0===n?void 0:n.timestamp)+6e5>e){const n={questionList:null===t||void 0===t?void 0:t.filter((t=>1==(null===t||void 0===t?void 0:t.is_active))),timestamp:e};localStorage.setItem(h,JSON.stringify(n))}}}},7008:function(t,e,n){"use strict";n.d(e,{K:function(){return r}});var o=n(2860),i=n(7381);const r=function(t){let e={};const n=t.length<10;e.metric_event_list=t,(async()=>{!function(t,e){const n="ingesting analytis-event";(0,i.fs)(n);const r=t;fetch(o.DG+"/event_metrics/bulk",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r),keepalive:e}).then((t=>t.json())).then((t=>{})).catch((t=>{console.error("error "+n,t)}))}(e,n)})()}},8624:function(t,e,n){var o=n(7289).Symbol;t.exports=o},8665:function(t,e,n){var o=n(8624),i=n(3596),r=n(8186),l=o?o.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?i(t):r(t)}},2306:function(t,e,n){var o=n(5510),i=/^\s+/;t.exports=function(t){return t?t.slice(0,o(t)+1).replace(i,""):t}},2692:function(t,e,n){var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=o},3596:function(t,e,n){var o=n(8624),i=Object.prototype,r=i.hasOwnProperty,l=i.toString,a=o?o.toStringTag:void 0;t.exports=function(t){var e=r.call(t,a),n=t[a];try{t[a]=void 0;var o=!0}catch(c){}var i=l.call(t);return o&&(e?t[a]=n:delete t[a]),i}},8186:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},7289:function(t,e,n){var o=n(2692),i="object"==typeof self&&self&&self.Object===Object&&self,r=o||i||Function("return this")();t.exports=r},5510:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},2279:function(t,e,n){var o=n(1845),i=n(6170),r=n(7923),l=Math.max,a=Math.min;t.exports=function(t,e,n){var c,s,u,d,f,h,g=0,m=!1,p=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function w(e){var n=c,o=s;return c=s=void 0,g=e,d=t.apply(o,n)}function S(t){return g=t,f=setTimeout(_,e),m?w(t):d}function y(t){var n=t-h;return void 0===h||n>=e||n<0||p&&t-g>=u}function _(){var t=i();if(y(t))return j(t);f=setTimeout(_,function(t){var n=e-(t-h);return p?a(n,u-(t-g)):n}(t))}function j(t){return f=void 0,v&&c?w(t):(c=s=void 0,d)}function x(){var t=i(),n=y(t);if(c=arguments,s=this,h=t,n){if(void 0===f)return S(h);if(p)return clearTimeout(f),f=setTimeout(_,e),w(h)}return void 0===f&&(f=setTimeout(_,e)),d}return e=r(e)||0,o(n)&&(m=!!n.leading,u=(p="maxWait"in n)?l(r(n.maxWait)||0,e):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==f&&clearTimeout(f),g=0,c=h=s=f=void 0},x.flush=function(){return void 0===f?d:j(i())},x}},1845:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},9752:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},2060:function(t,e,n){var o=n(8665),i=n(9752);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==o(t)}},6170:function(t,e,n){var o=n(7289);t.exports=function(){return o.Date.now()}},7923:function(t,e,n){var o=n(2306),i=n(1845),r=n(2060),l=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(r(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=o(t);var n=a.test(t);return n||c.test(t)?s(t.slice(2),n?2:8):l.test(t)?NaN:+t}},2751:function(t,e,n){"use strict";n.d(e,{x0:function(){return o}});let o=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(t)).reduce(((t,e)=>t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"),"")}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[428],{5582:function(e,t,n){n.r(t),n.d(t,{default:function(){return F}});var a=n(7753),i=n(7313),o=n(2860),r=n(5160),l=n(9854),s=n(6967),c=n(8984),d=n(58),u=n(4669),_=n(513),p=n(364),m=n(7300),h=n(6524),v=n(7643),g=n(778),f=n(8181),y=n(6095),w=n(653),b=n(6417);const S=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(210),n.e(751),n.e(926),n.e(824),n.e(437)]).then(n.bind(n,4095)))),I=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(577),n.e(751),n.e(733),n.e(748)]).then(n.bind(n,5523)))),k=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(423),n.e(751),n.e(926),n.e(731),n.e(615)]).then(n.bind(n,3827)))),x=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(423),n.e(751),n.e(926),n.e(731),n.e(91)]).then(n.bind(n,6071)))),E=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(423),n.e(751),n.e(926),n.e(731),n.e(229)]).then(n.bind(n,1291)))),j=i.lazy((()=>Promise.all([n.e(302),n.e(751),n.e(441)]).then(n.bind(n,3580)))),T=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(210),n.e(577),n.e(154),n.e(751),n.e(926),n.e(824),n.e(348),n.e(950)]).then(n.bind(n,6348)))),C=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(210),n.e(751),n.e(926),n.e(824),n.e(733),n.e(978)]).then(n.bind(n,4048)))),O=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(751),n.e(824),n.e(116)]).then(n.bind(n,9085)))),D=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(210),n.e(751),n.e(926),n.e(892)]).then(n.bind(n,5090)))),L=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(210),n.e(751),n.e(926),n.e(824),n.e(562)]).then(n.bind(n,4784)))),A=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(577),n.e(751),n.e(824),n.e(733),n.e(796)]).then(n.bind(n,4362)))),K=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(210),n.e(577),n.e(154),n.e(751),n.e(926),n.e(824),n.e(348),n.e(876)]).then(n.bind(n,4658)))),R=i.lazy((()=>Promise.all([n.e(302),n.e(819),n.e(13),n.e(240),n.e(423),n.e(751),n.e(926),n.e(105)]).then(n.bind(n,8767))));var N=function(e){const[t]=(0,a.j1)("isInDesignMode"),[n]=(0,a.j1)("isDemoBrand"),[N]=(0,a.j1)("whatmoreTopBottomPadding"),[q]=(0,a.j1)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:P}=(0,i.useContext)(p.I),[W]=(0,a.j1)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:M}=(0,i.useContext)(p.I),G=(0,a.MO)("isLandingSharedLink"),B=(0,a.MO)("whatmoreShareTemplateId"),H=(0,a.MO)("whatmoreShareStoryId"),V=(0,a.MO)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:z,whatmoreUserInfo:F}=(0,i.useContext)(p.I),U=G&&M===(0,h.zv)(B),[Y,J]=(0,i.useState)(U),[$,Z]=(0,i.useState)(-1),[Q,X]=(0,i.useState)(null);let ee=e.events,te=null===e||void 0===e?void 0:e.allEvents,ne=[],ae=[];if("template-banner-a"!==M){let e=0;for(let t=0;t<(null===ee||void 0===ee?void 0:ee.length);t++){var ie,oe;!(0,m.B6)(ee[t])&&!(0,m.WJ)(ee[t])||null!==(ie=null===(oe=ee[t])||void 0===oe?void 0:oe.in_stock)&&void 0!==ie&&!ie||(ne.push({...null===ee||void 0===ee?void 0:ee[t],index:e}),e++)}for(let t=0;t<(null===te||void 0===te?void 0:te.length);t++){var re,le;!(0,m.B6)(null===te||void 0===te?void 0:te[t])&&!(0,m.WJ)(null===te||void 0===te?void 0:te[t])||null!==(re=null===te||void 0===te||null===(le=te[t])||void 0===le?void 0:le.in_stock)&&void 0!==re&&!re||(ae.push({...null===te||void 0===te?void 0:te[t],index:e}),e++)}}let se=[...ne,...ae];var ce=null;P&&!ce&&(ce=function(e){var t=e.reduce(((e,t,n)=>{var a,i=t.storyset_id;return i in e?(e[i].total_events=e[i].total_events+1,e[i].events.push(t)):e[i]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(a=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==a&&a,events:[t]},e}),{}),n=Object.values(t);return n.sort(((e,t)=>e.start_event_index-t.start_event_index)),n}(ne));const de=z.landingLocationType,ue=z.templateType;function _e(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,c.KE)()&&(0,w.j)()&&!a&&(0,d.QV)(),t||n||(async()=>{const t=ce[e].events[0],n=(0,h.NY)(de)+(0,h.dS)(ue)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,r.wh)(t),(0,u.Tc)(W,o.Xh,o.OW),(0,s.H4)(t.event_id,t.products,"homepage","stories",n,null===t||void 0===t?void 0:t.location,null===F||void 0===F?void 0:F.userType)})();var l=0;null!=i&&ce[e].events.map(((e,t)=>{e.event_id==i&&(l=t)})),Z(l),X(e)}async function pe(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,c.KE)()&&(0,w.j)()&&!a&&await(0,d.QV)(),Z(e.index),((0,m.B6)(e)||(0,m.WJ)(e))&&(t||n||(async()=>{const t=(0,h.NY)(de)+(0,h.dS)(ue)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,r.wh)(e),(0,u.Tc)(W,o.Xh,o.pR),(0,s.H4)(e.event_id,e.products,"homepage","carousel",t)})())}function me(e){return(0,b.jsx)(b.Fragment,{})}return(0,i.useEffect)((()=>{if(U)if((0,y.A)("whatmore-video-player",(()=>{J(!1)})),null!=H&&P){const e=ce.find((e=>H==e.id));if(e)return void _e(ce.indexOf(e),!0,V)}else if(null!=V){const e=ne.find((e=>V==e.event_id));if(e)return void pe(e,!0)}}),[]),(0,b.jsxs)(b.Fragment,{children:[Y&&(0,b.jsx)(f.Z,{}),(0,b.jsx)("div",{className:"whatmore-widget-container",style:{height:"100%",marginTop:(P?q:N)+"px",marginBottom:(P?q:N)+"px"},children:"template-b"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(S,{events:ne,onClick:pe,heading:e.heading})})}):"template-a-1"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(I,{events:ne,onClick:pe,heading:e.heading})}):"template-feed-a"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(A,{events:ne,onClick:pe,heading:e.heading})}):"template-collections-a"===M||"template-c"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(k,{events:ne,index:$,setScreen:Z,onClick:pe,heading:e.heading})})}):"template-collections-b"===M||"template-d"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(x,{events:ne,index:$,setScreen:Z,onClick:pe,heading:e.heading})})}):"template-collections-c"===M||"template-e"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(E,{events:ne,index:$,setScreen:Z,onClick:pe,heading:e.heading})})}):"template-collections-d"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(S,{events:ne,index:$,setScreen:Z,onClick:pe,heading:e.heading})})}):"template-collections-e"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(C,{events:ne,index:$,setScreen:Z,onClick:pe,heading:e.heading})})}):"template-collections-stories"===M||"template-stories"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.COLLECTION_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(R,{events:ne,index:$,setScreen:Z,onClick:pe,heading:e.heading})})}):"template-f"===M||"template-collections-f"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(O,{events:ne,onClick:pe,heading:e.heading})})}):"template-g"===M||"template-collections-g"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(D,{events:ne,onClick:pe,heading:e.heading})})}):"template-h"===M||"template-collections-h"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(L,{events:ne,onClick:pe,heading:e.heading})})}):"template-banner-a"===M?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.BANNER_WIDGET_VIEW,event:ee[0],triggerFlag:!t&&!n,children:(0,b.jsx)(K,{events:ee})})}):P?(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.STORIES_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(j,{eventsStories:ce,onClick:_e,template:M})})}):(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!t&&!n,children:(0,b.jsx)(C,{events:ne,onClick:pe,heading:e.heading})})})}),-1==$||-2==$?(0,b.jsx)(me,{}):(0,b.jsx)(i.Suspense,{children:(0,b.jsx)(v.u,{userInteractionType:g.K.EVENT_VIEW,event:ee[$],productList:ee[$].products,cta:ee[$].cta,triggerFlag:!t&&!n,children:(0,b.jsx)(T,{events:se,index:$,onBack:function(e){(0,l.n2L)(W)&&(0,a.MO)("whatmoreAddedToCart")&&(0,_.D)(W,(()=>{}),100,window.location.hostname,e),Z(-1),J(!1)},slideDirection:P||"horizontal"===(0,l.e8z)(W)?"horizontal":"vertical",eventsStories:ce,initialStoryIndex:Q,template:M})})})]})};const q=function(e,t,n){const i=(0,a.MO)("whatmoreShopId");var o=t.reduce(((e,t,n)=>(t.products.map((e=>e.client_product_id)).forEach((t=>{t in e||(e[t]=!0)})),e)),{}),r=Object.keys(o);if("60960964855"==i&&"undefined"!=typeof fera&&"function"===typeof fera.getRatings){var l={};fera.getRatings(r,(e=>{new Promise(((t,n)=>{e.forEach((e=>{l[e.external_product_id]={avgRating:e.average,totalRatings:e.count}})),t(l)})).then((e=>n(e)))}))}if("23114481744"==i){const e="1e6MQXxzYR19mpw9Km6Dcm86";l={};fetch("https://api.juniphq.com/v1/products?filter[remote_ids]="+r.toString(),{headers:{"Junip-Store-Key":e}}).then((e=>e.json())).then((e=>(e.products.forEach((e=>{l[e.remote_id]={avgRating:parseFloat(e.rating_average).toFixed(1),totalRatings:e.rating_count}})),l))).then((e=>n(e))).catch((e=>console.error(e)))}};var P=n(3388),W=n(7381),M=n(4522),G=n(7008),B=n(32);const H=[{event_id:2333,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:204,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/sadabahaar-chanderi-suit-set",client_product_id:"6780183806018",price:"2800.00",currency:"INR",title:"Sadabahaar Chanderi Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/products/5_72f81f91-e027-4497-9dfe-20480b862c54.jpg?v=1684509430",compare_price:"6999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b9c6f02e-6d5e-4250-97f8-71551c18c4e8.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:1,event_state:"ready",poster_image:null,total_views:37,total_like:1,total_share:0,total_whatsapp:0},{event_id:2335,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:2108,brand:"whatmore-dev",product_link:"https://www.ordinaree.com/products/grease-black-designer-blackless-long-dress-for-women-online",client_product_id:"7210211311652",price:"5040.00",currency:"INR",title:"Grease Backless Long Dress",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0106/4897/7444/products/DSC_0377_45ee56eb-1240-4a17-9332-841809f132cf.jpg?v=1673001396",compare_price:"5600.00",product_metadata:null,product_status:"active"},{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/e433898b-a5ec-4af6-b74f-2153ad609ffb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:4,event_state:"ready",poster_image:null,total_views:31,total_like:0,total_share:0,total_whatsapp:0},{event_id:2336,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:632,brand:"whatmore-dev",product_link:"https://www.meerasplussizestore.com/products/basil-brick-ajrakh-handblock-printed-kurta",client_product_id:"6864880173194",price:"876.00",currency:"INR",title:"Basil & Brick Ajrakh Handblock Printed Kurta",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0363/0075/0986/products/Dark-Green-Maroon-Pati-Ajrakh-Kurti-SCL_6948.jpg?v=1653729466",compare_price:"2190.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/5ddea9a1-4839-4db8-aa1c-843c14dd1cbb.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:5,event_state:"ready",poster_image:null,total_views:21,total_like:0,total_share:0,total_whatsapp:0},{event_id:2338,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1728,brand:"whatmore-dev",product_link:"https://suta.in/products/ratri-kamal",client_product_id:"6916488003649",price:"4200.00",currency:"INR",title:"Ratri kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/ratri-kamal-293774.jpg?v=1668084259",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1732,brand:"whatmore-dev",product_link:"https://suta.in/products/kedar-ki-dor-blouse",client_product_id:"6625859502145",price:"4200.00",currency:"INR",title:"Kedar Ki Dor",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/files/DSC01009.jpg?v=1712326816",compare_price:null,product_metadata:null,product_status:"active"},{product_id:1736,brand:"whatmore-dev",product_link:"https://suta.in/products/swarna-kamal",client_product_id:"6916483317825",price:"4200.00",currency:"INR",title:"Swarna Kamal",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0026/6544/7536/products/swarna-kamal-472043.jpg?v=1668093054",compare_price:null,product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2022-12-27",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_496a26de-50cd-4823-8731-a97e0757efcf.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_496a26de-50cd-4823-8731-a97e0757efcf.mp4?v=1677477938",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:6,event_state:"ready",poster_image:null,total_views:28,total_like:0,total_share:0,total_whatsapp:0},{event_id:3255,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:3636,brand:"whatmore-dev",product_link:"https://buysohi.com/products/sohear8383",client_product_id:"7679599771864",price:"543.00",currency:"INR",title:"Gold Plated Pearl Stud",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0626/0218/2872/products/SS22_SOHEAR8383_1.jpg?v=1651755514",compare_price:"1699.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-01-24",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_b0045891-f042-47d4-a87a-187c96a1857e.mp4",discount_coupon_image:"",event_hls_url:"https://d3syezql093hs1.cloudfront.net/whatmoredev/b0045891-f042-47d4-a87a-187c96a1857e.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:7,event_state:"ready",poster_image:null,total_views:36,total_like:1,total_share:3,total_whatsapp:0},{event_id:3877,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:1955,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/black-anarkali-and-pant-with-dupatta",client_product_id:"7600010723466",price:"4125.00",currency:"INR",title:"BLACK ANARKALI AND PANT WITH DUPATTA",description:"BLACK ANARKALI AND PANT WITH DUPATTA",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/salwarsuitonlineindia-07285.jpg?v=1669434027&width=823",compare_price:"5200.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-03",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_CoH_liSAYOj.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_CoH_liSAYOj_b1999a62-134d-4301-9808-5d09e64a8979.mp4?v=1677477812",presenter_email:null,presenter_phone:null,room_id:null,event_type:"video",is_active:!0,rank:20,event_state:"ready",poster_image:null,total_views:16,total_like:0,total_share:0,total_whatsapp:0},{event_id:4188,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:4459,brand:"whatmore-dev",product_link:"https://theethnic.co/products/black-ruching-jacket-kurta-set",client_product_id:"8011323769076",price:"7499.00",currency:"INR",title:"Black Ruching Jacket Kurta Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0650/7937/8164/products/1_5102cd2e-a419-4682-abf1-d9619e6e96d7.jpg?v=1674275880",compare_price:"9999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2023-02-07",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_c398aa0e-f0ac-4aba-91f5-4b1bcc5b1d51.mp4",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_7acda7d8-9762-47c7-9ee2-35e14db4c3fb.mp4?v=1677477803",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:23,event_state:"ready",poster_image:null,total_views:8,total_like:0,total_share:1,total_whatsapp:0},{event_id:28701,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:364,cta_link:"https://lovechild.in/collections/fragrances",client_cta_id:"https://lovechild.in/collections/fragrances",cta_title:"Explore",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-10",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",discount_coupon_image:"",event_hls_url:"https://d1zl4k1t5o4s75.cloudfront.net/whatmoredev/1080p_20c05e5e-43cd-45cd-b1a4-5c942fb732d1.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:57,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:28767,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-01-11",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973716",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_4820fd98-246f-46b7-8af6-be1e949ff0e2.mp4?v=1704973708",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:58,event_state:"ready",poster_image:null,total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:48,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:24,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/evil-eye-adjustable-ring-gold",client_product_id:"6923301748874",price:"1250.00",currency:"INR",title:"Evil Eye adjustable ring - Gold",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/WhatsAppImage2020-09-21at11.38.01AM_1_700x_c51dd690-b6d8-4059-b3e0-13a2edf3feea.jpg?v=1656673474",compare_price:"1300",product_metadata:null,product_status:"active"},{product_id:23,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/rose-water-200ml",client_product_id:"6923319771274",price:"250.00",currency:"INR",title:"ROSE WATER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/RoseWaterFront-01_250x_2x_c4cd34f3-625d-463a-bf36-3b159322b7ed.png?v=1656673764",compare_price:null,product_metadata:null,product_status:"active"},{product_id:21,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923307647114",price:"1300.00",currency:"INR",title:"HONEY & LEMON FACE CLEANSER 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/C5D_9156-01_250x_2x_2f91ab64-e5a4-42f1-baf3-5f3ecffb2b50_1.png?v=1656673584",compare_price:"1340",product_metadata:null,product_status:"active"},{product_id:22,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/honey-lemon-face-cleanser-200ml-1",client_product_id:"6923317051530",price:"350.00",currency:"INR",title:"HONEY AND ROSE BODY CREAM 200ML",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/products/2_250x_2x_47ffd4b3-4100-4afb-b4c8-a09867e40ddb.png?v=1656673726",compare_price:null,product_metadata:null,product_status:"active"}],cta:[{cta_id:73,cta_link:"https://honeyandspice.in/collections/central-indian",client_cta_id:"https://honeyandspice.in/collections/central-indian",cta_title:"Shop Now",thumbnail_image:"",cta_type:""}],title:"BTS of HoneyAndSpice",description:"",brand:"whatmore-dev",scheduled_date:"2023-08-10",status:"upcoming",start_time:"19:00",end_time:"20:00",actual_start_time:null,actual_end_time:null,presenter_name:"Honey and Spice",thumbnail_image:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-01942fec-68a5-4417-aa28-a0bff121a3ec.mp4",discount_coupon_image:"",event_hls_url:"https://d28nus7q7qajdn.cloudfront.net/videos/whatmore-video-2f0d18e6-a519-4e70-b8b3-529b90a04c28.mp4",presenter_email:null,presenter_phone:"+919888988889",room_id:null,event_type:"video",is_active:!0,rank:59,event_state:"ready",poster_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0},{event_id:33888,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937498",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_2b78b138-b18f-45e3-b8dc-6ce59075872f.mp4?v=1708937490",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:60,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2b78b138-b18f-45e3-b8dc-6ce59075872f.webp?v=1708937505",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33890,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[{product_id:26392,brand:"whatmore-dev",product_link:"https://www.aachho.com/products/shimmering-mustard-sequin-georgette-suit-set",client_product_id:"6981740691522",price:"4199.00",currency:"INR",title:"Shimmering Mustard Sequin Georgette Suit Set",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/2542/7564/files/0H8A1426.jpg?v=1697874844",compare_price:"5999.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:402,cta_link:"https://custom.com",client_cta_id:"https://custom.com",cta_title:"custom",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937809",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.mp4?v=1708937801",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:61,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_08ec5ed2-3aca-4d32-b51e-d3f88123cca8.webp?v=1708937816",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:33947,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-02-26",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947355",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_81844dee-68c7-425e-96bf-d3ac63c664e7.mp4?v=1708947347",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:62,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_81844dee-68c7-425e-96bf-d3ac63c664e7.webp?v=1708947362",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41975,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:482,cta_link:"https://tests.com",client_cta_id:"https://tests.com",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_51411814-cff2-491f-aca3-303e84307049.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:69,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_51411814-cff2-491f-aca3-303e84307049.webp?v=1714033531",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41976,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:481,cta_link:"https://test1231.com",client_cta_id:"https://test1231.com",cta_title:" ",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_c2a47941-cafb-4765-ac6c-d6414679c6bd.mp4?v=1714033514",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:70,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_c2a47941-cafb-4765-ac6c-d6414679c6bd.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0},{event_id:41977,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,products:[],cta:[{cta_id:403,cta_link:"https://test.com",client_cta_id:"https://test.com",cta_title:"test",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-04-25",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033522",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_a0f26d1d-462b-4548-848c-806702cf9c95.mp4?v=1714033513",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:71,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_a0f26d1d-462b-4548-848c-806702cf9c95.webp?v=1714033530",total_views:0,total_like:0,total_share:0,total_whatsapp:0}];var V=function(e){const[t,n]=(0,i.useState)(),[r,u]=(0,i.useState)([]),[_,m]=(0,i.useState)(),{whatmoreIsStoriesTemplate:v}=(0,i.useContext)(p.I),{whatmoreIsCollectionsTemplate:f}=(0,i.useContext)(p.I),{whatmoreIsBannerTemplate:y}=(0,i.useContext)(p.I),[S]=(0,a.j1)("whatmoreShopId"),[I]=(0,a.j1)("whatmoreCollectionId"),k=(0,a.MO)("whatmoreLandingLocationType"),x=(0,a.MO)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:E}=(0,i.useContext)(p.I),{whatmoreUserInfo:j,whatmoreIsPreviewMode:T}=(0,i.useContext)(p.I),C=(0,a.MO)("whatmoreCollectionUrl"),[O]=(0,a.j1)("isInDesignMode"),[D]=(0,a.j1)("isDemoBrand"),L=(0,l.cZT)(S)?(0,l._uv)(S)?C:window.location.href.split(/[?#]/)[0]:I,[A,K]=(0,a.j1)("productRatings"),[R,V]=(0,i.useState)(!1);var z=(0,l.efR)(S)?o.Dm+"/v2/events/":o.Gc+"/v2/events/",F=(0,l.efR)(S)?o.Dm+"/v3/events/":o.Gc+"/v3/events/",U=(0,l.efR)(S)?o.Dm+"/v4/events/":o.Gc+"/v4/events/",Y=(0,l.efR)(S)?o.Dm+"/v5/events/":o.Gc+"/v5/events/",J=(0,l.efR)(S)?o.Dm+"/v6/events/":o.Gc+"/v6/events/",$=(0,l.efR)(S)?o.Dm+"/get_eventset/":o.Gc+"/get_eventset/",Z=(0,l.efR)(S)?o.Dm+"/v2/collection":o.Gc+"/v2/collection",Q=(0,l.efR)(S)?o.Dm+"/v3/collection":o.Gc+"/v3/collection",X=(0,l.efR)(S)?o.Dm+"/v4/collection":o.Gc+"/v4/collection",ee=(0,l.efR)(S)?o.Dm+"/v2/brand/"+S+"/product-events":o.Gc+"/v2/brand/"+S+"/product-events",te=e.shopId,ne="live,upcoming",ae="true";return(0,i.useEffect)((()=>{(0,s.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,G.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{null!=t&&0!=t.length&&!_&&(0,c.KE)()&&!(0,a.MO)("whatmoreVideoPlayerPoolInitiated")&&(0,w.j)()&&(0,d.b5)(d.UD)}),[t]),(0,i.useEffect)((()=>{var e;if(k.startsWith("product"))if((0,l.C86)(S))e=z.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString()+(v?"&template_type=stories":"");else{var t=(0,a.MO)("whatmoreProductId");t=(0,l.iXA)(S)?function(e,t){return"STRQMPNF7QK"==t?encodeURIComponent(e):e.split(/[?#]/)[0]}(window.location.href,S):t,e=ee.toString()+"?client_product_id="+t.toString()+"&status="+ne.toString()+"&event_type=video"}else if(f||"invalid-url"!==C)e=(0,l.YGB)(S)?`${Q.toString()}?store_id=${te.toString()}&client_collection_id=${"index"==k&&(0,l.igW)(S).length>0?(0,l.igW)(S)[0]:L}`:"78232846646"==S?`${X.toString()}?store_id=${te.toString()}&client_collection_id=${"index"==k&&(0,l.igW)(S).length>0?(0,l.igW)(S)[0]:L}`:`${Z.toString()}?store_id=${te.toString()}&client_collection_id=${"index"==k&&(0,l.igW)(S).length>0?(0,l.igW)(S)[0]:L}`;else if(y){const t=h.ls,n=(0,h.H1)(k);e=$.toString()+te.toString()+"?eventset_type="+t+"&source="+n+"&source_id="+S}else{var i,o,r,c;if(("72201044272"==S||"2665447536"==S&&T)&&!v)e=F.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString()+"&latitude="+(null!==(i=null===(o=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===o?void 0:o.latitude)&&void 0!==i?i:"")+"&longitude="+(null!==(r=null===(c=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===c?void 0:c.longitude)&&void 0!==r?r:"")+"&user_type="+(null!==j&&void 0!==j&&j.userType?"olduser":"newuser");else if((0,l.YGB)(S)&&!v)e=U.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString();else if("78232846646"==S&&T){var d,_,p,g;e=J.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString()+"&latitude="+(null!==(d=null===(_=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===_?void 0:_.latitude)&&void 0!==d?d:"")+"&longitude="+(null!==(p=null===(g=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===g?void 0:g.longitude)&&void 0!==p?p:"")+"&user_type="+(null!==j&&void 0!==j&&j.userType?"olduser":"newuser")}else e="78232846646"==S?Y.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString():z.toString()+te.toString()+"?status="+ne.toString()+"&is_active="+ae.toString()+(v?"&template_type=stories":"")}fetch(e).then((e=>e.json())).then((e=>{var t;if(y){const t=h.ls;return(0,P.OC)(e,t)}return(0,l.YGB)(S)&&(null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.length)>0&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,s.xV)(null===e||void 0===e?void 0:e.questions)),(null===e||void 0===e?void 0:e.all_events)&&u(null===e||void 0===e?void 0:e.all_events),(0,P.kW)(e,f||"invalid-url"!==C)})).then((e=>(x&&console.debug("initial received events size : "+e.length),v||f||y?e:(0,P.e8)(e,te)))).then((e=>(null!=e&&0!=e.length&&(0,l.LUY)(S)&&function(e,t,n){const i=setInterval((()=>{null===(0,a.MO)("productRatings")&&q(e,t,n)}),1e3);setTimeout((()=>{clearInterval(i)}),1e4)}(S,e,(e=>{K(e)})),e))).then((e=>{n((D||O)&&null==e?H:e),V(!0)})).catch((e=>{m(e.message),V(!0)}))}),[]),(0,i.useEffect)((()=>{"index"===k?t&&t.length>0&&(0,M.PB)({userInteractionType:g.K.HOMEPAGE_VISITED,widgetSourceDetails:E}):"collection"===k&&(t&&t.length>0||(0,l.miB)(S))&&(0,M.PB)({userInteractionType:g.K.COLLECTION_PAGE_VISITED,widgetSourceDetails:E})}),[t]),R&&(null==t||0==t.length||_)&&B.IR.forEach((e=>{var t,n,a,i;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),r=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]')||e.querySelector('.whatmore-template-type[data-wh="template-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-h"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-stories"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]')||e.querySelector('.whatmore-template-type[data="template-g"]')||e.querySelector('.whatmore-template-type[data="template-h"]'),l=null!==(a=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-d"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-h"]'))&&void 0!==a?a:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]')||e.querySelector('.whatmore-template-type[data="template-collections-d"]')||e.querySelector('.whatmore-template-type[data="template-collections-f"]')||e.querySelector('.whatmore-template-type[data="template-collections-g"]')||e.querySelector('.whatmore-template-type[data="template-collections-h"]'),s=null!==(i=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==i?i:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),c=e;if(v){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!f){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}(s||l||r||o)&&(r&&c||o&&c||s&&c||l&&c)&&(c.style.minHeight="0px")})),null==t||0==t.length||_?(0,b.jsx)("div",{}):(x&&(0,W.EI)(t),function(e){if(null!=e){var t=0;e.forEach((e=>{e.index=t++}))}}(t),x&&console.debug("final transformed events data : "+JSON.stringify(t)),x&&console.debug("valid events size : "+t.length),(0,b.jsx)(N,{heading:e.heading,events:t,allEvents:r}))},z=n(6775);var F=function(e){const[t]=(0,a.j1)("whatmoreShopId"),[n]=(0,a.j1)("whatmoreHeading"),[o,r]=(0,i.useState)(["initial",window.pageYOffset]),[s,c]=(0,i.useState)(!1),d="2665447536"==t?30:10,_=(0,a.MO)("isLandingSharedLink");(0,i.useEffect)((()=>{if((0,u.ll)(t),!(0,l.wc0)(t))return;const e=d;let n=window.pageYOffset,a=!1;const i=()=>{const t=window.pageYOffset;var i,o;Math.abs(t-n)<e?a=!1:(o=!0,r(i=[t>n?"scrolled-down":"scrolled-up",t]),i[1]>d&&c(o),n=t>0?t:0,a=!1)},o=()=>{a||(window.requestAnimationFrame(i),a=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)}),[]);const[p,m,h]=(0,z.Z)({triggerOnce:!0});return(0,b.jsx)("div",{ref:p,style:{display:"block",height:"100%"},children:s||m||_||!(0,l.wc0)(t)||(0,l.dhc)(t)?(0,b.jsx)(V,{heading:n,shopId:t}):(0,b.jsx)("div",{})})}},8181:function(e,t,n){var a=n(7313),i=n(8866),o=n(7753),r=n(6417);const l=a.memo((()=>{if(!(0,o.MO)("isLandingSharedLink"))return(0,r.jsx)(r.Fragment,{});const[e]=(0,i.Z)();return(0,r.jsxs)("div",{className:`shimmer-container ${e}`,children:["portrait"===e?(0,r.jsx)("div",{className:"shimmer-item portrait-full",children:(0,r.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,r.jsx)("div",{className:"shimmer-item landscape-item "+(1===t?"center-item":""),children:(0,r.jsx)("div",{className:"shimmer-effect"})},t))),(0,r.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=l},3388:function(e,t,n){n.d(t,{OC:function(){return l},e8:function(){return o},kT:function(){return a},kW:function(){return r},xg:function(){return i}});const a=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},i=function(e,t){return!(void 0==e.products||0==e.products.length)},o=function(e,t){if(null!=e)return e},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e)return t?e.events[0].events:e.events};const l=function(e,t){var n;if(null==e)return[];if(!("eventsets"in e))return[];const a=null!==(n=e.eventsets[t])&&void 0!==n?n:null;return a?function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach((e=>{e.events.forEach((e=>{t.push(e)}))})),t}(a):[]}},6095:function(e,t,n){function a(e,t){let n=0;let a=new MutationObserver((function(){document.querySelector("."+e)?(t(),a.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),a.disconnect()}),8e3))}));a.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{A:function(){return a}})},4522:function(e,t,n){n.d(t,{gW:function(){return s},GF:function(){return c},y4:function(){return u},PB:function(){return _},Z2:function(){return d}});var a=n(9854),i=n(7753),o=n(778);function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(0,i.MO)("whatmoreShopId");(e!=o.K.EVENT_VIEW||(0,a.UAB)(r))&&(e!=o.K.VIDEO_PLAYBACK||(0,a.JP0)(r))&&(e!=o.K.SHOPNOW_ATC_CLICKED&&e!=o.K.PRODUCT_TILE_ATC_CLICKED||(0,a.Tn_)(r))&&(e!=o.K.VIDEO_LIKED||(0,a.sKB)(r))&&(e!=o.K.VIDEO_SHARE_CTA_CLICKED||(0,a.YOU)(r))&&(e!=o.K.PRODUCT_TILE_SHOPNOW_CLICKED&&e!=o.K.SHOPNOW_CLICKED||(0,a.ejq)(r))&&"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===o.K.VIDEO_PLAYBACK?{watch_time:n.watch_time,video_duration:n.video_duration}:{}})})()}var l=n(733);const s={[o.K.EVENT_VIEW]:"whatmore_video_click_event",[o.K.VIDEO_LIKED]:"whatmore_video_like_event",[o.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[o.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[o.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[o.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[o.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[o.K.VIDEO_PLAYBACK]:"whatmore_video_watch_event"};function c(e){var t;let{userInteractionType:n,userInteractionMetadata:a,widgetSourceDetails:i,event:o,productList:c,ctaList:d}=e;(0,l.s)({userInteractionType:n,userInteractionMetadata:a,widgetSourceDetails:i,event:o,productList:c,ctaList:d}),n in s&&r(n,null!==(t=null===c||void 0===c?void 0:c[1])&&void 0!==t?t:null===c||void 0===c?void 0:c[0])}function d(e){var t;let{userInteractionType:n,userInteractionMetadata:a,widgetSourceDetails:i,event:o,productList:c,ctaList:d}=e;(0,l.s)({userInteractionType:n,userInteractionMetadata:a,widgetSourceDetails:i,event:o,productList:c,ctaList:d}),n in s&&r(n,null!==(t=null===c||void 0===c?void 0:c[1])&&void 0!==t?t:null===c||void 0===c?void 0:c[0],a)}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:o,ctaList:r}=e;(0,l.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:o,ctaList:r})}function _(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:o,ctaList:r}=e;(0,l.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:a,event:i,productList:o,ctaList:r})}}}]);
|