@inkeep/cxkit-styled 0.5.115 → 0.5.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),a=require("@inkeep/cxkit-primitives"),M=require("../ui/recipes/ai-chat-page-wrapper.cjs"),c=require("../ui/recipes/attachment.cjs"),o=require("../ui/recipes/button.cjs"),C=require("../ui/recipes/checkbox.cjs"),i=require("../ui/recipes/citation.cjs"),n=require("../ui/recipes/combobox.cjs"),y=require("../ui/recipes/icon.cjs"),b=require("../ui/recipes/input.cjs"),N=require("../ui/recipes/link.cjs"),s=require("../ui/recipes/modal.cjs"),p=require("../ui/recipes/popover.cjs"),u=require("../ui/recipes/scrollable.cjs"),h=require("../ui/recipes/select.cjs"),I=require("class-variance-authority"),B=require("merge-anything"),l=require("react"),r=require("../utils.cjs"),S=require("../ui/markdown-styles.cjs"),T=require("./loading-indicator.cjs"),H=require("./embedded-chat/conversation-loading.cjs"),L=a.EmbeddedChatPrimitive.Provider,D=l.forwardRef(({className:e,size:t,variant:m,...E},x)=>d.jsx(a.EmbeddedChatPrimitive.Wrapper,{ref:x,className:r.cn(M.aiChatPageWrapper({size:t,variant:m}),"data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950","data-[composite]:w-full","max-h-[min(85vh,850px)]","[[data-sidebar]_&]:m-[unset] [[data-sidebar]_&]:mt-auto","[[data-sidebar]_&]:h-full [[data-sidebar]_&]:w-full","[[data-sidebar]_&]:max-h-[unset]",e),...E})),W=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ConversationLoading,{className:r.cn("flex flex-col items-center justify-center h-full gap-12 flex-1 p-8",e),children:d.jsx(H.ConversationLoading,{}),...t}),q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Root,{className:r.cn(u.scrollable({section:"wrapper"}),"rounded-[inherit] font-body",e),...t}),z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Header,{className:r.cn(u.scrollable({section:"header"}),"flex items-center","bg-white dark:bg-gray-dark-950","data-[show-toolbar]:after:absolute","data-[show-toolbar]:after:left-0","data-[show-toolbar]:after:top-full","data-[show-toolbar]:after:h-4","data-[show-toolbar]:after:w-full","data-[show-toolbar]:after:text-white","data-[show-toolbar]:after:dark:text-gray-dark-950","data-[show-toolbar]:after:bg-[linear-gradient(currentColor,_transparent)]","data-[show-toolbar]:after:z-start",e),...t}),_=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HeaderToolbar,{className:r.cn("flex items-center gap-3 w-full","px-5 py-2 pt-4 justify-between *:m-0",e),...t}),Q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HeaderToolbarWrapper,{className:r.cn("flex items-center gap-1.5",e),...t}),R=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ToolbarHeader,{className:r.cn("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),O=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Content,{className:r.cn(u.scrollable({section:"content"}),"justify-end",e),...t}),V=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollArea,{className:r.cn("overflow-hidden",e),...t}),G=l.forwardRef(({className:e,...t},m)=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaViewport,{ref:m,className:r.cn("h-full w-full rounded-[inherit]",e),...t})),$=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaScrollbar,{className:r.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),J=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaThumb,{className:r.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),K=a.EmbeddedChatPrimitive.ContentScrollAreaCorner,U=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Disclaimer,{className:r.cn("ml-auto text-sm flex items-center gap-1",e),...t}),X=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerLabel,{className:r.cn("text-gray-700 dark:text-gray-dark-100",e),...t}),Y=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerTrigger,{className:r.cn("cursor-pointer text-gray-700 dark:text-gray-dark-100","focus-visible:ring-gray-500 dark:focus-visible:ring-white-alpha-900 focus-visible:ring-2 focus:outline-none",e),...t}),Z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerContent,{className:r.cn(p.popover({slot:"content"}),"px-4 py-2 font-normal","w-[250px] sm:w-[420px]",e),...t}),ee=a.EmbeddedChatPrimitive.DisclaimerText,te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerArrow,{className:r.cn(p.popover({slot:"arrow"}),e),...t}),ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestions,{className:r.cn("mt-4 flex flex-col gap-2",e),...t}),de=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionsLabel,{className:r.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionsList,{className:r.cn("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),se=l.forwardRef(({className:e,style:t,...m},E)=>{const x=l.useRef(null),k=a.composeRefs(E,x),{width:P=0,height:w=0}=a.useResizeObserver({ref:x,box:"border-box"}),j=Math.max(w,P);return d.jsx(a.EmbeddedChatPrimitive.ExampleQuestion,{ref:k,style:{"--before-size":`${j+100}px`,...t},className:r.cn("flex items-center justify-center relative z-base","min-h-9 rounded-md overflow-hidden","before:absolute before:z-hide","before:bg-gray-300 dark:before:bg-gray-dark-950","before:bg-no-repeat before:[background-position:0_0]","before:[background-size:cover] before:m-auto","before:w-[--before-size] before:h-[--before-size]","data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.600),transparent_30%)]","dark:data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.300),transparent_30%)]","data-[highlight]:first:before:animate-[spin_4s_linear_infinite]","after:absolute after:z-base after:top-px after:left-px","after:w-[calc(100%-2px)] after:h-[calc(100%-2px)]","after:rounded-[5px] after:bg-white dark:after:bg-gray-dark-950",e),...m})}),oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionButton,{className:r.cn(o.button({size:"sm"}),"text-sm font-normal h-auto w-full py-2 z-start","whitespace-normal text-center leading-[unset]","border border-solid","text-gray-800 dark:text-white-alpha-950","border-white-alpha-200","[&:where(:hover,:focus)]:bg-slate-400/5","dark:[&:where(:hover,:focus)]:bg-white-alpha-100 focus:z-start",e),...t}),me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Workflows,{className:r.cn("mt-4 flex flex-col gap-2",e),...t}),ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.WorkflowsLabel,{className:r.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.WorkflowsList,{className:r.cn("flex flex-wrap gap-2",e),...t}),ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Workflow,{className:r.cn(o.button({size:"sm"}),"min-h-9 px-3 py-2 h-auto font-medium","text-sm gap-2 whitespace-normal border ","text-inkeep-primary-strong dark:text-inkeep-expanded-primary-300","border-inkeep-expanded-primary-200","dark:border-inkeep-expanded-primary-200","hover:bg-inkeep-primary-light-subtle","dark:hover:bg-white-alpha-100",e),...t}),le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Messages,{className:r.cn("flex flex-col w-full min-w-0 min-h-0 text-2sm relative",e),...t}),F=I.cva(["flex relative w-full overflow-hidden py-8","px-5","flex-col ikp-md:flex-row","min-w-0 grow-[2] data-[role=user]:grow-0","[&:not(:last-child)]:after:absolute","[&:not(:last-child)]:after:border-b","[&:not(:last-child)]:after:bottom-0","[&:not(:last-child)]:after:inset-x-6","ikp-md:[&:not(:last-child)]:after:inset-x-8"]),be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageWrapper,{className:r.cn(F(),e),...t}),he=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.IntroMessageWrapper,{className:r.cn(F(),e),...t}),xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageHeader,{className:r.cn("flex justify-start overflow-hidden shrink-0 select-none","flex-row ikp-md:flex-col","items-center ikp-md:items-start","ikp-md:pl-3","ikp-md:pr-6","mb-6 ikp-md:mb-0",e),...t}),Ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageLoading,{className:r.cn("flex items-center gap-3 h-12 w-full",e),children:d.jsx(T.LoadingIndicator,{}),...t}),pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatar,{className:r.cn("flex items-center justify-center rounded-full","h-auto ikp-md:h-12",e),...t}),ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarContent,{className:r.cn("relative flex h-8 w-8 shrink-0 overflow-hidden","data-[username]:bg-inkeep-primary-lighter","dark:data-[username]:bg-inkeep-expanded-primary-300","text-inkeep-primary-stronger font-semibold ","data-[role=user]:hidden ikp-md:flex","justify-center items-center",e),...t}),Ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarFallback,{className:r.cn("hidden data-[role=user]:block",e),...t}),ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarImage,{className:r.cn("data-[type=icon]:data-[role=user]:text-inkeep-primary-medium","dark:data-[type=icon]:data-[role=user]:text-inkeep-expanded-primary-300","data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.300)]","data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),Fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageName,{className:r.cn("px-3 py-1 ml-4 data-[role=user]:ml-0","text-sm rounded-full","bg-inkeep-primary-lighter data-[role=user]:bg-gray-50","text-inkeep-primary-stronger dark:text-inkeep-expanded-primary-300","data-[role=user]:text-gray-700 dark:data-[role=user]:text-white-alpha-700","dark:bg-gray-dark-700","ikp-md:hidden",e),...t}),ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageContentWrapper,{className:r.cn("overflow-hidden flex flex-col","justify-start grow-2 w-full","data-[role=user]:justify-end","data-[role=user]:shrink-2","data-[role=user]:grow-0","ikp-md:pr-3",e),...t}),fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageContent,{className:r.cn("text-2sm flex-wrap break-words min-w-0 shrink-1 max-w-full",e),...t}),Ae=a.EmbeddedChatPrimitive.MessageAttachments,ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsList,{className:r.cn("flex flex-wrap gap-2",e),...t}),Pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItem,{className:r.cn(o.button({variant:"ghost"}),c.attachment({slot:"root"}),"font-normal px-2",e),...t}),we=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItemIcon,{className:r.cn(c.attachment({slot:"icon"}),e),...t}),je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItemTitle,{className:r.cn(c.attachment({slot:"title"}),e),...t}),Me=a.EmbeddedChatPrimitive.MessageAttachmentsPreview,ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewOverlay,{className:r.cn(s.modal({slot:"overlay"}),e),...t}),Ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewContent,{className:r.cn(s.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),Ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewHeader,{className:r.cn(s.modal({slot:"header"}),"px-0 pt-0 pb-8 flex flex-col gap-6","font-semibold",e),...t}),Be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewClose,{className:r.cn(s.modal({slot:"close"}),e),...t}),Se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewBody,{className:r.cn(s.modal({slot:"body"}),"p-0",e),...t}),Te=({className:e,componentStyles:t,...m})=>d.jsx(a.EmbeddedChatPrimitive.Message,{className:r.cn("data-[role=user]:whitespace-pre-wrap mb-3 max-w-full",e),componentStyles:B.merge(S.markdownStyles,t??{}),...m}),He=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolbar,{className:r.cn("flex items-center mt-2 mb-3",e),...t}),Le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolActions,{className:r.cn("mr-auto flex items-center gap-2",e),...t}),De=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolAction,{className:r.cn(o.button({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),We=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAction,{className:r.cn(o.button({variant:"iconButton",size:"sm"}),"data-[upvoted]:text-inkeep-primary-medium","data-[downvoted]:text-inkeep-primary-medium","data-[upvoted]:dark:text-inkeep-expanded-primary-300","data-[downvoted]:dark:text-inkeep-expanded-primary-300","dark:hover:text-inkeep-expanded-primary-300 px-2 text-md",e),...t}),qe=a.EmbeddedChatPrimitive.MessageSources,ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourcesHeader,{className:r.cn("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourcesList,{className:r.cn("w-full relative flex flex-col gap-3 py-px",e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItem,{className:r.cn(i.citation({slot:"root"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbs,{className:r.cn(i.citation({slot:"breadcrumbs"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbIcon,{className:r.cn(i.citation({slot:"breadcrumbsIcon"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIcon,{className:r.cn(i.citation({slot:"icon"}),e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTitle,{className:r.cn(i.citation({slot:"title"}),e),...t}),$e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTag,{className:r.cn(i.citation({slot:"tag"}),e),...t}),Je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescription,{className:r.cn(i.citation({slot:"description"}),e),...t}),Ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescriptionPart,{className:r.cn(i.citation({slot:"descriptionPart"}),e),...t}),Ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIndicator,{className:r.cn(i.citation({slot:"indicator"}),e),...t}),Xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Footer,{className:r.cn("bg-white dark:bg-gray-dark-950 pt-6 pb-4","px-5 relative","before:absolute before:block before:top-0 before:left-0","before:pointer-events-none before:w-full before:h-3","before:bg-[linear-gradient(transparent,_white)] dark:before:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))]","before:-translate-y-full",e),...t}),Ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.InputFieldset,{className:r.cn("relative flex flex-col w-full p-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-white-alpha-50",e),...t}),Ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.InputGroup,{className:r.cn("flex",e),...t}),et=l.forwardRef(({className:e,...t},m)=>d.jsx(a.EmbeddedChatPrimitive.Input,{ref:m,className:r.cn("min-h-[unset] overflow-hidden w-full resize-none","placeholder:text-gray-500 dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent","px-3 py-2 ml-1 mr-2 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t})),tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.SendButton,{className:r.cn(o.button({}),"bg-transparent relative size-10 rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-300 dark:active:bg-white-alpha-100","hover:bg-gray-200 hover:text-inkeep-primary-strong","dark:hover:bg-white-alpha-100 dark:hover:text-inkeep-expanded-primary-300","disabled:text-gray-500 dark:disabled:text-white-alpha-200","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),at=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.SendButtonIcon,{className:r.cn(y.icon(),"text-inherit rotate-[-30deg]",e),...t}),dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBar,{className:r.cn("flex items-center justify-between","flex-wrap gap-2 px-1 pt-2 pb-1",e),...t}),rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarList,{className:r.cn("flex items-center gap-2 flex-wrap px-3 min-w-0",e),...t}),st=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachment,{className:r.cn(c.attachment({slot:"root"}),e),...t}),ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentIcon,{className:r.cn(c.attachment({slot:"icon"}),e),...t}),mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentTitle,{className:r.cn(c.attachment({slot:"title"}),e),...t}),it=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentDelete,{className:r.cn(c.attachment({slot:"delete"}),e),...t}),nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarActions,{className:r.cn("flex items-center justify-between","gap-2 flex-wrap px-3",e),...t}),ct=a.EmbeddedChatPrimitive.AttachmentsBarInfoTip,lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInfoTipIcon,{className:r.cn("cursor-pointer text-sm text-gray-600","dark:text-white-alpha-600",e),...t}),bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInfoTipText,{className:r.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-950 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)] z-dropdown","px-3 py-2 rounded-md text-sm font-normal max-w-[200px]",e),...t}),ht=a.EmbeddedChatPrimitive.AttachmentsBarInfoTipArrow,xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInputs,{className:r.cn("contents",e),...t}),Ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInput,{className:r.cn(o.button({variant:"outline",size:"xs"}),"light:text-gray-700 gap-1",e),...t}),pt=a.EmbeddedChatPrimitive.AttachmentsBarModal,ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalOverlay,{className:r.cn(s.modal({slot:"overlay"}),e),...t}),Et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalContent,{className:r.cn(s.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalHeader,{className:r.cn(s.modal({slot:"header"}),"px-0 pt-0 pb-8 gap-y-2","font-semibold",e),...t}),Ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalHeading,{className:r.cn("w-full semibold",e),...t}),vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalDescription,{className:r.cn("text-gray-700 dark:text-white-alpha-700","text-sm font-normal w-full",e),...t}),ft=a.EmbeddedChatPrimitive.AttachmentsBarModalHelp,At=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalClose,{className:r.cn(s.modal({slot:"close"}),e),...t}),kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalBody,{className:r.cn(s.modal({slot:"body"}),"p-0",e),...t}),Pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarForm,{className:r.cn("flex flex-col gap-8",e),...t}),wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitle,{className:r.cn("flex flex-col gap-2",e),...t}),jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleLabel,{className:r.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),Mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleInput,{className:r.cn("h-10 px-4 rounded-md border","focus:outline-none focus:[--shadow-color:theme(colors.blue.500)]","data-[invalid]:[--shadow-color:theme(colors.red.500)]","shadow-[0_0_0_2px_var(--shadow-color)]",e),...t}),yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleError,{className:r.cn("text-sm text-red-500",e),...t}),Nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContent,{className:r.cn("flex flex-col gap-2",e),...t}),It=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentLabel,{className:r.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),Bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentInput,{className:r.cn(b.input({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),St=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentError,{className:r.cn("text-sm text-red-500",e),...t}),Tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormSubmitButton,{className:r.cn(o.button({preset:"primaryFilled"}),"ml-auto",e),...t}),Ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ActionBar,{className:r.cn("mt-4 flex items-start justify-between flex-wrap-reverse gap-2.5",e),...t}),Lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Actions,{className:r.cn("flex items-center gap-2.5 flex-wrap",e),...t}),Dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineContainer,{className:r.cn("flex items-center whitespace-nowrap",e),...t}),Wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineText,{className:r.cn("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineLogo,{className:r.cn("text-gray-500 dark:text-white-alpha-600","w-5 ml-1.5 mr-0.5",e),...t}),zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineBrandName,{className:r.cn(N.link(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-medium",e),...t}),g=r.cn(o.button({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),_t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatAction,{className:r.cn(g,e),...t}),Qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatActionLabel,{className:r.cn("cursor-pointer",e),...t}),Rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatActionFeedback,{className:r.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-900 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)]","px-2 py-3 rounded-md text-sm font-normal",e),...t}),Ot=a.EmbeddedChatPrimitive.HelpActions,Vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatHelpAction,{className:r.cn(g,e),...t}),Gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsTrigger,{className:r.cn(g,e),...t}),$t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenu,{className:r.cn(p.popover({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),Jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuArrow,{className:r.cn(p.popover({slot:"arrow"}),e),...t}),Kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuItem,{className:r.cn("flex items-center cursor-pointer hover:underline",e),...t}),Ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuItemIcon,{className:r.cn("mr-2 text-inkeep-primary-medium",e),...t}),Xt=a.EmbeddedChatPrimitive.FeedbackModal,Yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalOverlay,{className:r.cn(s.modal({slot:"overlay"}),e),...t}),Zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalContent,{className:r.cn(s.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-[480px]",e),...t}),ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalHeader,{className:r.cn(s.modal({slot:"header"}),"px-0 pt-0 pb-8","font-semibold",e),...t}),ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalClose,{className:r.cn(s.modal({slot:"close"}),e),...t}),aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalBody,{className:r.cn(s.modal({slot:"body"}),"p-0",e),...t}),da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackForm,{className:r.cn("flex flex-col gap-8",e),...t}),ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItem,{className:r.cn("flex flex-wrap items-center","gap-y-4 gap-x-2",e),...t}),sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemCheckbox,{className:r.cn(C.checkbox({slot:"root"}),e),...t}),oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemCheckboxIndicator,{className:r.cn(C.checkbox({slot:"indicator"}),e),...t}),ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemLabel,{className:r.cn("select-none cursor-pointer font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemDescription,{className:r.cn("flex-[0_0_100%]","min-h-20 py-2 border rounded-md","px-4",e),...t}),na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackSubmitButton,{className:r.cn(o.button({preset:"primaryFilled"}),"ml-auto",e),...t}),ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormWrapper,{className:r.cn("w-full overflow-y-auto",e),...t}),la=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Form,{className:r.cn(u.scrollable({section:"content"}),"relative pt-4 pb-8 gap-8","items-start justify-center w-full","px-6 ikp-md:px-10 ikp-md:pb-14",e),...t}),ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormClose,{className:r.cn(o.button({variant:"ghost"}),"absolute right-1 top-1","text-xl text-gray-500 dark:text-white-alpha-500 w-10 h-10 z-modal",e),...t}),ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormHeader,{className:r.cn("mt-12 flex flex-col gap-6",e),...t}),xa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormHeading,{className:r.cn("font-semibold text-xl leading-5",e),...t}),Ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormDescription,{className:r.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),pa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormContent,{className:r.cn("w-full",e),...t}),ua=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormField,{className:r.cn("mb-8 flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",e),...t}),Ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldLabel,{className:r.cn("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",'dark:data-[required]:after:[content:"*"]',e),...t}),ga=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldText,{className:r.cn(b.input({size:"md",variant:"outline"}),e),...t}),Fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldEmail,{className:r.cn(b.input({size:"md",variant:"outline"}),e),...t}),va=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldFile,{className:r.cn(b.input({size:"md",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldTextArea,{className:r.cn(b.input({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),Aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCheckbox,{className:r.cn(C.checkbox({slot:"root"}),e),...t}),ka=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCheckboxIndicator,{className:r.cn(C.checkbox({slot:"indicator"}),e),...t}),Pa=a.EmbeddedChatPrimitive.FormFieldSelect,wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectTrigger,{className:r.cn(h.select({slot:"trigger"}),e),...t}),ja=a.EmbeddedChatPrimitive.FormFieldSelectValue,Ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectIcon,{className:r.cn("h-4 w-4 opacity-45",e),...t}),ya=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectContent,{className:r.cn(h.select({slot:"content"}),e),...t}),Na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectViewport,{className:r.cn(h.select({slot:"viewport"}),e),...t}),Ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectItem,{className:r.cn(h.select({slot:"item"}),e),...t}),Ba=a.EmbeddedChatPrimitive.FormFieldSelectItemText,Sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectItemIndicator,{className:r.cn(h.select({slot:"itemIndicator"}),e),...t}),Ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCombobox,{className:r.cn("w-full",e),...t}),Ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxControl,{className:r.cn(n.combobox({slot:"control"}),e),...t}),La=e=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxInput,{className:r.cn(n.combobox({slot:"input"}),e.className),...e}),Da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxTrigger,{className:r.cn(n.combobox({slot:"trigger"}),e),...t}),Wa=e=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxPositioner,{...e}),qa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxContent,{className:r.cn(n.combobox({slot:"content"}),e),...t}),v=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxItem,{className:r.cn(n.combobox({slot:"item"}),e),...t}),f=e=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxItemText,{className:r.cn(n.combobox({slot:"itemText"}),e.className),...e}),za=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxSelectedTags,{className:r.cn(n.combobox({slot:"selectedTags"}),e),...t}),A=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxItemIndicator,{className:r.cn(n.combobox({slot:"itemIndicator"}),e),...t}),_a=()=>{const e=a.useComboboxItems();return e.length===0?d.jsx("div",{className:"py-6 text-center text-sm text-gray-500 dark:text-gray-dark-400",children:"No results found"}):d.jsx(d.Fragment,{children:e.map(t=>d.jsxs(v,{item:t,children:[d.jsx(f,{children:t.label}),d.jsx(A,{item:t})]},t.value))})},Qa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldError,{className:r.cn("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),Ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormError,{className:r.cn("text-red-500 dark:text-red-300",e),...t}),Oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFooter,{className:r.cn("flex items-center justify-end gap-4 w-full",e),...t}),Va=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormCancel,{className:r.cn(o.button({variant:"outline"}),e),...t}),Ga=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSubmit,{className:r.cn(o.button({preset:"primaryFilled"}),e),...t}),$a=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccess,{className:r.cn("flex flex-col items-center justify-center h-auto","m-auto px-6 py-8 ikp-md:py-14 ikp-md:px-10",e),...t}),Ja=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccessHeading,{className:r.cn("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),Ka=a.EmbeddedChatPrimitive.FormSuccessMessage,Ua=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccessButton,{className:r.cn(o.button({preset:"primaryFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});exports.ActionBar=Ht;exports.Actions=Lt;exports.AttachmentsBar=dt;exports.AttachmentsBarActions=nt;exports.AttachmentsBarAttachment=st;exports.AttachmentsBarAttachmentDelete=it;exports.AttachmentsBarAttachmentIcon=ot;exports.AttachmentsBarAttachmentTitle=mt;exports.AttachmentsBarForm=Pt;exports.AttachmentsBarFormContent=Nt;exports.AttachmentsBarFormContentError=St;exports.AttachmentsBarFormContentInput=Bt;exports.AttachmentsBarFormContentLabel=It;exports.AttachmentsBarFormSubmitButton=Tt;exports.AttachmentsBarFormTitle=wt;exports.AttachmentsBarFormTitleError=yt;exports.AttachmentsBarFormTitleInput=Mt;exports.AttachmentsBarFormTitleLabel=jt;exports.AttachmentsBarInfoTip=ct;exports.AttachmentsBarInfoTipArrow=ht;exports.AttachmentsBarInfoTipIcon=lt;exports.AttachmentsBarInfoTipText=bt;exports.AttachmentsBarInput=Ct;exports.AttachmentsBarInputs=xt;exports.AttachmentsBarList=rt;exports.AttachmentsBarModal=pt;exports.AttachmentsBarModalBody=kt;exports.AttachmentsBarModalClose=At;exports.AttachmentsBarModalContent=Et;exports.AttachmentsBarModalDescription=vt;exports.AttachmentsBarModalHeader=gt;exports.AttachmentsBarModalHeading=Ft;exports.AttachmentsBarModalHelp=ft;exports.AttachmentsBarModalOverlay=ut;exports.ChatAction=_t;exports.ChatActionFeedback=Rt;exports.ChatActionLabel=Qt;exports.Content=O;exports.ContentScrollArea=V;exports.ContentScrollAreaCorner=K;exports.ContentScrollAreaScrollbar=$;exports.ContentScrollAreaThumb=J;exports.ContentScrollAreaViewport=G;exports.ConversationLoading=W;exports.Disclaimer=U;exports.DisclaimerArrow=te;exports.DisclaimerContent=Z;exports.DisclaimerLabel=X;exports.DisclaimerText=ee;exports.DisclaimerTrigger=Y;exports.ExampleQuestion=se;exports.ExampleQuestionButton=oe;exports.ExampleQuestions=ae;exports.ExampleQuestionsLabel=de;exports.ExampleQuestionsList=re;exports.FeedbackForm=da;exports.FeedbackItem=ra;exports.FeedbackItemCheckbox=sa;exports.FeedbackItemCheckboxIndicator=oa;exports.FeedbackItemDescription=ia;exports.FeedbackItemLabel=ma;exports.FeedbackModal=Xt;exports.FeedbackModalBody=aa;exports.FeedbackModalClose=ta;exports.FeedbackModalContent=Zt;exports.FeedbackModalHeader=ea;exports.FeedbackModalOverlay=Yt;exports.FeedbackSubmitButton=na;exports.Footer=Xe;exports.Form=la;exports.FormCancel=Va;exports.FormClose=ba;exports.FormContent=pa;exports.FormDescription=Ca;exports.FormError=Ra;exports.FormField=ua;exports.FormFieldCheckbox=Aa;exports.FormFieldCheckboxIndicator=ka;exports.FormFieldCombobox=Ta;exports.FormFieldComboboxContent=qa;exports.FormFieldComboboxControl=Ha;exports.FormFieldComboboxInput=La;exports.FormFieldComboboxItem=v;exports.FormFieldComboboxItemIndicator=A;exports.FormFieldComboboxItemList=_a;exports.FormFieldComboboxItemText=f;exports.FormFieldComboboxPositioner=Wa;exports.FormFieldComboboxSelectedTags=za;exports.FormFieldComboboxTrigger=Da;exports.FormFieldEmail=Fa;exports.FormFieldError=Qa;exports.FormFieldFile=va;exports.FormFieldLabel=Ea;exports.FormFieldSelect=Pa;exports.FormFieldSelectContent=ya;exports.FormFieldSelectIcon=Ma;exports.FormFieldSelectItem=Ia;exports.FormFieldSelectItemIndicator=Sa;exports.FormFieldSelectItemText=Ba;exports.FormFieldSelectTrigger=wa;exports.FormFieldSelectValue=ja;exports.FormFieldSelectViewport=Na;exports.FormFieldText=ga;exports.FormFieldTextArea=fa;exports.FormFooter=Oa;exports.FormHeader=ha;exports.FormHeading=xa;exports.FormSubmit=Ga;exports.FormSuccess=$a;exports.FormSuccessButton=Ua;exports.FormSuccessHeading=Ja;exports.FormSuccessMessage=Ka;exports.FormWrapper=ca;exports.Header=z;exports.HeaderToolbar=_;exports.HeaderToolbarWrapper=Q;exports.HelpAction=Vt;exports.HelpActions=Ot;exports.HelpActionsMenu=$t;exports.HelpActionsMenuArrow=Jt;exports.HelpActionsMenuItem=Kt;exports.HelpActionsMenuItemIcon=Ut;exports.HelpActionsTrigger=Gt;exports.Input=et;exports.InputFieldset=Ye;exports.InputGroup=Ze;exports.IntroMessageWrapper=he;exports.Message=Te;exports.MessageAction=We;exports.MessageAttachments=Ae;exports.MessageAttachmentsItem=Pe;exports.MessageAttachmentsItemIcon=we;exports.MessageAttachmentsItemTitle=je;exports.MessageAttachmentsList=ke;exports.MessageAttachmentsPreview=Me;exports.MessageAttachmentsPreviewBody=Se;exports.MessageAttachmentsPreviewClose=Be;exports.MessageAttachmentsPreviewContent=Ne;exports.MessageAttachmentsPreviewHeader=Ie;exports.MessageAttachmentsPreviewOverlay=ye;exports.MessageAvatar=pe;exports.MessageAvatarContent=ue;exports.MessageAvatarFallback=Ee;exports.MessageAvatarImage=ge;exports.MessageContent=fe;exports.MessageContentWrapper=ve;exports.MessageHeader=xe;exports.MessageLoading=Ce;exports.MessageName=Fe;exports.MessageSourceItem=Qe;exports.MessageSourceItemBreadcrumbIcon=Oe;exports.MessageSourceItemBreadcrumbs=Re;exports.MessageSourceItemDescription=Je;exports.MessageSourceItemDescriptionPart=Ke;exports.MessageSourceItemIcon=Ve;exports.MessageSourceItemIndicator=Ue;exports.MessageSourceItemTag=$e;exports.MessageSourceItemTitle=Ge;exports.MessageSources=qe;exports.MessageSourcesHeader=ze;exports.MessageSourcesList=_e;exports.MessageToolAction=De;exports.MessageToolActions=Le;exports.MessageToolbar=He;exports.MessageWrapper=be;exports.Messages=le;exports.Provider=L;exports.Root=q;exports.SendButton=tt;exports.SendButtonIcon=at;exports.TaglineBrandName=zt;exports.TaglineContainer=Dt;exports.TaglineLogo=qt;exports.TaglineText=Wt;exports.ToolbarHeader=R;exports.Workflow=ce;exports.Workflows=me;exports.WorkflowsLabel=ie;exports.WorkflowsList=ne;exports.Wrapper=D;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),a=require("@inkeep/cxkit-primitives"),M=require("../ui/recipes/ai-chat-page-wrapper.cjs"),c=require("../ui/recipes/attachment.cjs"),o=require("../ui/recipes/button.cjs"),p=require("../ui/recipes/checkbox.cjs"),i=require("../ui/recipes/citation.cjs"),n=require("../ui/recipes/combobox.cjs"),y=require("../ui/recipes/icon.cjs"),b=require("../ui/recipes/input.cjs"),N=require("../ui/recipes/link.cjs"),s=require("../ui/recipes/modal.cjs"),C=require("../ui/recipes/popover.cjs"),u=require("../ui/recipes/scrollable.cjs"),h=require("../ui/recipes/select.cjs"),I=require("class-variance-authority"),B=require("merge-anything"),l=require("react"),r=require("../utils.cjs"),S=require("../ui/markdown-styles.cjs"),T=require("./loading-indicator.cjs"),H=require("./embedded-chat/conversation-loading.cjs"),L=a.EmbeddedChatPrimitive.Provider,D=l.forwardRef(({className:e,size:t,variant:m,...E},x)=>d.jsx(a.EmbeddedChatPrimitive.Wrapper,{ref:x,className:r.cn(M.aiChatPageWrapper({size:t,variant:m}),"data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950","data-[composite]:w-full","max-h-[min(85vh,850px)]","[[data-sidebar]_&]:m-[unset] [[data-sidebar]_&]:mt-auto","[[data-sidebar]_&]:h-full [[data-sidebar]_&]:w-full","[[data-sidebar]_&]:max-h-[unset]",e),...E})),W=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ConversationLoading,{className:r.cn("flex flex-col items-center justify-center h-full gap-12 flex-1 p-8",e),children:d.jsx(H.ConversationLoading,{}),...t}),q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Root,{className:r.cn(u.scrollable({section:"wrapper"}),"rounded-[inherit] font-body",e),...t}),z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Header,{className:r.cn(u.scrollable({section:"header"}),"flex items-center","bg-white dark:bg-gray-dark-950","data-[show-toolbar]:after:absolute","data-[show-toolbar]:after:left-0","data-[show-toolbar]:after:top-full","data-[show-toolbar]:after:h-4","data-[show-toolbar]:after:w-full","data-[show-toolbar]:after:text-white","data-[show-toolbar]:after:dark:text-gray-dark-950","data-[show-toolbar]:after:bg-[linear-gradient(currentColor,_transparent)]","data-[show-toolbar]:after:z-start",e),...t}),_=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HeaderToolbar,{className:r.cn("flex items-center gap-3 w-full","px-5 py-2 pt-4 justify-between *:m-0",e),...t}),Q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HeaderToolbarWrapper,{className:r.cn("flex items-center gap-1.5",e),...t}),R=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ToolbarHeader,{className:r.cn("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),O=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Content,{className:r.cn(u.scrollable({section:"content"}),"justify-end",e),...t}),V=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollArea,{className:r.cn("overflow-hidden",e),...t}),G=l.forwardRef(({className:e,...t},m)=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaViewport,{ref:m,className:r.cn("h-full w-full rounded-[inherit]",e),...t})),$=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaScrollbar,{className:r.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),J=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaThumb,{className:r.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),K=a.EmbeddedChatPrimitive.ContentScrollAreaCorner,U=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Disclaimer,{className:r.cn("ml-auto text-sm flex items-center gap-1",e),...t}),X=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerLabel,{className:r.cn("text-gray-700 dark:text-gray-dark-100",e),...t}),Y=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerTrigger,{className:r.cn("cursor-pointer text-gray-700 dark:text-gray-dark-100","focus-visible:ring-gray-500 dark:focus-visible:ring-white-alpha-900 focus-visible:ring-2 focus:outline-none",e),...t}),Z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerContent,{className:r.cn(C.popover({slot:"content"}),"px-4 py-2 font-normal","w-[250px] sm:w-[420px]",e),...t}),ee=a.EmbeddedChatPrimitive.DisclaimerText,te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerArrow,{className:r.cn(C.popover({slot:"arrow"}),e),...t}),ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestions,{className:r.cn("mt-4 flex flex-col gap-2",e),...t}),de=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionsLabel,{className:r.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionsList,{className:r.cn("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),se=l.forwardRef(({className:e,style:t,...m},E)=>{const x=l.useRef(null),A=a.composeRefs(E,x),{width:P=0,height:w=0}=a.useResizeObserver({ref:x,box:"border-box"}),j=Math.max(w,P);return d.jsx(a.EmbeddedChatPrimitive.ExampleQuestion,{ref:A,style:{"--before-size":`${j+100}px`,...t},className:r.cn("flex items-center justify-center relative z-base","min-h-9 rounded-md overflow-hidden","before:absolute before:z-hide","before:bg-gray-300 dark:before:bg-gray-dark-950","before:bg-no-repeat before:[background-position:0_0]","before:[background-size:cover] before:m-auto","before:w-[--before-size] before:h-[--before-size]","data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.600),transparent_30%)]","dark:data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.300),transparent_30%)]","data-[highlight]:first:before:animate-[spin_4s_linear_infinite]","after:absolute after:z-base after:top-px after:left-px","after:w-[calc(100%-2px)] after:h-[calc(100%-2px)]","after:rounded-[5px] after:bg-white dark:after:bg-gray-dark-950",e),...m})}),oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionButton,{className:r.cn(o.button({size:"sm"}),"text-sm font-normal h-auto w-full py-2 z-start","whitespace-normal text-center leading-[unset]","border border-solid","text-gray-800 dark:text-white-alpha-950","border-white-alpha-200","[&:where(:hover,:focus)]:bg-slate-400/5","dark:[&:where(:hover,:focus)]:bg-white-alpha-100 focus:z-start",e),...t}),me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Workflows,{className:r.cn("mt-4 flex flex-col gap-2",e),...t}),ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.WorkflowsLabel,{className:r.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.WorkflowsList,{className:r.cn("flex flex-wrap gap-2",e),...t}),ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Workflow,{className:r.cn(o.button({size:"sm"}),"min-h-9 px-3 py-2 h-auto font-medium","text-sm gap-2 whitespace-normal border ","text-inkeep-primary-strong dark:text-inkeep-expanded-primary-300","border-inkeep-expanded-primary-200","dark:border-inkeep-expanded-primary-200","hover:bg-inkeep-primary-light-subtle","dark:hover:bg-white-alpha-100",e),...t}),le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Messages,{className:r.cn("flex flex-col w-full min-w-0 min-h-0 text-2sm relative",e),...t}),F=I.cva(["flex relative w-full overflow-hidden py-8","px-5","flex-col ikp-md:flex-row","min-w-0 grow-[2] data-[role=user]:grow-0","[&:not(:last-child)]:after:absolute","[&:not(:last-child)]:after:border-b","[&:not(:last-child)]:after:bottom-0","[&:not(:last-child)]:after:inset-x-6","ikp-md:[&:not(:last-child)]:after:inset-x-8"]),be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageWrapper,{className:r.cn(F(),e),...t}),he=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.IntroMessageWrapper,{className:r.cn(F(),e),...t}),xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageHeader,{className:r.cn("flex justify-start overflow-hidden shrink-0 select-none","flex-row ikp-md:flex-col","items-center ikp-md:items-start","ikp-md:pl-3","ikp-md:pr-6","mb-6 ikp-md:mb-0",e),...t}),pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageLoading,{className:r.cn("flex items-center gap-3 h-12 w-full",e),children:d.jsx(T.LoadingIndicator,{}),...t}),Ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatar,{className:r.cn("flex items-center justify-center rounded-full","h-auto ikp-md:h-12",e),...t}),ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarContent,{className:r.cn("relative flex h-8 w-8 shrink-0 overflow-hidden","data-[username]:bg-inkeep-primary-lighter","dark:data-[username]:bg-inkeep-expanded-primary-300","text-inkeep-primary-stronger font-semibold ","data-[role=user]:hidden ikp-md:flex","justify-center items-center",e),...t}),Ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarFallback,{className:r.cn("hidden data-[role=user]:block",e),...t}),ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarImage,{className:r.cn("data-[type=icon]:data-[role=user]:text-inkeep-primary-medium","dark:data-[type=icon]:data-[role=user]:text-inkeep-expanded-primary-300","data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.300)]","data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),Fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageName,{className:r.cn("px-3 py-1 ml-4 data-[role=user]:ml-0","text-sm rounded-full","bg-inkeep-primary-lighter data-[role=user]:bg-gray-50","text-inkeep-primary-stronger dark:text-inkeep-expanded-primary-300","data-[role=user]:text-gray-700 dark:data-[role=user]:text-white-alpha-700","dark:bg-gray-dark-700","ikp-md:hidden",e),...t}),ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageContentWrapper,{className:r.cn("overflow-hidden flex flex-col","justify-start grow-2 w-full","data-[role=user]:justify-end","data-[role=user]:shrink-2","data-[role=user]:grow-0","ikp-md:pr-3",e),...t}),fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageContent,{className:r.cn("text-2sm flex-wrap break-words min-w-0 shrink-1 max-w-full",e),...t}),ke=a.EmbeddedChatPrimitive.MessageAttachments,Ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsList,{className:r.cn("flex flex-wrap gap-2",e),...t}),Pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItem,{className:r.cn(o.button({variant:"ghost"}),c.attachment({slot:"root"}),"font-normal px-2",e),...t}),we=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItemIcon,{className:r.cn(c.attachment({slot:"icon"}),e),...t}),je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItemTitle,{className:r.cn(c.attachment({slot:"title"}),e),...t}),Me=a.EmbeddedChatPrimitive.MessageAttachmentsPreview,ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewOverlay,{className:r.cn(s.modal({slot:"overlay"}),e),...t}),Ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewContent,{className:r.cn(s.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),Ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewHeader,{className:r.cn(s.modal({slot:"header"}),"px-0 pt-0 pb-8 flex flex-col gap-6","font-semibold",e),...t}),Be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewClose,{className:r.cn(s.modal({slot:"close"}),e),...t}),Se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewBody,{className:r.cn(s.modal({slot:"body"}),"p-0",e),...t}),Te=({className:e,componentStyles:t,...m})=>d.jsx(a.EmbeddedChatPrimitive.Message,{className:r.cn("data-[role=user]:whitespace-pre-wrap mb-3 max-w-full",e),componentStyles:B.merge(S.markdownStyles,t??{}),...m}),He=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolbar,{className:r.cn("flex items-center mt-2 mb-3",e),...t}),Le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolActions,{className:r.cn("mr-auto flex items-center gap-2",e),...t}),De=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolAction,{className:r.cn(o.button({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),We=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAction,{className:r.cn(o.button({variant:"iconButton",size:"sm"}),"data-[upvoted]:text-inkeep-primary-medium","data-[downvoted]:text-inkeep-primary-medium","data-[upvoted]:dark:text-inkeep-expanded-primary-300","data-[downvoted]:dark:text-inkeep-expanded-primary-300","dark:hover:text-inkeep-expanded-primary-300 px-2 text-md",e),...t}),qe=a.EmbeddedChatPrimitive.MessageSources,ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourcesHeader,{className:r.cn("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourcesList,{className:r.cn("w-full relative flex flex-col gap-3 py-px",e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItem,{className:r.cn(i.citation({slot:"root"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbs,{className:r.cn(i.citation({slot:"breadcrumbs"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbIcon,{className:r.cn(i.citation({slot:"breadcrumbsIcon"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIcon,{className:r.cn(i.citation({slot:"icon"}),e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTitle,{className:r.cn(i.citation({slot:"title"}),e),...t}),$e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTag,{className:r.cn(i.citation({slot:"tag"}),e),...t}),Je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescription,{className:r.cn(i.citation({slot:"description"}),e),...t}),Ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescriptionPart,{className:r.cn(i.citation({slot:"descriptionPart"}),e),...t}),Ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIndicator,{className:r.cn(i.citation({slot:"indicator"}),e),...t}),Xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Footer,{className:r.cn("bg-white dark:bg-gray-dark-950 pt-6 pb-4","px-5 relative","before:absolute before:block before:top-0 before:left-0","before:pointer-events-none before:w-full before:h-3","before:bg-[linear-gradient(transparent,_white)] dark:before:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))]","before:-translate-y-full",e),...t}),Ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.InputFieldset,{className:r.cn("relative flex flex-col w-full p-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-white-alpha-50",e),...t}),Ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.InputGroup,{className:r.cn("flex",e),...t}),et=l.forwardRef(({className:e,...t},m)=>d.jsx(a.EmbeddedChatPrimitive.Input,{ref:m,className:r.cn("min-h-[unset] overflow-hidden w-full resize-none","placeholder:text-gray-500 dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent","px-3 py-2 ml-1 mr-2 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t})),tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.SendButton,{className:r.cn(o.button({}),"bg-transparent relative size-10 rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-300 dark:active:bg-white-alpha-100","hover:bg-gray-200 hover:text-inkeep-primary-strong","dark:hover:bg-white-alpha-100 dark:hover:text-inkeep-expanded-primary-300","disabled:text-gray-500 dark:disabled:text-white-alpha-200","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),at=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.SendButtonIcon,{className:r.cn(y.icon(),"text-inherit rotate-[-30deg]",e),...t}),dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBar,{className:r.cn("flex items-center justify-between","flex-wrap gap-2 px-1 pt-2 pb-1",e),...t}),rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarList,{className:r.cn("flex items-center gap-2 flex-wrap px-3 min-w-0",e),...t}),st=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachment,{className:r.cn(c.attachment({slot:"root"}),e),...t}),ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentIcon,{className:r.cn(c.attachment({slot:"icon"}),e),...t}),mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentTitle,{className:r.cn(c.attachment({slot:"title"}),e),...t}),it=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentDelete,{className:r.cn(c.attachment({slot:"delete"}),e),...t}),nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarActions,{className:r.cn("flex items-center justify-between","gap-2 flex-wrap px-3",e),...t}),ct=a.EmbeddedChatPrimitive.AttachmentsBarInfoTip,lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInfoTipIcon,{className:r.cn("cursor-pointer text-sm text-gray-600","dark:text-white-alpha-600",e),...t}),bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInfoTipText,{className:r.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-950 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)] z-dropdown","px-3 py-2 rounded-md text-sm font-normal max-w-[200px]",e),...t}),ht=a.EmbeddedChatPrimitive.AttachmentsBarInfoTipArrow,xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInputs,{className:r.cn("contents",e),...t}),pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInput,{className:r.cn(o.button({variant:"outline",size:"xs"}),"light:text-gray-700 gap-1",e),...t}),Ct=a.EmbeddedChatPrimitive.AttachmentsBarModal,ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalOverlay,{className:r.cn(s.modal({slot:"overlay"}),e),...t}),Et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalContent,{className:r.cn(s.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalHeader,{className:r.cn(s.modal({slot:"header"}),"px-0 pt-0 pb-8 gap-y-2","font-semibold",e),...t}),Ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalHeading,{className:r.cn("w-full semibold",e),...t}),vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalDescription,{className:r.cn("text-gray-700 dark:text-white-alpha-700","text-sm font-normal w-full",e),...t}),ft=a.EmbeddedChatPrimitive.AttachmentsBarModalHelp,kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalClose,{className:r.cn(s.modal({slot:"close"}),e),...t}),At=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalBody,{className:r.cn(s.modal({slot:"body"}),"p-0",e),...t}),Pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarForm,{className:r.cn("flex flex-col gap-8",e),...t}),wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitle,{className:r.cn("flex flex-col gap-2",e),...t}),jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleLabel,{className:r.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),Mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleInput,{className:r.cn("h-10 px-4 rounded-md border","focus:outline-none focus:[--shadow-color:theme(colors.blue.500)]","data-[invalid]:[--shadow-color:theme(colors.red.500)]","shadow-[0_0_0_2px_var(--shadow-color)]",e),...t}),yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleError,{className:r.cn("text-sm text-red-500",e),...t}),Nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContent,{className:r.cn("flex flex-col gap-2",e),...t}),It=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentLabel,{className:r.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),Bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentInput,{className:r.cn(b.input({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),St=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentError,{className:r.cn("text-sm text-red-500",e),...t}),Tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormSubmitButton,{className:r.cn(o.button({preset:"primaryFilled"}),"ml-auto",e),...t}),Ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ActionBar,{className:r.cn("mt-4 flex items-start justify-between flex-wrap-reverse gap-2.5",e),...t}),Lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Actions,{className:r.cn("flex items-center gap-2.5 flex-wrap",e),...t}),Dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineContainer,{className:r.cn("flex items-center whitespace-nowrap",e),...t}),Wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineText,{className:r.cn("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineLogo,{className:r.cn("text-gray-500 dark:text-white-alpha-600","w-5 ml-1.5 mr-0.5",e),...t}),zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineBrandName,{className:r.cn(N.link(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-medium",e),...t}),g=r.cn(o.button({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),_t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatAction,{className:r.cn(g,e),...t}),Qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatActionLabel,{className:r.cn("cursor-pointer",e),...t}),Rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatActionFeedback,{className:r.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-900 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)]","px-2 py-3 rounded-md text-sm font-normal",e),...t}),Ot=a.EmbeddedChatPrimitive.HelpActions,Vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatHelpAction,{className:r.cn(g,e),...t}),Gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsTrigger,{className:r.cn(g,e),...t}),$t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenu,{className:r.cn(C.popover({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),Jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuArrow,{className:r.cn(C.popover({slot:"arrow"}),e),...t}),Kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuItem,{className:r.cn("flex items-center cursor-pointer hover:underline",e),...t}),Ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuItemIcon,{className:r.cn("mr-2 text-inkeep-primary-medium",e),...t}),Xt=a.EmbeddedChatPrimitive.FeedbackModal,Yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalOverlay,{className:r.cn(s.modal({slot:"overlay"}),e),...t}),Zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalContent,{className:r.cn(s.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-[480px]",e),...t}),ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalHeader,{className:r.cn(s.modal({slot:"header"}),"px-0 pt-0 pb-8","font-semibold",e),...t}),ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalClose,{className:r.cn(s.modal({slot:"close"}),e),...t}),aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalBody,{className:r.cn(s.modal({slot:"body"}),"p-0",e),...t}),da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackForm,{className:r.cn("flex flex-col gap-8",e),...t}),ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItem,{className:r.cn("flex flex-wrap items-center","gap-y-4 gap-x-2",e),...t}),sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemCheckbox,{className:r.cn(p.checkbox({slot:"root"}),e),...t}),oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemCheckboxIndicator,{className:r.cn(p.checkbox({slot:"indicator"}),e),...t}),ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemLabel,{className:r.cn("select-none cursor-pointer font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemDescription,{className:r.cn("flex-[0_0_100%]","min-h-20 py-2 border rounded-md","px-4",e),...t}),na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackSubmitButton,{className:r.cn(o.button({preset:"primaryFilled"}),"ml-auto",e),...t}),ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormWrapper,{className:r.cn("w-full overflow-y-auto",e),...t}),la=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Form,{className:r.cn(u.scrollable({section:"content"}),"relative pt-4 pb-8 gap-8","items-start justify-center w-full","px-6 ikp-md:px-10 ikp-md:pb-14",e),...t}),ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormClose,{className:r.cn(o.button({variant:"ghost"}),"absolute right-1 top-1","text-xl text-gray-500 dark:text-white-alpha-500 w-10 h-10 z-modal",e),...t}),ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormHeader,{className:r.cn("mt-12 flex flex-col gap-6",e),...t}),xa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormHeading,{className:r.cn("font-semibold text-xl leading-5",e),...t}),pa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormDescription,{className:r.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),Ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormContent,{className:r.cn("w-full",e),...t}),ua=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormField,{className:r.cn("group mb-8 flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:flex-wrap data-[input-type=checkbox]:items-center",e),...t}),Ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldLabel,{className:r.cn("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",'dark:data-[required]:after:[content:"*"]',e),...t}),ga=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldText,{className:r.cn(b.input({size:"md",variant:"outline"}),e),...t}),Fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldEmail,{className:r.cn(b.input({size:"md",variant:"outline"}),e),...t}),va=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldFile,{className:r.cn(b.input({size:"md",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldTextArea,{className:r.cn(b.input({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),ka=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCheckbox,{className:r.cn(p.checkbox({slot:"root"}),e),...t}),Aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCheckboxIndicator,{className:r.cn(p.checkbox({slot:"indicator"}),e),...t}),Pa=a.EmbeddedChatPrimitive.FormFieldSelect,wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectTrigger,{className:r.cn(h.select({slot:"trigger"}),e),...t}),ja=a.EmbeddedChatPrimitive.FormFieldSelectValue,Ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectIcon,{className:r.cn("h-4 w-4 opacity-45",e),...t}),ya=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectContent,{className:r.cn(h.select({slot:"content"}),e),...t}),Na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectViewport,{className:r.cn(h.select({slot:"viewport"}),e),...t}),Ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectItem,{className:r.cn(h.select({slot:"item"}),e),...t}),Ba=a.EmbeddedChatPrimitive.FormFieldSelectItemText,Sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectItemIndicator,{className:r.cn(h.select({slot:"itemIndicator"}),e),...t}),Ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCombobox,{className:r.cn("w-full",e),...t}),Ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxControl,{className:r.cn(n.combobox({slot:"control"}),e),...t}),La=e=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxInput,{className:r.cn(n.combobox({slot:"input"}),e.className),...e}),Da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxTrigger,{className:r.cn(n.combobox({slot:"trigger"}),e),...t}),Wa=e=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxPositioner,{...e}),qa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxContent,{className:r.cn(n.combobox({slot:"content"}),e),...t}),v=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxItem,{className:r.cn(n.combobox({slot:"item"}),e),...t}),f=e=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxItemText,{className:r.cn(n.combobox({slot:"itemText"}),e.className),...e}),za=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxSelectedTags,{className:r.cn(n.combobox({slot:"selectedTags"}),e),...t}),k=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldComboboxItemIndicator,{className:r.cn(n.combobox({slot:"itemIndicator"}),e),...t}),_a=()=>{const e=a.useComboboxItems();return e.length===0?d.jsx("div",{className:"py-6 text-center text-sm text-gray-500 dark:text-gray-dark-400",children:"No results found"}):d.jsx(d.Fragment,{children:e.map(t=>d.jsxs(v,{item:t,children:[d.jsx(f,{children:t.label}),d.jsx(k,{item:t})]},t.value))})},Qa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldError,{className:r.cn("text-sm flex items-center text-red-500 dark:text-red-300","group-data-[input-type=checkbox]:w-full group-data-[input-type=checkbox]:basis-full",e),...t}),Ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldDescription,{className:r.cn("text-sm text-gray-600 dark:text-white-alpha-600","group-data-[input-type=checkbox]:w-full group-data-[input-type=checkbox]:basis-full",e),...t}),Oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormError,{className:r.cn("text-red-500 dark:text-red-300",e),...t}),Va=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFooter,{className:r.cn("flex items-center justify-end gap-4 w-full",e),...t}),Ga=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormCancel,{className:r.cn(o.button({variant:"outline"}),e),...t}),$a=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSubmit,{className:r.cn(o.button({preset:"primaryFilled"}),e),...t}),Ja=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccess,{className:r.cn("flex flex-col items-center justify-center h-auto","m-auto px-6 py-8 ikp-md:py-14 ikp-md:px-10",e),...t}),Ka=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccessHeading,{className:r.cn("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),Ua=a.EmbeddedChatPrimitive.FormSuccessMessage,Xa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccessButton,{className:r.cn(o.button({preset:"primaryFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});exports.ActionBar=Ht;exports.Actions=Lt;exports.AttachmentsBar=dt;exports.AttachmentsBarActions=nt;exports.AttachmentsBarAttachment=st;exports.AttachmentsBarAttachmentDelete=it;exports.AttachmentsBarAttachmentIcon=ot;exports.AttachmentsBarAttachmentTitle=mt;exports.AttachmentsBarForm=Pt;exports.AttachmentsBarFormContent=Nt;exports.AttachmentsBarFormContentError=St;exports.AttachmentsBarFormContentInput=Bt;exports.AttachmentsBarFormContentLabel=It;exports.AttachmentsBarFormSubmitButton=Tt;exports.AttachmentsBarFormTitle=wt;exports.AttachmentsBarFormTitleError=yt;exports.AttachmentsBarFormTitleInput=Mt;exports.AttachmentsBarFormTitleLabel=jt;exports.AttachmentsBarInfoTip=ct;exports.AttachmentsBarInfoTipArrow=ht;exports.AttachmentsBarInfoTipIcon=lt;exports.AttachmentsBarInfoTipText=bt;exports.AttachmentsBarInput=pt;exports.AttachmentsBarInputs=xt;exports.AttachmentsBarList=rt;exports.AttachmentsBarModal=Ct;exports.AttachmentsBarModalBody=At;exports.AttachmentsBarModalClose=kt;exports.AttachmentsBarModalContent=Et;exports.AttachmentsBarModalDescription=vt;exports.AttachmentsBarModalHeader=gt;exports.AttachmentsBarModalHeading=Ft;exports.AttachmentsBarModalHelp=ft;exports.AttachmentsBarModalOverlay=ut;exports.ChatAction=_t;exports.ChatActionFeedback=Rt;exports.ChatActionLabel=Qt;exports.Content=O;exports.ContentScrollArea=V;exports.ContentScrollAreaCorner=K;exports.ContentScrollAreaScrollbar=$;exports.ContentScrollAreaThumb=J;exports.ContentScrollAreaViewport=G;exports.ConversationLoading=W;exports.Disclaimer=U;exports.DisclaimerArrow=te;exports.DisclaimerContent=Z;exports.DisclaimerLabel=X;exports.DisclaimerText=ee;exports.DisclaimerTrigger=Y;exports.ExampleQuestion=se;exports.ExampleQuestionButton=oe;exports.ExampleQuestions=ae;exports.ExampleQuestionsLabel=de;exports.ExampleQuestionsList=re;exports.FeedbackForm=da;exports.FeedbackItem=ra;exports.FeedbackItemCheckbox=sa;exports.FeedbackItemCheckboxIndicator=oa;exports.FeedbackItemDescription=ia;exports.FeedbackItemLabel=ma;exports.FeedbackModal=Xt;exports.FeedbackModalBody=aa;exports.FeedbackModalClose=ta;exports.FeedbackModalContent=Zt;exports.FeedbackModalHeader=ea;exports.FeedbackModalOverlay=Yt;exports.FeedbackSubmitButton=na;exports.Footer=Xe;exports.Form=la;exports.FormCancel=Ga;exports.FormClose=ba;exports.FormContent=Ca;exports.FormDescription=pa;exports.FormError=Oa;exports.FormField=ua;exports.FormFieldCheckbox=ka;exports.FormFieldCheckboxIndicator=Aa;exports.FormFieldCombobox=Ta;exports.FormFieldComboboxContent=qa;exports.FormFieldComboboxControl=Ha;exports.FormFieldComboboxInput=La;exports.FormFieldComboboxItem=v;exports.FormFieldComboboxItemIndicator=k;exports.FormFieldComboboxItemList=_a;exports.FormFieldComboboxItemText=f;exports.FormFieldComboboxPositioner=Wa;exports.FormFieldComboboxSelectedTags=za;exports.FormFieldComboboxTrigger=Da;exports.FormFieldDescription=Ra;exports.FormFieldEmail=Fa;exports.FormFieldError=Qa;exports.FormFieldFile=va;exports.FormFieldLabel=Ea;exports.FormFieldSelect=Pa;exports.FormFieldSelectContent=ya;exports.FormFieldSelectIcon=Ma;exports.FormFieldSelectItem=Ia;exports.FormFieldSelectItemIndicator=Sa;exports.FormFieldSelectItemText=Ba;exports.FormFieldSelectTrigger=wa;exports.FormFieldSelectValue=ja;exports.FormFieldSelectViewport=Na;exports.FormFieldText=ga;exports.FormFieldTextArea=fa;exports.FormFooter=Va;exports.FormHeader=ha;exports.FormHeading=xa;exports.FormSubmit=$a;exports.FormSuccess=Ja;exports.FormSuccessButton=Xa;exports.FormSuccessHeading=Ka;exports.FormSuccessMessage=Ua;exports.FormWrapper=ca;exports.Header=z;exports.HeaderToolbar=_;exports.HeaderToolbarWrapper=Q;exports.HelpAction=Vt;exports.HelpActions=Ot;exports.HelpActionsMenu=$t;exports.HelpActionsMenuArrow=Jt;exports.HelpActionsMenuItem=Kt;exports.HelpActionsMenuItemIcon=Ut;exports.HelpActionsTrigger=Gt;exports.Input=et;exports.InputFieldset=Ye;exports.InputGroup=Ze;exports.IntroMessageWrapper=he;exports.Message=Te;exports.MessageAction=We;exports.MessageAttachments=ke;exports.MessageAttachmentsItem=Pe;exports.MessageAttachmentsItemIcon=we;exports.MessageAttachmentsItemTitle=je;exports.MessageAttachmentsList=Ae;exports.MessageAttachmentsPreview=Me;exports.MessageAttachmentsPreviewBody=Se;exports.MessageAttachmentsPreviewClose=Be;exports.MessageAttachmentsPreviewContent=Ne;exports.MessageAttachmentsPreviewHeader=Ie;exports.MessageAttachmentsPreviewOverlay=ye;exports.MessageAvatar=Ce;exports.MessageAvatarContent=ue;exports.MessageAvatarFallback=Ee;exports.MessageAvatarImage=ge;exports.MessageContent=fe;exports.MessageContentWrapper=ve;exports.MessageHeader=xe;exports.MessageLoading=pe;exports.MessageName=Fe;exports.MessageSourceItem=Qe;exports.MessageSourceItemBreadcrumbIcon=Oe;exports.MessageSourceItemBreadcrumbs=Re;exports.MessageSourceItemDescription=Je;exports.MessageSourceItemDescriptionPart=Ke;exports.MessageSourceItemIcon=Ve;exports.MessageSourceItemIndicator=Ue;exports.MessageSourceItemTag=$e;exports.MessageSourceItemTitle=Ge;exports.MessageSources=qe;exports.MessageSourcesHeader=ze;exports.MessageSourcesList=_e;exports.MessageToolAction=De;exports.MessageToolActions=Le;exports.MessageToolbar=He;exports.MessageWrapper=be;exports.Messages=le;exports.Provider=L;exports.Root=q;exports.SendButton=tt;exports.SendButtonIcon=at;exports.TaglineBrandName=zt;exports.TaglineContainer=Dt;exports.TaglineLogo=qt;exports.TaglineText=Wt;exports.ToolbarHeader=R;exports.Workflow=ce;exports.Workflows=me;exports.WorkflowsLabel=ie;exports.WorkflowsList=ne;exports.Wrapper=D;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { jsx as s, Fragment as M, jsxs as N } from "react/jsx-runtime";
3
- import { EmbeddedChatPrimitive as a, composeRefs as y, useResizeObserver as I, useComboboxItems as B } from "@inkeep/cxkit-primitives";
2
+ import { jsx as s, Fragment as M, jsxs as y } from "react/jsx-runtime";
3
+ import { EmbeddedChatPrimitive as a, composeRefs as N, useResizeObserver as I, useComboboxItems as B } from "@inkeep/cxkit-primitives";
4
4
  import { aiChatPageWrapper as v } from "../ui/recipes/ai-chat-page-wrapper.js";
5
5
  import { attachment as c } from "../ui/recipes/attachment.js";
6
6
  import { button as d } from "../ui/recipes/button.js";
@@ -179,7 +179,7 @@ const ce = a.Provider, ie = u(
179
179
  className: o("text-gray-700 dark:text-gray-dark-100", e),
180
180
  ...t
181
181
  }
182
- ), Ne = ({
182
+ ), ye = ({
183
183
  className: e,
184
184
  ...t
185
185
  }) => /* @__PURE__ */ s(
@@ -192,7 +192,7 @@ const ce = a.Provider, ie = u(
192
192
  ),
193
193
  ...t
194
194
  }
195
- ), ye = ({
195
+ ), Ne = ({
196
196
  className: e,
197
197
  ...t
198
198
  }) => /* @__PURE__ */ s(
@@ -247,7 +247,7 @@ const ce = a.Provider, ie = u(
247
247
  ...t
248
248
  }
249
249
  ), He = u(({ className: e, style: t, ...n }, C) => {
250
- const b = D(null), A = y(C, b), { width: k = 0, height: E = 0 } = I({
250
+ const b = D(null), A = N(C, b), { width: k = 0, height: E = 0 } = I({
251
251
  ref: b,
252
252
  box: "border-box"
253
253
  }), w = Math.max(E, k);
@@ -776,7 +776,7 @@ const ce = a.Provider, ie = u(
776
776
  ),
777
777
  ...t
778
778
  }
779
- ), Nt = ({
779
+ ), yt = ({
780
780
  className: e,
781
781
  ...t
782
782
  }) => /* @__PURE__ */ s(
@@ -790,7 +790,7 @@ const ce = a.Provider, ie = u(
790
790
  ),
791
791
  ...t
792
792
  }
793
- ), yt = ({
793
+ ), Nt = ({
794
794
  className: e,
795
795
  ...t
796
796
  }) => /* @__PURE__ */ s(a.InputGroup, { className: o("flex", e), ...t }), It = u(({ className: e, ...t }, n) => /* @__PURE__ */ s(
@@ -1245,7 +1245,7 @@ const ce = a.Provider, ie = u(
1245
1245
  className: o("mr-2 text-inkeep-primary-medium", e),
1246
1246
  ...t
1247
1247
  }
1248
- ), Ma = a.FeedbackModal, Na = ({
1248
+ ), Ma = a.FeedbackModal, ya = ({
1249
1249
  className: e,
1250
1250
  ...t
1251
1251
  }) => /* @__PURE__ */ s(
@@ -1254,7 +1254,7 @@ const ce = a.Provider, ie = u(
1254
1254
  className: o(r({ slot: "overlay" }), e),
1255
1255
  ...t
1256
1256
  }
1257
- ), ya = ({
1257
+ ), Na = ({
1258
1258
  className: e,
1259
1259
  ...t
1260
1260
  }) => /* @__PURE__ */ s(
@@ -1431,8 +1431,8 @@ const ce = a.Provider, ie = u(
1431
1431
  a.FormField,
1432
1432
  {
1433
1433
  className: o(
1434
- "mb-8 flex flex-col gap-2 data-[hidden]:hidden",
1435
- "data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",
1434
+ "group mb-8 flex flex-col gap-2 data-[hidden]:hidden",
1435
+ "data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:flex-wrap data-[input-type=checkbox]:items-center",
1436
1436
  e
1437
1437
  ),
1438
1438
  ...t
@@ -1643,7 +1643,7 @@ const ce = a.Provider, ie = u(
1643
1643
  }
1644
1644
  ), xs = () => {
1645
1645
  const e = B();
1646
- return e.length === 0 ? /* @__PURE__ */ s("div", { className: "py-6 text-center text-sm text-gray-500 dark:text-gray-dark-400", children: "No results found" }) : /* @__PURE__ */ s(M, { children: e.map((t) => /* @__PURE__ */ N(_, { item: t, children: [
1646
+ return e.length === 0 ? /* @__PURE__ */ s("div", { className: "py-6 text-center text-sm text-gray-500 dark:text-gray-dark-400", children: "No results found" }) : /* @__PURE__ */ s(M, { children: e.map((t) => /* @__PURE__ */ y(_, { item: t, children: [
1647
1647
  /* @__PURE__ */ s(j, { children: t.label }),
1648
1648
  /* @__PURE__ */ s(Q, { item: t })
1649
1649
  ] }, t.value)) });
@@ -1653,19 +1653,36 @@ const ce = a.Provider, ie = u(
1653
1653
  }) => /* @__PURE__ */ s(
1654
1654
  a.FormFieldError,
1655
1655
  {
1656
- className: o("text-sm flex items-center text-red-500 dark:text-red-300", e),
1656
+ className: o(
1657
+ "text-sm flex items-center text-red-500 dark:text-red-300",
1658
+ "group-data-[input-type=checkbox]:w-full group-data-[input-type=checkbox]:basis-full",
1659
+ e
1660
+ ),
1657
1661
  ...t
1658
1662
  }
1659
1663
  ), us = ({
1660
1664
  className: e,
1661
1665
  ...t
1666
+ }) => /* @__PURE__ */ s(
1667
+ a.FormFieldDescription,
1668
+ {
1669
+ className: o(
1670
+ "text-sm text-gray-600 dark:text-white-alpha-600",
1671
+ "group-data-[input-type=checkbox]:w-full group-data-[input-type=checkbox]:basis-full",
1672
+ e
1673
+ ),
1674
+ ...t
1675
+ }
1676
+ ), Cs = ({
1677
+ className: e,
1678
+ ...t
1662
1679
  }) => /* @__PURE__ */ s(
1663
1680
  a.FormError,
1664
1681
  {
1665
1682
  className: o("text-red-500 dark:text-red-300", e),
1666
1683
  ...t
1667
1684
  }
1668
- ), Cs = ({
1685
+ ), Fs = ({
1669
1686
  className: e,
1670
1687
  ...t
1671
1688
  }) => /* @__PURE__ */ s(
@@ -1674,7 +1691,7 @@ const ce = a.Provider, ie = u(
1674
1691
  className: o("flex items-center justify-end gap-4 w-full", e),
1675
1692
  ...t
1676
1693
  }
1677
- ), Fs = ({
1694
+ ), fs = ({
1678
1695
  className: e,
1679
1696
  ...t
1680
1697
  }) => /* @__PURE__ */ s(
@@ -1683,7 +1700,7 @@ const ce = a.Provider, ie = u(
1683
1700
  className: o(d({ variant: "outline" }), e),
1684
1701
  ...t
1685
1702
  }
1686
- ), fs = ({
1703
+ ), As = ({
1687
1704
  className: e,
1688
1705
  ...t
1689
1706
  }) => /* @__PURE__ */ s(
@@ -1692,7 +1709,7 @@ const ce = a.Provider, ie = u(
1692
1709
  className: o(d({ preset: "primaryFilled" }), e),
1693
1710
  ...t
1694
1711
  }
1695
- ), As = ({
1712
+ ), ks = ({
1696
1713
  className: e,
1697
1714
  ...t
1698
1715
  }) => /* @__PURE__ */ s(
@@ -1705,7 +1722,7 @@ const ce = a.Provider, ie = u(
1705
1722
  ),
1706
1723
  ...t
1707
1724
  }
1708
- ), ks = ({
1725
+ ), Es = ({
1709
1726
  className: e,
1710
1727
  ...t
1711
1728
  }) => /* @__PURE__ */ s(
@@ -1718,7 +1735,7 @@ const ce = a.Provider, ie = u(
1718
1735
  ),
1719
1736
  ...t
1720
1737
  }
1721
- ), Es = a.FormSuccessMessage, ws = ({
1738
+ ), ws = a.FormSuccessMessage, Ms = ({
1722
1739
  className: e,
1723
1740
  ...t
1724
1741
  }) => /* @__PURE__ */ s(
@@ -1775,10 +1792,10 @@ export {
1775
1792
  he as ConversationLoading,
1776
1793
  we as Disclaimer,
1777
1794
  Be as DisclaimerArrow,
1778
- ye as DisclaimerContent,
1795
+ Ne as DisclaimerContent,
1779
1796
  Me as DisclaimerLabel,
1780
1797
  Ie as DisclaimerText,
1781
- Ne as DisclaimerTrigger,
1798
+ ye as DisclaimerTrigger,
1782
1799
  He as ExampleQuestion,
1783
1800
  Le as ExampleQuestionButton,
1784
1801
  ve as ExampleQuestions,
@@ -1793,17 +1810,17 @@ export {
1793
1810
  Ma as FeedbackModal,
1794
1811
  va as FeedbackModalBody,
1795
1812
  Ba as FeedbackModalClose,
1796
- ya as FeedbackModalContent,
1813
+ Na as FeedbackModalContent,
1797
1814
  Ia as FeedbackModalHeader,
1798
- Na as FeedbackModalOverlay,
1815
+ ya as FeedbackModalOverlay,
1799
1816
  Pa as FeedbackSubmitButton,
1800
1817
  Mt as Footer,
1801
1818
  _a as Form,
1802
- Fs as FormCancel,
1819
+ fs as FormCancel,
1803
1820
  ja as FormClose,
1804
1821
  Ra as FormContent,
1805
1822
  Va as FormDescription,
1806
- us as FormError,
1823
+ Cs as FormError,
1807
1824
  qa as FormField,
1808
1825
  Xa as FormFieldCheckbox,
1809
1826
  Ya as FormFieldCheckboxIndicator,
@@ -1818,6 +1835,7 @@ export {
1818
1835
  hs as FormFieldComboboxPositioner,
1819
1836
  ps as FormFieldComboboxSelectedTags,
1820
1837
  is as FormFieldComboboxTrigger,
1838
+ us as FormFieldDescription,
1821
1839
  Ja as FormFieldEmail,
1822
1840
  gs as FormFieldError,
1823
1841
  Ka as FormFieldFile,
@@ -1833,14 +1851,14 @@ export {
1833
1851
  os as FormFieldSelectViewport,
1834
1852
  $a as FormFieldText,
1835
1853
  Ua as FormFieldTextArea,
1836
- Cs as FormFooter,
1854
+ Fs as FormFooter,
1837
1855
  Qa as FormHeader,
1838
1856
  Oa as FormHeading,
1839
- fs as FormSubmit,
1840
- As as FormSuccess,
1841
- ws as FormSuccessButton,
1842
- ks as FormSuccessHeading,
1843
- Es as FormSuccessMessage,
1857
+ As as FormSubmit,
1858
+ ks as FormSuccess,
1859
+ Ms as FormSuccessButton,
1860
+ Es as FormSuccessHeading,
1861
+ ws as FormSuccessMessage,
1844
1862
  za as FormWrapper,
1845
1863
  pe as Header,
1846
1864
  xe as HeaderToolbar,
@@ -1853,8 +1871,8 @@ export {
1853
1871
  wa as HelpActionsMenuItemIcon,
1854
1872
  fa as HelpActionsTrigger,
1855
1873
  It as Input,
1856
- Nt as InputFieldset,
1857
- yt as InputGroup,
1874
+ yt as InputFieldset,
1875
+ Nt as InputGroup,
1858
1876
  Qe as IntroMessageWrapper,
1859
1877
  mt as Message,
1860
1878
  ht as MessageAction,
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("@inkeep/cxkit-primitives"),i=require("../utils.cjs"),m=require("../ui/recipes/button.cjs"),c=require("../ui/recipes/checkbox.cjs"),l=require("../ui/recipes/combobox.cjs"),s=require("../ui/recipes/input.cjs"),r=require("../ui/recipes/select.cjs"),x=require("merge-anything"),I=require("../ui/markdown-styles.cjs"),b=e=>o.jsx(n.IntelligentFormPrimitive.Provider,{...e}),u=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Root,{className:i.cn("max-w-full border divide-y","rounded-xl shadow h-full max-h-full","bg-white dark:bg-gray-dark-950","flex flex-col",e),...t}),S=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Heading,{className:i.cn("px-5 py-4 font-medium shrink-0",e),...t}),p=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Content,{className:i.cn("flex-1 overflow-hidden",e),...t}),C=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ContentScrollArea,{className:i.cn("h-full",e),...t}),v=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ContentScrollAreaViewport,{className:i.cn("h-full w-full rounded-[inherit] px-5","[&_[data-part=grid]]:px-1","[&_[data-part=grid]]:divide-y",e),...t}),P=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ContentScrollAreaScrollbar,{className:i.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),f=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ContentScrollAreaThumb,{className:i.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),j=n.IntelligentFormPrimitive.ContentScrollAreaCorner,N=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Success,{className:i.cn("flex flex-col items-center","justify-center mx-1 pt-12 pb-6",e),...t}),h=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SuccessIcon,{className:i.cn("w-6 h-6 text-green-500 mb-5",e),...t}),y=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SuccessHeading,{className:i.cn("text-xl font-semibold","mb-3 tracking-tight",e),...t}),w=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SuccessMessage,{className:i.cn("text-gray-800 dark:text-white-alpha-950",e),...t}),k=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.PrimaryForm,{className:i.cn("w-full flex flex-col py-6",e),...t}),T=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.PrimaryFormDescription,{className:i.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),A=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.PrimaryFormFields,{className:i.cn("w-full gap-8",e),...t}),B=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.PrimaryFormSubmit,{className:i.cn(m.button({preset:"neutralFilled",size:"sm"}),"ml-auto data-[loading]:cursor-wait","data-[submitted]:hidden",e),...t}),q=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormField,{className:i.cn("mb-8 flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",e),...t}),R=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldLabel,{className:i.cn("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",'dark:data-[required]:after:[content:"*"]',e),...t}),H=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldText,{className:i.cn(s.input({size:"sm",variant:"outline"}),e),...t}),L=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldEmail,{className:i.cn(s.input({size:"sm",variant:"outline"}),e),...t}),E=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldFile,{className:i.cn(s.input({size:"sm",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),V=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldTextArea,{className:i.cn(s.input({size:"sm",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),z=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldCheckbox,{className:i.cn(c.checkbox({slot:"root"}),e),...t}),_=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldCheckboxIndicator,{className:i.cn(c.checkbox({slot:"indicator"}),e),...t}),D=n.IntelligentFormPrimitive.FormFieldSelect,M=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectTrigger,{className:i.cn(r.select({slot:"trigger"}),"text-sm",e),...t}),O=n.IntelligentFormPrimitive.FormFieldSelectValue,G=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectIcon,{className:i.cn("h-4 w-4 opacity-45",e),...t}),J=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectContent,{className:i.cn(r.select({slot:"content"}),e),...t}),K=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectViewport,{className:i.cn(r.select({slot:"viewport"}),e),...t}),Q=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectItem,{className:i.cn(r.select({slot:"item"}),"text-sm",e),...t}),U=n.IntelligentFormPrimitive.FormFieldSelectItemText,W=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectItemIndicator,{className:i.cn(r.select({slot:"itemIndicator"}),e),...t}),X=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldCombobox,{className:i.cn("w-full",e),...t}),Y=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxControl,{className:i.cn(l.combobox({slot:"control"}),"text-sm",e),...t}),Z=e=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxInput,{className:i.cn(l.combobox({slot:"input"}),e.className),...e}),$=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxTrigger,{className:i.cn(l.combobox({slot:"trigger"}),"h-4 w-4 opacity-45",e),...t}),ee=e=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxPositioner,{...e}),te=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxContent,{className:i.cn(l.combobox({slot:"content"}),e),...t}),a=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxItem,{className:i.cn(l.combobox({slot:"item"}),"text-sm",e),...t}),F=e=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxItemText,{className:i.cn(l.combobox({slot:"itemText"}),e.className),...e}),oe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxSelectedTags,{className:i.cn(l.combobox({slot:"selectedTags"}),e),...t}),d=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxItemIndicator,{className:i.cn(l.combobox({slot:"itemIndicator"}),e),...t}),ne=()=>{const e=n.useComboboxItems();return e.length===0?o.jsx("div",{className:"py-6 text-center text-sm text-gray-500 dark:text-gray-dark-400",children:"No results found"}):o.jsx(o.Fragment,{children:e.map(t=>o.jsxs(a,{item:t,children:[o.jsx(F,{children:t.label}),o.jsx(d,{item:t})]},t.value))})},ie=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldError,{className:i.cn("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),le=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.BotHeading,{className:i.cn("flex items-center gap-2",e),...t}),re=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.BotHeadingIcon,{className:i.cn("border","bg-[linear-gradient(to_top,_var(--ikp-color-gray-100),_transparent)] dark:bg-[linear-gradient(to_top,_var(--ikp-color-gray-dark-600),_transparent)]","p-1 rounded-md","w-6 h-6 text-gray-600 dark:text-white-alpha-700",e),...t}),me=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.BotHeadingName,{className:i.cn("text-gray-800 dark:text-white-alpha-950 text-sm font-semibold",e),...t}),se=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Loading,{className:i.cn("py-6 flex flex-wrap","gap-x-3 gap-y-6","[&>:first-child]:basis-full text-sm",e),...t}),ce=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ConfidentResponse,{className:i.cn("w-full flex flex-col py-6 gap-6 min-w-0 text-sm",e),...t}),ae=({className:e,componentStyles:t,...g})=>o.jsx(n.IntelligentFormPrimitive.ConfidentAnswer,{className:i.cn("max-w-full ",e),componentStyles:x.merge(I.markdownStyles,t??{}),...g}),Fe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ConfidentResponseButton,{className:i.cn(m.button({preset:"neutralFilled",size:"sm"}),"ml-auto gap-2 data-[escalated]:hidden",e),...t}),de=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ConfidentResponseButtonIcon,{className:i.cn("",e),...t}),ge=n.IntelligentFormPrimitive.ConfidentResponseButtonLabel,xe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SecondaryForm,{className:i.cn("w-full flex flex-col py-6 gap-6",e),...t}),Ie=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SecondaryFormDescription,{className:i.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),be=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SecondaryFormFields,{className:i.cn("w-full gap-8",e),...t}),ue=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SecondaryFormSubmit,{className:i.cn(m.button({preset:"neutralFilled",size:"sm"}),"ml-auto data-[loading]:cursor-wait","data-[submitted]:hidden",e),...t}),Se=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Error,{className:i.cn("text-red-500 dark:text-red-300",e),...t}),pe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Sources,{className:i.cn("w-full flex flex-col gap-6",e),...t}),Ce=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SourcesCaption,{className:i.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),ve=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SourcesList,{className:i.cn("w-full flex flex-wrap gap-2 items-center",e),...t}),Pe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Source,{className:i.cn(m.button({size:"xs",variant:"outline"}),"text-gray-600 dark:text-white-alpha-700 gap-1",e),...t}),fe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SourceIcon,{className:i.cn("",e),...t}),je=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SourceTitle,{className:i.cn("line-clamp-1",e),...t});exports.BotHeading=le;exports.BotHeadingIcon=re;exports.BotHeadingName=me;exports.Checkbox=z;exports.CheckboxIndicator=_;exports.ConfidentAnswer=ae;exports.ConfidentResponse=ce;exports.ConfidentResponseButton=Fe;exports.ConfidentResponseButtonIcon=de;exports.ConfidentResponseButtonLabel=ge;exports.Content=p;exports.ContentScrollArea=C;exports.ContentScrollAreaCorner=j;exports.ContentScrollAreaScrollbar=P;exports.ContentScrollAreaThumb=f;exports.ContentScrollAreaViewport=v;exports.Email=L;exports.Error=Se;exports.Field=q;exports.FieldError=ie;exports.FieldLabel=R;exports.File=E;exports.FormFieldCombobox=X;exports.FormFieldComboboxContent=te;exports.FormFieldComboboxControl=Y;exports.FormFieldComboboxInput=Z;exports.FormFieldComboboxItem=a;exports.FormFieldComboboxItemIndicator=d;exports.FormFieldComboboxItemList=ne;exports.FormFieldComboboxItemText=F;exports.FormFieldComboboxPositioner=ee;exports.FormFieldComboboxSelectedTags=oe;exports.FormFieldComboboxTrigger=$;exports.Heading=S;exports.Loading=se;exports.PrimaryForm=k;exports.PrimaryFormDescription=T;exports.PrimaryFormFields=A;exports.PrimaryFormSubmit=B;exports.Provider=b;exports.Root=u;exports.SecondaryForm=xe;exports.SecondaryFormDescription=Ie;exports.SecondaryFormFields=be;exports.SecondaryFormSubmit=ue;exports.Select=D;exports.SelectContent=J;exports.SelectIcon=G;exports.SelectItem=Q;exports.SelectItemIndicator=W;exports.SelectItemText=U;exports.SelectTrigger=M;exports.SelectValue=O;exports.SelectViewport=K;exports.Source=Pe;exports.SourceIcon=fe;exports.SourceTitle=je;exports.Sources=pe;exports.SourcesCaption=Ce;exports.SourcesList=ve;exports.Success=N;exports.SuccessHeading=y;exports.SuccessIcon=h;exports.SuccessMessage=w;exports.Text=H;exports.TextArea=V;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("@inkeep/cxkit-primitives"),i=require("../utils.cjs"),m=require("../ui/recipes/button.cjs"),c=require("../ui/recipes/checkbox.cjs"),l=require("../ui/recipes/combobox.cjs"),s=require("../ui/recipes/input.cjs"),r=require("../ui/recipes/select.cjs"),x=require("merge-anything"),I=require("../ui/markdown-styles.cjs"),b=e=>o.jsx(n.IntelligentFormPrimitive.Provider,{...e}),u=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Root,{className:i.cn("max-w-full border divide-y","rounded-xl shadow h-full max-h-full","bg-white dark:bg-gray-dark-950","flex flex-col",e),...t}),p=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Heading,{className:i.cn("px-5 py-4 font-medium shrink-0",e),...t}),S=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Content,{className:i.cn("flex-1 overflow-hidden",e),...t}),C=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ContentScrollArea,{className:i.cn("h-full",e),...t}),v=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ContentScrollAreaViewport,{className:i.cn("h-full w-full rounded-[inherit] px-5","[&_[data-part=grid]]:px-1","[&_[data-part=grid]]:divide-y",e),...t}),P=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ContentScrollAreaScrollbar,{className:i.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),f=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ContentScrollAreaThumb,{className:i.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),j=n.IntelligentFormPrimitive.ContentScrollAreaCorner,N=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Success,{className:i.cn("flex flex-col items-center","justify-center mx-1 pt-12 pb-6",e),...t}),h=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SuccessIcon,{className:i.cn("w-6 h-6 text-green-500 mb-5",e),...t}),y=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SuccessHeading,{className:i.cn("text-xl font-semibold","mb-3 tracking-tight",e),...t}),w=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SuccessMessage,{className:i.cn("text-gray-800 dark:text-white-alpha-950",e),...t}),k=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.PrimaryForm,{className:i.cn("w-full flex flex-col py-6",e),...t}),T=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.PrimaryFormDescription,{className:i.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),A=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.PrimaryFormFields,{className:i.cn("w-full gap-8",e),...t}),B=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.PrimaryFormSubmit,{className:i.cn(m.button({preset:"neutralFilled",size:"sm"}),"ml-auto data-[loading]:cursor-wait","data-[submitted]:hidden",e),...t}),q=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormField,{className:i.cn("mb-8 flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",e),...t}),R=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldLabel,{className:i.cn("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",'dark:data-[required]:after:[content:"*"]',e),...t}),H=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldText,{className:i.cn(s.input({size:"sm",variant:"outline"}),e),...t}),L=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldEmail,{className:i.cn(s.input({size:"sm",variant:"outline"}),e),...t}),D=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldFile,{className:i.cn(s.input({size:"sm",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),E=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldTextArea,{className:i.cn(s.input({size:"sm",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),V=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldCheckbox,{className:i.cn(c.checkbox({slot:"root"}),e),...t}),z=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldCheckboxIndicator,{className:i.cn(c.checkbox({slot:"indicator"}),e),...t}),_=n.IntelligentFormPrimitive.FormFieldSelect,M=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectTrigger,{className:i.cn(r.select({slot:"trigger"}),"text-sm",e),...t}),O=n.IntelligentFormPrimitive.FormFieldSelectValue,G=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectIcon,{className:i.cn("h-4 w-4 opacity-45",e),...t}),J=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectContent,{className:i.cn(r.select({slot:"content"}),e),...t}),K=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectViewport,{className:i.cn(r.select({slot:"viewport"}),e),...t}),Q=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectItem,{className:i.cn(r.select({slot:"item"}),"text-sm",e),...t}),U=n.IntelligentFormPrimitive.FormFieldSelectItemText,W=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldSelectItemIndicator,{className:i.cn(r.select({slot:"itemIndicator"}),e),...t}),X=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldCombobox,{className:i.cn("w-full",e),...t}),Y=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxControl,{className:i.cn(l.combobox({slot:"control"}),"text-sm",e),...t}),Z=e=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxInput,{className:i.cn(l.combobox({slot:"input"}),e.className),...e}),$=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxTrigger,{className:i.cn(l.combobox({slot:"trigger"}),"h-4 w-4 opacity-45",e),...t}),ee=e=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxPositioner,{...e}),te=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxContent,{className:i.cn(l.combobox({slot:"content"}),e),...t}),a=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxItem,{className:i.cn(l.combobox({slot:"item"}),"text-sm",e),...t}),F=e=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxItemText,{className:i.cn(l.combobox({slot:"itemText"}),e.className),...e}),oe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxSelectedTags,{className:i.cn(l.combobox({slot:"selectedTags"}),e),...t}),d=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldComboboxItemIndicator,{className:i.cn(l.combobox({slot:"itemIndicator"}),e),...t}),ne=()=>{const e=n.useComboboxItems();return e.length===0?o.jsx("div",{className:"py-6 text-center text-sm text-gray-500 dark:text-gray-dark-400",children:"No results found"}):o.jsx(o.Fragment,{children:e.map(t=>o.jsxs(a,{item:t,children:[o.jsx(F,{children:t.label}),o.jsx(d,{item:t})]},t.value))})},ie=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldDescription,{className:i.cn("text-sm text-gray-600 dark:text-white-alpha-600",e),...t}),le=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.FormFieldError,{className:i.cn("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),re=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.BotHeading,{className:i.cn("flex items-center gap-2",e),...t}),me=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.BotHeadingIcon,{className:i.cn("border","bg-[linear-gradient(to_top,_var(--ikp-color-gray-100),_transparent)] dark:bg-[linear-gradient(to_top,_var(--ikp-color-gray-dark-600),_transparent)]","p-1 rounded-md","w-6 h-6 text-gray-600 dark:text-white-alpha-700",e),...t}),se=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.BotHeadingName,{className:i.cn("text-gray-800 dark:text-white-alpha-950 text-sm font-semibold",e),...t}),ce=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Loading,{className:i.cn("py-6 flex flex-wrap","gap-x-3 gap-y-6","[&>:first-child]:basis-full text-sm",e),...t}),ae=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ConfidentResponse,{className:i.cn("w-full flex flex-col py-6 gap-6 min-w-0 text-sm",e),...t}),Fe=({className:e,componentStyles:t,...g})=>o.jsx(n.IntelligentFormPrimitive.ConfidentAnswer,{className:i.cn("max-w-full ",e),componentStyles:x.merge(I.markdownStyles,t??{}),...g}),de=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ConfidentResponseButton,{className:i.cn(m.button({preset:"neutralFilled",size:"sm"}),"ml-auto gap-2 data-[escalated]:hidden",e),...t}),ge=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.ConfidentResponseButtonIcon,{className:i.cn("",e),...t}),xe=n.IntelligentFormPrimitive.ConfidentResponseButtonLabel,Ie=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SecondaryForm,{className:i.cn("w-full flex flex-col py-6 gap-6",e),...t}),be=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SecondaryFormDescription,{className:i.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),ue=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SecondaryFormFields,{className:i.cn("w-full gap-8",e),...t}),pe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SecondaryFormSubmit,{className:i.cn(m.button({preset:"neutralFilled",size:"sm"}),"ml-auto data-[loading]:cursor-wait","data-[submitted]:hidden",e),...t}),Se=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Error,{className:i.cn("text-red-500 dark:text-red-300",e),...t}),Ce=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Sources,{className:i.cn("w-full flex flex-col gap-6",e),...t}),ve=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SourcesCaption,{className:i.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),Pe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SourcesList,{className:i.cn("w-full flex flex-wrap gap-2 items-center",e),...t}),fe=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.Source,{className:i.cn(m.button({size:"xs",variant:"outline"}),"text-gray-600 dark:text-white-alpha-700 gap-1",e),...t}),je=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SourceIcon,{className:i.cn("",e),...t}),Ne=({className:e,...t})=>o.jsx(n.IntelligentFormPrimitive.SourceTitle,{className:i.cn("line-clamp-1",e),...t});exports.BotHeading=re;exports.BotHeadingIcon=me;exports.BotHeadingName=se;exports.Checkbox=V;exports.CheckboxIndicator=z;exports.ConfidentAnswer=Fe;exports.ConfidentResponse=ae;exports.ConfidentResponseButton=de;exports.ConfidentResponseButtonIcon=ge;exports.ConfidentResponseButtonLabel=xe;exports.Content=S;exports.ContentScrollArea=C;exports.ContentScrollAreaCorner=j;exports.ContentScrollAreaScrollbar=P;exports.ContentScrollAreaThumb=f;exports.ContentScrollAreaViewport=v;exports.Email=L;exports.Error=Se;exports.Field=q;exports.FieldDescription=ie;exports.FieldError=le;exports.FieldLabel=R;exports.File=D;exports.FormFieldCombobox=X;exports.FormFieldComboboxContent=te;exports.FormFieldComboboxControl=Y;exports.FormFieldComboboxInput=Z;exports.FormFieldComboboxItem=a;exports.FormFieldComboboxItemIndicator=d;exports.FormFieldComboboxItemList=ne;exports.FormFieldComboboxItemText=F;exports.FormFieldComboboxPositioner=ee;exports.FormFieldComboboxSelectedTags=oe;exports.FormFieldComboboxTrigger=$;exports.Heading=p;exports.Loading=ce;exports.PrimaryForm=k;exports.PrimaryFormDescription=T;exports.PrimaryFormFields=A;exports.PrimaryFormSubmit=B;exports.Provider=b;exports.Root=u;exports.SecondaryForm=Ie;exports.SecondaryFormDescription=be;exports.SecondaryFormFields=ue;exports.SecondaryFormSubmit=pe;exports.Select=_;exports.SelectContent=J;exports.SelectIcon=G;exports.SelectItem=Q;exports.SelectItemIndicator=W;exports.SelectItemText=U;exports.SelectTrigger=M;exports.SelectValue=O;exports.SelectViewport=K;exports.Source=fe;exports.SourceIcon=je;exports.SourceTitle=Ne;exports.Sources=Ce;exports.SourcesCaption=ve;exports.SourcesList=Pe;exports.Success=N;exports.SuccessHeading=y;exports.SuccessIcon=h;exports.SuccessMessage=w;exports.Text=H;exports.TextArea=E;
@@ -60,7 +60,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
60
60
  ),
61
61
  ...t
62
62
  }
63
- ), E = ({
63
+ ), D = ({
64
64
  className: e,
65
65
  ...t
66
66
  }) => /* @__PURE__ */ l(
@@ -74,7 +74,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
74
74
  ),
75
75
  ...t
76
76
  }
77
- ), V = ({
77
+ ), E = ({
78
78
  className: e,
79
79
  ...t
80
80
  }) => /* @__PURE__ */ l(
@@ -83,7 +83,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
83
83
  className: n("relative flex-1 rounded-full", "bg-gray-300 dark:bg-white-alpha-200", e),
84
84
  ...t
85
85
  }
86
- ), z = o.ContentScrollAreaCorner, _ = ({
86
+ ), V = o.ContentScrollAreaCorner, z = ({
87
87
  className: e,
88
88
  ...t
89
89
  }) => /* @__PURE__ */ l(
@@ -92,7 +92,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
92
92
  className: n("flex flex-col items-center", "justify-center mx-1 pt-12 pb-6", e),
93
93
  ...t
94
94
  }
95
- ), q = ({
95
+ ), _ = ({
96
96
  className: e,
97
97
  ...t
98
98
  }) => /* @__PURE__ */ l(
@@ -101,7 +101,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
101
101
  className: n("w-6 h-6 text-green-500 mb-5", e),
102
102
  ...t
103
103
  }
104
- ), D = ({
104
+ ), q = ({
105
105
  className: e,
106
106
  ...t
107
107
  }) => /* @__PURE__ */ l(
@@ -386,13 +386,16 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
386
386
  }, Ie = ({
387
387
  className: e,
388
388
  ...t
389
+ }) => /* @__PURE__ */ l(o.FormFieldDescription, { className: n("text-sm text-gray-600 dark:text-white-alpha-600", e), ...t }), pe = ({
390
+ className: e,
391
+ ...t
389
392
  }) => /* @__PURE__ */ l(
390
393
  o.FormFieldError,
391
394
  {
392
395
  className: n("text-sm flex items-center text-red-500 dark:text-red-300", e),
393
396
  ...t
394
397
  }
395
- ), pe = ({
398
+ ), Se = ({
396
399
  className: e,
397
400
  ...t
398
401
  }) => /* @__PURE__ */ l(
@@ -401,7 +404,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
401
404
  className: n("flex items-center gap-2", e),
402
405
  ...t
403
406
  }
404
- ), Se = ({
407
+ ), fe = ({
405
408
  className: e,
406
409
  ...t
407
410
  }) => /* @__PURE__ */ l(
@@ -416,7 +419,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
416
419
  ),
417
420
  ...t
418
421
  }
419
- ), fe = ({
422
+ ), Ce = ({
420
423
  className: e,
421
424
  ...t
422
425
  }) => /* @__PURE__ */ l(
@@ -425,7 +428,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
425
428
  className: n("text-gray-800 dark:text-white-alpha-950 text-sm font-semibold", e),
426
429
  ...t
427
430
  }
428
- ), Ce = ({
431
+ ), Ne = ({
429
432
  className: e,
430
433
  ...t
431
434
  }) => /* @__PURE__ */ l(
@@ -439,7 +442,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
439
442
  ),
440
443
  ...t
441
444
  }
442
- ), Ne = ({
445
+ ), he = ({
443
446
  className: e,
444
447
  ...t
445
448
  }) => /* @__PURE__ */ l(
@@ -448,7 +451,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
448
451
  className: n("w-full flex flex-col py-6 gap-6 min-w-0 text-sm", e),
449
452
  ...t
450
453
  }
451
- ), he = ({
454
+ ), ye = ({
452
455
  className: e,
453
456
  componentStyles: t,
454
457
  ...c
@@ -459,7 +462,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
459
462
  componentStyles: x(u, t ?? {}),
460
463
  ...c
461
464
  }
462
- ), ye = ({
465
+ ), we = ({
463
466
  className: e,
464
467
  ...t
465
468
  }) => /* @__PURE__ */ l(
@@ -472,10 +475,10 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
472
475
  ),
473
476
  ...t
474
477
  }
475
- ), we = ({
478
+ ), ke = ({
476
479
  className: e,
477
480
  ...t
478
- }) => /* @__PURE__ */ l(o.ConfidentResponseButtonIcon, { className: n("", e), ...t }), ke = o.ConfidentResponseButtonLabel, Te = ({
481
+ }) => /* @__PURE__ */ l(o.ConfidentResponseButtonIcon, { className: n("", e), ...t }), Te = o.ConfidentResponseButtonLabel, Ae = ({
479
482
  className: e,
480
483
  ...t
481
484
  }) => /* @__PURE__ */ l(
@@ -484,7 +487,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
484
487
  className: n("w-full flex flex-col py-6 gap-6", e),
485
488
  ...t
486
489
  }
487
- ), Ae = ({
490
+ ), ve = ({
488
491
  className: e,
489
492
  ...t
490
493
  }) => /* @__PURE__ */ l(
@@ -493,7 +496,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
493
496
  className: n("text-gray-700 dark:text-white-alpha-700 text-sm", e),
494
497
  ...t
495
498
  }
496
- ), ve = ({
499
+ ), Pe = ({
497
500
  className: e,
498
501
  ...t
499
502
  }) => /* @__PURE__ */ l(
@@ -502,7 +505,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
502
505
  className: n("w-full gap-8", e),
503
506
  ...t
504
507
  }
505
- ), Pe = ({
508
+ ), Be = ({
506
509
  className: e,
507
510
  ...t
508
511
  }) => /* @__PURE__ */ l(
@@ -516,7 +519,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
516
519
  ),
517
520
  ...t
518
521
  }
519
- ), Be = ({
522
+ ), He = ({
520
523
  className: e,
521
524
  ...t
522
525
  }) => /* @__PURE__ */ l(
@@ -525,7 +528,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
525
528
  className: n("text-red-500 dark:text-red-300", e),
526
529
  ...t
527
530
  }
528
- ), He = ({
531
+ ), Re = ({
529
532
  className: e,
530
533
  ...t
531
534
  }) => /* @__PURE__ */ l(
@@ -534,7 +537,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
534
537
  className: n("w-full flex flex-col gap-6", e),
535
538
  ...t
536
539
  }
537
- ), Re = ({
540
+ ), Le = ({
538
541
  className: e,
539
542
  ...t
540
543
  }) => /* @__PURE__ */ l(
@@ -543,7 +546,7 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
543
546
  className: n("text-gray-700 dark:text-white-alpha-700 text-sm", e),
544
547
  ...t
545
548
  }
546
- ), Le = ({
549
+ ), De = ({
547
550
  className: e,
548
551
  ...t
549
552
  }) => /* @__PURE__ */ l(
@@ -573,26 +576,27 @@ const v = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), P = ({
573
576
  ...t
574
577
  }) => /* @__PURE__ */ l(o.SourceTitle, { className: n("line-clamp-1", e), ...t });
575
578
  export {
576
- pe as BotHeading,
577
- Se as BotHeadingIcon,
578
- fe as BotHeadingName,
579
+ Se as BotHeading,
580
+ fe as BotHeadingIcon,
581
+ Ce as BotHeadingName,
579
582
  Z as Checkbox,
580
583
  $ as CheckboxIndicator,
581
- he as ConfidentAnswer,
582
- Ne as ConfidentResponse,
583
- ye as ConfidentResponseButton,
584
- we as ConfidentResponseButtonIcon,
585
- ke as ConfidentResponseButtonLabel,
584
+ ye as ConfidentAnswer,
585
+ he as ConfidentResponse,
586
+ we as ConfidentResponseButton,
587
+ ke as ConfidentResponseButtonIcon,
588
+ Te as ConfidentResponseButtonLabel,
586
589
  H as Content,
587
590
  R as ContentScrollArea,
588
- z as ContentScrollAreaCorner,
589
- E as ContentScrollAreaScrollbar,
590
- V as ContentScrollAreaThumb,
591
+ V as ContentScrollAreaCorner,
592
+ D as ContentScrollAreaScrollbar,
593
+ E as ContentScrollAreaThumb,
591
594
  L as ContentScrollAreaViewport,
592
595
  W as Email,
593
- Be as Error,
596
+ He as Error,
594
597
  O as Field,
595
- Ie as FieldError,
598
+ Ie as FieldDescription,
599
+ pe as FieldError,
596
600
  Q as FieldLabel,
597
601
  X as File,
598
602
  me as FormFieldCombobox,
@@ -607,17 +611,17 @@ export {
607
611
  ue as FormFieldComboboxSelectedTags,
608
612
  Fe as FormFieldComboboxTrigger,
609
613
  B as Heading,
610
- Ce as Loading,
614
+ Ne as Loading,
611
615
  M as PrimaryForm,
612
616
  G as PrimaryFormDescription,
613
617
  J as PrimaryFormFields,
614
618
  K as PrimaryFormSubmit,
615
619
  v as Provider,
616
620
  P as Root,
617
- Te as SecondaryForm,
618
- Ae as SecondaryFormDescription,
619
- ve as SecondaryFormFields,
620
- Pe as SecondaryFormSubmit,
621
+ Ae as SecondaryForm,
622
+ ve as SecondaryFormDescription,
623
+ Pe as SecondaryFormFields,
624
+ Be as SecondaryFormSubmit,
621
625
  ee as Select,
622
626
  ne as SelectContent,
623
627
  le as SelectIcon,
@@ -630,12 +634,12 @@ export {
630
634
  Ee as Source,
631
635
  Ve as SourceIcon,
632
636
  ze as SourceTitle,
633
- He as Sources,
634
- Re as SourcesCaption,
635
- Le as SourcesList,
636
- _ as Success,
637
- D as SuccessHeading,
638
- q as SuccessIcon,
637
+ Re as Sources,
638
+ Le as SourcesCaption,
639
+ De as SourcesList,
640
+ z as Success,
641
+ q as SuccessHeading,
642
+ _ as SuccessIcon,
639
643
  j as SuccessMessage,
640
644
  U as Text,
641
645
  Y as TextArea
package/dist/index.d.cts CHANGED
@@ -232,6 +232,7 @@ export declare namespace EmbeddedChat {
232
232
  EmbeddedChatFormFieldComboboxSelectedTags as FormFieldComboboxSelectedTags,
233
233
  EmbeddedChatFormFieldComboboxItemIndicator as FormFieldComboboxItemIndicator,
234
234
  EmbeddedChatFormFieldError as FormFieldError,
235
+ EmbeddedChatFormFieldDescription as FormFieldDescription,
235
236
  EmbeddedChatFormError as FormError,
236
237
  EmbeddedChatFormFooter as FormFooter,
237
238
  EmbeddedChatFormCancel as FormCancel,
@@ -421,6 +422,8 @@ declare const EmbeddedChatFormFieldComboboxSelectedTags: ({ className, ...props
421
422
 
422
423
  declare const EmbeddedChatFormFieldComboboxTrigger: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormFieldComboboxTrigger>) => JSX.Element;
423
424
 
425
+ declare const EmbeddedChatFormFieldDescription: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormFieldDescription>) => JSX.Element;
426
+
424
427
  declare const EmbeddedChatFormFieldEmail: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormFieldEmail>) => JSX.Element;
425
428
 
426
429
  declare const EmbeddedChatFormFieldError: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormFieldError>) => JSX.Element;
@@ -844,6 +847,7 @@ export declare namespace IntelligentForm {
844
847
  IntelligentFormFieldComboboxItemText as FormFieldComboboxItemText,
845
848
  IntelligentFormFieldComboboxSelectedTags as FormFieldComboboxSelectedTags,
846
849
  IntelligentFormFieldComboboxItemIndicator as FormFieldComboboxItemIndicator,
850
+ IntelligentFormFieldDescription as FieldDescription,
847
851
  IntelligentFormFieldError as FieldError,
848
852
  IntelligentFormBotHeading as BotHeading,
849
853
  IntelligentFormBotHeadingIcon as BotHeadingIcon,
@@ -926,6 +930,8 @@ declare const IntelligentFormFieldComboboxSelectedTags: ({ className, ...props }
926
930
 
927
931
  declare const IntelligentFormFieldComboboxTrigger: ({ className, ...props }: React.ComponentPropsWithRef<typeof IntelligentFormPrimitive.FormFieldComboboxTrigger>) => JSX.Element;
928
932
 
933
+ declare const IntelligentFormFieldDescription: ({ className, ...props }: React.ComponentPropsWithRef<typeof IntelligentFormPrimitive.FormFieldDescription>) => JSX.Element;
934
+
929
935
  declare const IntelligentFormFieldEmail: ({ className, ...props }: React.ComponentPropsWithRef<typeof IntelligentFormPrimitive.FormFieldEmail>) => JSX.Element;
930
936
 
931
937
  declare const IntelligentFormFieldError: ({ className, ...props }: React.ComponentPropsWithRef<typeof IntelligentFormPrimitive.FormFieldError>) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -232,6 +232,7 @@ export declare namespace EmbeddedChat {
232
232
  EmbeddedChatFormFieldComboboxSelectedTags as FormFieldComboboxSelectedTags,
233
233
  EmbeddedChatFormFieldComboboxItemIndicator as FormFieldComboboxItemIndicator,
234
234
  EmbeddedChatFormFieldError as FormFieldError,
235
+ EmbeddedChatFormFieldDescription as FormFieldDescription,
235
236
  EmbeddedChatFormError as FormError,
236
237
  EmbeddedChatFormFooter as FormFooter,
237
238
  EmbeddedChatFormCancel as FormCancel,
@@ -421,6 +422,8 @@ declare const EmbeddedChatFormFieldComboboxSelectedTags: ({ className, ...props
421
422
 
422
423
  declare const EmbeddedChatFormFieldComboboxTrigger: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormFieldComboboxTrigger>) => JSX.Element;
423
424
 
425
+ declare const EmbeddedChatFormFieldDescription: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormFieldDescription>) => JSX.Element;
426
+
424
427
  declare const EmbeddedChatFormFieldEmail: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormFieldEmail>) => JSX.Element;
425
428
 
426
429
  declare const EmbeddedChatFormFieldError: ({ className, ...props }: React.ComponentPropsWithRef<typeof EmbeddedChatPrimitive.FormFieldError>) => JSX.Element;
@@ -844,6 +847,7 @@ export declare namespace IntelligentForm {
844
847
  IntelligentFormFieldComboboxItemText as FormFieldComboboxItemText,
845
848
  IntelligentFormFieldComboboxSelectedTags as FormFieldComboboxSelectedTags,
846
849
  IntelligentFormFieldComboboxItemIndicator as FormFieldComboboxItemIndicator,
850
+ IntelligentFormFieldDescription as FieldDescription,
847
851
  IntelligentFormFieldError as FieldError,
848
852
  IntelligentFormBotHeading as BotHeading,
849
853
  IntelligentFormBotHeadingIcon as BotHeadingIcon,
@@ -926,6 +930,8 @@ declare const IntelligentFormFieldComboboxSelectedTags: ({ className, ...props }
926
930
 
927
931
  declare const IntelligentFormFieldComboboxTrigger: ({ className, ...props }: React.ComponentPropsWithRef<typeof IntelligentFormPrimitive.FormFieldComboboxTrigger>) => JSX.Element;
928
932
 
933
+ declare const IntelligentFormFieldDescription: ({ className, ...props }: React.ComponentPropsWithRef<typeof IntelligentFormPrimitive.FormFieldDescription>) => JSX.Element;
934
+
929
935
  declare const IntelligentFormFieldEmail: ({ className, ...props }: React.ComponentPropsWithRef<typeof IntelligentFormPrimitive.FormFieldEmail>) => JSX.Element;
930
936
 
931
937
  declare const IntelligentFormFieldError: ({ className, ...props }: React.ComponentPropsWithRef<typeof IntelligentFormPrimitive.FormFieldError>) => JSX.Element;
@@ -2641,6 +2641,10 @@ img[data-part='icon'][data-type='custom'] {
2641
2641
  flex-direction: row;
2642
2642
  }
2643
2643
 
2644
+ .data-\\[input-type\\=checkbox\\]\\:flex-wrap[data-input-type="checkbox"] {
2645
+ flex-wrap: wrap;
2646
+ }
2647
+
2644
2648
  .data-\\[even\\]\\:items-start[data-even] {
2645
2649
  align-items: flex-start;
2646
2650
  }
@@ -2929,6 +2933,14 @@ img[data-part='icon'][data-type='custom'] {
2929
2933
  background-image: conic-gradient(transparent,var(--ikp-color-inkeep-expanded-primary-600),transparent 30%);
2930
2934
  }
2931
2935
 
2936
+ .group[data-input-type="checkbox"] .group-data-\\[input-type\\=checkbox\\]\\:w-full {
2937
+ width: 100%;
2938
+ }
2939
+
2940
+ .group[data-input-type="checkbox"] .group-data-\\[input-type\\=checkbox\\]\\:basis-full {
2941
+ flex-basis: 100%;
2942
+ }
2943
+
2932
2944
  :not(.dark) .light\\:text-gray-700 {
2933
2945
  color: var(--ikp-color-gray-700);
2934
2946
  }
@@ -2642,6 +2642,10 @@ img[data-part='icon'][data-type='custom'] {
2642
2642
  flex-direction: row;
2643
2643
  }
2644
2644
 
2645
+ .data-\\[input-type\\=checkbox\\]\\:flex-wrap[data-input-type="checkbox"] {
2646
+ flex-wrap: wrap;
2647
+ }
2648
+
2645
2649
  .data-\\[even\\]\\:items-start[data-even] {
2646
2650
  align-items: flex-start;
2647
2651
  }
@@ -2930,6 +2934,14 @@ img[data-part='icon'][data-type='custom'] {
2930
2934
  background-image: conic-gradient(transparent,var(--ikp-color-inkeep-expanded-primary-600),transparent 30%);
2931
2935
  }
2932
2936
 
2937
+ .group[data-input-type="checkbox"] .group-data-\\[input-type\\=checkbox\\]\\:w-full {
2938
+ width: 100%;
2939
+ }
2940
+
2941
+ .group[data-input-type="checkbox"] .group-data-\\[input-type\\=checkbox\\]\\:basis-full {
2942
+ flex-basis: 100%;
2943
+ }
2944
+
2933
2945
  :not(.dark) .light\\:text-gray-700 {
2934
2946
  color: var(--ikp-color-gray-700);
2935
2947
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-styled",
3
- "version": "0.5.115",
3
+ "version": "0.5.116",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -39,7 +39,7 @@
39
39
  "clsx": "2.1.1",
40
40
  "merge-anything": "5.1.7",
41
41
  "tailwind-merge": "2.6.0",
42
- "@inkeep/cxkit-primitives": "0.5.115"
42
+ "@inkeep/cxkit-primitives": "0.5.116"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@biomejs/biome": "1.9.4",
@@ -59,8 +59,8 @@
59
59
  "typescript": "5.7.3",
60
60
  "vite": "5.4.11",
61
61
  "vite-plugin-dts": "4.4.0",
62
- "@inkeep/cxkit-theme": "0.5.115",
63
- "@inkeep/cxkit-types": "0.5.115"
62
+ "@inkeep/cxkit-theme": "0.5.116",
63
+ "@inkeep/cxkit-types": "0.5.116"
64
64
  },
65
65
  "module": "dist/index.js",
66
66
  "types": "dist/index.d.ts",