@verifiedinc-public/shared-ui-elements 3.4.5 → 3.5.1

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.
@@ -0,0 +1,26 @@
1
+ import { ReactElement } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+ interface KeyValue {
4
+ key: string;
5
+ name: string;
6
+ color: string;
7
+ isTotal?: boolean;
8
+ }
9
+ interface ChartDataPoint {
10
+ date: string;
11
+ [key: string]: string | number;
12
+ }
13
+ interface SeriesChartData {
14
+ uuid: string;
15
+ chartData: ChartDataPoint[];
16
+ }
17
+ interface SeriesPercentageChartProps {
18
+ data: SeriesChartData[];
19
+ filter: {
20
+ timezone: string;
21
+ };
22
+ keyValues: KeyValue[];
23
+ sx?: SxProps;
24
+ }
25
+ export declare function SeriesPercentageChart(props: SeriesPercentageChartProps): ReactElement;
26
+ export {};
@@ -1,2 +1,3 @@
1
1
  export * from './SeriesChart';
2
2
  export * from './SeriesChartLegend';
3
+ export * from './SeriesPercentageChart';
@@ -1 +1 @@
1
- "use strict";import{j as s}from"../../shared/jsx-runtime-jmtevAuS.mjs";import*as C from"react";import{useCallback as U,useMemo as te,createElement as be}from"react";import{Box as ae,Stack as Z,Typography as Q,useTheme as ge}from"@mui/material";import{ResponsiveContainer as xe,LineChart as Oe,CartesianGrid as we,XAxis as Se,YAxis as je,Label as $e,Tooltip as ke,Legend as Te,Line as Ne}from"recharts";import{b as _e,c as Ee}from"../../shared/date-Cq0LS2Mr.mjs";import{Decimal as X}from"decimal.js";import{AnimatePresence as Ge}from"framer-motion";import{u as Ae}from"../../shared/useCopyToClipboard-BALOSYVW.mjs";import"qrcode";import{u as ie}from"../../shared/usePrevious-A8he0cAZ.mjs";import{a as Ce,C as se}from"../../shared/motions-CpxgbzKX.mjs";import{i as De,_ as I,s as Le,a as m,c as le,d as Me,e as Re,f as qe,h as Fe,j as Ve,k as We,l as Ie,m as ze,n as Be,o as Pe,p as Ke,u as Ue}from"../../shared/index-CDq4CkLc.mjs";const Ze=["ownerState"],Qe=["variants"],Xe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ye(e){return Object.keys(e).length===0}function He(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Y(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Je=le(),en=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function z({defaultTheme:e,theme:n,themeId:r}){return Ye(n)?e:n[r]||n}function nn(e){return e?(n,r)=>r[e]:null}function B(e,n){let{ownerState:r}=n,o=I(n,Ze);const t=typeof e=="function"?e(m({ownerState:r},o)):e;if(Array.isArray(t))return t.flatMap(a=>B(a,m({ownerState:r},o)));if(t&&typeof t=="object"&&Array.isArray(t.variants)){const{variants:a=[]}=t;let i=I(t,Qe);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props(m({ownerState:r},o,r)):Object.keys(c.props).forEach(u=>{r?.[u]!==c.props[u]&&o[u]!==c.props[u]&&(l=!1)}),l&&(Array.isArray(i)||(i=[i]),i.push(typeof c.style=="function"?c.style(m({ownerState:r},o,r)):c.style))}),i}return t}function rn(e={}){const{themeId:n,defaultTheme:r=Je,rootShouldForwardProp:o=Y,slotShouldForwardProp:t=Y}=e,a=i=>Me(m({},i,{theme:z(m({},i,{defaultTheme:r,themeId:n}))}));return a.__mui_systemSx=!0,(i,c={})=>{De(i,p=>p.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:w,skipSx:f,overridesResolver:y=nn(en(u))}=c,d=I(c,Xe),g=w!==void 0?w:u&&u!=="Root"&&u!=="root"||!1,h=f||!1;let S,j=Y;u==="Root"||u==="root"?j=o:u?j=t:He(i)&&(j=void 0);const T=Le(i,m({shouldForwardProp:j,label:S},d)),q=p=>typeof p=="function"&&p.__emotion_real!==p||Re(p)?x=>B(p,m({},x,{theme:z({theme:x.theme,defaultTheme:r,themeId:n})})):p,E=(p,...x)=>{let L=q(p);const N=x?x.map(q):[];l&&y&&N.push(v=>{const b=z(m({},v,{defaultTheme:r,themeId:n}));if(!b.components||!b.components[l]||!b.components[l].styleOverrides)return null;const $=b.components[l].styleOverrides,G={};return Object.entries($).forEach(([P,W])=>{G[P]=B(W,m({},v,{theme:b}))}),y(v,G)}),l&&!g&&N.push(v=>{var b;const $=z(m({},v,{defaultTheme:r,themeId:n})),G=$==null||(b=$.components)==null||(b=b[l])==null?void 0:b.variants;return B({variants:G},m({},v,{theme:$}))}),h||N.push(a);const F=N.length-x.length;if(Array.isArray(p)&&F>0){const v=new Array(F).fill("");L=[...p,...v],L.raw=[...p.raw,...v]}const V=T(L,...N);return i.muiName&&(V.muiName=i.muiName),V};return T.withConfig&&(E.withConfig=T.withConfig),E}}const on=rn(),tn=(e,n)=>e.filter(r=>n.includes(r)),D=(e,n,r)=>{const o=e.keys[0];Array.isArray(n)?n.forEach((t,a)=>{r((i,c)=>{a<=e.keys.length-1&&(a===0?Object.assign(i,c):i[e.up(e.keys[a])]=c)},t)}):n&&typeof n=="object"?(Object.keys(n).length>e.keys.length?e.keys:tn(e.keys,Object.keys(n))).forEach(t=>{if(e.keys.indexOf(t)!==-1){const a=n[t];a!==void 0&&r((i,c)=>{o===t?Object.assign(i,c):i[e.up(t)]=c},a)}}):(typeof n=="number"||typeof n=="string")&&r((t,a)=>{Object.assign(t,a)},n)};function k(e){return e?`Level${e}`:""}function R(e){return e.unstable_level>0&&e.container}function ce(e){return function(n){return`var(--Grid-${n}Spacing${k(e.unstable_level)})`}}function H(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${k(e.unstable_level-1)})`}}function J(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${k(e.unstable_level-1)})`}const an=({theme:e,ownerState:n})=>{const r=ce(n),o={};return D(e.breakpoints,n.gridSize,(t,a)=>{let i={};a===!0&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${J(n)}${R(n)?` + ${r("column")}`:""})`}),t(o,i)}),o},sn=({theme:e,ownerState:n})=>{const r={};return D(e.breakpoints,n.gridOffset,(o,t)=>{let a={};t==="auto"&&(a={marginLeft:"auto"}),typeof t=="number"&&(a={marginLeft:t===0?"0px":`calc(100% * ${t} / ${J(n)})`}),o(r,a)}),r},ln=({theme:e,ownerState:n})=>{if(!n.container)return{};const r=R(n)?{[`--Grid-columns${k(n.unstable_level)}`]:J(n)}:{"--Grid-columns":12};return D(e.breakpoints,n.columns,(o,t)=>{o(r,{[`--Grid-columns${k(n.unstable_level)}`]:t})}),r},cn=({theme:e,ownerState:n})=>{if(!n.container)return{};const r=H(n),o=R(n)?{[`--Grid-rowSpacing${k(n.unstable_level)}`]:r("row")}:{};return D(e.breakpoints,n.rowSpacing,(t,a)=>{var i;t(o,{[`--Grid-rowSpacing${k(n.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),o},un=({theme:e,ownerState:n})=>{if(!n.container)return{};const r=H(n),o=R(n)?{[`--Grid-columnSpacing${k(n.unstable_level)}`]:r("column")}:{};return D(e.breakpoints,n.columnSpacing,(t,a)=>{var i;t(o,{[`--Grid-columnSpacing${k(n.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),o},pn=({theme:e,ownerState:n})=>{if(!n.container)return{};const r={};return D(e.breakpoints,n.direction,(o,t)=>{o(r,{flexDirection:t})}),r},mn=({ownerState:e})=>{const n=ce(e),r=H(e);return m({minWidth:0,boxSizing:"border-box"},e.container&&m({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${n("row")} / -2) calc(${n("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${n("row")} * -1) 0px 0px calc(${n("column")} * -1)`}),(!e.container||R(e))&&m({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},dn=e=>{const n=[];return Object.entries(e).forEach(([r,o])=>{o!==!1&&o!==void 0&&n.push(`grid-${r}-${String(o)}`)}),n},fn=(e,n="xs")=>{function r(o){return o===void 0?!1:typeof o=="string"&&!Number.isNaN(Number(o))||typeof o=="number"&&o>0}if(r(e))return[`spacing-${n}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const o=[];return Object.entries(e).forEach(([t,a])=>{r(a)&&o.push(`spacing-${t}-${String(a)}`)}),o}return[]},yn=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([n,r])=>`direction-${n}-${r}`):[`direction-xs-${String(e)}`],hn=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],vn=le(),bn=on("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,n)=>n.root});function gn(e){return Ie({props:e,name:"MuiGrid",defaultTheme:vn})}function xn(e={}){const{createStyledComponent:n=bn,useThemeProps:r=gn,componentName:o="MuiGrid"}=e,t=C.createContext(void 0),a=(l,u)=>{const{container:w,direction:f,spacing:y,wrap:d,gridSize:g}=l,h={root:["root",w&&"container",d!=="wrap"&&`wrap-xs-${String(d)}`,...yn(f),...dn(g),...w?fn(y,u.breakpoints.keys[0]):[]]};return ze(h,S=>Be(o,S),{})},i=n(ln,un,cn,an,pn,mn,sn),c=C.forwardRef(function(l,u){var w,f,y,d,g,h,S,j;const T=qe(),q=r(l),E=Fe(q),p=C.useContext(t),{className:x,children:L,columns:N=12,container:F=!1,component:V="div",direction:v="row",wrap:b="wrap",spacing:$=0,rowSpacing:G=$,columnSpacing:P=$,disableEqualOverflow:W,unstable_level:_=0}=E,me=I(E,hn);let M=W;_&&W!==void 0&&(M=l.disableEqualOverflow);const ee={},ne={},re={};Object.entries(me).forEach(([O,A])=>{T.breakpoints.values[O]!==void 0?ee[O]=A:T.breakpoints.values[O.replace("Offset","")]!==void 0?ne[O.replace("Offset","")]=A:re[O]=A});const de=(w=l.columns)!=null?w:_?void 0:N,fe=(f=l.spacing)!=null?f:_?void 0:$,ye=(y=(d=l.rowSpacing)!=null?d:l.spacing)!=null?y:_?void 0:G,he=(g=(h=l.columnSpacing)!=null?h:l.spacing)!=null?g:_?void 0:P,oe=m({},E,{level:_,columns:de,container:F,direction:v,wrap:b,spacing:fe,rowSpacing:ye,columnSpacing:he,gridSize:ee,gridOffset:ne,disableEqualOverflow:(S=(j=M)!=null?j:p)!=null?S:!1,parentDisableEqualOverflow:p}),ve=a(oe,T);let K=s.jsx(i,m({ref:u,as:V,ownerState:oe,className:Ve(ve.root,x)},re,{children:C.Children.map(L,O=>{if(C.isValidElement(O)&&We(O,["Grid"])){var A;return C.cloneElement(O,{unstable_level:(A=O.props.unstable_level)!=null?A:_+1})}return O})}));return M!==void 0&&M!==(p??!1)&&(K=s.jsx(t.Provider,{value:M,children:K})),K});return c.muiName="Grid",c}const ue=xn({createStyledComponent:Pe("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,n)=>n.root}),componentName:"MuiGrid2",useThemeProps:e=>Ke({props:e,name:"MuiGrid2"})});function On({entry:e,payload:n}){const r=U(f=>{var y,d,g;return(g=(d=(y=f.payload)==null?void 0:y.data)==null?void 0:d.reduce)==null?void 0:g.call(d,(h,S)=>h+S.value,0)},[]),o=U(f=>{const y=new X(r(f)||0),d=n?.reduce((S,j)=>S+r(j),0)||0,g=new X(d),h=Number(y.div(g).times(100).toFixed(2,X.ROUND_DOWN));return isNaN(h)||!isFinite(h)?0:h},[r,n]),t=te(()=>r(e),[e,r]),a=ie(t),i=te(()=>Number(o(e)),[e,o]),c=ie(i),l=U(f=>Math.floor(f).toLocaleString(),[]),u=Ae({type:"text/plain"}),w=Ue();return s.jsxs(Ce,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[s.jsx(ae,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),s.jsxs(Z,{children:[s.jsxs(Q,{component:"p",variant:"caption",children:[s.jsx(Z,{component:"span",display:"inline-flex",mr:.5,children:s.jsx(se,{from:a??0,to:t,map:l,children:"0"})}),s.jsxs(Z,{component:"span",direction:"row",display:"inline-flex",children:["(",s.jsx(se,{from:c??0,to:i,map:l,children:"0"}),"%)"]})]}),s.jsx(Q,{variant:"body1",children:e.value}),e.payload.uuid&&s.jsxs(Q,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{u.copy(e.payload.uuid).catch(()=>{}),w.enqueueSnackbar("UUID copied to clipboard","success")},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function pe(e){const{payload:n}=e;return s.jsx(ue,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:s.jsx(Ge,{children:n?.map(r=>s.jsx(ue,{children:s.jsx(On,{entry:r,payload:n})},`item-${r.value}`))})})}function wn(e){const n=ge();return s.jsx(ae,{sx:{width:"100%",height:"100%",...e.sx},children:s.jsx(xe,{children:s.jsxs(Oe,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[s.jsx(we,{vertical:!1}),s.jsx(Se,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:r=>_e(r,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),s.jsx(je,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:r=>Number(r).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:e.label&&s.jsx($e,{value:e.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),s.jsx(ke,{cursor:{stroke:n.palette.neutral.main,strokeWidth:1},formatter:r=>Number(r).toLocaleString(),labelFormatter:r=>Ee(r,{timeZone:e.filter.timezone,hour12:!1})}),s.jsx(Te,{content:s.jsx(pe,{})}),e.data.map(r=>be(Ne,{uuid:r.uuid,key:r.uuid,name:r.name,dataKey:"value",data:r.chartData,type:"monotone",stroke:r.color,strokeWidth:2}))]})})})}export{wn as SeriesChart,pe as SeriesChartLegend};
1
+ "use strict";import{j as c}from"../../shared/jsx-runtime-jmtevAuS.mjs";import*as C from"react";import{useCallback as Z,useMemo as X,createElement as _e}from"react";import{Box as Y,Stack as H,Typography as J,useTheme as se}from"@mui/material";import{ResponsiveContainer as le,LineChart as Ne,CartesianGrid as ce,XAxis as ue,YAxis as pe,Label as Te,Tooltip as de,Legend as Ee,Line as Ge,AreaChart as Ae,Area as Ce}from"recharts";import{b as me,c as fe}from"../../shared/date-Cq0LS2Mr.mjs";import I,{Decimal as Q}from"decimal.js";import{AnimatePresence as Le}from"framer-motion";import{u as De}from"../../shared/useCopyToClipboard-BALOSYVW.mjs";import"qrcode";import{u as ye}from"../../shared/usePrevious-A8he0cAZ.mjs";import{a as Me,C as he}from"../../shared/motions-CpxgbzKX.mjs";import{i as Re,_ as q,s as Fe,a as d,c as be,d as We,e as Ve,f as Ke,h as Ie,j as qe,k as ze,l as Pe,m as Ue,n as Be,o as Ze,p as Xe,u as Ye}from"../../shared/index-CDq4CkLc.mjs";const He=["ownerState"],Je=["variants"],Qe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function en(e){return Object.keys(e).length===0}function nn(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ee(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const tn=be(),on=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function z({defaultTheme:e,theme:n,themeId:t}){return en(n)?e:n[t]||n}function rn(e){return e?(n,t)=>t[e]:null}function P(e,n){let{ownerState:t}=n,o=q(n,He);const r=typeof e=="function"?e(d({ownerState:t},o)):e;if(Array.isArray(r))return r.flatMap(a=>P(a,d({ownerState:t},o)));if(r&&typeof r=="object"&&Array.isArray(r.variants)){const{variants:a=[]}=r;let i=q(r,Je);return a.forEach(l=>{let s=!0;typeof l.props=="function"?s=l.props(d({ownerState:t},o,t)):Object.keys(l.props).forEach(u=>{t?.[u]!==l.props[u]&&o[u]!==l.props[u]&&(s=!1)}),s&&(Array.isArray(i)||(i=[i]),i.push(typeof l.style=="function"?l.style(d({ownerState:t},o,t)):l.style))}),i}return r}function an(e={}){const{themeId:n,defaultTheme:t=tn,rootShouldForwardProp:o=ee,slotShouldForwardProp:r=ee}=e,a=i=>We(d({},i,{theme:z(d({},i,{defaultTheme:t,themeId:n}))}));return a.__mui_systemSx=!0,(i,l={})=>{Re(i,p=>p.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:m,skipSx:f,overridesResolver:h=rn(on(u))}=l,y=q(l,Qe),x=m!==void 0?m:u&&u!=="Root"&&u!=="root"||!1,b=f||!1;let S,j=ee;u==="Root"||u==="root"?j=o:u?j=r:nn(i)&&(j=void 0);const _=Fe(i,d({shouldForwardProp:j,label:S},y)),F=p=>typeof p=="function"&&p.__emotion_real!==p||Ve(p)?w=>P(p,d({},w,{theme:z({theme:w.theme,defaultTheme:t,themeId:n})})):p,E=(p,...w)=>{let D=F(p);const N=w?w.map(F):[];s&&h&&N.push(v=>{const g=z(d({},v,{defaultTheme:t,themeId:n}));if(!g.components||!g.components[s]||!g.components[s].styleOverrides)return null;const k=g.components[s].styleOverrides,G={};return Object.entries(k).forEach(([U,K])=>{G[U]=P(K,d({},v,{theme:g}))}),h(v,G)}),s&&!x&&N.push(v=>{var g;const k=z(d({},v,{defaultTheme:t,themeId:n})),G=k==null||(g=k.components)==null||(g=g[s])==null?void 0:g.variants;return P({variants:G},d({},v,{theme:k}))}),b||N.push(a);const W=N.length-w.length;if(Array.isArray(p)&&W>0){const v=new Array(W).fill("");D=[...p,...v],D.raw=[...p.raw,...v]}const V=_(D,...N);return i.muiName&&(V.muiName=i.muiName),V};return _.withConfig&&(E.withConfig=_.withConfig),E}}const sn=an(),ln=(e,n)=>e.filter(t=>n.includes(t)),L=(e,n,t)=>{const o=e.keys[0];Array.isArray(n)?n.forEach((r,a)=>{t((i,l)=>{a<=e.keys.length-1&&(a===0?Object.assign(i,l):i[e.up(e.keys[a])]=l)},r)}):n&&typeof n=="object"?(Object.keys(n).length>e.keys.length?e.keys:ln(e.keys,Object.keys(n))).forEach(r=>{if(e.keys.indexOf(r)!==-1){const a=n[r];a!==void 0&&t((i,l)=>{o===r?Object.assign(i,l):i[e.up(r)]=l},a)}}):(typeof n=="number"||typeof n=="string")&&t((r,a)=>{Object.assign(r,a)},n)};function $(e){return e?`Level${e}`:""}function R(e){return e.unstable_level>0&&e.container}function ve(e){return function(n){return`var(--Grid-${n}Spacing${$(e.unstable_level)})`}}function ne(e){return function(n){return e.unstable_level===0?`var(--Grid-${n}Spacing)`:`var(--Grid-${n}Spacing${$(e.unstable_level-1)})`}}function te(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${$(e.unstable_level-1)})`}const cn=({theme:e,ownerState:n})=>{const t=ve(n),o={};return L(e.breakpoints,n.gridSize,(r,a)=>{let i={};a===!0&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${te(n)}${R(n)?` + ${t("column")}`:""})`}),r(o,i)}),o},un=({theme:e,ownerState:n})=>{const t={};return L(e.breakpoints,n.gridOffset,(o,r)=>{let a={};r==="auto"&&(a={marginLeft:"auto"}),typeof r=="number"&&(a={marginLeft:r===0?"0px":`calc(100% * ${r} / ${te(n)})`}),o(t,a)}),t},pn=({theme:e,ownerState:n})=>{if(!n.container)return{};const t=R(n)?{[`--Grid-columns${$(n.unstable_level)}`]:te(n)}:{"--Grid-columns":12};return L(e.breakpoints,n.columns,(o,r)=>{o(t,{[`--Grid-columns${$(n.unstable_level)}`]:r})}),t},dn=({theme:e,ownerState:n})=>{if(!n.container)return{};const t=ne(n),o=R(n)?{[`--Grid-rowSpacing${$(n.unstable_level)}`]:t("row")}:{};return L(e.breakpoints,n.rowSpacing,(r,a)=>{var i;r(o,{[`--Grid-rowSpacing${$(n.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),o},mn=({theme:e,ownerState:n})=>{if(!n.container)return{};const t=ne(n),o=R(n)?{[`--Grid-columnSpacing${$(n.unstable_level)}`]:t("column")}:{};return L(e.breakpoints,n.columnSpacing,(r,a)=>{var i;r(o,{[`--Grid-columnSpacing${$(n.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),o},fn=({theme:e,ownerState:n})=>{if(!n.container)return{};const t={};return L(e.breakpoints,n.direction,(o,r)=>{o(t,{flexDirection:r})}),t},yn=({ownerState:e})=>{const n=ve(e),t=ne(e);return d({minWidth:0,boxSizing:"border-box"},e.container&&d({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${n("row")} / -2) calc(${n("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${n("row")} * -1) 0px 0px calc(${n("column")} * -1)`}),(!e.container||R(e))&&d({padding:`calc(${t("row")} / 2) calc(${t("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${t("row")} 0px 0px ${t("column")}`}))},hn=e=>{const n=[];return Object.entries(e).forEach(([t,o])=>{o!==!1&&o!==void 0&&n.push(`grid-${t}-${String(o)}`)}),n},bn=(e,n="xs")=>{function t(o){return o===void 0?!1:typeof o=="string"&&!Number.isNaN(Number(o))||typeof o=="number"&&o>0}if(t(e))return[`spacing-${n}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const o=[];return Object.entries(e).forEach(([r,a])=>{t(a)&&o.push(`spacing-${r}-${String(a)}`)}),o}return[]},vn=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([n,t])=>`direction-${n}-${t}`):[`direction-xs-${String(e)}`],gn=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],xn=be(),wn=sn("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,n)=>n.root});function On(e){return Pe({props:e,name:"MuiGrid",defaultTheme:xn})}function Sn(e={}){const{createStyledComponent:n=wn,useThemeProps:t=On,componentName:o="MuiGrid"}=e,r=C.createContext(void 0),a=(s,u)=>{const{container:m,direction:f,spacing:h,wrap:y,gridSize:x}=s,b={root:["root",m&&"container",y!=="wrap"&&`wrap-xs-${String(y)}`,...vn(f),...hn(x),...m?bn(h,u.breakpoints.keys[0]):[]]};return Ue(b,S=>Be(o,S),{})},i=n(pn,mn,dn,cn,fn,yn,un),l=C.forwardRef(function(s,u){var m,f,h,y,x,b,S,j;const _=Ke(),F=t(s),E=Ie(F),p=C.useContext(r),{className:w,children:D,columns:N=12,container:W=!1,component:V="div",direction:v="row",wrap:g="wrap",spacing:k=0,rowSpacing:G=k,columnSpacing:U=k,disableEqualOverflow:K,unstable_level:T=0}=E,we=q(E,gn);let M=K;T&&K!==void 0&&(M=s.disableEqualOverflow);const oe={},re={},ae={};Object.entries(we).forEach(([O,A])=>{_.breakpoints.values[O]!==void 0?oe[O]=A:_.breakpoints.values[O.replace("Offset","")]!==void 0?re[O.replace("Offset","")]=A:ae[O]=A});const Oe=(m=s.columns)!=null?m:T?void 0:N,Se=(f=s.spacing)!=null?f:T?void 0:k,je=(h=(y=s.rowSpacing)!=null?y:s.spacing)!=null?h:T?void 0:G,ke=(x=(b=s.columnSpacing)!=null?b:s.spacing)!=null?x:T?void 0:U,ie=d({},E,{level:T,columns:Oe,container:W,direction:v,wrap:g,spacing:Se,rowSpacing:je,columnSpacing:ke,gridSize:oe,gridOffset:re,disableEqualOverflow:(S=(j=M)!=null?j:p)!=null?S:!1,parentDisableEqualOverflow:p}),$e=a(ie,_);let B=c.jsx(i,d({ref:u,as:V,ownerState:ie,className:qe($e.root,w)},ae,{children:C.Children.map(D,O=>{if(C.isValidElement(O)&&ze(O,["Grid"])){var A;return C.cloneElement(O,{unstable_level:(A=O.props.unstable_level)!=null?A:T+1})}return O})}));return M!==void 0&&M!==(p??!1)&&(B=c.jsx(r.Provider,{value:M,children:B})),B});return l.muiName="Grid",l}const ge=Sn({createStyledComponent:Ze("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,n)=>n.root}),componentName:"MuiGrid2",useThemeProps:e=>Xe({props:e,name:"MuiGrid2"})});function jn({entry:e,payload:n}){const t=Z(f=>{var h,y,x;return(x=(y=(h=f.payload)==null?void 0:h.data)==null?void 0:y.reduce)==null?void 0:x.call(y,(b,S)=>b+S.value,0)},[]),o=Z(f=>{const h=new Q(t(f)||0),y=n?.reduce((S,j)=>S+t(j),0)||0,x=new Q(y),b=Number(h.div(x).times(100).toFixed(2,Q.ROUND_DOWN));return isNaN(b)||!isFinite(b)?0:b},[t,n]),r=X(()=>t(e),[e,t]),a=ye(r),i=X(()=>Number(o(e)),[e,o]),l=ye(i),s=Z(f=>Math.floor(f).toLocaleString(),[]),u=De({type:"text/plain"}),m=Ye();return c.jsxs(Me,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[c.jsx(Y,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),c.jsxs(H,{children:[c.jsxs(J,{component:"p",variant:"caption",children:[c.jsx(H,{component:"span",display:"inline-flex",mr:.5,children:c.jsx(he,{from:a??0,to:r,map:s,children:"0"})}),c.jsxs(H,{component:"span",direction:"row",display:"inline-flex",children:["(",c.jsx(he,{from:l??0,to:i,map:s,children:"0"}),"%)"]})]}),c.jsx(J,{variant:"body1",children:e.value}),e.payload.uuid&&c.jsxs(J,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{u.copy(e.payload.uuid).catch(()=>{}),m.enqueueSnackbar("UUID copied to clipboard","success")},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function xe(e){const{payload:n}=e;return c.jsx(ge,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:c.jsx(Le,{children:n?.map(t=>c.jsx(ge,{children:c.jsx(jn,{entry:t,payload:n})},`item-${t.value}`))})})}function kn(e){const n=se();return c.jsx(Y,{sx:{width:"100%",height:"100%",...e.sx},children:c.jsx(le,{children:c.jsxs(Ne,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[c.jsx(ce,{vertical:!1}),c.jsx(ue,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:t=>me(t,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),c.jsx(pe,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:t=>Number(t).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:e.label&&c.jsx(Te,{value:e.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),c.jsx(de,{cursor:{stroke:n.palette.neutral.main,strokeWidth:1},formatter:t=>Number(t).toLocaleString(),labelFormatter:t=>fe(t,{timeZone:e.filter.timezone,hour12:!1})}),c.jsx(Ee,{content:c.jsx(xe,{})}),e.data.map(t=>_e(Ge,{uuid:t.uuid,key:t.uuid,name:t.name,dataKey:"value",data:t.chartData,type:"monotone",stroke:t.color,strokeWidth:2}))]})})})}const $n=(e,n)=>{const t=new Map;return e.forEach(o=>{o.chartData.forEach(r=>{const a=new Date(r.date).getTime().toString();if(!t.has(a)){const i={date:a,total:0,diff:0,totalKey:"",originalTotal:0};n.forEach(({key:l})=>{i[l]=0,i[`${l}_absolute`]=0}),t.set(a,i)}n.forEach(({key:i})=>{const l=t.get(a),s=r[i],u=typeof s=="string"?s.trim()===""?0:parseInt(s,10):typeof s=="number"?s:0;l[`${i}_absolute`]=u,l[i]=0})})}),Array.from(t.values()).map(o=>{var r;const a=(r=n.find(s=>s.isTotal))==null?void 0:r.key,i=n.filter(s=>!s.isTotal).map(s=>s.key);if(!a||i.length===0)return o;const l=o[`${a}_absolute`];return o.originalTotal=l,o.total=l,o[a]=100,i.forEach(s=>{const u=o[`${s}_absolute`],m=l>0?new I(u.toString()).div(l).mul(100).toFixed(2,I.ROUND_DOWN):"0.00";o[s]=parseFloat(m)}),{...o,totalKey:a}}).sort((o,r)=>parseInt(o.date)-parseInt(r.date))};function _n(e){const n=se(),t=X(()=>e.data?$n(e.data,e.keyValues):[],[e.data,e.keyValues]);return c.jsx(Y,{sx:{width:"100%",height:"100%",...e.sx},children:c.jsx(le,{width:"100%",height:"100%",children:c.jsxs(Ae,{data:t,width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[c.jsx(ce,{strokeDasharray:"3 3"}),c.jsx(ue,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:o=>me(o,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),c.jsx(pe,{textAnchor:"end",tickLine:!1,tickFormatter:o=>`${o.toFixed(2)}%`}),c.jsx(de,{cursor:{stroke:n.palette.neutral.main,strokeWidth:1},labelFormatter:o=>fe(o,{timeZone:e.filter.timezone,hour12:!1}),formatter:(o,r,a)=>{const i=a.payload.totalKey,l=a.dataKey,s=l===i,u=a.payload[`${l}_absolute`],m=a.payload.originalTotal,f=s?null:m===0?"0.00":new I(u.toString()).div(m).mul(100).toFixed(2,I.ROUND_DOWN);return[f?`${u.toLocaleString()} (${f}%)`:`${u.toLocaleString()} (TOTAL)`,r]}}),e.keyValues.sort((o,r)=>o.isTotal?-1:r.isTotal?1:0).map(o=>c.jsx(Ce,{type:"monotone",dataKey:o.key,name:o.name,stroke:o.color,fill:o.color,strokeWidth:2,fillOpacity:.6},o.key))]})})})}export{kn as SeriesChart,xe as SeriesChartLegend,_n as SeriesPercentageChart};
@@ -1 +1 @@
1
- "use strict";import{A as a,f as s,o as e,B as t,p as n,C as r,D as o,j as i,E as p,m as u,F as c,I as d,e as m,L as l,O as I,a as P,b as g,P as B,i as h,d as S,Q as k,R as T,g as f,S as y,h as C,n as b,T as A,k as L,c as R,V as D,l as E}from"../shared/index-DiQVZ8e9.mjs";import{C as N,W as v,u as x}from"../shared/index-CDq4CkLc.mjs";import{SnackbarProvider as V}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,t as Banner,n as Button,r as CredentialRequestsEditor,N as CustomAlertComponent,o as DateInput,i as DateRangeInput,p as EmailInput,u as ExactBirthdayBanner,c as FullWidthAlert,d as Image,m as LegalLink,l as LinkButton,I as OTPInput,P as PageHeader,g as PageSectionHeader,B as Paragraph,h as PhoneInput,S as PrivacyPolicyNotice,k as QRCodeDisplay,T as ResendPhoneBanner,f as SSNInput,y as SectionHeader,C as SelectInput,V as SnackbarProvider,b as TestPhoneNumbersBanner,A as TextButton,L as TimezoneInput,R as Typography,D as VerifiedImage,E as VerifiedIncLogo,v as When,x as useSnackbar};
1
+ "use strict";import{A as a,c as s,k as e,B as t,l as r,C as n,D as o,f as i,E as p,i as u,F as c,I as m,b as d,L as P,O as l,e as I,P as g,Q as B,R as S,S as h,d as f,j as k,T,g as b,a as y,V as C,h as A}from"../shared/index-CnmEzA2O.mjs";import{a as L,b as D,P as E,S as N}from"../shared/PageSectionHeader-DClJcZmV.mjs";import{C as R,W as v,u as x}from"../shared/index-CDq4CkLc.mjs";import{SnackbarProvider as H}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,t as Banner,r as Button,n as CredentialRequestsEditor,R as CustomAlertComponent,o as DateInput,i as DateRangeInput,p as EmailInput,u as ExactBirthdayBanner,c as FullWidthAlert,m as Image,d as LegalLink,P as LinkButton,l as OTPInput,L as PageHeader,D as PageSectionHeader,E as Paragraph,I as PhoneInput,g as PrivacyPolicyNotice,B as QRCodeDisplay,S as ResendPhoneBanner,h as SSNInput,N as SectionHeader,f as SelectInput,H as SnackbarProvider,k as TestPhoneNumbersBanner,T as TextButton,b as TimezoneInput,y as Typography,C as VerifiedImage,A as VerifiedIncLogo,v as When,x as useSnackbar};
@@ -0,0 +1 @@
1
+ "use strict";import{a,b as e,P as r,S as s}from"../../shared/PageSectionHeader-DClJcZmV.mjs";export{a as PageHeader,e as PageSectionHeader,r as Paragraph,s as SectionHeader};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- "use strict";import{A as e,f as t,o as r,B as o,p as n,C as i,D as m,j as u,E as l,m as c,F as d,I as p,e as h,L as S,O as g,a as f,b as k,P,i as y,d as C,Q as D,R as b,g as B,S as I,h as T,n as w,T as N,k as R,c as v,V as Y,l as x,q as A,s as G,t as L,w as M,r as W,u as E,v as O}from"./shared/index-DiQVZ8e9.mjs";import{C as V,W as F,u as j}from"./shared/index-CDq4CkLc.mjs";import{b as z,d as H,a as U,j as q,u as Q,e as K,c as X,f as Z,g as _,h as $,i as J}from"./shared/useIntersectionObserver-CbpWuEs0.mjs";import{u as aa}from"./shared/useCopyToClipboard-BALOSYVW.mjs";import{a as sa,u as ea}from"./shared/useOnClickOutside-P5GTcgh8.mjs";import{u as ta}from"./shared/useCounter-BV32zXDQ.mjs";import{u as ra}from"./shared/usePrevious-A8he0cAZ.mjs";import{b as oa,a as na,v as ia,e as ma,d as ua,p as la,u as ca,h as da,j as pa,g as ha,o as Sa,s as ga,m as fa,c as ka,l as Pa,n as ya,q as Ca,f as Da,i as ba,r as Ba,z as Ia,t as Ta,x as wa,k as Na,w as Ra,y as va}from"./shared/shadows-Dhd7FrwF.mjs";import{f as Ya,b as xa,a as Aa,c as Ga}from"./shared/date-Cq0LS2Mr.mjs";import{masks as La}from"./utils/masks/index.mjs";import{M as Ma,S as Wa,U as Ea,d as Oa,e as Va,f as Fa,g as ja,a as za,s as Ha}from"./shared/unix.schema-CMYTtXco.mjs";import{p as Ua}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as qa}from"notistack";async function Qa(a){try{return[await a,null]}catch(s){return[null,s]}}const Ka=a=>a.replace(/(\d{3})-?(\d{2})-?(\d{4})/,"\u2022\u2022\u2022-\u2022\u2022-$3");export{e as AcceptTermsNotice,t as Alert,r as Backdrop,o as Banner,n as Button,i as CredentialRequestsEditor,V as CustomAlertComponent,m as DateInput,u as DateRangeInput,l as EmailInput,c as ExactBirthdayBanner,d as FullWidthAlert,p as Image,h as LegalLink,S as LinkButton,Ma as MaskedAndUnmaskedSSNSchema,g as OTPInput,f as PageHeader,k as PageSectionHeader,P as Paragraph,y as PhoneInput,C as PrivacyPolicyNotice,D as QRCodeDisplay,b as ResendPhoneBanner,B as SSNInput,Wa as SSNSchema,I as SectionHeader,T as SelectInput,qa as SnackbarProvider,w as TestPhoneNumbersBanner,N as TextButton,R as TimezoneInput,v as Typography,Ea as USDateSchema,Y as VerifiedImage,x as VerifiedIncLogo,F as When,oa as black,na as blue,ia as colors,A as countries,ma as darkBlue,ua as darkGreen,la as darkGrey,ca as darkGreyContrast,da as darkRed,pa as darkYellow,Oa as descriptionSchema,Va as emailSchema,Fa as fieldSchema,Ya as formatDateMMDDYYYY,xa as formatDateMMYY,Aa as formatDateToTimestamp,Ga as formatExtendedDate,ja as getDateSchemaWithPastValidation,G as getPhoneData,L as getPhoneDataByFieldName,za as getUnixSchema,ha as green,Sa as grey,ga as greyContrast,fa as infoContrast,ka as lightBlue,Pa as lightGreen,ya as lightGrey,Ca as lightGreyContrast,Da as lightRed,ba as lightYellow,La as masks,M as omitProperties,W as parseToPhoneNational,Ua as phoneSchema,Ba as red,Ia as shadows,E as sortByCountryName,Ka as ssnFormatter,Ha as stateSchema,Ta as textDisabled,wa as theme,z as useCallbackRef,aa as useCopyToClipboard,ta as useCounter,H as useDebounceValue,U as useDisclosure,q as useIntersectionObserver,Q as useLocalStorage,sa as useOnClickOutside,ra as usePrevious,ea as useQRCode,K as useScript,X as useSearchParams,j as useSnackbar,Z as useThrottle,_ as useToggle,$ as useWindowScroll,J as useWindowSize,O as validatePhone,Na as warningContrast,Ra as white,Qa as wrapPromise,va as yellow};
1
+ "use strict";import{A as e,c as t,k as r,B as o,l as n,C as i,D as m,f as u,E as l,i as c,F as d,I as p,b as h,L as g,O as S,e as f,P,Q as k,R as y,S as C,d as D,j as b,T as B,g as I,a as T,V as w,h as N,m as R,n as v,o as Y,q as x,p as A,s as G,v as L}from"./shared/index-CnmEzA2O.mjs";import{a as M,b as W,P as E,S as O}from"./shared/PageSectionHeader-DClJcZmV.mjs";import{C as F,W as U,u as V}from"./shared/index-CDq4CkLc.mjs";import{b as q,d as H,a as Q,j,u as z,e as X,c as Z,f as _,g as $,h as J,i as K}from"./shared/useIntersectionObserver-CbpWuEs0.mjs";import{u as aa}from"./shared/useCopyToClipboard-BALOSYVW.mjs";import{a as sa,u as ea}from"./shared/useOnClickOutside-P5GTcgh8.mjs";import{u as ta}from"./shared/useCounter-BV32zXDQ.mjs";import{u as ra}from"./shared/usePrevious-A8he0cAZ.mjs";import{b as oa,a as na,v as ia,e as ma,d as ua,p as la,u as ca,h as da,j as pa,g as ha,o as ga,s as Sa,m as fa,c as Pa,l as ka,n as ya,q as Ca,f as Da,i as ba,r as Ba,z as Ia,t as Ta,x as wa,k as Na,w as Ra,y as va}from"./shared/shadows-Dhd7FrwF.mjs";import{f as Ya,b as xa,a as Aa,c as Ga}from"./shared/date-Cq0LS2Mr.mjs";import{masks as La}from"./utils/masks/index.mjs";import{M as Ma,S as Wa,U as Ea,d as Oa,e as Fa,f as Ua,g as Va,a as qa,s as Ha}from"./shared/unix.schema-CMYTtXco.mjs";import{p as Qa}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as ja}from"notistack";async function za(a){try{return[await a,null]}catch(s){return[null,s]}}const Xa=a=>a.replace(/(\d{3})-?(\d{2})-?(\d{4})/,"\u2022\u2022\u2022-\u2022\u2022-$3");export{e as AcceptTermsNotice,t as Alert,r as Backdrop,o as Banner,n as Button,i as CredentialRequestsEditor,F as CustomAlertComponent,m as DateInput,u as DateRangeInput,l as EmailInput,c as ExactBirthdayBanner,d as FullWidthAlert,p as Image,h as LegalLink,g as LinkButton,Ma as MaskedAndUnmaskedSSNSchema,S as OTPInput,M as PageHeader,W as PageSectionHeader,E as Paragraph,f as PhoneInput,P as PrivacyPolicyNotice,k as QRCodeDisplay,y as ResendPhoneBanner,C as SSNInput,Wa as SSNSchema,O as SectionHeader,D as SelectInput,ja as SnackbarProvider,b as TestPhoneNumbersBanner,B as TextButton,I as TimezoneInput,T as Typography,Ea as USDateSchema,w as VerifiedImage,N as VerifiedIncLogo,U as When,oa as black,na as blue,ia as colors,R as countries,ma as darkBlue,ua as darkGreen,la as darkGrey,ca as darkGreyContrast,da as darkRed,pa as darkYellow,Oa as descriptionSchema,Fa as emailSchema,Ua as fieldSchema,Ya as formatDateMMDDYYYY,xa as formatDateMMYY,Aa as formatDateToTimestamp,Ga as formatExtendedDate,Va as getDateSchemaWithPastValidation,v as getPhoneData,Y as getPhoneDataByFieldName,qa as getUnixSchema,ha as green,ga as grey,Sa as greyContrast,fa as infoContrast,Pa as lightBlue,ka as lightGreen,ya as lightGrey,Ca as lightGreyContrast,Da as lightRed,ba as lightYellow,La as masks,x as omitProperties,A as parseToPhoneNational,Qa as phoneSchema,Ba as red,Ia as shadows,G as sortByCountryName,Xa as ssnFormatter,Ha as stateSchema,Ta as textDisabled,wa as theme,q as useCallbackRef,aa as useCopyToClipboard,ta as useCounter,H as useDebounceValue,Q as useDisclosure,j as useIntersectionObserver,z as useLocalStorage,sa as useOnClickOutside,ra as usePrevious,ea as useQRCode,X as useScript,Z as useSearchParams,V as useSnackbar,_ as useThrottle,$ as useToggle,J as useWindowScroll,K as useWindowSize,L as validatePhone,Na as warningContrast,Ra as white,za as wrapPromise,va as yellow};
@@ -0,0 +1 @@
1
+ "use strict";import{j as t}from"./jsx-runtime-jmtevAuS.mjs";import{Typography as n,Box as r,Stack as o}from"@mui/material";const a=({children:i,sx:e,...s})=>t.jsx(n,{variant:"body1",textAlign:"center",width:"100%",marginTop:2,sx:{...e,wordBreak:"break-word"},...s,children:i}),c=({children:i,...e})=>t.jsx(n,{variant:"h2",textAlign:"center",fontWeight:900,...e,children:i});function h(i){return t.jsxs(r,{sx:{mt:6.25},children:[t.jsxs(o,{direction:"row",alignItems:"center",spacing:1,sx:{"& button":{marginTop:"4px!important"}},children:[t.jsx(n,{variant:"h3",fontSize:50,fontWeight:"800",children:i.title}),i.titleRightChildren]}),!!i.description&&t.jsx(n,{variant:"h4",fontSize:30,fontWeight:"700",color:"text.disabled",children:i.description})]})}function d(i){return t.jsxs(r,{children:[t.jsxs(o,{direction:"row",alignItems:"center",spacing:1,children:[t.jsx(n,{variant:"h4",fontSize:34,fontWeight:"900",children:i.title}),i.titleRightChildren]}),!!i.description&&t.jsx(n,{variant:"h5",fontSize:24,fontWeight:"400",children:i.description})]})}export{a as P,c as S,h as a,d as b};