@voidly-io/design-system 1.0.55 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +1707 -134
- package/dist/components/index.js +3 -3
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +28 -14
- package/dist/utils/index.js +1 -1
- package/dist/utils-oZQSEYYF.js +7 -0
- package/package.json +6 -4
- package/dist/utils-CJ1T8QWy.js +0 -7
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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{Toaster as ae,toast as V}from"sonner";import{GeistMono as H}from"geist/font/mono";import{GeistSans as U}from"geist/font/sans";import W from"@mui/material/CssBaseline";import{FormattedMessage as oe,IntlProvider as se,useIntl as G}from"react-intl";import{toJsxRuntime as K}from"hast-util-to-jsx-runtime";import{codeToHast as q}from"shiki/bundle/web";import*as J from"@heroicons/react/24/solid";const Y={width:18,height:18},X={success:z(u,{style:Y}),info:z(b,{style:Y}),warning:z(f,{style:Y}),error:z(d,{style:Y})};function ce(e){let t=c(8),n=e.hideIcon?!1:e.icon?e.icon:X[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}const le=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}),ue=j(`div`)(e=>({"&:hover":e.$styleHover}));function de(e){let t=N(),n=M(t.breakpoints.down(`sm`)),r=M(t.breakpoints.down(`md`)),i=Object.fromEntries([[`padding`,e.padding],[`paddingTop`,e.paddingTop],[`paddingBottom`,e.paddingBottom],[`paddingLeft`,e.paddingLeft],[`paddingRight`,e.paddingRight]].filter(([,e])=>e!==void 0)),a=r&&e.gapMdDown?e.gapMdDown:e.gap;return z(ue,{style:{display:`flex`,flexDirection:n&&e.flexDirectionSmDown?e.flexDirectionSmDown:r&&e.flexDirectionMdDown?e.flexDirectionMdDown:e.flexDirection,margin:e.margin,marginTop:e.marginTop,marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginRight:e.marginRight,...i,gap:a,rowGap:e.rowGap||a,columnGap:e.columnGap||a,alignItems:e.alignItems,justifyContent:e.justifyContent,flexWrap:e.flexWrap,flexGrow:e.flexGrow,flexShrink:e.flexShrink,flexBasis:e.flexBasis,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth,minHeight:e.minHeight,maxHeight:e.maxHeight,gridColumn:n&&e.gridColumnSpanSmDown?`span ${e.gridColumnSpanSmDown}`:r&&e.gridColumnSpanMdDown?`span ${e.gridColumnSpanMdDown}`:e.gridColumnSpan?`span ${e.gridColumnSpan}`:void 0,color:e.color?`var(${e.color})`:void 0,...e.style},$styleHover:e.styleHover,ref:e.containerRef,onClick:e.onClick,children:e.children})}function Z(){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 Q(){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 $(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 fe=t=>{let i=t===`light`?Z():Q();return O({breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536,header:1140,defaultScreenSize:1024}},typography:{fontFamily:[U.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:$({theme:i,color:i.buttonOutlinedColor,colorHover:i.buttonOutlinedColorHover,background:i.buttonOutlinedBackground,backgroundHover:i.buttonOutlinedBackgroundHover,borderColor:i.buttonOutlinedBorder,borderColorHover:i.buttonOutlinedBorderHover}),containedInfo:$({theme:i,color:`#fff`,colorHover:`#fff`,background:i.colorPrimary500,backgroundHover:i.colorPrimary700,borderColor:i.colorPrimary500,borderColorHover:i.colorPrimary700}),containedPrimary:$({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:$({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 pe(e){let t=c(8);if(!o())return null;let n;t[0]===e.theme?n=t[1]:(n=fe(e.theme),t[0]=e.theme,t[1]=n);let r;t[2]===e.isRootRegistry?r=t[3]:(r=e.isRootRegistry?z(W,{}):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 me(e){let t=Z();return e===`dark`&&(t=Q()),t}function he(e){return`${e.startsWith(`--`)?``:`--`}${e.split(/(?=[A-Z])/).join(`-`).toLowerCase()}`}function ge(){return Object.entries(Te).map(([e,t])=>{let n=me(e);return`.${t} {\n${Object.entries(n).map(([e,t])=>`${he(e)}: ${t};`).join(`
|
|
3
3
|
`)}\n}`}).join(`
|
|
4
|
-
`)}function
|
|
4
|
+
`)}function _e(){let e=c(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=B(ie,{children:[z(`style`,{children:`
|
|
5
5
|
html,
|
|
6
6
|
body {
|
|
7
7
|
max-width: 100vw;
|
|
@@ -227,4 +227,4 @@ import{a as e,i as t,n,o as r,r as i,t as a}from"../tokens-Cr59L2ch.js";import{i
|
|
|
227
227
|
input[type="search"]::-webkit-search-cancel-button,
|
|
228
228
|
input[type="search"]::-webkit-search-results-button,
|
|
229
229
|
input[type="search"]::-webkit-search-results-decoration { display: none; }
|
|
230
|
-
`}),z(`style`,{children:xe()})]}),e[0]=n):n=e[0],n}const Ce=`voidly.theme`;function we(e){if(typeof window>`u`)return e;try{let e=window.localStorage.getItem(Ce);if(e===`light`||e===`dark`||e===`auto`)return e}catch{}return e}function Te(){return typeof window>`u`||typeof window.matchMedia!=`function`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Ee(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(`(prefers-color-scheme: dark)`);return typeof t.addEventListener==`function`?(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)}):(t.addListener(e),()=>{t.removeListener(e)})}function De(){return re(Ee,Te,Oe)}function Oe(){return`light`}const ke=F(null),Ae={light:`voidly-light-theme`,dark:`voidly-dark-theme`};function je(){let e=R(ke);if(!e)throw Error(`useVThemeContext must be used within a VTheme`);return e}function Me(e){let t=c(30),n=e.persistThemePreference??!0,r;t[0]!==n||t[1]!==e.defaultTheme?(r=()=>n?we(e.defaultTheme??`auto`):e.defaultTheme??`auto`,t[0]=n,t[1]=e.defaultTheme,t[2]=r):r=t[2];let[i,a]=ne(r),o=De(),s,l;t[3]!==n||t[4]!==i?(s=()=>{if(n)try{window.localStorage.setItem(Ce,i)}catch{}},l=[n,i],t[3]=n,t[4]=i,t[5]=s,t[6]=l):(s=t[5],l=t[6]),ee(s,l);let u=e.theme??(i===`auto`?o:i),d;t[7]===e.isRoot?d=t[8]:(d=e.isRoot?[V.className,V.variable,ae.className,ae.variable]:[],t[7]=e.isRoot,t[8]=d);let f=d,p;t[9]!==e.isRoot||t[10]!==u?(p=()=>(e.isRoot&&(document.body.classList.remove(...Object.values(Ae)),document.body.classList.add(Ae[u])),()=>{e.isRoot&&document.body.classList.remove(...Object.values(Ae))}),t[9]=e.isRoot,t[10]=u,t[11]=p):p=t[11];let m;t[12]===u?m=t[13]:(m=[u],t[12]=u,t[13]=m),ee(p,m);let h;t[14]!==u||t[15]!==i?(h={theme:u,themePreference:i,setTheme:a},t[14]=u,t[15]=i,t[16]=h):h=t[16];let g;t[17]===e.isRoot?g=t[18]:(g=e.isRoot&&z(Se,{}),t[17]=e.isRoot,t[18]=g);let _=e.isRoot??!1,v=`${Ae[u]} ${f.join(` `)}`,y;t[19]!==e.children||t[20]!==v?(y=z(`div`,{className:v,children:e.children}),t[19]=e.children,t[20]=v,t[21]=y):y=t[21];let b;t[22]!==y||t[23]!==_||t[24]!==u?(b=z(ve,{theme:u,isRootRegistry:_,children:y}),t[22]=y,t[23]=_,t[24]=u,t[25]=b):b=t[25];let x;return t[26]!==b||t[27]!==h||t[28]!==g?(x=B(ke.Provider,{value:h,children:[g,b]}),t[26]=b,t[27]=h,t[28]=g,t[29]=x):x=t[29],x}function Ne(){return function(){let e=ce();return{locale:e.locale,t:function(...t){let[n,r]=t;return e.formatMessage({id:n},r)},tHtml:function(...e){let[t,n]=e;return z(U,{id:t,values:{...n}},t)}}}}const Pe=Ne(),Fe=j(`div`)(e=>({"&:hover":e.$styleHover}));function $(e){let t=N(),n=M(t.breakpoints.down(`sm`)),r=M(t.breakpoints.down(`md`)),i=Object.fromEntries([[`padding`,e.padding],[`paddingTop`,e.paddingTop],[`paddingBottom`,e.paddingBottom],[`paddingLeft`,e.paddingLeft],[`paddingRight`,e.paddingRight]].filter(([,e])=>e!==void 0)),a=r&&e.gapMdDown?e.gapMdDown:e.gap;return z(Fe,{style:{display:`flex`,flexDirection:n&&e.flexDirectionSmDown?e.flexDirectionSmDown:r&&e.flexDirectionMdDown?e.flexDirectionMdDown:e.flexDirection,margin:e.margin,marginTop:e.marginTop,marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginRight:e.marginRight,...i,gap:a,rowGap:e.rowGap||a,columnGap:e.columnGap||a,alignItems:e.alignItems,justifyContent:e.justifyContent,flexWrap:e.flexWrap,flexGrow:e.flexGrow,flexShrink:e.flexShrink,flexBasis:e.flexBasis,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth,minHeight:e.minHeight,maxHeight:e.maxHeight,gridColumn:n&&e.gridColumnSpanSmDown?`span ${e.gridColumnSpanSmDown}`:r&&e.gridColumnSpanMdDown?`span ${e.gridColumnSpanMdDown}`:e.gridColumnSpan?`span ${e.gridColumnSpan}`:void 0,color:e.color?`var(${e.color})`:void 0,...e.style},$styleHover:e.styleHover,ref:e.containerRef,onClick:e.onClick,children:e.children})}const Ie=`6px 6px`,Le={auto:{solid:e=>z(H.ComputerDesktopIcon,{width:e.size,height:e.size}),outlined:e=>z(p.ComputerDesktopIcon,{width:e.size,height:e.size})},darkmode:{solid:e=>z(H.MoonIcon,{width:e.size,height:e.size}),outlined:e=>z(p.MoonIcon,{width:e.size,height:e.size})},lightmode:{solid:e=>z(H.SunIcon,{width:e.size,height:e.size}),outlined:e=>z(p.SunIcon,{width:e.size,height:e.size})}};function Re(e){let t=c(9),n;t[0]===e.color?n=t[1]:(n={color:e.color,display:`flex`},t[0]=e.color,t[1]=n);let r;t[2]!==e.name||t[3]!==e.size||t[4]!==e.variant?(r=Le[e.name][e.variant]?.({size:e.size}),t[2]=e.name,t[3]=e.size,t[4]=e.variant,t[5]=r):r=t[5];let i;return t[6]!==n||t[7]!==r?(i=z(`span`,{style:n,children:r}),t[6]=n,t[7]=r,t[8]=i):i=t[8],i}function ze(e){let t=c(55),{t:i}=Pe(),a=je(),o;t[0]===e.style?o=t[1]:(o={display:`flex`,alignItems:`center`,gap:8,fontSize:12,fontWeight:`600`,...e.style},t[0]=e.style,t[1]=o);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l={border:`1px solid ${r[`--v-strokes`]}`,borderRadius:n[`--v-border-radius`],overflow:`hidden`},t[2]=l):l=t[2];let u;t[3]===i?u=t[4]:(u=i(`component.theme_toggle.auto_mode`),t[3]=i,t[4]=u);let d=a.themePreference===`auto`?r[`--v-gray-100`]:r[`--v-gray-200`],f;t[5]===d?f=t[6]:(f={borderRadius:0,padding:Ie,minWidth:`auto`,background:d},t[5]=d,t[6]=f);let p;t[7]===a?p=t[8]:(p=()=>{s.withoutCSSTransitions(()=>{a.setTheme(`auto`)})},t[7]=a,t[8]=p);let m=a.themePreference===`auto`?`solid`:`outlined`,h;t[9]===m?h=t[10]:(h=z(Re,{name:`auto`,variant:m,size:12}),t[9]=m,t[10]=h);let g;t[11]!==f||t[12]!==p||t[13]!==h?(g=z(C,{style:f,onClick:p,children:h}),t[11]=f,t[12]=p,t[13]=h,t[14]=g):g=t[14];let _;t[15]!==u||t[16]!==g?(_=z(E,{title:u,children:g}),t[15]=u,t[16]=g,t[17]=_):_=t[17];let v;t[18]===i?v=t[19]:(v=i(`component.theme_toggle.light_mode`),t[18]=i,t[19]=v);let y=a.themePreference===`light`?r[`--v-gray-100`]:r[`--v-gray-200`],b;t[20]===y?b=t[21]:(b={borderRadius:0,padding:Ie,minWidth:`auto`,background:y},t[20]=y,t[21]=b);let x;t[22]===a?x=t[23]:(x=()=>{s.withoutCSSTransitions(()=>{a.setTheme(`light`)})},t[22]=a,t[23]=x);let S=a.themePreference===`light`?`solid`:`outlined`,w;t[24]===S?w=t[25]:(w=z(Re,{name:`lightmode`,variant:S,size:12}),t[24]=S,t[25]=w);let T;t[26]!==b||t[27]!==x||t[28]!==w?(T=z(C,{style:b,onClick:x,children:w}),t[26]=b,t[27]=x,t[28]=w,t[29]=T):T=t[29];let D;t[30]!==v||t[31]!==T?(D=z(E,{title:v,children:T}),t[30]=v,t[31]=T,t[32]=D):D=t[32];let O;t[33]===i?O=t[34]:(O=i(`component.theme_toggle.dark_mode`),t[33]=i,t[34]=O);let k=a.themePreference===`dark`?r[`--v-gray-100`]:r[`--v-gray-200`],A;t[35]===k?A=t[36]:(A={borderRadius:0,padding:Ie,minWidth:`auto`,background:k},t[35]=k,t[36]=A);let j;t[37]===a?j=t[38]:(j=()=>{s.withoutCSSTransitions(()=>{a.setTheme(`dark`)})},t[37]=a,t[38]=j);let M=a.themePreference===`dark`?`solid`:`outlined`,N;t[39]===M?N=t[40]:(N=z(Re,{name:`darkmode`,variant:M,size:12}),t[39]=M,t[40]=N);let P;t[41]!==A||t[42]!==j||t[43]!==N?(P=z(C,{style:A,onClick:j,children:N}),t[41]=A,t[42]=j,t[43]=N,t[44]=P):P=t[44];let F;t[45]!==O||t[46]!==P?(F=z(E,{title:O,children:P}),t[45]=O,t[46]=P,t[47]=F):F=t[47];let I;t[48]!==D||t[49]!==F||t[50]!==_?(I=z(`div`,{children:B($,{style:l,children:[_,D,F]})}),t[48]=D,t[49]=F,t[50]=_,t[51]=I):I=t[51];let L;return t[52]!==o||t[53]!==I?(L=z(`div`,{style:o,children:I}),t[52]=o,t[53]=I,t[54]=L):L=t[54],L}function Be(e){let t=c(22),n=N(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let i=M(r),a;t[2]===n.breakpoints?a=t[3]:(a=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=a);let o=M(a),s=i&&e.columnsSmDown?e.columnsSmDown:o&&e.columnsMdDown?e.columnsMdDown:e.columns,l=e.rowGap||e.gap,u=e.columnGap||e.gap,d=typeof e.padding==`number`?e.padding:e.padding?.top,f=typeof e.padding==`number`?e.padding:e.padding?.bottom,p=typeof e.padding==`number`?e.padding:e.padding?.left,m=typeof e.padding==`number`?e.padding:e.padding?.right,h=typeof e.margin==`number`?e.margin:e.margin?.top,g=typeof e.margin==`number`?e.margin:e.margin?.bottom,_=typeof e.margin==`number`?e.margin:e.margin?.left,v=typeof e.margin==`number`?e.margin:e.margin?.right,y;t[4]!==s||t[5]!==e.alignItems||t[6]!==e.gap||t[7]!==e.maxWidth||t[8]!==_||t[9]!==v||t[10]!==l||t[11]!==u||t[12]!==d||t[13]!==f||t[14]!==p||t[15]!==m||t[16]!==h||t[17]!==g?(y={display:`grid`,gridTemplateColumns:s,gap:e.gap,rowGap:l,columnGap:u,paddingTop:d,paddingBottom:f,paddingLeft:p,paddingRight:m,marginTop:h,marginBottom:g,marginLeft:_,marginRight:v,alignItems:e.alignItems,maxWidth:e.maxWidth},t[4]=s,t[5]=e.alignItems,t[6]=e.gap,t[7]=e.maxWidth,t[8]=_,t[9]=v,t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=p,t[15]=m,t[16]=h,t[17]=g,t[18]=y):y=t[18];let b;return t[19]!==e.children||t[20]!==y?(b=z(`div`,{style:y,children:e.children}),t[19]=e.children,t[20]=y,t[21]=b):b=t[21],b}const Ve={en:{"component.vcode.copy_failed":`Copy to clipboard failed.`,"component.vcode.copy_success":`Copied to clipboard.`,"component.vcode.copy_to_clipboard":`Copy to clipboard`,"component.vcode.toggle_wrap":`Toggle line wrap`,"component.vcode.download_file":`Download file`,"component.vcode.collapse_code":`Collapse code`,"component.vcode.view_code":`View Code`,"component.vchip.copy_failed":`Copy to clipboard failed.`,"component.vchip.copy_success":`Copied to clipboard`,"component.vchip.copy_to_clipboard":`Copy to clipboard`,"component.verrorbox.retry":`Retry`,"component.theme_toggle.auto_mode":`System theme`,"component.theme_toggle.light_mode":`Light mode`,"component.theme_toggle.dark_mode":`Dark mode`},de:{"component.vcode.copy_failed":`Kopieren in die Zwischenablage fehlgeschlagen.`,"component.vcode.copy_success":`In die Zwischenablage kopiert.`,"component.vcode.copy_to_clipboard":`In die Zwischenablage kopieren`,"component.vcode.toggle_wrap":`Zeilenumbruch umschalten`,"component.vcode.download_file":`Datei herunterladen`,"component.vcode.collapse_code":`Code einklappen`,"component.vcode.view_code":`Code anzeigen`,"component.vchip.copy_failed":`Kopieren in die Zwischenablage fehlgeschlagen.`,"component.vchip.copy_success":`In die Zwischenablage kopiert`,"component.vchip.copy_to_clipboard":`In die Zwischenablage kopieren`,"component.verrorbox.retry":`Erneut versuchen`,"component.theme_toggle.auto_mode":`System theme`,"component.theme_toggle.light_mode":`Light mode`,"component.theme_toggle.dark_mode":`Dark mode`}};function He(e){let t=c(7),n=e.messages[e.locale]??e.messages.en,r=Ve[e.locale],i;t[0]!==n||t[1]!==r?(i={...r,...n},t[0]=n,t[1]=r,t[2]=i):i=t[2];let a=i,o;return t[3]!==a||t[4]!==e.children||t[5]!==e.locale?(o=z(se,{locale:e.locale,messages:a,children:e.children}),t[3]=a,t[4]=e.children,t[5]=e.locale,t[6]=o):o=t[6],o}function Ue(e){let t=Ne();function n(t){let n=c(2),r;return n[0]===t?r=n[1]:(r=z(He,{...t,messages:e}),n[0]=t,n[1]=r),r}return{VIntlProvider:n,useVIntl:t}}const We={strong:r[`--v-gray-100`],error:r[`--v-red-700`],disabled:r[`--v-gray-700`]},Ge={300:300,400:400,500:500,600:600,700:700,800:800,900:900};function Ke(e){let t=c(12),n=N(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let i=M(r),a;t[2]===n.breakpoints?a=t[3]:(a=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=a);let o=M(a),s=e.type?`v-text-${e.type}`:void 0,l=e.color?We[e.color]||`var(${e.color})`:void 0,u=e.weight?Ge[e.weight]:void 0,d=e.component===`ul`?14:void 0,f=i&&e.textAlignSmDown?e.textAlignSmDown:o&&e.textAlignMdDown?e.textAlignMdDown:e.textAlign,p=e.breakWord?`break-word`:void 0,m;return t[4]!==e||t[5]!==s||t[6]!==l||t[7]!==u||t[8]!==d||t[9]!==f||t[10]!==p?(m=I(e.component,{className:s,style:{color:l,fontWeight:u,paddingLeft:d,textAlign:f,width:e.width,maxWidth:e.maxWidth,wordBreak:p,...e.noWrapEllipsis?{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`}:{},...e.style},"data-testid":e[`data-testid`],onClick:e.onClick},e.children),t[4]=e,t[5]=s,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m):m=t[11],m}function qe(e){let t=e.durationInMs===`infinite`?9999999999:e.durationInMs||8e3,n,r={description:e.description,duration:t};return e.id&&(r.id=e.id),setTimeout(()=>{n=e.type===`info`?q.info(e.title,r):e.type===`success`?q.success(e.title,r):e.type===`warning`?q.warning(e.title,r):e.type===`error`?q.error(e.title,r):e.type===`loading`?q.loading(e.title,r):q.info(e.title,r)}),{dismiss:()=>{q.dismiss(n)}}}function Je(){let e=c(2),{theme:t}=je(),n;return e[0]===t?n=e[1]:(n=z(K,{richColors:!0,theme:t,visibleToasts:4,position:`top-center`,closeButton:!0}),e[0]=t,e[1]=n),n}const Ye=r[`--v-gray-600`],Xe=2e3;async function Ze(e){return W(await G(e.code,{lang:e.lang,theme:`github-dark-default`,transformers:[{code(e){let t=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${t}font-family: var(--font-geist-mono);`},line(e,t){let n=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${n}display:block;padding-left:3.5em;line-height:20px`,e.children.unshift({type:`element`,tagName:`span`,properties:{style:`margin-left:-3.5em;color:${r[`--v-gray-500`]};user-select:none;display:inline-block;width:2em;margin-right:1.5em;text-align:right`},children:[{type:`text`,value:String(t)}]})}}]}),{Fragment:P,jsx:z,jsxs:B,components:{pre:t=>z(`pre`,{...t,style:{...t.style,padding:`14px 16px`,fontSize:13,lineHeight:0,overflow:`auto`,whiteSpace:e.wrap?`pre-wrap`:`pre`,margin:0,background:r[`--v-gray-100`],borderBottomLeftRadius:n[`--v-border-radius`],borderBottomRightRadius:n[`--v-border-radius`],maxHeight:e.maxHeight}})}})}function Qe(e){let t=c(93),i=Pe(),[a,o]=ne(null),[l,d]=ne(!1),[f,p]=ne(!1),[b,x]=ne(e.defaultCollapsed??!1),S=e.collapsed??b,T;t[0]===e?T=t[1]:(T=t=>{e.collapsed===void 0&&x(t),e.onCollapsedChange?.(t)},t[0]=e,t[1]=T);let D=T,O,k;t[2]!==e.content||t[3]!==e.lang||t[4]!==e.maxHeight||t[5]!==l?(O=()=>{Ze({code:e.content,lang:e.lang,wrap:l,maxHeight:e.maxHeight}).then(o)},k=[e.content,e.lang,e.maxHeight,l],t[2]=e.content,t[3]=e.lang,t[4]=e.maxHeight,t[5]=l,t[6]=O,t[7]=k):(O=t[6],k=t[7]),te(O,k);let A,j;t[8]===f?(A=t[9],j=t[10]):(A=()=>{if(!f)return;let e=window.setTimeout(()=>p(!1),Xe);return()=>window.clearTimeout(e)},j=[f],t[8]=f,t[9]=A,t[10]=j),ee(A,j);let M;t[11]===e.style?M=t[12]:(M={position:`relative`,background:r[`--v-background`],borderRadius:n[`--v-border-radius`],...e.style},t[11]=e.style,t[12]=M);let N;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(N={color:Ye,borderTopLeftRadius:n[`--v-border-radius`],borderTopRightRadius:n[`--v-border-radius`],border:`1px solid ${r[`--v-strokes`]}`},t[13]=N):N=t[13];let P;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(P=z(y,{height:16,width:16}),t[14]=P):P=t[14];let F;t[15]===e.title?F=t[16]:(F=B($,{alignItems:`center`,gap:16,children:[P,z(Ke,{component:`span`,type:`copy-13`,weight:`400`,children:e.title})]}),t[15]=e.title,t[16]=F);let I;t[17]!==S||t[18]!==D||t[19]!==i?(I=!S&&z(E,{title:i.t(`component.vcode.collapse_code`),placement:`top`,children:z(w,{"aria-label":i.t(`component.vcode.collapse_code`),"aria-expanded":!0,onClick:()=>D(!0),style:{border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Ye},children:z(_,{height:16,width:16})})}),t[17]=S,t[18]=D,t[19]=i,t[20]=I):I=t[20];let L;t[21]===i?L=t[22]:(L=i.t(`component.vcode.download_file`),t[21]=i,t[22]=L);let R;t[23]===i?R=t[24]:(R=i.t(`component.vcode.download_file`),t[23]=i,t[24]=R);let re;t[25]!==e.content||t[26]!==e.title?(re=()=>{let t=new Blob([e.content],{type:`text/plain`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=e.title,r.click(),URL.revokeObjectURL(n)},t[25]=e.content,t[26]=e.title,t[27]=re):re=t[27];let ie,ae;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(ie={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Ye},ae=z(m,{height:16,width:16}),t[28]=ie,t[29]=ae):(ie=t[28],ae=t[29]);let V;t[30]!==R||t[31]!==re?(V=z(w,{"aria-label":R,onClick:re,style:ie,children:ae}),t[30]=R,t[31]=re,t[32]=V):V=t[32];let oe;t[33]!==L||t[34]!==V?(oe=z(E,{title:L,placement:`top`,children:V}),t[33]=L,t[34]=V,t[35]=oe):oe=t[35];let H;t[36]===i?H=t[37]:(H=i.t(`component.vcode.toggle_wrap`),t[36]=i,t[37]=H);let U;t[38]===i?U=t[39]:(U=i.t(`component.vcode.toggle_wrap`),t[38]=i,t[39]=U);let se,ce;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(se=()=>d($e),ce={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Ye},t[40]=se,t[41]=ce):(se=t[40],ce=t[41]);let W;t[42]===l?W=t[43]:(W=z(l?g:h,{height:16,width:16}),t[42]=l,t[43]=W);let G;t[44]!==U||t[45]!==W?(G=z(w,{"aria-label":U,onClick:se,style:ce,children:W}),t[44]=U,t[45]=W,t[46]=G):G=t[46];let K;t[47]!==H||t[48]!==G?(K=z(E,{title:H,placement:`top`,children:G}),t[47]=H,t[48]=G,t[49]=K):K=t[49];let q;t[50]!==f||t[51]!==i?(q=f?i.t(`component.vcode.copy_success`):i.t(`component.vcode.copy_to_clipboard`),t[50]=f,t[51]=i,t[52]=q):q=t[52];let J;t[53]!==f||t[54]!==i?(J=f?i.t(`component.vcode.copy_success`):i.t(`component.vcode.copy_to_clipboard`),t[53]=f,t[54]=i,t[55]=J):J=t[55];let le;t[56]!==e.content||t[57]!==i?(le=async t=>{t.stopPropagation();try{await s.copyToClipboard(e.content),p(!0),qe({type:`success`,title:i.t(`component.vcode.copy_success`),durationInMs:Xe})}catch{qe({type:`error`,title:i.t(`component.vcode.copy_failed`)})}},t[56]=e.content,t[57]=i,t[58]=le):le=t[58];let ue;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(ue={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:Ye},t[59]=ue):ue=t[59];let Y;t[60]===f?Y=t[61]:(Y=f?z(u,{height:16,width:16,color:r[`--v-green-700`]}):z(v,{height:16,width:16}),t[60]=f,t[61]=Y);let de;t[62]!==J||t[63]!==le||t[64]!==Y?(de=z(w,{"aria-label":J,onClick:le,style:ue,children:Y}),t[62]=J,t[63]=le,t[64]=Y,t[65]=de):de=t[65];let X;t[66]!==q||t[67]!==de?(X=z(E,{title:q,placement:`top`,children:de}),t[66]=q,t[67]=de,t[68]=X):X=t[68];let fe;t[69]!==oe||t[70]!==K||t[71]!==X||t[72]!==I?(fe=B($,{alignItems:`center`,gap:8,children:[I,oe,K,X]}),t[69]=oe,t[70]=K,t[71]=X,t[72]=I,t[73]=fe):fe=t[73];let pe;t[74]!==fe||t[75]!==F?(pe=B($,{style:N,gap:40,alignItems:`center`,justifyContent:`space-between`,padding:`6px 12px 6px 16px`,children:[F,fe]}),t[74]=fe,t[75]=F,t[76]=pe):pe=t[76];let me=e.maxHeight??110,he=S?110:void 0,ge=S?`hidden`:void 0,Z;t[77]!==me||t[78]!==he||t[79]!==ge?(Z={position:`relative`,minHeight:me,maxHeight:he,overflow:ge,borderLeft:`1px solid ${r[`--v-strokes`]}`,borderBottom:`1px solid ${r[`--v-strokes`]}`,borderRight:`1px solid ${r[`--v-strokes`]}`,borderBottomLeftRadius:n[`--v-border-radius`],borderBottomRightRadius:n[`--v-border-radius`]},t[77]=me,t[78]=he,t[79]=ge,t[80]=Z):Z=t[80];let Q;t[81]!==S||t[82]!==D||t[83]!==i?(Q=S&&z(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9))`},children:z(C,{variant:`outlined`,size:`small`,"aria-expanded":!1,onClick:()=>D(!1),children:i.t(`component.vcode.view_code`)})}),t[81]=S,t[82]=D,t[83]=i,t[84]=Q):Q=t[84];let _e;t[85]!==a||t[86]!==Z||t[87]!==Q?(_e=B(`div`,{style:Z,children:[a,Q]}),t[85]=a,t[86]=Z,t[87]=Q,t[88]=_e):_e=t[88];let ve;return t[89]!==pe||t[90]!==_e||t[91]!==M?(ve=z(Me,{theme:`dark`,children:B($,{flexDirection:`column`,style:M,children:[pe,_e]})}),t[89]=pe,t[90]=_e,t[91]=M,t[92]=ve):ve=t[92],ve}function $e(e){return!e}const et=j(`span`)(e=>({...e.$style,"&:hover":e.$styleHover})),tt=`medium`,nt=2e3;function rt(e){let t=Pe(),[n,i]=ne(!1);ee(()=>{if(!n)return;let e=window.setTimeout(()=>i(!1),nt);return()=>window.clearTimeout(e)},[n]);let a={color:r[`--v-blue-700`],border:r[`--v-blue-500`],background:r[`--v-blue-100`],backgroundHover:r[`--v-blue-200`]};`type`in e?e.type===`error`?(a.color=r[`--v-red-700`],a.border=r[`--v-red-500`],a.background=r[`--v-red-100`],a.backgroundHover=r[`--v-red-200`]):e.type===`success`&&(a.color=r[`--v-green-700`],a.border=r[`--v-green-500`],a.background=r[`--v-green-100`],a.backgroundHover=r[`--v-green-200`]):(a.color=e.color,a.border=e.border,a.background=e.background,a.backgroundHover=e.backgroundHover||e.background);let o={small:{padding:`3px 8px`,fontSize:10},medium:{padding:`6px 14px`,fontSize:11},large:{padding:`9px 20px`,fontSize:12}};return z(E,{title:e.tooltip??``,placement:e.tooltipPlacement??`top`,children:z(et,{$style:{border:`1px solid ${a.border}`,color:a.color,background:a.background,padding:o[e.size??tt].padding,borderRadius:9999,fontSize:o[e.size??tt].fontSize,fontWeight:600,lineHeight:`12px`,display:`inline-block`,cursor:e.onClick?`pointer`:`default`,...e.style},onClick:t=>{t.stopPropagation(),e.onClick?.()},$styleHover:{background:a.backgroundHover},children:B($,{gap:8,alignItems:`center`,children:[e.content,e.showCopyButton&&z(E,{title:n?t.t(`component.vchip.copy_success`):e.copyTooltip??t.t(`component.vchip.copy_to_clipboard`),placement:`top`,children:z(w,{"aria-label":n?t.t(`component.vchip.copy_success`):e.copyTooltip??t.t(`component.vchip.copy_to_clipboard`),onClick:async n=>{n.stopPropagation();let r=e.copyText?.trim();if(r)try{await s.copyToClipboard(r),i(!0),qe({type:`success`,title:e.copyToastTitle??t.t(`component.vchip.copy_success`),durationInMs:nt})}catch{qe({type:`error`,title:t.t(`component.vchip.copy_failed`)})}},style:{border:`none`,background:`transparent`,padding:0,margin:0,display:`flex`,alignItems:`center`,color:a.color},children:z(n?u:v,{height:12,width:12})})})]})})})}function it(e){let t=c(21),i=Pe(),a=e.onRetry,o=`14px ${a?20:28}px 14px 28px`,s;t[0]===e.singleLine?s=t[1]:(s=e.singleLine?{whiteSpace:`nowrap`,minWidth:0,flexGrow:1}:{},t[0]=e.singleLine,t[1]=s);let u;t[2]!==e.style||t[3]!==o||t[4]!==s?(u={color:r[`--v-alert-error-text`],background:r[`--v-alert-error-background`],borderRadius:n[`--v-border-radius`],border:`1px solid ${r[`--v-alert-error-border`]}`,padding:o,display:`flex`,alignItems:`center`,justifyContent:`space-between`,fontSize:13,fontWeight:400,lineHeight:`15px`,maxWidth:`100%`,...s,...e.style},t[2]=e.style,t[3]=o,t[4]=s,t[5]=u):u=t[5];let d=a?12:0,f;t[6]===d?f=t[7]:(f={marginRight:d,overflow:`hidden`,textOverflow:`ellipsis`},t[6]=d,t[7]=f);let p;t[8]!==e.children||t[9]!==f?(p=z(`div`,{style:f,children:e.children}),t[8]=e.children,t[9]=f,t[10]=p):p=t[10];let m;t[11]!==e||t[12]!==i?(m=e.onRetry&&z(E,{title:i.t(`component.verrorbox.retry`),placement:`bottom`,children:z(w,{onClick:t=>{t.stopPropagation(),e.onRetry?.()},style:{marginLeft:`auto`,color:r[`--v-alert-error-text`]},children:z(l,{style:{width:16}})})}),t[11]=e,t[12]=i,t[13]=m):m=t[13];let h;t[14]!==u||t[15]!==p||t[16]!==m?(h=B(`div`,{style:u,children:[p,m]}),t[14]=u,t[15]=p,t[16]=m,t[17]=h):h=t[17];let g;return t[18]!==e.tooltip||t[19]!==h?(g=z(E,{title:e.tooltip,placement:`top`,children:h}),t[18]=e.tooltip,t[19]=h,t[20]=g):g=t[20],g}const at=new URL(`./logos/eu_icon.jpg`,import.meta.url).href,ot=new URL(`./logos/eu_text.svg`,import.meta.url).href,st=new URL(`./logos/finanzonline_icon.png`,import.meta.url).href,ct=new URL(`./logos/google_icon.png`,import.meta.url).href,lt=new URL(`./logos/google_text.svg`,import.meta.url).href,ut=new URL(`./logos/microsoft_icon.svg`,import.meta.url).href,dt=new URL(`./logos/secly_icon_rounded_black_on_white.svg`,import.meta.url).href,ft=new URL(`./logos/secly_icon_rounded_white_on_black.svg`,import.meta.url).href,pt=new URL(`./logos/secly_text_black.svg`,import.meta.url).href,mt=new URL(`./logos/secly_text_white.svg`,import.meta.url).href,ht=new URL(`./logos/sevdesk_icon.png`,import.meta.url).href,gt=new URL(`./logos/stripe_icon.svg`,import.meta.url).href,_t=new URL(`./logos/voidly_icon_rounded_black_on_white.svg`,import.meta.url).href,vt=new URL(`./logos/voidly_icon_rounded_white_on_black.svg`,import.meta.url).href,yt=new URL(`./logos/voidly_text_black.svg`,import.meta.url).href,bt=new URL(`./logos/voidly_text_white.svg`,import.meta.url).href,xt={euFlag:{src:at,alt:`European Union Flag`,width:600,height:401},euFlagWithText:{src:ot,alt:`European Union Flag With Text`,width:172,height:48},finanzonline:{src:st,alt:`Finanzonline Logo`,width:180,height:180},googleIcon:{src:ct,alt:`Google Logo`,width:512,height:512},googleText:{src:lt,alt:`Google Logo`,width:272,height:92},microsoftIcon:{src:ut,alt:`Microsoft Logo`,width:1528,height:1528},seclyIconRoundedBlackOnWhite:{src:dt,alt:`Secly Logo`,width:200,height:200},seclyIconRoundedWhiteOnBlack:{src:ft,alt:`Secly Logo`,width:200,height:200},seclyTextBlack:{src:pt,alt:`Secly Logo`,width:157,height:62},seclyTextWhite:{src:mt,alt:`Secly Logo`,width:157,height:62},sevdesk:{src:ht,alt:`Sevdesk Logo`,width:256,height:256},stripe:{src:gt,alt:`Stripe Logo`,width:512,height:512},voidlyIconRoundedBlackOnWhite:{src:_t,alt:`Voidly Logo`,width:200,height:200},voidlyIconRoundedWhiteOnBlack:{src:vt,alt:`Voidly Logo`,width:200,height:200},voidlyTextBlack:{src:yt,alt:`Voidly Logo`,width:200,height:94},voidlyTextWhite:{src:bt,alt:`Voidly Logo`,width:200,height:94}};function St(e){if(typeof e==`number`)return Number.isFinite(e)&&e>0?e:void 0;if(typeof e==`string`&&/^\d+(\.\d+)?$/.test(e.trim())){let t=Number(e);return Number.isFinite(t)&&t>0?t:void 0}}function Ct(e,t,n){let r=xt[e],i=St(t),a=St(n),o=r.width/r.height;if(i&&a){let e=Math.min(i,a*o);return{width:Math.round(e),height:Math.round(e/o)}}return i?{width:Math.round(i),height:Math.round(i/o)}:a?{width:Math.round(a*o),height:Math.round(a)}:{width:r.width,height:r.height}}function wt(e){let t=c(6),n,r;if(t[0]!==e.height||t[1]!==e.name||t[2]!==e.renderImage||t[3]!==e.width){r=Symbol.for(`react.early_return_sentinel`);bb0:{let t=Ct(e.name,e.width,e.height),i={src:xt[e.name].src,alt:xt[e.name].alt,width:t.width,height:t.height};if(e.renderImage){r=e.renderImage(i);break bb0}n=z(`img`,{...i})}t[0]=e.height,t[1]=e.name,t[2]=e.renderImage,t[3]=e.width,t[4]=n,t[5]=r}else n=t[4],r=t[5];return r===Symbol.for(`react.early_return_sentinel`)?n:r}export{ue as VAlert,he as VCard,rt as VChip,Qe as VCode,it as VErrorBox,$ as VFlex,Be as VGrid,me as VLoading,wt as VLogo,xt as VLogoSources,Me as VTheme,ze as VThemeToggle,Je as VToast,Ue as createVIntl,qe as showVToast,je as useVThemeContext};
|
|
230
|
+
`}),z(`style`,{children:ge()})]}),e[0]=n):n=e[0],n}const ve=`voidly.theme`;function ye(e){if(typeof window>`u`)return e;try{let e=window.localStorage.getItem(ve);if(e===`light`||e===`dark`||e===`auto`)return e}catch{}return e}function be(){return typeof window>`u`||typeof window.matchMedia!=`function`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function xe(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(`(prefers-color-scheme: dark)`);return typeof t.addEventListener==`function`?(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)}):(t.addListener(e),()=>{t.removeListener(e)})}function Se(){return re(xe,be,Ce)}function Ce(){return`light`}const we=F(null),Te={light:`voidly-light-theme`,dark:`voidly-dark-theme`};function Ee(){let e=R(we);if(!e)throw Error(`useVThemeContext must be used within a VTheme`);return e}function De(e){let t=c(30),n=e.persistThemePreference??!0,r;t[0]!==n||t[1]!==e.defaultTheme?(r=()=>n?ye(e.defaultTheme??`auto`):e.defaultTheme??`auto`,t[0]=n,t[1]=e.defaultTheme,t[2]=r):r=t[2];let[i,a]=ne(r),o=Se(),s,l;t[3]!==n||t[4]!==i?(s=()=>{if(n)try{window.localStorage.setItem(ve,i)}catch{}},l=[n,i],t[3]=n,t[4]=i,t[5]=s,t[6]=l):(s=t[5],l=t[6]),ee(s,l);let u=e.theme??(i===`auto`?o:i),d;t[7]===e.isRoot?d=t[8]:(d=e.isRoot?[U.className,U.variable,H.className,H.variable]:[],t[7]=e.isRoot,t[8]=d);let f=d,p;t[9]!==e.isRoot||t[10]!==u?(p=()=>(e.isRoot&&(document.body.classList.remove(...Object.values(Te)),document.body.classList.add(Te[u])),()=>{e.isRoot&&document.body.classList.remove(...Object.values(Te))}),t[9]=e.isRoot,t[10]=u,t[11]=p):p=t[11];let m;t[12]===u?m=t[13]:(m=[u],t[12]=u,t[13]=m),ee(p,m);let h;t[14]!==u||t[15]!==i?(h={theme:u,themePreference:i,setTheme:a},t[14]=u,t[15]=i,t[16]=h):h=t[16];let g;t[17]===e.isRoot?g=t[18]:(g=e.isRoot&&z(_e,{}),t[17]=e.isRoot,t[18]=g);let _=e.isRoot??!1,v=`${Te[u]} ${f.join(` `)}`,y;t[19]!==e.children||t[20]!==v?(y=z(`div`,{className:v,children:e.children}),t[19]=e.children,t[20]=v,t[21]=y):y=t[21];let b;t[22]!==y||t[23]!==_||t[24]!==u?(b=z(pe,{theme:u,isRootRegistry:_,children:y}),t[22]=y,t[23]=_,t[24]=u,t[25]=b):b=t[25];let x;return t[26]!==b||t[27]!==h||t[28]!==g?(x=B(we.Provider,{value:h,children:[g,b]}),t[26]=b,t[27]=h,t[28]=g,t[29]=x):x=t[29],x}function Oe(e){let t=e.durationInMs===`infinite`?9999999999:e.durationInMs||8e3,n,r={description:e.description,duration:t};return e.id&&(r.id=e.id),setTimeout(()=>{n=e.type===`info`?V.info(e.title,r):e.type===`success`?V.success(e.title,r):e.type===`warning`?V.warning(e.title,r):e.type===`error`?V.error(e.title,r):e.type===`loading`?V.loading(e.title,r):V.info(e.title,r)}),{dismiss:()=>{V.dismiss(n)}}}function ke(){let e=c(2),{theme:t}=Ee(),n;return e[0]===t?n=e[1]:(n=z(ae,{richColors:!0,theme:t,visibleToasts:4,position:`top-center`,closeButton:!0}),e[0]=t,e[1]=n),n}function Ae(){return function(){let e=G();return{locale:e.locale,t:function(...t){let[n,r]=t;return e.formatMessage({id:n},r)},tHtml:function(...e){let[t,n]=e;return z(oe,{id:t,values:{...n}},t)}}}}const je=Ae(),Me=j(`span`)(e=>({...e.$style,"&:hover":e.$styleHover})),Ne=`medium`,Pe=2e3;function Fe(e){let t=je(),[n,i]=ne(!1);ee(()=>{if(!n)return;let e=window.setTimeout(()=>i(!1),Pe);return()=>window.clearTimeout(e)},[n]);let a={color:r[`--v-blue-700`],border:r[`--v-blue-500`],background:r[`--v-blue-100`],backgroundHover:r[`--v-blue-200`]};`type`in e?e.type===`error`?(a.color=r[`--v-red-700`],a.border=r[`--v-red-500`],a.background=r[`--v-red-100`],a.backgroundHover=r[`--v-red-200`]):e.type===`success`&&(a.color=r[`--v-green-700`],a.border=r[`--v-green-500`],a.background=r[`--v-green-100`],a.backgroundHover=r[`--v-green-200`]):(a.color=e.color,a.border=e.border,a.background=e.background,a.backgroundHover=e.backgroundHover||e.background);let o={small:{padding:`3px 8px`,fontSize:10},medium:{padding:`6px 14px`,fontSize:11},large:{padding:`9px 20px`,fontSize:12}};return z(E,{title:e.tooltip??``,placement:e.tooltipPlacement??`top`,children:z(Me,{$style:{border:`1px solid ${a.border}`,color:a.color,background:a.background,padding:o[e.size??Ne].padding,borderRadius:9999,fontSize:o[e.size??Ne].fontSize,fontWeight:600,lineHeight:`12px`,display:`inline-block`,cursor:e.onClick?`pointer`:`default`,...e.style},onClick:t=>{t.stopPropagation(),e.onClick?.()},$styleHover:{background:a.backgroundHover},children:B(de,{gap:8,alignItems:`center`,children:[e.content,e.showCopyButton&&z(E,{title:n?t.t(`component.vchip.copy_success`):e.copyTooltip??t.t(`component.vchip.copy_to_clipboard`),placement:`top`,children:z(w,{"aria-label":n?t.t(`component.vchip.copy_success`):e.copyTooltip??t.t(`component.vchip.copy_to_clipboard`),onClick:async n=>{n.stopPropagation();let r=e.copyText?.trim();if(r)try{await s.copyToClipboard(r),i(!0),Oe({type:`success`,title:e.copyToastTitle??t.t(`component.vchip.copy_success`),durationInMs:Pe})}catch{Oe({type:`error`,title:t.t(`component.vchip.copy_failed`)})}},style:{border:`none`,background:`transparent`,padding:0,margin:0,display:`flex`,alignItems:`center`,color:a.color},children:z(n?u:v,{height:12,width:12})})})]})})})}const Ie={disabled:r[`--v-gray-100`],error:r[`--v-red-700`],strong:r[`--v-gray-1000`]},Le={300:300,400:400,500:500,600:600,700:700,800:800,900:900};function Re(e){let t=c(12),n=N(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let i=M(r),a;t[2]===n.breakpoints?a=t[3]:(a=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=a);let o=M(a),s=e.type?`v-text-${e.type}`:void 0,l=e.color?Ie[e.color]||`var(${e.color})`:void 0,u=e.weight?Le[e.weight]:void 0,d=e.component===`ul`?14:void 0,f=i&&e.textAlignSmDown?e.textAlignSmDown:o&&e.textAlignMdDown?e.textAlignMdDown:e.textAlign,p=e.breakWord?`break-word`:void 0,m;return t[4]!==e||t[5]!==s||t[6]!==l||t[7]!==u||t[8]!==d||t[9]!==f||t[10]!==p?(m=I(e.component,{className:s,style:{color:l,fontWeight:u,paddingLeft:d,textAlign:f,width:e.width,maxWidth:e.maxWidth,wordBreak:p,...e.noWrapEllipsis?{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`}:{},...e.style},"data-testid":e[`data-testid`],onClick:e.onClick},e.children),t[4]=e,t[5]=s,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m):m=t[11],m}const ze=r[`--v-gray-600`],Be=2e3;async function Ve(e){return K(await q(e.code,{lang:e.lang,theme:`github-dark-default`,transformers:[{code(e){let t=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${t}font-family: var(--font-geist-mono);`},line(e,t){let n=typeof e.properties.style==`string`?e.properties.style+`;`:``;e.properties.style=`${n}display:block;padding-left:3.5em;line-height:20px`,e.children.unshift({type:`element`,tagName:`span`,properties:{style:`margin-left:-3.5em;color:${r[`--v-gray-500`]};user-select:none;display:inline-block;width:2em;margin-right:1.5em;text-align:right`},children:[{type:`text`,value:String(t)}]})}}]}),{Fragment:P,jsx:z,jsxs:B,components:{pre:t=>z(`pre`,{...t,style:{...t.style,padding:`14px 16px`,fontSize:13,lineHeight:0,overflow:`auto`,whiteSpace:e.wrap?`pre-wrap`:`pre`,margin:0,background:r[`--v-gray-100`],borderBottomLeftRadius:n[`--v-border-radius`],borderBottomRightRadius:n[`--v-border-radius`],maxHeight:e.maxHeight}})}})}function He(e){let t=c(93),i=je(),[a,o]=ne(null),[l,d]=ne(!1),[f,p]=ne(!1),[b,x]=ne(e.defaultCollapsed??!1),S=e.collapsed??b,T;t[0]===e?T=t[1]:(T=t=>{e.collapsed===void 0&&x(t),e.onCollapsedChange?.(t)},t[0]=e,t[1]=T);let D=T,O,k;t[2]!==e.content||t[3]!==e.lang||t[4]!==e.maxHeight||t[5]!==l?(O=()=>{Ve({code:e.content,lang:e.lang,wrap:l,maxHeight:e.maxHeight}).then(o)},k=[e.content,e.lang,e.maxHeight,l],t[2]=e.content,t[3]=e.lang,t[4]=e.maxHeight,t[5]=l,t[6]=O,t[7]=k):(O=t[6],k=t[7]),te(O,k);let A,j;t[8]===f?(A=t[9],j=t[10]):(A=()=>{if(!f)return;let e=window.setTimeout(()=>p(!1),Be);return()=>window.clearTimeout(e)},j=[f],t[8]=f,t[9]=A,t[10]=j),ee(A,j);let M;t[11]===e.style?M=t[12]:(M={position:`relative`,background:r[`--v-background`],borderRadius:n[`--v-border-radius`],...e.style},t[11]=e.style,t[12]=M);let N;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(N={color:ze,borderTopLeftRadius:n[`--v-border-radius`],borderTopRightRadius:n[`--v-border-radius`],border:`1px solid ${r[`--v-strokes`]}`},t[13]=N):N=t[13];let P;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(P=z(y,{height:16,width:16}),t[14]=P):P=t[14];let F;t[15]===e.title?F=t[16]:(F=B(de,{alignItems:`center`,gap:16,children:[P,z(Re,{component:`span`,type:`copy-13`,weight:`400`,children:e.title})]}),t[15]=e.title,t[16]=F);let I;t[17]!==S||t[18]!==D||t[19]!==i?(I=!S&&z(E,{title:i.t(`component.vcode.collapse_code`),placement:`top`,children:z(w,{"aria-label":i.t(`component.vcode.collapse_code`),"aria-expanded":!0,onClick:()=>D(!0),style:{border:`none`,margin:0,display:`flex`,alignItems:`center`,color:ze},children:z(_,{height:16,width:16})})}),t[17]=S,t[18]=D,t[19]=i,t[20]=I):I=t[20];let L;t[21]===i?L=t[22]:(L=i.t(`component.vcode.download_file`),t[21]=i,t[22]=L);let R;t[23]===i?R=t[24]:(R=i.t(`component.vcode.download_file`),t[23]=i,t[24]=R);let re;t[25]!==e.content||t[26]!==e.title?(re=()=>{let t=new Blob([e.content],{type:`text/plain`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=e.title,r.click(),URL.revokeObjectURL(n)},t[25]=e.content,t[26]=e.title,t[27]=re):re=t[27];let ie,ae;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(ie={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:ze},ae=z(m,{height:16,width:16}),t[28]=ie,t[29]=ae):(ie=t[28],ae=t[29]);let V;t[30]!==R||t[31]!==re?(V=z(w,{"aria-label":R,onClick:re,style:ie,children:ae}),t[30]=R,t[31]=re,t[32]=V):V=t[32];let H;t[33]!==L||t[34]!==V?(H=z(E,{title:L,placement:`top`,children:V}),t[33]=L,t[34]=V,t[35]=H):H=t[35];let U;t[36]===i?U=t[37]:(U=i.t(`component.vcode.toggle_wrap`),t[36]=i,t[37]=U);let W;t[38]===i?W=t[39]:(W=i.t(`component.vcode.toggle_wrap`),t[38]=i,t[39]=W);let oe,se;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(oe=()=>d(Ue),se={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:ze},t[40]=oe,t[41]=se):(oe=t[40],se=t[41]);let G;t[42]===l?G=t[43]:(G=z(l?g:h,{height:16,width:16}),t[42]=l,t[43]=G);let K;t[44]!==W||t[45]!==G?(K=z(w,{"aria-label":W,onClick:oe,style:se,children:G}),t[44]=W,t[45]=G,t[46]=K):K=t[46];let q;t[47]!==U||t[48]!==K?(q=z(E,{title:U,placement:`top`,children:K}),t[47]=U,t[48]=K,t[49]=q):q=t[49];let J;t[50]!==f||t[51]!==i?(J=f?i.t(`component.vcode.copy_success`):i.t(`component.vcode.copy_to_clipboard`),t[50]=f,t[51]=i,t[52]=J):J=t[52];let Y;t[53]!==f||t[54]!==i?(Y=f?i.t(`component.vcode.copy_success`):i.t(`component.vcode.copy_to_clipboard`),t[53]=f,t[54]=i,t[55]=Y):Y=t[55];let X;t[56]!==e.content||t[57]!==i?(X=async t=>{t.stopPropagation();try{await s.copyToClipboard(e.content),p(!0),Oe({type:`success`,title:i.t(`component.vcode.copy_success`),durationInMs:Be})}catch{Oe({type:`error`,title:i.t(`component.vcode.copy_failed`)})}},t[56]=e.content,t[57]=i,t[58]=X):X=t[58];let ce;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(ce={border:`none`,margin:0,display:`flex`,alignItems:`center`,color:ze},t[59]=ce):ce=t[59];let le;t[60]===f?le=t[61]:(le=f?z(u,{height:16,width:16,color:r[`--v-green-700`]}):z(v,{height:16,width:16}),t[60]=f,t[61]=le);let ue;t[62]!==Y||t[63]!==X||t[64]!==le?(ue=z(w,{"aria-label":Y,onClick:X,style:ce,children:le}),t[62]=Y,t[63]=X,t[64]=le,t[65]=ue):ue=t[65];let Z;t[66]!==J||t[67]!==ue?(Z=z(E,{title:J,placement:`top`,children:ue}),t[66]=J,t[67]=ue,t[68]=Z):Z=t[68];let Q;t[69]!==H||t[70]!==q||t[71]!==Z||t[72]!==I?(Q=B(de,{alignItems:`center`,gap:8,children:[I,H,q,Z]}),t[69]=H,t[70]=q,t[71]=Z,t[72]=I,t[73]=Q):Q=t[73];let $;t[74]!==Q||t[75]!==F?($=B(de,{style:N,gap:40,alignItems:`center`,justifyContent:`space-between`,padding:`6px 12px 6px 16px`,children:[F,Q]}),t[74]=Q,t[75]=F,t[76]=$):$=t[76];let fe=e.maxHeight??110,pe=S?110:void 0,me=S?`hidden`:void 0,he;t[77]!==fe||t[78]!==pe||t[79]!==me?(he={position:`relative`,minHeight:fe,maxHeight:pe,overflow:me,borderLeft:`1px solid ${r[`--v-strokes`]}`,borderBottom:`1px solid ${r[`--v-strokes`]}`,borderRight:`1px solid ${r[`--v-strokes`]}`,borderBottomLeftRadius:n[`--v-border-radius`],borderBottomRightRadius:n[`--v-border-radius`]},t[77]=fe,t[78]=pe,t[79]=me,t[80]=he):he=t[80];let ge;t[81]!==S||t[82]!==D||t[83]!==i?(ge=S&&z(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9))`},children:z(C,{variant:`outlined`,size:`small`,"aria-expanded":!1,onClick:()=>D(!1),children:i.t(`component.vcode.view_code`)})}),t[81]=S,t[82]=D,t[83]=i,t[84]=ge):ge=t[84];let _e;t[85]!==a||t[86]!==he||t[87]!==ge?(_e=B(`div`,{style:he,children:[a,ge]}),t[85]=a,t[86]=he,t[87]=ge,t[88]=_e):_e=t[88];let ve;return t[89]!==$||t[90]!==_e||t[91]!==M?(ve=z(De,{theme:`dark`,children:B(de,{flexDirection:`column`,style:M,children:[$,_e]})}),t[89]=$,t[90]=_e,t[91]=M,t[92]=ve):ve=t[92],ve}function Ue(e){return!e}function We(e){let t=c(21),i=je(),a=e.onRetry,o=`14px ${a?20:28}px 14px 28px`,s;t[0]===e.singleLine?s=t[1]:(s=e.singleLine?{whiteSpace:`nowrap`,minWidth:0,flexGrow:1}:{},t[0]=e.singleLine,t[1]=s);let u;t[2]!==e.style||t[3]!==o||t[4]!==s?(u={color:r[`--v-alert-error-text`],background:r[`--v-alert-error-background`],borderRadius:n[`--v-border-radius`],border:`1px solid ${r[`--v-alert-error-border`]}`,padding:o,display:`flex`,alignItems:`center`,justifyContent:`space-between`,fontSize:13,fontWeight:400,lineHeight:`15px`,maxWidth:`100%`,...s,...e.style},t[2]=e.style,t[3]=o,t[4]=s,t[5]=u):u=t[5];let d=a?12:0,f;t[6]===d?f=t[7]:(f={marginRight:d,overflow:`hidden`,textOverflow:`ellipsis`},t[6]=d,t[7]=f);let p;t[8]!==e.children||t[9]!==f?(p=z(`div`,{style:f,children:e.children}),t[8]=e.children,t[9]=f,t[10]=p):p=t[10];let m;t[11]!==e||t[12]!==i?(m=e.onRetry&&z(E,{title:i.t(`component.verrorbox.retry`),placement:`bottom`,children:z(w,{onClick:t=>{t.stopPropagation(),e.onRetry?.()},style:{marginLeft:`auto`,color:r[`--v-alert-error-text`]},children:z(l,{style:{width:16}})})}),t[11]=e,t[12]=i,t[13]=m):m=t[13];let h;t[14]!==u||t[15]!==p||t[16]!==m?(h=B(`div`,{style:u,children:[p,m]}),t[14]=u,t[15]=p,t[16]=m,t[17]=h):h=t[17];let g;return t[18]!==e.tooltip||t[19]!==h?(g=z(E,{title:e.tooltip,placement:`top`,children:h}),t[18]=e.tooltip,t[19]=h,t[20]=g):g=t[20],g}function Ge(e){let t=c(22),n=N(),r;t[0]===n.breakpoints?r=t[1]:(r=n.breakpoints.down(`sm`),t[0]=n.breakpoints,t[1]=r);let i=M(r),a;t[2]===n.breakpoints?a=t[3]:(a=n.breakpoints.down(`md`),t[2]=n.breakpoints,t[3]=a);let o=M(a),s=i&&e.columnsSmDown?e.columnsSmDown:o&&e.columnsMdDown?e.columnsMdDown:e.columns,l=e.rowGap||e.gap,u=e.columnGap||e.gap,d=typeof e.padding==`number`?e.padding:e.padding?.top,f=typeof e.padding==`number`?e.padding:e.padding?.bottom,p=typeof e.padding==`number`?e.padding:e.padding?.left,m=typeof e.padding==`number`?e.padding:e.padding?.right,h=typeof e.margin==`number`?e.margin:e.margin?.top,g=typeof e.margin==`number`?e.margin:e.margin?.bottom,_=typeof e.margin==`number`?e.margin:e.margin?.left,v=typeof e.margin==`number`?e.margin:e.margin?.right,y;t[4]!==s||t[5]!==e.alignItems||t[6]!==e.gap||t[7]!==e.maxWidth||t[8]!==_||t[9]!==v||t[10]!==l||t[11]!==u||t[12]!==d||t[13]!==f||t[14]!==p||t[15]!==m||t[16]!==h||t[17]!==g?(y={display:`grid`,gridTemplateColumns:s,gap:e.gap,rowGap:l,columnGap:u,paddingTop:d,paddingBottom:f,paddingLeft:p,paddingRight:m,marginTop:h,marginBottom:g,marginLeft:_,marginRight:v,alignItems:e.alignItems,maxWidth:e.maxWidth},t[4]=s,t[5]=e.alignItems,t[6]=e.gap,t[7]=e.maxWidth,t[8]=_,t[9]=v,t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=p,t[15]=m,t[16]=h,t[17]=g,t[18]=y):y=t[18];let b;return t[19]!==e.children||t[20]!==y?(b=z(`div`,{style:y,children:e.children}),t[19]=e.children,t[20]=y,t[21]=b):b=t[21],b}const Ke={en:{"component.vcode.copy_failed":`Copy to clipboard failed.`,"component.vcode.copy_success":`Copied to clipboard.`,"component.vcode.copy_to_clipboard":`Copy to clipboard`,"component.vcode.toggle_wrap":`Toggle line wrap`,"component.vcode.download_file":`Download file`,"component.vcode.collapse_code":`Collapse code`,"component.vcode.view_code":`View Code`,"component.vchip.copy_failed":`Copy to clipboard failed.`,"component.vchip.copy_success":`Copied to clipboard`,"component.vchip.copy_to_clipboard":`Copy to clipboard`,"component.verrorbox.retry":`Retry`,"component.theme_toggle.auto_mode":`System theme`,"component.theme_toggle.light_mode":`Light mode`,"component.theme_toggle.dark_mode":`Dark mode`},de:{"component.vcode.copy_failed":`Kopieren in die Zwischenablage fehlgeschlagen.`,"component.vcode.copy_success":`In die Zwischenablage kopiert.`,"component.vcode.copy_to_clipboard":`In die Zwischenablage kopieren`,"component.vcode.toggle_wrap":`Zeilenumbruch umschalten`,"component.vcode.download_file":`Datei herunterladen`,"component.vcode.collapse_code":`Code einklappen`,"component.vcode.view_code":`Code anzeigen`,"component.vchip.copy_failed":`Kopieren in die Zwischenablage fehlgeschlagen.`,"component.vchip.copy_success":`In die Zwischenablage kopiert`,"component.vchip.copy_to_clipboard":`In die Zwischenablage kopieren`,"component.verrorbox.retry":`Erneut versuchen`,"component.theme_toggle.auto_mode":`System theme`,"component.theme_toggle.light_mode":`Light mode`,"component.theme_toggle.dark_mode":`Dark mode`}};function qe(e){let t=c(7),n=e.messages[e.locale]??e.messages.en,r=Ke[e.locale],i;t[0]!==n||t[1]!==r?(i={...r,...n},t[0]=n,t[1]=r,t[2]=i):i=t[2];let a=i,o;return t[3]!==a||t[4]!==e.children||t[5]!==e.locale?(o=z(se,{locale:e.locale,messages:a,children:e.children}),t[3]=a,t[4]=e.children,t[5]=e.locale,t[6]=o):o=t[6],o}function Je(e){let t=Ae();function n(t){let n=c(2),r;return n[0]===t?r=n[1]:(r=z(qe,{...t,messages:e}),n[0]=t,n[1]=r),r}return{VIntlProvider:n,useVIntl:t}}var Ye={container:`z7PbZq_container`,inner:`z7PbZq_inner`,wobble:`z7PbZq_wobble`};const Xe=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:Ye.inner}),t[6]=y):y=t[6];let b;return t[7]===v?b=t[8]:(b=z(`div`,{className:Ye.container,style:v,children:y}),t[7]=v,t[8]=b),b};var Ze={car:`_3zRF4q_car`,container:`_3zRF4q_container`,inner:`_3zRF4q_inner`,track:`_3zRF4q_track`,travel:`_3zRF4q_travel`};function Qe(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 $e=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=Qe(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:Ze.track,strokeWidth:f,fill:`none`,pathLength:`100`,d:_}),E=z(`path`,{className:Ze.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:Ze.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:Ze.container,style:C,children:D}),t[18]=C,t[19]=D,t[20]=O):O=t[20],O};function et(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($e,{color:r[`--v-gray-1000`],size:e.type.size??40,speed:`0.9`}):z(Xe,{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 tt=new URL(`./logos/eu_icon.jpg`,import.meta.url).href,nt=new URL(`./logos/eu_text.svg`,import.meta.url).href,rt=new URL(`./logos/finanzonline_icon.png`,import.meta.url).href,it=new URL(`./logos/google_icon.png`,import.meta.url).href,at=new URL(`./logos/google_text.svg`,import.meta.url).href,ot=new URL(`./logos/microsoft_icon.svg`,import.meta.url).href,st=new URL(`./logos/secly_icon_rounded_black_on_white.svg`,import.meta.url).href,ct=new URL(`./logos/secly_icon_rounded_white_on_black.svg`,import.meta.url).href,lt=new URL(`./logos/secly_text_black.svg`,import.meta.url).href,ut=new URL(`./logos/secly_text_white.svg`,import.meta.url).href,dt=new URL(`./logos/sevdesk_icon.png`,import.meta.url).href,ft=new URL(`./logos/stripe_icon.svg`,import.meta.url).href,pt=new URL(`./logos/voidly_icon_rounded_black_on_white.svg`,import.meta.url).href,mt=new URL(`./logos/voidly_icon_rounded_white_on_black.svg`,import.meta.url).href,ht=new URL(`./logos/voidly_text_black.svg`,import.meta.url).href,gt=new URL(`./logos/voidly_text_white.svg`,import.meta.url).href,_t={euFlag:{src:tt,alt:`European Union Flag`,width:600,height:401},euFlagWithText:{src:nt,alt:`European Union Flag With Text`,width:172,height:48},finanzonline:{src:rt,alt:`Finanzonline Logo`,width:180,height:180},googleIcon:{src:it,alt:`Google Logo`,width:512,height:512},googleText:{src:at,alt:`Google Logo`,width:272,height:92},microsoftIcon:{src:ot,alt:`Microsoft Logo`,width:1528,height:1528},seclyIconRoundedBlackOnWhite:{src:st,alt:`Secly Logo`,width:200,height:200},seclyIconRoundedWhiteOnBlack:{src:ct,alt:`Secly Logo`,width:200,height:200},seclyTextBlack:{src:lt,alt:`Secly Logo`,width:157,height:62},seclyTextWhite:{src:ut,alt:`Secly Logo`,width:157,height:62},sevdesk:{src:dt,alt:`Sevdesk Logo`,width:256,height:256},stripe:{src:ft,alt:`Stripe Logo`,width:512,height:512},voidlyIconRoundedBlackOnWhite:{src:pt,alt:`Voidly Logo`,width:200,height:200},voidlyIconRoundedWhiteOnBlack:{src:mt,alt:`Voidly Logo`,width:200,height:200},voidlyTextBlack:{src:ht,alt:`Voidly Logo`,width:200,height:94},voidlyTextWhite:{src:gt,alt:`Voidly Logo`,width:200,height:94}};function vt(e){if(typeof e==`number`)return Number.isFinite(e)&&e>0?e:void 0;if(typeof e==`string`&&/^\d+(\.\d+)?$/.test(e.trim())){let t=Number(e);return Number.isFinite(t)&&t>0?t:void 0}}function yt(e,t,n){let r=_t[e],i=vt(t),a=vt(n),o=r.width/r.height;if(i&&a){let e=Math.min(i,a*o);return{width:Math.round(e),height:Math.round(e/o)}}return i?{width:Math.round(i),height:Math.round(i/o)}:a?{width:Math.round(a*o),height:Math.round(a)}:{width:r.width,height:r.height}}function bt(e){let t=c(6),n,r;if(t[0]!==e.height||t[1]!==e.name||t[2]!==e.renderImage||t[3]!==e.width){r=Symbol.for(`react.early_return_sentinel`);bb0:{let t=yt(e.name,e.width,e.height),i={src:_t[e.name].src,alt:_t[e.name].alt,width:t.width,height:t.height};if(e.renderImage){r=e.renderImage(i);break bb0}n=z(`img`,{...i})}t[0]=e.height,t[1]=e.name,t[2]=e.renderImage,t[3]=e.width,t[4]=n,t[5]=r}else n=t[4],r=t[5];return r===Symbol.for(`react.early_return_sentinel`)?n:r}const xt=`6px 6px`,St={auto:{solid:e=>z(J.ComputerDesktopIcon,{width:e.size,height:e.size}),outlined:e=>z(p.ComputerDesktopIcon,{width:e.size,height:e.size})},darkmode:{solid:e=>z(J.MoonIcon,{width:e.size,height:e.size}),outlined:e=>z(p.MoonIcon,{width:e.size,height:e.size})},lightmode:{solid:e=>z(J.SunIcon,{width:e.size,height:e.size}),outlined:e=>z(p.SunIcon,{width:e.size,height:e.size})}};function Ct(e){let t=c(9),n;t[0]===e.color?n=t[1]:(n={color:e.color,display:`flex`},t[0]=e.color,t[1]=n);let r;t[2]!==e.name||t[3]!==e.size||t[4]!==e.variant?(r=St[e.name][e.variant]?.({size:e.size}),t[2]=e.name,t[3]=e.size,t[4]=e.variant,t[5]=r):r=t[5];let i;return t[6]!==n||t[7]!==r?(i=z(`span`,{style:n,children:r}),t[6]=n,t[7]=r,t[8]=i):i=t[8],i}function wt(e){let t=c(55),{t:i}=je(),a=Ee(),o;t[0]===e.style?o=t[1]:(o={display:`flex`,alignItems:`center`,gap:8,fontSize:12,fontWeight:`600`,...e.style},t[0]=e.style,t[1]=o);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l={border:`1px solid ${r[`--v-strokes`]}`,borderRadius:n[`--v-border-radius`],overflow:`hidden`},t[2]=l):l=t[2];let u;t[3]===i?u=t[4]:(u=i(`component.theme_toggle.auto_mode`),t[3]=i,t[4]=u);let d=a.themePreference===`auto`?r[`--v-gray-100`]:r[`--v-gray-200`],f;t[5]===d?f=t[6]:(f={borderRadius:0,padding:xt,minWidth:`auto`,background:d},t[5]=d,t[6]=f);let p;t[7]===a?p=t[8]:(p=()=>{s.withoutCSSTransitions(()=>{a.setTheme(`auto`)})},t[7]=a,t[8]=p);let m=a.themePreference===`auto`?`solid`:`outlined`,h;t[9]===m?h=t[10]:(h=z(Ct,{name:`auto`,variant:m,size:12}),t[9]=m,t[10]=h);let g;t[11]!==f||t[12]!==p||t[13]!==h?(g=z(C,{style:f,onClick:p,children:h}),t[11]=f,t[12]=p,t[13]=h,t[14]=g):g=t[14];let _;t[15]!==u||t[16]!==g?(_=z(E,{title:u,children:g}),t[15]=u,t[16]=g,t[17]=_):_=t[17];let v;t[18]===i?v=t[19]:(v=i(`component.theme_toggle.light_mode`),t[18]=i,t[19]=v);let y=a.themePreference===`light`?r[`--v-gray-100`]:r[`--v-gray-200`],b;t[20]===y?b=t[21]:(b={borderRadius:0,padding:xt,minWidth:`auto`,background:y},t[20]=y,t[21]=b);let x;t[22]===a?x=t[23]:(x=()=>{s.withoutCSSTransitions(()=>{a.setTheme(`light`)})},t[22]=a,t[23]=x);let S=a.themePreference===`light`?`solid`:`outlined`,w;t[24]===S?w=t[25]:(w=z(Ct,{name:`lightmode`,variant:S,size:12}),t[24]=S,t[25]=w);let T;t[26]!==b||t[27]!==x||t[28]!==w?(T=z(C,{style:b,onClick:x,children:w}),t[26]=b,t[27]=x,t[28]=w,t[29]=T):T=t[29];let D;t[30]!==v||t[31]!==T?(D=z(E,{title:v,children:T}),t[30]=v,t[31]=T,t[32]=D):D=t[32];let O;t[33]===i?O=t[34]:(O=i(`component.theme_toggle.dark_mode`),t[33]=i,t[34]=O);let k=a.themePreference===`dark`?r[`--v-gray-100`]:r[`--v-gray-200`],A;t[35]===k?A=t[36]:(A={borderRadius:0,padding:xt,minWidth:`auto`,background:k},t[35]=k,t[36]=A);let j;t[37]===a?j=t[38]:(j=()=>{s.withoutCSSTransitions(()=>{a.setTheme(`dark`)})},t[37]=a,t[38]=j);let M=a.themePreference===`dark`?`solid`:`outlined`,N;t[39]===M?N=t[40]:(N=z(Ct,{name:`darkmode`,variant:M,size:12}),t[39]=M,t[40]=N);let P;t[41]!==A||t[42]!==j||t[43]!==N?(P=z(C,{style:A,onClick:j,children:N}),t[41]=A,t[42]=j,t[43]=N,t[44]=P):P=t[44];let F;t[45]!==O||t[46]!==P?(F=z(E,{title:O,children:P}),t[45]=O,t[46]=P,t[47]=F):F=t[47];let I;t[48]!==D||t[49]!==F||t[50]!==_?(I=z(`div`,{children:B(de,{style:l,children:[_,D,F]})}),t[48]=D,t[49]=F,t[50]=_,t[51]=I):I=t[51];let L;return t[52]!==o||t[53]!==I?(L=z(`div`,{style:o,children:I}),t[52]=o,t[53]=I,t[54]=L):L=t[54],L}export{ce as VAlert,le as VCard,Fe as VChip,He as VCode,We as VErrorBox,de as VFlex,Ge as VGrid,et as VLoading,bt as VLogo,_t as VLogoSources,Re as VText,De as VTheme,wt as VThemeToggle,ke as VToast,Je as createVIntl,Oe as showVToast,Ee as useVThemeContext};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
[data-sonner-toaster][data-theme=light],[data-sonner-toaster][data-theme=dark],[data-rich-colors=true][data-sonner-toast],[data-rich-colors=true][data-sonner-toast] [data-close-button]{--normal-bg:var(--v-gray-100)!important;--normal-border:var(--v-gray-300)!important;--normal-text:var(--v-gray-700)!important;--success-bg:var(--v-alert-success-background)!important;--success-text:var(--v-alert-success-text)!important;--success-border:var(--v-alert-success-border)!important;--info-bg:var(--v-alert-info-background)!important;--info-text:var(--v-alert-info-text)!important;--info-border:var(--v-alert-info-border)!important;--warning-bg:var(--v-alert-warning-background)!important;--warning-text:var(--v-alert-warning-text)!important;--warning-border:var(--v-alert-warning-border)!important;--error-bg:var(--v-alert-error-background)!important;--error-text:var(--v-alert-error-text)!important;--error-border:var(--v-alert-error-border)!important;--toast-icon-margin-end:12px!important}[data-rich-colors=true][data-sonner-toast][data-type=success]:hover [data-close-button]:hover{background:var(--v-alert-success-background-hover)!important;border-color:var(--success-border)!important}[data-rich-colors=true][data-sonner-toast][data-type=info]:hover [data-close-button]:hover{background:var(--v-alert-info-background-hover)!important;border-color:var(--info-border)!important}[data-rich-colors=true][data-sonner-toast][data-type=warning]:hover [data-close-button]:hover{background:var(--v-alert-warning-background-hover)!important;border-color:var(--warning-border)!important}[data-rich-colors=true][data-sonner-toast][data-type=error]:hover [data-close-button]:hover{background:var(--v-alert-error-background-hover)!important;border-color:var(--error-border)!important}.z7PbZq_container{height:var(--uib-stroke);width:var(--uib-size);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.z7PbZq_inner{height:var(--uib-stroke);width:var(--uib-size);border-radius:calc(var(--uib-stroke) / 2);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden;transform:translate(0)}.z7PbZq_inner:before{content:"";background-color:var(--uib-color);width:100%;height:100%;opacity:var(--uib-bg-opacity);transition:background-color .3s;position:absolute;top:0;left:0}.z7PbZq_inner:after{content:"";border-radius:calc(var(--uib-stroke) / 2);width:100%;height:100%;animation:z7PbZq_wobble var(--uib-speed) ease-in-out infinite;background-color:var(--uib-color);transition:background-color .3s;transform:translate(-95%)}@keyframes z7PbZq_wobble{0%,to{transform:translate(-95%)}50%{transform:translate(95%)}}._3zRF4q_container{height:var(--uib-size);width:var(--uib-size);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}._3zRF4q_inner{height:var(--uib-size);width:var(--uib-size);transform-origin:50%;overflow:visible}._3zRF4q_car{fill:none;stroke:var(--uib-color);stroke-dasharray:var(--uib-dash), var(--uib-gap);stroke-dashoffset:0;stroke-linecap:round;animation:_3zRF4q_travel var(--uib-speed) linear infinite;will-change:stroke-dasharray, stroke-dashoffset;transition:stroke .5s}._3zRF4q_track{stroke:var(--uib-color);opacity:var(--uib-bg-opacity);transition:stroke .5s}@keyframes _3zRF4q_travel{0%{stroke-dashoffset:0}to{stroke-dashoffset:-100px}}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
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
|
|
9
|
+
declare const useVWindowSize: () => {
|
|
8
10
|
height: number;
|
|
9
11
|
width: number;
|
|
10
12
|
};
|
|
11
13
|
//#endregion
|
|
12
|
-
//#region src/utils/
|
|
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
|
|
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/
|
|
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
|
|
36
|
+
declare function useVIsClient(): boolean;
|
|
35
37
|
//#endregion
|
|
36
|
-
//#region src/utils/
|
|
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
|
|
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
|
|
45
|
+
declare function useVIsServer(): boolean;
|
|
44
46
|
//#endregion
|
|
45
|
-
//#region src/utils/
|
|
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
|
|
56
|
+
declare function useVForceRerender(): {
|
|
55
57
|
rerender: () => void;
|
|
56
58
|
};
|
|
57
59
|
//#endregion
|
|
58
|
-
//#region src/utils/
|
|
59
|
-
declare const
|
|
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 {
|
|
78
|
+
export { VUtils, useVForceRerender, useVIsClient, useVIsServer, useVOnScroll, useVWindowSize };
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,i as t,n,o as r,r as i,t as a}from"../utils-
|
|
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.
|
|
4
|
+
"version": "1.0.57",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "Private",
|
|
7
7
|
"engines": {
|
|
@@ -68,12 +68,14 @@
|
|
|
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
|
|
73
|
-
"sonner": "2.0.
|
|
74
|
-
"geist": "1.7.0"
|
|
74
|
+
"shiki": "4.4.3",
|
|
75
|
+
"sonner": "2.0.8"
|
|
75
76
|
},
|
|
76
77
|
"inlinedDependencies": {
|
|
78
|
+
"csstype": "3.2.3",
|
|
77
79
|
"intl-messageformat": "11.2.6"
|
|
78
80
|
}
|
|
79
81
|
}
|
package/dist/utils-CJ1T8QWy.js
DELETED
|
@@ -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};
|