kwant-ui 3.27.0 → 3.28.0

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.
@@ -28,12 +28,18 @@ export declare namespace IAreaChart {
28
28
  averageLineValue?: number;
29
29
  averageLineColor?: string;
30
30
  xAxisLabel?: string;
31
+ fillColor?: string;
32
+ gradientColor?: string;
33
+ isGradient?: boolean;
34
+ isFilled?: boolean;
35
+ gradientStart?: number;
36
+ gradientStop?: number;
31
37
  yAxisLeftLabel?: string;
32
38
  yAxisRightLabel?: string;
33
39
  showRightYAxis?: boolean;
34
40
  showLegends?: boolean;
35
41
  customTooltip?: ContentType<ValueType, NameType>;
36
- gradient?: React.ReactNode;
42
+ gradient?: string;
37
43
  tooltipProps?: TooltipProps<ValueType, NameType>;
38
44
  cartesianGridProps?: Omit<CartesianGridProps, 'ref'>;
39
45
  legendProps?: Omit<LegendProps, 'ref'>;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ /// <reference types="react" />
2
2
  import { TextComponent } from '../Text/types';
3
3
  export type TrendPercentageProps = {
4
4
  data: number;
@@ -7,7 +7,9 @@ export type TrendPercentageProps = {
7
7
  iconWidth?: number;
8
8
  iconHeight?: number;
9
9
  unit?: string;
10
- displayText?: string | ReactNode;
10
+ color?: string;
11
+ customData?: string | React.ReactNode;
12
+ noChangeMessage?: string;
11
13
  };
12
14
  declare const TrendPercentage: (props: TrendPercentageProps) => import("react/jsx-runtime").JSX.Element;
13
15
  export { TrendPercentage };
@@ -1,4 +1,5 @@
1
1
  declare const TrendPercentageContainer: import("styled-components").StyledComponent<"div", any, {
2
2
  danger?: boolean;
3
+ color?: string;
3
4
  }, never>;
4
5
  export { TrendPercentageContainer };
package/dist/index.es.js CHANGED
@@ -3794,7 +3794,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
3794
3794
  `;var Uc;n.div`
3795
3795
  display: flex;
3796
3796
  cursor: pointer;
3797
- `,function(e){var t;(t=e.DatpickerNavigationDirectionEnum||(e.DatpickerNavigationDirectionEnum={})).right="right",t.left="left"}(Uc||(Uc={}));const Wc={chevronLeft:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.6736 2.5799L10.4869 1.3999L3.89355 7.9999L10.4936 14.5999L11.6736 13.4199L6.25355 7.9999L11.6736 2.5799Z",fill:"#0B1B2A"})}),chevronRight:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M4.32715 13.4199L5.50715 14.5999L12.1071 7.9999L5.50715 1.3999L4.32715 2.5799L9.74715 7.9999L4.32715 13.4199Z",fill:"#0B1B2A"})}),calendar:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M15.8333 3.33334H15V1.66667L13.3333 1.66667V3.33334L6.66667 3.33334V1.66667L5 1.66667V3.33334H4.16667C3.24167 3.33334 2.5 4.08334 2.5 5.00001L2.5 16.6667C2.5 17.5833 3.24167 18.3333 4.16667 18.3333H15.8333C16.75 18.3333 17.5 17.5833 17.5 16.6667V5.00001C17.5 4.08334 16.75 3.33334 15.8333 3.33334ZM15.8333 16.6667H4.16667L4.16667 8.33334L15.8333 8.33334L15.8333 16.6667ZM15.8333 6.66667L4.16667 6.66667L4.16667 5.00001L15.8333 5.00001V6.66667ZM5.83333 10L10 10L10 14.1667L5.83333 14.1667L5.83333 10Z",fill:"#A1AFC0"})})},qc=({title:t,selected:r,onClick:n})=>e($c,{selected:r,onClick:n,children:e(Oe,{category:"body2",weight:"medium",color:r?V.blue.blue1000:V.grey.grey900,children:t})},t),Xc=({options:t,selectedOption:r,onOptionClick:n})=>e(Qc,{children:t?.map((t=>e(qc,{...t,onClick:()=>n(t.value,t),selected:r===t.title},t.title)))}),Kc=(t,r)=>e(Yc,{onClick:r,children:t===Uc.DatpickerNavigationDirectionEnum.right?Wc.chevronRight:Wc.chevronLeft});var Gc={exports:{}};Gc.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",c="minute",i="hour",o="day",s="week",l="month",h="quarter",v="year",p="date",u="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},_={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(a,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,l),c=r-a<0,i=t.clone().add(n+(c?-1:1),l);return+(-(n+(r-a)/(c?a-i:i-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:v,w:s,d:o,D:p,h:i,m:c,s:a,ms:n,Q:h}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",b={};b[w]=d;var y="$isDayjsObject",x=function(e){return e instanceof H||!(!e||!e[y])},O=function e(t,r,n){var a;if(!t)return w;if("string"==typeof t){var c=t.toLowerCase();b[c]&&(a=c),r&&(b[c]=r,a=c);var i=t.split("-");if(!a&&i.length>1)return e(i[0])}else{var o=t.name;b[o]=t,a=o}return!n&&a&&(w=a),a||!n&&w},M=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new H(r)},E=_;E.l=O,E.i=x,E.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var H=function(){function d(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var f=d.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(g);if(n){var a=n[2]-1||0,c=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,c)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,c)}}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return E},f.isValid=function(){return!(this.$d.toString()===u)},f.isSame=function(e,t){var r=M(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return M(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<M(e)},f.$g=function(e,t,r){return E.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,t){var r=this,n=!!E.u(t)||t,h=E.p(e),u=function(e,t){var a=E.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?a:a.endOf(o)},g=function(e,t){return E.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,d=this.$M,f=this.$D,_="set"+(this.$u?"UTC":"");switch(h){case v:return n?u(1,0):u(31,11);case l:return n?u(1,d):u(0,d+1);case s:var w=this.$locale().weekStart||0,b=(m<w?m+7:m)-w;return u(n?f-b:f+(6-b),d);case o:case p:return g(_+"Hours",0);case i:return g(_+"Minutes",1);case c:return g(_+"Seconds",2);case a:return g(_+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(e,t){var r,s=E.p(e),h="set"+(this.$u?"UTC":""),u=(r={},r[o]=h+"Date",r[p]=h+"Date",r[l]=h+"Month",r[v]=h+"FullYear",r[i]=h+"Hours",r[c]=h+"Minutes",r[a]=h+"Seconds",r[n]=h+"Milliseconds",r)[s],g=s===o?this.$D+(t-this.$W):t;if(s===l||s===v){var m=this.clone().set(p,1);m.$d[u](g),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else u&&this.$d[u](g);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[E.p(e)]()},f.add=function(n,h){var p,u=this;n=Number(n);var g=E.p(h),m=function(e){var t=M(u);return E.w(t.date(t.date()+Math.round(e*n)),u)};if(g===l)return this.set(l,this.$M+n);if(g===v)return this.set(v,this.$y+n);if(g===o)return m(1);if(g===s)return m(7);var d=(p={},p[c]=t,p[i]=r,p[a]=e,p)[g]||1,f=this.$d.getTime()+n*d;return E.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=E.z(this),c=this.$H,i=this.$m,o=this.$M,s=r.weekdays,l=r.months,h=r.meridiem,v=function(e,r,a,c){return e&&(e[r]||e(t,n))||a[r].slice(0,c)},p=function(e){return E.s(c%12||12,e,"0")},g=h||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return o+1;case"MM":return E.s(o+1,2,"0");case"MMM":return v(r.monthsShort,o,l,3);case"MMMM":return v(l,o);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return v(r.weekdaysMin,t.$W,s,2);case"ddd":return v(r.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(c);case"HH":return E.s(c,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(c,i,!0);case"A":return g(c,i,!1);case"m":return String(i);case"mm":return E.s(i,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(n,p,u){var g,m=this,d=E.p(p),f=M(n),_=(f.utcOffset()-this.utcOffset())*t,w=this-f,b=function(){return E.m(m,f)};switch(d){case v:g=b()/12;break;case l:g=b();break;case h:g=b()/3;break;case s:g=(w-_)/6048e5;break;case o:g=(w-_)/864e5;break;case i:g=w/r;break;case c:g=w/t;break;case a:g=w/e;break;default:g=w}return u?g:E.a(g)},f.daysInMonth=function(){return this.endOf(l).$D},f.$locale=function(){return b[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=O(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return E.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}(),P=H.prototype;return M.prototype=P,[["$ms",n],["$s",a],["$m",c],["$H",i],["$W",o],["$M",l],["$y",v],["$D",p]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,H,M),e.$i=!0),M},M.locale=O,M.isDayjs=x,M.unix=function(e){return M(1e3*e)},M.en=b[w],M.Ls=b,M.p={},M}();var Jc=mn(Gc.exports);const ei=(e,t)=>!!(t>1&&e),ti=["Su","Mo","Tu","We","Th","Fr","Sa"],ri=(e,t,r,n)=>new fn.DateObject(((e,t,r)=>Jc(e).subtract(t,r))(e,t,r)[n]("week").format("YYYY-MM-DD")),ni={TODAY:[new fn.DateObject,new fn.DateObject],CURRENT_WEEK:[(new fn.DateObject).toFirstOfWeek(),(new fn.DateObject).toLastOfWeek()],LAST_7_DAYS:[(new fn.DateObject).subtract(6,"days"),new fn.DateObject],LAST_WEEK:[ri(new Date,1,"week","startOf"),ri(new Date,1,"week","endOf")],LAST_2_WEEKS:[ri(new Date,2,"week","startOf"),ri(new Date,1,"week","endOf")],LAST_3_WEEKS:[ri(new Date,3,"week","startOf"),ri(new Date,1,"week","endOf")],LAST_4_WEEKS:[ri(new Date,4,"week","startOf"),ri(new Date,1,"week","endOf")],LAST_30_DAYS:[(new fn.DateObject).subtract(30,"days"),new fn.DateObject],THIS_MONTH:[(new fn.DateObject).toFirstOfMonth(),(new fn.DateObject).toLastOfMonth()],CUSTOM_RANGE:[]},ai="MM/DD/YYYY",ci="Custom Range",ii=r=>{const{range:n,numberOfMonths:a=1,format:c=ai,onChange:i,readOnly:o,calenderRef:s,showSidebar:h=!1,sidebarOptions:v=[],projectDuration:g,selectedSidebarOption:m=ci,disableFutureDatesOnCustomRange:d,rangeDomain:f,..._}=r,w=u(),b=s??w,[y,x]=p(!0),[O,M]=p([]),[E,H]=p(m),[P,z]=p({minDate:void 0,maxDate:void 0}),j=(e=>{const t=[new fn.DateObject(e?.startDate),new fn.DateObject(e?.endDate)];return[{title:"Today",value:()=>ni.TODAY},{title:"Current Week",value:()=>ni.CURRENT_WEEK},{title:"Last 7 Days",value:()=>ni.LAST_7_DAYS},{title:"Last 30 days",value:()=>ni.LAST_30_DAYS},{title:"This Month",value:()=>ni.THIS_MONTH},{title:"Project Duration",value:()=>t},{title:"Custom Range",value:()=>ni.CUSTOM_RANGE}]})(g),Z=E===ci,V=!Z,C=()=>{x(!1),setTimeout((()=>{x(!0)}),1)},A=(e,t)=>{i?.(e,t||ci),M(e)};return l((()=>{M(_.value)}),[_.value]),l((()=>{H(m||ci)}),[m]),l((()=>{if(!Z)return;const e=new fn.DateObject(new Date);if(O&&f){if(Array.isArray(O)){const[t,r]=O;if(!r){const t=((e,t)=>{if(!t)return[];if(!(Array.isArray(e)&&e[0]instanceof fn.DateObject))return[];const r=e[0],[n,a]=t?.match?.(/(\d+)(\w)/).slice(1),c=r?.format("YYYY-MM-DD");switch(a){case"d":return[new fn.DateObject(Jc(c).subtract(+n,"day").add(1,"day").format("YYYY-MM-DD")),new fn.DateObject(Jc(c).add(+n,"day").subtract(1,"day").format("YYYY-MM-DD"))];case"w":return[new fn.DateObject(Jc(c).subtract(+n,"week").add(1,"day").format("YYYY-MM-DD")),new fn.DateObject(Jc(c).add(+n,"week").subtract(1,"day").format("YYYY-MM-DD"))];case"m":return[new fn.DateObject(Jc(c).subtract(+n,"month").add(1,"day").format("YYYY-MM-DD")),new fn.DateObject(Jc(c).add(+n,"month").subtract(1,"day").format("YYYY-MM-DD"))];case"y":return[new fn.DateObject(Jc(c).subtract(+n,"year").add(1,"day").format("YYYY-MM-DD")),new fn.DateObject(Jc(c).add(+n,"year").subtract(1,"day").format("YYYY-MM-DD"))]}})(O,f);if(2===t.length){let r=t[1];d&&r>e&&(r=e),z({minDate:t[0],maxDate:r})}return}t&&r&&(z({minDate:void 0,maxDate:d?e:void 0}),C())}}else z({minDate:void 0,maxDate:d?e:void 0})}),[O,f,E,d]),t(Fc,{children:[h&&n&&e(Xc,{options:v.length?v:j,selectedOption:E,onOptionClick:(e,t)=>{const r=e?.();b.current.set("date",r),M(r),H(t.title),A(r,t.title),(e=>{e===ci?f&&z({minDate:void 0,maxDate:d?new Date:void 0}):z({minDate:void 0,maxDate:void 0})})(t.title),C()}}),y&&e(fn.Calendar,{renderButton:Kc,className:`calendar date-picker-${ei(n,a)?"range":"single"} calendar-readonly-${V}`,ref:b,range:n,numberOfMonths:a,showOtherDays:!0,weekDays:ti,format:c,onChange:A,minDate:P.minDate,maxDate:P.maxDate,value:O,highlightToday:!1,readOnly:V,..._})]})},oi=t=>{const{opened:r,onClose:n,baseDropdownProps:a,calendarProps:c}=t;return e(jt,{opened:r,onClose:n,width:"auto",...a,children:e(ii,{...c})})},si=400,li=500,hi=600,vi=(a`
3797
+ `,function(e){var t;(t=e.DatpickerNavigationDirectionEnum||(e.DatpickerNavigationDirectionEnum={})).right="right",t.left="left"}(Uc||(Uc={}));const Wc={chevronLeft:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.6736 2.5799L10.4869 1.3999L3.89355 7.9999L10.4936 14.5999L11.6736 13.4199L6.25355 7.9999L11.6736 2.5799Z",fill:"#0B1B2A"})}),chevronRight:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M4.32715 13.4199L5.50715 14.5999L12.1071 7.9999L5.50715 1.3999L4.32715 2.5799L9.74715 7.9999L4.32715 13.4199Z",fill:"#0B1B2A"})}),calendar:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M15.8333 3.33334H15V1.66667L13.3333 1.66667V3.33334L6.66667 3.33334V1.66667L5 1.66667V3.33334H4.16667C3.24167 3.33334 2.5 4.08334 2.5 5.00001L2.5 16.6667C2.5 17.5833 3.24167 18.3333 4.16667 18.3333H15.8333C16.75 18.3333 17.5 17.5833 17.5 16.6667V5.00001C17.5 4.08334 16.75 3.33334 15.8333 3.33334ZM15.8333 16.6667H4.16667L4.16667 8.33334L15.8333 8.33334L15.8333 16.6667ZM15.8333 6.66667L4.16667 6.66667L4.16667 5.00001L15.8333 5.00001V6.66667ZM5.83333 10L10 10L10 14.1667L5.83333 14.1667L5.83333 10Z",fill:"#A1AFC0"})})},qc=({title:t,selected:r,onClick:n})=>e($c,{selected:r,onClick:n,children:e(Oe,{category:"body2",weight:"medium",color:r?V.blue.blue1000:V.grey.grey900,children:t})},t),Xc=({options:t,selectedOption:r,onOptionClick:n})=>e(Qc,{children:t?.map((t=>e(qc,{...t,onClick:()=>n(t.value,t),selected:r===t.title},t.title)))}),Kc=(t,r)=>e(Yc,{onClick:r,children:t===Uc.DatpickerNavigationDirectionEnum.right?Wc.chevronRight:Wc.chevronLeft});var Gc={exports:{}};Gc.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",a="second",c="minute",i="hour",o="day",s="week",l="month",h="quarter",v="year",p="date",u="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},_={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),a=r%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(a,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),a=t.clone().add(n,l),c=r-a<0,i=t.clone().add(n+(c?-1:1),l);return+(-(n+(r-a)/(c?a-i:i-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:v,w:s,d:o,D:p,h:i,m:c,s:a,ms:n,Q:h}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",b={};b[w]=d;var y="$isDayjsObject",x=function(e){return e instanceof H||!(!e||!e[y])},O=function e(t,r,n){var a;if(!t)return w;if("string"==typeof t){var c=t.toLowerCase();b[c]&&(a=c),r&&(b[c]=r,a=c);var i=t.split("-");if(!a&&i.length>1)return e(i[0])}else{var o=t.name;b[o]=t,a=o}return!n&&a&&(w=a),a||!n&&w},M=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new H(r)},E=_;E.l=O,E.i=x,E.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var H=function(){function d(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var f=d.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(g);if(n){var a=n[2]-1||0,c=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,c)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,c)}}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return E},f.isValid=function(){return!(this.$d.toString()===u)},f.isSame=function(e,t){var r=M(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return M(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<M(e)},f.$g=function(e,t,r){return E.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,t){var r=this,n=!!E.u(t)||t,h=E.p(e),u=function(e,t){var a=E.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?a:a.endOf(o)},g=function(e,t){return E.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,d=this.$M,f=this.$D,_="set"+(this.$u?"UTC":"");switch(h){case v:return n?u(1,0):u(31,11);case l:return n?u(1,d):u(0,d+1);case s:var w=this.$locale().weekStart||0,b=(m<w?m+7:m)-w;return u(n?f-b:f+(6-b),d);case o:case p:return g(_+"Hours",0);case i:return g(_+"Minutes",1);case c:return g(_+"Seconds",2);case a:return g(_+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(e,t){var r,s=E.p(e),h="set"+(this.$u?"UTC":""),u=(r={},r[o]=h+"Date",r[p]=h+"Date",r[l]=h+"Month",r[v]=h+"FullYear",r[i]=h+"Hours",r[c]=h+"Minutes",r[a]=h+"Seconds",r[n]=h+"Milliseconds",r)[s],g=s===o?this.$D+(t-this.$W):t;if(s===l||s===v){var m=this.clone().set(p,1);m.$d[u](g),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else u&&this.$d[u](g);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[E.p(e)]()},f.add=function(n,h){var p,u=this;n=Number(n);var g=E.p(h),m=function(e){var t=M(u);return E.w(t.date(t.date()+Math.round(e*n)),u)};if(g===l)return this.set(l,this.$M+n);if(g===v)return this.set(v,this.$y+n);if(g===o)return m(1);if(g===s)return m(7);var d=(p={},p[c]=t,p[i]=r,p[a]=e,p)[g]||1,f=this.$d.getTime()+n*d;return E.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=E.z(this),c=this.$H,i=this.$m,o=this.$M,s=r.weekdays,l=r.months,h=r.meridiem,v=function(e,r,a,c){return e&&(e[r]||e(t,n))||a[r].slice(0,c)},p=function(e){return E.s(c%12||12,e,"0")},g=h||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return o+1;case"MM":return E.s(o+1,2,"0");case"MMM":return v(r.monthsShort,o,l,3);case"MMMM":return v(l,o);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return v(r.weekdaysMin,t.$W,s,2);case"ddd":return v(r.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(c);case"HH":return E.s(c,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(c,i,!0);case"A":return g(c,i,!1);case"m":return String(i);case"mm":return E.s(i,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(n,p,u){var g,m=this,d=E.p(p),f=M(n),_=(f.utcOffset()-this.utcOffset())*t,w=this-f,b=function(){return E.m(m,f)};switch(d){case v:g=b()/12;break;case l:g=b();break;case h:g=b()/3;break;case s:g=(w-_)/6048e5;break;case o:g=(w-_)/864e5;break;case i:g=w/r;break;case c:g=w/t;break;case a:g=w/e;break;default:g=w}return u?g:E.a(g)},f.daysInMonth=function(){return this.endOf(l).$D},f.$locale=function(){return b[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=O(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return E.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}(),P=H.prototype;return M.prototype=P,[["$ms",n],["$s",a],["$m",c],["$H",i],["$W",o],["$M",l],["$y",v],["$D",p]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,H,M),e.$i=!0),M},M.locale=O,M.isDayjs=x,M.unix=function(e){return M(1e3*e)},M.en=b[w],M.Ls=b,M.p={},M}();var Jc=mn(Gc.exports);const ei=(e,t)=>!!(t>1&&e),ti=["Su","Mo","Tu","We","Th","Fr","Sa"],ri=(e,t,r,n)=>new fn.DateObject(((e,t,r)=>Jc(e).subtract(t,r))(e,t,r)[n]("week").format("YYYY-MM-DD")),ni={TODAY:[new fn.DateObject,new fn.DateObject],CURRENT_WEEK:[(new fn.DateObject).toFirstOfWeek(),(new fn.DateObject).toLastOfWeek()],LAST_7_DAYS:[(new fn.DateObject).subtract(6,"days"),new fn.DateObject],LAST_WEEK:[ri(new Date,1,"week","startOf"),ri(new Date,1,"week","endOf")],LAST_2_WEEKS:[ri(new Date,2,"week","startOf"),ri(new Date,1,"week","endOf")],LAST_3_WEEKS:[ri(new Date,3,"week","startOf"),ri(new Date,1,"week","endOf")],LAST_4_WEEKS:[ri(new Date,4,"week","startOf"),ri(new Date,1,"week","endOf")],LAST_30_DAYS:[(new fn.DateObject).subtract(30,"days"),new fn.DateObject],THIS_MONTH:[(new fn.DateObject).toFirstOfMonth(),(new fn.DateObject).toLastOfMonth()],CUSTOM_RANGE:[]},ai="MM/DD/YYYY",ci="Custom Range",ii=r=>{const{range:n,numberOfMonths:a=1,format:c=ai,onChange:i,readOnly:o,calenderRef:s,showSidebar:h=!1,sidebarOptions:v=[],projectDuration:g,selectedSidebarOption:m=ci,disableFutureDatesOnCustomRange:d,rangeDomain:f,..._}=r,w=u(),b=s??w,[y,x]=p(!0),[O,M]=p([]),[E,H]=p(m),[P,z]=p({minDate:void 0,maxDate:void 0}),j=(e=>{const t=[new fn.DateObject(new Date(e?.startDate)),new fn.DateObject(new Date(e?.endDate))];return[{title:"Today",value:()=>ni.TODAY},{title:"Current Week",value:()=>ni.CURRENT_WEEK},{title:"Last 7 Days",value:()=>ni.LAST_7_DAYS},{title:"Last 30 days",value:()=>ni.LAST_30_DAYS},{title:"This Month",value:()=>ni.THIS_MONTH},{title:"Project Duration",value:()=>t},{title:"Custom Range",value:()=>ni.CUSTOM_RANGE}]})(g),Z=E===ci,V=!Z,C=()=>{x(!1),setTimeout((()=>{x(!0)}),1)},A=(e,t)=>{i?.(e,t||ci),M(e)};return l((()=>{M(_.value)}),[_.value]),l((()=>{H(m||ci)}),[m]),l((()=>{if(!Z)return;const e=new fn.DateObject(new Date);if(O&&f){if(Array.isArray(O)){const[t,r]=O;if(!r){const t=((e,t)=>{if(!t)return[];if(!(Array.isArray(e)&&e[0]instanceof fn.DateObject))return[];const r=e[0],[n,a]=t?.match?.(/(\d+)(\w)/).slice(1),c=r?.format("YYYY-MM-DD");switch(a){case"d":return[new fn.DateObject(Jc(c).subtract(+n,"day").add(1,"day").format("YYYY-MM-DD")),new fn.DateObject(Jc(c).add(+n,"day").subtract(1,"day").format("YYYY-MM-DD"))];case"w":return[new fn.DateObject(Jc(c).subtract(+n,"week").add(1,"day").format("YYYY-MM-DD")),new fn.DateObject(Jc(c).add(+n,"week").subtract(1,"day").format("YYYY-MM-DD"))];case"m":return[new fn.DateObject(Jc(c).subtract(+n,"month").add(1,"day").format("YYYY-MM-DD")),new fn.DateObject(Jc(c).add(+n,"month").subtract(1,"day").format("YYYY-MM-DD"))];case"y":return[new fn.DateObject(Jc(c).subtract(+n,"year").add(1,"day").format("YYYY-MM-DD")),new fn.DateObject(Jc(c).add(+n,"year").subtract(1,"day").format("YYYY-MM-DD"))]}})(O,f);if(2===t.length){let r=t[1];d&&r>e&&(r=e),z({minDate:t[0],maxDate:r})}return}t&&r&&(z({minDate:void 0,maxDate:d?e:void 0}),C())}}else z({minDate:void 0,maxDate:d?e:void 0})}),[O,f,E,d]),t(Fc,{children:[h&&n&&e(Xc,{options:v.length?v:j,selectedOption:E,onOptionClick:(e,t)=>{const r=e?.();b.current.set("date",r),M(r),H(t.title),A(r,t.title),(e=>{e===ci?f&&z({minDate:void 0,maxDate:d?new Date:void 0}):z({minDate:void 0,maxDate:void 0})})(t.title),C()}}),y&&e(fn.Calendar,{renderButton:Kc,className:`calendar date-picker-${ei(n,a)?"range":"single"} calendar-readonly-${V}`,ref:b,range:n,numberOfMonths:a,showOtherDays:!0,weekDays:ti,format:c,onChange:A,minDate:P.minDate,maxDate:P.maxDate,value:O,highlightToday:!1,readOnly:V,..._})]})},oi=t=>{const{opened:r,onClose:n,baseDropdownProps:a,calendarProps:c}=t;return e(jt,{opened:r,onClose:n,width:"auto",...a,children:e(ii,{...c})})},si=400,li=500,hi=600,vi=(a`
3798
3798
  font-size: 24px;
3799
3799
  font-style: normal;
3800
3800
  line-height: 32px;
@@ -4412,7 +4412,7 @@ object-assign
4412
4412
  font-size: ${({width:e})=>e/15+"px"};
4413
4413
  font-weight: 400;
4414
4414
  fill: #798ca4;
4415
- `,vS=r=>{const{height:n,width:a,value:c,maxValue:i=100}=r,o=qh().cornerRadius(6),s=.5*a,l=s-5,h=-.5*Math.PI,v=.5*Math.PI;o({startAngle:h,endAngle:v,innerRadius:l,outerRadius:s});const p=o({startAngle:vy().range([h,v]).domain([0,i])(c),endAngle:v,innerRadius:l-15,outerRadius:s-8}),u=o({startAngle:h,endAngle:v,innerRadius:l-15,outerRadius:s-8}),g=vy().domain([0,100]).range([0,1])(c),m=vy().domain([0,1]).range([-Math.PI/2,Math.PI/2]).clamp(!0)(g),d=pS(m,l-15-(l-15-(s-8))/2),f=Pb(["#FF1C1C","#FF891C","#E2D132","#74A445","#01834C"])(g);return e(z_,{height:n,width:a,children:t(oS,{children:[t("defs",{children:[t("linearGradient",{id:"staticgradient",x1:"0%",y1:"10%",x2:"100%",y2:"0%",children:[e("stop",{stopColor:"#FF1C1C"}),e("stop",{offset:"0.140625",stopColor:"#FF891C"}),e("stop",{offset:"0.447917",stopColor:"#E2D132"}),e("stop",{offset:"0.755208",stopColor:"#74A445"}),e("stop",{offset:"0.944595",stopColor:"#01834C"})]}),t("linearGradient",{id:"staticgradient",x1:"0%",y1:"10%",x2:"100%",y2:"0%",children:[e("stop",{stopColor:"#FF1C1C"}),e("stop",{offset:"0.140625",stopColor:"#FF891C"}),e("stop",{offset:"0.447917",stopColor:"#E2D132"}),e("stop",{offset:"0.755208",stopColor:"#74A445"}),e("stop",{offset:"0.944595",stopColor:"#01834C"})]})]}),t("g",{transform:`translate(${a/2}, ${n/2})`,children:[t(sS,{children:[c,"%"]}),e(lS,{width:a,children:"Low"}),e(hS,{width:a,children:"High"}),e("path",{d:u,fill:"url(#staticgradient)"}),e("path",{d:p,fill:"#C8D2DE"}),e("path",{d:u,fill:"url(#staticgradient)"}),e("path",{d:p,fill:"#C8D2DE"}),e("circle",{cx:d[0],cy:d[1],r:"15",stroke:"white",strokeWidth:"5",fill:f})]})]})})},pS=(e,t=10)=>[Math.cos(e-Math.PI/2)*t,Math.sin(e-Math.PI/2)*t],uS=n.svg`
4415
+ `,vS=r=>{const{height:n,width:a,value:c,maxValue:i=100}=r,o=qh().cornerRadius(6),s=.5*a,l=s-5,h=-.5*Math.PI,v=.5*Math.PI,p=o({startAngle:vy().range([h,v]).domain([0,i])(c),endAngle:v,innerRadius:l-15,outerRadius:s-8}),u=o({startAngle:h,endAngle:v,innerRadius:l-15,outerRadius:s-8}),g=vy().domain([0,100]).range([0,1])(c),m=vy().domain([0,1]).range([-Math.PI/2,Math.PI/2]).clamp(!0)(g),d=pS(m,l-15-(l-15-(s-8))/2),f=Pb(["#FF1C1C","#FF891C","#E2D132","#74A445","#01834C"])(g);return e(z_,{height:n,width:a,children:t(oS,{children:[t("defs",{children:[t("linearGradient",{id:"staticgradient",x1:"0%",y1:"10%",x2:"100%",y2:"0%",children:[e("stop",{stopColor:"#FF1C1C"}),e("stop",{offset:"0.140625",stopColor:"#FF891C"}),e("stop",{offset:"0.447917",stopColor:"#E2D132"}),e("stop",{offset:"0.755208",stopColor:"#74A445"}),e("stop",{offset:"0.944595",stopColor:"#01834C"})]}),t("linearGradient",{id:"staticgradient",x1:"0%",y1:"10%",x2:"100%",y2:"0%",children:[e("stop",{stopColor:"#FF1C1C"}),e("stop",{offset:"0.140625",stopColor:"#FF891C"}),e("stop",{offset:"0.447917",stopColor:"#E2D132"}),e("stop",{offset:"0.755208",stopColor:"#74A445"}),e("stop",{offset:"0.944595",stopColor:"#01834C"})]})]}),t("g",{transform:`translate(${a/2}, ${n/2})`,children:[t(sS,{children:[c,"%"]}),e(lS,{width:a,children:"Low"}),e(hS,{width:a,children:"High"}),e("path",{d:u,fill:"url(#staticgradient)"}),e("path",{d:p,fill:"#C8D2DE"}),e("path",{d:u,fill:"url(#staticgradient)"}),e("path",{d:p,fill:"#C8D2DE"}),e("circle",{cx:d[0],cy:d[1],r:"15",stroke:"white",strokeWidth:"5",fill:f})]})]})})},pS=(e,t=10)=>[Math.cos(e-Math.PI/2)*t,Math.sin(e-Math.PI/2)*t],uS=n.svg`
4416
4416
  display: block;
4417
4417
  margin: 20px;
4418
4418
  overflow: visible;
@@ -4512,23 +4512,23 @@ object-assign
4512
4512
  `,CS=r=>{const{payload:n}=r;return e(_S,{children:n?.map((r=>t(wS,{children:[e(bS,{children:e(yS,{color:r.payload?.fill||"transparent"})}),e(xS,{children:r.value})]},r.payload?.value)))})},AS=t=>{const{value:r,dy:n}=t;return e(MS,{dy:n,...mS,children:r})},LS=t=>{const{x:r,y:n,payload:a}=t,c=Jc(a.value).format("MM/DD/YYYY");return e(OS,{transform:`translate(${r},${n})`,children:e(AS,{value:c,dy:36})})},BS=e=>Jc(e).format("ddd, DD MMM YYYY"),kS=({color:r,name:n,value:a})=>t(PS,{children:[t(zS,{children:[e(jS,{color:r||"transparent"}),e(ZS,{children:n})]}),e(VS,{children:a})]}),SS=r=>{const{label:n,payload:a,labelFormatter:c}=r;return t(ES,{children:[e(HS,{children:c?.(n,a||[])||n}),a?.map((t=>e(kS,{color:t.color,name:t.name,value:t.value})))]})},RS=n=>{const{width:a,height:c=600,margin:i={right:30,bottom:20},data:o,lines:s,linesYAxisRight:l,xAxisDataKey:h,showTooltip:v,xAxisLabel:u,yAxisLabel:g,showLegends:m,showRightYAxis:d,yAxisRightLabel:_,customTooltip:w=e(SS,{}),lineProps:b={},cartesianGridProps:y={},legendProps:x={},tooltipProps:O={},xAxisProps:M={},yAxisProps:E={},yAxisRightProps:H={},lineYAxisRightProps:P={},customTooltipLabelFormatter:z=BS}=n,[j,Z]=p(100);return e(z_,{width:a,height:c,children:t(BB,{onMouseMove:e=>{const{chartY:t}=e;Z((()=>t)),console.log("event;sas",e)},data:o,margin:i,children:[v&&e(e_,{content:w,labelFormatter:z,wrapperStyle:{top:j<20?"0px":"-80px",left:"-86px",right:"104%",height:"1%"},allowEscapeViewBox:{x:!1,y:!1},cursor:{stroke:"#2A4055",strokeWidth:1.25,strokeDasharray:"4 4"},...O}),e(kA,{...y,strokeDasharray:"4 4",vertical:!1,stroke:"#E4E9F2"}),m&&e(md,{dy:80,verticalAlign:"bottom",height:100,layout:"horizontal",content:e(CS,{}),wrapperStyle:{paddingTop:60,paddingLeft:"55px"},...x}),e(BL,{dataKey:h,includeHidden:!0,minTickGap:20,tick:e(LS,{}),axisLine:{stroke:"#E4E9F2"},tickLine:!1,label:{value:u,position:"insideBottom",fill:"#455F7B",fontSize:12,fontFamily:"Poppins",offset:-45},...M}),e(SL,{yAxisId:"left",...dS,label:{value:g,angle:-90,dx:-23,...dS.label},...E}),d&&t(r,{children:[e(SL,{...dS,yAxisId:"right",hide:!d,orientation:"right",tickCount:3,tickFormatter:e=>`${e}%`,interval:0,minTickGap:20,domain:[0,100],label:{value:_,angle:90,dx:20,...dS.label},...E,...H}),l?.map((e=>f(JA,{...fS,key:e.dataKey,dataKey:e.dataKey,stroke:e?.stroke,fillOpacity:e.fillOpacity,fill:e.color,yAxisId:e.yAxisId||"left",name:e.name,...b,...P,dot:!1})))]}),s?.map((e=>f(JA,{...fS,key:e.dataKey,dataKey:e.dataKey,fillOpacity:e.fillOpacity,stroke:e.stroke,fill:e.color,yAxisId:e.yAxisId||"left",dot:!1,activeDot:{r:5.5},name:e.name,...b})))]})})},DS=n.div`
4513
4513
  display: flex;
4514
4514
  column-gap: 2px;
4515
- ${({danger:e})=>e?a`
4515
+ ${({danger:e,color:t})=>e?a`
4516
4516
  p > span {
4517
- color: ${C.red.red700};
4517
+ color: ${t||C.red.red700};
4518
4518
  }
4519
4519
  svg {
4520
- fill: ${C.red.red700};
4520
+ fill: ${t||C.red.red700};
4521
4521
  }
4522
4522
  `:a`
4523
4523
  p > span {
4524
- color: ${C.green.green500};
4524
+ color: ${t||C.green.green500};
4525
4525
  }
4526
4526
 
4527
4527
  svg {
4528
- fill: ${C.green.green500};
4528
+ fill: ${t||C.green.green500};
4529
4529
  }
4530
4530
  `}
4531
- `,IS=r=>{const{data:n,category:a,weight:c,iconWidth:i=16,iconHeight:o=16,unit:s="%",displayText:l}=r;return t(DS,{className:"stat_data_container",danger:n<0,children:[e(qt,{icon:n<0?"arrow_downward":"arrow_upward",height:o,width:i}),e(Oe,{category:a||"caption",weight:c||"regular",children:t("span",{children:[l||(n?Math.abs(n):0),s]})})]})},TS=({x:t,y:r})=>e("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:t,y:r,children:e("rect",{x:"1.5",y:"1",width:"14",height:"14",rx:"7",fill:"#2DA170",stroke:"white","stroke-width":"2"})}),NS=({x:t,y:r})=>e("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:t,y:r,children:e("rect",{x:"10.5",y:"1.58579",width:"11.8995",height:"11.8995",transform:"rotate(45 10.5 1.58579)",fill:"#F5D945",stroke:"white","stroke-width":"2"})}),FS=(e,t)=>e+t/2,QS=n.div`
4531
+ `,IS=n=>{const{data:a,category:c,weight:i,iconWidth:o=16,iconHeight:s=16,unit:l="%",customData:h,color:v,noChangeMessage:p}=n,u=`${a?Math.abs(a):0} ${l}`;return e(DS,{className:"stat_data_container",danger:a<0,color:v,children:0!==a||h?t(r,{children:[e(qt,{icon:a<0?"arrow_downward":"arrow_upward",height:s,width:o}),e(Oe,{category:c||"caption",weight:i||"regular",children:e("span",{children:h||u})})]}):e(Oe,{category:"caption",weight:"medium",color:V.grey.grey500,children:p||"• No change"})})},TS=({x:t,y:r})=>e("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:t,y:r,children:e("rect",{x:"1.5",y:"1",width:"14",height:"14",rx:"7",fill:"#2DA170",stroke:"white","stroke-width":"2"})}),NS=({x:t,y:r})=>e("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",x:t,y:r,children:e("rect",{x:"10.5",y:"1.58579",width:"11.8995",height:"11.8995",transform:"rotate(45 10.5 1.58579)",fill:"#F5D945",stroke:"white","stroke-width":"2"})}),FS=(e,t)=>e+t/2,QS=n.div`
4532
4532
  width: 100%;
4533
4533
  height: 1px;
4534
4534
  background: #5f758f;