@e-llm-studio/federated-dashboard-components 1.0.9 → 1.0.10
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/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
- package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- package/dist/ExecutiveDashboard/components/MetricCard/MetricCard.js +1 -1
- package/dist/ExecutiveDashboard/components/ui/chart.js +1 -1
- package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/MetricCard/MetricCard.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/ui/chart.js +1 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/ui/chart.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/types/index.d.ts +1 -0
- package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as n,__rest as e,__assign as r,__generator as t,__spreadArray as l}from"../_virtual/_tslib.js";import{jsx as o,Fragment as a,jsxs as i}from"react/jsx-runtime";import u,{useState as d,useRef as s,useMemo as c,useCallback as v,useEffect as f}from"react";import{ExecutiveDashboard as b}from"./components/ExecutiveDashboard.js";import{DATE_PRESETS as g}from"./components/DashboardDateFilter/datePreset.js";import{DashboardSkeleton as p}from"./components/DashboardSkeleton/DashboardSkeleton.js";import{fetchUIConfig as h,fetchCurrentConfigUIVersionFromRedis as m,fetchDashboardData as D,fetchTableData as E}from"./api/dashboardApi.js";import{useVisibilityPolling as y}from"./hooks/useVisibilityPolling.js";var I=1e4;function w(w){var C,F,S=this,A=w.baseUrl,P=void 0===A?"https://dev.appmod.ai":A,R=w.configId,j=w.graphEmptyState,M=w.tables,x=w.tableLayout,L=w.sectionOrder,O=w.hiddenSections,k=w.fetchUIConfig,T=w.fetchUIVersionFromRedis,U=w.fetchDashboardData,N=w.fetchTableData,V=w.initialStartDate,K=w.initialEndDate,B=w.onDateChange,_=w.onFiltersApplied,z=w.renderLoading,G=w.renderError,H=w.pollingConfigProp,q=null!=k?k:h,J=null!=T?T:m,Q=null!=U?U:D,W=null!=N?N:E,X=d(null),Y=X[0],Z=X[1],$=d(null),nn=$[0],en=$[1],rn=d(!0),tn=rn[0],ln=rn[1],on=d(!0),an=on[0],un=on[1],dn=d(null),sn=dn[0],cn=dn[1],vn=d(!1),fn=vn[0],bn=vn[1],gn=d({}),pn=gn[0],hn=gn[1],mn=d({}),Dn=mn[0],En=mn[1],yn=d({}),In=yn[0],wn=yn[1],Cn=d(null),Fn=Cn[0],Sn=Cn[1],An=u.useRef(null),Pn=u.useRef(!1),Rn=s(null),jn=s(null),Mn=s({}),xn=s(null),Ln=s(new Set),On=s(!1),kn=s(I),Tn=s(-1),Un=s(!0),Nn=d(null!==(F=null===(C=null==Y?void 0:Y.data)||void 0===C?void 0:C.dateFilters.defaultPreset)&&void 0!==F?F:"today"),Vn=Nn[0],Kn=Nn[1],Bn=d(!1),_n=Bn[0],zn=Bn[1],Gn=d({}),Hn=Gn[0],qn=Gn[1],Jn=c(function(){var n,e;if(Y){var r=Y.data.dateFilters;return(null==r?void 0:r.pollingEnabled)&&(kn.current=null!==(n=r.pollingInterval)&&void 0!==n?n:I),{pollingEnabled:null!==(e=Boolean("yes"===(null==r?void 0:r.pollingEnabled)))&&void 0!==e&&e,pollingInterval:I,maxErrorInterval:5e4,backoffMultiplier:1.5}}},[Y]),Qn=c(function(){return null!=H?H:Jn},[H,Jn]),Wn=function(n){var e=Object.values(g).find(function(e){return e.value===n});return e&&"getRange"in e?e.getRange():null},Xn=v(function(){return n(S,void 0,void 0,function(){var n,e,r,l,o,a,i,u,d,s,c,v,f,b;return t(this,function(t){switch(t.label){case 0:ln(!0),cn(null),null===(i=Rn.current)||void 0===i||i.abort(),n=new AbortController,Rn.current=n,t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,q({configId:R,baseUrl:P},n.signal)];case 2:return e=t.sent(),Z(e),r={},null===(s=null===(d=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.graphBuilder)||void 0===d?void 0:d.tiers)||void 0===s||s.forEach(function(n){n.plotOptions.length>0&&(r[n.key]=n.plotOptions[0].value)}),hn(r),l={},null===(v=null===(c=null==e?void 0:e.data)||void 0===c?void 0:c.sidebarFilters)||void 0===v||v.forEach(function(n){l[n.schemaFilterName]="Multi select"===n.type?[]:""}),En(l),wn(l),Pn.current||(o=V&&K?{startDate:V,endDate:K}:Wn(null===(b=null===(f=null==e?void 0:e.data)||void 0===f?void 0:f.dateFilters)||void 0===b?void 0:b.defaultPreset))&&(Pn.current=!0,An.current={start:o.startDate.getTime(),end:o.endDate.getTime()},Sn({start:o.startDate,end:o.endDate})),[3,5];case 3:return"AbortError"===(null==(a=t.sent())?void 0:a.name)?[2]:(cn(a),[3,5]);case 4:return Rn.current===n&&ln(!1),[7];case 5:return[2]}})})},[R,P,q,V,K]),Yn=v(function(){return n(S,void 0,void 0,function(){var n,e,r,l,o;return t(this,function(t){switch(t.label){case 0:if(On.current)return[3,7];On.current=!0,console.log("----- POLLING API ----"),null===(o=xn.current)||void 0===o||o.abort(),n=new AbortController,xn.current=n,t.label=1;case 1:return t.trys.push([1,5,6,7]),[4,J({configId:R,baseUrl:P},n.signal)];case 2:return(null==(e=t.sent())?void 0:e.timestamp)&&parseInt(null==e?void 0:e.timestamp)>Tn.current?(r=Wn(Vn),console.log("loadData ranges: ",{selectedPreset:Vn,currentRange:r}),[4,Zn(r).then(function(){return Tn.current=parseInt(e.timestamp)})]):[3,4];case 3:t.sent(),t.label=4;case 4:return Un.current=!1,[3,7];case 5:return"AbortError"===(null==(l=t.sent())?void 0:l.name)?[2]:(console.error("Something went wrong while fetching version from Redis"),[3,7]);case 6:return On.current=!1,[7];case 7:return[2]}})})},[Vn,J]);y((null==Jn?void 0:Jn.pollingEnabled)&&_n,kn.current,Yn,[Qn,_n,Vn,Yn]),f(function(){return Xn(),function(){var n;return null===(n=Rn.current)||void 0===n?void 0:n.abort()}},[Xn]),f(function(){if(Jn&&Jn.pollingEnabled){var n=Jn.pollingInterval;"number"==typeof n&&!isNaN(n)&&n>0&&(kn.current=n)}},[Jn]);var Zn=v(function(e){return n(S,void 0,void 0,function(){var n,r,l,o,a,i,u,d;return t(this,function(t){switch(t.label){case 0:if(!Fn)return[2];null===(a=jn.current)||void 0===a||a.abort(),n=new AbortController,jn.current=n,Un.current&&un(!0),cn(null),console.log("loadData ranges: ",{selectedPreset:Vn,currentRange:e}),t.label=1;case 1:return t.trys.push([1,3,4,5]),r={startDate:(null==Jn?void 0:Jn.pollingEnabled)&&e&&"custom"!==Vn?e.startDate:Fn.start,endDate:(null==Jn?void 0:Jn.pollingEnabled)&&e&&"custom"!==Vn?e.endDate:Fn.end,filters:In},[4,Q({configId:R,baseUrl:P},r,n.signal)];case 2:return l=t.sent(),en(l),(null==Jn?void 0:Jn.pollingEnabled)||qn({}),kn.current&&(null==Qn?void 0:Qn.pollingEnabled)&&(null==Jn?void 0:Jn.pollingInterval)&&(kn.current=null!==(i=null==Qn?void 0:Qn.pollingInterval)&&void 0!==i?i:I,Un.current=!1),[3,5];case 3:return"AbortError"===(null==(o=t.sent())?void 0:o.name)?[2]:(cn(o),kn.current&&(null==Qn?void 0:Qn.maxErrorInterval)&&(kn.current=Math.min(kn.current*(null!==(u=null==Jn?void 0:Jn.backoffMultiplier)&&void 0!==u?u:1.5),null!==(d=null==Jn?void 0:Jn.maxErrorInterval)&&void 0!==d?d:5e4)),[3,5]);case 4:return jn.current===n&&un(!1),[7];case 5:return[2]}})})},[R,P,Fn,In,Q]),$n=v(function(e,o){return n(S,void 0,void 0,function(){var n,a,i,u,d,s,c;return t(this,function(t){switch(t.label){case 0:if(!Fn||!Ln.current.has(e)||Mn.current[e])return[2];n=new AbortController,Mn.current[e]=n,a=function(){return!Ln.current.has(e)||n.signal.aborted||Mn.current[e]!==n},qn(function(n){var t,l,o,a,i,u,d,s;return r(r({},n),((t={})[e]={rows:null!==(o=null===(l=n[e])||void 0===l?void 0:l.rows)&&void 0!==o?o:[],cursor:null===(a=n[e])||void 0===a?void 0:a.cursor,hasMore:null!==(u=null===(i=n[e])||void 0===i?void 0:i.hasMore)&&void 0!==u&&u,loading:!0,loaded:null!==(s=null===(d=n[e])||void 0===d?void 0:d.loaded)&&void 0!==s&&s},t))}),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,W({configId:R,baseUrl:P},r({startDate:Fn.start,endDate:Fn.end,filters:In,tableKey:e,pageSize:20},o?{cursor:o}:{}),n.signal)];case 2:return i=t.sent(),u=null!==(c=null===(s=i.table)||void 0===s?void 0:s[e])&&void 0!==c?c:[],a()?[2]:(qn(function(n){var t,o,a=n[e];return a?r(r({},n),((t={})[e]={rows:l(l([],a.rows,!0),u,!0),cursor:null!==(o=i.nextCursor)&&void 0!==o?o:void 0,hasMore:i.hasNext,loading:!1,loaded:!0},t)):n}),[3,5]);case 3:return"AbortError"===(null==(d=t.sent())?void 0:d.name)||a()?[2]:(qn(function(n){var t;return n[e]?r(r({},n),((t={})[e]=r(r({},n[e]),{loading:!1,hasMore:!1}),t)):n}),[3,5]);case 4:return Mn.current[e]===n&&delete Mn.current[e],[7];case 5:return[2]}})})},[R,P,Fn,In,W]),ne=v(function(n,r){var t;if(!r)return Ln.current.delete(n),null===(t=Mn.current[n])||void 0===t||t.abort(),delete Mn.current[n],void qn(function(r){var t=r,l=n;return t[l],e(t,["symbol"==typeof l?l:l+""])});Ln.current.add(n),$n(n)},[$n]),ee=v(function(n){var e=Hn[n];(null==e?void 0:e.hasMore)&&!e.loading&&e.cursor&&$n(n,e.cursor)},[$n,Hn]);f(function(){return function(){Ln.current.clear(),Object.values(Mn.current).forEach(function(n){return n.abort()})}},[]),f(function(){return Zn(),function(){var n;return null===(n=jn.current)||void 0===n?void 0:n.abort()}},[Zn]),f(function(){return function(){var n;return null===(n=xn.current)||void 0===n?void 0:n.abort()}},[]),f(function(){!function(n){var e=Object.values(g).find(function(e){return e.value===n}),r=!(!e||!("pollingEnabled"in e)||!1===e.pollingEnabled);zn(r)}(Vn)},[Vn]);var re=v(function(n){if((null==n?void 0:n.startDate)&&(null==n?void 0:n.endDate)){var e=n.startDate.getTime(),r=n.endDate.getTime();An.current&&An.current.start===e&&An.current.end===r||(An.current={start:e,end:r},Sn({start:n.startDate,end:n.endDate}))}null==B||B(n),un(!0)},[B]),te=tn||an&&!nn;return sn?G?o(a,{children:G(sn,Xn)}):i("div",r({style:{padding:24,color:"#b91c1c"}},{children:["Failed to load dashboard: ",sn.message,o("button",r({onClick:Xn,style:{marginLeft:12}},{children:"Retry"}))]})):!te&&Y&&nn&&Fn?(console.log("pollingEnabled: ",null==Jn?void 0:Jn.pollingEnabled,_n),o(b,{uiConfig:Y,data:nn,dataLoading:an,startDate:Fn.start,endDate:Fn.end,onDateChange:re,onRefresh:function(){Zn(),un(!0)},selectedKpis:pn,onKpiChange:function(n,e){hn(function(t){var l;return r(r({},t),((l={})[n]=e,l))})},sidebarVisible:fn,onSidebarShow:function(){return bn(!0)},onSidebarHide:function(){return bn(!1)},filterValues:Dn,onFilterChange:function(n,e){En(function(t){var l;return r(r({},t),((l={})[n]=e,l))})},onFilterReset:function(){if(Y){var n={};Y.data.sidebarFilters.forEach(function(e){n[e.id]="multiSelect"===e.type?[]:""}),En(n)}},onFilterApply:function(){wn(Dn),bn(!1),null==_||_(Dn)},appliedFilters:In,graphEmptyState:j,tables:M,tableLayout:x,sectionOrder:L,hiddenSections:O,tablePages:Hn,onTableExpand:ne,onTableLoadMore:ee,pollingEnabled:(null==Jn?void 0:Jn.pollingEnabled)&&_n,selectedPreset:Vn,handlePresetChange:function(n){Kn(n)}})):z?o(a,{children:z()}):o(p,{})}export{w as ExecutiveDashboardWrapper,w as default};
|
|
1
|
+
import{__awaiter as n,__rest as e,__assign as r,__generator as t,__spreadArray as l}from"../_virtual/_tslib.js";import{jsx as o,Fragment as a,jsxs as i}from"react/jsx-runtime";import u,{useState as d,useRef as s,useMemo as c,useCallback as v,useEffect as f}from"react";import{ExecutiveDashboard as b}from"./components/ExecutiveDashboard.js";import{DATE_PRESETS as g}from"./components/DashboardDateFilter/datePreset.js";import{DashboardSkeleton as p}from"./components/DashboardSkeleton/DashboardSkeleton.js";import{fetchUIConfig as h,fetchCurrentConfigUIVersionFromRedis as m,fetchDashboardData as D,fetchTableData as E}from"./api/dashboardApi.js";import{useVisibilityPolling as y}from"./hooks/useVisibilityPolling.js";var I=1e4;function C(C){var w,F,P,S=this,A=C.baseUrl,R=void 0===A?"https://dev.appmod.ai":A,j=C.configId,M=C.graphEmptyState,x=C.tables,L=C.tableLayout,O=C.sectionOrder,k=C.hiddenSections,T=C.fetchUIConfig,U=C.fetchUIVersionFromRedis,N=C.fetchDashboardData,V=C.fetchTableData,K=C.initialStartDate,B=C.initialEndDate,_=C.onDateChange,z=C.onFiltersApplied,G=C.renderLoading,H=C.renderError,q=C.pollingConfigProp,J=C.metricCardConfig,Q=null!=T?T:h,W=null!=U?U:m,X=null!=N?N:D,Y=null!=V?V:E,Z=d(null),$=Z[0],nn=Z[1],en=d(null),rn=en[0],tn=en[1],ln=d(!0),on=ln[0],an=ln[1],un=d(!0),dn=un[0],sn=un[1],cn=d(null),vn=cn[0],fn=cn[1],bn=d(!1),gn=bn[0],pn=bn[1],hn=d({}),mn=hn[0],Dn=hn[1],En=d({}),yn=En[0],In=En[1],Cn=d({}),wn=Cn[0],Fn=Cn[1],Pn=d(null),Sn=Pn[0],An=Pn[1],Rn=u.useRef(null),jn=u.useRef(!1),Mn=s(null),xn=s(null),Ln=s({}),On=s(null),kn=s(new Set),Tn=s(!1),Un=s(I),Nn=s(-1),Vn=s(!0),Kn=d(null!==(F=null===(w=null==$?void 0:$.data)||void 0===w?void 0:w.dateFilters.defaultPreset)&&void 0!==F?F:"today"),Bn=Kn[0],_n=Kn[1],zn=d(!1),Gn=zn[0],Hn=zn[1],qn=d({}),Jn=qn[0],Qn=qn[1],Wn=c(function(){var n,e;if($){var r=$.data.dateFilters;return(null==r?void 0:r.pollingEnabled)&&(Un.current=null!==(n=r.pollingInterval)&&void 0!==n?n:I),{pollingEnabled:null!==(e=Boolean("yes"===(null==r?void 0:r.pollingEnabled)))&&void 0!==e&&e,pollingInterval:I,maxErrorInterval:5e4,backoffMultiplier:1.5}}},[$]),Xn=c(function(){return null!=q?q:Wn},[q,Wn]),Yn=function(n){var e=Object.values(g).find(function(e){return e.value===n});return e&&"getRange"in e?e.getRange():null},Zn=v(function(){return n(S,void 0,void 0,function(){var n,e,r,l,o,a,i,u,d,s,c,v,f,b;return t(this,function(t){switch(t.label){case 0:an(!0),fn(null),null===(i=Mn.current)||void 0===i||i.abort(),n=new AbortController,Mn.current=n,t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,Q({configId:j,baseUrl:R},n.signal)];case 2:return e=t.sent(),nn(e),r={},null===(s=null===(d=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.graphBuilder)||void 0===d?void 0:d.tiers)||void 0===s||s.forEach(function(n){n.plotOptions.length>0&&(r[n.key]=n.plotOptions[0].value)}),Dn(r),l={},null===(v=null===(c=null==e?void 0:e.data)||void 0===c?void 0:c.sidebarFilters)||void 0===v||v.forEach(function(n){l[n.schemaFilterName]="Multi select"===n.type?[]:""}),In(l),Fn(l),jn.current||(o=K&&B?{startDate:K,endDate:B}:Yn(null===(b=null===(f=null==e?void 0:e.data)||void 0===f?void 0:f.dateFilters)||void 0===b?void 0:b.defaultPreset))&&(jn.current=!0,Rn.current={start:o.startDate.getTime(),end:o.endDate.getTime()},An({start:o.startDate,end:o.endDate})),[3,5];case 3:return"AbortError"===(null==(a=t.sent())?void 0:a.name)?[2]:(fn(a),[3,5]);case 4:return Mn.current===n&&an(!1),[7];case 5:return[2]}})})},[j,R,Q,K,B]),$n=v(function(){return n(S,void 0,void 0,function(){var n,e,r,l,o;return t(this,function(t){switch(t.label){case 0:if(Tn.current)return[3,7];Tn.current=!0,console.log("----- POLLING API ----"),null===(o=On.current)||void 0===o||o.abort(),n=new AbortController,On.current=n,t.label=1;case 1:return t.trys.push([1,5,6,7]),[4,W({configId:j,baseUrl:R},n.signal)];case 2:return(null==(e=t.sent())?void 0:e.timestamp)&&parseInt(null==e?void 0:e.timestamp)>Nn.current?(r=Yn(Bn),"custom"===Bn&&Sn&&(r={startDate:null==Sn?void 0:Sn.start,endDate:null==Sn?void 0:Sn.end}),console.log("loadData ranges: ",{selectedPreset:Bn,currentRange:r}),[4,ne(r).then(function(){return Nn.current=parseInt(e.timestamp)})]):[3,4];case 3:t.sent(),t.label=4;case 4:return Vn.current=!1,[3,7];case 5:return"AbortError"===(null==(l=t.sent())?void 0:l.name)?[2]:(console.error("Something went wrong while fetching version from Redis"),[3,7]);case 6:return Tn.current=!1,[7];case 7:return[2]}})})},[Bn,Sn,W]);y((null==Wn?void 0:Wn.pollingEnabled)&&Gn,Un.current,$n,[Xn,Gn,$n]),f(function(){return Zn(),function(){var n;return null===(n=Mn.current)||void 0===n?void 0:n.abort()}},[Zn]),f(function(){if(Wn&&Wn.pollingEnabled){var n=Wn.pollingInterval;"number"==typeof n&&!isNaN(n)&&n>0&&(Un.current=n)}},[Wn]);var ne=v(function(e){return n(S,void 0,void 0,function(){var n,r,l,o,a,i,u,d;return t(this,function(t){switch(t.label){case 0:if(!Sn)return[2];null===(a=xn.current)||void 0===a||a.abort(),n=new AbortController,xn.current=n,Vn.current&&sn(!0),fn(null),console.log("loadData ranges: ",{selectedPreset:Bn,currentRange:e,dateRange:Sn}),t.label=1;case 1:return t.trys.push([1,3,4,5]),r={startDate:(null==Wn?void 0:Wn.pollingEnabled)&&e&&"custom"!==Bn?e.startDate:Sn.start,endDate:(null==Wn?void 0:Wn.pollingEnabled)&&e&&"custom"!==Bn?e.endDate:Sn.end,filters:wn},[4,X({configId:j,baseUrl:R},r,n.signal)];case 2:return l=t.sent(),tn(l),(null==Wn?void 0:Wn.pollingEnabled)||Qn({}),Un.current&&(null==Xn?void 0:Xn.pollingEnabled)&&(null==Wn?void 0:Wn.pollingInterval)&&(Un.current=null!==(i=null==Xn?void 0:Xn.pollingInterval)&&void 0!==i?i:I,Vn.current=!1),[3,5];case 3:return"AbortError"===(null==(o=t.sent())?void 0:o.name)?[2]:(fn(o),Un.current&&(null==Xn?void 0:Xn.maxErrorInterval)&&(Un.current=Math.min(Un.current*(null!==(u=null==Wn?void 0:Wn.backoffMultiplier)&&void 0!==u?u:1.5),null!==(d=null==Wn?void 0:Wn.maxErrorInterval)&&void 0!==d?d:5e4)),[3,5]);case 4:return xn.current===n&&sn(!1),[7];case 5:return[2]}})})},[j,R,Sn,wn,X]),ee=v(function(e,o){return n(S,void 0,void 0,function(){var n,a,i,u,d,s,c;return t(this,function(t){switch(t.label){case 0:if(!Sn||!kn.current.has(e)||Ln.current[e])return[2];n=new AbortController,Ln.current[e]=n,a=function(){return!kn.current.has(e)||n.signal.aborted||Ln.current[e]!==n},Qn(function(n){var t,l,o,a,i,u,d,s;return r(r({},n),((t={})[e]={rows:null!==(o=null===(l=n[e])||void 0===l?void 0:l.rows)&&void 0!==o?o:[],cursor:null===(a=n[e])||void 0===a?void 0:a.cursor,hasMore:null!==(u=null===(i=n[e])||void 0===i?void 0:i.hasMore)&&void 0!==u&&u,loading:!0,loaded:null!==(s=null===(d=n[e])||void 0===d?void 0:d.loaded)&&void 0!==s&&s},t))}),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,Y({configId:j,baseUrl:R},r({startDate:Sn.start,endDate:Sn.end,filters:wn,tableKey:e,pageSize:20},o?{cursor:o}:{}),n.signal)];case 2:return i=t.sent(),u=null!==(c=null===(s=i.table)||void 0===s?void 0:s[e])&&void 0!==c?c:[],a()?[2]:(Qn(function(n){var t,o,a=n[e];return a?r(r({},n),((t={})[e]={rows:l(l([],a.rows,!0),u,!0),cursor:null!==(o=i.nextCursor)&&void 0!==o?o:void 0,hasMore:i.hasNext,loading:!1,loaded:!0},t)):n}),[3,5]);case 3:return"AbortError"===(null==(d=t.sent())?void 0:d.name)||a()?[2]:(Qn(function(n){var t;return n[e]?r(r({},n),((t={})[e]=r(r({},n[e]),{loading:!1,hasMore:!1}),t)):n}),[3,5]);case 4:return Ln.current[e]===n&&delete Ln.current[e],[7];case 5:return[2]}})})},[j,R,Sn,wn,Y]),re=v(function(n,r){var t;if(!r)return kn.current.delete(n),null===(t=Ln.current[n])||void 0===t||t.abort(),delete Ln.current[n],void Qn(function(r){var t=r,l=n;return t[l],e(t,["symbol"==typeof l?l:l+""])});kn.current.add(n),ee(n)},[ee]),te=v(function(n){var e=Jn[n];(null==e?void 0:e.hasMore)&&!e.loading&&e.cursor&&ee(n,e.cursor)},[ee,Jn]);f(function(){return function(){kn.current.clear(),Object.values(Ln.current).forEach(function(n){return n.abort()})}},[]),f(function(){return ne(),function(){var n;return null===(n=xn.current)||void 0===n?void 0:n.abort()}},[ne]),f(function(){return function(){var n;return null===(n=On.current)||void 0===n?void 0:n.abort()}},[]),f(function(){!function(n){var e=Object.values(g).find(function(e){return e.value===n}),r=!(!e||!("pollingEnabled"in e)||!1===e.pollingEnabled);Hn(r)}(Bn)},[Bn]),f(function(){var n,e;(null===(n=null==$?void 0:$.data)||void 0===n?void 0:n.dateFilters.defaultPreset)&&_n(null===(e=null==$?void 0:$.data)||void 0===e?void 0:e.dateFilters.defaultPreset)},[null===(P=null==$?void 0:$.data)||void 0===P?void 0:P.dateFilters.defaultPreset]);var le=v(function(n){if((null==n?void 0:n.startDate)&&(null==n?void 0:n.endDate)){var e=n.startDate.getTime(),r=n.endDate.getTime();Rn.current&&Rn.current.start===e&&Rn.current.end===r||(Rn.current={start:e,end:r},An({start:n.startDate,end:n.endDate}))}null==_||_(n),sn(!0)},[_]),oe=on||dn&&!rn;return vn?H?o(a,{children:H(vn,Zn)}):i("div",r({style:{padding:24,color:"#b91c1c"}},{children:["Failed to load dashboard: ",vn.message,o("button",r({onClick:Zn,style:{marginLeft:12}},{children:"Retry"}))]})):!oe&&$&&rn&&Sn?(console.log("pollingEnabled: ",null==Wn?void 0:Wn.pollingEnabled,Gn),o(b,{uiConfig:$,data:rn,dataLoading:dn,startDate:Sn.start,endDate:Sn.end,onDateChange:le,onRefresh:function(){ne(),sn(!0)},selectedKpis:mn,onKpiChange:function(n,e){Dn(function(t){var l;return r(r({},t),((l={})[n]=e,l))})},sidebarVisible:gn,onSidebarShow:function(){return pn(!0)},onSidebarHide:function(){return pn(!1)},filterValues:yn,onFilterChange:function(n,e){In(function(t){var l;return r(r({},t),((l={})[n]=e,l))})},onFilterReset:function(){if($){var n={};$.data.sidebarFilters.forEach(function(e){n[e.id]="multiSelect"===e.type?[]:""}),In(n)}},onFilterApply:function(){Fn(yn),pn(!1),null==z||z(yn)},appliedFilters:wn,graphEmptyState:M,tables:x,tableLayout:L,sectionOrder:O,hiddenSections:k,tablePages:Jn,onTableExpand:re,onTableLoadMore:te,pollingEnabled:(null==Wn?void 0:Wn.pollingEnabled)&&Gn,selectedPreset:Bn,handlePresetChange:function(n){_n(n)},metricCardConfig:J})):G?o(a,{children:G()}):o(p,{})}export{C as ExecutiveDashboardWrapper,C as default};
|
|
2
2
|
//# sourceMappingURL=ExecutiveDashboardWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useEffect as n}from"react";import{Button as r}from"primereact/button";import{RefreshCw as o,ListFilter as s}from"lucide-react";import d from"../DatePickers/DateSelector.js";import{DEFAULT_DATE_PRESETS as u}from"./datePreset.js";var c=function(c){var v,m,f,p,h=c.presets,D=void 0===h?u:h,g=c.filterCount,b=void 0===g?0:g,x=c.liveDuration,C=void 0===x?3e4:x,q=c.onDateChange,N=c.onRefresh,k=c.isRefreshLoading,w=c.onFilterClick,y=c.showFilterButton,P=void 0===y||y,R=c.showLiveButton,F=void 0===R||R,j=c.showFilterCount,B=void 0!==j&&j,E=c.datePickerProps,L=c.initialStartDate,T=c.initialEndDate;c.defaultPresets;var z=c.pollingEnabled,S=void 0!==z&&z,W=c.selectedPreset,_=void 0===W?"today":W,A=c.handlePresetChange,H=a(!0),I=H[0],G=H[1],J=a(L||null),K=J[0],M=J[1],O=a(T||null),Q=O[0],U=O[1];n(function(){M(L||null),U(T||null)},[L,T]);var V=a(!1),X=V[0],Y=V[1];n(function(){var e=setTimeout(function(){G(!1)},C);return function(){return clearTimeout(e)}},[_,C]),n(function(){if("custom"!==_){var e=D.find(function(e){return e.value===_});if(e&&e.getRange){var t=e.getRange();null==q||q({preset:_,startDate:t.startDate,endDate:t.endDate})}}},[_,D,q]);var Z=D;return t("div",e({className:"q-date-filter"},{children:[t("div",e({className:"q-date-filter-toolbar"},{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"}},{children:[i("div",e({className:"q-preset-container"},{children:null==Z?void 0:Z.map(function(t){return i("button",e({className:"q-preset-btn ".concat(_===(null==t?void 0:t.value)?"active":""),onClick:function(){return null==A?void 0:A(null==t?void 0:t.value)}},{children:null==t?void 0:t.label}),null==t?void 0:t.value)})})),F&&t(l,I&&!S?{children:[i("div",{style:{width:"1px",height:"31px",backgroundColor:"#CBD5E1"}}),t("div",e({className:"q-live-chip"},{children:[i("span",{className:"q-live-dot"}),"Live Data"]}))]}:{children:[i("div",{className:"q-date-separator",style:{width:"1px",height:"31px",backgroundColor:"#CBD5E1"}}),t(r,e({className:"q-refresh-btn",onClick:N},{children:[i(o,{size:16,strokeWidth:2.5,className:k?"q-spin":""}),i("span",{children:k?"Refreshing...":"Refresh"})]}))]})]})),P&&t("button",e({className:"q-filter-btn",onClick:w},{children:[i(s,{size:12.5}),"Filters",B&&b>0&&i("span",e({className:"q-filter-badge"},{children:b}))]}))]})),"custom"===_&&t("div",e({className:"q-custom-container"},{children:[i(d,{label:"From",value:K,minDate:null===(v=null==E?void 0:E.from)||void 0===v?void 0:v.minDate,maxDate:null!=Q?Q:null===(m=null==E?void 0:E.from)||void 0===m?void 0:m.maxDate,onChange:function(e){M(e),Y(!1)},styles:{root:{width:"250px"}}}),i(d,{label:"To",value:Q,minDate:null!=K?K:null===(f=null==E?void 0:E.to)||void 0===f?void 0:f.minDate,maxDate:null===(p=null==E?void 0:E.to)||void 0===p?void 0:p.maxDate,onChange:function(e){U(e),Y(!1)},styles:{root:{width:"250px"}}}),i(r,{className:"q-apply-btn",label:"Apply Range",disabled:!K||!Q||X,onClick:function(){if(K&&Q){var e=new Date(K);e.setHours(0,0,0,0);var t=new Date;null==q||q({preset:"custom",startDate:e,endDate:t}),Y(!0)}}})]}))]}))};export{c as default};
|
|
2
2
|
//# sourceMappingURL=DashboardDateFilter.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as l,__spreadArray as i}from"../../_virtual/_tslib.js";import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import t,{useMemo as d}from"react";import{ChartLine as a}from"lucide-react";import r from"./DashboardDateFilter/DashboardDateFilter.js";import u from"./MetricCard/MetricCard.js";import v from"./FiltersSidebar/FiltersSidebar.js";import s from"./Graph/Graph.js";import p from"./Graph/GraphEmptyState.js";import{DATE_PRESET_MAP as c}from"./DashboardDateFilter/datePreset.js";import g from"./Table/TableCard.js";import m from"./Table/TableGrid/TableGrid.js";import{buildColumns as h,withRowIds as
|
|
1
|
+
import{__assign as l,__spreadArray as i}from"../../_virtual/_tslib.js";import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import t,{useMemo as d}from"react";import{ChartLine as a}from"lucide-react";import r from"./DashboardDateFilter/DashboardDateFilter.js";import u from"./MetricCard/MetricCard.js";import v from"./FiltersSidebar/FiltersSidebar.js";import s from"./Graph/Graph.js";import p from"./Graph/GraphEmptyState.js";import{DATE_PRESET_MAP as c}from"./DashboardDateFilter/datePreset.js";import g from"./Table/TableCard.js";import m from"./Table/TableGrid/TableGrid.js";import{buildColumns as h,withRowIds as f}from"../utils/tableColumns.js";import{resolveSectionOrder as b,isSectionHidden as y}from"../utils/sectionOrder.js";import{getActiveFilterCount as C,isKpiValueObject as F,getKpiValueColor as k,getKpiDelta as D,formatKpiValue as w}from"../utils/index.js";import{getKpiIcon as x}from"../utils/kpiIcon.js";var B=["#7c3aed","#FFC130","#F43F5E","#10b981","#3b82f6"];function S(S){var j,L,P,O,A,T,E,M,R,V,G,H,z,I,W,q,K,N,Z,_,J,Q,U,X,Y,$,ll,il,el,ol,nl,tl,dl,al,rl,ul,vl,sl=S.uiConfig,pl=S.data,cl=S.dataLoading,gl=S.startDate,ml=S.endDate,hl=S.onDateChange,fl=S.onRefresh,bl=S.selectedKpis,yl=S.onKpiChange,Cl=S.sidebarVisible,Fl=S.onSidebarShow,kl=S.onSidebarHide,Dl=S.filterValues,wl=S.onFilterChange,xl=S.onFilterReset,Bl=S.onFilterApply,Sl=S.appliedFilters,jl=S.graphEmptyState,Ll=S.tables,Pl=S.tableLayout,Ol=S.sectionOrder,Al=S.hiddenSections,Tl=S.tablePages,El=S.onTableExpand,Ml=S.onTableLoadMore,Rl=S.pollingEnabled,Vl=void 0!==Rl&&Rl,Gl=S.selectedPreset,Hl=S.handlePresetChange,zl=S.metricCardConfig,Il=null!==(P=null===(L=null===(j=null==sl?void 0:sl.data)||void 0===j?void 0:j.dateFilters)||void 0===L?void 0:L.datepresets)&&void 0!==P?P:[],Wl=d(function(){return Il.map(function(l){return c[l]}).filter(Boolean)},[JSON.stringify(Il)]),ql=d(function(){return C(Sl)},[Sl]),Kl=d(function(){var l,i,e=null==Pl?void 0:Pl.spans;if(e)return(null!==(i=null===(l=null==sl?void 0:sl.data)||void 0===l?void 0:l.tableBuilder)&&void 0!==i?i:[]).map(function(l,i){return Array.isArray(e)?e[i]:e[l.key]})},[null==Pl?void 0:Pl.spans,null===(O=null==sl?void 0:sl.data)||void 0===O?void 0:O.tableBuilder]),Nl=e("div",l({style:{padding:"4px"}},{children:e(s,{loading:cl,emptyState:null!=jl?jl:e(p,{}),title:null===(A=null==sl?void 0:sl.data)||void 0===A?void 0:A.graphBuilder.title,description:null===(E=null===(T=null==sl?void 0:sl.data)||void 0===T?void 0:T.graphBuilder)||void 0===E?void 0:E.subtitle,icon:e(a,{size:18}),xAxis:{label:(null===(R=null===(M=null==sl?void 0:sl.data)||void 0===M?void 0:M.graphBuilder)||void 0===R?void 0:R.axis.xAxisLabel)||"Date"},style:{chartHeight:220},scrollable:Vl,panes:null===(V=null==sl?void 0:sl.data)||void 0===V?void 0:V.graphBuilder.tiers.map(function(l,i){var o,n,t,d,r,u,v,s,p,c,g,m,h=bl[l.key]||(null===(o=l.plotOptions[0])||void 0===o?void 0:o.key),f=pl.graph.tier.find(function(i){return i.key===l.key}),b=(null===(n=null==f?void 0:f.referenceOptions)||void 0===n?void 0:n[h])||{},y=(null===(t=null==f?void 0:f.plotbyoptions)||void 0===t?void 0:t[h])||{},C=(null==l?void 0:l.series)||[],F=Object.keys(y),k=l.plotOptions.find(function(l){return l.value===h});return{key:l.key,selector:{label:"Plot By",value:h,onChange:function(i){yl(l.key,i)},options:l.plotOptions.map(function(l){return{label:l.label,value:l.value}}),triggerIcon:e(a,{size:16,color:0===i?"green":"purple"})},yAxis:{label:null==k?void 0:k.yAxisLabel,beginAtZero:"false"!==(null==h?void 0:h.yAxisBeginAtZero)},tooltip:{formatHeading:function(l){return"".concat(l)}},legend:{position:(null===(u=null===(r=null===(d=null==sl?void 0:sl.data)||void 0===d?void 0:d.graphBuilder)||void 0===r?void 0:r.legend)||void 0===u?void 0:u.position)||"bottom",toggle:"yes"===(null===(p=null===(s=null===(v=null==sl?void 0:sl.data)||void 0===v?void 0:v.graphBuilder)||void 0===s?void 0:s.legend)||void 0===p?void 0:p.allowToggle),align:(null===(m=null===(g=null===(c=null==sl?void 0:sl.data)||void 0===c?void 0:c.graphBuilder)||void 0===g?void 0:g.legend)||void 0===m?void 0:m.alignment)||"center"},height:0===i?300:250,series:F.map(function(l,i){var e,o,n=(null===(o=null===(e=null==f?void 0:f.plotbyoptions)||void 0===e?void 0:e[h])||void 0===o?void 0:o[l])||[],t=B[i%B.length],d=C.find(function(i){return i.key===l});return{key:l,label:(null==d?void 0:d.name)||l,data:n,area:"yes"===(null==d?void 0:d.areaFill),curve:(null==d?void 0:d.curveType)||"linear",color:"#".concat(null==d?void 0:d.color)||t,dashed:"dashed"===(null==d?void 0:d.style),strokeWidth:parseInt(null==d?void 0:d.strokeWidth)||2,showPoints:"yes"===(null==d?void 0:d.showPoints),pointRadius:parseInt(null==d?void 0:d.pointRadius)||3,showInLegend:!0,valueFormatter:function(l){return"".concat(l)}}}),reference:b}})})})),Zl=e("div",l({style:{padding:"4px",display:"flex",gap:"10px",flexWrap:"wrap"}},{children:i([],null!==(H=null===(G=null==sl?void 0:sl.data)||void 0===G?void 0:G.kpiCards)&&void 0!==H?H:[],!0).sort(function(l,i){var e,o;return(null!==(e=l.displayOrder)&&void 0!==e?e:0)-(null!==(o=i.displayOrder)&&void 0!==o?o:0)}).map(function(l){var i,o,n=null===(i=null==pl?void 0:pl.kpiCards)||void 0===i?void 0:i[l.title],t=F(n)?k(n.currentValue,n.baselineValue,l.indicatorLogic):void 0,d=F(n)?D(n.currentValue,n.baselineValue,l.indicatorLogic):void 0;return e(u,{title:l.title,subtitle:l.subtitle,value:w(n,l.valueFormat),valueColor:t,delta:d&&{label:d.label,direction:d.direction,color:t},icon:x(l.icon),loading:cl,showDelta:null===(o=null==zl?void 0:zl.showDelta)||void 0===o||o},l.title)})})),_l=(null!==(W=null===(I=null===(z=null==sl?void 0:sl.data)||void 0===z?void 0:z.tableBuilder)||void 0===I?void 0:I.length)&&void 0!==W?W:0)>0?e("div",l({style:{padding:"4px"}},{children:e(m,l({itemSpans:Kl,totalColumns:null!==(q=null==Pl?void 0:Pl.totalColumns)&&void 0!==q?q:12,defaultSpan:null==Pl?void 0:Pl.defaultSpan,options:null!==(K=null==Pl?void 0:Pl.options)&&void 0!==K?K:[1,2,3],defaultColumns:null==Pl?void 0:Pl.defaultColumns,columns:null==Pl?void 0:Pl.columns,onColumnsChange:null==Pl?void 0:Pl.onColumnsChange,showToggle:(null===(N=null==Pl?void 0:Pl.showToggle)||void 0===N||N)&&(null!==(J=null===(_=null===(Z=null==sl?void 0:sl.data)||void 0===Z?void 0:Z.tableBuilder)||void 0===_?void 0:_.length)&&void 0!==J?J:0)>1,toggleLabel:null==Pl?void 0:Pl.toggleLabel,minColumnWidth:null!==(Q=null==Pl?void 0:Pl.minColumnWidth)&&void 0!==Q?Q:380,gap:null!==(U=null==Pl?void 0:Pl.gap)&&void 0!==U?U:12,equalHeights:null===(X=null==Pl?void 0:Pl.equalHeights)||void 0===X||X},{children:sl.data.tableBuilder.map(function(i){var o,n,d=null!==(n=null===(o=null==pl?void 0:pl.table)||void 0===o?void 0:o[i.key])&&void 0!==n?n:[],a=null==Tl?void 0:Tl[i.key],r=!!(null==a?void 0:a.loaded),u=r?a.rows:d,v=!r&&i.rowLimit&&i.rowLimit>0?d.slice(0,i.rowLimit):u,s=null==Ll?void 0:Ll[i.key],p=h(i,s),c=null==s?void 0:s.card,m=null==c?void 0:c.icon,b=x(i.icon),y=b&&t.isValidElement(b)?t.cloneElement(b,l(l({},null!=(null==m?void 0:m.size)?{size:m.size}:{}),(null==m?void 0:m.color)?{color:m.color}:{})):b,C=m?l(l(l({width:"auto",height:"auto"},m.color?{color:m.color}:{}),m.background?{background:m.background,padding:6,borderRadius:8}:{}),m.style):void 0;return e(g,{title:i.title,icon:y,styles:{root:null==c?void 0:c.root,header:null==c?void 0:c.header,title:null==c?void 0:c.title,icon:C},onExpand:function(l){return null==El?void 0:El(i.key,l)},table:{rows:f(v),columns:p,loading:cl,loadingMore:null==a?void 0:a.loading,hasMore:null==a?void 0:a.hasMore,onLoadMore:a?function(){return null==Ml?void 0:Ml(i.key)}:void 0,tableProps:null==s?void 0:s.tableProps}},i.key)})}))})):null,Jl={graphBuilder:Nl,kpiCards:Zl,tableBuilder:_l},Ql=b(Ol,Al,null===(Y=null==sl?void 0:sl.data)||void 0===Y?void 0:Y.sectionOrder,Object.keys(Jl)),Ul=y(Al,"dateFilters"),Xl=y(Al,"sidebarFilters");return e(o,{children:n("div",l({style:{display:"flex",flexDirection:"column",gap:12,width:"100%"}},{children:[!Ul&&e("div",l({style:{padding:"4px"}},{children:e(r,{filterCount:ql,initialStartDate:gl,initialEndDate:ml,onDateChange:hl,onRefresh:fl,onFilterClick:Fl,presets:Wl,datePickerProps:{from:{minDate:new Date(2025,0,1),maxDate:new Date},to:{minDate:gl,maxDate:new Date}},defaultPresets:null===($=null==sl?void 0:sl.data)||void 0===$?void 0:$.dateFilters.defaultPreset,showLiveButton:"yes"===(null===(il=null===(ll=null==sl?void 0:sl.data)||void 0===ll?void 0:ll.dateFilters)||void 0===il?void 0:il.showLiveButton),showFilterButton:!Xl&&"yes"===(null===(ol=null===(el=null==sl?void 0:sl.data)||void 0===el?void 0:el.dateFilters)||void 0===ol?void 0:ol.showFilterButton),showFilterCount:!Xl&&"yes"===(null===(tl=null===(nl=null==sl?void 0:sl.data)||void 0===nl?void 0:nl.dateFilters)||void 0===tl?void 0:tl.showFilterCount),liveDuration:null===(al=null===(dl=null==sl?void 0:sl.data)||void 0===dl?void 0:dl.dateFilters)||void 0===al?void 0:al.liveDurationMs,pollingEnabled:Vl,selectedPreset:Gl,handlePresetChange:Hl})})),Ql.map(function(l){return e(t.Fragment,{children:Jl[l]},l)}),!Xl&&e(v,{visible:Cl,onHide:kl,onReset:xl,onApply:Bl,fields:null!==(vl=null===(ul=null===(rl=null==sl?void 0:sl.data)||void 0===rl?void 0:rl.sidebarFilters)||void 0===ul?void 0:ul.map(function(l){var i,e,o,n,t=l.schemaFilterName,d="Single select"===l.type?"singleSelect":"Multi select"===l.type?"multiSelect":"Date Range"===l.type?"dateRange":"Date"===l.type?"date":"text",a=null!==(e=null===(i=l.options)||void 0===i?void 0:i.map(function(l){return{label:l,value:l}}))&&void 0!==e?e:[];return{id:t,label:l.label,hint:l.description,type:d,placeholder:l.placeholder,options:a,value:"multiSelect"===d?null!==(o=Dl[t])&&void 0!==o?o:[]:null!==(n=Dl[t])&&void 0!==n?n:"",onChange:function(l){return wl(t,l)}}}))&&void 0!==vl?vl:[]})]}))})}export{S as ExecutiveDashboard,S as default};
|
|
2
2
|
//# sourceMappingURL=ExecutiveDashboard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as l}from"../../../_virtual/_tslib.js";import{jsxs as n,jsx as i,Fragment as r}from"react/jsx-runtime";import{useId as o,useState as t,useMemo as a}from"react";import s from"./LineChart.js";import c from"./GraphSkeleton.js";import d from"./PlotBySelector.js";import{colorForIndex as u}from"./types.js";function
|
|
1
|
+
import{__assign as e,__spreadArray as l}from"../../../_virtual/_tslib.js";import{jsxs as n,jsx as i,Fragment as r}from"react/jsx-runtime";import{useId as o,useState as t,useMemo as a}from"react";import s from"./LineChart.js";import c from"./GraphSkeleton.js";import d from"./PlotBySelector.js";import{colorForIndex as u}from"./types.js";function v(e){var l,n,r,o=e.config,a=void 0!==o.value,s=t(null!==(l=o.defaultValue)&&void 0!==l?l:null===(r=null===(n=o.options)||void 0===n?void 0:n[0])||void 0===r?void 0:r.value),c=s[0],u=s[1],v=a?o.value:c;return i(d,{config:o,value:v,onChange:function(e){var l;a||u(e),null===(l=o.onChange)||void 0===l||l.call(o,e)}})}function h(l){var r,o=l.pane,t=l.xAxis,a=l.sharedStyle,c=l.isLast,d=l.hiddenKeys,u=l.toggleSeries,v=l.syncId,h=l.reference,f=l.scrollable,m=void 0!==f&&f,p=l.onPointClick,g=c?t:e(e({},t),{show:!1,label:void 0});return n("div",e({className:"ellm-graph__pane"},{children:[o.title&&i("div",e({className:"ellm-graph__pane-title"},{children:o.title})),i(s,{series:o.series,hiddenKeys:d,onToggleSeries:u,xAxis:g,yAxis:o.yAxis,tooltip:o.tooltip,legend:{show:!0},syncId:v,style:e(e({},a),{chartHeight:null!==(r=o.height)&&void 0!==r?r:null==a?void 0:a.chartHeight}),reference:h,scrollable:m,onPointClick:p})]}))}function f(d){var f,m,p=d.series,g=d.panes,y=d.title,_=d.description,x=d.icon,N=d.plotBy,A=d.xAxis,k=d.yAxis,S=d.tooltip,b=d.legend,C=d.config,w=d.style,j=d.emptyState,P=d.loading,E=d.scrollable,H=void 0!==E&&E,I=d.onPointClick,K=!!(null==g?void 0:g.length),L=o(),B=t(function(){var e=new Set;return(null!=p?p:[]).forEach(function(l){return l.hidden&&e.add(l.key)}),(null!=g?g:[]).forEach(function(l){return l.series.forEach(function(l){return l.hidden&&e.add(l.key)})}),e}),G=B[0],T=B[1],W=function(e){return T(function(l){var n=new Set(l);return n.has(e)?n.delete(e):n.add(e),n})},M=!1!==(null==C?void 0:C.showHeader),V=a(function(){return K?g.some(function(e){return e.series.some(function(e){var l,n;return null===(n=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.some)||void 0===n?void 0:n.call(l,function(e){return null!=(null==e?void 0:e.y)})})}):(null!=p?p:[]).some(function(e){return e.data.some(function(e){return null!=e.y})})},[K,g,p]),q=a(function(){var l;if(!K)return w;var n=null!==(l=null==w?void 0:w.yAxisWidth)&&void 0!==l?l:g.some(function(e){var l;return null===(l=e.yAxis)||void 0===l?void 0:l.label})?64:48;return e(e({},w),{yAxisWidth:n})},[K,g,w]);a(function(){if(!K)return[];var e=[];return g.forEach(function(l){var n;!1!==(null===(n=l.legend)||void 0===n?void 0:n.show)&&l.series.forEach(function(l,n){var i;!1!==l.showInLegend&&e.push({key:l.key,label:l.label,color:null!==(i=l.color)&&void 0!==i?i:u(null==q?void 0:q.colors,n)})})}),e},[K,g,null==q?void 0:q.colors]);var z=l(l([],N?[N]:[],!0),K?g.flatMap(function(e){return e.selector?[e.selector]:[]}):[],!0),D=y||_||x||z.length>0;return n("div",e({className:"ellm-graph".concat((null==w?void 0:w.className)?" ".concat(w.className):""),style:null==w?void 0:w.container},{children:[M&&D&&n("div",e({className:"ellm-graph__header"},{children:[n("div",e({className:"ellm-graph__heading"},{children:[x&&i("span",e({className:"ellm-graph__icon"},{children:x})),n("div",{children:[y&&i("div",e({className:"ellm-graph__title"},{children:y})),_&&i("div",e({className:"ellm-graph__description"},{children:_}))]})]})),z.length>0&&i("div",e({className:"ellm-graph__controls"},{children:z.map(function(e,l){return i(v,{config:e},l)})}))]})),P?i(c,{height:null==w?void 0:w.chartHeight}):!V&&j?i("div",e({className:"ellm-graph__empty"},{children:j})):K?n(r,{children:[i("div",e({className:"ellm-graph__panes",style:{gap:null!==(f=null==w?void 0:w.paneGap)&&void 0!==f?f:12}},{children:g.map(function(e,l){var n;return i(h,{pane:e,xAxis:A,sharedStyle:q,isLast:l===g.length-1,hiddenKeys:G,toggleSeries:W,syncId:L,reference:e.reference,scrollable:H,onPointClick:I},null!==(n=e.key)&&void 0!==n?n:"pane-".concat(l))})})),!1]}):i(s,{series:null!=p?p:[],hiddenKeys:G,onToggleSeries:W,xAxis:A,yAxis:k,tooltip:S,legend:b,style:w,reference:null===(m=null==g?void 0:g[0])||void 0===m?void 0:m.reference,scrollable:H,onPointClick:I})]}))}export{f as default};
|
|
2
2
|
//# sourceMappingURL=Graph.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as n}from"../../../_virtual/_tslib.js";import{jsx as l,jsxs as i}from"react/jsx-runtime";import{useState as o,useMemo as r}from"react";import{ComposedChart as t,CartesianGrid as a,XAxis as u,YAxis as d,ReferenceArea as c,ReferenceLine as v,Area as s,Line as f}from"recharts";import{ChartContainer as h,ChartTooltip as y,ChartTooltipContent as m,ChartLegend as p,ChartLegendContent as g}from"../ui/chart.js";import{colorForIndex as k}from"./types.js";import{compactNumber as x}from"../../utils/index.js";import b from"./Seperator.js";var w=function(e){return"number"==typeof e&&!Number.isNaN(e)},A=function(e){switch(e){case"linear":return"linear";case"step":return"stepAfter";default:return"monotone"}};function C(C){var L,S,T,F,E,K,N,I,P,W=C.series,j=C.hiddenKeys,D=C.onToggleSeries,M=C.xAxis,R=C.yAxis,z=C.tooltip,_=C.legend,B=C.style,H=C.syncId,O=C.reference;C.scrollable;var G=C.onPointClick,V=null!==(L=null==B?void 0:B.chartHeight)&&void 0!==L?L:300,Z=null!==(S=null==B?void 0:B.gridColor)&&void 0!==S?S:"#eef0f4",q=null!==(T=null==B?void 0:B.axisColor)&&void 0!==T?T:"#d7dbe3",J=null!==(F=null==B?void 0:B.axisLabelColor)&&void 0!==F?F:"#6b7280",Q=null!==(E=null==B?void 0:B.tickColor)&&void 0!==E?E:"#9ca3af",U=null!==(K=null==B?void 0:B.fontFamily)&&void 0!==K?K:"Inter, system-ui, -apple-system, sans-serif",X=o(null),Y=X[0],$=X[1],ee=r(function(){var n,l,i;if(null===(n=null==M?void 0:M.categories)||void 0===n?void 0:n.length)return{categories:M.categories,xType:null!==(l=M.type)&&void 0!==l?l:"category"};var o=new Set,r=[];W.forEach(function(e){return e.data.forEach(function(e){o.has(e.x)||(o.add(e.x),r.push(e.x))})});var t=r.every(w),a=null!==(i=null==M?void 0:M.type)&&void 0!==i?i:t?"number":"category";return{categories:"number"===a?e([],r,!0).sort(function(e,n){return Number(e)-Number(n)}):r,xType:a}},[W,null==M?void 0:M.categories,null==M?void 0:M.type]),ne=ee.categories,le=ee.xType,ie=r(function(){var e=new Map;return W.forEach(function(n){var l=new Map;n.data.forEach(function(e){return l.set(e.x,e.y)}),e.set(n.key,l)}),ne.map(function(n){var l={x:n};return W.forEach(function(i){var o,r=null===(o=e.get(i.key))||void 0===o?void 0:o.get(n);l[i.key]=null==r?null:r}),l})},[W,ne]),oe=r(function(){var e={},n=W.map(function(n,l){var i,o=null!==(i=n.color)&&void 0!==i?i:k(null==B?void 0:B.colors,l);return e[n.key]={label:n.label,color:o},{series:n,color:o,index:l}});return{chartConfig:e,resolved:n}},[W,null==B?void 0:B.colors]),re=oe.chartConfig,te=oe.resolved,ae=r(function(){var e={};return W.forEach(function(n){n.valueFormatter&&(e[n.key]=function(e,l){var i;return n.valueFormatter(e,null!==(i=null==l?void 0:l.payload)&&void 0!==i?i:{x:null==l?void 0:l.x,y:e})})}),e},[W]),ue=!1!==(null==z?void 0:z.enabled),de=(null==z?void 0:z.seriesKeys)?new Set(z.seriesKeys):null,ce=!1!==(null==_?void 0:_.show),ve="top"===(null==_?void 0:_.position)?"top":"bottom",se="start"===(null==_?void 0:_.align)?"left":"end"===(null==_?void 0:_.align)?"right":"center",fe=!1!==(null==M?void 0:M.show),he=!1!==(null==R?void 0:R.show),ye=!1!==(null==B?void 0:B.showGrid),me=!!(null==B?void 0:B.showVerticalGrid),pe=r(function(){return Math.max.apply(Math,ie.flatMap(function(e){return W.map(function(n){return Number(e[n.key])||0})}))},[ie]),ge=r(function(){return Math.ceil(1.1*pe)},[pe]),ke=[null!=(null==R?void 0:R.min)?R.min:!1!==(null==R?void 0:R.beginAtZero)?0:"auto",null!=(null==R?void 0:R.max)?R.max:ge],xe=null!==(N=null==B?void 0:B.yAxisWidth)&&void 0!==N?N:(null==R?void 0:R.label)?64:48,be={top:12,right:16,bottom:8,left:null!=(null==B?void 0:B.yAxisWidth)?0:(null==R?void 0:R.label)?16:0},we=null!==(I=null==M?void 0:M.enableScroll)&&void 0!==I&&I,Ae=null!==(P=null==M?void 0:M.minTickGap)&&void 0!==P?P:2;r(function(){if(!we||!Y||ne.length<=1)return"100%";var e=(ne.length-1)*Ae+200;return e>Y-xe-be.left-be.right?"".concat(e,"px"):"100%"},[we,Y,ne.length,Ae,xe,be]);return l(h,n({config:re,style:{height:V,fontFamily:U},ref:function(e){e&&null===Y&&$(e.clientWidth)}},{children:function(){var e,o;return i(t,n({data:ie,margin:be,syncId:H},{children:[l(a,{vertical:me,horizontal:ye,stroke:Z}),l(u,{dataKey:"x",type:"number"===le?"number":"category",hide:!fe,height:(null==M?void 0:M.label)?52:void 0,tickLine:!1,axisLine:!(null==M?void 0:M.hideLine)&&{stroke:q},tickMargin:8,interval:"preserveStartEnd",tick:{fill:Q,fontSize:11},tickFormatter:(null==M?void 0:M.formatTick)?function(e,n){return M.formatTick(e,n)}:void 0,label:(null==O?void 0:O.showReferenceAreaLabel)?function(e){return function(e){var o=e.viewBox;e.startTick,e.endTick;var r=o.x,t=o.y,a=o.width,u=1;if((null==O?void 0:O.showReferenceArea)&&null!=(null==O?void 0:O.referencePoint)&&ne.length>1){var d=ne.indexOf(O.referencePoint);-1!==d&&(u=d/(ne.length-1))}var c=100*u,v=100-c;return l("foreignObject",n({x:r,y:t+24,width:a,height:40},{children:i("div",n({className:"ellm-graph__liveLabelContainer"},{children:[i("div",n({style:{flex:c,display:"flex",alignItems:"center"}},{children:[l(b,{}),l("span",n({style:{padding:"0 12px",color:"#6b7280",fontSize:"12px"}},{children:null==O?void 0:O.referenceAreaLabel})),l(b,{})]})),v>0&&i("div",n({style:{flex:v,display:"flex",alignItems:"center"}},{children:[l(b,{style:{backgroundColor:"#DC2626"}}),i("div",n({className:"ellm-graph__liveLabel"},{children:[l(b,{style:{width:"8px",height:"8px",borderRadius:"100%",backgroundColor:"#DC2626",flex:"auto"},pulse:!0}),"LIVE - ",null==O?void 0:O.referenceAreaLiveLabel]})),l(b,{style:{backgroundColor:"#DC2626"}})]}))]}))}))}(n(n({},e),{startTick:ne[0],endTick:ne[ne.length-1]}))}:(null==M?void 0:M.label)?{value:M.label,position:"insideBottom",offset:4,fill:J,fontSize:12,fontWeight:500}:void 0}),l(d,{hide:!he,domain:ke,tickLine:!1,axisLine:!1===(null==R?void 0:R.hideLine)&&{stroke:q},tickCount:null==R?void 0:R.tickCount,width:xe,tick:{fill:Q,fontSize:11},tickFormatter:(null==R?void 0:R.formatTick)?function(e,n){return R.formatTick(e,n)}:function(e){return"number"==typeof e?x(e):String(e)},label:(null==R?void 0:R.label)?{value:R.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"},fill:J,fontSize:12,fontWeight:500}:void 0}),ue&&l(y,{cursor:{stroke:q,strokeDasharray:"4 4"},content:function(e){var i,o=(null!==(i=e.payload)&&void 0!==i?i:[]).filter(function(e){var n=W.find(function(n){return n.key===e.dataKey});return!1!==(null==n?void 0:n.showInTooltip)&&!(de&&!de.has(String(e.dataKey)))});return(null==z?void 0:z.render)?z.render({x:e.label,points:o.map(function(n){var l;return{series:W.find(function(e){return e.key===n.dataKey}),value:null!==(l=n.value)&&void 0!==l?l:null,point:{x:e.label,y:n.value},color:n.color}})}):l(m,n({},e,{payload:o,hideLabel:!1===(null==z?void 0:z.showHeading),valueFormatters:ae,labelFormatter:(null==z?void 0:z.formatHeading)?function(e){return z.formatHeading(e)}:void 0}))}}),ce&&l(p,{verticalAlign:ve,content:function(e){return l(g,n({},e,{verticalAlign:ve,align:se,hiddenKeys:j,onItemClick:!1!==(null==_?void 0:_.toggle)&&D?D:void 0}))}}),(null==O?void 0:O.showReferenceArea)&&null!=(null==O?void 0:O.referencePoint)&&l(c,{x1:O.referencePoint,fill:null!==(e=O.referenceAreaFill)&&void 0!==e?e:"#2563EB1A"}),(null==O?void 0:O.showReferenceArea)&&null!=O.referencePoint&&l(v,{x:O.referencePoint,stroke:null!==(o=O.referenceLineStroke)&&void 0!==o?o:"#3B82F6",strokeDasharray:"4 4"}),te.map(function(e){var i,o,r,t,a=e.series,u=j.has(a.key),d="var(--color-".concat(a.key,")"),c=!0===a.dashed?"6 5":"string"==typeof a.dashed?a.dashed:void 0,v=!1!==a.showPoints&&{r:null!==(i=a.pointRadius)&&void 0!==i?i:3,fill:"#fff",stroke:d,strokeWidth:2},h={r:(null!==(o=a.pointRadius)&&void 0!==o?o:3)+2,onClick:G?function(e,n){var l,i;return function(e,n,l){if(G){var i=W.find(function(n){return n.key===e});i&&G({series:i,point:{x:null==n?void 0:n.x,y:null==n?void 0:n[e]},index:l})}}(a.key,null!==(l=null==n?void 0:n.payload)&&void 0!==l?l:n,null!==(i=null==n?void 0:n.index)&&void 0!==i?i:0)}:void 0},y={key:a.key,dataKey:a.key,name:a.key,type:A(a.curve),stroke:d,strokeWidth:null!==(r=a.strokeWidth)&&void 0!==r?r:2,strokeDasharray:c,connectNulls:!1,isAnimationActive:!1,hide:u,dot:v,activeDot:h};return a.area?l(s,n({},y,{fill:d,fillOpacity:null!==(t=a.areaOpacity)&&void 0!==t?t:.12})):l(f,n({},y))})]}))}()}))}export{C as default};
|
|
1
|
+
import{__spreadArray as e,__assign as n}from"../../../_virtual/_tslib.js";import{jsx as l,jsxs as i}from"react/jsx-runtime";import{useState as o,useMemo as r}from"react";import{ComposedChart as t,CartesianGrid as a,XAxis as u,YAxis as d,ReferenceArea as c,ReferenceLine as v,Area as s,Line as f}from"recharts";import{ChartContainer as h,ChartTooltip as y,ChartTooltipContent as m,ChartLegend as p,ChartLegendContent as g}from"../ui/chart.js";import{colorForIndex as k}from"./types.js";import{compactNumber as x}from"../../utils/index.js";import b from"./Seperator.js";var w=function(e){return"number"==typeof e&&!Number.isNaN(e)},A=function(e){switch(e){case"linear":return"linear";case"step":return"stepAfter";default:return"monotone"}};function C(C){var L,S,T,F,E,K,N,I,P,W=C.series,j=C.hiddenKeys,D=C.onToggleSeries,M=C.xAxis,R=C.yAxis,z=C.tooltip,_=C.legend,B=C.style,H=C.syncId,O=C.reference;C.scrollable;var G=C.onPointClick,V=null!==(L=null==B?void 0:B.chartHeight)&&void 0!==L?L:300,Z=null!==(S=null==B?void 0:B.gridColor)&&void 0!==S?S:"#eef0f4",q=null!==(T=null==B?void 0:B.axisColor)&&void 0!==T?T:"#d7dbe3",J=null!==(F=null==B?void 0:B.axisLabelColor)&&void 0!==F?F:"#6b7280",Q=null!==(E=null==B?void 0:B.tickColor)&&void 0!==E?E:"#9ca3af",U=null!==(K=null==B?void 0:B.fontFamily)&&void 0!==K?K:"Inter, system-ui, -apple-system, sans-serif",X=o(null),Y=X[0],$=X[1],ee=r(function(){var n,l,i;if(null===(n=null==M?void 0:M.categories)||void 0===n?void 0:n.length)return{categories:M.categories,xType:null!==(l=M.type)&&void 0!==l?l:"category"};var o=new Set,r=[];W.forEach(function(e){return e.data.forEach(function(e){o.has(e.x)||(o.add(e.x),r.push(e.x))})});var t=r.every(w),a=null!==(i=null==M?void 0:M.type)&&void 0!==i?i:t?"number":"category";return{categories:"number"===a?e([],r,!0).sort(function(e,n){return Number(e)-Number(n)}):r,xType:a}},[W,null==M?void 0:M.categories,null==M?void 0:M.type]),ne=ee.categories,le=ee.xType,ie=r(function(){var e=new Map;return W.forEach(function(n){var l=new Map;n.data.forEach(function(e){return l.set(e.x,e.y)}),e.set(n.key,l)}),ne.map(function(n){var l={x:n};return W.forEach(function(i){var o,r=null===(o=e.get(i.key))||void 0===o?void 0:o.get(n);l[i.key]=null==r?null:r}),l})},[W,ne]),oe=r(function(){var e={},n=W.map(function(n,l){var i,o=null!==(i=n.color)&&void 0!==i?i:k(null==B?void 0:B.colors,l);return e[n.key]={label:n.label,color:o},{series:n,color:o,index:l}});return{chartConfig:e,resolved:n}},[W,null==B?void 0:B.colors]),re=oe.chartConfig,te=oe.resolved,ae=r(function(){var e={};return W.forEach(function(n){n.valueFormatter&&(e[n.key]=function(e,l){var i;return n.valueFormatter(e,null!==(i=null==l?void 0:l.payload)&&void 0!==i?i:{x:null==l?void 0:l.x,y:e})})}),e},[W]),ue=!1!==(null==z?void 0:z.enabled),de=(null==z?void 0:z.seriesKeys)?new Set(z.seriesKeys):null,ce=!1!==(null==_?void 0:_.show),ve="top"===(null==_?void 0:_.position)?"top":"bottom",se="start"===(null==_?void 0:_.align)?"left":"end"===(null==_?void 0:_.align)?"right":"center",fe=!1!==(null==M?void 0:M.show),he=!1!==(null==R?void 0:R.show),ye=!1!==(null==B?void 0:B.showGrid),me=!!(null==B?void 0:B.showVerticalGrid),pe=r(function(){return Math.max.apply(Math,ie.flatMap(function(e){return W.map(function(n){return Number(e[n.key])||0})}))},[ie]),ge=r(function(){return Math.ceil(1.1*pe)},[pe]),ke=[null!=(null==R?void 0:R.min)?R.min:!1!==(null==R?void 0:R.beginAtZero)?0:"auto",null!=(null==R?void 0:R.max)?R.max:ge],xe=null!==(N=null==B?void 0:B.yAxisWidth)&&void 0!==N?N:(null==R?void 0:R.label)?64:48,be={top:12,right:16,bottom:8,left:null!=(null==B?void 0:B.yAxisWidth)?0:(null==R?void 0:R.label)?16:0},we=null!==(I=null==M?void 0:M.enableScroll)&&void 0!==I&&I,Ae=null!==(P=null==M?void 0:M.minTickGap)&&void 0!==P?P:2;r(function(){if(!we||!Y||ne.length<=1)return"100%";var e=(ne.length-1)*Ae+200;return e>Y-xe-be.left-be.right?"".concat(e,"px"):"100%"},[we,Y,ne.length,Ae,xe,be]);return l(h,n({config:re,style:{height:V,fontFamily:U},ref:function(e){e&&null===Y&&$(e.clientWidth)}},{children:function(){var e,o;return i(t,n({data:ie,margin:be,syncId:H},{children:[l(a,{vertical:me,horizontal:ye,stroke:Z}),l(u,{dataKey:"x",type:"number"===le?"number":"category",hide:!fe,height:(null==M?void 0:M.label)?52:void 0,tickLine:!1,axisLine:!(null==M?void 0:M.hideLine)&&{stroke:q},tickMargin:8,interval:"preserveStartEnd",tick:{fill:Q,fontSize:11},tickFormatter:(null==M?void 0:M.formatTick)?function(e,n){return M.formatTick(e,n)}:void 0,label:(null==O?void 0:O.showReferenceAreaLabel)?function(e){return function(e){var o=e.viewBox;e.startTick,e.endTick;var r=o.x,t=o.y,a=o.width,u=1;if((null==O?void 0:O.showReferenceArea)&&null!=(null==O?void 0:O.referencePoint)&&ne.length>1){var d=ne.indexOf(O.referencePoint);-1!==d&&(u=d/(ne.length-1))}var c=100*u,v=100-c;return l("foreignObject",n({x:r,y:t+24,width:a,height:40},{children:i("div",n({className:"ellm-graph__liveLabelContainer"},{children:[(null==O?void 0:O.referenceAreaLabel)&&i("div",n({style:{flex:c,display:"flex",alignItems:"center"}},{children:[l(b,{}),l("span",n({style:{padding:"0 12px",color:"#6b7280",fontSize:"12px"}},{children:null==O?void 0:O.referenceAreaLabel})),l(b,{})]})),v>0&&i("div",n({style:{flex:v,display:"flex",alignItems:"center"}},{children:[l(b,{style:{backgroundColor:"#DC2626"}}),i("div",n({className:"ellm-graph__liveLabel"},{children:[l(b,{style:{width:"8px",height:"8px",borderRadius:"100%",backgroundColor:"#DC2626",flex:"auto"},pulse:!0}),"LIVE - ",null==O?void 0:O.referenceAreaLiveLabel]})),l(b,{style:{backgroundColor:"#DC2626"}})]}))]}))}))}(n(n({},e),{startTick:ne[0],endTick:ne[ne.length-1]}))}:(null==M?void 0:M.label)?{value:M.label,position:"insideBottom",offset:4,fill:J,fontSize:12,fontWeight:500}:void 0}),l(d,{hide:!he,domain:ke,tickLine:!1,axisLine:!1===(null==R?void 0:R.hideLine)&&{stroke:q},tickCount:null==R?void 0:R.tickCount,width:xe,tick:{fill:Q,fontSize:11},tickFormatter:(null==R?void 0:R.formatTick)?function(e,n){return R.formatTick(e,n)}:function(e){return"number"==typeof e?x(e):String(e)},label:(null==R?void 0:R.label)?{value:R.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"},fill:J,fontSize:12,fontWeight:500}:void 0}),ue&&l(y,{cursor:{stroke:q,strokeDasharray:"4 4"},content:function(e){var i,o=(null!==(i=e.payload)&&void 0!==i?i:[]).filter(function(e){var n=W.find(function(n){return n.key===e.dataKey});return!1!==(null==n?void 0:n.showInTooltip)&&!(de&&!de.has(String(e.dataKey)))});return(null==z?void 0:z.render)?z.render({x:e.label,points:o.map(function(n){var l;return{series:W.find(function(e){return e.key===n.dataKey}),value:null!==(l=n.value)&&void 0!==l?l:null,point:{x:e.label,y:n.value},color:n.color}})}):l(m,n({},e,{payload:o,hideLabel:!1===(null==z?void 0:z.showHeading),valueFormatters:ae,labelFormatter:(null==z?void 0:z.formatHeading)?function(e){return z.formatHeading(e)}:void 0}))}}),ce&&l(p,{verticalAlign:ve,content:function(e){return l(g,n({},e,{verticalAlign:ve,align:se,hiddenKeys:j,onItemClick:!1!==(null==_?void 0:_.toggle)&&D?D:void 0}))}}),(null==O?void 0:O.showReferenceArea)&&null!=(null==O?void 0:O.referencePoint)&&l(c,{x1:O.referencePoint,fill:null!==(e=O.referenceAreaFill)&&void 0!==e?e:"#2563EB1A"}),(null==O?void 0:O.showReferenceArea)&&null!=O.referencePoint&&l(v,{x:O.referencePoint,stroke:null!==(o=O.referenceLineStroke)&&void 0!==o?o:"#3B82F6",strokeDasharray:"4 4"}),te.map(function(e){var i,o,r,t,a=e.series,u=j.has(a.key),d="var(--color-".concat(a.key,")"),c=!0===a.dashed?"6 5":"string"==typeof a.dashed?a.dashed:void 0,v=!1!==a.showPoints&&{r:null!==(i=a.pointRadius)&&void 0!==i?i:3,fill:"#fff",stroke:d,strokeWidth:2},h={r:(null!==(o=a.pointRadius)&&void 0!==o?o:3)+2,onClick:G?function(e,n){var l,i;return function(e,n,l){if(G){var i=W.find(function(n){return n.key===e});i&&G({series:i,point:{x:null==n?void 0:n.x,y:null==n?void 0:n[e]},index:l})}}(a.key,null!==(l=null==n?void 0:n.payload)&&void 0!==l?l:n,null!==(i=null==n?void 0:n.index)&&void 0!==i?i:0)}:void 0},y={key:a.key,dataKey:a.key,name:a.key,type:A(a.curve),stroke:d,strokeWidth:null!==(r=a.strokeWidth)&&void 0!==r?r:2,strokeDasharray:c,connectNulls:!1,isAnimationActive:!1,hide:u,dot:v,activeDot:h};return a.area?l(s,n({},y,{fill:d,fillOpacity:null!==(t=a.areaOpacity)&&void 0!==t?t:.12})):l(f,n({},y))})]}))}()}))}export{C as default};
|
|
2
2
|
//# sourceMappingURL=LineChart.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as l,jsxs as i,Fragment as
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as l,jsxs as i,Fragment as a}from"react/jsx-runtime";import c from"react";import{ArrowUp as t,ArrowDown as r}from"lucide-react";var n=function(n){var d,s,o,m,u,v=n.title,_=n.value,p=n.subtitle,h=n.icon,f=n.loading,g=n.valuePrefix,N=n.valueColor,y=n.delta,x=n.segments,b=n.onClick,k=n.classNames,W=n.showDelta,w=void 0===W||W,z=x&&x.length>0,C=z?x.reduce(function(e,l){return e+l.value},0):0;return l("div",e({className:"metric-card ".concat(null!==(d=null==k?void 0:k.root)&&void 0!==d?d:""),onClick:b},{children:i("div",e({className:"metric-card__content ".concat(z?"metric-card__content--has-segments":"")},{children:[i("div",e({style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",gap:"4px"}},{children:[l("div",e({className:"metric-card__title"},{children:v})),i("div",e({style:{display:"flex",alignItems:"center",gap:"12px",flexWrap:"wrap"}},{children:[l("div",e({className:"metric-card__value ".concat(null!==(s=null==k?void 0:k.value)&&void 0!==s?s:""),style:{color:null!=N?N:null==g?void 0:g.color}},{children:f?l("span",{className:"metric-card__value-skeleton"}):i(a,{children:[(null==g?void 0:g.icon)&&(c.isValidElement(g.icon)?c.cloneElement(g.icon,{size:20,strokeWidth:2.5}):g.icon),_]})})),!f&&y&&"0%"!==y.label&&w&&i("div",e({className:"metric-card__delta",style:{color:y.color}},{children:["flat"!==y.direction&&("up"===y.direction?l(t,{size:14,strokeWidth:3,"aria-hidden":!0}):l(r,{size:14,strokeWidth:3,"aria-hidden":!0})),l("span",{children:y.label}),y.caption&&l("span",e({className:"metric-card__delta-caption"},{children:y.caption}))]}))]})),p&&l("div",e({className:"metric-card__subtitle ".concat(null!==(o=null==k?void 0:k.subtitle)&&void 0!==o?o:"")},{children:p}))]})),z&&i("div",e({className:"".concat(null!==(m=null==k?void 0:k.segments)&&void 0!==m?m:""),style:{display:"flex",flexDirection:"column",flex:1,margin:0}},{children:[l("div",e({className:"metric-card__stats",style:{margin:"10px"}},{children:x.map(function(a,c){return i("div",e({className:"metric-card__stat"},{children:[i("div",e({className:"metric-card__stat-label"},{children:[l("span",{className:"metric-card__dot",style:{background:a.color}}),a.label]})),l("div",e({className:"metric-card__stat-value"},{children:void 0!==a.displayValue?a.displayValue:"".concat(a.value).concat(a.percentage?"%":"")})),c<x.length-1&&l("div",{className:"metric-card__divider"})]}),a.label)})})),l("div",e({className:"metric-card__progress",style:{marginTop:"4px"}},{children:x.map(function(e){return l("div",{className:"metric-card__progress-segment",style:{width:C>0?"".concat(e.value/C*100,"%"):"0%",background:e.color}},e.label)})}))]})),h&&l("div",e({className:"metric-card__icon-container ".concat(null!==(u=null==k?void 0:k.icon)&&void 0!==u?u:"")},{children:c.isValidElement(h)?c.cloneElement(h,{size:25,strokeWidth:2.5}):h}))]}))}))};export{n as default};
|
|
2
2
|
//# sourceMappingURL=MetricCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as l,__assign as e}from"../../../_virtual/_tslib.js";import{jsx as a,jsxs as
|
|
1
|
+
import{__rest as l,__assign as e}from"../../../_virtual/_tslib.js";import{jsx as a,jsxs as n,Fragment as o}from"react/jsx-runtime";import*as t from"react";import*as r from"recharts";import{cn as i}from"./utils.js";var c=t.createContext(null);function d(){var l=t.useContext(c);if(!l)throw new Error("useChart must be used within a <ChartContainer />");return l}var u=t.forwardRef(function(o,d){var u=o.id,s=o.className,v=o.children,h=o.config,p=o.scrollable,f=void 0!==p&&p,_=l(o,["id","className","children","config","scrollable"]),g=t.useId(),y="chart-".concat((u||g).replace(/:/g,""));return a(c.Provider,e({value:{config:h}},{children:a("div",e({className:"".concat(f&&"chart-scroll")},{children:n("div",e({"data-chart":y,ref:d,className:i("ellm-chart ".concat(f&&"chart-inner"),s)},_,{children:[a(m,{id:y,config:h}),a(r.ResponsiveContainer,e({},f?{width:2600}:{},{children:v}))]}))}))}))});u.displayName="ChartContainer";var m=function(l){var e=l.id,n=l.config,o=Object.entries(n).filter(function(l){return l[1].color});if(!o.length)return null;var t=o.map(function(l){var e=l[0],a=l[1];return" --color-".concat(e,": ").concat(a.color,";")}).join("\n");return a("style",{dangerouslySetInnerHTML:{__html:"[data-chart=".concat(e,"] {\n").concat(t,"\n}")}})},s=r.Tooltip,v=t.forwardRef(function(l,r){var c=l.active,u=l.payload,m=l.className,s=l.indicator,v=void 0===s?"dot":s,h=l.hideLabel,p=l.hideIndicator,_=l.label,g=l.labelFormatter,y=l.formatter,b=l.valueFormatters,N=l.color,C=l.nameKey,K=l.labelKey,w=d().config,j=t.useMemo(function(){var l,n;if(h||!(null==u?void 0:u.length))return null;var o=u[0],t="".concat(K||(null==o?void 0:o.dataKey)||(null==o?void 0:o.name)||"value"),r=f(w,o,t),i=K||"string"!=typeof _?null==r?void 0:r.label:null!==(n=null===(l=w[_])||void 0===l?void 0:l.label)&&void 0!==n?n:_;return g?a("div",e({className:"ellm-chart__tooltip-label"},{children:g(i,u)})):null==i?null:a("div",e({className:"ellm-chart__tooltip-label"},{children:i}))},[_,g,u,h,w,K]);if(!c||!(null==u?void 0:u.length))return null;var x=1===u.length&&"dot"!==v;return n("div",e({ref:r,className:i("ellm-chart__tooltip",m)},{children:[x?null:j,a("div",e({className:"ellm-chart__tooltip-items"},{children:u.map(function(l,t){var r,c,d,u,m="".concat(C||l.name||l.dataKey||"value"),s=f(w,l,m),h=N||(null===(r=l.payload)||void 0===r?void 0:r.fill)||l.color;return a("div",e({className:"ellm-chart__tooltip-item"},{children:y&&void 0!==(null==l?void 0:l.value)&&l.name?y(l.value,l.name,l,t,l.payload):n(o,{children:[(null==s?void 0:s.icon)?a(s.icon,{}):!p&&a("span",{className:i("ellm-chart__indicator","ellm-chart__indicator--".concat(v)),style:{"--indicator-color":h}}),n("div",e({className:i("ellm-chart__tooltip-row",x&&"ellm-chart__tooltip-row--nested")},{children:[n("div",e({className:"ellm-chart__tooltip-grid"},{children:[x?j:null,a("span",e({className:"ellm-chart__tooltip-name"},{children:null!==(c=null==s?void 0:s.label)&&void 0!==c?c:l.name}))]})),void 0!==l.value&&a("span",e({className:"ellm-chart__tooltip-value"},{children:(null==b?void 0:b[String(null!==(d=l.dataKey)&&void 0!==d?d:"")])?b[String(l.dataKey)](l.value,l):"number"==typeof l.value?l.value.toLocaleString():l.value}))]}))]})}),String(null!==(u=l.dataKey)&&void 0!==u?u:t))})}))]}))});v.displayName="ChartTooltipContent";var h=r.Legend,p=t.forwardRef(function(l,o){var t=l.className,r=l.hideIcon,c=l.payload,u=l.verticalAlign,m=void 0===u?"bottom":u,s=l.align,v=void 0===s?"center":s,h=l.nameKey,p=l.onItemClick,_=l.hiddenKeys,g=d().config;return(null==c?void 0:c.length)?a("div",e({ref:o,className:i("ellm-graph__legend","top"===m?"ellm-chart__legend--top":"ellm-chart__legend--bottom","left"===v?"ellm-chart__legend--start":"right"===v?"ellm-chart__legend--end":"ellm-chart__legend--center",t)},{children:c.map(function(l,o){var t,c,d="".concat(h||l.dataKey||"value"),u=f(g,l,d),m=null==_?void 0:_.has(d);return n("label",e({className:i("ellm-graph__legend-item",m&&"ellm-graph__legend-item--off"),style:{cursor:p?"pointer":"default","--checkbox-color":l.color,color:l.color}},{children:[(null==u?void 0:u.icon)&&!r?a(u.icon,{}):a("input",{type:"checkbox",className:"ellm-graph__legend-checkbox",checked:!m,onChange:p?function(){return p(d)}:void 0,disabled:!p,style:{borderColor:l.color,accentColor:l.color}}),null!==(t=null==u?void 0:u.label)&&void 0!==t?t:l.value]}),String(null!==(c=l.value)&&void 0!==c?c:o))})})):null});function f(l,e,a){if("object"==typeof e&&null!==e){var n="payload"in e&&"object"==typeof e.payload&&null!==e.payload?e.payload:void 0,o=a;return a in e&&"string"==typeof e[a]?o=e[a]:n&&a in n&&"string"==typeof n[a]&&(o=n[a]),o in l?l[o]:l[a]}}p.displayName="ChartLegendContent";export{u as ChartContainer,h as ChartLegend,p as ChartLegendContent,s as ChartTooltip,v as ChartTooltipContent,d as useChart};
|
|
2
2
|
//# sourceMappingURL=chart.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../_virtual/_tslib.js"),n=require("react/jsx-runtime"),r=require("react"),t=require("./components/ExecutiveDashboard.js"),l=require("./components/DashboardDateFilter/datePreset.js"),a=require("./components/DashboardSkeleton/DashboardSkeleton.js"),o=require("./api/dashboardApi.js"),u=require("./hooks/useVisibilityPolling.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(r),d=1e4;function c(i){var c,v,f=this,g=i.baseUrl,b=void 0===g?"https://dev.appmod.ai":g,p=i.configId,h=i.graphEmptyState,_=i.tables,E=i.tableLayout,m=i.sectionOrder,D=i.hiddenSections,S=i.fetchUIConfig,y=i.fetchUIVersionFromRedis,C=i.fetchDashboardData,R=i.fetchTableData,w=i.initialStartDate,I=i.initialEndDate,x=i.onDateChange,j=i.onFiltersApplied,F=i.renderLoading,A=i.renderError,P=i.pollingConfigProp,k=null!=S?S:o.fetchUIConfig,M=null!=y?y:o.fetchCurrentConfigUIVersionFromRedis,T=null!=C?C:o.fetchDashboardData,O=null!=R?R:o.fetchTableData,U=r.useState(null),q=U[0],L=U[1],V=r.useState(null),N=V[0],K=V[1],B=r.useState(!0),z=B[0],G=B[1],H=r.useState(!0),W=H[0],J=H[1],Q=r.useState(null),X=Q[0],Y=Q[1],Z=r.useState(!1),$=Z[0],ee=Z[1],ne=r.useState({}),re=ne[0],te=ne[1],le=r.useState({}),ae=le[0],oe=le[1],ue=r.useState({}),ie=ue[0],se=ue[1],de=r.useState(null),ce=de[0],ve=de[1],fe=s.default.useRef(null),ge=s.default.useRef(!1),be=r.useRef(null),pe=r.useRef(null),he=r.useRef({}),_e=r.useRef(null),Ee=r.useRef(new Set),me=r.useRef(!1),De=r.useRef(d),Se=r.useRef(-1),ye=r.useRef(!0),Ce=r.useState(null!==(v=null===(c=null==q?void 0:q.data)||void 0===c?void 0:c.dateFilters.defaultPreset)&&void 0!==v?v:"today"),Re=Ce[0],we=Ce[1],Ie=r.useState(!1),xe=Ie[0],je=Ie[1],Fe=r.useState({}),Ae=Fe[0],Pe=Fe[1],ke=r.useMemo(function(){var e,n;if(q){var r=q.data.dateFilters;return(null==r?void 0:r.pollingEnabled)&&(De.current=null!==(e=r.pollingInterval)&&void 0!==e?e:d),{pollingEnabled:null!==(n=Boolean("yes"===(null==r?void 0:r.pollingEnabled)))&&void 0!==n&&n,pollingInterval:d,maxErrorInterval:5e4,backoffMultiplier:1.5}}},[q]),Me=r.useMemo(function(){return null!=P?P:ke},[P,ke]),Te=function(e){var n=Object.values(l.DATE_PRESETS).find(function(n){return n.value===e});return n&&"getRange"in n?n.getRange():null},Oe=r.useCallback(function(){return e.__awaiter(f,void 0,void 0,function(){var n,r,t,l,a,o,u,i,s,d,c,v,f,g;return e.__generator(this,function(e){switch(e.label){case 0:G(!0),Y(null),null===(u=be.current)||void 0===u||u.abort(),n=new AbortController,be.current=n,e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,k({configId:p,baseUrl:b},n.signal)];case 2:return r=e.sent(),L(r),t={},null===(d=null===(s=null===(i=null==r?void 0:r.data)||void 0===i?void 0:i.graphBuilder)||void 0===s?void 0:s.tiers)||void 0===d||d.forEach(function(e){e.plotOptions.length>0&&(t[e.key]=e.plotOptions[0].value)}),te(t),l={},null===(v=null===(c=null==r?void 0:r.data)||void 0===c?void 0:c.sidebarFilters)||void 0===v||v.forEach(function(e){l[e.schemaFilterName]="Multi select"===e.type?[]:""}),oe(l),se(l),ge.current||(a=w&&I?{startDate:w,endDate:I}:Te(null===(g=null===(f=null==r?void 0:r.data)||void 0===f?void 0:f.dateFilters)||void 0===g?void 0:g.defaultPreset))&&(ge.current=!0,fe.current={start:a.startDate.getTime(),end:a.endDate.getTime()},ve({start:a.startDate,end:a.endDate})),[3,5];case 3:return"AbortError"===(null==(o=e.sent())?void 0:o.name)?[2]:(Y(o),[3,5]);case 4:return be.current===n&&G(!1),[7];case 5:return[2]}})})},[p,b,k,w,I]),Ue=r.useCallback(function(){return e.__awaiter(f,void 0,void 0,function(){var n,r,t,l,a;return e.__generator(this,function(e){switch(e.label){case 0:if(me.current)return[3,7];me.current=!0,console.log("----- POLLING API ----"),null===(a=_e.current)||void 0===a||a.abort(),n=new AbortController,_e.current=n,e.label=1;case 1:return e.trys.push([1,5,6,7]),[4,M({configId:p,baseUrl:b},n.signal)];case 2:return(null==(r=e.sent())?void 0:r.timestamp)&&parseInt(null==r?void 0:r.timestamp)>Se.current?(t=Te(Re),console.log("loadData ranges: ",{selectedPreset:Re,currentRange:t}),[4,qe(t).then(function(){return Se.current=parseInt(r.timestamp)})]):[3,4];case 3:e.sent(),e.label=4;case 4:return ye.current=!1,[3,7];case 5:return"AbortError"===(null==(l=e.sent())?void 0:l.name)?[2]:(console.error("Something went wrong while fetching version from Redis"),[3,7]);case 6:return me.current=!1,[7];case 7:return[2]}})})},[Re,M]);u.useVisibilityPolling((null==ke?void 0:ke.pollingEnabled)&&xe,De.current,Ue,[Me,xe,Re,Ue]),r.useEffect(function(){return Oe(),function(){var e;return null===(e=be.current)||void 0===e?void 0:e.abort()}},[Oe]),r.useEffect(function(){if(ke&&ke.pollingEnabled){var e=ke.pollingInterval;"number"==typeof e&&!isNaN(e)&&e>0&&(De.current=e)}},[ke]);var qe=r.useCallback(function(n){return e.__awaiter(f,void 0,void 0,function(){var r,t,l,a,o,u,i,s;return e.__generator(this,function(e){switch(e.label){case 0:if(!ce)return[2];null===(o=pe.current)||void 0===o||o.abort(),r=new AbortController,pe.current=r,ye.current&&J(!0),Y(null),console.log("loadData ranges: ",{selectedPreset:Re,currentRange:n}),e.label=1;case 1:return e.trys.push([1,3,4,5]),t={startDate:(null==ke?void 0:ke.pollingEnabled)&&n&&"custom"!==Re?n.startDate:ce.start,endDate:(null==ke?void 0:ke.pollingEnabled)&&n&&"custom"!==Re?n.endDate:ce.end,filters:ie},[4,T({configId:p,baseUrl:b},t,r.signal)];case 2:return l=e.sent(),K(l),(null==ke?void 0:ke.pollingEnabled)||Pe({}),De.current&&(null==Me?void 0:Me.pollingEnabled)&&(null==ke?void 0:ke.pollingInterval)&&(De.current=null!==(u=null==Me?void 0:Me.pollingInterval)&&void 0!==u?u:d,ye.current=!1),[3,5];case 3:return"AbortError"===(null==(a=e.sent())?void 0:a.name)?[2]:(Y(a),De.current&&(null==Me?void 0:Me.maxErrorInterval)&&(De.current=Math.min(De.current*(null!==(i=null==ke?void 0:ke.backoffMultiplier)&&void 0!==i?i:1.5),null!==(s=null==ke?void 0:ke.maxErrorInterval)&&void 0!==s?s:5e4)),[3,5]);case 4:return pe.current===r&&J(!1),[7];case 5:return[2]}})})},[p,b,ce,ie,T]),Le=r.useCallback(function(n,r){return e.__awaiter(f,void 0,void 0,function(){var t,l,a,o,u,i,s;return e.__generator(this,function(d){switch(d.label){case 0:if(!ce||!Ee.current.has(n)||he.current[n])return[2];t=new AbortController,he.current[n]=t,l=function(){return!Ee.current.has(n)||t.signal.aborted||he.current[n]!==t},Pe(function(r){var t,l,a,o,u,i,s,d;return e.__assign(e.__assign({},r),((t={})[n]={rows:null!==(a=null===(l=r[n])||void 0===l?void 0:l.rows)&&void 0!==a?a:[],cursor:null===(o=r[n])||void 0===o?void 0:o.cursor,hasMore:null!==(i=null===(u=r[n])||void 0===u?void 0:u.hasMore)&&void 0!==i&&i,loading:!0,loaded:null!==(d=null===(s=r[n])||void 0===s?void 0:s.loaded)&&void 0!==d&&d},t))}),d.label=1;case 1:return d.trys.push([1,3,4,5]),[4,O({configId:p,baseUrl:b},e.__assign({startDate:ce.start,endDate:ce.end,filters:ie,tableKey:n,pageSize:20},r?{cursor:r}:{}),t.signal)];case 2:return a=d.sent(),o=null!==(s=null===(i=a.table)||void 0===i?void 0:i[n])&&void 0!==s?s:[],l()?[2]:(Pe(function(r){var t,l,u=r[n];return u?e.__assign(e.__assign({},r),((t={})[n]={rows:e.__spreadArray(e.__spreadArray([],u.rows,!0),o,!0),cursor:null!==(l=a.nextCursor)&&void 0!==l?l:void 0,hasMore:a.hasNext,loading:!1,loaded:!0},t)):r}),[3,5]);case 3:return"AbortError"===(null==(u=d.sent())?void 0:u.name)||l()?[2]:(Pe(function(r){var t;return r[n]?e.__assign(e.__assign({},r),((t={})[n]=e.__assign(e.__assign({},r[n]),{loading:!1,hasMore:!1}),t)):r}),[3,5]);case 4:return he.current[n]===t&&delete he.current[n],[7];case 5:return[2]}})})},[p,b,ce,ie,O]),Ve=r.useCallback(function(n,r){var t;if(!r)return Ee.current.delete(n),null===(t=he.current[n])||void 0===t||t.abort(),delete he.current[n],void Pe(function(r){var t=r,l=n;return t[l],e.__rest(t,["symbol"==typeof l?l:l+""])});Ee.current.add(n),Le(n)},[Le]),Ne=r.useCallback(function(e){var n=Ae[e];(null==n?void 0:n.hasMore)&&!n.loading&&n.cursor&&Le(e,n.cursor)},[Le,Ae]);r.useEffect(function(){return function(){Ee.current.clear(),Object.values(he.current).forEach(function(e){return e.abort()})}},[]),r.useEffect(function(){return qe(),function(){var e;return null===(e=pe.current)||void 0===e?void 0:e.abort()}},[qe]),r.useEffect(function(){return function(){var e;return null===(e=_e.current)||void 0===e?void 0:e.abort()}},[]),r.useEffect(function(){!function(e){var n=Object.values(l.DATE_PRESETS).find(function(n){return n.value===e}),r=!(!n||!("pollingEnabled"in n)||!1===n.pollingEnabled);je(r)}(Re)},[Re]);var Ke=r.useCallback(function(e){if((null==e?void 0:e.startDate)&&(null==e?void 0:e.endDate)){var n=e.startDate.getTime(),r=e.endDate.getTime();fe.current&&fe.current.start===n&&fe.current.end===r||(fe.current={start:n,end:r},ve({start:e.startDate,end:e.endDate}))}null==x||x(e),J(!0)},[x]),Be=z||W&&!N;return X?A?n.jsx(n.Fragment,{children:A(X,Oe)}):n.jsxs("div",e.__assign({style:{padding:24,color:"#b91c1c"}},{children:["Failed to load dashboard: ",X.message,n.jsx("button",e.__assign({onClick:Oe,style:{marginLeft:12}},{children:"Retry"}))]})):!Be&&q&&N&&ce?(console.log("pollingEnabled: ",null==ke?void 0:ke.pollingEnabled,xe),n.jsx(t.ExecutiveDashboard,{uiConfig:q,data:N,dataLoading:W,startDate:ce.start,endDate:ce.end,onDateChange:Ke,onRefresh:function(){qe(),J(!0)},selectedKpis:re,onKpiChange:function(n,r){te(function(t){var l;return e.__assign(e.__assign({},t),((l={})[n]=r,l))})},sidebarVisible:$,onSidebarShow:function(){return ee(!0)},onSidebarHide:function(){return ee(!1)},filterValues:ae,onFilterChange:function(n,r){oe(function(t){var l;return e.__assign(e.__assign({},t),((l={})[n]=r,l))})},onFilterReset:function(){if(q){var e={};q.data.sidebarFilters.forEach(function(n){e[n.id]="multiSelect"===n.type?[]:""}),oe(e)}},onFilterApply:function(){se(ae),ee(!1),null==j||j(ae)},appliedFilters:ie,graphEmptyState:h,tables:_,tableLayout:E,sectionOrder:m,hiddenSections:D,tablePages:Ae,onTableExpand:Ve,onTableLoadMore:Ne,pollingEnabled:(null==ke?void 0:ke.pollingEnabled)&&xe,selectedPreset:Re,handlePresetChange:function(e){we(e)}})):F?n.jsx(n.Fragment,{children:F()}):n.jsx(a.DashboardSkeleton,{})}exports.ExecutiveDashboardWrapper=c,exports.default=c;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../_virtual/_tslib.js"),n=require("react/jsx-runtime"),t=require("react"),r=require("./components/ExecutiveDashboard.js"),l=require("./components/DashboardDateFilter/datePreset.js"),a=require("./components/DashboardSkeleton/DashboardSkeleton.js"),o=require("./api/dashboardApi.js"),i=require("./hooks/useVisibilityPolling.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=u(t),d=1e4;function c(u){var c,v,f,g=this,b=u.baseUrl,p=void 0===b?"https://dev.appmod.ai":b,h=u.configId,_=u.graphEmptyState,E=u.tables,m=u.tableLayout,D=u.sectionOrder,S=u.hiddenSections,C=u.fetchUIConfig,y=u.fetchUIVersionFromRedis,R=u.fetchDashboardData,w=u.fetchTableData,I=u.initialStartDate,F=u.initialEndDate,x=u.onDateChange,P=u.onFiltersApplied,j=u.renderLoading,A=u.renderError,k=u.pollingConfigProp,M=u.metricCardConfig,T=null!=C?C:o.fetchUIConfig,O=null!=y?y:o.fetchCurrentConfigUIVersionFromRedis,U=null!=R?R:o.fetchDashboardData,q=null!=w?w:o.fetchTableData,L=t.useState(null),V=L[0],N=L[1],K=t.useState(null),B=K[0],z=K[1],G=t.useState(!0),H=G[0],W=G[1],J=t.useState(!0),Q=J[0],X=J[1],Y=t.useState(null),Z=Y[0],$=Y[1],ee=t.useState(!1),ne=ee[0],te=ee[1],re=t.useState({}),le=re[0],ae=re[1],oe=t.useState({}),ie=oe[0],ue=oe[1],se=t.useState({}),de=se[0],ce=se[1],ve=t.useState(null),fe=ve[0],ge=ve[1],be=s.default.useRef(null),pe=s.default.useRef(!1),he=t.useRef(null),_e=t.useRef(null),Ee=t.useRef({}),me=t.useRef(null),De=t.useRef(new Set),Se=t.useRef(!1),Ce=t.useRef(d),ye=t.useRef(-1),Re=t.useRef(!0),we=t.useState(null!==(v=null===(c=null==V?void 0:V.data)||void 0===c?void 0:c.dateFilters.defaultPreset)&&void 0!==v?v:"today"),Ie=we[0],Fe=we[1],xe=t.useState(!1),Pe=xe[0],je=xe[1],Ae=t.useState({}),ke=Ae[0],Me=Ae[1],Te=t.useMemo(function(){var e,n;if(V){var t=V.data.dateFilters;return(null==t?void 0:t.pollingEnabled)&&(Ce.current=null!==(e=t.pollingInterval)&&void 0!==e?e:d),{pollingEnabled:null!==(n=Boolean("yes"===(null==t?void 0:t.pollingEnabled)))&&void 0!==n&&n,pollingInterval:d,maxErrorInterval:5e4,backoffMultiplier:1.5}}},[V]),Oe=t.useMemo(function(){return null!=k?k:Te},[k,Te]),Ue=function(e){var n=Object.values(l.DATE_PRESETS).find(function(n){return n.value===e});return n&&"getRange"in n?n.getRange():null},qe=t.useCallback(function(){return e.__awaiter(g,void 0,void 0,function(){var n,t,r,l,a,o,i,u,s,d,c,v,f,g;return e.__generator(this,function(e){switch(e.label){case 0:W(!0),$(null),null===(i=he.current)||void 0===i||i.abort(),n=new AbortController,he.current=n,e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,T({configId:h,baseUrl:p},n.signal)];case 2:return t=e.sent(),N(t),r={},null===(d=null===(s=null===(u=null==t?void 0:t.data)||void 0===u?void 0:u.graphBuilder)||void 0===s?void 0:s.tiers)||void 0===d||d.forEach(function(e){e.plotOptions.length>0&&(r[e.key]=e.plotOptions[0].value)}),ae(r),l={},null===(v=null===(c=null==t?void 0:t.data)||void 0===c?void 0:c.sidebarFilters)||void 0===v||v.forEach(function(e){l[e.schemaFilterName]="Multi select"===e.type?[]:""}),ue(l),ce(l),pe.current||(a=I&&F?{startDate:I,endDate:F}:Ue(null===(g=null===(f=null==t?void 0:t.data)||void 0===f?void 0:f.dateFilters)||void 0===g?void 0:g.defaultPreset))&&(pe.current=!0,be.current={start:a.startDate.getTime(),end:a.endDate.getTime()},ge({start:a.startDate,end:a.endDate})),[3,5];case 3:return"AbortError"===(null==(o=e.sent())?void 0:o.name)?[2]:($(o),[3,5]);case 4:return he.current===n&&W(!1),[7];case 5:return[2]}})})},[h,p,T,I,F]),Le=t.useCallback(function(){return e.__awaiter(g,void 0,void 0,function(){var n,t,r,l,a;return e.__generator(this,function(e){switch(e.label){case 0:if(Se.current)return[3,7];Se.current=!0,console.log("----- POLLING API ----"),null===(a=me.current)||void 0===a||a.abort(),n=new AbortController,me.current=n,e.label=1;case 1:return e.trys.push([1,5,6,7]),[4,O({configId:h,baseUrl:p},n.signal)];case 2:return(null==(t=e.sent())?void 0:t.timestamp)&&parseInt(null==t?void 0:t.timestamp)>ye.current?(r=Ue(Ie),"custom"===Ie&&fe&&(r={startDate:null==fe?void 0:fe.start,endDate:null==fe?void 0:fe.end}),console.log("loadData ranges: ",{selectedPreset:Ie,currentRange:r}),[4,Ve(r).then(function(){return ye.current=parseInt(t.timestamp)})]):[3,4];case 3:e.sent(),e.label=4;case 4:return Re.current=!1,[3,7];case 5:return"AbortError"===(null==(l=e.sent())?void 0:l.name)?[2]:(console.error("Something went wrong while fetching version from Redis"),[3,7]);case 6:return Se.current=!1,[7];case 7:return[2]}})})},[Ie,fe,O]);i.useVisibilityPolling((null==Te?void 0:Te.pollingEnabled)&&Pe,Ce.current,Le,[Oe,Pe,Le]),t.useEffect(function(){return qe(),function(){var e;return null===(e=he.current)||void 0===e?void 0:e.abort()}},[qe]),t.useEffect(function(){if(Te&&Te.pollingEnabled){var e=Te.pollingInterval;"number"==typeof e&&!isNaN(e)&&e>0&&(Ce.current=e)}},[Te]);var Ve=t.useCallback(function(n){return e.__awaiter(g,void 0,void 0,function(){var t,r,l,a,o,i,u,s;return e.__generator(this,function(e){switch(e.label){case 0:if(!fe)return[2];null===(o=_e.current)||void 0===o||o.abort(),t=new AbortController,_e.current=t,Re.current&&X(!0),$(null),console.log("loadData ranges: ",{selectedPreset:Ie,currentRange:n,dateRange:fe}),e.label=1;case 1:return e.trys.push([1,3,4,5]),r={startDate:(null==Te?void 0:Te.pollingEnabled)&&n&&"custom"!==Ie?n.startDate:fe.start,endDate:(null==Te?void 0:Te.pollingEnabled)&&n&&"custom"!==Ie?n.endDate:fe.end,filters:de},[4,U({configId:h,baseUrl:p},r,t.signal)];case 2:return l=e.sent(),z(l),(null==Te?void 0:Te.pollingEnabled)||Me({}),Ce.current&&(null==Oe?void 0:Oe.pollingEnabled)&&(null==Te?void 0:Te.pollingInterval)&&(Ce.current=null!==(i=null==Oe?void 0:Oe.pollingInterval)&&void 0!==i?i:d,Re.current=!1),[3,5];case 3:return"AbortError"===(null==(a=e.sent())?void 0:a.name)?[2]:($(a),Ce.current&&(null==Oe?void 0:Oe.maxErrorInterval)&&(Ce.current=Math.min(Ce.current*(null!==(u=null==Te?void 0:Te.backoffMultiplier)&&void 0!==u?u:1.5),null!==(s=null==Te?void 0:Te.maxErrorInterval)&&void 0!==s?s:5e4)),[3,5]);case 4:return _e.current===t&&X(!1),[7];case 5:return[2]}})})},[h,p,fe,de,U]),Ne=t.useCallback(function(n,t){return e.__awaiter(g,void 0,void 0,function(){var r,l,a,o,i,u,s;return e.__generator(this,function(d){switch(d.label){case 0:if(!fe||!De.current.has(n)||Ee.current[n])return[2];r=new AbortController,Ee.current[n]=r,l=function(){return!De.current.has(n)||r.signal.aborted||Ee.current[n]!==r},Me(function(t){var r,l,a,o,i,u,s,d;return e.__assign(e.__assign({},t),((r={})[n]={rows:null!==(a=null===(l=t[n])||void 0===l?void 0:l.rows)&&void 0!==a?a:[],cursor:null===(o=t[n])||void 0===o?void 0:o.cursor,hasMore:null!==(u=null===(i=t[n])||void 0===i?void 0:i.hasMore)&&void 0!==u&&u,loading:!0,loaded:null!==(d=null===(s=t[n])||void 0===s?void 0:s.loaded)&&void 0!==d&&d},r))}),d.label=1;case 1:return d.trys.push([1,3,4,5]),[4,q({configId:h,baseUrl:p},e.__assign({startDate:fe.start,endDate:fe.end,filters:de,tableKey:n,pageSize:20},t?{cursor:t}:{}),r.signal)];case 2:return a=d.sent(),o=null!==(s=null===(u=a.table)||void 0===u?void 0:u[n])&&void 0!==s?s:[],l()?[2]:(Me(function(t){var r,l,i=t[n];return i?e.__assign(e.__assign({},t),((r={})[n]={rows:e.__spreadArray(e.__spreadArray([],i.rows,!0),o,!0),cursor:null!==(l=a.nextCursor)&&void 0!==l?l:void 0,hasMore:a.hasNext,loading:!1,loaded:!0},r)):t}),[3,5]);case 3:return"AbortError"===(null==(i=d.sent())?void 0:i.name)||l()?[2]:(Me(function(t){var r;return t[n]?e.__assign(e.__assign({},t),((r={})[n]=e.__assign(e.__assign({},t[n]),{loading:!1,hasMore:!1}),r)):t}),[3,5]);case 4:return Ee.current[n]===r&&delete Ee.current[n],[7];case 5:return[2]}})})},[h,p,fe,de,q]),Ke=t.useCallback(function(n,t){var r;if(!t)return De.current.delete(n),null===(r=Ee.current[n])||void 0===r||r.abort(),delete Ee.current[n],void Me(function(t){var r=t,l=n;return r[l],e.__rest(r,["symbol"==typeof l?l:l+""])});De.current.add(n),Ne(n)},[Ne]),Be=t.useCallback(function(e){var n=ke[e];(null==n?void 0:n.hasMore)&&!n.loading&&n.cursor&&Ne(e,n.cursor)},[Ne,ke]);t.useEffect(function(){return function(){De.current.clear(),Object.values(Ee.current).forEach(function(e){return e.abort()})}},[]),t.useEffect(function(){return Ve(),function(){var e;return null===(e=_e.current)||void 0===e?void 0:e.abort()}},[Ve]),t.useEffect(function(){return function(){var e;return null===(e=me.current)||void 0===e?void 0:e.abort()}},[]),t.useEffect(function(){!function(e){var n=Object.values(l.DATE_PRESETS).find(function(n){return n.value===e}),t=!(!n||!("pollingEnabled"in n)||!1===n.pollingEnabled);je(t)}(Ie)},[Ie]),t.useEffect(function(){var e,n;(null===(e=null==V?void 0:V.data)||void 0===e?void 0:e.dateFilters.defaultPreset)&&Fe(null===(n=null==V?void 0:V.data)||void 0===n?void 0:n.dateFilters.defaultPreset)},[null===(f=null==V?void 0:V.data)||void 0===f?void 0:f.dateFilters.defaultPreset]);var ze=t.useCallback(function(e){if((null==e?void 0:e.startDate)&&(null==e?void 0:e.endDate)){var n=e.startDate.getTime(),t=e.endDate.getTime();be.current&&be.current.start===n&&be.current.end===t||(be.current={start:n,end:t},ge({start:e.startDate,end:e.endDate}))}null==x||x(e),X(!0)},[x]),Ge=H||Q&&!B;return Z?A?n.jsx(n.Fragment,{children:A(Z,qe)}):n.jsxs("div",e.__assign({style:{padding:24,color:"#b91c1c"}},{children:["Failed to load dashboard: ",Z.message,n.jsx("button",e.__assign({onClick:qe,style:{marginLeft:12}},{children:"Retry"}))]})):!Ge&&V&&B&&fe?(console.log("pollingEnabled: ",null==Te?void 0:Te.pollingEnabled,Pe),n.jsx(r.ExecutiveDashboard,{uiConfig:V,data:B,dataLoading:Q,startDate:fe.start,endDate:fe.end,onDateChange:ze,onRefresh:function(){Ve(),X(!0)},selectedKpis:le,onKpiChange:function(n,t){ae(function(r){var l;return e.__assign(e.__assign({},r),((l={})[n]=t,l))})},sidebarVisible:ne,onSidebarShow:function(){return te(!0)},onSidebarHide:function(){return te(!1)},filterValues:ie,onFilterChange:function(n,t){ue(function(r){var l;return e.__assign(e.__assign({},r),((l={})[n]=t,l))})},onFilterReset:function(){if(V){var e={};V.data.sidebarFilters.forEach(function(n){e[n.id]="multiSelect"===n.type?[]:""}),ue(e)}},onFilterApply:function(){ce(ie),te(!1),null==P||P(ie)},appliedFilters:de,graphEmptyState:_,tables:E,tableLayout:m,sectionOrder:D,hiddenSections:S,tablePages:ke,onTableExpand:Ke,onTableLoadMore:Be,pollingEnabled:(null==Te?void 0:Te.pollingEnabled)&&Pe,selectedPreset:Ie,handlePresetChange:function(e){Fe(e)},metricCardConfig:M})):j?n.jsx(n.Fragment,{children:j()}):n.jsx(a.DashboardSkeleton,{})}exports.ExecutiveDashboardWrapper=c,exports.default=c;
|
|
2
2
|
//# sourceMappingURL=ExecutiveDashboardWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),s=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),s=require("react"),a=require("primereact/button"),i=require("lucide-react"),n=require("../DatePickers/DateSelector.js"),l=require("./datePreset.js");exports.default=function(r){var o,u,d,c,v=r.presets,f=void 0===v?l.DEFAULT_DATE_PRESETS:v,h=r.filterCount,x=void 0===h?0:h,m=r.liveDuration,p=void 0===m?3e4:m,g=r.onDateChange,D=r.onRefresh,j=r.isRefreshLoading,_=r.onFilterClick,q=r.showFilterButton,b=void 0===q||q,C=r.showLiveButton,N=void 0===C||C,w=r.showFilterCount,E=void 0!==w&&w,k=r.datePickerProps,y=r.initialStartDate,F=r.initialEndDate;r.defaultPresets;var P=r.pollingEnabled,R=void 0!==P&&P,S=r.selectedPreset,B=void 0===S?"today":S,T=r.handlePresetChange,L=s.useState(!0),A=L[0],z=L[1],W=s.useState(y||null),H=W[0],I=W[1],M=s.useState(F||null),O=M[0],U=M[1];s.useEffect(function(){I(y||null),U(F||null)},[y,F]);var G=s.useState(!1),J=G[0],K=G[1];s.useEffect(function(){var e=setTimeout(function(){z(!1)},p);return function(){return clearTimeout(e)}},[B,p]),s.useEffect(function(){if("custom"!==B){var e=f.find(function(e){return e.value===B});if(e&&e.getRange){var t=e.getRange();null==g||g({preset:B,startDate:t.startDate,endDate:t.endDate})}}},[B,f,g]);var Q=f;return t.jsxs("div",e.__assign({className:"q-date-filter"},{children:[t.jsxs("div",e.__assign({className:"q-date-filter-toolbar"},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"}},{children:[t.jsx("div",e.__assign({className:"q-preset-container"},{children:null==Q?void 0:Q.map(function(s){return t.jsx("button",e.__assign({className:"q-preset-btn ".concat(B===(null==s?void 0:s.value)?"active":""),onClick:function(){return null==T?void 0:T(null==s?void 0:s.value)}},{children:null==s?void 0:s.label}),null==s?void 0:s.value)})})),N&&(A&&!R?t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{width:"1px",height:"31px",backgroundColor:"#CBD5E1"}}),t.jsxs("div",e.__assign({className:"q-live-chip"},{children:[t.jsx("span",{className:"q-live-dot"}),"Live Data"]}))]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"q-date-separator",style:{width:"1px",height:"31px",backgroundColor:"#CBD5E1"}}),t.jsxs(a.Button,e.__assign({className:"q-refresh-btn",onClick:D},{children:[t.jsx(i.RefreshCw,{size:16,strokeWidth:2.5,className:j?"q-spin":""}),t.jsx("span",{children:j?"Refreshing...":"Refresh"})]}))]}))]})),b&&t.jsxs("button",e.__assign({className:"q-filter-btn",onClick:_},{children:[t.jsx(i.ListFilter,{size:12.5}),"Filters",E&&x>0&&t.jsx("span",e.__assign({className:"q-filter-badge"},{children:x}))]}))]})),"custom"===B&&t.jsxs("div",e.__assign({className:"q-custom-container"},{children:[t.jsx(n.default,{label:"From",value:H,minDate:null===(o=null==k?void 0:k.from)||void 0===o?void 0:o.minDate,maxDate:null!=O?O:null===(u=null==k?void 0:k.from)||void 0===u?void 0:u.maxDate,onChange:function(e){I(e),K(!1)},styles:{root:{width:"250px"}}}),t.jsx(n.default,{label:"To",value:O,minDate:null!=H?H:null===(d=null==k?void 0:k.to)||void 0===d?void 0:d.minDate,maxDate:null===(c=null==k?void 0:k.to)||void 0===c?void 0:c.maxDate,onChange:function(e){U(e),K(!1)},styles:{root:{width:"250px"}}}),t.jsx(a.Button,{className:"q-apply-btn",label:"Apply Range",disabled:!H||!O||J,onClick:function(){if(H&&O){var e=new Date(H);e.setHours(0,0,0,0);var t=new Date;null==g||g({preset:"custom",startDate:e,endDate:t}),K(!0)}}})]}))]}))};
|
|
2
2
|
//# sourceMappingURL=DashboardDateFilter.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l=require("../../_virtual/_tslib.js"),e=require("react/jsx-runtime"),i=require("react"),o=require("lucide-react"),n=require("./DashboardDateFilter/DashboardDateFilter.js"),t=require("./MetricCard/MetricCard.js"),d=require("./FiltersSidebar/FiltersSidebar.js"),a=require("./Graph/Graph.js"),r=require("./Graph/GraphEmptyState.js"),u=require("./DashboardDateFilter/datePreset.js"),s=require("./Table/TableCard.js"),v=require("./Table/TableGrid/TableGrid.js"),c=require("../utils/tableColumns.js"),p=require("../utils/sectionOrder.js"),g=require("../utils/index.js"),h=require("../utils/kpiIcon.js");function b(l){return l&&"object"==typeof l&&"default"in l?l:{default:l}}var f=b(i),y=["#7c3aed","#FFC130","#F43F5E","#10b981","#3b82f6"];function m(b){var m,x,C,j,F,_,k,D,w,S,B,q,L,P,O,A,E,M,T,R,V,K,H,I,G,z,W,N,Z,J,Q,U,X,Y,$,ll,el,il=b.uiConfig,ol=b.data,nl=b.dataLoading,tl=b.startDate,dl=b.endDate,al=b.onDateChange,rl=b.onRefresh,ul=b.selectedKpis,sl=b.onKpiChange,vl=b.sidebarVisible,cl=b.onSidebarShow,pl=b.onSidebarHide,gl=b.filterValues,hl=b.onFilterChange,bl=b.onFilterReset,fl=b.onFilterApply,yl=b.appliedFilters,ml=b.graphEmptyState,xl=b.tables,Cl=b.tableLayout,jl=b.sectionOrder,Fl=b.hiddenSections,_l=b.tablePages,kl=b.onTableExpand,Dl=b.onTableLoadMore,wl=b.pollingEnabled,Sl=void 0!==wl&&wl,Bl=b.selectedPreset,ql=b.handlePresetChange,Ll=null!==(C=null===(x=null===(m=null==il?void 0:il.data)||void 0===m?void 0:m.dateFilters)||void 0===x?void 0:x.datepresets)&&void 0!==C?C:[],Pl=i.useMemo(function(){return Ll.map(function(l){return u.DATE_PRESET_MAP[l]}).filter(Boolean)},[JSON.stringify(Ll)]),Ol=i.useMemo(function(){return g.getActiveFilterCount(yl)},[yl]),Al=i.useMemo(function(){var l,e,i=null==Cl?void 0:Cl.spans;if(i)return(null!==(e=null===(l=null==il?void 0:il.data)||void 0===l?void 0:l.tableBuilder)&&void 0!==e?e:[]).map(function(l,e){return Array.isArray(i)?i[e]:i[l.key]})},[null==Cl?void 0:Cl.spans,null===(j=null==il?void 0:il.data)||void 0===j?void 0:j.tableBuilder]),El=e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(a.default,{loading:nl,emptyState:null!=ml?ml:e.jsx(r.default,{}),title:null===(F=null==il?void 0:il.data)||void 0===F?void 0:F.graphBuilder.title,description:null===(k=null===(_=null==il?void 0:il.data)||void 0===_?void 0:_.graphBuilder)||void 0===k?void 0:k.subtitle,icon:e.jsx(o.ChartLine,{size:18}),xAxis:{label:(null===(w=null===(D=null==il?void 0:il.data)||void 0===D?void 0:D.graphBuilder)||void 0===w?void 0:w.axis.xAxisLabel)||"Date"},style:{chartHeight:220},scrollable:Sl,panes:null===(S=null==il?void 0:il.data)||void 0===S?void 0:S.graphBuilder.tiers.map(function(l,i){var n,t,d,a,r,u,s,v,c,p,g,h,b=ul[l.key]||(null===(n=l.plotOptions[0])||void 0===n?void 0:n.key),f=ol.graph.tier.find(function(e){return e.key===l.key}),m=(null===(t=null==f?void 0:f.referenceOptions)||void 0===t?void 0:t[b])||{},x=(null===(d=null==f?void 0:f.plotbyoptions)||void 0===d?void 0:d[b])||{},C=(null==l?void 0:l.series)||[],j=Object.keys(x),F=l.plotOptions.find(function(l){return l.value===b});return{key:l.key,selector:{label:"Plot By",value:b,onChange:function(e){sl(l.key,e)},options:l.plotOptions.map(function(l){return{label:l.label,value:l.value}}),triggerIcon:e.jsx(o.ChartLine,{size:16,color:0===i?"green":"purple"})},yAxis:{label:null==F?void 0:F.yAxisLabel,beginAtZero:"false"!==(null==b?void 0:b.yAxisBeginAtZero)},tooltip:{formatHeading:function(l){return"".concat(l)}},legend:{position:(null===(u=null===(r=null===(a=null==il?void 0:il.data)||void 0===a?void 0:a.graphBuilder)||void 0===r?void 0:r.legend)||void 0===u?void 0:u.position)||"bottom",toggle:"yes"===(null===(c=null===(v=null===(s=null==il?void 0:il.data)||void 0===s?void 0:s.graphBuilder)||void 0===v?void 0:v.legend)||void 0===c?void 0:c.allowToggle),align:(null===(h=null===(g=null===(p=null==il?void 0:il.data)||void 0===p?void 0:p.graphBuilder)||void 0===g?void 0:g.legend)||void 0===h?void 0:h.alignment)||"center"},height:0===i?300:250,series:j.map(function(l,e){var i,o,n=(null===(o=null===(i=null==f?void 0:f.plotbyoptions)||void 0===i?void 0:i[b])||void 0===o?void 0:o[l])||[],t=y[e%y.length],d=C.find(function(e){return e.key===l});return{key:l,label:(null==d?void 0:d.name)||l,data:n,area:"yes"===(null==d?void 0:d.areaFill),curve:(null==d?void 0:d.curveType)||"linear",color:"#".concat(null==d?void 0:d.color)||t,dashed:"dashed"===(null==d?void 0:d.style),strokeWidth:parseInt(null==d?void 0:d.strokeWidth)||2,showPoints:"yes"===(null==d?void 0:d.showPoints),pointRadius:parseInt(null==d?void 0:d.pointRadius)||3,showInLegend:!0,valueFormatter:function(l){return"".concat(l)}}}),reference:m}})})})),Ml=e.jsx("div",l.__assign({style:{padding:"4px",display:"flex",gap:"10px",flexWrap:"wrap"}},{children:l.__spreadArray([],null!==(q=null===(B=null==il?void 0:il.data)||void 0===B?void 0:B.kpiCards)&&void 0!==q?q:[],!0).sort(function(l,e){var i,o;return(null!==(i=l.displayOrder)&&void 0!==i?i:0)-(null!==(o=e.displayOrder)&&void 0!==o?o:0)}).map(function(l){var i,o=null===(i=null==ol?void 0:ol.kpiCards)||void 0===i?void 0:i[l.title],n=g.isKpiValueObject(o)?g.getKpiValueColor(o.currentValue,o.baselineValue,l.indicatorLogic):void 0,d=g.isKpiValueObject(o)?g.getKpiDelta(o.currentValue,o.baselineValue,l.indicatorLogic):void 0;return e.jsx(t.default,{title:l.title,subtitle:l.subtitle,value:g.formatKpiValue(o,l.valueFormat),valueColor:n,delta:d&&{label:d.label,direction:d.direction,color:n},icon:h.getKpiIcon(l.icon),loading:nl},l.title)})})),Tl=(null!==(O=null===(P=null===(L=null==il?void 0:il.data)||void 0===L?void 0:L.tableBuilder)||void 0===P?void 0:P.length)&&void 0!==O?O:0)>0?e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(v.default,l.__assign({itemSpans:Al,totalColumns:null!==(A=null==Cl?void 0:Cl.totalColumns)&&void 0!==A?A:12,defaultSpan:null==Cl?void 0:Cl.defaultSpan,options:null!==(E=null==Cl?void 0:Cl.options)&&void 0!==E?E:[1,2,3],defaultColumns:null==Cl?void 0:Cl.defaultColumns,columns:null==Cl?void 0:Cl.columns,onColumnsChange:null==Cl?void 0:Cl.onColumnsChange,showToggle:(null===(M=null==Cl?void 0:Cl.showToggle)||void 0===M||M)&&(null!==(V=null===(R=null===(T=null==il?void 0:il.data)||void 0===T?void 0:T.tableBuilder)||void 0===R?void 0:R.length)&&void 0!==V?V:0)>1,toggleLabel:null==Cl?void 0:Cl.toggleLabel,minColumnWidth:null!==(K=null==Cl?void 0:Cl.minColumnWidth)&&void 0!==K?K:380,gap:null!==(H=null==Cl?void 0:Cl.gap)&&void 0!==H?H:12,equalHeights:null===(I=null==Cl?void 0:Cl.equalHeights)||void 0===I||I},{children:il.data.tableBuilder.map(function(i){var o,n,t=null!==(n=null===(o=null==ol?void 0:ol.table)||void 0===o?void 0:o[i.key])&&void 0!==n?n:[],d=null==_l?void 0:_l[i.key],a=!!(null==d?void 0:d.loaded),r=a?d.rows:t,u=!a&&i.rowLimit&&i.rowLimit>0?t.slice(0,i.rowLimit):r,v=null==xl?void 0:xl[i.key],p=c.buildColumns(i,v),g=null==v?void 0:v.card,b=null==g?void 0:g.icon,y=h.getKpiIcon(i.icon),m=y&&f.default.isValidElement(y)?f.default.cloneElement(y,l.__assign(l.__assign({},null!=(null==b?void 0:b.size)?{size:b.size}:{}),(null==b?void 0:b.color)?{color:b.color}:{})):y,x=b?l.__assign(l.__assign(l.__assign({width:"auto",height:"auto"},b.color?{color:b.color}:{}),b.background?{background:b.background,padding:6,borderRadius:8}:{}),b.style):void 0;return e.jsx(s.default,{title:i.title,icon:m,styles:{root:null==g?void 0:g.root,header:null==g?void 0:g.header,title:null==g?void 0:g.title,icon:x},onExpand:function(l){return null==kl?void 0:kl(i.key,l)},table:{rows:c.withRowIds(u),columns:p,loading:nl,loadingMore:null==d?void 0:d.loading,hasMore:null==d?void 0:d.hasMore,onLoadMore:d?function(){return null==Dl?void 0:Dl(i.key)}:void 0,tableProps:null==v?void 0:v.tableProps}},i.key)})}))})):null,Rl={graphBuilder:El,kpiCards:Ml,tableBuilder:Tl},Vl=p.resolveSectionOrder(jl,Fl,null===(G=null==il?void 0:il.data)||void 0===G?void 0:G.sectionOrder,Object.keys(Rl)),Kl=p.isSectionHidden(Fl,"dateFilters"),Hl=p.isSectionHidden(Fl,"sidebarFilters");return e.jsx(e.Fragment,{children:e.jsxs("div",l.__assign({style:{display:"flex",flexDirection:"column",gap:12,width:"100%"}},{children:[!Kl&&e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(n.default,{filterCount:Ol,initialStartDate:tl,initialEndDate:dl,onDateChange:al,onRefresh:rl,onFilterClick:cl,presets:Pl,datePickerProps:{from:{minDate:new Date(2025,0,1),maxDate:new Date},to:{minDate:tl,maxDate:new Date}},defaultPresets:null===(z=null==il?void 0:il.data)||void 0===z?void 0:z.dateFilters.defaultPreset,showLiveButton:"yes"===(null===(N=null===(W=null==il?void 0:il.data)||void 0===W?void 0:W.dateFilters)||void 0===N?void 0:N.showLiveButton),showFilterButton:!Hl&&"yes"===(null===(J=null===(Z=null==il?void 0:il.data)||void 0===Z?void 0:Z.dateFilters)||void 0===J?void 0:J.showFilterButton),showFilterCount:!Hl&&"yes"===(null===(U=null===(Q=null==il?void 0:il.data)||void 0===Q?void 0:Q.dateFilters)||void 0===U?void 0:U.showFilterCount),liveDuration:null===(Y=null===(X=null==il?void 0:il.data)||void 0===X?void 0:X.dateFilters)||void 0===Y?void 0:Y.liveDurationMs,pollingEnabled:Sl,selectedPreset:Bl,handlePresetChange:ql})})),Vl.map(function(l){return e.jsx(f.default.Fragment,{children:Rl[l]},l)}),!Hl&&e.jsx(d.default,{visible:vl,onHide:pl,onReset:bl,onApply:fl,fields:null!==(el=null===(ll=null===($=null==il?void 0:il.data)||void 0===$?void 0:$.sidebarFilters)||void 0===ll?void 0:ll.map(function(l){var e,i,o,n,t=l.schemaFilterName,d="Single select"===l.type?"singleSelect":"Multi select"===l.type?"multiSelect":"Date Range"===l.type?"dateRange":"Date"===l.type?"date":"text",a=null!==(i=null===(e=l.options)||void 0===e?void 0:e.map(function(l){return{label:l,value:l}}))&&void 0!==i?i:[];return{id:t,label:l.label,hint:l.description,type:d,placeholder:l.placeholder,options:a,value:"multiSelect"===d?null!==(o=gl[t])&&void 0!==o?o:[]:null!==(n=gl[t])&&void 0!==n?n:"",onChange:function(l){return hl(t,l)}}}))&&void 0!==el?el:[]})]}))})}exports.ExecutiveDashboard=m,exports.default=m;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l=require("../../_virtual/_tslib.js"),e=require("react/jsx-runtime"),i=require("react"),o=require("lucide-react"),n=require("./DashboardDateFilter/DashboardDateFilter.js"),t=require("./MetricCard/MetricCard.js"),d=require("./FiltersSidebar/FiltersSidebar.js"),a=require("./Graph/Graph.js"),r=require("./Graph/GraphEmptyState.js"),u=require("./DashboardDateFilter/datePreset.js"),s=require("./Table/TableCard.js"),v=require("./Table/TableGrid/TableGrid.js"),c=require("../utils/tableColumns.js"),p=require("../utils/sectionOrder.js"),g=require("../utils/index.js"),h=require("../utils/kpiIcon.js");function b(l){return l&&"object"==typeof l&&"default"in l?l:{default:l}}var f=b(i),y=["#7c3aed","#FFC130","#F43F5E","#10b981","#3b82f6"];function m(b){var m,x,C,j,F,D,_,k,w,S,B,q,L,P,O,A,E,M,T,R,V,K,H,I,G,z,W,N,Z,J,Q,U,X,Y,$,ll,el,il=b.uiConfig,ol=b.data,nl=b.dataLoading,tl=b.startDate,dl=b.endDate,al=b.onDateChange,rl=b.onRefresh,ul=b.selectedKpis,sl=b.onKpiChange,vl=b.sidebarVisible,cl=b.onSidebarShow,pl=b.onSidebarHide,gl=b.filterValues,hl=b.onFilterChange,bl=b.onFilterReset,fl=b.onFilterApply,yl=b.appliedFilters,ml=b.graphEmptyState,xl=b.tables,Cl=b.tableLayout,jl=b.sectionOrder,Fl=b.hiddenSections,Dl=b.tablePages,_l=b.onTableExpand,kl=b.onTableLoadMore,wl=b.pollingEnabled,Sl=void 0!==wl&&wl,Bl=b.selectedPreset,ql=b.handlePresetChange,Ll=b.metricCardConfig,Pl=null!==(C=null===(x=null===(m=null==il?void 0:il.data)||void 0===m?void 0:m.dateFilters)||void 0===x?void 0:x.datepresets)&&void 0!==C?C:[],Ol=i.useMemo(function(){return Pl.map(function(l){return u.DATE_PRESET_MAP[l]}).filter(Boolean)},[JSON.stringify(Pl)]),Al=i.useMemo(function(){return g.getActiveFilterCount(yl)},[yl]),El=i.useMemo(function(){var l,e,i=null==Cl?void 0:Cl.spans;if(i)return(null!==(e=null===(l=null==il?void 0:il.data)||void 0===l?void 0:l.tableBuilder)&&void 0!==e?e:[]).map(function(l,e){return Array.isArray(i)?i[e]:i[l.key]})},[null==Cl?void 0:Cl.spans,null===(j=null==il?void 0:il.data)||void 0===j?void 0:j.tableBuilder]),Ml=e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(a.default,{loading:nl,emptyState:null!=ml?ml:e.jsx(r.default,{}),title:null===(F=null==il?void 0:il.data)||void 0===F?void 0:F.graphBuilder.title,description:null===(_=null===(D=null==il?void 0:il.data)||void 0===D?void 0:D.graphBuilder)||void 0===_?void 0:_.subtitle,icon:e.jsx(o.ChartLine,{size:18}),xAxis:{label:(null===(w=null===(k=null==il?void 0:il.data)||void 0===k?void 0:k.graphBuilder)||void 0===w?void 0:w.axis.xAxisLabel)||"Date"},style:{chartHeight:220},scrollable:Sl,panes:null===(S=null==il?void 0:il.data)||void 0===S?void 0:S.graphBuilder.tiers.map(function(l,i){var n,t,d,a,r,u,s,v,c,p,g,h,b=ul[l.key]||(null===(n=l.plotOptions[0])||void 0===n?void 0:n.key),f=ol.graph.tier.find(function(e){return e.key===l.key}),m=(null===(t=null==f?void 0:f.referenceOptions)||void 0===t?void 0:t[b])||{},x=(null===(d=null==f?void 0:f.plotbyoptions)||void 0===d?void 0:d[b])||{},C=(null==l?void 0:l.series)||[],j=Object.keys(x),F=l.plotOptions.find(function(l){return l.value===b});return{key:l.key,selector:{label:"Plot By",value:b,onChange:function(e){sl(l.key,e)},options:l.plotOptions.map(function(l){return{label:l.label,value:l.value}}),triggerIcon:e.jsx(o.ChartLine,{size:16,color:0===i?"green":"purple"})},yAxis:{label:null==F?void 0:F.yAxisLabel,beginAtZero:"false"!==(null==b?void 0:b.yAxisBeginAtZero)},tooltip:{formatHeading:function(l){return"".concat(l)}},legend:{position:(null===(u=null===(r=null===(a=null==il?void 0:il.data)||void 0===a?void 0:a.graphBuilder)||void 0===r?void 0:r.legend)||void 0===u?void 0:u.position)||"bottom",toggle:"yes"===(null===(c=null===(v=null===(s=null==il?void 0:il.data)||void 0===s?void 0:s.graphBuilder)||void 0===v?void 0:v.legend)||void 0===c?void 0:c.allowToggle),align:(null===(h=null===(g=null===(p=null==il?void 0:il.data)||void 0===p?void 0:p.graphBuilder)||void 0===g?void 0:g.legend)||void 0===h?void 0:h.alignment)||"center"},height:0===i?300:250,series:j.map(function(l,e){var i,o,n=(null===(o=null===(i=null==f?void 0:f.plotbyoptions)||void 0===i?void 0:i[b])||void 0===o?void 0:o[l])||[],t=y[e%y.length],d=C.find(function(e){return e.key===l});return{key:l,label:(null==d?void 0:d.name)||l,data:n,area:"yes"===(null==d?void 0:d.areaFill),curve:(null==d?void 0:d.curveType)||"linear",color:"#".concat(null==d?void 0:d.color)||t,dashed:"dashed"===(null==d?void 0:d.style),strokeWidth:parseInt(null==d?void 0:d.strokeWidth)||2,showPoints:"yes"===(null==d?void 0:d.showPoints),pointRadius:parseInt(null==d?void 0:d.pointRadius)||3,showInLegend:!0,valueFormatter:function(l){return"".concat(l)}}}),reference:m}})})})),Tl=e.jsx("div",l.__assign({style:{padding:"4px",display:"flex",gap:"10px",flexWrap:"wrap"}},{children:l.__spreadArray([],null!==(q=null===(B=null==il?void 0:il.data)||void 0===B?void 0:B.kpiCards)&&void 0!==q?q:[],!0).sort(function(l,e){var i,o;return(null!==(i=l.displayOrder)&&void 0!==i?i:0)-(null!==(o=e.displayOrder)&&void 0!==o?o:0)}).map(function(l){var i,o,n=null===(i=null==ol?void 0:ol.kpiCards)||void 0===i?void 0:i[l.title],d=g.isKpiValueObject(n)?g.getKpiValueColor(n.currentValue,n.baselineValue,l.indicatorLogic):void 0,a=g.isKpiValueObject(n)?g.getKpiDelta(n.currentValue,n.baselineValue,l.indicatorLogic):void 0;return e.jsx(t.default,{title:l.title,subtitle:l.subtitle,value:g.formatKpiValue(n,l.valueFormat),valueColor:d,delta:a&&{label:a.label,direction:a.direction,color:d},icon:h.getKpiIcon(l.icon),loading:nl,showDelta:null===(o=null==Ll?void 0:Ll.showDelta)||void 0===o||o},l.title)})})),Rl=(null!==(O=null===(P=null===(L=null==il?void 0:il.data)||void 0===L?void 0:L.tableBuilder)||void 0===P?void 0:P.length)&&void 0!==O?O:0)>0?e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(v.default,l.__assign({itemSpans:El,totalColumns:null!==(A=null==Cl?void 0:Cl.totalColumns)&&void 0!==A?A:12,defaultSpan:null==Cl?void 0:Cl.defaultSpan,options:null!==(E=null==Cl?void 0:Cl.options)&&void 0!==E?E:[1,2,3],defaultColumns:null==Cl?void 0:Cl.defaultColumns,columns:null==Cl?void 0:Cl.columns,onColumnsChange:null==Cl?void 0:Cl.onColumnsChange,showToggle:(null===(M=null==Cl?void 0:Cl.showToggle)||void 0===M||M)&&(null!==(V=null===(R=null===(T=null==il?void 0:il.data)||void 0===T?void 0:T.tableBuilder)||void 0===R?void 0:R.length)&&void 0!==V?V:0)>1,toggleLabel:null==Cl?void 0:Cl.toggleLabel,minColumnWidth:null!==(K=null==Cl?void 0:Cl.minColumnWidth)&&void 0!==K?K:380,gap:null!==(H=null==Cl?void 0:Cl.gap)&&void 0!==H?H:12,equalHeights:null===(I=null==Cl?void 0:Cl.equalHeights)||void 0===I||I},{children:il.data.tableBuilder.map(function(i){var o,n,t=null!==(n=null===(o=null==ol?void 0:ol.table)||void 0===o?void 0:o[i.key])&&void 0!==n?n:[],d=null==Dl?void 0:Dl[i.key],a=!!(null==d?void 0:d.loaded),r=a?d.rows:t,u=!a&&i.rowLimit&&i.rowLimit>0?t.slice(0,i.rowLimit):r,v=null==xl?void 0:xl[i.key],p=c.buildColumns(i,v),g=null==v?void 0:v.card,b=null==g?void 0:g.icon,y=h.getKpiIcon(i.icon),m=y&&f.default.isValidElement(y)?f.default.cloneElement(y,l.__assign(l.__assign({},null!=(null==b?void 0:b.size)?{size:b.size}:{}),(null==b?void 0:b.color)?{color:b.color}:{})):y,x=b?l.__assign(l.__assign(l.__assign({width:"auto",height:"auto"},b.color?{color:b.color}:{}),b.background?{background:b.background,padding:6,borderRadius:8}:{}),b.style):void 0;return e.jsx(s.default,{title:i.title,icon:m,styles:{root:null==g?void 0:g.root,header:null==g?void 0:g.header,title:null==g?void 0:g.title,icon:x},onExpand:function(l){return null==_l?void 0:_l(i.key,l)},table:{rows:c.withRowIds(u),columns:p,loading:nl,loadingMore:null==d?void 0:d.loading,hasMore:null==d?void 0:d.hasMore,onLoadMore:d?function(){return null==kl?void 0:kl(i.key)}:void 0,tableProps:null==v?void 0:v.tableProps}},i.key)})}))})):null,Vl={graphBuilder:Ml,kpiCards:Tl,tableBuilder:Rl},Kl=p.resolveSectionOrder(jl,Fl,null===(G=null==il?void 0:il.data)||void 0===G?void 0:G.sectionOrder,Object.keys(Vl)),Hl=p.isSectionHidden(Fl,"dateFilters"),Il=p.isSectionHidden(Fl,"sidebarFilters");return e.jsx(e.Fragment,{children:e.jsxs("div",l.__assign({style:{display:"flex",flexDirection:"column",gap:12,width:"100%"}},{children:[!Hl&&e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(n.default,{filterCount:Al,initialStartDate:tl,initialEndDate:dl,onDateChange:al,onRefresh:rl,onFilterClick:cl,presets:Ol,datePickerProps:{from:{minDate:new Date(2025,0,1),maxDate:new Date},to:{minDate:tl,maxDate:new Date}},defaultPresets:null===(z=null==il?void 0:il.data)||void 0===z?void 0:z.dateFilters.defaultPreset,showLiveButton:"yes"===(null===(N=null===(W=null==il?void 0:il.data)||void 0===W?void 0:W.dateFilters)||void 0===N?void 0:N.showLiveButton),showFilterButton:!Il&&"yes"===(null===(J=null===(Z=null==il?void 0:il.data)||void 0===Z?void 0:Z.dateFilters)||void 0===J?void 0:J.showFilterButton),showFilterCount:!Il&&"yes"===(null===(U=null===(Q=null==il?void 0:il.data)||void 0===Q?void 0:Q.dateFilters)||void 0===U?void 0:U.showFilterCount),liveDuration:null===(Y=null===(X=null==il?void 0:il.data)||void 0===X?void 0:X.dateFilters)||void 0===Y?void 0:Y.liveDurationMs,pollingEnabled:Sl,selectedPreset:Bl,handlePresetChange:ql})})),Kl.map(function(l){return e.jsx(f.default.Fragment,{children:Vl[l]},l)}),!Il&&e.jsx(d.default,{visible:vl,onHide:pl,onReset:bl,onApply:fl,fields:null!==(el=null===(ll=null===($=null==il?void 0:il.data)||void 0===$?void 0:$.sidebarFilters)||void 0===ll?void 0:ll.map(function(l){var e,i,o,n,t=l.schemaFilterName,d="Single select"===l.type?"singleSelect":"Multi select"===l.type?"multiSelect":"Date Range"===l.type?"dateRange":"Date"===l.type?"date":"text",a=null!==(i=null===(e=l.options)||void 0===e?void 0:e.map(function(l){return{label:l,value:l}}))&&void 0!==i?i:[];return{id:t,label:l.label,hint:l.description,type:d,placeholder:l.placeholder,options:a,value:"multiSelect"===d?null!==(o=gl[t])&&void 0!==o?o:[]:null!==(n=gl[t])&&void 0!==n?n:"",onChange:function(l){return hl(t,l)}}}))&&void 0!==el?el:[]})]}))})}exports.ExecutiveDashboard=m,exports.default=m;
|
|
2
2
|
//# sourceMappingURL=ExecutiveDashboard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),l=require("react"),i=require("./LineChart.js"),s=require("./GraphSkeleton.js"),r=require("./PlotBySelector.js"),a=require("./types.js");function o(e){var i,s,a,o=e.config,t=void 0!==o.value,d=l.useState(null!==(i=o.defaultValue)&&void 0!==i?i:null===(a=null===(s=o.options)||void 0===s?void 0:s[0])||void 0===a?void 0:a.value),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),l=require("react"),i=require("./LineChart.js"),s=require("./GraphSkeleton.js"),r=require("./PlotBySelector.js"),a=require("./types.js");function o(e){var i,s,a,o=e.config,t=void 0!==o.value,d=l.useState(null!==(i=o.defaultValue)&&void 0!==i?i:null===(a=null===(s=o.options)||void 0===s?void 0:s[0])||void 0===a?void 0:a.value),u=d[0],c=d[1],v=t?o.value:u;return n.jsx(r.default,{config:o,value:v,onChange:function(e){var n;t||c(e),null===(n=o.onChange)||void 0===n||n.call(o,e)}})}function t(l){var s,r=l.pane,a=l.xAxis,o=l.sharedStyle,t=l.isLast,d=l.hiddenKeys,u=l.toggleSeries,c=l.syncId,v=l.reference,h=l.scrollable,_=void 0!==h&&h,g=l.onPointClick,f=t?a:e.__assign(e.__assign({},a),{show:!1,label:void 0});return n.jsxs("div",e.__assign({className:"ellm-graph__pane"},{children:[r.title&&n.jsx("div",e.__assign({className:"ellm-graph__pane-title"},{children:r.title})),n.jsx(i.default,{series:r.series,hiddenKeys:d,onToggleSeries:u,xAxis:f,yAxis:r.yAxis,tooltip:r.tooltip,legend:{show:!0},syncId:c,style:e.__assign(e.__assign({},o),{chartHeight:null!==(s=r.height)&&void 0!==s?s:null==o?void 0:o.chartHeight}),reference:v,scrollable:_,onPointClick:g})]}))}exports.default=function(r){var d,u,c=r.series,v=r.panes,h=r.title,_=r.description,g=r.icon,f=r.plotBy,p=r.xAxis,x=r.yAxis,m=r.tooltip,y=r.legend,j=r.config,A=r.style,N=r.emptyState,S=r.loading,b=r.scrollable,k=void 0!==b&&b,C=r.onPointClick,q=!!(null==v?void 0:v.length),w=l.useId(),P=l.useState(function(){var e=new Set;return(null!=c?c:[]).forEach(function(n){return n.hidden&&e.add(n.key)}),(null!=v?v:[]).forEach(function(n){return n.series.forEach(function(n){return n.hidden&&e.add(n.key)})}),e}),I=P[0],E=P[1],M=function(e){return E(function(n){var l=new Set(n);return l.has(e)?l.delete(e):l.add(e),l})},H=!1!==(null==j?void 0:j.showHeader),K=l.useMemo(function(){return q?v.some(function(e){return e.series.some(function(e){var n,l;return null===(l=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.some)||void 0===l?void 0:l.call(n,function(e){return null!=(null==e?void 0:e.y)})})}):(null!=c?c:[]).some(function(e){return e.data.some(function(e){return null!=e.y})})},[q,v,c]),L=l.useMemo(function(){var n;if(!q)return A;var l=null!==(n=null==A?void 0:A.yAxisWidth)&&void 0!==n?n:v.some(function(e){var n;return null===(n=e.yAxis)||void 0===n?void 0:n.label})?64:48;return e.__assign(e.__assign({},A),{yAxisWidth:l})},[q,v,A]);l.useMemo(function(){if(!q)return[];var e=[];return v.forEach(function(n){var l;!1!==(null===(l=n.legend)||void 0===l?void 0:l.show)&&n.series.forEach(function(n,l){var i;!1!==n.showInLegend&&e.push({key:n.key,label:n.label,color:null!==(i=n.color)&&void 0!==i?i:a.colorForIndex(null==L?void 0:L.colors,l)})})}),e},[q,v,null==L?void 0:L.colors]);var B=e.__spreadArray(e.__spreadArray([],f?[f]:[],!0),q?v.flatMap(function(e){return e.selector?[e.selector]:[]}):[],!0),F=h||_||g||B.length>0;return n.jsxs("div",e.__assign({className:"ellm-graph".concat((null==A?void 0:A.className)?" ".concat(A.className):""),style:null==A?void 0:A.container},{children:[H&&F&&n.jsxs("div",e.__assign({className:"ellm-graph__header"},{children:[n.jsxs("div",e.__assign({className:"ellm-graph__heading"},{children:[g&&n.jsx("span",e.__assign({className:"ellm-graph__icon"},{children:g})),n.jsxs("div",{children:[h&&n.jsx("div",e.__assign({className:"ellm-graph__title"},{children:h})),_&&n.jsx("div",e.__assign({className:"ellm-graph__description"},{children:_}))]})]})),B.length>0&&n.jsx("div",e.__assign({className:"ellm-graph__controls"},{children:B.map(function(e,l){return n.jsx(o,{config:e},l)})}))]})),S?n.jsx(s.default,{height:null==A?void 0:A.chartHeight}):!K&&N?n.jsx("div",e.__assign({className:"ellm-graph__empty"},{children:N})):q?n.jsxs(n.Fragment,{children:[n.jsx("div",e.__assign({className:"ellm-graph__panes",style:{gap:null!==(d=null==A?void 0:A.paneGap)&&void 0!==d?d:12}},{children:v.map(function(e,l){var i;return n.jsx(t,{pane:e,xAxis:p,sharedStyle:L,isLast:l===v.length-1,hiddenKeys:I,toggleSeries:M,syncId:w,reference:e.reference,scrollable:k,onPointClick:C},null!==(i=e.key)&&void 0!==i?i:"pane-".concat(l))})})),!1]}):n.jsx(i.default,{series:null!=c?c:[],hiddenKeys:I,onToggleSeries:M,xAxis:p,yAxis:x,tooltip:m,legend:y,style:A,reference:null===(u=null==v?void 0:v[0])||void 0===u?void 0:u.reference,scrollable:k,onPointClick:C})]}))};
|
|
2
2
|
//# sourceMappingURL=Graph.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),i=require("react"),l=require("recharts"),r=require("../ui/chart.js"),o=require("./types.js"),t=require("../../utils/index.js"),a=require("./Seperator.js"),u=function(e){return"number"==typeof e&&!Number.isNaN(e)},s=function(e){switch(e){case"linear":return"linear";case"step":return"stepAfter";default:return"monotone"}};exports.default=function(d){var c,v,f,h,y,x,g,p,m,k=d.series,b=d.hiddenKeys,_=d.onToggleSeries,j=d.xAxis,C=d.yAxis,A=d.tooltip,w=d.legend,L=d.style,T=d.syncId,M=d.reference;d.scrollable;var S=d.onPointClick,F=null!==(c=null==L?void 0:L.chartHeight)&&void 0!==c?c:300,N=null!==(v=null==L?void 0:L.gridColor)&&void 0!==v?v:"#eef0f4",E=null!==(f=null==L?void 0:L.axisColor)&&void 0!==f?f:"#d7dbe3",I=null!==(h=null==L?void 0:L.axisLabelColor)&&void 0!==h?h:"#6b7280",K=null!==(y=null==L?void 0:L.tickColor)&&void 0!==y?y:"#9ca3af",P=null!==(x=null==L?void 0:L.fontFamily)&&void 0!==x?x:"Inter, system-ui, -apple-system, sans-serif",R=i.useState(null),q=R[0],W=R[1],D=i.useMemo(function(){var n,i,l;if(null===(n=null==j?void 0:j.categories)||void 0===n?void 0:n.length)return{categories:j.categories,xType:null!==(i=j.type)&&void 0!==i?i:"category"};var r=new Set,o=[];k.forEach(function(e){return e.data.forEach(function(e){r.has(e.x)||(r.add(e.x),o.push(e.x))})});var t=o.every(u),a=null!==(l=null==j?void 0:j.type)&&void 0!==l?l:t?"number":"category";return{categories:"number"===a?e.__spreadArray([],o,!0).sort(function(e,n){return Number(e)-Number(n)}):o,xType:a}},[k,null==j?void 0:j.categories,null==j?void 0:j.type]),z=D.categories,O=D.xType,B=i.useMemo(function(){var e=new Map;return k.forEach(function(n){var i=new Map;n.data.forEach(function(e){return i.set(e.x,e.y)}),e.set(n.key,i)}),z.map(function(n){var i={x:n};return k.forEach(function(l){var r,o=null===(r=e.get(l.key))||void 0===r?void 0:r.get(n);i[l.key]=null==o?null:o}),i})},[k,z]),G=i.useMemo(function(){var e={},n=k.map(function(n,i){var l,r=null!==(l=n.color)&&void 0!==l?l:o.colorForIndex(null==L?void 0:L.colors,i);return e[n.key]={label:n.label,color:r},{series:n,color:r,index:i}});return{chartConfig:e,resolved:n}},[k,null==L?void 0:L.colors]),H=G.chartConfig,V=G.resolved,X=i.useMemo(function(){var e={};return k.forEach(function(n){n.valueFormatter&&(e[n.key]=function(e,i){var l;return n.valueFormatter(e,null!==(l=null==i?void 0:i.payload)&&void 0!==l?l:{x:null==i?void 0:i.x,y:e})})}),e},[k]),Y=!1!==(null==A?void 0:A.enabled),Z=(null==A?void 0:A.seriesKeys)?new Set(A.seriesKeys):null,J=!1!==(null==w?void 0:w.show),Q="top"===(null==w?void 0:w.position)?"top":"bottom",U="start"===(null==w?void 0:w.align)?"left":"end"===(null==w?void 0:w.align)?"right":"center",$=!1!==(null==j?void 0:j.show),ee=!1!==(null==C?void 0:C.show),ne=!1!==(null==L?void 0:L.showGrid),ie=!!(null==L?void 0:L.showVerticalGrid),le=i.useMemo(function(){return Math.max.apply(Math,B.flatMap(function(e){return k.map(function(n){return Number(e[n.key])||0})}))},[B]),re=i.useMemo(function(){return Math.ceil(1.1*le)},[le]),oe=[null!=(null==C?void 0:C.min)?C.min:!1!==(null==C?void 0:C.beginAtZero)?0:"auto",null!=(null==C?void 0:C.max)?C.max:re],te=null!==(g=null==L?void 0:L.yAxisWidth)&&void 0!==g?g:(null==C?void 0:C.label)?64:48,ae={top:12,right:16,bottom:8,left:null!=(null==L?void 0:L.yAxisWidth)?0:(null==C?void 0:C.label)?16:0},ue=null!==(p=null==j?void 0:j.enableScroll)&&void 0!==p&&p,se=null!==(m=null==j?void 0:j.minTickGap)&&void 0!==m?m:2;return i.useMemo(function(){if(!ue||!q||z.length<=1)return"100%";var e=(z.length-1)*se+200;return e>q-te-ae.left-ae.right?"".concat(e,"px"):"100%"},[ue,q,z.length,se,te,ae]),n.jsx(r.ChartContainer,e.__assign({config:H,style:{height:F,fontFamily:P},ref:function(e){e&&null===q&&W(e.clientWidth)}},{children:function(){var i,o;return n.jsxs(l.ComposedChart,e.__assign({data:B,margin:ae,syncId:T},{children:[n.jsx(l.CartesianGrid,{vertical:ie,horizontal:ne,stroke:N}),n.jsx(l.XAxis,{dataKey:"x",type:"number"===O?"number":"category",hide:!$,height:(null==j?void 0:j.label)?52:void 0,tickLine:!1,axisLine:!(null==j?void 0:j.hideLine)&&{stroke:E},tickMargin:8,interval:"preserveStartEnd",tick:{fill:K,fontSize:11},tickFormatter:(null==j?void 0:j.formatTick)?function(e,n){return j.formatTick(e,n)}:void 0,label:(null==M?void 0:M.showReferenceAreaLabel)?function(i){return function(i){var l=i.viewBox;i.startTick,i.endTick;var r=l.x,o=l.y,t=l.width,u=1;if((null==M?void 0:M.showReferenceArea)&&null!=(null==M?void 0:M.referencePoint)&&z.length>1){var s=z.indexOf(M.referencePoint);-1!==s&&(u=s/(z.length-1))}var d=100*u,c=100-d;return n.jsx("foreignObject",e.__assign({x:r,y:o+24,width:t,height:40},{children:n.jsxs("div",e.__assign({className:"ellm-graph__liveLabelContainer"},{children:[n.jsxs("div",e.__assign({style:{flex:d,display:"flex",alignItems:"center"}},{children:[n.jsx(a.default,{}),n.jsx("span",e.__assign({style:{padding:"0 12px",color:"#6b7280",fontSize:"12px"}},{children:null==M?void 0:M.referenceAreaLabel})),n.jsx(a.default,{})]})),c>0&&n.jsxs("div",e.__assign({style:{flex:c,display:"flex",alignItems:"center"}},{children:[n.jsx(a.default,{style:{backgroundColor:"#DC2626"}}),n.jsxs("div",e.__assign({className:"ellm-graph__liveLabel"},{children:[n.jsx(a.default,{style:{width:"8px",height:"8px",borderRadius:"100%",backgroundColor:"#DC2626",flex:"auto"},pulse:!0}),"LIVE - ",null==M?void 0:M.referenceAreaLiveLabel]})),n.jsx(a.default,{style:{backgroundColor:"#DC2626"}})]}))]}))}))}(e.__assign(e.__assign({},i),{startTick:z[0],endTick:z[z.length-1]}))}:(null==j?void 0:j.label)?{value:j.label,position:"insideBottom",offset:4,fill:I,fontSize:12,fontWeight:500}:void 0}),n.jsx(l.YAxis,{hide:!ee,domain:oe,tickLine:!1,axisLine:!1===(null==C?void 0:C.hideLine)&&{stroke:E},tickCount:null==C?void 0:C.tickCount,width:te,tick:{fill:K,fontSize:11},tickFormatter:(null==C?void 0:C.formatTick)?function(e,n){return C.formatTick(e,n)}:function(e){return"number"==typeof e?t.compactNumber(e):String(e)},label:(null==C?void 0:C.label)?{value:C.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"},fill:I,fontSize:12,fontWeight:500}:void 0}),Y&&n.jsx(r.ChartTooltip,{cursor:{stroke:E,strokeDasharray:"4 4"},content:function(i){var l,o=(null!==(l=i.payload)&&void 0!==l?l:[]).filter(function(e){var n=k.find(function(n){return n.key===e.dataKey});return!1!==(null==n?void 0:n.showInTooltip)&&!(Z&&!Z.has(String(e.dataKey)))});return(null==A?void 0:A.render)?A.render({x:i.label,points:o.map(function(e){var n;return{series:k.find(function(n){return n.key===e.dataKey}),value:null!==(n=e.value)&&void 0!==n?n:null,point:{x:i.label,y:e.value},color:e.color}})}):n.jsx(r.ChartTooltipContent,e.__assign({},i,{payload:o,hideLabel:!1===(null==A?void 0:A.showHeading),valueFormatters:X,labelFormatter:(null==A?void 0:A.formatHeading)?function(e){return A.formatHeading(e)}:void 0}))}}),J&&n.jsx(r.ChartLegend,{verticalAlign:Q,content:function(i){return n.jsx(r.ChartLegendContent,e.__assign({},i,{verticalAlign:Q,align:U,hiddenKeys:b,onItemClick:!1!==(null==w?void 0:w.toggle)&&_?_:void 0}))}}),(null==M?void 0:M.showReferenceArea)&&null!=(null==M?void 0:M.referencePoint)&&n.jsx(l.ReferenceArea,{x1:M.referencePoint,fill:null!==(i=M.referenceAreaFill)&&void 0!==i?i:"#2563EB1A"}),(null==M?void 0:M.showReferenceArea)&&null!=M.referencePoint&&n.jsx(l.ReferenceLine,{x:M.referencePoint,stroke:null!==(o=M.referenceLineStroke)&&void 0!==o?o:"#3B82F6",strokeDasharray:"4 4"}),V.map(function(i){var r,o,t,a,u=i.series,d=b.has(u.key),c="var(--color-".concat(u.key,")"),v=!0===u.dashed?"6 5":"string"==typeof u.dashed?u.dashed:void 0,f=!1!==u.showPoints&&{r:null!==(r=u.pointRadius)&&void 0!==r?r:3,fill:"#fff",stroke:c,strokeWidth:2},h={r:(null!==(o=u.pointRadius)&&void 0!==o?o:3)+2,onClick:S?function(e,n){var i,l;return function(e,n,i){if(S){var l=k.find(function(n){return n.key===e});l&&S({series:l,point:{x:null==n?void 0:n.x,y:null==n?void 0:n[e]},index:i})}}(u.key,null!==(i=null==n?void 0:n.payload)&&void 0!==i?i:n,null!==(l=null==n?void 0:n.index)&&void 0!==l?l:0)}:void 0},y={key:u.key,dataKey:u.key,name:u.key,type:s(u.curve),stroke:c,strokeWidth:null!==(t=u.strokeWidth)&&void 0!==t?t:2,strokeDasharray:v,connectNulls:!1,isAnimationActive:!1,hide:d,dot:f,activeDot:h};return u.area?n.jsx(l.Area,e.__assign({},y,{fill:c,fillOpacity:null!==(a=u.areaOpacity)&&void 0!==a?a:.12})):n.jsx(l.Line,e.__assign({},y))})]}))}()}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),i=require("react"),l=require("recharts"),r=require("../ui/chart.js"),o=require("./types.js"),t=require("../../utils/index.js"),a=require("./Seperator.js"),u=function(e){return"number"==typeof e&&!Number.isNaN(e)},s=function(e){switch(e){case"linear":return"linear";case"step":return"stepAfter";default:return"monotone"}};exports.default=function(d){var c,v,f,h,y,x,g,p,m,k=d.series,b=d.hiddenKeys,_=d.onToggleSeries,j=d.xAxis,C=d.yAxis,A=d.tooltip,w=d.legend,L=d.style,T=d.syncId,M=d.reference;d.scrollable;var S=d.onPointClick,F=null!==(c=null==L?void 0:L.chartHeight)&&void 0!==c?c:300,N=null!==(v=null==L?void 0:L.gridColor)&&void 0!==v?v:"#eef0f4",E=null!==(f=null==L?void 0:L.axisColor)&&void 0!==f?f:"#d7dbe3",I=null!==(h=null==L?void 0:L.axisLabelColor)&&void 0!==h?h:"#6b7280",K=null!==(y=null==L?void 0:L.tickColor)&&void 0!==y?y:"#9ca3af",P=null!==(x=null==L?void 0:L.fontFamily)&&void 0!==x?x:"Inter, system-ui, -apple-system, sans-serif",R=i.useState(null),q=R[0],W=R[1],D=i.useMemo(function(){var n,i,l;if(null===(n=null==j?void 0:j.categories)||void 0===n?void 0:n.length)return{categories:j.categories,xType:null!==(i=j.type)&&void 0!==i?i:"category"};var r=new Set,o=[];k.forEach(function(e){return e.data.forEach(function(e){r.has(e.x)||(r.add(e.x),o.push(e.x))})});var t=o.every(u),a=null!==(l=null==j?void 0:j.type)&&void 0!==l?l:t?"number":"category";return{categories:"number"===a?e.__spreadArray([],o,!0).sort(function(e,n){return Number(e)-Number(n)}):o,xType:a}},[k,null==j?void 0:j.categories,null==j?void 0:j.type]),z=D.categories,O=D.xType,B=i.useMemo(function(){var e=new Map;return k.forEach(function(n){var i=new Map;n.data.forEach(function(e){return i.set(e.x,e.y)}),e.set(n.key,i)}),z.map(function(n){var i={x:n};return k.forEach(function(l){var r,o=null===(r=e.get(l.key))||void 0===r?void 0:r.get(n);i[l.key]=null==o?null:o}),i})},[k,z]),G=i.useMemo(function(){var e={},n=k.map(function(n,i){var l,r=null!==(l=n.color)&&void 0!==l?l:o.colorForIndex(null==L?void 0:L.colors,i);return e[n.key]={label:n.label,color:r},{series:n,color:r,index:i}});return{chartConfig:e,resolved:n}},[k,null==L?void 0:L.colors]),H=G.chartConfig,V=G.resolved,X=i.useMemo(function(){var e={};return k.forEach(function(n){n.valueFormatter&&(e[n.key]=function(e,i){var l;return n.valueFormatter(e,null!==(l=null==i?void 0:i.payload)&&void 0!==l?l:{x:null==i?void 0:i.x,y:e})})}),e},[k]),Y=!1!==(null==A?void 0:A.enabled),Z=(null==A?void 0:A.seriesKeys)?new Set(A.seriesKeys):null,J=!1!==(null==w?void 0:w.show),Q="top"===(null==w?void 0:w.position)?"top":"bottom",U="start"===(null==w?void 0:w.align)?"left":"end"===(null==w?void 0:w.align)?"right":"center",$=!1!==(null==j?void 0:j.show),ee=!1!==(null==C?void 0:C.show),ne=!1!==(null==L?void 0:L.showGrid),ie=!!(null==L?void 0:L.showVerticalGrid),le=i.useMemo(function(){return Math.max.apply(Math,B.flatMap(function(e){return k.map(function(n){return Number(e[n.key])||0})}))},[B]),re=i.useMemo(function(){return Math.ceil(1.1*le)},[le]),oe=[null!=(null==C?void 0:C.min)?C.min:!1!==(null==C?void 0:C.beginAtZero)?0:"auto",null!=(null==C?void 0:C.max)?C.max:re],te=null!==(g=null==L?void 0:L.yAxisWidth)&&void 0!==g?g:(null==C?void 0:C.label)?64:48,ae={top:12,right:16,bottom:8,left:null!=(null==L?void 0:L.yAxisWidth)?0:(null==C?void 0:C.label)?16:0},ue=null!==(p=null==j?void 0:j.enableScroll)&&void 0!==p&&p,se=null!==(m=null==j?void 0:j.minTickGap)&&void 0!==m?m:2;return i.useMemo(function(){if(!ue||!q||z.length<=1)return"100%";var e=(z.length-1)*se+200;return e>q-te-ae.left-ae.right?"".concat(e,"px"):"100%"},[ue,q,z.length,se,te,ae]),n.jsx(r.ChartContainer,e.__assign({config:H,style:{height:F,fontFamily:P},ref:function(e){e&&null===q&&W(e.clientWidth)}},{children:function(){var i,o;return n.jsxs(l.ComposedChart,e.__assign({data:B,margin:ae,syncId:T},{children:[n.jsx(l.CartesianGrid,{vertical:ie,horizontal:ne,stroke:N}),n.jsx(l.XAxis,{dataKey:"x",type:"number"===O?"number":"category",hide:!$,height:(null==j?void 0:j.label)?52:void 0,tickLine:!1,axisLine:!(null==j?void 0:j.hideLine)&&{stroke:E},tickMargin:8,interval:"preserveStartEnd",tick:{fill:K,fontSize:11},tickFormatter:(null==j?void 0:j.formatTick)?function(e,n){return j.formatTick(e,n)}:void 0,label:(null==M?void 0:M.showReferenceAreaLabel)?function(i){return function(i){var l=i.viewBox;i.startTick,i.endTick;var r=l.x,o=l.y,t=l.width,u=1;if((null==M?void 0:M.showReferenceArea)&&null!=(null==M?void 0:M.referencePoint)&&z.length>1){var s=z.indexOf(M.referencePoint);-1!==s&&(u=s/(z.length-1))}var d=100*u,c=100-d;return n.jsx("foreignObject",e.__assign({x:r,y:o+24,width:t,height:40},{children:n.jsxs("div",e.__assign({className:"ellm-graph__liveLabelContainer"},{children:[(null==M?void 0:M.referenceAreaLabel)&&n.jsxs("div",e.__assign({style:{flex:d,display:"flex",alignItems:"center"}},{children:[n.jsx(a.default,{}),n.jsx("span",e.__assign({style:{padding:"0 12px",color:"#6b7280",fontSize:"12px"}},{children:null==M?void 0:M.referenceAreaLabel})),n.jsx(a.default,{})]})),c>0&&n.jsxs("div",e.__assign({style:{flex:c,display:"flex",alignItems:"center"}},{children:[n.jsx(a.default,{style:{backgroundColor:"#DC2626"}}),n.jsxs("div",e.__assign({className:"ellm-graph__liveLabel"},{children:[n.jsx(a.default,{style:{width:"8px",height:"8px",borderRadius:"100%",backgroundColor:"#DC2626",flex:"auto"},pulse:!0}),"LIVE - ",null==M?void 0:M.referenceAreaLiveLabel]})),n.jsx(a.default,{style:{backgroundColor:"#DC2626"}})]}))]}))}))}(e.__assign(e.__assign({},i),{startTick:z[0],endTick:z[z.length-1]}))}:(null==j?void 0:j.label)?{value:j.label,position:"insideBottom",offset:4,fill:I,fontSize:12,fontWeight:500}:void 0}),n.jsx(l.YAxis,{hide:!ee,domain:oe,tickLine:!1,axisLine:!1===(null==C?void 0:C.hideLine)&&{stroke:E},tickCount:null==C?void 0:C.tickCount,width:te,tick:{fill:K,fontSize:11},tickFormatter:(null==C?void 0:C.formatTick)?function(e,n){return C.formatTick(e,n)}:function(e){return"number"==typeof e?t.compactNumber(e):String(e)},label:(null==C?void 0:C.label)?{value:C.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"},fill:I,fontSize:12,fontWeight:500}:void 0}),Y&&n.jsx(r.ChartTooltip,{cursor:{stroke:E,strokeDasharray:"4 4"},content:function(i){var l,o=(null!==(l=i.payload)&&void 0!==l?l:[]).filter(function(e){var n=k.find(function(n){return n.key===e.dataKey});return!1!==(null==n?void 0:n.showInTooltip)&&!(Z&&!Z.has(String(e.dataKey)))});return(null==A?void 0:A.render)?A.render({x:i.label,points:o.map(function(e){var n;return{series:k.find(function(n){return n.key===e.dataKey}),value:null!==(n=e.value)&&void 0!==n?n:null,point:{x:i.label,y:e.value},color:e.color}})}):n.jsx(r.ChartTooltipContent,e.__assign({},i,{payload:o,hideLabel:!1===(null==A?void 0:A.showHeading),valueFormatters:X,labelFormatter:(null==A?void 0:A.formatHeading)?function(e){return A.formatHeading(e)}:void 0}))}}),J&&n.jsx(r.ChartLegend,{verticalAlign:Q,content:function(i){return n.jsx(r.ChartLegendContent,e.__assign({},i,{verticalAlign:Q,align:U,hiddenKeys:b,onItemClick:!1!==(null==w?void 0:w.toggle)&&_?_:void 0}))}}),(null==M?void 0:M.showReferenceArea)&&null!=(null==M?void 0:M.referencePoint)&&n.jsx(l.ReferenceArea,{x1:M.referencePoint,fill:null!==(i=M.referenceAreaFill)&&void 0!==i?i:"#2563EB1A"}),(null==M?void 0:M.showReferenceArea)&&null!=M.referencePoint&&n.jsx(l.ReferenceLine,{x:M.referencePoint,stroke:null!==(o=M.referenceLineStroke)&&void 0!==o?o:"#3B82F6",strokeDasharray:"4 4"}),V.map(function(i){var r,o,t,a,u=i.series,d=b.has(u.key),c="var(--color-".concat(u.key,")"),v=!0===u.dashed?"6 5":"string"==typeof u.dashed?u.dashed:void 0,f=!1!==u.showPoints&&{r:null!==(r=u.pointRadius)&&void 0!==r?r:3,fill:"#fff",stroke:c,strokeWidth:2},h={r:(null!==(o=u.pointRadius)&&void 0!==o?o:3)+2,onClick:S?function(e,n){var i,l;return function(e,n,i){if(S){var l=k.find(function(n){return n.key===e});l&&S({series:l,point:{x:null==n?void 0:n.x,y:null==n?void 0:n[e]},index:i})}}(u.key,null!==(i=null==n?void 0:n.payload)&&void 0!==i?i:n,null!==(l=null==n?void 0:n.index)&&void 0!==l?l:0)}:void 0},y={key:u.key,dataKey:u.key,name:u.key,type:s(u.curve),stroke:c,strokeWidth:null!==(t=u.strokeWidth)&&void 0!==t?t:2,strokeDasharray:v,connectNulls:!1,isAnimationActive:!1,hide:d,dot:f,activeDot:h};return u.area?n.jsx(l.Area,e.__assign({},y,{fill:c,fillOpacity:null!==(a=u.areaOpacity)&&void 0!==a?a:.12})):n.jsx(l.Line,e.__assign({},y))})]}))}()}))};
|
|
2
2
|
//# sourceMappingURL=LineChart.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),a=require("react"),i=require("lucide-react");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(a);exports.default=function(a){var l,t,n,r,d,o=a.title,_=a.value,u=a.subtitle,m=a.icon,v=a.loading,x=a.valuePrefix,g=a.valueColor,p=a.delta,h=a.segments,j=a.onClick,f=a.classNames,N=h&&h.length>0,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),a=require("react"),i=require("lucide-react");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(a);exports.default=function(a){var l,t,n,r,d,o=a.title,_=a.value,u=a.subtitle,m=a.icon,v=a.loading,x=a.valuePrefix,g=a.valueColor,p=a.delta,h=a.segments,j=a.onClick,f=a.classNames,N=a.showDelta,y=void 0===N||N,b=h&&h.length>0,k=b?h.reduce(function(e,s){return e+s.value},0):0;return s.jsx("div",e.__assign({className:"metric-card ".concat(null!==(l=null==f?void 0:f.root)&&void 0!==l?l:""),onClick:j},{children:s.jsxs("div",e.__assign({className:"metric-card__content ".concat(b?"metric-card__content--has-segments":"")},{children:[s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",gap:"4px"}},{children:[s.jsx("div",e.__assign({className:"metric-card__title"},{children:o})),s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px",flexWrap:"wrap"}},{children:[s.jsx("div",e.__assign({className:"metric-card__value ".concat(null!==(t=null==f?void 0:f.value)&&void 0!==t?t:""),style:{color:null!=g?g:null==x?void 0:x.color}},{children:v?s.jsx("span",{className:"metric-card__value-skeleton"}):s.jsxs(s.Fragment,{children:[(null==x?void 0:x.icon)&&(c.default.isValidElement(x.icon)?c.default.cloneElement(x.icon,{size:20,strokeWidth:2.5}):x.icon),_]})})),!v&&p&&"0%"!==p.label&&y&&s.jsxs("div",e.__assign({className:"metric-card__delta",style:{color:p.color}},{children:["flat"!==p.direction&&("up"===p.direction?s.jsx(i.ArrowUp,{size:14,strokeWidth:3,"aria-hidden":!0}):s.jsx(i.ArrowDown,{size:14,strokeWidth:3,"aria-hidden":!0})),s.jsx("span",{children:p.label}),p.caption&&s.jsx("span",e.__assign({className:"metric-card__delta-caption"},{children:p.caption}))]}))]})),u&&s.jsx("div",e.__assign({className:"metric-card__subtitle ".concat(null!==(n=null==f?void 0:f.subtitle)&&void 0!==n?n:"")},{children:u}))]})),b&&s.jsxs("div",e.__assign({className:"".concat(null!==(r=null==f?void 0:f.segments)&&void 0!==r?r:""),style:{display:"flex",flexDirection:"column",flex:1,margin:0}},{children:[s.jsx("div",e.__assign({className:"metric-card__stats",style:{margin:"10px"}},{children:h.map(function(a,i){return s.jsxs("div",e.__assign({className:"metric-card__stat"},{children:[s.jsxs("div",e.__assign({className:"metric-card__stat-label"},{children:[s.jsx("span",{className:"metric-card__dot",style:{background:a.color}}),a.label]})),s.jsx("div",e.__assign({className:"metric-card__stat-value"},{children:void 0!==a.displayValue?a.displayValue:"".concat(a.value).concat(a.percentage?"%":"")})),i<h.length-1&&s.jsx("div",{className:"metric-card__divider"})]}),a.label)})})),s.jsx("div",e.__assign({className:"metric-card__progress",style:{marginTop:"4px"}},{children:h.map(function(e){return s.jsx("div",{className:"metric-card__progress-segment",style:{width:k>0?"".concat(e.value/k*100,"%"):"0%",background:e.color}},e.label)})}))]})),m&&s.jsx("div",e.__assign({className:"metric-card__icon-container ".concat(null!==(d=null==f?void 0:f.icon)&&void 0!==d?d:"")},{children:c.default.isValidElement(m)?c.default.cloneElement(m,{size:25,strokeWidth:2.5}):m}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=MetricCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),a=require("react"),n=require("recharts"),t=require("./utils.js");function r(e){if(e&&e.__esModule)return e;var l=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(l,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}}),l.default=e,Object.freeze(l)}var o=r(a),i=r(n),c=o.createContext(null);function s(){var e=o.useContext(c);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}var d=o.forwardRef(function(a,n){var r=a.id,s=a.className,d=a.children,v=a.config,_=a.scrollable,h=void 0!==_&&_,m=e.__rest(a,["id","className","children","config","scrollable"]),g=o.useId(),p="chart-".concat((r||g).replace(/:/g,""));return l.jsx(c.Provider,e.__assign({value:{config:v}},{children:l.jsx("div",e.__assign({className:"".concat(h&&"chart-scroll")},{children:l.jsxs("div",e.__assign({"data-chart":p,ref:n,className:t.cn("ellm-chart ".concat(h&&"chart-inner"),s)},m,{children:[l.jsx(u,{id:p,config:v}),l.jsx(i.ResponsiveContainer,e.__assign({},h?{width:2600}:{},{children:d}))]}))}))}))});d.displayName="ChartContainer";var u=function(e){var a=e.id,n=e.config,t=Object.entries(n).filter(function(e){return e[1].color});if(!t.length)return null;var r=t.map(function(e){var l=e[0],a=e[1];return" --color-".concat(l,": ").concat(a.color,";")}).join("\n");return l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-chart=".concat(a,"] {\n").concat(r,"\n}")}})},v=i.Tooltip,_=o.forwardRef(function(a,n){var r=a.active,i=a.payload,c=a.className,d=a.indicator,u=void 0===d?"dot":d,v=a.hideLabel,_=a.hideIndicator,h=a.label,m=a.labelFormatter,p=a.formatter,f=a.valueFormatters,y=a.color,j=a.nameKey,x=a.labelKey,b=s().config,C=o.useMemo(function(){var a,n;if(v||!(null==i?void 0:i.length))return null;var t=i[0],r="".concat(x||(null==t?void 0:t.dataKey)||(null==t?void 0:t.name)||"value"),o=g(b,t,r),c=x||"string"!=typeof h?null==o?void 0:o.label:null!==(n=null===(a=b[h])||void 0===a?void 0:a.label)&&void 0!==n?n:h;return m?l.jsx("div",e.__assign({className:"ellm-chart__tooltip-label"},{children:m(c,i)})):null==c?null:l.jsx("div",e.__assign({className:"ellm-chart__tooltip-label"},{children:c}))},[h,m,i,v,b,x]);if(!r||!(null==i?void 0:i.length))return null;var N=1===i.length&&"dot"!==u;return l.jsxs("div",e.__assign({ref:n,className:t.cn("ellm-chart__tooltip",c)},{children:[N?null:C,l.jsx("div",e.__assign({className:"ellm-chart__tooltip-items"},{children:i.map(function(a,n){var r,o,i,c,s="".concat(j||a.name||a.dataKey||"value"),d=g(b,a,s),v=y||(null===(r=a.payload)||void 0===r?void 0:r.fill)||a.color;return l.jsx("div",e.__assign({className:"ellm-chart__tooltip-item"},{children:p&&void 0!==(null==a?void 0:a.value)&&a.name?p(a.value,a.name,a,n,a.payload):l.jsxs(l.Fragment,{children:[(null==d?void 0:d.icon)?l.jsx(d.icon,{}):!_&&l.jsx("span",{className:t.cn("ellm-chart__indicator","ellm-chart__indicator--".concat(u)),style:{"--indicator-color":v}}),l.jsxs("div",e.__assign({className:t.cn("ellm-chart__tooltip-row",N&&"ellm-chart__tooltip-row--nested")},{children:[l.jsxs("div",e.__assign({className:"ellm-chart__tooltip-grid"},{children:[N?C:null,l.jsx("span",e.__assign({className:"ellm-chart__tooltip-name"},{children:null!==(o=null==d?void 0:d.label)&&void 0!==o?o:a.name}))]})),void 0!==a.value&&l.jsx("span",e.__assign({className:"ellm-chart__tooltip-value"},{children:(null==f?void 0:f[String(null!==(i=a.dataKey)&&void 0!==i?i:"")])?f[String(a.dataKey)](a.value,a):"number"==typeof a.value?a.value.toLocaleString():a.value}))]}))]})}),String(null!==(c=a.dataKey)&&void 0!==c?c:n))})}))]}))});_.displayName="ChartTooltipContent";var h=i.Legend,m=o.forwardRef(function(a,n){var r=a.className,o=a.hideIcon,i=a.payload,c=a.verticalAlign,d=void 0===c?"bottom":c,u=a.align,v=void 0===u?"center":u,_=a.nameKey,h=a.onItemClick,m=a.hiddenKeys,p=s().config;return(null==i?void 0:i.length)?l.jsx("div",e.__assign({ref:n,className:t.cn("ellm-graph__legend","top"===d?"ellm-chart__legend--top":"ellm-chart__legend--bottom","left"===v?"ellm-chart__legend--start":"right"===v?"ellm-chart__legend--end":"ellm-chart__legend--center",r)},{children:i.map(function(a,n){var r,i,c="".concat(_||a.dataKey||"value"),s=g(p,a,c),d=null==m?void 0:m.has(c);return l.jsxs("label",e.__assign({className:t.cn("ellm-graph__legend-item",d&&"ellm-graph__legend-item--off"),style:{cursor:h?"pointer":"default","--checkbox-color":a.color,color:a.color}},{children:[(null==s?void 0:s.icon)&&!o?l.jsx(s.icon,{}):l.jsx("input",{type:"checkbox",className:"ellm-graph__legend-checkbox",checked:!d,onChange:h?function(){return h(c)}:void 0,disabled:!h,style:{borderColor:a.color,accentColor:a.color}}),null!==(r=null==s?void 0:s.label)&&void 0!==r?r:a.value]}),String(null!==(i=a.value)&&void 0!==i?i:n))})})):null});function g(e,l,a){if("object"==typeof l&&null!==l){var n="payload"in l&&"object"==typeof l.payload&&null!==l.payload?l.payload:void 0,t=a;return a in l&&"string"==typeof l[a]?t=l[a]:n&&a in n&&"string"==typeof n[a]&&(t=n[a]),t in e?e[t]:e[a]}}m.displayName="ChartLegendContent",exports.ChartContainer=d,exports.ChartLegend=h,exports.ChartLegendContent=m,exports.ChartTooltip=v,exports.ChartTooltipContent=_,exports.useChart=s;
|
|
2
2
|
//# sourceMappingURL=chart.js.map
|
package/dist/cjs/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.App{height:100vh;overflow-y:auto;width:100vw}.chart-scroll{-webkit-overflow-scrolling:touch;background:var(--bg);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);overflow-x:auto;overflow-y:hidden;scrollbar-color:var(--accent-border) #0000;scrollbar-width:thin;width:100%}.chart-scroll::-webkit-scrollbar{height:10px}.chart-scroll::-webkit-scrollbar-track{background:#0000}.chart-scroll::-webkit-scrollbar-thumb{background:var(--accent-border);border-radius:999px}.chart-scroll::-webkit-scrollbar-thumb:hover{background:var(--accent)}.chart-inner{width:2600px}.ellm-graph__liveLabelContainer{align-items:center;display:flex;gap:16px;height:100%;width:100%}.ellm-graph__liveLabel{align-items:center;color:#dc2626;display:flex;font-size:12px;font-weight:600,;gap:6px;height:100%;padding:0 12px}.pulse{animation:pulse 1.5s infinite}@keyframes pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}.ellm-graph__scroll-container{border-radius:var(--ellm-graph-radius);overflow-x:auto;overflow-y:hidden;scrollbar-color:#d7dbe3 #f3f4f6;scrollbar-width:thin;width:100%}.ellm-graph__scroll-container::-webkit-scrollbar{height:8px}.ellm-graph__scroll-container::-webkit-scrollbar-track{background:#f3f4f6}.ellm-graph__scroll-container::-webkit-scrollbar-thumb{background:#d7dbe3;border-radius:4px}.ellm-graph__scroll-container::-webkit-scrollbar-thumb:hover{background:#b1b5be}.audit-table .p-datatable-thead>tr>th .p-column-header-content{justify-content:center}.audit-table .p-datatable-tbody>tr>td{height:92px}.tc-root--fullscreen{border-radius:0;height:100vh!important;position:fixed;z-index:9999}.tg-cell .p-datatable-wrapper{max-height:90vh!important}.q-skeleton{display:flex;flex-direction:column;gap:12px;padding:10px}.q-skeleton-card,.q-skeleton-line,.q-skeleton-pill,.q-skeleton-sparkline-path{background:#eef1f5;overflow:hidden;position:relative}.q-skeleton-card:after,.q-skeleton-line:after,.q-skeleton-pill:after{animation:q-shimmer 1.6s ease-in-out infinite;background:linear-gradient(90deg,#0000,#ffffffa6 50%,#0000);content:"";inset:0;position:absolute;transform:translateX(-100%)}@keyframes q-shimmer{to{transform:translateX(100%)}}.q-skeleton-toolbar{align-items:center;justify-content:space-between}.q-skeleton-presets,.q-skeleton-toolbar{display:flex;gap:8px}.q-skeleton-pill{border-radius:8px;height:32px;width:64px}.q-skeleton-pill--wide{width:72px}.q-skeleton-pill--filter{width:88px}.q-skeleton-pill--selector{border-radius:8px;height:34px;width:110px}.q-skeleton-card{border:1px solid #eef1f5;border-radius:14px;padding:16px 20px}.q-skeleton-graph{padding:20px}.q-skeleton-graph-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:18px}.q-skeleton-line{border-radius:6px}.q-skeleton-line--title{height:16px;margin-bottom:8px;width:160px}.q-skeleton-line--subtitle{height:12px;width:100px}.q-skeleton-graph-body{align-items:flex-end;display:flex;height:180px}.q-skeleton-sparkline{height:100%;width:100%}.q-skeleton-sparkline-path{stroke:#dbe1e8;stroke-width:3;background:none}.q-skeleton-kpis{display:flex;flex-wrap:wrap;gap:10px}.q-skeleton-kpi{flex:1 1 200px;min-width:200px}.q-skeleton-line--label{height:12px;margin-bottom:12px;width:90px}.q-skeleton-line--value{height:24px;margin-bottom:10px;width:70px}.q-skeleton-line--sublabel{height:10px;width:110px}@media (prefers-reduced-motion:reduce){.q-skeleton-card:after,.q-skeleton-line:after,.q-skeleton-pill:after{animation:none}}.q-date-filter{display:flex;flex-direction:column;gap:12px}.q-date-filter-toolbar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;gap:16px;justify-content:space-between;padding:12px 16px}.q-date-filter-toolbar,.q-preset-container{align-items:center;display:flex;flex-wrap:wrap}.q-preset-container{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:6px}.q-preset-btn{background:#0000;border:none;border-radius:999px;color:#334155;cursor:pointer;font-size:14px;font-weight:500;outline:none;padding:10px 20px;transition:.2s}.q-preset-btn:hover{background:#f9fafb}.q-preset-btn.active{background:#6d28d9;color:#fff}.q-live-chip{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;display:flex;font-size:14px;font-weight:500;gap:8px;height:33px;padding:0 16px}.q-live-dot{background:#15803d;border-radius:50%;height:8px;width:8px}.q-filter-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#475569;cursor:pointer;display:flex;font-family:Inter;font-weight:500;gap:8px;height:33px;padding:5.25px 8.75px}.q-filter-btn:hover{background:#f9fafb}.q-filter-badge{align-items:center;background:#6d28d9;border-radius:50%;color:#fff;display:flex;font-size:12px;height:20px;justify-content:center;width:20px}.q-custom-container{align-items:flex-end;background:#fff;background:#f8fafc;border:1px solid #e4e7ec;border-radius:16px;display:flex;gap:16px;padding:16px}.q-refresh-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#262d33;cursor:pointer;display:flex;font-family:Inter;font-size:14px;font-weight:500;gap:12px;height:33px;padding:6px 9px}.q-refresh-btn:hover{background:#f9fafb}.q-apply-btn{align-items:center;background:#6d28d9;border:1px solid #e2e8f0;border-radius:6px;color:#fff;display:flex;font-family:Inter;font-size:14px;gap:12px;height:33px;margin-bottom:8px;padding:7px 11px}.q-apply-btn:hover{background:#5b21b6}.q-apply-btn:disabled{opacity:.7}.q-custom-container .p-calendar{width:280px}.q-custom-container .p-inputtext{width:100%}@media (max-width:650px){.q-date-separator{display:none}}@media (max-width:1124px){.q-custom-container{flex-wrap:wrap}.q-preset-container{border-radius:16px}}.q-spin{animation:q-spin 1s linear infinite}@keyframes q-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.date-picker{align-items:flex-start;background:#fff;border-radius:10px;box-shadow:0 8px 24px #0000001f;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;padding:10px 12px;width:260px}.date-picker__header{align-items:center;display:flex;justify-content:space-between;width:100%}.header-selects{align-items:center;display:flex;gap:4px}.header-select{appearance:none;-webkit-appearance:none;background:#f8fafc;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 5px center;background-repeat:no-repeat;border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;font-weight:600;outline:none;padding:3px 20px 3px 7px}.header-select:hover{border-color:#94a3b8}.header-select:focus{border-color:#2563eb}.month-label{color:#0f172a;font-size:13px;font-weight:600}.nav-btn{background:none;border:none;color:#475569;cursor:pointer;font-size:16px;line-height:1;padding:0 4px}.date-picker__top-actions{display:flex;gap:6px;width:100%}.selected-date{border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;flex:1}.selected-date,.today-btn{font-size:12px;padding:5px 8px}.today-btn{background:#fff;border:1px solid #2563eb;border-radius:6px;color:#2563eb;cursor:pointer}.today-btn--disabled{border-color:#94a3b8;color:#94a3b8;cursor:not-allowed;opacity:.4;pointer-events:none}.date-picker__weekdays{color:#64748b;font-size:11px;font-weight:500;text-align:center}.date-picker__days,.date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.date-picker__days{gap:3px}.day{align-items:center;background:#0000;border:none;border-radius:50%;color:#0f172a;cursor:pointer;display:flex;font-size:12px;height:28px;justify-content:center;margin:auto;width:28px}.day--disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.day:hover{background:#f1f5f9}.day--today{background:#e2e8f0;font-weight:600}.day--selected{background:#2563eb;color:#fff}.month-label-click,.year-label-click{border-radius:4px;cursor:pointer;padding:1px 3px;transition:background .1s}.month-label-click:hover,.year-label-click:hover{background:#f1f5f9}.date-picker__month-grid{display:grid;gap:4px;grid-template-columns:repeat(3,1fr);width:100%}.month-cell{background:#0000;border:none;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;padding:6px 0;text-align:center}.month-cell:hover{background:#f1f5f9}.month-cell--selected{background:#2563eb;color:#fff}.date-picker__year-grid{display:grid;gap:4px;grid-template-columns:repeat(4,1fr);width:100%}.year-cell{background:#0000;border:none;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;padding:6px 0;text-align:center}.year-cell:hover{background:#f1f5f9}.year-cell--selected{background:#2563eb;color:#fff}.q-date-selector{padding:7px 10px;position:relative}.q-date-selector__label{color:#475569;display:block;font-family:Inter;font-size:14px;font-weight:500;margin-bottom:10px}.q-date-selector__trigger{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:6px;color:#1e293b;cursor:pointer;display:flex;font-size:14px;font-weight:400;height:33px;justify-content:space-between;padding:0 18px;width:100%}.q-date-selector__trigger:hover{border-color:#b8c0cc}.q-date-selector__panel{left:0;position:absolute;top:calc(100% + 8px);z-index:1000}.q-date-selector__panel--top{bottom:calc(100% + 8px);top:auto}.metric-card{background:#f8fafc33;border:1px solid #e2e8f0;border-radius:24px;box-sizing:border-box;flex:1;min-width:266px;padding:24px;transition:all .2s ease;width:fit-content}.metric-card:hover{box-shadow:0 4px 12px #0000000d}.metric-card__content{align-items:center;display:flex;gap:24px;height:100%;justify-content:space-between}.metric-card__title{color:#00000080;font-size:14px;font-weight:400;margin-bottom:4px}.metric-card__value{display:flex;font-size:25px;font-weight:700;gap:4px}.metric-card__delta,.metric-card__value{align-items:center;line-height:1;margin-top:4px}.metric-card__delta{display:inline-flex;font-size:13px;font-weight:600;gap:3px;white-space:nowrap}.metric-card__delta-caption{font-size:12px;font-weight:500;margin-left:2px;opacity:.65}.metric-card__value-skeleton{animation:metric-card-shimmer 1.4s ease infinite;background:linear-gradient(90deg,#0000000f 25%,#0000001f 37%,#0000000f 63%);background-size:400% 100%;border-radius:6px;display:inline-block;height:25px;width:72px}@keyframes metric-card-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.metric-card__subtitle{color:#64748b;font-size:12px;font-weight:500;margin-top:10px}.metric-card__icon-container{align-items:center;background:#7c3aed1a;border-radius:6px;color:#6d28d9;display:flex;height:40px;justify-content:center;width:40px}.metric-card__stats{align-items:flex-start;display:flex;gap:20px;margin-bottom:16px;margin-top:12px}.metric-card__stat{display:flex;flex-direction:column;gap:6px;position:relative}.metric-card__stat-label{align-items:center;color:#64748b;display:flex;font-size:12px;font-weight:500;gap:6px}.metric-card__dot{border-radius:50%;height:8px;width:8px}.metric-card__stat-value{color:#262d33;font-family:Inter;font-size:14px;font-weight:700}.metric-card__divider{background:#e2e8f0;height:100%;position:absolute;right:-12px;top:0;width:1px}.metric-card__progress{background:#ede9fe;border-radius:999px;display:flex;height:10px;overflow:hidden;width:100%}.metric-card__progress-segment{height:100%}.metric-card__stats{margin-top:0}@media (max-width:1000px){.metric-card__title{font-size:12px}.metric-card__subtitle{font-size:10px;margin-top:10px}.metric-card__value{font-size:25px}.metric-card__stats{gap:20px;margin-bottom:16px}.metric-card__stat-value{font-size:14px}.metric-card__icon-container{height:40px;margin-top:8px;width:40px}.metric-card__icon-container svg{height:24px!important;width:24px!important}}@media (max-width:768px){.metric-card__content--has-segments{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto}.metric-card__content--has-segments>:first-child{grid-area:1/1}.metric-card__content--has-segments>:nth-child(2){grid-area:2/1/2/3}.metric-card__content--has-segments>:nth-child(3){grid-area:1/2}.metric-card__value{font-size:22px}.metric-card__stats{gap:16px;margin-bottom:12px}.metric-card__stat-value{font-size:14px}.metric-card__icon-container{height:38px;margin-top:4px;width:38px}.metric-card__icon-container svg{height:20px!important;width:20px!important}}.log-filterSidebar{width:400px}.log-filterTitle{color:#334155;font-family:Inter;font-size:18px;font-weight:600}.log-filterBody{display:flex;flex-direction:column;gap:16px}.log-filterBlock .log-filterLabel{color:#334155;font-family:Inter;font-size:14px;font-weight:600}.log-filterHint{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;line-height:130%;margin-top:4px}.log-filterFooter{background:#fff;bottom:0;display:flex;gap:10px;justify-content:flex-end;left:0;padding:12px 16px;position:absolute;right:0}.log-btnReset{background:#fff;border:1px solid #e2e8f0;color:#64748b}.log-btnApply,.log-btnReset{border-radius:6px;font-family:Inter;font-size:14px;font-weight:500;padding:8px 11px}.log-btnApply{background:#5925dc;color:#fff}.log-filter-date .drs__trigger{margin-top:12px;width:100%}.log-filterEmpty{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:6px;color:#94a3b8;font-family:Inter;font-size:13px;font-weight:500;padding:10px 12px;text-align:center}.drs{position:relative}.drs__trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#475569;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;height:40px;padding:0 18px;transition:.2s ease}.drs__trigger:hover{background:#f8fafc;border-color:#dbe3ef}.drs__label{color:#6b7280;font-family:Inter;font-size:14px}.drs__popover{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 16px 40px #00000024;position:absolute;right:0;top:60px;width:340px;z-index:9999}.drs__header{align-items:center;display:flex;justify-content:space-between;padding:16px 16px 10px}.drs__month{color:#1e293b;display:flex;font-family:Inter,sans-serif;font-size:17px;font-weight:700;gap:5px}.drs__month-click,.drs__year-click{border-radius:4px;cursor:pointer;padding:1px 4px;transition:background-color .15s ease}.drs__month-click:hover,.drs__year-click:hover{background:#f1f5f9;color:#635ae3}.drs__nav{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#64748b;cursor:pointer;display:inline-flex;height:34px;justify-content:center;width:34px}.drs__nav:hover{background:#f8fafc;color:#1e293b}.drs__inputs{gap:8px;padding:0 16px 12px}.drs__input-box,.drs__inputs{align-items:center;display:flex}.drs__input-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;flex:1;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:36px;padding:0 10px;transition:border-color .15s ease}.drs__input-box.is-active{background:#fff;border-color:#635ae3}.drs__input-placeholder{color:#94a3b8;font-weight:400}.drs__input-sep{color:#94a3b8;font-size:16px}.drs__week{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 4px}.drs__weekday{color:#94a3b8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:4px 0;text-align:center}.drs__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 12px;row-gap:2px}.drs__day{align-items:center;background:#0000;border:none;color:#0f172a;cursor:pointer;display:flex;font-family:Inter,sans-serif;font-size:14px;font-weight:400;height:36px;justify-content:center;padding:0;position:relative;width:100%}.drs__day.is-disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.drs__day-inner{align-items:center;border-radius:50%;display:flex;height:34px;justify-content:center;position:relative;transition:background-color .12s ease;width:34px;z-index:1}.drs__day:hover:not(.is-start):not(.is-end) .drs__day-inner{background:#f1f5f9}.drs__day.is-out{color:#cbd5e1}.drs__day.is-range-start:before,.drs__day.is-range:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;z-index:0}.drs__day.is-range-start:before{left:50%}.drs__day.is-range-end:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;right:50%;z-index:0}.drs__day.is-row-first:before{border-radius:50% 0 0 50%}.drs__day.is-row-last:before{border-radius:0 50% 50% 0}.drs__day.is-end .drs__day-inner,.drs__day.is-start .drs__day-inner{background:#635ae3;color:#fff;font-weight:600}.drs__day.is-end:hover .drs__day-inner,.drs__day.is-start:hover .drs__day-inner{background:#4f46d8}.drs__month-grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:8px 16px 16px}.drs__month-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:500;height:44px}.drs__month-cell:hover{background:#f1f5f9}.drs__month-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__year-grid{display:grid;gap:8px;grid-template-columns:repeat(4,1fr);padding:8px 16px 16px}.drs__year-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:44px;transition:background-color .15s ease}.drs__year-cell:hover{background:#f1f5f9}.drs__year-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__footer{border-top:1px solid #eef2f7;display:flex;gap:10px;justify-content:flex-end;padding:12px 16px}.drs__btn{border:1px solid #0000;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:600;height:40px;padding:0 20px}.drs__btn--ghost{background:#fff;border-color:#e5e7eb;color:#475569}.drs__btn--ghost:hover{background:#f8fafc}.drs__btn--primary{background:#635ae3;color:#fff}.drs__btn--primary:hover{background:#4f46d8}.drs__btn--primary:disabled{cursor:not-allowed;opacity:.45}.audit-filterBlock .date-range-wrapper,.audit-filterControl,.cms-root{width:100%}.cms-root{position:relative}.cms-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.cms-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.cms-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.cms-hasValue{color:#334155}.cms-chevron{color:#64748b}.cms-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px #1018281f;left:0;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:9999}.cms-searchRow{align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;display:flex;gap:10px;height:40px;margin-bottom:10px;padding:0 12px}.cms-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.cms-divider{background:#e2e8f0;height:1px;margin:10px 0}.cms-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.cms-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;min-height:30px;padding:0 8px}.cms-item:hover{background:#f8fafc}.cms-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.cms-checked{background:#5925dc;border-color:#5925dc}.cms-itemText{color:#334155;font-family:Inter;font-size:14px}.cti-input{border:1px solid #e2e8f0;border-radius:8px;box-sizing:border-box;font-size:14px;height:40px;outline:none;padding:0 18px;width:100%}.cti-input:disabled{background:#f8fafc;cursor:not-allowed}.cti-wrapper{position:relative}.cti-search-icon{color:#666f8d;left:12px;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.cti-input--with-icon{padding-left:40px}.css-root{position:relative;width:100%}.css-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.css-trigger:disabled{cursor:not-allowed;opacity:.6}.css-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.css-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.css-hasValue{color:#0f172a}.css-chevron{color:#334155}.css-panel{background:#fff;box-shadow:0 8px 24px #1018281f;left:0;overflow:hidden;padding:10px;position:absolute;right:0;top:calc(100% + 4px);z-index:1000}.css-panel,.css-searchRow{border:1px solid #e2e8f0;border-radius:8px}.css-searchRow{align-items:center;color:#64748b;display:flex;gap:10px;height:40px;margin-bottom:10px;padding:0 12px}.css-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.css-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.css-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;justify-content:space-between;min-height:30px;padding:0 8px}.css-item:hover{background:#f8fafc}.css-selected{background:#f4f0fe}.css-selected:hover{background:#ece5fd}.css-selected .css-itemText{color:#5925dc;font-weight:500}.css-itemCheck{color:#5925dc;font-size:14px;font-weight:700}.css-itemText{font-size:14px}.css-empty{color:#94a3b8;padding:16px;text-align:center}.css-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.css-checked{background:#5925dc;border-color:#5925dc}.ellm-chart{display:block;font-size:12px;width:100%}.ellm-chart .recharts-responsive-container{height:100%!important;width:100%!important}.ellm-chart .recharts-cartesian-axis-tick text{fill:#6b7280}.ellm-chart .recharts-cartesian-grid line[stroke="#ccc"]{stroke:#eef0f4}.ellm-chart .recharts-curve.recharts-tooltip-cursor{stroke:#d7dbe3}.ellm-chart .recharts-dot[stroke="#fff"]{stroke:#0000}.ellm-chart .recharts-layer{outline:none}.ellm-chart .recharts-sector[stroke="#fff"]{stroke:#0000}.ellm-chart .recharts-sector,.ellm-chart .recharts-surface{outline:none}.ellm-chart .recharts-reference-line[stroke="#ccc"]{stroke:#e5e7eb}.ellm-chart__tooltip{background:#fff;border:1px solid #0000000f;border-radius:8px;box-shadow:0 6px 20px #0000001f;color:#111827;display:grid;font-size:12px;gap:6px;min-width:8rem;padding:8px 10px}.ellm-chart__tooltip-label{color:#111827;font-weight:600}.ellm-chart__tooltip-items{display:grid;gap:6px}.ellm-chart__tooltip-item{align-items:center;display:flex;gap:8px;width:100%}.ellm-chart__tooltip-row{align-items:center;display:flex;flex:1;gap:12px;justify-content:space-between;line-height:1}.ellm-chart__tooltip-row--nested{align-items:flex-end}.ellm-chart__tooltip-grid{display:grid;gap:2px}.ellm-chart__tooltip-name{color:#6b7280}.ellm-chart__tooltip-value{color:#111827;font-variant-numeric:tabular-nums;font-weight:600}.ellm-chart__indicator{background:var(--indicator-color);border-color:var(--indicator-color);flex-shrink:0}.ellm-chart__indicator--dot{border-radius:50%;height:10px;width:10px}.ellm-chart__indicator--line{border-radius:2px;height:14px;width:4px}.ellm-chart__indicator--dashed{background:#0000;border:1.5px dashed var(--indicator-color);height:0;height:14px;margin:0 1px;width:0}.ellm-chart__legend{align-items:center;display:flex;flex-wrap:wrap;gap:16px;padding-top:10px}.ellm-chart__legend--top{padding-bottom:10px;padding-top:0}.ellm-chart__legend--start{justify-content:flex-start}.ellm-chart__legend--center{justify-content:center}.ellm-chart__legend--end{justify-content:flex-end}.ellm-chart__legend-item{align-items:center;background:none;border:none;color:#111827;display:inline-flex;font-family:inherit;font-size:12.5px;gap:7px;padding:2px 0;transition:opacity .15s ease}.ellm-chart__legend-item--off{opacity:.4}.ellm-chart__legend-marker{display:block;flex-shrink:0;overflow:visible}.ellm-graph{--ellm-graph-fg:#111827;--ellm-graph-muted:#6b7280;--ellm-graph-border:#e5e7eb;--ellm-graph-radius:12px;background:#fff;border:1px solid var(--ellm-graph-border);border-radius:var(--ellm-graph-radius);color:var(--ellm-graph-fg);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;padding:20px;width:100%}.ellm-graph,.ellm-graph *{box-sizing:border-box}.ellm-graph__header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin-bottom:16px;margin-top:10px}.ellm-graph__heading{align-items:center;display:flex;gap:10px;min-width:0}.ellm-graph__icon{align-items:center;background:#f3f4f6;border-radius:9px;color:#4f46e5;display:inline-flex;flex-shrink:0;height:34px;justify-content:center;width:34px}.ellm-graph__title{font-size:15px;font-weight:600;line-height:1.3}.ellm-graph__description{color:var(--ellm-graph-muted);font-size:12.5px;line-height:1.4;margin-top:2px}.ellm-graph__controls{align-items:center;display:flex;flex-shrink:0;flex-wrap:wrap;gap:10px}.ellm-graph__panes{display:flex;flex-direction:column}.ellm-graph__pane{background:#fff;border:1px solid var(--ellm-graph-border);border-radius:10px;min-width:0;padding:12px 12px 4px}.ellm-graph__pane-title{color:var(--ellm-graph-muted);font-size:12.5px;font-weight:600;margin-bottom:4px}.ellm-graph__legend{align-items:center;display:flex;flex-wrap:wrap;gap:20px;justify-content:center;padding-top:16px}.ellm-graph__legend-item{align-items:center;background:none;border:none;color:var(--ellm-graph-fg);cursor:pointer;display:inline-flex;font-family:inherit;font-size:12.5px;gap:7px;padding:2px 0;transition:opacity .15s ease}.ellm-graph__legend-item--off{opacity:.4}.ellm-graph__legend-marker{display:block;flex-shrink:0;overflow:visible}.ellm-graph__plotby{flex-shrink:0;position:relative}.ellm-graph__plotby-btn{align-items:center;background:#fff;border:1px solid var(--ellm-graph-border);border-radius:10px;color:#4b5563;cursor:pointer;display:inline-flex;font-family:inherit;font-size:14px;gap:10px;height:40px;padding:0 14px;transition:.18s ease}.ellm-graph__plotby-btn:hover{background:#f8fafc;border-color:#dbe3ef}.ellm-graph__plotby-btn--open{border-color:#6d28d9;color:#6d28d9}.ellm-graph__plotby-btn--open svg{color:#6d28d9}.ellm-graph__plotby-value{color:#111827;font-weight:600}.ellm-graph__plotby-btn--open .ellm-graph__plotby-value{color:#6d28d9}.ellm-graph__plotby-chevron{margin-left:2px;transition:transform .18s ease}.ellm-graph__plotby-btn--open .ellm-graph__plotby-chevron{transform:rotate(180deg)}.ellm-graph__plotby-menu{background:#fff;border:1px solid var(--ellm-graph-border);border-radius:12px;box-shadow:0 12px 28px #0000001f;min-width:160px;padding:6px;position:absolute;right:0;top:48px;z-index:50}.ellm-graph__plotby-option{background:#fff;border:none;border-radius:9px;color:#374151;cursor:pointer;display:block;font-family:inherit;font-size:14px;margin:2px 0;padding:9px 14px;text-align:left;transition:background .15s ease;width:100%}.ellm-graph__plotby-option:hover{background:#f3f4f6}.ellm-graph__plotby-option--active{background:#f5f3ff;color:#6d28d9;font-weight:600}.ellm-graph__empty,.ellm-graph__loading{align-items:center;color:var(--ellm-graph-muted);display:flex;font-size:13px;justify-content:center;min-height:120px}.ellm-graph__empty-default{align-items:center;display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:180px;padding:24px 16px;text-align:center}.ellm-graph__empty-icon{align-items:center;background:#f3f4f6;border-radius:12px;color:#9ca3af;display:inline-flex;height:44px;justify-content:center;margin-bottom:4px;width:44px}.ellm-graph__empty-title{color:var(--ellm-graph-fg);font-size:14px;font-weight:600}.ellm-graph__empty-desc{color:var(--ellm-graph-muted);font-size:12.5px;line-height:1.5;max-width:340px}.ellm-graph__skeleton{display:flex;gap:10px;min-height:180px;padding:8px 0 4px;width:100%}.ellm-graph__shimmer{background:#eef1f5;overflow:hidden;position:relative}.ellm-graph__shimmer:after{animation:ellm-graph-shimmer 1.6s ease-in-out infinite;background:linear-gradient(90deg,#0000,#ffffffa6 50%,#0000);content:"";inset:0;position:absolute;transform:translateX(-100%)}@keyframes ellm-graph-shimmer{to{transform:translateX(100%)}}.ellm-graph__skeleton-yaxis{display:flex;flex-direction:column;flex-shrink:0;justify-content:space-between;padding:4px 0 22px}.ellm-graph__skeleton-plot{display:flex;flex:1;flex-direction:column;min-width:0;position:relative}.ellm-graph__skeleton-grid{display:flex;flex-direction:column;inset:0 0 22px 0;justify-content:space-between;position:absolute}.ellm-graph__skeleton-gridline{background:#eef1f5;height:1px;width:100%}.ellm-graph__skeleton-svg{flex:1;min-height:0;position:relative;width:100%}.ellm-graph__skeleton-line{stroke:#dbe1e8;stroke-width:2.5;vector-effect:non-scaling-stroke}.ellm-graph__skeleton-area-top{stop-color:#dbe1e8;stop-opacity:.45}.ellm-graph__skeleton-area-bottom{stop-color:#dbe1e8;stop-opacity:0}.ellm-graph__skeleton-xaxis{display:flex;height:12px;justify-content:space-between;margin-top:10px}.ellm-graph__skeleton-tick{border-radius:4px}.ellm-graph__skeleton-yaxis .ellm-graph__skeleton-tick{height:10px;width:28px}.ellm-graph__skeleton-xaxis .ellm-graph__skeleton-tick{height:10px;width:40px}@media (prefers-reduced-motion:reduce){.ellm-graph__shimmer:after{animation:none}}.analytics-chart{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:24px}.analytics-chart__title{color:#111827;font-size:20px;font-weight:600;margin:0 0 24px}.th-table-toolbar{align-items:center;border-top-left-radius:8px;border-top-right-radius:8px;box-sizing:border-box;display:flex;gap:8px;height:60px;justify-content:center;width:100%}.th-table-toolbar__search{align-items:center;display:flex;flex:1}.th-table-toolbar__search-wrapper{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:6px;display:flex;height:35px;overflow:hidden;width:100%}.th-table-toolbar__search-input{background:#0000;border:none;color:#767676;flex:1;font-size:14px;font-weight:400;height:100%;outline:none;padding:0 12px}.th-table-toolbar__search-input::placeholder{color:#a0a8b8}.th-table-toolbar__search-input:focus{box-shadow:none;outline:none}.th-table-toolbar__search-input--disabled{background:#f3f4f6;cursor:not-allowed}.th-table-toolbar__search-btn-left{border:none;border-right:1px solid #e2e8f0}.th-table-toolbar__search-btn-left,.th-table-toolbar__search-btn-right{align-items:center;background:#fff;color:#6b7280;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:8px;height:100%;padding:0 12px;transition:background-color .2s ease,color .2s ease;white-space:nowrap}.th-table-toolbar__search-btn-right{border:none;border-left:1px solid #e2e8f0}.th-table-toolbar__search-btn:hover{background:#f9fafb}.th-table-toolbar__search-btn--disabled{color:#9ca3af;cursor:not-allowed;pointer-events:none}.th-table-toolbar__actions{align-items:center;display:flex;position:relative}.th-table-toolbar__btn{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:6px;color:#374151;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:8px;height:35px;justify-content:center;margin-left:8px;padding:0 12px;transition:all .2s ease;white-space:nowrap}.th-table-toolbar__btn:first-child{margin-left:0}.th-table-toolbar__btn--disabled{cursor:not-allowed;opacity:.5}.th-table-toolbar__btn--default{background:#fff;border-color:#d0d5dd;color:#374151}.th-table-toolbar__btn--filter-open{background:#f5f3ff;border-color:#a78bfa;color:#6d28d9}.th-table-toolbar__btn--filter-active,.th-table-toolbar__btn--sort-active{border-color:#4f46e5;color:#4f46e5}.th-table-toolbar__btn--refresh:active{border-color:#818cf8;color:#4f46e5}.th-table-toolbar__icon{flex-shrink:0;height:16px;width:16px}.th-table-toolbar__icon--primary{stroke:#4f46e5}.th-table-toolbar__badge{align-items:center;background:#eef2ff;border-radius:999px;display:inline-flex;gap:3.5px;padding:3px 7px}.th-table-toolbar__badge-text{color:#4f46e5;font-size:11px;font-weight:500}.th-table-toolbar__dropdown-wrapper{align-items:center;display:flex;position:relative}.th-table-toolbar__dropdown{background:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 4px 12px #1018281f;position:absolute;right:0;top:22px;width:250px;z-index:50}.th-table-toolbar__dropdown-item{align-items:center;color:#111827;cursor:pointer;display:flex;font-size:14px;height:38px;justify-content:space-between;padding:0 24px}.th-table-toolbar__dropdown-item:hover{background:#f3f4f6}.th-table-toolbar__dropdown-item--selected{background:#eef2ff;color:#4f46e5;font-weight:600}.th-table-toolbar__dropdown-footer{border-top:1px solid #eaecf0;padding:12px 16px;text-align:right}.th-table-toolbar__clear-btn{background:#0000;border:none;color:#475467;cursor:pointer;font-size:14px}.tg-root{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-width:0;width:100%}.tg-toolbar-row{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.tg-toolbar-left{min-width:0}.tg-toolbar,.tg-toolbar-left{align-items:center;display:flex;gap:8px}.tg-toolbar{margin-left:auto}.tg-toolbar-label{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;white-space:nowrap}.tg-toggle{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;gap:2px;padding:2px}.tg-toggle,.tg-toggle-btn{align-items:center;display:inline-flex}.tg-toggle-btn{background:#0000;border:1px solid #0000;border-radius:6px;color:#64748b;cursor:pointer;height:28px;justify-content:center;padding:0;transition:background .15s ease,color .15s ease;width:28px}.tg-toggle-btn:hover{background:#eef2f7;color:#334155}.tg-toggle-btn--active{background:#fff;border-color:#e2e8f0;box-shadow:0 1px 2px #1018280f;color:#7c3aed}.tg-toggle-btn--cramped{opacity:.45}.tg-grid{align-items:stretch;display:grid;min-width:0;width:100%}.tg-grid--auto-height{align-items:start}.tg-cell{box-sizing:border-box;display:flex;flex-direction:column}.tg-cell,.tg-cell>*{max-width:100%;min-width:0}.tg-cell>*{flex:1 1 auto;min-height:0}.tg-grid--auto-height .tg-cell>*{flex:0 0 auto}.tg-cell .p-datatable-wrapper{border-radius:12px;height:100%;overflow-x:auto}.q-sort{position:relative}.q-sort__trigger{background:#fff;border:1px solid #dbe4ee;border-radius:6px;color:#475467;cursor:pointer;height:31px;justify-content:space-between;padding:7px 0 7px 8px}.q-sort__left,.q-sort__trigger{align-items:center;display:flex}.q-sort__left{color:#475569;font-family:Inter;font-size:14px;gap:12px}.q-sort__menu{background:#fff;border:1px solid #dbe4ee;border-radius:12px;box-shadow:0 8px 24px #00000014;left:0;padding:8px 12px;position:absolute;top:calc(100% + 8px);width:100%;z-index:1000}.q-sort__option{background:#0000;border:none;border-radius:6px;color:#475569;cursor:pointer;font-family:Inter;font-size:13px;font-weight:500;padding:8px;text-align:left;width:100%}.q-sort__option:hover{background:#f8fafc}.q-sort__option--active{background:#f5f3ffe6;color:#0f172a;font-weight:500}.tc-root{background:#fff;border:1px solid #eeeef2;border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;overflow:visible;padding:8px 20px 16px;width:100%}.tc-root--fullscreen .tc-table{flex:1;min-height:0}.tc-root--fullscreen{background:#fff;border-radius:1;left:0;top:0;width:100vw!important;z-index:9}.tc-header{flex-wrap:wrap;justify-content:space-between;padding:30px 12px}.tc-header,.tc-header-left{align-items:center;display:flex}.tc-header-left{gap:12px}.tc-title-icon{align-items:center;color:#344054;display:flex;justify-content:center}.tc-title{color:#242533;font-family:Inter;font-size:18px;font-weight:600;line-height:16px}.tc-expand-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:4px;color:#475467;cursor:pointer;display:flex;height:28px;justify-content:center;width:28px}.tc-expand-btn:hover{background:#f8fafc}.tc-table{flex:1;min-height:0;overflow:hidden}.tc-header-right{display:flex;flex-wrap:wrap;gap:12px}.tc-search{border-radius:6px;color:#475569;font-family:Inter;font-size:14px;height:31px;padding-left:30px;width:254px}.tc-pagination-wrapper{margin-top:8px;padding:4px 0}.t-pagination{align-items:center;background:#fff;display:flex;font-family:Inter,sans-serif;justify-content:space-between}.t-pagination-left{color:#344054;font-size:14px;font-weight:500}.t-pagination-right{align-items:center;display:flex;gap:24px}.t-pagination-count{color:#344054;font-size:14px;font-weight:500}.t-pagination-nav{align-items:center;display:flex;gap:12px}.t-pagination-icon{align-items:center;background:#0000;border:none;color:#344054;cursor:pointer;display:flex;height:28px;justify-content:center;width:28px}.t-pagination-icon:hover:not(:disabled){background:#f2f4f7;border-radius:6px}.t-pagination-icon:disabled{color:#d0d5dd;cursor:not-allowed}.t-pagination-select-wrapper{position:relative}.t-pagination-select{appearance:none;-webkit-appearance:none;background:#fff;border:1px solid #d0d5dd;border-radius:8px;color:#344054;cursor:pointer;font-size:14px;font-weight:600;height:40px;padding:0 34px 0 14px;width:71px}.t-pagination-chevron{pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.audit-tableWrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;height:100%;overflow:hidden}.audit-table .p-datatable-tbody>tr:nth-child(odd){background:#f8fafc}.audit-table .p-datatable-tbody>tr:hover{background:#eff5ff!important}.audit-table .p-datatable-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#6b7280;font-family:Inter;font-size:12px;font-weight:600;height:54px;padding:8px 16px}.audit-table .p-datatable-thead>tr>th .p-column-header-content{align-items:center;justify-content:flex-start}.audit-table.col-header-align-left .p-datatable-thead>tr>th .p-column-header-content{justify-content:flex-start}.audit-table.col-header-align-center .p-datatable-thead>tr>th .p-column-header-content{justify-content:center}.audit-table.col-header-align-right .p-datatable-thead>tr>th .p-column-header-content{justify-content:flex-end}.audit-table.col-cell-align-left .p-datatable-tbody>tr>td{text-align:left}.audit-table.col-cell-align-center .p-datatable-tbody>tr>td{text-align:center}.audit-table.col-cell-align-right .p-datatable-tbody>tr>td{text-align:right}.p-datatable .p-sortable-column .p-sortable-column-icon{height:12px!important;width:12px!important}.audit-table .p-datatable-tbody>tr>td{border-bottom:1px solid #eef2f7;color:#101828;font-family:Inter;font-size:14px;font-weight:400;padding:16px}.audit-modifiedBy{align-items:center;display:flex;justify-content:center}.audit-actionCell{display:flex;flex-direction:column;gap:6px}.audit-chip{border-radius:6px;font-family:Inter;font-size:9px;font-weight:500;gap:5px;padding:4px 7px;width:fit-content}.audit-chip,.audit-chip__icon{align-items:center;display:inline-flex}.audit-chip__icon{justify-content:center}.audit-chip--purple{background:#ede9fe;color:#6d28d9}.audit-chip--orange{background:#ffedd5;color:#c2410c}.audit-actionText{color:#111827;font-size:12px;line-height:1.35}.audit-seeMore{background:#0000;border:0;color:#6d28d9;cursor:pointer;font-size:12px;font-weight:400;margin-left:4px;padding:0}.audit-dateCell{color:#101828;font-family:Inter;text-align:center}.audit-emptyState{align-items:center;color:#64748b;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.audit-emptyTitle{font-size:16px;font-weight:600;margin-top:8px}.audit-emptyDesc{font-size:13px;margin-top:4px}.audit-skeletonRow{display:flex;gap:16px;padding:12px 0}.audit-operation-body{align-items:center;display:flex;justify-content:center}.audit-logIdBody{margin:0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-table .p-datatable-tbody>tr.audit-row--clickable{cursor:pointer}.audit-table .p-datatable-tbody>tr.p-datatable-row-expansion>td{background:#fff;padding:0}.audit-rowDetail{background:#fff;border-top:1px solid #eef2f7;padding:16px 20px}.audit-table .p-datatable-tfoot>tr>.audit-paginationEnd{background:#fff;border:0;height:auto;padding:12px 16px;text-align:center}.audit-paginationEndContent{align-items:center;background:#f0fdf4;border-radius:999px;color:#15803d;display:inline-flex;font-family:Inter,sans-serif;font-size:12px;font-weight:500;gap:7px;line-height:1;padding:6px 11px}.audit-paginationEndContent .pi{font-size:13px}
|
|
1
|
+
.App{height:100vh;overflow-y:auto;width:100vw}.chart-scroll{-webkit-overflow-scrolling:touch;background:var(--bg);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);overflow-x:auto;overflow-y:hidden;scrollbar-color:var(--accent-border) #0000;scrollbar-width:thin;width:100%}.chart-scroll::-webkit-scrollbar{height:10px}.chart-scroll::-webkit-scrollbar-track{background:#0000}.chart-scroll::-webkit-scrollbar-thumb{background:var(--accent-border);border-radius:999px}.chart-scroll::-webkit-scrollbar-thumb:hover{background:var(--accent)}.chart-inner{width:2600px}.ellm-graph__legend-item{--checkbox-color:currentColor}.ellm-graph__legend-checkbox{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:#fff;border:2px solid;border-color:inherit;border-radius:4px;cursor:pointer;flex-shrink:0;height:16px;position:relative;transition:all .15s ease;width:16px}.ellm-graph__legend-checkbox:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.ellm-graph__legend-checkbox:checked:after{color:#fff;content:"✓";font-size:11px;font-weight:700;left:50%;line-height:1;position:absolute;top:50%;transform:translate(-50%,-50%)}.ellm-graph__liveLabelContainer{align-items:center;display:flex;gap:16px;height:100%;width:100%}.ellm-graph__liveLabel{align-items:center;color:#dc2626;display:flex;font-size:12px;font-weight:600,;gap:6px;height:100%;padding:0 12px}.pulse{animation:pulse 1.5s infinite}@keyframes pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}.ellm-graph__scroll-container{border-radius:var(--ellm-graph-radius);overflow-x:auto;overflow-y:hidden;scrollbar-color:#d7dbe3 #f3f4f6;scrollbar-width:thin;width:100%}.ellm-graph__scroll-container::-webkit-scrollbar{height:8px}.ellm-graph__scroll-container::-webkit-scrollbar-track{background:#f3f4f6}.ellm-graph__scroll-container::-webkit-scrollbar-thumb{background:#d7dbe3;border-radius:4px}.ellm-graph__scroll-container::-webkit-scrollbar-thumb:hover{background:#b1b5be}.audit-table .p-datatable-thead>tr>th .p-column-header-content{justify-content:center}.audit-table .p-datatable-tbody>tr>td{height:92px}.tc-root--fullscreen{border-radius:0;height:100vh!important;position:fixed}.tg-cell .p-datatable-wrapper{max-height:90vh!important}.q-skeleton{display:flex;flex-direction:column;gap:12px;padding:10px;width:100%}.q-skeleton-card,.q-skeleton-line,.q-skeleton-pill,.q-skeleton-sparkline-path{background:#eef1f5;overflow:hidden;position:relative}.q-skeleton-card:after,.q-skeleton-line:after,.q-skeleton-pill:after{animation:q-shimmer 1.6s ease-in-out infinite;background:linear-gradient(90deg,#0000,#ffffffa6 50%,#0000);content:"";inset:0;position:absolute;transform:translateX(-100%)}@keyframes q-shimmer{to{transform:translateX(100%)}}.q-skeleton-toolbar{align-items:center;justify-content:space-between}.q-skeleton-presets,.q-skeleton-toolbar{display:flex;gap:8px}.q-skeleton-pill{border-radius:8px;height:32px;width:64px}.q-skeleton-pill--wide{width:72px}.q-skeleton-pill--filter{width:88px}.q-skeleton-pill--selector{border-radius:8px;height:34px;width:110px}.q-skeleton-card{border:1px solid #eef1f5;border-radius:14px;padding:16px 20px}.q-skeleton-graph{padding:20px}.q-skeleton-graph-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:18px}.q-skeleton-line{border-radius:6px}.q-skeleton-line--title{height:16px;margin-bottom:8px;width:160px}.q-skeleton-line--subtitle{height:12px;width:100px}.q-skeleton-graph-body{align-items:flex-end;display:flex;height:180px}.q-skeleton-sparkline{height:100%;width:100%}.q-skeleton-sparkline-path{stroke:#dbe1e8;stroke-width:3;background:none}.q-skeleton-kpis{display:flex;flex-wrap:wrap;gap:10px}.q-skeleton-kpi{flex:1 1 200px;min-width:200px}.q-skeleton-line--label{height:12px;margin-bottom:12px;width:90px}.q-skeleton-line--value{height:24px;margin-bottom:10px;width:70px}.q-skeleton-line--sublabel{height:10px;width:110px}@media (prefers-reduced-motion:reduce){.q-skeleton-card:after,.q-skeleton-line:after,.q-skeleton-pill:after{animation:none}}.q-date-filter{display:flex;flex-direction:column;gap:12px}.q-date-filter-toolbar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;gap:16px;justify-content:space-between;padding:12px 16px}.q-date-filter-toolbar,.q-preset-container{align-items:center;display:flex;flex-wrap:wrap}.q-preset-container{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:6px}.q-preset-btn{background:#0000;border:none;border-radius:999px;color:#334155;cursor:pointer;font-size:14px;font-weight:500;outline:none;padding:10px 20px;transition:.2s}.q-preset-btn:hover{background:#f9fafb}.q-preset-btn.active{background:#6d28d9;color:#fff}.q-live-chip{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;display:flex;font-size:14px;font-weight:500;gap:8px;height:33px;padding:0 16px}.q-live-dot{background:#15803d;border-radius:50%;height:8px;width:8px}.q-filter-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#475569;cursor:pointer;display:flex;font-family:Inter;font-weight:500;gap:8px;height:33px;padding:5.25px 8.75px}.q-filter-btn:hover{background:#f9fafb}.q-filter-badge{align-items:center;background:#6d28d9;border-radius:50%;color:#fff;display:flex;font-size:12px;height:20px;justify-content:center;width:20px}.q-custom-container{align-items:flex-end;background:#fff;background:#f8fafc;border:1px solid #e4e7ec;border-radius:16px;display:flex;gap:16px;padding:16px}.q-refresh-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#262d33;cursor:pointer;display:flex;font-family:Inter;font-size:14px;font-weight:500;gap:12px;height:33px;padding:6px 9px}.q-refresh-btn:hover{background:#f9fafb}.q-apply-btn{align-items:center;background:#6d28d9;border:1px solid #e2e8f0;border-radius:6px;color:#fff;display:flex;font-family:Inter;font-size:14px;gap:12px;height:33px;margin-bottom:8px;padding:7px 11px}.q-apply-btn:hover{background:#5b21b6}.q-apply-btn:disabled{opacity:.7}.q-custom-container .p-calendar{width:280px}.q-custom-container .p-inputtext{width:100%}@media (max-width:650px){.q-date-separator{display:none}}@media (max-width:1124px){.q-custom-container{flex-wrap:wrap}.q-preset-container{border-radius:16px}}.q-spin{animation:q-spin 1s linear infinite}@keyframes q-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.date-picker{align-items:flex-start;background:#fff;border-radius:10px;box-shadow:0 8px 24px #0000001f;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;padding:10px 12px;width:260px}.date-picker__header{align-items:center;display:flex;justify-content:space-between;width:100%}.header-selects{align-items:center;display:flex;gap:4px}.header-select{appearance:none;-webkit-appearance:none;background:#f8fafc;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 5px center;background-repeat:no-repeat;border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;font-weight:600;outline:none;padding:3px 20px 3px 7px}.header-select:hover{border-color:#94a3b8}.header-select:focus{border-color:#2563eb}.month-label{color:#0f172a;font-size:13px;font-weight:600}.nav-btn{background:none;border:none;color:#475569;cursor:pointer;font-size:16px;line-height:1;padding:0 4px}.date-picker__top-actions{display:flex;gap:6px;width:100%}.selected-date{border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;flex:1}.selected-date,.today-btn{font-size:12px;padding:5px 8px}.today-btn{background:#fff;border:1px solid #2563eb;border-radius:6px;color:#2563eb;cursor:pointer}.today-btn--disabled{border-color:#94a3b8;color:#94a3b8;cursor:not-allowed;opacity:.4;pointer-events:none}.date-picker__weekdays{color:#64748b;font-size:11px;font-weight:500;text-align:center}.date-picker__days,.date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.date-picker__days{gap:3px}.day{align-items:center;background:#0000;border:none;border-radius:50%;color:#0f172a;cursor:pointer;display:flex;font-size:12px;height:28px;justify-content:center;margin:auto;width:28px}.day--disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.day:hover{background:#f1f5f9}.day--today{background:#e2e8f0;font-weight:600}.day--selected{background:#2563eb;color:#fff}.month-label-click,.year-label-click{border-radius:4px;cursor:pointer;padding:1px 3px;transition:background .1s}.month-label-click:hover,.year-label-click:hover{background:#f1f5f9}.date-picker__month-grid{display:grid;gap:4px;grid-template-columns:repeat(3,1fr);width:100%}.month-cell{background:#0000;border:none;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;padding:6px 0;text-align:center}.month-cell:hover{background:#f1f5f9}.month-cell--selected{background:#2563eb;color:#fff}.date-picker__year-grid{display:grid;gap:4px;grid-template-columns:repeat(4,1fr);width:100%}.year-cell{background:#0000;border:none;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;padding:6px 0;text-align:center}.year-cell:hover{background:#f1f5f9}.year-cell--selected{background:#2563eb;color:#fff}.q-date-selector{padding:7px 10px;position:relative}.q-date-selector__label{color:#475569;display:block;font-family:Inter;font-size:14px;font-weight:500;margin-bottom:10px}.q-date-selector__trigger{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:6px;color:#1e293b;cursor:pointer;display:flex;font-size:14px;font-weight:400;height:33px;justify-content:space-between;padding:0 18px;width:100%}.q-date-selector__trigger:hover{border-color:#b8c0cc}.q-date-selector__panel{left:0;position:absolute;top:calc(100% + 8px);z-index:1000}.q-date-selector__panel--top{bottom:calc(100% + 8px);top:auto}.metric-card{background:#f8fafc33;border:1px solid #e2e8f0;border-radius:24px;box-sizing:border-box;flex:1;min-width:266px;padding:24px;transition:all .2s ease;width:fit-content}.metric-card:hover{box-shadow:0 4px 12px #0000000d}.metric-card__content{align-items:center;display:flex;gap:24px;height:100%;justify-content:space-between}.metric-card__title{color:#00000080;font-size:14px;font-weight:400;margin-bottom:4px}.metric-card__value{display:flex;font-size:25px;font-weight:700;gap:4px}.metric-card__delta,.metric-card__value{align-items:center;line-height:1;margin-top:4px}.metric-card__delta{display:inline-flex;font-size:13px;font-weight:600;gap:3px;white-space:nowrap}.metric-card__delta-caption{font-size:12px;font-weight:500;margin-left:2px;opacity:.65}.metric-card__value-skeleton{animation:metric-card-shimmer 1.4s ease infinite;background:linear-gradient(90deg,#0000000f 25%,#0000001f 37%,#0000000f 63%);background-size:400% 100%;border-radius:6px;display:inline-block;height:25px;width:72px}@keyframes metric-card-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.metric-card__subtitle{color:#64748b;font-size:12px;font-weight:500;margin-top:10px}.metric-card__icon-container{align-items:center;background:#7c3aed1a;border-radius:6px;color:#6d28d9;display:flex;height:40px;justify-content:center;width:40px}.metric-card__stats{align-items:flex-start;display:flex;gap:20px;margin-bottom:16px;margin-top:12px}.metric-card__stat{display:flex;flex-direction:column;gap:6px;position:relative}.metric-card__stat-label{align-items:center;color:#64748b;display:flex;font-size:12px;font-weight:500;gap:6px}.metric-card__dot{border-radius:50%;height:8px;width:8px}.metric-card__stat-value{color:#262d33;font-family:Inter;font-size:14px;font-weight:700}.metric-card__divider{background:#e2e8f0;height:100%;position:absolute;right:-12px;top:0;width:1px}.metric-card__progress{background:#ede9fe;border-radius:999px;display:flex;height:10px;overflow:hidden;width:100%}.metric-card__progress-segment{height:100%}.metric-card__stats{margin-top:0}@media (max-width:1000px){.metric-card__title{font-size:12px}.metric-card__subtitle{font-size:10px;margin-top:10px}.metric-card__value{font-size:25px}.metric-card__stats{gap:20px;margin-bottom:16px}.metric-card__stat-value{font-size:14px}.metric-card__icon-container{height:40px;margin-top:8px;width:40px}.metric-card__icon-container svg{height:24px!important;width:24px!important}}@media (max-width:768px){.metric-card__content--has-segments{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto}.metric-card__content--has-segments>:first-child{grid-area:1/1}.metric-card__content--has-segments>:nth-child(2){grid-area:2/1/2/3}.metric-card__content--has-segments>:nth-child(3){grid-area:1/2}.metric-card__value{font-size:22px}.metric-card__stats{gap:16px;margin-bottom:12px}.metric-card__stat-value{font-size:14px}.metric-card__icon-container{height:38px;margin-top:4px;width:38px}.metric-card__icon-container svg{height:20px!important;width:20px!important}}.log-filterSidebar{width:400px}.log-filterTitle{color:#334155;font-family:Inter;font-size:18px;font-weight:600}.log-filterBody{display:flex;flex-direction:column;gap:16px}.log-filterBlock .log-filterLabel{color:#334155;font-family:Inter;font-size:14px;font-weight:600}.log-filterHint{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;line-height:130%;margin-top:4px}.log-filterFooter{background:#fff;bottom:0;display:flex;gap:10px;justify-content:flex-end;left:0;padding:12px 16px;position:absolute;right:0}.log-btnReset{background:#fff;border:1px solid #e2e8f0;color:#64748b}.log-btnApply,.log-btnReset{border-radius:6px;font-family:Inter;font-size:14px;font-weight:500;padding:8px 11px}.log-btnApply{background:#5925dc;color:#fff}.log-filter-date .drs__trigger{margin-top:12px;width:100%}.log-filterEmpty{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:6px;color:#94a3b8;font-family:Inter;font-size:13px;font-weight:500;padding:10px 12px;text-align:center}.drs{position:relative}.drs__trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#475569;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;height:40px;padding:0 18px;transition:.2s ease}.drs__trigger:hover{background:#f8fafc;border-color:#dbe3ef}.drs__label{color:#6b7280;font-family:Inter;font-size:14px}.drs__popover{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 16px 40px #00000024;position:absolute;right:0;top:60px;width:340px;z-index:9999}.drs__header{align-items:center;display:flex;justify-content:space-between;padding:16px 16px 10px}.drs__month{color:#1e293b;display:flex;font-family:Inter,sans-serif;font-size:17px;font-weight:700;gap:5px}.drs__month-click,.drs__year-click{border-radius:4px;cursor:pointer;padding:1px 4px;transition:background-color .15s ease}.drs__month-click:hover,.drs__year-click:hover{background:#f1f5f9;color:#635ae3}.drs__nav{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#64748b;cursor:pointer;display:inline-flex;height:34px;justify-content:center;width:34px}.drs__nav:hover{background:#f8fafc;color:#1e293b}.drs__inputs{gap:8px;padding:0 16px 12px}.drs__input-box,.drs__inputs{align-items:center;display:flex}.drs__input-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;flex:1;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:36px;padding:0 10px;transition:border-color .15s ease}.drs__input-box.is-active{background:#fff;border-color:#635ae3}.drs__input-placeholder{color:#94a3b8;font-weight:400}.drs__input-sep{color:#94a3b8;font-size:16px}.drs__week{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 4px}.drs__weekday{color:#94a3b8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:4px 0;text-align:center}.drs__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 12px;row-gap:2px}.drs__day{align-items:center;background:#0000;border:none;color:#0f172a;cursor:pointer;display:flex;font-family:Inter,sans-serif;font-size:14px;font-weight:400;height:36px;justify-content:center;padding:0;position:relative;width:100%}.drs__day.is-disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.drs__day-inner{align-items:center;border-radius:50%;display:flex;height:34px;justify-content:center;position:relative;transition:background-color .12s ease;width:34px;z-index:1}.drs__day:hover:not(.is-start):not(.is-end) .drs__day-inner{background:#f1f5f9}.drs__day.is-out{color:#cbd5e1}.drs__day.is-range-start:before,.drs__day.is-range:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;z-index:0}.drs__day.is-range-start:before{left:50%}.drs__day.is-range-end:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;right:50%;z-index:0}.drs__day.is-row-first:before{border-radius:50% 0 0 50%}.drs__day.is-row-last:before{border-radius:0 50% 50% 0}.drs__day.is-end .drs__day-inner,.drs__day.is-start .drs__day-inner{background:#635ae3;color:#fff;font-weight:600}.drs__day.is-end:hover .drs__day-inner,.drs__day.is-start:hover .drs__day-inner{background:#4f46d8}.drs__month-grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:8px 16px 16px}.drs__month-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:500;height:44px}.drs__month-cell:hover{background:#f1f5f9}.drs__month-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__year-grid{display:grid;gap:8px;grid-template-columns:repeat(4,1fr);padding:8px 16px 16px}.drs__year-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:44px;transition:background-color .15s ease}.drs__year-cell:hover{background:#f1f5f9}.drs__year-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__footer{border-top:1px solid #eef2f7;display:flex;gap:10px;justify-content:flex-end;padding:12px 16px}.drs__btn{border:1px solid #0000;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:600;height:40px;padding:0 20px}.drs__btn--ghost{background:#fff;border-color:#e5e7eb;color:#475569}.drs__btn--ghost:hover{background:#f8fafc}.drs__btn--primary{background:#635ae3;color:#fff}.drs__btn--primary:hover{background:#4f46d8}.drs__btn--primary:disabled{cursor:not-allowed;opacity:.45}.audit-filterBlock .date-range-wrapper,.audit-filterControl,.cms-root{width:100%}.cms-root{position:relative}.cms-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.cms-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.cms-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.cms-hasValue{color:#334155}.cms-chevron{color:#64748b}.cms-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px #1018281f;left:0;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:9999}.cms-searchRow{align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;display:flex;gap:10px;height:40px;margin-bottom:10px;padding:0 12px}.cms-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.cms-divider{background:#e2e8f0;height:1px;margin:10px 0}.cms-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.cms-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;min-height:30px;padding:0 8px}.cms-item:hover{background:#f8fafc}.cms-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.cms-checked{background:#5925dc;border-color:#5925dc}.cms-itemText{color:#334155;font-family:Inter;font-size:14px}.cti-input{border:1px solid #e2e8f0;border-radius:8px;box-sizing:border-box;font-size:14px;height:40px;outline:none;padding:0 18px;width:100%}.cti-input:disabled{background:#f8fafc;cursor:not-allowed}.cti-wrapper{position:relative}.cti-search-icon{color:#666f8d;left:12px;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.cti-input--with-icon{padding-left:40px}.css-root{position:relative;width:100%}.css-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.css-trigger:disabled{cursor:not-allowed;opacity:.6}.css-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.css-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.css-hasValue{color:#0f172a}.css-chevron{color:#334155}.css-panel{background:#fff;box-shadow:0 8px 24px #1018281f;left:0;overflow:hidden;padding:10px;position:absolute;right:0;top:calc(100% + 4px);z-index:1000}.css-panel,.css-searchRow{border:1px solid #e2e8f0;border-radius:8px}.css-searchRow{align-items:center;color:#64748b;display:flex;gap:10px;height:40px;margin-bottom:10px;padding:0 12px}.css-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.css-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.css-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;justify-content:space-between;min-height:30px;padding:0 8px}.css-item:hover{background:#f8fafc}.css-selected{background:#f4f0fe}.css-selected:hover{background:#ece5fd}.css-selected .css-itemText{color:#5925dc;font-weight:500}.css-itemCheck{color:#5925dc;font-size:14px;font-weight:700}.css-itemText{font-size:14px}.css-empty{color:#94a3b8;padding:16px;text-align:center}.css-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.css-checked{background:#5925dc;border-color:#5925dc}.ellm-chart{display:block;font-size:12px;width:100%}.ellm-chart .recharts-responsive-container{height:100%!important;width:100%!important}.ellm-chart .recharts-cartesian-axis-tick text{fill:#6b7280}.ellm-chart .recharts-cartesian-grid line[stroke="#ccc"]{stroke:#eef0f4}.ellm-chart .recharts-curve.recharts-tooltip-cursor{stroke:#d7dbe3}.ellm-chart .recharts-dot[stroke="#fff"]{stroke:#0000}.ellm-chart .recharts-layer{outline:none}.ellm-chart .recharts-sector[stroke="#fff"]{stroke:#0000}.ellm-chart .recharts-sector,.ellm-chart .recharts-surface{outline:none}.ellm-chart .recharts-reference-line[stroke="#ccc"]{stroke:#e5e7eb}.ellm-chart__tooltip{background:#fff;border:1px solid #0000000f;border-radius:8px;box-shadow:0 6px 20px #0000001f;color:#111827;display:grid;font-size:12px;gap:6px;min-width:8rem;padding:8px 10px}.ellm-chart__tooltip-label{color:#111827;font-weight:600}.ellm-chart__tooltip-items{display:grid;gap:6px}.ellm-chart__tooltip-item{align-items:center;display:flex;gap:8px;width:100%}.ellm-chart__tooltip-row{align-items:center;display:flex;flex:1;gap:12px;justify-content:space-between;line-height:1}.ellm-chart__tooltip-row--nested{align-items:flex-end}.ellm-chart__tooltip-grid{display:grid;gap:2px}.ellm-chart__tooltip-name{color:#6b7280}.ellm-chart__tooltip-value{color:#111827;font-variant-numeric:tabular-nums;font-weight:600}.ellm-chart__indicator{background:var(--indicator-color);border-color:var(--indicator-color);flex-shrink:0}.ellm-chart__indicator--dot{border-radius:50%;height:10px;width:10px}.ellm-chart__indicator--line{border-radius:2px;height:14px;width:4px}.ellm-chart__indicator--dashed{background:#0000;border:1.5px dashed var(--indicator-color);height:0;height:14px;margin:0 1px;width:0}.ellm-chart__legend{align-items:center;display:flex;flex-wrap:wrap;gap:16px;padding-top:10px}.ellm-chart__legend--top{padding-bottom:10px;padding-top:0}.ellm-chart__legend--start{justify-content:flex-start}.ellm-chart__legend--center{justify-content:center}.ellm-chart__legend--end{justify-content:flex-end}.ellm-chart__legend-item{align-items:center;background:none;border:none;color:#111827;display:inline-flex;font-family:inherit;font-size:12.5px;gap:7px;padding:2px 0;transition:opacity .15s ease}.ellm-chart__legend-item--off{opacity:.4}.ellm-chart__legend-marker{display:block;flex-shrink:0;overflow:visible}.ellm-graph{--ellm-graph-fg:#111827;--ellm-graph-muted:#6b7280;--ellm-graph-border:#e5e7eb;--ellm-graph-radius:12px;background:#fff;border:1px solid var(--ellm-graph-border);border-radius:var(--ellm-graph-radius);color:var(--ellm-graph-fg);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;padding:20px;width:100%}.ellm-graph,.ellm-graph *{box-sizing:border-box}.ellm-graph__header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin-bottom:16px;margin-top:10px}.ellm-graph__heading{align-items:center;display:flex;gap:10px;min-width:0}.ellm-graph__icon{align-items:center;background:#f3f4f6;border-radius:9px;color:#4f46e5;display:inline-flex;flex-shrink:0;height:34px;justify-content:center;width:34px}.ellm-graph__title{font-size:15px;font-weight:600;line-height:1.3}.ellm-graph__description{color:var(--ellm-graph-muted);font-size:12.5px;line-height:1.4;margin-top:2px}.ellm-graph__controls{align-items:center;display:flex;flex-shrink:0;flex-wrap:wrap;gap:10px}.ellm-graph__panes{display:flex;flex-direction:column}.ellm-graph__pane{background:#fff;border:1px solid var(--ellm-graph-border);border-radius:10px;min-width:0;padding:12px 12px 4px}.ellm-graph__pane-title{color:var(--ellm-graph-muted);font-size:12.5px;font-weight:600;margin-bottom:4px}.ellm-graph__legend{align-items:center;display:flex;flex-wrap:wrap;gap:20px;justify-content:center;padding-top:16px}.ellm-graph__legend-item{align-items:center;background:none;border:none;color:var(--ellm-graph-fg);cursor:pointer;display:inline-flex;font-family:inherit;font-size:12.5px;gap:7px;padding:2px 0;transition:opacity .15s ease}.ellm-graph__legend-item--off{opacity:.4}.ellm-graph__legend-marker{display:block;flex-shrink:0;overflow:visible}.ellm-graph__plotby{flex-shrink:0;position:relative}.ellm-graph__plotby-btn{align-items:center;background:#fff;border:1px solid var(--ellm-graph-border);border-radius:10px;color:#4b5563;cursor:pointer;display:inline-flex;font-family:inherit;font-size:14px;gap:10px;height:40px;padding:0 14px;transition:.18s ease}.ellm-graph__plotby-btn:hover{background:#f8fafc;border-color:#dbe3ef}.ellm-graph__plotby-btn--open{border-color:#6d28d9;color:#6d28d9}.ellm-graph__plotby-btn--open svg{color:#6d28d9}.ellm-graph__plotby-value{color:#111827;font-weight:600}.ellm-graph__plotby-btn--open .ellm-graph__plotby-value{color:#6d28d9}.ellm-graph__plotby-chevron{margin-left:2px;transition:transform .18s ease}.ellm-graph__plotby-btn--open .ellm-graph__plotby-chevron{transform:rotate(180deg)}.ellm-graph__plotby-menu{background:#fff;border:1px solid var(--ellm-graph-border);border-radius:12px;box-shadow:0 12px 28px #0000001f;min-width:160px;padding:6px;position:absolute;right:0;top:48px;z-index:50}.ellm-graph__plotby-option{background:#fff;border:none;border-radius:9px;color:#374151;cursor:pointer;display:block;font-family:inherit;font-size:14px;margin:2px 0;padding:9px 14px;text-align:left;transition:background .15s ease;width:100%}.ellm-graph__plotby-option:hover{background:#f3f4f6}.ellm-graph__plotby-option--active{background:#f5f3ff;color:#6d28d9;font-weight:600}.ellm-graph__empty,.ellm-graph__loading{align-items:center;color:var(--ellm-graph-muted);display:flex;font-size:13px;justify-content:center;min-height:120px}.ellm-graph__empty-default{align-items:center;display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:180px;padding:24px 16px;text-align:center}.ellm-graph__empty-icon{align-items:center;background:#f3f4f6;border-radius:12px;color:#9ca3af;display:inline-flex;height:44px;justify-content:center;margin-bottom:4px;width:44px}.ellm-graph__empty-title{color:var(--ellm-graph-fg);font-size:14px;font-weight:600}.ellm-graph__empty-desc{color:var(--ellm-graph-muted);font-size:12.5px;line-height:1.5;max-width:340px}.ellm-graph__skeleton{display:flex;gap:10px;min-height:180px;padding:8px 0 4px;width:100%}.ellm-graph__shimmer{background:#eef1f5;overflow:hidden;position:relative}.ellm-graph__shimmer:after{animation:ellm-graph-shimmer 1.6s ease-in-out infinite;background:linear-gradient(90deg,#0000,#ffffffa6 50%,#0000);content:"";inset:0;position:absolute;transform:translateX(-100%)}@keyframes ellm-graph-shimmer{to{transform:translateX(100%)}}.ellm-graph__skeleton-yaxis{display:flex;flex-direction:column;flex-shrink:0;justify-content:space-between;padding:4px 0 22px}.ellm-graph__skeleton-plot{display:flex;flex:1;flex-direction:column;min-width:0;position:relative}.ellm-graph__skeleton-grid{display:flex;flex-direction:column;inset:0 0 22px 0;justify-content:space-between;position:absolute}.ellm-graph__skeleton-gridline{background:#eef1f5;height:1px;width:100%}.ellm-graph__skeleton-svg{flex:1;min-height:0;position:relative;width:100%}.ellm-graph__skeleton-line{stroke:#dbe1e8;stroke-width:2.5;vector-effect:non-scaling-stroke}.ellm-graph__skeleton-area-top{stop-color:#dbe1e8;stop-opacity:.45}.ellm-graph__skeleton-area-bottom{stop-color:#dbe1e8;stop-opacity:0}.ellm-graph__skeleton-xaxis{display:flex;height:12px;justify-content:space-between;margin-top:10px}.ellm-graph__skeleton-tick{border-radius:4px}.ellm-graph__skeleton-yaxis .ellm-graph__skeleton-tick{height:10px;width:28px}.ellm-graph__skeleton-xaxis .ellm-graph__skeleton-tick{height:10px;width:40px}@media (prefers-reduced-motion:reduce){.ellm-graph__shimmer:after{animation:none}}.analytics-chart{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:24px}.analytics-chart__title{color:#111827;font-size:20px;font-weight:600;margin:0 0 24px}.th-table-toolbar{align-items:center;border-top-left-radius:8px;border-top-right-radius:8px;box-sizing:border-box;display:flex;gap:8px;height:60px;justify-content:center;width:100%}.th-table-toolbar__search{align-items:center;display:flex;flex:1}.th-table-toolbar__search-wrapper{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:6px;display:flex;height:35px;overflow:hidden;width:100%}.th-table-toolbar__search-input{background:#0000;border:none;color:#767676;flex:1;font-size:14px;font-weight:400;height:100%;outline:none;padding:0 12px}.th-table-toolbar__search-input::placeholder{color:#a0a8b8}.th-table-toolbar__search-input:focus{box-shadow:none;outline:none}.th-table-toolbar__search-input--disabled{background:#f3f4f6;cursor:not-allowed}.th-table-toolbar__search-btn-left{border:none;border-right:1px solid #e2e8f0}.th-table-toolbar__search-btn-left,.th-table-toolbar__search-btn-right{align-items:center;background:#fff;color:#6b7280;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:8px;height:100%;padding:0 12px;transition:background-color .2s ease,color .2s ease;white-space:nowrap}.th-table-toolbar__search-btn-right{border:none;border-left:1px solid #e2e8f0}.th-table-toolbar__search-btn:hover{background:#f9fafb}.th-table-toolbar__search-btn--disabled{color:#9ca3af;cursor:not-allowed;pointer-events:none}.th-table-toolbar__actions{align-items:center;display:flex;position:relative}.th-table-toolbar__btn{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:6px;color:#374151;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:8px;height:35px;justify-content:center;margin-left:8px;padding:0 12px;transition:all .2s ease;white-space:nowrap}.th-table-toolbar__btn:first-child{margin-left:0}.th-table-toolbar__btn--disabled{cursor:not-allowed;opacity:.5}.th-table-toolbar__btn--default{background:#fff;border-color:#d0d5dd;color:#374151}.th-table-toolbar__btn--filter-open{background:#f5f3ff;border-color:#a78bfa;color:#6d28d9}.th-table-toolbar__btn--filter-active,.th-table-toolbar__btn--sort-active{border-color:#4f46e5;color:#4f46e5}.th-table-toolbar__btn--refresh:active{border-color:#818cf8;color:#4f46e5}.th-table-toolbar__icon{flex-shrink:0;height:16px;width:16px}.th-table-toolbar__icon--primary{stroke:#4f46e5}.th-table-toolbar__badge{align-items:center;background:#eef2ff;border-radius:999px;display:inline-flex;gap:3.5px;padding:3px 7px}.th-table-toolbar__badge-text{color:#4f46e5;font-size:11px;font-weight:500}.th-table-toolbar__dropdown-wrapper{align-items:center;display:flex;position:relative}.th-table-toolbar__dropdown{background:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 4px 12px #1018281f;position:absolute;right:0;top:22px;width:250px;z-index:50}.th-table-toolbar__dropdown-item{align-items:center;color:#111827;cursor:pointer;display:flex;font-size:14px;height:38px;justify-content:space-between;padding:0 24px}.th-table-toolbar__dropdown-item:hover{background:#f3f4f6}.th-table-toolbar__dropdown-item--selected{background:#eef2ff;color:#4f46e5;font-weight:600}.th-table-toolbar__dropdown-footer{border-top:1px solid #eaecf0;padding:12px 16px;text-align:right}.th-table-toolbar__clear-btn{background:#0000;border:none;color:#475467;cursor:pointer;font-size:14px}.tg-root{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-width:0;width:100%}.tg-toolbar-row{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.tg-toolbar-left{min-width:0}.tg-toolbar,.tg-toolbar-left{align-items:center;display:flex;gap:8px}.tg-toolbar{margin-left:auto}.tg-toolbar-label{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;white-space:nowrap}.tg-toggle{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;gap:2px;padding:2px}.tg-toggle,.tg-toggle-btn{align-items:center;display:inline-flex}.tg-toggle-btn{background:#0000;border:1px solid #0000;border-radius:6px;color:#64748b;cursor:pointer;height:28px;justify-content:center;padding:0;transition:background .15s ease,color .15s ease;width:28px}.tg-toggle-btn:hover{background:#eef2f7;color:#334155}.tg-toggle-btn--active{background:#fff;border-color:#e2e8f0;box-shadow:0 1px 2px #1018280f;color:#7c3aed}.tg-toggle-btn--cramped{opacity:.45}.tg-grid{align-items:stretch;display:grid;min-width:0;width:100%}.tg-grid--auto-height{align-items:start}.tg-cell{box-sizing:border-box;display:flex;flex-direction:column}.tg-cell,.tg-cell>*{max-width:100%;min-width:0}.tg-cell>*{flex:1 1 auto;min-height:0}.tg-grid--auto-height .tg-cell>*{flex:0 0 auto}.tg-cell .p-datatable-wrapper{border-radius:12px;height:100%;overflow-x:auto}.q-sort{position:relative}.q-sort__trigger{background:#fff;border:1px solid #dbe4ee;border-radius:6px;color:#475467;cursor:pointer;height:31px;justify-content:space-between;padding:7px 0 7px 8px}.q-sort__left,.q-sort__trigger{align-items:center;display:flex}.q-sort__left{color:#475569;font-family:Inter;font-size:14px;gap:12px}.q-sort__menu{background:#fff;border:1px solid #dbe4ee;border-radius:12px;box-shadow:0 8px 24px #00000014;left:0;padding:8px 12px;position:absolute;top:calc(100% + 8px);width:100%;z-index:1000}.q-sort__option{background:#0000;border:none;border-radius:6px;color:#475569;cursor:pointer;font-family:Inter;font-size:13px;font-weight:500;padding:8px;text-align:left;width:100%}.q-sort__option:hover{background:#f8fafc}.q-sort__option--active{background:#f5f3ffe6;color:#0f172a;font-weight:500}.tc-root{background:#fff;border:1px solid #eeeef2;border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;overflow:visible;padding:8px 20px 16px;width:100%}.tc-root--fullscreen .tc-table{flex:1;min-height:0}.tc-root--fullscreen{background:#fff;border-radius:1;left:0;top:0;width:100vw!important;z-index:9999!important}.tc-header{flex-wrap:wrap;justify-content:space-between;padding:30px 12px}.tc-header,.tc-header-left{align-items:center;display:flex}.tc-header-left{gap:12px}.tc-title-icon{align-items:center;color:#344054;display:flex;justify-content:center}.tc-title{color:#242533;font-family:Inter;font-size:18px;font-weight:600;line-height:16px}.tc-expand-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:4px;color:#475467;cursor:pointer;display:flex;height:28px;justify-content:center;width:28px}.tc-expand-btn:hover{background:#f8fafc}.tc-table{flex:1;min-height:0;overflow:hidden}.tc-header-right{display:flex;flex-wrap:wrap;gap:12px}.tc-search{border-radius:6px;color:#475569;font-family:Inter;font-size:14px;height:31px;padding-left:30px;width:254px}.tc-pagination-wrapper{margin-top:8px;padding:4px 0}.t-pagination{align-items:center;background:#fff;display:flex;font-family:Inter,sans-serif;justify-content:space-between}.t-pagination-left{color:#344054;font-size:14px;font-weight:500}.t-pagination-right{align-items:center;display:flex;gap:24px}.t-pagination-count{color:#344054;font-size:14px;font-weight:500}.t-pagination-nav{align-items:center;display:flex;gap:12px}.t-pagination-icon{align-items:center;background:#0000;border:none;color:#344054;cursor:pointer;display:flex;height:28px;justify-content:center;width:28px}.t-pagination-icon:hover:not(:disabled){background:#f2f4f7;border-radius:6px}.t-pagination-icon:disabled{color:#d0d5dd;cursor:not-allowed}.t-pagination-select-wrapper{position:relative}.t-pagination-select{appearance:none;-webkit-appearance:none;background:#fff;border:1px solid #d0d5dd;border-radius:8px;color:#344054;cursor:pointer;font-size:14px;font-weight:600;height:40px;padding:0 34px 0 14px;width:71px}.t-pagination-chevron{pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.audit-tableWrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;height:100%;overflow:hidden}.audit-table .p-datatable-tbody>tr:nth-child(odd){background:#f8fafc}.audit-table .p-datatable-tbody>tr:hover{background:#eff5ff!important}.audit-table .p-datatable-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#6b7280;font-family:Inter;font-size:12px;font-weight:600;height:54px;padding:8px 16px}.audit-table .p-datatable-thead>tr>th .p-column-header-content{align-items:center;justify-content:flex-start}.audit-table.col-header-align-left .p-datatable-thead>tr>th .p-column-header-content{justify-content:flex-start}.audit-table.col-header-align-center .p-datatable-thead>tr>th .p-column-header-content{justify-content:center}.audit-table.col-header-align-right .p-datatable-thead>tr>th .p-column-header-content{justify-content:flex-end}.audit-table.col-cell-align-left .p-datatable-tbody>tr>td{text-align:left}.audit-table.col-cell-align-center .p-datatable-tbody>tr>td{text-align:center}.audit-table.col-cell-align-right .p-datatable-tbody>tr>td{text-align:right}.p-datatable .p-sortable-column .p-sortable-column-icon{height:12px!important;width:12px!important}.audit-table .p-datatable-tbody>tr>td{border-bottom:1px solid #eef2f7;color:#101828;font-family:Inter;font-size:14px;font-weight:400;padding:16px}.audit-modifiedBy{align-items:center;display:flex;justify-content:center}.audit-actionCell{display:flex;flex-direction:column;gap:6px}.audit-chip{border-radius:6px;font-family:Inter;font-size:9px;font-weight:500;gap:5px;padding:4px 7px;width:fit-content}.audit-chip,.audit-chip__icon{align-items:center;display:inline-flex}.audit-chip__icon{justify-content:center}.audit-chip--purple{background:#ede9fe;color:#6d28d9}.audit-chip--orange{background:#ffedd5;color:#c2410c}.audit-actionText{color:#111827;font-size:12px;line-height:1.35}.audit-seeMore{background:#0000;border:0;color:#6d28d9;cursor:pointer;font-size:12px;font-weight:400;margin-left:4px;padding:0}.audit-dateCell{color:#101828;font-family:Inter;text-align:center}.audit-emptyState{align-items:center;color:#64748b;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.audit-emptyTitle{font-size:16px;font-weight:600;margin-top:8px}.audit-emptyDesc{font-size:13px;margin-top:4px}.audit-skeletonRow{display:flex;gap:16px;padding:12px 0}.audit-operation-body{align-items:center;display:flex;justify-content:center}.audit-logIdBody{margin:0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-table .p-datatable-tbody>tr.audit-row--clickable{cursor:pointer}.audit-table .p-datatable-tbody>tr.p-datatable-row-expansion>td{background:#fff;padding:0}.audit-rowDetail{background:#fff;border-top:1px solid #eef2f7;padding:16px 20px}.audit-table .p-datatable-tfoot>tr>.audit-paginationEnd{background:#fff;border:0;height:auto;padding:12px 16px;text-align:center}.audit-paginationEndContent{align-items:center;background:#f0fdf4;border-radius:999px;color:#15803d;display:inline-flex;font-family:Inter,sans-serif;font-size:12px;font-weight:500;gap:7px;line-height:1;padding:6px 11px}.audit-paginationEndContent .pi{font-size:13px}
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.App{height:100vh;overflow-y:auto;width:100vw}.chart-scroll{-webkit-overflow-scrolling:touch;background:var(--bg);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);overflow-x:auto;overflow-y:hidden;scrollbar-color:var(--accent-border) #0000;scrollbar-width:thin;width:100%}.chart-scroll::-webkit-scrollbar{height:10px}.chart-scroll::-webkit-scrollbar-track{background:#0000}.chart-scroll::-webkit-scrollbar-thumb{background:var(--accent-border);border-radius:999px}.chart-scroll::-webkit-scrollbar-thumb:hover{background:var(--accent)}.chart-inner{width:2600px}.ellm-graph__liveLabelContainer{align-items:center;display:flex;gap:16px;height:100%;width:100%}.ellm-graph__liveLabel{align-items:center;color:#dc2626;display:flex;font-size:12px;font-weight:600,;gap:6px;height:100%;padding:0 12px}.pulse{animation:pulse 1.5s infinite}@keyframes pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}.ellm-graph__scroll-container{border-radius:var(--ellm-graph-radius);overflow-x:auto;overflow-y:hidden;scrollbar-color:#d7dbe3 #f3f4f6;scrollbar-width:thin;width:100%}.ellm-graph__scroll-container::-webkit-scrollbar{height:8px}.ellm-graph__scroll-container::-webkit-scrollbar-track{background:#f3f4f6}.ellm-graph__scroll-container::-webkit-scrollbar-thumb{background:#d7dbe3;border-radius:4px}.ellm-graph__scroll-container::-webkit-scrollbar-thumb:hover{background:#b1b5be}.audit-table .p-datatable-thead>tr>th .p-column-header-content{justify-content:center}.audit-table .p-datatable-tbody>tr>td{height:92px}.tc-root--fullscreen{border-radius:0;height:100vh!important;position:fixed;z-index:9999}.tg-cell .p-datatable-wrapper{max-height:90vh!important}.q-skeleton{display:flex;flex-direction:column;gap:12px;padding:10px}.q-skeleton-card,.q-skeleton-line,.q-skeleton-pill,.q-skeleton-sparkline-path{background:#eef1f5;overflow:hidden;position:relative}.q-skeleton-card:after,.q-skeleton-line:after,.q-skeleton-pill:after{animation:q-shimmer 1.6s ease-in-out infinite;background:linear-gradient(90deg,#0000,#ffffffa6 50%,#0000);content:"";inset:0;position:absolute;transform:translateX(-100%)}@keyframes q-shimmer{to{transform:translateX(100%)}}.q-skeleton-toolbar{align-items:center;justify-content:space-between}.q-skeleton-presets,.q-skeleton-toolbar{display:flex;gap:8px}.q-skeleton-pill{border-radius:8px;height:32px;width:64px}.q-skeleton-pill--wide{width:72px}.q-skeleton-pill--filter{width:88px}.q-skeleton-pill--selector{border-radius:8px;height:34px;width:110px}.q-skeleton-card{border:1px solid #eef1f5;border-radius:14px;padding:16px 20px}.q-skeleton-graph{padding:20px}.q-skeleton-graph-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:18px}.q-skeleton-line{border-radius:6px}.q-skeleton-line--title{height:16px;margin-bottom:8px;width:160px}.q-skeleton-line--subtitle{height:12px;width:100px}.q-skeleton-graph-body{align-items:flex-end;display:flex;height:180px}.q-skeleton-sparkline{height:100%;width:100%}.q-skeleton-sparkline-path{stroke:#dbe1e8;stroke-width:3;background:none}.q-skeleton-kpis{display:flex;flex-wrap:wrap;gap:10px}.q-skeleton-kpi{flex:1 1 200px;min-width:200px}.q-skeleton-line--label{height:12px;margin-bottom:12px;width:90px}.q-skeleton-line--value{height:24px;margin-bottom:10px;width:70px}.q-skeleton-line--sublabel{height:10px;width:110px}@media (prefers-reduced-motion:reduce){.q-skeleton-card:after,.q-skeleton-line:after,.q-skeleton-pill:after{animation:none}}.q-date-filter{display:flex;flex-direction:column;gap:12px}.q-date-filter-toolbar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;gap:16px;justify-content:space-between;padding:12px 16px}.q-date-filter-toolbar,.q-preset-container{align-items:center;display:flex;flex-wrap:wrap}.q-preset-container{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:6px}.q-preset-btn{background:#0000;border:none;border-radius:999px;color:#334155;cursor:pointer;font-size:14px;font-weight:500;outline:none;padding:10px 20px;transition:.2s}.q-preset-btn:hover{background:#f9fafb}.q-preset-btn.active{background:#6d28d9;color:#fff}.q-live-chip{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;display:flex;font-size:14px;font-weight:500;gap:8px;height:33px;padding:0 16px}.q-live-dot{background:#15803d;border-radius:50%;height:8px;width:8px}.q-filter-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#475569;cursor:pointer;display:flex;font-family:Inter;font-weight:500;gap:8px;height:33px;padding:5.25px 8.75px}.q-filter-btn:hover{background:#f9fafb}.q-filter-badge{align-items:center;background:#6d28d9;border-radius:50%;color:#fff;display:flex;font-size:12px;height:20px;justify-content:center;width:20px}.q-custom-container{align-items:flex-end;background:#fff;background:#f8fafc;border:1px solid #e4e7ec;border-radius:16px;display:flex;gap:16px;padding:16px}.q-refresh-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#262d33;cursor:pointer;display:flex;font-family:Inter;font-size:14px;font-weight:500;gap:12px;height:33px;padding:6px 9px}.q-refresh-btn:hover{background:#f9fafb}.q-apply-btn{align-items:center;background:#6d28d9;border:1px solid #e2e8f0;border-radius:6px;color:#fff;display:flex;font-family:Inter;font-size:14px;gap:12px;height:33px;margin-bottom:8px;padding:7px 11px}.q-apply-btn:hover{background:#5b21b6}.q-apply-btn:disabled{opacity:.7}.q-custom-container .p-calendar{width:280px}.q-custom-container .p-inputtext{width:100%}@media (max-width:650px){.q-date-separator{display:none}}@media (max-width:1124px){.q-custom-container{flex-wrap:wrap}.q-preset-container{border-radius:16px}}.q-spin{animation:q-spin 1s linear infinite}@keyframes q-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.date-picker{align-items:flex-start;background:#fff;border-radius:10px;box-shadow:0 8px 24px #0000001f;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;padding:10px 12px;width:260px}.date-picker__header{align-items:center;display:flex;justify-content:space-between;width:100%}.header-selects{align-items:center;display:flex;gap:4px}.header-select{appearance:none;-webkit-appearance:none;background:#f8fafc;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 5px center;background-repeat:no-repeat;border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;font-weight:600;outline:none;padding:3px 20px 3px 7px}.header-select:hover{border-color:#94a3b8}.header-select:focus{border-color:#2563eb}.month-label{color:#0f172a;font-size:13px;font-weight:600}.nav-btn{background:none;border:none;color:#475569;cursor:pointer;font-size:16px;line-height:1;padding:0 4px}.date-picker__top-actions{display:flex;gap:6px;width:100%}.selected-date{border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;flex:1}.selected-date,.today-btn{font-size:12px;padding:5px 8px}.today-btn{background:#fff;border:1px solid #2563eb;border-radius:6px;color:#2563eb;cursor:pointer}.today-btn--disabled{border-color:#94a3b8;color:#94a3b8;cursor:not-allowed;opacity:.4;pointer-events:none}.date-picker__weekdays{color:#64748b;font-size:11px;font-weight:500;text-align:center}.date-picker__days,.date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.date-picker__days{gap:3px}.day{align-items:center;background:#0000;border:none;border-radius:50%;color:#0f172a;cursor:pointer;display:flex;font-size:12px;height:28px;justify-content:center;margin:auto;width:28px}.day--disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.day:hover{background:#f1f5f9}.day--today{background:#e2e8f0;font-weight:600}.day--selected{background:#2563eb;color:#fff}.month-label-click,.year-label-click{border-radius:4px;cursor:pointer;padding:1px 3px;transition:background .1s}.month-label-click:hover,.year-label-click:hover{background:#f1f5f9}.date-picker__month-grid{display:grid;gap:4px;grid-template-columns:repeat(3,1fr);width:100%}.month-cell{background:#0000;border:none;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;padding:6px 0;text-align:center}.month-cell:hover{background:#f1f5f9}.month-cell--selected{background:#2563eb;color:#fff}.date-picker__year-grid{display:grid;gap:4px;grid-template-columns:repeat(4,1fr);width:100%}.year-cell{background:#0000;border:none;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;padding:6px 0;text-align:center}.year-cell:hover{background:#f1f5f9}.year-cell--selected{background:#2563eb;color:#fff}.q-date-selector{padding:7px 10px;position:relative}.q-date-selector__label{color:#475569;display:block;font-family:Inter;font-size:14px;font-weight:500;margin-bottom:10px}.q-date-selector__trigger{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:6px;color:#1e293b;cursor:pointer;display:flex;font-size:14px;font-weight:400;height:33px;justify-content:space-between;padding:0 18px;width:100%}.q-date-selector__trigger:hover{border-color:#b8c0cc}.q-date-selector__panel{left:0;position:absolute;top:calc(100% + 8px);z-index:1000}.q-date-selector__panel--top{bottom:calc(100% + 8px);top:auto}.metric-card{background:#f8fafc33;border:1px solid #e2e8f0;border-radius:24px;box-sizing:border-box;flex:1;min-width:266px;padding:24px;transition:all .2s ease;width:fit-content}.metric-card:hover{box-shadow:0 4px 12px #0000000d}.metric-card__content{align-items:center;display:flex;gap:24px;height:100%;justify-content:space-between}.metric-card__title{color:#00000080;font-size:14px;font-weight:400;margin-bottom:4px}.metric-card__value{display:flex;font-size:25px;font-weight:700;gap:4px}.metric-card__delta,.metric-card__value{align-items:center;line-height:1;margin-top:4px}.metric-card__delta{display:inline-flex;font-size:13px;font-weight:600;gap:3px;white-space:nowrap}.metric-card__delta-caption{font-size:12px;font-weight:500;margin-left:2px;opacity:.65}.metric-card__value-skeleton{animation:metric-card-shimmer 1.4s ease infinite;background:linear-gradient(90deg,#0000000f 25%,#0000001f 37%,#0000000f 63%);background-size:400% 100%;border-radius:6px;display:inline-block;height:25px;width:72px}@keyframes metric-card-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.metric-card__subtitle{color:#64748b;font-size:12px;font-weight:500;margin-top:10px}.metric-card__icon-container{align-items:center;background:#7c3aed1a;border-radius:6px;color:#6d28d9;display:flex;height:40px;justify-content:center;width:40px}.metric-card__stats{align-items:flex-start;display:flex;gap:20px;margin-bottom:16px;margin-top:12px}.metric-card__stat{display:flex;flex-direction:column;gap:6px;position:relative}.metric-card__stat-label{align-items:center;color:#64748b;display:flex;font-size:12px;font-weight:500;gap:6px}.metric-card__dot{border-radius:50%;height:8px;width:8px}.metric-card__stat-value{color:#262d33;font-family:Inter;font-size:14px;font-weight:700}.metric-card__divider{background:#e2e8f0;height:100%;position:absolute;right:-12px;top:0;width:1px}.metric-card__progress{background:#ede9fe;border-radius:999px;display:flex;height:10px;overflow:hidden;width:100%}.metric-card__progress-segment{height:100%}.metric-card__stats{margin-top:0}@media (max-width:1000px){.metric-card__title{font-size:12px}.metric-card__subtitle{font-size:10px;margin-top:10px}.metric-card__value{font-size:25px}.metric-card__stats{gap:20px;margin-bottom:16px}.metric-card__stat-value{font-size:14px}.metric-card__icon-container{height:40px;margin-top:8px;width:40px}.metric-card__icon-container svg{height:24px!important;width:24px!important}}@media (max-width:768px){.metric-card__content--has-segments{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto}.metric-card__content--has-segments>:first-child{grid-area:1/1}.metric-card__content--has-segments>:nth-child(2){grid-area:2/1/2/3}.metric-card__content--has-segments>:nth-child(3){grid-area:1/2}.metric-card__value{font-size:22px}.metric-card__stats{gap:16px;margin-bottom:12px}.metric-card__stat-value{font-size:14px}.metric-card__icon-container{height:38px;margin-top:4px;width:38px}.metric-card__icon-container svg{height:20px!important;width:20px!important}}.log-filterSidebar{width:400px}.log-filterTitle{color:#334155;font-family:Inter;font-size:18px;font-weight:600}.log-filterBody{display:flex;flex-direction:column;gap:16px}.log-filterBlock .log-filterLabel{color:#334155;font-family:Inter;font-size:14px;font-weight:600}.log-filterHint{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;line-height:130%;margin-top:4px}.log-filterFooter{background:#fff;bottom:0;display:flex;gap:10px;justify-content:flex-end;left:0;padding:12px 16px;position:absolute;right:0}.log-btnReset{background:#fff;border:1px solid #e2e8f0;color:#64748b}.log-btnApply,.log-btnReset{border-radius:6px;font-family:Inter;font-size:14px;font-weight:500;padding:8px 11px}.log-btnApply{background:#5925dc;color:#fff}.log-filter-date .drs__trigger{margin-top:12px;width:100%}.log-filterEmpty{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:6px;color:#94a3b8;font-family:Inter;font-size:13px;font-weight:500;padding:10px 12px;text-align:center}.drs{position:relative}.drs__trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#475569;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;height:40px;padding:0 18px;transition:.2s ease}.drs__trigger:hover{background:#f8fafc;border-color:#dbe3ef}.drs__label{color:#6b7280;font-family:Inter;font-size:14px}.drs__popover{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 16px 40px #00000024;position:absolute;right:0;top:60px;width:340px;z-index:9999}.drs__header{align-items:center;display:flex;justify-content:space-between;padding:16px 16px 10px}.drs__month{color:#1e293b;display:flex;font-family:Inter,sans-serif;font-size:17px;font-weight:700;gap:5px}.drs__month-click,.drs__year-click{border-radius:4px;cursor:pointer;padding:1px 4px;transition:background-color .15s ease}.drs__month-click:hover,.drs__year-click:hover{background:#f1f5f9;color:#635ae3}.drs__nav{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#64748b;cursor:pointer;display:inline-flex;height:34px;justify-content:center;width:34px}.drs__nav:hover{background:#f8fafc;color:#1e293b}.drs__inputs{gap:8px;padding:0 16px 12px}.drs__input-box,.drs__inputs{align-items:center;display:flex}.drs__input-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;flex:1;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:36px;padding:0 10px;transition:border-color .15s ease}.drs__input-box.is-active{background:#fff;border-color:#635ae3}.drs__input-placeholder{color:#94a3b8;font-weight:400}.drs__input-sep{color:#94a3b8;font-size:16px}.drs__week{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 4px}.drs__weekday{color:#94a3b8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:4px 0;text-align:center}.drs__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 12px;row-gap:2px}.drs__day{align-items:center;background:#0000;border:none;color:#0f172a;cursor:pointer;display:flex;font-family:Inter,sans-serif;font-size:14px;font-weight:400;height:36px;justify-content:center;padding:0;position:relative;width:100%}.drs__day.is-disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.drs__day-inner{align-items:center;border-radius:50%;display:flex;height:34px;justify-content:center;position:relative;transition:background-color .12s ease;width:34px;z-index:1}.drs__day:hover:not(.is-start):not(.is-end) .drs__day-inner{background:#f1f5f9}.drs__day.is-out{color:#cbd5e1}.drs__day.is-range-start:before,.drs__day.is-range:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;z-index:0}.drs__day.is-range-start:before{left:50%}.drs__day.is-range-end:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;right:50%;z-index:0}.drs__day.is-row-first:before{border-radius:50% 0 0 50%}.drs__day.is-row-last:before{border-radius:0 50% 50% 0}.drs__day.is-end .drs__day-inner,.drs__day.is-start .drs__day-inner{background:#635ae3;color:#fff;font-weight:600}.drs__day.is-end:hover .drs__day-inner,.drs__day.is-start:hover .drs__day-inner{background:#4f46d8}.drs__month-grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:8px 16px 16px}.drs__month-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:500;height:44px}.drs__month-cell:hover{background:#f1f5f9}.drs__month-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__year-grid{display:grid;gap:8px;grid-template-columns:repeat(4,1fr);padding:8px 16px 16px}.drs__year-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:44px;transition:background-color .15s ease}.drs__year-cell:hover{background:#f1f5f9}.drs__year-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__footer{border-top:1px solid #eef2f7;display:flex;gap:10px;justify-content:flex-end;padding:12px 16px}.drs__btn{border:1px solid #0000;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:600;height:40px;padding:0 20px}.drs__btn--ghost{background:#fff;border-color:#e5e7eb;color:#475569}.drs__btn--ghost:hover{background:#f8fafc}.drs__btn--primary{background:#635ae3;color:#fff}.drs__btn--primary:hover{background:#4f46d8}.drs__btn--primary:disabled{cursor:not-allowed;opacity:.45}.audit-filterBlock .date-range-wrapper,.audit-filterControl,.cms-root{width:100%}.cms-root{position:relative}.cms-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.cms-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.cms-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.cms-hasValue{color:#334155}.cms-chevron{color:#64748b}.cms-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px #1018281f;left:0;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:9999}.cms-searchRow{align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;display:flex;gap:10px;height:40px;margin-bottom:10px;padding:0 12px}.cms-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.cms-divider{background:#e2e8f0;height:1px;margin:10px 0}.cms-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.cms-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;min-height:30px;padding:0 8px}.cms-item:hover{background:#f8fafc}.cms-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.cms-checked{background:#5925dc;border-color:#5925dc}.cms-itemText{color:#334155;font-family:Inter;font-size:14px}.cti-input{border:1px solid #e2e8f0;border-radius:8px;box-sizing:border-box;font-size:14px;height:40px;outline:none;padding:0 18px;width:100%}.cti-input:disabled{background:#f8fafc;cursor:not-allowed}.cti-wrapper{position:relative}.cti-search-icon{color:#666f8d;left:12px;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.cti-input--with-icon{padding-left:40px}.css-root{position:relative;width:100%}.css-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.css-trigger:disabled{cursor:not-allowed;opacity:.6}.css-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.css-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.css-hasValue{color:#0f172a}.css-chevron{color:#334155}.css-panel{background:#fff;box-shadow:0 8px 24px #1018281f;left:0;overflow:hidden;padding:10px;position:absolute;right:0;top:calc(100% + 4px);z-index:1000}.css-panel,.css-searchRow{border:1px solid #e2e8f0;border-radius:8px}.css-searchRow{align-items:center;color:#64748b;display:flex;gap:10px;height:40px;margin-bottom:10px;padding:0 12px}.css-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.css-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.css-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;justify-content:space-between;min-height:30px;padding:0 8px}.css-item:hover{background:#f8fafc}.css-selected{background:#f4f0fe}.css-selected:hover{background:#ece5fd}.css-selected .css-itemText{color:#5925dc;font-weight:500}.css-itemCheck{color:#5925dc;font-size:14px;font-weight:700}.css-itemText{font-size:14px}.css-empty{color:#94a3b8;padding:16px;text-align:center}.css-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.css-checked{background:#5925dc;border-color:#5925dc}.ellm-chart{display:block;font-size:12px;width:100%}.ellm-chart .recharts-responsive-container{height:100%!important;width:100%!important}.ellm-chart .recharts-cartesian-axis-tick text{fill:#6b7280}.ellm-chart .recharts-cartesian-grid line[stroke="#ccc"]{stroke:#eef0f4}.ellm-chart .recharts-curve.recharts-tooltip-cursor{stroke:#d7dbe3}.ellm-chart .recharts-dot[stroke="#fff"]{stroke:#0000}.ellm-chart .recharts-layer{outline:none}.ellm-chart .recharts-sector[stroke="#fff"]{stroke:#0000}.ellm-chart .recharts-sector,.ellm-chart .recharts-surface{outline:none}.ellm-chart .recharts-reference-line[stroke="#ccc"]{stroke:#e5e7eb}.ellm-chart__tooltip{background:#fff;border:1px solid #0000000f;border-radius:8px;box-shadow:0 6px 20px #0000001f;color:#111827;display:grid;font-size:12px;gap:6px;min-width:8rem;padding:8px 10px}.ellm-chart__tooltip-label{color:#111827;font-weight:600}.ellm-chart__tooltip-items{display:grid;gap:6px}.ellm-chart__tooltip-item{align-items:center;display:flex;gap:8px;width:100%}.ellm-chart__tooltip-row{align-items:center;display:flex;flex:1;gap:12px;justify-content:space-between;line-height:1}.ellm-chart__tooltip-row--nested{align-items:flex-end}.ellm-chart__tooltip-grid{display:grid;gap:2px}.ellm-chart__tooltip-name{color:#6b7280}.ellm-chart__tooltip-value{color:#111827;font-variant-numeric:tabular-nums;font-weight:600}.ellm-chart__indicator{background:var(--indicator-color);border-color:var(--indicator-color);flex-shrink:0}.ellm-chart__indicator--dot{border-radius:50%;height:10px;width:10px}.ellm-chart__indicator--line{border-radius:2px;height:14px;width:4px}.ellm-chart__indicator--dashed{background:#0000;border:1.5px dashed var(--indicator-color);height:0;height:14px;margin:0 1px;width:0}.ellm-chart__legend{align-items:center;display:flex;flex-wrap:wrap;gap:16px;padding-top:10px}.ellm-chart__legend--top{padding-bottom:10px;padding-top:0}.ellm-chart__legend--start{justify-content:flex-start}.ellm-chart__legend--center{justify-content:center}.ellm-chart__legend--end{justify-content:flex-end}.ellm-chart__legend-item{align-items:center;background:none;border:none;color:#111827;display:inline-flex;font-family:inherit;font-size:12.5px;gap:7px;padding:2px 0;transition:opacity .15s ease}.ellm-chart__legend-item--off{opacity:.4}.ellm-chart__legend-marker{display:block;flex-shrink:0;overflow:visible}.ellm-graph{--ellm-graph-fg:#111827;--ellm-graph-muted:#6b7280;--ellm-graph-border:#e5e7eb;--ellm-graph-radius:12px;background:#fff;border:1px solid var(--ellm-graph-border);border-radius:var(--ellm-graph-radius);color:var(--ellm-graph-fg);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;padding:20px;width:100%}.ellm-graph,.ellm-graph *{box-sizing:border-box}.ellm-graph__header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin-bottom:16px;margin-top:10px}.ellm-graph__heading{align-items:center;display:flex;gap:10px;min-width:0}.ellm-graph__icon{align-items:center;background:#f3f4f6;border-radius:9px;color:#4f46e5;display:inline-flex;flex-shrink:0;height:34px;justify-content:center;width:34px}.ellm-graph__title{font-size:15px;font-weight:600;line-height:1.3}.ellm-graph__description{color:var(--ellm-graph-muted);font-size:12.5px;line-height:1.4;margin-top:2px}.ellm-graph__controls{align-items:center;display:flex;flex-shrink:0;flex-wrap:wrap;gap:10px}.ellm-graph__panes{display:flex;flex-direction:column}.ellm-graph__pane{background:#fff;border:1px solid var(--ellm-graph-border);border-radius:10px;min-width:0;padding:12px 12px 4px}.ellm-graph__pane-title{color:var(--ellm-graph-muted);font-size:12.5px;font-weight:600;margin-bottom:4px}.ellm-graph__legend{align-items:center;display:flex;flex-wrap:wrap;gap:20px;justify-content:center;padding-top:16px}.ellm-graph__legend-item{align-items:center;background:none;border:none;color:var(--ellm-graph-fg);cursor:pointer;display:inline-flex;font-family:inherit;font-size:12.5px;gap:7px;padding:2px 0;transition:opacity .15s ease}.ellm-graph__legend-item--off{opacity:.4}.ellm-graph__legend-marker{display:block;flex-shrink:0;overflow:visible}.ellm-graph__plotby{flex-shrink:0;position:relative}.ellm-graph__plotby-btn{align-items:center;background:#fff;border:1px solid var(--ellm-graph-border);border-radius:10px;color:#4b5563;cursor:pointer;display:inline-flex;font-family:inherit;font-size:14px;gap:10px;height:40px;padding:0 14px;transition:.18s ease}.ellm-graph__plotby-btn:hover{background:#f8fafc;border-color:#dbe3ef}.ellm-graph__plotby-btn--open{border-color:#6d28d9;color:#6d28d9}.ellm-graph__plotby-btn--open svg{color:#6d28d9}.ellm-graph__plotby-value{color:#111827;font-weight:600}.ellm-graph__plotby-btn--open .ellm-graph__plotby-value{color:#6d28d9}.ellm-graph__plotby-chevron{margin-left:2px;transition:transform .18s ease}.ellm-graph__plotby-btn--open .ellm-graph__plotby-chevron{transform:rotate(180deg)}.ellm-graph__plotby-menu{background:#fff;border:1px solid var(--ellm-graph-border);border-radius:12px;box-shadow:0 12px 28px #0000001f;min-width:160px;padding:6px;position:absolute;right:0;top:48px;z-index:50}.ellm-graph__plotby-option{background:#fff;border:none;border-radius:9px;color:#374151;cursor:pointer;display:block;font-family:inherit;font-size:14px;margin:2px 0;padding:9px 14px;text-align:left;transition:background .15s ease;width:100%}.ellm-graph__plotby-option:hover{background:#f3f4f6}.ellm-graph__plotby-option--active{background:#f5f3ff;color:#6d28d9;font-weight:600}.ellm-graph__empty,.ellm-graph__loading{align-items:center;color:var(--ellm-graph-muted);display:flex;font-size:13px;justify-content:center;min-height:120px}.ellm-graph__empty-default{align-items:center;display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:180px;padding:24px 16px;text-align:center}.ellm-graph__empty-icon{align-items:center;background:#f3f4f6;border-radius:12px;color:#9ca3af;display:inline-flex;height:44px;justify-content:center;margin-bottom:4px;width:44px}.ellm-graph__empty-title{color:var(--ellm-graph-fg);font-size:14px;font-weight:600}.ellm-graph__empty-desc{color:var(--ellm-graph-muted);font-size:12.5px;line-height:1.5;max-width:340px}.ellm-graph__skeleton{display:flex;gap:10px;min-height:180px;padding:8px 0 4px;width:100%}.ellm-graph__shimmer{background:#eef1f5;overflow:hidden;position:relative}.ellm-graph__shimmer:after{animation:ellm-graph-shimmer 1.6s ease-in-out infinite;background:linear-gradient(90deg,#0000,#ffffffa6 50%,#0000);content:"";inset:0;position:absolute;transform:translateX(-100%)}@keyframes ellm-graph-shimmer{to{transform:translateX(100%)}}.ellm-graph__skeleton-yaxis{display:flex;flex-direction:column;flex-shrink:0;justify-content:space-between;padding:4px 0 22px}.ellm-graph__skeleton-plot{display:flex;flex:1;flex-direction:column;min-width:0;position:relative}.ellm-graph__skeleton-grid{display:flex;flex-direction:column;inset:0 0 22px 0;justify-content:space-between;position:absolute}.ellm-graph__skeleton-gridline{background:#eef1f5;height:1px;width:100%}.ellm-graph__skeleton-svg{flex:1;min-height:0;position:relative;width:100%}.ellm-graph__skeleton-line{stroke:#dbe1e8;stroke-width:2.5;vector-effect:non-scaling-stroke}.ellm-graph__skeleton-area-top{stop-color:#dbe1e8;stop-opacity:.45}.ellm-graph__skeleton-area-bottom{stop-color:#dbe1e8;stop-opacity:0}.ellm-graph__skeleton-xaxis{display:flex;height:12px;justify-content:space-between;margin-top:10px}.ellm-graph__skeleton-tick{border-radius:4px}.ellm-graph__skeleton-yaxis .ellm-graph__skeleton-tick{height:10px;width:28px}.ellm-graph__skeleton-xaxis .ellm-graph__skeleton-tick{height:10px;width:40px}@media (prefers-reduced-motion:reduce){.ellm-graph__shimmer:after{animation:none}}.analytics-chart{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:24px}.analytics-chart__title{color:#111827;font-size:20px;font-weight:600;margin:0 0 24px}.th-table-toolbar{align-items:center;border-top-left-radius:8px;border-top-right-radius:8px;box-sizing:border-box;display:flex;gap:8px;height:60px;justify-content:center;width:100%}.th-table-toolbar__search{align-items:center;display:flex;flex:1}.th-table-toolbar__search-wrapper{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:6px;display:flex;height:35px;overflow:hidden;width:100%}.th-table-toolbar__search-input{background:#0000;border:none;color:#767676;flex:1;font-size:14px;font-weight:400;height:100%;outline:none;padding:0 12px}.th-table-toolbar__search-input::placeholder{color:#a0a8b8}.th-table-toolbar__search-input:focus{box-shadow:none;outline:none}.th-table-toolbar__search-input--disabled{background:#f3f4f6;cursor:not-allowed}.th-table-toolbar__search-btn-left{border:none;border-right:1px solid #e2e8f0}.th-table-toolbar__search-btn-left,.th-table-toolbar__search-btn-right{align-items:center;background:#fff;color:#6b7280;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:8px;height:100%;padding:0 12px;transition:background-color .2s ease,color .2s ease;white-space:nowrap}.th-table-toolbar__search-btn-right{border:none;border-left:1px solid #e2e8f0}.th-table-toolbar__search-btn:hover{background:#f9fafb}.th-table-toolbar__search-btn--disabled{color:#9ca3af;cursor:not-allowed;pointer-events:none}.th-table-toolbar__actions{align-items:center;display:flex;position:relative}.th-table-toolbar__btn{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:6px;color:#374151;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:8px;height:35px;justify-content:center;margin-left:8px;padding:0 12px;transition:all .2s ease;white-space:nowrap}.th-table-toolbar__btn:first-child{margin-left:0}.th-table-toolbar__btn--disabled{cursor:not-allowed;opacity:.5}.th-table-toolbar__btn--default{background:#fff;border-color:#d0d5dd;color:#374151}.th-table-toolbar__btn--filter-open{background:#f5f3ff;border-color:#a78bfa;color:#6d28d9}.th-table-toolbar__btn--filter-active,.th-table-toolbar__btn--sort-active{border-color:#4f46e5;color:#4f46e5}.th-table-toolbar__btn--refresh:active{border-color:#818cf8;color:#4f46e5}.th-table-toolbar__icon{flex-shrink:0;height:16px;width:16px}.th-table-toolbar__icon--primary{stroke:#4f46e5}.th-table-toolbar__badge{align-items:center;background:#eef2ff;border-radius:999px;display:inline-flex;gap:3.5px;padding:3px 7px}.th-table-toolbar__badge-text{color:#4f46e5;font-size:11px;font-weight:500}.th-table-toolbar__dropdown-wrapper{align-items:center;display:flex;position:relative}.th-table-toolbar__dropdown{background:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 4px 12px #1018281f;position:absolute;right:0;top:22px;width:250px;z-index:50}.th-table-toolbar__dropdown-item{align-items:center;color:#111827;cursor:pointer;display:flex;font-size:14px;height:38px;justify-content:space-between;padding:0 24px}.th-table-toolbar__dropdown-item:hover{background:#f3f4f6}.th-table-toolbar__dropdown-item--selected{background:#eef2ff;color:#4f46e5;font-weight:600}.th-table-toolbar__dropdown-footer{border-top:1px solid #eaecf0;padding:12px 16px;text-align:right}.th-table-toolbar__clear-btn{background:#0000;border:none;color:#475467;cursor:pointer;font-size:14px}.tg-root{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-width:0;width:100%}.tg-toolbar-row{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.tg-toolbar-left{min-width:0}.tg-toolbar,.tg-toolbar-left{align-items:center;display:flex;gap:8px}.tg-toolbar{margin-left:auto}.tg-toolbar-label{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;white-space:nowrap}.tg-toggle{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;gap:2px;padding:2px}.tg-toggle,.tg-toggle-btn{align-items:center;display:inline-flex}.tg-toggle-btn{background:#0000;border:1px solid #0000;border-radius:6px;color:#64748b;cursor:pointer;height:28px;justify-content:center;padding:0;transition:background .15s ease,color .15s ease;width:28px}.tg-toggle-btn:hover{background:#eef2f7;color:#334155}.tg-toggle-btn--active{background:#fff;border-color:#e2e8f0;box-shadow:0 1px 2px #1018280f;color:#7c3aed}.tg-toggle-btn--cramped{opacity:.45}.tg-grid{align-items:stretch;display:grid;min-width:0;width:100%}.tg-grid--auto-height{align-items:start}.tg-cell{box-sizing:border-box;display:flex;flex-direction:column}.tg-cell,.tg-cell>*{max-width:100%;min-width:0}.tg-cell>*{flex:1 1 auto;min-height:0}.tg-grid--auto-height .tg-cell>*{flex:0 0 auto}.tg-cell .p-datatable-wrapper{border-radius:12px;height:100%;overflow-x:auto}.q-sort{position:relative}.q-sort__trigger{background:#fff;border:1px solid #dbe4ee;border-radius:6px;color:#475467;cursor:pointer;height:31px;justify-content:space-between;padding:7px 0 7px 8px}.q-sort__left,.q-sort__trigger{align-items:center;display:flex}.q-sort__left{color:#475569;font-family:Inter;font-size:14px;gap:12px}.q-sort__menu{background:#fff;border:1px solid #dbe4ee;border-radius:12px;box-shadow:0 8px 24px #00000014;left:0;padding:8px 12px;position:absolute;top:calc(100% + 8px);width:100%;z-index:1000}.q-sort__option{background:#0000;border:none;border-radius:6px;color:#475569;cursor:pointer;font-family:Inter;font-size:13px;font-weight:500;padding:8px;text-align:left;width:100%}.q-sort__option:hover{background:#f8fafc}.q-sort__option--active{background:#f5f3ffe6;color:#0f172a;font-weight:500}.tc-root{background:#fff;border:1px solid #eeeef2;border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;overflow:visible;padding:8px 20px 16px;width:100%}.tc-root--fullscreen .tc-table{flex:1;min-height:0}.tc-root--fullscreen{background:#fff;border-radius:1;left:0;top:0;width:100vw!important;z-index:9}.tc-header{flex-wrap:wrap;justify-content:space-between;padding:30px 12px}.tc-header,.tc-header-left{align-items:center;display:flex}.tc-header-left{gap:12px}.tc-title-icon{align-items:center;color:#344054;display:flex;justify-content:center}.tc-title{color:#242533;font-family:Inter;font-size:18px;font-weight:600;line-height:16px}.tc-expand-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:4px;color:#475467;cursor:pointer;display:flex;height:28px;justify-content:center;width:28px}.tc-expand-btn:hover{background:#f8fafc}.tc-table{flex:1;min-height:0;overflow:hidden}.tc-header-right{display:flex;flex-wrap:wrap;gap:12px}.tc-search{border-radius:6px;color:#475569;font-family:Inter;font-size:14px;height:31px;padding-left:30px;width:254px}.tc-pagination-wrapper{margin-top:8px;padding:4px 0}.t-pagination{align-items:center;background:#fff;display:flex;font-family:Inter,sans-serif;justify-content:space-between}.t-pagination-left{color:#344054;font-size:14px;font-weight:500}.t-pagination-right{align-items:center;display:flex;gap:24px}.t-pagination-count{color:#344054;font-size:14px;font-weight:500}.t-pagination-nav{align-items:center;display:flex;gap:12px}.t-pagination-icon{align-items:center;background:#0000;border:none;color:#344054;cursor:pointer;display:flex;height:28px;justify-content:center;width:28px}.t-pagination-icon:hover:not(:disabled){background:#f2f4f7;border-radius:6px}.t-pagination-icon:disabled{color:#d0d5dd;cursor:not-allowed}.t-pagination-select-wrapper{position:relative}.t-pagination-select{appearance:none;-webkit-appearance:none;background:#fff;border:1px solid #d0d5dd;border-radius:8px;color:#344054;cursor:pointer;font-size:14px;font-weight:600;height:40px;padding:0 34px 0 14px;width:71px}.t-pagination-chevron{pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.audit-tableWrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;height:100%;overflow:hidden}.audit-table .p-datatable-tbody>tr:nth-child(odd){background:#f8fafc}.audit-table .p-datatable-tbody>tr:hover{background:#eff5ff!important}.audit-table .p-datatable-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#6b7280;font-family:Inter;font-size:12px;font-weight:600;height:54px;padding:8px 16px}.audit-table .p-datatable-thead>tr>th .p-column-header-content{align-items:center;justify-content:flex-start}.audit-table.col-header-align-left .p-datatable-thead>tr>th .p-column-header-content{justify-content:flex-start}.audit-table.col-header-align-center .p-datatable-thead>tr>th .p-column-header-content{justify-content:center}.audit-table.col-header-align-right .p-datatable-thead>tr>th .p-column-header-content{justify-content:flex-end}.audit-table.col-cell-align-left .p-datatable-tbody>tr>td{text-align:left}.audit-table.col-cell-align-center .p-datatable-tbody>tr>td{text-align:center}.audit-table.col-cell-align-right .p-datatable-tbody>tr>td{text-align:right}.p-datatable .p-sortable-column .p-sortable-column-icon{height:12px!important;width:12px!important}.audit-table .p-datatable-tbody>tr>td{border-bottom:1px solid #eef2f7;color:#101828;font-family:Inter;font-size:14px;font-weight:400;padding:16px}.audit-modifiedBy{align-items:center;display:flex;justify-content:center}.audit-actionCell{display:flex;flex-direction:column;gap:6px}.audit-chip{border-radius:6px;font-family:Inter;font-size:9px;font-weight:500;gap:5px;padding:4px 7px;width:fit-content}.audit-chip,.audit-chip__icon{align-items:center;display:inline-flex}.audit-chip__icon{justify-content:center}.audit-chip--purple{background:#ede9fe;color:#6d28d9}.audit-chip--orange{background:#ffedd5;color:#c2410c}.audit-actionText{color:#111827;font-size:12px;line-height:1.35}.audit-seeMore{background:#0000;border:0;color:#6d28d9;cursor:pointer;font-size:12px;font-weight:400;margin-left:4px;padding:0}.audit-dateCell{color:#101828;font-family:Inter;text-align:center}.audit-emptyState{align-items:center;color:#64748b;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.audit-emptyTitle{font-size:16px;font-weight:600;margin-top:8px}.audit-emptyDesc{font-size:13px;margin-top:4px}.audit-skeletonRow{display:flex;gap:16px;padding:12px 0}.audit-operation-body{align-items:center;display:flex;justify-content:center}.audit-logIdBody{margin:0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-table .p-datatable-tbody>tr.audit-row--clickable{cursor:pointer}.audit-table .p-datatable-tbody>tr.p-datatable-row-expansion>td{background:#fff;padding:0}.audit-rowDetail{background:#fff;border-top:1px solid #eef2f7;padding:16px 20px}.audit-table .p-datatable-tfoot>tr>.audit-paginationEnd{background:#fff;border:0;height:auto;padding:12px 16px;text-align:center}.audit-paginationEndContent{align-items:center;background:#f0fdf4;border-radius:999px;color:#15803d;display:inline-flex;font-family:Inter,sans-serif;font-size:12px;font-weight:500;gap:7px;line-height:1;padding:6px 11px}.audit-paginationEndContent .pi{font-size:13px}
|
|
1
|
+
.App{height:100vh;overflow-y:auto;width:100vw}.chart-scroll{-webkit-overflow-scrolling:touch;background:var(--bg);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);overflow-x:auto;overflow-y:hidden;scrollbar-color:var(--accent-border) #0000;scrollbar-width:thin;width:100%}.chart-scroll::-webkit-scrollbar{height:10px}.chart-scroll::-webkit-scrollbar-track{background:#0000}.chart-scroll::-webkit-scrollbar-thumb{background:var(--accent-border);border-radius:999px}.chart-scroll::-webkit-scrollbar-thumb:hover{background:var(--accent)}.chart-inner{width:2600px}.ellm-graph__legend-item{--checkbox-color:currentColor}.ellm-graph__legend-checkbox{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:#fff;border:2px solid;border-color:inherit;border-radius:4px;cursor:pointer;flex-shrink:0;height:16px;position:relative;transition:all .15s ease;width:16px}.ellm-graph__legend-checkbox:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.ellm-graph__legend-checkbox:checked:after{color:#fff;content:"✓";font-size:11px;font-weight:700;left:50%;line-height:1;position:absolute;top:50%;transform:translate(-50%,-50%)}.ellm-graph__liveLabelContainer{align-items:center;display:flex;gap:16px;height:100%;width:100%}.ellm-graph__liveLabel{align-items:center;color:#dc2626;display:flex;font-size:12px;font-weight:600,;gap:6px;height:100%;padding:0 12px}.pulse{animation:pulse 1.5s infinite}@keyframes pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}.ellm-graph__scroll-container{border-radius:var(--ellm-graph-radius);overflow-x:auto;overflow-y:hidden;scrollbar-color:#d7dbe3 #f3f4f6;scrollbar-width:thin;width:100%}.ellm-graph__scroll-container::-webkit-scrollbar{height:8px}.ellm-graph__scroll-container::-webkit-scrollbar-track{background:#f3f4f6}.ellm-graph__scroll-container::-webkit-scrollbar-thumb{background:#d7dbe3;border-radius:4px}.ellm-graph__scroll-container::-webkit-scrollbar-thumb:hover{background:#b1b5be}.audit-table .p-datatable-thead>tr>th .p-column-header-content{justify-content:center}.audit-table .p-datatable-tbody>tr>td{height:92px}.tc-root--fullscreen{border-radius:0;height:100vh!important;position:fixed}.tg-cell .p-datatable-wrapper{max-height:90vh!important}.q-skeleton{display:flex;flex-direction:column;gap:12px;padding:10px;width:100%}.q-skeleton-card,.q-skeleton-line,.q-skeleton-pill,.q-skeleton-sparkline-path{background:#eef1f5;overflow:hidden;position:relative}.q-skeleton-card:after,.q-skeleton-line:after,.q-skeleton-pill:after{animation:q-shimmer 1.6s ease-in-out infinite;background:linear-gradient(90deg,#0000,#ffffffa6 50%,#0000);content:"";inset:0;position:absolute;transform:translateX(-100%)}@keyframes q-shimmer{to{transform:translateX(100%)}}.q-skeleton-toolbar{align-items:center;justify-content:space-between}.q-skeleton-presets,.q-skeleton-toolbar{display:flex;gap:8px}.q-skeleton-pill{border-radius:8px;height:32px;width:64px}.q-skeleton-pill--wide{width:72px}.q-skeleton-pill--filter{width:88px}.q-skeleton-pill--selector{border-radius:8px;height:34px;width:110px}.q-skeleton-card{border:1px solid #eef1f5;border-radius:14px;padding:16px 20px}.q-skeleton-graph{padding:20px}.q-skeleton-graph-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:18px}.q-skeleton-line{border-radius:6px}.q-skeleton-line--title{height:16px;margin-bottom:8px;width:160px}.q-skeleton-line--subtitle{height:12px;width:100px}.q-skeleton-graph-body{align-items:flex-end;display:flex;height:180px}.q-skeleton-sparkline{height:100%;width:100%}.q-skeleton-sparkline-path{stroke:#dbe1e8;stroke-width:3;background:none}.q-skeleton-kpis{display:flex;flex-wrap:wrap;gap:10px}.q-skeleton-kpi{flex:1 1 200px;min-width:200px}.q-skeleton-line--label{height:12px;margin-bottom:12px;width:90px}.q-skeleton-line--value{height:24px;margin-bottom:10px;width:70px}.q-skeleton-line--sublabel{height:10px;width:110px}@media (prefers-reduced-motion:reduce){.q-skeleton-card:after,.q-skeleton-line:after,.q-skeleton-pill:after{animation:none}}.q-date-filter{display:flex;flex-direction:column;gap:12px}.q-date-filter-toolbar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;gap:16px;justify-content:space-between;padding:12px 16px}.q-date-filter-toolbar,.q-preset-container{align-items:center;display:flex;flex-wrap:wrap}.q-preset-container{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:6px}.q-preset-btn{background:#0000;border:none;border-radius:999px;color:#334155;cursor:pointer;font-size:14px;font-weight:500;outline:none;padding:10px 20px;transition:.2s}.q-preset-btn:hover{background:#f9fafb}.q-preset-btn.active{background:#6d28d9;color:#fff}.q-live-chip{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;display:flex;font-size:14px;font-weight:500;gap:8px;height:33px;padding:0 16px}.q-live-dot{background:#15803d;border-radius:50%;height:8px;width:8px}.q-filter-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#475569;cursor:pointer;display:flex;font-family:Inter;font-weight:500;gap:8px;height:33px;padding:5.25px 8.75px}.q-filter-btn:hover{background:#f9fafb}.q-filter-badge{align-items:center;background:#6d28d9;border-radius:50%;color:#fff;display:flex;font-size:12px;height:20px;justify-content:center;width:20px}.q-custom-container{align-items:flex-end;background:#fff;background:#f8fafc;border:1px solid #e4e7ec;border-radius:16px;display:flex;gap:16px;padding:16px}.q-refresh-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#262d33;cursor:pointer;display:flex;font-family:Inter;font-size:14px;font-weight:500;gap:12px;height:33px;padding:6px 9px}.q-refresh-btn:hover{background:#f9fafb}.q-apply-btn{align-items:center;background:#6d28d9;border:1px solid #e2e8f0;border-radius:6px;color:#fff;display:flex;font-family:Inter;font-size:14px;gap:12px;height:33px;margin-bottom:8px;padding:7px 11px}.q-apply-btn:hover{background:#5b21b6}.q-apply-btn:disabled{opacity:.7}.q-custom-container .p-calendar{width:280px}.q-custom-container .p-inputtext{width:100%}@media (max-width:650px){.q-date-separator{display:none}}@media (max-width:1124px){.q-custom-container{flex-wrap:wrap}.q-preset-container{border-radius:16px}}.q-spin{animation:q-spin 1s linear infinite}@keyframes q-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.date-picker{align-items:flex-start;background:#fff;border-radius:10px;box-shadow:0 8px 24px #0000001f;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;padding:10px 12px;width:260px}.date-picker__header{align-items:center;display:flex;justify-content:space-between;width:100%}.header-selects{align-items:center;display:flex;gap:4px}.header-select{appearance:none;-webkit-appearance:none;background:#f8fafc;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 5px center;background-repeat:no-repeat;border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;font-weight:600;outline:none;padding:3px 20px 3px 7px}.header-select:hover{border-color:#94a3b8}.header-select:focus{border-color:#2563eb}.month-label{color:#0f172a;font-size:13px;font-weight:600}.nav-btn{background:none;border:none;color:#475569;cursor:pointer;font-size:16px;line-height:1;padding:0 4px}.date-picker__top-actions{display:flex;gap:6px;width:100%}.selected-date{border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;flex:1}.selected-date,.today-btn{font-size:12px;padding:5px 8px}.today-btn{background:#fff;border:1px solid #2563eb;border-radius:6px;color:#2563eb;cursor:pointer}.today-btn--disabled{border-color:#94a3b8;color:#94a3b8;cursor:not-allowed;opacity:.4;pointer-events:none}.date-picker__weekdays{color:#64748b;font-size:11px;font-weight:500;text-align:center}.date-picker__days,.date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);width:100%}.date-picker__days{gap:3px}.day{align-items:center;background:#0000;border:none;border-radius:50%;color:#0f172a;cursor:pointer;display:flex;font-size:12px;height:28px;justify-content:center;margin:auto;width:28px}.day--disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.day:hover{background:#f1f5f9}.day--today{background:#e2e8f0;font-weight:600}.day--selected{background:#2563eb;color:#fff}.month-label-click,.year-label-click{border-radius:4px;cursor:pointer;padding:1px 3px;transition:background .1s}.month-label-click:hover,.year-label-click:hover{background:#f1f5f9}.date-picker__month-grid{display:grid;gap:4px;grid-template-columns:repeat(3,1fr);width:100%}.month-cell{background:#0000;border:none;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;padding:6px 0;text-align:center}.month-cell:hover{background:#f1f5f9}.month-cell--selected{background:#2563eb;color:#fff}.date-picker__year-grid{display:grid;gap:4px;grid-template-columns:repeat(4,1fr);width:100%}.year-cell{background:#0000;border:none;border-radius:6px;color:#0f172a;cursor:pointer;font-size:12px;padding:6px 0;text-align:center}.year-cell:hover{background:#f1f5f9}.year-cell--selected{background:#2563eb;color:#fff}.q-date-selector{padding:7px 10px;position:relative}.q-date-selector__label{color:#475569;display:block;font-family:Inter;font-size:14px;font-weight:500;margin-bottom:10px}.q-date-selector__trigger{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:6px;color:#1e293b;cursor:pointer;display:flex;font-size:14px;font-weight:400;height:33px;justify-content:space-between;padding:0 18px;width:100%}.q-date-selector__trigger:hover{border-color:#b8c0cc}.q-date-selector__panel{left:0;position:absolute;top:calc(100% + 8px);z-index:1000}.q-date-selector__panel--top{bottom:calc(100% + 8px);top:auto}.metric-card{background:#f8fafc33;border:1px solid #e2e8f0;border-radius:24px;box-sizing:border-box;flex:1;min-width:266px;padding:24px;transition:all .2s ease;width:fit-content}.metric-card:hover{box-shadow:0 4px 12px #0000000d}.metric-card__content{align-items:center;display:flex;gap:24px;height:100%;justify-content:space-between}.metric-card__title{color:#00000080;font-size:14px;font-weight:400;margin-bottom:4px}.metric-card__value{display:flex;font-size:25px;font-weight:700;gap:4px}.metric-card__delta,.metric-card__value{align-items:center;line-height:1;margin-top:4px}.metric-card__delta{display:inline-flex;font-size:13px;font-weight:600;gap:3px;white-space:nowrap}.metric-card__delta-caption{font-size:12px;font-weight:500;margin-left:2px;opacity:.65}.metric-card__value-skeleton{animation:metric-card-shimmer 1.4s ease infinite;background:linear-gradient(90deg,#0000000f 25%,#0000001f 37%,#0000000f 63%);background-size:400% 100%;border-radius:6px;display:inline-block;height:25px;width:72px}@keyframes metric-card-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.metric-card__subtitle{color:#64748b;font-size:12px;font-weight:500;margin-top:10px}.metric-card__icon-container{align-items:center;background:#7c3aed1a;border-radius:6px;color:#6d28d9;display:flex;height:40px;justify-content:center;width:40px}.metric-card__stats{align-items:flex-start;display:flex;gap:20px;margin-bottom:16px;margin-top:12px}.metric-card__stat{display:flex;flex-direction:column;gap:6px;position:relative}.metric-card__stat-label{align-items:center;color:#64748b;display:flex;font-size:12px;font-weight:500;gap:6px}.metric-card__dot{border-radius:50%;height:8px;width:8px}.metric-card__stat-value{color:#262d33;font-family:Inter;font-size:14px;font-weight:700}.metric-card__divider{background:#e2e8f0;height:100%;position:absolute;right:-12px;top:0;width:1px}.metric-card__progress{background:#ede9fe;border-radius:999px;display:flex;height:10px;overflow:hidden;width:100%}.metric-card__progress-segment{height:100%}.metric-card__stats{margin-top:0}@media (max-width:1000px){.metric-card__title{font-size:12px}.metric-card__subtitle{font-size:10px;margin-top:10px}.metric-card__value{font-size:25px}.metric-card__stats{gap:20px;margin-bottom:16px}.metric-card__stat-value{font-size:14px}.metric-card__icon-container{height:40px;margin-top:8px;width:40px}.metric-card__icon-container svg{height:24px!important;width:24px!important}}@media (max-width:768px){.metric-card__content--has-segments{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto}.metric-card__content--has-segments>:first-child{grid-area:1/1}.metric-card__content--has-segments>:nth-child(2){grid-area:2/1/2/3}.metric-card__content--has-segments>:nth-child(3){grid-area:1/2}.metric-card__value{font-size:22px}.metric-card__stats{gap:16px;margin-bottom:12px}.metric-card__stat-value{font-size:14px}.metric-card__icon-container{height:38px;margin-top:4px;width:38px}.metric-card__icon-container svg{height:20px!important;width:20px!important}}.log-filterSidebar{width:400px}.log-filterTitle{color:#334155;font-family:Inter;font-size:18px;font-weight:600}.log-filterBody{display:flex;flex-direction:column;gap:16px}.log-filterBlock .log-filterLabel{color:#334155;font-family:Inter;font-size:14px;font-weight:600}.log-filterHint{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;line-height:130%;margin-top:4px}.log-filterFooter{background:#fff;bottom:0;display:flex;gap:10px;justify-content:flex-end;left:0;padding:12px 16px;position:absolute;right:0}.log-btnReset{background:#fff;border:1px solid #e2e8f0;color:#64748b}.log-btnApply,.log-btnReset{border-radius:6px;font-family:Inter;font-size:14px;font-weight:500;padding:8px 11px}.log-btnApply{background:#5925dc;color:#fff}.log-filter-date .drs__trigger{margin-top:12px;width:100%}.log-filterEmpty{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:6px;color:#94a3b8;font-family:Inter;font-size:13px;font-weight:500;padding:10px 12px;text-align:center}.drs{position:relative}.drs__trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#475569;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;height:40px;padding:0 18px;transition:.2s ease}.drs__trigger:hover{background:#f8fafc;border-color:#dbe3ef}.drs__label{color:#6b7280;font-family:Inter;font-size:14px}.drs__popover{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 16px 40px #00000024;position:absolute;right:0;top:60px;width:340px;z-index:9999}.drs__header{align-items:center;display:flex;justify-content:space-between;padding:16px 16px 10px}.drs__month{color:#1e293b;display:flex;font-family:Inter,sans-serif;font-size:17px;font-weight:700;gap:5px}.drs__month-click,.drs__year-click{border-radius:4px;cursor:pointer;padding:1px 4px;transition:background-color .15s ease}.drs__month-click:hover,.drs__year-click:hover{background:#f1f5f9;color:#635ae3}.drs__nav{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#64748b;cursor:pointer;display:inline-flex;height:34px;justify-content:center;width:34px}.drs__nav:hover{background:#f8fafc;color:#1e293b}.drs__inputs{gap:8px;padding:0 16px 12px}.drs__input-box,.drs__inputs{align-items:center;display:flex}.drs__input-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;flex:1;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:36px;padding:0 10px;transition:border-color .15s ease}.drs__input-box.is-active{background:#fff;border-color:#635ae3}.drs__input-placeholder{color:#94a3b8;font-weight:400}.drs__input-sep{color:#94a3b8;font-size:16px}.drs__week{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 4px}.drs__weekday{color:#94a3b8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:4px 0;text-align:center}.drs__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 12px;row-gap:2px}.drs__day{align-items:center;background:#0000;border:none;color:#0f172a;cursor:pointer;display:flex;font-family:Inter,sans-serif;font-size:14px;font-weight:400;height:36px;justify-content:center;padding:0;position:relative;width:100%}.drs__day.is-disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.drs__day-inner{align-items:center;border-radius:50%;display:flex;height:34px;justify-content:center;position:relative;transition:background-color .12s ease;width:34px;z-index:1}.drs__day:hover:not(.is-start):not(.is-end) .drs__day-inner{background:#f1f5f9}.drs__day.is-out{color:#cbd5e1}.drs__day.is-range-start:before,.drs__day.is-range:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;z-index:0}.drs__day.is-range-start:before{left:50%}.drs__day.is-range-end:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;right:50%;z-index:0}.drs__day.is-row-first:before{border-radius:50% 0 0 50%}.drs__day.is-row-last:before{border-radius:0 50% 50% 0}.drs__day.is-end .drs__day-inner,.drs__day.is-start .drs__day-inner{background:#635ae3;color:#fff;font-weight:600}.drs__day.is-end:hover .drs__day-inner,.drs__day.is-start:hover .drs__day-inner{background:#4f46d8}.drs__month-grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:8px 16px 16px}.drs__month-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:500;height:44px}.drs__month-cell:hover{background:#f1f5f9}.drs__month-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__year-grid{display:grid;gap:8px;grid-template-columns:repeat(4,1fr);padding:8px 16px 16px}.drs__year-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:44px;transition:background-color .15s ease}.drs__year-cell:hover{background:#f1f5f9}.drs__year-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__footer{border-top:1px solid #eef2f7;display:flex;gap:10px;justify-content:flex-end;padding:12px 16px}.drs__btn{border:1px solid #0000;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:600;height:40px;padding:0 20px}.drs__btn--ghost{background:#fff;border-color:#e5e7eb;color:#475569}.drs__btn--ghost:hover{background:#f8fafc}.drs__btn--primary{background:#635ae3;color:#fff}.drs__btn--primary:hover{background:#4f46d8}.drs__btn--primary:disabled{cursor:not-allowed;opacity:.45}.audit-filterBlock .date-range-wrapper,.audit-filterControl,.cms-root{width:100%}.cms-root{position:relative}.cms-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.cms-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.cms-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.cms-hasValue{color:#334155}.cms-chevron{color:#64748b}.cms-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px #1018281f;left:0;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:9999}.cms-searchRow{align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;display:flex;gap:10px;height:40px;margin-bottom:10px;padding:0 12px}.cms-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.cms-divider{background:#e2e8f0;height:1px;margin:10px 0}.cms-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.cms-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;min-height:30px;padding:0 8px}.cms-item:hover{background:#f8fafc}.cms-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.cms-checked{background:#5925dc;border-color:#5925dc}.cms-itemText{color:#334155;font-family:Inter;font-size:14px}.cti-input{border:1px solid #e2e8f0;border-radius:8px;box-sizing:border-box;font-size:14px;height:40px;outline:none;padding:0 18px;width:100%}.cti-input:disabled{background:#f8fafc;cursor:not-allowed}.cti-wrapper{position:relative}.cti-search-icon{color:#666f8d;left:12px;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.cti-input--with-icon{padding-left:40px}.css-root{position:relative;width:100%}.css-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.css-trigger:disabled{cursor:not-allowed;opacity:.6}.css-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.css-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.css-hasValue{color:#0f172a}.css-chevron{color:#334155}.css-panel{background:#fff;box-shadow:0 8px 24px #1018281f;left:0;overflow:hidden;padding:10px;position:absolute;right:0;top:calc(100% + 4px);z-index:1000}.css-panel,.css-searchRow{border:1px solid #e2e8f0;border-radius:8px}.css-searchRow{align-items:center;color:#64748b;display:flex;gap:10px;height:40px;margin-bottom:10px;padding:0 12px}.css-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.css-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.css-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;justify-content:space-between;min-height:30px;padding:0 8px}.css-item:hover{background:#f8fafc}.css-selected{background:#f4f0fe}.css-selected:hover{background:#ece5fd}.css-selected .css-itemText{color:#5925dc;font-weight:500}.css-itemCheck{color:#5925dc;font-size:14px;font-weight:700}.css-itemText{font-size:14px}.css-empty{color:#94a3b8;padding:16px;text-align:center}.css-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.css-checked{background:#5925dc;border-color:#5925dc}.ellm-chart{display:block;font-size:12px;width:100%}.ellm-chart .recharts-responsive-container{height:100%!important;width:100%!important}.ellm-chart .recharts-cartesian-axis-tick text{fill:#6b7280}.ellm-chart .recharts-cartesian-grid line[stroke="#ccc"]{stroke:#eef0f4}.ellm-chart .recharts-curve.recharts-tooltip-cursor{stroke:#d7dbe3}.ellm-chart .recharts-dot[stroke="#fff"]{stroke:#0000}.ellm-chart .recharts-layer{outline:none}.ellm-chart .recharts-sector[stroke="#fff"]{stroke:#0000}.ellm-chart .recharts-sector,.ellm-chart .recharts-surface{outline:none}.ellm-chart .recharts-reference-line[stroke="#ccc"]{stroke:#e5e7eb}.ellm-chart__tooltip{background:#fff;border:1px solid #0000000f;border-radius:8px;box-shadow:0 6px 20px #0000001f;color:#111827;display:grid;font-size:12px;gap:6px;min-width:8rem;padding:8px 10px}.ellm-chart__tooltip-label{color:#111827;font-weight:600}.ellm-chart__tooltip-items{display:grid;gap:6px}.ellm-chart__tooltip-item{align-items:center;display:flex;gap:8px;width:100%}.ellm-chart__tooltip-row{align-items:center;display:flex;flex:1;gap:12px;justify-content:space-between;line-height:1}.ellm-chart__tooltip-row--nested{align-items:flex-end}.ellm-chart__tooltip-grid{display:grid;gap:2px}.ellm-chart__tooltip-name{color:#6b7280}.ellm-chart__tooltip-value{color:#111827;font-variant-numeric:tabular-nums;font-weight:600}.ellm-chart__indicator{background:var(--indicator-color);border-color:var(--indicator-color);flex-shrink:0}.ellm-chart__indicator--dot{border-radius:50%;height:10px;width:10px}.ellm-chart__indicator--line{border-radius:2px;height:14px;width:4px}.ellm-chart__indicator--dashed{background:#0000;border:1.5px dashed var(--indicator-color);height:0;height:14px;margin:0 1px;width:0}.ellm-chart__legend{align-items:center;display:flex;flex-wrap:wrap;gap:16px;padding-top:10px}.ellm-chart__legend--top{padding-bottom:10px;padding-top:0}.ellm-chart__legend--start{justify-content:flex-start}.ellm-chart__legend--center{justify-content:center}.ellm-chart__legend--end{justify-content:flex-end}.ellm-chart__legend-item{align-items:center;background:none;border:none;color:#111827;display:inline-flex;font-family:inherit;font-size:12.5px;gap:7px;padding:2px 0;transition:opacity .15s ease}.ellm-chart__legend-item--off{opacity:.4}.ellm-chart__legend-marker{display:block;flex-shrink:0;overflow:visible}.ellm-graph{--ellm-graph-fg:#111827;--ellm-graph-muted:#6b7280;--ellm-graph-border:#e5e7eb;--ellm-graph-radius:12px;background:#fff;border:1px solid var(--ellm-graph-border);border-radius:var(--ellm-graph-radius);color:var(--ellm-graph-fg);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;padding:20px;width:100%}.ellm-graph,.ellm-graph *{box-sizing:border-box}.ellm-graph__header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin-bottom:16px;margin-top:10px}.ellm-graph__heading{align-items:center;display:flex;gap:10px;min-width:0}.ellm-graph__icon{align-items:center;background:#f3f4f6;border-radius:9px;color:#4f46e5;display:inline-flex;flex-shrink:0;height:34px;justify-content:center;width:34px}.ellm-graph__title{font-size:15px;font-weight:600;line-height:1.3}.ellm-graph__description{color:var(--ellm-graph-muted);font-size:12.5px;line-height:1.4;margin-top:2px}.ellm-graph__controls{align-items:center;display:flex;flex-shrink:0;flex-wrap:wrap;gap:10px}.ellm-graph__panes{display:flex;flex-direction:column}.ellm-graph__pane{background:#fff;border:1px solid var(--ellm-graph-border);border-radius:10px;min-width:0;padding:12px 12px 4px}.ellm-graph__pane-title{color:var(--ellm-graph-muted);font-size:12.5px;font-weight:600;margin-bottom:4px}.ellm-graph__legend{align-items:center;display:flex;flex-wrap:wrap;gap:20px;justify-content:center;padding-top:16px}.ellm-graph__legend-item{align-items:center;background:none;border:none;color:var(--ellm-graph-fg);cursor:pointer;display:inline-flex;font-family:inherit;font-size:12.5px;gap:7px;padding:2px 0;transition:opacity .15s ease}.ellm-graph__legend-item--off{opacity:.4}.ellm-graph__legend-marker{display:block;flex-shrink:0;overflow:visible}.ellm-graph__plotby{flex-shrink:0;position:relative}.ellm-graph__plotby-btn{align-items:center;background:#fff;border:1px solid var(--ellm-graph-border);border-radius:10px;color:#4b5563;cursor:pointer;display:inline-flex;font-family:inherit;font-size:14px;gap:10px;height:40px;padding:0 14px;transition:.18s ease}.ellm-graph__plotby-btn:hover{background:#f8fafc;border-color:#dbe3ef}.ellm-graph__plotby-btn--open{border-color:#6d28d9;color:#6d28d9}.ellm-graph__plotby-btn--open svg{color:#6d28d9}.ellm-graph__plotby-value{color:#111827;font-weight:600}.ellm-graph__plotby-btn--open .ellm-graph__plotby-value{color:#6d28d9}.ellm-graph__plotby-chevron{margin-left:2px;transition:transform .18s ease}.ellm-graph__plotby-btn--open .ellm-graph__plotby-chevron{transform:rotate(180deg)}.ellm-graph__plotby-menu{background:#fff;border:1px solid var(--ellm-graph-border);border-radius:12px;box-shadow:0 12px 28px #0000001f;min-width:160px;padding:6px;position:absolute;right:0;top:48px;z-index:50}.ellm-graph__plotby-option{background:#fff;border:none;border-radius:9px;color:#374151;cursor:pointer;display:block;font-family:inherit;font-size:14px;margin:2px 0;padding:9px 14px;text-align:left;transition:background .15s ease;width:100%}.ellm-graph__plotby-option:hover{background:#f3f4f6}.ellm-graph__plotby-option--active{background:#f5f3ff;color:#6d28d9;font-weight:600}.ellm-graph__empty,.ellm-graph__loading{align-items:center;color:var(--ellm-graph-muted);display:flex;font-size:13px;justify-content:center;min-height:120px}.ellm-graph__empty-default{align-items:center;display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:180px;padding:24px 16px;text-align:center}.ellm-graph__empty-icon{align-items:center;background:#f3f4f6;border-radius:12px;color:#9ca3af;display:inline-flex;height:44px;justify-content:center;margin-bottom:4px;width:44px}.ellm-graph__empty-title{color:var(--ellm-graph-fg);font-size:14px;font-weight:600}.ellm-graph__empty-desc{color:var(--ellm-graph-muted);font-size:12.5px;line-height:1.5;max-width:340px}.ellm-graph__skeleton{display:flex;gap:10px;min-height:180px;padding:8px 0 4px;width:100%}.ellm-graph__shimmer{background:#eef1f5;overflow:hidden;position:relative}.ellm-graph__shimmer:after{animation:ellm-graph-shimmer 1.6s ease-in-out infinite;background:linear-gradient(90deg,#0000,#ffffffa6 50%,#0000);content:"";inset:0;position:absolute;transform:translateX(-100%)}@keyframes ellm-graph-shimmer{to{transform:translateX(100%)}}.ellm-graph__skeleton-yaxis{display:flex;flex-direction:column;flex-shrink:0;justify-content:space-between;padding:4px 0 22px}.ellm-graph__skeleton-plot{display:flex;flex:1;flex-direction:column;min-width:0;position:relative}.ellm-graph__skeleton-grid{display:flex;flex-direction:column;inset:0 0 22px 0;justify-content:space-between;position:absolute}.ellm-graph__skeleton-gridline{background:#eef1f5;height:1px;width:100%}.ellm-graph__skeleton-svg{flex:1;min-height:0;position:relative;width:100%}.ellm-graph__skeleton-line{stroke:#dbe1e8;stroke-width:2.5;vector-effect:non-scaling-stroke}.ellm-graph__skeleton-area-top{stop-color:#dbe1e8;stop-opacity:.45}.ellm-graph__skeleton-area-bottom{stop-color:#dbe1e8;stop-opacity:0}.ellm-graph__skeleton-xaxis{display:flex;height:12px;justify-content:space-between;margin-top:10px}.ellm-graph__skeleton-tick{border-radius:4px}.ellm-graph__skeleton-yaxis .ellm-graph__skeleton-tick{height:10px;width:28px}.ellm-graph__skeleton-xaxis .ellm-graph__skeleton-tick{height:10px;width:40px}@media (prefers-reduced-motion:reduce){.ellm-graph__shimmer:after{animation:none}}.analytics-chart{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:24px}.analytics-chart__title{color:#111827;font-size:20px;font-weight:600;margin:0 0 24px}.th-table-toolbar{align-items:center;border-top-left-radius:8px;border-top-right-radius:8px;box-sizing:border-box;display:flex;gap:8px;height:60px;justify-content:center;width:100%}.th-table-toolbar__search{align-items:center;display:flex;flex:1}.th-table-toolbar__search-wrapper{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:6px;display:flex;height:35px;overflow:hidden;width:100%}.th-table-toolbar__search-input{background:#0000;border:none;color:#767676;flex:1;font-size:14px;font-weight:400;height:100%;outline:none;padding:0 12px}.th-table-toolbar__search-input::placeholder{color:#a0a8b8}.th-table-toolbar__search-input:focus{box-shadow:none;outline:none}.th-table-toolbar__search-input--disabled{background:#f3f4f6;cursor:not-allowed}.th-table-toolbar__search-btn-left{border:none;border-right:1px solid #e2e8f0}.th-table-toolbar__search-btn-left,.th-table-toolbar__search-btn-right{align-items:center;background:#fff;color:#6b7280;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:8px;height:100%;padding:0 12px;transition:background-color .2s ease,color .2s ease;white-space:nowrap}.th-table-toolbar__search-btn-right{border:none;border-left:1px solid #e2e8f0}.th-table-toolbar__search-btn:hover{background:#f9fafb}.th-table-toolbar__search-btn--disabled{color:#9ca3af;cursor:not-allowed;pointer-events:none}.th-table-toolbar__actions{align-items:center;display:flex;position:relative}.th-table-toolbar__btn{align-items:center;background:#fff;border:1px solid #d0d5dd;border-radius:6px;color:#374151;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:8px;height:35px;justify-content:center;margin-left:8px;padding:0 12px;transition:all .2s ease;white-space:nowrap}.th-table-toolbar__btn:first-child{margin-left:0}.th-table-toolbar__btn--disabled{cursor:not-allowed;opacity:.5}.th-table-toolbar__btn--default{background:#fff;border-color:#d0d5dd;color:#374151}.th-table-toolbar__btn--filter-open{background:#f5f3ff;border-color:#a78bfa;color:#6d28d9}.th-table-toolbar__btn--filter-active,.th-table-toolbar__btn--sort-active{border-color:#4f46e5;color:#4f46e5}.th-table-toolbar__btn--refresh:active{border-color:#818cf8;color:#4f46e5}.th-table-toolbar__icon{flex-shrink:0;height:16px;width:16px}.th-table-toolbar__icon--primary{stroke:#4f46e5}.th-table-toolbar__badge{align-items:center;background:#eef2ff;border-radius:999px;display:inline-flex;gap:3.5px;padding:3px 7px}.th-table-toolbar__badge-text{color:#4f46e5;font-size:11px;font-weight:500}.th-table-toolbar__dropdown-wrapper{align-items:center;display:flex;position:relative}.th-table-toolbar__dropdown{background:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 4px 12px #1018281f;position:absolute;right:0;top:22px;width:250px;z-index:50}.th-table-toolbar__dropdown-item{align-items:center;color:#111827;cursor:pointer;display:flex;font-size:14px;height:38px;justify-content:space-between;padding:0 24px}.th-table-toolbar__dropdown-item:hover{background:#f3f4f6}.th-table-toolbar__dropdown-item--selected{background:#eef2ff;color:#4f46e5;font-weight:600}.th-table-toolbar__dropdown-footer{border-top:1px solid #eaecf0;padding:12px 16px;text-align:right}.th-table-toolbar__clear-btn{background:#0000;border:none;color:#475467;cursor:pointer;font-size:14px}.tg-root{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-width:0;width:100%}.tg-toolbar-row{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.tg-toolbar-left{min-width:0}.tg-toolbar,.tg-toolbar-left{align-items:center;display:flex;gap:8px}.tg-toolbar{margin-left:auto}.tg-toolbar-label{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;white-space:nowrap}.tg-toggle{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;gap:2px;padding:2px}.tg-toggle,.tg-toggle-btn{align-items:center;display:inline-flex}.tg-toggle-btn{background:#0000;border:1px solid #0000;border-radius:6px;color:#64748b;cursor:pointer;height:28px;justify-content:center;padding:0;transition:background .15s ease,color .15s ease;width:28px}.tg-toggle-btn:hover{background:#eef2f7;color:#334155}.tg-toggle-btn--active{background:#fff;border-color:#e2e8f0;box-shadow:0 1px 2px #1018280f;color:#7c3aed}.tg-toggle-btn--cramped{opacity:.45}.tg-grid{align-items:stretch;display:grid;min-width:0;width:100%}.tg-grid--auto-height{align-items:start}.tg-cell{box-sizing:border-box;display:flex;flex-direction:column}.tg-cell,.tg-cell>*{max-width:100%;min-width:0}.tg-cell>*{flex:1 1 auto;min-height:0}.tg-grid--auto-height .tg-cell>*{flex:0 0 auto}.tg-cell .p-datatable-wrapper{border-radius:12px;height:100%;overflow-x:auto}.q-sort{position:relative}.q-sort__trigger{background:#fff;border:1px solid #dbe4ee;border-radius:6px;color:#475467;cursor:pointer;height:31px;justify-content:space-between;padding:7px 0 7px 8px}.q-sort__left,.q-sort__trigger{align-items:center;display:flex}.q-sort__left{color:#475569;font-family:Inter;font-size:14px;gap:12px}.q-sort__menu{background:#fff;border:1px solid #dbe4ee;border-radius:12px;box-shadow:0 8px 24px #00000014;left:0;padding:8px 12px;position:absolute;top:calc(100% + 8px);width:100%;z-index:1000}.q-sort__option{background:#0000;border:none;border-radius:6px;color:#475569;cursor:pointer;font-family:Inter;font-size:13px;font-weight:500;padding:8px;text-align:left;width:100%}.q-sort__option:hover{background:#f8fafc}.q-sort__option--active{background:#f5f3ffe6;color:#0f172a;font-weight:500}.tc-root{background:#fff;border:1px solid #eeeef2;border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;overflow:visible;padding:8px 20px 16px;width:100%}.tc-root--fullscreen .tc-table{flex:1;min-height:0}.tc-root--fullscreen{background:#fff;border-radius:1;left:0;top:0;width:100vw!important;z-index:9999!important}.tc-header{flex-wrap:wrap;justify-content:space-between;padding:30px 12px}.tc-header,.tc-header-left{align-items:center;display:flex}.tc-header-left{gap:12px}.tc-title-icon{align-items:center;color:#344054;display:flex;justify-content:center}.tc-title{color:#242533;font-family:Inter;font-size:18px;font-weight:600;line-height:16px}.tc-expand-btn{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:4px;color:#475467;cursor:pointer;display:flex;height:28px;justify-content:center;width:28px}.tc-expand-btn:hover{background:#f8fafc}.tc-table{flex:1;min-height:0;overflow:hidden}.tc-header-right{display:flex;flex-wrap:wrap;gap:12px}.tc-search{border-radius:6px;color:#475569;font-family:Inter;font-size:14px;height:31px;padding-left:30px;width:254px}.tc-pagination-wrapper{margin-top:8px;padding:4px 0}.t-pagination{align-items:center;background:#fff;display:flex;font-family:Inter,sans-serif;justify-content:space-between}.t-pagination-left{color:#344054;font-size:14px;font-weight:500}.t-pagination-right{align-items:center;display:flex;gap:24px}.t-pagination-count{color:#344054;font-size:14px;font-weight:500}.t-pagination-nav{align-items:center;display:flex;gap:12px}.t-pagination-icon{align-items:center;background:#0000;border:none;color:#344054;cursor:pointer;display:flex;height:28px;justify-content:center;width:28px}.t-pagination-icon:hover:not(:disabled){background:#f2f4f7;border-radius:6px}.t-pagination-icon:disabled{color:#d0d5dd;cursor:not-allowed}.t-pagination-select-wrapper{position:relative}.t-pagination-select{appearance:none;-webkit-appearance:none;background:#fff;border:1px solid #d0d5dd;border-radius:8px;color:#344054;cursor:pointer;font-size:14px;font-weight:600;height:40px;padding:0 34px 0 14px;width:71px}.t-pagination-chevron{pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.audit-tableWrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;height:100%;overflow:hidden}.audit-table .p-datatable-tbody>tr:nth-child(odd){background:#f8fafc}.audit-table .p-datatable-tbody>tr:hover{background:#eff5ff!important}.audit-table .p-datatable-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#6b7280;font-family:Inter;font-size:12px;font-weight:600;height:54px;padding:8px 16px}.audit-table .p-datatable-thead>tr>th .p-column-header-content{align-items:center;justify-content:flex-start}.audit-table.col-header-align-left .p-datatable-thead>tr>th .p-column-header-content{justify-content:flex-start}.audit-table.col-header-align-center .p-datatable-thead>tr>th .p-column-header-content{justify-content:center}.audit-table.col-header-align-right .p-datatable-thead>tr>th .p-column-header-content{justify-content:flex-end}.audit-table.col-cell-align-left .p-datatable-tbody>tr>td{text-align:left}.audit-table.col-cell-align-center .p-datatable-tbody>tr>td{text-align:center}.audit-table.col-cell-align-right .p-datatable-tbody>tr>td{text-align:right}.p-datatable .p-sortable-column .p-sortable-column-icon{height:12px!important;width:12px!important}.audit-table .p-datatable-tbody>tr>td{border-bottom:1px solid #eef2f7;color:#101828;font-family:Inter;font-size:14px;font-weight:400;padding:16px}.audit-modifiedBy{align-items:center;display:flex;justify-content:center}.audit-actionCell{display:flex;flex-direction:column;gap:6px}.audit-chip{border-radius:6px;font-family:Inter;font-size:9px;font-weight:500;gap:5px;padding:4px 7px;width:fit-content}.audit-chip,.audit-chip__icon{align-items:center;display:inline-flex}.audit-chip__icon{justify-content:center}.audit-chip--purple{background:#ede9fe;color:#6d28d9}.audit-chip--orange{background:#ffedd5;color:#c2410c}.audit-actionText{color:#111827;font-size:12px;line-height:1.35}.audit-seeMore{background:#0000;border:0;color:#6d28d9;cursor:pointer;font-size:12px;font-weight:400;margin-left:4px;padding:0}.audit-dateCell{color:#101828;font-family:Inter;text-align:center}.audit-emptyState{align-items:center;color:#64748b;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.audit-emptyTitle{font-size:16px;font-weight:600;margin-top:8px}.audit-emptyDesc{font-size:13px;margin-top:4px}.audit-skeletonRow{display:flex;gap:16px;padding:12px 0}.audit-operation-body{align-items:center;display:flex;justify-content:center}.audit-logIdBody{margin:0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-table .p-datatable-tbody>tr.audit-row--clickable{cursor:pointer}.audit-table .p-datatable-tbody>tr.p-datatable-row-expansion>td{background:#fff;padding:0}.audit-rowDetail{background:#fff;border-top:1px solid #eef2f7;padding:16px 20px}.audit-table .p-datatable-tfoot>tr>.audit-paginationEnd{background:#fff;border:0;height:auto;padding:12px 16px;text-align:center}.audit-paginationEndContent{align-items:center;background:#f0fdf4;border-radius:999px;color:#15803d;display:inline-flex;font-family:Inter,sans-serif;font-size:12px;font-weight:500;gap:7px;line-height:1;padding:6px 11px}.audit-paginationEndContent .pi{font-size:13px}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DashboardContainerProps } from "./types";
|
|
3
|
-
export declare function ExecutiveDashboardWrapper({ baseUrl, configId, graphEmptyState, tables, tableLayout, sectionOrder, hiddenSections, fetchUIConfig: fetchUIConfigProp, fetchUIVersionFromRedis: fetchCurrentConfigUIVersionFromRedisProp, fetchDashboardData: fetchDashboardDataProp, fetchTableData: fetchTableDataProp, initialStartDate, initialEndDate, onDateChange, onFiltersApplied, renderLoading, renderError, pollingConfigProp, }: DashboardContainerProps): React.JSX.Element;
|
|
3
|
+
export declare function ExecutiveDashboardWrapper({ baseUrl, configId, graphEmptyState, tables, tableLayout, sectionOrder, hiddenSections, fetchUIConfig: fetchUIConfigProp, fetchUIVersionFromRedis: fetchCurrentConfigUIVersionFromRedisProp, fetchDashboardData: fetchDashboardDataProp, fetchTableData: fetchTableDataProp, initialStartDate, initialEndDate, onDateChange, onFiltersApplied, renderLoading, renderError, pollingConfigProp, metricCardConfig }: DashboardContainerProps): React.JSX.Element;
|
|
4
4
|
export default ExecutiveDashboardWrapper;
|
|
5
5
|
//# sourceMappingURL=ExecutiveDashboardWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutiveDashboardWrapper.d.ts","sourceRoot":"","sources":["../../../src/ExecutiveDashboard/ExecutiveDashboardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EACL,uBAAuB,EAOxB,MAAM,SAAS,CAAC;AAiBjB,wBAAgB,yBAAyB,CAAC,EACxC,OAA0B,EAC1B,QAAQ,EACR,eAAe,EACf,MAAM,EACN,WAAW,EACX,YAAY,EACZ,cAAc,EACd,aAAa,EAAE,iBAAiB,EAChC,uBAAuB,EAAE,wCAAwC,EACjE,kBAAkB,EAAE,sBAAsB,EAC1C,cAAc,EAAE,kBAAkB,EAClC,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ExecutiveDashboardWrapper.d.ts","sourceRoot":"","sources":["../../../src/ExecutiveDashboard/ExecutiveDashboardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EACL,uBAAuB,EAOxB,MAAM,SAAS,CAAC;AAiBjB,wBAAgB,yBAAyB,CAAC,EACxC,OAA0B,EAC1B,QAAQ,EACR,eAAe,EACf,MAAM,EACN,WAAW,EACX,YAAY,EACZ,cAAc,EACd,aAAa,EAAE,iBAAiB,EAChC,uBAAuB,EAAE,wCAAwC,EACjE,kBAAkB,EAAE,sBAAsB,EAC1C,cAAc,EAAE,kBAAkB,EAClC,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACjB,EAAE,uBAAuB,qBAofzB;AAED,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestExecutiveDashboard.d.ts","sourceRoot":"","sources":["../../../src/ExecutiveDashboard/TestExecutiveDashboard.tsx"],"names":[],"mappings":"AAkbA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TestExecutiveDashboard.d.ts","sourceRoot":"","sources":["../../../src/ExecutiveDashboard/TestExecutiveDashboard.tsx"],"names":[],"mappings":"AAkbA,OAAO,KAAK,MAAM,OAAO,CAAC;AAyR1B,wBAAgB,sBAAsB,sBAqBrC"}
|
package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,2BAA2B,CAAC;AAInC,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM;QACb,SAAS,EAAE,IAAI,CAAC;QAChB,OAAO,EAAE,IAAI,CAAC;KACjB,CAAC;CACL;AAED,MAAM,WAAW,wBAAwB;IACrC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,cAAc,CAAC,EAAC,MAAM,CAAC;IAEvB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,IAAI,CAAC;QAChB,OAAO,EAAE,IAAI,CAAC;KACjB,KAAK,IAAI,CAAC;IAEX,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE;QACd,IAAI,CAAC,EAAE;YACH,OAAO,CAAC,EAAE,IAAI,CAAC;YACf,OAAO,CAAC,EAAE,IAAI,CAAC;SAClB,CAAC;QACF,EAAE,CAAC,EAAE;YACD,OAAO,CAAC,EAAE,IAAI,CAAC;YACf,OAAO,CAAC,EAAE,IAAI,CAAC;SAClB,CAAC;KACL,CAAC;IACF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,+CAA+C,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7E;AAED,QAAA,MAAM,mBAAmB,+QAkBtB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"DashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,2BAA2B,CAAC;AAInC,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM;QACb,SAAS,EAAE,IAAI,CAAC;QAChB,OAAO,EAAE,IAAI,CAAC;KACjB,CAAC;CACL;AAED,MAAM,WAAW,wBAAwB;IACrC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,cAAc,CAAC,EAAC,MAAM,CAAC;IAEvB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,IAAI,CAAC;QAChB,OAAO,EAAE,IAAI,CAAC;KACjB,KAAK,IAAI,CAAC;IAEX,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE;QACd,IAAI,CAAC,EAAE;YACH,OAAO,CAAC,EAAE,IAAI,CAAC;YACf,OAAO,CAAC,EAAE,IAAI,CAAC;SAClB,CAAC;QACF,EAAE,CAAC,EAAE;YACD,OAAO,CAAC,EAAE,IAAI,CAAC;YACf,OAAO,CAAC,EAAE,IAAI,CAAC;SAClB,CAAC;KACL,CAAC;IACF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,+CAA+C,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7E;AAED,QAAA,MAAM,mBAAmB,+QAkBtB,wBAAwB,sBA2M1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -53,7 +53,8 @@ export interface DashboardProps {
|
|
|
53
53
|
pollingEnabled?: boolean;
|
|
54
54
|
selectedPreset?: string;
|
|
55
55
|
handlePresetChange?: (value: string) => void;
|
|
56
|
+
metricCardConfig?: Record<any, any>;
|
|
56
57
|
}
|
|
57
|
-
export declare function ExecutiveDashboard({ uiConfig, data, dataLoading, startDate, endDate, onDateChange, onRefresh, selectedKpis, onKpiChange, sidebarVisible, onSidebarShow, onSidebarHide, filterValues, onFilterChange, onFilterReset, onFilterApply, appliedFilters, graphEmptyState, tables, tableLayout, sectionOrder, hiddenSections, tablePages, onTableExpand, onTableLoadMore, pollingEnabled, selectedPreset, handlePresetChange, }: DashboardProps): React.JSX.Element;
|
|
58
|
+
export declare function ExecutiveDashboard({ uiConfig, data, dataLoading, startDate, endDate, onDateChange, onRefresh, selectedKpis, onKpiChange, sidebarVisible, onSidebarShow, onSidebarHide, filterValues, onFilterChange, onFilterReset, onFilterApply, appliedFilters, graphEmptyState, tables, tableLayout, sectionOrder, hiddenSections, tablePages, onTableExpand, onTableLoadMore, pollingEnabled, selectedPreset, handlePresetChange, metricCardConfig }: DashboardProps): React.JSX.Element;
|
|
58
59
|
export default ExecutiveDashboard;
|
|
59
60
|
//# sourceMappingURL=ExecutiveDashboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutiveDashboard.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard/components/ExecutiveDashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAcvC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAIlB,OAAO,eAAe,CAAA;AAUtB,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,IAAI,EAAE,qBAAqB,CAAC;IAG5B,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,YAAY,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAGnD,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAGzD,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAChD,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IAC/D,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,gGAAgG;IAChG,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAElC,mFAAmF;IACnF,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAE/B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,0BAA0B,CAAC;IAEzC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAErC;;;;OAIG;IACH,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAEvC,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;QAC5B,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC,CAAC;IACH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAChE,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ExecutiveDashboard.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard/components/ExecutiveDashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAcvC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAIlB,OAAO,eAAe,CAAA;AAUtB,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,IAAI,EAAE,qBAAqB,CAAC;IAG5B,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,YAAY,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAGnD,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAGzD,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAChD,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IAC/D,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,gGAAgG;IAChG,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAElC,mFAAmF;IACnF,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAE/B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,0BAA0B,CAAC;IAEzC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAErC;;;;OAIG;IACH,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAEvC,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;QAC5B,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC,CAAC;IACH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAChE,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CACpC;AAID,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,WAAW,EACX,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,MAAM,EACN,WAAW,EACX,YAAY,EACZ,cAAc,EACd,UAAU,EACV,aAAa,EACb,eAAe,EACf,cAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EACjB,EAAE,cAAc,qBAwYhB;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Graph.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Graph/Graph.tsx"],"names":[],"mappings":";AAIA,OAAO,EAGL,UAAU,EAMX,MAAM,SAAS,CAAC;AACjB,OAAO,aAAa,CAAC;AAgFrB,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,KAAK,EACL,WAAW,EACX,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,KAAK,EACL,UAAU,EACV,OAAO,EACP,UAAkB,EAClB,YAAY,GACb,EAAE,UAAU,+
|
|
1
|
+
{"version":3,"file":"Graph.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Graph/Graph.tsx"],"names":[],"mappings":";AAIA,OAAO,EAGL,UAAU,EAMX,MAAM,SAAS,CAAC;AACjB,OAAO,aAAa,CAAC;AAgFrB,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,KAAK,EACL,WAAW,EACX,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,MAAM,EACN,KAAK,EACL,UAAU,EACV,OAAO,EACP,UAAkB,EAClB,YAAY,GACb,EAAE,UAAU,+BAkLZ"}
|
|
@@ -43,7 +43,8 @@ export interface MetricCardProps {
|
|
|
43
43
|
icon?: string;
|
|
44
44
|
segments?: string;
|
|
45
45
|
};
|
|
46
|
+
showDelta?: boolean;
|
|
46
47
|
}
|
|
47
|
-
declare const MetricCard: ({ title, value, subtitle, icon, loading, valuePrefix, valueColor, delta, segments, onClick, classNames, }: MetricCardProps) => React.JSX.Element;
|
|
48
|
+
declare const MetricCard: ({ title, value, subtitle, icon, loading, valuePrefix, valueColor, delta, segments, onClick, classNames, showDelta }: MetricCardProps) => React.JSX.Element;
|
|
48
49
|
export default MetricCard;
|
|
49
50
|
//# sourceMappingURL=MetricCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetricCard.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/MetricCard/MetricCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,kBAAkB,CAAC;AAE1B,MAAM,WAAW,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,WAAW,CAAC,EAAE;QACV,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;QAClC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,sDAAsD;QACtD,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,UAAU,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACrB,CAAA;
|
|
1
|
+
{"version":3,"file":"MetricCard.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/MetricCard/MetricCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,kBAAkB,CAAC;AAE1B,MAAM,WAAW,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,WAAW,CAAC,EAAE;QACV,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;QAClC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,sDAAsD;QACtD,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,UAAU,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,SAAS,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,QAAA,MAAM,UAAU,wHAab,eAAe,sBAuFjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAE9C,OAAO,aAAa,CAAC;AAErB;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,KAAK,iBAAiB,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,CAAC;AAIjD,wBAAgB,QAAQ,sBAMvB;AAID,eAAO,MAAM,cAAc;YAGf,WAAW;;cAET,MAAM,cAAc,CAC5B,OAAO,kBAAkB,mBAAmB,CAC7C,CAAC,UAAU,CAAC;gDAyBf,CAAC;AAwBH,eAAO,MAAM,YAAY,kCAA4B,CAAC;AAEtD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;YAKpB,GAAG;;;;;;;8BAOc,GAAG,WAAW,WAAW,EAAE,KAAK,MAAM,SAAS;yBAE/D,GAAG,QACJ,GAAG,QACH,WAAW,SACV,MAAM,WACJ,GAAG,KACT,MAAM,SAAS;IACpB,qDAAqD;6CACZ,GAAG,QAAQ,WAAW,KAAK,MAAM,SAAS;gDAqHtF,CAAC;AAKF,eAAO,MAAM,WAAW,iCAA2B,CAAC;AAEpD,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;IAQ3B,yDAAyD;yBACrC,MAAM,KAAK,IAAI;;
|
|
1
|
+
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAE9C,OAAO,aAAa,CAAC;AAErB;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,KAAK,iBAAiB,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,CAAC;AAIjD,wBAAgB,QAAQ,sBAMvB;AAID,eAAO,MAAM,cAAc;YAGf,WAAW;;cAET,MAAM,cAAc,CAC5B,OAAO,kBAAkB,mBAAmB,CAC7C,CAAC,UAAU,CAAC;gDAyBf,CAAC;AAwBH,eAAO,MAAM,YAAY,kCAA4B,CAAC;AAEtD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;YAKpB,GAAG;;;;;;;8BAOc,GAAG,WAAW,WAAW,EAAE,KAAK,MAAM,SAAS;yBAE/D,GAAG,QACJ,GAAG,QACH,WAAW,SACV,MAAM,WACJ,GAAG,KACT,MAAM,SAAS;IACpB,qDAAqD;6CACZ,GAAG,QAAQ,WAAW,KAAK,MAAM,SAAS;gDAqHtF,CAAC;AAKF,eAAO,MAAM,WAAW,iCAA2B,CAAC;AAEpD,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;IAQ3B,yDAAyD;yBACrC,MAAM,KAAK,IAAI;;gDA4EtC,CAAC"}
|
|
@@ -114,6 +114,7 @@ export interface DashboardContainerProps {
|
|
|
114
114
|
* sidebar (along with the button that opens it).
|
|
115
115
|
*/
|
|
116
116
|
hiddenSections?: DashboardSectionKey[];
|
|
117
|
+
metricCardConfig?: Record<any, any>;
|
|
117
118
|
}
|
|
118
119
|
/** Toolbar + grid behaviour for the tables section. */
|
|
119
120
|
export interface DashboardTableLayoutConfig {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard/types/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;AAI3C;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,UAAU,GACV,cAAc,GACd,aAAa,GACb,gBAAgB,GAEhB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,MAAM,WAAW,uBAAuB;IAEtC,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IAEjB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,oBAAoB,CAAC;IAC/C;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,CAAC;IAEtB,kFAAkF;IAClF,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IAEtC,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAExE,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAEnE;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAElC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAE/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,0BAA0B,CAAC;IAEzC;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAErC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard/types/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;AAI3C;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,UAAU,GACV,cAAc,GACd,aAAa,GACb,gBAAgB,GAEhB,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,MAAM,WAAW,uBAAuB;IAEtC,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IAEjB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,oBAAoB,CAAC;IAC/C;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,CAAC;IAEtB,kFAAkF;IAClF,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IAEtC,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAExE,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IAEnE;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAElC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAE/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,0BAA0B,CAAC;IAEzC;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAErC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAEvC,gBAAgB,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CACrC;AAID,uDAAuD;AACvD,MAAM,WAAW,0BAA0B;IACzC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,SAAS,EAAE,CAAC;IAChD,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,wEAAwE;IACxE,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;IACrD,oFAAoF;IACpF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6CAA6C;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,qFAAqF;AACrF,MAAM,WAAW,wBAAwB;IACvC,iFAAiF;IACjF,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,6EAA6E;IAC7E,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7B,mDAAmD;IACnD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uEAAuE;IACvE,IAAI,CAAC,EAAE;QACL,wBAAwB;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,oBAAoB;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,qEAAqE;QACrE,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,0EAA0E;QAC1E,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC7B,CAAC;CACH;AAED,MAAM,WAAW,0BAA0B;IACzC,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,mEAAmE;IACnE,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAC;CACjC;AAED,oEAAoE;AACpE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;AAE/E,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AA4BD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAUD,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;CACb;AAaD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,cAAc,EAAE,mBAAmB,EAAE,CAAC;IACtC,YAAY,EAAE,kBAAkB,CAAC;IACjC,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACpC;;;OAGG;IACH,YAAY,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACrC,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,KAAK,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,KAAK,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,0BAA0B,EAAE,MAAM,CAAC;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,KAAK,EAAE;QACL,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QACxB,WAAW,EAAE,KAAK,GAAG,IAAI,CAAC;KAC3B,CAAC;IACF,MAAM,EAAE,YAAY,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,KAAK,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,KAAK,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,WAAW,EAAE,KAAK,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;CACvC;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAE;IACX,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC;CACxC;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,aAAa,EAAE,MAAM,GAAG,eAAe,CAAC;CAC1C;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE;QACL,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,CAAC;KAChC,CAAC;IACF,QAAQ,EAAE;QACR;;;WAGG;QACH,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC;KACnD,CAAC;IACF,gDAAgD;IAChD,KAAK,CAAC,EAAE;QACN,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;KAC3C,CAAC;CAEH;AAED,6EAA6E;AAC7E,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE;QACL,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;KAC3C,CAAC;IACF,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAID,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;CAC7C;AAGD,0EAA0E;AAC1E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,aAAa,GAAG,CAC1B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEhC,MAAM,MAAM,oBAAoB,GAAG,CACjC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAEtC,MAAM,MAAM,kBAAkB,GAAG,CAC/B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,oBAAoB,EAC5B,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAEpC,MAAM,MAAM,cAAc,GAAG,CAC3B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,oBAAoB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,EACD,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEhC,MAAM,MAAM,aAAa,GAAG;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAA"}
|