@verifiedinc-public/shared-ui-elements 3.4.4 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ import { ReactElement } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+ interface KeyValue {
4
+ key: string;
5
+ name: string;
6
+ color: string;
7
+ }
8
+ interface ChartDataPoint {
9
+ date: number;
10
+ [key: string]: number;
11
+ }
12
+ interface SeriesChartData {
13
+ uuid: string;
14
+ chartData: ChartDataPoint[];
15
+ }
16
+ interface SeriesPercentageChartProps {
17
+ data: SeriesChartData[];
18
+ filter: {
19
+ timezone: string;
20
+ };
21
+ keyValues: KeyValue[];
22
+ sx?: SxProps;
23
+ }
24
+ export declare function SeriesPercentageChart(props: SeriesPercentageChartProps): ReactElement;
25
+ 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 s}from"../../shared/jsx-runtime-jmtevAuS.mjs";import*as G from"react";import{useCallback as U,useMemo as Z,createElement as $e}from"react";import{Box as X,Stack as Y,Typography as H,useTheme as Te}from"@mui/material";import{ResponsiveContainer as ie,LineChart as Ne,CartesianGrid as se,XAxis as le,YAxis as ce,Label as _e,Tooltip as ue,Legend as Ee,Line as Ce,AreaChart as Ae,Area as Ge}from"recharts";import{b as pe,c as de}from"../../shared/date-Cq0LS2Mr.mjs";import me,{Decimal as J}from"decimal.js";import{AnimatePresence as Me}from"framer-motion";import{u as De}from"../../shared/useCopyToClipboard-BALOSYVW.mjs";import"qrcode";import{u as fe}from"../../shared/usePrevious-A8he0cAZ.mjs";import{a as Le,C as he}from"../../shared/motions-CpxgbzKX.mjs";import{i as Re,_ as I,s as ze,a as d,c as ye,d as Fe,e as We,f as qe,h as Ie,j as Ve,k as Pe,l as Ke,m as Be,n as Ue,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 er(e){return Object.keys(e).length===0}function rr(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Q(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const tr=ye(),or=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function V({defaultTheme:e,theme:r,themeId:t}){return er(r)?e:r[t]||r}function nr(e){return e?(r,t)=>t[e]:null}function P(e,r){let{ownerState:t}=r,n=I(r,He);const o=typeof e=="function"?e(d({ownerState:t},n)):e;if(Array.isArray(o))return o.flatMap(a=>P(a,d({ownerState:t},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=I(o,Je);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props(d({ownerState:t},n,t)):Object.keys(c.props).forEach(u=>{t?.[u]!==c.props[u]&&n[u]!==c.props[u]&&(l=!1)}),l&&(Array.isArray(i)||(i=[i]),i.push(typeof c.style=="function"?c.style(d({ownerState:t},n,t)):c.style))}),i}return o}function ar(e={}){const{themeId:r,defaultTheme:t=tr,rootShouldForwardProp:n=Q,slotShouldForwardProp:o=Q}=e,a=i=>Fe(d({},i,{theme:V(d({},i,{defaultTheme:t,themeId:r}))}));return a.__mui_systemSx=!0,(i,c={})=>{Re(i,p=>p.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:w,skipSx:f,overridesResolver:h=nr(or(u))}=c,m=I(c,Qe),g=w!==void 0?w:u&&u!=="Root"&&u!=="root"||!1,y=f||!1;let S,j=Q;u==="Root"||u==="root"?j=n:u?j=o:rr(i)&&(j=void 0);const T=ze(i,d({shouldForwardProp:j,label:S},m)),z=p=>typeof p=="function"&&p.__emotion_real!==p||We(p)?x=>P(p,d({},x,{theme:V({theme:x.theme,defaultTheme:t,themeId:r})})):p,E=(p,...x)=>{let D=z(p);const N=x?x.map(z):[];l&&h&&N.push(b=>{const v=V(d({},b,{defaultTheme:t,themeId:r}));if(!v.components||!v.components[l]||!v.components[l].styleOverrides)return null;const k=v.components[l].styleOverrides,C={};return Object.entries(k).forEach(([K,q])=>{C[K]=P(q,d({},b,{theme:v}))}),h(b,C)}),l&&!g&&N.push(b=>{var v;const k=V(d({},b,{defaultTheme:t,themeId:r})),C=k==null||(v=k.components)==null||(v=v[l])==null?void 0:v.variants;return P({variants:C},d({},b,{theme:k}))}),y||N.push(a);const F=N.length-x.length;if(Array.isArray(p)&&F>0){const b=new Array(F).fill("");D=[...p,...b],D.raw=[...p.raw,...b]}const W=T(D,...N);return i.muiName&&(W.muiName=i.muiName),W};return T.withConfig&&(E.withConfig=T.withConfig),E}}const ir=ar(),sr=(e,r)=>e.filter(t=>r.includes(t)),M=(e,r,t)=>{const n=e.keys[0];Array.isArray(r)?r.forEach((o,a)=>{t((i,c)=>{a<=e.keys.length-1&&(a===0?Object.assign(i,c):i[e.up(e.keys[a])]=c)},o)}):r&&typeof r=="object"?(Object.keys(r).length>e.keys.length?e.keys:sr(e.keys,Object.keys(r))).forEach(o=>{if(e.keys.indexOf(o)!==-1){const a=r[o];a!==void 0&&t((i,c)=>{n===o?Object.assign(i,c):i[e.up(o)]=c},a)}}):(typeof r=="number"||typeof r=="string")&&t((o,a)=>{Object.assign(o,a)},r)};function $(e){return e?`Level${e}`:""}function R(e){return e.unstable_level>0&&e.container}function be(e){return function(r){return`var(--Grid-${r}Spacing${$(e.unstable_level)})`}}function ee(e){return function(r){return e.unstable_level===0?`var(--Grid-${r}Spacing)`:`var(--Grid-${r}Spacing${$(e.unstable_level-1)})`}}function re(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${$(e.unstable_level-1)})`}const lr=({theme:e,ownerState:r})=>{const t=be(r),n={};return M(e.breakpoints,r.gridSize,(o,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} / ${re(r)}${R(r)?` + ${t("column")}`:""})`}),o(n,i)}),n},cr=({theme:e,ownerState:r})=>{const t={};return M(e.breakpoints,r.gridOffset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / ${re(r)})`}),n(t,a)}),t},ur=({theme:e,ownerState:r})=>{if(!r.container)return{};const t=R(r)?{[`--Grid-columns${$(r.unstable_level)}`]:re(r)}:{"--Grid-columns":12};return M(e.breakpoints,r.columns,(n,o)=>{n(t,{[`--Grid-columns${$(r.unstable_level)}`]:o})}),t},pr=({theme:e,ownerState:r})=>{if(!r.container)return{};const t=ee(r),n=R(r)?{[`--Grid-rowSpacing${$(r.unstable_level)}`]:t("row")}:{};return M(e.breakpoints,r.rowSpacing,(o,a)=>{var i;o(n,{[`--Grid-rowSpacing${$(r.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},dr=({theme:e,ownerState:r})=>{if(!r.container)return{};const t=ee(r),n=R(r)?{[`--Grid-columnSpacing${$(r.unstable_level)}`]:t("column")}:{};return M(e.breakpoints,r.columnSpacing,(o,a)=>{var i;o(n,{[`--Grid-columnSpacing${$(r.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},mr=({theme:e,ownerState:r})=>{if(!r.container)return{};const t={};return M(e.breakpoints,r.direction,(n,o)=>{n(t,{flexDirection:o})}),t},fr=({ownerState:e})=>{const r=be(e),t=ee(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(${r("row")} / -2) calc(${r("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${r("row")} * -1) 0px 0px calc(${r("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")}`}))},hr=e=>{const r=[];return Object.entries(e).forEach(([t,n])=>{n!==!1&&n!==void 0&&r.push(`grid-${t}-${String(n)}`)}),r},yr=(e,r="xs")=>{function t(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(t(e))return[`spacing-${r}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([o,a])=>{t(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},br=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([r,t])=>`direction-${r}-${t}`):[`direction-xs-${String(e)}`],vr=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],gr=ye(),xr=ir("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,r)=>r.root});function Or(e){return Ke({props:e,name:"MuiGrid",defaultTheme:gr})}function wr(e={}){const{createStyledComponent:r=xr,useThemeProps:t=Or,componentName:n="MuiGrid"}=e,o=G.createContext(void 0),a=(l,u)=>{const{container:w,direction:f,spacing:h,wrap:m,gridSize:g}=l,y={root:["root",w&&"container",m!=="wrap"&&`wrap-xs-${String(m)}`,...br(f),...hr(g),...w?yr(h,u.breakpoints.keys[0]):[]]};return Be(y,S=>Ue(n,S),{})},i=r(ur,dr,pr,lr,mr,fr,cr),c=G.forwardRef(function(l,u){var w,f,h,m,g,y,S,j;const T=qe(),z=t(l),E=Ie(z),p=G.useContext(o),{className:x,children:D,columns:N=12,container:F=!1,component:W="div",direction:b="row",wrap:v="wrap",spacing:k=0,rowSpacing:C=k,columnSpacing:K=k,disableEqualOverflow:q,unstable_level:_=0}=E,xe=I(E,vr);let L=q;_&&q!==void 0&&(L=l.disableEqualOverflow);const te={},oe={},ne={};Object.entries(xe).forEach(([O,A])=>{T.breakpoints.values[O]!==void 0?te[O]=A:T.breakpoints.values[O.replace("Offset","")]!==void 0?oe[O.replace("Offset","")]=A:ne[O]=A});const Oe=(w=l.columns)!=null?w:_?void 0:N,we=(f=l.spacing)!=null?f:_?void 0:k,Se=(h=(m=l.rowSpacing)!=null?m:l.spacing)!=null?h:_?void 0:C,je=(g=(y=l.columnSpacing)!=null?y:l.spacing)!=null?g:_?void 0:K,ae=d({},E,{level:_,columns:Oe,container:F,direction:b,wrap:v,spacing:we,rowSpacing:Se,columnSpacing:je,gridSize:te,gridOffset:oe,disableEqualOverflow:(S=(j=L)!=null?j:p)!=null?S:!1,parentDisableEqualOverflow:p}),ke=a(ae,T);let B=s.jsx(i,d({ref:u,as:W,ownerState:ae,className:Ve(ke.root,x)},ne,{children:G.Children.map(D,O=>{if(G.isValidElement(O)&&Pe(O,["Grid"])){var A;return G.cloneElement(O,{unstable_level:(A=O.props.unstable_level)!=null?A:_+1})}return O})}));return L!==void 0&&L!==(p??!1)&&(B=s.jsx(o.Provider,{value:L,children:B})),B});return c.muiName="Grid",c}const ve=wr({createStyledComponent:Ze("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,r)=>r.root}),componentName:"MuiGrid2",useThemeProps:e=>Xe({props:e,name:"MuiGrid2"})});function Sr({entry:e,payload:r}){const t=U(f=>{var h,m,g;return(g=(m=(h=f.payload)==null?void 0:h.data)==null?void 0:m.reduce)==null?void 0:g.call(m,(y,S)=>y+S.value,0)},[]),n=U(f=>{const h=new J(t(f)||0),m=r?.reduce((S,j)=>S+t(j),0)||0,g=new J(m),y=Number(h.div(g).times(100).toFixed(2,J.ROUND_DOWN));return isNaN(y)||!isFinite(y)?0:y},[t,r]),o=Z(()=>t(e),[e,t]),a=fe(o),i=Z(()=>Number(n(e)),[e,n]),c=fe(i),l=U(f=>Math.floor(f).toLocaleString(),[]),u=De({type:"text/plain"}),w=Ye();return s.jsxs(Le,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[s.jsx(X,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),s.jsxs(Y,{children:[s.jsxs(H,{component:"p",variant:"caption",children:[s.jsx(Y,{component:"span",display:"inline-flex",mr:.5,children:s.jsx(he,{from:a??0,to:o,map:l,children:"0"})}),s.jsxs(Y,{component:"span",direction:"row",display:"inline-flex",children:["(",s.jsx(he,{from:c??0,to:i,map:l,children:"0"}),"%)"]})]}),s.jsx(H,{variant:"body1",children:e.value}),e.payload.uuid&&s.jsxs(H,{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 ge(e){const{payload:r}=e;return s.jsx(ve,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:s.jsx(Me,{children:r?.map(t=>s.jsx(ve,{children:s.jsx(Sr,{entry:t,payload:r})},`item-${t.value}`))})})}function jr(e){const r=Te();return s.jsx(X,{sx:{width:"100%",height:"100%",...e.sx},children:s.jsx(ie,{children:s.jsxs(Ne,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[s.jsx(se,{vertical:!1}),s.jsx(le,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:t=>pe(t,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),s.jsx(ce,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:t=>Number(t).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:e.label&&s.jsx(_e,{value:e.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),s.jsx(ue,{cursor:{stroke:r.palette.neutral.main,strokeWidth:1},formatter:t=>Number(t).toLocaleString(),labelFormatter:t=>de(t,{timeZone:e.filter.timezone,hour12:!1})}),s.jsx(Ee,{content:s.jsx(ge,{})}),e.data.map(t=>$e(Ce,{uuid:t.uuid,key:t.uuid,name:t.name,dataKey:"value",data:t.chartData,type:"monotone",stroke:t.color,strokeWidth:2}))]})})})}const kr=(e,r)=>{const t=new Map;return e.forEach(n=>{n.chartData.forEach(o=>{if(!t.has(o.date)){const a={date:o.date.toString(),total:0,oneClickSuccess:0,oneClickCreated:0,oneClickCancelled:0};r.forEach(({key:i})=>{a[i]=0}),t.set(o.date,a)}r.forEach(({key:a})=>{const i=t.get(o.date);i[a]=o[a]||0})})}),Array.from(t.values()).map(n=>{const o=r.reduce((a,{key:i})=>a+(n[i]||0),0);return{...n,total:o}}).sort((n,o)=>parseInt(n.date)-parseInt(o.date))};function $r(e){const r=Z(()=>e.data?kr(e.data,e.keyValues):[],[e.data,e.keyValues]);return s.jsx(X,{sx:{width:"100%",height:"100%",...e.sx},children:s.jsx(ie,{width:"100%",height:"100%",children:s.jsxs(Ae,{data:r,stackOffset:"expand",width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[s.jsx(se,{strokeDasharray:"3 3"}),s.jsx(le,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:t=>pe(t,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),s.jsx(ce,{textAnchor:"end",tickLine:!1,tickFormatter:t=>`${(t*100).toFixed(2)}%`}),s.jsx(ue,{formatter:(t,n,o)=>{const a=o.payload.total,i=a===0?"0.00":new me(t.toString()).div(a).mul(100).toFixed(2,me.ROUND_DOWN);return[`${t.toString()} (${i}%)`,n]},labelFormatter:t=>de(t,{timeZone:e.filter.timezone,hour12:!1})}),e.keyValues.map(t=>s.jsx(Ge,{type:"monotone",dataKey:t.key,name:t.name,stackId:"1",stroke:t.color,fill:t.color,strokeWidth:2},t.key))]})})})}export{jr as SeriesChart,ge as SeriesChartLegend,$r 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};