whatmore-react-assets 1.0.1603 → 1.0.1605

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 (38) hide show
  1. package/package.json +1 -1
  2. package/static/js/190.ca6fec46.chunk.js +2 -0
  3. package/static/js/217.0be579a9.chunk.js +127 -0
  4. package/static/js/387.66650953.chunk.js +1 -0
  5. package/static/js/669.ab16772b.chunk.js +1 -0
  6. package/static/js/91.c89af257.chunk.js +2 -0
  7. package/static/js/94.913f9714.chunk.js +1 -0
  8. package/static/js/app-main.0b4ac3be.chunk.js +1 -0
  9. package/static/js/banner-template-a.481298e9.chunk.js +2 -0
  10. package/static/js/carousel-template-a.82dcff84.chunk.js +1 -0
  11. package/static/js/carousel-template-b.8bce6607.chunk.js +2 -0
  12. package/static/js/carousel-template-f.230f4350.chunk.js +41 -0
  13. package/static/js/carousel-template-feed.b75aa7cb.chunk.js +16 -0
  14. package/static/js/carousel-template-h.f6e77086.chunk.js +1 -0
  15. package/static/js/carousel-template-view-more.24749cdd.chunk.js +55 -0
  16. package/static/js/event-click-main.37883b62.chunk.js +2 -0
  17. package/static/js/event-click-product.9cdfc8af.chunk.js +2 -0
  18. package/static/js/event-click-spotlight.8cbb1713.chunk.js +2 -0
  19. package/static/js/homepage-carousel-view.7970ae14.chunk.js +1 -0
  20. package/static/js/{product-page-view.de620f2b.chunk.js → product-page-view.be505a5f.chunk.js} +1 -1
  21. package/static/js/{spotlight-view.7e159821.chunk.js → spotlight-view.6ec61acd.chunk.js} +1 -1
  22. package/whatmore.js +2 -2
  23. package/static/js/217.278eeb5f.chunk.js +0 -127
  24. package/static/js/387.bc95ab69.chunk.js +0 -1
  25. package/static/js/669.21f93d0a.chunk.js +0 -2
  26. package/static/js/94.dbbbb2a6.chunk.js +0 -1
  27. package/static/js/app-main.eef71bfa.chunk.js +0 -1
  28. package/static/js/banner-template-a.a7c3464a.chunk.js +0 -1
  29. package/static/js/carousel-template-a.5c9f79e6.chunk.js +0 -1
  30. package/static/js/carousel-template-b.fd850c49.chunk.js +0 -1
  31. package/static/js/carousel-template-f.2a934336.chunk.js +0 -2
  32. package/static/js/carousel-template-feed.b5bf61af.chunk.js +0 -15
  33. package/static/js/carousel-template-h.e8c02703.chunk.js +0 -1
  34. package/static/js/carousel-template-view-more.99dd6aca.chunk.js +0 -55
  35. package/static/js/event-click-main.9dbcce43.chunk.js +0 -1
  36. package/static/js/event-click-product.48c6cdb0.chunk.js +0 -1
  37. package/static/js/event-click-spotlight.4a0386e7.chunk.js +0 -1
  38. package/static/js/homepage-carousel-view.f7a9512c.chunk.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1603",
3
+ "version": "1.0.1605",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 190.ca6fec46.chunk.js.LICENSE.txt */
2
+ (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[190],{7136:function(t,e,o){"use strict";var r=o(9950),i=o(932),n=o(7509),l=o(5830),s=o(4414);e.A=function(t){var[e,o]=(0,i.A)();(0,r.useContext)(n.h);const p=(0,l.Xd)("whatmoreShopId");return t.event,(0,s.jsx)("div",{style:{margin:"0 auto",width:"8968077397"==p?void 0:o,aspectRatio:"8968077397"==p?9/16:void 0,height:"8968077397"==p?"100%":e,overflow:"hidden"}})}},1957:function(t,e,o){"use strict";var r=o(9950),i=o(932),n=(o(4826),o(5830)),l=o(9879),s=o(7509),p=o(22),a=o(1348),d=o(4737),c=o(6594),u=o(8538),v=o(8149),y=o(5727),m=o(7740),f=o(4414);e.A=function(t){var e,o,h,x,P,D,C,S,R,w,N,M,$,g,b,B,T,U,A,F,K,L,O,j,G,I;const[H,W,k,E,Y]=(0,i.A)(),Z=.5*W;(0,r.useContext)(s.h);const X=(0,n.Xd)("whatmoreUITheme"),_=(0,n.Xd)("whatmoreShopId"),z=(0,n.Xd)("whatmorePrimaryFont"),V=(0,n.Xd)("whatmoreSecondaryColor"),J=t.onClick,Q=null===(e=t.isOnFocus)||void 0===e||e,q=null!==(o=t.playOnUnfocus)&&void 0!==o&&o,tt=null!==(h=t.animateOnFocus&&(0,a.n5O)(_))&&void 0!==h&&h,et="portrait"===Y[p.dl],ot=(et?1.076*W*(0,a.HWj)(_):W*(0,a.N_4)(_))+"px",rt=(et?1.076*W*(0,a.HWj)(_):W*(0,a.N_4)(_))+"px",it=(et?.965*W*(0,a.HWj)(_):.859*W*(0,a.N_4)(_))+"px",nt=(0,a.VYo)(_),{whatmoreIsPreviewMode:lt}=(0,r.useContext)(d.B),st=.25*W,pt=st+"px",at=1.25*st+"px",[dt,ct]=(0,r.useState)(t.event),[ut,vt]=(0,r.useState)(),yt=Math.round(+(null===(x=dt.products)||void 0===x||null===(P=x[0])||void 0===P?void 0:P.price)),mt=Math.round(+(null===dt||void 0===dt||null===(D=dt.products[0])||void 0===D?void 0:D.compare_price)),ft=mt&&0!=mt&&mt>yt?Math.round((mt-yt)/mt*100):NaN,[ht,xt]=(0,r.useState)(ft),[Pt,Dt]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{(0,a.w4b)(_)?(0,c.fu)(dt,(0,a.NCy)(_),_).then((t=>{var e,o,r;ct(t);const i=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===(r=t.products[0])||void 0===r?void 0:r.compare_price),l=n&&0!=n&&n>i?Math.round((n-i)/n*100):NaN;xt(l),Dt(!0)})):(async()=>{var t;const e=await(0,v.M)(null===dt||void 0===dt||null===(t=dt.products)||void 0===t?void 0:t[0],(0,a.NCy)(_),_);vt(e),Dt(!0)})()}),[]),(0,f.jsxs)("div",{ref:t=>{t&&(t.style.setProperty("margin-top","12px"),t.style.setProperty("margin-bottom","12px"))},className:tt&&!et?Q?"whatmore-event-tile-scale-out-animation":"whatmore-event-tile-scale-in-animation":"none",style:{width:W,margin:"0 auto",cursor:"pointer"},onClick:()=>{J(dt)},children:["video"===dt.event_type&&"55076552858"===_&&!et&&(0,f.jsx)("div",{className:"video-event-tile",style:{position:"fixed",marginTop:1.2*Z,marginLeft:Z/2},children:(0,f.jsx)(y.A,{sx:{color:(0,a.KFN)(dt.whatmoreShopId)+" !important",opacity:.8,fontSize:Z,filter:"drop-shadow(0 0 15px black);"}})}),(0,f.jsx)("div",{style:{width:W,height:et&&Q?"STR2FOC6KG9"==_||"STRDOIDF6O7"==_?H:1.1*H:H,borderRadius:"round"==X?"5px":"0px",boxShadow:"round"==X?nt:null,borderWidth:(0,a.YcK)(_),borderColor:(0,a.Fwt)(_),overflow:"hidden"},children:(0,f.jsx)(l.A,{height:(0,a.u06)(_)+" !important",width:"100%",url:dt.thumbnail_image,isPlaying:Q||q,event:dt})}),(0,f.jsxs)("div",{style:{cursor:"pointer",display:"flex",gap:"6px",padding:"12px 4px"},children:[(lt?(0,a.Tr1)(_):(0,a.UmS)(_))&&(null===dt||void 0===dt||null===(C=dt.products)||void 0===C?void 0:C.length)>0&&(0,f.jsx)("div",{style:{maxHeight:at,maxWidth:pt,minWidth:null!==(S=dt.products)&&void 0!==S&&null!==(R=S[0])&&void 0!==R&&R.thumbnail_image?pt:"0",overflow:"hidden"},children:(0,f.jsx)("img",{ref:t=>{t&&t.style.setProperty("object-fit",(0,a.KZe)(_),"important")},style:{height:"100%"},src:(null===(w=dt.products)||void 0===w||null===(N=w[0])||void 0===N||null===(M=N.thumbnail_image)||void 0===M||null===($=M.split("?"))||void 0===$?void 0:$[0])+"?width=400&height=400",alt:"thumbnail"})}),(0,f.jsxs)("div",{className:"wht-prod-info",style:{display:"flex",flexDirection:"column",gap:"5px"},children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,a.m5c)(_),"important"),t.style.setProperty("font-size",ot,"important"),t.style.setProperty("line-height","120%","important"),t.style.setProperty("font-family",z,"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===(g=dt.products[0])||void 0===g?void 0:g.title)}),Pt&&(0,a.Nzx)(_)&&(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexDirection:(0,a.vw2)(_)?"row":"row-reverse",justifyContent:(0,a.vw2)(_)?"flex-start":"flex-end"},children:[(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,a.m5c)(_),"important"),t.style.setProperty("font-size",rt,"important"),t.style.setProperty("font-family",z,"important"),t.style.setProperty("white-space","nowrap","important"),t.style.setProperty("width","fit-content","important"))},style:{textAlign:"left",fontWeight:"normal"==(0,a.i6j)(_)?"normal":"bold"},children:(0,c.Sb)(parseFloat((0,m.U)()?(null!==(b=null===ut||void 0===ut||null===(B=ut.variants)||void 0===B||null===(T=B[0])||void 0===T?void 0:T.price)&&void 0!==b?b:null===ut||void 0===ut?void 0:ut.price)/100:null===dt||void 0===dt||null===(U=dt.products)||void 0===U||null===(A=U[0])||void 0===A?void 0:A.price)," ",_,null===(F=dt.products[0])||void 0===F?void 0:F.currency)}),!isNaN(mt)&&mt>yt&&(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,a.gld)(_),"important"),t.style.setProperty("font-size",rt,"important"),t.style.setProperty("font-family",z,"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,m.U)()?(null!==(K=null===ut||void 0===ut||null===(L=ut.variants)||void 0===L||null===(O=L[0])||void 0===O?void 0:O.compare_at_price)&&void 0!==K?K:null===ut||void 0===ut?void 0:ut.compare_at_price)/100:null===dt||void 0===dt||null===(j=dt.products)||void 0===j||null===(G=j[0])||void 0===G?void 0:G.compare_price)," ",_,null===(I=dt.products[0])||void 0===I?void 0:I.currency)}),"56352899156"==_&&(0,a.Nzx)(_)&&Pt&&!isNaN(ht)&&0!=ht&&(0,f.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(_)?"#343434"==V?(0,a.ub$)(_):V:(0,a.ub$)(_),alignItems:"center",borderRadius:(0,a.v8m)(_)+"px",width:"fit-content",padding:"3px 4px"},children:(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,a.BRY)(_),"important"),t.style.setProperty("font-size",it,"important"),t.style.setProperty("font-family",z,"important"),t.style.setProperty("width","fit-content","important"),t.style.setProperty("white-space","nowrap","important"))},children:`${ht}% off`})})]}),(0,a.Nzx)(_)&&Pt&&!isNaN(ht)&&0!=ht&&(0,f.jsx)("div",{style:{display:"flex",backgroundColor:"green"==(0,a.ub$)(_)?"#343434"==V?(0,a.ub$)(_):V:(0,a.ub$)(_),alignItems:"center",borderRadius:(0,a.v8m)(_)+"px",width:"fit-content",padding:(0,a.Cf)(_)?"3px 6px":"0px"},children:(0,a.Cf)(_)?(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,a.BRY)(_),"important"),t.style.setProperty("font-size",it,"important"),t.style.setProperty("font-family",z,"important"))},children:`${ht}% Off`}):(0,f.jsx)("p",{ref:t=>{t&&(t.style.setProperty("color",(0,a._zx)(_),"important"),t.style.setProperty("font-size",it,"important"),t.style.setProperty("font-family",(0,a.ogW)(_),"important"))},children:(0,a.rsz)(_)})})]})]})]})}},2173:function(t,e,o){const r=o(8558);t.exports=function(t){if("string"!==typeof t)return;const e=t.toUpperCase();return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},t.exports.currencySymbolMap=r},8558:function(t){t.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:"$"}},7229:function(){},4669:function(){},6042:function(){},9130:function(){},9211:function(t,e,o){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)t[r]=o[r]}return t}o.d(e,{A:function(){return i}});var i=function t(e,o){function i(t,i,n){if("undefined"!==typeof document){"number"===typeof(n=r({},o,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in n)n[s]&&(l+="; "+s,!0!==n[s]&&(l+="="+n[s].split(";")[0]));return document.cookie=t+"="+e.write(i,t)+l}}return Object.create({set:i,get:function(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var o=document.cookie?document.cookie.split("; "):[],r={},i=0;i<o.length;i++){var n=o[i].split("="),l=n.slice(1).join("=");try{var s=decodeURIComponent(n[0]);if(r[s]=e.read(l,s),t===s)break}catch(p){}}return t?r[t]:r}},remove:function(t,e){i(t,"",r({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,r({},this.attributes,e))},withConverter:function(e){return t(r({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);