whatmore-react-assets 1.0.1639 → 1.0.1641

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1639",
3
+ "version": "1.0.1641",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[262],{3262:function(t,e,r){r.r(e),r.d(e,{initiateCartSliderEvent:function(){return n}});var o=r(1745);const n=async function(t,e,r,n,i="",u="",a="",c="",d="",l=""){if("STRNV8MHJTF"!=t&&"STR6HU283UZ"!=t&&"STR9T3LLEJB"!=t&&"STRWJMIOJNX"!=t&&"STRUDQ36YAC"!=t&&"STR1D5ONOZX"!=t){var s;await fetch("https://"+window.location.hostname+"/cart.js",{cache:"reload"}).then((t=>t.json()));fetch(null===l||void 0===l||null===(s=l.split("?"))||void 0===s?void 0:s[0]).then((t=>t.text())).then((t=>{var e,r;const n=(new DOMParser).parseFromString(t,"text/html");let l=Array.from(n.querySelectorAll("product-form")).find((t=>t.querySelector('form > input[name="id"]')&&t.querySelector('form button[type="submit"]')));if(l||(l=Array.from(n.querySelectorAll('form[action*="/cart/add"]')).find((t=>t.querySelector('button[type="submit"]')&&t.querySelector(':scope > input[name="id"]')))),!l&&(l=Array.from(n.querySelectorAll('form[action*="/cart/add"]')).find((t=>t.querySelector('button[type="submit"]'))),!l.querySelector(':scope > input[name="id"]'))){const t=document.createElement("input");t.type="hidden",t.name="id",t.value=i,l.appendChild(t)}sessionStorage.setItem("wht_atc_form",l.outerHTML),l.hasAttribute("data-product-id")&&l.setAttribute("data-product-id",u),l.hasAttribute("data-product-variant-id")&&l.setAttribute("data-product-variant-id",i);const s=l.querySelector('input[name="id"]');s&&(s.setAttribute("value",i),s.hasAttribute("disabled")&&s.removeAttribute("disabled"));const m=l.querySelector('input[name="product-id"]');m&&m.setAttribute("value",u);const p=document.createElement("div");p.appendChild(l),document.body.appendChild(p),console.log(p,"formElement");const y=null===(e=Array.from((null===(r=document.querySelectorAll("product-form"))||void 0===r?void 0:r.length)>0?document.querySelectorAll("product-form"):document.querySelectorAll('form[action*="/cart/add"]')).find((t=>{const e=t.querySelector('input[name="id"]'),r=t.querySelector("product-form");return r&&r.getAttribute("data-product-variant-id")==i||e&&e.value==i})))||void 0===e?void 0:e.querySelector('button[type="submit"]');y&&y.click(),setTimeout((()=>{(0,o.js)().then((t=>t.json())).then((t=>{const e=t.items.find((t=>t.id==i)),r=e.key,n=e.quantity,u=e.properties;(0,o.CP)(r,n,u,a,c,d,!0,!0,!0)}))}),2e3)})),setTimeout(e,r)}else{console.log("Executing cart refresh script..");document.getElementById("whatsmorecart").value=Math.random()}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[988],{22:function(t,e,o){o.d(e,{$S:function(){return s},_:function(){return i},b4:function(){return n},dl:function(){return r},nN:function(){return d},tn:function(){return a},vF:function(){return l}});const i="device_type",r="device_mode",n="mobile",l="tablet",s="desktop",a="portrait",d="landscape"},932:function(t,e,o){var i=o(5830),r=o(1941),n=o(22),l=o(1348);e.A=function(t){const[e,o,s]=(0,r.A)(),[a]=(0,i.QN)("whatmoreLandscapePadding"),[d]=(0,i.QN)("whatmoreShopId"),[p]=(0,i.QN)("whatmoreVideoTileSize"),[c]=(0,i.QN)("whatmoreVideoTileSizePortrait"),u=s>=1025,y="portrait"==e?c:p,m=!("portrait"!=e||!(s>=481)),v=y/100*1.3*.5,f=y/100;var h=Math.min(s,o),[x,w,g,P]=[.6*h*(16/9),.6*h,1.4,0];function b(t){return Math.round(10*t)/10}var N={DEVICE_TYPE:n.b4,DEVICE_MODE:n.tn};if(u){const t=w*v,e=x*v;[x,w,g,P]=[e,t,(s-2*a-2*(0,l.$du)(d))/(1.1*t),a],N[n._]=n.$S,N[n.dl]=n.nN}else if(m){var j=.8*w,_=.8*x;"portrait"==e?(j*=f,_*=f,[x,w,g,P]=[_,j,b(s/(1.2*j)),0],N[n._]=n.vF,N[n.dl]=n.tn):([x,w,g,P]=[_,j,(s-2*a)/(1.1*j),a],N[n._]=n.vF,N[n.dl]=n.nN)}else{j=w,_=x;"portrait"==e?(j=j*f*.9,_=_*f*.9,[x,w,g,P]=[_,j,b(s/(1.15*j)),0],N[n._]=n.b4,N[n.dl]=n.tn):(j=.7*w,_=.7*x,[x,w,g,P]=[_,j,(s-2*a)/(1.1*j),a],N[n._]=n.b4,N[n.dl]=n.nN)}return[x,w,g,P,N]}},1957:function(t,e,o){var i=o(9950),r=o(932),n=(o(4826),o(5830)),l=o(9879),s=o(7509),a=o(22),d=o(1348),p=o(5551),c=o(6594),u=o(8538),y=o(8149),m=o(5727),v=o(7740),f=o(7035),h=o(4414);e.A=function(t){var e,o,x,w,g,P,b,N,j,_,C,S,M,z,k,I,$,F,R,A,T;const[D,O,W,E,X]=(0,r.A)(),B=.5*O;(0,i.useContext)(s.h);const U=(0,n.Xd)("whatmoreUITheme"),V=(0,n.Xd)("whatmoreShopId"),Y=(0,n.Xd)("whatmorePrimaryFont"),H=(0,n.Xd)("whatmoreSecondaryColor"),K=(0,n.Xd)("websiteLanguage"),L=t.onClick,Q=null===(e=t.isOnFocus)||void 0===e||e,G=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,Z=null!==(x=t.animateOnFocus&&(0,d.n5O)(V))&&void 0!==x&&x,q="portrait"===X[a.dl],J=(q?1.076*O*(0,d.HWj)(V):O*(0,d.N_4)(V))+"px",tt=(q?1.076*O*(0,d.HWj)(V):O*(0,d.N_4)(V))+"px",et=(q?.965*O*(0,d.HWj)(V):.859*O*(0,d.N_4)(V))+"px",ot=(0,d.VYo)(V),{whatmoreIsPreviewMode:it}=(0,i.useContext)(p.B),rt=.25*O,nt=rt+"px",lt=1.25*rt+"px",[st,at]=(0,i.useState)(t.event),[dt,pt]=(0,i.useState)(),ct=null!==(w=null===(g=st.products)||void 0===g?void 0:g.find((t=>"active"==t.product_status)))&&void 0!==w?w:null===(P=st.products)||void 0===P?void 0:P[0],ut=Math.round(+(null===ct||void 0===ct?void 0:ct.price)),yt=Math.round(+(null===ct||void 0===ct?void 0:ct.compare_price)),mt=yt&&0!=yt&&yt>ut?Math.round((yt-ut)/yt*100):NaN,[vt,ft]=(0,i.useState)(mt),[ht,xt]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{(0,d.w4b)(V)?(0,c.fu)(st,(0,d.NCy)(V),V).then((t=>{var e,o,i;at(t);const r=Math.round(null===(e=t.products)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.price),n=Math.round(null===t||void 0===t||null===(i=t.products[0])||void 0===i?void 0:i.compare_price),l=n&&0!=n&&n>r?Math.round((n-r)/n*100):NaN;ft(l),xt(!0)})):(async()=>{const t=await(0,y.M)(ct,(0,d.NCy)(V),V);pt(t),xt(!0)})()}),[]),(0,h.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","12px"),t.style.setProperty("margin-bottom","12px"))},className:Z&&!q?Q?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:O,margin:"0 auto",cursor:"pointer"},onClick:()=>{L(st)},children:["video"===st.event_type&&"55076552858"===V&&!q&&(0,h.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*B,marginLeft:B/2},children:(0,h.jsx)(m.A,{sx:{color:(0,d.KFN)(st.whatmoreShopId)+" !important",opacity:.8,fontSize:B,filter:"drop-shadow(0 0 15px black);"}})}),(0,h.jsx)("div",{style:{width:O,height:q&&Q?"STR2FOC6KG9"==V||"STRDOIDF6O7"==V?D:1.1*D:D,borderRadius:"round"==U?"5px":"0px",boxShadow:"round"==U?ot:null,borderWidth:(0,d.YcK)(V),borderColor:(0,d.Fwt)(V),overflow:"hidden"},children:(0,h.jsx)(l.A,{height:(0,d.u06)(V)+" !important",width:"100%",url:st.thumbnail_image,isPlaying:Q||G,event:st})}),(0,h.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(it?(0,d.Tr1)(V):(0,d.UmS)(V))&&(null===st||void 0===st||null===(b=st.products)||void 0===b?void 0:b.length)>0&&(0,h.jsx)("div",{style:{maxHeight:lt,maxWidth:nt,minWidth:null!==ct&&void 0!==ct&&ct.thumbnail_image?nt:"0",overflow:"hidden"},children:(0,h.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,d.KZe)(V),"important")},style:{height:"100%"},src:(null===ct||void 0===ct||null===(N=ct.thumbnail_image)||void 0===N||null===(j=N.split("?"))||void 0===j?void 0:j[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,h.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(V),"important"),t.style.setProperty("font-size",J,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",Y,"important"),t.style.setProperty("-webkit-line-clamp",1,"important"),t.style.setProperty("line-clamp",1,"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:(0,u.v)(null===ct||void 0===ct?void 0:ct.title)}),ht&&(0,d.Nzx)(V)&&(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,d.vw2)(V)?"row":"row-reverse",justifyContent:(0,d.vw2)(V)?"flex-start":"flex-end"},children:[(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.m5c)(V),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",Y,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,d.i6j)(V)?"normal":"bold"},children:(0,c.Sb)(parseFloat((0,v.U)()?(null!==(_=null===dt||void 0===dt||null===(C=dt.variants)||void 0===C||null===(S=C[0])||void 0===S?void 0:S.price)&&void 0!==_?_:null===dt||void 0===dt?void 0:dt.price)/100:null===ct||void 0===ct?void 0:ct.price)," ",V,null===(M=st.products[0])||void 0===M?void 0:M.currency)}),!isNaN(yt)&&yt>ut&&(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.gld)(V),"important"),t.style.setProperty("font-size",tt,"important"),t.style.setProperty("font-family",Y,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},style:{textDecoration:"line-through"},children:(0,c.Sb)(parseFloat((0,v.U)()?(null!==(z=null===dt||void 0===dt||null===(k=dt.variants)||void 0===k||null===(I=k[0])||void 0===I?void 0:I.compare_at_price)&&void 0!==z?z:null===dt||void 0===dt?void 0:dt.compare_at_price)/100:null===ct||void 0===ct?void 0:ct.compare_price)," ",V,null===($=st.products[0])||void 0===$?void 0:$.currency)}),"56352899156"==V&&(0,d.Nzx)(V)&&ht&&!isNaN(vt)&&0!=vt&&(0,h.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(V)?"#343434"==H?(0,d.ub$)(V):H:(0,d.ub$)(V),alignItems:"center",borderRadius:(0,d.v8m)(V)+"px",width:"fit-content",padding:"3px 4px"},children:(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(V),"important"),t.style.setProperty("font-size",et,"important"),t.style.setProperty("font-family",Y,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${vt}% ${null!==(F=null===f.m||void 0===f.m||null===(R=f.m[K])||void 0===R?void 0:R.off)&&void 0!==F?F:"off"}`})})]}),(0,d.Nzx)(V)&&ht&&!isNaN(vt)&&0!=vt&&(0,h.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,d.ub$)(V)?"#343434"==H?(0,d.ub$)(V):H:(0,d.ub$)(V),alignItems:"center",borderRadius:(0,d.v8m)(V)+"px",width:"fit-content",padding:(0,d.Cf)(V)?"3px 6px":"0px"},children:(0,d.Cf)(V)?(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d.BRY)(V),"important"),t.style.setProperty("font-size",et,"important"),t.style.setProperty("font-family",Y,"important"))},children:`${vt}% ${null!==(A=null===f.m||void 0===f.m||null===(T=f.m[K])||void 0===T?void 0:T.off)&&void 0!==A?A:"off"}`}):(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,d._zx)(V),"important"),t.style.setProperty("font-size",et,"important"),t.style.setProperty("font-family",(0,d.ogW)(V),"important"))},children:(0,d.rsz)(V)})})]}),""!=(null===st||void 0===st?void 0:st.title)&&(window.location.pathname.includes("/categories/")||window.location.pathname.includes("/products/"))&&(0,h.jsx)("div",{className:"wht-video-title",style:{display:"none",justifyContent:"center",borderRadius:"5px",alignItems:"center",padding:"6px 8px"},children:(0,h.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color","#343434"),t.style.setProperty("font-size",J,"important"),t.style.setProperty("font-family",Y,"important"),t.style.setProperty("font-weight","bold","important"),t.style.setProperty("text-align","center","important"))},children:null===st||void 0===st?void 0:st.title})})]})]})}},4669:function(){},4826:function(){},6042:function(){},7136:function(t,e,o){var i=o(9950),r=o(932),n=o(7509),l=o(5830),s=o(4414);e.A=function(t){var[e,o]=(0,r.A)();(0,i.useContext)(n.h);const a=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==a?void 0:o,aspectRatio:"8968077397"==a?9/16:void 0,height:"8968077397"==a?"100%":e,overflow:"hidden"}})}},7229:function(){},7509:function(t,e,o){o.d(e,{h:function(){return i}});const i=(0,o(9950).createContext)({tileTopMargin:10,tileBottomMMargin:10,tileLeftMargin:10,tileRightMargin:10,showPlayButton:!0})},9130:function(){},9733:function(){}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see carousel-template-feed.fd453a82.chunk.js.LICENSE.txt */
2
+ (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[933],{2173:function(e,t,n){const r=n(8558);e.exports=function(e){if("string"!==typeof e)return;const t=e.toUpperCase();return Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0},e.exports.currencySymbolMap=r},6989:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var r=n(9950),o=n(3852),i=n(340),s=n(5089),l=(n(3997),n(9733),n(4365),n(572)),a=n(8603),c=n(6086),d=n(3731),p=n(1941),h=n(5830),u=n(7509),m=n(1348),f=n(5551),v=n(1422),x=n(932),y=n(6649),g=n(4414);function w(e){var t;const[n,r,o]=(0,y.A)({triggerOnce:!1}),i=null!==(t=e.defaultHeight)&&void 0!==t?t:"fit-content";return(0,g.jsx)(v.B,{ref:n,direction:"row",minHeight:i,height:i,width:"100%",justifyContent:"center",alignItems:"center",children:r?e.data.map(((t,n)=>(0,g.jsx)("div",{children:e.renderElement({eventData:t})},"key"+n))):(0,g.jsx)("div",{style:{minHeight:{rowHeight:i},minWidth:"100%"}})})}function C(e){var t;const[n,r,o]=(0,x.A)(),i=null!==(t=e.elementsPerRow)&&void 0!==t?t:Math.floor(Math.min(o,e.dataList.length)),s=function(e,t){var n=[];const r=t;for(let o=0;o<e.length;o+=r){const t=e.slice(o,o+r);n.push(t)}return n}(e.dataList,i);return(0,g.jsx)(v.B,{direction:"column",height:"100%",width:"100%",justifyContent:"flex-start",alignItems:"center",spacing:.2*n,children:s.map(((t,o)=>(0,g.jsx)(w,{renderElement:e.renderElement,data:t,defaultHeight:n,defaultWidth:r},"key-"+o)))})}var D=n(2039),S=(n(4826),n(9879)),j=n(3590),P=n(8538),R=n(6594),F=n(7973),b=n(8149),M=n(7740),N=n(22);var A=function(e){var t,n,o,i,[s,l,a,c,d]=(0,x.A)();const p="portrait"===d[N.dl],[u,f]=(0,r.useState)(0),[v,y]=(0,r.useState)(e.event),[w]=(0,h.QN)("whatmoreShopId"),C=(0,h.QN)("whatmoreUITheme"),[D]=(0,h.QN)("whatmorePrimaryFont"),[S]=(0,h.QN)("whatmoreSecondaryColorShade900"),j=v.products.length,[A,B]=(0,r.useState)(),[T,U]=(0,r.useState)(!1);if(0==j)return(0,g.jsx)(g.Fragment,{});(0,r.useEffect)((()=>{const e=setInterval((()=>{f((e=>(e+1)%j))}),3e3);return()=>{clearInterval(e)}}),[]),(0,r.useEffect)((()=>{(0,m.w4b)(w)?(0,R.fu)(v,(0,m.NCy)(w),w).then((e=>{y(e),U(!0)})):(async()=>{var e;const t=await(0,b.M)(null===v||void 0===v||null===(e=v.products)||void 0===e?void 0:e[0],(0,m.NCy)(w),w);B(t),U(!0)})()}),[]);const L=(p?1.23*l*(0,m.HWj)(w):1.4*l*(0,m.N_4)(w))+"px",O=(p?1.15*l*(0,m.HWj)(w):1.31*l*(0,m.N_4)(w))+"px",$=(+v.products[u].price).toFixed(),I=(+v.products[u].compare_price).toFixed(),K=.25*l,k="56352899156"===w||"90617479486"===w||"9238315068"===w;return(0,g.jsxs)("div",{style:{background:(0,m.ivR)(w),display:"flex",flexDirection:k?"row":"column",padding:"10px 12px",gap:k?"8px":"6px",borderRadius:"round"==C?"0 0 12px 12px":"0",alignItems:k?"center":"stretch"},children:[(0,g.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"6px",flex:k?"1":"none"},children:[(0,g.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size",L,"important"),e.style.setProperty("line-height","120%","important"),e.style.setProperty("font-family",D,"important"),e.style.setProperty("-webkit-line-clamp",1,"important"),e.style.setProperty("line-clamp",1,"important"),e.style.setProperty("-webkit-box-orient","vertical","important"),e.style.setProperty("display","-webkit-box","important"),e.style.setProperty("overflow","hidden","important"),e.style.setProperty("text-overflow","ellipsis","important"))},style:{textAlign:"left",fontWeight:"bolder"},children:(0,P.v)(v.products[u].title)}),(0,g.jsxs)("div",{style:{display:"flex",gap:"4px"},children:[T&&(0,g.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","black","important"),e.style.setProperty("font-size",O,"important"),e.style.setProperty("font-family",D,"important"),e.style.setProperty("overflow","hidden","important"))},style:{textAlign:"left",fontWeight:"bold"},children:(0,R.Sb)(parseFloat((0,M.U)()?(null===A||void 0===A?void 0:A.price)/100:null===v||void 0===v||null===(t=v.products)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.price)," ",w,v.products[u].currency)}),!isNaN(I)&&I>$&&T&&(0,g.jsx)("p",{ref:e=>{e&&(e.style.setProperty("color","#808191","important"),e.style.setProperty("font-size",O,"important"),e.style.setProperty("font-family",D,"important"),e.style.setProperty("overflow","hidden","important"))},style:{fontWeight:"bold",textDecoration:"line-through"},children:(0,R.Sb)(parseFloat((0,M.U)()?(null===A||void 0===A?void 0:A.compare_at_price)/100:null===v||void 0===v||null===(o=v.products)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.compare_price)," ",w,v.products[u].currency)})]})]}),k&&(0,g.jsx)("img",{ref:e=>{e&&e.style.setProperty("object-fit",(0,m.KZe)(w),"important")},src:(0,F.b)(v.products[u].thumbnail_image,"&width=400&height=400"),style:{width:K,height:K,borderRadius:"round"==C?"5px":"0px",backgroundColor:S,flexShrink:0},alt:"product img"})]})},B=n(6613);function T(e){const[t,n]=(0,x.A)(),[r]=(0,h.QN)("whatmoreShowViews"),o=e.event;return(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"100%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,g.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",justifyContent:"space-between",alignItems:"center"},children:(0,g.jsx)("div",{style:{width:"100%",backgroundImage:"linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0.3))"},children:(0,g.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"center"},children:"show"===r?(0,g.jsx)("div",{style:{width:"100%",marginLeft:"5px",marginRight:"5px",marginTop:"10px"},children:(0,g.jsx)("div",{style:{display:"flex",flexFlow:"row nowrap",paddingLeft:"5px",width:"fit-content",height:"fit-content",justifyContent:"space-between",alignItems:"center"},children:(0,g.jsx)(j.A,{event:o,fontSize:.07*n+"px"})})}):(0,g.jsx)(g.Fragment,{})})})})})}var U=function(e){var t,n,o;const[i,s]=(0,x.A)();var l=(0,r.useContext)(u.h);const a=(0,h.Xd)("whatmoreUITheme"),c=(0,h.Xd)("whatmoreSecondaryColor"),d=(0,h.Xd)("whatmoreShopId"),p=e.event,f=e.onClick,v=null===(t=e.isOnFocus)||void 0===t||t,w=null!==(n=e.playOnUnfocus)&&void 0!==n&&n,C=null!==(o=e.animateOnFocus&&(0,m.n5O)(d))&&void 0!==o&&o,[D,j,P]=(0,y.A)({triggerOnce:!0});return(0,g.jsxs)("div",{ref:e=>{e&&(e.style.setProperty("margin-top",l.tileTopMargin+"px","important"),e.style.setProperty("margin-bottom",l.tileBottomMMargin+"px","important"))},style:{margin:"0 auto",width:s,height:i,borderRadius:"round"==a?"12px":"0px",borderWidth:(0,m.MRv)(d),borderColor:"white"==(0,m.Fwt)(d)?c:(0,m.Fwt)(d),overflow:"hidden",cursor:"pointer"},className:C?v?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",onClick:()=>{f(p)},children:[(0,g.jsx)(S.A,{height:"100%",width:"100%",url:p.thumbnail_image,isPlaying:v||w||(0,B.At)(),event:p}),(0,g.jsxs)("div",{style:{width:s,height:i},ref:D,children:[(0,g.jsx)(T,{event:p,isOnFocus:v}),(0,g.jsx)("div",{style:{position:"relative",zIndex:1,bottom:"200%",overflow:"hidden",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"transparent"},className:"whatmore-ios-css-relative-fix",children:(0,g.jsxs)("div",{style:{display:"flex",flexFlow:"column nowrap",justifyContent:"space-between",alignItems:"center",height:"100%",width:"100%"},children:[(0,g.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,g.jsx)("p",{children:" "})}),(0,g.jsx)("div",{style:{width:"100%"},children:j&&(0,m.imx)(d)?(0,g.jsx)("div",{className:"whatmore-event-tile-component-fade-in-animation",children:(0,g.jsx)(A,{event:p})}):(0,g.jsx)("div",{height:"20px"})})]})})]})]})};const L=(0,a.A)({key:"whatmore-css-hv"});var O=function(e){var t;const[n,a,v]=(0,p.A)(),[y,w,S]=(0,x.A)(),[j]=(0,h.QN)("whatmoreShopId"),[P]=(0,h.QN)("whatmorePrimaryColor"),[R]=(0,h.QN)("whatmoreTitleFont"),F="portrait"==n?(0,h.Xd)("whatmoreTitleFontSizePortrait"):(0,h.Xd)("whatmoreTitleFontSize"),{whatmoreRootId:b}=(0,r.useContext)(f.B),M=e.events,N=e.onClick,A=null!==(t=(0,m.sa6)(j))&&void 0!==t?t:R;function B(e){N(e)}const T=parseInt(Math.floor(S));return delete s.Ay.styles.global,(0,g.jsx)(l.C,{value:L,children:(0,g.jsx)("div",{className:"whatmore-carousel-events-feed",children:(0,g.jsx)(i.s,{theme:s.Ay,cssVarsRoot:b,resetCSS:!1,children:(0,g.jsxs)(u.h.Provider,{value:{tileTopMargin:3,tileBottomMMargin:3,tileLeftMargin:3,tileRightMargin:3,showPlayButton:!1},children:[e.heading.trim().length>0?(0,g.jsx)(c.o,{paddingBottom:"28px",children:(0,g.jsx)(d.E,{bgColor:P,bgClip:"text",fontSize:F,sx:{fontFamily:A+" !important"},align:"center",children:e.heading})}):(0,g.jsx)(g.Fragment,{}),"landscape"===n?(0,g.jsx)(C,{renderElement:e=>{const t=e.eventData;return(0,g.jsx)("div",{style:{margin:"10px"},children:(0,D.ij)(t)||(0,D.Il)(t)?(0,g.jsx)(U,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{B(t)}}):(0,g.jsx)(o.A,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{B(t)}})})},dataList:M,elementsPerRow:T}):(0,g.jsx)(C,{renderElement:e=>{const t=e.eventData;return(0,g.jsx)("div",{style:{margin:"10px"},children:(0,g.jsx)(U,{isOnFocus:!0,playOnUnfocus:!1,animateOnFocus:!0,event:t,onClick:()=>{B(t)}})})},dataList:M,elementsPerRow:T})]})})})})}},8558:function(e){e.exports={AED:"\u062f.\u0625",AFN:"\u060b",ALL:"L",AMD:"\u058f",ANG:"\u0192",AOA:"Kz",ARS:"$",AUD:"$",AWG:"\u0192",AZN:"\u20bc",BAM:"KM",BBD:"$",BDT:"\u09f3",BGN:"\u043b\u0432",BHD:".\u062f.\u0628",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"\u20bf",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"\xa5",CNY:"\xa5",COP:"$",COU:"COU",CRC:"\u20a1",CUC:"$",CUP:"\u20b1",CVE:"$",CZK:"K\u010d",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"\u062f\u062c",EEK:"kr",EGP:"\xa3",ERN:"Nfk",ETB:"Br",ETH:"\u039e",EUR:"\u20ac",FJD:"$",FKP:"\xa3",GBP:"\xa3",GEL:"\u20be",GGP:"\xa3",GHC:"\u20b5",GHS:"GH\u20b5",GIP:"\xa3",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"\u20aa",IMP:"\xa3",INR:"\u20b9",IQD:"\u0639.\u062f",IRR:"\ufdfc",ISK:"kr",JEP:"\xa3",JMD:"J$",JOD:"JD",JPY:"\xa5",KES:"KSh",KGS:"\u043b\u0432",KHR:"\u17db",KMF:"CF",KPW:"\u20a9",KRW:"\u20a9",KWD:"KD",KYD:"$",KZT:"\u20b8",LAK:"\u20ad",LBP:"\xa3",LKR:"\u20a8",LRD:"$",LSL:"M",LTC:"\u0141",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"\u0434\u0435\u043d",MMK:"K",MNT:"\u20ae",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"\u20a8",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"\u20a6",NIO:"C$",NOK:"kr",NPR:"\u20a8",NZD:"$",OMR:"\ufdfc",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"\u20b1",PKR:"\u20a8",PLN:"z\u0142",PYG:"Gs",QAR:"\ufdfc",RMB:"\uffe5",RON:"lei",RSD:"\u0414\u0438\u043d.",RUB:"\u20bd",RWF:"R\u20a3",SAR:"\ufdfc",SBD:"$",SCR:"\u20a8",SDG:"\u062c.\u0633.",SEK:"kr",SGD:"S$",SHP:"\xa3",SLL:"Le",SOS:"S",SRD:"$",SSP:"\xa3",STD:"Db",STN:"Db",SVC:"$",SYP:"\xa3",SZL:"E",THB:"\u0e3f",TJS:"SM",TMT:"T",TND:"\u062f.\u062a",TOP:"T$",TRL:"\u20a4",TRY:"\u20ba",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"\u20b4",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"\u043b\u0432",VEF:"Bs",VES:"Bs.S",VND:"\u20ab",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"\u0243",XCD:"$",XOF:"CFA",XPF:"\u20a3",XSU:"Sucre",XUA:"XUA",YER:"\ufdfc",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"}},9211:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{A:function(){return o}});var o=function e(t,n){function o(e,o,i){if("undefined"!==typeof document){"number"===typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in i)i[l]&&(s+="; "+l,!0!==i[l]&&(s+="="+i[l].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+s}}return Object.create({set:o,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),s=i.slice(1).join("=");try{var l=decodeURIComponent(i[0]);if(r[l]=t.read(s,l),e===l)break}catch(a){}}return e?r[e]:r}},remove:function(e,t){o(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);