@aivex/ui 1.1.0-dev.23 → 1.1.0-dev.25
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/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +174 -206
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -2
- package/dist/tokens/tokens.css +14 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes, Ref } from "react";
|
|
2
|
-
export type ProgressBarColor = "success" | "warning" | "info" | "danger"
|
|
2
|
+
export type ProgressBarColor = "success" | "warning" | "info" | "danger";
|
|
3
3
|
export interface ProgressBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
|
|
4
4
|
current: number;
|
|
5
5
|
total: number;
|
package/dist/index.cjs
CHANGED
|
@@ -51,5 +51,5 @@ You can add a description to the \`${gv}\` by passing a \`${Cv}\` component as a
|
|
|
51
51
|
|
|
52
52
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${gv}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
53
53
|
|
|
54
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return d.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},Av=lv,jv=pv,Mv=hv,Nv=bv,Pv=Ov,Fv=Sv,Iv=wv,Lv=(0,l.cva)(`aivex:fixed aivex:inset-0 aivex:z-40`,{variants:{type:{dim:`aivex:bg-black/50`,frost:`aivex:backdrop-blur-sm aivex:bg-white/30`}},defaultVariants:{type:`dim`}});function Rv({className:e,type:t=`dim`,ref:n,...r}){return(0,f.jsx)(`div`,{ref:n,"aria-hidden":`true`,className:U(Lv({type:t}),e),...r})}var zv={default:{component:Al,className:`aivex:text-icon-success`},warning:{component:fp,className:`aivex:text-icon-warning`}};function Bv({open:e,defaultOpen:t,onOpenChange:n,variant:r=`default`,title:i,description:a,children:o,cancelButton:s,confirmButton:c,showIcon:l=!1,ref:u,...d}){let p=zv[r],m=l?p.component:null,h=!!m,g=r===`warning`?`danger`:`primary`;return(0,f.jsx)(Av,{open:e,defaultOpen:t,onOpenChange:n,...d,children:(0,f.jsxs)(jv,{children:[(0,f.jsx)(Mv,{asChild:!0,children:(0,f.jsx)(Rv,{type:`dim`})}),(0,f.jsx)(Nv,{ref:u,className:`aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-50 aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none`,children:(0,f.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl`,children:[(0,f.jsxs)(`div`,{className:U(`aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs`,h?`aivex:items-center aivex:justify-center aivex:text-center`:`aivex:items-start aivex:text-left`),children:[m&&(0,f.jsx)(`span`,{className:U(`aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none`,p.className),children:(0,f.jsx)(m,{size:28})}),(0,f.jsx)(Fv,{className:`aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary`,children:i}),a&&(0,f.jsx)(Iv,{className:`aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary`,children:a}),o]}),(s||c)&&(0,f.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg`,children:[s&&(0,f.jsx)(Vv,{...s}),c&&(0,f.jsx)(Hv,{...c,defaultColor:g})]})]})})]})})}function Vv({children:e,onClick:t,...n}){return(0,f.jsx)(Pv,{asChild:!0,children:(0,f.jsx)(gm,{variant:`solid`,color:`secondary`,size:`lg`,className:`aivex:min-w-0 aivex:basis-0 aivex:flex-1`,onClick:e=>{t?.(e)},...n,children:e})})}function Hv({children:e,defaultColor:t,onClick:n,...r}){return(0,f.jsx)(gm,{variant:`solid`,color:t,size:`lg`,className:`aivex:min-w-0 aivex:basis-0 aivex:flex-1`,onClick:e=>{n?.(e)},...r,children:e})}var Uv=(0,l.cva)(`aivex:shrink-0`,{variants:{strength:{basic:``,bold:``},direction:{horizontal:`aivex:w-full`,vertical:`aivex:h-full`}},compoundVariants:[{strength:`basic`,direction:`horizontal`,className:`aivex:border-t aivex:border-border-default`},{strength:`basic`,direction:`vertical`,className:`aivex:border-l aivex:border-border-default`},{strength:`bold`,direction:`horizontal`,className:`aivex:border-t-2 aivex:border-border-subtle`},{strength:`bold`,direction:`vertical`,className:`aivex:border-l-2 aivex:border-border-subtle`}],defaultVariants:{strength:`basic`,direction:`horizontal`}});function Wv({className:e,strength:t,direction:n,ref:r,...i}){return(0,f.jsx)(`hr`,{ref:r,"aria-orientation":n===`vertical`?`vertical`:`horizontal`,className:U(Uv({strength:t,direction:n}),e),...i})}var Gv=(0,l.cva)(`aivex:relative aivex:group aivex:inline-flex aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:transition-colors aivex:disabled:pointer-events-none aivex:disabled:opacity-disable aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand`,{variants:{size:{xs:`aivex:size-xl aivex:rounded-xs`,sm:`aivex:size-2xl aivex:rounded-xs`,md:`aivex:size-3xl aivex:rounded-sm`},shape:{rectangle:``,rounded:`aivex:rounded-full`}},defaultVariants:{size:`sm`,shape:`rectangle`}}),Kv={xs:`aivex:size-xl`,sm:`aivex:size-2xl`,md:`aivex:size-3xl`},qv={xs:`aivex:-inset-2xs`,sm:`aivex:-inset-xs`,md:`aivex:-inset-xs`},Jv={xs:{rectangle:`aivex:rounded-xs`,rounded:`aivex:rounded-full`},sm:{rectangle:`aivex:rounded-sm`,rounded:`aivex:rounded-full`},md:{rectangle:`aivex:rounded-md`,rounded:`aivex:rounded-full`}};function Yv({className:e,size:t=`sm`,shape:n=`rectangle`,color:r=`primary`,error:i=!1,asChild:a=!1,children:o,ref:s,...c}){let l=a?m.Slot:`button`,u=i?`aivex:text-icon-danger`:r===`white`?`aivex:text-static-white`:`aivex:text-icon-primary`,d=i?`danger`:r===`white`?`white`:`default`,p=t??`sm`,h=n??`rectangle`;return(0,f.jsxs)(l,{ref:s,type:a?void 0:`button`,className:U(Gv({size:t,shape:n}),u,e),...c,children:[(0,f.jsx)(W,{variant:d,fill:!1,interactive:!0,className:U(qv[p],Jv[p][h])}),(0,f.jsx)(`span`,{className:U(`aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0`,Kv[p]),children:o})]})}var Xv=(0,l.cva)(`aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:transition-colors`,{variants:{state:{default:`aivex:border-border-default`,filled:`aivex:border-border-default`,focused:`aivex:border-border-brand aivex:shadow-[inset_0_0_0_1px_var(--aivex-border-brand)]`,error:`aivex:border-border-danger`,disabled:`aivex:border-border-disabled aivex:bg-bg-disabled aivex:opacity-disable aivex:pointer-events-none`},size:{sm:`aivex:rounded-sm`,md:`aivex:rounded-md`},layout:{inline:`aivex:items-center aivex:px-lg aivex:gap-xs`,block:`aivex:items-start aivex:px-lg aivex:gap-xs`,wrap:`aivex:flex-wrap aivex:items-center aivex:content-center aivex:px-md aivex:gap-xs`}},compoundVariants:[{layout:`inline`,size:`sm`,class:`aivex:h-8`},{layout:`inline`,size:`md`,class:`aivex:h-10`},{layout:`block`,size:`sm`,class:`aivex:py-xs aivex:min-h-8`},{layout:`block`,size:`md`,class:`aivex:py-lg aivex:min-h-10`},{layout:`wrap`,size:`sm`,class:`aivex:py-2xs aivex:min-h-8`},{layout:`wrap`,size:`md`,class:`aivex:py-2xs aivex:min-h-10`}],defaultVariants:{state:`default`,size:`md`,layout:`inline`}});function Zv({id:e,label:t,helperText:n,error:r,disabled:i,focused:a,filled:o,size:s=`md`,layout:c=`inline`,startContent:l,endContent:u,containerClassName:d,className:p,children:m}){let h=i?`disabled`:r?`error`:a?`focused`:o?`filled`:`default`,g=U(`aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs`,s===`sm`?`aivex:size-4 aivex:[&_svg]:size-4`:`aivex:size-5 aivex:[&_svg]:size-5`,h===`disabled`?`aivex:text-text-disabled`:h===`default`?`aivex:text-icon-tertiary`:`aivex:text-icon-secondary`);return(0,f.jsxs)(`div`,{className:U(`aivex:flex aivex:flex-col aivex:gap-xs aivex:w-full`,p),children:[t&&(0,f.jsx)(`label`,{htmlFor:e,className:U(`aivex:text-label-md aivex:text-text-secondary`,i&&`aivex:text-text-disabled`,!i&&r&&`aivex:text-text-danger`),children:t}),(0,f.jsxs)(`div`,{className:U(Xv({state:h,size:s,layout:c}),d),children:[l&&(0,f.jsx)(`span`,{className:g,children:l}),m,u&&(0,f.jsx)(`span`,{className:g,children:u})]}),n&&(0,f.jsx)(`p`,{className:U(`aivex:text-caption-md aivex:text-text-secondary aivex:line-clamp-2`,!i&&r&&`aivex:text-text-danger`),children:n})]})}var Qv=(0,l.cva)(`aivex:inline-flex aivex:rounded-md aivex:px-lg aivex:py-xs aivex:border aivex:text-body-md-regular`,{variants:{type:{basic:`aivex:bg-bg-secondary aivex:border-border-default aivex:text-text-secondary`,info:`aivex:bg-bg-info-subtle aivex:border-border-info-subtle aivex:text-icon-info`,success:`aivex:bg-bg-success-subtle aivex:border-border-success-subtle aivex:text-text-success`,warning:`aivex:bg-bg-warning-subtle aivex:border-border-warning-subtle aivex:text-text-warning`,danger:`aivex:bg-bg-danger-subtle aivex:border-border-danger-subtle aivex:text-text-danger`}},defaultVariants:{type:`basic`}}),$v={basic:{Icon:Bu,className:`aivex:text-icon-secondary`},info:{Icon:Bu,className:`aivex:text-icon-info`},success:{Icon:kl,className:`aivex:text-icon-success`},warning:{Icon:$f,className:`aivex:text-icon-warning`},danger:{Icon:pu,className:`aivex:text-icon-danger`}};function ey({className:e,type:t=`basic`,message:n,children:r,ref:i,...a}){let{Icon:o,className:s}=$v[t??`basic`],c=!!r;return(0,f.jsxs)(`div`,{ref:i,role:`status`,className:U(Qv({type:t}),c?`aivex:flex-col aivex:items-stretch`:`aivex:h-10 aivex:items-center aivex:gap-md`,e),...a,children:[(0,f.jsxs)(`div`,{className:U(`aivex:inline-flex aivex:items-center aivex:gap-md`,c&&`aivex:py-xs`),children:[(0,f.jsx)(`span`,{className:U(`aivex:inline-flex aivex:shrink-0 aivex:items-center aivex:justify-center`,s),children:(0,f.jsx)(o,{size:20})}),(0,f.jsx)(`span`,{className:c?void 0:`aivex:truncate`,children:n})]}),c&&(0,f.jsx)(`div`,{className:`aivex:pb-xs`,children:r})]})}var ty=(0,d.createContext)(!1),ny={sm:`aivex:max-w-modal-sm`,md:`aivex:max-w-modal-md`,lg:`aivex:max-w-modal-lg`,xl:`aivex:max-w-[960px]`,full:`aivex:h-[calc(100dvh-32px)] aivex:max-w-[calc(100vw-32px)]`},ry=U(`aivex:flex aivex:max-h-[80dvh] aivex:w-[85vw] aivex:flex-col aivex:gap-2xl aivex:overflow-hidden aivex:p-2xl`,`aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none`),iy=`aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs`;function ay({title:e,titleId:t,description:n,onClose:r,closeAriaLabel:i=`Close modal`,ref:a,...o}){let s=(0,d.useContext)(ty),c=(0,f.jsx)(`h2`,{...t?{id:t}:{},className:`aivex:m-0 aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary aivex:break-words`,children:e}),l=n?(0,f.jsx)(`p`,{className:`aivex:m-0 aivex:whitespace-pre-line aivex:text-body-md-regular aivex:text-text-secondary aivex:break-words`,children:n}):null,u=(0,f.jsx)(Yv,{size:`md`,onClick:r,className:`aivex:shrink-0`,"aria-label":i,children:(0,f.jsx)(Nl,{size:24})});return(0,f.jsxs)(`div`,{ref:a,className:iy,...o,children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:items-start aivex:justify-center aivex:gap-3xl`,children:[(0,f.jsx)(`div`,{className:`aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:justify-center`,children:s?(0,f.jsx)(nv,{asChild:!0,children:c}):c}),r?u:s&&(0,f.jsx)(iv,{asChild:!0,children:u})]}),s&&l?(0,f.jsx)(rv,{asChild:!0,children:l}):l]})}function oy({children:e,ref:t,...n}){return(0,f.jsx)(`div`,{ref:t,className:`aivex:min-h-0 aivex:flex-1 aivex:overflow-y-auto`,...n,children:e})}function sy({tertiaryButton:e,secondaryButton:t,primaryButton:n,ref:r,...i}){return(0,f.jsxs)(`div`,{ref:r,className:`aivex:flex aivex:h-10 aivex:w-full aivex:items-center aivex:justify-end aivex:gap-lg`,...i,children:[(0,f.jsx)(`div`,{className:`aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:justify-start`,children:e&&(0,f.jsx)(cy,{button:e,variant:`ghost`,color:`secondary`,className:`aivex:min-w-9`})}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-end aivex:gap-lg`,children:[t&&(0,f.jsx)(cy,{button:t,variant:`solid`,color:`secondary`,className:`aivex:min-w-[84px]`}),n&&(0,f.jsx)(cy,{button:n,variant:`solid`,color:`primary`,className:`aivex:min-w-[84px]`})]})]})}function cy({button:e,variant:t,color:n,className:r}){let{children:i,...a}=e;return(0,f.jsx)(gm,{variant:t,color:n,size:`lg`,className:r,...a,children:i})}function ly({open:e,defaultOpen:t,onOpenChange:n,children:r,size:i=`md`,closeOnInteractOutside:a=!0,stopKeyboardPropagation:o=!0,onOpenAutoFocus:s,onInteractOutside:c,onKeyDown:l,ref:u,...d}){return(0,f.jsx)(Z_,{open:e,defaultOpen:t,onOpenChange:n,children:(0,f.jsxs)($_,{children:[(0,f.jsx)(ev,{className:`aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30`}),(0,f.jsx)(tv,{ref:u,className:U(`aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-50`,`aivex:-translate-x-1/2 aivex:-translate-y-1/2`,ry,ny[i]),onInteractOutside:e=>{c?.(e),!a&&!e.defaultPrevented&&e.preventDefault()},onOpenAutoFocus:s,onKeyDown:e=>{o&&e.stopPropagation(),l?.(e)},...d,children:(0,f.jsx)(ty.Provider,{value:!0,children:r})})]})})}function uy({title:e,description:t,children:n,tertiaryButton:r,secondaryButton:i,primaryButton:a,size:o=`md`,onClose:s,closeAriaLabel:c,ref:l}){let u=(0,d.useId)(),p=!!(r||i||a);return(0,f.jsxs)(`div`,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-labelledby":u,className:U(ry,ny[o]),children:[(0,f.jsx)(ay,{title:e,titleId:u,description:t,onClose:s,closeAriaLabel:c}),n&&(0,f.jsx)(oy,{children:n}),p&&(0,f.jsx)(sy,{tertiaryButton:r,secondaryButton:i,primaryButton:a})]})}function dy({open:e,defaultOpen:t,onOpenChange:n,title:r,description:i,children:a,tertiaryButton:o,secondaryButton:s,primaryButton:c,size:l,closeOnInteractOutside:u,onOpenAutoFocus:d,closeAriaLabel:p}){return(0,f.jsxs)(ly,{open:e,defaultOpen:t,onOpenChange:n,size:l,closeOnInteractOutside:u,onOpenAutoFocus:d,children:[(0,f.jsx)(ay,{title:r,description:i,closeAriaLabel:p}),a&&(0,f.jsx)(oy,{children:a}),!!(o||s||c)&&(0,f.jsx)(sy,{tertiaryButton:o,secondaryButton:s,primaryButton:c})]})}var fy=(0,l.cva)(`aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:flex-col aivex:items-center aivex:w-14 aivex:px-0.5 aivex:py-1 aivex:rounded-[6px] aivex:transition-colors aivex:cursor-pointer aivex:select-none`,{variants:{active:{true:`aivex:bg-bg-brand-subtle`,false:`aivex:bg-transparent`}},defaultVariants:{active:!1}});function py({className:e,active:t,icon:n,children:r,ref:i,...a}){let o=t??!1;return(0,f.jsxs)(`button`,{ref:i,type:`button`,"aria-pressed":o,className:U(fy({active:t}),e),...a,children:[(0,f.jsx)(W,{}),n&&(0,f.jsx)(`span`,{className:U(`aivex:flex aivex:items-center aivex:justify-center aivex:p-1`,o?`aivex:text-text-brand`:`aivex:text-text-secondary`),children:(0,f.jsx)(`span`,{className:`aivex:flex aivex:items-center aivex:justify-center aivex:size-6`,children:n})}),r&&(0,f.jsx)(`span`,{className:U(`aivex:text-label-sm aivex:text-center`,o?`aivex:text-text-brand`:`aivex:text-text-secondary`),children:r})]})}var my=(0,l.cva)(`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:min-h-10 aivex:w-full aivex:items-center aivex:gap-md aivex:px-lg aivex:py-md aivex:rounded-md aivex:text-body-lg-medium aivex:leading-6 aivex:text-left aivex:transition-colors aivex:cursor-pointer`,{variants:{active:{true:`aivex:bg-bg-brand-subtle aivex:text-text-brand`,false:`aivex:bg-transparent aivex:text-text-secondary`}},defaultVariants:{active:!1}});function hy({className:e,active:t,icon:n,children:r,ref:i,...a}){return(0,f.jsxs)(`button`,{ref:i,type:`button`,"aria-current":t?`page`:void 0,className:U(my({active:t}),e),...a,children:[(0,f.jsx)(W,{}),n&&(0,f.jsx)(`span`,{className:`aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:size-5`,children:n}),r]})}function gy({className:e,children:t,ref:n,...r}){return(0,f.jsx)(`nav`,{ref:n,className:U(`aivex:flex aivex:flex-col aivex:gap-xs`,e),...r,children:t})}var _y=`Popover`,[vy,yy]=C(_y,[wn]),by=wn(),[xy,Sy]=vy(_y),Cy=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=by(t),c=d.useRef(null),[l,u]=d.useState(!1),[p,m]=H({prop:r,defaultProp:i??!1,onChange:a,caller:_y});return(0,f.jsx)(Bn,{...s,children:(0,f.jsx)(xy,{scope:t,contentId:I(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:l,onCustomAnchorAdd:d.useCallback(()=>u(!0),[]),onCustomAnchorRemove:d.useCallback(()=>u(!1),[]),modal:o,children:n})})};Cy.displayName=_y;var wy=`PopoverAnchor`,Ty=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Sy(wy,n),a=by(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return d.useEffect(()=>(o(),()=>s()),[o,s]),(0,f.jsx)(Vn,{...a,...r,ref:t})});Ty.displayName=wy;var Ey=`PopoverTrigger`,Dy=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Sy(Ey,n),a=by(n),o=x(t,i.triggerRef),s=(0,f.jsx)(T.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Hy(i.open),...r,ref:o,onClick:v(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,f.jsx)(Vn,{asChild:!0,...a,children:s})});Dy.displayName=Ey;var Oy=`PopoverPortal`,[ky,Ay]=vy(Oy,{forceMount:void 0}),jy=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Sy(Oy,t);return(0,f.jsx)(ky,{scope:t,forceMount:n,children:(0,f.jsx)(V,{present:n||a.open,children:(0,f.jsx)(Gn,{asChild:!0,container:i,children:r})})})};jy.displayName=Oy;var My=`PopoverContent`,Ny=d.forwardRef((e,t)=>{let n=Ay(My,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Sy(My,e.__scopePopover);return(0,f.jsx)(V,{present:r||a.open,children:a.modal?(0,f.jsx)(Fy,{...i,ref:t}):(0,f.jsx)(Iy,{...i,ref:t})})});Ny.displayName=My;var Py=(0,m.createSlot)(`PopoverContent.RemoveScroll`),Fy=d.forwardRef((e,t)=>{let n=Sy(My,e.__scopePopover),r=d.useRef(null),i=x(t,r),a=d.useRef(!1);return d.useEffect(()=>{let e=r.current;if(e)return Qi(e)},[]),(0,f.jsx)(so,{as:Py,allowPinchZoom:!0,children:(0,f.jsx)(Ly,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:v(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:v(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:v(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Iy=d.forwardRef((e,t)=>{let n=Sy(My,e.__scopePopover),r=d.useRef(!1),i=d.useRef(!1);return(0,f.jsx)(Ly,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Ly=d.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,p=Sy(My,n),m=by(n);return ai(),(0,f.jsx)(di,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,f.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:(0,f.jsx)(Hn,{"data-state":Hy(p.open),role:`dialog`,id:p.contentId,...m,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),Ry=`PopoverClose`,zy=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Sy(Ry,n);return(0,f.jsx)(T.button,{type:`button`,...r,ref:t,onClick:v(e.onClick,()=>i.onOpenChange(!1))})});zy.displayName=Ry;var By=`PopoverArrow`,Vy=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=by(n);return(0,f.jsx)(Un,{...i,...r,ref:t})});Vy.displayName=By;function Hy(e){return e?`open`:`closed`}var Uy=Cy,Wy=Dy,Gy=jy,Ky=Ny;function qy({groups:e,value:t,placeholder:n=``,disabled:r=!1,size:i=`md`,onChange:a,renderValue:o,className:s,label:c,helperText:l,error:u}){let[p,m]=(0,d.useState)(!1),h=(()=>{for(let n of e){let e=n.options.find(e=>e.value===t);if(e)return o?o(e,n):e.label}})(),g=i===`sm`?16:20;return(0,f.jsxs)(`div`,{className:U(`aivex:flex aivex:flex-col aivex:gap-xs aivex:w-full`,s),children:[c&&(0,f.jsx)(`span`,{className:U(`aivex:text-label-md aivex:text-text-secondary`,r&&`aivex:opacity-disable`),children:c}),(0,f.jsxs)(Uy,{open:p,onOpenChange:r?void 0:m,children:[(0,f.jsx)(Wy,{asChild:!0,disabled:r,children:(0,f.jsx)(`div`,{className:U(`aivex:w-full aivex:cursor-pointer`,r&&`aivex:cursor-not-allowed`),role:`combobox`,"aria-expanded":p,"aria-haspopup":`listbox`,tabIndex:r?-1:0,children:(0,f.jsx)(Zv,{disabled:r,focused:p,error:u,filled:!!h,size:i,layout:`inline`,endContent:(0,f.jsx)(`span`,{className:U(`aivex:transition-transform aivex:duration-200 aivex:text-text-secondary`,p&&`aivex:rotate-180`),children:(0,f.jsx)(Ql,{size:g})}),children:(0,f.jsx)(`span`,{className:U(`aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:pointer-events-none`,i===`sm`?`aivex:text-body-md-regular`:`aivex:text-body-lg-regular`,h?`aivex:text-text-primary`:`aivex:text-text-tertiary`),children:h??n})})})}),(0,f.jsx)(Gy,{children:(0,f.jsx)(Ky,{sideOffset:4,align:`start`,avoidCollisions:!0,onOpenAutoFocus:e=>e.preventDefault(),className:U(`aivex:z-50 aivex:min-w-[var(--radix-popover-trigger-width)] aivex:max-w-[var(--radix-popover-trigger-width)]`,`aivex:rounded-md aivex:bg-bg-primary aivex:shadow-md aivex:border aivex:border-border-subtle`,`aivex:p-xs aivex:max-h-[312px] aivex:overflow-y-auto`,`aivex:data-[state=open]:animate-in aivex:data-[state=open]:fade-in-0 aivex:data-[state=open]:zoom-in-95`,`aivex:data-[state=closed]:animate-out aivex:data-[state=closed]:fade-out-0 aivex:data-[state=closed]:zoom-out-95`),role:`listbox`,children:e.map((e,n)=>(0,f.jsxs)(`div`,{children:[n>0&&(0,f.jsx)(`div`,{className:`aivex:my-xs aivex:border-t aivex:border-border-default`}),e.title&&(0,f.jsx)(`div`,{className:`aivex:px-lg aivex:py-xs aivex:text-caption-md aivex:text-text-tertiary aivex:select-none`,children:e.title}),e.options.map(e=>(0,f.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value===t,onClick:()=>{a?.(e.value),m(!1)},className:U(`aivex:relative aivex:overflow-hidden aivex:group`,`aivex:flex aivex:h-8 aivex:w-full aivex:items-center`,`aivex:px-lg aivex:rounded-sm aivex:transition-colors`,`aivex:cursor-pointer aivex:select-none`,i===`sm`?`aivex:text-body-md-regular`:`aivex:text-body-lg-regular`,e.danger?`aivex:text-text-danger`:`aivex:text-text-primary`),children:[(0,f.jsx)(W,{variant:e.danger?`danger`:`default`}),(0,f.jsx)(`span`,{className:`aivex:truncate`,children:e.label})]},e.key??e.value))]},e.title??`group-${n}`))})})]}),l&&(0,f.jsx)(`p`,{className:U(`aivex:text-caption-md aivex:text-text-secondary aivex:line-clamp-2`,!r&&u&&`aivex:text-text-danger`),children:l})]})}function Jy({onClick:e,disabled:t,"aria-label":n,children:r}){return(0,f.jsxs)(`button`,{type:`button`,"aria-label":n,disabled:t,onClick:e,className:`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:h-8 aivex:w-8 aivex:items-center aivex:justify-center aivex:rounded-sm aivex:text-text-secondary aivex:disabled:opacity-disable aivex:disabled:pointer-events-none aivex:transition-colors`,children:[(0,f.jsx)(W,{variant:`default`}),r]})}function Yy({page:e,isActive:t,disabled:n,onClick:r}){return(0,f.jsxs)(`button`,{type:`button`,"aria-label":`Page ${e}`,"aria-current":t?`page`:void 0,disabled:n,onClick:r,className:U(`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:h-8 aivex:px-xs aivex:items-center aivex:justify-center aivex:rounded-full aivex:transition-colors aivex:disabled:opacity-disable aivex:disabled:pointer-events-none`,t?`aivex:bg-bg-brand-subtle aivex:text-text-brand`:`aivex:text-text-secondary`),children:[(0,f.jsx)(W,{variant:t?`strong`:`default`}),(0,f.jsx)(`span`,{className:`aivex:relative aivex:min-w-6 aivex:text-center aivex:text-label-lg`,children:e})]})}function Xy({className:e,totalPages:t,page:n,pageSize:r,disabled:i,pageSizeOptions:a,onChange:o,onPageSizeChange:s,ref:c,...l}){let u=(0,d.useRef)(void 0);t!=null&&(u.current=t);let p=t??u.current;if(p==null)return null;let m=Math.max(1,p),h=Math.min(Math.max(1,n),m),g=Math.floor((h-1)/10),_=g*10+1,v=Math.min(_+9,m),y=Array.from({length:v-_+1},(e,t)=>_+t),b=g===0,x=v===m,S=e=>{s?.(Number(e))};return(0,f.jsxs)(`nav`,{ref:c,"aria-label":`Pagination`,className:U(`aivex:flex aivex:items-center`,e),...l,children:[(0,f.jsx)(`div`,{className:`aivex:flex-1`}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:items-center aivex:gap-6 aivex:shrink-0`,children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:gap-2`,children:[(0,f.jsx)(Jy,{"aria-label":`First page`,disabled:i||b,onClick:()=>o(1),children:(0,f.jsx)(Yl,{size:16})}),(0,f.jsx)(Jy,{"aria-label":`Previous page group`,disabled:i||b,onClick:()=>o(_-10),children:(0,f.jsx)($l,{size:16})})]}),(0,f.jsx)(`div`,{className:`aivex:flex aivex:gap-2`,children:y.map(e=>(0,f.jsx)(Yy,{page:e,isActive:e===h,disabled:i,onClick:()=>o(e)},e))}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:gap-2`,children:[(0,f.jsx)(Jy,{"aria-label":`Next page group`,disabled:i||x,onClick:()=>o(v+1),children:(0,f.jsx)(eu,{size:16})}),(0,f.jsx)(Jy,{"aria-label":`Last page`,disabled:i||x,onClick:()=>o(m),children:(0,f.jsx)(Xl,{size:16})})]})]}),(0,f.jsx)(`div`,{className:`aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end`,children:a&&(0,f.jsx)(qy,{size:`sm`,className:`aivex:w-[116px] aivex:shrink-0`,value:String(r),disabled:i,groups:[{options:a.map(({value:e,label:t})=>({value:String(e),label:t}))}],onChange:S})})]})}var Zy={left:`aivex:left-0 aivex:border-r`,right:`aivex:right-0 aivex:border-l`},Qy={md:`aivex:w-[384px]`,lg:`aivex:w-[450px]`};function $y({open:e,onOpenChange:t,title:n,children:r,headerAction:i,side:a=`right`,size:o=`md`,ref:s}){return(0,f.jsx)(Z_,{open:e,onOpenChange:t,children:(0,f.jsxs)($_,{children:[(0,f.jsx)(ev,{className:`aivex:panel-overlay aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30`}),(0,f.jsxs)(tv,{ref:s,"data-side":a,className:U(`aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:max-w-[calc(100vw-32px)] aivex:flex-col aivex:overflow-hidden`,`aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none`,Zy[a],Qy[o]),onKeyDown:e=>{e.stopPropagation()},children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:h-12 aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-lg aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-lg`,children:[(0,f.jsx)(nv,{className:`aivex:m-0 aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-xl aivex:text-text-primary`,children:n}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md`,children:[i,(0,f.jsx)(iv,{asChild:!0,children:(0,f.jsx)(`button`,{type:`button`,className:U(`aivex:flex aivex:h-6 aivex:w-6 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:rounded-sm`,`aivex:text-icon-secondary aivex:transition-colors`,`aivex:hover:bg-bg-tertiary aivex:hover:text-icon-primary`,`aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand`),"aria-label":`Close panel`,children:(0,f.jsx)(Nl,{size:20})})})]})]}),(0,f.jsx)(`div`,{className:`aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col`,children:r})]})]})})}var eb={success:{fill:`var(--aivex-category-green-text)`,highlight:`var(--aivex-category-green-bg)`,track:`var(--aivex-category-green-bg)`},warning:{fill:`var(--aivex-category-yellow-text)`,highlight:`var(--aivex-category-yellow-bg)`,track:`var(--aivex-category-yellow-bg)`},info:{fill:`var(--aivex-category-blue-text)`,highlight:`var(--aivex-category-blue-bg)`,track:`var(--aivex-category-blue-bg)`},danger:{fill:`var(--aivex-category-red-text)`,highlight:`var(--aivex-category-red-bg)`,track:`var(--aivex-category-red-bg)`},neutral:{fill:`var(--aivex-category-gray-text)`,highlight:`var(--aivex-category-gray-bg)`,track:`var(--aivex-category-gray-bg)`}},tb={success:`success`,warning:`warning`,info:`info`,danger:`danger`,neutral:`neutral`,green:`success`,yellow:`warning`,blue:`info`,gray:`neutral`},nb=e=>typeof e==`number`?`${e}px`:e,rb=(e,t)=>!Number.isFinite(e)||!Number.isFinite(t)||t<=0?0:Math.min(100,Math.max(0,e/t*100));function ib({className:e,current:t,total:n,color:r=`success`,width:i=`100%`,height:a=6,isProgressing:o=!1,ref:s,style:c,...l}){let u=rb(t,n),d=nb(i),p=nb(a),m=eb[tb[r]],h=o?{width:`100%`,backgroundImage:`linear-gradient(90deg, ${m.fill} 0%, ${m.highlight} 50%, ${m.fill} 100%)`}:{width:`${u}%`,backgroundColor:m.fill};return(0,f.jsx)(`div`,{ref:s,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":n,"aria-valuenow":o?void 0:t,className:U(`aivex:relative aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary`,e),style:{width:d,height:p,backgroundColor:m.track,...c},...l,children:(0,f.jsx)(`div`,{className:U(`aivex:absolute aivex:left-0 aivex:top-0 aivex:h-full aivex:rounded-full aivex:transition-all aivex:duration-300`,o&&`aivex-progressbar-indeterminate`),style:h})})}var ab=(0,l.cva)(`aivex:peer aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-full aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:checked:border-transparent aivex:checked:bg-bg-brand`,{variants:{size:{sm:`aivex:w-4 aivex:h-4`,md:`aivex:w-[18px] aivex:h-[18px]`}},defaultVariants:{size:`md`}}),ob={sm:`aivex:w-5 aivex:h-5`,md:`aivex:w-6 aivex:h-6`},sb={sm:`aivex:h-5`,md:`aivex:h-6`};function cb({className:e,label:t,size:n=`md`,disabled:r,checked:i,id:a,ref:o,...s}){let c=n??`md`,l={sm:`aivex:w-2 aivex:h-2`,md:`aivex:w-2.5 aivex:h-2.5`}[c];return(0,f.jsxs)(`label`,{className:U(`aivex:inline-flex aivex:items-center aivex:gap-md aivex:cursor-pointer aivex:select-none`,r&&`aivex:opacity-disable aivex:pointer-events-none`),children:[(0,f.jsxs)(`span`,{className:U(`aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group`,ob[c]),children:[(0,f.jsx)(`span`,{className:`aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity`}),(0,f.jsx)(`input`,{ref:o,id:a,type:`radio`,disabled:r,checked:i,className:U(ab({size:c}),e),...s}),(0,f.jsx)(`span`,{className:U(`aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100`,l)})]}),t&&(0,f.jsx)(`span`,{className:U(`aivex:inline-flex aivex:items-center aivex:text-label-lg aivex:text-text-primary`,sb[c]),children:t})]})}var lb=`Toggle`,ub=d.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=H({prop:n,onChange:i,defaultProp:r??!1,caller:lb});return(0,f.jsx)(T.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:v(e.onClick,()=>{e.disabled||s(!o)})})});ub.displayName=lb;var db=`ToggleGroup`,[fb,pb]=C(db,[Ai]),mb=Ai(),hb=d.default.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,f.jsx)(vb,{...r,ref:t});if(n===`multiple`)return(0,f.jsx)(yb,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${db}\``)});hb.displayName=db;var[gb,_b]=fb(db),vb=d.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=H({prop:n,defaultProp:r??``,onChange:i,caller:db});return(0,f.jsx)(gb,{scope:e.__scopeToggleGroup,type:`single`,value:d.default.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:d.default.useCallback(()=>s(``),[s]),children:(0,f.jsx)(Sb,{...a,ref:t})})}),yb=d.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=H({prop:n,defaultProp:r??[],onChange:i,caller:db}),c=d.default.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=d.default.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,f.jsx)(gb,{scope:e.__scopeToggleGroup,type:`multiple`,value:o,onItemActivate:c,onItemDeactivate:l,children:(0,f.jsx)(Sb,{...a,ref:t})})});hb.displayName=db;var[bb,xb]=fb(db),Sb=d.default.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=mb(n),u=ri(o),d={role:`group`,dir:u,...c};return(0,f.jsx)(bb,{scope:n,rovingFocus:i,disabled:r,children:i?(0,f.jsx)(Hi,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,f.jsx)(T.div,{...d,ref:t})}):(0,f.jsx)(T.div,{...d,ref:t})})}),Cb=`ToggleGroupItem`,wb=d.default.forwardRef((e,t)=>{let n=_b(Cb,e.__scopeToggleGroup),r=xb(Cb,e.__scopeToggleGroup),i=mb(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=d.default.useRef(null);return r.rovingFocus?(0,f.jsx)(Ui,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,f.jsx)(Tb,{...s,ref:t})}):(0,f.jsx)(Tb,{...s,ref:t})});wb.displayName=Cb;var Tb=d.default.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=_b(Cb,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,f.jsx)(ub,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Eb=hb,Db=wb,Ob=(0,d.createContext)({size:`md`}),kb={sm:`aivex:h-7`,md:`aivex:h-8`,lg:`aivex:h-10`,"icon-sm":`aivex:h-7`,"icon-md":`aivex:h-8`,"icon-lg":`aivex:h-10`};function Ab({className:e,size:t=`md`,value:n,defaultValue:r,onValueChange:i,fullWidth:a,children:o,ref:s,...c}){let l=n!==void 0,[u,p]=(0,d.useState)(r??n??``),m=l?n:u;return(0,f.jsx)(Ob.Provider,{value:{size:t,fullWidth:a},children:(0,f.jsx)(Eb,{ref:s,type:`single`,value:m,onValueChange:e=>{e&&(l||p(e),i?.(e))},className:U(`aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs`,a?`aivex:w-full`:`aivex:w-fit`,kb[t],e),...c,children:o})})}var jb={sm:`aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4`,md:`aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4`,lg:`aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:[&>svg]:size-5`,"icon-sm":`aivex:h-6 aivex:w-6 aivex:px-xs`,"icon-md":`aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5`,"icon-lg":`aivex:h-9 aivex:w-9 aivex:px-sm aivex:[&>svg]:size-6`};function Mb({className:e,children:t,ref:n,...r}){let{size:i,fullWidth:a}=(0,d.useContext)(Ob);return(0,f.jsx)(Db,{ref:n,className:U(`aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled`,jb[i],a&&`aivex:flex-1`,e),...r,children:t})}function Nb(e){return typeof e!=`string`}function Pb({className:e,keys:t,ref:n,...r}){return(0,f.jsx)(`span`,{ref:n,className:U(`aivex:inline-flex aivex:items-start aivex:gap-xs`,e),...r,children:t.map((e,t)=>(0,f.jsx)(`kbd`,{className:U(`aivex:inline-flex aivex:items-center aivex:justify-center`,`aivex:min-w-5 aivex:min-h-5 aivex:max-h-5`,`aivex:rounded-xs aivex:border aivex:border-border-default`,`aivex:text-text-secondary aivex:text-label-lg aivex:font-sans aivex:select-none`,Nb(e)?`aivex:p-2xs`:`aivex:p-xs`),children:e},t))})}function Fb(e){let t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ib=[`PageUp`,`PageDown`],Lb=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],Rb={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},zb=`Slider`,[Bb,Vb,Hb]=ti(zb),[Ub,Wb]=C(zb,[Hb]),[Gb,Kb]=Ub(zb),qb=d.forwardRef((e,t)=>{let{name:n,min:r=0,max:i=100,step:a=1,orientation:o=`horizontal`,disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:u,onValueChange:p=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:g,..._}=e,y=d.useRef(new Set),b=d.useRef(0),x=o===`horizontal`?Xb:Zb,[S=[],C]=H({prop:u,defaultProp:l,onChange:e=>{[...y.current][b.current]?.focus(),p(e)}}),w=d.useRef(S);function T(e){O(e,dx(S,e))}function E(e){O(e,b.current)}function D(){let e=w.current[b.current];S[b.current]!==e&&m(S)}function O(e,t,{commit:n}={commit:!1}){let o=gx(a),s=tg(_x(Math.round((e-r)/a)*a+r,o),[r,i]);C((e=[])=>{let r=cx(e,s,t);if(mx(r,c*a)){b.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&m(r),t?r:e}else return e})}return(0,f.jsx)(Gb,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:i,valueIndexToChangeRef:b,thumbs:y.current,values:S,orientation:o,form:g,children:(0,f.jsx)(Bb.Provider,{scope:e.__scopeSlider,children:(0,f.jsx)(Bb.Slot,{scope:e.__scopeSlider,children:(0,f.jsx)(x,{"aria-disabled":s,"data-disabled":s?``:void 0,..._,ref:t,onPointerDown:v(_.onPointerDown,()=>{s||(w.current=S)}),min:r,max:i,inverted:h,onSlideStart:s?void 0:T,onSlideMove:s?void 0:E,onSlideEnd:s?void 0:D,onHomeKeyDown:()=>!s&&O(r,0,{commit:!0}),onEndKeyDown:()=>!s&&O(i,S.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){let n=Ib.includes(e.key)||e.shiftKey&&Lb.includes(e.key)?10:1,r=b.current,i=S[r];O(i+a*n*t,r,{commit:!0})}}})})})})});qb.displayName=zb;var[Jb,Yb]=Ub(zb,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),Xb=d.forwardRef((e,t)=>{let{min:n,max:r,dir:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,[p,m]=d.useState(null),h=x(t,e=>m(e)),g=d.useRef(void 0),_=ri(i),v=_===`ltr`,y=v&&!a||!v&&a;function b(e){let t=g.current||p.getBoundingClientRect(),i=hx([0,t.width],y?[n,r]:[r,n]);return g.current=t,i(e-t.left)}return(0,f.jsx)(Jb,{scope:e.__scopeSlider,startEdge:y?`left`:`right`,endEdge:y?`right`:`left`,direction:y?1:-1,size:`width`,children:(0,f.jsx)(Qb,{dir:_,"data-orientation":`horizontal`,...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=b(e.clientX);o?.(t)},onSlideMove:e=>{let t=b(e.clientX);s?.(t)},onSlideEnd:()=>{g.current=void 0,c?.()},onStepKeyDown:e=>{let t=Rb[y?`from-left`:`from-right`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),Zb=d.forwardRef((e,t)=>{let{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:c,...l}=e,u=d.useRef(null),p=x(t,u),m=d.useRef(void 0),h=!i;function g(e){let t=m.current||u.current.getBoundingClientRect(),i=hx([0,t.height],h?[r,n]:[n,r]);return m.current=t,i(e-t.top)}return(0,f.jsx)(Jb,{scope:e.__scopeSlider,startEdge:h?`bottom`:`top`,endEdge:h?`top`:`bottom`,size:`height`,direction:h?1:-1,children:(0,f.jsx)(Qb,{"data-orientation":`vertical`,...l,ref:p,style:{...l.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=g(e.clientY);a?.(t)},onSlideMove:e=>{let t=g(e.clientY);o?.(t)},onSlideEnd:()=>{m.current=void 0,s?.()},onStepKeyDown:e=>{let t=Rb[h?`from-bottom`:`from-top`].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),Qb=d.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=Kb(zb,n);return(0,f.jsx)(T.span,{...l,ref:t,onKeyDown:v(e.onKeyDown,e=>{e.key===`Home`?(o(e),e.preventDefault()):e.key===`End`?(s(e),e.preventDefault()):Ib.concat(Lb).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:v(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)}),onPointerMove:v(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:v(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),$b=`SliderTrack`,ex=d.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=Kb($b,n);return(0,f.jsx)(T.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})});ex.displayName=$b;var tx=`SliderRange`,nx=d.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=Kb(tx,n),a=Yb(tx,n),o=x(t,d.useRef(null)),s=i.values.length,c=i.values.map(e=>lx(e,i.min,i.max)),l=s>1?Math.min(...c):0,u=100-Math.max(...c);return(0,f.jsx)(T.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?``:void 0,...r,ref:o,style:{...e.style,[a.startEdge]:l+`%`,[a.endEdge]:u+`%`}})});nx.displayName=tx;var rx=`SliderThumb`,ix=d.forwardRef((e,t)=>{let n=Vb(e.__scopeSlider),[r,i]=d.useState(null),a=x(t,e=>i(e)),o=d.useMemo(()=>r?n().findIndex(e=>e.ref.current===r):-1,[n,r]);return(0,f.jsx)(ax,{...e,ref:a,index:o})}),ax=d.forwardRef((e,t)=>{let{__scopeSlider:n,index:r,name:i,...a}=e,o=Kb(rx,n),s=Yb(rx,n),[c,l]=d.useState(null),u=x(t,e=>l(e)),p=c?o.form||!!c.closest(`form`):!0,m=xn(c),h=o.values[r],g=h===void 0?0:lx(h,o.min,o.max),_=ux(r,o.values.length),y=m?.[s.size],b=y?fx(y,g,s.direction):0;return d.useEffect(()=>{if(c)return o.thumbs.add(c),()=>{o.thumbs.delete(c)}},[c,o.thumbs]),(0,f.jsxs)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[s.startEdge]:`calc(${g}% + ${b}px)`},children:[(0,f.jsx)(Bb.ItemSlot,{scope:e.__scopeSlider,children:(0,f.jsx)(T.span,{role:`slider`,"aria-label":e[`aria-label`]||_,"aria-valuemin":o.min,"aria-valuenow":h,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?``:void 0,tabIndex:o.disabled?void 0:0,...a,ref:u,style:h===void 0?{display:`none`}:e.style,onFocus:v(e.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),p&&(0,f.jsx)(sx,{name:i??(o.name?o.name+(o.values.length>1?`[]`:``):void 0),form:o.form,value:h},r)]})});ix.displayName=rx;var ox=`RadioBubbleInput`,sx=d.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{let i=d.useRef(null),a=x(i,r),o=Fb(t);return d.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`input`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,f.jsx)(T.input,{style:{display:`none`},...n,ref:a,defaultValue:t})});sx.displayName=ox;function cx(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function lx(e,t,n){return tg(100/(n-t)*(e-t),[0,100])}function ux(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function dx(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function fx(e,t,n){let r=e/2;return(r-hx([0,50],[0,r])(t)*n)*n}function px(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function mx(e,t){if(t>0){let n=px(e);return Math.min(...n)>=t}return!0}function hx(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function gx(e){return(String(e).split(`.`)[1]||``).length}function _x(e,t){let n=10**t;return Math.round(e*n)/n}var vx=qb,yx=ex,bx=ix;function xx({className:e,trackClassName:t,thumbClassName:n,defaultValue:r=[50],value:i,min:a=0,max:o=100,step:s=1,onValueChange:c,ref:l,...u}){let p=i!==void 0,[m,h]=(0,d.useState)(r),g=p?i:m,_=e=>{p||h(e),c?.(e)},v=(0,d.useMemo)(()=>{let e=o-a||1;return[...g].sort((e,t)=>e-t).map(t=>(t-a)/e*100)},[g,a,o]),y=(0,d.useMemo)(()=>{let e=[0,...v,100];return e.slice(0,-1).map((t,n)=>({left:t,width:e[n+1]-t}))},[v]);return(0,f.jsxs)(vx,{ref:l,className:U(`aivex:relative aivex:flex aivex:w-full aivex:touch-none aivex:select-none aivex:items-center aivex:outline-none`,`aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:opacity-disable`,e),defaultValue:r,value:i,min:a,max:o,step:s,onValueChange:_,...u,children:[(0,f.jsx)(yx,{className:U(`aivex:relative aivex:h-2 aivex:w-full aivex:grow aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary`),children:y.map(({left:e,width:n},r)=>{let i=r===+(v.length>=2)?`aivex:bg-bg-brand`:`aivex:bg-bg-tertiary`;return(0,f.jsx)(`div`,{className:U(`aivex:absolute aivex:top-0 aivex:h-full aivex:rounded-full`,typeof t==`string`?t:t?.(r)??i),style:{left:`${e}%`,width:`${n}%`}},r)})}),g.map((e,t)=>(0,f.jsx)(bx,{className:U(`aivex:z-10 aivex:block aivex:h-5 aivex:w-5 aivex:box-border aivex:rounded-full aivex:border-4 aivex:border-border-brand aivex:bg-bg-primary aivex:shadow-sm`,`aivex:cursor-pointer aivex:transition-transform aivex:hover:scale-110`,`aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand`,`aivex:disabled:pointer-events-none`,typeof n==`string`?n:n?.(t))},t))]})}var Sx=(0,l.cva)(`aivex:block aivex:rounded-full aivex:transition-colors aivex:duration-200`,{variants:{size:{sm:`aivex:w-6 aivex:h-4`,md:`aivex:w-8 aivex:h-5`,lg:`aivex:w-10 aivex:h-6`}},defaultVariants:{size:`md`}}),Cx={sm:`aivex:w-3 aivex:h-3`,md:`aivex:w-4 aivex:h-4`,lg:`aivex:w-5 aivex:h-5`},wx={sm:`aivex:translate-x-2`,md:`aivex:translate-x-3`,lg:`aivex:translate-x-4`},Tx={sm:`aivex:h-4`,md:`aivex:h-5`,lg:`aivex:h-6`};function Ex({className:e,label:t,size:n=`md`,checked:r,defaultChecked:i,disabled:a,id:o,onChange:s,ref:c,...l}){let u=r!==void 0,[p,m]=(0,d.useState)(!!i),h=u?!!r:p,g=n??`md`;return(0,f.jsxs)(`label`,{className:U(`aivex:inline-flex aivex:items-center aivex:gap-md aivex:cursor-pointer aivex:select-none`,a&&`aivex:opacity-disable aivex:pointer-events-none`),children:[(0,f.jsxs)(`span`,{className:`aivex:relative aivex:inline-flex aivex:items-center`,children:[(0,f.jsx)(`input`,{ref:c,id:o,type:`checkbox`,role:`switch`,"aria-checked":h,disabled:a,checked:h,onChange:e=>{u||m(e.target.checked),s?.(e)},className:`aivex:sr-only aivex:peer`,...l}),(0,f.jsx)(`span`,{className:U(Sx({size:g}),h?`aivex:bg-bg-brand`:`aivex:bg-border-default`,e)}),(0,f.jsx)(`span`,{className:U(`aivex:absolute aivex:top-0.5 aivex:left-0.5 aivex:rounded-full aivex:bg-white aivex:shadow aivex:transition-transform aivex:duration-200`,Cx[g],h&&wx[g])})]}),t&&(0,f.jsx)(`span`,{className:U(`aivex:inline-flex aivex:items-center aivex:text-label-lg aivex:text-text-primary`,Tx[g]),children:t})]})}var Dx=`Tabs`,[Ox,kx]=C(Dx,[Ai]),Ax=Ai(),[jx,Mx]=Ox(Dx),Nx=d.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=ri(s),[d,p]=H({prop:r,onChange:i,defaultProp:a??``,caller:Dx});return(0,f.jsx)(jx,{scope:n,baseId:I(),value:d,onValueChange:p,orientation:o,dir:u,activationMode:c,children:(0,f.jsx)(T.div,{dir:u,"data-orientation":o,...l,ref:t})})});Nx.displayName=Dx;var Px=`TabsList`,Fx=d.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=Mx(Px,n),o=Ax(n);return(0,f.jsx)(Hi,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,f.jsx)(T.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});Fx.displayName=Px;var Ix=`TabsTrigger`,Lx=d.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=Mx(Ix,n),s=Ax(n),c=Bx(o.baseId,r),l=Vx(o.baseId,r),u=r===o.value;return(0,f.jsx)(Ui,{asChild:!0,...s,focusable:!i,active:u,children:(0,f.jsx)(T.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:v(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:v(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:v(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});Lx.displayName=Ix;var Rx=`TabsContent`,zx=d.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=Mx(Rx,n),c=Bx(s.baseId,r),l=Vx(s.baseId,r),u=r===s.value,p=d.useRef(u);return d.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(V,{present:i||u,children:({present:n})=>(0,f.jsx)(T.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&a})})});zx.displayName=Rx;function Bx(e,t){return`${e}-trigger-${t}`}function Vx(e,t){return`${e}-content-${t}`}var Hx=Nx,Ux=Fx,Wx=Lx,Gx=zx;function Kx({className:e,ref:t,...n}){return(0,f.jsx)(Hx,{ref:t,className:U(`aivex:flex aivex:flex-col`,e),...n})}var qx=`aivex:flex aivex:items-center aivex:gap-3 aivex:border-b aivex:border-border-default`;function Jx({className:e,ref:t,...n}){return(0,f.jsx)(Ux,{ref:t,className:U(qx,e),...n})}var Yx=`aivex:relative aivex:inline-flex aivex:h-12 aivex:items-center aivex:justify-center aivex:gap-sm aivex:overflow-hidden aivex:px-md aivex:text-body-lg-medium aivex:text-text-primary aivex:transition-colors aivex:before:absolute aivex:before:inset-x-0 aivex:before:top-md aivex:before:bottom-md aivex:before:rounded-md aivex:before:bg-bg-inverse-strong aivex:before:opacity-0 aivex:before:pointer-events-none aivex:before:transition-opacity aivex:before:content-[''] aivex:hover:before:opacity-4 aivex:active:before:opacity-8 aivex:focus-visible:outline-none aivex:disabled:cursor-not-allowed aivex:disabled:opacity-40 aivex:data-[state=active]:after:absolute aivex:data-[state=active]:after:bottom-0 aivex:data-[state=active]:after:left-0 aivex:data-[state=active]:after:right-0 aivex:data-[state=active]:after:h-0.5 aivex:data-[state=active]:after:bg-bg-inverse aivex:data-[state=active]:after:content-['']`;function Xx({className:e,ref:t,...n}){return(0,f.jsx)(Wx,{ref:t,className:U(Yx,e),...n})}function Zx({className:e,ref:t,...n}){return(0,f.jsx)(Gx,{ref:t,className:U(`aivex:flex-1 aivex:outline-none`,e),...n})}var Qx=(0,l.cva)(`aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden`,{variants:{size:{sm:`aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]`,md:`aivex:min-h-8 aivex:px-[10px] aivex:py-[6px]`},type:{default:`aivex:bg-bg-tertiary aivex:text-text-primary`,error:`aivex:bg-bg-danger-subtle aivex:text-text-danger`}},defaultVariants:{size:`sm`,type:`default`}});function $x({className:e,size:t=`sm`,type:n=`default`,startContent:r,showIcon:i=!1,disabled:a=!1,onRemove:o,children:s,ref:c,...l}){return(0,f.jsxs)(`div`,{ref:c,className:U(Qx({size:t,type:n}),a&&`aivex:opacity-disable`,e),...l,children:[r?(0,f.jsx)(`span`,{className:`aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center`,children:r}):i?(0,f.jsx)(`span`,{className:`aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40`,children:(0,f.jsx)(su,{size:16})}):null,(0,f.jsx)(`span`,{className:U(`aivex:px-[2px] aivex:truncate`,t===`sm`?`aivex:text-label-md aivex:max-w-[160px]`:`aivex:text-label-lg aivex:max-w-[180px]`),children:s}),!a&&o&&(0,f.jsx)(Yv,{size:`xs`,shape:`rounded`,onClick:e=>{e.stopPropagation(),o()},className:`aivex:shrink-0`,"aria-label":`태그 삭제`,children:(0,f.jsx)(Nl,{size:12})})]})}function eS({className:e,size:t=`sm`,label:n,helperText:r,error:i,disabled:a,readOnly:o,value:s,defaultValue:c=[],onChange:l,parsePaste:u,validate:p,renderTag:m,placeholder:h,id:g,ref:_,onBlur:v,onCompositionEnd:y,onCompositionStart:b,onFocus:x,onKeyDown:S,onPaste:C,...w}){let T=s!==void 0,[E,D]=(0,d.useState)(c),O=T?s:E,[k,A]=(0,d.useState)(``),j=(0,d.useRef)(!1),[M,N]=(0,d.useState)(!1),P=M&&!o,ee=p?O.some(e=>!p(e)):!1,te=i||ee,ne=e=>{let t=e.trim();if(!t)return;let n=[...O,t];T||D(n),l?.(n),A(``)},re=e=>{let t=O.filter((t,n)=>n!==e);T||D(t),l?.(t)},F=e=>{if(S?.(e),!e.defaultPrevented&&!o)if(e.key===`Enter`){if(j.current||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;e.preventDefault(),k&&ne(k)}else e.key===`Backspace`&&!k&&O.length>0&&re(O.length-1)},ie=e=>{if(C?.(e),e.defaultPrevented||o||!u)return;e.preventDefault();let t=u(e.clipboardData.getData(`text`)),n=[...new Set(t)].map(e=>e.trim()).filter(e=>e&&!O.includes(e));if(n.length>0){let e=[...O,...n];T||D(e),l?.(e)}A(``)},ae=O.map((e,n)=>{let r=()=>re(n),i=p?p(e)?`default`:`error`:te?`error`:`default`;return m?(0,f.jsx)(d.Fragment,{children:m(e,n,{remove:r,size:t,disabled:a,type:i})},`${e}-${n}`):(0,f.jsx)($x,{size:t===`md`?`md`:`sm`,type:i,disabled:a,onRemove:r,children:e},`${e}-${n}`)}),oe=(0,f.jsx)(`input`,{ref:_,id:g,value:k,disabled:a,readOnly:o,placeholder:O.length===0?h:void 0,onChange:e=>{o||A(e.target.value)},onKeyDown:F,onPaste:ie,onCompositionStart:e=>{j.current=!0,b?.(e)},onCompositionEnd:e=>{j.current=!1,o||A(e.currentTarget.value),y?.(e)},onFocus:e=>{o||N(!0),x?.(e)},onBlur:e=>{N(!1),v?.(e),!o&&!j.current&&k&&ne(k)},className:U(`aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1`,o&&`aivex:cursor-default`,t===`sm`?`aivex:text-body-md-regular aivex:h-6`:`aivex:text-body-lg-regular aivex:h-8`),...w});return(0,f.jsxs)(Zv,{id:g,label:n,helperText:r,error:te,disabled:a,focused:P,size:t,layout:`wrap`,containerClassName:U(e,o&&`aivex:cursor-default`),children:[ae,oe]})}function tS({className:e,label:t,helperText:n,error:r,disabled:i,size:a=`md`,minHeight:o,fixedHeight:s,startContent:c,endContent:l,id:u,ref:p,onFocus:m,onBlur:h,...g}){let[_,v]=(0,d.useState)(!1),y={};return o!==void 0&&(y.minHeight=typeof o==`number`?`${o}px`:o),s&&o!==void 0&&(y.height=y.minHeight,y.maxHeight=y.minHeight),(0,f.jsx)(Zv,{id:u,label:t,helperText:n,error:r,disabled:i,focused:_,size:a,layout:`block`,startContent:c,endContent:l,children:(0,f.jsx)(`textarea`,{ref:p,id:u,disabled:i,style:y,className:U(`aivex:w-full aivex:min-w-0 aivex:bg-transparent aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none`,a===`sm`?`aivex:text-body-md-regular`:`aivex:text-body-lg-regular`,s?`aivex:resize-none aivex:overflow-auto`:`aivex:resize-vertical`,e),onFocus:e=>{v(!0),m?.(e)},onBlur:e=>{v(!1),h?.(e)},...g})})}function nS({className:e,label:t,helperText:n,error:r,disabled:i,clearable:a,startContent:o,endContent:s,size:c=`md`,id:l,ref:u,value:p,defaultValue:m,onChange:h,onFocus:g,onBlur:_,...v}){let[y,b]=(0,d.useState)(!1),[x,S]=(0,d.useState)(typeof m==`string`?m:m?.toString()??``),C=p!==void 0,w=C?String(p??``):x,T=a&&w.length>0,E=e=>{C||S(e.target.value),h?.(e)},D=(0,f.jsxs)(f.Fragment,{children:[s,T&&(0,f.jsx)(Yv,{size:c===`sm`?`xs`:`sm`,onClick:()=>{C||S(``),h?.({target:{value:``}})},onMouseDown:e=>e.preventDefault(),tabIndex:-1,className:`aivex:shrink-0`,"aria-label":`입력값 삭제`,children:(0,f.jsx)(Nl,{size:c===`sm`?14:16})})]}),O=s||T;return(0,f.jsx)(Zv,{id:l,label:t,helperText:n,error:r,disabled:i,focused:y,filled:w.length>0,size:c,layout:`inline`,startContent:o,endContent:O?D:void 0,children:(0,f.jsx)(`input`,{ref:u,id:l,disabled:i,value:a?w:p,defaultValue:a?void 0:m,onChange:a||C?E:h,className:U(`aivex:m-0 aivex:w-full aivex:min-w-0 aivex:appearance-none aivex:border-0 aivex:bg-transparent aivex:p-0 aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none`,c===`sm`?`aivex:text-body-md-regular`:`aivex:text-body-lg-regular`,e),onFocus:e=>{b(!0),g?.(e)},onBlur:e=>{b(!1),_?.(e)},...v})})}var rS=(0,l.cva)(`aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aivex:justify-center aivex:gap-md aivex:rounded-xs aivex:bg-static-gray aivex:px-xl aivex:py-md`,{variants:{type:{default:``,success:``,danger:``}},defaultVariants:{type:`default`}});function iS({className:e,type:t=`default`,open:n=!0,message:r,onClose:i,ref:a,...o}){return n?(0,f.jsxs)(`div`,{ref:a,role:`status`,"aria-live":`polite`,className:U(rS({type:t}),e),...o,children:[(0,f.jsx)(`p`,{className:`aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white`,children:r}),i&&(0,f.jsx)(`button`,{type:`button`,onClick:i,className:`aivex:ml-lg aivex:shrink-0 aivex:text-static-white aivex:opacity-70 aivex:transition-opacity aivex:hover:opacity-100`,"aria-label":`Close toast`,children:(0,f.jsx)(Nl,{size:16})})]}):null}function aS({position:e=`bottom-center`,duration:t=4e3,visibleToasts:n=3,gap:r=8,toastOptions:i,...a}){return(0,f.jsx)(_.Toaster,{position:e,duration:t,visibleToasts:n,gap:r,toastOptions:{...i,unstyled:!0,className:U(rS({type:`default`}),i?.className),classNames:{title:`aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white`,description:`aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80`,closeButton:`aivex:text-static-white aivex:opacity-70 aivex:transition-opacity aivex:hover:opacity-100`,...i?.classNames}},...a})}var oS=(0,l.cva)(``,{variants:{variant:{"display-lg":`aivex:text-display-lg`,"display-md":`aivex:text-display-md`,"heading-xl":`aivex:text-heading-xl`,"heading-lg":`aivex:text-heading-lg`,"heading-md":`aivex:text-heading-md`,"heading-sm":`aivex:text-heading-sm`,"heading-xs":`aivex:text-heading-xs`,"body-lg-regular":`aivex:text-body-lg-regular`,"body-lg-medium":`aivex:text-body-lg-medium`,"body-md-regular":`aivex:text-body-md-regular`,"body-md-medium":`aivex:text-body-md-medium`,"body-sm-regular":`aivex:text-body-sm-regular`,"body-sm-medium":`aivex:text-body-sm-medium`,"label-xl":`aivex:text-label-xl`,"label-lg":`aivex:text-label-lg`,"label-md":`aivex:text-label-md`,"label-sm":`aivex:text-label-sm`,"caption-md":`aivex:text-caption-md`}},defaultVariants:{variant:`body-md-regular`}}),sS={"display-lg":`h1`,"display-md":`h1`,"heading-xl":`h1`,"heading-lg":`h2`,"heading-md":`h2`,"heading-sm":`h3`,"heading-xs":`h4`,"body-lg-regular":`p`,"body-lg-medium":`p`,"body-md-regular":`p`,"body-md-medium":`p`,"body-sm-regular":`p`,"body-sm-medium":`p`,"label-xl":`span`,"label-lg":`span`,"label-md":`span`,"label-sm":`span`,"caption-md":`span`};function cS({as:e,variant:t=`body-md-regular`,className:n,children:r,ref:i,...a}){return(0,f.jsx)(e??sS[t],{ref:i,className:U(oS({variant:t}),n),...a,children:r})}function lS({className:e,formats:t=[`jpg`,`bmp`,`png`,`json`],maxSize:n=`800MB`,accept:r,onFileSelect:i,onFolderSelect:a,ref:o,...s}){let[c,l]=(0,d.useState)(!1),u=(0,d.useRef)(null),p=(0,d.useRef)(null),m=(0,d.useRef)(0);return(0,f.jsxs)(`div`,{ref:o,className:U(`aivex:flex aivex:flex-col aivex:items-center aivex:justify-center aivex:p-[48px] aivex:rounded-[8px] aivex:border-2 aivex:border-dashed aivex:transition-colors`,c?`aivex:bg-[rgba(0,86,216,0.08)] aivex:border-[#99bef6]`:`aivex:border-[#c1c3d2]`,e),onDragEnter:e=>{e.preventDefault(),m.current++,l(!0)},onDragLeave:e=>{e.preventDefault(),m.current--,m.current===0&&l(!1)},onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),m.current=0,l(!1),e.dataTransfer.files.length>0&&i?.(e.dataTransfer.files)},...s,children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:flex-col aivex:items-center aivex:gap-6`,children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:flex-col aivex:items-center aivex:gap-3 aivex:pt-3`,children:[(0,f.jsx)(al,{size:28,color:`var(--aivex-icon-tertiary)`}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:flex-col aivex:items-center aivex:gap-1`,children:[(0,f.jsx)(`p`,{className:`aivex:text-[18px] aivex:font-medium aivex:text-text-primary aivex:leading-[26px] aivex:tracking-[-0.1px]`,children:`Drag and drop here`}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:items-center aivex:gap-3 aivex:px-4 aivex:text-sm aivex:font-normal aivex:text-text-brand`,children:[(0,f.jsxs)(`span`,{children:[`Formats : `,t.join(`, `)]}),(0,f.jsxs)(`span`,{children:[`Max size : `,n]})]})]})]}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:gap-2`,children:[(0,f.jsxs)(`button`,{type:`button`,onClick:()=>u.current?.click(),className:`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:items-center aivex:gap-xs aivex:h-8 aivex:px-md aivex:rounded-md aivex:bg-bg-tertiary aivex:text-text-primary aivex:text-sm aivex:font-medium aivex:tracking-[0.1px]`,children:[(0,f.jsx)(W,{}),(0,f.jsx)(mu,{size:16}),`File`]}),(0,f.jsxs)(`button`,{type:`button`,onClick:()=>p.current?.click(),className:`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:items-center aivex:gap-xs aivex:h-8 aivex:px-md aivex:rounded-md aivex:bg-bg-tertiary aivex:text-text-primary aivex:text-sm aivex:font-medium aivex:tracking-[0.1px]`,children:[(0,f.jsx)(W,{}),(0,f.jsx)(vu,{size:16}),`Folder`]})]})]}),(0,f.jsx)(`input`,{ref:u,type:`file`,multiple:!0,accept:r,className:`aivex:hidden`,onChange:e=>e.target.files&&i?.(e.target.files)}),(0,f.jsx)(`input`,{ref:p,type:`file`,multiple:!0,webkitdirectory:``,className:`aivex:hidden`,onChange:e=>e.target.files&&a?.(e.target.files)})]})}exports.AddFolderIcon=Pf,exports.AddPointIcon=Uc,exports.AdjustIcon=Wc,exports.AiSparkleGradientIcon=Gf,exports.AiSparkleIcon=Wf,exports.AiVDataIcon=Bc,exports.AiVOpsIcon=Vc,exports.AiVisionIcon=Hc,exports.AlignCenterIcon=Gc,exports.AlignLeftIcon=Kc,exports.AlignRightIcon=qc,exports.AngleIcon=Jc,exports.ApertureIcon=ll,exports.ArchiveIcon=Yc,exports.ArrowCircleDownFilledIcon=up,exports.ArrowCircleDownIcon=tl,exports.ArrowCircleLeftFilledIcon=dp,exports.ArrowCircleLeftIcon=nl,exports.ArrowCircleRightFilledIcon=lp,exports.ArrowCircleRightIcon=rl,exports.ArrowCircleUpFilledIcon=al,exports.ArrowCircleUpIcon=il,exports.ArrowCornerLeftTopIcon=ol,exports.ArrowDownIcon=Xc,exports.ArrowElbowDownLeftIcon=el,exports.ArrowFlowIcon=Ep,exports.ArrowGoingDownIcon=Lf,exports.ArrowGoingUpIcon=If,exports.ArrowLeftDownIcon=ip,exports.ArrowLeftIcon=Zc,exports.ArrowLeftRightIcon=sl,exports.ArrowLeftUpIcon=np,exports.ArrowRightDownIcon=tp,exports.ArrowRightIcon=Qc,exports.ArrowRightUpIcon=rp,exports.ArrowUpDownIcon=cl,exports.ArrowUpIcon=$c,exports.ArrowelbowDownRightIcon=Mp,exports.AssistantPolyIcon=Hf,exports.AssistantRectIcon=ul,exports.AtIcon=Ef,exports.Avatar=Yr,exports.Badge=Zr,exports.BarcodeIcon=dl,exports.BellIcon=pl,exports.BookmarkFilledIcon=hl,exports.BookmarkIcon=ml,exports.BoundingBoxIcon=fl,exports.BreadCrumb=dm,exports.BrightIcon=gl,exports.Button=gm,exports.CSVFileIcon=Bf,exports.CalendarIcon=_l,exports.CameraIcon=vl,exports.Card=_m,exports.CaretLineDownIcon=yl,exports.CaretLineLeftIcon=bl,exports.CaretLineRightIcon=xl,exports.CaretLineUpIcon=Sl,exports.CaretUpDownIcon=Cl,exports.ChatIcon=wl,exports.CheckCircleFilledIcon=Al,exports.CheckCircleIcon=kl,exports.CheckDoubleIcon=Ol,exports.CheckIcon=Tl,exports.Checkbox=xm,exports.CheckboxCheckIcon=El,exports.CheckboxIndeterminateIcon=Dl,exports.Chips=wm,exports.ChipsCheckbox=Sm,exports.CircleDashedIcon=su,exports.CircleFilledIcon=jl,exports.CircleOutlineIcon=Ml,exports.ClipIcon=Il,exports.ClipboardIcon=vp,exports.CloseCircleFilledIcon=mp,exports.CloseCircleIcon=Pl,exports.CloseIcon=Nl,exports.ClosedEyesIcon=Fl,exports.CodeIcon=Dp,exports.CompareIcon=Yf,exports.ConfirmIcon=jf,exports.ConnectedIcon=Ll,exports.ContrastIcon=Rl,exports.ControlIcon=Cf,exports.Copy1Icon=Bl,exports.Copy2Icon=Vl,exports.CopyIcon=zl,exports.CreditCardIcon=Hl,exports.CropIcon=Ul,exports.CuttingIcon=Wl,exports.DataGrid=__,exports.DataGridBody=l_,exports.DataGridCell=d_,exports.DataGridEmpty=p_,exports.DataGridHeader=c_,exports.DataGridHeaderCell=f_,exports.DataGridInfiniteTrigger=h_,exports.DataGridLoading=m_,exports.DataGridRoot=o_,exports.DataGridRow=u_,exports.DataGridViewport=s_,exports.DatabaseIcon=Qf,exports.DefectGeneratorIcon=Gl,exports.DeleteIcon=Kl,exports.DeletePointIcon=ql,exports.Dialog=Bv,exports.DirectionDoubleDownIcon=Jl,exports.DirectionDoubleLeftIcon=Yl,exports.DirectionDoubleRightIcon=Xl,exports.DirectionDoubleUpIcon=Zl,exports.DirectionDownIcon=Ql,exports.DirectionLeftIcon=$l,exports.DirectionRightIcon=eu,exports.DirectionUpIcon=tu,exports.DisconnectedIcon=nu,exports.Divider=Wv,exports.Dot=$r,exports.DotIcon=ru,exports.DownloadIcon=iu,exports.DragHandleIcon=au,exports.EditIcon=ou,exports.EmptyIcon=gp,exports.EnglishIcon=kp,exports.EqualIcon=_p,exports.EraserIcon=du,exports.ExpandIcon=Up,exports.ExperimentIcon=Jf,exports.ExportIcon=fu,exports.FailedIcon=pu,exports.FileIcon=mu,exports.FilterFilledIcon=gu,exports.FilterIcon=hu,exports.FitIcon=_u,exports.FloppyDiskIcon=bu,exports.FolderCloseIcon=vu,exports.FolderOpenIcon=yu,exports.GalleryViewLargeIcon=xu,exports.GalleryViewMediumIcon=Su,exports.GalleryViewSmallIcon=Cu,exports.GlobalIcon=wu,exports.GraphIcon=Tu,exports.GraphPieIcon=Du,exports.GraphScatterIcon=Eu,exports.GridIcon=Ou,exports.GuideHandleIcon=ku,exports.GuideLineIcon=Au,exports.HamburgerIcon=ju,exports.HandIcon=Mu,exports.HelpIcon=Nu,exports.HistoryIcon=Fu,exports.HomeIcon=Pu,exports.HourglassIcon=Np,exports.IconButton=Yv,exports.ImageBrokenIcon=Ru,exports.ImageIcon=Iu,exports.ImagesIcon=Lu,exports.ImportIcon=zu,exports.InfoFilledIcon=ap,exports.InfoIcon=Bu,exports.InputBase=Zv,exports.InteractionLayer=W,exports.KebabIcon=Vu,exports.KeyDeleteIcon=Uu,exports.KeyIcon=Ff,exports.KeyReturnIcon=Wu,exports.KeyboardIcon=Hu,exports.KoreanIcon=Ap,exports.LabelPointIcon=Gu,exports.LanguageIcon=Ku,exports.LightbulbIcon=yp,exports.LightingFilledIcon=xp,exports.LightingIcon=bp,exports.LineIcon=qu,exports.LinkIcon=Ju,exports.ListPlayIcon=Op,exports.LockIcon=Yu,exports.LoginIcon=Xu,exports.LogoutIcon=Zu,exports.MagicWandIcon=Uf,exports.MailIcon=Qu,exports.MapIcon=$u,exports.MapPinIcon=ed,exports.MeatballIcon=td,exports.Menu=sm,exports.Messagebox=ey,exports.MicroscopeIcon=Kf,exports.MinimizeIcon=kf,exports.MinimizeWindowIcon=Bp,exports.MinusCircleIcon=rd,exports.MinusIcon=nd,exports.Modal=dy,exports.ModalSurface=uy,exports.ModelIcon=id,exports.MonitorIcon=Sp,exports.MouseClickLeftIcon=ad,exports.MouseClickRightIcon=od,exports.MoveFolderIcon=Nf,exports.MoveIcon=sd,exports.MultiSelectionIcon=cd,exports.MuteIcon=ld,exports.Nav=gy,exports.NavItem=hy,exports.NavTile=py,exports.NewTabIcon=ud,exports.NotEqualIcon=Zf,exports.OpenEyesIcon=dd,exports.Overlay=Rv,exports.PackageIcon=Sf,exports.PageIcon=zp,exports.PageMaximizeIcon=Rp,exports.PageMinimizeIcon=Lp,exports.Pagination=Xy,exports.Panel=$y,exports.PasteIcon=fd,exports.PauseCircleFilledIcon=op,exports.PauseCircleIcon=md,exports.PauseIcon=pd,exports.PenIcon=hd,exports.PencilIcon=gd,exports.PinIcon=_d,exports.PipelineIcon=Cp,exports.PixelIcon=vd,exports.PlayCircleFilledIcon=cp,exports.PlayCircleIcon=bd,exports.PlayIcon=yd,exports.PlayProgressIcon=Tp,exports.PlusCircleFilledIcon=hp,exports.PlusCircleIcon=Sd,exports.PlusIcon=xd,exports.PointEditIcon=wd,exports.PointIcon=Cd,exports.ProgressBar=ib,exports.PushPinFilledIcon=Ed,exports.PushPinIcon=Td,exports.QuestionIcon=Rf,exports.Radio=cb,exports.ReadedMailIcon=Df,exports.RectDashedIcon=cu,exports.RectIcon=Dd,exports.RedoIcon=Od,exports.RefreshIcon=kd,exports.RepeatIcon=Ad,exports.RepeatOnceIcon=jd,exports.RequestStatusIcon=Vf,exports.RocketIcon=Md,exports.RotateRectIcon=Nd,exports.RotateRectOCRIcon=Pd,exports.RulerIcon=Fd,exports.ScaleLeftBottomIcon=Id,exports.ScaleLeftTopIcon=Ld,exports.ScaleRightBottomIcon=Rd,exports.ScaleRightTopIcon=zd,exports.ScrollArea=Hg,exports.ScrollBar=Ug,exports.SearchIcon=Bd,exports.SegmentedItem=Mb,exports.SegmentedRoot=Ab,exports.SelectBox=qy,exports.SendIcon=zf,exports.SettingIcon=Vd,exports.ShapesIcon=qf,exports.Shortcut=Pb,exports.ShrinkIcon=Hp,exports.ShuffleIcon=Hd,exports.SidebarIcon=Ud,exports.SimplificationIcon=Wd,exports.Skeleton=Wg,exports.Slider=xx,exports.SmoothIcon=Gd,exports.SortAscendingIcon=Kd,exports.SortDescendingIcon=qd,exports.SoundIcon=Jd,exports.SpecificAreaIcon=jp,exports.StarFilledIcon=Xd,exports.StarIcon=Yd,exports.StopCircleFilledIcon=sp,exports.StopCircleIcon=Qd,exports.StopIcon=Zd,exports.StorageIcon=Af,exports.StrokeIcon=$d,exports.Switch=Ex,exports.TabContent=Zx,exports.TabList=Jx,exports.TabRoot=Kx,exports.TabTrigger=Xx,exports.Table=Jg,exports.TableBody=Qg,exports.TableCaption=Zg,exports.TableCell=t_,exports.TableEmpty=n_,exports.TableFooter=Xg,exports.TableHead=e_,exports.TableHeader=Yg,exports.TableLoading=r_,exports.TableRow=$g,exports.Tag=$x,exports.TagFilledIcon=Tf,exports.TagFilledOpacityIcon=pp,exports.TagIcon=wf,exports.Tagbox=eS,exports.TargetIcon=Xf,exports.TaskQueueIcon=Vp,exports.TeamIcon=ef,exports.TempIcon=tf,exports.TestIcon=Of,exports.TextBoldIcon=rf,exports.TextH1Icon=cf,exports.TextH2Icon=lf,exports.TextH3Icon=uf,exports.TextIcon=nf,exports.TextItalicIcon=af,exports.TextStrikethroughIcon=of,exports.TextUnderlineIcon=sf,exports.Textarea=tS,exports.Textbox=nS,exports.ThumbsDownFilledIcon=Ip,exports.ThumbsDownIcon=Fp,exports.ThumbsUpIcon=Pp,exports.TimeIcon=df,exports.Toast=iS,exports.ToastToaster=aS,exports.ToolIcon=wp,exports.Tooltip=Kr,exports.TriangleDashedIcon=lu,exports.Typography=cS,exports.UndoIcon=ff,exports.UneditableIcon=pf,exports.UnlockIcon=mf,exports.UnreadIcon=Mf,exports.UploadArea=lS,exports.UploadIcon=hf,exports.UserIcon=gf,exports.WarningCircleFilledIcon=ep,exports.WarningCircleIcon=$f,exports.WarningTriangleFilledIcon=fp,exports.WarningTriangleIcon=uu,exports.WheelIcon=_f,exports.WorkspaceIcon=vf,exports.Zoom100Icon=yf,exports.ZoomInIcon=bf,exports.ZoomOutIcon=xf,exports.avatarVariants=qr,exports.badgeVariants=Xr,exports.buttonVariants=hm,exports.checkboxVariants=vm,exports.chipsVariants=Cm,exports.cn=U,exports.dividerVariants=Uv,exports.dotVariants=Qr,exports.getCoreRowModel=Ih,exports.getExpandedRowModel=Lh,exports.getFacetedMinMaxValues=zh,exports.getFacetedRowModel=Uh,exports.getFacetedUniqueValues=Wh,exports.getFilteredRowModel=Gh,exports.getGroupedRowModel=Kh,exports.getPaginationRowModel=Jh,exports.getSortedRowModel=Yh,exports.iconButtonVariants=Gv,exports.inputContainerVariants=Xv,exports.inputWrapperVariants=Xv,exports.messageboxVariants=Qv,exports.navItemVariants=my,exports.navTileVariants=fy,exports.overlayVariants=Lv,exports.radioVariants=ab,exports.tagVariants=Qx,exports.toast=_.toast,exports.toastVariants=rS,exports.tooltipContentVariants=Wr,exports.typographyVariants=oS;
|
|
54
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return d.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},Av=lv,jv=pv,Mv=hv,Nv=bv,Pv=Ov,Fv=Sv,Iv=wv,Lv=(0,l.cva)(`aivex:fixed aivex:inset-0 aivex:z-40`,{variants:{type:{dim:`aivex:bg-black/50`,frost:`aivex:backdrop-blur-sm aivex:bg-white/30`}},defaultVariants:{type:`dim`}});function Rv({className:e,type:t=`dim`,ref:n,...r}){return(0,f.jsx)(`div`,{ref:n,"aria-hidden":`true`,className:U(Lv({type:t}),e),...r})}var zv={default:{component:Al,className:`aivex:text-icon-success`},warning:{component:fp,className:`aivex:text-icon-warning`}};function Bv({open:e,defaultOpen:t,onOpenChange:n,variant:r=`default`,title:i,description:a,children:o,cancelButton:s,confirmButton:c,showIcon:l=!1,ref:u,...d}){let p=zv[r],m=l?p.component:null,h=!!m,g=r===`warning`?`danger`:`primary`;return(0,f.jsx)(Av,{open:e,defaultOpen:t,onOpenChange:n,...d,children:(0,f.jsxs)(jv,{children:[(0,f.jsx)(Mv,{asChild:!0,children:(0,f.jsx)(Rv,{type:`dim`})}),(0,f.jsx)(Nv,{ref:u,className:`aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-50 aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none`,children:(0,f.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl`,children:[(0,f.jsxs)(`div`,{className:U(`aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs`,h?`aivex:items-center aivex:justify-center aivex:text-center`:`aivex:items-start aivex:text-left`),children:[m&&(0,f.jsx)(`span`,{className:U(`aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none`,p.className),children:(0,f.jsx)(m,{size:28})}),(0,f.jsx)(Fv,{className:`aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary`,children:i}),a&&(0,f.jsx)(Iv,{className:`aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary`,children:a}),o]}),(s||c)&&(0,f.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg`,children:[s&&(0,f.jsx)(Vv,{...s}),c&&(0,f.jsx)(Hv,{...c,defaultColor:g})]})]})})]})})}function Vv({children:e,onClick:t,...n}){return(0,f.jsx)(Pv,{asChild:!0,children:(0,f.jsx)(gm,{variant:`solid`,color:`secondary`,size:`lg`,className:`aivex:min-w-0 aivex:basis-0 aivex:flex-1`,onClick:e=>{t?.(e)},...n,children:e})})}function Hv({children:e,defaultColor:t,onClick:n,...r}){return(0,f.jsx)(gm,{variant:`solid`,color:t,size:`lg`,className:`aivex:min-w-0 aivex:basis-0 aivex:flex-1`,onClick:e=>{n?.(e)},...r,children:e})}var Uv=(0,l.cva)(`aivex:shrink-0`,{variants:{strength:{basic:``,bold:``},direction:{horizontal:`aivex:w-full`,vertical:`aivex:h-full`}},compoundVariants:[{strength:`basic`,direction:`horizontal`,className:`aivex:border-t aivex:border-border-default`},{strength:`basic`,direction:`vertical`,className:`aivex:border-l aivex:border-border-default`},{strength:`bold`,direction:`horizontal`,className:`aivex:border-t-2 aivex:border-border-subtle`},{strength:`bold`,direction:`vertical`,className:`aivex:border-l-2 aivex:border-border-subtle`}],defaultVariants:{strength:`basic`,direction:`horizontal`}});function Wv({className:e,strength:t,direction:n,ref:r,...i}){return(0,f.jsx)(`hr`,{ref:r,"aria-orientation":n===`vertical`?`vertical`:`horizontal`,className:U(Uv({strength:t,direction:n}),e),...i})}var Gv=(0,l.cva)(`aivex:relative aivex:group aivex:inline-flex aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:transition-colors aivex:disabled:pointer-events-none aivex:disabled:opacity-disable aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand`,{variants:{size:{xs:`aivex:size-xl aivex:rounded-xs`,sm:`aivex:size-2xl aivex:rounded-xs`,md:`aivex:size-3xl aivex:rounded-sm`},shape:{rectangle:``,rounded:`aivex:rounded-full`}},defaultVariants:{size:`sm`,shape:`rectangle`}}),Kv={xs:`aivex:size-xl`,sm:`aivex:size-2xl`,md:`aivex:size-3xl`},qv={xs:`aivex:-inset-2xs`,sm:`aivex:-inset-xs`,md:`aivex:-inset-xs`},Jv={xs:{rectangle:`aivex:rounded-xs`,rounded:`aivex:rounded-full`},sm:{rectangle:`aivex:rounded-sm`,rounded:`aivex:rounded-full`},md:{rectangle:`aivex:rounded-md`,rounded:`aivex:rounded-full`}};function Yv({className:e,size:t=`sm`,shape:n=`rectangle`,color:r=`primary`,error:i=!1,asChild:a=!1,children:o,ref:s,...c}){let l=a?m.Slot:`button`,u=i?`aivex:text-icon-danger`:r===`white`?`aivex:text-static-white`:`aivex:text-icon-primary`,d=i?`danger`:r===`white`?`white`:`default`,p=t??`sm`,h=n??`rectangle`;return(0,f.jsxs)(l,{ref:s,type:a?void 0:`button`,className:U(Gv({size:t,shape:n}),u,e),...c,children:[(0,f.jsx)(W,{variant:d,fill:!1,interactive:!0,className:U(qv[p],Jv[p][h])}),(0,f.jsx)(`span`,{className:U(`aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0`,Kv[p]),children:o})]})}var Xv=(0,l.cva)(`aivex:flex aivex:w-full aivex:border aivex:bg-bg-primary aivex:transition-colors`,{variants:{state:{default:`aivex:border-border-default`,filled:`aivex:border-border-default`,focused:`aivex:border-border-brand aivex:shadow-[inset_0_0_0_1px_var(--aivex-border-brand)]`,error:`aivex:border-border-danger`,disabled:`aivex:border-border-disabled aivex:bg-bg-disabled aivex:opacity-disable aivex:pointer-events-none`},size:{sm:`aivex:rounded-sm`,md:`aivex:rounded-md`},layout:{inline:`aivex:items-center aivex:px-lg aivex:gap-xs`,block:`aivex:items-start aivex:px-lg aivex:gap-xs`,wrap:`aivex:flex-wrap aivex:items-center aivex:content-center aivex:px-md aivex:gap-xs`}},compoundVariants:[{layout:`inline`,size:`sm`,class:`aivex:h-8`},{layout:`inline`,size:`md`,class:`aivex:h-10`},{layout:`block`,size:`sm`,class:`aivex:py-xs aivex:min-h-8`},{layout:`block`,size:`md`,class:`aivex:py-lg aivex:min-h-10`},{layout:`wrap`,size:`sm`,class:`aivex:py-2xs aivex:min-h-8`},{layout:`wrap`,size:`md`,class:`aivex:py-2xs aivex:min-h-10`}],defaultVariants:{state:`default`,size:`md`,layout:`inline`}});function Zv({id:e,label:t,helperText:n,error:r,disabled:i,focused:a,filled:o,size:s=`md`,layout:c=`inline`,startContent:l,endContent:u,containerClassName:d,className:p,children:m}){let h=i?`disabled`:r?`error`:a?`focused`:o?`filled`:`default`,g=U(`aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs`,s===`sm`?`aivex:size-4 aivex:[&_svg]:size-4`:`aivex:size-5 aivex:[&_svg]:size-5`,h===`disabled`?`aivex:text-text-disabled`:h===`default`?`aivex:text-icon-tertiary`:`aivex:text-icon-secondary`);return(0,f.jsxs)(`div`,{className:U(`aivex:flex aivex:flex-col aivex:gap-xs aivex:w-full`,p),children:[t&&(0,f.jsx)(`label`,{htmlFor:e,className:U(`aivex:text-label-md aivex:text-text-secondary`,i&&`aivex:text-text-disabled`,!i&&r&&`aivex:text-text-danger`),children:t}),(0,f.jsxs)(`div`,{className:U(Xv({state:h,size:s,layout:c}),d),children:[l&&(0,f.jsx)(`span`,{className:g,children:l}),m,u&&(0,f.jsx)(`span`,{className:g,children:u})]}),n&&(0,f.jsx)(`p`,{className:U(`aivex:text-caption-md aivex:text-text-secondary aivex:line-clamp-2`,!i&&r&&`aivex:text-text-danger`),children:n})]})}var Qv=(0,l.cva)(`aivex:inline-flex aivex:rounded-md aivex:px-lg aivex:py-xs aivex:border aivex:text-body-md-regular`,{variants:{type:{basic:`aivex:bg-bg-secondary aivex:border-border-default aivex:text-text-secondary`,info:`aivex:bg-bg-info-subtle aivex:border-border-info-subtle aivex:text-icon-info`,success:`aivex:bg-bg-success-subtle aivex:border-border-success-subtle aivex:text-text-success`,warning:`aivex:bg-bg-warning-subtle aivex:border-border-warning-subtle aivex:text-text-warning`,danger:`aivex:bg-bg-danger-subtle aivex:border-border-danger-subtle aivex:text-text-danger`}},defaultVariants:{type:`basic`}}),$v={basic:{Icon:Bu,className:`aivex:text-icon-secondary`},info:{Icon:Bu,className:`aivex:text-icon-info`},success:{Icon:kl,className:`aivex:text-icon-success`},warning:{Icon:$f,className:`aivex:text-icon-warning`},danger:{Icon:pu,className:`aivex:text-icon-danger`}};function ey({className:e,type:t=`basic`,message:n,children:r,ref:i,...a}){let{Icon:o,className:s}=$v[t??`basic`],c=!!r;return(0,f.jsxs)(`div`,{ref:i,role:`status`,className:U(Qv({type:t}),c?`aivex:flex-col aivex:items-stretch`:`aivex:h-10 aivex:items-center aivex:gap-md`,e),...a,children:[(0,f.jsxs)(`div`,{className:U(`aivex:inline-flex aivex:items-center aivex:gap-md`,c&&`aivex:py-xs`),children:[(0,f.jsx)(`span`,{className:U(`aivex:inline-flex aivex:shrink-0 aivex:items-center aivex:justify-center`,s),children:(0,f.jsx)(o,{size:20})}),(0,f.jsx)(`span`,{className:c?void 0:`aivex:truncate`,children:n})]}),c&&(0,f.jsx)(`div`,{className:`aivex:pb-xs`,children:r})]})}var ty=(0,d.createContext)(!1),ny={sm:`aivex:max-w-modal-sm`,md:`aivex:max-w-modal-md`,lg:`aivex:max-w-modal-lg`,xl:`aivex:max-w-[960px]`,full:`aivex:h-[calc(100dvh-32px)] aivex:max-w-[calc(100vw-32px)]`},ry=U(`aivex:flex aivex:max-h-[80dvh] aivex:w-[85vw] aivex:flex-col aivex:gap-2xl aivex:overflow-hidden aivex:p-2xl`,`aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none`),iy=`aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs`;function ay({title:e,titleId:t,description:n,onClose:r,closeAriaLabel:i=`Close modal`,ref:a,...o}){let s=(0,d.useContext)(ty),c=(0,f.jsx)(`h2`,{...t?{id:t}:{},className:`aivex:m-0 aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary aivex:break-words`,children:e}),l=n?(0,f.jsx)(`p`,{className:`aivex:m-0 aivex:whitespace-pre-line aivex:text-body-md-regular aivex:text-text-secondary aivex:break-words`,children:n}):null,u=(0,f.jsx)(Yv,{size:`md`,onClick:r,className:`aivex:shrink-0`,"aria-label":i,children:(0,f.jsx)(Nl,{size:24})});return(0,f.jsxs)(`div`,{ref:a,className:iy,...o,children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:items-start aivex:justify-center aivex:gap-3xl`,children:[(0,f.jsx)(`div`,{className:`aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:justify-center`,children:s?(0,f.jsx)(nv,{asChild:!0,children:c}):c}),r?u:s&&(0,f.jsx)(iv,{asChild:!0,children:u})]}),s&&l?(0,f.jsx)(rv,{asChild:!0,children:l}):l]})}function oy({children:e,ref:t,...n}){return(0,f.jsx)(`div`,{ref:t,className:`aivex:min-h-0 aivex:flex-1 aivex:overflow-y-auto`,...n,children:e})}function sy({tertiaryButton:e,secondaryButton:t,primaryButton:n,ref:r,...i}){return(0,f.jsxs)(`div`,{ref:r,className:`aivex:flex aivex:h-10 aivex:w-full aivex:items-center aivex:justify-end aivex:gap-lg`,...i,children:[(0,f.jsx)(`div`,{className:`aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-center aivex:justify-start`,children:e&&(0,f.jsx)(cy,{button:e,variant:`ghost`,color:`secondary`,className:`aivex:min-w-9`})}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-end aivex:gap-lg`,children:[t&&(0,f.jsx)(cy,{button:t,variant:`solid`,color:`secondary`,className:`aivex:min-w-[84px]`}),n&&(0,f.jsx)(cy,{button:n,variant:`solid`,color:`primary`,className:`aivex:min-w-[84px]`})]})]})}function cy({button:e,variant:t,color:n,className:r}){let{children:i,...a}=e;return(0,f.jsx)(gm,{variant:t,color:n,size:`lg`,className:r,...a,children:i})}function ly({open:e,defaultOpen:t,onOpenChange:n,children:r,size:i=`md`,closeOnInteractOutside:a=!0,stopKeyboardPropagation:o=!0,onOpenAutoFocus:s,onInteractOutside:c,onKeyDown:l,ref:u,...d}){return(0,f.jsx)(Z_,{open:e,defaultOpen:t,onOpenChange:n,children:(0,f.jsxs)($_,{children:[(0,f.jsx)(ev,{className:`aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30`}),(0,f.jsx)(tv,{ref:u,className:U(`aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-50`,`aivex:-translate-x-1/2 aivex:-translate-y-1/2`,ry,ny[i]),onInteractOutside:e=>{c?.(e),!a&&!e.defaultPrevented&&e.preventDefault()},onOpenAutoFocus:s,onKeyDown:e=>{o&&e.stopPropagation(),l?.(e)},...d,children:(0,f.jsx)(ty.Provider,{value:!0,children:r})})]})})}function uy({title:e,description:t,children:n,tertiaryButton:r,secondaryButton:i,primaryButton:a,size:o=`md`,onClose:s,closeAriaLabel:c,ref:l}){let u=(0,d.useId)(),p=!!(r||i||a);return(0,f.jsxs)(`div`,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-labelledby":u,className:U(ry,ny[o]),children:[(0,f.jsx)(ay,{title:e,titleId:u,description:t,onClose:s,closeAriaLabel:c}),n&&(0,f.jsx)(oy,{children:n}),p&&(0,f.jsx)(sy,{tertiaryButton:r,secondaryButton:i,primaryButton:a})]})}function dy({open:e,defaultOpen:t,onOpenChange:n,title:r,description:i,children:a,tertiaryButton:o,secondaryButton:s,primaryButton:c,size:l,closeOnInteractOutside:u,onOpenAutoFocus:d,closeAriaLabel:p}){return(0,f.jsxs)(ly,{open:e,defaultOpen:t,onOpenChange:n,size:l,closeOnInteractOutside:u,onOpenAutoFocus:d,children:[(0,f.jsx)(ay,{title:r,description:i,closeAriaLabel:p}),a&&(0,f.jsx)(oy,{children:a}),!!(o||s||c)&&(0,f.jsx)(sy,{tertiaryButton:o,secondaryButton:s,primaryButton:c})]})}var fy=(0,l.cva)(`aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:flex-col aivex:items-center aivex:w-14 aivex:px-0.5 aivex:py-1 aivex:rounded-[6px] aivex:transition-colors aivex:cursor-pointer aivex:select-none`,{variants:{active:{true:`aivex:bg-bg-brand-subtle`,false:`aivex:bg-transparent`}},defaultVariants:{active:!1}});function py({className:e,active:t,icon:n,children:r,ref:i,...a}){let o=t??!1;return(0,f.jsxs)(`button`,{ref:i,type:`button`,"aria-pressed":o,className:U(fy({active:t}),e),...a,children:[(0,f.jsx)(W,{}),n&&(0,f.jsx)(`span`,{className:U(`aivex:flex aivex:items-center aivex:justify-center aivex:p-1`,o?`aivex:text-text-brand`:`aivex:text-text-secondary`),children:(0,f.jsx)(`span`,{className:`aivex:flex aivex:items-center aivex:justify-center aivex:size-6`,children:n})}),r&&(0,f.jsx)(`span`,{className:U(`aivex:text-label-sm aivex:text-center`,o?`aivex:text-text-brand`:`aivex:text-text-secondary`),children:r})]})}var my=(0,l.cva)(`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:min-h-10 aivex:w-full aivex:items-center aivex:gap-md aivex:px-lg aivex:py-md aivex:rounded-md aivex:text-body-lg-medium aivex:leading-6 aivex:text-left aivex:transition-colors aivex:cursor-pointer`,{variants:{active:{true:`aivex:bg-bg-brand-subtle aivex:text-text-brand`,false:`aivex:bg-transparent aivex:text-text-secondary`}},defaultVariants:{active:!1}});function hy({className:e,active:t,icon:n,children:r,ref:i,...a}){return(0,f.jsxs)(`button`,{ref:i,type:`button`,"aria-current":t?`page`:void 0,className:U(my({active:t}),e),...a,children:[(0,f.jsx)(W,{}),n&&(0,f.jsx)(`span`,{className:`aivex:flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:size-5`,children:n}),r]})}function gy({className:e,children:t,ref:n,...r}){return(0,f.jsx)(`nav`,{ref:n,className:U(`aivex:flex aivex:flex-col aivex:gap-xs`,e),...r,children:t})}var _y=`Popover`,[vy,yy]=C(_y,[wn]),by=wn(),[xy,Sy]=vy(_y),Cy=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=by(t),c=d.useRef(null),[l,u]=d.useState(!1),[p,m]=H({prop:r,defaultProp:i??!1,onChange:a,caller:_y});return(0,f.jsx)(Bn,{...s,children:(0,f.jsx)(xy,{scope:t,contentId:I(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:l,onCustomAnchorAdd:d.useCallback(()=>u(!0),[]),onCustomAnchorRemove:d.useCallback(()=>u(!1),[]),modal:o,children:n})})};Cy.displayName=_y;var wy=`PopoverAnchor`,Ty=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Sy(wy,n),a=by(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return d.useEffect(()=>(o(),()=>s()),[o,s]),(0,f.jsx)(Vn,{...a,...r,ref:t})});Ty.displayName=wy;var Ey=`PopoverTrigger`,Dy=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Sy(Ey,n),a=by(n),o=x(t,i.triggerRef),s=(0,f.jsx)(T.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Hy(i.open),...r,ref:o,onClick:v(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,f.jsx)(Vn,{asChild:!0,...a,children:s})});Dy.displayName=Ey;var Oy=`PopoverPortal`,[ky,Ay]=vy(Oy,{forceMount:void 0}),jy=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Sy(Oy,t);return(0,f.jsx)(ky,{scope:t,forceMount:n,children:(0,f.jsx)(V,{present:n||a.open,children:(0,f.jsx)(Gn,{asChild:!0,container:i,children:r})})})};jy.displayName=Oy;var My=`PopoverContent`,Ny=d.forwardRef((e,t)=>{let n=Ay(My,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Sy(My,e.__scopePopover);return(0,f.jsx)(V,{present:r||a.open,children:a.modal?(0,f.jsx)(Fy,{...i,ref:t}):(0,f.jsx)(Iy,{...i,ref:t})})});Ny.displayName=My;var Py=(0,m.createSlot)(`PopoverContent.RemoveScroll`),Fy=d.forwardRef((e,t)=>{let n=Sy(My,e.__scopePopover),r=d.useRef(null),i=x(t,r),a=d.useRef(!1);return d.useEffect(()=>{let e=r.current;if(e)return Qi(e)},[]),(0,f.jsx)(so,{as:Py,allowPinchZoom:!0,children:(0,f.jsx)(Ly,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:v(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:v(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:v(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Iy=d.forwardRef((e,t)=>{let n=Sy(My,e.__scopePopover),r=d.useRef(!1),i=d.useRef(!1);return(0,f.jsx)(Ly,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Ly=d.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,p=Sy(My,n),m=by(n);return ai(),(0,f.jsx)(di,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,f.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:(0,f.jsx)(Hn,{"data-state":Hy(p.open),role:`dialog`,id:p.contentId,...m,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),Ry=`PopoverClose`,zy=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Sy(Ry,n);return(0,f.jsx)(T.button,{type:`button`,...r,ref:t,onClick:v(e.onClick,()=>i.onOpenChange(!1))})});zy.displayName=Ry;var By=`PopoverArrow`,Vy=d.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=by(n);return(0,f.jsx)(Un,{...i,...r,ref:t})});Vy.displayName=By;function Hy(e){return e?`open`:`closed`}var Uy=Cy,Wy=Dy,Gy=jy,Ky=Ny;function qy({groups:e,value:t,placeholder:n=``,disabled:r=!1,size:i=`md`,onChange:a,renderValue:o,className:s,label:c,helperText:l,error:u}){let[p,m]=(0,d.useState)(!1),h=(()=>{for(let n of e){let e=n.options.find(e=>e.value===t);if(e)return o?o(e,n):e.label}})(),g=i===`sm`?16:20;return(0,f.jsxs)(`div`,{className:U(`aivex:flex aivex:flex-col aivex:gap-xs aivex:w-full`,s),children:[c&&(0,f.jsx)(`span`,{className:U(`aivex:text-label-md aivex:text-text-secondary`,r&&`aivex:opacity-disable`),children:c}),(0,f.jsxs)(Uy,{open:p,onOpenChange:r?void 0:m,children:[(0,f.jsx)(Wy,{asChild:!0,disabled:r,children:(0,f.jsx)(`div`,{className:U(`aivex:w-full aivex:cursor-pointer`,r&&`aivex:cursor-not-allowed`),role:`combobox`,"aria-expanded":p,"aria-haspopup":`listbox`,tabIndex:r?-1:0,children:(0,f.jsx)(Zv,{disabled:r,focused:p,error:u,filled:!!h,size:i,layout:`inline`,endContent:(0,f.jsx)(`span`,{className:U(`aivex:transition-transform aivex:duration-200 aivex:text-text-secondary`,p&&`aivex:rotate-180`),children:(0,f.jsx)(Ql,{size:g})}),children:(0,f.jsx)(`span`,{className:U(`aivex:flex-1 aivex:min-w-0 aivex:truncate aivex:pointer-events-none`,i===`sm`?`aivex:text-body-md-regular`:`aivex:text-body-lg-regular`,h?`aivex:text-text-primary`:`aivex:text-text-tertiary`),children:h??n})})})}),(0,f.jsx)(Gy,{children:(0,f.jsx)(Ky,{sideOffset:4,align:`start`,avoidCollisions:!0,onOpenAutoFocus:e=>e.preventDefault(),className:U(`aivex:z-50 aivex:min-w-[var(--radix-popover-trigger-width)] aivex:max-w-[var(--radix-popover-trigger-width)]`,`aivex:rounded-md aivex:bg-bg-primary aivex:shadow-md aivex:border aivex:border-border-subtle`,`aivex:p-xs aivex:max-h-[312px] aivex:overflow-y-auto`,`aivex:data-[state=open]:animate-in aivex:data-[state=open]:fade-in-0 aivex:data-[state=open]:zoom-in-95`,`aivex:data-[state=closed]:animate-out aivex:data-[state=closed]:fade-out-0 aivex:data-[state=closed]:zoom-out-95`),role:`listbox`,children:e.map((e,n)=>(0,f.jsxs)(`div`,{children:[n>0&&(0,f.jsx)(`div`,{className:`aivex:my-xs aivex:border-t aivex:border-border-default`}),e.title&&(0,f.jsx)(`div`,{className:`aivex:px-lg aivex:py-xs aivex:text-caption-md aivex:text-text-tertiary aivex:select-none`,children:e.title}),e.options.map(e=>(0,f.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value===t,onClick:()=>{a?.(e.value),m(!1)},className:U(`aivex:relative aivex:overflow-hidden aivex:group`,`aivex:flex aivex:h-8 aivex:w-full aivex:items-center`,`aivex:px-lg aivex:rounded-sm aivex:transition-colors`,`aivex:cursor-pointer aivex:select-none`,i===`sm`?`aivex:text-body-md-regular`:`aivex:text-body-lg-regular`,e.danger?`aivex:text-text-danger`:`aivex:text-text-primary`),children:[(0,f.jsx)(W,{variant:e.danger?`danger`:`default`}),(0,f.jsx)(`span`,{className:`aivex:truncate`,children:e.label})]},e.key??e.value))]},e.title??`group-${n}`))})})]}),l&&(0,f.jsx)(`p`,{className:U(`aivex:text-caption-md aivex:text-text-secondary aivex:line-clamp-2`,!r&&u&&`aivex:text-text-danger`),children:l})]})}function Jy({onClick:e,disabled:t,"aria-label":n,children:r}){return(0,f.jsxs)(`button`,{type:`button`,"aria-label":n,disabled:t,onClick:e,className:`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:h-8 aivex:w-8 aivex:items-center aivex:justify-center aivex:rounded-sm aivex:text-text-secondary aivex:disabled:opacity-disable aivex:disabled:pointer-events-none aivex:transition-colors`,children:[(0,f.jsx)(W,{variant:`default`}),r]})}function Yy({page:e,isActive:t,disabled:n,onClick:r}){return(0,f.jsxs)(`button`,{type:`button`,"aria-label":`Page ${e}`,"aria-current":t?`page`:void 0,disabled:n,onClick:r,className:U(`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:h-8 aivex:px-xs aivex:items-center aivex:justify-center aivex:rounded-full aivex:transition-colors aivex:disabled:opacity-disable aivex:disabled:pointer-events-none`,t?`aivex:bg-bg-brand-subtle aivex:text-text-brand`:`aivex:text-text-secondary`),children:[(0,f.jsx)(W,{variant:t?`strong`:`default`}),(0,f.jsx)(`span`,{className:`aivex:relative aivex:min-w-6 aivex:text-center aivex:text-label-lg`,children:e})]})}function Xy({className:e,totalPages:t,page:n,pageSize:r,disabled:i,pageSizeOptions:a,onChange:o,onPageSizeChange:s,ref:c,...l}){let u=(0,d.useRef)(void 0);t!=null&&(u.current=t);let p=t??u.current;if(p==null)return null;let m=Math.max(1,p),h=Math.min(Math.max(1,n),m),g=Math.floor((h-1)/10),_=g*10+1,v=Math.min(_+9,m),y=Array.from({length:v-_+1},(e,t)=>_+t),b=g===0,x=v===m,S=e=>{s?.(Number(e))};return(0,f.jsxs)(`nav`,{ref:c,"aria-label":`Pagination`,className:U(`aivex:flex aivex:items-center`,e),...l,children:[(0,f.jsx)(`div`,{className:`aivex:flex-1`}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:items-center aivex:gap-6 aivex:shrink-0`,children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:gap-2`,children:[(0,f.jsx)(Jy,{"aria-label":`First page`,disabled:i||b,onClick:()=>o(1),children:(0,f.jsx)(Yl,{size:16})}),(0,f.jsx)(Jy,{"aria-label":`Previous page group`,disabled:i||b,onClick:()=>o(_-10),children:(0,f.jsx)($l,{size:16})})]}),(0,f.jsx)(`div`,{className:`aivex:flex aivex:gap-2`,children:y.map(e=>(0,f.jsx)(Yy,{page:e,isActive:e===h,disabled:i,onClick:()=>o(e)},e))}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:gap-2`,children:[(0,f.jsx)(Jy,{"aria-label":`Next page group`,disabled:i||x,onClick:()=>o(v+1),children:(0,f.jsx)(eu,{size:16})}),(0,f.jsx)(Jy,{"aria-label":`Last page`,disabled:i||x,onClick:()=>o(m),children:(0,f.jsx)(Xl,{size:16})})]})]}),(0,f.jsx)(`div`,{className:`aivex:flex-1 aivex:flex aivex:items-center aivex:justify-end`,children:a&&(0,f.jsx)(qy,{size:`sm`,className:`aivex:w-[116px] aivex:shrink-0`,value:String(r),disabled:i,groups:[{options:a.map(({value:e,label:t})=>({value:String(e),label:t}))}],onChange:S})})]})}var Zy={left:`aivex:left-0 aivex:border-r`,right:`aivex:right-0 aivex:border-l`},Qy={md:`aivex:w-[384px]`,lg:`aivex:w-[450px]`};function $y({open:e,onOpenChange:t,title:n,children:r,headerAction:i,side:a=`right`,size:o=`md`,ref:s}){return(0,f.jsx)(Z_,{open:e,onOpenChange:t,children:(0,f.jsxs)($_,{children:[(0,f.jsx)(ev,{className:`aivex:panel-overlay aivex:fixed aivex:inset-0 aivex:z-50 aivex:bg-black/30`}),(0,f.jsxs)(tv,{ref:s,"data-side":a,className:U(`aivex:panel-content aivex:fixed aivex:top-0 aivex:z-50 aivex:flex aivex:h-dvh aivex:max-w-[calc(100vw-32px)] aivex:flex-col aivex:overflow-hidden`,`aivex:border-border-subtle aivex:bg-bg-primary aivex:shadow-xl aivex:outline-none`,Zy[a],Qy[o]),onKeyDown:e=>{e.stopPropagation()},children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:h-12 aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-lg aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-lg`,children:[(0,f.jsx)(nv,{className:`aivex:m-0 aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-xl aivex:text-text-primary`,children:n}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md`,children:[i,(0,f.jsx)(iv,{asChild:!0,children:(0,f.jsx)(`button`,{type:`button`,className:U(`aivex:flex aivex:h-6 aivex:w-6 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:rounded-sm`,`aivex:text-icon-secondary aivex:transition-colors`,`aivex:hover:bg-bg-tertiary aivex:hover:text-icon-primary`,`aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand`),"aria-label":`Close panel`,children:(0,f.jsx)(Nl,{size:20})})})]})]}),(0,f.jsx)(`div`,{className:`aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col`,children:r})]})]})})}var eb={success:{fill:`var(--aivex-bg-success-glow)`},warning:{fill:`var(--aivex-bg-warning-glow)`},info:{fill:`var(--aivex-bg-info-glow)`},danger:{fill:`var(--aivex-bg-danger-glow)`}},tb=e=>typeof e==`number`?`${e}px`:e,nb=(e,t)=>!Number.isFinite(e)||!Number.isFinite(t)||t<=0?0:Math.min(100,Math.max(0,e/t*100));function rb({className:e,current:t,total:n,color:r=`success`,width:i=`100%`,height:a=6,isProgressing:o=!1,ref:s,style:c,...l}){let u=nb(t,n),d=tb(i),p=tb(a),m=eb[r],h=o?{width:`100%`,backgroundImage:`linear-gradient(90deg, ${m.fill} 0%, color-mix(in srgb, ${m.fill}, #fff 35%) 50%, ${m.fill} 100%)`}:{width:`${u}%`,backgroundColor:m.fill};return(0,f.jsx)(`div`,{ref:s,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":n,"aria-valuenow":o?void 0:t,className:U(`aivex:relative aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary`,e),style:{width:d,height:p,...c},...l,children:(0,f.jsx)(`div`,{className:U(`aivex:absolute aivex:left-0 aivex:top-0 aivex:h-full aivex:rounded-full aivex:transition-all aivex:duration-300`,o&&`aivex-progressbar-indeterminate`),style:h})})}var ib=(0,l.cva)(`aivex:peer aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-full aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:checked:border-transparent aivex:checked:bg-bg-brand`,{variants:{size:{sm:`aivex:w-4 aivex:h-4`,md:`aivex:w-[18px] aivex:h-[18px]`}},defaultVariants:{size:`md`}}),ab={sm:`aivex:w-5 aivex:h-5`,md:`aivex:w-6 aivex:h-6`},ob={sm:`aivex:h-5`,md:`aivex:h-6`};function sb({className:e,label:t,size:n=`md`,disabled:r,checked:i,id:a,ref:o,...s}){let c=n??`md`,l={sm:`aivex:w-2 aivex:h-2`,md:`aivex:w-2.5 aivex:h-2.5`}[c];return(0,f.jsxs)(`label`,{className:U(`aivex:inline-flex aivex:items-center aivex:gap-md aivex:cursor-pointer aivex:select-none`,r&&`aivex:opacity-disable aivex:pointer-events-none`),children:[(0,f.jsxs)(`span`,{className:U(`aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group`,ab[c]),children:[(0,f.jsx)(`span`,{className:`aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity`}),(0,f.jsx)(`input`,{ref:o,id:a,type:`radio`,disabled:r,checked:i,className:U(ib({size:c}),e),...s}),(0,f.jsx)(`span`,{className:U(`aivex:pointer-events-none aivex:absolute aivex:rounded-full aivex:bg-white aivex:opacity-0 aivex:transition-opacity aivex:peer-checked:opacity-100`,l)})]}),t&&(0,f.jsx)(`span`,{className:U(`aivex:inline-flex aivex:items-center aivex:text-label-lg aivex:text-text-primary`,ob[c]),children:t})]})}var cb=`Toggle`,lb=d.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=H({prop:n,onChange:i,defaultProp:r??!1,caller:cb});return(0,f.jsx)(T.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:v(e.onClick,()=>{e.disabled||s(!o)})})});lb.displayName=cb;var ub=`ToggleGroup`,[db,fb]=C(ub,[Ai]),pb=Ai(),mb=d.default.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,f.jsx)(_b,{...r,ref:t});if(n===`multiple`)return(0,f.jsx)(vb,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${ub}\``)});mb.displayName=ub;var[hb,gb]=db(ub),_b=d.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=H({prop:n,defaultProp:r??``,onChange:i,caller:ub});return(0,f.jsx)(hb,{scope:e.__scopeToggleGroup,type:`single`,value:d.default.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:d.default.useCallback(()=>s(``),[s]),children:(0,f.jsx)(xb,{...a,ref:t})})}),vb=d.default.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=H({prop:n,defaultProp:r??[],onChange:i,caller:ub}),c=d.default.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=d.default.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,f.jsx)(hb,{scope:e.__scopeToggleGroup,type:`multiple`,value:o,onItemActivate:c,onItemDeactivate:l,children:(0,f.jsx)(xb,{...a,ref:t})})});mb.displayName=ub;var[yb,bb]=db(ub),xb=d.default.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=pb(n),u=ri(o),d={role:`group`,dir:u,...c};return(0,f.jsx)(yb,{scope:n,rovingFocus:i,disabled:r,children:i?(0,f.jsx)(Hi,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,f.jsx)(T.div,{...d,ref:t})}):(0,f.jsx)(T.div,{...d,ref:t})})}),Sb=`ToggleGroupItem`,Cb=d.default.forwardRef((e,t)=>{let n=gb(Sb,e.__scopeToggleGroup),r=bb(Sb,e.__scopeToggleGroup),i=pb(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=d.default.useRef(null);return r.rovingFocus?(0,f.jsx)(Ui,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,f.jsx)(wb,{...s,ref:t})}):(0,f.jsx)(wb,{...s,ref:t})});Cb.displayName=Sb;var wb=d.default.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=gb(Sb,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,f.jsx)(lb,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Tb=mb,Eb=Cb,Db=(0,d.createContext)({size:`md`}),Ob={sm:`aivex:h-7`,md:`aivex:h-8`,lg:`aivex:h-10`,"icon-sm":`aivex:h-7`,"icon-md":`aivex:h-8`,"icon-lg":`aivex:h-10`};function kb({className:e,size:t=`md`,value:n,defaultValue:r,onValueChange:i,fullWidth:a,children:o,ref:s,...c}){let l=n!==void 0,[u,p]=(0,d.useState)(r??n??``),m=l?n:u;return(0,f.jsx)(Db.Provider,{value:{size:t,fullWidth:a},children:(0,f.jsx)(Tb,{ref:s,type:`single`,value:m,onValueChange:e=>{e&&(l||p(e),i?.(e))},className:U(`aivex:inline-flex aivex:items-center aivex:justify-center aivex:rounded-sm aivex:bg-bg-tertiary aivex:p-2xs`,a?`aivex:w-full`:`aivex:w-fit`,Ob[t],e),...c,children:o})})}var Ab={sm:`aivex:h-6 aivex:px-md aivex:text-label-sm aivex:[&>svg]:size-4`,md:`aivex:h-7 aivex:px-md aivex:text-label-lg aivex:[&>svg]:size-4`,lg:`aivex:h-9 aivex:px-lg aivex:text-label-xl aivex:[&>svg]:size-5`,"icon-sm":`aivex:h-6 aivex:w-6 aivex:px-xs`,"icon-md":`aivex:h-7 aivex:w-7 aivex:px-xs aivex:[&>svg]:size-5`,"icon-lg":`aivex:h-9 aivex:w-9 aivex:px-sm aivex:[&>svg]:size-6`};function jb({className:e,children:t,ref:n,...r}){let{size:i,fullWidth:a}=(0,d.useContext)(Db);return(0,f.jsx)(Eb,{ref:n,className:U(`aivex:inline-flex aivex:min-w-px aivex:shrink-0 aivex:items-center aivex:justify-center aivex:gap-xs aivex:rounded-xs aivex:text-text-secondary aivex:transition-colors aivex:duration-150 aivex:cursor-pointer aivex:select-none aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand aivex:data-[state=on]:bg-bg-float aivex:data-[state=on]:text-text-primary aivex:data-[state=on]:shadow-sm aivex:hover:text-text-primary aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:cursor-not-allowed aivex:data-[disabled]:!text-text-disabled`,Ab[i],a&&`aivex:flex-1`,e),...r,children:t})}function Mb(e){return typeof e!=`string`}function Nb({className:e,keys:t,ref:n,...r}){return(0,f.jsx)(`span`,{ref:n,className:U(`aivex:inline-flex aivex:items-start aivex:gap-xs`,e),...r,children:t.map((e,t)=>(0,f.jsx)(`kbd`,{className:U(`aivex:inline-flex aivex:items-center aivex:justify-center`,`aivex:min-w-5 aivex:min-h-5 aivex:max-h-5`,`aivex:rounded-xs aivex:border aivex:border-border-default`,`aivex:text-text-secondary aivex:text-label-lg aivex:font-sans aivex:select-none`,Mb(e)?`aivex:p-2xs`:`aivex:p-xs`),children:e},t))})}function Pb(e){let t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Fb=[`PageUp`,`PageDown`],Ib=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],Lb={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},Rb=`Slider`,[zb,Bb,Vb]=ti(Rb),[Hb,Ub]=C(Rb,[Vb]),[Wb,Gb]=Hb(Rb),Kb=d.forwardRef((e,t)=>{let{name:n,min:r=0,max:i=100,step:a=1,orientation:o=`horizontal`,disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:u,onValueChange:p=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:g,..._}=e,y=d.useRef(new Set),b=d.useRef(0),x=o===`horizontal`?Yb:Xb,[S=[],C]=H({prop:u,defaultProp:l,onChange:e=>{[...y.current][b.current]?.focus(),p(e)}}),w=d.useRef(S);function T(e){O(e,ux(S,e))}function E(e){O(e,b.current)}function D(){let e=w.current[b.current];S[b.current]!==e&&m(S)}function O(e,t,{commit:n}={commit:!1}){let o=hx(a),s=tg(gx(Math.round((e-r)/a)*a+r,o),[r,i]);C((e=[])=>{let r=sx(e,s,t);if(px(r,c*a)){b.current=r.indexOf(s);let t=String(r)!==String(e);return t&&n&&m(r),t?r:e}else return e})}return(0,f.jsx)(Wb,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:i,valueIndexToChangeRef:b,thumbs:y.current,values:S,orientation:o,form:g,children:(0,f.jsx)(zb.Provider,{scope:e.__scopeSlider,children:(0,f.jsx)(zb.Slot,{scope:e.__scopeSlider,children:(0,f.jsx)(x,{"aria-disabled":s,"data-disabled":s?``:void 0,..._,ref:t,onPointerDown:v(_.onPointerDown,()=>{s||(w.current=S)}),min:r,max:i,inverted:h,onSlideStart:s?void 0:T,onSlideMove:s?void 0:E,onSlideEnd:s?void 0:D,onHomeKeyDown:()=>!s&&O(r,0,{commit:!0}),onEndKeyDown:()=>!s&&O(i,S.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!s){let n=Fb.includes(e.key)||e.shiftKey&&Ib.includes(e.key)?10:1,r=b.current,i=S[r];O(i+a*n*t,r,{commit:!0})}}})})})})});Kb.displayName=Rb;var[qb,Jb]=Hb(Rb,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),Yb=d.forwardRef((e,t)=>{let{min:n,max:r,dir:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=e,[p,m]=d.useState(null),h=x(t,e=>m(e)),g=d.useRef(void 0),_=ri(i),v=_===`ltr`,y=v&&!a||!v&&a;function b(e){let t=g.current||p.getBoundingClientRect(),i=mx([0,t.width],y?[n,r]:[r,n]);return g.current=t,i(e-t.left)}return(0,f.jsx)(qb,{scope:e.__scopeSlider,startEdge:y?`left`:`right`,endEdge:y?`right`:`left`,direction:y?1:-1,size:`width`,children:(0,f.jsx)(Zb,{dir:_,"data-orientation":`horizontal`,...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=b(e.clientX);o?.(t)},onSlideMove:e=>{let t=b(e.clientX);s?.(t)},onSlideEnd:()=>{g.current=void 0,c?.()},onStepKeyDown:e=>{let t=Lb[y?`from-left`:`from-right`].includes(e.key);l?.({event:e,direction:t?-1:1})}})})}),Xb=d.forwardRef((e,t)=>{let{min:n,max:r,inverted:i,onSlideStart:a,onSlideMove:o,onSlideEnd:s,onStepKeyDown:c,...l}=e,u=d.useRef(null),p=x(t,u),m=d.useRef(void 0),h=!i;function g(e){let t=m.current||u.current.getBoundingClientRect(),i=mx([0,t.height],h?[r,n]:[n,r]);return m.current=t,i(e-t.top)}return(0,f.jsx)(qb,{scope:e.__scopeSlider,startEdge:h?`bottom`:`top`,endEdge:h?`top`:`bottom`,size:`height`,direction:h?1:-1,children:(0,f.jsx)(Zb,{"data-orientation":`vertical`,...l,ref:p,style:{...l.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=g(e.clientY);a?.(t)},onSlideMove:e=>{let t=g(e.clientY);o?.(t)},onSlideEnd:()=>{m.current=void 0,s?.()},onStepKeyDown:e=>{let t=Lb[h?`from-bottom`:`from-top`].includes(e.key);c?.({event:e,direction:t?-1:1})}})})}),Zb=d.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=Gb(Rb,n);return(0,f.jsx)(T.span,{...l,ref:t,onKeyDown:v(e.onKeyDown,e=>{e.key===`Home`?(o(e),e.preventDefault()):e.key===`End`?(s(e),e.preventDefault()):Fb.concat(Ib).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:v(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)}),onPointerMove:v(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:v(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),Qb=`SliderTrack`,$b=d.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=Gb(Qb,n);return(0,f.jsx)(T.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})});$b.displayName=Qb;var ex=`SliderRange`,tx=d.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=Gb(ex,n),a=Jb(ex,n),o=x(t,d.useRef(null)),s=i.values.length,c=i.values.map(e=>cx(e,i.min,i.max)),l=s>1?Math.min(...c):0,u=100-Math.max(...c);return(0,f.jsx)(T.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?``:void 0,...r,ref:o,style:{...e.style,[a.startEdge]:l+`%`,[a.endEdge]:u+`%`}})});tx.displayName=ex;var nx=`SliderThumb`,rx=d.forwardRef((e,t)=>{let n=Bb(e.__scopeSlider),[r,i]=d.useState(null),a=x(t,e=>i(e)),o=d.useMemo(()=>r?n().findIndex(e=>e.ref.current===r):-1,[n,r]);return(0,f.jsx)(ix,{...e,ref:a,index:o})}),ix=d.forwardRef((e,t)=>{let{__scopeSlider:n,index:r,name:i,...a}=e,o=Gb(nx,n),s=Jb(nx,n),[c,l]=d.useState(null),u=x(t,e=>l(e)),p=c?o.form||!!c.closest(`form`):!0,m=xn(c),h=o.values[r],g=h===void 0?0:cx(h,o.min,o.max),_=lx(r,o.values.length),y=m?.[s.size],b=y?dx(y,g,s.direction):0;return d.useEffect(()=>{if(c)return o.thumbs.add(c),()=>{o.thumbs.delete(c)}},[c,o.thumbs]),(0,f.jsxs)(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[s.startEdge]:`calc(${g}% + ${b}px)`},children:[(0,f.jsx)(zb.ItemSlot,{scope:e.__scopeSlider,children:(0,f.jsx)(T.span,{role:`slider`,"aria-label":e[`aria-label`]||_,"aria-valuemin":o.min,"aria-valuenow":h,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?``:void 0,tabIndex:o.disabled?void 0:0,...a,ref:u,style:h===void 0?{display:`none`}:e.style,onFocus:v(e.onFocus,()=>{o.valueIndexToChangeRef.current=r})})}),p&&(0,f.jsx)(ox,{name:i??(o.name?o.name+(o.values.length>1?`[]`:``):void 0),form:o.form,value:h},r)]})});rx.displayName=nx;var ax=`RadioBubbleInput`,ox=d.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{let i=d.useRef(null),a=x(i,r),o=Pb(t);return d.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`input`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,f.jsx)(T.input,{style:{display:`none`},...n,ref:a,defaultValue:t})});ox.displayName=ax;function sx(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function cx(e,t,n){return tg(100/(n-t)*(e-t),[0,100])}function lx(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function ux(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function dx(e,t,n){let r=e/2;return(r-mx([0,50],[0,r])(t)*n)*n}function fx(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function px(e,t){if(t>0){let n=fx(e);return Math.min(...n)>=t}return!0}function mx(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function hx(e){return(String(e).split(`.`)[1]||``).length}function gx(e,t){let n=10**t;return Math.round(e*n)/n}var _x=Kb,vx=$b,yx=rx;function bx({className:e,trackClassName:t,thumbClassName:n,defaultValue:r=[50],value:i,min:a=0,max:o=100,step:s=1,onValueChange:c,ref:l,...u}){let p=i!==void 0,[m,h]=(0,d.useState)(r),g=p?i:m,_=e=>{p||h(e),c?.(e)},v=(0,d.useMemo)(()=>{let e=o-a||1;return[...g].sort((e,t)=>e-t).map(t=>(t-a)/e*100)},[g,a,o]),y=(0,d.useMemo)(()=>{let e=[0,...v,100];return e.slice(0,-1).map((t,n)=>({left:t,width:e[n+1]-t}))},[v]);return(0,f.jsxs)(_x,{ref:l,className:U(`aivex:relative aivex:flex aivex:w-full aivex:touch-none aivex:select-none aivex:items-center aivex:outline-none`,`aivex:data-[disabled]:pointer-events-none aivex:data-[disabled]:opacity-disable`,e),defaultValue:r,value:i,min:a,max:o,step:s,onValueChange:_,...u,children:[(0,f.jsx)(vx,{className:U(`aivex:relative aivex:h-2 aivex:w-full aivex:grow aivex:overflow-hidden aivex:rounded-full aivex:bg-bg-tertiary`),children:y.map(({left:e,width:n},r)=>{let i=r===+(v.length>=2)?`aivex:bg-bg-brand`:`aivex:bg-bg-tertiary`;return(0,f.jsx)(`div`,{className:U(`aivex:absolute aivex:top-0 aivex:h-full aivex:rounded-full`,typeof t==`string`?t:t?.(r)??i),style:{left:`${e}%`,width:`${n}%`}},r)})}),g.map((e,t)=>(0,f.jsx)(yx,{className:U(`aivex:z-10 aivex:block aivex:h-5 aivex:w-5 aivex:box-border aivex:rounded-full aivex:border-4 aivex:border-border-brand aivex:bg-bg-primary aivex:shadow-sm`,`aivex:cursor-pointer aivex:transition-transform aivex:hover:scale-110`,`aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand`,`aivex:disabled:pointer-events-none`,typeof n==`string`?n:n?.(t))},t))]})}var xx=(0,l.cva)(`aivex:block aivex:rounded-full aivex:transition-colors aivex:duration-200`,{variants:{size:{sm:`aivex:w-6 aivex:h-4`,md:`aivex:w-8 aivex:h-5`,lg:`aivex:w-10 aivex:h-6`}},defaultVariants:{size:`md`}}),Sx={sm:`aivex:w-3 aivex:h-3`,md:`aivex:w-4 aivex:h-4`,lg:`aivex:w-5 aivex:h-5`},Cx={sm:`aivex:translate-x-2`,md:`aivex:translate-x-3`,lg:`aivex:translate-x-4`},wx={sm:`aivex:h-4`,md:`aivex:h-5`,lg:`aivex:h-6`};function Tx({className:e,label:t,size:n=`md`,checked:r,defaultChecked:i,disabled:a,id:o,onChange:s,ref:c,...l}){let u=r!==void 0,[p,m]=(0,d.useState)(!!i),h=u?!!r:p,g=n??`md`;return(0,f.jsxs)(`label`,{className:U(`aivex:inline-flex aivex:items-center aivex:gap-md aivex:cursor-pointer aivex:select-none`,a&&`aivex:opacity-disable aivex:pointer-events-none`),children:[(0,f.jsxs)(`span`,{className:`aivex:relative aivex:inline-flex aivex:items-center`,children:[(0,f.jsx)(`input`,{ref:c,id:o,type:`checkbox`,role:`switch`,"aria-checked":h,disabled:a,checked:h,onChange:e=>{u||m(e.target.checked),s?.(e)},className:`aivex:sr-only aivex:peer`,...l}),(0,f.jsx)(`span`,{className:U(xx({size:g}),h?`aivex:bg-bg-brand`:`aivex:bg-border-default`,e)}),(0,f.jsx)(`span`,{className:U(`aivex:absolute aivex:top-0.5 aivex:left-0.5 aivex:rounded-full aivex:bg-white aivex:shadow aivex:transition-transform aivex:duration-200`,Sx[g],h&&Cx[g])})]}),t&&(0,f.jsx)(`span`,{className:U(`aivex:inline-flex aivex:items-center aivex:text-label-lg aivex:text-text-primary`,wx[g]),children:t})]})}var Ex=`Tabs`,[Dx,Ox]=C(Ex,[Ai]),kx=Ai(),[Ax,jx]=Dx(Ex),Mx=d.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=ri(s),[d,p]=H({prop:r,onChange:i,defaultProp:a??``,caller:Ex});return(0,f.jsx)(Ax,{scope:n,baseId:I(),value:d,onValueChange:p,orientation:o,dir:u,activationMode:c,children:(0,f.jsx)(T.div,{dir:u,"data-orientation":o,...l,ref:t})})});Mx.displayName=Ex;var Nx=`TabsList`,Px=d.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=jx(Nx,n),o=kx(n);return(0,f.jsx)(Hi,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,f.jsx)(T.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});Px.displayName=Nx;var Fx=`TabsTrigger`,Ix=d.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=jx(Fx,n),s=kx(n),c=zx(o.baseId,r),l=Bx(o.baseId,r),u=r===o.value;return(0,f.jsx)(Ui,{asChild:!0,...s,focusable:!i,active:u,children:(0,f.jsx)(T.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:v(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:v(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:v(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});Ix.displayName=Fx;var Lx=`TabsContent`,Rx=d.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=jx(Lx,n),c=zx(s.baseId,r),l=Bx(s.baseId,r),u=r===s.value,p=d.useRef(u);return d.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(V,{present:i||u,children:({present:n})=>(0,f.jsx)(T.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&a})})});Rx.displayName=Lx;function zx(e,t){return`${e}-trigger-${t}`}function Bx(e,t){return`${e}-content-${t}`}var Vx=Mx,Hx=Px,Ux=Ix,Wx=Rx;function Gx({className:e,ref:t,...n}){return(0,f.jsx)(Vx,{ref:t,className:U(`aivex:flex aivex:flex-col`,e),...n})}var Kx=`aivex:flex aivex:items-center aivex:gap-3 aivex:border-b aivex:border-border-default`;function qx({className:e,ref:t,...n}){return(0,f.jsx)(Hx,{ref:t,className:U(Kx,e),...n})}var Jx=`aivex:relative aivex:inline-flex aivex:h-12 aivex:items-center aivex:justify-center aivex:gap-sm aivex:overflow-hidden aivex:px-md aivex:text-body-lg-medium aivex:text-text-primary aivex:transition-colors aivex:before:absolute aivex:before:inset-x-0 aivex:before:top-md aivex:before:bottom-md aivex:before:rounded-md aivex:before:bg-bg-inverse-strong aivex:before:opacity-0 aivex:before:pointer-events-none aivex:before:transition-opacity aivex:before:content-[''] aivex:hover:before:opacity-4 aivex:active:before:opacity-8 aivex:focus-visible:outline-none aivex:disabled:cursor-not-allowed aivex:disabled:opacity-40 aivex:data-[state=active]:after:absolute aivex:data-[state=active]:after:bottom-0 aivex:data-[state=active]:after:left-0 aivex:data-[state=active]:after:right-0 aivex:data-[state=active]:after:h-0.5 aivex:data-[state=active]:after:bg-bg-inverse aivex:data-[state=active]:after:content-['']`;function Yx({className:e,ref:t,...n}){return(0,f.jsx)(Ux,{ref:t,className:U(Jx,e),...n})}function Xx({className:e,ref:t,...n}){return(0,f.jsx)(Wx,{ref:t,className:U(`aivex:flex-1 aivex:outline-none`,e),...n})}var Zx=(0,l.cva)(`aivex:inline-flex aivex:items-center aivex:gap-[2px] aivex:rounded-full aivex:overflow-hidden`,{variants:{size:{sm:`aivex:min-h-6 aivex:px-[6px] aivex:py-[2px]`,md:`aivex:min-h-8 aivex:px-[10px] aivex:py-[6px]`},type:{default:`aivex:bg-bg-tertiary aivex:text-text-primary`,error:`aivex:bg-bg-danger-subtle aivex:text-text-danger`}},defaultVariants:{size:`sm`,type:`default`}});function Qx({className:e,size:t=`sm`,type:n=`default`,startContent:r,showIcon:i=!1,disabled:a=!1,onRemove:o,children:s,ref:c,...l}){return(0,f.jsxs)(`div`,{ref:c,className:U(Zx({size:t,type:n}),a&&`aivex:opacity-disable`,e),...l,children:[r?(0,f.jsx)(`span`,{className:`aivex:flex aivex:shrink-0 aivex:items-center aivex:justify-center`,children:r}):i?(0,f.jsx)(`span`,{className:`aivex:shrink-0 aivex:flex aivex:items-center aivex:justify-center aivex:opacity-40`,children:(0,f.jsx)(su,{size:16})}):null,(0,f.jsx)(`span`,{className:U(`aivex:px-[2px] aivex:truncate`,t===`sm`?`aivex:text-label-md aivex:max-w-[160px]`:`aivex:text-label-lg aivex:max-w-[180px]`),children:s}),!a&&o&&(0,f.jsx)(Yv,{size:`xs`,shape:`rounded`,onClick:e=>{e.stopPropagation(),o()},className:`aivex:shrink-0`,"aria-label":`태그 삭제`,children:(0,f.jsx)(Nl,{size:12})})]})}function $x({className:e,size:t=`sm`,label:n,helperText:r,error:i,disabled:a,readOnly:o,value:s,defaultValue:c=[],onChange:l,parsePaste:u,validate:p,renderTag:m,placeholder:h,id:g,ref:_,onBlur:v,onCompositionEnd:y,onCompositionStart:b,onFocus:x,onKeyDown:S,onPaste:C,...w}){let T=s!==void 0,[E,D]=(0,d.useState)(c),O=T?s:E,[k,A]=(0,d.useState)(``),j=(0,d.useRef)(!1),[M,N]=(0,d.useState)(!1),P=M&&!o,ee=p?O.some(e=>!p(e)):!1,te=i||ee,ne=e=>{let t=e.trim();if(!t)return;let n=[...O,t];T||D(n),l?.(n),A(``)},re=e=>{let t=O.filter((t,n)=>n!==e);T||D(t),l?.(t)},F=e=>{if(S?.(e),!e.defaultPrevented&&!o)if(e.key===`Enter`){if(j.current||e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;e.preventDefault(),k&&ne(k)}else e.key===`Backspace`&&!k&&O.length>0&&re(O.length-1)},ie=e=>{if(C?.(e),e.defaultPrevented||o||!u)return;e.preventDefault();let t=u(e.clipboardData.getData(`text`)),n=[...new Set(t)].map(e=>e.trim()).filter(e=>e&&!O.includes(e));if(n.length>0){let e=[...O,...n];T||D(e),l?.(e)}A(``)},ae=O.map((e,n)=>{let r=()=>re(n),i=p?p(e)?`default`:`error`:te?`error`:`default`;return m?(0,f.jsx)(d.Fragment,{children:m(e,n,{remove:r,size:t,disabled:a,type:i})},`${e}-${n}`):(0,f.jsx)(Qx,{size:t===`md`?`md`:`sm`,type:i,disabled:a,onRemove:r,children:e},`${e}-${n}`)}),oe=(0,f.jsx)(`input`,{ref:_,id:g,value:k,disabled:a,readOnly:o,placeholder:O.length===0?h:void 0,onChange:e=>{o||A(e.target.value)},onKeyDown:F,onPaste:ie,onCompositionStart:e=>{j.current=!0,b?.(e)},onCompositionEnd:e=>{j.current=!1,o||A(e.currentTarget.value),y?.(e)},onFocus:e=>{o||N(!0),x?.(e)},onBlur:e=>{N(!1),v?.(e),!o&&!j.current&&k&&ne(k)},className:U(`aivex:bg-transparent aivex:outline-none aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:min-w-[80px] aivex:flex-1`,o&&`aivex:cursor-default`,t===`sm`?`aivex:text-body-md-regular aivex:h-6`:`aivex:text-body-lg-regular aivex:h-8`),...w});return(0,f.jsxs)(Zv,{id:g,label:n,helperText:r,error:te,disabled:a,focused:P,size:t,layout:`wrap`,containerClassName:U(e,o&&`aivex:cursor-default`),children:[ae,oe]})}function eS({className:e,label:t,helperText:n,error:r,disabled:i,size:a=`md`,minHeight:o,fixedHeight:s,startContent:c,endContent:l,id:u,ref:p,onFocus:m,onBlur:h,...g}){let[_,v]=(0,d.useState)(!1),y={};return o!==void 0&&(y.minHeight=typeof o==`number`?`${o}px`:o),s&&o!==void 0&&(y.height=y.minHeight,y.maxHeight=y.minHeight),(0,f.jsx)(Zv,{id:u,label:t,helperText:n,error:r,disabled:i,focused:_,size:a,layout:`block`,startContent:c,endContent:l,children:(0,f.jsx)(`textarea`,{ref:p,id:u,disabled:i,style:y,className:U(`aivex:w-full aivex:min-w-0 aivex:bg-transparent aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none`,a===`sm`?`aivex:text-body-md-regular`:`aivex:text-body-lg-regular`,s?`aivex:resize-none aivex:overflow-auto`:`aivex:resize-vertical`,e),onFocus:e=>{v(!0),m?.(e)},onBlur:e=>{v(!1),h?.(e)},...g})})}function tS({className:e,label:t,helperText:n,error:r,disabled:i,clearable:a,startContent:o,endContent:s,size:c=`md`,id:l,ref:u,value:p,defaultValue:m,onChange:h,onFocus:g,onBlur:_,...v}){let[y,b]=(0,d.useState)(!1),[x,S]=(0,d.useState)(typeof m==`string`?m:m?.toString()??``),C=p!==void 0,w=C?String(p??``):x,T=a&&w.length>0,E=e=>{C||S(e.target.value),h?.(e)},D=(0,f.jsxs)(f.Fragment,{children:[s,T&&(0,f.jsx)(Yv,{size:c===`sm`?`xs`:`sm`,onClick:()=>{C||S(``),h?.({target:{value:``}})},onMouseDown:e=>e.preventDefault(),tabIndex:-1,className:`aivex:shrink-0`,"aria-label":`입력값 삭제`,children:(0,f.jsx)(Nl,{size:c===`sm`?14:16})})]}),O=s||T;return(0,f.jsx)(Zv,{id:l,label:t,helperText:n,error:r,disabled:i,focused:y,filled:w.length>0,size:c,layout:`inline`,startContent:o,endContent:O?D:void 0,children:(0,f.jsx)(`input`,{ref:u,id:l,disabled:i,value:a?w:p,defaultValue:a?void 0:m,onChange:a||C?E:h,className:U(`aivex:m-0 aivex:w-full aivex:min-w-0 aivex:appearance-none aivex:border-0 aivex:bg-transparent aivex:p-0 aivex:text-text-primary aivex:placeholder:text-text-tertiary aivex:outline-none`,c===`sm`?`aivex:text-body-md-regular`:`aivex:text-body-lg-regular`,e),onFocus:e=>{b(!0),g?.(e)},onBlur:e=>{b(!1),_?.(e)},...v})})}var nS=(0,l.cva)(`aivex:inline-flex aivex:min-h-10 aivex:w-fit aivex:items-center aivex:justify-center aivex:gap-md aivex:rounded-xs aivex:bg-static-gray aivex:px-xl aivex:py-md`,{variants:{type:{default:``,success:``,danger:``}},defaultVariants:{type:`default`}});function rS({className:e,type:t=`default`,open:n=!0,message:r,onClose:i,ref:a,...o}){return n?(0,f.jsxs)(`div`,{ref:a,role:`status`,"aria-live":`polite`,className:U(nS({type:t}),e),...o,children:[(0,f.jsx)(`p`,{className:`aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white`,children:r}),i&&(0,f.jsx)(`button`,{type:`button`,onClick:i,className:`aivex:ml-lg aivex:shrink-0 aivex:text-static-white aivex:opacity-70 aivex:transition-opacity aivex:hover:opacity-100`,"aria-label":`Close toast`,children:(0,f.jsx)(Nl,{size:16})})]}):null}function iS({position:e=`bottom-center`,duration:t=4e3,visibleToasts:n=3,gap:r=8,toastOptions:i,...a}){return(0,f.jsx)(_.Toaster,{position:e,duration:t,visibleToasts:n,gap:r,toastOptions:{...i,unstyled:!0,className:U(nS({type:`default`}),i?.className),classNames:{title:`aivex:max-w-[720px] aivex:text-center aivex:text-body-lg-regular aivex:text-static-white`,description:`aivex:mt-xs aivex:max-w-[720px] aivex:text-center aivex:text-body-md-regular aivex:text-static-white aivex:opacity-80`,closeButton:`aivex:text-static-white aivex:opacity-70 aivex:transition-opacity aivex:hover:opacity-100`,...i?.classNames}},...a})}var aS=(0,l.cva)(``,{variants:{variant:{"display-lg":`aivex:text-display-lg`,"display-md":`aivex:text-display-md`,"heading-xl":`aivex:text-heading-xl`,"heading-lg":`aivex:text-heading-lg`,"heading-md":`aivex:text-heading-md`,"heading-sm":`aivex:text-heading-sm`,"heading-xs":`aivex:text-heading-xs`,"body-lg-regular":`aivex:text-body-lg-regular`,"body-lg-medium":`aivex:text-body-lg-medium`,"body-md-regular":`aivex:text-body-md-regular`,"body-md-medium":`aivex:text-body-md-medium`,"body-sm-regular":`aivex:text-body-sm-regular`,"body-sm-medium":`aivex:text-body-sm-medium`,"label-xl":`aivex:text-label-xl`,"label-lg":`aivex:text-label-lg`,"label-md":`aivex:text-label-md`,"label-sm":`aivex:text-label-sm`,"caption-md":`aivex:text-caption-md`}},defaultVariants:{variant:`body-md-regular`}}),oS={"display-lg":`h1`,"display-md":`h1`,"heading-xl":`h1`,"heading-lg":`h2`,"heading-md":`h2`,"heading-sm":`h3`,"heading-xs":`h4`,"body-lg-regular":`p`,"body-lg-medium":`p`,"body-md-regular":`p`,"body-md-medium":`p`,"body-sm-regular":`p`,"body-sm-medium":`p`,"label-xl":`span`,"label-lg":`span`,"label-md":`span`,"label-sm":`span`,"caption-md":`span`};function sS({as:e,variant:t=`body-md-regular`,className:n,children:r,ref:i,...a}){return(0,f.jsx)(e??oS[t],{ref:i,className:U(aS({variant:t}),n),...a,children:r})}function cS({className:e,formats:t=[`jpg`,`bmp`,`png`,`json`],maxSize:n=`800MB`,accept:r,onFileSelect:i,onFolderSelect:a,ref:o,...s}){let[c,l]=(0,d.useState)(!1),u=(0,d.useRef)(null),p=(0,d.useRef)(null),m=(0,d.useRef)(0);return(0,f.jsxs)(`div`,{ref:o,className:U(`aivex:flex aivex:flex-col aivex:items-center aivex:justify-center aivex:p-[48px] aivex:rounded-[8px] aivex:border-2 aivex:border-dashed aivex:transition-colors`,c?`aivex:bg-[rgba(0,86,216,0.08)] aivex:border-[#99bef6]`:`aivex:border-[#c1c3d2]`,e),onDragEnter:e=>{e.preventDefault(),m.current++,l(!0)},onDragLeave:e=>{e.preventDefault(),m.current--,m.current===0&&l(!1)},onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),m.current=0,l(!1),e.dataTransfer.files.length>0&&i?.(e.dataTransfer.files)},...s,children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:flex-col aivex:items-center aivex:gap-6`,children:[(0,f.jsxs)(`div`,{className:`aivex:flex aivex:flex-col aivex:items-center aivex:gap-3 aivex:pt-3`,children:[(0,f.jsx)(al,{size:28,color:`var(--aivex-icon-tertiary)`}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:flex-col aivex:items-center aivex:gap-1`,children:[(0,f.jsx)(`p`,{className:`aivex:text-[18px] aivex:font-medium aivex:text-text-primary aivex:leading-[26px] aivex:tracking-[-0.1px]`,children:`Drag and drop here`}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:items-center aivex:gap-3 aivex:px-4 aivex:text-sm aivex:font-normal aivex:text-text-brand`,children:[(0,f.jsxs)(`span`,{children:[`Formats : `,t.join(`, `)]}),(0,f.jsxs)(`span`,{children:[`Max size : `,n]})]})]})]}),(0,f.jsxs)(`div`,{className:`aivex:flex aivex:gap-2`,children:[(0,f.jsxs)(`button`,{type:`button`,onClick:()=>u.current?.click(),className:`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:items-center aivex:gap-xs aivex:h-8 aivex:px-md aivex:rounded-md aivex:bg-bg-tertiary aivex:text-text-primary aivex:text-sm aivex:font-medium aivex:tracking-[0.1px]`,children:[(0,f.jsx)(W,{}),(0,f.jsx)(mu,{size:16}),`File`]}),(0,f.jsxs)(`button`,{type:`button`,onClick:()=>p.current?.click(),className:`aivex:relative aivex:overflow-hidden aivex:group aivex:flex aivex:items-center aivex:gap-xs aivex:h-8 aivex:px-md aivex:rounded-md aivex:bg-bg-tertiary aivex:text-text-primary aivex:text-sm aivex:font-medium aivex:tracking-[0.1px]`,children:[(0,f.jsx)(W,{}),(0,f.jsx)(vu,{size:16}),`Folder`]})]})]}),(0,f.jsx)(`input`,{ref:u,type:`file`,multiple:!0,accept:r,className:`aivex:hidden`,onChange:e=>e.target.files&&i?.(e.target.files)}),(0,f.jsx)(`input`,{ref:p,type:`file`,multiple:!0,webkitdirectory:``,className:`aivex:hidden`,onChange:e=>e.target.files&&a?.(e.target.files)})]})}exports.AddFolderIcon=Pf,exports.AddPointIcon=Uc,exports.AdjustIcon=Wc,exports.AiSparkleGradientIcon=Gf,exports.AiSparkleIcon=Wf,exports.AiVDataIcon=Bc,exports.AiVOpsIcon=Vc,exports.AiVisionIcon=Hc,exports.AlignCenterIcon=Gc,exports.AlignLeftIcon=Kc,exports.AlignRightIcon=qc,exports.AngleIcon=Jc,exports.ApertureIcon=ll,exports.ArchiveIcon=Yc,exports.ArrowCircleDownFilledIcon=up,exports.ArrowCircleDownIcon=tl,exports.ArrowCircleLeftFilledIcon=dp,exports.ArrowCircleLeftIcon=nl,exports.ArrowCircleRightFilledIcon=lp,exports.ArrowCircleRightIcon=rl,exports.ArrowCircleUpFilledIcon=al,exports.ArrowCircleUpIcon=il,exports.ArrowCornerLeftTopIcon=ol,exports.ArrowDownIcon=Xc,exports.ArrowElbowDownLeftIcon=el,exports.ArrowFlowIcon=Ep,exports.ArrowGoingDownIcon=Lf,exports.ArrowGoingUpIcon=If,exports.ArrowLeftDownIcon=ip,exports.ArrowLeftIcon=Zc,exports.ArrowLeftRightIcon=sl,exports.ArrowLeftUpIcon=np,exports.ArrowRightDownIcon=tp,exports.ArrowRightIcon=Qc,exports.ArrowRightUpIcon=rp,exports.ArrowUpDownIcon=cl,exports.ArrowUpIcon=$c,exports.ArrowelbowDownRightIcon=Mp,exports.AssistantPolyIcon=Hf,exports.AssistantRectIcon=ul,exports.AtIcon=Ef,exports.Avatar=Yr,exports.Badge=Zr,exports.BarcodeIcon=dl,exports.BellIcon=pl,exports.BookmarkFilledIcon=hl,exports.BookmarkIcon=ml,exports.BoundingBoxIcon=fl,exports.BreadCrumb=dm,exports.BrightIcon=gl,exports.Button=gm,exports.CSVFileIcon=Bf,exports.CalendarIcon=_l,exports.CameraIcon=vl,exports.Card=_m,exports.CaretLineDownIcon=yl,exports.CaretLineLeftIcon=bl,exports.CaretLineRightIcon=xl,exports.CaretLineUpIcon=Sl,exports.CaretUpDownIcon=Cl,exports.ChatIcon=wl,exports.CheckCircleFilledIcon=Al,exports.CheckCircleIcon=kl,exports.CheckDoubleIcon=Ol,exports.CheckIcon=Tl,exports.Checkbox=xm,exports.CheckboxCheckIcon=El,exports.CheckboxIndeterminateIcon=Dl,exports.Chips=wm,exports.ChipsCheckbox=Sm,exports.CircleDashedIcon=su,exports.CircleFilledIcon=jl,exports.CircleOutlineIcon=Ml,exports.ClipIcon=Il,exports.ClipboardIcon=vp,exports.CloseCircleFilledIcon=mp,exports.CloseCircleIcon=Pl,exports.CloseIcon=Nl,exports.ClosedEyesIcon=Fl,exports.CodeIcon=Dp,exports.CompareIcon=Yf,exports.ConfirmIcon=jf,exports.ConnectedIcon=Ll,exports.ContrastIcon=Rl,exports.ControlIcon=Cf,exports.Copy1Icon=Bl,exports.Copy2Icon=Vl,exports.CopyIcon=zl,exports.CreditCardIcon=Hl,exports.CropIcon=Ul,exports.CuttingIcon=Wl,exports.DataGrid=__,exports.DataGridBody=l_,exports.DataGridCell=d_,exports.DataGridEmpty=p_,exports.DataGridHeader=c_,exports.DataGridHeaderCell=f_,exports.DataGridInfiniteTrigger=h_,exports.DataGridLoading=m_,exports.DataGridRoot=o_,exports.DataGridRow=u_,exports.DataGridViewport=s_,exports.DatabaseIcon=Qf,exports.DefectGeneratorIcon=Gl,exports.DeleteIcon=Kl,exports.DeletePointIcon=ql,exports.Dialog=Bv,exports.DirectionDoubleDownIcon=Jl,exports.DirectionDoubleLeftIcon=Yl,exports.DirectionDoubleRightIcon=Xl,exports.DirectionDoubleUpIcon=Zl,exports.DirectionDownIcon=Ql,exports.DirectionLeftIcon=$l,exports.DirectionRightIcon=eu,exports.DirectionUpIcon=tu,exports.DisconnectedIcon=nu,exports.Divider=Wv,exports.Dot=$r,exports.DotIcon=ru,exports.DownloadIcon=iu,exports.DragHandleIcon=au,exports.EditIcon=ou,exports.EmptyIcon=gp,exports.EnglishIcon=kp,exports.EqualIcon=_p,exports.EraserIcon=du,exports.ExpandIcon=Up,exports.ExperimentIcon=Jf,exports.ExportIcon=fu,exports.FailedIcon=pu,exports.FileIcon=mu,exports.FilterFilledIcon=gu,exports.FilterIcon=hu,exports.FitIcon=_u,exports.FloppyDiskIcon=bu,exports.FolderCloseIcon=vu,exports.FolderOpenIcon=yu,exports.GalleryViewLargeIcon=xu,exports.GalleryViewMediumIcon=Su,exports.GalleryViewSmallIcon=Cu,exports.GlobalIcon=wu,exports.GraphIcon=Tu,exports.GraphPieIcon=Du,exports.GraphScatterIcon=Eu,exports.GridIcon=Ou,exports.GuideHandleIcon=ku,exports.GuideLineIcon=Au,exports.HamburgerIcon=ju,exports.HandIcon=Mu,exports.HelpIcon=Nu,exports.HistoryIcon=Fu,exports.HomeIcon=Pu,exports.HourglassIcon=Np,exports.IconButton=Yv,exports.ImageBrokenIcon=Ru,exports.ImageIcon=Iu,exports.ImagesIcon=Lu,exports.ImportIcon=zu,exports.InfoFilledIcon=ap,exports.InfoIcon=Bu,exports.InputBase=Zv,exports.InteractionLayer=W,exports.KebabIcon=Vu,exports.KeyDeleteIcon=Uu,exports.KeyIcon=Ff,exports.KeyReturnIcon=Wu,exports.KeyboardIcon=Hu,exports.KoreanIcon=Ap,exports.LabelPointIcon=Gu,exports.LanguageIcon=Ku,exports.LightbulbIcon=yp,exports.LightingFilledIcon=xp,exports.LightingIcon=bp,exports.LineIcon=qu,exports.LinkIcon=Ju,exports.ListPlayIcon=Op,exports.LockIcon=Yu,exports.LoginIcon=Xu,exports.LogoutIcon=Zu,exports.MagicWandIcon=Uf,exports.MailIcon=Qu,exports.MapIcon=$u,exports.MapPinIcon=ed,exports.MeatballIcon=td,exports.Menu=sm,exports.Messagebox=ey,exports.MicroscopeIcon=Kf,exports.MinimizeIcon=kf,exports.MinimizeWindowIcon=Bp,exports.MinusCircleIcon=rd,exports.MinusIcon=nd,exports.Modal=dy,exports.ModalSurface=uy,exports.ModelIcon=id,exports.MonitorIcon=Sp,exports.MouseClickLeftIcon=ad,exports.MouseClickRightIcon=od,exports.MoveFolderIcon=Nf,exports.MoveIcon=sd,exports.MultiSelectionIcon=cd,exports.MuteIcon=ld,exports.Nav=gy,exports.NavItem=hy,exports.NavTile=py,exports.NewTabIcon=ud,exports.NotEqualIcon=Zf,exports.OpenEyesIcon=dd,exports.Overlay=Rv,exports.PackageIcon=Sf,exports.PageIcon=zp,exports.PageMaximizeIcon=Rp,exports.PageMinimizeIcon=Lp,exports.Pagination=Xy,exports.Panel=$y,exports.PasteIcon=fd,exports.PauseCircleFilledIcon=op,exports.PauseCircleIcon=md,exports.PauseIcon=pd,exports.PenIcon=hd,exports.PencilIcon=gd,exports.PinIcon=_d,exports.PipelineIcon=Cp,exports.PixelIcon=vd,exports.PlayCircleFilledIcon=cp,exports.PlayCircleIcon=bd,exports.PlayIcon=yd,exports.PlayProgressIcon=Tp,exports.PlusCircleFilledIcon=hp,exports.PlusCircleIcon=Sd,exports.PlusIcon=xd,exports.PointEditIcon=wd,exports.PointIcon=Cd,exports.ProgressBar=rb,exports.PushPinFilledIcon=Ed,exports.PushPinIcon=Td,exports.QuestionIcon=Rf,exports.Radio=sb,exports.ReadedMailIcon=Df,exports.RectDashedIcon=cu,exports.RectIcon=Dd,exports.RedoIcon=Od,exports.RefreshIcon=kd,exports.RepeatIcon=Ad,exports.RepeatOnceIcon=jd,exports.RequestStatusIcon=Vf,exports.RocketIcon=Md,exports.RotateRectIcon=Nd,exports.RotateRectOCRIcon=Pd,exports.RulerIcon=Fd,exports.ScaleLeftBottomIcon=Id,exports.ScaleLeftTopIcon=Ld,exports.ScaleRightBottomIcon=Rd,exports.ScaleRightTopIcon=zd,exports.ScrollArea=Hg,exports.ScrollBar=Ug,exports.SearchIcon=Bd,exports.SegmentedItem=jb,exports.SegmentedRoot=kb,exports.SelectBox=qy,exports.SendIcon=zf,exports.SettingIcon=Vd,exports.ShapesIcon=qf,exports.Shortcut=Nb,exports.ShrinkIcon=Hp,exports.ShuffleIcon=Hd,exports.SidebarIcon=Ud,exports.SimplificationIcon=Wd,exports.Skeleton=Wg,exports.Slider=bx,exports.SmoothIcon=Gd,exports.SortAscendingIcon=Kd,exports.SortDescendingIcon=qd,exports.SoundIcon=Jd,exports.SpecificAreaIcon=jp,exports.StarFilledIcon=Xd,exports.StarIcon=Yd,exports.StopCircleFilledIcon=sp,exports.StopCircleIcon=Qd,exports.StopIcon=Zd,exports.StorageIcon=Af,exports.StrokeIcon=$d,exports.Switch=Tx,exports.TabContent=Xx,exports.TabList=qx,exports.TabRoot=Gx,exports.TabTrigger=Yx,exports.Table=Jg,exports.TableBody=Qg,exports.TableCaption=Zg,exports.TableCell=t_,exports.TableEmpty=n_,exports.TableFooter=Xg,exports.TableHead=e_,exports.TableHeader=Yg,exports.TableLoading=r_,exports.TableRow=$g,exports.Tag=Qx,exports.TagFilledIcon=Tf,exports.TagFilledOpacityIcon=pp,exports.TagIcon=wf,exports.Tagbox=$x,exports.TargetIcon=Xf,exports.TaskQueueIcon=Vp,exports.TeamIcon=ef,exports.TempIcon=tf,exports.TestIcon=Of,exports.TextBoldIcon=rf,exports.TextH1Icon=cf,exports.TextH2Icon=lf,exports.TextH3Icon=uf,exports.TextIcon=nf,exports.TextItalicIcon=af,exports.TextStrikethroughIcon=of,exports.TextUnderlineIcon=sf,exports.Textarea=eS,exports.Textbox=tS,exports.ThumbsDownFilledIcon=Ip,exports.ThumbsDownIcon=Fp,exports.ThumbsUpIcon=Pp,exports.TimeIcon=df,exports.Toast=rS,exports.ToastToaster=iS,exports.ToolIcon=wp,exports.Tooltip=Kr,exports.TriangleDashedIcon=lu,exports.Typography=sS,exports.UndoIcon=ff,exports.UneditableIcon=pf,exports.UnlockIcon=mf,exports.UnreadIcon=Mf,exports.UploadArea=cS,exports.UploadIcon=hf,exports.UserIcon=gf,exports.WarningCircleFilledIcon=ep,exports.WarningCircleIcon=$f,exports.WarningTriangleFilledIcon=fp,exports.WarningTriangleIcon=uu,exports.WheelIcon=_f,exports.WorkspaceIcon=vf,exports.Zoom100Icon=yf,exports.ZoomInIcon=bf,exports.ZoomOutIcon=xf,exports.avatarVariants=qr,exports.badgeVariants=Xr,exports.buttonVariants=hm,exports.checkboxVariants=vm,exports.chipsVariants=Cm,exports.cn=U,exports.dividerVariants=Uv,exports.dotVariants=Qr,exports.getCoreRowModel=Ih,exports.getExpandedRowModel=Lh,exports.getFacetedMinMaxValues=zh,exports.getFacetedRowModel=Uh,exports.getFacetedUniqueValues=Wh,exports.getFilteredRowModel=Gh,exports.getGroupedRowModel=Kh,exports.getPaginationRowModel=Jh,exports.getSortedRowModel=Yh,exports.iconButtonVariants=Gv,exports.inputContainerVariants=Xv,exports.inputWrapperVariants=Xv,exports.messageboxVariants=Qv,exports.navItemVariants=my,exports.navTileVariants=fy,exports.overlayVariants=Lv,exports.radioVariants=ib,exports.tagVariants=Zx,exports.toast=_.toast,exports.toastVariants=nS,exports.tooltipContentVariants=Wr,exports.typographyVariants=aS;
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|