@yanolja-next/next-hub-ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/css/index.css +3070 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2942 -0
- package/dist/src/components/alert.d.ts +9 -0
- package/dist/src/components/assistant-ui/assistant-sidebar.d.ts +2 -0
- package/dist/src/components/assistant-ui/attachment.d.ts +4 -0
- package/dist/src/components/assistant-ui/markdown-text.d.ts +1 -0
- package/dist/src/components/assistant-ui/thread.d.ts +7 -0
- package/dist/src/components/assistant-ui/tool-fallback.d.ts +31 -0
- package/dist/src/components/assistant-ui/tooltip-icon-button.d.ts +7 -0
- package/dist/src/components/avatar.d.ts +11 -0
- package/dist/src/components/breadcrumb.d.ts +11 -0
- package/dist/src/components/button.d.ts +10 -0
- package/dist/src/components/card.d.ts +9 -0
- package/dist/src/components/collapsible.d.ts +5 -0
- package/dist/src/components/dialog.d.ts +17 -0
- package/dist/src/components/dropdown-menu.d.ts +25 -0
- package/dist/src/components/field.d.ts +24 -0
- package/dist/src/components/input.d.ts +3 -0
- package/dist/src/components/label.d.ts +4 -0
- package/dist/src/components/radio-group.d.ts +5 -0
- package/dist/src/components/resizable.d.ts +7 -0
- package/dist/src/components/select.d.ts +15 -0
- package/dist/src/components/separator.d.ts +4 -0
- package/dist/src/components/sheet.d.ts +13 -0
- package/dist/src/components/sidebar.d.ts +69 -0
- package/dist/src/components/skeleton.d.ts +2 -0
- package/dist/src/components/switch.d.ts +4 -0
- package/dist/src/components/table.d.ts +14 -0
- package/dist/src/components/textarea.d.ts +3 -0
- package/dist/src/components/tooltip.d.ts +7 -0
- package/dist/src/components/typography.d.ts +9 -0
- package/dist/src/hooks/use-mobile.d.ts +1 -0
- package/dist/src/index.d.ts +28 -0
- package/dist/src/lib/utils.d.ts +2 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +74 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),D=require("class-variance-authority"),An=require("clsx"),Pn=require("tailwind-merge"),o=require("@assistant-ui/react"),p=require("lucide-react"),b=require("react"),Dn=require("zustand/shallow"),I=require("@radix-ui/react-slot"),l=require("radix-ui"),L=require("@assistant-ui/react-markdown"),_n=require("remark-gfm"),Rn=require("react-resizable-panels"),Bn=require("@radix-ui/react-dropdown-menu"),Fn=require("@radix-ui/react-label"),En=require("@radix-ui/react-separator"),Ln=require("@radix-ui/react-select"),Gn=require("@radix-ui/react-dialog"),qn=require("@radix-ui/react-switch");function C(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const x=C(b),O=C(Rn),m=C(Bn),On=C(Fn),Hn=C(En),g=C(Ln),T=C(Gn),Q=C(qn);function c(...e){return Pn.twMerge(An.clsx(e))}const Un=D.cva("ncp:relative ncp:w-full ncp:rounded-lg ncp:border ncp:px-4 ncp:py-3 ncp:text-sm ncp:grid ncp:has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] ncp:grid-cols-[0_1fr] ncp:has-[>svg]:gap-x-3 ncp:gap-y-0.5 ncp:items-start ncp:[&>svg]:size-4 ncp:[&>svg]:translate-y-0.5 ncp:[&>svg]:text-current",{variants:{variant:{default:"ncp:bg-card ncp:text-card-foreground",destructive:"ncp:text-destructive ncp:bg-card ncp:[&>svg]:text-current ncp:*:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function Vn({className:e,variant:t,...a}){return n.jsx("div",{"data-slot":"alert",role:"alert",className:c(Un({variant:t}),e),...a})}function Wn({className:e,...t}){return n.jsx("div",{"data-slot":"alert-title",className:c("ncp:col-start-2 ncp:line-clamp-1 ncp:min-h-4 ncp:font-medium ncp:tracking-tight",e),...t})}function $n({className:e,...t}){return n.jsx("div",{"data-slot":"alert-description",className:c("ncp:text-muted-foreground ncp:col-start-2 ncp:grid ncp:justify-items-start ncp:gap-1 ncp:text-sm ncp:[&_p]:leading-relaxed",e),...t})}const nn=D.cva("ncp:inline-flex ncp:items-center ncp:justify-center ncp:gap-2 ncp:whitespace-nowrap ncp:rounded-md ncp:text-sm ncp:font-medium ncp:transition-all ncp:disabled:pointer-events-none ncp:disabled:opacity-50 ncp:[&_svg]:pointer-events-none ncp:[&_svg:not([class*=size-])]:size-4 ncp:shrink-0 ncp:[&_svg]:shrink-0 ncp:outline-none ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:focus-visible:ring-[3px] ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive",{variants:{variant:{default:"ncp:bg-primary ncp:text-primary-foreground ncp:hover:bg-primary/90",destructive:"ncp:bg-destructive ncp:text-white ncp:hover:bg-destructive/90 ncp:focus-visible:ring-destructive/20 ncp:dark:focus-visible:ring-destructive/40 ncp:dark:bg-destructive/60",outline:"ncp:border ncp:bg-background ncp:shadow-xs ncp:hover:bg-accent ncp:hover:text-accent-foreground ncp:dark:bg-input/30 ncp:dark:border-input ncp:dark:hover:bg-input/50",secondary:"ncp:bg-secondary ncp:text-secondary-foreground ncp:hover:bg-secondary/80",ghost:"ncp:hover:bg-accent ncp:hover:text-accent-foreground ncp:dark:hover:bg-accent/50",link:"ncp:text-primary ncp:underline-offset-4 ncp:hover:underline"},size:{default:"ncp:h-9 ncp:px-4 ncp:py-2 ncp:has-[>svg]:px-3",xs:"ncp:h-6 ncp:gap-1 ncp:rounded-md ncp:px-2 ncp:text-xs ncp:has-[>svg]:px-1.5 ncp:[&_svg:not([class*=size-])]:size-3",sm:"ncp:h-8 ncp:rounded-md ncp:gap-1.5 ncp:px-3 ncp:has-[>svg]:px-2.5",lg:"ncp:h-10 ncp:rounded-md ncp:px-6 ncp:has-[>svg]:px-4",icon:"ncp:size-9","icon-xs":"ncp:size-6 ncp:rounded-md ncp:[&_svg:not([class*=size-])]:size-3","icon-sm":"ncp:size-8","icon-lg":"ncp:size-10"}},defaultVariants:{variant:"default",size:"default"}});function S({className:e,variant:t="default",size:a="default",asChild:r=!1,...s}){const i=r?l.Slot.Root:"button";return n.jsx(i,{"data-slot":"button","data-variant":t,"data-size":a,className:c(nn({variant:t,size:a,className:e})),...s})}function H({delayDuration:e=0,...t}){return n.jsx(l.Tooltip.Provider,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function _({...e}){return n.jsx(H,{children:n.jsx(l.Tooltip.Root,{"data-slot":"tooltip",...e})})}function R({...e}){return n.jsx(l.Tooltip.Trigger,{"data-slot":"tooltip-trigger",...e})}function B({className:e,sideOffset:t=0,children:a,...r}){return n.jsx(l.Tooltip.Portal,{children:n.jsxs(l.Tooltip.Content,{"data-slot":"tooltip-content",sideOffset:t,className:c("ncp:bg-foreground ncp:text-background ncp:animate-in ncp:fade-in-0 ncp:zoom-in-95 ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[side=bottom]:slide-in-from-top-2 ncp:data-[side=left]:slide-in-from-right-2 ncp:data-[side=right]:slide-in-from-left-2 ncp:data-[side=top]:slide-in-from-bottom-2 ncp:z-50 ncp:w-fit ncp:origin-(--radix-tooltip-content-transform-origin) ncp:rounded-md ncp:px-3 ncp:py-1.5 ncp:text-xs ncp:text-balance",e),...r,children:[a,n.jsx(l.Tooltip.Arrow,{className:"ncp:bg-foreground ncp:fill-foreground ncp:z-50 ncp:size-2.5 ncp:translate-y-[calc(-50%_-_2px)] ncp:rotate-45 ncp:rounded-[2px]"})]})})}const h=b.forwardRef(({children:e,tooltip:t,side:a="bottom",className:r,...s},i)=>n.jsxs(_,{children:[n.jsx(R,{asChild:!0,children:n.jsxs(S,{variant:"ghost",size:"icon",...s,className:c("ncp:aui-button-icon ncp:size-6 ncp:p-1",r),ref:i,children:[n.jsx(I.Slottable,{children:e}),n.jsx("span",{className:"ncp:aui-sr-only ncp:sr-only",children:t})]})}),n.jsx(B,{side:a,children:t})]}));h.displayName="TooltipIconButton";function en({className:e,size:t="default",...a}){return n.jsx(l.Avatar.Root,{"data-slot":"avatar","data-size":t,className:c("ncp:group/avatar ncp:relative ncp:flex ncp:size-8 ncp:shrink-0 ncp:overflow-hidden ncp:rounded-full ncp:select-none ncp:data-[size=lg]:size-10 ncp:data-[size=sm]:size-6",e),...a})}function tn({className:e,...t}){return n.jsx(l.Avatar.Image,{"data-slot":"avatar-image",className:c("ncp:aspect-square ncp:size-full",e),...t})}function an({className:e,...t}){return n.jsx(l.Avatar.Fallback,{"data-slot":"avatar-fallback",className:c("ncp:bg-muted ncp:text-muted-foreground ncp:flex ncp:size-full ncp:items-center ncp:justify-center ncp:rounded-full ncp:text-sm ncp:group-data-[size=sm]/avatar:text-xs",e),...t})}function Kn({className:e,...t}){return n.jsx("span",{"data-slot":"avatar-badge",className:c("ncp:bg-primary ncp:text-primary-foreground ncp:ring-background ncp:absolute ncp:right-0 ncp:bottom-0 ncp:z-10 ncp:inline-flex ncp:items-center ncp:justify-center ncp:rounded-full ncp:ring-2 ncp:select-none","ncp:group-data-[size=sm]/avatar:size-2 ncp:group-data-[size=sm]/avatar:[&>svg]:hidden","ncp:group-data-[size=default]/avatar:size-2.5 ncp:group-data-[size=default]/avatar:[&>svg]:size-2","ncp:group-data-[size=lg]/avatar:size-3 ncp:group-data-[size=lg]/avatar:[&>svg]:size-2",e),...t})}function Xn({className:e,...t}){return n.jsx("div",{"data-slot":"avatar-group",className:c("ncp:*:data-[slot=avatar]:ring-background ncp:group/avatar-group ncp:flex ncp:-space-x-2 ncp:*:data-[slot=avatar]:ring-2",e),...t})}function Jn({className:e,...t}){return n.jsx("div",{"data-slot":"avatar-group-count",className:c("ncp:bg-muted ncp:text-muted-foreground ncp:ring-background ncp:relative ncp:flex ncp:size-8 ncp:shrink-0 ncp:items-center ncp:justify-center ncp:rounded-full ncp:text-sm ncp:ring-2 ncp:group-has-data-[size=lg]/avatar-group:size-10 ncp:group-has-data-[size=sm]/avatar-group:size-6 ncp:[&>svg]:size-4 ncp:group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 ncp:group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",e),...t})}function cn({...e}){return n.jsx(l.Dialog.Root,{"data-slot":"dialog",...e})}function rn({...e}){return n.jsx(l.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}function on({...e}){return n.jsx(l.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function Yn({...e}){return n.jsx(l.Dialog.Close,{"data-slot":"dialog-close",...e})}function sn({className:e,...t}){return n.jsx(l.Dialog.Overlay,{"data-slot":"dialog-overlay",className:c("ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:fixed ncp:inset-0 ncp:z-50 ncp:bg-black/50",e),...t})}function pn({className:e,children:t,showCloseButton:a=!0,...r}){return n.jsxs(on,{"data-slot":"dialog-portal",children:[n.jsx(sn,{}),n.jsxs(l.Dialog.Content,{"data-slot":"dialog-content",className:c("ncp:bg-background ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[state=open]:zoom-in-95 ncp:fixed ncp:top-[50%] ncp:left-[50%] ncp:z-50 ncp:grid ncp:w-full ncp:max-w-[calc(100%-2rem)] ncp:translate-x-[-50%] ncp:translate-y-[-50%] ncp:gap-4 ncp:rounded-lg ncp:border ncp:p-6 ncp:shadow-lg ncp:duration-200 ncp:outline-none ncp:sm:max-w-lg",e),...r,children:[t,a&&n.jsxs(l.Dialog.Close,{"data-slot":"dialog-close",className:"ncp:ring-offset-background ncp:focus:ring-ring ncp:data-[state=open]:bg-accent ncp:data-[state=open]:text-muted-foreground ncp:absolute ncp:top-4 ncp:right-4 ncp:rounded-xs ncp:opacity-70 ncp:transition-opacity ncp:hover:opacity-100 ncp:focus:ring-2 ncp:focus:ring-offset-2 ncp:focus:outline-hidden ncp:disabled:pointer-events-none ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",children:[n.jsx(p.XIcon,{}),n.jsx("span",{className:"ncp:sr-only",children:"Close"})]})]})]})}function Qn({className:e,...t}){return n.jsx("div",{"data-slot":"dialog-header",className:c("ncp:flex ncp:flex-col ncp:gap-2 ncp:text-center ncp:sm:text-left",e),...t})}function Zn({className:e,showCloseButton:t=!1,children:a,...r}){return n.jsxs("div",{"data-slot":"dialog-footer",className:c("ncp:flex ncp:flex-col-reverse ncp:gap-2 ncp:sm:flex-row ncp:sm:justify-end",e),...r,children:[a,t&&n.jsx(l.Dialog.Close,{asChild:!0,children:n.jsx(S,{variant:"outline",children:"Close"})})]})}function ln({className:e,...t}){return n.jsx(l.Dialog.Title,{"data-slot":"dialog-title",className:c("ncp:text-lg ncp:leading-none ncp:font-semibold",e),...t})}function ne({className:e,...t}){return n.jsx(l.Dialog.Description,{"data-slot":"dialog-description",className:c("ncp:text-muted-foreground ncp:text-sm",e),...t})}const ee=e=>{const[t,a]=b.useState(void 0);return b.useEffect(()=>{if(!e){a(void 0);return}const r=URL.createObjectURL(e);return a(r),()=>{URL.revokeObjectURL(r)}},[e]),t},dn=()=>{const{file:e,src:t}=o.useAuiState(Dn.useShallow(a=>{var s,i;if(a.attachment.type!=="image")return{};if(a.attachment.file)return{file:a.attachment.file};const r=(i=(s=a.attachment.content)==null?void 0:s.filter(u=>u.type==="image")[0])==null?void 0:i.image;return r?{src:r}:{}}));return ee(e)??t},te=({src:e})=>{const[t,a]=b.useState(!1);return n.jsx("img",{src:e,alt:"Attachment preview",className:c("ncp:block ncp:h-auto ncp:max-h-[80vh] ncp:w-auto ncp:max-w-full ncp:object-contain",t?"ncp:aui-attachment-preview-image-loaded":"ncp:aui-attachment-preview-image-loading ncp:invisible"),onLoad:()=>a(!0)})},ae=({children:e})=>{const t=dn();return t?n.jsxs(cn,{children:[n.jsx(rn,{className:"ncp:aui-attachment-preview-trigger ncp:cursor-pointer ncp:transition-colors ncp:hover:bg-accent/50",asChild:!0,children:e}),n.jsxs(pn,{className:"ncp:aui-attachment-preview-dialog-content ncp:p-2 ncp:sm:max-w-3xl ncp:[&>button]:rounded-full ncp:[&>button]:bg-foreground/60 ncp:[&>button]:p-1 ncp:[&>button]:opacity-100 ncp:[&>button]:ring-0! ncp:[&_svg]:text-background ncp:[&>button]:hover:[&_svg]:text-destructive",children:[n.jsx(ln,{className:"ncp:aui-sr-only ncp:sr-only",children:"Image Attachment Preview"}),n.jsx("div",{className:"ncp:aui-attachment-preview ncp:relative ncp:mx-auto ncp:flex ncp:max-h-[80dvh] ncp:w-full ncp:items-center ncp:justify-center ncp:overflow-hidden ncp:bg-background",children:n.jsx(te,{src:t})})]})]}):e},ce=()=>{const e=o.useAuiState(a=>a.attachment.type==="image"),t=dn();return n.jsxs(en,{className:"ncp:aui-attachment-tile-avatar ncp:h-full ncp:w-full ncp:rounded-none",children:[n.jsx(tn,{src:t,alt:"Attachment preview",className:"ncp:aui-attachment-tile-image ncp:object-cover"}),n.jsx(an,{delayMs:e?200:0,children:n.jsx(p.FileText,{className:"ncp:aui-attachment-tile-fallback-icon ncp:size-8 ncp:text-muted-foreground"})})]})},un=()=>{const t=o.useAui().attachment.source==="composer",a=o.useAuiState(s=>s.attachment.type==="image"),r=o.useAuiState(s=>{const i=s.attachment.type;switch(i){case"image":return"Image";case"document":return"Document";case"file":return"File";default:{const u=i;throw new Error(`Unknown attachment type: ${u}`)}}});return n.jsxs(_,{children:[n.jsxs(o.AttachmentPrimitive.Root,{className:c("ncp:aui-attachment-root ncp:relative",a&&"ncp:aui-attachment-root-composer ncp:only:[&>#attachment-tile]:size-24"),children:[n.jsx(ae,{children:n.jsx(R,{asChild:!0,children:n.jsx("div",{className:c("ncp:aui-attachment-tile ncp:size-14 ncp:cursor-pointer ncp:overflow-hidden ncp:rounded-[14px] ncp:border ncp:bg-muted ncp:transition-opacity ncp:hover:opacity-75",t&&"ncp:aui-attachment-tile-composer ncp:border-foreground/20"),role:"button",id:"attachment-tile","aria-label":`${r} attachment`,children:n.jsx(ce,{})})})}),t&&n.jsx(re,{})]}),n.jsx(B,{side:"top",children:n.jsx(o.AttachmentPrimitive.Name,{})})]})},re=()=>n.jsx(o.AttachmentPrimitive.Remove,{asChild:!0,children:n.jsx(h,{tooltip:"Remove file",className:"ncp:aui-attachment-tile-remove ncp:absolute ncp:top-1.5 ncp:right-1.5 ncp:size-3.5 ncp:rounded-full ncp:bg-white ncp:text-muted-foreground ncp:opacity-100 ncp:shadow-sm ncp:hover:bg-white! ncp:[&_svg]:text-black ncp:hover:[&_svg]:text-destructive",side:"top",children:n.jsx(p.XIcon,{className:"ncp:aui-attachment-remove-icon ncp:size-3 ncp:dark:stroke-[2.5px]"})})}),mn=()=>n.jsx("div",{className:"ncp:aui-user-message-attachments-end ncp:col-span-full ncp:col-start-1 ncp:row-start-1 ncp:flex ncp:w-full ncp:flex-row ncp:justify-end ncp:gap-2",children:n.jsx(o.MessagePrimitive.Attachments,{components:{Attachment:un}})}),gn=()=>n.jsx("div",{className:"ncp:aui-composer-attachments ncp:mb-2 ncp:flex ncp:w-full ncp:flex-row ncp:items-center ncp:gap-2 ncp:overflow-x-auto ncp:px-1.5 ncp:pt-0.5 ncp:pb-1 ncp:empty:hidden",children:n.jsx(o.ComposerPrimitive.Attachments,{components:{Attachment:un}})}),fn=()=>n.jsx(o.ComposerPrimitive.AddAttachment,{asChild:!0,children:n.jsx(h,{tooltip:"Add Attachment",side:"bottom",variant:"ghost",size:"icon",className:"ncp:aui-composer-add-attachment ncp:size-8.5 ncp:rounded-full ncp:p-1 ncp:font-semibold ncp:text-xs ncp:hover:bg-muted-foreground/15 ncp:dark:border-muted-foreground/15 ncp:dark:hover:bg-muted-foreground/30","aria-label":"Add Attachment",children:n.jsx(p.PlusIcon,{className:"ncp:aui-attachment-add-icon ncp:size-5 ncp:stroke-[1.5px]"})})}),oe=()=>n.jsx(L.MarkdownTextPrimitive,{remarkPlugins:[_n],className:"aui-md",components:ie}),xn=b.memo(oe),se=({language:e,code:t})=>{const{isCopied:a,copyToClipboard:r}=pe(),s=()=>{!t||a||r(t)};return n.jsxs("div",{className:"ncp:aui-code-header-root ncp:mt-2.5 ncp:flex ncp:items-center ncp:justify-between ncp:rounded-t-lg ncp:border ncp:border-border/50 ncp:border-b-0 ncp:bg-muted/50 ncp:px-3 ncp:py-1.5 ncp:text-xs",children:[n.jsx("span",{className:"ncp:aui-code-header-language ncp:font-medium ncp:text-muted-foreground ncp:lowercase",children:e}),n.jsxs(h,{tooltip:"Copy",onClick:s,children:[!a&&n.jsx(p.CopyIcon,{}),a&&n.jsx(p.CheckIcon,{})]})]})},pe=({copiedDuration:e=3e3}={})=>{const[t,a]=b.useState(!1);return{isCopied:t,copyToClipboard:s=>{s&&navigator.clipboard.writeText(s).then(()=>{a(!0),setTimeout(()=>a(!1),e)})}}},ie=L.unstable_memoizeMarkdownComponents({h1:({className:e,...t})=>n.jsx("h1",{className:c("ncp:aui-md-h1 ncp:mb-2 ncp:scroll-m-20 ncp:font-semibold ncp:text-base ncp:first:mt-0 ncp:last:mb-0",e),...t}),h2:({className:e,...t})=>n.jsx("h2",{className:c("ncp:aui-md-h2 ncp:mt-3 ncp:mb-1.5 ncp:scroll-m-20 ncp:font-semibold ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",e),...t}),h3:({className:e,...t})=>n.jsx("h3",{className:c("ncp:aui-md-h3 ncp:mt-2.5 ncp:mb-1 ncp:scroll-m-20 ncp:font-semibold ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",e),...t}),h4:({className:e,...t})=>n.jsx("h4",{className:c("ncp:aui-md-h4 ncp:mt-2 ncp:mb-1 ncp:scroll-m-20 ncp:font-medium ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",e),...t}),h5:({className:e,...t})=>n.jsx("h5",{className:c("ncp:aui-md-h5 ncp:mt-2 ncp:mb-1 ncp:font-medium ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",e),...t}),h6:({className:e,...t})=>n.jsx("h6",{className:c("ncp:aui-md-h6 ncp:mt-2 ncp:mb-1 ncp:font-medium ncp:text-sm ncp:first:mt-0 ncp:last:mb-0",e),...t}),p:({className:e,...t})=>n.jsx("p",{className:c("ncp:aui-md-p ncp:my-2.5 ncp:leading-normal ncp:first:mt-0 ncp:last:mb-0",e),...t}),a:({className:e,...t})=>n.jsx("a",{className:c("ncp:aui-md-a ncp:text-primary ncp:underline ncp:underline-offset-2 ncp:hover:text-primary/80",e),...t}),blockquote:({className:e,...t})=>n.jsx("blockquote",{className:c("ncp:aui-md-blockquote ncp:my-2.5 ncp:border-muted-foreground/30 ncp:border-l-2 ncp:pl-3 ncp:text-muted-foreground ncp:italic",e),...t}),ul:({className:e,...t})=>n.jsx("ul",{className:c("ncp:aui-md-ul ncp:my-2 ncp:ml-4 ncp:list-disc ncp:marker:text-muted-foreground ncp:[&>li]:mt-1",e),...t}),ol:({className:e,...t})=>n.jsx("ol",{className:c("ncp:aui-md-ol ncp:my-2 ncp:ml-4 ncp:list-decimal ncp:marker:text-muted-foreground ncp:[&>li]:mt-1",e),...t}),hr:({className:e,...t})=>n.jsx("hr",{className:c("ncp:aui-md-hr ncp:my-2 ncp:border-muted-foreground/20",e),...t}),table:({className:e,...t})=>n.jsx("table",{className:c("ncp:aui-md-table ncp:my-2 ncp:w-full ncp:border-separate ncp:border-spacing-0 ncp:overflow-y-auto",e),...t}),th:({className:e,...t})=>n.jsx("th",{className:c("ncp:aui-md-th ncp:bg-muted ncp:px-2 ncp:py-1 ncp:text-left ncp:font-medium ncp:first:rounded-tl-lg ncp:last:rounded-tr-lg ncp:[[align=center]]:text-center ncp:[[align=right]]:text-right",e),...t}),td:({className:e,...t})=>n.jsx("td",{className:c("ncp:aui-md-td ncp:border-muted-foreground/20 ncp:border-b ncp:border-l ncp:px-2 ncp:py-1 ncp:text-left ncp:last:border-r ncp:[[align=center]]:text-center ncp:[[align=right]]:text-right",e),...t}),tr:({className:e,...t})=>n.jsx("tr",{className:c("ncp:aui-md-tr ncp:m-0 ncp:border-b ncp:p-0 ncp:first:border-t ncp:[&:last-child>td:first-child]:rounded-bl-lg ncp:[&:last-child>td:last-child]:rounded-br-lg",e),...t}),li:({className:e,...t})=>n.jsx("li",{className:c("ncp:aui-md-li ncp:leading-normal",e),...t}),sup:({className:e,...t})=>n.jsx("sup",{className:c("ncp:aui-md-sup ncp:[&>a]:text-xs ncp:[&>a]:no-underline",e),...t}),pre:({className:e,...t})=>n.jsx("pre",{className:c("ncp:aui-md-pre ncp:overflow-x-auto ncp:rounded-t-none ncp:rounded-b-lg ncp:border ncp:border-border/50 ncp:border-t-0 ncp:bg-muted/30 ncp:p-3 ncp:text-xs ncp:leading-relaxed",e),...t}),code({className:e,...t}){const a=L.useIsMarkdownCodeBlock();return n.jsx("code",{className:c(!a&&"ncp:aui-md-inline-code ncp:rounded-md ncp:border ncp:border-border/50 ncp:bg-muted/50 ncp:px-1.5 ncp:py-0.5 ncp:font-mono ncp:text-[0.85em]",e),...t})},CodeHeader:se});function bn({...e}){return n.jsx(l.Collapsible.Root,{"data-slot":"collapsible",...e})}function hn({...e}){return n.jsx(l.Collapsible.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function vn({...e}){return n.jsx(l.Collapsible.CollapsibleContent,{"data-slot":"collapsible-content",...e})}const Z=200;function U({className:e,open:t,onOpenChange:a,defaultOpen:r=!1,children:s,...i}){const u=b.useRef(null),[d,f]=b.useState(r),v=o.useScrollLock(u,Z),N=t!==void 0,F=N?t:d,z=b.useCallback(y=>{y||v(),N||f(y),a==null||a(y)},[v,N,a]);return n.jsx(bn,{ref:u,"data-slot":"tool-fallback-root",open:F,onOpenChange:z,className:c("ncp:aui-tool-fallback-root ncp:group/tool-fallback-root ncp:w-full ncp:rounded-lg ncp:border ncp:py-3",e),style:{"--animation-duration":`${Z}ms`},...i,children:s})}const le={running:p.LoaderIcon,complete:p.CheckIcon,incomplete:p.XCircleIcon,"requires-action":p.AlertCircleIcon};function V({toolName:e,status:t,className:a,...r}){const s=(t==null?void 0:t.type)??"complete",i=s==="running",u=(t==null?void 0:t.type)==="incomplete"&&t.reason==="cancelled",d=le[s],f=u?"Cancelled tool":"Used tool";return n.jsxs(hn,{"data-slot":"tool-fallback-trigger",className:c("ncp:aui-tool-fallback-trigger ncp:group/trigger ncp:flex ncp:w-full ncp:items-center ncp:gap-2 ncp:px-4 ncp:text-sm ncp:transition-colors",a),...r,children:[n.jsx(d,{"data-slot":"tool-fallback-trigger-icon",className:c("ncp:aui-tool-fallback-trigger-icon ncp:size-4 ncp:shrink-0",u&&"ncp:text-muted-foreground",i&&"ncp:animate-spin")}),n.jsxs("span",{"data-slot":"tool-fallback-trigger-label",className:c("ncp:aui-tool-fallback-trigger-label-wrapper ncp:relative ncp:inline-block ncp:grow ncp:text-left ncp:leading-none",u&&"ncp:text-muted-foreground ncp:line-through"),children:[n.jsxs("span",{children:[f,": ",n.jsx("b",{children:e})]}),i&&n.jsxs("span",{"aria-hidden":!0,"data-slot":"tool-fallback-trigger-shimmer",className:"ncp:aui-tool-fallback-trigger-shimmer ncp:shimmer ncp:pointer-events-none ncp:absolute ncp:inset-0 ncp:motion-reduce:animate-none",children:[f,": ",n.jsx("b",{children:e})]})]}),n.jsx(p.ChevronDownIcon,{"data-slot":"tool-fallback-trigger-chevron",className:c("ncp:aui-tool-fallback-trigger-chevron ncp:size-4 ncp:shrink-0","ncp:transition-transform ncp:duration-(--animation-duration) ncp:ease-out","ncp:group-data-[state=closed]/trigger:-rotate-90","ncp:group-data-[state=open]/trigger:rotate-0")})]})}function W({className:e,children:t,...a}){return n.jsx(vn,{"data-slot":"tool-fallback-content",className:c("ncp:aui-tool-fallback-content ncp:relative ncp:overflow-hidden ncp:text-sm ncp:outline-none","ncp:group/collapsible-content ncp:ease-out","ncp:data-[state=closed]:animate-collapsible-up","ncp:data-[state=open]:animate-collapsible-down","ncp:data-[state=closed]:fill-mode-forwards","ncp:data-[state=closed]:pointer-events-none","ncp:data-[state=open]:duration-(--animation-duration)","ncp:data-[state=closed]:duration-(--animation-duration)",e),...a,children:n.jsx("div",{className:"ncp:mt-3 ncp:flex ncp:flex-col ncp:gap-2 ncp:border-t ncp:pt-2",children:t})})}function $({argsText:e,className:t,...a}){return e?n.jsx("div",{"data-slot":"tool-fallback-args",className:c("ncp:aui-tool-fallback-args ncp:px-4",t),...a,children:n.jsx("pre",{className:"ncp:aui-tool-fallback-args-value ncp:whitespace-pre-wrap",children:e})}):null}function K({result:e,className:t,...a}){return e===void 0?null:n.jsxs("div",{"data-slot":"tool-fallback-result",className:c("ncp:aui-tool-fallback-result ncp:border-t ncp:border-dashed ncp:px-4 ncp:pt-2",t),...a,children:[n.jsx("p",{className:"ncp:aui-tool-fallback-result-header ncp:font-semibold",children:"Result:"}),n.jsx("pre",{className:"ncp:aui-tool-fallback-result-content ncp:whitespace-pre-wrap",children:typeof e=="string"?e:JSON.stringify(e,null,2)})]})}function X({status:e,className:t,...a}){if((e==null?void 0:e.type)!=="incomplete")return null;const r=e.error,s=r?typeof r=="string"?r:JSON.stringify(r):null;if(!s)return null;const u=e.reason==="cancelled"?"Cancelled reason:":"Error:";return n.jsxs("div",{"data-slot":"tool-fallback-error",className:c("ncp:aui-tool-fallback-error ncp:px-4",t),...a,children:[n.jsx("p",{className:"ncp:aui-tool-fallback-error-header ncp:font-semibold ncp:text-muted-foreground",children:u}),n.jsx("p",{className:"ncp:aui-tool-fallback-error-reason ncp:text-muted-foreground",children:s})]})}const de=({toolName:e,argsText:t,result:a,status:r})=>{const s=(r==null?void 0:r.type)==="incomplete"&&r.reason==="cancelled";return n.jsxs(U,{className:c(s&&"ncp:border-muted-foreground/30 ncp:bg-muted/30"),children:[n.jsx(V,{toolName:e,status:r}),n.jsxs(W,{children:[n.jsx(X,{status:r}),n.jsx($,{argsText:t,className:c(s&&"ncp:opacity-60")}),!s&&n.jsx(K,{result:a})]})]})},w=b.memo(de);w.displayName="ToolFallback";w.Root=U;w.Trigger=V;w.Content=W;w.Args=$;w.Result=K;w.Error=X;const jn=({turnAnchor:e})=>n.jsx(o.ThreadPrimitive.Root,{className:"ncp:aui-root ncp:aui-thread-root ncp:@container ncp:flex ncp:h-full ncp:flex-col ncp:bg-background",style:{"--thread-max-width":"44rem"},children:n.jsxs(o.ThreadPrimitive.Viewport,{turnAnchor:e,className:"ncp:aui-thread-viewport ncp:relative ncp:flex ncp:flex-1 ncp:flex-col ncp:overflow-x-auto ncp:overflow-y-scroll ncp:scroll-smooth ncp:px-4 ncp:pt-4",children:[n.jsx(o.AuiIf,{condition:t=>t.thread.isEmpty,children:n.jsx(me,{})}),n.jsx(o.ThreadPrimitive.Messages,{components:{UserMessage:we,EditComposer:ye,AssistantMessage:ve}}),n.jsxs(o.ThreadPrimitive.ViewportFooter,{className:"ncp:aui-thread-viewport-footer ncp:sticky ncp:bottom-0 ncp:mx-auto ncp:mt-auto ncp:flex ncp:w-full ncp:max-w-(--thread-max-width) ncp:flex-col ncp:gap-4 ncp:overflow-visible ncp:rounded-t-3xl ncp:pb-4 ncp:md:pb-6",children:[n.jsx(ue,{}),n.jsx(xe,{})]})]})}),ue=()=>n.jsx(o.ThreadPrimitive.ScrollToBottom,{asChild:!0,children:n.jsx(h,{tooltip:"Scroll to bottom",variant:"outline",className:"ncp:aui-thread-scroll-to-bottom ncp:absolute ncp:-top-12 ncp:z-10 ncp:self-center ncp:rounded-full ncp:p-4 ncp:disabled:invisible ncp:dark:bg-background ncp:dark:hover:bg-accent",children:n.jsx(p.ArrowDownIcon,{})})}),me=()=>n.jsxs("div",{className:"ncp:aui-thread-welcome-root ncp:mx-auto ncp:my-auto ncp:flex ncp:w-full ncp:max-w-(--thread-max-width) ncp:grow ncp:flex-col",children:[n.jsx("div",{className:"ncp:aui-thread-welcome-center ncp:flex ncp:w-full ncp:grow ncp:flex-col ncp:items-center ncp:justify-center",children:n.jsxs("div",{className:"ncp:aui-thread-welcome-message ncp:flex ncp:size-full ncp:flex-col ncp:justify-center ncp:px-4",children:[n.jsx("h1",{className:"ncp:aui-thread-welcome-message-inner ncp:fade-in ncp:slide-in-from-bottom-1 ncp:animate-in ncp:font-semibold ncp:text-2xl ncp:duration-200",children:"Hello there!"}),n.jsx("p",{className:"ncp:aui-thread-welcome-message-inner ncp:fade-in ncp:slide-in-from-bottom-1 ncp:animate-in ncp:text-muted-foreground ncp:text-xl ncp:delay-75 ncp:duration-200",children:"How can I help you today?"})]})}),n.jsx(ge,{})]}),ge=()=>n.jsx("div",{className:"ncp:aui-thread-welcome-suggestions ncp:grid ncp:w-full ncp:@md:grid-cols-2 ncp:gap-2 ncp:pb-4",children:n.jsx(o.ThreadPrimitive.Suggestions,{components:{Suggestion:fe}})}),fe=()=>n.jsx("div",{className:"ncp:aui-thread-welcome-suggestion-display ncp:fade-in ncp:slide-in-from-bottom-2 ncp:@md:nth-[n+3]:block ncp:nth-[n+3]:hidden ncp:animate-in ncp:fill-mode-both ncp:duration-200",children:n.jsx(o.SuggestionPrimitive.Trigger,{send:!0,asChild:!0,children:n.jsxs(S,{variant:"ghost",className:"ncp:aui-thread-welcome-suggestion ncp:h-auto ncp:w-full ncp:@md:flex-col ncp:flex-wrap ncp:items-start ncp:justify-start ncp:gap-1 ncp:rounded-2xl ncp:border ncp:px-4 ncp:py-3 ncp:text-left ncp:text-sm ncp:transition-colors ncp:hover:bg-muted",children:[n.jsx("span",{className:"ncp:aui-thread-welcome-suggestion-text-1 ncp:font-medium",children:n.jsx(o.SuggestionPrimitive.Title,{})}),n.jsx("span",{className:"ncp:aui-thread-welcome-suggestion-text-2 ncp:text-muted-foreground",children:n.jsx(o.SuggestionPrimitive.Description,{})})]})})}),xe=()=>n.jsx(o.ComposerPrimitive.Root,{className:"ncp:aui-composer-root ncp:relative ncp:flex ncp:w-full ncp:flex-col",children:n.jsxs(o.ComposerPrimitive.AttachmentDropzone,{className:"ncp:aui-composer-attachment-dropzone ncp:flex ncp:w-full ncp:flex-col ncp:rounded-2xl ncp:border ncp:border-input ncp:bg-background ncp:px-1 ncp:pt-2 ncp:outline-none ncp:transition-shadow ncp:has-[textarea:focus-visible]:border-ring ncp:has-[textarea:focus-visible]:ring-2 ncp:has-[textarea:focus-visible]:ring-ring/20 ncp:data-[dragging=true]:border-ring ncp:data-[dragging=true]:border-dashed ncp:data-[dragging=true]:bg-accent/50",children:[n.jsx(gn,{}),n.jsx(o.ComposerPrimitive.Input,{placeholder:"Send a message...",className:"ncp:aui-composer-input ncp:mb-1 ncp:max-h-32 ncp:min-h-14 ncp:w-full ncp:resize-none ncp:bg-transparent ncp:px-4 ncp:pt-2 ncp:pb-3 ncp:text-sm ncp:outline-none ncp:placeholder:text-muted-foreground ncp:focus-visible:ring-0",rows:1,autoFocus:!0,"aria-label":"Message input"}),n.jsx(be,{})]})}),be=()=>n.jsxs("div",{className:"ncp:aui-composer-action-wrapper ncp:relative ncp:mx-2 ncp:mb-2 ncp:flex ncp:items-center ncp:justify-between",children:[n.jsx(fn,{}),n.jsx(o.AuiIf,{condition:e=>!e.thread.isRunning,children:n.jsx(o.ComposerPrimitive.Send,{asChild:!0,children:n.jsx(h,{tooltip:"Send message",side:"bottom",type:"submit",variant:"default",size:"icon",className:"ncp:aui-composer-send ncp:size-8 ncp:rounded-full","aria-label":"Send message",children:n.jsx(p.ArrowUpIcon,{className:"ncp:aui-composer-send-icon ncp:size-4"})})})}),n.jsx(o.AuiIf,{condition:e=>e.thread.isRunning,children:n.jsx(o.ComposerPrimitive.Cancel,{asChild:!0,children:n.jsx(S,{type:"button",variant:"default",size:"icon",className:"ncp:aui-composer-cancel ncp:size-8 ncp:rounded-full","aria-label":"Stop generating",children:n.jsx(p.SquareIcon,{className:"ncp:aui-composer-cancel-icon ncp:size-3 ncp:fill-current"})})})})]}),he=()=>n.jsx(o.MessagePrimitive.Error,{children:n.jsx(o.ErrorPrimitive.Root,{className:"ncp:aui-message-error-root ncp:mt-2 ncp:rounded-md ncp:border ncp:border-destructive ncp:bg-destructive/10 ncp:p-3 ncp:text-destructive ncp:text-sm ncp:dark:bg-destructive/5 ncp:dark:text-red-200",children:n.jsx(o.ErrorPrimitive.Message,{className:"ncp:aui-message-error-message ncp:line-clamp-2"})})}),ve=()=>n.jsxs(o.MessagePrimitive.Root,{className:"ncp:aui-assistant-message-root ncp:fade-in ncp:slide-in-from-bottom-1 ncp:relative ncp:mx-auto ncp:w-full ncp:max-w-(--thread-max-width) ncp:animate-in ncp:py-3 ncp:duration-150","data-role":"assistant",children:[n.jsxs("div",{className:"ncp:aui-assistant-message-content ncp:wrap-break-word ncp:px-2 ncp:text-foreground ncp:leading-relaxed",children:[n.jsx(o.MessagePrimitive.Parts,{components:{Text:xn,tools:{Fallback:w}}}),n.jsx(he,{})]}),n.jsxs("div",{className:"ncp:aui-assistant-message-footer ncp:mt-1 ncp:ml-2 ncp:flex",children:[n.jsx(wn,{}),n.jsx(je,{})]})]}),je=()=>n.jsxs(o.ActionBarPrimitive.Root,{hideWhenRunning:!0,autohide:"not-last",autohideFloat:"single-branch",className:"ncp:aui-assistant-action-bar-root ncp:col-start-3 ncp:row-start-2 ncp:-ml-1 ncp:flex ncp:gap-1 ncp:text-muted-foreground ncp:data-floating:absolute ncp:data-floating:rounded-md ncp:data-floating:border ncp:data-floating:bg-background ncp:data-floating:p-1 ncp:data-floating:shadow-sm",children:[n.jsx(o.ActionBarPrimitive.Copy,{asChild:!0,children:n.jsxs(h,{tooltip:"Copy",children:[n.jsx(o.AuiIf,{condition:e=>e.message.isCopied,children:n.jsx(p.CheckIcon,{})}),n.jsx(o.AuiIf,{condition:e=>!e.message.isCopied,children:n.jsx(p.CopyIcon,{})})]})}),n.jsx(o.ActionBarPrimitive.Reload,{asChild:!0,children:n.jsx(h,{tooltip:"Refresh",children:n.jsx(p.RefreshCwIcon,{})})}),n.jsxs(o.ActionBarMorePrimitive.Root,{children:[n.jsx(o.ActionBarMorePrimitive.Trigger,{asChild:!0,children:n.jsx(h,{tooltip:"More",className:"ncp:data-[state=open]:bg-accent",children:n.jsx(p.MoreHorizontalIcon,{})})}),n.jsx(o.ActionBarMorePrimitive.Content,{side:"bottom",align:"start",className:"ncp:aui-action-bar-more-content ncp:z-50 ncp:min-w-32 ncp:overflow-hidden ncp:rounded-md ncp:border ncp:bg-popover ncp:p-1 ncp:text-popover-foreground ncp:shadow-md",children:n.jsx(o.ActionBarPrimitive.ExportMarkdown,{asChild:!0,children:n.jsxs(o.ActionBarMorePrimitive.Item,{className:"ncp:aui-action-bar-more-item ncp:flex ncp:cursor-pointer ncp:select-none ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:px-2 ncp:py-1.5 ncp:text-sm ncp:outline-none ncp:hover:bg-accent ncp:hover:text-accent-foreground ncp:focus:bg-accent ncp:focus:text-accent-foreground",children:[n.jsx(p.DownloadIcon,{className:"ncp:size-4"}),"Export as Markdown"]})})})]})]}),we=()=>n.jsxs(o.MessagePrimitive.Root,{className:"ncp:aui-user-message-root ncp:fade-in ncp:slide-in-from-bottom-1 ncp:mx-auto ncp:grid ncp:w-full ncp:max-w-(--thread-max-width) ncp:animate-in ncp:auto-rows-auto ncp:grid-cols-[minmax(72px,1fr)_auto] ncp:content-start ncp:gap-y-2 ncp:px-2 ncp:py-3 ncp:duration-150 ncp:[&:where(>*)]:col-start-2","data-role":"user",children:[n.jsx(mn,{}),n.jsxs("div",{className:"ncp:aui-user-message-content-wrapper ncp:relative ncp:col-start-2 ncp:min-w-0",children:[n.jsx("div",{className:"ncp:aui-user-message-content ncp:wrap-break-word ncp:rounded-2xl ncp:bg-muted ncp:px-4 ncp:py-2.5 ncp:text-foreground",children:n.jsx(o.MessagePrimitive.Parts,{})}),n.jsx("div",{className:"ncp:aui-user-action-bar-wrapper ncp:absolute ncp:top-1/2 ncp:left-0 ncp:-translate-x-full ncp:-translate-y-1/2 ncp:pr-2",children:n.jsx(Ne,{})})]}),n.jsx(wn,{className:"ncp:aui-user-branch-picker ncp:col-span-full ncp:col-start-1 ncp:row-start-3 ncp:-mr-1 ncp:justify-end"})]}),Ne=()=>n.jsx(o.ActionBarPrimitive.Root,{hideWhenRunning:!0,autohide:"not-last",className:"ncp:aui-user-action-bar-root ncp:flex ncp:flex-col ncp:items-end",children:n.jsx(o.ActionBarPrimitive.Edit,{asChild:!0,children:n.jsx(h,{tooltip:"Edit",className:"ncp:aui-user-action-edit ncp:p-4",children:n.jsx(p.PencilIcon,{})})})}),ye=()=>n.jsx(o.MessagePrimitive.Root,{className:"ncp:aui-edit-composer-wrapper ncp:mx-auto ncp:flex ncp:w-full ncp:max-w-(--thread-max-width) ncp:flex-col ncp:px-2 ncp:py-3",children:n.jsxs(o.ComposerPrimitive.Root,{className:"ncp:aui-edit-composer-root ncp:ml-auto ncp:flex ncp:w-full ncp:max-w-[85%] ncp:flex-col ncp:rounded-2xl ncp:bg-muted",children:[n.jsx(o.ComposerPrimitive.Input,{className:"ncp:aui-edit-composer-input ncp:min-h-14 ncp:w-full ncp:resize-none ncp:bg-transparent ncp:p-4 ncp:text-foreground ncp:text-sm ncp:outline-none",autoFocus:!0}),n.jsxs("div",{className:"ncp:aui-edit-composer-footer ncp:mx-3 ncp:mb-3 ncp:flex ncp:items-center ncp:gap-2 ncp:self-end",children:[n.jsx(o.ComposerPrimitive.Cancel,{asChild:!0,children:n.jsx(S,{variant:"ghost",size:"sm",children:"Cancel"})}),n.jsx(o.ComposerPrimitive.Send,{asChild:!0,children:n.jsx(S,{size:"sm",children:"Update"})})]})]})}),wn=({className:e,...t})=>n.jsxs(o.BranchPickerPrimitive.Root,{hideWhenSingleBranch:!0,className:c("ncp:aui-branch-picker-root ncp:mr-2 ncp:-ml-2 ncp:inline-flex ncp:items-center ncp:text-muted-foreground ncp:text-xs",e),...t,children:[n.jsx(o.BranchPickerPrimitive.Previous,{asChild:!0,children:n.jsx(h,{tooltip:"Previous",children:n.jsx(p.ChevronLeftIcon,{})})}),n.jsxs("span",{className:"ncp:aui-branch-picker-state ncp:font-medium",children:[n.jsx(o.BranchPickerPrimitive.Number,{})," / ",n.jsx(o.BranchPickerPrimitive.Count,{})]}),n.jsx(o.BranchPickerPrimitive.Next,{asChild:!0,children:n.jsx(h,{tooltip:"Next",children:n.jsx(p.ChevronRightIcon,{})})})]});function Nn({className:e,...t}){return n.jsx(O.Group,{"data-slot":"resizable-panel-group",className:c("ncp:flex ncp:h-full ncp:w-full ncp:aria-[orientation=vertical]:flex-col",e),...t})}function G({...e}){return n.jsx(O.Panel,{"data-slot":"resizable-panel",...e})}function yn({withHandle:e,className:t,...a}){return n.jsx(O.Separator,{"data-slot":"resizable-handle",className:c("ncp:bg-border ncp:focus-visible:ring-ring ncp:relative ncp:flex ncp:w-px ncp:items-center ncp:justify-center ncp:after:absolute ncp:after:inset-y-0 ncp:after:left-1/2 ncp:after:w-1 ncp:after:-translate-x-1/2 ncp:focus-visible:ring-1 ncp:focus-visible:ring-offset-1 ncp:focus-visible:outline-hidden ncp:aria-[orientation=horizontal]:h-px ncp:aria-[orientation=horizontal]:w-full ncp:aria-[orientation=horizontal]:after:left-0 ncp:aria-[orientation=horizontal]:after:h-1 ncp:aria-[orientation=horizontal]:after:w-full ncp:aria-[orientation=horizontal]:after:translate-x-0 ncp:aria-[orientation=horizontal]:after:-translate-y-1/2 ncp:[&[aria-orientation=horizontal]>div]:rotate-90",t),...a,children:e&&n.jsx("div",{className:"ncp:bg-border ncp:z-10 ncp:flex ncp:h-4 ncp:w-3 ncp:items-center ncp:justify-center ncp:rounded-xs ncp:border",children:n.jsx(p.GripVerticalIcon,{className:"ncp:size-2.5"})})})}const ke=({children:e})=>n.jsxs(Nn,{orientation:"horizontal",children:[n.jsx(G,{children:e}),n.jsx(yn,{}),n.jsx(G,{children:n.jsx(jn,{})})]});function Se({...e}){return n.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Ce({className:e,...t}){return n.jsx("ol",{"data-slot":"breadcrumb-list",className:c("ncp:text-muted-foreground ncp:flex ncp:flex-wrap ncp:items-center ncp:gap-1.5 ncp:text-sm ncp:break-words ncp:sm:gap-2.5",e),...t})}function ze({className:e,...t}){return n.jsx("li",{"data-slot":"breadcrumb-item",className:c("ncp:inline-flex ncp:items-center ncp:gap-1.5",e),...t})}function Te({asChild:e,className:t,...a}){const r=e?I.Slot:"a";return n.jsx(r,{"data-slot":"breadcrumb-link",className:c("ncp:hover:text-foreground ncp:transition-colors",t),...a})}function Ie({className:e,...t}){return n.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:c("ncp:text-foreground ncp:font-normal",e),...t,tabIndex:0})}function Me({children:e,className:t,...a}){return n.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:c("ncp:[&>svg]:size-3.5",t),...a,children:e??n.jsx(p.ChevronRight,{})})}function Ae({className:e,...t}){return n.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:c("ncp:flex ncp:size-9 ncp:items-center ncp:justify-center",e),...t,children:[n.jsx(p.MoreHorizontal,{className:"ncp:size-4"}),n.jsx("span",{className:"ncp:sr-only",children:"More"})]})}function Pe({className:e,...t}){return n.jsx("div",{"data-slot":"card",className:c("ncp:bg-card ncp:text-card-foreground ncp:flex ncp:flex-col ncp:gap-6 ncp:rounded-xl ncp:border ncp:py-6 ncp:shadow-sm",e),...t})}function De({className:e,...t}){return n.jsx("div",{"data-slot":"card-header",className:c("ncp:@container/card-header ncp:grid ncp:auto-rows-min ncp:grid-rows-[auto_auto] ncp:items-start ncp:gap-2 ncp:px-6 ncp:has-data-[slot=card-action]:grid-cols-[1fr_auto] ncp:[.border-b]:pb-6",e),...t})}function _e({className:e,...t}){return n.jsx("div",{"data-slot":"card-title",className:c("ncp:leading-none ncp:font-semibold",e),...t})}function Re({className:e,...t}){return n.jsx("div",{"data-slot":"card-description",className:c("ncp:text-muted-foreground ncp:text-sm",e),...t})}function Be({className:e,...t}){return n.jsx("div",{"data-slot":"card-action",className:c("ncp:col-start-2 ncp:row-span-2 ncp:row-start-1 ncp:self-start ncp:justify-self-end",e),...t})}function Fe({className:e,...t}){return n.jsx("div",{"data-slot":"card-content",className:c("ncp:px-6",e),...t})}function Ee({className:e,...t}){return n.jsx("div",{"data-slot":"card-footer",className:c("ncp:flex ncp:items-center ncp:px-6 ncp:[.border-t]:pt-6",e),...t})}function Le({...e}){return n.jsx(m.Root,{"data-slot":"dropdown-menu",...e})}function Ge({...e}){return n.jsx(m.Portal,{"data-slot":"dropdown-menu-portal",...e})}function qe({...e}){return n.jsx(m.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function Oe({className:e,sideOffset:t=4,...a}){return n.jsx(m.Portal,{children:n.jsx(m.Content,{"data-slot":"dropdown-menu-content",sideOffset:t,className:c("ncp:bg-popover ncp:text-popover-foreground ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[state=open]:zoom-in-95 ncp:data-[side=bottom]:slide-in-from-top-2 ncp:data-[side=left]:slide-in-from-right-2 ncp:data-[side=right]:slide-in-from-left-2 ncp:data-[side=top]:slide-in-from-bottom-2 ncp:z-50 ncp:max-h-(--radix-dropdown-menu-content-available-height) ncp:min-w-[8rem] ncp:origin-(--radix-dropdown-menu-content-transform-origin) ncp:overflow-x-hidden ncp:overflow-y-auto ncp:rounded-md ncp:border ncp:p-1 ncp:shadow-md",e),...a})})}function He({...e}){return n.jsx(m.Group,{"data-slot":"dropdown-menu-group",...e})}function Ue({className:e,inset:t,variant:a="default",...r}){return n.jsx(m.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:c("ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:data-[variant=destructive]:text-destructive ncp:data-[variant=destructive]:focus:bg-destructive/10 ncp:dark:data-[variant=destructive]:focus:bg-destructive/20 ncp:data-[variant=destructive]:focus:text-destructive ncp:data-[variant=destructive]:*:[svg]:!text-destructive ncp:[&_svg:not([class*=text-])]:text-muted-foreground ncp:relative ncp:flex ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:px-2 ncp:py-1.5 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[disabled]:pointer-events-none ncp:data-[disabled]:opacity-50 ncp:data-[inset]:pl-8 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",e),...r})}function Ve({className:e,children:t,checked:a,...r}){return n.jsxs(m.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:c("ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:relative ncp:flex ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:py-1.5 ncp:pr-2 ncp:pl-8 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[disabled]:pointer-events-none ncp:data-[disabled]:opacity-50 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",e),checked:a,...r,children:[n.jsx("span",{className:"ncp:pointer-events-none ncp:absolute ncp:left-2 ncp:flex ncp:size-3.5 ncp:items-center ncp:justify-center",children:n.jsx(m.ItemIndicator,{children:n.jsx(p.CheckIcon,{className:"ncp:size-4"})})}),t]})}function We({...e}){return n.jsx(m.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function $e({className:e,children:t,...a}){return n.jsxs(m.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:c("ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:relative ncp:flex ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:py-1.5 ncp:pr-2 ncp:pl-8 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[disabled]:pointer-events-none ncp:data-[disabled]:opacity-50 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",e),...a,children:[n.jsx("span",{className:"ncp:pointer-events-none ncp:absolute ncp:left-2 ncp:flex ncp:size-3.5 ncp:items-center ncp:justify-center",children:n.jsx(m.ItemIndicator,{children:n.jsx(p.CircleIcon,{className:"ncp:size-2 ncp:fill-current"})})}),t]})}function Ke({className:e,inset:t,...a}){return n.jsx(m.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:c("ncp:px-2 ncp:py-1.5 ncp:text-sm ncp:font-medium ncp:data-[inset]:pl-8",e),...a})}function Xe({className:e,...t}){return n.jsx(m.Separator,{"data-slot":"dropdown-menu-separator",className:c("ncp:bg-border ncp:-mx-1 ncp:my-1 ncp:h-px",e),...t})}function Je({className:e,...t}){return n.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:c("ncp:text-muted-foreground ncp:ml-auto ncp:text-xs ncp:tracking-widest",e),...t})}function Ye({...e}){return n.jsx(m.Sub,{"data-slot":"dropdown-menu-sub",...e})}function Qe({className:e,inset:t,children:a,...r}){return n.jsxs(m.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:c("ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:data-[state=open]:bg-accent ncp:data-[state=open]:text-accent-foreground ncp:[&_svg:not([class*=text-])]:text-muted-foreground ncp:flex ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:px-2 ncp:py-1.5 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[inset]:pl-8 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",e),...r,children:[a,n.jsx(p.ChevronRightIcon,{className:"ncp:ml-auto ncp:size-4"})]})}function Ze({className:e,...t}){return n.jsx(m.SubContent,{"data-slot":"dropdown-menu-sub-content",className:c("ncp:bg-popover ncp:text-popover-foreground ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[state=open]:zoom-in-95 ncp:data-[side=bottom]:slide-in-from-top-2 ncp:data-[side=left]:slide-in-from-right-2 ncp:data-[side=right]:slide-in-from-left-2 ncp:data-[side=top]:slide-in-from-bottom-2 ncp:z-50 ncp:min-w-[8rem] ncp:origin-(--radix-dropdown-menu-content-transform-origin) ncp:overflow-hidden ncp:rounded-md ncp:border ncp:p-1 ncp:shadow-lg",e),...t})}function kn({className:e,...t}){return n.jsx(On.Root,{"data-slot":"label",className:c("ncp:flex ncp:items-center ncp:gap-2 ncp:text-sm ncp:leading-none ncp:font-medium ncp:select-none ncp:group-data-[disabled=true]:pointer-events-none ncp:group-data-[disabled=true]:opacity-50 ncp:peer-disabled:cursor-not-allowed ncp:peer-disabled:opacity-50",e),...t})}function J({className:e,orientation:t="horizontal",decorative:a=!0,...r}){return n.jsx(Hn.Root,{"data-slot":"separator",decorative:a,orientation:t,className:c("ncp:bg-border ncp:shrink-0 ncp:data-[orientation=horizontal]:h-px ncp:data-[orientation=horizontal]:w-full ncp:data-[orientation=vertical]:h-full ncp:data-[orientation=vertical]:w-px",e),...r})}function nt({className:e,...t}){return n.jsx("fieldset",{"data-slot":"field-set",className:c("ncp:flex ncp:flex-col ncp:gap-6","has-[>[data-slot=checkbox-group]]:ncp:gap-3 has-[>[data-slot=radio-group]]:ncp:gap-3",e),...t})}function et({className:e,variant:t="legend",...a}){return n.jsx("legend",{"data-slot":"field-legend","data-variant":t,className:c("ncp:mb-3 ncp:font-medium","data-[variant=legend]:ncp:text-base","data-[variant=label]:ncp:text-sm",e),...a})}function tt({className:e,...t}){return n.jsx("div",{"data-slot":"field-group",className:c("ncp:group/field-group @container/field-group ncp:flex ncp:w-full ncp:flex-col ncp:gap-7 data-[slot=checkbox-group]:ncp:gap-3 [&>[data-slot=field-group]]:ncp:gap-4",e),...t})}const at=D.cva("ncp:group/field ncp:flex ncp:w-full ncp:gap-3 data-[invalid=true]:ncp:text-destructive",{variants:{orientation:{vertical:["ncp:flex-col [&>*]:ncp:w-full [&>.sr-only]:ncp:w-auto"],horizontal:["ncp:flex-row ncp:items-center","[&>[data-slot=field-label]]:ncp:flex-auto","has-[>[data-slot=field-content]]:ncp:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:ncp:mt-px"],responsive:["ncp:flex-col [&>*]:ncp:w-full [&>.sr-only]:ncp:w-auto @md/field-group:ncp:flex-row @md/field-group:ncp:items-center @md/field-group:[&>*]:ncp:w-auto","@md/field-group:[&>[data-slot=field-label]]:ncp:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:ncp:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:ncp:mt-px"]}},defaultVariants:{orientation:"vertical"}});function ct({className:e,orientation:t="vertical",...a}){return n.jsx("div",{role:"group","data-slot":"field","data-orientation":t,className:c(at({orientation:t}),e),...a})}function rt({className:e,...t}){return n.jsx("div",{"data-slot":"field-content",className:c("ncp:group/field-content ncp:flex ncp:flex-1 ncp:flex-col ncp:gap-1.5 ncp:leading-snug",e),...t})}function ot({className:e,...t}){return n.jsx(kn,{"data-slot":"field-label",className:c("ncp:group/field-label ncp:peer/field-label ncp:flex ncp:w-fit ncp:gap-2 ncp:leading-snug group-data-[disabled=true]/field:ncp:opacity-50","has-[>[data-slot=field]]:ncp:w-full has-[>[data-slot=field]]:ncp:flex-col has-[>[data-slot=field]]:ncp:rounded-md has-[>[data-slot=field]]:ncp:border [&>*]:data-[slot=field]:ncp:p-4","has-data-[state=checked]:ncp:bg-primary/5 has-data-[state=checked]:ncp:border-primary dark:has-data-[state=checked]:ncp:bg-primary/10",e),...t})}function st({className:e,...t}){return n.jsx("div",{"data-slot":"field-label",className:c("ncp:flex ncp:w-fit ncp:items-center ncp:gap-2 ncp:text-sm ncp:leading-snug ncp:font-medium group-data-[disabled=true]/field:ncp:opacity-50",e),...t})}function pt({className:e,...t}){return n.jsx("p",{"data-slot":"field-description",className:c("ncp:text-muted-foreground ncp:text-sm ncp:leading-normal ncp:font-normal group-has-[[data-orientation=horizontal]]/field:ncp:text-balance","last:ncp:mt-0 nth-last-2:ncp:-mt-1 [[data-variant=legend]+&]:ncp:-mt-1.5","[&>a:hover]:ncp:text-primary [&>a]:ncp:underline [&>a]:ncp:underline-offset-4",e),...t})}function it({children:e,className:t,...a}){return n.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:c("ncp:relative ncp:-my-2 ncp:h-5 ncp:text-sm group-data-[variant=outline]/field-group:ncp:-mb-2",t),...a,children:[n.jsx(J,{className:"ncp:absolute ncp:inset-0 ncp:top-1/2"}),e&&n.jsx("span",{className:"ncp:bg-background ncp:text-muted-foreground ncp:relative ncp:mx-auto ncp:block ncp:w-fit ncp:px-2","data-slot":"field-separator-content",children:e})]})}function lt({className:e,children:t,errors:a,...r}){const s=b.useMemo(()=>{var u;if(t)return t;if(!(a!=null&&a.length))return null;const i=[...new Map(a.map(d=>[d==null?void 0:d.message,d])).values()];return(i==null?void 0:i.length)===1?(u=i[0])==null?void 0:u.message:n.jsx("ul",{className:"ncp:ml-4 ncp:flex ncp:list-disc ncp:flex-col ncp:gap-1",children:i.map((d,f)=>(d==null?void 0:d.message)&&n.jsx("li",{children:d.message},f))})},[t,a]);return s?n.jsx("div",{role:"alert","data-slot":"field-error",className:c("ncp:text-destructive ncp:text-sm ncp:font-normal",e),...r,children:s}):null}function Sn({className:e,type:t,...a}){return n.jsx("input",{type:t,"data-slot":"input",className:c("ncp:file:text-foreground ncp:placeholder:text-muted-foreground ncp:selection:bg-primary ncp:selection:text-primary-foreground ncp:dark:bg-input/30 ncp:border-input ncp:h-9 ncp:w-full ncp:min-w-0 ncp:rounded-md ncp:border ncp:bg-transparent ncp:px-3 ncp:py-1 ncp:text-base ncp:shadow-xs ncp:transition-[color,box-shadow] ncp:outline-none ncp:file:inline-flex ncp:file:h-7 ncp:file:border-0 ncp:file:bg-transparent ncp:file:text-sm ncp:file:font-medium ncp:disabled:pointer-events-none ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50 ncp:md:text-sm","ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:focus-visible:ring-[3px]","ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive",e),...a})}function dt({className:e,...t}){return n.jsx(l.RadioGroup.Root,{"data-slot":"radio-group",className:c("ncp:grid ncp:gap-3",e),...t})}function ut({className:e,...t}){return n.jsx(l.RadioGroup.Item,{"data-slot":"radio-group-item",className:c("ncp:border-input ncp:text-primary ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive ncp:dark:bg-input/30 ncp:aspect-square ncp:size-4 ncp:shrink-0 ncp:rounded-full ncp:border ncp:shadow-xs ncp:transition-[color,box-shadow] ncp:outline-none ncp:focus-visible:ring-[3px] ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50",e),...t,children:n.jsx(l.RadioGroup.Indicator,{"data-slot":"radio-group-indicator",className:"ncp:relative ncp:flex ncp:items-center ncp:justify-center",children:n.jsx(p.CircleIcon,{className:"ncp:fill-primary ncp:absolute ncp:top-1/2 ncp:left-1/2 ncp:size-2 ncp:-translate-x-1/2 ncp:-translate-y-1/2"})})})}function mt({...e}){return n.jsx(g.Root,{"data-slot":"select",...e})}function gt({...e}){return n.jsx(g.Group,{"data-slot":"select-group",...e})}function ft({...e}){return n.jsx(g.Value,{"data-slot":"select-value",...e})}function xt({className:e,size:t="default",children:a,...r}){return n.jsxs(g.Trigger,{"data-slot":"select-trigger","data-size":t,className:c("ncp:border-input ncp:data-[placeholder]:text-muted-foreground ncp:[&_svg:not([class*=text-])]:text-muted-foreground ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive ncp:dark:bg-input/30 ncp:dark:hover:bg-input/50 ncp:flex ncp:w-fit ncp:items-center ncp:justify-between ncp:gap-2 ncp:rounded-md ncp:border ncp:bg-transparent ncp:px-3 ncp:py-2 ncp:text-sm ncp:whitespace-nowrap ncp:shadow-xs ncp:transition-[color,box-shadow] ncp:outline-none ncp:focus-visible:ring-[3px] ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50 ncp:data-[size=default]:h-9 ncp:data-[size=sm]:h-8 ncp:*:data-[slot=select-value]:line-clamp-1 ncp:*:data-[slot=select-value]:flex ncp:*:data-[slot=select-value]:items-center ncp:*:data-[slot=select-value]:gap-2 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4",e),...r,children:[a,n.jsx(g.Icon,{asChild:!0,children:n.jsx(p.ChevronDownIcon,{className:"ncp:size-4 ncp:opacity-50"})})]})}function bt({className:e,children:t,position:a="popper",align:r="center",...s}){return n.jsx(g.Portal,{children:n.jsxs(g.Content,{"data-slot":"select-content",className:c("ncp:bg-popover ncp:text-popover-foreground ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:data-[state=closed]:zoom-out-95 ncp:data-[state=open]:zoom-in-95 ncp:data-[side=bottom]:slide-in-from-top-2 ncp:data-[side=left]:slide-in-from-right-2 ncp:data-[side=right]:slide-in-from-left-2 ncp:data-[side=top]:slide-in-from-bottom-2 ncp:relative ncp:z-50 ncp:max-h-(--radix-select-content-available-height) ncp:min-w-[8rem] ncp:origin-(--radix-select-content-transform-origin) ncp:overflow-x-hidden ncp:overflow-y-auto ncp:rounded-md ncp:border ncp:shadow-md",a==="popper"&&"ncp:data-[side=bottom]:translate-y-1 ncp:data-[side=left]:-translate-x-1 ncp:data-[side=right]:translate-x-1 ncp:data-[side=top]:-translate-y-1",e),position:a,align:r,...s,children:[n.jsx(Cn,{}),n.jsx(g.Viewport,{className:c("ncp:p-1",a==="popper"&&"ncp:h-[var(--radix-select-trigger-height)] ncp:w-full ncp:min-w-[var(--radix-select-trigger-width)] ncp:scroll-my-1"),children:t}),n.jsx(zn,{})]})})}function ht({className:e,...t}){return n.jsx(g.Label,{"data-slot":"select-label",className:c("ncp:text-muted-foreground ncp:px-2 ncp:py-1.5 ncp:text-xs",e),...t})}function vt({className:e,children:t,...a}){return n.jsxs(g.Item,{"data-slot":"select-item",className:c("ncp:focus:bg-accent ncp:focus:text-accent-foreground ncp:[&_svg:not([class*=text-])]:text-muted-foreground ncp:relative ncp:flex ncp:w-full ncp:cursor-default ncp:items-center ncp:gap-2 ncp:rounded-sm ncp:py-1.5 ncp:pr-8 ncp:pl-2 ncp:text-sm ncp:outline-hidden ncp:select-none ncp:data-[disabled]:pointer-events-none ncp:data-[disabled]:opacity-50 ncp:[&_svg]:pointer-events-none ncp:[&_svg]:shrink-0 ncp:[&_svg:not([class*=size-])]:size-4 ncp:*:[span]:last:flex ncp:*:[span]:last:items-center ncp:*:[span]:last:gap-2",e),...a,children:[n.jsx("span",{className:"ncp:absolute ncp:right-2 ncp:flex ncp:size-3.5 ncp:items-center ncp:justify-center",children:n.jsx(g.ItemIndicator,{children:n.jsx(p.CheckIcon,{className:"ncp:size-4"})})}),n.jsx(g.ItemText,{children:t})]})}function jt({className:e,...t}){return n.jsx(g.Separator,{"data-slot":"select-separator",className:c("ncp:bg-border ncp:pointer-events-none ncp:-mx-1 ncp:my-1 ncp:h-px",e),...t})}function Cn({className:e,...t}){return n.jsx(g.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:c("ncp:flex ncp:cursor-default ncp:items-center ncp:justify-center ncp:py-1",e),...t,children:n.jsx(p.ChevronUpIcon,{className:"ncp:size-4"})})}function zn({className:e,...t}){return n.jsx(g.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:c("ncp:flex ncp:cursor-default ncp:items-center ncp:justify-center ncp:py-1",e),...t,children:n.jsx(p.ChevronDownIcon,{className:"ncp:size-4"})})}function wt({...e}){return n.jsx(T.Root,{"data-slot":"sheet",...e})}function Nt({...e}){return n.jsx(T.Portal,{"data-slot":"sheet-portal",...e})}function yt({className:e,...t}){return n.jsx(T.Overlay,{"data-slot":"sheet-overlay",className:c("ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:data-[state=closed]:fade-out-0 ncp:data-[state=open]:fade-in-0 ncp:fixed ncp:inset-0 ncp:z-50 ncp:bg-black/50",e),...t})}function kt({className:e,children:t,side:a="right",...r}){return n.jsxs(Nt,{children:[n.jsx(yt,{}),n.jsxs(T.Content,{"data-slot":"sheet-content",className:c("ncp:bg-background ncp:data-[state=open]:animate-in ncp:data-[state=closed]:animate-out ncp:fixed ncp:z-50 ncp:flex ncp:flex-col ncp:gap-4 ncp:shadow-lg ncp:transition ncp:ease-in-out ncp:data-[state=closed]:duration-300 ncp:data-[state=open]:duration-500",a==="right"&&"ncp:data-[state=closed]:slide-out-to-right ncp:data-[state=open]:slide-in-from-right ncp:inset-y-0 ncp:right-0 ncp:h-full ncp:w-3/4 ncp:border-l ncp:sm:max-w-sm",a==="left"&&"ncp:data-[state=closed]:slide-out-to-left ncp:data-[state=open]:slide-in-from-left ncp:inset-y-0 ncp:left-0 ncp:h-full ncp:w-3/4 ncp:border-r ncp:sm:max-w-sm",a==="top"&&"ncp:data-[state=closed]:slide-out-to-top ncp:data-[state=open]:slide-in-from-top ncp:inset-x-0 ncp:top-0 ncp:h-auto ncp:border-b",a==="bottom"&&"ncp:data-[state=closed]:slide-out-to-bottom ncp:data-[state=open]:slide-in-from-bottom ncp:inset-x-0 ncp:bottom-0 ncp:h-auto ncp:border-t",e),...r,children:[t,n.jsxs(T.Close,{className:"ncp:ring-offset-background ncp:focus:ring-ring ncp:data-[state=open]:bg-secondary ncp:absolute ncp:top-4 ncp:right-4 ncp:rounded-xs ncp:opacity-70 ncp:transition-opacity ncp:hover:opacity-100 ncp:focus:ring-2 ncp:focus:ring-offset-2 ncp:focus:outline-hidden ncp:disabled:pointer-events-none",children:[n.jsx(p.XIcon,{className:"ncp:size-4"}),n.jsx("span",{className:"ncp:sr-only",children:"Close"})]})]})]})}function St({className:e,...t}){return n.jsx("div",{"data-slot":"sheet-header",className:c("ncp:flex ncp:flex-col ncp:gap-1.5 ncp:p-4",e),...t})}function Ct({className:e,...t}){return n.jsx(T.Title,{"data-slot":"sheet-title",className:c("ncp:text-foreground ncp:font-semibold",e),...t})}function zt({className:e,...t}){return n.jsx(T.Description,{"data-slot":"sheet-description",className:c("ncp:text-muted-foreground ncp:text-sm",e),...t})}function q({className:e,...t}){return n.jsx("div",{"data-slot":"skeleton",className:c("ncp:bg-accent ncp:animate-pulse ncp:rounded-md",e),...t})}const E=768;function Tt(){const[e,t]=x.useState(void 0);return x.useEffect(()=>{const a=window.matchMedia(`(max-width: ${E-1}px)`),r=()=>{t(window.innerWidth<E)};return a.addEventListener("change",r),t(window.innerWidth<E),()=>a.removeEventListener("change",r)},[]),!!e}const It="sidebar_state",Mt=60*60*24*7,At="16rem",Pt="18rem",Dt="3rem",_t="b",Tn=x.createContext(null);function M(){const e=x.useContext(Tn);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Rt({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:s,children:i,...u}){const d=Tt(),[f,v]=x.useState(!1),[N,F]=x.useState(e),z=t??N,y=x.useCallback(j=>{const k=typeof j=="function"?j(z):j;a?a(k):F(k),document.cookie=`${It}=${k}; path=/; max-age=${Mt}`},[a,z]),P=x.useCallback(()=>d?v(j=>!j):y(j=>!j),[d,y,v]);x.useEffect(()=>{const j=k=>{k.key===_t&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),P())};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[P]);const Y=z?"expanded":"collapsed",Mn=x.useMemo(()=>({state:Y,open:z,setOpen:y,isMobile:d,openMobile:f,setOpenMobile:v,toggleSidebar:P}),[Y,z,y,d,f,v,P]);return n.jsx(Tn.Provider,{value:Mn,children:n.jsx(H,{delayDuration:0,children:n.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":At,"--sidebar-width-icon":Dt,...s},className:c("ncp:group/sidebar-wrapper ncp:has-data-[variant=inset]:bg-sidebar ncp:flex ncp:min-h-svh ncp:w-full",r),...u,children:i})})})}function Bt({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:s,...i}){const{isMobile:u,state:d,openMobile:f,setOpenMobile:v}=M();return a==="none"?n.jsx("div",{"data-slot":"sidebar",className:c("ncp:bg-sidebar ncp:text-sidebar-foreground ncp:flex ncp:h-full ncp:w-(--sidebar-width) ncp:flex-col",r),...i,children:s}):u?n.jsx(wt,{open:f,onOpenChange:v,...i,children:n.jsxs(kt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"ncp:bg-sidebar ncp:text-sidebar-foreground ncp:w-(--sidebar-width) ncp:p-0 ncp:[&>button]:hidden",style:{"--sidebar-width":Pt},side:e,children:[n.jsxs(St,{className:"ncp:sr-only",children:[n.jsx(Ct,{children:"Sidebar"}),n.jsx(zt,{children:"Displays the mobile sidebar."})]}),n.jsx("div",{className:"ncp:flex ncp:h-full ncp:w-full ncp:flex-col",children:s})]})}):n.jsxs("div",{className:"ncp:group ncp:peer ncp:text-sidebar-foreground ncp:hidden ncp:md:block","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[n.jsx("div",{"data-slot":"sidebar-gap",className:c("ncp:relative ncp:w-(--sidebar-width) ncp:bg-transparent ncp:transition-[width] ncp:duration-200 ncp:ease-linear","ncp:group-data-[collapsible=offcanvas]:w-0","ncp:group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"ncp:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"ncp:group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),n.jsx("div",{"data-slot":"sidebar-container",className:c("ncp:fixed ncp:inset-y-0 ncp:z-10 ncp:hidden ncp:h-svh ncp:w-(--sidebar-width) ncp:transition-[left,right,width] ncp:duration-200 ncp:ease-linear ncp:md:flex",e==="left"?"ncp:left-0 ncp:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"ncp:right-0 ncp:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"ncp:p-2 ncp:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"ncp:group-data-[collapsible=icon]:w-(--sidebar-width-icon) ncp:group-data-[side=left]:border-r ncp:group-data-[side=right]:border-l",r),...i,children:n.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"ncp:bg-sidebar ncp:group-data-[variant=floating]:border-sidebar-border ncp:flex ncp:h-full ncp:w-full ncp:flex-col ncp:group-data-[variant=floating]:rounded-lg ncp:group-data-[variant=floating]:border ncp:group-data-[variant=floating]:shadow-sm",children:s})})]})}function Ft({className:e,onClick:t,...a}){const{toggleSidebar:r}=M();return n.jsxs(S,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:c("ncp:size-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[n.jsx(p.PanelLeftIcon,{}),n.jsx("span",{className:"ncp:sr-only",children:"Toggle Sidebar"})]})}function Et({className:e,...t}){const{toggleSidebar:a}=M();return n.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:c("ncp:hover:after:bg-sidebar-border ncp:absolute ncp:inset-y-0 ncp:z-20 ncp:hidden ncp:w-4 ncp:-translate-x-1/2 ncp:transition-all ncp:ease-linear ncp:group-data-[side=left]:-right-4 ncp:group-data-[side=right]:left-0 ncp:after:absolute ncp:after:inset-y-0 ncp:after:left-1/2 ncp:after:w-[2px] ncp:sm:flex","ncp:in-data-[side=left]:cursor-w-resize ncp:in-data-[side=right]:cursor-e-resize","ncp:[[data-side=left][data-state=collapsed]_&]:cursor-e-resize ncp:[[data-side=right][data-state=collapsed]_&]:cursor-w-resize","ncp:hover:group-data-[collapsible=offcanvas]:bg-sidebar ncp:group-data-[collapsible=offcanvas]:translate-x-0 ncp:group-data-[collapsible=offcanvas]:after:left-full","ncp:[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","ncp:[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function Lt({className:e,...t}){return n.jsx("main",{"data-slot":"sidebar-inset",className:c("ncp:bg-background ncp:relative ncp:flex ncp:w-full ncp:flex-1 ncp:flex-col","ncp:md:peer-data-[variant=inset]:m-2 ncp:md:peer-data-[variant=inset]:ml-0 ncp:md:peer-data-[variant=inset]:rounded-xl ncp:md:peer-data-[variant=inset]:shadow-sm ncp:md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function Gt({className:e,...t}){return n.jsx(Sn,{"data-slot":"sidebar-input","data-sidebar":"input",className:c("ncp:bg-background ncp:h-8 ncp:w-full ncp:shadow-none",e),...t})}function qt({className:e,...t}){return n.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:c("ncp:flex ncp:flex-col ncp:gap-2 ncp:p-2",e),...t})}function Ot({className:e,...t}){return n.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:c("ncp:flex ncp:flex-col ncp:gap-2 ncp:p-2",e),...t})}function Ht({className:e,...t}){return n.jsx(J,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:c("ncp:bg-sidebar-border ncp:mx-2 ncp:w-auto",e),...t})}function Ut({className:e,...t}){return n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:c("ncp:flex ncp:min-h-0 ncp:flex-1 ncp:flex-col ncp:gap-2 ncp:overflow-auto ncp:group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Vt({className:e,...t}){return n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:c("ncp:relative ncp:flex ncp:w-full ncp:min-w-0 ncp:flex-col ncp:p-2",e),...t})}function Wt({className:e,asChild:t=!1,...a}){const r=t?I.Slot:"div";return n.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:c("ncp:text-sidebar-foreground/70 ncp:ring-sidebar-ring ncp:flex ncp:h-8 ncp:shrink-0 ncp:items-center ncp:rounded-md ncp:px-2 ncp:text-xs ncp:font-medium ncp:outline-hidden ncp:transition-[margin,opacity] ncp:duration-200 ncp:ease-linear ncp:focus-visible:ring-2 ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0","ncp:group-data-[collapsible=icon]:-mt-8 ncp:group-data-[collapsible=icon]:opacity-0",e),...a})}function $t({className:e,asChild:t=!1,...a}){const r=t?I.Slot:"button";return n.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:c("ncp:text-sidebar-foreground ncp:ring-sidebar-ring ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:absolute ncp:top-3.5 ncp:right-3 ncp:flex ncp:aspect-square ncp:w-5 ncp:items-center ncp:justify-center ncp:rounded-md ncp:p-0 ncp:outline-hidden ncp:transition-transform ncp:focus-visible:ring-2 ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0","ncp:after:absolute ncp:after:-inset-2 ncp:md:after:hidden","ncp:group-data-[collapsible=icon]:hidden",e),...a})}function Kt({className:e,...t}){return n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:c("ncp:w-full ncp:text-sm",e),...t})}function Xt({className:e,...t}){return n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:c("ncp:flex ncp:w-full ncp:min-w-0 ncp:flex-col ncp:gap-1",e),...t})}function Jt({className:e,...t}){return n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:c("ncp:group/menu-item ncp:relative",e),...t})}const Yt=D.cva("ncp:peer/menu-button ncp:flex ncp:w-full ncp:items-center ncp:gap-2 ncp:overflow-hidden ncp:rounded-md ncp:p-2 ncp:text-left ncp:text-sm ncp:outline-hidden ncp:ring-sidebar-ring ncp:transition-[width,height,padding] ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:focus-visible:ring-2 ncp:active:bg-sidebar-accent ncp:active:text-sidebar-accent-foreground ncp:disabled:pointer-events-none ncp:disabled:opacity-50 ncp:group-has-data-[sidebar=menu-action]/menu-item:pr-8 ncp:aria-disabled:pointer-events-none ncp:aria-disabled:opacity-50 ncp:data-[active=true]:bg-sidebar-accent ncp:data-[active=true]:font-medium ncp:data-[active=true]:text-sidebar-accent-foreground ncp:data-[state=open]:hover:bg-sidebar-accent ncp:data-[state=open]:hover:text-sidebar-accent-foreground ncp:group-data-[collapsible=icon]:size-8! ncp:group-data-[collapsible=icon]:p-2! ncp:[&>span:last-child]:truncate ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0",{variants:{variant:{default:"ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground",outline:"ncp:bg-background ncp:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"ncp:h-8 ncp:text-sm",sm:"ncp:h-7 ncp:text-xs",lg:"ncp:h-12 ncp:text-sm ncp:group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Qt({asChild:e=!1,isActive:t=!1,variant:a="default",size:r="default",tooltip:s,className:i,...u}){const d=e?I.Slot:"button",{isMobile:f,state:v}=M(),N=n.jsx(d,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:c(Yt({variant:a,size:r}),i),...u});return s?(typeof s=="string"&&(s={children:s}),n.jsxs(_,{children:[n.jsx(R,{asChild:!0,children:N}),n.jsx(B,{side:"right",align:"center",hidden:v!=="collapsed"||f,...s})]})):N}function Zt({className:e,asChild:t=!1,showOnHover:a=!1,...r}){const s=t?I.Slot:"button";return n.jsx(s,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:c("ncp:text-sidebar-foreground ncp:ring-sidebar-ring ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:peer-hover/menu-button:text-sidebar-accent-foreground ncp:absolute ncp:top-1.5 ncp:right-1 ncp:flex ncp:aspect-square ncp:w-5 ncp:items-center ncp:justify-center ncp:rounded-md ncp:p-0 ncp:outline-hidden ncp:transition-transform ncp:focus-visible:ring-2 ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0","ncp:after:absolute ncp:after:-inset-2 ncp:md:after:hidden","ncp:peer-data-[size=sm]/menu-button:top-1","ncp:peer-data-[size=default]/menu-button:top-1.5","ncp:peer-data-[size=lg]/menu-button:top-2.5","ncp:group-data-[collapsible=icon]:hidden",a&&"ncp:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground ncp:group-focus-within/menu-item:opacity-100 ncp:group-hover/menu-item:opacity-100 ncp:data-[state=open]:opacity-100 ncp:md:opacity-0",e),...r})}function na({className:e,...t}){return n.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:c("ncp:text-sidebar-foreground ncp:pointer-events-none ncp:absolute ncp:right-1 ncp:flex ncp:h-5 ncp:min-w-5 ncp:items-center ncp:justify-center ncp:rounded-md ncp:px-1 ncp:text-xs ncp:font-medium ncp:tabular-nums ncp:select-none","ncp:peer-hover/menu-button:text-sidebar-accent-foreground ncp:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","ncp:peer-data-[size=sm]/menu-button:top-1","ncp:peer-data-[size=default]/menu-button:top-1.5","ncp:peer-data-[size=lg]/menu-button:top-2.5","ncp:group-data-[collapsible=icon]:hidden",e),...t})}function ea({className:e,showIcon:t=!1,...a}){const r=x.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return n.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:c("ncp:flex ncp:h-8 ncp:items-center ncp:gap-2 ncp:rounded-md ncp:px-2",e),...a,children:[t&&n.jsx(q,{className:"ncp:size-4 ncp:rounded-md","data-sidebar":"menu-skeleton-icon"}),n.jsx(q,{className:"ncp:h-4 ncp:max-w-(--skeleton-width) ncp:flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function ta({className:e,...t}){return n.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:c("ncp:border-sidebar-border ncp:mx-3.5 ncp:flex ncp:min-w-0 ncp:translate-x-px ncp:flex-col ncp:gap-1 ncp:border-l ncp:px-2.5 ncp:py-0.5","ncp:group-data-[collapsible=icon]:hidden",e),...t})}function aa({className:e,...t}){return n.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:c("ncp:group/menu-sub-item ncp:relative",e),...t})}function ca({asChild:e=!1,size:t="md",isActive:a=!1,className:r,...s}){const i=e?I.Slot:"a";return n.jsx(i,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:c("ncp:text-sidebar-foreground ncp:ring-sidebar-ring ncp:hover:bg-sidebar-accent ncp:hover:text-sidebar-accent-foreground ncp:active:bg-sidebar-accent ncp:active:text-sidebar-accent-foreground ncp:[&>svg]:text-sidebar-accent-foreground ncp:flex ncp:h-7 ncp:min-w-0 ncp:-translate-x-px ncp:items-center ncp:gap-2 ncp:overflow-hidden ncp:rounded-md ncp:px-2 ncp:outline-hidden ncp:focus-visible:ring-2 ncp:disabled:pointer-events-none ncp:disabled:opacity-50 ncp:aria-disabled:pointer-events-none ncp:aria-disabled:opacity-50 ncp:[&>span:last-child]:truncate ncp:[&>svg]:size-4 ncp:[&>svg]:shrink-0","ncp:data-[active=true]:bg-sidebar-accent ncp:data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"ncp:text-xs",t==="md"&&"ncp:text-sm","ncp:group-data-[collapsible=icon]:hidden",r),...s})}function ra({className:e,...t}){return n.jsx(Q.Root,{"data-slot":"switch",className:c("ncp:peer ncp:data-[state=checked]:bg-primary ncp:data-[state=unchecked]:bg-input ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:dark:data-[state=unchecked]:bg-input/80 ncp:inline-flex ncp:h-[1.15rem] ncp:w-8 ncp:shrink-0 ncp:items-center ncp:rounded-full ncp:border ncp:border-transparent ncp:shadow-xs ncp:transition-all ncp:outline-none ncp:focus-visible:ring-[3px] ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50",e),...t,children:n.jsx(Q.Thumb,{"data-slot":"switch-thumb",className:c("ncp:bg-background ncp:dark:data-[state=unchecked]:bg-foreground ncp:dark:data-[state=checked]:bg-primary-foreground ncp:pointer-events-none ncp:block ncp:size-4 ncp:rounded-full ncp:ring-0 ncp:transition-transform ncp:data-[state=checked]:translate-x-[calc(100%-2px)] ncp:data-[state=unchecked]:translate-x-0")})})}const In=x.createContext("inline"),A=()=>x.useContext(In);function oa({className:e,variant:t,...a}){return n.jsx(In.Provider,{value:t,children:n.jsx("div",{"data-slot":"table-container",className:c("ncp:relative ncp:w-full ncp:overflow-x-auto",t==="card"&&"ncp:border ncp:border-[#ececec] ncp:rounded-lg"),children:n.jsx("table",{"data-slot":"table",className:c("ncp:w-full ncp:caption-bottom ncp:text-sm",e),...a})})})}function sa({className:e,...t}){const a=A();return n.jsx("thead",{"data-slot":"table-header",className:c("ncp:[&_tr]:border-b",a==="card"&&"ncp:bg-[#f9f9f9] ncp:[&_tr]:border-[#ececec]",e),...t})}function pa({className:e,...t}){const a=A();return n.jsx("tbody",{"data-slot":"table-body",className:c("ncp:[&_tr:last-child]:border-0",a==="card"&&"ncp:bg-white",e),...t})}function ia({className:e,...t}){return n.jsx("tfoot",{"data-slot":"table-footer",className:c("ncp:bg-muted/50 ncp:border-t ncp:font-medium ncp:[&>tr]:last:border-b-0",e),...t})}function la({className:e,...t}){const a=A();return n.jsx("tr",{"data-slot":"table-row",className:c("ncp:border-b ncp:transition-colors",a==="inline"&&"ncp:hover:bg-muted/50 ncp:data-[state=selected]:bg-muted",a==="card"&&"ncp:border-[#ececec] ncp:hover:bg-[#f9f9f9]",e),...t})}function da({className:e,...t}){const a=A();return n.jsx("th",{"data-slot":"table-head",className:c("ncp:text-left ncp:align-middle ncp:font-medium ncp:whitespace-nowrap ncp:[&:has([role=checkbox])]:pr-0 ncp:[&>[role=checkbox]]:translate-y-[2px]",a==="inline"&&"ncp:text-foreground ncp:h-12 ncp:px-4 ncp:text-muted-foreground",a==="card"&&"ncp:py-3 ncp:px-4 ncp:text-sm ncp:text-[#000000]",e),...t})}function ua({className:e,...t}){const a=A();return n.jsx("td",{"data-slot":"table-cell",className:c("ncp:align-middle ncp:whitespace-nowrap ncp:[&:has([role=checkbox])]:pr-0 ncp:[&>[role=checkbox]]:translate-y-[2px]",a==="inline"&&"ncp:p-4",a==="card"&&"ncp:py-3 ncp:px-4 ncp:text-sm ncp:text-[#000000]",e),...t})}function ma({className:e,...t}){return n.jsx("caption",{"data-slot":"table-caption",className:c("ncp:text-muted-foreground ncp:mt-4 ncp:text-sm",e),...t})}function ga({className:e,...t}){return n.jsx("textarea",{"data-slot":"textarea",className:c("ncp:border-input ncp:placeholder:text-muted-foreground ncp:focus-visible:border-ring ncp:focus-visible:ring-ring/50 ncp:aria-invalid:ring-destructive/20 ncp:dark:aria-invalid:ring-destructive/40 ncp:aria-invalid:border-destructive ncp:dark:bg-input/30 ncp:flex ncp:field-sizing-content ncp:min-h-16 ncp:w-full ncp:rounded-md ncp:border ncp:bg-transparent ncp:px-3 ncp:py-2 ncp:text-base ncp:shadow-xs ncp:transition-[color,box-shadow] ncp:outline-none ncp:focus-visible:ring-[3px] ncp:disabled:cursor-not-allowed ncp:disabled:opacity-50 ncp:md:text-sm",e),...t})}const fa={h1:"ncp:scroll-m-20 ncp:text-center ncp:text-3xl ncp:font-extrabold ncp:tracking-tight ncp:text-balance",h2:"ncp:scroll-m-20 ncp:text-2xl ncp:font-semibold ncp:tracking-tight",h3:"ncp:scroll-m-20 ncp:text-xl ncp:font-semibold ncp:tracking-tight",h4:"ncp:scroll-m-20 ncp:text-lg ncp:font-semibold ncp:tracking-tight",p:"ncp:leading-7 ncp:whitespace-pre-wrap ncp:text-muted-foreground",small:"ncp:text-sm ncp:leading-none ncp:font-medium ncp:text-muted-foreground"},xa=({variant:e,children:t,className:a})=>b.createElement(e,{className:c(fa[e],a)},t);exports.Alert=Vn;exports.AlertDescription=$n;exports.AlertTitle=Wn;exports.AssistantSidebar=ke;exports.Avatar=en;exports.AvatarBadge=Kn;exports.AvatarFallback=an;exports.AvatarGroup=Xn;exports.AvatarGroupCount=Jn;exports.AvatarImage=tn;exports.Breadcrumb=Se;exports.BreadcrumbEllipsis=Ae;exports.BreadcrumbItem=ze;exports.BreadcrumbLink=Te;exports.BreadcrumbList=Ce;exports.BreadcrumbPage=Ie;exports.BreadcrumbSeparator=Me;exports.Button=S;exports.Card=Pe;exports.CardAction=Be;exports.CardContent=Fe;exports.CardDescription=Re;exports.CardFooter=Ee;exports.CardHeader=De;exports.CardTitle=_e;exports.Collapsible=bn;exports.CollapsibleContent=vn;exports.CollapsibleTrigger=hn;exports.ComposerAddAttachment=fn;exports.ComposerAttachments=gn;exports.Dialog=cn;exports.DialogClose=Yn;exports.DialogContent=pn;exports.DialogDescription=ne;exports.DialogFooter=Zn;exports.DialogHeader=Qn;exports.DialogOverlay=sn;exports.DialogPortal=on;exports.DialogTitle=ln;exports.DialogTrigger=rn;exports.DropdownMenu=Le;exports.DropdownMenuCheckboxItem=Ve;exports.DropdownMenuContent=Oe;exports.DropdownMenuGroup=He;exports.DropdownMenuItem=Ue;exports.DropdownMenuLabel=Ke;exports.DropdownMenuPortal=Ge;exports.DropdownMenuRadioGroup=We;exports.DropdownMenuRadioItem=$e;exports.DropdownMenuSeparator=Xe;exports.DropdownMenuShortcut=Je;exports.DropdownMenuSub=Ye;exports.DropdownMenuSubContent=Ze;exports.DropdownMenuSubTrigger=Qe;exports.DropdownMenuTrigger=qe;exports.Field=ct;exports.FieldContent=rt;exports.FieldDescription=pt;exports.FieldError=lt;exports.FieldGroup=tt;exports.FieldLabel=ot;exports.FieldLegend=et;exports.FieldSeparator=it;exports.FieldSet=nt;exports.FieldTitle=st;exports.Input=Sn;exports.Label=kn;exports.MarkdownText=xn;exports.RadioGroup=dt;exports.RadioGroupItem=ut;exports.ResizableHandle=yn;exports.ResizablePanel=G;exports.ResizablePanelGroup=Nn;exports.Select=mt;exports.SelectContent=bt;exports.SelectGroup=gt;exports.SelectItem=vt;exports.SelectLabel=ht;exports.SelectScrollDownButton=zn;exports.SelectScrollUpButton=Cn;exports.SelectSeparator=jt;exports.SelectTrigger=xt;exports.SelectValue=ft;exports.Separator=J;exports.Sidebar=Bt;exports.SidebarContent=Ut;exports.SidebarFooter=Ot;exports.SidebarGroup=Vt;exports.SidebarGroupAction=$t;exports.SidebarGroupContent=Kt;exports.SidebarGroupLabel=Wt;exports.SidebarHeader=qt;exports.SidebarInput=Gt;exports.SidebarInset=Lt;exports.SidebarMenu=Xt;exports.SidebarMenuAction=Zt;exports.SidebarMenuBadge=na;exports.SidebarMenuButton=Qt;exports.SidebarMenuItem=Jt;exports.SidebarMenuSkeleton=ea;exports.SidebarMenuSub=ta;exports.SidebarMenuSubButton=ca;exports.SidebarMenuSubItem=aa;exports.SidebarProvider=Rt;exports.SidebarRail=Et;exports.SidebarSeparator=Ht;exports.SidebarTrigger=Ft;exports.Skeleton=q;exports.Switch=ra;exports.Table=oa;exports.TableBody=pa;exports.TableCaption=ma;exports.TableCell=ua;exports.TableFooter=ia;exports.TableHead=da;exports.TableHeader=sa;exports.TableRow=la;exports.Textarea=ga;exports.Thread=jn;exports.ToolFallback=w;exports.ToolFallbackArgs=$;exports.ToolFallbackContent=W;exports.ToolFallbackError=X;exports.ToolFallbackResult=K;exports.ToolFallbackRoot=U;exports.ToolFallbackTrigger=V;exports.Tooltip=_;exports.TooltipContent=B;exports.TooltipIconButton=h;exports.TooltipProvider=H;exports.TooltipTrigger=R;exports.Typography=xa;exports.UserMessageAttachments=mn;exports.buttonVariants=nn;exports.useSidebar=M;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|