whatmore-react-assets 1.0.1821 → 1.0.1823
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/css/411.742a9cfc.chunk.css +1 -0
- package/static/css/event-click-component.5626d6a2.chunk.css +1 -0
- package/static/css/homepage-carousel-view.5cbaba8c.chunk.css +1 -0
- package/static/js/245.495d00ff.chunk.js +2 -0
- package/static/js/411.14a5f69c.chunk.js +52 -0
- package/static/js/598.9757157f.chunk.js +281 -0
- package/static/js/865.da3e721a.chunk.js +2 -0
- package/static/js/atc-with-form.14662671.chunk.js +1 -0
- package/static/js/event-click-component.86dd3ac5.chunk.js +76 -0
- package/static/js/homepage-carousel-view.b720e002.chunk.js +15 -0
- package/static/js/react-main-app.b83e466d.chunk.js +1 -0
- package/whatmore.js +1 -2
- package/static/css/banner-template-a.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-a.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-ai.5886a824.chunk.css +0 -1
- package/static/css/carousel-template-f.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-feed.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-g.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-h.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-i.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-j.475a42b7.chunk.css +0 -1
- package/static/css/carousel-template-view-more.475a42b7.chunk.css +0 -1
- package/static/css/collections-template-a.83e3340f.chunk.css +0 -1
- package/static/css/collections-template-b.83e3340f.chunk.css +0 -1
- package/static/css/collections-template-c.83e3340f.chunk.css +0 -1
- package/static/css/collections-template-stories.83e3340f.chunk.css +0 -1
- package/static/css/event-click-product.68e25b66.chunk.css +0 -1
- package/static/css/spotlight-view.a1594fd1.chunk.css +0 -2
- package/static/css/stories-template-a.8292e9da.chunk.css +0 -1
- package/static/css/whatmore-root.09bcc075.chunk.css +0 -2
- package/static/js/257.731cff2e.chunk.js +0 -1
- package/static/js/286.70655d59.chunk.js +0 -1
- package/static/js/33.46a8c962.chunk.js +0 -1
- package/static/js/512.c411674d.chunk.js +0 -1
- package/static/js/526.706d86bb.chunk.js +0 -2
- package/static/js/620.8b81307a.chunk.js +0 -1
- package/static/js/820.3abb966c.chunk.js +0 -1
- package/static/js/832.8a126a68.chunk.js +0 -1
- package/static/js/981.93048a23.chunk.js +0 -281
- package/static/js/banner-template-a.32ec8591.chunk.js +0 -1
- package/static/js/carousel-template-a.f15148d1.chunk.js +0 -1
- package/static/js/carousel-template-ai.2232a497.chunk.js +0 -1
- package/static/js/carousel-template-b.52683dec.chunk.js +0 -1
- package/static/js/carousel-template-f.4ca967f4.chunk.js +0 -1
- package/static/js/carousel-template-feed.6e0611d8.chunk.js +0 -15
- package/static/js/carousel-template-g.2f11a57c.chunk.js +0 -1
- package/static/js/carousel-template-h.95284d4b.chunk.js +0 -1
- package/static/js/carousel-template-i.ef4eaa14.chunk.js +0 -1
- package/static/js/carousel-template-j.6e45a3e9.chunk.js +0 -1
- package/static/js/carousel-template-view-more.faaa02f7.chunk.js +0 -15
- package/static/js/collections-template-a.1f191615.chunk.js +0 -1
- package/static/js/collections-template-b.27d9d0b6.chunk.js +0 -1
- package/static/js/collections-template-c.5bcd3559.chunk.js +0 -1
- package/static/js/collections-template-stories.3684ecbf.chunk.js +0 -1
- package/static/js/embed-tracking-component.64b05bcf.chunk.js +0 -1
- package/static/js/event-click-product.ffdab8eb.chunk.js +0 -127
- package/static/js/event-click-spotlight.50e0f126.chunk.js +0 -1
- package/static/js/homepage-carousel-view.9dd55d57.chunk.js +0 -1
- package/static/js/product-page-view.9c0ab6ef.chunk.js +0 -1
- package/static/js/share-shimmer-loader.fe4b39e4.chunk.js +0 -1
- package/static/js/spotlight-view.a4edee17.chunk.js +0 -1
- package/static/js/stories-template-a.7a417d48.chunk.js +0 -1
- package/static/js/whatmore-root.cc24f244.chunk.js +0 -1
- /package/static/css/{product-page-view.a1594fd1.chunk.css → react-main-app.a1594fd1.chunk.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[657],{1351:function(t,e,o){o.d(e,{PG:function(){return d},kz:function(){return u},UM:function(){return l},yP:function(){return p},DG:function(){return s}});var n=o(1348),i=o(3330),r=o(6157);function a(t,e,o={},n){var i;const a=d[t];if(!a)return;const c=a.isActionEnabled(),u=null===n||void 0===n||null===(i=n.meta_actions)||void 0===i?void 0:i[a.customAction];(c||u)&&"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),u&&setTimeout(()=>{null===u||void 0===u||u.forEach(t=>{fbq("trackCustom",t,n)})},500)})()}var c=o(7145);const d={[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 u({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:u}){var s,l,p,m;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:u}),t in d)&&(a(t,null!==(s=null===r||void 0===r?void 0:r[1])&&void 0!==s?s: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!==(l=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==l?l:null===r||void 0===r||null===(m=r[0])||void 0===m?void 0:m.title}))}function s({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:u}){var s,l,p,m;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:u}),t in d)&&(a(t,null!==(s=null===r||void 0===r?void 0:r[1])&&void 0!==s?s: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!==(l=null===r||void 0===r||null===(p=r[1])||void 0===p?void 0:p.title)&&void 0!==l?l:null===r||void 0===r||null===(m=r[0])||void 0===m?void 0:m.title}))}function l({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:a}){var u,s,l;((0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:r,ctaList:a}),t in d)&&(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===(s=r[1])||void 0===s?void 0:s.title)&&void 0!==u?u:null===r||void 0===r||null===(l=r[0])||void 0===l?void 0:l.title})}function p({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r}){(0,c.B)({userInteractionType:t,userInteractionMetadata:e,widgetSourceDetails:o,event:n,productList:i,ctaList:r})}},3262:function(t,e,o){o.d(e,{initiateCartSliderEvent:function(){return r}});var n=o(5830),i=o(1745);const r=async function(t,e,o,r,a="",c="",d="",u="",s="",l=""){(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("60595503283"===t){async function w(t,e=1){try{const o=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t,quantity:e})});o.ok?setTimeout(()=>{(0,i.CP)(t),window.location.href="/cart"},500):console.error("Failed to add item to cart:",o.status)}catch(o){console.error("Error adding to cart:",o)}}return w(a,1),void setTimeout(e,o)}if("60183445561"===t){async function S(t,e=1,o="/cart"){const n=new URLSearchParams;n.append("id",t),n.append("quantity",e.toString()),n.append("return_to",o);const r=await fetch("https://tapee.in/cart/add",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString(),credentials:"include"}),a=await r.text();return r.ok&&setTimeout(()=>{(0,i.CP)(t),window.location.href="https://tapee.in/cart"},500),a}return S(a).catch(t=>{console.error("Error:",t)}),void setTimeout(e,o)}if("22907887"===t){async function b(t,e=1){const o=new FormData;o.append("id",t),o.append("quantity",e.toString());const n=document.querySelector("cart-notification, cart-drawer");if(n){const t=n.getSectionsToRender();o.append("sections",t.map(t=>t.id).join(","))}o.append("sections_url",window.location.pathname);const i=await fetch("/cart/add.js",{method:"POST",body:o});if(!i.ok){const t=await i.text();throw new Error(`Failed to add to cart: ${t}`)}const r=await i.json();return n&&n.renderContents&&n.renderContents(r),document.body.classList.remove("overflow-hidden"),document.querySelectorAll(".atc-container.active, .atc-variant-container.active, .pdp-atc-container.active").forEach(t=>t.classList.remove("active")),window.dispatchEvent(new CustomEvent("cart:added",{detail:{variantId:t,quantity:e,data:r}})),r}return b(a).then(t=>{setTimeout(()=>{f(a)},500)}).catch(t=>{console.error("Error:",t)}),void setTimeout(e,o)}if("28575536"===t||"64287408360"===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.handleFloCartBtn&&window.handleFloCartBtn(),setTimeout(()=>{f(a)},500)}).catch(t=>console.error("[Whatmore] Ripped Up Nutrition ATC error:",t)),void setTimeout(e,o);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("22907887"===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=>{setTimeout(()=>{f(a)},500)}).catch(t=>console.error("Add to cart error:",t)),void setTimeout(e,o);if("56444977250"===t){const A=document.querySelector('button[data-pf-type="ProductATC2"]');return A?(c&&A.setAttribute("data-product-id",c),A.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,d,u,s,!0,!0,!0)}})},500),void setTimeout(e,o)):(fetch(null===l||void 0===l||null===(p=l.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&&c&&e.setAttribute("data-product-id",c)}),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 C=a,E=1,g=document.querySelector('product-form form.product-form, form[action*="/cart/add"]');if(g){let q=g.querySelector('input[name="id"]');q||(q=document.createElement("input"),q.type="hidden",q.name="id",g.appendChild(q)),q.disabled=!1,q.value=C;const O=g.querySelector('input[name="quantity"]');O&&(O.value=E);const k=g.querySelector('button[data-add-to-cart], button[type="submit"]');return k?(k.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0})),k.click(),k.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0}))):console.warn("[ATC] button not found"),setTimeout(()=>{f(C)},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:C,quantity:E}),credentials:"same-origin"}).then(()=>{setTimeout(()=>{f(C)},500),setTimeout(e,o)}).catch(t=>{console.error("[ATC] error for 70840582336:",t),setTimeout(e,o)})}if("64683278550"===t){try{const L=document.querySelector('form[action="/cart/add"]');if(!L)return console.warn("[ATC 64683278550] form not found"),void setTimeout(e,o);const I=L.querySelector('input[name="id"]');if(!I)return console.warn("[ATC 64683278550] id input not found"),void setTimeout(e,o);I.value=a;const j=L.querySelector('button[type="submit"]');if(!j)return console.warn("[ATC 64683278550] submit button not found"),void setTimeout(e,o);j.click(),setTimeout(()=>{f(a)},500),setTimeout(e,o)}catch(_){console.error("[ATC 64683278550] error:",_),setTimeout(e,o)}return}const m=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},v=(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 c=i.querySelector('input[name="product-id"]');c&&(c.value=String(o))})(a,o,n),a}},h=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,d,u,s,!0,!0,!0)})},y=m(document);if(y||(null===y||void 0===y?void 0:y.length)>0){const P=v(y,a,c);h(P),setTimeout(()=>{f(a)},500),P.remove()}else{var T;fetch(null===l||void 0===l||null===(T=l.split("?"))||void 0===T?void 0:T[0]).then(t=>t.text()).then(t=>{const e=(new DOMParser).parseFromString(t,"text/html"),o=m(e);if(o||(null===o||void 0===o?void 0:o.length)>0){const t=v(o,a,c);h(t),setTimeout(()=>{f(a)},500),t.remove()}})}setTimeout(e,o)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
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(981),n.e(526),n.e(592),n.e(820),n.e(657),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 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[774],{69:function(e,t,n){n.d(t,{Ij:function(){return r},bi:function(){return a}});let i,o=!1;function r(){return i?i.play().then(()=>{o=!0,console.debug("iOS autoplay restrictions bypassed."),i.pause()}).catch(e=>{console.error("Failed to bless videos:",e.message)}):Promise.reject(new Error("Blessing video not initialized."))}function a(){i||(i=document.createElement("video"),i.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",i.muted=!0,i.playsInline=!0,i.style.display="none",document.body.appendChild(i));const e=()=>{o||r()};document.addEventListener("click",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0})}},851:function(e,t,n){n.d(t,{A:function(){return f}});var i=n(1005),o=n(9950),r=n(9879),a=n(22),s=n(5830),l=n(932);var d=function(e){const[t,n,i,o,r]=(0,l.A)(),[d]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),p=r[a.dl]===a.nN?c/100:d/100*1.2;return[t*p,n*p,r]},c=n(1628),p=n.n(c),u=n(6702),h=(n(9733),n(4365),n(1348)),v=n(4414);var m=({size:e,color:t="rgba(255, 255, 255, 0.9)"})=>(0,v.jsxs)("svg",{width:e,height:e,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,v.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,v.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var g=({size:e,color:t="rgba(255, 255, 255, 0.95)"})=>(0,v.jsxs)("svg",{width:.7*e,height:.7*e,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,v.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,v.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:t,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,v.jsxs)("defs",{children:[(0,v.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,v.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,v.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,v.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,v.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,v.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,v.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,v.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,v.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 f=function(e){var t;const n=o.useRef(null);var[l,c,f]=d();(0,s.Xd)("whatmoreUITheme");const[x]=(0,s.QN)("whatmorePrimaryFont"),[w]=(0,s.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,s.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[j]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[E]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[k]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),P=(0,s.Xd)("whatmoreShopId"),_=(0,s.Xd)("isWhatmorePreviewMode");var I=b,N=y,z=j;f[a.dl]===a.nN&&(I=S,N=E,z=k);const[T,C]=(0,o.useState)(["initial",window.pageYOffset]),[L,A]=(0,o.useState)(!1),Q=null!==(t=e.isSpotlight)&&void 0!==t&&t,R=f[a.dl]===a.nN?.8*(0,h.O86)(P):1.2*(0,h.O86)(P),D=Q?R:1.2;l*=D,c*=D;const O=Q?(0,h.LrK)(P):I,V=Q?(0,h._2D)(P):(0,h.GSq)(P),[F,M]=(0,o.useState)(!Q&&(0,h.n8Q)(P)),B=!Q&&(0,h.YE3)(P);function W(e,t){C(e),e[1]<=100?A(!1):t!=L&&(A(t),M(!1))}(0,o.useEffect)(()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(W([n>e?"scrolled-down":"scrolled-up",n],!0),e=n>0?n:0),t=!1},i=()=>{t||(window.requestAnimationFrame(n),t=!0)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[T]),(0,i.j)({ref:n,handler:()=>{W(["scrolled-up",T[1]],!0)}});const G=e.event,$=e.inVideoClick,H=e.closeClick,U=.25*c,X=.5*c,Y=.6*c,q="20px",K=(0,h.GvQ)(P);var Z=!1,J=0,ee=0;function te(e){Z=e}return(0,v.jsx)("div",{className:"wht-popup",children:F&&!V?(0,v.jsx)(v.Fragment,{}):L&&V?(0,v.jsx)("div",{style:"left"===O?{left:"16px",bottom:Q?(0,h.pUQ)(P)+"px":z+"px",position:"fixed",zIndex:K}:{right:"16px",bottom:Q?(0,h.pUQ)(P)+"px":z+"px",position:"fixed",zIndex:K},children:(0,v.jsxs)("div",{onClick:()=>{W(["initial",T[1]],!1)},style:{width:Y+"px",height:Y*(16/9)+"px",borderRadius:q,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"===O?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,v.jsx)("div",{style:{overflow:"hidden",borderRadius:q,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,v.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,v.jsx)(r.A,{url:G.thumbnail_image,isPlaying:!1,event:G})})}),(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,v.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,v.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:e=>{e.stopPropagation(),H()},children:(0,v.jsx)(m,{size:.8*U})})}),(0,v.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,v.jsx)(u.A,{sx:{color:"white",fontSize:2*U+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,v.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",bounds:_?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,J=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{Z&&(Math.abs(t.x-J)>5||Math.abs(t.y-ee)>5)?te(!1):(B&&H(e),$(G))},children:(0,v.jsx)("div",{ref:n,style:"left"===O?{left:Q?(0,h.D2A)(P)+"px":N+"px",bottom:Q?(0,h.pUQ)(P)+"px":z+"px",position:"fixed",zIndex:K}:{right:Q?(0,h.D2A)(P)+"px":N+"px",bottom:Q?(0,h.pUQ)(P)+"px":z+"px",position:"fixed",zIndex:K},children:(0,v.jsxs)("div",{style:{boxSizing:"border-box",width:e.isSpotlight&&"60122562760"==P?l+"px":c+"px",height:e.isSpotlight&&"60122562760"==P?c+"px":l+"px",borderRadius:q,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"===O?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,v.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:q,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,v.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==P?16/9:9/16},children:(0,v.jsx)(r.A,{url:G.thumbnail_image,isMuted:!0,isPlaying:!0,event:G})})}),(0,v.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,v.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,v.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,v.jsx)("div",{className:"close-btn",onClick:H,children:(0,v.jsx)(m,{size:U})})}),(0,v.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,v.jsx)(g,{size:X})}),(0,v.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:q,borderBottomRightRadius:q,background:w?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,v.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:x,fontWeight:"600",fontSize:.35*U+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:w})})]})})]})})})})}},1019:function(e,t,n){n.d(t,{B:function(){return r}});var i=n(1348),o=n(964);function r(e){return`${(0,i.jpW)(e)?o.$$:o.MT}/v2/brand/${e}/product-events/recommendation/cdn`}},3389:function(e,t,n){n.r(t);var i=n(9950),o=n(1348),r=n(964),a=n(5830),s=n(140),l=n(4533),d=n(7802),c=n(851),p=n(1085),u=n(6613),h=n(3330),v=(n(3262),n(572)),m=n(8603),g=n(2039),f=n(4833),x=n(5903),w=n(1351),b=n(6157),y=n(2979),j=n(6641),S=n(8945),E=n(9821),k=n(69),P=n(1019),_=n(4414);const I=(0,m.A)({key:"whatmore-css-ppv"}),N=i.lazy(()=>Promise.all([n.e(981),n.e(592)]).then(n.bind(n,2321))),z=i.lazy(()=>n.e(374).then(n.bind(n,5100)));function T(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,i.useState)(),[m,C]=(0,i.useState)(),[L]=(0,a.QN)("isInDesignMode"),[A]=(0,a.QN)("isDemoBrand"),[Q]=(0,a.QN)("whatmoreEmbedAppUseVariant"),[R,D]=(0,i.useState)(-2),[O]=(0,a.QN)("whatmoreVariantId"),[V]=(0,a.QN)("whatmoreShopId");var[F]=(0,a.QN)("whatmoreProductId");const M=(0,a.Xd)("isLandingSharedLink"),B=(0,a.Xd)("whatmoreShareTemplateId"),W=(0,a.Xd)("whatmoreShareEventId"),G=M&&"template-embed"===(0,f.Mm)(B),[$,H]=(0,i.useState)(G);F=(0,o.BcY)(V)?function(e){if("STRR72TX6AT"==e){var t;const e=null===(t=window.location.pathname)||void 0===t?void 0:t.split("/");return e[e.length-1]}return"STR6HARJ3QY"==e||"STRI4V3OYCH"==e||"STRGZ9TGDEQ"==e||"STRJ2T2QPKI"==e?T(window.location.href).split("/").pop():T(window.location.href)}(V):F;const[U,X]=(0,i.useState)(()=>"true"===Q?O:F),[Y,q]=(0,i.useState)(!1);var K=((0,o.jpW)(V)?r.$$:r.MT)+"/v2/brand/"+V+"/product-events";const{whatmoreWidgetSourceDetails:Z}=(0,i.useContext)(x.B);(0,i.useEffect)(()=>{(0,h.initializeGA)(V),(0,j.Fk)("Video shopping powered by Whatmore!"),(0,l.wm)()},[]),(0,i.useEffect)(()=>{null==t||0==t.length||m||!(0,u.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,E._)()?(0,p.Pc)(p.F5):(0,k.bi)())},[t]),(0,i.useEffect)(()=>{if(D(-1),(0,o.WH1)(V)){const e=(0,P.B)(V),t=(0,o.buK)(V);fetch(`${e}?client_product_id=${U}&limit=10&recommended=${!t}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then(e=>e.json()).then(e=>{const i=null===e||void 0===e?void 0:e.events;if((null===i||void 0===i?void 0:i.length)>0){var r;const a=t?null===e||void 0===e?void 0:e.all_events:null===e||void 0===e||null===(r=e.related_events)||void 0===r?void 0:r.map(e=>({...e,isRelatedEvent:!0}));let s=[...i,...a];(0,o.xku)(V)||(s=(0,d.Zf)(s)),n(s)}else n([])}).catch(e=>C(e.message))}else fetch(K.toString()+"?client_product_id="+U.toString()+"&status="+"upcoming".toString()+"&event_type=video").then(e=>e.json()).then(e=>e.events).then(e=>(null!=e&&0!=e.length&&(0,o.vfi)(V)&&(0,o.YOR)(e),(0,o.xku)(V)||(e=(0,d.Zf)(e)),n(e),e)).then(e=>((0,o.Uht)(V)&&function(e,t){setTimeout(async()=>{const n=e.reduce((e,t)=>[...e,...t.products],[]).filter(e=>e.client_product_id==t)[0];if(!n||n.product_link==T(window.location.href))return;const i={product_id:n.product_id,product_link:T(window.location.href)};fetch(r.$$+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})},500)}(e,U),e)).catch(e=>{C(e.message)})},[U]),(0,i.useEffect)(()=>{var e,n;D(-2),(t&&t.length>0||"Scale"==(0,o.yt9)(V)||"Enterprise"==(0,o.yt9)(V)||"Premium"==(0,o.yt9)(V))&&(0,w.yP)({userInteractionType:b.O.PDP_VISITED,widgetSourceDetails:Z,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(e=t[0])||void 0===e?void 0:e.products,ctaList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.cta})},[t]),(0,i.useEffect)(()=>{const e=T(window.location.href);"8111554613"===V&&setTimeout(()=>{const e=new Event("change",{bubbles:!0}),t=document.querySelector('[name="id"]')||document.querySelector("[data-variant-picker]")||document.querySelector(".variant-selector");t&&t.dispatchEvent(e)},100);let t=history.pushState;history.pushState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),e};let n=history.replaceState;history.replaceState=function(){let e=n.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))}),window.addEventListener("locationchange",function(){if("24950997070"==V&&window.location.origin+window.location.pathname!=e&&fetch(window.location.origin+window.location.pathname+".json").then(e=>e.json()).then(e=>{var t;return X(null===e||void 0===e||null===(t=e.product)||void 0===t?void 0:t.id)}),"true"===Q){const e=function(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var i=t[n].split("=");if(i[0]==e)return i[1]}return!1}("variant");e&&""!==e&&X(e)}})},[]),(0,i.useEffect)(()=>{if(null!=t&&0!==t.length&&!m&&G&&((0,S.H)("whatmore-video-player",()=>{H(!1)}),null!=W)){const e=t.find(e=>W==e.event_id);if(e)return void te(e,!0,t.indexOf(e))}},[t]);const J=Z.landingLocationType,ee=Z.templateType,te=async(e,t=!1,n=0)=>{if((0,u.MN)()&&!t&&await((0,E._)()?(0,p.bo)():(0,k.bi)()),(0,g.ij)(e)||(0,g.Il)(e))return L||A||(async()=>{const t=(0,f.Wd)(J)+(0,f.gf)(ee)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,s.lB)(e),(0,h.sendVideoViewEventToGA)(V,r.DK,r.K1),(0,l.Ch)(e.event_id,e.products,"product_page","video_popup",t)})(),(0,o.YE3)(V)&&q(!0),void D(n)};function ne(){return(0,_.jsx)(_.Fragment,{})}return null==t||0==t.length||m||(0,f.Ig)(Z.templateType)||!(0,o.fDZ)(V)?(0,_.jsx)("div",{}):(0,_.jsxs)(v.C,{value:I,children:[$&&(0,_.jsx)(z,{}),"no-product"===U||-1===R||0===t.length?(0,_.jsx)(ne,{}):-2===R&&t.length>0?(0,_.jsx)("div",{children:(0,_.jsx)(y.S,{userInteractionType:b.O.PDP_POPUP_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!L&&!A,children:(0,_.jsx)(c.A,{event:t[0],inVideoClick:te,closeClick:e=>{var n;e.stopPropagation(),D(-1),(0,w.kz)({userInteractionType:b.O.PDP_POPUP_CLOSED,widgetSourceDetails:Z,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.products})}})})}):(0,_.jsx)("div",{children:(0,_.jsx)(i.Suspense,{children:(0,_.jsx)(y.S,{userInteractionType:b.O.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!L&&!A,children:(0,_.jsx)(N,{events:t,index:R,onBack:function(){D(Y?-1:-2),H(!1)},template:"template-product-page"})})})})]})}},6649:function(e,t,n){var i=n(9950);t.A=({triggerOnce:e=!1,root:t=null,rootMargin:n="0px",threshold:o=0}={})=>{const[r,a]=(0,i.useState)(!1),[s,l]=(0,i.useState)(null),d=(0,i.useRef)(null);return(0,i.useEffect)(()=>{const i=new IntersectionObserver((t,n)=>{t.forEach(t=>{l(t),t.isIntersecting?(a(!0),e&&n.disconnect()):e||a(!1)})},{root:t,rootMargin:n,threshold:o});return d.current&&i.observe(d.current),()=>{i.disconnect()}},[e,t,n,o]),[d,r,s]}},8945:function(e,t,n){function i(e,t){let n=0;let i=new MutationObserver(function(){document.querySelector("."+e)?(t(),i.disconnect()):0==n&&(n=1,setTimeout(()=>{t(),i.disconnect()},8e3))});i.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{H:function(){return i}})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[374],{5100:function(n,e,i){i.r(e);var t=i(9950),r=i(1941),a=i(5830),s=i(4414);const o=t.memo(()=>{if(!(0,a.Xd)("isLandingSharedLink"))return(0,s.jsx)(s.Fragment,{});const[n]=(0,r.A)();return(0,s.jsxs)("div",{className:`shimmer-container ${n}`,children:["portrait"===n?(0,s.jsx)("div",{className:"shimmer-item portrait-full",children:(0,s.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map((n,e)=>(0,s.jsx)("div",{className:"shimmer-item landscape-item "+(1===e?"center-item":""),children:(0,s.jsx)("div",{className:"shimmer-effect"})},e)),(0,s.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})});e.default=o}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[717],{69:function(e,t,i){i.d(t,{Ij:function(){return n},bi:function(){return a}});let o,r=!1;function n(){return o?o.play().then(()=>{r=!0,console.debug("iOS autoplay restrictions bypassed."),o.pause()}).catch(e=>{console.error("Failed to bless videos:",e.message)}):Promise.reject(new Error("Blessing video not initialized."))}function a(){o||(o=document.createElement("video"),o.src="https://whatmore-other-assets.b-cdn.net/whatmore/dummy_for_video_pool_3s_muted_11kb.mp4",o.muted=!0,o.playsInline=!0,o.style.display="none",document.body.appendChild(o));const e=()=>{r||n()};document.addEventListener("click",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0})}},851:function(e,t,i){i.d(t,{A:function(){return v}});var o=i(1005),r=i(9950),n=i(9879),a=i(22),s=i(5830),l=i(932);var d=function(e){const[t,i,o,r,n]=(0,l.A)(),[d]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,s.QN)("whatmoreEmbedAppVideoPlayerSizeLandscape"),p=n[a.dl]===a.nN?c/100:d/100*1.2;return[t*p,i*p,n]},c=i(1628),p=i.n(c),h=i(6702),g=(i(9733),i(4365),i(1348)),u=i(4414);var x=({size:e,color:t="rgba(255, 255, 255, 0.9)"})=>(0,u.jsxs)("svg",{width:e,height:e,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,u.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,u.jsx)("path",{d:"M15 9l-6 6M9 9l6 6",stroke:t,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"all 0.3s ease"}})]});var m=({size:e,color:t="rgba(255, 255, 255, 0.95)"})=>(0,u.jsxs)("svg",{width:.7*e,height:.7*e,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,u.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,u.jsx)("path",{d:"M32 26 L32 54 L56 40 Z",fill:t,stroke:"none",style:{filter:"drop-shadow(0 2px 8px rgba(0,0,0,0.3))"}}),(0,u.jsxs)("defs",{children:[(0,u.jsxs)("radialGradient",{id:"playGradient",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.25)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.08)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.02)"})]}),(0,u.jsxs)("radialGradient",{id:"playGradientHover",cx:"0.3",cy:"0.3",r:"0.8",children:[(0,u.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0.4)"}),(0,u.jsx)("stop",{offset:"70%",stopColor:"rgba(255, 255, 255, 0.15)"}),(0,u.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.05)"})]})]}),(0,u.jsx)("style",{jsx:!0,children:"\n .premium-play-icon:hover { transform: scale(1.1); filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }\n .premium-play-icon:hover circle { fill: url(#playGradientHover); stroke: rgba(255, 255, 255, 0.4); transform: scale(1.05); }\n .premium-play-icon:hover path { fill: white; transform: translateX(1px); }\n .premium-play-icon:active { transform: scale(0.95); }\n "})]});var v=function(e){var t;const i=r.useRef(null);var[l,c,v]=d();(0,s.Xd)("whatmoreUITheme");const[f]=(0,s.QN)("whatmorePrimaryFont"),[w]=(0,s.QN)("whatmoreEmbedAppVideoTitle"),[b]=(0,s.QN)("whatmoreEmbedAppPositionPortrait"),[y]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingPortrait"),[j]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingPortrait"),[S]=(0,s.QN)("whatmoreEmbedAppPositionLandscape"),[_]=(0,s.QN)("whatmoreEmbedAppHorizontalPaddingLandscape"),[k]=(0,s.QN)("whatmoreEmbedAppVerticalPaddingLandscape"),E=(0,s.Xd)("whatmoreShopId"),I=(0,s.Xd)("isWhatmorePreviewMode");var z=b,N=y,C=j;v[a.dl]===a.nN&&(z=S,N=_,C=k);const[A,L]=(0,r.useState)(["initial",window.pageYOffset]),[P,Q]=(0,r.useState)(!1),F=null!==(t=e.isSpotlight)&&void 0!==t&&t,R=v[a.dl]===a.nN?.8*(0,g.O86)(E):1.2*(0,g.O86)(E),M=F?R:1.2;l*=M,c*=M;const D=F?(0,g.LrK)(E):z,T=F?(0,g._2D)(E):(0,g.GSq)(E),[O,V]=(0,r.useState)(!F&&(0,g.n8Q)(E)),G=!F&&(0,g.YE3)(E);function X(e,t){L(e),e[1]<=100?Q(!1):t!=P&&(Q(t),V(!1))}(0,r.useEffect)(()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(X([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},o=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[A]),(0,o.j)({ref:i,handler:()=>{X(["scrolled-up",A[1]],!0)}});const B=e.event,W=e.inVideoClick,H=e.closeClick,U=.25*c,Y=.5*c,$=.6*c,K="20px",q=(0,g.GvQ)(E);var J=!1,Z=0,ee=0;function te(e){J=e}return(0,u.jsx)("div",{className:"wht-popup",children:O&&!T?(0,u.jsx)(u.Fragment,{}):P&&T?(0,u.jsx)("div",{style:"left"===D?{left:"16px",bottom:F?(0,g.pUQ)(E)+"px":C+"px",position:"fixed",zIndex:q}:{right:"16px",bottom:F?(0,g.pUQ)(E)+"px":C+"px",position:"fixed",zIndex:q},children:(0,u.jsxs)("div",{onClick:()=>{X(["initial",A[1]],!1)},style:{width:$+"px",height:$*(16/9)+"px",borderRadius:K,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 12px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(15px)",cursor:"pointer",transition:"all 0.3s ease",transformStyle:"preserve-3d"},className:"left"===D?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",borderRadius:K,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:16/9},children:(0,u.jsx)(n.A,{url:B.thumbnail_image,isPlaying:!1,event:B})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,u.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,u.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",onClick:e=>{e.stopPropagation(),H()},children:(0,u.jsx)(x,{size:.8*U})})}),(0,u.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(h.A,{sx:{color:"white",fontSize:2*U+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,u.jsx)(p(),{nodeRef:i,cancel:".activate-button,.close-btn",bounds:I?"parent":"html",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",onStart:(e,t)=>{var i,o;i=t.x,o=t.y,Z=i,ee=o},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{J&&(Math.abs(t.x-Z)>5||Math.abs(t.y-ee)>5)?te(!1):(G&&H(e),W(B))},children:(0,u.jsx)("div",{ref:i,style:"left"===D?{left:F?(0,g.D2A)(E)+"px":N+"px",bottom:F?(0,g.pUQ)(E)+"px":C+"px",position:"fixed",zIndex:q}:{right:F?(0,g.D2A)(E)+"px":N+"px",bottom:F?(0,g.pUQ)(E)+"px":C+"px",position:"fixed",zIndex:q},children:(0,u.jsxs)("div",{style:{boxSizing:"border-box",width:e.isSpotlight&&"60122562760"==E?l+"px":c+"px",height:e.isSpotlight&&"60122562760"==E?c+"px":l+"px",borderRadius:K,overflow:"hidden",backgroundColor:"transparent",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2)",backdropFilter:"blur(20px)",transition:"all 0.3s ease"},className:"left"===D?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,u.jsx)("div",{style:{overflow:"hidden",position:"relative",borderRadius:K,background:"linear-gradient(145deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,u.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==E?16/9:9/16},children:(0,u.jsx)(n.A,{url:B.thumbnail_image,isMuted:!0,isPlaying:!0,event:B})})}),(0,u.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%",position:"relative"},children:[(0,u.jsx)("div",{style:{position:"absolute",top:"2px",right:"2px",zIndex:10},children:(0,u.jsx)("div",{className:"close-btn",onClick:H,children:(0,u.jsx)(x,{size:U})})}),(0,u.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto",marginTop:"auto",marginBottom:"auto"},children:(0,u.jsx)(m,{size:Y})}),(0,u.jsx)("div",{style:{paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",borderBottomLeftRadius:K,borderBottomRightRadius:K,background:w?"linear-gradient(to bottom, transparent, rgba(0,0,0,0.8))":"transparent"},children:(0,u.jsx)("p",{style:{textAlign:"center",color:"white",fontFamily:f,fontWeight:"600",fontSize:.35*U+"px",margin:0,padding:0,lineHeight:"125%",letterSpacing:"0.3px",textShadow:"0 2px 4px rgba(0,0,0,0.5)"},children:w})})]})})]})})})})}},6649:function(e,t,i){var o=i(9950);t.A=({triggerOnce:e=!1,root:t=null,rootMargin:i="0px",threshold:r=0}={})=>{const[n,a]=(0,o.useState)(!1),[s,l]=(0,o.useState)(null),d=(0,o.useRef)(null);return(0,o.useEffect)(()=>{const o=new IntersectionObserver((t,i)=>{t.forEach(t=>{l(t),t.isIntersecting?(a(!0),e&&i.disconnect()):e||a(!1)})},{root:t,rootMargin:i,threshold:r});return d.current&&o.observe(d.current),()=>{o.disconnect()}},[e,t,i,r]),[d,n,s]}},8154:function(e,t,i){i.r(t);var o=i(9950),r=i(1348),n=i(964),a=i(5830),s=i(140),l=i(4533),d=i(851),c=i(1085),p=i(6613),h=i(3330),g=i(572),u=i(6641),x=i(8603),m=i(2039),v=i(4833),f=i(7802),w=i(2979),b=i(6157),y=i(5903),j=i(69),S=i(9821),_=i(4414);const k=(0,x.A)({key:"whatmore-css-wsv"}),E=o.lazy(()=>Promise.all([i.e(981),i.e(592),i.e(657)]).then(i.bind(i,2321)));t.default=function(e){const[t,i]=(0,o.useState)(),[x,I]=(0,o.useState)(),[z]=(0,a.QN)("isInDesignMode"),[N]=(0,a.QN)("isDemoBrand"),[C,A]=(0,o.useState)(-2),[L]=(0,a.QN)("whatmoreShopId"),P=(0,a.Xd)("isLandingSharedLink"),Q=(0,a.Xd)("whatmoreShareTemplateId"),F=((0,a.Xd)("whatmoreShareStoryId"),(0,a.Xd)("whatmoreShareEventId")),R=(0,a.Xd)("whatmoreLandingLocationType"),M=(0,a.Xd)("whatmoreLoggingActive"),D=(0,a.Xd)("isWhatmorePreviewMode"),{whatmoreWidgetSourceDetails:T}=(0,o.useContext)(y.B);var O=(0,r.SOt)(L)?n.aD+"/get_eventset/":n.$$+"/get_eventset/",V=(0,r.SOt)(L)?n.aD+"/get_eventset_v1/":n.$$+"/get_eventset_v1/";(0,o.useEffect)(()=>{(0,l.wm)()},[]),(0,o.useEffect)(()=>{(0,h.initializeGA)(L)},[]),(0,o.useEffect)(()=>{null==t||0==t.length||x||!(0,p.MN)()||(0,a.Xd)("whatmoreVideoPlayerPoolInitiated")||((0,S._)()?(0,c.Pc)(c.F5):(0,j.bi)())},[t]),(0,o.useEffect)(()=>{A(-1);const e=v.JA,t=(0,v.t6)(R),o="78232846646"===L.toString()?V.toString()+L.toString()+"?eventset_type="+e+"&event_type=video&source="+t+"&source_id="+L:O.toString()+L.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+L;fetch(o).then(e=>e.json()).then(t=>(0,f.Po)(t,e)).then(async e=>{if(D&&(null==e||e&&0==(null===e||void 0===e?void 0:e.length))){const{pdpData:e}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();return i(e),e}let t=[...null===e||void 0===e?void 0:e.events,...null===e||void 0===e?void 0:e.all_events];return(0,r.xku)(L)||(t=(0,f.zJ)(t)),i(t),t}).catch(e=>{I(e.message)})},[]),(0,o.useEffect)(()=>{A(-2)},[t]),(0,o.useEffect)(()=>{null==t||0==t.length||x||P&&"template-embed"==(0,v.Mm)(Q)&&null!=F&&t.forEach((e,t)=>{F==e.event_id&&B(e,!0,t)})},[t]);const G=T.landingLocationType,X=T.templateType,B=(e,t=!1,i=0)=>{if((0,p.MN)()&&!t&&((0,S._)()?(0,c.bo)():(0,j.Ij)()),(0,m.ij)(e)||(0,m.Il)(e))return z||N||(async()=>{const t=(0,v.Wd)(G)+(0,v.gf)(X)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,s.lB)(e),(0,h.sendVideoViewEventToGA)(L,n.DK,n.K1),(0,l.Ch)(e.event_id,e.products,"spotlight","video_popup",t)})(),void A(i)};function W(){return(0,_.jsx)(_.Fragment,{})}return null==t||0==t.length||x?(0,_.jsx)("div",{}):(M&&(0,u.xv)(t),(0,r.ALN)(L)&&C<0&&null!==localStorage.getItem("_whatmore_spotlight_viewed")?(0,_.jsx)(_.Fragment,{}):(localStorage.setItem("_whatmore_spotlight_viewed",!0),(0,_.jsx)(g.C,{value:k,children:-1===C||0===t.length?(0,_.jsx)(W,{}):-2===C&&t.length>0?(0,_.jsx)("div",{children:(0,_.jsx)(w.S,{userInteractionType:b.O.SPOTLIGHT_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!N,children:(0,_.jsx)(d.A,{event:t[0],inVideoClick:B,closeClick:e=>{e.stopPropagation(),A(-1)},isSpotlight:!0})})}):(0,_.jsx)("div",{children:(0,_.jsx)(o.Suspense,{children:(0,_.jsx)(w.S,{userInteractionType:b.O.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!z&&!N,children:(0,_.jsx)(E,{events:t,index:C,onBack:function(){A(-2)},template:"template-embed"})})})})})))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[491],{4295:function(e,t,r){r.r(t),r.d(t,{default:function(){return y}});var o=r(9950),n=r(1941),i=r(5830),l=(r(6125),r(4365),r(6614),r(1348)),s=r(3788),a=r(7973),c=r(9879),d=r(4414);var u=function(e){var t,r;const n=(0,i.Xd)("whatmorePrimaryFont"),u=(0,i.Xd)("whatmoreSecondaryColor"),p=(0,i.Xd)("whatmoreShopId"),[h,x]=(0,o.useState)(!1),f=e.mode,m=e.storyId,g=(0,s.s)(e.imageUrl),y=e.title,w=e.onClick,v=e.template,b=(0,l.ivI)(p),j="template-stories-a"===v?"50%":"30%",S=e.tileSize,C=.12*S*(0,l.cYm)(p),k=null!==(t=(0,l.Pjz)(p))&&void 0!==t?t:n;let z=null!==(r=(0,l.qAx)(p))&&void 0!==r?r:[u,b,u,b,u];Array.isArray(z)||(z=Array(5).fill(z));const E=(0,o.useRef)(0),A=(0,o.useRef)(null),F=(0,o.useRef)(null);return(0,o.useEffect)(()=>{F.current&&F.current.play();const e=document.querySelector('.whatmore-base:has(.whatmore-widget[data-wh="stories"])');e&&function t(r=0){const o=e.querySelector("#storiesLoader");o?o.style.display="none":r<10&&setTimeout(()=>t(r+1),100)}()},[]),(0,o.useEffect)(()=>{const e=A.current,t=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(e.isIntersecting){const r=e.target;r.src=r.dataset.src,t.unobserve(r)}})},{rootMargin:"0px 100px 0px 0px",threshold:0});return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[g]),(0,d.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:S*(0,l.rMH)(p)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{x(!0),w(m)},className:[h?"whatmore-scale-on-tap":""].join(" "),children:[(0,d.jsx)("div",{style:{display:"flex",boxSizing:"border-box",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:j,boxShadow:"0px 2px 1px 0px "+z[0]+"50, 0px -2px 1px 0px "+z[1]+"50, 2px 0px 1px 0px "+z[2]+"50, -2px 0px 1px 0px "+z[3]+"80, 2px -2px 1px 0px "+z[4]+"80, -2px 2px 1px 0px "+z[0]+"DA, 2px 2px 1px 0px "+z[1]+"DA, -2px -2px 1px 0px "+z[2]+"DA"},children:(0,d.jsx)("div",{className:"whatmore-story-thumbnail-wrapper",style:{flexShrink:0,objectFit:"cover",height:S+"px",width:S+"px",borderRadius:j,border:"3px solid white",backgroundColor:"#343434"===u?"#d3d3d3":u,overflow:"hidden"},children:"video"==(0,a.B)(g)?(0,d.jsx)(c.A,{height:"100%",width:"100%",url:g,isPlaying:!0,event:{event_type:"video"},borderRadius:j}):(0,d.jsx)("img",{ref:A,className:"whatmore-story-thumbnail","data-src":g.startsWith("https://cdn.shopify.com")?g.split("?")[0]+"?width=400&height=400":g,loading:"lazy",style:{objectFit:"cover",width:"100%",height:"100%",backgroundColor:"white"},alt:"story",onError:function(){if(E.current<3){let t=(0,s.s)(e.imageUrl);A.current.src="",A.current.src=t,E.current=E.current+1}else console.log("Failed to load image after several attempts"),A.current.src="https://d2oouab8j9eigo.cloudfront.net/background_white.png"}})})}),(0,d.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,d.jsx)("p",{className:"wht-story-title "+("landscape"===f?"wst-landscape":"wst-portrait"),style:{textAlign:"center",color:(0,l.o9q)(p),fontFamily:k,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto",fontSize:C+"px"},children:null===y||void 0===y?void 0:y.substring(0,24)})})]})},p=r(5873),h=r(572),x=r(3059),f=(0,x.A)((0,d.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),m=(0,x.A)((0,d.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");const g=(0,r(8603).A)({key:"whatmore-stories-css"});var y=function(e){const[t,r,s]=(0,n.A)(),[a]=(0,i.QN)("whatmoreStoryTileSize"),[c]=(0,i.QN)("whatmoreStoryTileSizeDesktop"),[x]=(0,i.QN)("whatmoreShopId"),[y,w]=(0,o.useState)("portrait"===t?"flex-start":"center"),[v,b]=(0,o.useState)(!1),[j,S]=(0,o.useState)(!1),C=(0,o.useRef)(null),k=(0,o.useRef)(null);var z=e.eventsStories;const E=e.onClick,A=e.template,F="landscape"===t&&(0,l.lDJ)(x);function _(){if(!F||!C.current)return;const{scrollLeft:e,scrollWidth:t,clientWidth:r}=C.current;b(e>0),S(e<t-r-1)}(0,o.useEffect)(()=>{p.Sn.forEach(e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]')))return;e&&(e.style.minHeight="0px")})},[]);const I=e=>{if(C.current){const t="left"===e?4*-M:4*M;C.current.scrollBy({left:t,behavior:"smooth"})}};(0,o.useEffect)(()=>{!function(){if(C.current){const e=C.current.scrollWidth,t=C.current.offsetWidth;w(e>t?"flex-start":"center")}}()},[y,s]),(0,o.useEffect)(()=>{if(!F)return;const e=()=>{_()},t=()=>{_()},r=C.current;return r?(r.addEventListener("scroll",e),window.addEventListener("resize",t),_(),()=>{r.removeEventListener("scroll",e),window.removeEventListener("resize",t)}):void 0},[F]);const[L,R]=(0,o.useState)([]);(0,o.useEffect)(()=>{R(z.map(e=>e.storyset_dynamic_thumbnail?Math.floor(Math.random()*(e.events.length-1)):0))},[]);const M="landscape"===t?r*(c/340):s*(a/200);return(0,d.jsx)(h.C,{value:g,children:"landscape"==t&&!(0,l.AFg)(x)||"portrait"==t&&!(0,l.rC6)(x)?(0,d.jsx)(d.Fragment,{}):(0,d.jsxs)("div",{ref:k,style:{position:"relative",width:"100%",height:"fit-content"},className:"whatmore-story-container",children:[(0,d.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:y,height:"fit-content",width:"100%",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},className:"whatmore-story-horizontal-flex",ref:C,children:z.map((e,r)=>{var o,n,i,l,s;const a=e.storyset_dynamic_thumbnail?null!==(o=null===(n=e.events[L[r]])||void 0===n?void 0:n.poster_image)&&void 0!==o?o:e.thumbnail_image:null!==(i=e.thumbnail_image)&&void 0!==i?i:null===e||void 0===e||null===(l=e.events)||void 0===l||null===(s=l[0])||void 0===s?void 0:s.thumbnail_image;return(0,d.jsx)(u,{storyId:e.id,tileSize:M,onClick:e=>{E(r)},template:A,imageUrl:a,fallbackUrl:e.thumbnail_image,title:e.title,mode:t},"whatmore-story-"+e.id)})}),F&&(0,d.jsxs)(d.Fragment,{children:[v&&(0,d.jsx)("button",{onClick:()=>I("left"),style:{width:"48px",height:"48px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.7)",border:"none",position:"absolute",top:"40%",left:"16px",transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease-in-out",backdropFilter:"blur(4px)",color:"white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)"},onMouseEnter:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.8)"},onMouseLeave:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.7)"},children:(0,d.jsx)(f,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})}),j&&(0,d.jsx)("button",{onClick:()=>I("right"),style:{width:"48px",height:"48px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.7)",border:"none",position:"absolute",top:"40%",right:"16px",transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease-in-out",backdropFilter:"blur(4px)",color:"white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)"},onMouseEnter:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.8)"},onMouseLeave:e=>{e.target.style.backgroundColor="rgba(0, 0, 0, 0.7)"},children:(0,d.jsx)(m,{style:{fontSize:"32px",display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})})}},6614:function(){}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[199],{1019:function(e,t,n){n.d(t,{B:function(){return o}});var a=n(1348),l=n(964);function o(e){return`${(0,a.jpW)(e)?l.$$:l.MT}/v2/brand/${e}/product-events/recommendation/cdn`}},3350:function(e,t,n){n.r(t),n.d(t,{default:function(){return M}});var a=n(9950),l=n(964),o=n(140),i=n(5830),r=n(1348),s=n(4533),c=n(6613),d=n(1085),p=n(5903),m=n(2039),u=n(4833),h=n(2979),g=n(6157),v=n(8945),S=n(9821),y=n(2321),w=n(4414);const _=a.lazy(()=>Promise.all([n.e(33),n.e(665)]).then(n.bind(n,5213))),x=a.lazy(()=>Promise.all([n.e(620),n.e(116)]).then(n.bind(n,7144))),I=a.lazy(()=>Promise.all([n.e(257),n.e(512),n.e(423)]).then(n.bind(n,517))),E=a.lazy(()=>Promise.all([n.e(257),n.e(512),n.e(412)]).then(n.bind(n,7646))),f=a.lazy(()=>Promise.all([n.e(257),n.e(512),n.e(221)]).then(n.bind(n,5451))),T=a.lazy(()=>n.e(491).then(n.bind(n,4295))),j=a.lazy(()=>Promise.all([n.e(832),n.e(620),n.e(474)]).then(n.bind(n,6945))),O=a.lazy(()=>n.e(485).then(n.bind(n,4431))),C=a.lazy(()=>n.e(676).then(n.bind(n,3369))),b=a.lazy(()=>Promise.all([n.e(832),n.e(891)]).then(n.bind(n,7178))),q=a.lazy(()=>Promise.all([n.e(832),n.e(306)]).then(n.bind(n,9406))),D=a.lazy(()=>n.e(497).then(n.bind(n,3795))),W=a.lazy(()=>n.e(151).then(n.bind(n,9112))),$=a.lazy(()=>Promise.all([n.e(33),n.e(933)]).then(n.bind(n,6989))),P=a.lazy(()=>n.e(806).then(n.bind(n,3278))),G=a.lazy(()=>Promise.all([n.e(257),n.e(1)]).then(n.bind(n,4596))),L=a.lazy(()=>n.e(374).then(n.bind(n,5100)));var N=function(e){var t,N;const[k]=(0,i.QN)("isInDesignMode"),[F]=(0,i.QN)("isDemoBrand"),[V]=(0,i.QN)("whatmoreTopBottomPadding"),[A]=(0,i.QN)("whatmoreStoriesTopBottomPadding"),{whatmoreIsStoriesTemplate:B}=(0,a.useContext)(p.B),[z]=(0,i.QN)("whatmoreShopId"),{whatmoreEventsBrowsingTemplate:R}=(0,a.useContext)(p.B),M=(0,i.Xd)("isLandingSharedLink"),H=(0,i.Xd)("whatmoreShareTemplateId"),J=(0,i.Xd)("whatmoreShareStoryId"),Q=(0,i.Xd)("whatmoreShareEventId"),{whatmoreWidgetSourceDetails:U,whatmoreUserInfo:K}=(0,a.useContext)(p.B),X=M&&R===(0,u.Mm)(H),[Y,Z]=(0,a.useState)(X),[ee,te]=(0,a.useState)(-1),[ne,ae]=(0,a.useState)(null);let le=e.events;const oe=e.allEvents;var ie=null;B&&!ie&&(ie=function(e){var t=e.reduce((e,t,n)=>{var a,l=t.storyset_id;return l in e?(e[l].total_events=e[l].total_events+1,e[l].events.push(t)):e[l]={id:t.storyset_id,title:t.storyset_name,thumbnail_image:t.storyset_thumbnail_image,total_events:1,start_event_index:n,storyset_dynamic_thumbnail:null!==(a=null===t||void 0===t?void 0:t.storyset_dynamic_thumbnail)&&void 0!==a&&a,events:[t]},e},{}),n=Object.values(t);return n.sort((e,t)=>e.start_event_index-t.start_event_index),n}(le));const re=U.landingLocationType,se=U.templateType;function ce(e,t=!1,a=null){(0,c.MN)()&&(0,S._)()&&!t&&(0,d.bo)(),k||F||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:a}=await Promise.resolve().then(n.bind(n,3330));t();const i=ie[e].events[0],r=(0,u.Wd)(re)+(0,u.gf)(se)+(null!==i&&void 0!==i&&i.isRelatedEvent?"R":"E")+"_"+(null===i||void 0===i?void 0:i.event_id);(0,o.lB)(i),a(z,l.TB,l.OL),(0,s.Ch)(i.event_id,i.products,"homepage","stories",r,null===i||void 0===i?void 0:i.location,null===K||void 0===K?void 0:K.userType)})();var i=0;null!=a&&ie[e].events.map((e,t)=>{e.event_id==a&&(i=t)}),te(i),ae(e)}async function de(e,t=!1){(0,c.MN)()&&(0,S._)()&&!t&&await(0,d.bo)(),te(e.index),((0,m.ij)(e)||(0,m.Il)(e))&&(k||F||(async()=>{const{initializeGA:t,sendVideoViewEventToGA:a}=await Promise.resolve().then(n.bind(n,3330));t();const i=(0,u.Wd)(re)+(0,u.gf)(se)+(null!==e&&void 0!==e&&e.isRelatedEvent?"R":"E")+"_"+(null===e||void 0===e?void 0:e.event_id);(0,o.lB)(e),a(z,l.TB,l.Dk),(0,s.Ch)(e.event_id,e.products,"homepage","carousel",i)})())}function pe(e){return(0,w.jsx)(w.Fragment,{})}return(0,a.useEffect)(()=>{if(X)if((0,v.H)("whatmore-video-player",()=>{Z(!1)}),null!=J&&B){const e=ie.find(e=>J==e.id);if(e)return void ce(ie.indexOf(e),!0,Q)}else if(null!=Q){const e=le.find(e=>Q==e.event_id);if(e)return void de(e,!0)}},[]),(0,w.jsxs)(w.Fragment,{children:[Y&&(0,w.jsx)(L,{}),-1==ee||-2==ee?(0,w.jsx)(pe,{}):(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.EVENT_VIEW,event:le[ee],productList:null===(t=le[ee])||void 0===t?void 0:t.products,cta:null===(N=le[ee])||void 0===N?void 0:N.cta,triggerFlag:!k&&!F,children:(0,w.jsx)(y.default,{events:oe,index:ee,onBack:async function(){te(-1),Z(!1)},slideDirection:B||"horizontal"===(0,r.br0)(z)?"horizontal":"vertical",eventsStories:ie,initialStoryIndex:ne,template:R})})}),(0,w.jsx)("div",{className:"whatmore-widget-container",style:{height:"100%",marginTop:(B?A:V)+"px",marginBottom:(B?A:V)+"px"},children:"template-b"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(_,{events:le,onClick:de,heading:e.heading})})}):"template-a-1"===R||"template-collections-a-1"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(x,{events:le,onClick:de,heading:e.heading})}):"template-feed-a"===R||"template-collections-feed-a"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)($,{events:le,onClick:de,heading:e.heading})}):"template-collections-a"===R||"template-c"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(I,{events:le,index:ee,setScreen:te,onClick:de,heading:e.heading})})}):"template-collections-b"===R||"template-d"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(E,{events:le,index:ee,setScreen:te,onClick:de,heading:e.heading})})}):"template-collections-c"===R||"template-e"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(f,{events:le,index:ee,setScreen:te,onClick:de,heading:e.heading})})}):"template-collections-d"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(_,{events:le,index:ee,setScreen:te,onClick:de,heading:e.heading})})}):"template-collections-e"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(j,{events:le,index:ee,setScreen:te,onClick:de,heading:e.heading})})}):"template-collections-stories"===R||"template-stories"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.COLLECTION_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(G,{events:le,index:ee,setScreen:te,onClick:de,heading:e.heading})})}):"template-f"===R||"template-collections-f"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(O,{events:le,onClick:de,heading:e.heading})})}):"template-g"===R||"template-collections-g"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(C,{events:le,onClick:de,heading:e.heading})})}):"template-h"===R||"template-collections-h"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(b,{events:le,onClick:de,heading:e.heading})})}):"template-i"===R||"template-collections-i"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(q,{index:ee,events:le,onClick:de,heading:e.heading})})}):"template-j"===R||"template-collections-j"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(D,{events:le,onClick:de,heading:e.heading})})}):"template-ai"===R||"template-collections-ai"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(W,{events:le,onClick:de,heading:e.heading})})}):"template-banner-a"===R?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.BANNER_WIDGET_VIEW,event:le[0],triggerFlag:!k&&!F,children:(0,w.jsx)(P,{events:le})})}):B?(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.STORIES_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(T,{eventsStories:ie,onClick:ce,template:R})})}):(0,w.jsx)(a.Suspense,{children:(0,w.jsx)(h.S,{userInteractionType:g.O.HOMEPAGE_CAROUSEL_WIDGET_VIEW,triggerFlag:!k&&!F,children:(0,w.jsx)(j,{events:le,onClick:de,heading:e.heading})})})})]})},k=n(7802),F=n(6641),V=n(1351),A=n(5873),B=n(1019);function z(e){return e.split(/[?#]/)[0]}function R(e){return e.split(/[?#]/)[0]}var M=function(e){const[t,n]=(0,a.useState)(),[o,m]=(0,a.useState)(),[h,v]=(0,a.useState)(),{whatmoreIsStoriesTemplate:y}=(0,a.useContext)(p.B),{whatmoreIsCollectionsTemplate:_}=(0,a.useContext)(p.B),{whatmoreIsBannerTemplate:x}=(0,a.useContext)(p.B),[I]=(0,i.QN)("whatmoreShopId"),{whatmoreCollectionId:E}=(0,a.useContext)(p.B),f=(0,i.Xd)("whatmoreLandingLocationType"),T=(0,i.Xd)("whatmoreLoggingActive"),{whatmoreWidgetSourceDetails:j}=(0,a.useContext)(p.B),{whatmoreUserInfo:O,whatmoreIsPreviewMode:C}=(0,a.useContext)(p.B),b=(0,i.Xd)("whatmoreCollectionUrl"),[q]=(0,i.QN)("isInDesignMode"),[D]=(0,i.QN)("isDemoBrand"),W="19506115"==I?"343270603":(0,r.mJ$)(I)?(0,r.jLA)(I)?b:z(window.location.href):E||z(window.location.href),[$,P]=(0,i.QN)("productRatings"),[G,L]=(0,a.useState)(!1);var M=(0,r.SOt)(I)?l.aD+"/v2/events/":l.$$+"/v2/events/",H=(0,r.SOt)(I)?l.aD+"/v3/events/":l.$$+"/v3/events/",J=(0,r.SOt)(I)?l.aD+"/v4/events/":l.$$+"/v4/events/",Q=(0,r.SOt)(I)?l.aD+"/v5/events/":l.$$+"/v5/events/",U=((0,r.SOt)(I)?l.aD:l.$$,(0,r.SOt)(I)?l.aD+"/get_eventset/":l.$$+"/get_eventset/"),K=(0,r.SOt)(I)?l.aD+"/v2/collection":l.$$+"/v2/collection",X=(0,r.SOt)(I)?l.aD+"/v3/collection":l.$$+"/v3/collection",Y=(0,r.SOt)(I)?l.aD+"/v4/collection":l.$$+"/v4/collection",Z=((0,r.jpW)(I)?l.$$:l.MT)+"/v2/brand/"+I+"/product-events",ee=e.shopId,te="live,upcoming",ne="true";return(0,a.useEffect)(()=>{null!=t&&0!=t.length&&!h&&(0,c.MN)()&&!(0,i.Xd)("whatmoreVideoPlayerPoolInitiated")&&(0,S._)()&&(0,d.Pc)(d.F5)},[t]),(0,a.useEffect)(()=>{var e,t,a;(0,s.wm)();const l=localStorage.getItem("w_user_type");var o;if(f.startsWith("product")){var c=(0,i.Xd)("whatmoreProductId");if(c=(0,r.BcY)(I)?function(e){return"STRQMPNF7QK"==e?encodeURIComponent(window.location.href):"STR6HARJ3QY"==e||"STRI4V3OYCH"==e||"STRGZ9TGDEQ"==e||"STRJ2T2QPKI"==e?R(window.location.href).split("/").pop():R(window.location.href)}(I):c,"28575536"===I&&_)o=`${K.toString()}?store_id=${ee.toString()}&client_collection_id=${z(window.location.href)}`;else if((0,r.vvU)(I))o=M.toString()+ee.toString()+"?status="+te.toString()+"&is_active="+ne.toString()+(y?"&template_type=stories":"");else if((0,r.WH1)(I)){o=`${o=(0,B.B)(I)}?client_product_id=${c}&limit=10&recommended=${!(0,r.buK)(I)}&origin=${window.location.hostname}&status=live,upcoming&event_type=video`}else o=Z.toString()+"?client_product_id="+c.toString()+"&status="+te.toString()+"&event_type=video"}else if(_||"invalid-url"!==b)(0,r.JwJ)(I)?(o=`${X.toString()}?store_id=${ee.toString()}&client_collection_id=${"index"==f&&(0,r.FKG)(I).length>0?(0,r.FKG)(I)[0]:W}`,o+="&user_type="+l):o="78232846646"==I?`${Y.toString()}?store_id=${ee.toString()}&client_collection_id=${"index"==f&&(0,r.FKG)(I).length>0?(0,r.FKG)(I)[0]:W}`:`${K.toString()}?store_id=${ee.toString()}&client_collection_id=${"index"==f&&1==(0,r.FKG)(I).length?(0,r.FKG)(I)[0]:W}`;else if(x){const e=u.Jh,t=(0,u.t6)(f);o=U.toString()+ee.toString()+"?eventset_type="+e+"&source="+t+"&source_id="+I}else{var d,p,h,g;if(("72201044272"==I||"2665447536"==I&&C)&&!y)o=H.toString()+ee.toString()+"?status="+te.toString()+"&is_active="+ne.toString()+"&latitude="+(null!==(d=null===(p=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===p?void 0:p.latitude)&&void 0!==d?d:"")+"&longitude="+(null!==(h=null===(g=JSON.parse(localStorage.getItem("_user_wh_lc")))||void 0===g?void 0:g.longitude)&&void 0!==h?h:"")+"&user_type="+(null!==O&&void 0!==O&&O.userType?"olduser":"newuser");else o=(0,r.JwJ)(I)&&!y?J.toString()+ee.toString()+"?status="+te.toString()+"&user_type="+l+"&is_active="+ne.toString():"78232846646"!=I||y?M.toString()+ee.toString()+"?status="+te.toString()+"&is_active="+ne.toString()+(y?"&template_type=stories":""):Q.toString()+ee.toString()+"?status="+te.toString()+"&is_active="+ne.toString()}const S=null===(e=window)||void 0===e||null===(t=e.whatmore)||void 0===t||null===(a=t.storyEvents)||void 0===a?void 0:a.events;y&&f.startsWith("index")&&"object"==typeof S&&(null===S||void 0===S?void 0:S.length)>0?(n(S),m(S),L(!0),(0,i.t2)("isCarouselDataLoading",!1)):fetch(o).then(e=>e.json()).then(e=>{var t;if(x){const t=u.Jh;return(0,k.Po)(e,t)}return(0,r.JwJ)(I)&&(null===e||void 0===e||null===(t=e.questions)||void 0===t?void 0:t.length)>0&&(null==localStorage.getItem("_whatmore_qview_index")&&localStorage.setItem("_whatmore_qview_index",0),(0,s.d3)(null===e||void 0===e?void 0:e.questions)),(0,k.Np)(e,_||"invalid-url"!==b)}).then(e=>{var t,n;T&&console.debug("initial received events size : "+e.length);let a=[...null===e||void 0===e?void 0:e.events,...null===e||void 0===e?void 0:e.all_events];a=(0,r.xku)(I)?(0,k.d8)(a):(0,k.Zf)(a),m(a);const l=null!==(t=null===e||void 0===e||null===(n=e.events)||void 0===n?void 0:n.length)&&void 0!==t?t:0;return a.slice(0,l)}).then(e=>{if((D||q)&&(null==e||e&&0==(null===e||void 0===e?void 0:e.length))){const e=async()=>{const{eventsData:e,storiesData:t,bannerData:a}=await(await fetch("https://api.whatmore.live/vs/mock-data")).json();n(y?t:x?a:e)};e()}else n(e);L(!0),(0,i.t2)("isCarouselDataLoading",!1)}).catch(e=>{v(e.message),L(!0),(0,i.t2)("isCarouselDataLoading",!1)})},[]),(0,a.useEffect)(()=>{"index"===f?t&&t.length>0&&(0,V.yP)({userInteractionType:g.O.HOMEPAGE_VISITED,widgetSourceDetails:j}):"collection"===f?(t&&t.length>0||"Scale"==(0,r.yt9)(I)||"Enterprise"==(0,r.yt9)(I)||"Premium"==(0,r.yt9)(I))&&(0,V.yP)({userInteractionType:g.O.COLLECTION_PAGE_VISITED,widgetSourceDetails:j}):"product"===f&&(t&&t.length>0||"Scale"==(0,r.yt9)(I)||"Enterprise"==(0,r.yt9)(I)||"Premium"==(0,r.yt9)(I))&&(0,V.yP)({userInteractionType:g.O.PDP_VISITED,widgetSourceDetails:j})},[t]),G&&(null==t||0==t.length||h)&&A.Sn.forEach(e=>{var t,n,a,l;const o=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-stories-a"]'),i=null!==(n=e.querySelector('.whatmore-template-type[data-wh="template-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-feed-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-a-1"]')||e.querySelector('.whatmore-template-type[data-wh="template-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-h"]')||e.querySelector('.whatmore-template-type[data-wh="template-j"]'))&&void 0!==n?n:e.querySelector('.whatmore-template-type[data="template-a"]')||e.querySelector('.whatmore-template-type[data="template-b"]')||e.querySelector('.whatmore-template-type[data="template-f"]')||e.querySelector('.whatmore-template-type[data="template-stories"]')||e.querySelector('.whatmore-template-type[data="template-e"]')||e.querySelector('.whatmore-template-type[data="template-a-1"]')||e.querySelector('.whatmore-template-type[data="template-g"]')||e.querySelector('.whatmore-template-type[data="template-h"]')||e.querySelector('.whatmore-template-type[data="template-j"]'),r=null!==(a=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-d"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-e"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-f"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-g"]')||e.querySelector('.whatmore-template-type[data-wh="template-collections-h"]'))&&void 0!==a?a:e.querySelector('.whatmore-template-type[data="template-collections-a"]')||e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-collections-c"]')||e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-collections-e"]')||e.querySelector('.whatmore-template-type[data="template-collections-d"]')||e.querySelector('.whatmore-template-type[data="template-collections-f"]')||e.querySelector('.whatmore-template-type[data="template-collections-g"]')||e.querySelector('.whatmore-template-type[data="template-collections-h"]')||e.querySelector('.whatmore-template-type[data="template-collections-j"]'),s=null!==(l=e.querySelector('.whatmore-template-type[data-wh="template-banner-a"]'))&&void 0!==l?l:e.querySelector('.whatmore-template-type[data="template-banner-a"]'),c=e;if(y){const t=e.querySelector(".whatmore-shimmer-stories");t&&(t.style.display="none")}else if(!_){const t=e.querySelector(".loading-skeleton-wrapper");t&&(t.style.display="none")}(s||r||i||o)&&(i&&c||o&&c||s&&c||r&&c)&&(c.style.minHeight="0px")}),null==t||0==t.length||h?(0,w.jsx)("div",{}):(T&&(0,F.xv)(t),T&&console.debug("final transformed events data : "+JSON.stringify(t)),T&&console.debug("valid events size : "+t.length),(0,w.jsx)(N,{heading:e.heading,events:t,allEvents:o}))}},8945:function(e,t,n){function a(e,t){let n=0;let a=new MutationObserver(function(){document.querySelector("."+e)?(t(),a.disconnect()):0==n&&(n=1,setTimeout(()=>{t(),a.disconnect()},8e3))});a.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{H:function(){return a}})}}]);
|
/package/static/css/{product-page-view.a1594fd1.chunk.css → react-main-app.a1594fd1.chunk.css}
RENAMED
|
File without changes
|