whatmore-react-assets 1.0.1728 → 1.0.1730

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1728",
3
+ "version": "1.0.1730",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[725],{140:function(e,t,n){n.d(t,{$B:function(){return a},A9:function(){return u},Pb:function(){return s},TG:function(){return _},TJ:function(){return p},Zh:function(){return d},lB:function(){return c},tO:function(){return l}});var o,i=n(964);const r=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;function c(e){r&&console.debug("updating user view count for event.");const t={event_id:e.event_id,increase_by:1};fetch(i.$$+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>(r&&console.debug("updating user view count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user view count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating user view count user for event : ",e)})}function a(e,t){r&&console.debug("updating like count for event.");const n={event_id:e.event_id,increase_by:t};fetch(i.$$+"/event/metrics/like",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>(r&&console.debug("updating like count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating like count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating like count user for event : ",e)})}function d(e){r&&console.debug("updating share count for event.");const t={event_id:e.event_id,increase_by:1};fetch(i.$$+"/event/metrics/share",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>(r&&console.debug("updating share count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating share count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating share count user for event : ",e)})}function u(e,t){r&&console.debug("updating wa click count for event.");const n={event_id:e.event_id,increase_by:t};fetch(i.$$+"/event/metrics/whatsapp",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>(r&&console.debug("updating whatsapp click count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating whatsapp click count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating whatsapp click count user for event : ",e)})}function s(e,t){r&&console.debug("updating event-product click count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(i.$$+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>(r&&console.debug("updating user event-product click count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user event-product click count response : "+JSON.stringify(e))}).catch(t=>{console.error("error updating user event-product click count for event {} : ",e.event_id,t)})}function l(e,t,n){r&&console.debug("updating event-product add to cart count for event {} and product {}.",e.event_id,t.product_id);const o={event_id:e.event_id,product_id:t.product_id,increase_by:n};fetch(i.$$+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)}).then(e=>(r&&console.debug("updating user event-product add to cart count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user event-product add to cart count response : "+JSON.stringify(e))}).catch(t=>{console.error("error updating user event-product add to cart count for event {} : ",e.event_id,t)})}function p(e,t){r&&console.debug("updating event-product buy now count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(i.$$+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>(r&&console.debug("updating user event-product buy now count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user event-product buy now count response : "+JSON.stringify(e))}).catch(t=>{console.error("error updating user event-product buy now count for event {} : ",e.event_id,t)})}function _(e){const t={event_id:e.event.event_id,cta_id:e.cta.cta_id,increase_by:1};fetch(i.$$+"/event/metrics/cta/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>(r&&console.debug("updating user cta click count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user cta click count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating cta click count : ",e)})}},1085:function(e,t,n){n.d(t,{F5:function(){return i},Pc:function(){return c},Z4:function(){return a},bo:function(){return d},rq:function(){return u}});var o=n(5830);const i=6;function r(){const e=(0,o.Xd)("whatmoreVideoPlayerPool");var t=document.createElement("video");return t.setAttribute("class","whatmore-video-player whatmore-main-video-player-from-pool"),t.setAttribute("width","100%"),t.setAttribute("src","https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4"),t.muted=!0,t.setAttribute("height","100%"),t.setAttribute("preload","auto"),t.setAttribute("loop",""),t.setAttribute("playsinline",""),t.setAttribute("x-webkit-airplay","allow"),t.controls=!1,e.appendChild(t),t}const c=function(e){for(let t=1;t<=e;t++)r();(0,o.t2)("whatmoreVideoPlayerPoolInitiated",!0)};const a=function(e,t,n,i,r){(0,o.Xd)("whatmoreVideoPlayerPool");const c=function(e,t,n){var i=(r=(0,o.Xd)("whatmoreVideoPlayerPool").children,r.length>0?r[0]:null);var r;if(!i)throw new Error("Whatmore :: not enough blessed videos available in video pool.");return i.setAttribute("src",e),i.muted=t,i.play().then(()=>{!n&&i.pause()}).catch(e=>{}),i}(t,n,i);return e.innerHTML="",e.appendChild(c),c},d=async function(){const e=(0,o.Xd)("whatmoreVideoPlayerPool"),t=(0,o.Xd)("whatmoreVideoPlayerPoolInitiated");t||c(i);var n=[];for(let o of e.children){o.muted=!0;var r=o.play().then(e=>(!t&&o.pause(),e));n.push(r)}await Promise.all(n).then(e=>{(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)}).catch(e=>{console.error("Whatmore :: Error while blessing "+e.message)})},u=function(e){const t=(0,o.Xd)("whatmoreVideoPlayerPool"),n=e.children[0];n.muted=!0,!n.paused&&n.pause(),t.appendChild(n)}},2039:function(e,t,n){n.d(t,{Il:function(){return i},Th:function(){return r},ij:function(){return o}});const o=function(e){return"video"===e.event_type},i=function(e){return"image"===e.event_type},r=function(e){return"livestream"===e.event_type}},2979:function(e,t,n){n.d(t,{S:function(){return d}});var o=n(6649),i=n(5551),r=n(9950),c=n(7145),a=n(4414);const d=function(e){var t;const[n,d,u]=(0,o.A)({triggerOnce:!1,threshold:null!==(t=e.threshold)&&void 0!==t?t:1}),{whatmoreWidgetSourceDetails:s}=(0,r.useContext)(i.B);return(0,r.useEffect)(()=>{var t,n,o,i;d&&null!==(t=e.triggerFlag)&&void 0!==t&&t&&(0,c.B)({userInteractionType:e.userInteractionType,userInteractionMetadata:null!==(n=e.userInteractionMetadata)&&void 0!==n?n:{},widgetSourceDetails:s,event:e.event,productList:null!==(o=e.productList)&&void 0!==o?o:[],ctaList:null!==(i=e.ctaList)&&void 0!==i?i:[]})},[d]),(0,a.jsx)("div",{style:{height:"100%"},ref:n,children:e.children})}},3330:function(e,t,n){n.d(t,{initializeGA:function(){return h},n:function(){return g},sendVideoViewEventToGA:function(){return v}});var o,i=n(2595),r=n(7732),c=n(1348),a=n(5830),d=n(6157);const u="Whatmore Video Shopping",s=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,l={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},p={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},_={homepage:"Home Page",product_page:"Product Page"};async function h(e){if((0,c.M$H)(e)&&null!==(0,c.xIo)(e)&&(r.Ay.initialize((0,c.xIo)(e)),s&&console.debug("Whatmore: initialized GA4")),(0,c.B6P)(e)&&null!==(0,c.jWS)(e)){const t=(0,c.Gc6)(e);i.Ay.initialize((0,c.jWS)(e),{useExistingGa:t}),s&&console.debug("Whatmore: initialized GA3")}}async function v(e,t,n){(0,c.B6P)(e)&&null!==(0,c.jWS)(e)&&(i.Ay.event({category:u,action:l.video_view,label:_[t]+":"+p[n]}),s&&console.debug("Whatmore: pushed view event to GA3")),(0,c.M$H)(e)&&null!==(0,c.xIo)(e)&&(r.Ay.event({category:u,action:l.video_view+":"+_[t]+":"+p[n],value:1,nonInteraction:!1}),s&&console.debug("Whatmore: pushed view event to GA4"))}async function g(e){const t=(0,a.Xd)("whatmoreShopId");if(["56352899156"].includes(t)&&"object"==typeof window.dataLayer){var n,o,i,r;const t=(u=e.selection_type)==d.O.EVENT_VIEW?"whatmore_video_click_event":u==d.O.PRODUCT_TILE_ATC_CLICKED||u==d.O.SHOPNOW_ATC_CLICKED?"whatmore_video_atc_event":u==d.O.PRODUCT_TILE_SHOPNOW_CLICKED?"whatmore_product_tile_click_event":u==d.O.VIDEO_LIKED?"whatmore_video_like_event":u==d.O.VIDEO_SHARE_CTA_CLICKED?"whatmore_video_share_event":u==d.O.VIDEO_PLAYBACK?"whatmore_video_watch_event":void 0;if(!t)return;const a={event:"video_interaction",page_type:null!==(c=e.page_type,n=c.startsWith("index")?"home":c.startsWith("product")?"product_page":c.startsWith("collection")||c.startsWith("page")?"collection_page":void 0)&&void 0!==n?n:"NA",selection_type:t,video_name:null!==(o=e.video_name)&&void 0!==o?o:"NA",video_percentage:null!==(i=e.video_percentage)&&void 0!==i?i:"NA",product_name:null!==(r=e.product_name)&&void 0!==r?r:"NA"};window.dataLayer.push(a),s&&console.debug("Whatmore: pushed event to dataLayer",a)}var c,u}},6157:function(e,t,n){n.d(t,{O:function(){return o},l:function(){return i}});const o=Object.freeze({EVENT_VIEW:"event-view",PRODUCT_CTA_VIEW:"product-cta-view",SHOPNOW_ATC_CLICKED:"shop-now-atc-clicked",SHOPNOW_BUYNOW_CLICKED:"shop-now-buy-now-clicked",PRODUCT_TILE_ATC_CLICKED:"product-tile-atc-clicked",PRODUCT_TILE_SHOPNOW_CLICKED:"product-tile-shopnow-clicked",VIDEO_LIKED:"video-liked",VIDEO_UNLIKED:"video-unliked",VIDEO_SHARE_CTA_CLICKED:"video-share-cta-clicked",VIDEO_MUTED:"video-muted",HOMEPAGE_CAROUSEL_SWIPED:"homepage-carousel-swiped",HOMEPAGE_VISITED:"homepage-visited",COLLECTION_PAGE_VISITED:"collection-page-visited",PDP_VISITED:"product-page-visited",HOMEPAGE_CAROUSEL_WIDGET_VIEW:"homepage-carousel-widget-view",BANNER_WIDGET_VIEW:"banner-widget-view",STORIES_WIDGET_VIEW:"stories-widget-view",COLLECTION_WIDGET_VIEW:"collection-widget-view",SPOTLIGHT_WIDGET_VIEW:"spotlight-widget-view",PDP_POPUP_WIDGET_VIEW:"pdp-popup-widget-view",PDP_POPUP_CLOSED:"pdp-popup-closed",VIDEO_PLAYBACK:"video-watched",SHOPNOW_CLICKED:"shopnow-clicked",WHATSAPP_ICON_CLICKED:"whatsapp-icon-clicked",BANNER_WIDGET_CLICKED:"banner-widget-clicked",QUESTION_VIEWED:"question-viewed",QUESTION_ANSWERED:"question-answered",QUESTION_CLOSED:"question-closed",PRODUCT_TILE_ALL_ATC_CLICKED:"product-tile-all-atc"}),i=function(e,t){return{name:e,metadata:t}}},6613:function(e,t,n){n.d(t,{At:function(){return o},MN:function(){return i}});const o=()=>"undefined"!==typeof navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream),i=()=>o()||"undefined"!==typeof navigator&&/Macintosh/.test(navigator.userAgent)},7145:function(e,t,n){n.d(t,{B:function(){return s}});var o=n(6641),i=n(1348),r=n(5830),c=n(4820);var a=n(6157),d=n(2089),u=n(4533);const s=function({userInteractionType:e="",userInteractionMetadata:t={},widgetSourceDetails:n={},event:s="",productList:l=[],ctaList:p=[]}={}){var _;const h=(0,r.Xd)("isInDesignMode"),v=(0,r.Xd)("isDemoBrand"),g=(0,r.Xd)("whatmoreShopId"),w="72201044272"==g&&"event-view"==e?null!==(_=JSON.parse(localStorage.getItem("_user_wh_lc")))&&void 0!==_?_:{latitude:"",longitude:""}:{};if(t={...t,...w,user_type:null!=localStorage.getItem("w_user_type")?"olduser":"newuser"},!(0,i.rkx)(g)||v||h)return;e!=a.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW&&e!=a.O.STORIES_WIDGET_VIEW&&e!=a.O.COLLECTION_WIDGET_VIEW&&e!=a.O.PDP_POPUP_WIDGET_VIEW||null!=localStorage.getItem("wht_is_impression")||localStorage.setItem("wht_is_impression",!0);const f="_whatmore_bulk_events",m=function(){var e;return{user_id:(0,u.wm)(),session_id:(0,u.zv)(),user_group:null!==(e=localStorage.getItem("wht_user_group"))&&void 0!==e?e:"",user_agent:navigator.userAgent,store_id:(0,r.Xd)("whatmoreShopId"),hostname:window.location.hostname,page_path:window.location.pathname,event_id:(0,d.Ak)(),event_timestamp:Math.round((new Date).getTime()/1e3)}}(),I=(0,a.l)(e,t),E=function(e,t,n,o){var i;return{landing_location_type:t.landingLocationType,template_type:t.templateType,whatmore_event:{id:e.event_id,eventset_id:null!==(i=e.eventset_id)&&void 0!==i?i:null,cta_list:o.map(e=>e.cta_id),product_list:n.map(e=>e.product_id)}}}(s,n,l,p),y=(0,r.Xd)("whatmoreLoggingActive"),O={...m,interaction_data:I,data:E},T=JSON.parse(localStorage.getItem(f))||[];if(T.push(O),localStorage.setItem(f,JSON.stringify(T)),y&&(0,o.xv)(O),clearTimeout(localStorage.getItem("_whatmore_bulk_timer_id")),T.length>=9)(0,c.u)(T),localStorage.removeItem(f);else if(T.length>0){let e=setTimeout(()=>{(0,c.u)(T),localStorage.removeItem(f)},9e3);localStorage.setItem("_whatmore_bulk_timer_id",e)}}},9821:function(e,t,n){function o(){const e=navigator.userAgent||navigator.vendor||window.opera;if(!/iPhone/.test(e))return!1;const{width:t,height:n}=window.screen;return[{width:320,height:480},{width:320,height:568},{width:375,height:667},{width:414,height:736},{width:375,height:812},{width:414,height:896},{width:360,height:780},{width:390,height:844},{width:428,height:926},{width:393,height:852},{width:430,height:932}].some(e=>e.width===t&&e.height===n||e.width===n&&e.height===t)}n.d(t,{_:function(){return o}})}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[816],{140:function(e,t,n){n.d(t,{$B:function(){return u},A9:function(){return d},Pb:function(){return s},TG:function(){return v},TJ:function(){return p},Zh:function(){return a},lB:function(){return c},tO:function(){return l}});var o,i=n(964);const r=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o;function c(e){r&&console.debug("updating user view count for event.");const t={event_id:e.event_id,increase_by:1};fetch(i.$$+"/event/metrics/views",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>(r&&console.debug("updating user view count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user view count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating user view count user for event : ",e)})}function u(e,t){r&&console.debug("updating like count for event.");const n={event_id:e.event_id,increase_by:t};fetch(i.$$+"/event/metrics/like",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>(r&&console.debug("updating like count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating like count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating like count user for event : ",e)})}function a(e){r&&console.debug("updating share count for event.");const t={event_id:e.event_id,increase_by:1};fetch(i.$$+"/event/metrics/share",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>(r&&console.debug("updating share count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating share count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating share count user for event : ",e)})}function d(e,t){r&&console.debug("updating wa click count for event.");const n={event_id:e.event_id,increase_by:t};fetch(i.$$+"/event/metrics/whatsapp",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>(r&&console.debug("updating whatsapp click count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating whatsapp click count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating whatsapp click count user for event : ",e)})}function s(e,t){r&&console.debug("updating event-product click count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(i.$$+"/event/metrics/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>(r&&console.debug("updating user event-product click count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user event-product click count response : "+JSON.stringify(e))}).catch(t=>{console.error("error updating user event-product click count for event {} : ",e.event_id,t)})}function l(e,t,n){r&&console.debug("updating event-product add to cart count for event {} and product {}.",e.event_id,t.product_id);const o={event_id:e.event_id,product_id:t.product_id,increase_by:n};fetch(i.$$+"/event/metrics/add_to_cart",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)}).then(e=>(r&&console.debug("updating user event-product add to cart count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user event-product add to cart count response : "+JSON.stringify(e))}).catch(t=>{console.error("error updating user event-product add to cart count for event {} : ",e.event_id,t)})}function p(e,t){r&&console.debug("updating event-product buy now count for event {} and product {}.",e.event_id,t.product_id);const n={event_id:e.event_id,product_id:t.product_id,increase_by:1};fetch(i.$$+"/event/metrics/buy_now",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}).then(e=>(r&&console.debug("updating user event-product buy now count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user event-product buy now count response : "+JSON.stringify(e))}).catch(t=>{console.error("error updating user event-product buy now count for event {} : ",e.event_id,t)})}function v(e){const t={event_id:e.event.event_id,cta_id:e.cta.cta_id,increase_by:1};fetch(i.$$+"/event/metrics/cta/clicks",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>(r&&console.debug("updating user cta click count response : HTTP "+e.status),e.json())).then(e=>{r&&console.debug("updating user cta click count response : "+JSON.stringify(e))}).catch(e=>{console.error("error updating cta click count : ",e)})}},1085:function(e,t,n){n.d(t,{F5:function(){return i},Pc:function(){return c},Z4:function(){return u},bo:function(){return a},rq:function(){return d}});var o=n(5830);const i=6;function r(){const e=(0,o.Xd)("whatmoreVideoPlayerPool");var t=document.createElement("video");return t.setAttribute("class","whatmore-video-player whatmore-main-video-player-from-pool"),t.setAttribute("width","100%"),t.setAttribute("src","https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4"),t.muted=!0,t.setAttribute("height","100%"),t.setAttribute("preload","auto"),t.setAttribute("loop",""),t.setAttribute("playsinline",""),t.setAttribute("x-webkit-airplay","allow"),t.controls=!1,e.appendChild(t),t}const c=function(e){for(let t=1;t<=e;t++)r();(0,o.t2)("whatmoreVideoPlayerPoolInitiated",!0)};const u=function(e,t,n,i,r){(0,o.Xd)("whatmoreVideoPlayerPool");const c=function(e,t,n){var i=(r=(0,o.Xd)("whatmoreVideoPlayerPool").children,r.length>0?r[0]:null);var r;if(!i)throw new Error("Whatmore :: not enough blessed videos available in video pool.");return i.setAttribute("src",e),i.muted=t,i.play().then(()=>{!n&&i.pause()}).catch(e=>{}),i}(t,n,i);return e.innerHTML="",e.appendChild(c),c},a=async function(){const e=(0,o.Xd)("whatmoreVideoPlayerPool"),t=(0,o.Xd)("whatmoreVideoPlayerPoolInitiated");t||c(i);var n=[];for(let o of e.children){o.muted=!0;var r=o.play().then(e=>(!t&&o.pause(),e));n.push(r)}await Promise.all(n).then(e=>{(0,o.t2)("whatmoreVideoPlayerPoolBlessed",!0)}).catch(e=>{console.error("Whatmore :: Error while blessing "+e.message)})},d=function(e){const t=(0,o.Xd)("whatmoreVideoPlayerPool"),n=e.children[0];n.muted=!0,!n.paused&&n.pause(),t.appendChild(n)}},2039:function(e,t,n){n.d(t,{Il:function(){return i},Th:function(){return r},ij:function(){return o}});const o=function(e){return"video"===e.event_type},i=function(e){return"image"===e.event_type},r=function(e){return"livestream"===e.event_type}},2979:function(e,t,n){n.d(t,{S:function(){return a}});var o=n(6649),i=n(5551),r=n(9950),c=n(7145),u=n(4414);const a=function(e){var t;const[n,a,d]=(0,o.A)({triggerOnce:!1,threshold:null!==(t=e.threshold)&&void 0!==t?t:1}),{whatmoreWidgetSourceDetails:s}=(0,r.useContext)(i.B);return(0,r.useEffect)(()=>{var t,n,o,i;a&&null!==(t=e.triggerFlag)&&void 0!==t&&t&&(0,c.B)({userInteractionType:e.userInteractionType,userInteractionMetadata:null!==(n=e.userInteractionMetadata)&&void 0!==n?n:{},widgetSourceDetails:s,event:e.event,productList:null!==(o=e.productList)&&void 0!==o?o:[],ctaList:null!==(i=e.ctaList)&&void 0!==i?i:[]})},[a]),(0,u.jsx)("div",{style:{height:"100%"},ref:n,children:e.children})}},3330:function(e,t,n){n.d(t,{initializeGA:function(){return _},n:function(){return g},sendVideoViewEventToGA:function(){return h}});var o,i=n(2595),r=n(7732),c=n(1348),u=n(5830),a=n(6157);const d="Whatmore Video Shopping",s=null!==(o="true"==localStorage.getItem("whatmoreActivateLogs"))&&void 0!==o&&o,l={video_view:"Video View",add_to_cart:"Add to Cart",buy_now:"Buy Now"},p={carousel:"Carousel",stories:"Stories",video_popup:"Video Popup"},v={homepage:"Home Page",product_page:"Product Page"};async function _(e){if((0,c.M$H)(e)&&null!==(0,c.xIo)(e)&&(r.Ay.initialize((0,c.xIo)(e)),s&&console.debug("Whatmore: initialized GA4")),(0,c.B6P)(e)&&null!==(0,c.jWS)(e)){const t=(0,c.Gc6)(e);i.Ay.initialize((0,c.jWS)(e),{useExistingGa:t}),s&&console.debug("Whatmore: initialized GA3")}}async function h(e,t,n){(0,c.B6P)(e)&&null!==(0,c.jWS)(e)&&(i.Ay.event({category:d,action:l.video_view,label:v[t]+":"+p[n]}),s&&console.debug("Whatmore: pushed view event to GA3")),(0,c.M$H)(e)&&null!==(0,c.xIo)(e)&&(r.Ay.event({category:d,action:l.video_view+":"+v[t]+":"+p[n],value:1,nonInteraction:!1}),s&&console.debug("Whatmore: pushed view event to GA4"))}async function g(e){const t=(0,u.Xd)("whatmoreShopId");if(["56352899156"].includes(t)&&"object"==typeof window.dataLayer){var n,o,i,r;const t=(d=e.selection_type)==a.O.EVENT_VIEW?"whatmore_video_click_event":d==a.O.PRODUCT_TILE_ATC_CLICKED||d==a.O.SHOPNOW_ATC_CLICKED?"whatmore_video_atc_event":d==a.O.PRODUCT_TILE_SHOPNOW_CLICKED?"whatmore_product_tile_click_event":d==a.O.VIDEO_LIKED?"whatmore_video_like_event":d==a.O.VIDEO_SHARE_CTA_CLICKED?"whatmore_video_share_event":d==a.O.VIDEO_PLAYBACK?"whatmore_video_watch_event":void 0;if(!t)return;const u={event:"video_interaction",page_type:null!==(c=e.page_type,n=c.startsWith("index")?"home":c.startsWith("product")?"product_page":c.startsWith("collection")||c.startsWith("page")?"collection_page":void 0)&&void 0!==n?n:"NA",selection_type:t,video_name:null!==(o=e.video_name)&&void 0!==o?o:"NA",video_percentage:null!==(i=e.video_percentage)&&void 0!==i?i:"NA",product_name:null!==(r=e.product_name)&&void 0!==r?r:"NA"};window.dataLayer.push(u),s&&console.debug("Whatmore: pushed event to dataLayer",u)}var c,d}},6157:function(e,t,n){n.d(t,{O:function(){return o},l:function(){return i}});const o=Object.freeze({EVENT_VIEW:"event-view",PRODUCT_CTA_VIEW:"product-cta-view",SHOPNOW_ATC_CLICKED:"shop-now-atc-clicked",SHOPNOW_BUYNOW_CLICKED:"shop-now-buy-now-clicked",PRODUCT_TILE_ATC_CLICKED:"product-tile-atc-clicked",PRODUCT_TILE_SHOPNOW_CLICKED:"product-tile-shopnow-clicked",VIDEO_LIKED:"video-liked",VIDEO_UNLIKED:"video-unliked",VIDEO_SHARE_CTA_CLICKED:"video-share-cta-clicked",VIDEO_MUTED:"video-muted",HOMEPAGE_CAROUSEL_SWIPED:"homepage-carousel-swiped",HOMEPAGE_VISITED:"homepage-visited",COLLECTION_PAGE_VISITED:"collection-page-visited",PDP_VISITED:"product-page-visited",HOMEPAGE_CAROUSEL_WIDGET_VIEW:"homepage-carousel-widget-view",BANNER_WIDGET_VIEW:"banner-widget-view",STORIES_WIDGET_VIEW:"stories-widget-view",COLLECTION_WIDGET_VIEW:"collection-widget-view",SPOTLIGHT_WIDGET_VIEW:"spotlight-widget-view",PDP_POPUP_WIDGET_VIEW:"pdp-popup-widget-view",PDP_POPUP_CLOSED:"pdp-popup-closed",VIDEO_PLAYBACK:"video-watched",SHOPNOW_CLICKED:"shopnow-clicked",WHATSAPP_ICON_CLICKED:"whatsapp-icon-clicked",BANNER_WIDGET_CLICKED:"banner-widget-clicked",QUESTION_VIEWED:"question-viewed",QUESTION_ANSWERED:"question-answered",QUESTION_CLOSED:"question-closed",PRODUCT_TILE_ALL_ATC_CLICKED:"product-tile-all-atc"}),i=function(e,t){return{name:e,metadata:t}}},6613:function(e,t,n){n.d(t,{At:function(){return o},MN:function(){return i}});const o=()=>"undefined"!==typeof navigator&&(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream),i=()=>o()||"undefined"!==typeof navigator&&/Macintosh/.test(navigator.userAgent)},7145:function(e,t,n){n.d(t,{B:function(){return s}});var o=n(6641),i=n(1348),r=n(5830),c=n(4820);var u=n(6157),a=n(2089),d=n(4533);const s=function({userInteractionType:e="",userInteractionMetadata:t={},widgetSourceDetails:n={},event:s="",productList:l=[],ctaList:p=[]}={}){var v;const _=(0,r.Xd)("isInDesignMode"),h=(0,r.Xd)("isDemoBrand"),g=(0,r.Xd)("whatmoreShopId"),f="72201044272"==g&&"event-view"==e?null!==(v=JSON.parse(localStorage.getItem("_user_wh_lc")))&&void 0!==v?v:{latitude:"",longitude:""}:{};if(t={...t,...f,user_type:null!=localStorage.getItem("w_user_type")?"olduser":"newuser"},!(0,i.rkx)(g)||h||_)return;e!=u.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW&&e!=u.O.STORIES_WIDGET_VIEW&&e!=u.O.COLLECTION_WIDGET_VIEW&&e!=u.O.PDP_POPUP_WIDGET_VIEW||null!=localStorage.getItem("wht_is_impression")||localStorage.setItem("wht_is_impression",!0);const w="_whatmore_bulk_events",m=function(){var e;return{user_id:(0,d.wm)(),session_id:(0,d.zv)(),user_group:null!==(e=localStorage.getItem("wht_user_group"))&&void 0!==e?e:"",user_agent:navigator.userAgent,store_id:(0,r.Xd)("whatmoreShopId"),hostname:window.location.hostname,page_path:window.location.pathname,event_id:(0,a.Ak)(),event_timestamp:Math.round((new Date).getTime()/1e3)}}(),I=(0,u.l)(e,t),E=function(e,t,n,o){var i;return{landing_location_type:t.landingLocationType,template_type:t.templateType,whatmore_event:{id:e.event_id,eventset_id:null!==(i=e.eventset_id)&&void 0!==i?i:null,cta_list:o.map(e=>e.cta_id),product_list:n.map(e=>e.product_id)}}}(s,n,l,p),y=(0,r.Xd)("whatmoreLoggingActive"),O={...m,interaction_data:I,data:E},T=JSON.parse(localStorage.getItem(w))||[];if(T.push(O),localStorage.setItem(w,JSON.stringify(T)),y&&(0,o.xv)(O),clearTimeout(localStorage.getItem("_whatmore_bulk_timer_id")),T.length>=9)(0,c.u)(T),localStorage.removeItem(w);else if(T.length>0){let e=setTimeout(()=>{(0,c.u)(T),localStorage.removeItem(w)},9e3);localStorage.setItem("_whatmore_bulk_timer_id",e)}}},7802:function(e,t,n){n.d(t,{Hl:function(){return i},Np:function(){return c},Po:function(){return u},Z_:function(){return o},Zf:function(){return d},d8:function(){return a},zJ:function(){return r}});const o=function(e,t){return!((void 0==e.products||0==e.products.length)&&(void 0==e.cta||0==e.cta.length))},i=function(e,t){return!(void 0==e.products||0==e.products.length)},r=function(e){if(null!=e)return e.filter(e=>{var t;return null===(t=null===e||void 0===e?void 0:e.in_stock)||void 0===t||t})},c=function(e,t=!1){var n,o;if(null!=e)return t?{events:e.events[0].events,all_events:null!==(o=null===e||void 0===e?void 0:e.all_events)&&void 0!==o?o:[]}:{events:null===e||void 0===e?void 0:e.events,all_events:null!==(n=null===e||void 0===e?void 0:e.all_events)&&void 0!==n?n:[]}};const u=function(e,t){var n,o;let i=[];if(null==e)return[];if("eventsets"in e&&e.eventsets[t]){const n=function(e){if(null==e||0==e.length)return[];let t=[];return e.forEach(e=>{t=t.concat(e.events)}),t}(e.eventsets[t]);i=[...n]}return{events:i,all_events:null!==(n=null===(o=i)||void 0===o?void 0:o.all_events)&&void 0!==n?n:[]}};function a(e){if(null!=e){var t=0;return e.forEach(e=>{e.index=t++}),e}}function d(e){if(null==e)return;let t=0;return e.reduce((e,n)=>{var o;return(null===(o=null===n||void 0===n?void 0:n.in_stock)||void 0===o||o)&&(n.index=t++,e.push(n)),e},[])}},9821:function(e,t,n){function o(){const e=navigator.userAgent||navigator.vendor||window.opera;if(!/iPhone/.test(e))return!1;const{width:t,height:n}=window.screen;return[{width:320,height:480},{width:320,height:568},{width:375,height:667},{width:414,height:736},{width:375,height:812},{width:414,height:896},{width:360,height:780},{width:390,height:844},{width:428,height:926},{width:393,height:852},{width:430,height:932}].some(e=>e.width===t&&e.height===n||e.width===n&&e.height===t)}n.d(t,{_:function(){return o}})}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see event-click-product.fa05560e.chunk.js.LICENSE.txt */
2
+ (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[592],{2173:function(t,e,r){const n=r(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0},t.exports.currencySymbolMap=n},2835:function(t,e,r){"use strict";var n=r(7891),o=r(8454),i=r(3781),s=r(5830),l=r(4414);e.A=function(t){var e;const r=(0,s.Xd)("whatmoreUITheme"),[a]=(0,s.QN)("whatmoreSecondaryColor"),[p,c]=(0,s.QN)("productRatings"),u=(0,s.Xd)("whatmorePrimaryFont"),f=t.productId,d=t.fontSize,m=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===p||"undefined"==typeof p||!(f in p)||p[f].avgRating>5)return(0,l.jsx)(l.Fragment,{});const v=p[f].avgRating,y=p[f].totalRatings;return(0,l.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,l.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,l.jsx)(n.A,{sx:{color:a,fontSize:d+"px"}},"star-icon"+e)),v-Math.floor(v)>.2?(0,l.jsx)(o.A,{sx:{color:a,fontSize:d+"px"}},"star-half-icon"):v-Math.floor(v)==0?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(i.A,{sx:{color:a,fontSize:d+"px"}},"star-outline-icon"),[...Array(Math.floor(5-v))].map((t,e)=>(0,l.jsx)(i.A,{sx:{color:a,fontSize:d+"px"}},"star-outline-icon-"+e)),(0,l.jsx)("div",{children:(0,l.jsx)("div",{width:"2px"})}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{style:{backgroundColor:a,borderRadius:"round"==r?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*d+"px","important"),t.style.setProperty("font-family",u,"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,l.jsx)("div",{children:(0,l.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",m,"important"),t.style.setProperty("font-size",.8*d+"px","important"),t.style.setProperty("font-family",u,"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,r){"use strict";function n(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}r.d(e,{$:function(){return n}})},3781:function(t,e,r){"use strict";var n=r(4994);e.A=void 0;var o=n(r(9526)),i=r(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")},7458:function(t,e,r){"use strict";r.d(e,{P:function(){return n}});const n=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},7891:function(t,e,r){"use strict";var n=r(4994);e.A=void 0;var o=n(r(9526)),i=r(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,r){"use strict";r.d(e,{B:function(){return s},b:function(){return i}});var n=r(1348),o=r(5830);function i(t,e=""){const r=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,n.NCy)(r)?"STRNV8MHJTF"==r?t+"?format=webp":t:t+e}function s(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const r=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],n=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==n&&void 0!==n&&n.test(r)?"image":null!==o&&void 0!==o&&o.test(r)?"video":void 0}},8454:function(t,e,r){"use strict";var n=r(4994);e.A=void 0;var o=n(r(9526)),i=r(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,r){"use strict";r.d(e,{v:function(){return o}});var n=r(5830);function o(t,e){const r=(0,n.Xd)("whatmoreShopId");return"undefined"==typeof t||"undefined"==t||null==t?"":"6873415750"==r||"72442478904"==r||"58562281529"==r?t:"66168324332"==r&&"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,r){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}r.d(e,{A:function(){return o}});var o=function t(e,r){function o(t,o,i){if("undefined"!==typeof document){"number"===typeof(i=n({},r,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 s="";for(var l in i)i[l]&&(s+="; "+l,!0!==i[l]&&(s+="="+i[l].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+s}}return Object.create({set:o,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),s=i.slice(1).join("=");try{var l=decodeURIComponent(i[0]);if(n[l]=e.read(s,l),t===l)break}catch(a){}}return t?n[t]:n}},remove:function(t,e){o(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},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:"/"})}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see event-click-spotlight.81f65ec2.chunk.js.LICENSE.txt */
2
+ (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[592,657],{1351:function(t,e,n){"use strict";n.d(e,{PG:function(){return l},kz:function(){return s},UM:function(){return u},yP:function(){return p},DG:function(){return d}});var i=n(1348),o=n(3330),r=n(6157);function a(t,e,n={},i){var o;const a=l[t];if(!a)return;const c=a.isActionEnabled(),s=null===i||void 0===i||null===(o=i.meta_actions)||void 0===o?void 0:o[a.customAction];(c||s)&&"function"==typeof fbq&&(async()=>{const i={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:n.watch_time,video_duration:n.video_duration}};fbq("trackCustom",a.action,i),s&&setTimeout(()=>{null===s||void 0===s||s.forEach(t=>{fbq("trackCustom",t,i)})},500)})()}var c=n(7145);const l={[r.O.EVENT_VIEW]:{isActionEnabled:i.NFF,action:"whatmore_video_click_event",customAction:"video_clicked"},[r.O.VIDEO_PLAYBACK]:{isActionEnabled:i.Eel,action:"whatmore_video_watch_event",customAction:"video_watched"},[r.O.VIDEO_LIKED]:{isActionEnabled:i.Mz3,action:"whatmore_video_like_event",customAction:"video_liked"},[r.O.VIDEO_SHARE_CTA_CLICKED]:{isActionEnabled:i.OLZ,action:"whatmore_video_share_event",customAction:"video_shared"},[r.O.SHOPNOW_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.PRODUCT_TILE_ATC_CLICKED]:{isActionEnabled:i.T9r,action:"whatmore_video_atc_event",customAction:"video_atc_clicked"},[r.O.SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"},[r.O.PRODUCT_TILE_SHOPNOW_CLICKED]:{isActionEnabled:i.nEf,action:"whatmore_product_tile_click_event",customAction:"video_product_tile_clicked"}};function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:i,productList:r,ctaList:s}){var d,u,p,v;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:i,productList:r,ctaList:s}),t in l)&&(a(t,null!==(d=null===r||void 0===r?void 0:r[1])&&void 0!==d?d:null===r||void 0===r?void 0:r[0],e,i),(0,o.n)({page_type:n.landingLocationType,selection_type:t,video_name:i.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 d({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:i,productList:r,ctaList:s}){var d,u,p,v;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:i,productList:r,ctaList:s}),t in l)&&(a(t,null!==(d=null===r||void 0===r?void 0:r[1])&&void 0!==d?d:null===r||void 0===r?void 0:r[0],e,i),(0,o.n)({page_type:n.landingLocationType,selection_type:t,video_name:i.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:n,event:i,productList:r,ctaList:a}){var s,d,u;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:i,productList:r,ctaList:a}),t in l)&&(0,o.n)({page_type:n.landingLocationType,selection_type:t,video_name:i.event_id,video_percentage:"NA",product_name:null!==(s=null===r||void 0===r||null===(d=r[1])||void 0===d?void 0:d.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:n,event:i,productList:o,ctaList:r}){(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:n,event:i,productList:o,ctaList:r})}},2173:function(t,e,n){const i=n(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0},t.exports.currencySymbolMap=i},2835:function(t,e,n){"use strict";var i=n(7891),o=n(8454),r=n(3781),a=n(5830),c=n(4414);e.A=function(t){var e;const n=(0,a.Xd)("whatmoreUITheme"),[l]=(0,a.QN)("whatmoreSecondaryColor"),[s,d]=(0,a.QN)("productRatings"),u=(0,a.Xd)("whatmorePrimaryFont"),p=t.productId,v=t.fontSize,f=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===s||"undefined"==typeof s||!(p in s)||s[p].avgRating>5)return(0,c.jsx)(c.Fragment,{});const m=s[p].avgRating,y=s[p].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(m))].map((t,e)=>(0,c.jsx)(i.A,{sx:{color:l,fontSize:v+"px"}},"star-icon"+e)),m-Math.floor(m)>.2?(0,c.jsx)(o.A,{sx:{color:l,fontSize:v+"px"}},"star-half-icon"):m-Math.floor(m)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(r.A,{sx:{color:l,fontSize:v+"px"}},"star-outline-icon"),[...Array(Math.floor(5-m))].map((t,e)=>(0,c.jsx)(r.A,{sx:{color:l,fontSize:v+"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:l,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*v+"px","important"),t.style.setProperty("font-family",u,"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",m,"\xa0"]})})}),(0,c.jsx)("div",{children:(0,c.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",f,"important"),t.style.setProperty("font-size",.8*v+"px","important"),t.style.setProperty("font-family",u,"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 i(t){if(!t)return"";return(new DOMParser).parseFromString(t,"text/html").body.textContent||""}n.d(e,{$:function(){return i}})},3781:function(t,e,n){"use strict";var i=n(4994);e.A=void 0;var o=i(n(9526)),r=n(4414);e.A=(0,o.default)((0,r.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")},7458:function(t,e,n){"use strict";n.d(e,{P:function(){return i}});const i=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 i=n(4994);e.A=void 0;var o=i(n(9526)),r=n(4414);e.A=(0,o.default)((0,r.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 a},b:function(){return r}});var i=n(1348),o=n(5830);function r(t,e=""){const n=(0,o.Xd)("whatmoreShopId");return"shopify"!=(0,i.NCy)(n)?"STRNV8MHJTF"==n?t+"?format=webp":t:t+e}function a(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],i=/\.(jpeg|jpg|gif|png|svg|webp)$/i,o=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==i&&void 0!==i&&i.test(n)?"image":null!==o&&void 0!==o&&o.test(n)?"video":void 0}},8454:function(t,e,n){"use strict";var i=n(4994);e.A=void 0;var o=i(n(9526)),r=n(4414);e.A=(0,o.default)((0,r.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 i=n(5830);function o(t,e){const n=(0,i.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 i(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}n.d(e,{A:function(){return o}});var o=function t(e,n){function o(t,o,r){if("undefined"!==typeof document){"number"===typeof(r=i({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in r)r[c]&&(a+="; "+c,!0!==r[c]&&(a+="="+r[c].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+a}}return Object.create({set:o,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],i={},o=0;o<n.length;o++){var r=n[o].split("="),a=r.slice(1).join("=");try{var c=decodeURIComponent(r[0]);if(i[c]=e.read(a,c),t===c)break}catch(l){}}return t?i[t]:i}},remove:function(t,e){o(t,"",i({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,i({},this.attributes,e))},withConverter:function(e){return t(i({},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:"/"})}}]);
@@ -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(){}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[760],{1985:function(e,t,n){n.r(t);var r=n(5830),s=n(9950),o=n(1348),i=n(6649),a=n(4414);const c=s.lazy(()=>Promise.all([n.e(286),n.e(725),n.e(199)]).then(n.bind(n,3350)));t.default=function(e){const[t]=(0,r.QN)("whatmoreShopId"),[n]=(0,r.QN)("whatmoreHeading"),[l,d]=(0,s.useState)(["initial",window.pageYOffset]),[u,h]=(0,s.useState)(!1),w="2665447536"==t?30:10,f=(0,r.Xd)("isLandingSharedLink");(0,s.useEffect)(()=>{if(!(0,o.FlM)(t))return;const e=w;let n=window.pageYOffset,r=!1;const s=()=>{const t=window.pageYOffset;var s,o;Math.abs(t-n)<e?r=!1:(o=!0,d(s=[t>n?"scrolled-down":"scrolled-up",t]),s[1]>w&&h(o),n=t>0?t:0,r=!1)},i=()=>{r||(window.requestAnimationFrame(s),r=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[]);const[g,v,p]=(0,i.A)({triggerOnce:!0});return(0,a.jsx)("div",{ref:g,style:{display:"block",height:"100%"},children:u||v||f||!(0,o.FlM)(t)||(0,o.wQ2)(t)?(0,a.jsx)(c,{heading:n,shopId:t}):(0,a.jsx)("div",{})})}},6649:function(e,t,n){var r=n(9950);t.A=({triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:s=0}={})=>{const[o,i]=(0,r.useState)(!1),[a,c]=(0,r.useState)(null),l=(0,r.useRef)(null);return(0,r.useEffect)(()=>{const r=new IntersectionObserver((t,n)=>{t.forEach(t=>{c(t),t.isIntersecting?(i(!0),e&&n.disconnect()):e||i(!1)})},{root:t,rootMargin:n,threshold:s});return l.current&&r.observe(l.current),()=>{r.disconnect()}},[e,t,n,s]),[l,o,a]}}}]);
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[760],{1985:function(e,t,n){n.r(t);var r=n(5830),s=n(9950),o=n(1348),i=n(6649),a=n(4414);const c=s.lazy(()=>Promise.all([n.e(286),n.e(816),n.e(199)]).then(n.bind(n,3350)));t.default=function(e){const[t]=(0,r.QN)("whatmoreShopId"),[n]=(0,r.QN)("whatmoreHeading"),[l,d]=(0,s.useState)(["initial",window.pageYOffset]),[u,h]=(0,s.useState)(!1),w="2665447536"==t?30:10,f=(0,r.Xd)("isLandingSharedLink");(0,s.useEffect)(()=>{if(!(0,o.FlM)(t))return;const e=w;let n=window.pageYOffset,r=!1;const s=()=>{const t=window.pageYOffset;var s,o;Math.abs(t-n)<e?r=!1:(o=!0,d(s=[t>n?"scrolled-down":"scrolled-up",t]),s[1]>w&&h(o),n=t>0?t:0,r=!1)},i=()=>{r||(window.requestAnimationFrame(s),r=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[]);const[g,v,p]=(0,i.A)({triggerOnce:!0});return(0,a.jsx)("div",{ref:g,style:{display:"block",height:"100%"},children:u||v||f||!(0,o.FlM)(t)||(0,o.wQ2)(t)?(0,a.jsx)(c,{heading:n,shopId:t}):(0,a.jsx)("div",{})})}},6649:function(e,t,n){var r=n(9950);t.A=({triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:s=0}={})=>{const[o,i]=(0,r.useState)(!1),[a,c]=(0,r.useState)(null),l=(0,r.useRef)(null);return(0,r.useEffect)(()=>{const r=new IntersectionObserver((t,n)=>{t.forEach(t=>{c(t),t.isIntersecting?(i(!0),e&&n.disconnect()):e||i(!1)})},{root:t,rootMargin:n,threshold:s});return l.current&&r.observe(l.current),()=>{r.disconnect()}},[e,t,n,s]),[l,o,a]}}}]);
@@ -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.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(851),l=o(1085),u=o(6613),p=o(3330),v=(o(3262),o(572)),h=o(8603),m=o(2039),f=o(4833),g=o(5551),w=o(1351),y=o(6157),b=o(2979),x=o(6641),_=o(8945),S=o(9821),E=o(69),T=o(1019),j=o(4414);const A=(0,h.A)({key:"whatmore-css-ppv"}),C=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))),k=n.lazy(()=>o.e(374).then(o.bind(o,5100)));function I(t){return t.split(/[?#]/)[0]}e.default=function(t){const[e,o]=(0,n.useState)(),[h,L]=(0,n.useState)(),[P]=(0,a.QN)("isInDesignMode"),[N]=(0,a.QN)("isDemoBrand"),[O]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[D,q]=(0,n.useState)(-2),[M]=(0,a.QN)("whatmoreVariantId"),[z]=(0,a.QN)("whatmoreShopId");var[R]=(0,a.QN)("whatmoreProductId");const Q=(0,a.Xd)("isLandingSharedLink"),V=(0,a.Xd)("whatmoreShareTemplateId"),F=(0,a.Xd)("whatmoreShareEventId"),B=Q&&"template-embed"===(0,f.Mm)(V),[$,W]=(0,n.useState)(B);R=(0,i.BcY)(z)?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?I(window.location.href).split("/").pop():I(window.location.href)}(z):R;const[G,H]=(0,n.useState)(()=>"true"===O?M:R),[U,K]=(0,n.useState)(!1);var Y=((0,i.jpW)(z)?r.$$:r.MT)+"/v2/brand/"+z+"/product-events";const{whatmoreWidgetSourceDetails:X}=(0,n.useContext)(g.B);(0,n.useEffect)(()=>{(0,p.initializeGA)(z),(0,x.Fk)("Video shopping powered by Whatmore!"),(0,c.wm)()},[]),(0,n.useEffect)(()=>{null==e||0==e.length||h||!(0,u.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,S._)()?(0,l.Pc)(l.F5):(0,E.bi)())},[e]),(0,n.useEffect)(()=>{if(q(-1),(0,i.WH1)(z)){const t=(0,T.B)(z),e=(0,i.buK)(z);fetch(`${t}?client_product_id=${G}&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 i;const r=e?null===t||void 0===t?void 0:t.all_events:null===t||void 0===t||null===(i=t.related_events)||void 0===i?void 0:i.map(t=>({...t,isRelatedEvent:!0}));o([...n,...r])}else o([])}).catch(t=>L(t.message))}else fetch(Y.toString()+"?client_product_id="+G.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)(z)&&(0,i.YOR)(t),o(t),t)).then(t=>((0,i.Uht)(z)&&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==I(window.location.href))return;const n={product_id:o.product_id,product_link:I(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)})},500)}(t,G),t)).catch(t=>{L(t.message)})},[G]),(0,n.useEffect)(()=>{var t,o;q(-2),(e&&e.length>0||"Scale"==(0,i.yt9)(z)||"Enterprise"==(0,i.yt9)(z)||"Premium"==(0,i.yt9)(z))&&(0,w.yP)({userInteractionType:y.O.PDP_VISITED,widgetSourceDetails:X,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=I(window.location.href);"8111554613"===z&&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"==z&&window.location.origin+window.location.pathname!=t&&fetch(window.location.origin+window.location.pathname+".json").then(t=>t.json()).then(t=>{var e;return H(null===t||void 0===t||null===(e=t.product)||void 0===e?void 0:e.id)}),"true"===O){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&&H(t)}})},[]),(0,n.useEffect)(()=>{if(null!=e&&0!==e.length&&!h&&B&&((0,_.H)("whatmore-video-player",()=>{W(!1)}),null!=F)){const t=e.find(t=>F==t.event_id);if(t)return void tt(t,!0,e.indexOf(t))}},[e]);const J=X.landingLocationType,Z=X.templateType,tt=async(t,e=!1,o=0)=>{if((0,u.MN)()&&!e&&await((0,S._)()?(0,l.bo)():(0,E.bi)()),(0,m.ij)(t)||(0,m.Il)(t))return P||N||(async()=>{const e=(0,f.Wd)(J)+(0,f.gf)(Z)+(null!==t&&void 0!==t&&t.isRelatedEvent?"R":"E")+"_"+(null===t||void 0===t?void 0:t.event_id);(0,d.lB)(t),(0,p.sendVideoViewEventToGA)(z,r.DK,r.K1),(0,c.Ch)(t.event_id,t.products,"product_page","video_popup",e)})(),(0,i.YE3)(z)&&K(!0),void q(o)};function et(){return(0,j.jsx)(j.Fragment,{})}return null==e||0==e.length||h||(0,f.Ig)(X.templateType)||!(0,i.fDZ)(z)?(0,j.jsx)("div",{}):(0,j.jsxs)(v.C,{value:A,children:[$&&(0,j.jsx)(k,{}),"no-product"===G||-1===D||0===e.length?(0,j.jsx)(et,{}):-2===D&&e.length>0?(0,j.jsx)("div",{children:(0,j.jsx)(b.S,{userInteractionType:y.O.PDP_POPUP_WIDGET_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!P&&!N,children:(0,j.jsx)(s.A,{event:e[0],inVideoClick:tt,closeClick:t=>{var o;t.stopPropagation(),q(-1),(0,w.kz)({userInteractionType:y.O.PDP_POPUP_CLOSED,widgetSourceDetails:X,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,j.jsx)("div",{children:(0,j.jsx)(n.Suspense,{children:(0,j.jsx)(b.S,{userInteractionType:y.O.EVENT_VIEW,event:e[0],productList:e[0].products,cta:e[0].cta,triggerFlag:!P&&!N,children:(0,j.jsx)(C,{events:e,index:D,onBack:function(){q(U?-1:-2),W(!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(){}}]);