whatmore-react-assets 1.0.383 → 1.0.385
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/108.b2ddec17.chunk.js +1 -0
- package/static/js/13.f1f86e40.chunk.js +1 -0
- package/static/js/334.2b84fd2d.chunk.js +1 -0
- package/static/js/{561.95fd0242.chunk.js → 542.c8f2041b.chunk.js} +1 -1
- package/static/js/565.efa6c736.chunk.js +1 -0
- package/static/js/{870.39699dfa.chunk.js → 607.79e43274.chunk.js} +1 -1
- package/static/js/660.7c5a9dd7.chunk.js +1 -0
- package/static/js/67.c5b3a991.chunk.js +1 -0
- package/static/js/692.8431123f.chunk.js +1 -0
- package/static/js/708.6864dd77.chunk.js +1 -0
- package/static/js/74.612503b8.chunk.js +1 -0
- package/static/js/891.80bd94f6.chunk.js +1 -0
- package/static/js/959.0117bf7b.chunk.js +1 -0
- package/static/js/972.0979eb35.chunk.js +1 -0
- package/static/js/{708.1afcf6ea.chunk.js → 986.82a241b8.chunk.js} +1 -1
- package/whatmore.js +2 -2
- package/static/js/108.23835899.chunk.js +0 -1
- package/static/js/143.11d4ffa5.chunk.js +0 -1
- package/static/js/184.bc98c639.chunk.js +0 -1
- package/static/js/2.f7775db8.chunk.js +0 -1
- package/static/js/319.be28a971.chunk.js +0 -1
- package/static/js/334.84842919.chunk.js +0 -1
- package/static/js/607.fdf1e7c4.chunk.js +0 -1
- package/static/js/67.918ff54d.chunk.js +0 -1
- package/static/js/736.12c32ff7.chunk.js +0 -1
- package/static/js/891.24ef2324.chunk.js +0 -1
- package/static/js/959.45be2922.chunk.js +0 -1
- package/static/js/972.4c055304.chunk.js +0 -1
- /package/static/css/{708.c26c04d7.chunk.css → 607.c26c04d7.chunk.css} +0 -0
- /package/static/css/{143.87d68d74.chunk.css → 692.87d68d74.chunk.css} +0 -0
- /package/static/css/{736.3c3dc8c6.chunk.css → 708.3c3dc8c6.chunk.css} +0 -0
- /package/static/css/{184.87d68d74.chunk.css → 74.87d68d74.chunk.css} +0 -0
- /package/static/css/{870.c26c04d7.chunk.css → 986.c26c04d7.chunk.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[986],{1291:function(e,t,n){n.r(t);var r=n(7313),i=n(6090),o=n(7616),l=(n(6143),n(7850),n(4444),n(7244),n(123),n(5892),n(1811),n(9302)),a=n(2575),x=n(8866),p=n(7753),d=n(7129),s=n(4136),h=n(8631),c=(n(6066),n(9821)),u=n(8782),f=n(6417);const m=(0,a.Z)({key:"whatmore-css-cv"});t.default=function(e){const[t,n,a]=(0,x.Z)(),[g,w,v,j,y]=(0,c.Z)(),C=(0,p.MO)("whatmoreCollectionsTileSize"),b="portrait"==t?0:(0,p.MO)("whatmoreLandscapePadding"),R=(0,p.MO)("whatmoreCollectionsTilesSpacing"),{whatmoreRootId:S}=(0,r.useContext)(s.I),k=e.events,P=e.onClick;delete o.ZP.styles.global;var L=[];for(let r=0;r<k.length;)L.push((0,f.jsx)(h.Z,{event:k[r],onClick:()=>{var e;e=k[r-1],P(e)},removeBorders:!0,borderRadius:"5%"},"collections-tile-"+r)),r+=1;return(0,f.jsx)(l.C,{value:m,children:(0,f.jsx)("div",{children:(0,f.jsx)(i.x,{theme:o.ZP,cssVarsRoot:S,resetCSS:!1,children:(0,f.jsx)(d.V.Provider,{value:{tileTopMargin:0,tileBottomMMargin:0,tileLeftMargin:0,tileRightMargin:0,showPlayButton:!1},children:(0,f.jsx)("div",{style:{marginLeft:b+"px",marginRight:b+"px"},children:(0,f.jsx)(u.P,{renderElement:e=>(0,f.jsx)(f.Fragment,{children:e.eventData}),dataList:L,spacing:R,defaultHeight:g*C*.01+"px",defaultWidth:w*C*.01+"px",retainAlreadyRenderedElements:!0})})})})})})}},7129:function(e,t,n){n.d(t,{V:function(){return r}});const r=(0,n(7313).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},8631:function(e,t,n){var r=n(7313),i=n(9854),o=n(7753),l=(n(9111),n(123),n(9778),n(4892)),a=n(7129),x=n(9821),p=n(6417);t.Z=function(e){var t;const[n,d,s,h,c]=(0,x.Z)(),[u]=(0,o.j1)("whatmorePrimaryFont"),[f]=(0,o.j1)("whatmorePrimaryColor"),[m]=(0,o.j1)("whatmoreSecondaryColor"),[g]=(0,o.j1)("whatmoreShopId"),[w]=(0,o.j1)("whatmoreCollectionsTileSize"),[v,j]=(0,r.useState)(!1),y=(0,i.f6)(g);(0,r.useContext)(a.V);const C=e.event,b=e.onClick,R=e.removeBorders,S=n*w*.01,k=d*w*.01,P=null!==(t=e.borderRadius)&&void 0!==t?t:"0%";return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:k+"px",marginLeft:R?"2px":"5px",marginRight:R?"2px":"5px",marginTop:R?"2px":"5px",marginBottom:R?"2px":"5px",cursor:"pointer"},onClick:()=>{j(!0),b(C)},className:[v?"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:P,overflow:"hidden",boxShadow:R?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+y+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+y+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+y+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+y+"DA"},children:(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:S+"px",width:k+"px",borderRadius:P,backgroundColor:"gray",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:!0,event:C})})})})}},6066:function(e,t,n){var r=n(7313),i=n(9854),o=n(7753),l=(n(9111),n(123),n(9778),n(4892)),a=n(7129),x=n(9821),p=n(6417);t.Z=function(e){var t;const[n,d,s,h,c]=(0,x.Z)(),[u]=(0,o.j1)("whatmorePrimaryFont"),[f]=(0,o.j1)("whatmorePrimaryColor"),[m]=(0,o.j1)("whatmoreSecondaryColor"),[g]=(0,o.j1)("whatmoreShopId"),[w]=(0,o.j1)("whatmoreCollectionsTileSize"),[v,j]=(0,r.useState)(!1),y=(0,i.f6)(g);(0,r.useContext)(a.V);const C=e.event1,b=e.event2,R=e.onClick,S=.01*w,k=n*S,P=n*S*.5,L=d*S,Z=null!==(t=e.borderRadius)&&void 0!==t?t:"10%",M="15%",B=e.removeBorders;return(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",flexShrink:0,height:k+"px",width:L+"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":Z,boxShadow:B?"":"0px 1px 1px 0px "+m+"50, 0px -1px 1px 0px "+y+"50, 1px 0px 1px 0px "+m+"50, -1px 0px 1px 0px "+y+"80, 1px -1px 1px 0px "+m+"80, -1px 1px 1px 0px "+y+"DA, 1px 1px 1px 0px "+m+"DA, -1px -1px 1px 0px "+y+"DA"},onClick:()=>{j(!0),R(C)},className:[v?"whatmore-scale-on-tap":""].join(" "),children:[(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P+"px",width:L+"px",borderTopLeftRadius:B?"0px":M,borderTopRightRadius:B?"0px":M,borderBottom:"2px solid transparent",backgroundColor:"transparent",overflow:"hidden"},children:(0,p.jsx)(l.Z,{height:"100%",width:"100%",url:C.thumbnail_image,isPlaying:!0,event:C})}),(0,p.jsx)("div",{style:{flexShrink:0,objectFit:"cover",height:P+"px",width:L+"px",borderBottomLeftRadius:B?"0px":M,borderBottomRightRadius:B?"0px":M,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})})]})})}},8782:function(e,t,n){n.d(t,{P:function(){return x}});var r=n(3933),i=n(8866),o=n(7313),l=(n(123),n(6417));function a(e){const{ref:t,inView:n,entry:i}=(0,r.YD)({triggerOnce:e.retainAlreadyRenderedElements});return(0,l.jsx)("div",{ref:t,children:n?e.renderElement({eventData:e.data}):(0,l.jsx)("div",{style:{minWidth:e.defaultHeight,minHeight:e.defaultWidth}})})}function x(e){var t;const[n,r,x]=(0,i.Z)();return(0,o.useEffect)((()=>{function t(e){e.preventDefault(),e.stopPropagation(),n.scrollLeft+=e.deltaX,n.scrollLeft+=e.deltaY}const n=document.querySelector(".whatmore-carousel-horizontal-flex");return e.isScroll&&(null===n||void 0===n||n.addEventListener("wheel",t)),()=>{document.removeEventListener("wheel",t)}}),[]),(0,l.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",height:"fit-content",width:"100%",gap:null!==(t=e.spacing)&&void 0!==t?t:3,overflowX:"auto"},className:"whatmore-carousel-horizontal-flex",children:e.dataList.map(((t,n)=>(0,l.jsx)(a,{renderElement:e.renderElement,data:t,defaultHeight:e.defaultHeight,defaultWidth:e.defaultWidth,retainAlreadyRenderedElements:e.retainAlreadyRenderedElements},"key-"+n)))})}},9111:function(){},5892:function(){},4444:function(){},1811:function(){},6143:function(){},7850:function(){},9778:function(){}}]);
|