whatmore-react-assets 1.0.1743 → 1.0.1744
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/{142.8e69055d.chunk.js → 142.9d2701bb.chunk.js} +1 -1
- package/static/js/262.e9c2b756.chunk.js +1 -0
- package/static/js/59.d4ff8aa0.chunk.js +2 -0
- package/static/js/620.8b81307a.chunk.js +1 -0
- package/static/js/atc-with-form.3041ebf5.chunk.js +1 -0
- package/static/js/banner-template-a.acb4bb04.chunk.js +1 -0
- package/static/js/carousel-template-f.115649e8.chunk.js +1 -0
- package/static/js/{carousel-template-feed.cbddf03c.chunk.js → carousel-template-feed.bf6284ee.chunk.js} +1 -1
- package/static/js/event-click.3ca45660.chunk.js +2 -0
- package/static/js/location-details.74afe936.chunk.js +1 -0
- package/static/js/{product-page-view.0183a2c3.chunk.js → product-page-view.a8f57571.chunk.js} +1 -1
- package/static/js/spotlight-view.36245070.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/262.bffe51f1.chunk.js +0 -1
- package/static/js/59.564b512e.chunk.js +0 -2
- package/static/js/620.4e1ef693.chunk.js +0 -1
- package/static/js/atc-with-form.70a0ef8e.chunk.js +0 -1
- package/static/js/banner-template-a.7ee459a4.chunk.js +0 -1
- package/static/js/carousel-template-f.1d1db16a.chunk.js +0 -1
- package/static/js/event-click.f21ca965.chunk.js +0 -2
- package/static/js/location-details.bd3f495b.chunk.js +0 -1
- package/static/js/spotlight-view.88409353.chunk.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,933,939],{3262:function(t,e,n){n.d(e,{initiateCartSliderEvent:function(){return r}});var i=n(5830),o=n(1745);const r=async function(t,e,n,r,a="",l="",s="",d="",c="",u=""){(0,i.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,n);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(l&&t.setAttribute("data-product-id",l),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,n=e.quantity,i=e.properties;(0,o.CP)(t,n,i,s,d,c,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&l&&e.setAttribute("data-product-id",l)}),void setTimeout(e,n));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("70840582336"===t){const t=a,i=1,o=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(o){let r=o.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",o.appendChild(r)),r.disabled=!1,r.value=t;const a=o.querySelector('input[name="quantity"]');a&&(a.value=i);const l=o.querySelector('button[data-add-to-cart], button[type="submit"]');return l?(l.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),l.click(),l.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{y(t)},500),void setTimeout(e,n)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:i}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{y(t)},500),setTimeout(e,n)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,n)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,n);const i=t.querySelector('input[name="id"]');if(!i)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,n);i.value=a;const o=t.querySelector('button[type="submit"]');if(!o)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,n);o.click(),setTimeout(()=>{y(a)},500),setTimeout(e,n)}catch(x){console.error("[ATC 64683278550] error:",x),setTimeout(e,n)}return}const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},m=(e,n,i)=>{const o=e.cloneNode(!0);if(o){o.hasAttribute("data-product-variant-id")&&o.setAttribute("data-product-variant-id",n),o.hasAttribute("data-product-id")&&o.setAttribute("data-product-id",i);let e=o.querySelector('input[name="id"]');if(e)e.setAttribute("value",n),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=o.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",n)}}const r=o.querySelector('input[name="product-id"]');r&&r.setAttribute("value",i);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(o),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,n)=>{var i;const o=null!==(i=t.matches)&&void 0!==i&&i.call(t,"form")?t:t.querySelector("form");if(!o)return;let r=o.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",o.prepend(r)),r.value=String(e),r.removeAttribute("disabled");const a=o.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const l=o.querySelector('input[name="product-id"]');l&&(l.value=String(n))})(a,n,i),a}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),i=n.key,r=n.quantity,a=n.properties;(0,o.CP)(i,r,a,s,d,c,!0,!0,!0)})},v=h(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const t=m(v,a,l);f(t),setTimeout(()=>{y(a)},500),t.remove()}else{var g;fetch(null===u||void 0===u||null===(g=u.split("?"))||void 0===g?void 0:g[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=h(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=m(n,a,l);f(t),setTimeout(()=>{y(a)},500),t.remove()}})}setTimeout(e,n)}},3852:function(t,e,n){n.d(e,{A:function(){return x}});var i=n(3247),o=n(1422),r=n(3731),a=n(211),l=n(9950),s=n(932),d=n(5242),c=n(8781),u=n(8283);const p=u.i7`
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,933,939],{3262:function(t,e,n){n.r(e),n.d(e,{initiateCartSliderEvent:function(){return r}});var i=n(5830),o=n(1745);const r=async function(t,e,n,r,a="",l="",s="",d="",c="",u=""){(0,i.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,n);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(l&&t.setAttribute("data-product-id",l),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,n=e.quantity,i=e.properties;(0,o.CP)(t,n,i,s,d,c,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&l&&e.setAttribute("data-product-id",l)}),void setTimeout(e,n));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("70840582336"===t){const t=a,i=1,o=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(o){let r=o.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",o.appendChild(r)),r.disabled=!1,r.value=t;const a=o.querySelector('input[name="quantity"]');a&&(a.value=i);const l=o.querySelector('button[data-add-to-cart], button[type="submit"]');return l?(l.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),l.click(),l.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{y(t)},500),void setTimeout(e,n)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:i}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{y(t)},500),setTimeout(e,n)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,n)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,n);const i=t.querySelector('input[name="id"]');if(!i)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,n);i.value=a;const o=t.querySelector('button[type="submit"]');if(!o)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,n);o.click(),setTimeout(()=>{y(a)},500),setTimeout(e,n)}catch(x){console.error("[ATC 64683278550] error:",x),setTimeout(e,n)}return}const h=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},m=(e,n,i)=>{const o=e.cloneNode(!0);if(o){o.hasAttribute("data-product-variant-id")&&o.setAttribute("data-product-variant-id",n),o.hasAttribute("data-product-id")&&o.setAttribute("data-product-id",i);let e=o.querySelector('input[name="id"]');if(e)e.setAttribute("value",n),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=o.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",n)}}const r=o.querySelector('input[name="product-id"]');r&&r.setAttribute("value",i);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(o),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,n)=>{var i;const o=null!==(i=t.matches)&&void 0!==i&&i.call(t,"form")?t:t.querySelector("form");if(!o)return;let r=o.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",o.prepend(r)),r.value=String(e),r.removeAttribute("disabled");const a=o.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const l=o.querySelector('input[name="product-id"]');l&&(l.value=String(n))})(a,n,i),a}},f=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),i=n.key,r=n.quantity,a=n.properties;(0,o.CP)(i,r,a,s,d,c,!0,!0,!0)})},v=h(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const t=m(v,a,l);f(t),setTimeout(()=>{y(a)},500),t.remove()}else{var g;fetch(null===u||void 0===u||null===(g=u.split("?"))||void 0===g?void 0:g[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=h(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=m(n,a,l);f(t),setTimeout(()=>{y(a)},500),t.remove()}})}setTimeout(e,n)}},3852:function(t,e,n){n.d(e,{A:function(){return x}});var i=n(3247),o=n(1422),r=n(3731),a=n(211),l=n(9950),s=n(932),d=n(5242),c=n(8781),u=n(8283);const p=u.i7`
|
|
2
2
|
0% {
|
|
3
3
|
transform: scale(1);
|
|
4
4
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see event-click.3ca45660.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,534,592,906,939],{2173:function(t,e,n){const r=n(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},t.exports.currencySymbolMap=r},2835:function(t,e,n){"use strict";var r=n(7891),o=n(8454),i=n(3781),u=n(5830),c=n(4414);e.A=function(t){var e;const n=(0,u.Xd)("whatmoreUITheme"),[a]=(0,u.QN)("whatmoreSecondaryColor"),[s,l]=(0,u.QN)("productRatings"),d=(0,u.Xd)("whatmorePrimaryFont"),f=t.productId,p=t.fontSize,m=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===s||"undefined"==typeof s||!(f in s)||s[f].avgRating>5)return(0,c.jsx)(c.Fragment,{});const v=s[f].avgRating,y=s[f].totalRatings;return(0,c.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,c.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(v))].map((t,e)=>(0,c.jsx)(r.A,{sx:{color:a,fontSize:p+"px"}},"star-icon"+e)),v-Math.floor(v)>.2?(0,c.jsx)(o.A,{sx:{color:a,fontSize:p+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(i.A,{sx:{color:a,fontSize:p+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map((t,e)=>(0,c.jsx)(i.A,{sx:{color:a,fontSize:p+"px"}},"star-outline-icon-"+e)),(0,c.jsx)("div",{children:(0,c.jsx)("div",{width:"2px"})}),(0,c.jsx)("div",{children:(0,c.jsx)("div",{style:{backgroundColor:a,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",v,"\xa0"]})})}),(0,c.jsx)("div",{children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",m,"important"),t.style.setProperty("font-size",.8*p+"px","important"),t.style.setProperty("font-family",d,"important"),t.style.setProperty("-webkit-line-clamp",2,"important"),t.style.setProperty("line-clamp",2,"important"),t.style.setProperty("-webkit-box-orient","vertical","important"),t.style.setProperty("display","-webkit-box","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+y+")"]})})]})})}},3161:function(t,e,n){"use strict";function r(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}n.d(e,{$:function(){return r}})},3262:function(t,e,n){"use strict";n.r(e),n.d(e,{initiateCartSliderEvent:function(){return i}});var r=n(5830),o=n(1745);const i=async function(t,e,n,i,u="",c="",a="",s="",l="",d=""){(0,r.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(u)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,n);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(c&&t.setAttribute("data-product-id",c),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(u));if(e){const t=e.key,n=e.quantity,r=e.properties;(0,o.CP)(t,n,r,a,s,l,!0,!0,!0)}})},500),void setTimeout(e,n)):(fetch(null===d||void 0===d||null===(f=d.split("?"))||void 0===f?void 0:f[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&c&&e.setAttribute("data-product-id",c)}),void setTimeout(e,n));var f}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{y(u)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:u,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{y(u)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,n);if("70840582336"===t){const t=u,r=1,o=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(o){let i=o.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",o.appendChild(i)),i.disabled=!1,i.value=t;const u=o.querySelector('input[name="quantity"]');u&&(u.value=r);const c=o.querySelector('button[data-add-to-cart], button[type="submit"]');return c?(c.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),c.click(),c.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{y(t)},500),void setTimeout(e,n)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:r}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{y(t)},500),setTimeout(e,n)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,n)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,n);const r=t.querySelector('input[name="id"]');if(!r)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,n);r.value=u;const o=t.querySelector('button[type="submit"]');if(!o)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,n);o.click(),setTimeout(()=>{y(u)},500),setTimeout(e,n)}catch(b){console.error("[ATC 64683278550] error:",b),setTimeout(e,n)}return}const p=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let n=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return n||(n=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),n},m=(e,n,r)=>{const o=e.cloneNode(!0);if(o){o.hasAttribute("data-product-variant-id")&&o.setAttribute("data-product-variant-id",n),o.hasAttribute("data-product-id")&&o.setAttribute("data-product-id",r);let e=o.querySelector('input[name="id"]');if(e)e.setAttribute("value",n),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=o.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",n)}}const i=o.querySelector('input[name="product-id"]');i&&i.setAttribute("value",r);const u=document.createElement("div");return u.className="whatmore-atc",u.appendChild(o),document.body.appendChild(u),console.log(u,"formElement"),"92319318403"===t&&((t,e,n)=>{var r;const o=null!==(r=t.matches)&&void 0!==r&&r.call(t,"form")?t:t.querySelector("form");if(!o)return;let i=o.querySelector('input[name="id"]');i||(i=document.createElement("input"),i.type="hidden",i.name="id",o.prepend(i)),i.value=String(e),i.removeAttribute("disabled");const u=o.querySelector('select[name="id"]');u&&([...u.options].some(t=>t.value===String(e))?(u.value=String(e),[...u.options].forEach(t=>t.selected=t.value===String(e)),u.dispatchEvent(new Event("change",{bubbles:!0}))):u.removeAttribute("name"));const c=o.querySelector('input[name="product-id"]');c&&(c.value=String(n))})(u,n,r),u}},v=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},y=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const n=e.items.find(e=>e.id==t),r=n.key,i=n.quantity,u=n.properties;(0,o.CP)(r,i,u,a,s,l,!0,!0,!0)})},h=p(document);if(h||(null===h||void 0===h?void 0:h.length)>0){const t=m(h,u,c);v(t),setTimeout(()=>{y(u)},500),t.remove()}else{var S;fetch(null===d||void 0===d||null===(S=d.split("?"))||void 0===S?void 0:S[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),n=p(e);if(n||(null===n||void 0===n?void 0:n.length)>0){const t=m(n,u,c);v(t),setTimeout(()=>{y(u)},500),t.remove()}})}setTimeout(e,n)}},3781:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarOutline")},6474:function(t,e,n){"use strict";n.r(e),n.d(e,{capitalize:function(){return o.A},createChainedFunction:function(){return i},createSvgIcon:function(){return u.A},debounce:function(){return c},deprecatedPropType:function(){return a},isMuiElement:function(){return d},ownerDocument:function(){return p},ownerWindow:function(){return m},requirePropFactory:function(){return v},setRef:function(){return h},unstable_ClassNameGenerator:function(){return k},unstable_useEnhancedEffect:function(){return b},unstable_useId:function(){return C},unsupportedProp:function(){return A},useControlled:function(){return g},useEventCallback:function(){return P},useForkRef:function(){return R},useIsFocusVisible:function(){return F}});var r=n(4501),o=n(1676);var i=function(...t){return t.reduce((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)},()=>{})},u=n(3059);var c=function(t,e=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{t.apply(this,r)},e)}return r.clear=()=>{clearTimeout(n)},r};var a=function(t,e){return()=>null},s=n(9950),l=n.t(s,2);var d=function(t,e){var n,r;return s.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)};function f(t){return t&&t.ownerDocument||document}var p=f;var m=function(t){return f(t).defaultView||window};var v=function(t,e){return()=>null};function y(t,e){"function"===typeof t?t(e):t&&(t.current=e)}var h=y;var S="undefined"!==typeof window?s.useLayoutEffect:s.useEffect,b=S;let T=0;const w=l["useId".toString()];var C=function(t){if(void 0!==w){const e=w();return null!=t?t:e}return function(t){const[e,n]=s.useState(t),r=t||e;return s.useEffect(()=>{null==e&&(T+=1,n(`mui-${T}`))},[e]),r}(t)};var A=function(t,e,n,r,o){return null};var g=function({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=s.useRef(void 0!==t),[i,u]=s.useState(e);return[o?t:i,s.useCallback(t=>{o||u(t)},[])]};var P=function(t){const e=s.useRef(t);return S(()=>{e.current=t}),s.useRef((...t)=>(0,e.current)(...t)).current};var R=function(...t){return s.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{y(t,e)})},t)};class x{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new x}start(t,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},t)}}let D=!0,M=!1;const E=new x,L={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function N(t){t.metaKey||t.altKey||t.ctrlKey||(D=!0)}function $(){D=!1}function j(){"hidden"===this.visibilityState&&M&&(D=!0)}function B(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return D||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!L[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}var F=function(){const t=s.useCallback(t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",N,!0),e.addEventListener("mousedown",$,!0),e.addEventListener("pointerdown",$,!0),e.addEventListener("touchstart",$,!0),e.addEventListener("visibilitychange",j,!0))},[]),e=s.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!B(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(M=!0,E.start(100,()=>{M=!1}),e.current=!1,!0)},ref:t}};const k={configure:t=>{r.A.configure(t)}}},7458:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});const r=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7891:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},7973:function(t,e,n){"use strict";n.d(e,{B:function(){return u},b:function(){return i}});var r=n(1348),o=n(5830);function i(t,e=""){const n=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,r.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function u(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const n=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==r&&void 0!==r&&r.test(n)?"image":null!==o&&void 0!==o&&o.test(n)?"video":void 0}},8454:function(t,e,n){"use strict";var r=n(4994);e.A=void 0;var o=r(n(9526)),i=n(4414);e.A=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarHalf")},8538:function(t,e,n){"use strict";n.d(e,{v:function(){return o}});var r=n(5830);function o(t,e){const n=(0,r.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==n||"72442478904"==n||"58562281529"==n?t:"66168324332"==n&&"prod-tile"!=e?null===t||void 0===t||null===(o=t.split("- "))||void 0===o?void 0:o[0]:t.replace(/\w\S*/g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()});var o}},8558: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:"$"}},9211:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}n.d(e,{A:function(){return o}});var o=function t(e,n){function o(t,o,i){if("undefined"!==typeof document){"number"===typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var c in i)i[c]&&(u+="; "+c,!0!==i[c]&&(u+="="+i[c].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+u}}return Object.create({set:o,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),u=i.slice(1).join("=");try{var c=decodeURIComponent(i[0]);if(r[c]=e.read(u,c),t===c)break}catch(a){}}return t?r[t]:r}},remove:function(t,e){o(t,"",r({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,r({},this.attributes,e))},withConverter:function(e){return t(r({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({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:"/"})},9526:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6474)},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[259],{3446:function(o,t,e){e.r(t),e.d(t,{getLocationDetails:function(){return i}});const i=()=>new Promise((o,t)=>{"geolocation"in navigator?navigator.geolocation.getCurrentPosition(t=>{const e=t.coords.latitude,i=t.coords.longitude;o({latitude:e,longitude:i})},o=>{t(o.message)}):t("Geolocation is not available in this browser.")})}}]);
|
package/static/js/{product-page-view.0183a2c3.chunk.js → product-page-view.a8f57571.chunk.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,774],{22:function(t,e,o){o.d(e,{$S:function(){return d},_:function(){return n},b4:function(){return r},dl:function(){return i},nN:function(){return s},tn:function(){return c},vF:function(){return a}});const n="device_type",i="device_mode",r="mobile",a="tablet",d="desktop",c="portrait",s="landscape"},69:function(t,e,o){o.d(e,{Ij:function(){return r},bi:function(){return a}});let n,i=!1;function r(){return n?n.play().then(()=>{i=!0,console.debug("iOS autoplay restrictions bypassed."),n.pause()}).catch(t=>{console.error("Failed to bless videos:",t.message)}):Promise.reject(new Error("Blessing video not initialized."))}function a(){n||(n=document.createElement("video"),n.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",n.muted=!0,n.playsInline=!0,n.style.display="none",document.body.appendChild(n));const t=()=>{i||r()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},851:function(t,e,o){o.d(e,{A:function(){return g}});var n=o(1005),i=o(9950),r=o(9879),a=o(22),d=o(5830),c=o(932);var s=function(t){const[e,o,n,i,r]=(0,c.A)(),[s]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[l]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.dl]===a.nN?l/100:s/100*1.2;return[e*u,o*u,r]},l=o(1628),u=o.n(l),p=o(6702),v=(o(9733),o(4365),o(1348)),h=o(4414);var m=({size:t,color:e="rgba(255, 255, 255, 0.9)"})=>(0,h.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,h.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,h.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:e,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var f=({size:t,color:e="rgba(255, 255, 255, 0.95)"})=>(0,h.jsxs)("svg",{width:.7*t,height:.7*t,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,h.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,h.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:e,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,h.jsxs)("defs",{children:[(0,h.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,h.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,h.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(t){var e;const o=i.useRef(null);var[c,l,g]=s();(0,d.Xd)("whatmoreUITheme");const[w]=(0,d.QN)("whatmorePrimaryFont"),[y]=(0,d.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,d.QN)("whatmoreEmbedAppPositionPortrait"),[x]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[_]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,d.QN)("whatmoreEmbedAppPositionLandscape"),[E]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[T]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),j=(0,d.Xd)("whatmoreShopId"),A=(0,d.Xd)("isWhatmorePreviewMode");var C=b,k=x,I=_;g[a.dl]===a.nN&&(C=S,k=E,I=T);const[L,P]=(0,i.useState)(["initial",window.pageYOffset]),[N,O]=(0,i.useState)(!1),D=null!==(e=t.isSpotlight)&&void 0!==e&&e,q=g[a.dl]===a.nN?.8*(0,v.O86)(j):1.2*(0,v.O86)(j),M=D?q:1.2;c*=M,l*=M;const z=D?(0,v.LrK)(j):C,R=D?(0,v._2D)(j):(0,v.GSq)(j),[Q,V]=(0,i.useState)(!D&&(0,v.n8Q)(j)),F=!D&&(0,v.YE3)(j);function B(t,e){P(t),t[1]<=100?O(!1):e!=N&&(O(e),V(!1))}(0,i.useEffect)(()=>{let t=window.pageYOffset,e=!1;const o=()=>{const o=window.pageYOffset;Math.abs(o-t)<100||(B([o>t?"scrolled-down":"scrolled-up",o],!0),t=o>0?o:0),e=!1},n=()=>{e||(window.requestAnimationFrame(o),e=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[L]),(0,n.j)({ref:o,handler:()=>{B(["scrolled-up",L[1]],!0)}});const $=t.event,W=t.inVideoClick,G=t.closeClick,H=.25*l,U=.5*l,K=.6*l,Y="20px",X=(0,v.GvQ)(j);var J=!1,Z=0,tt=0;function et(t){J=t}return(0,h.jsx)("div",{className:"wht-popup",children:Q&&!R?(0,h.jsx)(h.Fragment,{}):N&&R?(0,h.jsx)("div",{style:"left"===z?{left:"16px",bottom:D?(0,v.pUQ)(j)+"px":I+"px",position:"fixed",zIndex:X}:{right:"16px",bottom:D?(0,v.pUQ)(j)+"px":I+"px",position:"fixed",zIndex:X},children:(0,h.jsxs)("div",{onClick:()=>{B(["initial",L[1]],!1)},style:{width:K+"px",height:K*(16/9)+"px",borderRadius:Y,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===z?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",borderRadius:Y,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,h.jsx)(r.A,{url:$.thumbnail_image,isPlaying:!1,event:$})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,h.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,h.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:t=>{t.stopPropagation(),G()},children:(0,h.jsx)(m,{size:.8*H})})}),(0,h.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,h.jsx)(p.A,{sx:{color:"white",fontSize:2*H+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,h.jsx)(u(),{nodeRef:o,cancel:".activate-button,.close-btn",bounds:A?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(t,e)=>{var o,n;o=e.x,n=e.y,Z=o,tt=n},onDrag:(t,e)=>{et(!0)},onStop:(t,e)=>{J&&(Math.abs(e.x-Z)>5||Math.abs(e.y-tt)>5)?et(!1):(F&&G(t),W($))},children:(0,h.jsx)("div",{ref:o,style:"left"===z?{left:D?(0,v.D2A)(j)+"px":k+"px",bottom:D?(0,v.pUQ)(j)+"px":I+"px",position:"fixed",zIndex:X}:{right:D?(0,v.D2A)(j)+"px":k+"px",bottom:D?(0,v.pUQ)(j)+"px":I+"px",position:"fixed",zIndex:X},children:(0,h.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==j?c+"px":l+"px",height:t.isSpotlight&&"60122562760"==j?l+"px":c+"px",borderRadius:Y,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===z?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:Y,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==j?16/9:9/16},children:(0,h.jsx)(r.A,{url:$.thumbnail_image,isMuted:!0,isPlaying:!0,event:$})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,h.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,h.jsx)("div",{className:"close-btn",onClick:G,children:(0,h.jsx)(m,{size:H})})}),(0,h.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,h.jsx)(f,{size:U})}),(0,h.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:Y,borderBottomRightRadius:Y,background:y?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,h.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:w,fontWeight:"600",fontSize:.35*H+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:y})})]})})]})})})})}},932:function(t,e,o){var n=o(5830),i=o(1941),r=o(22),a=o(1348);e.A=function(t){const[e,o,d]=(0,i.A)(),[c]=(0,n.QN)("whatmoreLandscapePadding"),[s]=(0,n.QN)("whatmoreShopId"),[l]=(0,n.QN)("whatmoreVideoTileSize"),[u]=(0,n.QN)("whatmoreVideoTileSizePortrait"),p=d>o,v="portrait"==e?u:l,h=!("portrait"!=e||!(d>=481)),m=v/100*1.3*.5,f=v/100;var g=Math.min(d,o),[w,y,b,x]=[.6*g*(16/9),.6*g,1.4,0];function _(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const t=y*m,e=w*m;[w,y,b,x]=[e,t,(d-2*c-2*(0,a.$du)(s))/(1.1*t),c],S[r._]=r.$S,S[r.dl]=r.nN}else if(h){var E=.8*y,T=.8*w;"portrait"==e?(E*=f,T*=f,[w,y,b,x]=[T,E,_(d/(1.2*E)),0],S[r._]=r.vF,S[r.dl]=r.tn):([w,y,b,x]=[T,E,(d-2*c)/(1.1*E),c],S[r._]=r.vF,S[r.dl]=r.nN)}else{E=y,T=w;"portrait"==e?(E=E*f*.9,T=T*f*.9,[w,y,b,x]=[T,E,_(d/(1.15*E)),0],S[r._]=r.b4,S[r.dl]=r.tn):(E=.7*y,T=.7*w,[w,y,b,x]=[T,E,(d-2*c)/(1.1*E),c],S[r._]=r.b4,S[r.dl]=r.nN)}return[w,y,b,x,S]}},1019:function(t,e,o){o.d(e,{B:function(){return r}});var n=o(1348),i=o(964);function r(t){return`${(0,n.jpW)(t)?i.$$:i.MT}/v2/brand/${t}/product-events/recommendation/cdn`}},1351:function(t,e,o){o.d(e,{PG:function(){return c},kz:function(){return s},UM:function(){return u},yP:function(){return p},DG:function(){return l}});var n=o(1348),i=o(3330),r=o(6157);function a(t,e,o={},n){var i;const a=c[t];if(!a)return;const d=a.isActionEnabled(),s=null===n||void 0===n||null===(i=n.meta_actions)||void 0===i?void 0:i[a.customAction];(d||s)&&"function"==typeof fbq&&(async()=>{const n={id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link,...t===r.O.VIDEO_PLAYBACK&&{watch_time:o.watch_time,video_duration:o.video_duration}};fbq("trackCustom",a.action,n),s&&setTimeout(()=>{null===s||void 0===s||s.forEach(t=>{fbq("trackCustom",t,n)})},500)})()}var d=o(7145);const c={[r.O.EVENT_VIEW]:{isActionEnabled:n.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[r.O.VIDEO_PLAYBACK]:{isActionEnabled:n.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[r.O.VIDEO_LIKED]:{isActionEnabled:n.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[r.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:n.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[r.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[r.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:s}){var l,u,p,v;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:s}),t in c)&&(a(t,null!==(l=null===r||void 0===r?void 0:r[1])&&void 0!==l?l:null===r||void 0===r?void 0:r[0],e,n),(0,i.n)({page_type:o.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(v=r[0])||void 0===v?void 0:v.title}))}function l({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:s}){var l,u,p,v;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:s}),t in c)&&(a(t,null!==(l=null===r||void 0===r?void 0:r[1])&&void 0!==l?l:null===r||void 0===r?void 0:r[0],e,n),(0,i.n)({page_type:o.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:e.video_duration>0?Math.ceil(e.watch_time/e.video_duration*100):"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(v=r[0])||void 0===v?void 0:v.title}))}function u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:a}){var s,l,u;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:a}),t in c)&&(0,i.n)({page_type:o.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:"NA",product_name:null!==(s=null===r||void 0===r||null===(l=r[1])||void 0===l?void 0:l.title)&&void 0!==s?s:null===r||void 0===r||null===(u=r[0])||void 0===u?void 0:u.title})}function p({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r}){(0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r})}},3262:function(t,e,o){o.d(e,{initiateCartSliderEvent:function(){return r}});var n=o(5830),i=o(1745);const r=async function(t,e,o,r,a="",d="",c="",s="",l="",u=""){(0,n.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{f(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(d&&t.setAttribute("data-product-id",d),t.click(),setTimeout(()=>{(0,i.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,o=e.quantity,n=e.properties;(0,i.CP)(t,o,n,c,s,l,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&d&&e.setAttribute("data-product-id",d)}),void setTimeout(e,o));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{f(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{f(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const t=a,n=1,i=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(i){let r=i.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",i.appendChild(r)),r.disabled=!1,r.value=t;const a=i.querySelector('input[name="quantity"]');a&&(a.value=n);const d=i.querySelector('button[data-add-to-cart], button[type="submit"]');return d?(d.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),d.click(),d.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{f(t)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:n}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{f(t)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const n=t.querySelector('input[name="id"]');if(!n)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);n.value=a;const i=t.querySelector('button[type="submit"]');if(!i)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);i.click(),setTimeout(()=>{f(a)},500),setTimeout(e,o)}catch(y){console.error("[ATC 64683278550] error:",y),setTimeout(e,o)}return}const v=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},h=(e,o,n)=>{const i=e.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",o),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",n);let e=i.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=i.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const r=i.querySelector('input[name="product-id"]');r&&r.setAttribute("value",n);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(i),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,o)=>{var n;const i=null!==(n=t.matches)&&void 0!==n&&n.call(t,"form")?t:t.querySelector("form");if(!i)return;let r=i.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",i.prepend(r)),r.value=String(e),r.removeAttribute("disabled");const a=i.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const d=i.querySelector('input[name="product-id"]');d&&(d.value=String(o))})(a,o,n),a}},m=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},f=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),n=o.key,r=o.quantity,a=o.properties;(0,i.CP)(n,r,a,c,s,l,!0,!0,!0)})},g=v(document);if(g||(null===g||void 0===g?void 0:g.length)>0){const t=h(g,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}else{var w;fetch(null===u||void 0===u||null===(w=u.split("?"))||void 0===w?void 0:w[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=v(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=h(o,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}})}setTimeout(e,o)}},3389:function(t,e,o){o.r(e);var n=o(9950),i=o(1348),r=o(964),a=o(5830),d=o(140),c=o(4533),s=o(7802),l=o(851),u=o(1085),p=o(6613),v=o(3330),h=(o(3262),o(572)),m=o(8603),f=o(2039),g=o(4833),w=o(5551),y=o(1351),b=o(6157),x=o(2979),_=o(6641),S=o(8945),E=o(9821),T=o(69),j=o(1019),A=o(4414);const C=(0,m.A)({key:"whatmore-css-ppv"}),k=n.lazy(()=>Promise.all([o.e(304),o.e(946),o.e(607),o.e(187),o.e(987),o.e(411),o.e(688),o.e(592)]).then(o.bind(o,4688))),I=n.lazy(()=>o.e(374).then(o.bind(o,5100)));function L(t){return t.split(/[?#]/)[0]}e.default=function(t){const[e,o]=(0,n.useState)(),[m,P]=(0,n.useState)(),[N]=(0,a.QN)("isInDesignMode"),[O]=(0,a.QN)("isDemoBrand"),[D]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[q,M]=(0,n.useState)(-2),[z]=(0,a.QN)("whatmoreVariantId"),[R]=(0,a.QN)("whatmoreShopId");var[Q]=(0,a.QN)("whatmoreProductId");const V=(0,a.Xd)("isLandingSharedLink"),F=(0,a.Xd)("whatmoreShareTemplateId"),B=(0,a.Xd)("whatmoreShareEventId"),$=V&&"template-embed"===(0,g.Mm)(F),[W,G]=(0,n.useState)($);Q=(0,i.BcY)(R)?function(t){if("STRR72TX6AT"==t){var e;const t=null===(e=window.location.pathname)||void 0===e?void 0:e.split("/");return t[t.length-1]}return"STR6HARJ3QY"==t||"STRI4V3OYCH"==t||"STRGZ9TGDEQ"==t||"STRJ2T2QPKI"==t?L(window.location.href).split("/").pop():L(window.location.href)}(R):Q;const[H,U]=(0,n.useState)(()=>"true"===D?z:Q),[K,Y]=(0,n.useState)(!1);var X=((0,i.jpW)(R)?r.$$:r.MT)+"/v2/brand/"+R+"/product-events";const{whatmoreWidgetSourceDetails:J}=(0,n.useContext)(w.B);(0,n.useEffect)(()=>{(0,v.initializeGA)(R),(0,_.Fk)("Video shopping powered by Whatmore!"),(0,c.wm)()},[]),(0,n.useEffect)(()=>{null==e||0==e.length||m||!(0,p.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,E._)()?(0,u.Pc)(u.F5):(0,T.bi)())},[e]),(0,n.useEffect)(()=>{if(M(-1),(0,i.WH1)(R)){const t=(0,j.B)(R),e=(0,i.buK)(R);fetch(`${t}?client_product_id=${H}&limit=10&recommended=${!e}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then(t=>t.json()).then(t=>{const n=null===t||void 0===t?void 0:t.events;if((null===n||void 0===n?void 0:n.length)>0){var r;const a=e?null===t||void 0===t?void 0:t.all_events:null===t||void 0===t||null===(r=t.related_events)||void 0===r?void 0:r.map(t=>({...t,isRelatedEvent:!0}));let d=[...n,...a];(0,i.xku)(R)||(d=(0,s.Zf)(d)),o(d)}else o([])}).catch(t=>P(t.message))}else fetch(X.toString()+"?client_product_id="+H.toString()+"&status="+"upcoming".toString()+"&event_type=video").then(t=>t.json()).then(t=>t.events).then(t=>(null!=t&&0!=t.length&&(0,i.vfi)(R)&&(0,i.YOR)(t),(0,i.xku)(R)||(t=(0,s.Zf)(t)),o(t),t)).then(t=>((0,i.Uht)(R)&&function(t,e){setTimeout(async()=>{const o=t.reduce((t,e)=>[...t,...e.products],[]).filter(t=>t.client_product_id==e)[0];if(!o||o.product_link==L(window.location.href))return;const n={product_id:o.product_id,product_link:L(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})},500)}(t,H),t)).catch(t=>{P(t.message)})},[H]),(0,n.useEffect)(()=>{var t,o;M(-2),(e&&e.length>0||"Scale"==(0,i.yt9)(R)||"Enterprise"==(0,i.yt9)(R)||"Premium"==(0,i.yt9)(R))&&(0,y.yP)({userInteractionType:b.O.PDP_VISITED,widgetSourceDetails:J,event:null===e||void 0===e?void 0:e[0],productList:null===e||void 0===e||null===(t=e[0])||void 0===t?void 0:t.products,ctaList:null===e||void 0===e||null===(o=e[0])||void 0===o?void 0:o.cta})},[e]),(0,n.useEffect)(()=>{const t=L(window.location.href);"8111554613"===R&&setTimeout(()=>{const t=new Event("change",{bubbles:!0}),e=document.querySelector('[name="id"]')||document.querySelector("[data-variant-picker]")||document.querySelector(".variant-selector");e&&e.dispatchEvent(t)},100);let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let o=history.replaceState;history.replaceState=function(){let t=o.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),t},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))}),window.addEventListener("locationchange",function(){if("24950997070"==R&&window.location.origin+window.location.pathname!=t&&fetch(window.location.origin+window.location.pathname+".json").then(t=>t.json()).then(t=>{var e;return U(null===t||void 0===t||null===(e=t.product)||void 0===e?void 0:e.id)}),"true"===D){const t=function(t){for(var e=window.location.search.substring(1).split("&"),o=0;o<e.length;o++){var n=e[o].split("=");if(n[0]==t)return n[1]}return!1}("variant");t&&""!==t&&U(t)}})},[]),(0,n.useEffect)(()=>{if(null!=e&&0!==e.length&&!m&&$&&((0,S.H)("whatmore-video-player",()=>{G(!1)}),null!=B)){const t=e.find(t=>B==t.event_id);if(t)return void et(t,!0,e.indexOf(t))}},[e]);const Z=J.landingLocationType,tt=J.templateType,et=async(t,e=!1,o=0)=>{if((0,p.MN)()&&!e&&await((0,E._)()?(0,u.bo)():(0,T.bi)()),(0,f.ij)(t)||(0,f.Il)(t))return N||O||(async()=>{const e=(0,g.Wd)(Z)+(0,g.gf)(tt)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,d.lB)(t),(0,v.sendVideoViewEventToGA)(R,r.DK,r.K1),(0,c.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),(0,i.YE3)(R)&&Y(!0),void M(o)};function ot(){return(0,A.jsx)(A.Fragment,{})}return null==e||0==e.length||m||(0,g.Ig)(J.templateType)||!(0,i.fDZ)(R)?(0,A.jsx)("div",{}):(0,A.jsxs)(h.C,{value:C,children:[W&&(0,A.jsx)(I,{}),"no-product"===H||-1===q||0===e.length?(0,A.jsx)(ot,{}):-2===q&&e.length>0?(0,A.jsx)("div",{children:(0,A.jsx)(x.S,{userInteractionType:b.O.PDP_POPUP_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!N&&!O,children:(0,A.jsx)(l.A,{event:e[0],inVideoClick:et,closeClick:t=>{var o;t.stopPropagation(),M(-1),(0,y.kz)({userInteractionType:b.O.PDP_POPUP_CLOSED,widgetSourceDetails:J,event:null===e||void 0===e?void 0:e[0],productList:null===e||void 0===e||null===(o=e[0])||void 0===o?void 0:o.products})}})})}):(0,A.jsx)("div",{children:(0,A.jsx)(n.Suspense,{children:(0,A.jsx)(x.S,{userInteractionType:b.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!N&&!O,children:(0,A.jsx)(k,{events:e,index:q,onBack:function(){M(K?-1:-2),G(!1)},template:"template-product-page"})})})})]})}},6649:function(t,e,o){var n=o(9950);e.A=({triggerOnce:t=!1,root:e=null,rootMargin:o="0px",threshold:i=0}={})=>{const[r,a]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{const n=new IntersectionObserver((e,o)=>{e.forEach(e=>{c(e),e.isIntersecting?(a(!0),t&&o.disconnect()):t||a(!1)})},{root:e,rootMargin:o,threshold:i});return s.current&&n.observe(s.current),()=>{n.disconnect()}},[t,e,o,i]),[s,r,d]}},8945:function(t,e,o){function n(t,e){let o=0;let n=new MutationObserver(function(){document.querySelector("."+t)?(e(),n.disconnect()):0==o&&(o=1,setTimeout(()=>{e(),n.disconnect()},8e3))});n.observe(document.body,{childList:!0,subtree:!0})}o.d(e,{H:function(){return n}})},9733:function(){}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,774],{22:function(t,e,o){o.d(e,{$S:function(){return d},_:function(){return n},b4:function(){return r},dl:function(){return i},nN:function(){return s},tn:function(){return c},vF:function(){return a}});const n="device_type",i="device_mode",r="mobile",a="tablet",d="desktop",c="portrait",s="landscape"},69:function(t,e,o){o.d(e,{Ij:function(){return r},bi:function(){return a}});let n,i=!1;function r(){return n?n.play().then(()=>{i=!0,console.debug("iOS autoplay restrictions bypassed."),n.pause()}).catch(t=>{console.error("Failed to bless videos:",t.message)}):Promise.reject(new Error("Blessing video not initialized."))}function a(){n||(n=document.createElement("video"),n.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",n.muted=!0,n.playsInline=!0,n.style.display="none",document.body.appendChild(n));const t=()=>{i||r()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},851:function(t,e,o){o.d(e,{A:function(){return g}});var n=o(1005),i=o(9950),r=o(9879),a=o(22),d=o(5830),c=o(932);var s=function(t){const[e,o,n,i,r]=(0,c.A)(),[s]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[l]=(0,d.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.dl]===a.nN?l/100:s/100*1.2;return[e*u,o*u,r]},l=o(1628),u=o.n(l),p=o(6702),v=(o(9733),o(4365),o(1348)),h=o(4414);var m=({size:t,color:e="rgba(255, 255, 255, 0.9)"})=>(0,h.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,h.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,h.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:e,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var f=({size:t,color:e="rgba(255, 255, 255, 0.95)"})=>(0,h.jsxs)("svg",{width:.7*t,height:.7*t,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,h.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,h.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:e,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,h.jsxs)("defs",{children:[(0,h.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,h.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,h.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,h.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,h.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,h.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var g=function(t){var e;const o=i.useRef(null);var[c,l,g]=s();(0,d.Xd)("whatmoreUITheme");const[w]=(0,d.QN)("whatmorePrimaryFont"),[y]=(0,d.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,d.QN)("whatmoreEmbedAppPositionPortrait"),[x]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[_]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,d.QN)("whatmoreEmbedAppPositionLandscape"),[E]=(0,d.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[T]=(0,d.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),j=(0,d.Xd)("whatmoreShopId"),A=(0,d.Xd)("isWhatmorePreviewMode");var C=b,k=x,I=_;g[a.dl]===a.nN&&(C=S,k=E,I=T);const[L,P]=(0,i.useState)(["initial",window.pageYOffset]),[N,O]=(0,i.useState)(!1),D=null!==(e=t.isSpotlight)&&void 0!==e&&e,q=g[a.dl]===a.nN?.8*(0,v.O86)(j):1.2*(0,v.O86)(j),M=D?q:1.2;c*=M,l*=M;const z=D?(0,v.LrK)(j):C,R=D?(0,v._2D)(j):(0,v.GSq)(j),[Q,V]=(0,i.useState)(!D&&(0,v.n8Q)(j)),F=!D&&(0,v.YE3)(j);function B(t,e){P(t),t[1]<=100?O(!1):e!=N&&(O(e),V(!1))}(0,i.useEffect)(()=>{let t=window.pageYOffset,e=!1;const o=()=>{const o=window.pageYOffset;Math.abs(o-t)<100||(B([o>t?"scrolled-down":"scrolled-up",o],!0),t=o>0?o:0),e=!1},n=()=>{e||(window.requestAnimationFrame(o),e=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[L]),(0,n.j)({ref:o,handler:()=>{B(["scrolled-up",L[1]],!0)}});const $=t.event,W=t.inVideoClick,G=t.closeClick,H=.25*l,U=.5*l,K=.6*l,Y="20px",X=(0,v.GvQ)(j);var J=!1,Z=0,tt=0;function et(t){J=t}return(0,h.jsx)("div",{className:"wht-popup",children:Q&&!R?(0,h.jsx)(h.Fragment,{}):N&&R?(0,h.jsx)("div",{style:"left"===z?{left:"16px",bottom:D?(0,v.pUQ)(j)+"px":I+"px",position:"fixed",zIndex:X}:{right:"16px",bottom:D?(0,v.pUQ)(j)+"px":I+"px",position:"fixed",zIndex:X},children:(0,h.jsxs)("div",{onClick:()=>{B(["initial",L[1]],!1)},style:{width:K+"px",height:K*(16/9)+"px",borderRadius:Y,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===z?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",borderRadius:Y,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,h.jsx)(r.A,{url:$.thumbnail_image,isPlaying:!1,event:$})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,h.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,h.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:t=>{t.stopPropagation(),G()},children:(0,h.jsx)(m,{size:.8*H})})}),(0,h.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,h.jsx)(p.A,{sx:{color:"white",fontSize:2*H+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,h.jsx)(u(),{nodeRef:o,cancel:".activate-button,.close-btn",bounds:A?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(t,e)=>{var o,n;o=e.x,n=e.y,Z=o,tt=n},onDrag:(t,e)=>{et(!0)},onStop:(t,e)=>{J&&(Math.abs(e.x-Z)>5||Math.abs(e.y-tt)>5)?et(!1):(F&&G(t),W($))},children:(0,h.jsx)("div",{ref:o,style:"left"===z?{left:D?(0,v.D2A)(j)+"px":k+"px",bottom:D?(0,v.pUQ)(j)+"px":I+"px",position:"fixed",zIndex:X}:{right:D?(0,v.D2A)(j)+"px":k+"px",bottom:D?(0,v.pUQ)(j)+"px":I+"px",position:"fixed",zIndex:X},children:(0,h.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==j?c+"px":l+"px",height:t.isSpotlight&&"60122562760"==j?l+"px":c+"px",borderRadius:Y,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===z?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,h.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:Y,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,h.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==j?16/9:9/16},children:(0,h.jsx)(r.A,{url:$.thumbnail_image,isMuted:!0,isPlaying:!0,event:$})})}),(0,h.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,h.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,h.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,h.jsx)("div",{className:"close-btn",onClick:G,children:(0,h.jsx)(m,{size:H})})}),(0,h.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,h.jsx)(f,{size:U})}),(0,h.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:Y,borderBottomRightRadius:Y,background:y?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,h.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:w,fontWeight:"600",fontSize:.35*H+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:y})})]})})]})})})})}},932:function(t,e,o){var n=o(5830),i=o(1941),r=o(22),a=o(1348);e.A=function(t){const[e,o,d]=(0,i.A)(),[c]=(0,n.QN)("whatmoreLandscapePadding"),[s]=(0,n.QN)("whatmoreShopId"),[l]=(0,n.QN)("whatmoreVideoTileSize"),[u]=(0,n.QN)("whatmoreVideoTileSizePortrait"),p=d>o,v="portrait"==e?u:l,h=!("portrait"!=e||!(d>=481)),m=v/100*1.3*.5,f=v/100;var g=Math.min(d,o),[w,y,b,x]=[.6*g*(16/9),.6*g,1.4,0];function _(t){return Math.round(10*t)/10}var S={DEVICE_TYPE:r.b4,DEVICE_MODE:r.tn};if(p){const t=y*m,e=w*m;[w,y,b,x]=[e,t,(d-2*c-2*(0,a.$du)(s))/(1.1*t),c],S[r._]=r.$S,S[r.dl]=r.nN}else if(h){var E=.8*y,T=.8*w;"portrait"==e?(E*=f,T*=f,[w,y,b,x]=[T,E,_(d/(1.2*E)),0],S[r._]=r.vF,S[r.dl]=r.tn):([w,y,b,x]=[T,E,(d-2*c)/(1.1*E),c],S[r._]=r.vF,S[r.dl]=r.nN)}else{E=y,T=w;"portrait"==e?(E=E*f*.9,T=T*f*.9,[w,y,b,x]=[T,E,_(d/(1.15*E)),0],S[r._]=r.b4,S[r.dl]=r.tn):(E=.7*y,T=.7*w,[w,y,b,x]=[T,E,(d-2*c)/(1.1*E),c],S[r._]=r.b4,S[r.dl]=r.nN)}return[w,y,b,x,S]}},1019:function(t,e,o){o.d(e,{B:function(){return r}});var n=o(1348),i=o(964);function r(t){return`${(0,n.jpW)(t)?i.$$:i.MT}/v2/brand/${t}/product-events/recommendation/cdn`}},1351:function(t,e,o){o.d(e,{PG:function(){return c},kz:function(){return s},UM:function(){return u},yP:function(){return p},DG:function(){return l}});var n=o(1348),i=o(3330),r=o(6157);function a(t,e,o={},n){var i;const a=c[t];if(!a)return;const d=a.isActionEnabled(),s=null===n||void 0===n||null===(i=n.meta_actions)||void 0===i?void 0:i[a.customAction];(d||s)&&"function"==typeof fbq&&(async()=>{const n={id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link,...t===r.O.VIDEO_PLAYBACK&&{watch_time:o.watch_time,video_duration:o.video_duration}};fbq("trackCustom",a.action,n),s&&setTimeout(()=>{null===s||void 0===s||s.forEach(t=>{fbq("trackCustom",t,n)})},500)})()}var d=o(7145);const c={[r.O.EVENT_VIEW]:{isActionEnabled:n.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[r.O.VIDEO_PLAYBACK]:{isActionEnabled:n.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[r.O.VIDEO_LIKED]:{isActionEnabled:n.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[r.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:n.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[r.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:n.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[r.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:n.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:s}){var l,u,p,v;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:s}),t in c)&&(a(t,null!==(l=null===r||void 0===r?void 0:r[1])&&void 0!==l?l:null===r||void 0===r?void 0:r[0],e,n),(0,i.n)({page_type:o.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(v=r[0])||void 0===v?void 0:v.title}))}function l({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:s}){var l,u,p,v;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:s}),t in c)&&(a(t,null!==(l=null===r||void 0===r?void 0:r[1])&&void 0!==l?l:null===r||void 0===r?void 0:r[0],e,n),(0,i.n)({page_type:o.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:e.video_duration>0?Math.ceil(e.watch_time/e.video_duration*100):"NA",product_name:null!==(u=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==u?u:null===r||void 0===r||null===(v=r[0])||void 0===v?void 0:v.title}))}function u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:a}){var s,l,u;((0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:a}),t in c)&&(0,i.n)({page_type:o.landingLocationType,selection_type:t,video_name:n.event_id,video_percentage:"NA",product_name:null!==(s=null===r||void 0===r||null===(l=r[1])||void 0===l?void 0:l.title)&&void 0!==s?s:null===r||void 0===r||null===(u=r[0])||void 0===u?void 0:u.title})}function p({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r}){(0,d.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r})}},3262:function(t,e,o){o.r(e),o.d(e,{initiateCartSliderEvent:function(){return r}});var n=o(5830),i=o(1745);const r=async function(t,e,o,r,a="",d="",c="",s="",l="",u=""){(0,n.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{f(a)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,o);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(d&&t.setAttribute("data-product-id",d),t.click(),setTimeout(()=>{(0,i.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(a));if(e){const t=e.key,o=e.quantity,n=e.properties;(0,i.CP)(t,o,n,c,s,l,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===u||void 0===u||null===(p=u.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&d&&e.setAttribute("data-product-id",d)}),void setTimeout(e,o));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{f(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{f(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("70840582336"===t){const t=a,n=1,i=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(i){let r=i.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",i.appendChild(r)),r.disabled=!1,r.value=t;const a=i.querySelector('input[name="quantity"]');a&&(a.value=n);const d=i.querySelector('button[data-add-to-cart], button[type="submit"]');return d?(d.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),d.click(),d.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{f(t)},500),void setTimeout(e,o)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:n}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{f(t)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const n=t.querySelector('input[name="id"]');if(!n)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);n.value=a;const i=t.querySelector('button[type="submit"]');if(!i)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);i.click(),setTimeout(()=>{f(a)},500),setTimeout(e,o)}catch(y){console.error("[ATC 64683278550] error:",y),setTimeout(e,o)}return}const v=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let o=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return o||(o=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),o},h=(e,o,n)=>{const i=e.cloneNode(!0);if(i){i.hasAttribute("data-product-variant-id")&&i.setAttribute("data-product-variant-id",o),i.hasAttribute("data-product-id")&&i.setAttribute("data-product-id",n);let e=i.querySelector('input[name="id"]');if(e)e.setAttribute("value",o),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=i.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",o)}}const r=i.querySelector('input[name="product-id"]');r&&r.setAttribute("value",n);const a=document.createElement("div");return a.className="whatmore-atc",a.appendChild(i),document.body.appendChild(a),console.log(a,"formElement"),"92319318403"===t&&((t,e,o)=>{var n;const i=null!==(n=t.matches)&&void 0!==n&&n.call(t,"form")?t:t.querySelector("form");if(!i)return;let r=i.querySelector('input[name="id"]');r||(r=document.createElement("input"),r.type="hidden",r.name="id",i.prepend(r)),r.value=String(e),r.removeAttribute("disabled");const a=i.querySelector('select[name="id"]');a&&([...a.options].some(t=>t.value===String(e))?(a.value=String(e),[...a.options].forEach(t=>t.selected=t.value===String(e)),a.dispatchEvent(new Event("change",{bubbles:!0}))):a.removeAttribute("name"));const d=i.querySelector('input[name="product-id"]');d&&(d.value=String(o))})(a,o,n),a}},m=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},f=t=>{(0,i.js)().then(t=>t.json()).then(e=>{const o=e.items.find(e=>e.id==t),n=o.key,r=o.quantity,a=o.properties;(0,i.CP)(n,r,a,c,s,l,!0,!0,!0)})},g=v(document);if(g||(null===g||void 0===g?void 0:g.length)>0){const t=h(g,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}else{var w;fetch(null===u||void 0===u||null===(w=u.split("?"))||void 0===w?void 0:w[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=v(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=h(o,a,d);m(t),setTimeout(()=>{f(a)},500),t.remove()}})}setTimeout(e,o)}},3389:function(t,e,o){o.r(e);var n=o(9950),i=o(1348),r=o(964),a=o(5830),d=o(140),c=o(4533),s=o(7802),l=o(851),u=o(1085),p=o(6613),v=o(3330),h=(o(3262),o(572)),m=o(8603),f=o(2039),g=o(4833),w=o(5551),y=o(1351),b=o(6157),x=o(2979),_=o(6641),S=o(8945),E=o(9821),T=o(69),j=o(1019),A=o(4414);const C=(0,m.A)({key:"whatmore-css-ppv"}),k=n.lazy(()=>Promise.all([o.e(304),o.e(946),o.e(607),o.e(187),o.e(987),o.e(411),o.e(688),o.e(592)]).then(o.bind(o,4688))),I=n.lazy(()=>o.e(374).then(o.bind(o,5100)));function L(t){return t.split(/[?#]/)[0]}e.default=function(t){const[e,o]=(0,n.useState)(),[m,P]=(0,n.useState)(),[N]=(0,a.QN)("isInDesignMode"),[O]=(0,a.QN)("isDemoBrand"),[D]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[q,M]=(0,n.useState)(-2),[z]=(0,a.QN)("whatmoreVariantId"),[R]=(0,a.QN)("whatmoreShopId");var[Q]=(0,a.QN)("whatmoreProductId");const V=(0,a.Xd)("isLandingSharedLink"),F=(0,a.Xd)("whatmoreShareTemplateId"),B=(0,a.Xd)("whatmoreShareEventId"),$=V&&"template-embed"===(0,g.Mm)(F),[W,G]=(0,n.useState)($);Q=(0,i.BcY)(R)?function(t){if("STRR72TX6AT"==t){var e;const t=null===(e=window.location.pathname)||void 0===e?void 0:e.split("/");return t[t.length-1]}return"STR6HARJ3QY"==t||"STRI4V3OYCH"==t||"STRGZ9TGDEQ"==t||"STRJ2T2QPKI"==t?L(window.location.href).split("/").pop():L(window.location.href)}(R):Q;const[H,U]=(0,n.useState)(()=>"true"===D?z:Q),[K,Y]=(0,n.useState)(!1);var X=((0,i.jpW)(R)?r.$$:r.MT)+"/v2/brand/"+R+"/product-events";const{whatmoreWidgetSourceDetails:J}=(0,n.useContext)(w.B);(0,n.useEffect)(()=>{(0,v.initializeGA)(R),(0,_.Fk)("Video shopping powered by Whatmore!"),(0,c.wm)()},[]),(0,n.useEffect)(()=>{null==e||0==e.length||m||!(0,p.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,E._)()?(0,u.Pc)(u.F5):(0,T.bi)())},[e]),(0,n.useEffect)(()=>{if(M(-1),(0,i.WH1)(R)){const t=(0,j.B)(R),e=(0,i.buK)(R);fetch(`${t}?client_product_id=${H}&limit=10&recommended=${!e}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then(t=>t.json()).then(t=>{const n=null===t||void 0===t?void 0:t.events;if((null===n||void 0===n?void 0:n.length)>0){var r;const a=e?null===t||void 0===t?void 0:t.all_events:null===t||void 0===t||null===(r=t.related_events)||void 0===r?void 0:r.map(t=>({...t,isRelatedEvent:!0}));let d=[...n,...a];(0,i.xku)(R)||(d=(0,s.Zf)(d)),o(d)}else o([])}).catch(t=>P(t.message))}else fetch(X.toString()+"?client_product_id="+H.toString()+"&status="+"upcoming".toString()+"&event_type=video").then(t=>t.json()).then(t=>t.events).then(t=>(null!=t&&0!=t.length&&(0,i.vfi)(R)&&(0,i.YOR)(t),(0,i.xku)(R)||(t=(0,s.Zf)(t)),o(t),t)).then(t=>((0,i.Uht)(R)&&function(t,e){setTimeout(async()=>{const o=t.reduce((t,e)=>[...t,...e.products],[]).filter(t=>t.client_product_id==e)[0];if(!o||o.product_link==L(window.location.href))return;const n={product_id:o.product_id,product_link:L(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})},500)}(t,H),t)).catch(t=>{P(t.message)})},[H]),(0,n.useEffect)(()=>{var t,o;M(-2),(e&&e.length>0||"Scale"==(0,i.yt9)(R)||"Enterprise"==(0,i.yt9)(R)||"Premium"==(0,i.yt9)(R))&&(0,y.yP)({userInteractionType:b.O.PDP_VISITED,widgetSourceDetails:J,event:null===e||void 0===e?void 0:e[0],productList:null===e||void 0===e||null===(t=e[0])||void 0===t?void 0:t.products,ctaList:null===e||void 0===e||null===(o=e[0])||void 0===o?void 0:o.cta})},[e]),(0,n.useEffect)(()=>{const t=L(window.location.href);"8111554613"===R&&setTimeout(()=>{const t=new Event("change",{bubbles:!0}),e=document.querySelector('[name="id"]')||document.querySelector("[data-variant-picker]")||document.querySelector(".variant-selector");e&&e.dispatchEvent(t)},100);let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let o=history.replaceState;history.replaceState=function(){let t=o.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),t},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))}),window.addEventListener("locationchange",function(){if("24950997070"==R&&window.location.origin+window.location.pathname!=t&&fetch(window.location.origin+window.location.pathname+".json").then(t=>t.json()).then(t=>{var e;return U(null===t||void 0===t||null===(e=t.product)||void 0===e?void 0:e.id)}),"true"===D){const t=function(t){for(var e=window.location.search.substring(1).split("&"),o=0;o<e.length;o++){var n=e[o].split("=");if(n[0]==t)return n[1]}return!1}("variant");t&&""!==t&&U(t)}})},[]),(0,n.useEffect)(()=>{if(null!=e&&0!==e.length&&!m&&$&&((0,S.H)("whatmore-video-player",()=>{G(!1)}),null!=B)){const t=e.find(t=>B==t.event_id);if(t)return void et(t,!0,e.indexOf(t))}},[e]);const Z=J.landingLocationType,tt=J.templateType,et=async(t,e=!1,o=0)=>{if((0,p.MN)()&&!e&&await((0,E._)()?(0,u.bo)():(0,T.bi)()),(0,f.ij)(t)||(0,f.Il)(t))return N||O||(async()=>{const e=(0,g.Wd)(Z)+(0,g.gf)(tt)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,d.lB)(t),(0,v.sendVideoViewEventToGA)(R,r.DK,r.K1),(0,c.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),(0,i.YE3)(R)&&Y(!0),void M(o)};function ot(){return(0,A.jsx)(A.Fragment,{})}return null==e||0==e.length||m||(0,g.Ig)(J.templateType)||!(0,i.fDZ)(R)?(0,A.jsx)("div",{}):(0,A.jsxs)(h.C,{value:C,children:[W&&(0,A.jsx)(I,{}),"no-product"===H||-1===q||0===e.length?(0,A.jsx)(ot,{}):-2===q&&e.length>0?(0,A.jsx)("div",{children:(0,A.jsx)(x.S,{userInteractionType:b.O.PDP_POPUP_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!N&&!O,children:(0,A.jsx)(l.A,{event:e[0],inVideoClick:et,closeClick:t=>{var o;t.stopPropagation(),M(-1),(0,y.kz)({userInteractionType:b.O.PDP_POPUP_CLOSED,widgetSourceDetails:J,event:null===e||void 0===e?void 0:e[0],productList:null===e||void 0===e||null===(o=e[0])||void 0===o?void 0:o.products})}})})}):(0,A.jsx)("div",{children:(0,A.jsx)(n.Suspense,{children:(0,A.jsx)(x.S,{userInteractionType:b.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!N&&!O,children:(0,A.jsx)(k,{events:e,index:q,onBack:function(){M(K?-1:-2),G(!1)},template:"template-product-page"})})})})]})}},6649:function(t,e,o){var n=o(9950);e.A=({triggerOnce:t=!1,root:e=null,rootMargin:o="0px",threshold:i=0}={})=>{const[r,a]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{const n=new IntersectionObserver((e,o)=>{e.forEach(e=>{c(e),e.isIntersecting?(a(!0),t&&o.disconnect()):t||a(!1)})},{root:e,rootMargin:o,threshold:i});return s.current&&n.observe(s.current),()=>{n.disconnect()}},[t,e,o,i]),[s,r,d]}},8945:function(t,e,o){function n(t,e){let o=0;let n=new MutationObserver(function(){document.querySelector("."+t)?(e(),n.disconnect()):0==o&&(o=1,setTimeout(()=>{e(),n.disconnect()},8e3))});n.observe(document.body,{childList:!0,subtree:!0})}o.d(e,{H:function(){return n}})},9733:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262,365,717],{22:function(t,e,a){a.d(e,{$S:function(){return s},_:function(){return i},b4:function(){return n},dl:function(){return o},nN:function(){return c},tn:function(){return l},vF:function(){return r}});const i="device_type",o="device_mode",n="mobile",r="tablet",s="desktop",l="portrait",c="landscape"},69:function(t,e,a){a.d(e,{Ij:function(){return n},bi:function(){return r}});let i,o=!1;function n(){return i?i.play().then(()=>{o=!0,console.debug("iOS autoplay restrictions bypassed."),i.pause()}).catch(t=>{console.error("Failed to bless videos:",t.message)}):Promise.reject(new Error("Blessing video not initialized."))}function r(){i||(i=document.createElement("video"),i.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",i.muted=!0,i.playsInline=!0,i.style.display="none",document.body.appendChild(i));const t=()=>{o||n()};document.addEventListener("click",t,{once:!0}),document.addEventListener("touchstart",t,{once:!0})}},851:function(t,e,a){a.d(e,{A:function(){return v}});var i=a(1005),o=a(9950),n=a(9879),r=a(22),s=a(5830),l=a(932);var c=function(t){const[e,a,i,o,n]=(0,l.A)(),[c]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[d]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),_=n[r.dl]===r.nN?d/100:c/100*1.2;return[e*_,a*_,n]},d=a(1628),_=a.n(d),p=a(6702),u=(a(9733),a(4365),a(1348)),m=a(4414);var h=({size:t,color:e="rgba(255, 255, 255, 0.9)"})=>(0,m.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",style:{cursor:"pointer",transition:"all 0.3s ease",filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.5))"},className:"premium-close-icon",children:[(0,m.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"rgba(0, 0, 0, 0.6)",stroke:"rgba(255, 255, 255, 0.3)",strokeWidth:"1.5",style:{transition:"all 0.3s ease"}}),(0,m.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:e,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var f=({size:t,color:e="rgba(255, 255, 255, 0.95)"})=>(0,m.jsxs)("svg",{width:.7*t,height:.7*t,viewBox:"0 0 80 80",fill:"none",style:{filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.5))",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",cursor:"pointer"},className:"premium-play-icon",children:[(0,m.jsx)("circle",{cx:"40",cy:"40",r:"28",fill:"url(#playGradient)",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"1.5",style:{backdropFilter:"blur(20px)"}}),(0,m.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:e,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,m.jsxs)("defs",{children:[(0,m.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,m.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,m.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,m.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,m.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,m.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,m.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,m.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,m.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var v=function(t){var e;const a=o.useRef(null);var[l,d,v]=c();(0,s.Xd)("whatmoreUITheme");const[b]=(0,s.QN)("whatmorePrimaryFont"),[y]=(0,s.QN)("whatmoreEmbedAppVideoTitle"),[g]=(0,s.QN)("whatmoreEmbedAppPositionPortrait"),[w]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[k]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[x]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[S]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[j]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),A=(0,s.Xd)("whatmoreShopId"),N=(0,s.Xd)("isWhatmorePreviewMode");var T=g,C=w,E=k;v[r.dl]===r.nN&&(T=x,C=S,E=j);const[I,R]=(0,o.useState)(["initial",window.pageYOffset]),[P,L]=(0,o.useState)(!1),q=null!==(e=t.isSpotlight)&&void 0!==e&&e,z=v[r.dl]===r.nN?.8*(0,u.O86)(A):1.2*(0,u.O86)(A),M=q?z:1.2;l*=M,d*=M;const D=q?(0,u.LrK)(A):T,O=q?(0,u._2D)(A):(0,u.GSq)(A),[F,B]=(0,o.useState)(!q&&(0,u.n8Q)(A)),G=!q&&(0,u.YE3)(A);function Q(t,e){R(t),t[1]<=100?L(!1):e!=P&&(L(e),B(!1))}(0,o.useEffect)(()=>{let t=window.pageYOffset,e=!1;const a=()=>{const a=window.pageYOffset;Math.abs(a-t)<100||(Q([a>t?"scrolled-down":"scrolled-up",a],!0),t=a>0?a:0),e=!1},i=()=>{e||(window.requestAnimationFrame(a),e=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[I]),(0,i.j)({ref:a,handler:()=>{Q(["scrolled-up",I[1]],!0)}});const V=t.event,H=t.inVideoClick,K=t.closeClick,W=.25*d,J=.5*d,X=.6*d,$="20px",U=(0,u.GvQ)(A);var Y=!1,Z=0,tt=0;function et(t){Y=t}return(0,m.jsx)("div",{className:"wht-popup",children:F&&!O?(0,m.jsx)(m.Fragment,{}):P&&O?(0,m.jsx)("div",{style:"left"===D?{left:"16px",bottom:q?(0,u.pUQ)(A)+"px":E+"px",position:"fixed",zIndex:U}:{right:"16px",bottom:q?(0,u.pUQ)(A)+"px":E+"px",position:"fixed",zIndex:U},children:(0,m.jsxs)("div",{onClick:()=>{Q(["initial",I[1]],!1)},style:{width:X+"px",height:X*(16/9)+"px",borderRadius:$,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===D?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,m.jsx)("div",{style:{overflow:"hidden",borderRadius:$,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,m.jsx)(n.A,{url:V.thumbnail_image,isPlaying:!1,event:V})})}),(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,m.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content",padding:"2px",position:"absolute",top:"0",right:"0",zIndex:10},children:(0,m.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:t=>{t.stopPropagation(),K()},children:(0,m.jsx)(h,{size:.8*W})})}),(0,m.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,m.jsx)(p.A,{sx:{color:"white",fontSize:2*W+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,m.jsx)(_(),{nodeRef:a,cancel:".activate-button,.close-btn",bounds:N?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(t,e)=>{var a,i;a=e.x,i=e.y,Z=a,tt=i},onDrag:(t,e)=>{et(!0)},onStop:(t,e)=>{Y&&(Math.abs(e.x-Z)>5||Math.abs(e.y-tt)>5)?et(!1):(G&&K(t),H(V))},children:(0,m.jsx)("div",{ref:a,style:"left"===D?{left:q?(0,u.D2A)(A)+"px":C+"px",bottom:q?(0,u.pUQ)(A)+"px":E+"px",position:"fixed",zIndex:U}:{right:q?(0,u.D2A)(A)+"px":C+"px",bottom:q?(0,u.pUQ)(A)+"px":E+"px",position:"fixed",zIndex:U},children:(0,m.jsxs)("div",{style:{boxSizing:"border-box",width:t.isSpotlight&&"60122562760"==A?l+"px":d+"px",height:t.isSpotlight&&"60122562760"==A?d+"px":l+"px",borderRadius:$,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===D?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,m.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:$,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,m.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:t.isSpotlight&&"60122562760"==A?16/9:9/16},children:(0,m.jsx)(n.A,{url:V.thumbnail_image,isMuted:!0,isPlaying:!0,event:V})})}),(0,m.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,m.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,m.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,m.jsx)("div",{className:"close-btn",onClick:K,children:(0,m.jsx)(h,{size:W})})}),(0,m.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,m.jsx)(f,{size:J})}),(0,m.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:$,borderBottomRightRadius:$,background:y?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,m.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:b,fontWeight:"600",fontSize:.35*W+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:y})})]})})]})})})})}},932:function(t,e,a){var i=a(5830),o=a(1941),n=a(22),r=a(1348);e.A=function(t){const[e,a,s]=(0,o.A)(),[l]=(0,i.QN)("whatmoreLandscapePadding"),[c]=(0,i.QN)("whatmoreShopId"),[d]=(0,i.QN)("whatmoreVideoTileSize"),[_]=(0,i.QN)("whatmoreVideoTileSizePortrait"),p=s>a,u="portrait"==e?_:d,m=!("portrait"!=e||!(s>=481)),h=u/100*1.3*.5,f=u/100;var v=Math.min(s,a),[b,y,g,w]=[.6*v*(16/9),.6*v,1.4,0];function k(t){return Math.round(10*t)/10}var x={DEVICE_TYPE:n.b4,DEVICE_MODE:n.tn};if(p){const t=y*h,e=b*h;[b,y,g,w]=[e,t,(s-2*l-2*(0,r.$du)(c))/(1.1*t),l],x[n._]=n.$S,x[n.dl]=n.nN}else if(m){var S=.8*y,j=.8*b;"portrait"==e?(S*=f,j*=f,[b,y,g,w]=[j,S,k(s/(1.2*S)),0],x[n._]=n.vF,x[n.dl]=n.tn):([b,y,g,w]=[j,S,(s-2*l)/(1.1*S),l],x[n._]=n.vF,x[n.dl]=n.nN)}else{S=y,j=b;"portrait"==e?(S=S*f*.9,j=j*f*.9,[b,y,g,w]=[j,S,k(s/(1.15*S)),0],x[n._]=n.b4,x[n.dl]=n.tn):(S=.7*y,j=.7*b,[b,y,g,w]=[j,S,(s-2*l)/(1.1*S),l],x[n._]=n.b4,x[n.dl]=n.nN)}return[b,y,g,w,x]}},3262:function(t,e,a){a.r(e),a.d(e,{initiateCartSliderEvent:function(){return n}});var i=a(5830),o=a(1745);const n=async function(t,e,a,n,r="",s="",l="",c="",d="",_=""){(0,i.Xd)("whatmoreLandingLocationType");if("STRNV8MHJTF"==t||"STR6HU283UZ"==t||"STR9T3LLEJB"==t||"STRWJMIOJNX"==t||"STRUDQ36YAC"==t||"STR1D5ONOZX"==t){console.log("Executing cart refresh script..");return void(document.getElementById("whatsmorecart").value=Math.random())}if("58692075703"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:r,quantity:1})}).then(t=>{if(!t.ok)throw new Error("Add to cart failed");return t.json()}).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{f(r)},500)}).catch(t=>console.error("[Whatmore] Lakshita ATC error:",t)),void setTimeout(e,a);if("56444977250"===t){const t=document.querySelector('button[data-pf-type="ProductATC2"]');return t?(s&&t.setAttribute("data-product-id",s),t.click(),setTimeout(()=>{(0,o.js)().then(t=>t.json()).then(t=>{const e=t.items.find(t=>String(t.id)===String(r));if(e){const t=e.key,a=e.quantity,i=e.properties;(0,o.CP)(t,a,i,l,c,d,!0,!0,!0)}})},500),void setTimeout(e,a)):(fetch(null===_||void 0===_||null===(p=_.split("?"))||void 0===p?void 0:p[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html").querySelector('button[data-pf-type="ProductATC2"]');e&&s&&e.setAttribute("data-product-id",s)}),void setTimeout(e,a));var p}if("64379584700"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:r,quantity:1})}).then(t=>t.json()).then(t=>fetch("/cart.js")).then(t=>t.json()).then(t=>{$(".paira-cart-item-count").text(t.item_count),$(".paira-cartEmpty").hide(),$(".paira-cartNotEmpty").show(),$(".paira-cart-total-price .money").text("Rs. "+t.total_price/100),$(".cart-drop").addClass("open"),$(".cart-icon").trigger("mouseenter"),setTimeout(()=>{f(r)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,a);if("76767920441"===t)return fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:r,quantity:1})}).then(t=>t.json()).then(t=>{"function"===typeof window.openGokwikSideCart&&window.openGokwikSideCart(),setTimeout(()=>{f(r)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,a);if("70840582336"===t){const t=r,i=1,o=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(o){let n=o.querySelector('input[name="id"]');n||(n=document.createElement("input"),n.type="hidden",n.name="id",o.appendChild(n)),n.disabled=!1,n.value=t;const r=o.querySelector('input[name="quantity"]');r&&(r.value=i);const s=o.querySelector('button[data-add-to-cart], button[type="submit"]');return s?(s.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),s.click(),s.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{f(t)},500),void setTimeout(e,a)}return void fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:i}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{f(t)},500),setTimeout(e,a)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,a)})}if("64683278550"===t){try{const t=document.querySelector('form[action="/cart/add"]');if(!t)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,a);const i=t.querySelector('input[name="id"]');if(!i)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,a);i.value=r;const o=t.querySelector('button[type="submit"]');if(!o)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,a);o.click(),setTimeout(()=>{f(r)},500),setTimeout(e,a)}catch(y){console.error("[ATC 64683278550] error:",y),setTimeout(e,a)}return}const u=e=>{if("61126934766"==t){let t=e.querySelector(".productView-buttons").querySelector('form[action*="/cart/add"]');if(t)return t}let a=Array.from(e.querySelectorAll("product-form")).find(t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]'));return a||(a=Array.from(e.querySelectorAll('form[action*="/cart/add"]')).find(t=>t.querySelector('button[type="submit"]'))),a},m=(e,a,i)=>{const o=e.cloneNode(!0);if(o){o.hasAttribute("data-product-variant-id")&&o.setAttribute("data-product-variant-id",a),o.hasAttribute("data-product-id")&&o.setAttribute("data-product-id",i);let e=o.querySelector('input[name="id"]');if(e)e.setAttribute("value",a),e.hasAttribute("disabled")&&e.removeAttribute("disabled");else{const t=o.querySelector('select[name="id"]');if(t){const e=t.querySelector('option[selected="selected"]');e&&e.setAttribute("value",a)}}const n=o.querySelector('input[name="product-id"]');n&&n.setAttribute("value",i);const r=document.createElement("div");return r.className="whatmore-atc",r.appendChild(o),document.body.appendChild(r),console.log(r,"formElement"),"92319318403"===t&&((t,e,a)=>{var i;const o=null!==(i=t.matches)&&void 0!==i&&i.call(t,"form")?t:t.querySelector("form");if(!o)return;let n=o.querySelector('input[name="id"]');n||(n=document.createElement("input"),n.type="hidden",n.name="id",o.prepend(n)),n.value=String(e),n.removeAttribute("disabled");const r=o.querySelector('select[name="id"]');r&&([...r.options].some(t=>t.value===String(e))?(r.value=String(e),[...r.options].forEach(t=>t.selected=t.value===String(e)),r.dispatchEvent(new Event("change",{bubbles:!0}))):r.removeAttribute("name"));const s=o.querySelector('input[name="product-id"]');s&&(s.value=String(a))})(r,a,i),r}},h=t=>{const e=null===t||void 0===t?void 0:t.querySelector('button[type="submit"]');e&&e.click()},f=t=>{(0,o.js)().then(t=>t.json()).then(e=>{const a=e.items.find(e=>e.id==t),i=a.key,n=a.quantity,r=a.properties;(0,o.CP)(i,n,r,l,c,d,!0,!0,!0)})},v=u(document);if(v||(null===v||void 0===v?void 0:v.length)>0){const t=m(v,r,s);h(t),setTimeout(()=>{f(r)},500),t.remove()}else{var b;fetch(null===_||void 0===_||null===(b=_.split("?"))||void 0===b?void 0:b[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),a=u(e);if(a||(null===a||void 0===a?void 0:a.length)>0){const t=m(a,r,s);h(t),setTimeout(()=>{f(r)},500),t.remove()}})}setTimeout(e,a)}},6018:function(t,e,a){a.d(e,{bannerData:function(){return n},eventsData:function(){return i},n:function(){return r},storiesData:function(){return o}});const i=[{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}],o=[{event_id:51771,storyset_id:2428,storyset_name:"Jordan 11",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_d717c269-b583-49c1-a824-fbff481d4bcf.webp?v=1717565002",storyset_event_rank:1,storyset_dynamic_thumbnail:!0,products:[{product_id:45352,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/air-jordan-11-retro-low-black-varsity-royal",client_product_id:"8172829409418",price:"150.00",currency:null,title:'Air Jordan 11 Retro Low "Black/Varsity Royal"',description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-jordan-11-retro-low-black-varsity-royal-big-kids-shoes-Fw0r7C_5.webp?v=1717415768",compare_price:"13000.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:981,cta_link:"https://www.youtube.com/watch?v=o8MPzuKa0kk",client_cta_id:"https://www.youtube.com/watch?v=o8MPzuKa0kk",cta_title:"yt video",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-05",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_6179c4ad-b50b-46ec-bea7-c295f194ee65.mp4?v=1717564356",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_6179c4ad-b50b-46ec-bea7-c295f194ee65.mp4?v=1717564349",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!1,rank:58,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_6179c4ad-b50b-46ec-bea7-c295f194ee65.webp?v=1717564363",gif_image:null,total_views:73,total_like:1,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:62737,storyset_id:2428,storyset_name:"Jordan 11",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_d717c269-b583-49c1-a824-fbff481d4bcf.webp?v=1717565002",storyset_event_rank:5,storyset_dynamic_thumbnail:!0,products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-07-18",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2oouab8j9eigo.cloudfront.net/whatmoredev/f4a0bd71-f845-4b7e-b33d-2ef49e8eb7e9.webp",discount_coupon_image:"",event_hls_url:"https://d2oouab8j9eigo.cloudfront.net/whatmoredev/f4a0bd71-f845-4b7e-b33d-2ef49e8eb7e9.webp",presenter_email:null,presenter_phone:"",room_id:null,event_type:"image",is_active:!0,rank:71,event_state:"ready",poster_image:null,gif_image:null,total_views:11,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:51761,storyset_id:2430,storyset_name:"86 OG",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_tn_ed308ae1-2b51-4645-8887-3eb91e132c0f.mp4?v=1724150740",storyset_event_rank:3,storyset_dynamic_thumbnail:!0,products:[{product_id:45596,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/nike-air-max-1-86-og",client_product_id:"8177839865994",price:"160.00",currency:null,title:"Nike Air Max 1 '86 OG",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-max-1-86-og-mens-shoes-gKcnc4_1.jpg?v=1717563099",compare_price:"180.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-05",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_2a1b2831-f396-4ca6-b2af-4e4d2cc8c7af.mp4?v=1724151068",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_8fca9eb3-61f6-43c7-bcb2-8907829984d9.mp4?v=1717564355",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!1,rank:61,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_8fca9eb3-61f6-43c7-bcb2-8907829984d9.webp?v=1717564369",gif_image:null,total_views:38,total_like:1,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:54146,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:1,storyset_dynamic_thumbnail:!0,products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-14",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_f4832882-abae-4211-81b1-864bb4454ec5.mp4?v=1718369029",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_f4832882-abae-4211-81b1-864bb4454ec5.mp4?v=1718369021",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:36,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_f4832882-abae-4211-81b1-864bb4454ec5.webp?v=1718369036",gif_image:null,total_views:58,total_like:2,total_share:1,total_whatsapp:0,in_stock:!0},{event_id:51764,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:2,storyset_dynamic_thumbnail:!0,products:[{product_id:45595,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/nike-air-force-1-07-lv8",client_product_id:"8177876074634",price:"125.00",currency:null,title:"Nike Air Force 1 '07 LV8",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-force-1-07-lv8-mens-shoes-CgLD9b_1.webp?v=1717564002",compare_price:"150.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-05",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_ae3074b5-de26-4ab0-ac18-cfc72dfe8abb.mp4?v=1717564353",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_ae3074b5-de26-4ab0-ac18-cfc72dfe8abb.mp4?v=1717564346",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!1,rank:59,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_ae3074b5-de26-4ab0-ac18-cfc72dfe8abb.webp?v=1717564360",gif_image:null,total_views:10,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:54144,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:3,storyset_dynamic_thumbnail:!0,products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-14",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_b2df1a7d-e4fc-4947-823a-32d905e3dd65.mp4?v=1718369027",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_b2df1a7d-e4fc-4947-823a-32d905e3dd65.mp4?v=1718369020",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:34,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_b2df1a7d-e4fc-4947-823a-32d905e3dd65.webp?v=1718369034",gif_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:54145,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:4,storyset_dynamic_thumbnail:!0,products:[{product_id:49151,brand:"whatmore-dev",product_link:"https://mymoonstruck.com/products/multi-color-floral-print-front-mid-waist-cut-maxi",client_product_id:"8451541336276",price:"1999.00",currency:"INR",title:"Mid-Waist Cut Maxi Dress with Multi-Color Floral Print",description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0214/9724/9892/files/044A5356.jpg?v=1717840649",compare_price:"3499.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-14",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_2f9f937f-690d-4924-9151-b10e11ef8885.mp4?v=1718369034",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_2f9f937f-690d-4924-9151-b10e11ef8885.mp4?v=1718369026",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:35,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",gif_image:null,total_views:9,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0},{event_id:54143,storyset_id:2429,storyset_name:"Airforce",storyset_thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_2f9f937f-690d-4924-9151-b10e11ef8885.webp?v=1718369042",storyset_event_rank:5,storyset_dynamic_thumbnail:!0,products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-14",status:"upcoming",start_time:"",end_time:"",actual_start_time:null,actual_end_time:null,presenter_name:"",thumbnail_image:"https://d2r0bijhs9mx1s.cloudfront.net/whatmoredev/tn_630a1493-8a5a-463d-baa3-e852c9f59eb0.mp4",discount_coupon_image:"",event_hls_url:"https://d1zl4k1t5o4s75.cloudfront.net/whatmoredev/1080p_630a1493-8a5a-463d-baa3-e852c9f59eb0.mp4",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:33,event_state:"ready",poster_image:"https://whatmorelive-brand-image-poster-assets.b-cdn.net/whatmoredev/poster_630a1493-8a5a-463d-baa3-e852c9f59eb0.webp",gif_image:null,total_views:13,total_like:0,total_share:0,total_whatsapp:0,in_stock:!0}],n=[{event_id:53794,title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-13",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_fa2c9012-744f-4ed4-b57f-999e4416d173.mp4?v=1718279110",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_fa2c9012-744f-4ed4-b57f-999e4416d173.mp4?v=1718279102",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:28,event_state:"ready",products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}]},{event_id:53796,title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-13",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_f6a021eb-d66f-4fe6-8344-6d57f0c59bd3.mp4?v=1718279143",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_f6a021eb-d66f-4fe6-8344-6d57f0c59bd3.mp4?v=1718279136",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:30,event_state:"ready",products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}]},{event_id:97566,title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-11-07",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_92d8c48a-f937-4e2e-8cd4-e93b0af583cb.mp4?v=1730968309",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_92d8c48a-f937-4e2e-8cd4-e93b0af583cb.mp4?v=1730968301",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:271,event_state:"ready",products:[],cta:[{cta_id:616,cta_link:"https://whatmore.ai",client_cta_id:"https://whatmore.ai",cta_title:"",thumbnail_image:"",cta_type:""}]}],r=[{event_id:53437,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,storyset_dynamic_thumbnail:!1,products:[{product_id:45352,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/air-jordan-11-retro-low-black-varsity-royal",client_product_id:"8172829409418",price:"150.00",currency:null,title:'Air Jordan 11 Retro Low "Black/Varsity Royal"',description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-jordan-11-retro-low-black-varsity-royal-big-kids-shoes-Fw0r7C_5.webp?v=1717415768",compare_price:"13000.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-12",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_dff713cb-45c9-47bd-b895-284fb57844d7.mp4?v=1718177755",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_dff713cb-45c9-47bd-b895-284fb57844d7.mp4?v=1718177747",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:20,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_dff713cb-45c9-47bd-b895-284fb57844d7.webp?v=1718177762",gif_image:null,total_views:49,total_like:1,total_share:1,total_whatsapp:0,in_stock:!0},{event_id:53412,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,storyset_dynamic_thumbnail:!1,products:[{product_id:45352,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/air-jordan-11-retro-low-black-varsity-royal",client_product_id:"8172829409418",price:"150.00",currency:null,title:'Air Jordan 11 Retro Low "Black/Varsity Royal"',description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-jordan-11-retro-low-black-varsity-royal-big-kids-shoes-Fw0r7C_5.webp?v=1717415768",compare_price:"13000.00",product_metadata:null,product_status:"active"}],cta:[],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-12",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_bedf634b-94eb-4f1b-be9a-cca174a1cbcb.mp4?v=1718176568",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_bedf634b-94eb-4f1b-be9a-cca174a1cbcb.mp4?v=1718176560",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!0,rank:6,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_bedf634b-94eb-4f1b-be9a-cca174a1cbcb.webp?v=1718176574",gif_image:null,total_views:42,total_like:1,total_share:2,total_whatsapp:0,in_stock:!0},{event_id:51771,storyset_id:null,storyset_name:null,storyset_thumbnail_image:null,storyset_event_rank:null,storyset_dynamic_thumbnail:!1,products:[{product_id:45352,brand:"whatmore-dev",product_link:"https://whatmore-dev.myshopify.com/products/air-jordan-11-retro-low-black-varsity-royal",client_product_id:"8172829409418",price:"150.00",currency:null,title:'Air Jordan 11 Retro Low "Black/Varsity Royal"',description:"",thumbnail_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/air-jordan-11-retro-low-black-varsity-royal-big-kids-shoes-Fw0r7C_5.webp?v=1717415768",compare_price:"13000.00",product_metadata:null,product_status:"active"}],cta:[{cta_id:981,cta_link:"https://www.youtube.com/watch?v=o8MPzuKa0kk",client_cta_id:"https://www.youtube.com/watch?v=o8MPzuKa0kk",cta_title:"yt video",thumbnail_image:"",cta_type:""}],title:"",description:"",brand:"whatmore-dev",scheduled_date:"2024-06-05",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_6179c4ad-b50b-46ec-bea7-c295f194ee65.mp4?v=1717564356",discount_coupon_image:"",event_hls_url:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_1080p_6179c4ad-b50b-46ec-bea7-c295f194ee65.mp4?v=1717564349",presenter_email:null,presenter_phone:"",room_id:null,event_type:"video",is_active:!1,rank:58,event_state:"ready",poster_image:"https://cdn.shopify.com/s/files/1/0586/6979/3418/files/whatmore_poster_6179c4ad-b50b-46ec-bea7-c295f194ee65.webp?v=1717564363",gif_image:null,total_views:73,total_like:1,total_share:0,total_whatsapp:0,in_stock:!0}]},6649:function(t,e,a){var i=a(9950);e.A=({triggerOnce:t=!1,root:e=null,rootMargin:a="0px",threshold:o=0}={})=>{const[n,r]=(0,i.useState)(!1),[s,l]=(0,i.useState)(null),c=(0,i.useRef)(null);return(0,i.useEffect)(()=>{const i=new IntersectionObserver((e,a)=>{e.forEach(e=>{l(e),e.isIntersecting?(r(!0),t&&a.disconnect()):t||r(!1)})},{root:e,rootMargin:a,threshold:o});return c.current&&i.observe(c.current),()=>{i.disconnect()}},[t,e,a,o]),[c,n,s]}},8154:function(t,e,a){a.r(e);var i=a(9950),o=a(1348),n=a(964),r=a(5830),s=a(140),l=a(4533),c=a(851),d=a(1085),_=a(6613),p=a(3330),u=(a(3262),a(572)),m=a(6641),h=a(8603),f=a(2039),v=a(4833),b=a(7802),y=a(2979),g=a(6157),w=a(5551),k=a(69),x=a(9821),S=a(6018),j=a(4414);const A=(0,h.A)({key:"whatmore-css-wsv"}),N=i.lazy(()=>Promise.all([a.e(304),a.e(946),a.e(607),a.e(187),a.e(987),a.e(411),a.e(688),a.e(657)]).then(a.bind(a,4688)));e.default=function(t){const[e,a]=(0,i.useState)(),[h,T]=(0,i.useState)(),[C]=(0,r.QN)("isInDesignMode"),[E]=(0,r.QN)("isDemoBrand"),[I,R]=(0,i.useState)(-2),[P]=(0,r.QN)("whatmoreShopId"),L=(0,r.Xd)("isLandingSharedLink"),q=(0,r.Xd)("whatmoreShareTemplateId"),z=((0,r.Xd)("whatmoreShareStoryId"),(0,r.Xd)("whatmoreShareEventId")),M=(0,r.Xd)("whatmoreLandingLocationType"),D=(0,r.Xd)("whatmoreLoggingActive"),O=(0,r.Xd)("isWhatmorePreviewMode"),{whatmoreWidgetSourceDetails:F}=(0,i.useContext)(w.B);var B=(0,o.SOt)(P)?n.aD+"/get_eventset/":n.$$+"/get_eventset/",G=(0,o.SOt)(P)?n.aD+"/get_eventset_v1/":n.$$+"/get_eventset_v1/";(0,i.useEffect)(()=>{(0,l.wm)()},[]),(0,i.useEffect)(()=>{(0,p.initializeGA)(P)},[]),(0,i.useEffect)(()=>{null==e||0==e.length||h||!(0,_.MN)()||(0,r.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,x._)()?(0,d.Pc)(d.F5):(0,k.bi)())},[e]),(0,i.useEffect)(()=>{R(-1);const t=v.JA,e=(0,v.t6)(M),i="78232846646"===P.toString()?G.toString()+P.toString()+"?eventset_type="+t+"&event_type=video&source="+e+"&source_id="+P:B.toString()+P.toString()+"?eventset_type="+t+"&source="+e+"&source_id="+P;fetch(i).then(t=>t.json()).then(e=>(0,b.Po)(e,t)).then(t=>{if(O&&(null==t||t&&0==(null===t||void 0===t?void 0:t.length)))return a(S.n),S.n;let e=[...null===t||void 0===t?void 0:t.events,...null===t||void 0===t?void 0:t.all_events];return(0,o.xku)(P)||(e=(0,b.zJ)(e)),a(e),e}).catch(t=>{T(t.message)})},[]),(0,i.useEffect)(()=>{R(-2)},[e]),(0,i.useEffect)(()=>{null==e||0==e.length||h||L&&"template-embed"==(0,v.Mm)(q)&&null!=z&&e.forEach((t,e)=>{z==t.event_id&&H(t,!0,e)})},[e]);const Q=F.landingLocationType,V=F.templateType,H=(t,e=!1,a=0)=>{if((0,_.MN)()&&!e&&((0,x._)()?(0,d.bo)():(0,k.Ij)()),(0,f.ij)(t)||(0,f.Il)(t))return C||E||(async()=>{const e=(0,v.Wd)(Q)+(0,v.gf)(V)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,s.lB)(t),(0,p.sendVideoViewEventToGA)(P,n.DK,n.K1),(0,l.Ch)(t.event_id,t.products,"spotlight","video_popup",e)})(),void R(a)};function K(){return(0,j.jsx)(j.Fragment,{})}return null==e||0==e.length||h?(0,j.jsx)("div",{}):(D&&(0,m.xv)(e),(0,o.ALN)(P)&&I<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,j.jsx)(j.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,j.jsx)(u.C,{value:A,children:-1===I||0===e.length?(0,j.jsx)(K,{}):-2===I&&e.length>0?(0,j.jsx)("div",{children:(0,j.jsx)(y.S,{userInteractionType:g.O.SPOTLIGHT_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!C&&!E,children:(0,j.jsx)(c.A,{event:e[0],inVideoClick:H,closeClick:t=>{t.stopPropagation(),R(-1)},isSpotlight:!0})})}):(0,j.jsx)("div",{children:(0,j.jsx)(i.Suspense,{children:(0,j.jsx)(y.S,{userInteractionType:g.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!C&&!E,children:(0,j.jsx)(N,{events:e,index:I,onBack:function(){R(-2)},template:"template-embed"})})})})})))}},9733:function(){}}]);
|