whatmore-react-assets 1.0.1021 → 1.0.1022

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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/static/js/150.355628ac.chunk.js +1 -0
  3. package/static/js/236.bd2a197f.chunk.js +1 -0
  4. package/static/js/249.3fb855db.chunk.js +1 -0
  5. package/static/js/{299.f75473d6.chunk.js → 299.b5556032.chunk.js} +2 -2
  6. package/static/js/436.3e7d521d.chunk.js +1 -0
  7. package/static/js/440.0258d351.chunk.js +1 -0
  8. package/static/js/{530.3e8065b6.chunk.js → 530.6210d137.chunk.js} +1 -1
  9. package/static/js/580.68a1a16f.chunk.js +1 -0
  10. package/static/js/582.74949624.chunk.js +1 -0
  11. package/static/js/622.58ace99c.chunk.js +1 -0
  12. package/static/js/678.de8aa8c8.chunk.js +2 -0
  13. package/static/js/692.a881c165.chunk.js +1 -0
  14. package/static/js/708.5ab3f176.chunk.js +1 -0
  15. package/static/js/74.90f829c9.chunk.js +1 -0
  16. package/static/js/{766.1b840213.chunk.js → 766.d2685ef4.chunk.js} +1 -1
  17. package/static/js/77.8e34f6e1.chunk.js +1 -0
  18. package/static/js/818.5a1b510a.chunk.js +117 -0
  19. package/static/js/836.412a0447.chunk.js +1 -0
  20. package/static/js/84.e27bd226.chunk.js +1 -0
  21. package/static/js/891.bb7181a6.chunk.js +1 -0
  22. package/static/js/920.ef0933a3.chunk.js +1 -0
  23. package/static/js/965.ea0fd29e.chunk.js +1 -0
  24. package/whatmore.js +2 -2
  25. package/static/js/150.b2fc5aac.chunk.js +0 -1
  26. package/static/js/236.ecfb0a1b.chunk.js +0 -1
  27. package/static/js/249.4dde40af.chunk.js +0 -1
  28. package/static/js/436.a0b419a1.chunk.js +0 -1
  29. package/static/js/440.30f8a9f8.chunk.js +0 -1
  30. package/static/js/580.afc90797.chunk.js +0 -1
  31. package/static/js/582.751462b2.chunk.js +0 -1
  32. package/static/js/622.598b8aa3.chunk.js +0 -1
  33. package/static/js/678.642b5db3.chunk.js +0 -2
  34. package/static/js/692.6381752c.chunk.js +0 -1
  35. package/static/js/708.4e568e02.chunk.js +0 -1
  36. package/static/js/74.a6af3b11.chunk.js +0 -1
  37. package/static/js/77.153c6aa9.chunk.js +0 -1
  38. package/static/js/818.710634b1.chunk.js +0 -117
  39. package/static/js/836.dcb74027.chunk.js +0 -1
  40. package/static/js/84.a41ead24.chunk.js +0 -1
  41. package/static/js/891.b3b25bd5.chunk.js +0 -1
  42. package/static/js/920.7075d76c.chunk.js +0 -1
  43. package/static/js/965.c8276a4a.chunk.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[74],{8181:function(e,t,n){var i=n(7313),o=n(8866),r=n(7753),a=n(6417);const s=i.memo((()=>{if(!(0,r.MO)("isLandingSharedLink"))return(0,a.jsx)(a.Fragment,{});const[e]=(0,o.Z)();return(0,a.jsxs)("div",{className:`shimmer-container ${e}`,children:["portrait"===e?(0,a.jsx)("div",{className:"shimmer-item portrait-full",children:(0,a.jsx)("div",{className:"shimmer-effect"})}):Array(3).fill().map(((e,t)=>(0,a.jsx)("div",{className:"shimmer-item landscape-item "+(1===t?"center-item":""),children:(0,a.jsx)("div",{className:"shimmer-effect"})},t))),(0,a.jsx)("style",{children:"\n .shimmer-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow-x: scroll;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n z-index: 1000;\n }\n\n .portrait {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.6);\n }\n\n .landscape {\n justify-content: center;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n }\n\n .shimmer-item {\n scroll-snap-align: start;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n transition: transform 0.3s ease;\n }\n\n .portrait-full {\n width: 100vw;\n height: 100vh;\n margin: 0; \n }\n\n .landscape-item {\n width: 250px;\n height: 450px;\n background: #D3D3D3;\n border-radius: 8px;\n margin-left: -50px; \n }\n\n .center-item {\n width: 360px;\n height: 620px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5); \n z-index: 10; \n }\n\n .shimmer-effect {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 25%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 75%);\n animation: shimmer 2s infinite;\n background-size: 200% 100%;\n }\n\n @keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n }\n "})]})}));t.Z=s},5380:function(e,t,n){n.d(t,{Z:function(){return w}});var i=n(4959),o=n(7313),r=n(4892),a=n(6805),s=n(7753),d=n(9821);var l=function(e){const[t,n,i,o,r]=(0,d.Z)(),[l]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,s.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),u=r[a.YP]===a.$w?c/100:l/100*1.2;return[t*u,n*u,r]},c=n(9723),u=n(9461),p=n.n(u),h=n(1195),v=n(7108),m=(n(7244),n(123),n(9854)),f=n(5109),g=n(6417);var w=function(e){var t;const n=o.useRef(null);var[d,u,w]=l();const{whatmoreUITheme:x}=(0,o.useContext)(f.I),[_]=(0,s.j1)("whatmoreEmbedAppVideoTitle"),[y]=(0,s.j1)("whatmoreEmbedAppPositionPortrait"),[b]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[j]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[I]=(0,s.j1)("whatmoreEmbedAppPositionLandscape"),[E]=(0,s.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[S]=(0,s.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),L=(0,s.MO)("whatmoreShopId");var C=y,D=b,P=j;w[a.YP]===a.$w&&(C=I,D=E,P=S);const[T,O]=(0,o.useState)(["initial",window.pageYOffset]),[k,K]=(0,o.useState)(!1),z=null!==(t=e.isSpotlight)&&void 0!==t&&t,A=w[a.YP]===a.$w?.7*(0,m.zGA)(L):(0,m.zGA)(L),V=z?A:1;d*=V,u*=V;const N=z?(0,m.G0o)(L):C,M=z?(0,m.X8j)(L):(0,m.lVn)(L),[W,R]=(0,o.useState)(!z&&(0,m.eXi)(L));function Z(e,t){O(e),e[1]<=100?K(!1):t!=k&&(K(t),R(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const n=()=>{const n=window.pageYOffset;Math.abs(n-e)<100||(Z([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.O3)({ref:n,handler:()=>{Z(["scrolled-up",T[1]],!0)}});const F=e.event,H=e.inVideoClick,U=e.closeClick,$=.3*u,B=.6*u,Y=.1*u,G=.1*(.5*u),q="round"==x?"10px":"0px",J=(0,m.Z$A)(L);var X=!1,Q=0,ee=0;function te(e){X=e}return(0,g.jsx)("div",{children:W&&!M?(0,g.jsx)(g.Fragment,{}):k&&M?(0,g.jsx)("div",{style:"left"===N?{left:"1px",bottom:z?(0,m.vnu)(L)+"px":P+"px",position:"fixed",zIndex:J}:{right:"5px",bottom:z?(0,m.vnu)(L)+"px":P+"px",position:"fixed",zIndex:J},children:(0,g.jsxs)("div",{onClick:()=>{Z(["initial",T[1]],!1)},style:{margin:"1px",width:u+"px",height:d+"px"},className:"left"===N?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,g.jsx)("div",{style:{overflow:"hidden"},children:(0,g.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,g.jsx)(r.Z,{url:F.thumbnail_image,isPlaying:!1,event:F})})}),(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,g.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,g.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,g.jsx)(h.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:$+"px"},style:{position:"relative",zIndex:1,left:G+"px",bottom:G+"px"},onClick:U})})}),(0,g.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,g.jsx)(v.Z,{sx:{color:"white",fontSize:2*$+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,g.jsx)(p(),{nodeRef:n,cancel:".activate-button,.close-btn",defaultClassName:"whatmore-react-draggable",defaultClassNameDragging:"whatmore-react-draggable-dragging",defaultClassNameDragged:"whatmore-react-draggable-dragged",bounds:"html",onStart:(e,t)=>{var n,i;n=t.x,i=t.y,Q=n,ee=i},onDrag:(e,t)=>{te(!0)},onStop:(e,t)=>{X&&(Math.abs(t.x-Q)>5||Math.abs(t.y-ee)>5)?te(!1):H(F)},children:(0,g.jsx)("div",{ref:n,style:"left"===N?{left:z?(0,m.$II)(L)+"px":D+"px",bottom:z?(0,m.vnu)(L)+"px":P+"px",position:"fixed",zIndex:J}:{right:z?(0,m.$II)(L)+"px":D+"px",bottom:z?(0,m.vnu)(L)+"px":P+"px",position:"fixed",zIndex:J},children:(0,g.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:u+"px",height:d+"px"}),className:"left"===N?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,g.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,g.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,g.jsx)(r.Z,{url:F.thumbnail_image,isMuted:!0,isPlaying:!0,event:F})})}),(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,g.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,g.jsx)(h.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:$+"px"},onClick:U,style:{position:"relative",zIndex:1,left:Y+"px",bottom:Y+"px"}})}),(0,g.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,g.jsx)(c.Z,{sx:{color:(0,m.Ya_)(L),fontSize:B+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,g.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:q,borderBottomRightRadius:q,backgroundImage:_?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,g.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*$+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",_]})})]})})]})})})})}},4284:function(e,t,n){n.r(t);var i=n(7313),o=n(9854),r=n(2860),a=n(7753),s=n(5160),d=n(6967),l=n(5380),c=n(58),u=n(8984),p=n(4669),h=n(513),v=n(9302),m=n(2575),f=n(7300),g=n(6524),w=n(5109),x=n(4522),_=n(778),y=n(7643),b=n(7008),j=n(7381),I=n(8181),E=n(6095),S=n(6417);const L=(0,m.Z)({key:"whatmore-css-ppv"}),C=i.lazy((()=>Promise.all([n.e(819),n.e(577),n.e(351),n.e(587),n.e(926),n.e(688),n.e(818),n.e(836)]).then(n.bind(n,3818))));function D(e){return e.split(/[?#]/)[0]}t.default=function(e){const[t,n]=(0,i.useState)(),[m,P]=(0,i.useState)(),{whatmoreIsPreviewMode:T}=(0,i.useContext)(w.I),[O]=(0,a.j1)("isInDesignMode"),[k]=(0,a.j1)("isDemoBrand"),[K]=(0,a.j1)("whatmoreEmbedAppUseVariant"),[z,A]=(0,i.useState)(-2),[V]=(0,a.j1)("whatmoreVariantId"),[N]=(0,a.j1)("whatmoreShopId");var[M]=(0,a.j1)("whatmoreProductId");const W=(0,a.MO)("isLandingSharedLink"),R=(0,a.MO)("whatmoreShareTemplateId"),Z=(0,a.MO)("whatmoreShareEventId"),F=W&&"template-embed"===(0,g.zv)(R),[H,U]=(0,i.useState)(F);M=(0,o.iXA)(N)?D(window.location.href):M;const[$,B]=(0,i.useState)((()=>"true"===K?V:M));var Y=r.Gc+"/v2/brand/"+N+"/product-events";const{whatmoreWidgetSourceDetails:G}=(0,i.useContext)(w.I);(0,i.useEffect)((()=>{(0,j.Oo)("Video shopping powered by Whatmore!"),(0,d.hb)();const e=()=>{const e="_whatmore_bulk_events",t=JSON.parse(localStorage.getItem(e))||[];t&&t.length>0&&((0,b.K)(t),localStorage.removeItem(e))};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[]),(0,i.useEffect)((()=>{(0,p.ll)(N)}),[]),(0,i.useEffect)((()=>{null==t||0==t.length||m||!(0,u.KE)()||(0,a.MO)("whatmoreVideoPlayerPoolInitiated")||(0,c.b5)(c.UD)}),[t]),(0,i.useEffect)((()=>{if(A(-1),(0,o.ly4)(N)||"57708314789"==N&&T){const e=`${r.Gc}/v2/brand/${N}/product-events/recommendation`;fetch(`${e}?client_product_id=${$}&limit=10&origin=${window.location.hostname}&status=live,upcoming&event_type=video`).then((e=>e.json())).then((e=>{var t;if((null===(t=e.events)||void 0===t?void 0:t.length)>0){const t=e=>{var t;return null===(t=e.products)||void 0===t?void 0:t.some((e=>"oos"!=(null===e||void 0===e?void 0:e.product_status)))},i=e.related_events.filter((e=>t(e)));(null===i||void 0===i?void 0:i.length)>0&&e.product_info.length>0?n([...e.events,...i,{event_type:"recommended_images",product_list:[...e.product_info]}]):n([...e.events,...i])}else n([])})).catch((e=>P(e.message)))}else fetch(Y.toString()+"?client_product_id="+$.toString()+"&status="+"upcoming".toString()+"&event_type=video").then((e=>e.json())).then((e=>e.events)).then((e=>(null!=e&&0!=e.length&&(0,o.Htz)(N)&&(0,o.d0x)(e),n(e),e))).then((e=>((0,o.yoE)(N)&&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==D(window.location.href))return;const i={product_id:n.product_id,product_link:D(window.location.href)};fetch(r.Gc+"/product",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})}),500)}(e,$),e))).catch((e=>{P(e.message)}))}),[$]),(0,i.useEffect)((()=>{var e,n;A(-2),(t&&t.length>0||(0,o.uO6)(N))&&(0,x.PB)({userInteractionType:_.K.PDP_VISITED,widgetSourceDetails:G,event:null===t||void 0===t?void 0:t[0],productList:null===t||void 0===t||null===(e=t[0])||void 0===e?void 0:e.products,ctaList:null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.cta})}),[t]),(0,i.useEffect)((()=>{let e=history.pushState;history.pushState=function(){let t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};let t=history.replaceState;history.replaceState=function(){let e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))})),window.addEventListener("locationchange",(function(){if("true"===K){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&&B(e)}}))}),[]),(0,i.useEffect)((()=>{if(null!=t&&0!==t.length&&!m&&F&&((0,E.A)("whatmore-video-player",(()=>{U(!1)})),null!=Z)){const e=t.find((e=>Z==e.event_id));if(e)return void X(e,!0,t.indexOf(e))}}),[t]);const q=G.landingLocationType,J=G.templateType,X=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((0,u.KE)()&&!t&&(0,c.QV)(),(0,f.B6)(e)||(0,f.WJ)(e))return O||k||(async()=>{const t=(0,g.NY)(q)+(0,g.dS)(J)+"_"+(null===e||void 0===e?void 0:e.event_id);(0,s.wh)(e),(0,p.Tc)(N,r.h7,r.dU),(0,d.H4)(e.event_id,e.products,"product_page","video_popup",t)})(),void A(n)};function Q(){return(0,S.jsx)(S.Fragment,{})}return null==t||0==t.length||m?(0,S.jsx)("div",{}):(0,S.jsxs)(v.C,{value:L,children:[H&&(0,S.jsx)(I.Z,{}),"no-product"===$||-1===z||0===t.length?(0,S.jsx)(Q,{}):-2===z&&t.length>0?(0,S.jsx)("div",{children:(0,S.jsx)(y.u,{userInteractionType:_.K.PDP_POPUP_WIDGET_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!O&&!k,children:(0,S.jsx)(l.Z,{event:t[0],inVideoClick:X,closeClick:e=>{e.stopPropagation(),A(-1)}})})}):(0,S.jsx)("div",{children:(0,S.jsx)(i.Suspense,{children:(0,S.jsx)(y.u,{userInteractionType:_.K.EVENT_VIEW,event:t[0],productList:t[0].products,cta:t[0].cta,triggerFlag:!O&&!k,children:(0,S.jsx)(C,{events:t,index:z,onBack:function(e){(0,o.n2L)(N)&&(0,a.MO)("whatmoreAddedToCart")&&(0,h.D)(N,(()=>{}),100,window.location.hostname,e),A(-2),U(!1)},template:"template-product-page"})})})})]})}},6095:function(e,t,n){function i(e,t){let n=0;let i=new MutationObserver((function(){document.querySelector("."+e)?(t(),i.disconnect()):0==n&&(n=1,setTimeout((()=>{t(),i.disconnect()}),8e3))}));i.observe(document.body,{childList:!0,subtree:!0})}n.d(t,{A:function(){return i}})},4522:function(e,t,n){n.d(t,{gW:function(){return s},GF:function(){return d},y4:function(){return c},PB:function(){return u},Z2:function(){return l}});var i=n(9854),o=n(7753),r=n(778);var a=n(733);const s={[r.K.EVENT_VIEW]:"whatmore_video_click_event",[r.K.VIDEO_LIKED]:"whatmore_video_like_event",[r.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[r.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[r.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[r.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event"};function d(e){var t;let{userInteractionType:n,userInteractionMetadata:d,widgetSourceDetails:l,event:c,productList:u,ctaList:p}=e;(0,a.s)({userInteractionType:n,userInteractionMetadata:d,widgetSourceDetails:l,event:c,productList:u,ctaList:p}),n in s&&function(e,t){const n=(0,o.MO)("whatmoreShopId");(e!=r.K.EVENT_VIEW||(0,i.UAB)(n))&&(e!=r.K.SHOPNOW_ATC_CLICKED&&e!=r.K.PRODUCT_TILE_ATC_CLICKED||(0,i.Tn_)(n))&&(e!=r.K.VIDEO_LIKED||(0,i.sKB)(n))&&(e!=r.K.VIDEO_SHARE_CTA_CLICKED||(0,i.YOU)(n))&&(e!=r.K.PRODUCT_TILE_SHOPNOW_CLICKED&&e!=r.K.SHOPNOW_CLICKED||(0,i.ejq)(n))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[e],{id:null===t||void 0===t?void 0:t.client_product_id,product_url:null===t||void 0===t?void 0:t.product_link})})()}(n,null!==(t=null===u||void 0===u?void 0:u[1])&&void 0!==t?t:null===u||void 0===u?void 0:u[0])}function l(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s}=e;(0,a.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s})}function c(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s}=e;(0,a.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s})}function u(e){let{userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s}=e;(0,a.s)({userInteractionType:t,userInteractionMetadata:n,widgetSourceDetails:i,event:o,productList:r,ctaList:s})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[77],{3867:function(t,e,n){var o=n(8816),r=n(417),i=n(4885),a=n(7753),s=n(5109),l=n(7313),c=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,l.useContext)(s.I),[u]=(0,a.j1)("whatmoreSecondaryColor"),[d,p]=(0,a.j1)("productRatings"),f=(0,a.MO)("whatmorePrimaryFont"),v=(t.storeId,t.productId),y=(t.productLink,t.fontSize),m=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===d||"undefined"==typeof d||!(v in d)||d[v].avgRating>5)return(0,c.jsx)(c.Fragment,{});const _=d[v].avgRating,h=d[v].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(_))].map(((t,e)=>(0,c.jsx)(o.Z,{sx:{color:u,fontSize:y+"px"}},"star-icon"+e))),_-Math.floor(_)>.2?(0,c.jsx)(r.Z,{sx:{color:u,fontSize:y+"px"}},"star-half-icon"):_-Math.floor(_)==0?(0,c.jsx)(c.Fragment,{}):(0,c.jsx)(i.Z,{sx:{color:u,fontSize:y+"px"}},"star-outline-icon"),[...Array(Math.floor(5-_))].map(((t,e)=>(0,c.jsx)(i.Z,{sx:{color:u,fontSize:y+"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:u,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*y+"px","important"),t.style.setProperty("font-family",f,"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",_,"\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*y+"px","important"),t.style.setProperty("font-family",f,"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","("+h+")"]})})]})})}},9363:function(t,e,n){n.d(e,{$:function(){return a},s:function(){return i}});var o=n(9854),r=n(7753);function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,r.MO)("whatmoreShopId");return"shopify"!=(0,o.Ipo)(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],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,r=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(n)?"image":null!==r&&void 0!==r&&r.test(n)?"video":void 0}},5456:function(t,e,n){n.d(e,{B:function(){return o}});const o=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},4522:function(t,e,n){n.d(e,{gW:function(){return s},GF:function(){return l},y4:function(){return u},PB:function(){return d},Z2:function(){return c}});var o=n(9854),r=n(7753),i=n(778);var a=n(733);const s={[i.K.EVENT_VIEW]:"whatmore_video_click_event",[i.K.VIDEO_LIKED]:"whatmore_video_like_event",[i.K.VIDEO_SHARE_CTA_CLICKED]:"whatmore_video_share_event",[i.K.PRODUCT_TILE_ATC_CLICKED]:"whatmore_video_atc_event",[i.K.SHOPNOW_ATC_CLICKED]:"whatmore_video_atc_event",[i.K.SHOPNOW_CLICKED]:"whatmore_product_tile_click_event",[i.K.PRODUCT_TILE_SHOPNOW_CLICKED]:"whatmore_product_tile_click_event"};function l(t){var e;let{userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:u,productList:d,ctaList:p}=t;(0,a.s)({userInteractionType:n,userInteractionMetadata:l,widgetSourceDetails:c,event:u,productList:d,ctaList:p}),n in s&&function(t,e){const n=(0,r.MO)("whatmoreShopId");(t!=i.K.EVENT_VIEW||(0,o.UAB)(n))&&(t!=i.K.SHOPNOW_ATC_CLICKED&&t!=i.K.PRODUCT_TILE_ATC_CLICKED||(0,o.Tn_)(n))&&(t!=i.K.VIDEO_LIKED||(0,o.sKB)(n))&&(t!=i.K.VIDEO_SHARE_CTA_CLICKED||(0,o.YOU)(n))&&(t!=i.K.PRODUCT_TILE_SHOPNOW_CLICKED&&t!=i.K.SHOPNOW_CLICKED||(0,o.ejq)(n))&&"function"==typeof fbq&&(async()=>{fbq("trackCustom",s[t],{id:null===e||void 0===e?void 0:e.client_product_id,product_url:null===e||void 0===e?void 0:e.product_link})})()}(n,null!==(e=null===d||void 0===d?void 0:d[1])&&void 0!==e?e:null===d||void 0===d?void 0:d[0])}function c(t){let{userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:o,event:r,productList:i,ctaList:s}=t;(0,a.s)({userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:o,event:r,productList:i,ctaList:s})}function u(t){let{userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:o,event:r,productList:i,ctaList:s}=t;(0,a.s)({userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:o,event:r,productList:i,ctaList:s})}function d(t){let{userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:o,event:r,productList:i,ctaList:s}=t;(0,a.s)({userInteractionType:e,userInteractionMetadata:n,widgetSourceDetails:o,event:r,productList:i,ctaList:s})}},8816:function(t,e,n){var o=n(5318);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.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");e.Z=a},417:function(t,e,n){var o=n(5318);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.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.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=a},4885:function(t,e,n){var o=n(5318);e.Z=void 0;var r=o(n(5045)),i=n(6417),a=(0,r.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.03L22 9.24zM12 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.28L12 15.4z"}),"StarOutline");e.Z=a},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);