whatmore-react-assets 1.0.433 → 1.0.434
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 → 108.583164c7.chunk.js} +1 -1
- package/static/js/{171.c2b5cb4e.chunk.js → 171.26455cc2.chunk.js} +1 -1
- package/static/js/334.f5b525e6.chunk.js +1 -0
- package/static/js/{358.347c196f.chunk.js → 358.63dbf340.chunk.js} +1 -1
- package/static/js/{364.a56265ea.chunk.js → 364.d352e411.chunk.js} +1 -1
- package/static/js/{530.575b81b1.chunk.js → 530.d83d90b8.chunk.js} +1 -1
- package/static/js/{554.c4d0ef66.chunk.js → 554.6485833a.chunk.js} +1 -1
- package/static/js/{565.02b6cec1.chunk.js → 565.08707eae.chunk.js} +1 -1
- package/static/js/{580.e333ab57.chunk.js → 580.9ecdeeec.chunk.js} +1 -1
- package/static/js/{607.ca99feff.chunk.js → 607.4183c5f4.chunk.js} +1 -1
- package/static/js/{67.c5b3a991.chunk.js → 67.f468b254.chunk.js} +1 -1
- package/static/js/{68.4a214ffd.chunk.js → 68.e2678eb0.chunk.js} +1 -1
- package/static/js/{692.614af1da.chunk.js → 692.dba8c6f4.chunk.js} +1 -1
- package/static/js/{708.01e6fdce.chunk.js → 708.8200af77.chunk.js} +1 -1
- package/static/js/{74.b894f74c.chunk.js → 74.441112fc.chunk.js} +1 -1
- package/static/js/{891.4972f95a.chunk.js → 891.3bed7a50.chunk.js} +1 -1
- package/static/js/{950.e86f8ad9.chunk.js → 950.844b41e0.chunk.js} +1 -1
- package/static/js/{959.8ec7f90c.chunk.js → 959.11cd5ed4.chunk.js} +1 -1
- package/static/js/{972.bafc997a.chunk.js → 972.635bf98b.chunk.js} +1 -1
- package/static/js/{986.df6827ee.chunk.js → 986.f84d39d3.chunk.js} +1 -1
- package/whatmore.js +2 -2
- package/static/js/334.98b6f3d7.chunk.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[108],{3867:function(t,e,n){var r=n(8816),o=n(417),i=n(4885),a=n(7753),s=n(
|
|
1
|
+
"use strict";(self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[108],{3867:function(t,e,n){var r=n(8816),o=n(417),i=n(4885),a=n(7753),s=n(7592),l=n(7313),u=n(6417);e.Z=function(t){var e;const{whatmoreUITheme:n}=(0,l.useContext)(s.I),[c]=(0,a.j1)("whatmoreSecondaryColor"),[p,f]=(0,a.j1)("productRatings"),d=(0,a.MO)("whatmorePrimaryFont"),m=(t.storeId,t.productId),y=(t.productLink,t.fontSize),x=null!==(e=t.fontColor)&&void 0!==e?e:"gray";if(null===p||"undefined"==typeof p||!(m in p)||p[m].avgRating>5)return(0,u.jsx)(u.Fragment,{});const h=p[m].avgRating,v=p[m].totalRatings;return(0,u.jsx)("div",{style:{display:"flex",flexFlow:"column nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center"},children:(0,u.jsxs)("div",{style:{display:"flex",flexFlow:"row nowrap",width:"100%",height:"fit-content",justifyContent:"flex-start",alignItems:"center",gap:"0px"},children:[[...Array(Math.floor(h))].map(((t,e)=>(0,u.jsx)(r.Z,{sx:{color:c,fontSize:y+"px"}},"star-icon"+e))),h-Math.floor(h)>.2?(0,u.jsx)(o.Z,{sx:{color:c,fontSize:y+"px"}},"star-half-icon"):h-Math.floor(h)==0?(0,u.jsx)(u.Fragment,{}):(0,u.jsx)(i.Z,{sx:{color:c,fontSize:y+"px"}},"star-outline-icon"),[...Array(Math.floor(5-h))].map(((t,e)=>(0,u.jsx)(i.Z,{sx:{color:c,fontSize:y+"px"}},"star-outline-icon-"+e))),(0,u.jsx)("div",{children:(0,u.jsx)("div",{width:"2px"})}),(0,u.jsx)("div",{children:(0,u.jsx)("div",{style:{backgroundColor:c,borderRadius:"round"==n?"2px":"0px",padding:"1px",overflow:"hidden"},children:(0,u.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color","white","important"),t.style.setProperty("font-size",.8*y+"px","important"),t.style.setProperty("font-family",d,"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"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0",h,"\xa0"]})})}),(0,u.jsx)("div",{children:(0,u.jsxs)("p",{ref:t=>{t&&(t.style.setProperty("color",x,"important"),t.style.setProperty("font-size",.8*y+"px","important"),t.style.setProperty("font-family",d,"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"))},style:{textAlign:"left",fontWeight:"medium"},children:["\xa0","("+v+")"]})})]})})}},499:function(t,e){e.Z={LIVE:{name:"LIVE",color:"gray.600"},UPCOMING:{name:"UPCOMING",color:"gray.600"},DEFAULT:{name:"LIVE EVENT",color:"gray.600"},COMPLETED:{name:"ENDED",color:"gray.600"}}},4897:function(t,e,n){var r=n(499);e.Z=class{static getEventStatus(t){t.time_zone="GMT+5:30";var e=t.start_time+":00",n=t.end_time,o=t.scheduled_date,i=t.status,a=t.time_zone;if(i.toUpperCase()==r.Z.LIVE.name)return{status:r.Z.LIVE,bannerText:" "+r.Z.LIVE.name+" ",timeToStartInMins:0};if(i.toUpperCase()==r.Z.UPCOMING.name){var s=new Date(o+" "+e+" "+a),l=(new Date(o+" "+n+" "+a),function(t){var e=new Date,n=(t.getTime()-e.getTime())/1e3,o=n/60,i=o/60,a=i/24;return n<=0?{status:r.Z.COMPLETED,bannerText:" "+r.Z.COMPLETED.name+" ",timeToStartInMins:0}:n>=1&&n<=30?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(n)+" sec ",timeToStartInMins:n/60}:o<60?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(o)+" min ",timeToStartInMins:o}:i<24?{status:r.Z.UPCOMING,bannerText:"Starts in "+Math.round(i)+" hr ",timeToStartInMins:60*i}:a<7?{status:r.Z.UPCOMING,bannerText:" "+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()]+" ",timeToStartInMins:60*a*24}:{status:r.Z.UPCOMING,bannerText:"Upcoming",timeToStartInMins:2880}}(s));return{status:l.status,bannerText:l.bannerText,timeToStartInMins:l.timeToStartInMins}}return console.error("invalid status for event :: id : "+t.event_id+", status : "+t.status),{status:r.Z.DEFAULT,bannerText:"live event",timeToStartInMins:2880}}}},3388:function(t,e,n){n.d(e,{OC:function(){return s},e8:function(){return i},kT:function(){return r},kW:function(){return a},xg:function(){return o}});const r=function(t,e){return!((void 0==t.products||0==t.products.length)&&(void 0==t.cta||0==t.cta.length))},o=function(t,e){return!(void 0==t.products||0==t.products.length)},i=function(t,e){if(null!=t)return t.filter((t=>1==r(t)))},a=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=t)return e?t.events[0].events:t.events};const s=function(t,e){var n;if(null==t)return[];if(!("eventsets"in t))return[];const r=null!==(n=t.eventsets[e])&&void 0!==n?n:null;return r?function(t){if(null==t||0==t.length)return[];let e=[];return t.forEach((t=>{t.events.forEach((t=>{e.push(t)}))})),e}(r):[]}},5456:function(t,e,n){n.d(e,{B:function(){return r}});const r=function(t,e){return!(isNaN(e)||!e||("string"===typeof e||e instanceof String)&&!e.trim().length)&&!(parseInt(e)<=parseInt(t))}},8816:function(t,e,n){var r=n(5318);e.Z=void 0;var o=r(n(5045)),i=n(6417),a=(0,o.default)((0,i.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.Z=a},417:function(t,e,n){var r=n(5318);e.Z=void 0;var o=r(n(5045)),i=n(6417),a=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.Z=a},4885:function(t,e,n){var r=n(5318);e.Z=void 0;var o=r(n(5045)),i=n(6417),a=(0,o.default)((0,i.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarOutline");e.Z=a},5892:function(){},4444:function(){},1811:function(){},7850:function(){}}]);
|