@voidly-io/design-system 1.0.55 → 1.0.56

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.
@@ -1,5 +1,5 @@
1
1
  import '../style.css';
2
- import{a as e,i as t,n,o as r,r as i,t as a}from"../tokens-Cr59L2ch.js";import{i as o,t as s}from"../utils-CJ1T8QWy.js";import{c}from"react/compiler-runtime";import{ArrowPathIcon as l,CheckIcon as u,ExclamationCircleIcon as d,ExclamationTriangleIcon as f}from"@heroicons/react/20/solid";import*as p from"@heroicons/react/24/outline";import{ArrowDownTrayIcon as m,ArrowTurnDownLeftIcon as h,ArrowTurnRightUpIcon as g,ChevronUpIcon as _,ClipboardDocumentIcon as v,DocumentIcon as y,InformationCircleIcon as b}from"@heroicons/react/24/outline";import{Alert as x,AlertTitle as S,Button as C,IconButton as w,ThemeProvider as T,Tooltip as E,alpha as D,createTheme as O,darken as k,lighten as A,styled as j,useMediaQuery as M,useTheme as N}from"@mui/material";import{Fragment as P,createContext as F,createElement as I,forwardRef as L,useContext as R,useEffect as ee,useLayoutEffect as te,useState as ne,useSyncExternalStore as re}from"react";import{Fragment as ie,jsx as z,jsxs as B}from"react/jsx-runtime";import{GeistMono as ae}from"geist/font/mono";import{GeistSans as V}from"geist/font/sans";import oe from"@mui/material/CssBaseline";import*as H from"@heroicons/react/24/solid";import{FormattedMessage as U,IntlProvider as se,useIntl as ce}from"react-intl";import{toJsxRuntime as W}from"hast-util-to-jsx-runtime";import{codeToHast as G}from"shiki/bundle/web";import{Toaster as K,toast as q}from"sonner";const J={width:18,height:18},le={success:z(u,{style:J}),info:z(b,{style:J}),warning:z(f,{style:J}),error:z(d,{style:J})};function ue(e){let t=c(8),n=e.hideIcon?!1:e.icon?e.icon:le[e.type],r;t[0]===e.title?r=t[1]:(r=e.title&&z(S,{children:e.title}),t[0]=e.title,t[1]=r);let i;return t[2]!==e.children||t[3]!==e.style||t[4]!==e.type||t[5]!==n||t[6]!==r?(i=B(x,{severity:e.type,icon:n,style:e.style,children:[r,e.children]}),t[2]=e.children,t[3]=e.style,t[4]=e.type,t[5]=n,t[6]=r,t[7]=i):i=t[7],i}var Y={container:`z7PbZq_container`,inner:`z7PbZq_inner`,wobble:`z7PbZq_wobble`};const de=e=>{let t=c(9),{size:n,color:r,speed:i,stroke:a,bgOpacity:o}=e,s=n===void 0?80:n,l=r===void 0?`black`:r,u=i===void 0?1.75:i,d=a===void 0?5:a,f=o===void 0?.1:o,p=s+`px`,m=u+`s`,h=d+`px`,g=f+``,_;t[0]!==l||t[1]!==p||t[2]!==m||t[3]!==h||t[4]!==g?(_={"--uib-size":p,"--uib-color":l,"--uib-speed":m,"--uib-stroke":h,"--uib-bg-opacity":g},t[0]=l,t[1]=p,t[2]=m,t[3]=h,t[4]=g,t[5]=_):_=t[5];let v=_,y;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=z(`div`,{className:Y.inner}),t[6]=y):y=t[6];let b;return t[7]===v?b=t[8]:(b=z(`div`,{className:Y.container,style:v,children:y}),t[7]=v,t[8]=b),b};var X={car:`_3zRF4q_car`,container:`_3zRF4q_container`,inner:`_3zRF4q_inner`,track:`_3zRF4q_track`,travel:`_3zRF4q_travel`};function fe(e,t){return t.replace(/([-A-y])/g,`,$1`).split(`,`).filter(e=>e!==``).map(t=>{let n=t.match(/(\d+\.?\d*)/g)?.[0]??``,r=parseFloat(n)*e;return t.replace(n,r.toString())}).join(` `)}const pe=e=>{let t=c(21),{size:n,color:r,speed:i,stroke:a,strokeLength:o,bgOpacity:s}=e,l=n===void 0?37:n,u=r===void 0?`black`:r,d=i===void 0?.9:i,f=a===void 0?5:a,p=o===void 0?.15:o,m=s===void 0?.1:s,h=parseInt(l+``)/50,g;t[0]===h?g=t[1]:(g=fe(h,`M0.5,25C0.5,7.8,7.8,0.5,25,0.5S49.5,7.8,49.5,25S42.2,49.5,25,49.5S0.5,42.2,0.5,25`),t[0]=h,t[1]=g);let _=g,v=l+`px`,y=d+`s`,b=String(parseFloat(p+``)*100),x=String(100-parseFloat(p+``)*100),S=m+``,C;t[2]!==u||t[3]!==y||t[4]!==b||t[5]!==x||t[6]!==S||t[7]!==v?(C={"--uib-size":v,"--uib-color":u,"--uib-speed":y,"--uib-dash":b,"--uib-gap":x,"--uib-bg-opacity":S},t[2]=u,t[3]=y,t[4]=b,t[5]=x,t[6]=S,t[7]=v,t[8]=C):C=t[8];let w=`0 0 ${l} ${l}`,T,E;t[9]!==_||t[10]!==f?(T=z(`path`,{className:X.track,strokeWidth:f,fill:`none`,pathLength:`100`,d:_}),E=z(`path`,{className:X.car,strokeWidth:f,fill:`none`,pathLength:`100`,d:_}),t[9]=_,t[10]=f,t[11]=T,t[12]=E):(T=t[11],E=t[12]);let D;t[13]!==l||t[14]!==w||t[15]!==T||t[16]!==E?(D=B(`svg`,{className:X.inner,x:`0px`,y:`0px`,viewBox:w,height:l,width:l,preserveAspectRatio:`xMidYMid meet`,children:[T,E]}),t[13]=l,t[14]=w,t[15]=T,t[16]=E,t[17]=D):D=t[17];let O;return t[18]!==C||t[19]!==D?(O=z(`div`,{className:X.container,style:C,children:D}),t[18]=C,t[19]=D,t[20]=O):O=t[20],O};function me(e){let t=c(7),i;t[0]===e.style?i=t[1]:(i={display:`flex`,justifyContent:`center`,alignItems:`center`,borderRadius:n[`--v-border-radius`],...e.style},t[0]=e.style,t[1]=i);let a;t[2]===e.type?a=t[3]:(a=e.type?.name===`square`?z(pe,{color:r[`--v-gray-1000`],size:e.type.size??40,speed:`0.9`}):z(de,{color:r[`--v-gray-1000`],size:e.type?.width??104,speed:`1.75`}),t[2]=e.type,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=z(`div`,{style:i,children:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}const he=L(function(e,t){let n=c(15),i,o,s,l,u;n[0]===e?(i=n[1],o=n[2],s=n[3],l=n[4],u=n[5]):({selected:l,padding:o,style:u,children:i,...s}=e,n[0]=e,n[1]=i,n[2]=o,n[3]=s,n[4]=l,n[5]=u);let d=`1px solid ${l?r[`--v-blue-700`]:r[`--v-strokes`]}`,f=o??24,p;n[6]!==u||n[7]!==d||n[8]!==f?(p={borderRadius:a[`--v-border-radius`],border:d,display:`flex`,alignItems:`flex-start`,flexDirection:`column`,justifyContent:`space-between`,background:r[`--v-background-200`],gap:24,overflow:`hidden`,padding:f,...u},n[6]=u,n[7]=d,n[8]=f,n[9]=p):p=n[9];let m;return n[10]!==i||n[11]!==t||n[12]!==s||n[13]!==p?(m=z(`div`,{...s,ref:t,style:p,children:i}),n[10]=i,n[11]=t,n[12]=s,n[13]=p,n[14]=m):m=n[14],m});function ge(){let t=`#2050ff`;t+``,t+``,t+``;let n=A(t,.2),o=`#e8e8e8`;return{...e.light,...i,...a,colorPrimary500:t,colorPrimary500Alpha10:`#2050ff1a`,colorPrimary500Alpha15:`#2050ff26`,colorPrimary500Alpha20:`#2050ff33`,colorPrimary700:n,colorMarker:`rgb(244 125 27 / 39%) 4%, rgb(215 106 40 / 15%)`,borderRadius:`6px`,colorBlack:`#000000`,colorStrokes:o,colorStrokesLight:A(o,.5),linkColor:n,linkColorHover:A(n,.25),colorWhite:`#FFFFFF`,bodyColor:`#444`,bodyColorAlpha50:D(`#444`,.5),bodyColorStrong:`#000`,inputBackground:`#fff`,inputBackgroundDisabled:`rgb(250, 250, 250)`,inputColor:`#000`,inputColorDisabled:r[`--v-gray-100`],inputBorder:`#e8e8e8`,inputHoverBorder:k(`#e8e8e8`,.1),inputActiveBorder:t,inputActiveShadow:`0 0 0 4px rgba(50, 132, 255, 0.1)`,buttonContainedPrimaryColor:`#fff`,buttonContainedPrimaryColorHover:`#fff`,buttonContainedPrimaryBackground:`#0a0a0a`,buttonContainedPrimaryBackgroundHover:A(`#0a0a0a`,.1),buttonContainedPrimaryBorder:A(`#0a0a0a`,.1),buttonContainedPrimaryBorderHover:A(`#0a0a0a`,.2),buttonContainedSecondaryColor:`#fff`,buttonContainedSecondaryColorHover:`#fff`,buttonContainedSecondaryBackground:`#0a0a0a`,buttonContainedSecondaryBackgroundHover:A(`#0a0a0a`,.1),buttonContainedSecondaryBorder:`#0a0a0a`,buttonContainedSecondaryBorderHover:A(`#0a0a0a`,.1),buttonOutlinedColor:`rgba(0, 0, 0, 0.9)`,buttonOutlinedColorHover:`rgba(0, 0, 0, 1)`,buttonOutlinedBackground:`#fafafa`,buttonOutlinedBackgroundHover:`#fff`,buttonOutlinedBorder:`#e8e8e8`,buttonOutlinedBorderHover:k(`#e8e8e8`,.1),checkboxBackground:t,checkboxLabelColor:`rgba(0, 0, 0, 0.9)`,checkboxLabelFontSize:13,checkboxLabelFontWeight:400,checkboxLabelMargin:16,success:`#11c12fff`,switchThumb:`#fff`,switchTrack:r[`--v-gray-300`],switchTrackChecked:t,iconButtonColor:A(`#05102b`,.4),iconButtonColorHover:`#05102b`,accentBackgroundColor:`#fff`,accentBackgroundColorStrong:k(`#fff`,.05),sidebarBackground:`#fff`,sidebarActiveColor:`#000`,sidebarActiveBackground:D(`#000`,.05),sidebarActiveBackgroundHover:D(n,.075),sidebarColor:e.light[`--v-gray-700`],sidebarLinkHoverBackground:`rgba(0, 0, 0, 0.05)`,sidebarLinkHoverColor:`rgba(0, 0, 0, 0.9)`,tableSortIconBackground:e.light[`--v-blue-200`],tableSortIconColor:e.light[`--v-blue-700`],tableBorderColor:`rgba(0, 0, 0, 0.1)`,dragAndDropAreaColor:t,dragAndDropAreaColorDisabled:r[`--v-gray-300`],dragAndDropAreaBorder:`#2c5dbf0f`,dragAndDropAreaBorderDisabled:`#2c5dbf0f`,dragAndDropAreaBackground:`#2c5dbf0f`,dragAndDropAreaBackgroundHover:`#2c5dbf1a`,dragAndDropAreaBackgroundDisabled:D(e.light[`--v-gray-900`],.5),selectionColor:`#fff`,selectionBackground:t,boxShadow:`0px 5px 5px -3px rgb(0 0 0 / 0%), 0px 8px 10px 1px rgb(0 0 0 / 2%), 0px 3px 14px 2px rgba(0,0,0,0.12)`,boxShadow2:`0 14px 20px -4px rgba(50,50,93,0.05), 0 8px 16px -8px rgba(0,0,0,0.05)`,boxShadow3:`0 14px 20px -4px rgba(229, 239, 250, 1)`,boxShadow4:`0 1px 2px 0 rgba(0,0,0,.05)`,boxShadowError:`0 14px 20px -4px rgba(255, 18, 18, 0.05), 0 8px 16px -8px rgba(255, 0, 0, 0.05)`,keystrokePreviewColor:r[`--v-gray-100`],keystrokePreviewBackground:`rgba(0, 0, 0, 0.03)`,dottedBackgroundDotsColor:`#00000016`,blockEditorSidebarGroupHeaderBackground:`#fafafa`,blockEditorSidebarGroupHeaderBackgroundHover:`#f2f2f2`,blockEditorSidebarGroupHeaderColor:`#000`,upgradeToProBannerBackground:`#0a0a0a`,upgradeToProBannerBackgroundHover:A(`#0a0a0a`,.1),upgradeToProBannerColor:`#fff`,upgradeToProBannerBorder:`1px solid #0a0a0a`}}function Z(){let t=`#006eff`;t+``,t+``,t+``;let n=k(t,.4),o=A(t,.2),s=`#2a2a2a`;return{...e.dark,...i,...a,colorPrimary500:t,colorPrimary500Alpha10:`#006eff1a`,colorPrimary500Alpha15:`#006eff26`,colorPrimary500Alpha20:`#006eff33`,colorPrimary700:o,colorMarker:`${D(t,.4)} 4%, ${D(t,.15)}`,borderRadius:`6px`,colorBlack:`#fff`,colorStrokes:s,colorStrokesLight:k(s,.5),linkColor:o,linkColorHover:A(o,.25),colorWhite:`#0e0e0e`,bodyColor:`#a1a1a1`,bodyColorAlpha50:D(`#fff`,.5),bodyColorStrong:`#fff`,inputBackground:`#0a0a0a`,inputBackgroundDisabled:`#ffffff14`,inputColor:`#fff`,inputColorDisabled:r[`--v-gray-900`],inputBorder:`#2a2a2a`,inputHoverBorder:A(`#2a2a2a`,.1),inputActiveBorder:t,inputActiveShadow:`0 0 0 4px ${D(t,.2)}`,buttonContainedPrimaryColor:`#000`,buttonContainedPrimaryColorHover:`#000`,buttonContainedPrimaryBackground:`#fff`,buttonContainedPrimaryBackgroundHover:k(`#fff`,.1),buttonContainedPrimaryBorder:`#fff`,buttonContainedPrimaryBorderHover:k(`#fff`,.1),buttonContainedSecondaryColor:`#e3e3e3`,buttonContainedSecondaryColorHover:`#fff`,buttonContainedSecondaryBackground:`#0a0a0a`,buttonContainedSecondaryBackgroundHover:A(`#0a0a0a`,.1),buttonContainedSecondaryBorder:s,buttonContainedSecondaryBorderHover:A(s,.1),buttonOutlinedColor:`#e3e3e3`,buttonOutlinedColorHover:`#fff`,buttonOutlinedBackground:`#0a0a0a`,buttonOutlinedBackgroundHover:A(`#0a0a0a`,.1),buttonOutlinedBorder:s,buttonOutlinedBorderHover:A(s,.1),checkboxBackground:t,checkboxLabelColor:`#fff`,checkboxLabelFontSize:13,checkboxLabelFontWeight:400,checkboxLabelMargin:16,success:`#1ce853`,switchThumb:`#fff`,switchTrack:`#30363d`,switchTrackChecked:t,iconButtonColor:k(`#fff`,.2),iconButtonColorHover:`#fff`,accentBackgroundColor:`#0a0a0a`,accentBackgroundColorStrong:`#0e0e0e`,sidebarBackground:e.dark[`--v-background-200`],sidebarActiveColor:`#fff`,sidebarActiveBackground:D(`#fff`,.05),sidebarActiveBackgroundHover:D(o,.075),sidebarColor:e.dark[`--v-gray-700`],sidebarLinkHoverBackground:`rgba(255, 255, 255, 0.05)`,sidebarLinkHoverColor:`#fff`,tableSortIconBackground:e.dark[`--v-blue-200`],tableSortIconColor:e.dark[`--v-blue-700`],tableBorderColor:`#292d31`,dragAndDropAreaColor:t,dragAndDropAreaColorDisabled:D(e.dark[`--v-gray-500`],.5),dragAndDropAreaBorder:`#2c5dbf0f`,dragAndDropAreaBorderDisabled:D(e.dark[`--v-gray-500`],.05),dragAndDropAreaBackground:`#2c5dbf0f`,dragAndDropAreaBackgroundHover:`#2c5dbf1a`,dragAndDropAreaBackgroundDisabled:D(e.dark[`--v-gray-500`],.05),selectionColor:`#fff`,selectionBackground:n,boxShadow:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow2:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow3:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow4:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadowError:`0px 0px 60px 0px rgba(255, 0, 0, 0.15)`,keystrokePreviewColor:r[`--v-gray-900`],keystrokePreviewBackground:`rgba(255, 255, 255, 0.03)`,dottedBackgroundDotsColor:`#ffffff16`,blockEditorSidebarGroupHeaderBackground:`#1a1a1a`,blockEditorSidebarGroupHeaderBackgroundHover:`#262626`,blockEditorSidebarGroupHeaderColor:`#fff`,upgradeToProBannerBackground:t,upgradeToProBannerBackgroundHover:A(t,.1),upgradeToProBannerColor:`#fff`,upgradeToProBannerBorder:`1px solid ${t}`}}function Q(e){return{color:e.color,background:e.background,border:`1px solid ${e.borderColor}`,"&:hover":{color:e.colorHover,border:`1px solid ${e.borderColorHover}`,background:e.backgroundHover,boxShadow:`0px 2px 4px -1px rgb(0 0 0 / 8%), 0px 4px 5px 0px rgb(0 0 0 / 7%), 0px 1px 10px 0px rgba(0,0,0,0.12)`},"&:active":{border:`1px solid ${e.borderColorHover}`,background:e.backgroundHover},"&:disabled":{color:r[`--v-gray-100`],border:`1px solid ${r[`--v-gray-500`]}`,background:r[`--v-gray-500`]}}}const _e=t=>{let i=t===`light`?ge():Z();return O({breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536,header:1140,defaultScreenSize:1024}},typography:{fontFamily:[V.style?.fontFamily??`"Geist Sans"`,`Arial`].join(`, `)},palette:{error:{main:t===`light`?e.light[`--v-red-700`]:e.dark[`--v-red-700`]},primary:{main:i.colorPrimary500},secondary:{main:i.colorPrimary500},mode:t},components:{MuiChip:{styleOverrides:{root:{padding:`6px 14px`,borderRadius:9999,fontSize:10,fontWeight:700,lineHeight:`12px`,height:`auto`,borderWidth:1,borderStyle:`solid`,"&:active":{boxShadow:`none`},".MuiChip-label":{display:`flex`,alignItems:`center`,gap:4,padding:0},svg:{width:16,marginRight:4}},colorPrimary:{backgroundColor:r[`--v-alert-info-background`],borderColor:r[`--v-alert-info-border`],color:r[`--v-alert-info-text`],"&:hover:not(&.no-hover-effect)":{backgroundColor:r[`--v-alert-info-background-hover`]}},colorSuccess:{backgroundColor:r[`--v-alert-success-background`],borderColor:r[`--v-alert-success-border`],color:r[`--v-alert-success-text`],"&:hover":{backgroundColor:r[`--v-alert-success-background-hover`]}},colorError:{backgroundColor:r[`--v-alert-error-background`],borderColor:r[`--v-alert-error-border`],color:r[`--v-alert-error-text`],"&:hover":{backgroundColor:r[`--v-alert-error-background-hover`]}}}},MuiInputLabel:{styleOverrides:{root:{marginLeft:2}}},MuiSkeleton:{defaultProps:{variant:`rounded`,animation:`wave`},styleOverrides:{root:{borderRadius:i.borderRadius,backgroundColor:t===`light`?`rgba(0, 0, 0, 0.11)`:`rgba(255, 255, 255, 0.11)`,"&::after":{background:t===`light`?`linear-gradient(90deg, transparent, rgb(0, 0, 0, 0.04), transparent)`:`linear-gradient(90deg, transparent, rgb(255, 255, 255, 0.04), transparent)`}}}},MuiMenu:{styleOverrides:{paper:{transition:`none !important`}}},MuiListItemText:{styleOverrides:{root:{fontSize:13,".MuiTypography-root":{fontSize:13}}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:`0 !important`,width:16,marginRight:8}}},MuiMenuItem:{defaultProps:{disableRipple:!0},styleOverrides:{root:{fontSize:14,paddingLeft:20,paddingRight:20,color:i[`--v-gray-700`],svg:{height:16},"&:hover":{background:i[`--v-gray-200`],color:i[`--v-foreground`]},"&.Mui-selected":{background:`${i.sidebarActiveBackground} !important`,color:`${i.sidebarActiveColor} !important`,"&:hover":{background:`${i.sidebarActiveBackground} !important`,color:`${i.sidebarActiveColor} !important`}},"&.Mui-focusVisible":{background:`none`,"&:hover":{background:i.sidebarLinkHoverBackground,color:i.sidebarLinkHoverColor}}}}},MuiSelect:{styleOverrides:{root:{fontWeight:500}}},MuiSvgIcon:{styleOverrides:{root:{"&.MuiSelect-icon":{color:i.inputBorder},"&.MuiStepIcon-root.Mui-completed":{fill:i.success}}}},MuiCssBaseline:{styleOverrides:{html:{backgroundColor:r[`--v-background-100`],color:i.bodyColor},body:{backgroundColor:r[`--v-background-100`],color:i.bodyColor,fontSize:14}}},MuiAccordion:{defaultProps:{disableGutters:!0},styleOverrides:{root:{margin:`0`,background:`none`,boxShadow:`none`,color:i.bodyColor,border:`1px solid ${i.colorStrokes}`,borderRadius:i.borderRadius,":hover":{borderColor:i[`--v-blue-700`]},":first-of-type":{borderRadius:i.borderRadius},":last-of-type":{borderRadius:i.borderRadius},svg:{transition:`0.2s ease-out transform`},".MuiAccordionSummary-root":{fontWeight:500,borderRadius:i.borderRadius,padding:`12px 24px`,color:i.bodyColorStrong,minHeight:0,":hover":{background:i.accentBackgroundColor}},".MuiAccordionSummary-content":{margin:`6px 0px`},".MuiAccordionDetails-root":{padding:`8px 24px 24px`},"&:before":{opacity:0},"&.Mui-expanded":{".MuiAccordionSummary-root":{svg:{transform:`rotate(180deg)`}}}}}},MuiRadio:{styleOverrides:{root:{color:i.inputBorder}}},MuiTable:{styleOverrides:{root:{border:`1px solid ${i.colorStrokes}`,borderRadius:i.borderRadius,borderCollapse:`separate`,overflow:`hidden`,background:i.accentBackgroundColor,".MuiTableCell-root.MuiTableCell-head":{fontWeight:600,color:i[`--v-gray-1000`],background:i[`--v-gray-100`]},".MuiTableCell-root":{borderBottom:`1px solid ${i.colorStrokes}`,fontSize:13,color:i.bodyColor,padding:`8px 16px`,height:57}}}},MuiToggleButtonGroup:{styleOverrides:{root:{padding:`4px 0px`,borderRadius:`8px`,overflow:`hidden`,border:`1px solid ${i.colorStrokes}`,background:i[`--v-background`]}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:11,marginLeft:0,marginRight:0}}},MuiToggleButton:{styleOverrides:{root:{borderRadius:`6px !important`,fontSize:13,fontWeight:500,lineHeight:`18px`,textTransform:`none`,flexGrow:1,color:i[`--v-foreground`],padding:`8px 16px`,margin:`0 4px`,border:0,svg:{fontSize:16},"&:hover":{background:i[`--v-gray-200`]},"&.Mui-selected":{background:i[`--v-gray-200`],color:i[`--v-foreground`],"&:hover":{background:i[`--v-gray-200`]}}},sizeSmall:{padding:`5px 12px`,fontSize:13}}},MuiAlert:{styleOverrides:{root:{fontSize:`14px`,padding:`12px 24px`},icon:{padding:`8px 0`,marginRight:24,color:`inherit !important`},message:{padding:`6px 0`},standardSuccess:{background:r[`--v-alert-success-background`],border:`1px solid ${r[`--v-alert-success-border`]}`,borderRadius:n[`--v-border-radius`],color:r[`--v-alert-success-text`]},standardWarning:{background:r[`--v-alert-warning-background`],border:`1px solid ${r[`--v-alert-warning-border`]}`,borderRadius:n[`--v-border-radius`],color:r[`--v-alert-warning-text`]},standardError:{background:r[`--v-alert-error-background`],border:`1px solid ${r[`--v-alert-error-border`]}`,borderRadius:n[`--v-border-radius`],color:r[`--v-alert-error-text`]},standardInfo:{background:r[`--v-alert-info-background`],border:`1px solid ${r[`--v-alert-info-border`]}`,borderRadius:n[`--v-border-radius`],color:r[`--v-alert-info-text`]}}},MuiAlertTitle:{styleOverrides:{root:{marginTop:0}}},MuiFormLabel:{styleOverrides:{root:{color:i.checkboxLabelColor,marginLeft:i.checkboxLabelMargin,fontSize:i.checkboxLabelFontSize,fontWeight:400,"& a":{color:i.linkColor,fontWeight:500,"&:hover":{color:i.linkColorHover}}}}},MuiTableRow:{styleOverrides:{root:{"&:last-child > td":{borderBottom:0},"&.MuiTableRow-hover":{cursor:`pointer`,"&:hover":{background:t===`light`?`rgba(0, 0, 0, 0.01)`:`rgba(255, 255, 255, 0.03)`}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:`1px solid ${i.colorStrokes}`},head:{padding:`11.5px 16px`,whiteSpace:`nowrap`}}},MuiCheckbox:{styleOverrides:{colorPrimary:{"&.Mui-checked input + span":{background:i.checkboxBackground,borderColor:i.checkboxBackground},"&.MuiCheckbox-indeterminate input + span":{background:i.checkboxBackground,borderColor:i.checkboxBackground}}}},MuiSwitch:{styleOverrides:{track:({ownerState:e})=>({opacity:1,borderRadius:20,background:i.switchTrack,".Mui-checked.Mui-checked:not(.Mui-disabled) + &":{background:i.switchTrackChecked,opacity:1},...e.disabled&&{".Mui-checked.Mui-checked + &":{background:i.switchTrack,opacity:.4}},...e.color===`secondary`&&{opacity:.75,borderRadius:20,background:i.switchTrack,".Mui-checked.Mui-checked + &":{background:i.switchTrack,opacity:1}}}),thumb:({ownerState:e})=>({color:i.switchThumb,...e.color===`secondary`&&{color:i.colorPrimary700},...e.disabled&&{opacity:.8}}),disabled:()=>({".Mui-checked.Mui-checked + &":{background:i.colorPrimary700,opacity:.5}})}},MuiAutocomplete:{defaultProps:{autoCapitalize:`off`,autoCorrect:`off`},styleOverrides:{root:{background:i.inputBackground,color:i.inputColor,fieldset:{borderRadius:i.borderRadius,transition:`0.1s ease-out border-color`},"& .MuiOutlinedInput-root":{padding:`10px 14px`},"& .MuiOutlinedInput-root .MuiAutocomplete-input":{padding:0,fontSize:13}},listbox:{"& .MuiAutocomplete-option":{fontSize:15}}}},MuiInputBase:{defaultProps:{autoCapitalize:`off`,autoCorrect:`off`,autoComplete:`off`},styleOverrides:{root:{background:i.inputBackground,color:i.inputColor,fieldset:{borderRadius:i.borderRadius,transition:`0.1s ease-out border-color`},"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:i.inputColorDisabled},"& .MuiOutlinedInput-input":{fontSize:13},"&.MuiOutlinedInput-root":{paddingRight:`10px`,"& fieldset":{borderColor:i.inputBorder},"&:hover fieldset":{borderColor:i.inputHoverBorder},"&.Mui-focused fieldset":{borderColor:i.inputActiveBorder,borderWidth:1,boxShadow:i.inputActiveShadow},"&.Mui-disabled":{background:i.inputBackgroundDisabled,"& fieldset":{borderColor:i.colorStrokes}}}}}},MuiOutlinedInput:{styleOverrides:{input:{fontSize:14,padding:`10px 14px`},inputSizeSmall:{padding:`8px 14px`,fontSize:12}}},MuiIconButton:{styleOverrides:{root:{color:i.iconButtonColor,borderRadius:i.borderRadius,"&:hover":{color:i.iconButtonColorHover}}}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{boxShadow:`none`,borderRadius:0,"& .MuiButtonGroup-firstButton":{border:`1px solid ${i.buttonContainedPrimaryBorder}`},"& .MuiSvgIcon-root":{height:20}}}},MuiInputAdornment:{styleOverrides:{root:{color:i.iconButtonColor,".MuiTypography-root":{fontSize:13},marginRight:`0 !important`}}},MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:{transition:`none !important`,".MuiChip-root":{background:i.colorPrimary500,color:t===`light`?i.colorWhite:i.colorBlack,"&:hover":{background:i.colorPrimary500}}}}},MuiButton:{defaultProps:{disableRipple:!0,disableElevation:!0},variants:[{props:{variant:`link`},style:{color:i.linkColor,padding:0,minWidth:`auto`,height:`fit-content`,"& .MuiTouchRipple-root":{display:`none`},"&:hover":{color:i.linkColorHover,background:`none`},"&:active":{color:i.linkColorHover,background:`none`},"&:disabled":{color:r[`--v-green-400`],background:`none`},"&.MuiButton-linkError":{color:r[`--v-red-700`],"&:hover":{color:r[`--v-red-700`]}}}}],styleOverrides:{root:{":hover, :focus":{boxShadow:`none !important`},textTransform:`unset`,padding:`10px 28px`,fontSize:14,lineHeight:`16px`,fontWeight:500,borderRadius:i.borderRadius,boxShadow:`none`,"svg:first-child":{width:16,flexShrink:0},whiteSpace:`nowrap`,display:`flex`,gap:8,"&.Mui-disabled":{background:`${r[`--v-gray-100`]} !important`,color:`${r[`--v-gray-300`]} !important`,border:`1px solid ${r[`--v-gray-300`]} !important`}},sizeSmall:{padding:`8px 16px`,fontSize:13},outlinedPrimary:Q({theme:i,color:i.buttonOutlinedColor,colorHover:i.buttonOutlinedColorHover,background:i.buttonOutlinedBackground,backgroundHover:i.buttonOutlinedBackgroundHover,borderColor:i.buttonOutlinedBorder,borderColorHover:i.buttonOutlinedBorderHover}),containedInfo:Q({theme:i,color:`#fff`,colorHover:`#fff`,background:i.colorPrimary500,backgroundHover:i.colorPrimary700,borderColor:i.colorPrimary500,borderColorHover:i.colorPrimary700}),containedPrimary:Q({theme:i,color:i.buttonContainedPrimaryColor,colorHover:i.buttonContainedPrimaryColorHover,background:i.buttonContainedPrimaryBackground,backgroundHover:i.buttonContainedPrimaryBackgroundHover,borderColor:i.buttonContainedPrimaryBorder,borderColorHover:i.buttonContainedPrimaryBorderHover}),containedWarning:{"&:hover":{background:r[`--v-orange-200`]},"&:disabled":{color:r[`--v-gray-700`],background:i.colorWhite}},containedError:{"&:hover":{background:r[`--v-red-700`]},"&:disabled":{color:r[`--v-gray-700`],background:i.colorWhite}},containedSecondary:Q({theme:i,color:i.buttonContainedSecondaryColor,colorHover:i.buttonContainedSecondaryColorHover,background:i.buttonContainedSecondaryBackground,backgroundHover:i.buttonContainedSecondaryBackgroundHover,borderColor:i.buttonContainedSecondaryBorder,borderColorHover:i.buttonContainedSecondaryBorderHover}),textPrimary:{color:i.buttonOutlinedColor,"&:hover":{color:i.buttonOutlinedColor},"&:active":{color:i.buttonOutlinedColor},"&:disabled":{color:r[`--v-gray-500`]}},textWarning:{"& .MuiLoadingButton-loadingIndicator":{color:r[`--v-alert-warning-text`]}},outlinedWarning:{"& .MuiLoadingButton-loadingIndicator":{color:r[`--v-alert-warning-text`]}},textError:{"& .MuiLoadingButton-loadingIndicator":{color:r[`--v-alert-error-text`]}},outlinedError:{"& .MuiLoadingButton-loadingIndicator":{color:r[`--v-alert-error-text`]}},startIcon:{marginRight:12,height:0,display:`flex`,alignItems:`center`},endIcon:{marginLeft:12,height:0,display:`flex`,alignItems:`center`},sizeLarge:{padding:`16px 32px !important`,fontSize:16}}},MuiSnackbarContent:{styleOverrides:{root:{minWidth:`auto !important`,padding:0,background:`none`,borderRadius:i.borderRadius,fontWeight:500,boxShadow:r[`--v-box-shadow-1`]},message:{padding:0}}},MuiPopover:{defaultProps:{disableScrollLock:!0},styleOverrides:{paper:{background:i.accentBackgroundColor,color:i.bodyColor,border:`1px solid ${r[`--v-strokes`]}`,boxShadow:r[`--v-box-shadow-1`]}}},MuiTooltip:{styleOverrides:{tooltip:{background:e.dark[`--v-gray-100`],border:`1px solid ${e.dark[`--v-strokes`]}`,color:e.dark[`--v-foreground`],boxShadow:r[`--v-box-shadow-1`],fontSize:13,lineHeight:`20px`,padding:`8px 16px`}}},MuiDialog:{defaultProps:{disableScrollLock:!0},styleOverrides:{root:{zIndex:100},paper:{background:i.accentBackgroundColor,color:i.bodyColor,border:`1px solid ${r[`--v-strokes`]}`,boxShadow:r[`--v-box-shadow-1`]}}},MuiStep:{styleOverrides:{root:{padding:`0px 20px`,"&.MuiStep-vertical":{padding:0},"&:first-child":{paddingLeft:0},"&:last-child":{paddingRight:0}}}},MuiStepLabel:{styleOverrides:{iconContainer:{paddingRight:12},label:{color:i.bodyColor,"&.Mui-active":{color:i.colorPrimary700},"&.Mui-completed":{color:i.success}}}},MuiStepIcon:{styleOverrides:{root:{fill:t===`dark`?r[`--v-gray-500`]:i.bodyColor,"&.Mui-active":{fill:i.colorPrimary500}}}},MuiTabs:{styleOverrides:{indicator:{display:`none`}}},MuiTab:{defaultProps:{disableRipple:!0},styleOverrides:{root:{flexGrow:1,textTransform:`none`,color:i.bodyColor,maxWidth:`none`,borderRight:`1px solid ${r[`--v-strokes`]}`,"&.Mui-selected":{color:i.bodyColor,borderBottom:`1px solid transparent`},"&:not(.Mui-selected)":{background:i.accentBackgroundColor,borderBottom:`1px solid ${r[`--v-strokes`]}`},"&:last-child":{borderRight:0}}}},MuiFormControlLabel:{defaultProps:{labelPlacement:`start`},styleOverrides:{label:{marginRight:8,fontSize:14}}},MuiTablePagination:{styleOverrides:{root:{color:i.bodyColor,"& .MuiIconButton-root":{color:`${i.bodyColor} !important`,"&.Mui-disabled":{opacity:.3}},"& .MuiTablePagination-select":{fontSize:`12px !important`},"& .MuiTablePagination-actions":{".MuiSvgIcon-root":{width:20}}},select:{color:`${i.bodyColor} !important`,fontWeight:`400 !important`},selectIcon:{color:`${i.bodyColor} !important`},displayedRows:{fontSize:12},selectLabel:{fontSize:12}}}}})};function ve(e){let t=c(8);if(!o())return null;let n;t[0]===e.theme?n=t[1]:(n=_e(e.theme),t[0]=e.theme,t[1]=n);let r;t[2]===e.isRootRegistry?r=t[3]:(r=e.isRootRegistry?z(oe,{}):null,t[2]=e.isRootRegistry,t[3]=r);let i;return t[4]!==e.children||t[5]!==n||t[6]!==r?(i=B(T,{theme:n,children:[r,e.children]}),t[4]=e.children,t[5]=n,t[6]=r,t[7]=i):i=t[7],i}function ye(e){let t=ge();return e===`dark`&&(t=Z()),t}function be(e){return`${e.startsWith(`--`)?``:`--`}${e.split(/(?=[A-Z])/).join(`-`).toLowerCase()}`}function xe(){return Object.entries(Ae).map(([e,t])=>{let n=ye(e);return`.${t} {\n${Object.entries(n).map(([e,t])=>`${be(e)}: ${t};`).join(`
2
+ import{a as e,i as t,n,o as r,r as i,t as a}from"../tokens-Cr59L2ch.js";import{i as o,t as s}from"../utils-oZQSEYYF.js";import{c}from"react/compiler-runtime";import{ArrowPathIcon as l,CheckIcon as u,ExclamationCircleIcon as d,ExclamationTriangleIcon as f}from"@heroicons/react/20/solid";import*as p from"@heroicons/react/24/outline";import{ArrowDownTrayIcon as m,ArrowTurnDownLeftIcon as h,ArrowTurnRightUpIcon as g,ChevronUpIcon as _,ClipboardDocumentIcon as v,DocumentIcon as y,InformationCircleIcon as b}from"@heroicons/react/24/outline";import{Alert as x,AlertTitle as S,Button as C,IconButton as w,ThemeProvider as T,Tooltip as E,alpha as D,createTheme as O,darken as k,lighten as A,styled as j,useMediaQuery as M,useTheme as N}from"@mui/material";import{Fragment as P,createContext as F,createElement as I,forwardRef as L,useContext as R,useEffect as ee,useLayoutEffect as te,useState as ne,useSyncExternalStore as re}from"react";import{Fragment as ie,jsx as z,jsxs as B}from"react/jsx-runtime";import{GeistMono as ae}from"geist/font/mono";import{GeistSans as V}from"geist/font/sans";import oe from"@mui/material/CssBaseline";import*as H from"@heroicons/react/24/solid";import{FormattedMessage as U,IntlProvider as se,useIntl as ce}from"react-intl";import{toJsxRuntime as W}from"hast-util-to-jsx-runtime";import{codeToHast as G}from"shiki/bundle/web";import{Toaster as K,toast as q}from"sonner";const J={width:18,height:18},le={success:z(u,{style:J}),info:z(b,{style:J}),warning:z(f,{style:J}),error:z(d,{style:J})};function ue(e){let t=c(8),n=e.hideIcon?!1:e.icon?e.icon:le[e.type],r;t[0]===e.title?r=t[1]:(r=e.title&&z(S,{children:e.title}),t[0]=e.title,t[1]=r);let i;return t[2]!==e.children||t[3]!==e.style||t[4]!==e.type||t[5]!==n||t[6]!==r?(i=B(x,{severity:e.type,icon:n,style:e.style,children:[r,e.children]}),t[2]=e.children,t[3]=e.style,t[4]=e.type,t[5]=n,t[6]=r,t[7]=i):i=t[7],i}var Y={container:`z7PbZq_container`,inner:`z7PbZq_inner`,wobble:`z7PbZq_wobble`};const de=e=>{let t=c(9),{size:n,color:r,speed:i,stroke:a,bgOpacity:o}=e,s=n===void 0?80:n,l=r===void 0?`black`:r,u=i===void 0?1.75:i,d=a===void 0?5:a,f=o===void 0?.1:o,p=s+`px`,m=u+`s`,h=d+`px`,g=f+``,_;t[0]!==l||t[1]!==p||t[2]!==m||t[3]!==h||t[4]!==g?(_={"--uib-size":p,"--uib-color":l,"--uib-speed":m,"--uib-stroke":h,"--uib-bg-opacity":g},t[0]=l,t[1]=p,t[2]=m,t[3]=h,t[4]=g,t[5]=_):_=t[5];let v=_,y;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=z(`div`,{className:Y.inner}),t[6]=y):y=t[6];let b;return t[7]===v?b=t[8]:(b=z(`div`,{className:Y.container,style:v,children:y}),t[7]=v,t[8]=b),b};var X={car:`_3zRF4q_car`,container:`_3zRF4q_container`,inner:`_3zRF4q_inner`,track:`_3zRF4q_track`,travel:`_3zRF4q_travel`};function fe(e,t){return t.replace(/([-A-y])/g,`,$1`).split(`,`).filter(e=>e!==``).map(t=>{let n=t.match(/(\d+\.?\d*)/g)?.[0]??``,r=parseFloat(n)*e;return t.replace(n,r.toString())}).join(` `)}const pe=e=>{let t=c(21),{size:n,color:r,speed:i,stroke:a,strokeLength:o,bgOpacity:s}=e,l=n===void 0?37:n,u=r===void 0?`black`:r,d=i===void 0?.9:i,f=a===void 0?5:a,p=o===void 0?.15:o,m=s===void 0?.1:s,h=parseInt(l+``)/50,g;t[0]===h?g=t[1]:(g=fe(h,`M0.5,25C0.5,7.8,7.8,0.5,25,0.5S49.5,7.8,49.5,25S42.2,49.5,25,49.5S0.5,42.2,0.5,25`),t[0]=h,t[1]=g);let _=g,v=l+`px`,y=d+`s`,b=String(parseFloat(p+``)*100),x=String(100-parseFloat(p+``)*100),S=m+``,C;t[2]!==u||t[3]!==y||t[4]!==b||t[5]!==x||t[6]!==S||t[7]!==v?(C={"--uib-size":v,"--uib-color":u,"--uib-speed":y,"--uib-dash":b,"--uib-gap":x,"--uib-bg-opacity":S},t[2]=u,t[3]=y,t[4]=b,t[5]=x,t[6]=S,t[7]=v,t[8]=C):C=t[8];let w=`0 0 ${l} ${l}`,T,E;t[9]!==_||t[10]!==f?(T=z(`path`,{className:X.track,strokeWidth:f,fill:`none`,pathLength:`100`,d:_}),E=z(`path`,{className:X.car,strokeWidth:f,fill:`none`,pathLength:`100`,d:_}),t[9]=_,t[10]=f,t[11]=T,t[12]=E):(T=t[11],E=t[12]);let D;t[13]!==l||t[14]!==w||t[15]!==T||t[16]!==E?(D=B(`svg`,{className:X.inner,x:`0px`,y:`0px`,viewBox:w,height:l,width:l,preserveAspectRatio:`xMidYMid meet`,children:[T,E]}),t[13]=l,t[14]=w,t[15]=T,t[16]=E,t[17]=D):D=t[17];let O;return t[18]!==C||t[19]!==D?(O=z(`div`,{className:X.container,style:C,children:D}),t[18]=C,t[19]=D,t[20]=O):O=t[20],O};function me(e){let t=c(7),i;t[0]===e.style?i=t[1]:(i={display:`flex`,justifyContent:`center`,alignItems:`center`,borderRadius:n[`--v-border-radius`],...e.style},t[0]=e.style,t[1]=i);let a;t[2]===e.type?a=t[3]:(a=e.type?.name===`square`?z(pe,{color:r[`--v-gray-1000`],size:e.type.size??40,speed:`0.9`}):z(de,{color:r[`--v-gray-1000`],size:e.type?.width??104,speed:`1.75`}),t[2]=e.type,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=z(`div`,{style:i,children:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}const he=L(function(e,t){let n=c(15),i,o,s,l,u;n[0]===e?(i=n[1],o=n[2],s=n[3],l=n[4],u=n[5]):({selected:l,padding:o,style:u,children:i,...s}=e,n[0]=e,n[1]=i,n[2]=o,n[3]=s,n[4]=l,n[5]=u);let d=`1px solid ${l?r[`--v-blue-700`]:r[`--v-strokes`]}`,f=o??24,p;n[6]!==u||n[7]!==d||n[8]!==f?(p={borderRadius:a[`--v-border-radius`],border:d,display:`flex`,alignItems:`flex-start`,flexDirection:`column`,justifyContent:`space-between`,background:r[`--v-background-200`],gap:24,overflow:`hidden`,padding:f,...u},n[6]=u,n[7]=d,n[8]=f,n[9]=p):p=n[9];let m;return n[10]!==i||n[11]!==t||n[12]!==s||n[13]!==p?(m=z(`div`,{...s,ref:t,style:p,children:i}),n[10]=i,n[11]=t,n[12]=s,n[13]=p,n[14]=m):m=n[14],m});function ge(){let t=`#2050ff`;t+``,t+``,t+``;let n=A(t,.2),o=`#e8e8e8`;return{...e.light,...i,...a,colorPrimary500:t,colorPrimary500Alpha10:`#2050ff1a`,colorPrimary500Alpha15:`#2050ff26`,colorPrimary500Alpha20:`#2050ff33`,colorPrimary700:n,colorMarker:`rgb(244 125 27 / 39%) 4%, rgb(215 106 40 / 15%)`,borderRadius:`6px`,colorBlack:`#000000`,colorStrokes:o,colorStrokesLight:A(o,.5),linkColor:n,linkColorHover:A(n,.25),colorWhite:`#FFFFFF`,bodyColor:`#444`,bodyColorAlpha50:D(`#444`,.5),bodyColorStrong:`#000`,inputBackground:`#fff`,inputBackgroundDisabled:`rgb(250, 250, 250)`,inputColor:`#000`,inputColorDisabled:r[`--v-gray-100`],inputBorder:`#e8e8e8`,inputHoverBorder:k(`#e8e8e8`,.1),inputActiveBorder:t,inputActiveShadow:`0 0 0 4px rgba(50, 132, 255, 0.1)`,buttonContainedPrimaryColor:`#fff`,buttonContainedPrimaryColorHover:`#fff`,buttonContainedPrimaryBackground:`#0a0a0a`,buttonContainedPrimaryBackgroundHover:A(`#0a0a0a`,.1),buttonContainedPrimaryBorder:A(`#0a0a0a`,.1),buttonContainedPrimaryBorderHover:A(`#0a0a0a`,.2),buttonContainedSecondaryColor:`#fff`,buttonContainedSecondaryColorHover:`#fff`,buttonContainedSecondaryBackground:`#0a0a0a`,buttonContainedSecondaryBackgroundHover:A(`#0a0a0a`,.1),buttonContainedSecondaryBorder:`#0a0a0a`,buttonContainedSecondaryBorderHover:A(`#0a0a0a`,.1),buttonOutlinedColor:`rgba(0, 0, 0, 0.9)`,buttonOutlinedColorHover:`rgba(0, 0, 0, 1)`,buttonOutlinedBackground:`#fafafa`,buttonOutlinedBackgroundHover:`#fff`,buttonOutlinedBorder:`#e8e8e8`,buttonOutlinedBorderHover:k(`#e8e8e8`,.1),checkboxBackground:t,checkboxLabelColor:`rgba(0, 0, 0, 0.9)`,checkboxLabelFontSize:13,checkboxLabelFontWeight:400,checkboxLabelMargin:16,success:`#11c12fff`,switchThumb:`#fff`,switchTrack:r[`--v-gray-300`],switchTrackChecked:t,iconButtonColor:A(`#05102b`,.4),iconButtonColorHover:`#05102b`,accentBackgroundColor:`#fff`,accentBackgroundColorStrong:k(`#fff`,.05),sidebarBackground:`#fff`,sidebarActiveColor:`#000`,sidebarActiveBackground:D(`#000`,.05),sidebarActiveBackgroundHover:D(n,.075),sidebarColor:e.light[`--v-gray-700`],sidebarLinkHoverBackground:`rgba(0, 0, 0, 0.05)`,sidebarLinkHoverColor:`rgba(0, 0, 0, 0.9)`,tableSortIconBackground:e.light[`--v-blue-200`],tableSortIconColor:e.light[`--v-blue-700`],tableBorderColor:`rgba(0, 0, 0, 0.1)`,dragAndDropAreaColor:t,dragAndDropAreaColorDisabled:r[`--v-gray-300`],dragAndDropAreaBorder:`#2c5dbf0f`,dragAndDropAreaBorderDisabled:`#2c5dbf0f`,dragAndDropAreaBackground:`#2c5dbf0f`,dragAndDropAreaBackgroundHover:`#2c5dbf1a`,dragAndDropAreaBackgroundDisabled:D(e.light[`--v-gray-900`],.5),selectionColor:`#fff`,selectionBackground:t,boxShadow:`0px 5px 5px -3px rgb(0 0 0 / 0%), 0px 8px 10px 1px rgb(0 0 0 / 2%), 0px 3px 14px 2px rgba(0,0,0,0.12)`,boxShadow2:`0 14px 20px -4px rgba(50,50,93,0.05), 0 8px 16px -8px rgba(0,0,0,0.05)`,boxShadow3:`0 14px 20px -4px rgba(229, 239, 250, 1)`,boxShadow4:`0 1px 2px 0 rgba(0,0,0,.05)`,boxShadowError:`0 14px 20px -4px rgba(255, 18, 18, 0.05), 0 8px 16px -8px rgba(255, 0, 0, 0.05)`,keystrokePreviewColor:r[`--v-gray-100`],keystrokePreviewBackground:`rgba(0, 0, 0, 0.03)`,dottedBackgroundDotsColor:`#00000016`,blockEditorSidebarGroupHeaderBackground:`#fafafa`,blockEditorSidebarGroupHeaderBackgroundHover:`#f2f2f2`,blockEditorSidebarGroupHeaderColor:`#000`,upgradeToProBannerBackground:`#0a0a0a`,upgradeToProBannerBackgroundHover:A(`#0a0a0a`,.1),upgradeToProBannerColor:`#fff`,upgradeToProBannerBorder:`1px solid #0a0a0a`}}function Z(){let t=`#006eff`;t+``,t+``,t+``;let n=k(t,.4),o=A(t,.2),s=`#2a2a2a`;return{...e.dark,...i,...a,colorPrimary500:t,colorPrimary500Alpha10:`#006eff1a`,colorPrimary500Alpha15:`#006eff26`,colorPrimary500Alpha20:`#006eff33`,colorPrimary700:o,colorMarker:`${D(t,.4)} 4%, ${D(t,.15)}`,borderRadius:`6px`,colorBlack:`#fff`,colorStrokes:s,colorStrokesLight:k(s,.5),linkColor:o,linkColorHover:A(o,.25),colorWhite:`#0e0e0e`,bodyColor:`#a1a1a1`,bodyColorAlpha50:D(`#fff`,.5),bodyColorStrong:`#fff`,inputBackground:`#0a0a0a`,inputBackgroundDisabled:`#ffffff14`,inputColor:`#fff`,inputColorDisabled:r[`--v-gray-900`],inputBorder:`#2a2a2a`,inputHoverBorder:A(`#2a2a2a`,.1),inputActiveBorder:t,inputActiveShadow:`0 0 0 4px ${D(t,.2)}`,buttonContainedPrimaryColor:`#000`,buttonContainedPrimaryColorHover:`#000`,buttonContainedPrimaryBackground:`#fff`,buttonContainedPrimaryBackgroundHover:k(`#fff`,.1),buttonContainedPrimaryBorder:`#fff`,buttonContainedPrimaryBorderHover:k(`#fff`,.1),buttonContainedSecondaryColor:`#e3e3e3`,buttonContainedSecondaryColorHover:`#fff`,buttonContainedSecondaryBackground:`#0a0a0a`,buttonContainedSecondaryBackgroundHover:A(`#0a0a0a`,.1),buttonContainedSecondaryBorder:s,buttonContainedSecondaryBorderHover:A(s,.1),buttonOutlinedColor:`#e3e3e3`,buttonOutlinedColorHover:`#fff`,buttonOutlinedBackground:`#0a0a0a`,buttonOutlinedBackgroundHover:A(`#0a0a0a`,.1),buttonOutlinedBorder:s,buttonOutlinedBorderHover:A(s,.1),checkboxBackground:t,checkboxLabelColor:`#fff`,checkboxLabelFontSize:13,checkboxLabelFontWeight:400,checkboxLabelMargin:16,success:`#1ce853`,switchThumb:`#fff`,switchTrack:`#30363d`,switchTrackChecked:t,iconButtonColor:k(`#fff`,.2),iconButtonColorHover:`#fff`,accentBackgroundColor:`#0a0a0a`,accentBackgroundColorStrong:`#0e0e0e`,sidebarBackground:e.dark[`--v-background-200`],sidebarActiveColor:`#fff`,sidebarActiveBackground:D(`#fff`,.05),sidebarActiveBackgroundHover:D(o,.075),sidebarColor:e.dark[`--v-gray-700`],sidebarLinkHoverBackground:`rgba(255, 255, 255, 0.05)`,sidebarLinkHoverColor:`#fff`,tableSortIconBackground:e.dark[`--v-blue-200`],tableSortIconColor:e.dark[`--v-blue-700`],tableBorderColor:`#292d31`,dragAndDropAreaColor:t,dragAndDropAreaColorDisabled:D(e.dark[`--v-gray-500`],.5),dragAndDropAreaBorder:`#2c5dbf0f`,dragAndDropAreaBorderDisabled:D(e.dark[`--v-gray-500`],.05),dragAndDropAreaBackground:`#2c5dbf0f`,dragAndDropAreaBackgroundHover:`#2c5dbf1a`,dragAndDropAreaBackgroundDisabled:D(e.dark[`--v-gray-500`],.05),selectionColor:`#fff`,selectionBackground:n,boxShadow:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow2:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow3:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadow4:`0px 0px 60px 0px rgb(0 0 0 / 35%)`,boxShadowError:`0px 0px 60px 0px rgba(255, 0, 0, 0.15)`,keystrokePreviewColor:r[`--v-gray-900`],keystrokePreviewBackground:`rgba(255, 255, 255, 0.03)`,dottedBackgroundDotsColor:`#ffffff16`,blockEditorSidebarGroupHeaderBackground:`#1a1a1a`,blockEditorSidebarGroupHeaderBackgroundHover:`#262626`,blockEditorSidebarGroupHeaderColor:`#fff`,upgradeToProBannerBackground:t,upgradeToProBannerBackgroundHover:A(t,.1),upgradeToProBannerColor:`#fff`,upgradeToProBannerBorder:`1px solid ${t}`}}function Q(e){return{color:e.color,background:e.background,border:`1px solid ${e.borderColor}`,"&:hover":{color:e.colorHover,border:`1px solid ${e.borderColorHover}`,background:e.backgroundHover,boxShadow:`0px 2px 4px -1px rgb(0 0 0 / 8%), 0px 4px 5px 0px rgb(0 0 0 / 7%), 0px 1px 10px 0px rgba(0,0,0,0.12)`},"&:active":{border:`1px solid ${e.borderColorHover}`,background:e.backgroundHover},"&:disabled":{color:r[`--v-gray-100`],border:`1px solid ${r[`--v-gray-500`]}`,background:r[`--v-gray-500`]}}}const _e=t=>{let i=t===`light`?ge():Z();return O({breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536,header:1140,defaultScreenSize:1024}},typography:{fontFamily:[V.style?.fontFamily??`"Geist Sans"`,`Arial`].join(`, `)},palette:{error:{main:t===`light`?e.light[`--v-red-700`]:e.dark[`--v-red-700`]},primary:{main:i.colorPrimary500},secondary:{main:i.colorPrimary500},mode:t},components:{MuiChip:{styleOverrides:{root:{padding:`6px 14px`,borderRadius:9999,fontSize:10,fontWeight:700,lineHeight:`12px`,height:`auto`,borderWidth:1,borderStyle:`solid`,"&:active":{boxShadow:`none`},".MuiChip-label":{display:`flex`,alignItems:`center`,gap:4,padding:0},svg:{width:16,marginRight:4}},colorPrimary:{backgroundColor:r[`--v-alert-info-background`],borderColor:r[`--v-alert-info-border`],color:r[`--v-alert-info-text`],"&:hover:not(&.no-hover-effect)":{backgroundColor:r[`--v-alert-info-background-hover`]}},colorSuccess:{backgroundColor:r[`--v-alert-success-background`],borderColor:r[`--v-alert-success-border`],color:r[`--v-alert-success-text`],"&:hover":{backgroundColor:r[`--v-alert-success-background-hover`]}},colorError:{backgroundColor:r[`--v-alert-error-background`],borderColor:r[`--v-alert-error-border`],color:r[`--v-alert-error-text`],"&:hover":{backgroundColor:r[`--v-alert-error-background-hover`]}}}},MuiInputLabel:{styleOverrides:{root:{marginLeft:2}}},MuiSkeleton:{defaultProps:{variant:`rounded`,animation:`wave`},styleOverrides:{root:{borderRadius:i.borderRadius,backgroundColor:t===`light`?`rgba(0, 0, 0, 0.11)`:`rgba(255, 255, 255, 0.11)`,"&::after":{background:t===`light`?`linear-gradient(90deg, transparent, rgb(0, 0, 0, 0.04), transparent)`:`linear-gradient(90deg, transparent, rgb(255, 255, 255, 0.04), transparent)`}}}},MuiMenu:{styleOverrides:{paper:{transition:`none !important`}}},MuiListItemText:{styleOverrides:{root:{fontSize:13,".MuiTypography-root":{fontSize:13}}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:`0 !important`,width:16,marginRight:8}}},MuiMenuItem:{defaultProps:{disableRipple:!0},styleOverrides:{root:{fontSize:14,paddingLeft:20,paddingRight:20,color:i[`--v-gray-700`],svg:{height:16},"&:hover":{background:i[`--v-gray-200`],color:i[`--v-foreground`]},"&.Mui-selected":{background:`${i.sidebarActiveBackground} !important`,color:`${i.sidebarActiveColor} !important`,"&:hover":{background:`${i.sidebarActiveBackground} !important`,color:`${i.sidebarActiveColor} !important`}},"&.Mui-focusVisible":{background:`none`,"&:hover":{background:i.sidebarLinkHoverBackground,color:i.sidebarLinkHoverColor}}}}},MuiSelect:{styleOverrides:{root:{fontWeight:500}}},MuiSvgIcon:{styleOverrides:{root:{"&.MuiSelect-icon":{color:i.inputBorder},"&.MuiStepIcon-root.Mui-completed":{fill:i.success}}}},MuiCssBaseline:{styleOverrides:{html:{backgroundColor:r[`--v-background-100`],color:i.bodyColor},body:{backgroundColor:r[`--v-background-100`],color:i.bodyColor,fontSize:14}}},MuiAccordion:{defaultProps:{disableGutters:!0},styleOverrides:{root:{margin:`0`,background:`none`,boxShadow:`none`,color:i.bodyColor,border:`1px solid ${i.colorStrokes}`,borderRadius:i.borderRadius,":hover":{borderColor:i[`--v-blue-700`]},":first-of-type":{borderRadius:i.borderRadius},":last-of-type":{borderRadius:i.borderRadius},svg:{transition:`0.2s ease-out transform`},".MuiAccordionSummary-root":{fontWeight:500,borderRadius:i.borderRadius,padding:`12px 24px`,color:i.bodyColorStrong,minHeight:0,":hover":{background:i.accentBackgroundColor}},".MuiAccordionSummary-content":{margin:`6px 0px`},".MuiAccordionDetails-root":{padding:`8px 24px 24px`},"&:before":{opacity:0},"&.Mui-expanded":{".MuiAccordionSummary-root":{svg:{transform:`rotate(180deg)`}}}}}},MuiRadio:{styleOverrides:{root:{color:i.inputBorder}}},MuiTable:{styleOverrides:{root:{border:`1px solid ${i.colorStrokes}`,borderRadius:i.borderRadius,borderCollapse:`separate`,overflow:`hidden`,background:i.accentBackgroundColor,".MuiTableCell-root.MuiTableCell-head":{fontWeight:600,color:i[`--v-gray-1000`],background:i[`--v-gray-100`]},".MuiTableCell-root":{borderBottom:`1px solid ${i.colorStrokes}`,fontSize:13,color:i.bodyColor,padding:`8px 16px`,height:57}}}},MuiToggleButtonGroup:{styleOverrides:{root:{padding:`4px 0px`,borderRadius:`8px`,overflow:`hidden`,border:`1px solid ${i.colorStrokes}`,background:i[`--v-background`]}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:11,marginLeft:0,marginRight:0}}},MuiToggleButton:{styleOverrides:{root:{borderRadius:`6px !important`,fontSize:13,fontWeight:500,lineHeight:`18px`,textTransform:`none`,flexGrow:1,color:i[`--v-foreground`],padding:`8px 16px`,margin:`0 4px`,border:0,svg:{fontSize:16},"&:hover":{background:i[`--v-gray-200`]},"&.Mui-selected":{background:i[`--v-gray-200`],color:i[`--v-foreground`],"&:hover":{background:i[`--v-gray-200`]}}},sizeSmall:{padding:`5px 12px`,fontSize:13}}},MuiAlert:{styleOverrides:{root:{fontSize:`14px`,padding:`12px 24px`},icon:{padding:`8px 0`,marginRight:24,color:`inherit !important`},message:{padding:`6px 0`},standardSuccess:{background:r[`--v-alert-success-background`],border:`1px solid ${r[`--v-alert-success-border`]}`,borderRadius:n[`--v-border-radius`],color:r[`--v-alert-success-text`]},standardWarning:{background:r[`--v-alert-warning-background`],border:`1px solid ${r[`--v-alert-warning-border`]}`,borderRadius:n[`--v-border-radius`],color:r[`--v-alert-warning-text`]},standardError:{background:r[`--v-alert-error-background`],border:`1px solid ${r[`--v-alert-error-border`]}`,borderRadius:n[`--v-border-radius`],color:r[`--v-alert-error-text`]},standardInfo:{background:r[`--v-alert-info-background`],border:`1px solid ${r[`--v-alert-info-border`]}`,borderRadius:n[`--v-border-radius`],color:r[`--v-alert-info-text`]}}},MuiAlertTitle:{styleOverrides:{root:{marginTop:0}}},MuiFormLabel:{styleOverrides:{root:{color:i.checkboxLabelColor,marginLeft:i.checkboxLabelMargin,fontSize:i.checkboxLabelFontSize,fontWeight:400,"& a":{color:i.linkColor,fontWeight:500,"&:hover":{color:i.linkColorHover}}}}},MuiTableRow:{styleOverrides:{root:{"&:last-child > td":{borderBottom:0},"&.MuiTableRow-hover":{cursor:`pointer`,"&:hover":{background:t===`light`?`rgba(0, 0, 0, 0.01)`:`rgba(255, 255, 255, 0.03)`}}}}},MuiTableCell:{styleOverrides:{root:{borderBottom:`1px solid ${i.colorStrokes}`},head:{padding:`11.5px 16px`,whiteSpace:`nowrap`}}},MuiCheckbox:{styleOverrides:{colorPrimary:{"&.Mui-checked input + span":{background:i.checkboxBackground,borderColor:i.checkboxBackground},"&.MuiCheckbox-indeterminate input + span":{background:i.checkboxBackground,borderColor:i.checkboxBackground}}}},MuiSwitch:{styleOverrides:{track:({ownerState:e})=>({opacity:1,borderRadius:20,background:i.switchTrack,".Mui-checked.Mui-checked:not(.Mui-disabled) + &":{background:i.switchTrackChecked,opacity:1},...e.disabled&&{".Mui-checked.Mui-checked + &":{background:i.switchTrack,opacity:.4}},...e.color===`secondary`&&{opacity:.75,borderRadius:20,background:i.switchTrack,".Mui-checked.Mui-checked + &":{background:i.switchTrack,opacity:1}}}),thumb:({ownerState:e})=>({color:i.switchThumb,...e.color===`secondary`&&{color:i.colorPrimary700},...e.disabled&&{opacity:.8}}),disabled:()=>({".Mui-checked.Mui-checked + &":{background:i.colorPrimary700,opacity:.5}})}},MuiAutocomplete:{defaultProps:{autoCapitalize:`off`,autoCorrect:`off`},styleOverrides:{root:{background:i.inputBackground,color:i.inputColor,fieldset:{borderRadius:i.borderRadius,transition:`0.1s ease-out border-color`},"& .MuiOutlinedInput-root":{padding:`10px 14px`},"& .MuiOutlinedInput-root .MuiAutocomplete-input":{padding:0,fontSize:13}},listbox:{"& .MuiAutocomplete-option":{fontSize:15}}}},MuiInputBase:{defaultProps:{autoCapitalize:`off`,autoCorrect:`off`,autoComplete:`off`},styleOverrides:{root:{background:i.inputBackground,color:i.inputColor,fieldset:{borderRadius:i.borderRadius,transition:`0.1s ease-out border-color`},"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:i.inputColorDisabled},"& .MuiOutlinedInput-input":{fontSize:13},"&.MuiOutlinedInput-root":{paddingRight:`10px`,"& fieldset":{borderColor:i.inputBorder},"&:hover fieldset":{borderColor:i.inputHoverBorder},"&.Mui-focused fieldset":{borderColor:i.inputActiveBorder,borderWidth:1,boxShadow:i.inputActiveShadow},"&.Mui-disabled":{background:i.inputBackgroundDisabled,"& fieldset":{borderColor:i.colorStrokes}}}}}},MuiOutlinedInput:{styleOverrides:{input:{fontSize:14,padding:`10px 14px`},inputSizeSmall:{padding:`8px 14px`,fontSize:12}}},MuiIconButton:{styleOverrides:{root:{color:i.iconButtonColor,borderRadius:i.borderRadius,"&:hover":{color:i.iconButtonColorHover}}}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{boxShadow:`none`,borderRadius:0,"& .MuiButtonGroup-firstButton":{border:`1px solid ${i.buttonContainedPrimaryBorder}`},"& .MuiSvgIcon-root":{height:20}}}},MuiInputAdornment:{styleOverrides:{root:{color:i.iconButtonColor,".MuiTypography-root":{fontSize:13},marginRight:`0 !important`}}},MuiButtonBase:{defaultProps:{disableRipple:!0},styleOverrides:{root:{transition:`none !important`,".MuiChip-root":{background:i.colorPrimary500,color:t===`light`?i.colorWhite:i.colorBlack,"&:hover":{background:i.colorPrimary500}}}}},MuiButton:{defaultProps:{disableRipple:!0,disableElevation:!0},variants:[{props:{variant:`link`},style:{color:i.linkColor,padding:0,minWidth:`auto`,height:`fit-content`,"& .MuiTouchRipple-root":{display:`none`},"&:hover":{color:i.linkColorHover,background:`none`},"&:active":{color:i.linkColorHover,background:`none`},"&:disabled":{color:r[`--v-green-400`],background:`none`},"&.MuiButton-linkError":{color:r[`--v-red-700`],"&:hover":{color:r[`--v-red-700`]}}}}],styleOverrides:{root:{":hover, :focus":{boxShadow:`none !important`},textTransform:`unset`,padding:`10px 28px`,fontSize:14,lineHeight:`16px`,fontWeight:500,borderRadius:i.borderRadius,boxShadow:`none`,"svg:first-child":{width:16,flexShrink:0},whiteSpace:`nowrap`,display:`flex`,gap:8,"&.Mui-disabled":{background:`${r[`--v-gray-100`]} !important`,color:`${r[`--v-gray-300`]} !important`,border:`1px solid ${r[`--v-gray-300`]} !important`}},sizeSmall:{padding:`8px 16px`,fontSize:13},outlinedPrimary:Q({theme:i,color:i.buttonOutlinedColor,colorHover:i.buttonOutlinedColorHover,background:i.buttonOutlinedBackground,backgroundHover:i.buttonOutlinedBackgroundHover,borderColor:i.buttonOutlinedBorder,borderColorHover:i.buttonOutlinedBorderHover}),containedInfo:Q({theme:i,color:`#fff`,colorHover:`#fff`,background:i.colorPrimary500,backgroundHover:i.colorPrimary700,borderColor:i.colorPrimary500,borderColorHover:i.colorPrimary700}),containedPrimary:Q({theme:i,color:i.buttonContainedPrimaryColor,colorHover:i.buttonContainedPrimaryColorHover,background:i.buttonContainedPrimaryBackground,backgroundHover:i.buttonContainedPrimaryBackgroundHover,borderColor:i.buttonContainedPrimaryBorder,borderColorHover:i.buttonContainedPrimaryBorderHover}),containedWarning:{"&:hover":{background:r[`--v-orange-200`]},"&:disabled":{color:r[`--v-gray-700`],background:i.colorWhite}},containedError:{"&:hover":{background:r[`--v-red-700`]},"&:disabled":{color:r[`--v-gray-700`],background:i.colorWhite}},containedSecondary:Q({theme:i,color:i.buttonContainedSecondaryColor,colorHover:i.buttonContainedSecondaryColorHover,background:i.buttonContainedSecondaryBackground,backgroundHover:i.buttonContainedSecondaryBackgroundHover,borderColor:i.buttonContainedSecondaryBorder,borderColorHover:i.buttonContainedSecondaryBorderHover}),textPrimary:{color:i.buttonOutlinedColor,"&:hover":{color:i.buttonOutlinedColor},"&:active":{color:i.buttonOutlinedColor},"&:disabled":{color:r[`--v-gray-500`]}},textWarning:{"& .MuiLoadingButton-loadingIndicator":{color:r[`--v-alert-warning-text`]}},outlinedWarning:{"& .MuiLoadingButton-loadingIndicator":{color:r[`--v-alert-warning-text`]}},textError:{"& .MuiLoadingButton-loadingIndicator":{color:r[`--v-alert-error-text`]}},outlinedError:{"& .MuiLoadingButton-loadingIndicator":{color:r[`--v-alert-error-text`]}},startIcon:{marginRight:12,height:0,display:`flex`,alignItems:`center`},endIcon:{marginLeft:12,height:0,display:`flex`,alignItems:`center`},sizeLarge:{padding:`16px 32px !important`,fontSize:16}}},MuiSnackbarContent:{styleOverrides:{root:{minWidth:`auto !important`,padding:0,background:`none`,borderRadius:i.borderRadius,fontWeight:500,boxShadow:r[`--v-box-shadow-1`]},message:{padding:0}}},MuiPopover:{defaultProps:{disableScrollLock:!0},styleOverrides:{paper:{background:i.accentBackgroundColor,color:i.bodyColor,border:`1px solid ${r[`--v-strokes`]}`,boxShadow:r[`--v-box-shadow-1`]}}},MuiTooltip:{styleOverrides:{tooltip:{background:e.dark[`--v-gray-100`],border:`1px solid ${e.dark[`--v-strokes`]}`,color:e.dark[`--v-foreground`],boxShadow:r[`--v-box-shadow-1`],fontSize:13,lineHeight:`20px`,padding:`8px 16px`}}},MuiDialog:{defaultProps:{disableScrollLock:!0},styleOverrides:{root:{zIndex:100},paper:{background:i.accentBackgroundColor,color:i.bodyColor,border:`1px solid ${r[`--v-strokes`]}`,boxShadow:r[`--v-box-shadow-1`]}}},MuiStep:{styleOverrides:{root:{padding:`0px 20px`,"&.MuiStep-vertical":{padding:0},"&:first-child":{paddingLeft:0},"&:last-child":{paddingRight:0}}}},MuiStepLabel:{styleOverrides:{iconContainer:{paddingRight:12},label:{color:i.bodyColor,"&.Mui-active":{color:i.colorPrimary700},"&.Mui-completed":{color:i.success}}}},MuiStepIcon:{styleOverrides:{root:{fill:t===`dark`?r[`--v-gray-500`]:i.bodyColor,"&.Mui-active":{fill:i.colorPrimary500}}}},MuiTabs:{styleOverrides:{indicator:{display:`none`}}},MuiTab:{defaultProps:{disableRipple:!0},styleOverrides:{root:{flexGrow:1,textTransform:`none`,color:i.bodyColor,maxWidth:`none`,borderRight:`1px solid ${r[`--v-strokes`]}`,"&.Mui-selected":{color:i.bodyColor,borderBottom:`1px solid transparent`},"&:not(.Mui-selected)":{background:i.accentBackgroundColor,borderBottom:`1px solid ${r[`--v-strokes`]}`},"&:last-child":{borderRight:0}}}},MuiFormControlLabel:{defaultProps:{labelPlacement:`start`},styleOverrides:{label:{marginRight:8,fontSize:14}}},MuiTablePagination:{styleOverrides:{root:{color:i.bodyColor,"& .MuiIconButton-root":{color:`${i.bodyColor} !important`,"&.Mui-disabled":{opacity:.3}},"& .MuiTablePagination-select":{fontSize:`12px !important`},"& .MuiTablePagination-actions":{".MuiSvgIcon-root":{width:20}}},select:{color:`${i.bodyColor} !important`,fontWeight:`400 !important`},selectIcon:{color:`${i.bodyColor} !important`},displayedRows:{fontSize:12},selectLabel:{fontSize:12}}}}})};function ve(e){let t=c(8);if(!o())return null;let n;t[0]===e.theme?n=t[1]:(n=_e(e.theme),t[0]=e.theme,t[1]=n);let r;t[2]===e.isRootRegistry?r=t[3]:(r=e.isRootRegistry?z(oe,{}):null,t[2]=e.isRootRegistry,t[3]=r);let i;return t[4]!==e.children||t[5]!==n||t[6]!==r?(i=B(T,{theme:n,children:[r,e.children]}),t[4]=e.children,t[5]=n,t[6]=r,t[7]=i):i=t[7],i}function ye(e){let t=ge();return e===`dark`&&(t=Z()),t}function be(e){return`${e.startsWith(`--`)?``:`--`}${e.split(/(?=[A-Z])/).join(`-`).toLowerCase()}`}function xe(){return Object.entries(Ae).map(([e,t])=>{let n=ye(e);return`.${t} {\n${Object.entries(n).map(([e,t])=>`${be(e)}: ${t};`).join(`
3
3
  `)}\n}`}).join(`
4
4
  `)}function Se(){let e=c(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=B(ie,{children:[z(`style`,{children:`
5
5
  html,
@@ -1,15 +1,17 @@
1
- //#region src/utils/useWindowSize.d.ts
1
+ import { formatForDisplay } from "@tanstack/react-hotkeys";
2
+
3
+ //#region src/utils/useVWindowSize.d.ts
2
4
  /**
3
5
  * A custom hook that listens for window resize events and updates
4
6
  * the state with the current window dimensions.
5
7
  * @returns An object containing the current window width and height.
6
8
  */
7
- declare const useWindowSize: () => {
9
+ declare const useVWindowSize: () => {
8
10
  height: number;
9
11
  width: number;
10
12
  };
11
13
  //#endregion
12
- //#region src/utils/useScroll.d.ts
14
+ //#region src/utils/useVScroll.d.ts
13
15
  /**
14
16
  * A custom hook that adds a scroll event listener to a specified element and
15
17
  * calls the provided onScroll callback whenever a scroll event occurs.
@@ -19,30 +21,30 @@ declare const useWindowSize: () => {
19
21
  * @param options.onScroll The callback function that will be called when a scroll event occurs.
20
22
  * @returns null, as this hook does not return any value.
21
23
  */
22
- declare const useOnScroll: (options: {
24
+ declare const useVOnScroll: (options: {
23
25
  element: HTMLElement | Element | Window | Document | null | undefined;
24
26
  onScroll(): void;
25
27
  }) => null;
26
28
  //#endregion
27
- //#region src/utils/useIsClient.d.ts
29
+ //#region src/utils/useVIsClient.d.ts
28
30
  /**
29
31
  * A custom hook that determines if the current environment is a client (browser).
30
32
  * It initializes the state to false and sets it to true when the component is mounted,
31
33
  * indicating that the code is running in a client environment.
32
34
  * @returns A boolean value indicating whether the current environment is a client.
33
35
  */
34
- declare function useIsClient(): boolean;
36
+ declare function useVIsClient(): boolean;
35
37
  //#endregion
36
- //#region src/utils/useIsServer.d.ts
38
+ //#region src/utils/useVIsServer.d.ts
37
39
  /**
38
40
  * A custom hook that determines if the current environment is a server (Node.js).
39
- * It uses the useIsClient hook to check if the environment is a client, and returns
41
+ * It uses the useVIsClient hook to check if the environment is a client, and returns
40
42
  * the opposite value to indicate if it's a server environment.
41
43
  * @returns A boolean value indicating whether the current environment is a server.
42
44
  */
43
- declare function useIsServer(): boolean;
45
+ declare function useVIsServer(): boolean;
44
46
  //#endregion
45
- //#region src/utils/useForceRerender.d.ts
47
+ //#region src/utils/useVForceRerender.d.ts
46
48
  /**
47
49
  * A custom hook that provides a function to force a component to re-render.
48
50
  * It uses a state variable that is incremented whenever the rerender function is called,
@@ -51,14 +53,26 @@ declare function useIsServer(): boolean;
51
53
  * An object containing the rerender function that can be called
52
54
  * to force a re-render of the component.
53
55
  */
54
- declare function useForceRerender(): {
56
+ declare function useVForceRerender(): {
55
57
  rerender: () => void;
56
58
  };
57
59
  //#endregion
58
- //#region src/utils/VHelpers.d.ts
59
- declare const VHelpers: {
60
+ //#region src/utils/VUtils.d.ts
61
+ declare const VUtils: {
62
+ /**
63
+ * Copies the given text to the clipboard.
64
+ */
60
65
  copyToClipboard(text: string): Promise<void>;
61
66
  withoutCSSTransitions: (action: () => void) => void;
67
+ /**
68
+ * Formats a hotkey for display, taking into account the user's platform
69
+ * and any specified options.
70
+ * @returns A string representation of the hotkey, formatted for display.
71
+ */
72
+ formatHotkeyForDisplay(options: {
73
+ hotkey: Parameters<typeof formatForDisplay>[0];
74
+ options?: Parameters<typeof formatForDisplay>[1];
75
+ }): string;
62
76
  };
63
77
  //#endregion
64
- export { VHelpers, useForceRerender, useIsClient, useIsServer, useOnScroll, useWindowSize };
78
+ export { VUtils, useVForceRerender, useVIsClient, useVIsServer, useVOnScroll, useVWindowSize };
@@ -1 +1 @@
1
- import{a as e,i as t,n,o as r,r as i,t as a}from"../utils-CJ1T8QWy.js";export{a as VHelpers,n as useForceRerender,t as useIsClient,i as useIsServer,e as useOnScroll,r as useWindowSize};
1
+ import{a as e,i as t,n,o as r,r as i,t as a}from"../utils-oZQSEYYF.js";export{a as VUtils,n as useVForceRerender,t as useVIsClient,i as useVIsServer,e as useVOnScroll,r as useVWindowSize};
@@ -0,0 +1,7 @@
1
+ import{c as e}from"react/compiler-runtime";import{useEffect as t,useState as n}from"react";import{formatForDisplay as r}from"@tanstack/react-hotkeys";const i=()=>{let r=e(3),i;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={height:window.innerHeight,width:window.innerWidth},r[0]=i):i=r[0];let[a,o]=n(i),s,c;return r[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{o({height:window.innerHeight,width:window.innerWidth})};return e(),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},c=[],r[1]=s,r[2]=c):(s=r[1],c=r[2]),t(s,c),a},a=n=>{let r=e(4),i,a;return r[0]!==n.element||r[1]!==n.onScroll?(i=()=>{if(n.element)return n.element.addEventListener(`scroll`,n.onScroll),()=>{n.element&&n.element.removeEventListener(`scroll`,n.onScroll)}},a=[n.element,n.onScroll],r[0]=n.element,r[1]=n.onScroll,r[2]=i,r[3]=a):(i=r[2],a=r[3]),t(i,a),null};function o(){let r=e(2),[i,a]=n(!1),o,s;return r[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{a(!0)},s=[],r[0]=o,r[1]=s):(o=r[0],s=r[1]),t(o,s),i}function s(){return!o()}function c(){let t=e(2),[,r]=n(0),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{r(l)},t[0]=i):i=t[0];let a=i,o;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o={rerender:a},t[1]=o):o=t[1],o}function l(e){return e+1}let u,d;const f={async copyToClipboard(e){typeof window>`u`||await navigator.clipboard.writeText(e)},withoutCSSTransitions:e=>{clearTimeout(u),clearTimeout(d);let t=document.createElement(`style`),n=document.createTextNode(`* {
2
+ -webkit-transition: none !important;
3
+ -moz-transition: none !important;
4
+ -o-transition: none !important;
5
+ -ms-transition: none !important;
6
+ transition: none !important;
7
+ }`);t.appendChild(n);let r=()=>document.head.appendChild(t),i=()=>document.head.removeChild(t);r(),u=setTimeout(()=>{e(),d=setTimeout(i,100)},100)},formatHotkeyForDisplay(e){return r(e.hotkey,e.options??{})}};export{a,o as i,c as n,i as o,s as r,f as t};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@voidly-io/design-system",
3
3
  "type": "module",
4
- "version": "1.0.55",
4
+ "version": "1.0.56",
5
5
  "description": "",
6
6
  "license": "Private",
7
7
  "engines": {
@@ -68,10 +68,11 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@heroicons/react": "2.2.0",
71
+ "@tanstack/react-hotkeys": "0.10.0",
72
+ "geist": "1.7.2",
71
73
  "hast-util-to-jsx-runtime": "2.3.6",
72
- "shiki": "4.3.1",
73
- "sonner": "2.0.7",
74
- "geist": "1.7.0"
74
+ "shiki": "4.4.3",
75
+ "sonner": "2.0.8"
75
76
  },
76
77
  "inlinedDependencies": {
77
78
  "intl-messageformat": "11.2.6"
@@ -1,7 +0,0 @@
1
- import{c as e}from"react/compiler-runtime";import{useEffect as t,useState as n}from"react";const r=()=>{let r=e(3),i;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={height:window.innerHeight,width:window.innerWidth},r[0]=i):i=r[0];let[a,o]=n(i),s,c;return r[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{o({height:window.innerHeight,width:window.innerWidth})};return e(),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},c=[],r[1]=s,r[2]=c):(s=r[1],c=r[2]),t(s,c),a},i=n=>{let r=e(4),i,a;return r[0]!==n.element||r[1]!==n.onScroll?(i=()=>{if(n.element)return n.element.addEventListener(`scroll`,n.onScroll),()=>{n.element&&n.element.removeEventListener(`scroll`,n.onScroll)}},a=[n.element,n.onScroll],r[0]=n.element,r[1]=n.onScroll,r[2]=i,r[3]=a):(i=r[2],a=r[3]),t(i,a),null};function a(){let r=e(2),[i,a]=n(!1),o,s;return r[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{a(!0)},s=[],r[0]=o,r[1]=s):(o=r[0],s=r[1]),t(o,s),i}function o(){return!a()}function s(){let t=e(2),[,r]=n(0),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{r(c)},t[0]=i):i=t[0];let a=i,o;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o={rerender:a},t[1]=o):o=t[1],o}function c(e){return e+1}let l,u;const d={async copyToClipboard(e){typeof window>`u`||await navigator.clipboard.writeText(e)},withoutCSSTransitions:e=>{clearTimeout(l),clearTimeout(u);let t=document.createElement(`style`),n=document.createTextNode(`* {
2
- -webkit-transition: none !important;
3
- -moz-transition: none !important;
4
- -o-transition: none !important;
5
- -ms-transition: none !important;
6
- transition: none !important;
7
- }`);t.appendChild(n);let r=()=>document.head.appendChild(t),i=()=>document.head.removeChild(t);r(),l=setTimeout(()=>{e(),u=setTimeout(i,100)},100)}};export{i as a,a as i,s as n,r as o,o as r,d as t};