whatmore-react-assets 1.0.1293 → 1.0.1295
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/static/js/731.d4347a2a.chunk.js +1 -0
- package/static/js/{751.cd07d863.chunk.js → 751.a6abe3c2.chunk.js} +1 -1
- package/static/js/collections-template-a.d79da3e9.chunk.js +1 -0
- package/static/js/collections-template-b.d191151d.chunk.js +1 -0
- package/static/js/collections-template-c.bf95c46c.chunk.js +1 -0
- package/static/js/collections-template-stories.9696a048.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/js/731.9b20cb62.chunk.js +0 -1
- package/static/js/collections-template-a.7e18c6fa.chunk.js +0 -1
- package/static/js/collections-template-b.0ceae9c0.chunk.js +0 -1
- package/static/js/collections-template-c.91c5038b.chunk.js +0 -1
- package/static/js/collections-template-stories.65f6b0c9.chunk.js +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[731],{7129:function(e,t,i){i.d(t,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8631:function(e,t,i){var n=i(7313),o=i(9854),r=i(7753),a=(i(9111),i(123),i(9778),i(4892)),l=i(7129),d=i(9821),s=i(364),p=i(6417);t.Z=function(e){var t;const[i,c,h,x,u]=(0,d.Z)(),[m]=(0,r.j1)("whatmoreSecondaryColor"),[f]=(0,r.j1)("whatmoreShopId"),[v]=(0,r.j1)("whatmoreCollectionsTileSize"),[w]=(0,r.j1)("whatmoreCollectionsTileSizePortrait"),g="portrait"===e.mode?w:v,y=(0,r.j1)("whatmorePrimaryFont"),{whatmoreWidgetSourceDetails:j}=(0,n.useContext)(s.I),[b,E]=(0,n.useState)(!1),P=(0,o.f63)(f),S=j.landingLocationType;(0,n.useContext)(l.V);const z=e.event,L=e.onClick,C=e.removeBorders,A=i*g*.01,k=c*g*.01,I=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:(0,o.XnJ)(f)?"auto":k+"px",marginLeft:C?"2px":"5px",marginRight:C?"2px":(0,o.VwM)(f)+"px",marginTop:C?"2px":"5px",marginBottom:C?"2px":"5px",cursor:"pointer"},onClick:()=>{E(!0),L(z)},className:[b?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:I,overflow:"hidden",boxShadow:C?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+P+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+P+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+P+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+P+"DA"},children:(0,p.jsx)("div",{className:"whatmore-collection-event-tile",style:{flexShrink:0,objectFit:"cover",height:A+"px",width:"40273707171"==f?"auto":k+"px",borderRadius:I,backgroundColor:"gray",overflow:"hidden"},children:(0,p.jsx)(a.Z,{height:"100%",width:"100%",url:z.thumbnail_image,isPlaying:!0,event:z})})}),S.startsWith("product")&&(0,p.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"8px 4px 0 4px"},children:(0,p.jsx)("p",{ref:t=>{var i;t&&(t.style.setProperty("font-family",y,"important"),t.style.setProperty("font-size",(null!==(i=e.fontSize)&&void 0!==i?i:10)+"px","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"))},children:null===z||void 0===z?void 0:z.title})})]})}},8782:function(e,t,i){i.d(t,{P:function(){return l}});var n=i(6775),o=i(7313),r=(i(123),i(6417));function a(e){const[t,i,o]=(0,n.Z)({triggerOnce:e.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:t,children:i?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,r.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function l(e){var t,i;return(0,o.useEffect)((()=>{const e=document.querySelector(".whatmore-carousel-horizontal-flex");let t,i=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(i=!0,t=e.touches[0].clientX):(i=!0,t=e.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;e.style.pointerEvents="none";const r=2*(t-o);e.scrollLeft+=r,t=o}function r(t){e.style.pointerEvents="auto",i=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",o),e.addEventListener("touchend",r)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",o),e.removeEventListener("touchend",r)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(i=e.dataList)||void 0===i?void 0:i.map(((t,i)=>(0,r.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+i)))})}},5380:function(e,t,i){i.d(t,{Z:function(){return v}});var n=i(4959),o=i(7313),r=i(4892),a=i(6805),l=i(7753),d=i(9821);var s=function(e){const[t,i,n,o,r]=(0,d.Z)(),[s]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[p]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),c=r[a.YP]===a.$w?p/100:s/100*1.2;return[t*c,i*c,r]},p=i(9723),c=i(9461),h=i.n(c),x=i(1195),u=i(7108),m=(i(7244),i(123),i(9854)),f=i(6417);var v=function(e){var t;const i=o.useRef(null);var[d,c,v]=s();const w=(0,l.MO)("whatmoreUITheme"),[g]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[y]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[j]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[b]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[P]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[S]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),z=(0,l.MO)("whatmoreShopId");var L=y,C=j,A=b;v[a.YP]===a.$w&&(L=E,C=P,A=S);const[k,I]=(0,o.useState)(["initial",window.pageYOffset]),[R,Z]=(0,o.useState)(!1),M=null!==(t=e.isSpotlight)&&void 0!==t&&t,V=v[a.YP]===a.$w?.7*(0,m.zGA)(z):(0,m.zGA)(z),Y=M?V:1;d*=Y,c*=Y;const F=M?(0,m.G0o)(z):L,$=M?(0,m.X8j)(z):(0,m.lVn)(z),[D,N]=(0,o.useState)(!M&&(0,m.eXi)(z));function T(e,t){I(e),e[1]<=100?Z(!1):t!=R&&(Z(t),N(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(T([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[k]),(0,n.O3)({ref:i,handler:()=>{T(["scrolled-up",k[1]],!0)}});const _=e.event,O=e.inVideoClick,H=e.closeClick,W=.3*c,X=.6*c,B=.1*c,K=.1*(.5*c),G="round"==w?"10px":"0px",q=(0,m.Z$A)(z);var U=!1,J=0,Q=0;function ee(e){U=e}return(0,f.jsx)("div",{children:D&&!$?(0,f.jsx)(f.Fragment,{}):R&&$?(0,f.jsx)("div",{style:"left"===F?{left:"1px",bottom:M?(0,m.vnu)(z)+"px":A+"px",position:"fixed",zIndex:q}:{right:"5px",bottom:M?(0,m.vnu)(z)+"px":A+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{onClick:()=>{T(["initial",k[1]],!1)},style:{margin:"1px",width:c+"px",height:d+"px"},className:"left"===F?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,f.jsx)(r.Z,{url:_.thumbnail_image,isPlaying:!1,event:_})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,f.jsx)(x.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:W+"px"},style:{position:"relative",zIndex:1,left:K+"px",bottom:K+"px"},onClick:H})})}),(0,f.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,f.jsx)(u.Z,{sx:{color:"white",fontSize:2*W+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(h(),{nodeRef:i,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 i,n;i=t.x,n=t.y,J=i,Q=n},onDrag:(e,t)=>{ee(!0)},onStop:(e,t)=>{U&&(Math.abs(t.x-J)>5||Math.abs(t.y-Q)>5)?ee(!1):O(_)},children:(0,f.jsx)("div",{ref:i,style:"left"===F?{left:M?(0,m.$II)(z)+"px":C+"px",bottom:M?(0,m.vnu)(z)+"px":A+"px",position:"fixed",zIndex:q}:{right:M?(0,m.$II)(z)+"px":C+"px",bottom:M?(0,m.vnu)(z)+"px":A+"px",position:"fixed",zIndex:q},children:(0,f.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:e.isSpotlight&&"60122562760"==z?d+"px":c+"px",height:e.isSpotlight&&"60122562760"==z?c+"px":d+"px"}),className:"left"===F?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==z?16/9:9/16},children:(0,f.jsx)(r.Z,{url:_.thumbnail_image,isMuted:!0,isPlaying:!0,event:_})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)(x.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:W+"px"},onClick:H,style:{position:"relative",zIndex:1,left:B+"px",bottom:B+"px"}})}),(0,f.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,f.jsx)(p.Z,{sx:{color:(0,m.Ya_)(z),fontSize:X+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,f.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:G,borderBottomRightRadius:G,backgroundImage:g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,f.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*W+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",g]})})]})})]})})})})}},6805:function(e,t,i){i.d(t,{$I:function(){return l},$w:function(){return s},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return n},rE:function(){return d}});const n="device_type",o="device_mode",r="mobile",a="tablet",l="desktop",d="portrait",s="landscape"},9821:function(e,t,i){var n=i(7753),o=i(8866),r=i(6805),a=i(9854);t.Z=function(e){const[t,i,l]=(0,o.Z)(),[d]=(0,n.j1)("whatmoreLandscapePadding"),[s]=(0,n.j1)("whatmoreShopId"),[p]=(0,n.j1)("whatmoreVideoTileSize"),[c]=(0,n.j1)("whatmoreVideoTileSizePortrait"),h=l>=1025,x="portrait"==t?c:p,u=!("portrait"!=t||!(l>=481)),m=x/100*1.3*.5,f=x/100;var v=Math.min(l,i),[w,g,y,j]=[.6*v*(16/9),.6*v,1.4,0];function b(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:r.AK,DEVICE_MODE:r.rE};if(h){const e=g*m,t=w*m;[w,g,y,j]=[t,e,(l-2*d-2*(0,a.mZU)(s))/(1.1*e),d],E[r.me]=r.$I,E[r.YP]=r.$w}else if(u){var P=.8*g,S=.8*w;"portrait"==t?(P*=f,S*=f,[w,g,y,j]=[S,P,b(l/(1.2*P)),0],E[r.me]=r.AL,E[r.YP]=r.rE):([w,g,y,j]=[S,P,(l-2*d)/(1.1*P),d],E[r.me]=r.AL,E[r.YP]=r.$w)}else{P=g,S=w;"portrait"==t?(P=P*f*.9,S=S*f*.9,[w,g,y,j]=[S,P,b(l/(1.15*P)),0],E[r.me]=r.AK,E[r.YP]=r.rE):(P=.7*g,S=.7*w,[w,g,y,j]=[S,P,(l-2*d)/(1.1*P),d],E[r.me]=r.AK,E[r.YP]=r.$w)}return[w,g,y,j,E]}},9111:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[615],{3827:function(e,t,o){o.r(t);var r=o(7313),i=o(6090),n=o(7616),l=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),a=o(2575),s=o(8866),p=o(7753),x=o(7129),d=o(364),h=o(8631),c=o(6066),m=o(8782),u=o(9821),g=o(7381),f=o(5380),w=o(6775),v=o(9854),j=o(32),C=o(6417);const y=(0,a.Z)({key:"whatmore-css-cv"});t.default=function(e){const t=e.events,[o,a,b]=(0,s.Z)(),[S,k,R,Z,M]=(0,u.Z)(),[P,T]=(0,r.useState)(Array(t.length).fill(0).map((()=>Math.random()))),B=(0,p.MO)("whatmoreCollectionsTileSize"),I=(0,p.MO)("whatmoreCollectionsTileSizePortrait"),L="portrait"===o?I:B,O="portrait"==o?0:(0,p.MO)("whatmoreLandscapePadding"),A=(0,p.MO)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:E}=(0,r.useContext)(d.I),F=(0,p.MO)("whatmoreShopId"),{whatmoreRootId:V}=(0,r.useContext)(d.I),z=e.onClick;function D(e){z(e)}(0,r.useEffect)((()=>{(0,g.Oo)("Video shopping powered by Whatmore!")}),[]),delete n.ZP.styles.global;var _=[];for(let r=0,i=!1;r<t.length;)i&&r!=t.length-1&&P[r]>.2?(_.push((0,C.jsx)(c.Z,{mode:o,event1:t[r],event2:t[r+1],onClick:()=>{D(t[r-1])}},"collections-tile-"+r)),r+=2,i=!i):(_.push((0,C.jsx)(h.Z,{mode:o,event:t[r],onClick:()=>{D(t[r-1])},borderRadius:"10%",removeBorders:!1},"collections-tile-"+r)),r+=1,i=!i);(0,r.useEffect)((()=>{j.IR.forEach((e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-a"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-a"]')))return;e&&(e.style.minHeight="0px")}))}),[]);const[q,H,N]=(0,w.Z)({triggerOnce:!1});return(0,C.jsx)(l.C,{value:y,children:(0,C.jsx)("div",{className:E?"whatmore-collection-events":"whatmore-carousel-events",children:(0,C.jsx)(i.x,{theme:n.ZP,cssVarsRoot:V,resetCSS:!1,children:(0,C.jsxs)(x.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,C.jsx)("div",{ref:q,style:{marginLeft:O+"px",marginRight:O+"px"},children:(0,C.jsx)(m.P,{renderElement:e=>(0,C.jsx)(C.Fragment,{children:e.eventData}),dataList:_,spacing:A,defaultHeight:S*L*.01+"px",defaultWidth:k*L*.01+"px",retainAlreadyRenderedElements:!0})}),(0,v.dhc)(F)&&E&&!H&&-1==e.index&&(0,C.jsx)(f.Z,{event:t[0],inVideoClick:D,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},6066:function(e,t,o){var r=o(7313),i=o(9854),n=o(7753),l=(o(9111),o(123),o(9778),o(4892)),a=o(7129),s=o(9821),p=o(6417);t.Z=function(e){var t;const[o,x,d,h,c]=(0,s.Z)(),[m]=(0,n.j1)("whatmoreSecondaryColor"),[u]=(0,n.j1)("whatmoreShopId"),[g]=(0,n.j1)("whatmoreCollectionsTileSize"),[f]=(0,n.j1)("whatmoreCollectionsTileSizePortrait"),w="portrait"===e.mode?f:g,[v,j]=(0,r.useState)(!1),C=(0,i.f63)(u);(0,r.useContext)(a.V);const y=e.event1,b=e.event2,S=e.onClick,k=.01*w,R=o*k,Z=o*k*.5,M=x*k,P=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",T="15%",B=e.removeBorders;return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:R+"px",width:M+"px",marginLeft:B?"2px":"5px",marginRight:B?"2px":"5px",marginTop:B?"2px":"5px",marginBottom:B?"2px":"5px",cursor:"pointer"},children:(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:B?"0px":P,boxShadow:B?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+C+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+C+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+C+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+C+"DA"},onClick:()=>{j(!0),S(y)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:Z+"px",width:M+"px",borderTopLeftRadius:B?"0px":T,borderTopRightRadius:B?"0px":T,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:y.thumbnail_image,isPlaying:!0,event:y})}),(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:Z+"px",width:M+"px",borderBottomLeftRadius:B?"0px":T,borderBottomRightRadius:B?"0px":T,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})]})})}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[91],{6071:function(e,t,o){o.r(t);var r=o(7313),i=o(6090),n=o(7616),a=(o(6143),o(7850),o(4444),o(7244),o(123),o(5892),o(1811),o(9302)),l=o(2575),p=o(8866),s=o(7753),x=o(7129),d=o(364),h=o(32),c=o(8631),m=o(6066),u=o(8782),g=o(9821),w=o(7381),f=o(9854),v=o(5380),y=o(6775),j=o(6417);const C=(0,l.Z)({key:"whatmore-css-cv"});t.default=function(e){const t=e.events,[o,l,b]=(0,p.Z)(),[S,k]=(0,r.useState)(Array(t.length).fill(0).map((()=>Math.random()))),[R,Z,M,P,T]=(0,g.Z)(),B=(0,s.MO)("whatmoreCollectionsTileSize"),I=(0,s.MO)("whatmoreCollectionsTileSizePortrait"),L="portrait"===o?I:B,O="portrait"==o?0:(0,s.MO)("whatmoreLandscapePadding"),A=(0,s.MO)("whatmoreCollectionsTilesSpacing"),{whatmoreIsCollectionsTemplate:E}=(0,r.useContext)(d.I),F=(0,s.MO)("whatmoreShopId"),{whatmoreRootId:V}=(0,r.useContext)(d.I),q=e.onClick,[z,D,_]=(0,y.Z)({triggerOnce:!1});function H(e){q(e)}delete n.ZP.styles.global;var N=[];for(let r=0,i=!1;r<t.length;)i&&r!=t.length-1&&S[r]>.2?(N.push((0,j.jsx)(m.Z,{event1:t[r],event2:t[r+1],onClick:()=>{H(t[r-1])},removeBorders:!0},"collections-tile-"+r)),r+=2,i=!i):(N.push((0,j.jsx)(c.Z,{mode:o,event:t[r],onClick:()=>{H(t[r-1])},removeBorders:!0,borderRadius:"0%"},"collections-tile-"+r)),r+=1,i=!i);return(0,r.useEffect)((()=>{(0,w.Oo)("Video shopping powered by Whatmore!")}),[]),(0,r.useEffect)((()=>{h.IR.forEach((e=>{var t;if(!(null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-b"]')||e.querySelector('.whatmore-template-type[data-wh="template-d"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-b"]')||e.querySelector('.whatmore-template-type[data="template-d"]')))return;e&&(e.style.minHeight="0px")}))}),[]),(0,j.jsx)(a.C,{value:C,children:(0,j.jsx)("div",{className:E?"whatmore-collection-events":"whatmore-carousel-events",children:(0,j.jsx)(i.x,{theme:n.ZP,cssVarsRoot:V,resetCSS:!1,children:(0,j.jsxs)(x.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,j.jsx)("div",{ref:z,style:{marginLeft:O+"px",marginRight:O+"px"},children:(0,j.jsx)(u.P,{renderElement:e=>(0,j.jsx)(j.Fragment,{children:e.eventData}),dataList:N,spacing:A,defaultHeight:R*L*.01+"px",defaultWidth:Z*L*.01+"px",retainAlreadyRenderedElements:!0})}),(0,f.dhc)(F)&&E&&!D&&-1==e.index&&(0,j.jsx)(v.Z,{event:t[0],inVideoClick:H,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},6066:function(e,t,o){var r=o(7313),i=o(9854),n=o(7753),a=(o(9111),o(123),o(9778),o(4892)),l=o(7129),p=o(9821),s=o(6417);t.Z=function(e){var t;const[o,x,d,h,c]=(0,p.Z)(),[m]=(0,n.j1)("whatmoreSecondaryColor"),[u]=(0,n.j1)("whatmoreShopId"),[g]=(0,n.j1)("whatmoreCollectionsTileSize"),[w]=(0,n.j1)("whatmoreCollectionsTileSizePortrait"),f="portrait"===e.mode?w:g,[v,y]=(0,r.useState)(!1),j=(0,i.f63)(u);(0,r.useContext)(l.V);const C=e.event1,b=e.event2,S=e.onClick,k=.01*f,R=o*k,Z=o*k*.5,M=x*k,P=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",T="15%",B=e.removeBorders;return(0,s.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:R+"px",width:M+"px",marginLeft:B?"2px":"5px",marginRight:B?"2px":"5px",marginTop:B?"2px":"5px",marginBottom:B?"2px":"5px",cursor:"pointer"},children:(0,s.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"fit-content",borderRadius:B?"0px":P,boxShadow:B?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+j+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+j+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+j+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+j+"DA"},onClick:()=>{y(!0),S(C)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,s.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:Z+"px",width:M+"px",borderTopLeftRadius:B?"0px":T,borderTopRightRadius:B?"0px":T,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,s.jsx)(a.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:!0,event:C})}),(0,s.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:Z+"px",width:M+"px",borderBottomLeftRadius:B?"0px":T,borderBottomRightRadius:B?"0px":T,borderTop:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,s.jsx)(a.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})]})})}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[229],{1291:function(t,e,r){r.r(e);var o=r(7313),i=r(6090),a=r(7616),l=r(32),s=(r(6143),r(7850),r(4444),r(7244),r(123),r(5892),r(1811),r(9212)),n=r(9302),p=r(2575),c=r(8866),m=r(7753),h=r(7129),d=r(364),y=r(8631),x=r(9821),w=r(8782),v=r(7381),f=r(9854),g=r(5380),u=r(6775),P=r(6417);const j=(0,p.Z)({key:"whatmore-css-cv"});e.default=function(t){var e;const[r,p,S]=(0,c.Z)(),[b,C,M,k,z]=(0,x.Z)(),O=(0,m.MO)("whatmoreCollectionsTileSize"),Z=(0,m.MO)("whatmoreCollectionsTileSizePortrait"),V="portrait"===r?Z:O,T="portrait"==r?0:(0,m.MO)("whatmoreLandscapePadding"),R=(0,m.MO)("whatmoreCollectionsTilesSpacing"),I=(0,m.MO)("whatmoreShopId"),[F]=(0,m.MO)("whatmorePrimaryColor"),{whatmoreRootId:E}=(0,o.useContext)(d.I),{whatmoreIsCollectionsTemplate:H}=(0,o.useContext)(d.I),q=t.events,B=t.onClick,L=(0,m.MO)("whatmoreTitleFont"),X="portrait"==r?(0,m.MO)("whatmoreTitleFontSizePortrait"):(0,m.MO)("whatmoreTitleFontSize"),W=null!==(e=(0,f.aRS)(I))&&void 0!==e?e:L,A=(0,m.MO)("whatmorePrimaryFont");function D(t){B(t)}delete a.ZP.styles.global;const Y=.055*C;var _=[];for(let o=0;o<q.length;){const t=q[o],e="STR1EXZ7ZRD"===I;_.push((0,P.jsxs)("div",{style:{position:"relative"},children:[(0,P.jsx)(y.Z,{mode:r,event:t,onClick:()=>{D(q[o-1])},removeBorders:!0,borderRadius:"5%",fontSize:Y},"collections-tile-"+o),e&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("position","absolute","important"),t.style.setProperty("bottom","4%","important"),t.style.setProperty("left","50%","important"),t.style.setProperty("transform","translateX(-50%)","important"),t.style.setProperty("color","white","important"),t.style.setProperty("padding","0.5rem 0rem 0rem 0.5rem","important"),t.style.setProperty("font-size",.9*Y+"px","important"),t.style.setProperty("font-weight","600","important"),t.style.setProperty("width","90%","important"),t.style.setProperty("max-width","100%","important"),t.style.setProperty("word-wrap","break-word","important"),t.style.setProperty("text-shadow","2px 2px 4px rgba(0, 0, 0, 0.5)","important"),t.style.setProperty("font-family",A,"important"),t.style.setProperty("-webkit-line-clamp",3,"important"),t.style.setProperty("line-clamp",3,"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"))},children:null===t||void 0===t?void 0:t.title}),(0,P.jsx)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:2},children:(0,P.jsx)(s.Z,{sx:{color:"white",fontSize:"1.3rem",filter:"drop-shadow(0 0 5px black)"}})})]})]})),o++}(0,o.useEffect)((()=>{(0,v.Oo)("Video shopping powered by Whatmore!")}),[]),(0,o.useEffect)((()=>{l.IR.forEach((t=>{var e;const r=null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-collections-c"]')||t.querySelector('.whatmore-template-type[data-wh="template-e"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-collections-c"]')||t.querySelector('.whatmore-template-type[data="template-e"]');if(!r)return;r&&t&&(t.style.minHeight="0px")}))}),[]);const[K,N,G]=(0,u.Z)({triggerOnce:!1});return(0,P.jsx)(n.C,{value:j,children:(0,P.jsx)("div",{className:H?"whatmore-collection-events":"whatmore-carousel-events",children:(0,P.jsx)(i.x,{theme:a.ZP,cssVarsRoot:E,resetCSS:!1,children:(0,P.jsxs)(h.V.Provider,{value:{tileTopMargin:0,tileBottomMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[t.heading.trim().length>0&&!H&&(0,f.wXY)(I)?(0,P.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,P.jsx)("p",{ref:t=>{t&&(t.style.setProperty("font-family",W,"important"),t.style.setProperty("font-size",X+"px","important"))},style:{color:F,backgroundClip:"text",textAlign:"center",fontWeight:(0,f.wOV)(I),lineHeight:(0,f.vY4)(I),letterSpacing:(0,f.X2K)(I)},children:t.heading})}):(0,P.jsx)(P.Fragment,{}),(0,P.jsx)("div",{ref:K,style:{marginLeft:T+"px",marginRight:T+"px"},children:(0,P.jsx)(w.P,{renderElement:t=>(0,P.jsx)(P.Fragment,{children:t.eventData}),dataList:_,spacing:R,defaultHeight:b*V*.01+"px",defaultWidth:C*V*.01+"px",retainAlreadyRenderedElements:!0})}),(0,f.dhc)(I)&&H&&!N&&-1==t.index&&(0,P.jsx)(g.Z,{event:q[0],inVideoClick:D,closeClick:e=>{e.stopPropagation(),t.setScreen(-2)}})]})})})})}},9212:function(t,e,r){var o=r(5318);e.Z=void 0;var i=o(r(5045)),a=r(6417),l=(0,i.default)([(0,a.jsx)("path",{d:"M18 20H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2v12z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2v12z"},"1")],"ShoppingBagTwoTone");e.Z=l}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[105],{8767:function(e,t,i){i.r(t),i.d(t,{default:function(){return E}});var n=i(7313),o=i(6090),r=i(7616),a=i(32),l=(i(6143),i(7850),i(4444),i(7244),i(123),i(5892),i(1811),i(9302)),s=i(2575),d=i(8866),c=i(7753),h=i(7129),p=i(364),m=i(9854),x=(i(9111),i(9778),i(4892)),u=i(9821),f=i(6417);var v=function(e){var t;const[i,o,r,a,l]=(0,u.Z)(),s=(0,c.MO)("whatmoreSecondaryColor"),d=(0,c.MO)("whatmorePrimaryFont"),h=(0,c.MO)("whatmoreShopId"),p=(0,c.MO)("whatmoreCollectionsTileSize"),v=(0,c.MO)("whatmoreCollectionsTileSizePortrait"),w="portrait"===e.mode?v:p,[g,y]=(0,n.useState)(!1),j=(0,m.f63)(h),b=e.event,E=e.onClick,S=e.removeBorders,P=o*w*.01,C=(0,m.eHp)(h);return(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:S?"2px":(0,m.VwM)(h)+"px",marginTop:S?"2px":"5px",marginBottom:S?"2px":"5px",cursor:"pointer"},onClick:()=>{y(!0),E(b)},className:[g?"whatmore-scale-on-tap":""].join(" "),children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,borderRadius:"50%",overflow:"hidden",boxShadow:S?"":"0px 1px 1px 0px "+s+"50, 0px -1px 1px 0px "+j+"50, 1px 0px 1px 0px "+s+"50, -1px 0px 1px 0px "+j+"80, 1px -1px 1px 0px "+s+"80, -1px 1px 1px 0px "+j+"DA, 1px 1px 1px 0px "+s+"DA, -1px -1px 1px 0px "+j+"DA"},children:(0,f.jsx)(f.Fragment,{children:(0,f.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P*C+"px",width:P*C+"px",borderRadius:"50%",backgroundColor:s,overflow:"hidden",border:"3px solid white"},children:(0,f.jsx)(x.Z,{height:"100%",width:"100%",url:b.thumbnail_image,isPlaying:!0,event:b})})})}),(0,f.jsx)("div",{style:{fontFamily:d,paddingTop:"10px",fontSize:null!==(t=e.fontSize)&&void 0!==t?t:10},children:(0,f.jsx)("p",{children:b.title})})]})},w=i(8782),g=i(7381),y=i(5380),j=i(6775);const b=(0,s.Z)({key:"whatmore-css-cv"});var E=function(e){const[t,i,s]=(0,d.Z)(),[x,E,S,P,C]=(0,u.Z)(),z=(0,c.MO)("whatmoreCollectionsTileSize"),L=(0,c.MO)("whatmoreCollectionsTileSizePortrait"),M="portrait"===t?L:z,I="portrait"==t?0:(0,c.MO)("whatmoreLandscapePadding"),A=(0,c.MO)("whatmoreCollectionsTilesSpacing"),k=(0,c.MO)("whatmoreShopId"),{whatmoreRootId:R}=(0,n.useContext)(p.I),Z=e.events,O=e.onClick,{whatmoreIsCollectionsTemplate:V}=(0,n.useContext)(p.I);function F(e){O(e)}const[T,Y,$]=(0,j.Z)({triggerOnce:!1});delete r.ZP.styles.global;const D=.055*E;var H=[];for(let n=0;n<Z.length;)H.push((0,f.jsx)(v,{mode:t,event:Z[n],onClick:()=>{F(Z[n-1])},removeBorders:(0,m.Xtg)(k),fontSize:D},"collections-tile-"+n)),n+=1;return(0,n.useEffect)((()=>{(0,g.Oo)("Video shopping powered by Whatmore!")}),[]),(0,n.useEffect)((()=>{a.IR.forEach((e=>{var t;const i=null!==(t=e.querySelector('.whatmore-template-type[data-wh="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data-wh="template-stories"]'))&&void 0!==t?t:e.querySelector('.whatmore-template-type[data="template-collections-stories"]')||e.querySelector('.whatmore-template-type[data="template-stories"]');if(!i)return;i&&e&&(e.style.minHeight="0px")}))}),[]),(0,f.jsx)(l.C,{value:b,children:(0,f.jsx)("div",{className:V?"whatmore-collection-events":"whatmore-carousel-events",children:(0,f.jsx)(o.x,{theme:r.ZP,cssVarsRoot:R,resetCSS:!1,children:(0,f.jsxs)(h.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:[(0,f.jsx)("div",{ref:T,style:{marginLeft:I+"px",marginRight:I+"px"},children:(0,f.jsx)(w.P,{renderElement:e=>(0,f.jsx)(f.Fragment,{children:e.eventData}),dataList:H,spacing:A,defaultHeight:x*M*.01+"px",defaultWidth:E*M*.01+"px",retainAlreadyRenderedElements:!0})}),(0,m.dhc)(k)&&!Y&&-1==e.index&&(0,f.jsx)(y.Z,{event:Z[0],inVideoClick:F,closeClick:t=>{t.stopPropagation(),e.setScreen(-2)}})]})})})})}},7129:function(e,t,i){i.d(t,{V:function(){return n}});const n=(0,i(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8782:function(e,t,i){i.d(t,{P:function(){return l}});var n=i(6775),o=i(7313),r=(i(123),i(6417));function a(e){const[t,i,o]=(0,n.Z)({triggerOnce:e.retainAlreadyRenderedElements});return(0,r.jsx)("div",{ref:t,children:i?e.renderElement({eventData:null===e||void 0===e?void 0:e.data}):(0,r.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function l(e){var t,i;return(0,o.useEffect)((()=>{const e=document.querySelector(".whatmore-carousel-horizontal-flex");let t,i=!1;function n(e){e.touches&&(null===e||void 0===e?void 0:e.touches.length)>0?(i=!0,t=e.touches[0].clientX):(i=!0,t=e.clientX)}function o(n){if(!i)return;const o=n.touches?n.touches[0].clientX:n.clientX;e.style.pointerEvents="none";const r=2*(t-o);e.scrollLeft+=r,t=o}function r(t){e.style.pointerEvents="auto",i=!1}return e&&("ontouchstart"in window&&(e.addEventListener("touchstart",n),e.addEventListener("touchmove",o),e.addEventListener("touchend",r)),e.addEventListener("mousedown",n),document.addEventListener("mousemove",o),document.addEventListener("mouseup",r)),()=>{e&&("ontouchstart"in window&&(e.removeEventListener("touchstart",n),e.removeEventListener("touchmove",o),e.removeEventListener("touchend",r)),e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r))}}),[]),(0,r.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3},className:"whatmore-carousel-horizontal-flex",children:null===e||void 0===e||null===(i=e.dataList)||void 0===i?void 0:i.map(((t,i)=>(0,r.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+i)))})}},5380:function(e,t,i){i.d(t,{Z:function(){return v}});var n=i(4959),o=i(7313),r=i(4892),a=i(6805),l=i(7753),s=i(9821);var d=function(e){const[t,i,n,o,r]=(0,s.Z)(),[d]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizePortrait"),[c]=(0,l.j1)("whatmoreEmbedAppVideoPlayerSizeLandscape"),h=r[a.YP]===a.$w?c/100:d/100*1.2;return[t*h,i*h,r]},c=i(9723),h=i(9461),p=i.n(h),m=i(1195),x=i(7108),u=(i(7244),i(123),i(9854)),f=i(6417);var v=function(e){var t;const i=o.useRef(null);var[s,h,v]=d();const w=(0,l.MO)("whatmoreUITheme"),[g]=(0,l.j1)("whatmoreEmbedAppVideoTitle"),[y]=(0,l.j1)("whatmoreEmbedAppPositionPortrait"),[j]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingPortrait"),[b]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingPortrait"),[E]=(0,l.j1)("whatmoreEmbedAppPositionLandscape"),[S]=(0,l.j1)("whatmoreEmbedAppHorizontalPaddingLandscape"),[P]=(0,l.j1)("whatmoreEmbedAppVerticalPaddingLandscape"),C=(0,l.MO)("whatmoreShopId");var z=y,L=j,M=b;v[a.YP]===a.$w&&(z=E,L=S,M=P);const[I,A]=(0,o.useState)(["initial",window.pageYOffset]),[k,R]=(0,o.useState)(!1),Z=null!==(t=e.isSpotlight)&&void 0!==t&&t,O=v[a.YP]===a.$w?.7*(0,u.zGA)(C):(0,u.zGA)(C),V=Z?O:1;s*=V,h*=V;const F=Z?(0,u.G0o)(C):z,T=Z?(0,u.X8j)(C):(0,u.lVn)(C),[Y,$]=(0,o.useState)(!Z&&(0,u.eXi)(C));function D(e,t){A(e),e[1]<=100?R(!1):t!=k&&(R(t),$(!1))}(0,o.useEffect)((()=>{let e=window.pageYOffset,t=!1;const i=()=>{const i=window.pageYOffset;Math.abs(i-e)<100||(D([i>e?"scrolled-down":"scrolled-up",i],!0),e=i>0?i:0),t=!1},n=()=>{t||(window.requestAnimationFrame(i),t=!0)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)}),[I]),(0,n.O3)({ref:i,handler:()=>{D(["scrolled-up",I[1]],!0)}});const H=e.event,N=e.inVideoClick,_=e.closeClick,B=.3*h,W=.6*h,X=.1*h,q=.1*(.5*h),K="round"==w?"10px":"0px",G=(0,u.Z$A)(C);var U=!1,J=0,Q=0;function ee(e){U=e}return(0,f.jsx)("div",{children:Y&&!T?(0,f.jsx)(f.Fragment,{}):k&&T?(0,f.jsx)("div",{style:"left"===F?{left:"1px",bottom:Z?(0,u.vnu)(C)+"px":M+"px",position:"fixed",zIndex:G}:{right:"5px",bottom:Z?(0,u.vnu)(C)+"px":M+"px",position:"fixed",zIndex:G},children:(0,f.jsxs)("div",{onClick:()=>{D(["initial",I[1]],!1)},style:{margin:"1px",width:h+"px",height:s+"px"},className:"left"===F?"whatmore-ultraminimized-video-view-left":"whatmore-ultraminimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:9/16},children:(0,f.jsx)(r.Z,{url:H.thumbnail_image,isPlaying:!1,event:H})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)("div",{className:"whatmore-ultraminimized-content-scale-out",children:(0,f.jsx)(m.Z,{sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:B+"px"},style:{position:"relative",zIndex:1,left:q+"px",bottom:q+"px"},onClick:_})})}),(0,f.jsx)("div",{style:{height:"100%",display:"flex",flexFlow:"column nowrap",alignItems:"center",justifyContent:"center"},children:(0,f.jsx)(x.Z,{sx:{color:"white",fontSize:2*B+"px",filter:"drop-shadow(0 0 2px black);"}})})]})})]})}):(0,f.jsx)(p(),{nodeRef:i,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 i,n;i=t.x,n=t.y,J=i,Q=n},onDrag:(e,t)=>{ee(!0)},onStop:(e,t)=>{U&&(Math.abs(t.x-J)>5||Math.abs(t.y-Q)>5)?ee(!1):N(H)},children:(0,f.jsx)("div",{ref:i,style:"left"===F?{left:Z?(0,u.$II)(C)+"px":L+"px",bottom:Z?(0,u.vnu)(C)+"px":M+"px",position:"fixed",zIndex:G}:{right:Z?(0,u.$II)(C)+"px":L+"px",bottom:Z?(0,u.vnu)(C)+"px":M+"px",position:"fixed",zIndex:G},children:(0,f.jsxs)("div",{style:Object.assign({},{boxSizing:"border-box",margin:"1px",width:e.isSpotlight&&"60122562760"==C?s+"px":h+"px",height:e.isSpotlight&&"60122562760"==C?h+"px":s+"px"}),className:"left"===F?"whatmore-minimized-video-view-left":"whatmore-minimized-video-view-right",children:[(0,f.jsx)("div",{style:{overflow:"hidden",position:"relative"},children:(0,f.jsx)("div",{style:{width:"100%",height:"100%",aspectRatio:e.isSpotlight&&"60122562760"==C?16/9:9/16},children:(0,f.jsx)(r.Z,{url:H.thumbnail_image,isMuted:!0,isPlaying:!0,event:H})})}),(0,f.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",width:"100%",height:"100%"},children:(0,f.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",height:"100%"},children:[(0,f.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:"flex-end",width:"100%",height:"fit-content"},children:(0,f.jsx)(m.Z,{className:"close-btn",sx:{filter:"drop-shadow(0 0 2px black);",color:"white",fontSize:B+"px"},onClick:_,style:{position:"relative",zIndex:1,left:X+"px",bottom:X+"px"}})}),(0,f.jsx)("div",{style:{marginLeft:"auto",marginRight:"auto"},children:(0,f.jsx)(c.Z,{sx:{color:(0,u.Ya_)(C),fontSize:W+"px",filter:"drop-shadow(0 0 2px black);"}})}),(0,f.jsx)("div",{style:{paddingLeft:"2px",paddingRight:"2px",borderBottomLeftRadius:K,borderBottomRightRadius:K,backgroundImage:g?"linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2), rgba(0,0,0,0.6))":""},children:(0,f.jsxs)("p",{style:{textAlign:"center",color:"white",fontFamily:"Sans-serif",fontWeight:"semi-bold",fontSize:.4*B+"px",margin:0,padding:0,lineHeight:"110%"},children:["\xa0",g]})})]})})]})})})})}},6805:function(e,t,i){i.d(t,{$I:function(){return l},$w:function(){return d},AK:function(){return r},AL:function(){return a},YP:function(){return o},me:function(){return n},rE:function(){return s}});const n="device_type",o="device_mode",r="mobile",a="tablet",l="desktop",s="portrait",d="landscape"},9821:function(e,t,i){var n=i(7753),o=i(8866),r=i(6805),a=i(9854);t.Z=function(e){const[t,i,l]=(0,o.Z)(),[s]=(0,n.j1)("whatmoreLandscapePadding"),[d]=(0,n.j1)("whatmoreShopId"),[c]=(0,n.j1)("whatmoreVideoTileSize"),[h]=(0,n.j1)("whatmoreVideoTileSizePortrait"),p=l>=1025,m="portrait"==t?h:c,x=!("portrait"!=t||!(l>=481)),u=m/100*1.3*.5,f=m/100;var v=Math.min(l,i),[w,g,y,j]=[.6*v*(16/9),.6*v,1.4,0];function b(e){return Math.round(10*e)/10}var E={DEVICE_TYPE:r.AK,DEVICE_MODE:r.rE};if(p){const e=g*u,t=w*u;[w,g,y,j]=[t,e,(l-2*s-2*(0,a.mZU)(d))/(1.1*e),s],E[r.me]=r.$I,E[r.YP]=r.$w}else if(x){var S=.8*g,P=.8*w;"portrait"==t?(S*=f,P*=f,[w,g,y,j]=[P,S,b(l/(1.2*S)),0],E[r.me]=r.AL,E[r.YP]=r.rE):([w,g,y,j]=[P,S,(l-2*s)/(1.1*S),s],E[r.me]=r.AL,E[r.YP]=r.$w)}else{S=g,P=w;"portrait"==t?(S=S*f*.9,P=P*f*.9,[w,g,y,j]=[P,S,b(l/(1.15*S)),0],E[r.me]=r.AK,E[r.YP]=r.rE):(S=.7*g,P=.7*w,[w,g,y,j]=[P,S,(l-2*s)/(1.1*S),s],E[r.me]=r.AK,E[r.YP]=r.$w)}return[w,g,y,j,E]}},9111:function(){},7244:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
|