whatmore-react-assets 1.0.1256 → 1.0.1258
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/static/css/926.a9bfc3e2.chunk.css +1 -0
- package/static/css/atc-with-form.1c72edff.chunk.css +1 -0
- package/static/css/banner-template-a.4e431eee.chunk.css +2 -0
- package/static/css/carousel-template-a.59976cb2.chunk.css +2 -0
- package/static/css/carousel-template-b.1672d707.chunk.css +2 -0
- package/static/css/carousel-template-f.599c1ca5.chunk.css +2 -0
- package/static/css/carousel-template-feed.e2240c87.chunk.css +2 -0
- package/static/css/carousel-template-g.59976cb2.chunk.css +2 -0
- package/static/css/carousel-template-h.59976cb2.chunk.css +2 -0
- package/static/css/carousel-template-view-more.e2240c87.chunk.css +2 -0
- package/static/css/collections-template-a.dc868ab3.chunk.css +2 -0
- package/static/css/collections-template-b.dc868ab3.chunk.css +2 -0
- package/static/css/collections-template-c.dc868ab3.chunk.css +2 -0
- package/static/css/collections-template-stories.dc868ab3.chunk.css +2 -0
- package/static/css/event-click-main.3373f4ca.chunk.css +2 -0
- package/static/css/event-click-product.1c72edff.chunk.css +1 -0
- package/static/css/event-click-spotlight.1c72edff.chunk.css +1 -0
- package/static/css/product-page-view.87a3bb51.chunk.css +2 -0
- package/static/css/spotlight-view.87a3bb51.chunk.css +2 -0
- package/static/css/stories-template-a.ff6f5f73.chunk.css +2 -0
- package/static/js/13.b216da25.chunk.js +1 -0
- package/static/js/145.afb3e08e.chunk.js +1 -0
- package/static/js/210.d4c6f9a4.chunk.js +1 -0
- package/static/js/240.9c510ae9.chunk.js +2 -0
- package/static/js/249.8d06733c.chunk.js +1 -0
- package/static/js/381.1d8dde8b.chunk.js +1 -0
- package/static/js/{548.fd822b0d.chunk.js → 548.835e0a00.chunk.js} +1 -1
- package/static/js/577.646fa55d.chunk.js +1 -0
- package/static/js/745.107e7775.chunk.js +2 -0
- package/static/js/766.c37f46b9.chunk.js +1 -0
- package/static/js/818.5a28f9db.chunk.js +117 -0
- package/static/js/819.c2077f1e.chunk.js +2 -0
- package/static/js/824.a6b7822c.chunk.js +2 -0
- package/static/js/app-main.1fcf0d4d.chunk.js +1 -0
- package/static/js/banner-template-a.a8db0e9c.chunk.js +1 -0
- package/static/js/{carousel-template-a.62fd1af8.chunk.js → carousel-template-a.97c5542d.chunk.js} +1 -1
- package/static/js/carousel-template-b.acc24e67.chunk.js +1 -0
- package/static/js/carousel-template-f.e200c4ba.chunk.js +1 -0
- package/static/js/{carousel-template-feed.dc73715e.chunk.js → carousel-template-feed.7a431655.chunk.js} +15 -1
- package/static/js/carousel-template-g.ee551976.chunk.js +1 -0
- package/static/js/carousel-template-h.4ec81ba7.chunk.js +1 -0
- package/static/js/carousel-template-view-more.432badc1.chunk.js +45 -0
- package/static/js/collections-template-a.a32aa9b7.chunk.js +1 -0
- package/static/js/collections-template-b.fe4cdbbf.chunk.js +1 -0
- package/static/js/collections-template-c.660b920a.chunk.js +1 -0
- package/static/js/collections-template-stories.407b3524.chunk.js +1 -0
- package/static/js/event-click-main.11e4c84a.chunk.js +1 -0
- package/static/js/homepage-carousel-view.e3f74b20.chunk.js +1 -0
- package/static/js/product-page-view.94a7a83c.chunk.js +1 -0
- package/static/js/recommended-carousel.9a69fdec.chunk.js +2 -0
- package/static/js/spotlight-view.98eb3966.chunk.js +1 -0
- package/static/js/stories-template-a.8f3cd7c3.chunk.js +1 -0
- package/whatmore.js +2 -2
- package/static/css/926.36fbef9a.chunk.css +0 -1
- package/static/css/atc-with-form.4dd2fc0f.chunk.css +0 -1
- package/static/css/banner-template-a.646138cd.chunk.css +0 -2
- package/static/css/carousel-template-a.1471d6e3.chunk.css +0 -2
- package/static/css/carousel-template-b.42b647f6.chunk.css +0 -2
- package/static/css/carousel-template-f.740de75c.chunk.css +0 -2
- package/static/css/carousel-template-feed.e325bb93.chunk.css +0 -2
- package/static/css/carousel-template-g.1471d6e3.chunk.css +0 -2
- package/static/css/carousel-template-h.1471d6e3.chunk.css +0 -2
- package/static/css/carousel-template-view-more.e325bb93.chunk.css +0 -2
- package/static/css/collections-template-a.55d08668.chunk.css +0 -2
- package/static/css/collections-template-b.55d08668.chunk.css +0 -2
- package/static/css/collections-template-c.55d08668.chunk.css +0 -2
- package/static/css/collections-template-stories.55d08668.chunk.css +0 -2
- package/static/css/event-click-main.35f97ebb.chunk.css +0 -2
- package/static/css/event-click-product.4dd2fc0f.chunk.css +0 -1
- package/static/css/event-click-spotlight.4dd2fc0f.chunk.css +0 -1
- package/static/css/product-page-view.4c845eb0.chunk.css +0 -2
- package/static/css/spotlight-view.4c845eb0.chunk.css +0 -2
- package/static/css/stories-template-a.6f769dad.chunk.css +0 -2
- package/static/js/13.f1f86e40.chunk.js +0 -1
- package/static/js/210.e86cb1a7.chunk.js +0 -1
- package/static/js/240.b51848e0.chunk.js +0 -2
- package/static/js/576.4ab6f670.chunk.js +0 -1
- package/static/js/731.6295f249.chunk.js +0 -1
- package/static/js/745.ffffc6ff.chunk.js +0 -2
- package/static/js/751.7583d614.chunk.js +0 -1
- package/static/js/766.3331538a.chunk.js +0 -1
- package/static/js/772.d392e74d.chunk.js +0 -1
- package/static/js/818.c1da06e0.chunk.js +0 -1
- package/static/js/819.0610382e.chunk.js +0 -2
- package/static/js/824.28d1bbc2.chunk.js +0 -2
- package/static/js/app-main.a48b9e27.chunk.js +0 -1
- package/static/js/banner-template-a.f0397d3d.chunk.js +0 -1
- package/static/js/carousel-template-b.acda07ed.chunk.js +0 -1
- package/static/js/carousel-template-f.1335587b.chunk.js +0 -1
- package/static/js/carousel-template-g.4c1aa299.chunk.js +0 -1
- package/static/js/carousel-template-h.34c19f87.chunk.js +0 -1
- package/static/js/carousel-template-view-more.00b3611e.chunk.js +0 -1
- package/static/js/collections-template-a.d50a7319.chunk.js +0 -1
- package/static/js/collections-template-b.78ffdc93.chunk.js +0 -1
- package/static/js/collections-template-c.a1678c8a.chunk.js +0 -1
- package/static/js/collections-template-stories.c14fb172.chunk.js +0 -1
- package/static/js/event-click-main.e9e26fc2.chunk.js +0 -1
- package/static/js/homepage-carousel-view.68aba45d.chunk.js +0 -1
- package/static/js/product-page-view.554de6cf.chunk.js +0 -1
- package/static/js/recommended-carousel.dc3caff3.chunk.js +0 -2
- package/static/js/spotlight-view.0d2f5306.chunk.js +0 -1
- package/static/js/stories-template-a.a3806a7c.chunk.js +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[441],{3580:function(t,e,r){r.r(e),r.d(e,{default:function(){return x}});var o=r(7313),n=r(8866),i=r(7753),l=(r(9111),r(123),r(9778),r(9854)),s=r(868),a=r(9363),c=r(4892),p=r(6417);var d=function(t){var e,r;const n=(0,i.MO)("whatmorePrimaryFont"),d=(0,i.MO)("whatmoreSecondaryColor"),u=(0,i.MO)("whatmoreShopId"),[h,f]=(0,o.useState)(!1),x=t.storyId,m=(0,s.V)(t.imageUrl),v=t.title,g=t.onClick,w=t.template,y=(0,l.f63)(u),b="template-stories-a"===w?"50%":"30%",j=Math.floor(t.tileSize),S=.12*j*(0,l.LM2)(u),k=null!==(e=(0,l.QaQ)(u))&&void 0!==e?e:n,C=null!==(r=(0,l.u2W)(u))&&void 0!==r?r:[d,y,d,y,d],F=(0,o.useRef)(0),_=(0,o.useRef)(null),R=(0,o.useRef)(null);return(0,o.useEffect)((()=>{R.current&&R.current.play()}),[]),(0,o.useEffect)((()=>{const t=_.current,e=new IntersectionObserver(((t,e)=>{t.forEach((t=>{if(t.isIntersecting){const r=t.target;r.src=r.dataset.src,e.unobserve(r)}}))}),{rootMargin:"0px 100px 0px 0px",threshold:0});return t&&e.observe(t),()=>{t&&e.unobserve(t)}}),[m]),(0,p.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",flexShrink:0,height:"fit-content",width:j*(0,l.jJ6)(u)+"px",marginLeft:"10px",marginRight:"10px",marginTop:"10px",marginBottom:"10px",cursor:"pointer"},onClick:()=>{f(!0),g(x)},className:[h?"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:b,boxShadow:"0px 2px 1px 0px "+C[0]+"50, 0px -2px 1px 0px "+C[1]+"50, 2px 0px 1px 0px "+C[2]+"50, -2px 0px 1px 0px "+C[3]+"80, 2px -2px 1px 0px "+C[4]+"80, -2px 2px 1px 0px "+C[0]+"DA, 2px 2px 1px 0px "+C[1]+"DA, -2px -2px 1px 0px "+C[2]+"DA"},children:(0,p.jsx)("div",{className:"whatmore-story-thumbnail-wrapper",style:{flexShrink:0,objectFit:"cover",height:j+"px",width:j+"px",borderRadius:b,border:"3px solid white",backgroundColor:"#343434"===d?"#d3d3d3":d,overflow:"hidden"},children:"video"==(0,a.$)(m)?(0,p.jsx)(c.Z,{height:"100%",width:"100%",url:m,isPlaying:!0,event:{event_type:"video"},borderRadius:b}):(0,p.jsx)("img",{ref:_,className:"whatmore-story-thumbnail","data-src":m.startsWith("https://cdn.shopify.com")?m.split("?")[0]+"?width=400&height=400":m,loading:"lazy",style:{objectFit:"cover",height:j+"px",width:j+"px",backgroundColor:"white"},alt:"story",onError:function(){if(F.current<3){let e=(0,s.V)(t.imageUrl);_.current.src="",_.current.src=e,F.current=F.current+1}else console.log("Failed to load image after several attempts"),_.current.src="https://d2oouab8j9eigo.cloudfront.net/background_white.png"}})})}),(0,p.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"center",flexShrink:0,height:"fit-content",width:"100%",marginTop:"10px"},children:(0,p.jsx)("p",{ref:t=>{t&&t.style.setProperty("font-size",S+"px","important")},style:{textAlign:"center",color:(0,l.WS3)(u),fontFamily:k,fontWeight:"normal",lineHeight:"110%",margin:0,padding:0,overflow:"hidden",textOverflow:"ellipsis",width:"auto"},children:null===v||void 0===v?void 0:v.substring(0,24)})})]})},u=r(32),h=r(9302);const f=(0,r(2575).Z)({key:"whatmore-stories-css"});var x=function(t){const[e,r,s]=(0,n.Z)(),[a]=(0,i.j1)("whatmoreStoryTileSize"),[c]=(0,i.j1)("whatmoreStoryTileSizeDesktop"),[x]=(0,i.j1)("whatmoreShopId"),[m,v]=(0,o.useState)("portrait"===e?"flex-start":"center"),g=(0,o.useRef)(null);var w=t.eventsStories;const y=t.onClick,b=t.template;(0,o.useEffect)((()=>{u.IR.forEach((t=>{var e;if(!(null!==(e=t.querySelector('.whatmore-template-type[data-wh="template-stories-a"]'))&&void 0!==e?e:t.querySelector('.whatmore-template-type[data="template-stories-a"]')))return;t&&(t.style.minHeight="0px")}))}),[]);const j=t=>{if(g.current){const e="left"===t?4*-C:4*C;g.current.scrollBy({left:e,behavior:"smooth"})}};(0,o.useEffect)((()=>{!function(){if(g.current){const t=g.current.scrollWidth,e=g.current.offsetWidth;v(t>e?"flex-start":"center")}}()}),[m,s]);const[S,k]=(0,o.useState)([]);(0,o.useEffect)((()=>{k(w.map((t=>t.storyset_dynamic_thumbnail?Math.floor(Math.random()*(t.events.length-1)):0)))}),[]);const C="landscape"===e?r*(c/100)*.3:s*(a/100)*.5;return(0,p.jsx)(h.C,{value:f,children:"landscape"==e&&!(0,l.DF0)(x)||"portrait"==e&&!(0,l.JaA)(x)?(0,p.jsx)(p.Fragment,{}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",justifyContent:m,height:"fit-content",width:"100%"},className:"whatmore-story-horizontal-flex",ref:g,children:w.map(((t,e)=>{var r,o,n,i,s;const a=t.storyset_dynamic_thumbnail?null!==(r=null===(o=t.events[S[e]])||void 0===o?void 0:o.poster_image)&&void 0!==r?r:t.thumbnail_image:null!==(n=t.thumbnail_image)&&void 0!==n?n:null===t||void 0===t||null===(i=t.events)||void 0===i||null===(s=i[0])||void 0===s?void 0:s.thumbnail_image;return(0,p.jsx)(d,{storyId:t.id,tileSize:(0,l.OFP)(x)?100:C,onClick:t=>{y(e)},template:b,imageUrl:a,fallbackUrl:t.thumbnail_image,title:t.title},"whatmore-story-"+t.id)}))}),"landscape"===e&&(0,l.sMW)(x)&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("button",{onClick:()=>j("left"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",left:0},children:(0,p.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:"<"})}),(0,p.jsx)("button",{onClick:()=>j("right"),style:{borderRadius:"4px",backgroundColor:"rgba(0, 0, 0, 0.4)",position:"absolute",top:"40%",transform:"translateY(-50%)",right:0},children:(0,p.jsx)("p",{style:{fontSize:"22px",color:"white",padding:"8px"},children:">"})})]})]})})}},9363:function(t,e,r){r.d(e,{$:function(){return l},s:function(){return i}});var o=r(9854),n=r(7753);function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=(0,n.MO)("whatmoreShopId");return"shopify"!=(0,o.Ipo)(r)?"STRNV8MHJTF"==r?t+"?format=webp":t:t+e}function l(t){var e;if(null!==t&&void 0!==t&&t.includes("https://w-media.b-cdn.net/process-media"))return"image";const r=null===t||void 0===t||null===(e=t.trim())||void 0===e?void 0:e.split("?")[0],o=/\.(jpeg|jpg|gif|png|svg|webp)$/i,n=/\.(mp4|mov|wmv|avi|flv|mkv)$/i;return null!==o&&void 0!==o&&o.test(r)?"image":null!==n&&void 0!==n&&n.test(r)?"video":void 0}},9111:function(){},9778:function(){}}]);
|