@inkeep/agents-ui 0.0.0-dev-20260401193828 → 0.0.0-dev-20260402200940
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +78 -77
- package/dist/primitives/atoms/dialog.cjs +1 -1
- package/dist/primitives/atoms/dialog.js +110 -106
- package/dist/primitives/atoms/file-upload.cjs +1 -0
- package/dist/primitives/atoms/file-upload.d.ts +35 -0
- package/dist/primitives/atoms/file-upload.js +45 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/built-in-icons.d.ts +8 -1
- package/dist/primitives/atoms/icons/built-in-icons.js +86 -79
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -1
- package/dist/primitives/atoms/icons/collections/pi.d.ts +6 -0
- package/dist/primitives/atoms/icons/collections/pi.js +103 -13
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -1
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +9 -1
- package/dist/primitives/components/embedded-chat/file-upload-input.cjs +1 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.d.ts +68 -0
- package/dist/primitives/components/embedded-chat/file-upload-input.js +328 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.cjs +1 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.d.ts +15 -0
- package/dist/primitives/components/embedded-chat/image-preview-modal.js +71 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +6 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +282 -237
- package/dist/primitives/components/embedded-chat.cjs +5 -5
- package/dist/primitives/components/embedded-chat.d.ts +6 -5
- package/dist/primitives/components/embedded-chat.js +934 -907
- package/dist/primitives/components/embedded-search.d.ts +1 -1
- package/dist/primitives/hooks/index.cjs +1 -1
- package/dist/primitives/hooks/index.js +15 -14
- package/dist/primitives/hooks/use-input-notification.cjs +1 -0
- package/dist/primitives/hooks/use-input-notification.d.ts +9 -0
- package/dist/primitives/hooks/use-input-notification.js +18 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -1
- package/dist/primitives/hooks/use-scrolling-fades.d.ts +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.js +21 -5
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +69 -68
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/providers/image-preview-provider.cjs +1 -0
- package/dist/primitives/providers/image-preview-provider.d.ts +15 -0
- package/dist/primitives/providers/image-preview-provider.js +23 -0
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +54 -0
- package/dist/primitives/utils/component-ids.js +37 -10
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +305 -260
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +78 -77
- package/dist/styled/components/chat-history.cjs +1 -1
- package/dist/styled/components/chat-history.d.ts +1 -1
- package/dist/styled/components/chat-history.js +31 -29
- package/dist/styled/components/embedded-chat/file-upload-input.cjs +1 -0
- package/dist/styled/components/embedded-chat/file-upload-input.d.ts +20 -0
- package/dist/styled/components/embedded-chat/file-upload-input.js +300 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.cjs +1 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.d.ts +11 -0
- package/dist/styled/components/embedded-chat/image-preview-modal.js +77 -0
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +2 -0
- package/dist/styled/components/embedded-chat.js +479 -449
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.js +89 -88
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +77 -76
- package/dist/styled/inkeep.css.cjs +253 -7
- package/dist/styled/inkeep.css.js +253 -7
- package/dist/types/icons/built-in.d.ts +1 -1
- package/dist/types/icons/custom.d.ts +8 -0
- package/package.json +7 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),l=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),l=require("react"),Ta=require("react-dom/client"),re=require("react-textarea-autosize"),ya=require("@radix-ui/react-avatar"),Ha=require("@radix-ui/react-checkbox"),ja=require("@radix-ui/react-popover"),wa=require("@radix-ui/react-tooltip"),La=require("@radix-ui/react-scroll-area"),w=require("../atoms/select.cjs"),B=require("../atoms/combobox.cjs"),I=require("../atoms/dialog.cjs"),Da=require("../atoms/avatars/ai.cjs"),Ra=require("../atoms/avatars/user.cjs"),S=require("../atoms/icons/custom-icon.cjs"),L=require("../atoms/icons/built-in-icon-renderer.cjs"),Oa=require("../atoms/link.cjs"),Y=require("../atoms/markdown/index.cjs"),U=require("../providers/attachment-item-provider.cjs"),T=require("../providers/attachments-bar-provider.cjs"),q=require("../providers/source-item-provider.cjs"),g=require("../providers/config-provider.cjs"),oe=require("../providers/feedback-provider.cjs"),z=require("../providers/message-attachments-provider.cjs"),_=require("../providers/message-provider.cjs"),be=require("../atoms/icons/checkbox-icon.cjs"),ie=require("../hooks/use-copy-to-clipboard.cjs"),Z=require("../providers/feedback-item-provider.cjs"),u=require("../utils/misc.cjs"),a=require("./factory.cjs"),E=require("./embedded-chat/chat-provider.cjs"),qa=require("./tagline-logo-icon.cjs"),Na=require("../hooks/use-settle-action.cjs"),Wa=require("../hooks/use-container-size.cjs"),ne=require("./embedded-chat/use-chat-action.cjs"),ae=require("../providers/help-menu-provider.cjs"),k=require("../providers/chat-form-provider.cjs"),j=require("../providers/form-field-provider.cjs"),Va=require("react-hook-form"),Qa=require("../utils/highlight-emphasis.cjs"),Ua=require("./modal/modal-provider.cjs"),$a=require("../../color-mode/index.cjs"),se=require("../utils/compose-refs.cjs"),C=require("../utils/compose-event-handlers.cjs"),Ka=require("../hooks/use-simple-scroll.cjs"),za=require("../hooks/use-debounce.cjs"),de=require("../providers/hover-popover-provider.cjs"),Ga=require("./modal/widget-auto-focus.cjs"),me=require("../providers/base-events-provider.cjs"),Ya=require("../atoms/shadow/context.cjs"),Za=require("../utils/get-source-icon.cjs"),Ja=require("../providers/chat-history-provider.cjs"),P=require("./embedded-chat/file-upload-input.cjs"),V=require("./embedded-chat/image-preview-modal.cjs");function $(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const Xa=$(Ta),ce=$(ya),J=$(Ha),N=$(ja),W=$(wa),G=$(La),er="__intro__",tr=767,ir=a.ikp("div",{_id:"aiChatWrapper"}),pe=l.forwardRef(({chatHistoryLayout:t,isChatHistoryOpen:e,setChatHistoryOpen:i,isChatHistoryButtonVisible:o,children:n,...s},d)=>{l.useEffect(()=>{t==="stack"?i(!1):t==="sidepane"&&o&&i(!0)},[t,o,i]);const m=t==="stack"&&e;return r.jsx(ir,{ref:d,"data-chat-history-layout":t,"data-chat-history-open":u.dataAttr(e),"data-stack-history-open":u.dataAttr(m),...s,children:n})});pe.displayName="EmbeddedChatWrapperInner";const ve=l.forwardRef((t,e)=>{const{children:i,...o}=t,{isHidden:n,isMobile:s}=E.useChat(),{aiChatSettings:d}=g.useInkeepConfig(),{isChatHistoryButtonVisible:m}=d,[c,h]=Wa.useContainerSize(),b=se.useComposedRefs(e,c),v=h?.width?h.width>580:!0,p=Ua.useModal(),F=(h?.width??0)>tr?"sidepane":"stack";return r.jsx(Ja.ChatHistoryProvider,{layout:F,children:({isOpen:M,setIsOpen:f})=>r.jsx(pe,{ref:b,chatHistoryLayout:F,isChatHistoryOpen:M,setChatHistoryOpen:f,isChatHistoryButtonVisible:!!m,"data-widget-md":u.dataAttr(v),"data-hidden":u.dataAttr(n),"data-in-modal":u.dataAttr(!!p),"data-mobile":u.dataAttr(s),...o,children:i})})}),ar=a.ikp("div",{_id:"aiChatRoot"}),ge=t=>{const{isHidden:e}=E.useChat(),{form:i}=k.useChatForm();return i?null:r.jsx(ar,{"data-hidden":u.dataAttr(e),...t})},rr=a.ikp("div",{_id:"aiChatHeader"}),Pe=a.ikp("div",{_id:"aiChatHeader__Toolbar"}),Fe=a.ikp("div",{_id:"aiChatHeader__ToolbarHeaderWrapper"}),or=a.ikp(S.CustomIcon,{_id:"aiChatHeader__ChatHistoryButtonIcon"}),Ee=l.memo(t=>r.jsx(or,{...t})),_e=a.ikp("button",{_id:"aiChatHeader__ChatHistoryButton"}),nr=a.ikp("div",{_id:"aiChatHeader__ToolbarHeader"}),Ae=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig(),i=`Ask ${e.aiAssistantName||"AI"}`;return r.jsx(nr,{...t,children:i})}),Ie=a.ikp("div",{_id:"aiChatContent"}),ke=a.ikp(G.Root,{_id:"aiChatContentScrollArea"}),sr=a.ikp(G.Viewport,{_id:"aiChatContentScrollArea__Viewport"}),Me=l.forwardRef(({children:t,...e},i)=>{const{messages:o,isStreaming:n}=E.useChat(),{containerRef:s,scrollToBottom:d,handleScroll:m}=Ka.useSimpleScroll({isStreaming:n}),c=se.useComposedRefs(i,s);return l.useEffect(()=>{o.length>0&&!n&&d()},[o.length,d,n]),r.jsx(sr,{ref:c,tabIndex:-1,onScroll:m,style:{outline:"none"},children:r.jsx("div",{"data-part":"grid",tabIndex:-1,style:{display:"grid",outline:"none"},children:t}),...e})}),fe=a.ikp(G.ScrollAreaScrollbar,{_id:"aiChatContentScrollArea__Scrollbar"}),xe=a.ikp(G.ScrollAreaThumb,{_id:"aiChatContentScrollArea__Thumb"}),Se=a.ikp(G.Corner,{_id:"aiChatContentScrollArea__Corner"}),dr=a.ikp("div",{_id:"aiChatMessages"}),Be=t=>{const e=E.useChat(),{children:i,...o}=t;return r.jsx(dr,{children:u.maybeRender(i,e),...o})},mr=a.ikp("div",{_id:"aiChatDisclaimer"}),Te=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig(),[i,o]=l.useState(!1),n=za.useDebounce(i,100);return e.disclaimerSettings?.isEnabled?r.jsx(de.HoverPopoverProvider,{open:i,setOpen:o,children:r.jsx(N.Root,{open:n,onOpenChange:o,children:r.jsx(mr,{...t})})}):null}),cr=a.ikp("span",{_id:"aiChatDisclaimerLabel"}),ye=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig(),i=e.disclaimerSettings;return r.jsx(cr,{children:i?.label,...t})}),lr=a.ikp(N.Trigger,{_id:"aiChatDisclaimerTrigger",children:r.jsx(S.CustomIcon,{iconKey:"info"})}),He=l.memo(t=>{const{setOpen:e}=de.useHoverPopover(),i=()=>e(!0),o=()=>e(!1);return r.jsx(lr,{onMouseEnter:i,onMouseLeave:o,...t})}),hr=a.ikp(N.Content,{_id:"aiChatDisclaimerContent"}),je=t=>{const{setOpen:e}=de.useHoverPopover(),i=()=>e(!0),o=()=>e(!1);return r.jsx(hr,{onMouseEnter:i,onMouseLeave:o,side:"top",sideOffset:8,align:"end",alignOffset:-10,...t})},ur=a.ikp(Y.Markdown,{_id:"aiChatDisclaimerText"}),we=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig(),i=e.aiAssistantName,n=e.disclaimerSettings?.tooltip||`Information provided by ${i||"this AI assistant"} is not guaranteed to be accurate or comprehensive.`;return r.jsx(ur,{shouldOpenLinksInNewTab:!0,children:n,...t})}),Le=a.ikp(N.Arrow,{_id:"aiChatDisclaimerArrow"}),Cr=a.ikp("div",{_id:"aiChatExampleQuestions"}),De=t=>{const{aiChatSettings:e}=g.useInkeepConfig(),{messages:i}=E.useChat();return!e.exampleQuestions?.length||i.length?null:r.jsx(Cr,{...t})},br=a.ikp("h3",{_id:"aiChatExampleQuestionsLabel"}),Re=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig();return r.jsx(br,{children:e.exampleQuestionsLabel,...t})}),pr=a.ikp("div",{_id:"aiChatExampleQuestionsList"}),Oe=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig(),i=e.exampleQuestions,{children:o,...n}=t;return r.jsx(pr,{children:u.maybeRender(o,i),...n})}),vr=a.ikp("div",{_id:"aiChatExampleQuestion"}),qe=l.forwardRef((t,e)=>{const{aiChatSettings:i}=g.useInkeepConfig(),o=i.isFirstExampleQuestionHighlighted;return r.jsx(vr,{ref:e,"data-highlight":u.dataAttr(o),...t})}),gr=a.ikp("button",{_id:"aiChatExampleQuestionButton"}),Ne=t=>{const{question:e,onClick:i,...o}=t,n=typeof e=="object"?e.value:e,s=typeof e=="object"?e.label:e,{handleSubmit:d}=E.useChat();return r.jsx(gr,{onClick:C.composeEventHandlers(i,()=>d(n)),children:s,...o})},Pr=a.ikp("div",{_id:"aiChatWorkflows"}),We=t=>{const{aiChatSettings:e}=g.useInkeepConfig(),{messages:i}=E.useChat();return!e.workflows?.length||i.length?null:r.jsx(Pr,{...t})},Fr=a.ikp("h3",{_id:"aiChatWorkflowsLabel"}),Ve=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig();return r.jsx(Fr,{children:e.workflowsHeader,...t})}),Er=a.ikp("div",{_id:"aiChatWorkflowsList"}),Qe=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig(),i=e.workflows,{children:o,...n}=t;return r.jsx(Er,{children:u.maybeRender(o,i),...n})}),_r=a.ikp("button",{_id:"aiChatWorkflow"}),Ue=t=>{const{workflow:e,onClick:i,...o}=t,n=s=>{};return r.jsx(_r,{onClick:C.composeEventHandlers(i,()=>n()),children:e.displayName,...o})},Ar=a.ikp("div",{_id:"aiChatMessageWrapper"}),le=t=>{const{message:e,...i}=t;return e.role==="system"?null:r.jsx(_.MessageProvider,{message:e,children:r.jsx(Ar,{"data-role":e.role,...i})})},$e=l.memo(t=>{const{message:e,...i}=t,{aiChatSettings:o,baseSettings:n}=g.useInkeepConfig(),s=o.aiAssistantName,d=s?`Hi, I'm ${s}!`:"Hi!",m=o.chatSubjectName??n.organizationDisplayName,c=m?`
|
|
2
2
|
|
|
3
|
-
Ask me anything about \`${
|
|
3
|
+
Ask me anything about \`${m}\`.`:`
|
|
4
4
|
|
|
5
|
-
How can I help?`,b={parts:[{type:"text",text:o.introMessage??`${d}${m}`}],id:Za,...e,role:"assistant"};return r.jsx(ce,{message:b,...i})}),Ar=a.ikp("div",{_id:"aiChatMessageHeader"}),$e=t=>{const{message:e}=_.useMessage();return r.jsx(Ar,{"data-role":e.role,...t})},kr=a.ikp("div",{_id:"aiChatMessageLoading",children:"Thinking..."}),Ue=t=>r.jsx(kr,{...t}),Ir=a.ikp("div",{_id:"aiChatMessageAvatar"}),Ke=t=>{const{message:e}=_.useMessage();return r.jsx(Ir,{"data-role":e.role,...t})},Mr=a.ikp(de.Root,{_id:"aiChatMessageAvatarContent"}),ze=t=>{const{message:e}=_.useMessage(),{baseSettings:i}=g.useInkeepConfig();return r.jsx(Mr,{"data-username":u.dataAttr(e.role==="user"&&!!i.userProperties.name),"data-role":e.role,...t})},fr=a.ikp(de.Fallback,{_id:"aiChatMessageAvatarFallback"}),Ge=l.memo(t=>{const{baseSettings:e}=g.useInkeepConfig(),{message:i}=_.useMessage();return e.userProperties.name?r.jsx(fr,{"data-role":i.role,children:u.getInitials(e.userProperties.name),...t}):null}),he=a.ikp(de.Image,{_id:"aiChatMessageAvatarImage"}),Ye=l.memo(t=>{const{onLoadingStatusChange:e,...i}=t,{aiChatSettings:o,baseSettings:{userProperties:n}}=g.useInkeepConfig(),{message:s}=_.useMessage(),{aiAssistantAvatar:d}=o??{},c=typeof d=="string"?d:d?.light,m=(typeof d=="string"?d:d?.dark)??c,h=$a.useColorModeValue(c,m),[b,v]=l.useState(h);l.useEffect(()=>{v(h)},[h]);const p=P=>{P==="error"&&v(null)};return s.role==="user"?n.name?null:o.userAvatar?r.jsx(he,{"data-type":"image",alt:"User avatar","data-role":s.role,src:o.userAvatar,...t}):r.jsx(Da.default,{"data-type":"icon","data-role":s.role,...t}):b?r.jsx(he,{src:b,alt:"AI assistant avatar","data-type":"image","data-role":s.role,onLoadingStatusChange:C.composeEventHandlers(e,p),...i}):r.jsx(La.default,{"data-type":"icon","data-role":s.role,...t})}),xr=a.ikp("span",{_id:"aiChatMessageName"}),Je=t=>{const{message:e}=_.useMessage(),{aiChatSettings:i}=g.useInkeepConfig(),{aiAssistantName:o}=i;return r.jsx(xr,{"data-role":e.role,children:e.role==="user"?"You":o||"AI assistant",...t})},Sr=a.ikp("div",{_id:"aiChatMessageContentWrapper"}),Xe=t=>{const{message:e}=_.useMessage();return r.jsx(Sr,{"data-role":e.role,...t})},Br=a.ikp("div",{_id:"aiChatMessageContent"}),Ze=t=>{const{message:e}=_.useMessage();return r.jsx(Br,{"data-role":e.role,...t})},Tr=a.ikp("div",{_id:"aiChatMessageAttachments"}),et=t=>{const{message:e}=_.useMessage(),i=[];return e.role!=="user"||!i?.length?null:r.jsx(U.MessageAttachmentsProvider,{children:r.jsx(Tr,{...t})})},yr=a.ikp("div",{_id:"aiChatMessageAttachments__List"}),tt=t=>{const{children:e,...i}=t,o=[];return o?r.jsx(yr,{children:u.maybeRender(e,o),...i}):null},Hr=a.ikp("div",{_id:"aiChatMessageAttachments__Item"}),it=t=>{const{attachment:e,onClick:i,...o}=t,{selectItem:n,onOpen:s}=U.useMessageAttachments(),d=()=>{n(e),s()};return r.jsx(V.AttachmentItemProvider,{attachment:e,children:r.jsx(Hr,{onClick:C.composeEventHandlers(i,d),...o})})},jr=a.ikp(w.BuiltInIconRenderer,{_id:"aiChatMessageAttachments__ItemIcon"}),at=t=>{const{attachment:e}=V.useAttachmentItem(),i=e.contentType?.attachmentIcon;return i?r.jsx(jr,{iconSettings:i,...t}):null},wr=a.ikp("span",{_id:"aiChatMessageAttachments__ItemTitle"}),rt=t=>{const{attachment:e}=V.useAttachmentItem();return r.jsx(wr,{children:e.title,...t})},Lr=a.ikp(A.Root,{_id:"aiChatMessageAttachmentsPreview"}),ot=t=>{const{onOpenChange:e,...i}=t,{selectItem:o,isOpen:n,onClose:s,selectedItem:d}=U.useMessageAttachments(),c=m=>{m||(s(),o(null))};return r.jsx(Lr,{open:n&&d!==null,onOpenChange:C.composeEventHandlers(e,c),...i})},nt=a.ikp(A.Overlay,{_id:"aiChatMessageAttachmentsPreview__Overlay"}),st=a.ikp(A.Content,{_id:"aiChatMessageAttachmentsPreview__Content","aria-describedby":void 0}),Dr=a.ikp(A.Title,{_id:"aiChatMessageAttachmentsPreview__Header"}),dt=t=>{const{selectedItem:e}=U.useMessageAttachments();return r.jsx(Dr,{children:e?.title||"Attachment",...t})},ct=a.ikp(A.Close,{_id:"aiChatMessageAttachmentsPreview__Close",children:r.jsx(x.CustomIcon,{iconKey:"close"})}),Rr=a.ikp("p",{_id:"aiChatMessageAttachmentsPreview__Body"}),mt=t=>{const{selectedItem:e}=U.useMessageAttachments();return r.jsx(Rr,{children:e?.content,...t})},lt=t=>{const{text:e,componentStyles:i,...o}=t,{aiChatSettings:n}=g.useInkeepConfig(),{shouldOpenLinksInNewTab:s}=n;return r.jsx(z.Markdown,{children:e,componentStyles:i,shouldOpenLinksInNewTab:s,...o})},ht=({name:t,props:e,componentDef:i})=>{const n=Ga.useShadow()?.shadowHost,s=l.useRef(void 0),d=l.useRef(null),c=l.useRef(null),m=l.useRef(!1),[h,b]=l.useState(!1),[v,p]=l.useState(!1),P=l.useRef(i);l.useMemo(()=>{i!==P.current&&(typeof i=="function"&&typeof P.current=="function"?i.toString()!==P.current.toString()&&(P.current=i):P.current=i)},[i]);const I=P.current,M=l.useRef(e);M.current=e;const f=l.useRef(null),L=l.useRef(I);L.current!==I&&(f.current=null,L.current=I),l.useEffect(()=>{s.current||(s.current=`dyn:${t}:${crypto.randomUUID()}`,b(!0))},[t]),l.useLayoutEffect(()=>{if(!I||!n||!h||!s.current)return;const D=s.current,E=document.createElement("div");return E.setAttribute("data-ikp-component",""),E.setAttribute("data-component",t),E.setAttribute("slot",D),d.current=E,m.current=!1,n.appendChild(E),p(!0),()=>{m.current=!0,p(!1),queueMicrotask(()=>{try{c.current&&(c.current.unmount(),c.current=null)}catch(N){console.debug("Ignoring unmount error:",N)}E.parentNode===n&&E.remove(),d.current=null})}},[I,n,h,t]);const $=D=>{const E=d.current;if(!E||m.current)return;const N=y=>{if(f.current!==null)return f.current;if(typeof y!="function"||y.length>1)return f.current=!1,!1;try{if(y.constructor===Function){const Z=y({});return f.current=l.isValidElement(Z),f.current}return f.current=!1,!1}catch{return f.current=!0,!0}};let T;const R=P.current;if(N(R))try{T=l.createElement(R,D||{})}catch(y){console.error("Error creating React element from component:",y);return}else if(typeof R=="function")T=R(D||{},E,null);else{console.error("Invalid component definition");return}if(l.isValidElement(T)||typeof T=="string"){if(m.current)return;c.current||(c.current=Xa.createRoot(E)),!m.current&&c.current&&c.current.render(T);return}c.current&&!m.current&&c.current.render(null)};return l.useEffect(()=>{$(M.current)},[I,v]),l.useEffect(()=>{!c.current||m.current||$(e)},[e]),r.jsx("slot",{name:s.current})},Or=a.ikp("div",{_id:"aiChatMessagePart"}),qr=a.ikp("div",{_id:"aiChatMessageToolbar"}),ut=t=>{const{isLoading:e,messages:i}=F.useChat(),{message:o}=_.useMessage();return i.at(-1)?.id===o?.id&&e||o.role==="user"?null:r.jsx(qr,{...t})},Wr=a.ikp("div",{_id:"aiChatMessageCustomActions"}),Ct=t=>{const{children:e,...i}=t,{aiChatSettings:o}=g.useInkeepConfig(),{message:n}=_.useMessage(),{isStreaming:s,messages:d}=F.useChat(),c=d.at(-1)?.id===n?.id,m=n.role==="assistant",h=o.messageActions||[];return c&&s||!m?null:r.jsx(Wr,{children:u.maybeRender(e,h),...i})},Nr=a.ikp("a",{_id:"aiChatMessageCustomAction"}),Vr=a.ikp("button",{_id:"aiChatMessageCustomAction"}),bt=t=>{const{onClick:e,action:i,...o}=t,{message:n}=_.useMessage(),{handleAction:s}=re.useChatAction(i,n.id),{logEvent:d}=se.useBaseEvents(),{conversationId:c}=F.useChat(),m=()=>{s(),d({eventName:"user_escalation_indicated",properties:{escalationType:"contact_us",conversationId:c}})},h=i.label,b=r.jsxs(r.Fragment,{children:[i.icon&&r.jsx(w.BuiltInIconRenderer,{iconSettings:i.icon}),h]});return i.action.type==="open_link"?r.jsx(Nr,{href:i.action.url,target:"_blank",rel:"noopener","data-type":i.action.type,onClick:C.composeEventHandlers(e,m),children:b,...o}):r.jsx(Vr,{"data-type":i.action.type,onClick:C.composeEventHandlers(e,m),children:b,...o})},Qr=a.ikp("button",{_id:"aiChatMessageAction"}),pt=t=>{const{action:e,onClick:i,className:o,...n}=t,{conversationId:s}=F.useChat(),{baseSettings:{onFeedback:d}}=g.useInkeepConfig(),{message:c}=_.useMessage(),{isStreaming:m,messages:h}=F.useChat(),[b,v]=ee.useCopyToClipboard(),{feedback:p,submitPositiveFeedback:P,setCurrentFeedback:I,currentFeedback:M}=ae.useMessageFeedback(),{logEvent:f}=se.useBaseEvents(),[L,$]=qa.useSettleAction(),D=h.at(-1)?.id===c?.id,E=c.role==="assistant";if(D&&m||!E)return null;const T={copy(){v(u.getMessageContent(c)),f({eventName:"assistant_message_copied",properties:{conversationId:s}})},upvote(){P(c.id).then(()=>{$()})},downvote(){I(c.id)}},R={copy:"Copy Message",upvote:"Upvote Message",downvote:"Downvote Message"},y={copy:r.jsx(x.CustomIcon,{iconKey:b?"messageCopied":"messageCopy"}),upvote:r.jsx(x.CustomIcon,{iconKey:L?"messageCopied":"thumbsUp"}),downvote:r.jsx(x.CustomIcon,{iconKey:"thumbsDown"})},Z={copy:{"data-copied":u.dataAttr(b)},upvote:{"data-upvoted":u.dataAttr(p[c.id]?.type==="positive")},downvote:{"data-downvoted":u.dataAttr(p[c.id]?.type==="negative"),"data-state":M===null?"closed":"open"}};return{copy:!1,upvote:!d,downvote:!d}[e]?null:r.jsx(Qr,{"data-action":e,...Z[e],children:y[e],"aria-label":R[e],className:`${o} ${e}`,onClick:C.composeEventHandlers(i,T[e]),...n})},$r=a.ikp("div",{_id:"aiChatMessageSources"}),vt=t=>{const{message:e}=_.useMessage();return e.role!=="assistant"||!e.parts.filter(o=>o.type==="data-artifact"&&o.data?.type?.toLowerCase()==="citation")?.length?null:r.jsx($r,{...t})},Ur=a.ikp("div",{_id:"aiChatMessageSources__Header"}),gt=t=>r.jsx(Ur,{children:"Sources",...t}),Kr=a.ikp("div",{_id:"aiChatMessageSources__List"}),Pt=t=>{const{message:e}=_.useMessage(),{children:i,...o}=t,{baseSettings:{transformSource:n,organizationDisplayName:s},aiChatSettings:{shouldOpenLinksInNewTab:d},searchSettings:{tabs:c}}=g.useInkeepConfig();if(e.role!=="assistant")return null;const m=e.parts.filter(v=>v.type==="data-artifact"&&v.data?.type?.toLowerCase()==="citation");if(!m?.length)return null;const h=new Map,b=m.filter(v=>{const p=v.data.artifactSummary.url;return!p||h.has(p)?!1:(h.set(p,!0),!0)}).map(v=>{const p=v.data,P={id:p?.artifactId,title:p?.artifactSummary?.title||p?.name,url:p?.artifactSummary?.url||"",description:"",breadcrumbs:[],type:p?.artifactSummary?.record_type,contentType:p?.artifactType,tag:p?.artifactType},M=(n??(L=>({...L,shouldOpenInNewTab:d,icon:Ya.getIcon(L)})))(P,"chatSourceItem",{organizationDisplayName:s,tabs:c}),f=M.shouldOpenInNewTab!==void 0?M.shouldOpenInNewTab:d;return{...M,isExternal:f}});return r.jsx(Kr,{children:u.maybeRender(i,b),...o})},zr=a.ikp(Ra.LinkWithQueryParams,{_id:"aiChatMessageSourceItem"}),Ft=t=>{const{source:e,onClick:i,...o}=t,{logEvent:n}=se.useBaseEvents(),{conversationId:s}=F.useChat(),d=()=>{n({eventName:"assistant_source_item_clicked",properties:{conversationId:s,link:e}})};return r.jsx(O.SourceItemProvider,{source:e,children:r.jsx(zr,{"data-type":e.type,appendToUrl:e.appendToUrl,isExternal:e.isExternal,"data-breadcrumbs":!!e.breadcrumbs?.length,onClick:C.composeEventHandlers(i,d),...o})})},Gr=a.ikp("div",{_id:"aiChatMessageSourceItem__Breadcrumbs"}),_t=t=>{const{source:e}=O.useSourceItem();return e.breadcrumbs?.length?r.jsx(Gr,{"data-type":e.type,...t}):null},Yr=a.ikp(x.CustomIcon,{_id:"aiChatMessageSourceItem__BreadcrumbIcon",iconKey:"breadcrumbSeparator"}),Jr=a.ikp(w.BuiltInIconRenderer,{_id:"aiChatMessageSourceItem__Icon"}),Et=t=>{const{source:e}=O.useSourceItem();return r.jsx(Jr,{iconSettings:e.icon,"data-type":e.type,...t})},Xr=a.ikp("span",{_id:"aiChatMessageSourceItem__Title"}),At=t=>{const{source:e}=O.useSourceItem();return r.jsx(Xr,{"data-type":e.type,children:e.title,...t})},Zr=a.ikp("span",{_id:"aiChatMessageSourceItem__Tag"}),kt=t=>{const{source:e}=O.useSourceItem();return r.jsx(Zr,{"data-type":e.type,...t})},eo=a.ikp("span",{_id:"aiChatMessageSourceItem__Description"}),It=t=>{const{source:e}=O.useSourceItem(),{children:i,...o}=t,n=l.useMemo(()=>e.description?Va.highlightEmphasis(e.description):[],[e.description]);return n.length?r.jsx(eo,{"data-type":e.type,children:u.maybeRender(i,n),...o}):null},to=a.ikp("span",{_id:"aiChatMessageSourceItem__DescriptionPart"}),Mt=t=>{const{part:e,...i}=t,{source:o}=O.useSourceItem();return typeof e=="string"?e:r.jsx(to,{"data-type":o.type,children:e.content,"data-highlighted":u.dataAttr(e.highlighted),...i})},io=a.ikp(x.CustomIcon,{_id:"aiChatMessageSourceItem__Indicator"}),ft=t=>{const{source:e}=O.useSourceItem();return r.jsx(io,{iconKey:e.isExternal?"openLinkInNewTab":"openLinkInSameTab",...t})},xt=a.ikp("div",{_id:"aiChatFooter"}),St=a.ikp("div",{_id:"aiChatInput__Fieldset"}),Bt=a.ikp("div",{_id:"aiChatInput__Group"}),ao=a.ikp("textarea",{_id:"aiChatInput"}),Tt=l.forwardRef(({onChange:t,onKeyDown:e,...i},o)=>{const{handleInputChange:n,handleInputKeyDown:s,input:d,error:c,shouldAutoFocusInput:m,inputRef:h}=F.useChat(),{aiChatSettings:b}=g.useInkeepConfig(),v=oe.useComposedRefs(o,h);return za.useWidgetAutoFocus("chat",h,m),r.jsx(ao,{asChild:!0,ref:v,maxLength:99999,placeholder:b.placeholder,value:d,onChange:C.composeEventHandlers(t,n),onKeyDown:C.composeEventHandlers(e,s),disabled:!!c||b.isViewOnly,...i,children:r.jsx(ie,{})})}),ro=a.ikp("button",{_id:"aiChatInput__SendButton"}),yt=t=>{const{handleSubmit:e,isSubmitDisabled:i,error:o}=F.useChat(),{aiChatSettings:n}=g.useInkeepConfig(),{onClick:s,...d}=t;return r.jsx(ro,{onClick:C.composeEventHandlers(s,()=>e()),"aria-label":"Send message",disabled:i||!!o||n.isViewOnly,...d})},Ht=a.ikp(x.CustomIcon,{_id:"aiChatInput__SendButtonIcon",iconKey:"chatSubmit"}),oo=a.ikp("div",{_id:"aiChatAttachmentsBar"}),jt=t=>{const e={supportedInputs:[]};return!e||!e.supportedInputs?.length?null:r.jsx(B.AttachmentsBarProvider,{children:r.jsx(oo,{...t})})},no=a.ikp("div",{_id:"aiChatAttachmentsBar__List"}),wt=t=>{const{children:e,...i}=t,o=[];return r.jsx(no,{children:u.maybeRender(e,o),...i})},so=a.ikp("div",{_id:"aiChatAttachmentsBar__Attachment"}),Lt=t=>{const{attachment:e,...i}=t;return r.jsx(V.AttachmentItemProvider,{attachment:e,children:r.jsx(so,{...i})})},co=a.ikp(w.BuiltInIconRenderer,{_id:"aiChatAttachmentsBar__AttachmentIcon"}),Dt=t=>{const{attachment:e}=V.useAttachmentItem(),i=e.contentType?.attachmentIcon;return i?r.jsx(co,{iconSettings:i,...t}):null},mo=a.ikp("span",{_id:"aiChatAttachmentsBar__AttachmentTitle"}),Rt=t=>{const{attachment:e}=V.useAttachmentItem();return r.jsx(mo,{children:e.title,...t})},lo=a.ikp("button",{_id:"aiChatAttachmentsBar__AttachmentDelete"}),Ot=t=>{const{onClick:e,...i}=t,o=()=>{};return r.jsx(lo,{"aria-label":"Remove attachment",children:r.jsx(x.CustomIcon,{iconKey:"close"}),onClick:C.composeEventHandlers(e,o),...i})},qt=a.ikp("div",{_id:"aiChatAttachmentsBar__Actions"}),Wt=a.ikp(W.Tooltip,{_id:"aiChatAttachmentsBar__InfoTip",delayDuration:0}),Nt=a.ikp(W.Trigger,{_id:"aiChatAttachmentsBar__InfoTipIcon",children:r.jsx(x.CustomIcon,{iconKey:"info"})}),me=a.ikp(W.Arrow,{_id:"aiChatAttachmentsBar__InfoTipArrow"}),Vt=a.ikp(W.Content,{_id:"aiChatAttachmentsBar__InfoTipText",side:"bottom",sideOffset:3,align:"center",children:r.jsxs(r.Fragment,{children:[r.jsx(me,{}),"Attachments will be kept in context for the entire conversation."]})}),ho=a.ikp("div",{_id:"aiChatAttachmentsBar__Inputs"}),Qt=t=>{const{children:e,...i}=t,o={supportedInputs:[]};return o?.supportedInputs?r.jsx(ho,{children:u.maybeRender(e,o.supportedInputs),...i}):null},uo=a.ikp("button",{_id:"aiChatAttachmentsBar__Input"}),$t=t=>{const{input:e,onClick:i,...o}=t,n={supportedInputs:[]},s=[],d=()=>{},{selectInput:c,onOpen:m}=B.useAttachmentsBar(),h=()=>{if(e.type==="FUNCTIONAL_MULTI_ATTACHMENT")return n?e.onInvoke(n,e,d,[...s]):void 0;c(e),m()};return r.jsx(uo,{children:e.displayName,onClick:C.composeEventHandlers(i,h),...o})},Co=a.ikp(A.Root,{_id:"aiChatAttachmentsBar__Modal"}),Ut=t=>{const{onOpenChange:e,...i}=t,{selectInput:o,isOpen:n,onClose:s,selectedInput:d}=B.useAttachmentsBar(),c=m=>{m||(s(),o(null))};return r.jsx(Co,{open:n&&d!==null,onOpenChange:C.composeEventHandlers(e,c),...i})},Kt=a.ikp(A.Overlay,{_id:"aiChatAttachmentsBar__ModalOverlay"}),zt=a.ikp(A.Content,{_id:"aiChatAttachmentsBar__ModalContent","aria-describedby":void 0}),Gt=a.ikp("div",{_id:"aiChatAttachmentsBar__ModalHeader"}),bo=a.ikp(A.Title,{_id:"aiChatAttachmentsBar__ModalHeading"}),Yt=t=>{const{selectedInput:e}=B.useAttachmentsBar(),i=`Add ${e?.displayName}`;return r.jsx(bo,{children:i,...t})},po=a.ikp("span",{_id:"aiChatAttachmentsBar__ModalDescription"}),Jt=t=>{const{selectedInput:e}=B.useAttachmentsBar(),i=e?.workflowModalProps?.modalHelpText;return i?r.jsx(po,{children:i,...t}):null},vo=a.ikp("div",{_id:"aiChatAttachmentsBar__ModalHelp"}),Xt=t=>{const{children:e,...i}=t,{selectedInput:o}=B.useAttachmentsBar(),n=o?.workflowModalProps?.modalHelpElement;return n?r.jsx(vo,{asChild:!e,children:e||n,...i}):null},Zt=a.ikp(A.Close,{_id:"aiChatAttachmentsBar__ModalClose",children:r.jsx(x.CustomIcon,{iconKey:"close"})}),ei=a.ikp("div",{_id:"aiChatAttachmentsBar__ModalBody"}),go=a.ikp("form",{_id:"aiChatAttachmentsBar__Form"}),ti=t=>{const{onSubmit:e,...i}=t,{form:o}=B.useAttachmentsBar();return r.jsx(go,{onSubmit:C.composeEventHandlers(e,o.onSubmit),...i})},ii=a.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),Po=a.ikp("label",{_id:"aiChatAttachmentsBar__FormTitleLabel"}),ai=t=>{const{form:e,selectedInput:i}=B.useAttachmentsBar();return r.jsx(Po,{htmlFor:`${i?.id}-title`,children:e.labels.title,...t})},Fo=a.ikp("input",{_id:"aiChatAttachmentsBar__FormTitleInput"}),ri=t=>{const{onChange:e,...i}=t,{form:o,selectedInput:n}=B.useAttachmentsBar();return r.jsx(Fo,{name:"title",value:o.data.title,id:`${n?.id}-title`,"data-invalid":u.dataAttr(!!o.errors.title),"aria-invalid":!!o.errors.title,onChange:C.composeEventHandlers(e,o.onChange),...i})},_o=a.ikp("span",{_id:"aiChatAttachmentsBar__FormTitleError"}),oi=t=>{const{form:e}=B.useAttachmentsBar();return e.errors.title?r.jsx(_o,{"aria-live":"polite",children:e.errors.title,...t}):null},ni=a.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),Eo=a.ikp("label",{_id:"aiChatAttachmentsBar__FormContentLabel"}),si=t=>{const{form:e,selectedInput:i}=B.useAttachmentsBar();return r.jsx(Eo,{htmlFor:`${i?.id}-content`,children:e.labels.content,...t})},Ao=a.ikp("textarea",{_id:"aiChatAttachmentsBar__FormTitleInput"}),di=t=>{const{onChange:e,...i}=t,{form:o,selectedInput:n}=B.useAttachmentsBar();return r.jsx(Ao,{asChild:!0,rows:4,name:"content",value:o.data.content,id:`${n?.id}-content`,"data-invalid":u.dataAttr(!!o.errors.content),"aria-invalid":!!o.errors.content,onChange:C.composeEventHandlers(e,o.onChange),...i,children:r.jsx(ie,{maxRows:10})})},ko=a.ikp("span",{_id:"aiChatAttachmentsBar__FormContentError"}),ci=t=>{const{form:e}=B.useAttachmentsBar();return e.errors.content?r.jsx(ko,{"aria-live":"polite",children:e.errors.content,...t}):null},mi=a.ikp("button",{_id:"aiChatAttachmentsBar__FormSubmitButton",children:"Upload",type:"submit"}),li=a.ikp("div",{_id:"aiChatActionBar"}),hi=a.ikp("div",{_id:"aiChat__ChatActions"}),ui=a.ikp("div",{_id:"aiChatTagline__Container"}),Ci=a.ikp("span",{_id:"aiChatTagline__Text",children:"Powered by"}),bi=a.ikp(Oa.default,{_id:"aiChatTagline__Logo"}),pi=a.ikp("a",{_id:"aiChatTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),Io=a.ikp(W.Trigger,{_id:"aiChat__ChatAction"}),J=t=>{const{action:e,onClick:i,className:o,...n}=t,s={},{clear:d,stop:c,isBusy:m,messages:h}=F.useChat(),{conversationId:b}=F.useChat(),{aiChatSettings:v}=g.useInkeepConfig(),[p,P]=ee.useCopyToClipboard(),[I]=ee.useCopyToClipboard(),M=h.length>0;if({help:!1,copy:!M||!v.isCopyChatButtonVisible||m,share:!M||!v.isShareButtonVisible||!b||!!s||m,clear:!M||v.isViewOnly||m,stop:!m}[e])return null;const D={help:()=>{},copy:()=>{const N=h.map(T=>{const R=`**${T.role==="assistant"?"AI Assistant":"User"}**`,y=u.getMessageContent(T);return`${R}
|
|
5
|
+
How can I help?`,b={parts:[{type:"text",text:o.introMessage??`${d}${c}`}],id:er,...e,role:"assistant"};return r.jsx(le,{message:b,...i})}),Ir=a.ikp("div",{_id:"aiChatMessageHeader"}),Ke=t=>{const{message:e}=_.useMessage();return r.jsx(Ir,{"data-role":e.role,...t})},kr=a.ikp("div",{_id:"aiChatMessageLoading",children:"Thinking..."}),ze=t=>r.jsx(kr,{...t}),Mr=a.ikp("div",{_id:"aiChatMessageAvatar"}),Ge=t=>{const{message:e}=_.useMessage();return r.jsx(Mr,{"data-role":e.role,...t})},fr=a.ikp(ce.Root,{_id:"aiChatMessageAvatarContent"}),Ye=t=>{const{message:e}=_.useMessage(),{baseSettings:i}=g.useInkeepConfig();return r.jsx(fr,{"data-username":u.dataAttr(e.role==="user"&&!!i.userProperties.name),"data-role":e.role,...t})},xr=a.ikp(ce.Fallback,{_id:"aiChatMessageAvatarFallback"}),Ze=l.memo(t=>{const{baseSettings:e}=g.useInkeepConfig(),{message:i}=_.useMessage();return e.userProperties.name?r.jsx(xr,{"data-role":i.role,children:u.getInitials(e.userProperties.name),...t}):null}),Ce=a.ikp(ce.Image,{_id:"aiChatMessageAvatarImage"}),Je=l.memo(t=>{const{onLoadingStatusChange:e,...i}=t,{aiChatSettings:o,baseSettings:{userProperties:n}}=g.useInkeepConfig(),{message:s}=_.useMessage(),{aiAssistantAvatar:d}=o??{},m=typeof d=="string"?d:d?.light,c=(typeof d=="string"?d:d?.dark)??m,h=$a.useColorModeValue(m,c),[b,v]=l.useState(h);l.useEffect(()=>{v(h)},[h]);const p=F=>{F==="error"&&v(null)};return s.role==="user"?n.name?null:o.userAvatar?r.jsx(Ce,{"data-type":"image",alt:"User avatar","data-role":s.role,src:o.userAvatar,...t}):r.jsx(Ra.default,{"data-type":"icon","data-role":s.role,...t}):b?r.jsx(Ce,{src:b,alt:"AI assistant avatar","data-type":"image","data-role":s.role,onLoadingStatusChange:C.composeEventHandlers(e,p),...i}):r.jsx(Da.default,{"data-type":"icon","data-role":s.role,...t})}),Sr=a.ikp("span",{_id:"aiChatMessageName"}),Xe=t=>{const{message:e}=_.useMessage(),{aiChatSettings:i}=g.useInkeepConfig(),{aiAssistantName:o}=i;return r.jsx(Sr,{"data-role":e.role,children:e.role==="user"?"You":o||"AI assistant",...t})},Br=a.ikp("div",{_id:"aiChatMessageContentWrapper"}),et=t=>{const{message:e}=_.useMessage();return r.jsx(Br,{"data-role":e.role,...t})},Tr=a.ikp("div",{_id:"aiChatMessageContent"}),tt=t=>{const{message:e}=_.useMessage();return r.jsx(Tr,{"data-role":e.role,...t})},yr=a.ikp("div",{_id:"aiChatMessageAttachments"}),it=t=>{const{message:e}=_.useMessage(),i=[];return e.role!=="user"||!i?.length?null:r.jsx(z.MessageAttachmentsProvider,{children:r.jsx(yr,{...t})})},Hr=a.ikp("div",{_id:"aiChatMessageAttachments__List"}),at=t=>{const{children:e,...i}=t,o=[];return o?r.jsx(Hr,{children:u.maybeRender(e,o),...i}):null},jr=a.ikp("div",{_id:"aiChatMessageAttachments__Item"}),rt=t=>{const{attachment:e,onClick:i,...o}=t,{selectItem:n,onOpen:s}=z.useMessageAttachments(),d=()=>{n(e),s()};return r.jsx(U.AttachmentItemProvider,{attachment:e,children:r.jsx(jr,{onClick:C.composeEventHandlers(i,d),...o})})},wr=a.ikp(L.BuiltInIconRenderer,{_id:"aiChatMessageAttachments__ItemIcon"}),ot=t=>{const{attachment:e}=U.useAttachmentItem(),i=e.contentType?.attachmentIcon;return i?r.jsx(wr,{iconSettings:i,...t}):null},Lr=a.ikp("span",{_id:"aiChatMessageAttachments__ItemTitle"}),nt=t=>{const{attachment:e}=U.useAttachmentItem();return r.jsx(Lr,{children:e.title,...t})},Dr=a.ikp(I.Root,{_id:"aiChatMessageAttachmentsPreview"}),st=t=>{const{onOpenChange:e,...i}=t,{selectItem:o,isOpen:n,onClose:s,selectedItem:d}=z.useMessageAttachments(),m=c=>{c||(s(),o(null))};return r.jsx(Dr,{open:n&&d!==null,onOpenChange:C.composeEventHandlers(e,m),...i})},dt=a.ikp(I.Overlay,{_id:"aiChatMessageAttachmentsPreview__Overlay"}),mt=a.ikp(I.Content,{_id:"aiChatMessageAttachmentsPreview__Content","aria-describedby":void 0}),Rr=a.ikp(I.Title,{_id:"aiChatMessageAttachmentsPreview__Header"}),ct=t=>{const{selectedItem:e}=z.useMessageAttachments();return r.jsx(Rr,{children:e?.title||"Attachment",...t})},lt=a.ikp(I.Close,{_id:"aiChatMessageAttachmentsPreview__Close",children:r.jsx(S.CustomIcon,{iconKey:"close"})}),Or=a.ikp("p",{_id:"aiChatMessageAttachmentsPreview__Body"}),ht=t=>{const{selectedItem:e}=z.useMessageAttachments();return r.jsx(Or,{children:e?.content,...t})},ut=t=>{const{text:e,componentStyles:i,...o}=t,{aiChatSettings:n}=g.useInkeepConfig(),{shouldOpenLinksInNewTab:s}=n;return r.jsx(Y.Markdown,{children:e,componentStyles:i,shouldOpenLinksInNewTab:s,...o})},Ct=({name:t,props:e,componentDef:i})=>{const n=Ya.useShadow()?.shadowHost,s=l.useRef(void 0),d=l.useRef(null),m=l.useRef(null),c=l.useRef(!1),[h,b]=l.useState(!1),[v,p]=l.useState(!1),F=l.useRef(i);l.useMemo(()=>{i!==F.current&&(typeof i=="function"&&typeof F.current=="function"?i.toString()!==F.current.toString()&&(F.current=i):F.current=i)},[i]);const M=F.current,f=l.useRef(e);f.current=e;const x=l.useRef(null),D=l.useRef(M);D.current!==M&&(x.current=null,D.current=M),l.useEffect(()=>{s.current||(s.current=`dyn:${t}:${crypto.randomUUID()}`,b(!0))},[t]),l.useLayoutEffect(()=>{if(!M||!n||!h||!s.current)return;const R=s.current,A=document.createElement("div");return A.setAttribute("data-ikp-component",""),A.setAttribute("data-component",t),A.setAttribute("slot",R),d.current=A,c.current=!1,n.appendChild(A),p(!0),()=>{c.current=!0,p(!1),queueMicrotask(()=>{try{m.current&&(m.current.unmount(),m.current=null)}catch(Q){console.debug("Ignoring unmount error:",Q)}A.parentNode===n&&A.remove(),d.current=null})}},[M,n,h,t]);const K=R=>{const A=d.current;if(!A||c.current)return;const Q=H=>{if(x.current!==null)return x.current;if(typeof H!="function"||H.length>1)return x.current=!1,!1;try{if(H.constructor===Function){const te=H({});return x.current=l.isValidElement(te),x.current}return x.current=!1,!1}catch{return x.current=!0,!0}};let y;const O=F.current;if(Q(O))try{y=l.createElement(O,R||{})}catch(H){console.error("Error creating React element from component:",H);return}else if(typeof O=="function")y=O(R||{},A,null);else{console.error("Invalid component definition");return}if(l.isValidElement(y)||typeof y=="string"){if(c.current)return;m.current||(m.current=Xa.createRoot(A)),!c.current&&m.current&&m.current.render(y);return}m.current&&!c.current&&m.current.render(null)};return l.useEffect(()=>{K(f.current)},[M,v]),l.useEffect(()=>{!m.current||c.current||K(e)},[e]),r.jsx("slot",{name:s.current})},qr=a.ikp("div",{_id:"aiChatMessagePart"}),Nr=a.ikp("div",{_id:"aiChatMessageToolbar"}),bt=t=>{const{isLoading:e,messages:i}=E.useChat(),{message:o}=_.useMessage();return i.at(-1)?.id===o?.id&&e||o.role==="user"?null:r.jsx(Nr,{...t})},Wr=a.ikp("div",{_id:"aiChatMessageCustomActions"}),pt=t=>{const{children:e,...i}=t,{aiChatSettings:o}=g.useInkeepConfig(),{message:n}=_.useMessage(),{isStreaming:s,messages:d}=E.useChat(),m=d.at(-1)?.id===n?.id,c=n.role==="assistant",h=o.messageActions||[];return m&&s||!c?null:r.jsx(Wr,{children:u.maybeRender(e,h),...i})},Vr=a.ikp("a",{_id:"aiChatMessageCustomAction"}),Qr=a.ikp("button",{_id:"aiChatMessageCustomAction"}),vt=t=>{const{onClick:e,action:i,...o}=t,{message:n}=_.useMessage(),{handleAction:s}=ne.useChatAction(i,n.id),{logEvent:d}=me.useBaseEvents(),{conversationId:m}=E.useChat(),c=()=>{s(),d({eventName:"user_escalation_indicated",properties:{escalationType:"contact_us",conversationId:m}})},h=i.label,b=r.jsxs(r.Fragment,{children:[i.icon&&r.jsx(L.BuiltInIconRenderer,{iconSettings:i.icon}),h]});return i.action.type==="open_link"?r.jsx(Vr,{href:i.action.url,target:"_blank",rel:"noopener","data-type":i.action.type,onClick:C.composeEventHandlers(e,c),children:b,...o}):r.jsx(Qr,{"data-type":i.action.type,onClick:C.composeEventHandlers(e,c),children:b,...o})},Ur=a.ikp("button",{_id:"aiChatMessageAction"}),gt=t=>{const{action:e,onClick:i,className:o,...n}=t,{conversationId:s}=E.useChat(),{baseSettings:{onFeedback:d}}=g.useInkeepConfig(),{message:m}=_.useMessage(),{isStreaming:c,messages:h}=E.useChat(),[b,v]=ie.useCopyToClipboard(),{feedback:p,submitPositiveFeedback:F,setCurrentFeedback:M,currentFeedback:f}=oe.useMessageFeedback(),{logEvent:x}=me.useBaseEvents(),[D,K]=Na.useSettleAction(),R=h.at(-1)?.id===m?.id,A=m.role==="assistant";if(R&&c||!A)return null;const y={copy(){v(u.getMessageContent(m)),x({eventName:"assistant_message_copied",properties:{conversationId:s}})},upvote(){F(m.id).then(()=>{K()})},downvote(){M(m.id)}},O={copy:"Copy Message",upvote:"Upvote Message",downvote:"Downvote Message"},H={copy:r.jsx(S.CustomIcon,{iconKey:b?"messageCopied":"messageCopy"}),upvote:r.jsx(S.CustomIcon,{iconKey:D?"messageCopied":"thumbsUp"}),downvote:r.jsx(S.CustomIcon,{iconKey:"thumbsDown"})},te={copy:{"data-copied":u.dataAttr(b)},upvote:{"data-upvoted":u.dataAttr(p[m.id]?.type==="positive")},downvote:{"data-downvoted":u.dataAttr(p[m.id]?.type==="negative"),"data-state":f===null?"closed":"open"}};return{copy:!1,upvote:!d,downvote:!d}[e]?null:r.jsx(Ur,{"data-action":e,...te[e],children:H[e],"aria-label":O[e],className:`${o} ${e}`,onClick:C.composeEventHandlers(i,y[e]),...n})},$r=a.ikp("div",{_id:"aiChatMessageSources"}),Pt=t=>{const{message:e}=_.useMessage();return e.role!=="assistant"||!e.parts.filter(o=>o.type==="data-artifact"&&o.data?.type?.toLowerCase()==="citation")?.length?null:r.jsx($r,{...t})},Kr=a.ikp("div",{_id:"aiChatMessageSources__Header"}),Ft=t=>r.jsx(Kr,{children:"Sources",...t}),zr=a.ikp("div",{_id:"aiChatMessageSources__List"}),Et=t=>{const{message:e}=_.useMessage(),{children:i,...o}=t,{baseSettings:{transformSource:n,organizationDisplayName:s},aiChatSettings:{shouldOpenLinksInNewTab:d},searchSettings:{tabs:m}}=g.useInkeepConfig();if(e.role!=="assistant")return null;const c=e.parts.filter(v=>v.type==="data-artifact"&&v.data?.type?.toLowerCase()==="citation");if(!c?.length)return null;const h=new Map,b=c.filter(v=>{const p=v.data.artifactSummary.url;return!p||h.has(p)?!1:(h.set(p,!0),!0)}).map(v=>{const p=v.data,F={id:p?.artifactId,title:p?.artifactSummary?.title||p?.name,url:p?.artifactSummary?.url||"",description:"",breadcrumbs:[],type:p?.artifactSummary?.record_type,contentType:p?.artifactType,tag:p?.artifactType},f=(n??(D=>({...D,shouldOpenInNewTab:d,icon:Za.getIcon(D)})))(F,"chatSourceItem",{organizationDisplayName:s,tabs:m}),x=f.shouldOpenInNewTab!==void 0?f.shouldOpenInNewTab:d;return{...f,isExternal:x}});return r.jsx(zr,{children:u.maybeRender(i,b),...o})},Gr=a.ikp(Oa.LinkWithQueryParams,{_id:"aiChatMessageSourceItem"}),_t=t=>{const{source:e,onClick:i,...o}=t,{logEvent:n}=me.useBaseEvents(),{conversationId:s}=E.useChat(),d=()=>{n({eventName:"assistant_source_item_clicked",properties:{conversationId:s,link:e}})};return r.jsx(q.SourceItemProvider,{source:e,children:r.jsx(Gr,{"data-type":e.type,appendToUrl:e.appendToUrl,isExternal:e.isExternal,"data-breadcrumbs":!!e.breadcrumbs?.length,onClick:C.composeEventHandlers(i,d),...o})})},Yr=a.ikp("div",{_id:"aiChatMessageSourceItem__Breadcrumbs"}),At=t=>{const{source:e}=q.useSourceItem();return e.breadcrumbs?.length?r.jsx(Yr,{"data-type":e.type,...t}):null},Zr=a.ikp(S.CustomIcon,{_id:"aiChatMessageSourceItem__BreadcrumbIcon",iconKey:"breadcrumbSeparator"}),Jr=a.ikp(L.BuiltInIconRenderer,{_id:"aiChatMessageSourceItem__Icon"}),It=t=>{const{source:e}=q.useSourceItem();return r.jsx(Jr,{iconSettings:e.icon,"data-type":e.type,...t})},Xr=a.ikp("span",{_id:"aiChatMessageSourceItem__Title"}),kt=t=>{const{source:e}=q.useSourceItem();return r.jsx(Xr,{"data-type":e.type,children:e.title,...t})},eo=a.ikp("span",{_id:"aiChatMessageSourceItem__Tag"}),Mt=t=>{const{source:e}=q.useSourceItem();return r.jsx(eo,{"data-type":e.type,...t})},to=a.ikp("span",{_id:"aiChatMessageSourceItem__Description"}),ft=t=>{const{source:e}=q.useSourceItem(),{children:i,...o}=t,n=l.useMemo(()=>e.description?Qa.highlightEmphasis(e.description):[],[e.description]);return n.length?r.jsx(to,{"data-type":e.type,children:u.maybeRender(i,n),...o}):null},io=a.ikp("span",{_id:"aiChatMessageSourceItem__DescriptionPart"}),xt=t=>{const{part:e,...i}=t,{source:o}=q.useSourceItem();return typeof e=="string"?e:r.jsx(io,{"data-type":o.type,children:e.content,"data-highlighted":u.dataAttr(e.highlighted),...i})},ao=a.ikp(S.CustomIcon,{_id:"aiChatMessageSourceItem__Indicator"}),St=t=>{const{source:e}=q.useSourceItem();return r.jsx(ao,{iconKey:e.isExternal?"openLinkInNewTab":"openLinkInSameTab",...t})},Bt=a.ikp("div",{_id:"aiChatFooter"}),Tt=a.ikp("div",{_id:"aiChatInput__Group"}),ro=a.ikp("textarea",{_id:"aiChatInput"}),yt=l.forwardRef(({onChange:t,onKeyDown:e,...i},o)=>{const{handleInputChange:n,handleInputKeyDown:s,input:d,error:m,shouldAutoFocusInput:c,inputRef:h}=E.useChat(),{aiChatSettings:b}=g.useInkeepConfig(),v=se.useComposedRefs(o,h);return Ga.useWidgetAutoFocus("chat",h,c),r.jsx(ro,{asChild:!0,ref:v,maxLength:99999,placeholder:b.placeholder,value:d,onChange:C.composeEventHandlers(t,n),onKeyDown:C.composeEventHandlers(e,s),disabled:!!m||b.isViewOnly,...i,children:r.jsx(re,{})})}),oo=a.ikp("button",{_id:"aiChatInput__SendButton"}),Ht=t=>{const{handleSubmit:e,isSubmitDisabled:i,error:o}=E.useChat(),{aiChatSettings:n}=g.useInkeepConfig(),{onClick:s,...d}=t;return r.jsx(oo,{onClick:C.composeEventHandlers(s,()=>e()),"aria-label":"Send message",disabled:i||!!o||n.isViewOnly,...d})},jt=a.ikp(S.CustomIcon,{_id:"aiChatInput__SendButtonIcon",iconKey:"chatSubmit"}),no=a.ikp("div",{_id:"aiChatAttachmentsBar"}),wt=t=>{const e={supportedInputs:[]};return!e||!e.supportedInputs?.length?null:r.jsx(T.AttachmentsBarProvider,{children:r.jsx(no,{...t})})},so=a.ikp("div",{_id:"aiChatAttachmentsBar__List"}),Lt=t=>{const{children:e,...i}=t,o=[];return r.jsx(so,{children:u.maybeRender(e,o),...i})},mo=a.ikp("div",{_id:"aiChatAttachmentsBar__Attachment"}),Dt=t=>{const{attachment:e,...i}=t;return r.jsx(U.AttachmentItemProvider,{attachment:e,children:r.jsx(mo,{...i})})},co=a.ikp(L.BuiltInIconRenderer,{_id:"aiChatAttachmentsBar__AttachmentIcon"}),Rt=t=>{const{attachment:e}=U.useAttachmentItem(),i=e.contentType?.attachmentIcon;return i?r.jsx(co,{iconSettings:i,...t}):null},lo=a.ikp("span",{_id:"aiChatAttachmentsBar__AttachmentTitle"}),Ot=t=>{const{attachment:e}=U.useAttachmentItem();return r.jsx(lo,{children:e.title,...t})},ho=a.ikp("button",{_id:"aiChatAttachmentsBar__AttachmentDelete"}),qt=t=>{const{onClick:e,...i}=t,o=()=>{};return r.jsx(ho,{"aria-label":"Remove attachment",children:r.jsx(S.CustomIcon,{iconKey:"close"}),onClick:C.composeEventHandlers(e,o),...i})},Nt=a.ikp("div",{_id:"aiChatAttachmentsBar__Actions"}),Wt=a.ikp(W.Tooltip,{_id:"aiChatAttachmentsBar__InfoTip",delayDuration:0}),Vt=a.ikp(W.Trigger,{_id:"aiChatAttachmentsBar__InfoTipIcon",children:r.jsx(S.CustomIcon,{iconKey:"info"})}),he=a.ikp(W.Arrow,{_id:"aiChatAttachmentsBar__InfoTipArrow"}),Qt=a.ikp(W.Content,{_id:"aiChatAttachmentsBar__InfoTipText",side:"bottom",sideOffset:3,align:"center",children:r.jsxs(r.Fragment,{children:[r.jsx(he,{}),"Attachments will be kept in context for the entire conversation."]})}),uo=a.ikp("div",{_id:"aiChatAttachmentsBar__Inputs"}),Ut=t=>{const{children:e,...i}=t,o={supportedInputs:[]};return o?.supportedInputs?r.jsx(uo,{children:u.maybeRender(e,o.supportedInputs),...i}):null},Co=a.ikp("button",{_id:"aiChatAttachmentsBar__Input"}),$t=t=>{const{input:e,onClick:i,...o}=t,n={supportedInputs:[]},s=[],d=()=>{},{selectInput:m,onOpen:c}=T.useAttachmentsBar(),h=()=>{if(e.type==="FUNCTIONAL_MULTI_ATTACHMENT")return n?e.onInvoke(n,e,d,[...s]):void 0;m(e),c()};return r.jsx(Co,{children:e.displayName,onClick:C.composeEventHandlers(i,h),...o})},bo=a.ikp(I.Root,{_id:"aiChatAttachmentsBar__Modal"}),Kt=t=>{const{onOpenChange:e,...i}=t,{selectInput:o,isOpen:n,onClose:s,selectedInput:d}=T.useAttachmentsBar(),m=c=>{c||(s(),o(null))};return r.jsx(bo,{open:n&&d!==null,onOpenChange:C.composeEventHandlers(e,m),...i})},zt=a.ikp(I.Overlay,{_id:"aiChatAttachmentsBar__ModalOverlay"}),Gt=a.ikp(I.Content,{_id:"aiChatAttachmentsBar__ModalContent","aria-describedby":void 0}),Yt=a.ikp("div",{_id:"aiChatAttachmentsBar__ModalHeader"}),po=a.ikp(I.Title,{_id:"aiChatAttachmentsBar__ModalHeading"}),Zt=t=>{const{selectedInput:e}=T.useAttachmentsBar(),i=`Add ${e?.displayName}`;return r.jsx(po,{children:i,...t})},vo=a.ikp("span",{_id:"aiChatAttachmentsBar__ModalDescription"}),Jt=t=>{const{selectedInput:e}=T.useAttachmentsBar(),i=e?.workflowModalProps?.modalHelpText;return i?r.jsx(vo,{children:i,...t}):null},go=a.ikp("div",{_id:"aiChatAttachmentsBar__ModalHelp"}),Xt=t=>{const{children:e,...i}=t,{selectedInput:o}=T.useAttachmentsBar(),n=o?.workflowModalProps?.modalHelpElement;return n?r.jsx(go,{asChild:!e,children:e||n,...i}):null},ei=a.ikp(I.Close,{_id:"aiChatAttachmentsBar__ModalClose",children:r.jsx(S.CustomIcon,{iconKey:"close"})}),ti=a.ikp("div",{_id:"aiChatAttachmentsBar__ModalBody"}),Po=a.ikp("form",{_id:"aiChatAttachmentsBar__Form"}),ii=t=>{const{onSubmit:e,...i}=t,{form:o}=T.useAttachmentsBar();return r.jsx(Po,{onSubmit:C.composeEventHandlers(e,o.onSubmit),...i})},ai=a.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),Fo=a.ikp("label",{_id:"aiChatAttachmentsBar__FormTitleLabel"}),ri=t=>{const{form:e,selectedInput:i}=T.useAttachmentsBar();return r.jsx(Fo,{htmlFor:`${i?.id}-title`,children:e.labels.title,...t})},Eo=a.ikp("input",{_id:"aiChatAttachmentsBar__FormTitleInput"}),oi=t=>{const{onChange:e,...i}=t,{form:o,selectedInput:n}=T.useAttachmentsBar();return r.jsx(Eo,{name:"title",value:o.data.title,id:`${n?.id}-title`,"data-invalid":u.dataAttr(!!o.errors.title),"aria-invalid":!!o.errors.title,onChange:C.composeEventHandlers(e,o.onChange),...i})},_o=a.ikp("span",{_id:"aiChatAttachmentsBar__FormTitleError"}),ni=t=>{const{form:e}=T.useAttachmentsBar();return e.errors.title?r.jsx(_o,{"aria-live":"polite",children:e.errors.title,...t}):null},si=a.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),Ao=a.ikp("label",{_id:"aiChatAttachmentsBar__FormContentLabel"}),di=t=>{const{form:e,selectedInput:i}=T.useAttachmentsBar();return r.jsx(Ao,{htmlFor:`${i?.id}-content`,children:e.labels.content,...t})},Io=a.ikp("textarea",{_id:"aiChatAttachmentsBar__FormTitleInput"}),mi=t=>{const{onChange:e,...i}=t,{form:o,selectedInput:n}=T.useAttachmentsBar();return r.jsx(Io,{asChild:!0,rows:4,name:"content",value:o.data.content,id:`${n?.id}-content`,"data-invalid":u.dataAttr(!!o.errors.content),"aria-invalid":!!o.errors.content,onChange:C.composeEventHandlers(e,o.onChange),...i,children:r.jsx(re,{maxRows:10})})},ko=a.ikp("span",{_id:"aiChatAttachmentsBar__FormContentError"}),ci=t=>{const{form:e}=T.useAttachmentsBar();return e.errors.content?r.jsx(ko,{"aria-live":"polite",children:e.errors.content,...t}):null},li=a.ikp("button",{_id:"aiChatAttachmentsBar__FormSubmitButton",children:"Upload",type:"submit"}),hi=a.ikp("div",{_id:"aiChatActionBar"}),ui=a.ikp("div",{_id:"aiChat__ChatActions"}),Ci=a.ikp("div",{_id:"aiChatTagline__Container"}),bi=a.ikp("span",{_id:"aiChatTagline__Text",children:"Powered by"}),pi=a.ikp(qa.default,{_id:"aiChatTagline__Logo"}),vi=a.ikp("a",{_id:"aiChatTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),Mo=a.ikp(W.Trigger,{_id:"aiChat__ChatAction"}),X=t=>{const{action:e,onClick:i,className:o,...n}=t,s={},{clear:d,stop:m,isBusy:c,messages:h}=E.useChat(),{conversationId:b}=E.useChat(),{aiChatSettings:v}=g.useInkeepConfig(),[p,F]=ie.useCopyToClipboard(),[M]=ie.useCopyToClipboard(),f=h.length>0;if({help:!1,copy:!f||!v.isCopyChatButtonVisible||c,share:!f||!v.isShareButtonVisible||!b||!!s||c,clear:!f||v.isViewOnly||c,stop:!c}[e])return null;const R={help:()=>{},copy:()=>{const Q=h.map(y=>{const O=`**${y.role==="assistant"?"AI Assistant":"User"}**`,H=u.getMessageContent(y);return`${O}
|
|
6
6
|
|
|
7
|
-
${
|
|
7
|
+
${H}`}).join(`
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
`);P(N)},share:async()=>{},clear:d,stop:c},E={copy:p,share:I};return r.jsx(W.Tooltip,{delayDuration:0,open:E[e],children:r.jsx(Io,{"data-type":e,"data-copied":u.dataAttr(p||I),className:`${o} ${e}`,children:r.jsx(le,{action:e}),onClick:C.composeEventHandlers(i,D[e]),...n})})},Mo=a.ikp("span",{_id:"aiChat__ChatActionLabel"}),le=t=>{const{action:e,...i}=t,{aiChatSettings:o}=g.useInkeepConfig(),n=o.toolbarButtonLabels??{},s={help:n.getHelp??"Get Help",copy:n.copyChat??"Copy",share:n.share??"Share",clear:n.clear??"Clear",stop:n.stop??"Stop"};return r.jsx(Mo,{children:s[e],...i})},fo=a.ikp(W.TooltipContent,{_id:"aiChat__ChatActionFeeback"}),vi=t=>{const{action:e,children:i,...o}=t,n={copy:"Copied!",share:"Link copied!"};return r.jsxs(fo,{sideOffset:5,...o,children:[r.jsx(W.Arrow,{}),i||n[e]]})},xo=a.ikp(q.Root,{_id:"aiChatHelpActions"}),gi=t=>{const{children:e,...i}=t,{aiChatSettings:o}=g.useInkeepConfig(),{getHelpOptions:n}=o;if(!n||(n??[]).length===0)return null;const{_pinned:s,_unpinned:d}=n.reduce((b,v)=>{const p=v.isPinnedToToolbar?"_pinned":"_unpinned";return{...b,[p]:[...b[p],v]}},{_pinned:[],_unpinned:[]}),c=d.length===1?[...s,d[0]]:s,m=d.length===1?[]:d,h=te.useHelpMenuState();return r.jsx(te.HelpMenuProvider,{value:h,children:r.jsx(xo,{open:h.open,onOpenChange:h.setOpen,children:u.maybeRender(e,{pinned:c,unpinned:m}),...i})})},So=a.ikp(J,{_id:"aiChatHelpAction",action:"help"}),Bo=a.ikp("a",{_id:"aiChatHelpAction",target:"_blank",rel:"noreferrer"}),Pi=t=>{const{action:e,onClick:i,...o}=t,{handleAction:n,logHelpAction:s}=re.useChatAction(e),d=e.action.type,c={"aria-label":e.name,"data-name":e.name,children:e.name,onClick:C.composeEventHandlers(i,()=>{n(),s()}),...o};return d==="open_link"?r.jsx(Bo,{href:e.action.url,...c}):r.jsx(So,{...c})},To=a.ikp(q.Trigger,{_id:"aiChatHelpActions__Trigger"}),Fi=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig();return r.jsx(J,{action:"help",...t,asChild:!0,children:r.jsx(To,{children:e.toolbarButtonLabels?.getHelp??"Get Help"})})}),yo=a.ikp(q.Content,{_id:"aiChatHelpActions__Menu"}),_i=t=>r.jsx(yo,{side:"top",sideOffset:8,align:"center",alignOffset:-10,...t}),Ei=a.ikp(q.Arrow,{_id:"aiChatHelpActions__MenuArrow"}),Ai=t=>{const{action:e,onClick:i,...o}=t,{handleAction:n,logHelpAction:s}=re.useChatAction(e),{setOpen:d}=te.useHelpMenu(),c=()=>{n({onOpenForm:()=>d(!1)}),s()},m=e.action.type,h=a.ikp(m==="open_link"?"a":"button",{_id:"aiChatHelpActions__MenuItem",children:e.name,"aria-label":e.name,"data-name":e.name,"data-type":e.action.type,...m==="open_link"&&{href:e.action.url,target:"_blank",rel:"noopener"},onClick:C.composeEventHandlers(i,c)});return r.jsx(h,{...o})},Ho=a.ikp(w.BuiltInIconRenderer,{_id:"aiChatHelpActions_MenuItemIcon"}),ki=t=>{const{action:e,...i}=t;return e.icon?r.jsx(Ho,{iconSettings:e.icon,...i}):null},jo=a.ikp(A.Root,{_id:"aiChatFeedbackModal"}),Ii=t=>{const{onOpenChange:e,...i}=t,{currentFeedback:o,setCurrentFeedback:n}=ae.useMessageFeedback();return r.jsx(jo,{open:o!==null,onOpenChange:C.composeEventHandlers(e,()=>n(null)),...i})},Mi=a.ikp(A.Overlay,{_id:"aiChatFeedbackModal__Overlay"}),fi=a.ikp(A.Content,{_id:"aiChatFeedbackModal__Content","aria-describedby":void 0}),xi=a.ikp(A.Title,{_id:"aiChatFeedbackModal__Header",children:"Help improve my answers!"}),Si=a.ikp(A.Close,{_id:"aiChatFeedbackModal__Close",children:r.jsx(x.CustomIcon,{iconKey:"close"})}),Bi=a.ikp("div",{_id:"aiChatFeedbackModal__Body"}),wo=a.ikp("form",{_id:"aiChatFeedbackForm"}),Ti=t=>{const{onSubmit:e,...i}=t,{submitNegativeFeedback:o,currentFeedback:n,setCurrentFeedback:s}=ae.useMessageFeedback(),d=c=>{c.preventDefault();const m=c.target,h=new FormData(m),b=Object.fromEntries(h.entries());n&&(o(n,b),s(null))};return r.jsx(wo,{onSubmit:C.composeEventHandlers(e,d),...i})},Lo=a.ikp("div",{_id:"aiChatFeedbackItem"}),yi=t=>{const{name:e,...i}=t;return r.jsx(G.FeedbackItemProvider,{name:e,children:r.jsx(Lo,{...i})})},Do=a.ikp(Y.Root,{_id:"aiChatFeedbackItem__Checkbox"}),Hi=t=>{const{name:e,focusItem:i}=G.useFeedbackItem(),{onCheckedChange:o,...n}=t,s=d=>{d&&i?.current?.focus()};return r.jsx(Do,{id:`feedback-${e}`,name:e,onCheckedChange:C.composeEventHandlers(o,s),...n})},ji=a.ikp(Y.Indicator,{_id:"aiChatFeedbackItem__CheckboxIndicator",children:r.jsx(ue.CheckboxIcon,{})}),Ro=a.ikp("label",{_id:"aiChatFeedbackItem__Label"}),wi=t=>{const{name:e}=G.useFeedbackItem(),i={unrelated_response:"Didn't answer my question",inaccurate_statement:"Inaccurate statement",inaccurate_code_snippet:"Inaccurate code snippet",irrelevant_citations:"Irrelevant citations"};return r.jsx(Ro,{htmlFor:`feedback-${e}`,children:i[e],...t})},Oo=a.ikp("textarea",{_id:"aiChatFeedbackItem__Description",placeholder:"Please describe"}),Li=t=>{const{name:e,focusItem:i}=G.useFeedbackItem();return r.jsx(Oo,{ref:i,name:`${e}:description`,...t})},Di=a.ikp("button",{_id:"aiChatFeedbackForm__SubmitButton",children:"Submit",type:"submit"}),qo=a.ikp("div",{_id:"aiChatForm__Wrapper"}),Ri=t=>{const{form:e}=k.useChatForm();return e?r.jsx(qo,{...t}):null},Wo=a.ikp("form",{_id:"aiChatForm"}),Oi=t=>{const{onSubmit:e,...i}=t,{conversationId:o,messages:n}=F.useChat(),{handleSubmit:s,isSuccess:d}=k.useChatForm();return d?null:r.jsx(Wo,{onSubmit:C.composeEventHandlers(e,c=>s(c,{id:o,messages:n})),...i})},No=a.ikp("button",{_id:"aiChatForm__Close",children:r.jsx(x.CustomIcon,{iconKey:"close"})}),qi=t=>{const{onClick:e,...i}=t,{closeForm:o}=k.useChatForm();return r.jsx(No,{onClick:C.composeEventHandlers(e,o),...i})},Wi=a.ikp("div",{_id:"aiChatForm__Header"}),Vo=a.ikp("h2",{_id:"aiChatForm__Heading"}),Ni=t=>{const{form:e}=k.useChatForm();return e?.heading?r.jsx(Vo,{children:e.heading,...t}):null},Qo=a.ikp(z.Markdown,{_id:"aiChatForm__Description"}),Vi=t=>{const{form:e}=k.useChatForm();return e?.description?r.jsx(Qo,{shouldOpenLinksInNewTab:!0,children:e.description,...t}):null},$o=a.ikp("div",{_id:"aiChatForm__Content"}),Qi=t=>{const{children:e,...i}=t,{getFields:o}=k.useChatForm(),{conversationId:n}=F.useChat(),s=o(n)||[];return r.jsx($o,{children:u.maybeRender(e,s),...i})},Uo=a.ikp("div",{_id:"aiChatForm__Field"}),$i=t=>{const{field:e,autoFocus:i,...o}=t,{control:n,errors:s}=k.useChatForm();return r.jsx(Na.Controller,{name:e.name,control:n,rules:{required:e.isRequired?`${e.label} is required.`:void 0},render:({field:d})=>{const c=d.value!==void 0||e.inputType==="file";return r.jsx(H.FormFieldProvider,{"data-invalid":u.dataAttr(!!s[e.name]),field:e,fieldProps:d,autoFocus:i,children:c&&r.jsx(Uo,{"data-input-type":e.inputType,"data-hidden":u.dataAttr(e.isHidden),...o})})}})},Ko=a.ikp("label",{_id:"aiChatForm__FieldLabel"}),Ui=t=>{const{field:e}=H.useFormField();return r.jsx(Ko,{"data-required":u.dataAttr(e.isRequired),htmlFor:e.name,children:e.label,...t})},zo=a.ikp("input",{_id:"aiChatForm__FieldText",type:"text"}),X=t=>{const{field:e,error:i,fieldProps:{onChange:o,onBlur:n,...s},autoFocus:d}=H.useFormField(),{onChange:c,onBlur:m,...h}=t;return r.jsx(zo,{id:e.name,autoFocus:d,placeholder:"placeholder"in e?e.placeholder:void 0,"data-invalid":u.dataAttr(!!i),onChange:C.composeEventHandlers(c,o),onBlur:C.composeEventHandlers(m,n),...s,...h})},Ki=a.ikp(X,{_id:"aiChatForm__FieldEmail",type:"email"}),Go=a.ikp("input",{_id:"aiChatForm__FieldFile",type:"file",multiple:!0}),zi=t=>{const{field:e,error:i,fieldProps:{value:o,onChange:n,onBlur:s,...d},autoFocus:c}=H.useFormField(),{onChange:m,onBlur:h,...b}=t,v=p=>{const P=p.target.files;n(P)};return r.jsx(Go,{id:e.name,autoFocus:c,"data-value":o,"data-invalid":u.dataAttr(!!i),...b,...d,onChange:C.composeEventHandlers(m,v),onBlur:C.composeEventHandlers(h,s)})},Gi=a.ikp(X,{_id:"aiChatForm__FieldTextArea",type:"textarea",asChild:!0,children:r.jsx(ie,{maxRows:8})}),Yo=a.ikp(Y.Root,{_id:"aiChatForm__FieldCheckbox"}),Yi=t=>{const{field:e,error:i,fieldProps:o,autoFocus:n}=H.useFormField(),{onCheckedChange:s,...d}=t;return r.jsx(Yo,{id:e.name,name:e.name,autoFocus:n,"data-invalid":u.dataAttr(!!i),checked:o.value,onCheckedChange:C.composeEventHandlers(s,o.onChange),...d})},Ji=a.ikp(Y.Indicator,{_id:"aiChatForm__FieldCheckboxIndicator",children:r.jsx(ue.CheckboxIcon,{})}),Jo=a.ikp(j.Root,{_id:"aiChatForm__FieldSelect"}),Xi=t=>{const{field:e,error:i,fieldProps:o}=H.useFormField(),{onValueChange:n,...s}=t;return r.jsx(Jo,{name:e.name,"data-invalid":u.dataAttr(!!i),value:o.value,onValueChange:C.composeEventHandlers(n,o.onChange),...s})},Zi=a.ikp(j.Trigger,{_id:"aiChatForm__FieldSelect__Trigger"}),Xo=a.ikp(j.Value,{_id:"aiChatForm__FieldSelect__Value"}),ea=t=>{const{field:e}=H.useFormField();return r.jsx(Xo,{placeholder:"placeholder"in e?e.placeholder:void 0,...t})},ta=a.ikp(j.Icon,{_id:"aiChatForm__FieldSelect__Icon",asChild:!0,children:r.jsx(w.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})}),ia=a.ikp(j.Content,{_id:"aiChatForm__FieldSelect__Content",position:"popper"}),aa=a.ikp(j.Viewport,{_id:"aiChatForm__FieldSelect__Viewport"}),ra=a.ikp(j.Item,{_id:"aiChatForm__FieldSelect__Item"}),oa=a.ikp(j.ItemText,{_id:"aiChatForm__FieldSelect__ItemText"}),na=a.ikp(j.ItemIndicator,{_id:"aiChatForm__FieldSelect__ItemIndicator",asChild:!0,children:r.jsx(w.BuiltInIconRenderer,{iconSettings:{builtIn:"LuCheck"}})}),sa=t=>{const{field:e,error:i,fieldProps:o}=H.useFormField(),{onValueChange:n,...s}=t;if(e.inputType!=="combobox")return null;const d=e,{items:c,placeholder:m,multiple:h}=d,b=Array.isArray(o.value)?o.value:[],v={name:e.name,"data-invalid":u.dataAttr(!!i)||void 0,items:c,defaultValue:b,multiple:h??!1,placeholder:m,onValueChange:C.composeEventHandlers(n,p=>o.onChange(p.value)),...s};return r.jsx(S.ComboboxRoot,{...v})},Zo={_id:"aiChatForm__FieldCombobox__Control"},da=a.ikp(S.ComboboxControl,Zo),en={_id:"aiChatForm__FieldCombobox__Input"},ca=a.ikp(S.ComboboxInput,en),tn={_id:"aiChatForm__FieldCombobox__Trigger",children:r.jsx(w.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})},ma=a.ikp(S.ComboboxTrigger,tn),an={_id:"aiChatForm__FieldCombobox__SelectedTags"},la=a.ikp(S.ComboboxSelectedTags,an),rn={_id:"aiChatForm__FieldCombobox__Content"},ha=a.ikp(S.ComboboxContent,rn),on={_id:"aiChatForm__FieldCombobox__Positioner"},ua=a.ikp(S.ComboboxPositioner,on),nn={_id:"aiChatForm__FieldCombobox__List"},Ca=a.ikp(S.ComboboxList,nn),ba=a.ikp(S.ComboboxItem,{_id:"aiChatForm__FieldCombobox__Item"}),pa=a.ikp(S.ComboboxItemText,{_id:"aiChatForm__FieldCombobox__ItemText"}),va=a.ikp(S.ComboboxItemIndicator,{_id:"aiChatForm__FieldCombobox__ItemIndicator"}),ga=S.ComboboxListItems,Pa=a.ikp(S.ComboboxListEmpty,{_id:"aiChatForm__FieldCombobox__ListEmpty"}),sn=a.ikp("p",{_id:"aiChatForm__FieldDescription"}),Fa=t=>{const{field:e}=H.useFormField();return e.description?r.jsx(sn,{children:e.description,...t}):null},dn=a.ikp("span",{_id:"aiChatForm__FieldError"}),_a=t=>{const{error:e}=H.useFormField();return e?r.jsx(dn,{children:e.message?.toString(),...t}):null},cn=a.ikp("span",{_id:"aiChatForm__Error"}),Ea=t=>{const{formError:e}=k.useChatForm();return e?r.jsx(cn,{children:e.message,...t}):null},Aa=a.ikp("div",{_id:"aiChatForm__Footer"}),mn=a.ikp("button",{_id:"aiChatForm__Cancel",children:"Cancel",type:"button"}),ka=t=>{const{onClick:e,...i}=t,{closeForm:o}=k.useChatForm();return r.jsx(mn,{onClick:C.composeEventHandlers(e,o),...i})},ln=a.ikp("button",{_id:"aiChatForm__Submit",children:"Submit",type:"submit"}),Ia=t=>{const{onClick:e,...i}=t,{isSubmitting:o,form:n}=k.useChatForm(),s=n?.buttons.submit.label||"Submit";return r.jsx(ln,{disabled:o,...i,children:s})},hn=a.ikp("div",{_id:"aiChatForm__Success"}),Ma=t=>{const{isSuccess:e}=k.useChatForm();return e?r.jsx(hn,{...t}):null},un=a.ikp("h2",{_id:"aiChatForm__SuccessHeading"}),fa=t=>{const{form:e}=k.useChatForm();return r.jsx(un,{children:e?.successView?.heading,...t})},Cn=a.ikp(z.Markdown,{_id:"aiChatForm__SuccessMessage"}),xa=t=>{const{form:e}=k.useChatForm();return r.jsx(Cn,{shouldOpenLinksInNewTab:!0,children:e?.successView?.message,...t})},bn=a.ikp("button",{_id:"aiChatForm__SuccessButton"}),Sa=t=>{const{onClick:e,...i}=t,{form:o,closeForm:n}=k.useChatForm(),s=o?.successView?.doneButton;if(!s)return null;const d=s.icon&&r.jsx(w.BuiltInIconRenderer,{iconSettings:s.icon}),c=s.label;return r.jsx(bn,{onClick:C.composeEventHandlers(e,n),children:r.jsxs(r.Fragment,{children:[d,c]}),...i})};exports.Provider=F.ChatProvider;exports.ActionBar=li;exports.Actions=hi;exports.AttachmentsBar=jt;exports.AttachmentsBarActions=qt;exports.AttachmentsBarAttachment=Lt;exports.AttachmentsBarAttachmentDelete=Ot;exports.AttachmentsBarAttachmentIcon=Dt;exports.AttachmentsBarAttachmentTitle=Rt;exports.AttachmentsBarForm=ti;exports.AttachmentsBarFormContent=ni;exports.AttachmentsBarFormContentError=ci;exports.AttachmentsBarFormContentInput=di;exports.AttachmentsBarFormContentLabel=si;exports.AttachmentsBarFormSubmitButton=mi;exports.AttachmentsBarFormTitle=ii;exports.AttachmentsBarFormTitleError=oi;exports.AttachmentsBarFormTitleInput=ri;exports.AttachmentsBarFormTitleLabel=ai;exports.AttachmentsBarInfoTip=Wt;exports.AttachmentsBarInfoTipArrow=me;exports.AttachmentsBarInfoTipIcon=Nt;exports.AttachmentsBarInfoTipText=Vt;exports.AttachmentsBarInput=$t;exports.AttachmentsBarInputs=Qt;exports.AttachmentsBarList=wt;exports.AttachmentsBarModal=Ut;exports.AttachmentsBarModalBody=ei;exports.AttachmentsBarModalClose=Zt;exports.AttachmentsBarModalContent=zt;exports.AttachmentsBarModalDescription=Jt;exports.AttachmentsBarModalHeader=Gt;exports.AttachmentsBarModalHeading=Yt;exports.AttachmentsBarModalHelp=Xt;exports.AttachmentsBarModalOverlay=Kt;exports.ChatAction=J;exports.ChatActionFeedback=vi;exports.ChatActionLabel=le;exports.ChatHelpAction=Pi;exports.ChatHistoryButton=Fe;exports.ChatHistoryButtonIcon=Pe;exports.Content=Ee;exports.ContentScrollArea=Ae;exports.ContentScrollAreaCorner=fe;exports.ContentScrollAreaScrollbar=Ie;exports.ContentScrollAreaThumb=Me;exports.ContentScrollAreaViewport=ke;exports.Disclaimer=Se;exports.DisclaimerArrow=je;exports.DisclaimerContent=ye;exports.DisclaimerLabel=Be;exports.DisclaimerText=He;exports.DisclaimerTrigger=Te;exports.DynamicComponent=ht;exports.EmbeddedChatPrimitiveActionBar=li;exports.EmbeddedChatPrimitiveActions=hi;exports.EmbeddedChatPrimitiveAttachmentsBar=jt;exports.EmbeddedChatPrimitiveAttachmentsBarActions=qt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachment=Lt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete=Ot;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon=Dt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle=Rt;exports.EmbeddedChatPrimitiveAttachmentsBarForm=ti;exports.EmbeddedChatPrimitiveAttachmentsBarFormContent=ni;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentError=ci;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentInput=di;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentLabel=si;exports.EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton=mi;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitle=ii;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleError=oi;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleInput=ri;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel=ai;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTip=Wt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow=me;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon=Nt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipText=Vt;exports.EmbeddedChatPrimitiveAttachmentsBarInput=$t;exports.EmbeddedChatPrimitiveAttachmentsBarInputs=Qt;exports.EmbeddedChatPrimitiveAttachmentsBarList=wt;exports.EmbeddedChatPrimitiveAttachmentsBarModal=Ut;exports.EmbeddedChatPrimitiveAttachmentsBarModalBody=ei;exports.EmbeddedChatPrimitiveAttachmentsBarModalClose=Zt;exports.EmbeddedChatPrimitiveAttachmentsBarModalContent=zt;exports.EmbeddedChatPrimitiveAttachmentsBarModalDescription=Jt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeader=Gt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeading=Yt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHelp=Xt;exports.EmbeddedChatPrimitiveAttachmentsBarModalOverlay=Kt;exports.EmbeddedChatPrimitiveChatAction=J;exports.EmbeddedChatPrimitiveChatActionFeedback=vi;exports.EmbeddedChatPrimitiveChatActionLabel=le;exports.EmbeddedChatPrimitiveChatHelpAction=Pi;exports.EmbeddedChatPrimitiveChatHistoryButton=Fe;exports.EmbeddedChatPrimitiveChatHistoryButtonIcon=Pe;exports.EmbeddedChatPrimitiveContent=Ee;exports.EmbeddedChatPrimitiveContentScrollArea=Ae;exports.EmbeddedChatPrimitiveContentScrollAreaCorner=fe;exports.EmbeddedChatPrimitiveContentScrollAreaScrollbar=Ie;exports.EmbeddedChatPrimitiveContentScrollAreaThumb=Me;exports.EmbeddedChatPrimitiveContentScrollAreaViewport=ke;exports.EmbeddedChatPrimitiveDisclaimer=Se;exports.EmbeddedChatPrimitiveDisclaimerArrow=je;exports.EmbeddedChatPrimitiveDisclaimerContent=ye;exports.EmbeddedChatPrimitiveDisclaimerLabel=Be;exports.EmbeddedChatPrimitiveDisclaimerText=He;exports.EmbeddedChatPrimitiveDisclaimerTrigger=Te;exports.EmbeddedChatPrimitiveDynamicComponent=ht;exports.EmbeddedChatPrimitiveExampleQuestion=Re;exports.EmbeddedChatPrimitiveExampleQuestionButton=Oe;exports.EmbeddedChatPrimitiveExampleQuestions=we;exports.EmbeddedChatPrimitiveExampleQuestionsLabel=Le;exports.EmbeddedChatPrimitiveExampleQuestionsList=De;exports.EmbeddedChatPrimitiveFeedbackForm=Ti;exports.EmbeddedChatPrimitiveFeedbackItem=yi;exports.EmbeddedChatPrimitiveFeedbackItemCheckbox=Hi;exports.EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator=ji;exports.EmbeddedChatPrimitiveFeedbackItemDescription=Li;exports.EmbeddedChatPrimitiveFeedbackItemLabel=wi;exports.EmbeddedChatPrimitiveFeedbackModal=Ii;exports.EmbeddedChatPrimitiveFeedbackModalBody=Bi;exports.EmbeddedChatPrimitiveFeedbackModalClose=Si;exports.EmbeddedChatPrimitiveFeedbackModalContent=fi;exports.EmbeddedChatPrimitiveFeedbackModalHeader=xi;exports.EmbeddedChatPrimitiveFeedbackModalOverlay=Mi;exports.EmbeddedChatPrimitiveFeedbackSubmitButton=Di;exports.EmbeddedChatPrimitiveFooter=xt;exports.EmbeddedChatPrimitiveForm=Oi;exports.EmbeddedChatPrimitiveFormCancel=ka;exports.EmbeddedChatPrimitiveFormClose=qi;exports.EmbeddedChatPrimitiveFormContent=Qi;exports.EmbeddedChatPrimitiveFormDescription=Vi;exports.EmbeddedChatPrimitiveFormError=Ea;exports.EmbeddedChatPrimitiveFormField=$i;exports.EmbeddedChatPrimitiveFormFieldCheckbox=Yi;exports.EmbeddedChatPrimitiveFormFieldCheckboxIndicator=Ji;exports.EmbeddedChatPrimitiveFormFieldCombobox=sa;exports.EmbeddedChatPrimitiveFormFieldComboboxContent=ha;exports.EmbeddedChatPrimitiveFormFieldComboboxControl=da;exports.EmbeddedChatPrimitiveFormFieldComboboxInput=ca;exports.EmbeddedChatPrimitiveFormFieldComboboxItem=ba;exports.EmbeddedChatPrimitiveFormFieldComboboxItemIndicator=va;exports.EmbeddedChatPrimitiveFormFieldComboboxItemText=pa;exports.EmbeddedChatPrimitiveFormFieldComboboxList=Ca;exports.EmbeddedChatPrimitiveFormFieldComboboxListEmpty=Pa;exports.EmbeddedChatPrimitiveFormFieldComboboxListItems=ga;exports.EmbeddedChatPrimitiveFormFieldComboboxPositioner=ua;exports.EmbeddedChatPrimitiveFormFieldComboboxSelectedTags=la;exports.EmbeddedChatPrimitiveFormFieldComboboxTrigger=ma;exports.EmbeddedChatPrimitiveFormFieldDescription=Fa;exports.EmbeddedChatPrimitiveFormFieldEmail=Ki;exports.EmbeddedChatPrimitiveFormFieldError=_a;exports.EmbeddedChatPrimitiveFormFieldFile=zi;exports.EmbeddedChatPrimitiveFormFieldLabel=Ui;exports.EmbeddedChatPrimitiveFormFieldSelect=Xi;exports.EmbeddedChatPrimitiveFormFieldSelectContent=ia;exports.EmbeddedChatPrimitiveFormFieldSelectIcon=ta;exports.EmbeddedChatPrimitiveFormFieldSelectItem=ra;exports.EmbeddedChatPrimitiveFormFieldSelectItemIndicator=na;exports.EmbeddedChatPrimitiveFormFieldSelectItemText=oa;exports.EmbeddedChatPrimitiveFormFieldSelectTrigger=Zi;exports.EmbeddedChatPrimitiveFormFieldSelectValue=ea;exports.EmbeddedChatPrimitiveFormFieldSelectViewport=aa;exports.EmbeddedChatPrimitiveFormFieldText=X;exports.EmbeddedChatPrimitiveFormFieldTextArea=Gi;exports.EmbeddedChatPrimitiveFormFooter=Aa;exports.EmbeddedChatPrimitiveFormHeader=Wi;exports.EmbeddedChatPrimitiveFormHeading=Ni;exports.EmbeddedChatPrimitiveFormSubmit=Ia;exports.EmbeddedChatPrimitiveFormSuccess=Ma;exports.EmbeddedChatPrimitiveFormSuccessButton=Sa;exports.EmbeddedChatPrimitiveFormSuccessHeading=fa;exports.EmbeddedChatPrimitiveFormSuccessMessage=xa;exports.EmbeddedChatPrimitiveFormWrapper=Ri;exports.EmbeddedChatPrimitiveHeaderToolbar=ve;exports.EmbeddedChatPrimitiveHelpActions=gi;exports.EmbeddedChatPrimitiveHelpActionsMenu=_i;exports.EmbeddedChatPrimitiveHelpActionsMenuArrow=Ei;exports.EmbeddedChatPrimitiveHelpActionsMenuItem=Ai;exports.EmbeddedChatPrimitiveHelpActionsMenuItemIcon=ki;exports.EmbeddedChatPrimitiveHelpActionsTrigger=Fi;exports.EmbeddedChatPrimitiveInput=Tt;exports.EmbeddedChatPrimitiveInputFieldset=St;exports.EmbeddedChatPrimitiveInputGroup=Bt;exports.EmbeddedChatPrimitiveIntroMessageWrapper=Qe;exports.EmbeddedChatPrimitiveMarkdown=lt;exports.EmbeddedChatPrimitiveMessageAction=pt;exports.EmbeddedChatPrimitiveMessageAttachments=et;exports.EmbeddedChatPrimitiveMessageAttachmentsItem=it;exports.EmbeddedChatPrimitiveMessageAttachmentsItemIcon=at;exports.EmbeddedChatPrimitiveMessageAttachmentsItemTitle=rt;exports.EmbeddedChatPrimitiveMessageAttachmentsList=tt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreview=ot;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewBody=mt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewClose=ct;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewContent=st;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader=dt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay=nt;exports.EmbeddedChatPrimitiveMessageAvatar=Ke;exports.EmbeddedChatPrimitiveMessageAvatarContent=ze;exports.EmbeddedChatPrimitiveMessageAvatarFallback=Ge;exports.EmbeddedChatPrimitiveMessageAvatarImage=Ye;exports.EmbeddedChatPrimitiveMessageContent=Ze;exports.EmbeddedChatPrimitiveMessageContentWrapper=Xe;exports.EmbeddedChatPrimitiveMessageCustomAction=bt;exports.EmbeddedChatPrimitiveMessageCustomActions=Ct;exports.EmbeddedChatPrimitiveMessageHeader=$e;exports.EmbeddedChatPrimitiveMessageLoading=Ue;exports.EmbeddedChatPrimitiveMessageName=Je;exports.EmbeddedChatPrimitiveMessageSourceItem=Ft;exports.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs=_t;exports.EmbeddedChatPrimitiveMessageSourceItemDescription=It;exports.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart=Mt;exports.EmbeddedChatPrimitiveMessageSourceItemIcon=Et;exports.EmbeddedChatPrimitiveMessageSourceItemIndicator=ft;exports.EmbeddedChatPrimitiveMessageSourceItemTag=kt;exports.EmbeddedChatPrimitiveMessageSourceItemTitle=At;exports.EmbeddedChatPrimitiveMessageSources=vt;exports.EmbeddedChatPrimitiveMessageSourcesHeader=gt;exports.EmbeddedChatPrimitiveMessageSourcesList=Pt;exports.EmbeddedChatPrimitiveMessageToolbar=ut;exports.EmbeddedChatPrimitiveMessageWrapper=ce;exports.EmbeddedChatPrimitiveMessages=xe;exports.EmbeddedChatPrimitiveRoot=pe;exports.EmbeddedChatPrimitiveSendButton=yt;exports.EmbeddedChatPrimitiveSendButtonIcon=Ht;exports.EmbeddedChatPrimitiveTaglineBrandName=pi;exports.EmbeddedChatPrimitiveTaglineContainer=ui;exports.EmbeddedChatPrimitiveTaglineLogo=bi;exports.EmbeddedChatPrimitiveTaglineText=Ci;exports.EmbeddedChatPrimitiveToolbarHeader=_e;exports.EmbeddedChatPrimitiveToolbarHeaderWrapper=ge;exports.EmbeddedChatPrimitiveWorkflow=Ve;exports.EmbeddedChatPrimitiveWorkflows=qe;exports.EmbeddedChatPrimitiveWorkflowsLabel=We;exports.EmbeddedChatPrimitiveWorkflowsList=Ne;exports.EmbeddedChatPrimitiveWrapper=be;exports.ExampleQuestion=Re;exports.ExampleQuestionButton=Oe;exports.ExampleQuestions=we;exports.ExampleQuestionsLabel=Le;exports.ExampleQuestionsList=De;exports.FeedbackForm=Ti;exports.FeedbackItem=yi;exports.FeedbackItemCheckbox=Hi;exports.FeedbackItemCheckboxIndicator=ji;exports.FeedbackItemDescription=Li;exports.FeedbackItemLabel=wi;exports.FeedbackModal=Ii;exports.FeedbackModalBody=Bi;exports.FeedbackModalClose=Si;exports.FeedbackModalContent=fi;exports.FeedbackModalHeader=xi;exports.FeedbackModalOverlay=Mi;exports.FeedbackSubmitButton=Di;exports.Footer=xt;exports.Form=Oi;exports.FormCancel=ka;exports.FormClose=qi;exports.FormContent=Qi;exports.FormDescription=Vi;exports.FormError=Ea;exports.FormField=$i;exports.FormFieldCheckbox=Yi;exports.FormFieldCheckboxIndicator=Ji;exports.FormFieldCombobox=sa;exports.FormFieldComboboxContent=ha;exports.FormFieldComboboxControl=da;exports.FormFieldComboboxInput=ca;exports.FormFieldComboboxItem=ba;exports.FormFieldComboboxItemIndicator=va;exports.FormFieldComboboxItemText=pa;exports.FormFieldComboboxList=Ca;exports.FormFieldComboboxListEmpty=Pa;exports.FormFieldComboboxListItems=ga;exports.FormFieldComboboxPositioner=ua;exports.FormFieldComboboxSelectedTags=la;exports.FormFieldComboboxTrigger=ma;exports.FormFieldDescription=Fa;exports.FormFieldEmail=Ki;exports.FormFieldError=_a;exports.FormFieldFile=zi;exports.FormFieldLabel=Ui;exports.FormFieldSelect=Xi;exports.FormFieldSelectContent=ia;exports.FormFieldSelectIcon=ta;exports.FormFieldSelectItem=ra;exports.FormFieldSelectItemIndicator=na;exports.FormFieldSelectItemText=oa;exports.FormFieldSelectTrigger=Zi;exports.FormFieldSelectValue=ea;exports.FormFieldSelectViewport=aa;exports.FormFieldText=X;exports.FormFieldTextArea=Gi;exports.FormFooter=Aa;exports.FormHeader=Wi;exports.FormHeading=Ni;exports.FormSubmit=Ia;exports.FormSuccess=Ma;exports.FormSuccessButton=Sa;exports.FormSuccessHeading=fa;exports.FormSuccessMessage=xa;exports.FormWrapper=Ri;exports.Header=ar;exports.HeaderToolbar=ve;exports.HeaderToolbarWrapper=ge;exports.HelpActions=gi;exports.HelpActionsMenu=_i;exports.HelpActionsMenuArrow=Ei;exports.HelpActionsMenuItem=Ai;exports.HelpActionsMenuItemIcon=ki;exports.HelpActionsTrigger=Fi;exports.Input=Tt;exports.InputFieldset=St;exports.InputGroup=Bt;exports.IntroMessageWrapper=Qe;exports.Markdown=lt;exports.MessageAction=pt;exports.MessageAttachments=et;exports.MessageAttachmentsItem=it;exports.MessageAttachmentsItemIcon=at;exports.MessageAttachmentsItemTitle=rt;exports.MessageAttachmentsList=tt;exports.MessageAttachmentsPreview=ot;exports.MessageAttachmentsPreviewBody=mt;exports.MessageAttachmentsPreviewClose=ct;exports.MessageAttachmentsPreviewContent=st;exports.MessageAttachmentsPreviewHeader=dt;exports.MessageAttachmentsPreviewOverlay=nt;exports.MessageAvatar=Ke;exports.MessageAvatarContent=ze;exports.MessageAvatarFallback=Ge;exports.MessageAvatarImage=Ye;exports.MessageContent=Ze;exports.MessageContentWrapper=Xe;exports.MessageCustomAction=bt;exports.MessageCustomActions=Ct;exports.MessageHeader=$e;exports.MessageLoading=Ue;exports.MessageName=Je;exports.MessageSourceItem=Ft;exports.MessageSourceItemBreadcrumbIcon=Yr;exports.MessageSourceItemBreadcrumbs=_t;exports.MessageSourceItemDescription=It;exports.MessageSourceItemDescriptionPart=Mt;exports.MessageSourceItemIcon=Et;exports.MessageSourceItemIndicator=ft;exports.MessageSourceItemTag=kt;exports.MessageSourceItemTitle=At;exports.MessageSources=vt;exports.MessageSourcesHeader=gt;exports.MessageSourcesList=Pt;exports.MessageToolbar=ut;exports.MessageWrapper=ce;exports.Messages=xe;exports.PrimitiveMessagePart=Or;exports.Root=pe;exports.SendButton=yt;exports.SendButtonIcon=Ht;exports.TaglineBrandName=pi;exports.TaglineContainer=ui;exports.TaglineLogo=bi;exports.TaglineText=Ci;exports.ToolbarHeader=_e;exports.Workflow=Ve;exports.Workflows=qe;exports.WorkflowsLabel=We;exports.WorkflowsList=Ne;exports.Wrapper=be;
|
|
11
|
+
`);F(Q)},share:async()=>{},clear:d,stop:m},A={copy:p,share:M};return r.jsx(W.Tooltip,{delayDuration:0,open:A[e],children:r.jsx(Mo,{"data-type":e,"data-copied":u.dataAttr(p||M),className:`${o} ${e}`,children:r.jsx(ue,{action:e}),onClick:C.composeEventHandlers(i,R[e]),...n})})},fo=a.ikp("span",{_id:"aiChat__ChatActionLabel"}),ue=t=>{const{action:e,...i}=t,{aiChatSettings:o}=g.useInkeepConfig(),n=o.toolbarButtonLabels??{},s={help:n.getHelp??"Get Help",copy:n.copyChat??"Copy",share:n.share??"Share",clear:n.clear??"Clear",stop:n.stop??"Stop"};return r.jsx(fo,{children:s[e],...i})},xo=a.ikp(W.TooltipContent,{_id:"aiChat__ChatActionFeeback"}),gi=t=>{const{action:e,children:i,...o}=t,n={copy:"Copied!",share:"Link copied!"};return r.jsxs(xo,{sideOffset:5,...o,children:[r.jsx(W.Arrow,{}),i||n[e]]})},So=a.ikp(N.Root,{_id:"aiChatHelpActions"}),Pi=t=>{const{children:e,...i}=t,{aiChatSettings:o}=g.useInkeepConfig(),{getHelpOptions:n}=o;if(!n||(n??[]).length===0)return null;const{_pinned:s,_unpinned:d}=n.reduce((b,v)=>{const p=v.isPinnedToToolbar?"_pinned":"_unpinned";return{...b,[p]:[...b[p],v]}},{_pinned:[],_unpinned:[]}),m=d.length===1?[...s,d[0]]:s,c=d.length===1?[]:d,h=ae.useHelpMenuState();return r.jsx(ae.HelpMenuProvider,{value:h,children:r.jsx(So,{open:h.open,onOpenChange:h.setOpen,children:u.maybeRender(e,{pinned:m,unpinned:c}),...i})})},Bo=a.ikp(X,{_id:"aiChatHelpAction",action:"help"}),To=a.ikp("a",{_id:"aiChatHelpAction",target:"_blank",rel:"noreferrer"}),Fi=t=>{const{action:e,onClick:i,...o}=t,{handleAction:n,logHelpAction:s}=ne.useChatAction(e),d=e.action.type,m={"aria-label":e.name,"data-name":e.name,children:e.name,onClick:C.composeEventHandlers(i,()=>{n(),s()}),...o};return d==="open_link"?r.jsx(To,{href:e.action.url,...m}):r.jsx(Bo,{...m})},yo=a.ikp(N.Trigger,{_id:"aiChatHelpActions__Trigger"}),Ei=l.memo(t=>{const{aiChatSettings:e}=g.useInkeepConfig();return r.jsx(X,{action:"help",...t,asChild:!0,children:r.jsx(yo,{children:e.toolbarButtonLabels?.getHelp??"Get Help"})})}),Ho=a.ikp(N.Content,{_id:"aiChatHelpActions__Menu"}),_i=t=>r.jsx(Ho,{side:"top",sideOffset:8,align:"center",alignOffset:-10,...t}),Ai=a.ikp(N.Arrow,{_id:"aiChatHelpActions__MenuArrow"}),Ii=t=>{const{action:e,onClick:i,...o}=t,{handleAction:n,logHelpAction:s}=ne.useChatAction(e),{setOpen:d}=ae.useHelpMenu(),m=()=>{n({onOpenForm:()=>d(!1)}),s()},c=e.action.type,h=a.ikp(c==="open_link"?"a":"button",{_id:"aiChatHelpActions__MenuItem",children:e.name,"aria-label":e.name,"data-name":e.name,"data-type":e.action.type,...c==="open_link"&&{href:e.action.url,target:"_blank",rel:"noopener"},onClick:C.composeEventHandlers(i,m)});return r.jsx(h,{...o})},jo=a.ikp(L.BuiltInIconRenderer,{_id:"aiChatHelpActions_MenuItemIcon"}),ki=t=>{const{action:e,...i}=t;return e.icon?r.jsx(jo,{iconSettings:e.icon,...i}):null},wo=a.ikp(I.Root,{_id:"aiChatFeedbackModal"}),Mi=t=>{const{onOpenChange:e,...i}=t,{currentFeedback:o,setCurrentFeedback:n}=oe.useMessageFeedback();return r.jsx(wo,{open:o!==null,onOpenChange:C.composeEventHandlers(e,()=>n(null)),...i})},fi=a.ikp(I.Overlay,{_id:"aiChatFeedbackModal__Overlay"}),xi=a.ikp(I.Content,{_id:"aiChatFeedbackModal__Content","aria-describedby":void 0}),Si=a.ikp(I.Title,{_id:"aiChatFeedbackModal__Header",children:"Help improve my answers!"}),Bi=a.ikp(I.Close,{_id:"aiChatFeedbackModal__Close",children:r.jsx(S.CustomIcon,{iconKey:"close"})}),Ti=a.ikp("div",{_id:"aiChatFeedbackModal__Body"}),Lo=a.ikp("form",{_id:"aiChatFeedbackForm"}),yi=t=>{const{onSubmit:e,...i}=t,{submitNegativeFeedback:o,currentFeedback:n,setCurrentFeedback:s}=oe.useMessageFeedback(),d=m=>{m.preventDefault();const c=m.target,h=new FormData(c),b=Object.fromEntries(h.entries());n&&(o(n,b),s(null))};return r.jsx(Lo,{onSubmit:C.composeEventHandlers(e,d),...i})},Do=a.ikp("div",{_id:"aiChatFeedbackItem"}),Hi=t=>{const{name:e,...i}=t;return r.jsx(Z.FeedbackItemProvider,{name:e,children:r.jsx(Do,{...i})})},Ro=a.ikp(J.Root,{_id:"aiChatFeedbackItem__Checkbox"}),ji=t=>{const{name:e,focusItem:i}=Z.useFeedbackItem(),{onCheckedChange:o,...n}=t,s=d=>{d&&i?.current?.focus()};return r.jsx(Ro,{id:`feedback-${e}`,name:e,onCheckedChange:C.composeEventHandlers(o,s),...n})},wi=a.ikp(J.Indicator,{_id:"aiChatFeedbackItem__CheckboxIndicator",children:r.jsx(be.CheckboxIcon,{})}),Oo=a.ikp("label",{_id:"aiChatFeedbackItem__Label"}),Li=t=>{const{name:e}=Z.useFeedbackItem(),i={unrelated_response:"Didn't answer my question",inaccurate_statement:"Inaccurate statement",inaccurate_code_snippet:"Inaccurate code snippet",irrelevant_citations:"Irrelevant citations"};return r.jsx(Oo,{htmlFor:`feedback-${e}`,children:i[e],...t})},qo=a.ikp("textarea",{_id:"aiChatFeedbackItem__Description",placeholder:"Please describe"}),Di=t=>{const{name:e,focusItem:i}=Z.useFeedbackItem();return r.jsx(qo,{ref:i,name:`${e}:description`,...t})},Ri=a.ikp("button",{_id:"aiChatFeedbackForm__SubmitButton",children:"Submit",type:"submit"}),No=a.ikp("div",{_id:"aiChatForm__Wrapper"}),Oi=t=>{const{form:e}=k.useChatForm();return e?r.jsx(No,{...t}):null},Wo=a.ikp("form",{_id:"aiChatForm"}),qi=t=>{const{onSubmit:e,...i}=t,{conversationId:o,messages:n}=E.useChat(),{handleSubmit:s,isSuccess:d}=k.useChatForm();return d?null:r.jsx(Wo,{onSubmit:C.composeEventHandlers(e,m=>s(m,{id:o,messages:n})),...i})},Vo=a.ikp("button",{_id:"aiChatForm__Close",children:r.jsx(S.CustomIcon,{iconKey:"close"})}),Ni=t=>{const{onClick:e,...i}=t,{closeForm:o}=k.useChatForm();return r.jsx(Vo,{onClick:C.composeEventHandlers(e,o),...i})},Wi=a.ikp("div",{_id:"aiChatForm__Header"}),Qo=a.ikp("h2",{_id:"aiChatForm__Heading"}),Vi=t=>{const{form:e}=k.useChatForm();return e?.heading?r.jsx(Qo,{children:e.heading,...t}):null},Uo=a.ikp(Y.Markdown,{_id:"aiChatForm__Description"}),Qi=t=>{const{form:e}=k.useChatForm();return e?.description?r.jsx(Uo,{shouldOpenLinksInNewTab:!0,children:e.description,...t}):null},$o=a.ikp("div",{_id:"aiChatForm__Content"}),Ui=t=>{const{children:e,...i}=t,{getFields:o}=k.useChatForm(),{conversationId:n}=E.useChat(),s=o(n)||[];return r.jsx($o,{children:u.maybeRender(e,s),...i})},Ko=a.ikp("div",{_id:"aiChatForm__Field"}),$i=t=>{const{field:e,autoFocus:i,...o}=t,{control:n,errors:s}=k.useChatForm();return r.jsx(Va.Controller,{name:e.name,control:n,rules:{required:e.isRequired?`${e.label} is required.`:void 0},render:({field:d})=>{const m=d.value!==void 0||e.inputType==="file";return r.jsx(j.FormFieldProvider,{"data-invalid":u.dataAttr(!!s[e.name]),field:e,fieldProps:d,autoFocus:i,children:m&&r.jsx(Ko,{"data-input-type":e.inputType,"data-hidden":u.dataAttr(e.isHidden),...o})})}})},zo=a.ikp("label",{_id:"aiChatForm__FieldLabel"}),Ki=t=>{const{field:e}=j.useFormField();return r.jsx(zo,{"data-required":u.dataAttr(e.isRequired),htmlFor:e.name,children:e.label,...t})},Go=a.ikp("input",{_id:"aiChatForm__FieldText",type:"text"}),ee=t=>{const{field:e,error:i,fieldProps:{onChange:o,onBlur:n,...s},autoFocus:d}=j.useFormField(),{onChange:m,onBlur:c,...h}=t;return r.jsx(Go,{id:e.name,autoFocus:d,placeholder:"placeholder"in e?e.placeholder:void 0,"data-invalid":u.dataAttr(!!i),onChange:C.composeEventHandlers(m,o),onBlur:C.composeEventHandlers(c,n),...s,...h})},zi=a.ikp(ee,{_id:"aiChatForm__FieldEmail",type:"email"}),Yo=a.ikp("input",{_id:"aiChatForm__FieldFile",type:"file",multiple:!0}),Gi=t=>{const{field:e,error:i,fieldProps:{value:o,onChange:n,onBlur:s,...d},autoFocus:m}=j.useFormField(),{onChange:c,onBlur:h,...b}=t,v=p=>{const F=p.target.files;n(F)};return r.jsx(Yo,{id:e.name,autoFocus:m,"data-value":o,"data-invalid":u.dataAttr(!!i),...b,...d,onChange:C.composeEventHandlers(c,v),onBlur:C.composeEventHandlers(h,s)})},Yi=a.ikp(ee,{_id:"aiChatForm__FieldTextArea",type:"textarea",asChild:!0,children:r.jsx(re,{maxRows:8})}),Zo=a.ikp(J.Root,{_id:"aiChatForm__FieldCheckbox"}),Zi=t=>{const{field:e,error:i,fieldProps:o,autoFocus:n}=j.useFormField(),{onCheckedChange:s,...d}=t;return r.jsx(Zo,{id:e.name,name:e.name,autoFocus:n,"data-invalid":u.dataAttr(!!i),checked:o.value,onCheckedChange:C.composeEventHandlers(s,o.onChange),...d})},Ji=a.ikp(J.Indicator,{_id:"aiChatForm__FieldCheckboxIndicator",children:r.jsx(be.CheckboxIcon,{})}),Jo=a.ikp(w.Root,{_id:"aiChatForm__FieldSelect"}),Xi=t=>{const{field:e,error:i,fieldProps:o}=j.useFormField(),{onValueChange:n,...s}=t;return r.jsx(Jo,{name:e.name,"data-invalid":u.dataAttr(!!i),value:o.value,onValueChange:C.composeEventHandlers(n,o.onChange),...s})},ea=a.ikp(w.Trigger,{_id:"aiChatForm__FieldSelect__Trigger"}),Xo=a.ikp(w.Value,{_id:"aiChatForm__FieldSelect__Value"}),ta=t=>{const{field:e}=j.useFormField();return r.jsx(Xo,{placeholder:"placeholder"in e?e.placeholder:void 0,...t})},ia=a.ikp(w.Icon,{_id:"aiChatForm__FieldSelect__Icon",asChild:!0,children:r.jsx(L.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})}),aa=a.ikp(w.Content,{_id:"aiChatForm__FieldSelect__Content",position:"popper"}),ra=a.ikp(w.Viewport,{_id:"aiChatForm__FieldSelect__Viewport"}),oa=a.ikp(w.Item,{_id:"aiChatForm__FieldSelect__Item"}),na=a.ikp(w.ItemText,{_id:"aiChatForm__FieldSelect__ItemText"}),sa=a.ikp(w.ItemIndicator,{_id:"aiChatForm__FieldSelect__ItemIndicator",asChild:!0,children:r.jsx(L.BuiltInIconRenderer,{iconSettings:{builtIn:"LuCheck"}})}),da=t=>{const{field:e,error:i,fieldProps:o}=j.useFormField(),{onValueChange:n,...s}=t;if(e.inputType!=="combobox")return null;const d=e,{items:m,placeholder:c,multiple:h}=d,b=Array.isArray(o.value)?o.value:[],v={name:e.name,"data-invalid":u.dataAttr(!!i)||void 0,items:m,defaultValue:b,multiple:h??!1,placeholder:c,onValueChange:C.composeEventHandlers(n,p=>o.onChange(p.value)),...s};return r.jsx(B.ComboboxRoot,{...v})},en={_id:"aiChatForm__FieldCombobox__Control"},ma=a.ikp(B.ComboboxControl,en),tn={_id:"aiChatForm__FieldCombobox__Input"},ca=a.ikp(B.ComboboxInput,tn),an={_id:"aiChatForm__FieldCombobox__Trigger",children:r.jsx(L.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})},la=a.ikp(B.ComboboxTrigger,an),rn={_id:"aiChatForm__FieldCombobox__SelectedTags"},ha=a.ikp(B.ComboboxSelectedTags,rn),on={_id:"aiChatForm__FieldCombobox__Content"},ua=a.ikp(B.ComboboxContent,on),nn={_id:"aiChatForm__FieldCombobox__Positioner"},Ca=a.ikp(B.ComboboxPositioner,nn),sn={_id:"aiChatForm__FieldCombobox__List"},ba=a.ikp(B.ComboboxList,sn),pa=a.ikp(B.ComboboxItem,{_id:"aiChatForm__FieldCombobox__Item"}),va=a.ikp(B.ComboboxItemText,{_id:"aiChatForm__FieldCombobox__ItemText"}),ga=a.ikp(B.ComboboxItemIndicator,{_id:"aiChatForm__FieldCombobox__ItemIndicator"}),Pa=B.ComboboxListItems,Fa=a.ikp(B.ComboboxListEmpty,{_id:"aiChatForm__FieldCombobox__ListEmpty"}),dn=a.ikp("p",{_id:"aiChatForm__FieldDescription"}),Ea=t=>{const{field:e}=j.useFormField();return e.description?r.jsx(dn,{children:e.description,...t}):null},mn=a.ikp("span",{_id:"aiChatForm__FieldError"}),_a=t=>{const{error:e}=j.useFormField();return e?r.jsx(mn,{children:e.message?.toString(),...t}):null},cn=a.ikp("span",{_id:"aiChatForm__Error"}),Aa=t=>{const{formError:e}=k.useChatForm();return e?r.jsx(cn,{children:e.message,...t}):null},Ia=a.ikp("div",{_id:"aiChatForm__Footer"}),ln=a.ikp("button",{_id:"aiChatForm__Cancel",children:"Cancel",type:"button"}),ka=t=>{const{onClick:e,...i}=t,{closeForm:o}=k.useChatForm();return r.jsx(ln,{onClick:C.composeEventHandlers(e,o),...i})},hn=a.ikp("button",{_id:"aiChatForm__Submit",children:"Submit",type:"submit"}),Ma=t=>{const{onClick:e,...i}=t,{isSubmitting:o,form:n}=k.useChatForm(),s=n?.buttons.submit.label||"Submit";return r.jsx(hn,{disabled:o,...i,children:s})},un=a.ikp("div",{_id:"aiChatForm__Success"}),fa=t=>{const{isSuccess:e}=k.useChatForm();return e?r.jsx(un,{...t}):null},Cn=a.ikp("h2",{_id:"aiChatForm__SuccessHeading"}),xa=t=>{const{form:e}=k.useChatForm();return r.jsx(Cn,{children:e?.successView?.heading,...t})},bn=a.ikp(Y.Markdown,{_id:"aiChatForm__SuccessMessage"}),Sa=t=>{const{form:e}=k.useChatForm();return r.jsx(bn,{shouldOpenLinksInNewTab:!0,children:e?.successView?.message,...t})},pn=a.ikp("button",{_id:"aiChatForm__SuccessButton"}),Ba=t=>{const{onClick:e,...i}=t,{form:o,closeForm:n}=k.useChatForm(),s=o?.successView?.doneButton;if(!s)return null;const d=s.icon&&r.jsx(L.BuiltInIconRenderer,{iconSettings:s.icon}),m=s.label;return r.jsx(pn,{onClick:C.composeEventHandlers(e,n),children:r.jsxs(r.Fragment,{children:[d,m]}),...i})};exports.Provider=E.ChatProvider;exports.DropZone=P.EmbeddedChatPrimitiveDropZone;exports.FileContent=P.EmbeddedChatPrimitiveFileContent;exports.FileInput=P.EmbeddedChatPrimitiveFileInput;exports.FileItem=P.EmbeddedChatPrimitiveFileItem;exports.FileList=P.EmbeddedChatPrimitiveFileList;exports.FileName=P.EmbeddedChatPrimitiveFileName;exports.FilePreviewTrigger=P.EmbeddedChatPrimitiveFilePreviewTrigger;exports.FileRemove=P.EmbeddedChatPrimitiveFileRemove;exports.FileRemoveIcon=P.EmbeddedChatPrimitiveFileRemoveIcon;exports.FileThumbnail=P.EmbeddedChatPrimitiveFileThumbnail;exports.FileTypeIcon=P.EmbeddedChatPrimitiveFileTypeIcon;exports.FileUploadButton=P.EmbeddedChatPrimitiveFileUploadButton;exports.FileUploadButtonIcon=P.EmbeddedChatPrimitiveFileUploadButtonIcon;exports.InputFieldset=P.EmbeddedChatPrimitiveInputFieldset;exports.InputNotification=P.EmbeddedChatPrimitiveInputNotification;exports.InputNotificationClose=P.EmbeddedChatPrimitiveInputNotificationClose;exports.InputNotificationContent=P.EmbeddedChatPrimitiveInputNotificationContent;exports.InputNotificationHeader=P.EmbeddedChatPrimitiveInputNotificationHeader;exports.InputNotificationMessage=P.EmbeddedChatPrimitiveInputNotificationMessage;exports.InputNotificationTitle=P.EmbeddedChatPrimitiveInputNotificationTitle;exports.MessageFile=P.EmbeddedChatPrimitiveMessageFile;exports.MessageFiles=P.EmbeddedChatPrimitiveMessageFiles;exports.ImagePreviewModal=V.EmbeddedChatPrimitiveImagePreviewModal;exports.ImagePreviewModalClose=V.EmbeddedChatPrimitiveImagePreviewModalClose;exports.ImagePreviewModalContent=V.EmbeddedChatPrimitiveImagePreviewModalContent;exports.ImagePreviewModalFileName=V.EmbeddedChatPrimitiveImagePreviewModalFileName;exports.ImagePreviewModalFooter=V.EmbeddedChatPrimitiveImagePreviewModalFooter;exports.ImagePreviewModalImage=V.EmbeddedChatPrimitiveImagePreviewModalImage;exports.ImagePreviewModalOverlay=V.EmbeddedChatPrimitiveImagePreviewModalOverlay;exports.ActionBar=hi;exports.Actions=ui;exports.AttachmentsBar=wt;exports.AttachmentsBarActions=Nt;exports.AttachmentsBarAttachment=Dt;exports.AttachmentsBarAttachmentDelete=qt;exports.AttachmentsBarAttachmentIcon=Rt;exports.AttachmentsBarAttachmentTitle=Ot;exports.AttachmentsBarForm=ii;exports.AttachmentsBarFormContent=si;exports.AttachmentsBarFormContentError=ci;exports.AttachmentsBarFormContentInput=mi;exports.AttachmentsBarFormContentLabel=di;exports.AttachmentsBarFormSubmitButton=li;exports.AttachmentsBarFormTitle=ai;exports.AttachmentsBarFormTitleError=ni;exports.AttachmentsBarFormTitleInput=oi;exports.AttachmentsBarFormTitleLabel=ri;exports.AttachmentsBarInfoTip=Wt;exports.AttachmentsBarInfoTipArrow=he;exports.AttachmentsBarInfoTipIcon=Vt;exports.AttachmentsBarInfoTipText=Qt;exports.AttachmentsBarInput=$t;exports.AttachmentsBarInputs=Ut;exports.AttachmentsBarList=Lt;exports.AttachmentsBarModal=Kt;exports.AttachmentsBarModalBody=ti;exports.AttachmentsBarModalClose=ei;exports.AttachmentsBarModalContent=Gt;exports.AttachmentsBarModalDescription=Jt;exports.AttachmentsBarModalHeader=Yt;exports.AttachmentsBarModalHeading=Zt;exports.AttachmentsBarModalHelp=Xt;exports.AttachmentsBarModalOverlay=zt;exports.ChatAction=X;exports.ChatActionFeedback=gi;exports.ChatActionLabel=ue;exports.ChatHelpAction=Fi;exports.ChatHistoryButton=_e;exports.ChatHistoryButtonIcon=Ee;exports.Content=Ie;exports.ContentScrollArea=ke;exports.ContentScrollAreaCorner=Se;exports.ContentScrollAreaScrollbar=fe;exports.ContentScrollAreaThumb=xe;exports.ContentScrollAreaViewport=Me;exports.Disclaimer=Te;exports.DisclaimerArrow=Le;exports.DisclaimerContent=je;exports.DisclaimerLabel=ye;exports.DisclaimerText=we;exports.DisclaimerTrigger=He;exports.DynamicComponent=Ct;exports.EmbeddedChatPrimitiveActionBar=hi;exports.EmbeddedChatPrimitiveActions=ui;exports.EmbeddedChatPrimitiveAttachmentsBar=wt;exports.EmbeddedChatPrimitiveAttachmentsBarActions=Nt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachment=Dt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete=qt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon=Rt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle=Ot;exports.EmbeddedChatPrimitiveAttachmentsBarForm=ii;exports.EmbeddedChatPrimitiveAttachmentsBarFormContent=si;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentError=ci;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentInput=mi;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentLabel=di;exports.EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton=li;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitle=ai;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleError=ni;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleInput=oi;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel=ri;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTip=Wt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow=he;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon=Vt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipText=Qt;exports.EmbeddedChatPrimitiveAttachmentsBarInput=$t;exports.EmbeddedChatPrimitiveAttachmentsBarInputs=Ut;exports.EmbeddedChatPrimitiveAttachmentsBarList=Lt;exports.EmbeddedChatPrimitiveAttachmentsBarModal=Kt;exports.EmbeddedChatPrimitiveAttachmentsBarModalBody=ti;exports.EmbeddedChatPrimitiveAttachmentsBarModalClose=ei;exports.EmbeddedChatPrimitiveAttachmentsBarModalContent=Gt;exports.EmbeddedChatPrimitiveAttachmentsBarModalDescription=Jt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeader=Yt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeading=Zt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHelp=Xt;exports.EmbeddedChatPrimitiveAttachmentsBarModalOverlay=zt;exports.EmbeddedChatPrimitiveChatAction=X;exports.EmbeddedChatPrimitiveChatActionFeedback=gi;exports.EmbeddedChatPrimitiveChatActionLabel=ue;exports.EmbeddedChatPrimitiveChatHelpAction=Fi;exports.EmbeddedChatPrimitiveChatHistoryButton=_e;exports.EmbeddedChatPrimitiveChatHistoryButtonIcon=Ee;exports.EmbeddedChatPrimitiveContent=Ie;exports.EmbeddedChatPrimitiveContentScrollArea=ke;exports.EmbeddedChatPrimitiveContentScrollAreaCorner=Se;exports.EmbeddedChatPrimitiveContentScrollAreaScrollbar=fe;exports.EmbeddedChatPrimitiveContentScrollAreaThumb=xe;exports.EmbeddedChatPrimitiveContentScrollAreaViewport=Me;exports.EmbeddedChatPrimitiveDisclaimer=Te;exports.EmbeddedChatPrimitiveDisclaimerArrow=Le;exports.EmbeddedChatPrimitiveDisclaimerContent=je;exports.EmbeddedChatPrimitiveDisclaimerLabel=ye;exports.EmbeddedChatPrimitiveDisclaimerText=we;exports.EmbeddedChatPrimitiveDisclaimerTrigger=He;exports.EmbeddedChatPrimitiveDynamicComponent=Ct;exports.EmbeddedChatPrimitiveExampleQuestion=qe;exports.EmbeddedChatPrimitiveExampleQuestionButton=Ne;exports.EmbeddedChatPrimitiveExampleQuestions=De;exports.EmbeddedChatPrimitiveExampleQuestionsLabel=Re;exports.EmbeddedChatPrimitiveExampleQuestionsList=Oe;exports.EmbeddedChatPrimitiveFeedbackForm=yi;exports.EmbeddedChatPrimitiveFeedbackItem=Hi;exports.EmbeddedChatPrimitiveFeedbackItemCheckbox=ji;exports.EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator=wi;exports.EmbeddedChatPrimitiveFeedbackItemDescription=Di;exports.EmbeddedChatPrimitiveFeedbackItemLabel=Li;exports.EmbeddedChatPrimitiveFeedbackModal=Mi;exports.EmbeddedChatPrimitiveFeedbackModalBody=Ti;exports.EmbeddedChatPrimitiveFeedbackModalClose=Bi;exports.EmbeddedChatPrimitiveFeedbackModalContent=xi;exports.EmbeddedChatPrimitiveFeedbackModalHeader=Si;exports.EmbeddedChatPrimitiveFeedbackModalOverlay=fi;exports.EmbeddedChatPrimitiveFeedbackSubmitButton=Ri;exports.EmbeddedChatPrimitiveFooter=Bt;exports.EmbeddedChatPrimitiveForm=qi;exports.EmbeddedChatPrimitiveFormCancel=ka;exports.EmbeddedChatPrimitiveFormClose=Ni;exports.EmbeddedChatPrimitiveFormContent=Ui;exports.EmbeddedChatPrimitiveFormDescription=Qi;exports.EmbeddedChatPrimitiveFormError=Aa;exports.EmbeddedChatPrimitiveFormField=$i;exports.EmbeddedChatPrimitiveFormFieldCheckbox=Zi;exports.EmbeddedChatPrimitiveFormFieldCheckboxIndicator=Ji;exports.EmbeddedChatPrimitiveFormFieldCombobox=da;exports.EmbeddedChatPrimitiveFormFieldComboboxContent=ua;exports.EmbeddedChatPrimitiveFormFieldComboboxControl=ma;exports.EmbeddedChatPrimitiveFormFieldComboboxInput=ca;exports.EmbeddedChatPrimitiveFormFieldComboboxItem=pa;exports.EmbeddedChatPrimitiveFormFieldComboboxItemIndicator=ga;exports.EmbeddedChatPrimitiveFormFieldComboboxItemText=va;exports.EmbeddedChatPrimitiveFormFieldComboboxList=ba;exports.EmbeddedChatPrimitiveFormFieldComboboxListEmpty=Fa;exports.EmbeddedChatPrimitiveFormFieldComboboxListItems=Pa;exports.EmbeddedChatPrimitiveFormFieldComboboxPositioner=Ca;exports.EmbeddedChatPrimitiveFormFieldComboboxSelectedTags=ha;exports.EmbeddedChatPrimitiveFormFieldComboboxTrigger=la;exports.EmbeddedChatPrimitiveFormFieldDescription=Ea;exports.EmbeddedChatPrimitiveFormFieldEmail=zi;exports.EmbeddedChatPrimitiveFormFieldError=_a;exports.EmbeddedChatPrimitiveFormFieldFile=Gi;exports.EmbeddedChatPrimitiveFormFieldLabel=Ki;exports.EmbeddedChatPrimitiveFormFieldSelect=Xi;exports.EmbeddedChatPrimitiveFormFieldSelectContent=aa;exports.EmbeddedChatPrimitiveFormFieldSelectIcon=ia;exports.EmbeddedChatPrimitiveFormFieldSelectItem=oa;exports.EmbeddedChatPrimitiveFormFieldSelectItemIndicator=sa;exports.EmbeddedChatPrimitiveFormFieldSelectItemText=na;exports.EmbeddedChatPrimitiveFormFieldSelectTrigger=ea;exports.EmbeddedChatPrimitiveFormFieldSelectValue=ta;exports.EmbeddedChatPrimitiveFormFieldSelectViewport=ra;exports.EmbeddedChatPrimitiveFormFieldText=ee;exports.EmbeddedChatPrimitiveFormFieldTextArea=Yi;exports.EmbeddedChatPrimitiveFormFooter=Ia;exports.EmbeddedChatPrimitiveFormHeader=Wi;exports.EmbeddedChatPrimitiveFormHeading=Vi;exports.EmbeddedChatPrimitiveFormSubmit=Ma;exports.EmbeddedChatPrimitiveFormSuccess=fa;exports.EmbeddedChatPrimitiveFormSuccessButton=Ba;exports.EmbeddedChatPrimitiveFormSuccessHeading=xa;exports.EmbeddedChatPrimitiveFormSuccessMessage=Sa;exports.EmbeddedChatPrimitiveFormWrapper=Oi;exports.EmbeddedChatPrimitiveHeaderToolbar=Pe;exports.EmbeddedChatPrimitiveHelpActions=Pi;exports.EmbeddedChatPrimitiveHelpActionsMenu=_i;exports.EmbeddedChatPrimitiveHelpActionsMenuArrow=Ai;exports.EmbeddedChatPrimitiveHelpActionsMenuItem=Ii;exports.EmbeddedChatPrimitiveHelpActionsMenuItemIcon=ki;exports.EmbeddedChatPrimitiveHelpActionsTrigger=Ei;exports.EmbeddedChatPrimitiveInput=yt;exports.EmbeddedChatPrimitiveInputGroup=Tt;exports.EmbeddedChatPrimitiveIntroMessageWrapper=$e;exports.EmbeddedChatPrimitiveMarkdown=ut;exports.EmbeddedChatPrimitiveMessageAction=gt;exports.EmbeddedChatPrimitiveMessageAttachments=it;exports.EmbeddedChatPrimitiveMessageAttachmentsItem=rt;exports.EmbeddedChatPrimitiveMessageAttachmentsItemIcon=ot;exports.EmbeddedChatPrimitiveMessageAttachmentsItemTitle=nt;exports.EmbeddedChatPrimitiveMessageAttachmentsList=at;exports.EmbeddedChatPrimitiveMessageAttachmentsPreview=st;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewBody=ht;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewClose=lt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewContent=mt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader=ct;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay=dt;exports.EmbeddedChatPrimitiveMessageAvatar=Ge;exports.EmbeddedChatPrimitiveMessageAvatarContent=Ye;exports.EmbeddedChatPrimitiveMessageAvatarFallback=Ze;exports.EmbeddedChatPrimitiveMessageAvatarImage=Je;exports.EmbeddedChatPrimitiveMessageContent=tt;exports.EmbeddedChatPrimitiveMessageContentWrapper=et;exports.EmbeddedChatPrimitiveMessageCustomAction=vt;exports.EmbeddedChatPrimitiveMessageCustomActions=pt;exports.EmbeddedChatPrimitiveMessageHeader=Ke;exports.EmbeddedChatPrimitiveMessageLoading=ze;exports.EmbeddedChatPrimitiveMessageName=Xe;exports.EmbeddedChatPrimitiveMessageSourceItem=_t;exports.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs=At;exports.EmbeddedChatPrimitiveMessageSourceItemDescription=ft;exports.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart=xt;exports.EmbeddedChatPrimitiveMessageSourceItemIcon=It;exports.EmbeddedChatPrimitiveMessageSourceItemIndicator=St;exports.EmbeddedChatPrimitiveMessageSourceItemTag=Mt;exports.EmbeddedChatPrimitiveMessageSourceItemTitle=kt;exports.EmbeddedChatPrimitiveMessageSources=Pt;exports.EmbeddedChatPrimitiveMessageSourcesHeader=Ft;exports.EmbeddedChatPrimitiveMessageSourcesList=Et;exports.EmbeddedChatPrimitiveMessageToolbar=bt;exports.EmbeddedChatPrimitiveMessageWrapper=le;exports.EmbeddedChatPrimitiveMessages=Be;exports.EmbeddedChatPrimitiveRoot=ge;exports.EmbeddedChatPrimitiveSendButton=Ht;exports.EmbeddedChatPrimitiveSendButtonIcon=jt;exports.EmbeddedChatPrimitiveTaglineBrandName=vi;exports.EmbeddedChatPrimitiveTaglineContainer=Ci;exports.EmbeddedChatPrimitiveTaglineLogo=pi;exports.EmbeddedChatPrimitiveTaglineText=bi;exports.EmbeddedChatPrimitiveToolbarHeader=Ae;exports.EmbeddedChatPrimitiveToolbarHeaderWrapper=Fe;exports.EmbeddedChatPrimitiveWorkflow=Ue;exports.EmbeddedChatPrimitiveWorkflows=We;exports.EmbeddedChatPrimitiveWorkflowsLabel=Ve;exports.EmbeddedChatPrimitiveWorkflowsList=Qe;exports.EmbeddedChatPrimitiveWrapper=ve;exports.ExampleQuestion=qe;exports.ExampleQuestionButton=Ne;exports.ExampleQuestions=De;exports.ExampleQuestionsLabel=Re;exports.ExampleQuestionsList=Oe;exports.FeedbackForm=yi;exports.FeedbackItem=Hi;exports.FeedbackItemCheckbox=ji;exports.FeedbackItemCheckboxIndicator=wi;exports.FeedbackItemDescription=Di;exports.FeedbackItemLabel=Li;exports.FeedbackModal=Mi;exports.FeedbackModalBody=Ti;exports.FeedbackModalClose=Bi;exports.FeedbackModalContent=xi;exports.FeedbackModalHeader=Si;exports.FeedbackModalOverlay=fi;exports.FeedbackSubmitButton=Ri;exports.Footer=Bt;exports.Form=qi;exports.FormCancel=ka;exports.FormClose=Ni;exports.FormContent=Ui;exports.FormDescription=Qi;exports.FormError=Aa;exports.FormField=$i;exports.FormFieldCheckbox=Zi;exports.FormFieldCheckboxIndicator=Ji;exports.FormFieldCombobox=da;exports.FormFieldComboboxContent=ua;exports.FormFieldComboboxControl=ma;exports.FormFieldComboboxInput=ca;exports.FormFieldComboboxItem=pa;exports.FormFieldComboboxItemIndicator=ga;exports.FormFieldComboboxItemText=va;exports.FormFieldComboboxList=ba;exports.FormFieldComboboxListEmpty=Fa;exports.FormFieldComboboxListItems=Pa;exports.FormFieldComboboxPositioner=Ca;exports.FormFieldComboboxSelectedTags=ha;exports.FormFieldComboboxTrigger=la;exports.FormFieldDescription=Ea;exports.FormFieldEmail=zi;exports.FormFieldError=_a;exports.FormFieldFile=Gi;exports.FormFieldLabel=Ki;exports.FormFieldSelect=Xi;exports.FormFieldSelectContent=aa;exports.FormFieldSelectIcon=ia;exports.FormFieldSelectItem=oa;exports.FormFieldSelectItemIndicator=sa;exports.FormFieldSelectItemText=na;exports.FormFieldSelectTrigger=ea;exports.FormFieldSelectValue=ta;exports.FormFieldSelectViewport=ra;exports.FormFieldText=ee;exports.FormFieldTextArea=Yi;exports.FormFooter=Ia;exports.FormHeader=Wi;exports.FormHeading=Vi;exports.FormSubmit=Ma;exports.FormSuccess=fa;exports.FormSuccessButton=Ba;exports.FormSuccessHeading=xa;exports.FormSuccessMessage=Sa;exports.FormWrapper=Oi;exports.Header=rr;exports.HeaderToolbar=Pe;exports.HeaderToolbarWrapper=Fe;exports.HelpActions=Pi;exports.HelpActionsMenu=_i;exports.HelpActionsMenuArrow=Ai;exports.HelpActionsMenuItem=Ii;exports.HelpActionsMenuItemIcon=ki;exports.HelpActionsTrigger=Ei;exports.Input=yt;exports.InputGroup=Tt;exports.IntroMessageWrapper=$e;exports.Markdown=ut;exports.MessageAction=gt;exports.MessageAttachments=it;exports.MessageAttachmentsItem=rt;exports.MessageAttachmentsItemIcon=ot;exports.MessageAttachmentsItemTitle=nt;exports.MessageAttachmentsList=at;exports.MessageAttachmentsPreview=st;exports.MessageAttachmentsPreviewBody=ht;exports.MessageAttachmentsPreviewClose=lt;exports.MessageAttachmentsPreviewContent=mt;exports.MessageAttachmentsPreviewHeader=ct;exports.MessageAttachmentsPreviewOverlay=dt;exports.MessageAvatar=Ge;exports.MessageAvatarContent=Ye;exports.MessageAvatarFallback=Ze;exports.MessageAvatarImage=Je;exports.MessageContent=tt;exports.MessageContentWrapper=et;exports.MessageCustomAction=vt;exports.MessageCustomActions=pt;exports.MessageHeader=Ke;exports.MessageLoading=ze;exports.MessageName=Xe;exports.MessageSourceItem=_t;exports.MessageSourceItemBreadcrumbIcon=Zr;exports.MessageSourceItemBreadcrumbs=At;exports.MessageSourceItemDescription=ft;exports.MessageSourceItemDescriptionPart=xt;exports.MessageSourceItemIcon=It;exports.MessageSourceItemIndicator=St;exports.MessageSourceItemTag=Mt;exports.MessageSourceItemTitle=kt;exports.MessageSources=Pt;exports.MessageSourcesHeader=Ft;exports.MessageSourcesList=Et;exports.MessageToolbar=bt;exports.MessageWrapper=le;exports.Messages=Be;exports.PrimitiveMessagePart=qr;exports.Root=ge;exports.SendButton=Ht;exports.SendButtonIcon=jt;exports.TaglineBrandName=vi;exports.TaglineContainer=Ci;exports.TaglineLogo=pi;exports.TaglineText=bi;exports.ToolbarHeader=Ae;exports.Workflow=Ue;exports.Workflows=We;exports.WorkflowsLabel=Ve;exports.WorkflowsList=Qe;exports.Wrapper=ve;
|
|
@@ -215,7 +215,6 @@ export declare const EmbeddedChatPrimitiveMessageSourceItemDescriptionPart: (pro
|
|
|
215
215
|
declare const PrimitiveMessageSourceItemIndicator: React.ForwardRefExoticComponent< PolymorphicProps & Omit< CustomIconProps, "_id"> & Partial<Pick< CustomIconProps, "_id">>>;
|
|
216
216
|
export declare const EmbeddedChatPrimitiveMessageSourceItemIndicator: (props: Omit<ComponentPropsWithRef<typeof PrimitiveMessageSourceItemIndicator>, "iconKey">) => import("react/jsx-runtime").JSX.Element;
|
|
217
217
|
export declare const EmbeddedChatPrimitiveFooter: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
|
|
218
|
-
export declare const EmbeddedChatPrimitiveInputFieldset: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
|
|
219
218
|
export declare const EmbeddedChatPrimitiveInputGroup: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
|
|
220
219
|
type EmbeddedChatPrimitiveInputProps = TextareaAutosizeProps & ComponentPropsWithRef<'textarea'>;
|
|
221
220
|
export declare const EmbeddedChatPrimitiveInput: React.ForwardRefExoticComponent<Omit<EmbeddedChatPrimitiveInputProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -296,7 +295,7 @@ export declare const EmbeddedChatPrimitiveActions: React.ForwardRefExoticCompone
|
|
|
296
295
|
export declare const EmbeddedChatPrimitiveTaglineContainer: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
|
|
297
296
|
export declare const EmbeddedChatPrimitiveTaglineText: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "_id"> & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "children" | "_id">>>;
|
|
298
297
|
export declare const EmbeddedChatPrimitiveTaglineLogo: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.SVGProps<SVGSVGElement>, "_id"> & Partial<Pick<React.SVGProps<SVGSVGElement>, "_id">>>;
|
|
299
|
-
export declare const EmbeddedChatPrimitiveTaglineBrandName: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "children" | "rel" | "
|
|
298
|
+
export declare const EmbeddedChatPrimitiveTaglineBrandName: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "children" | "rel" | "_id" | "target" | "href"> & Partial<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "children" | "rel" | "_id" | "target" | "href">>>;
|
|
300
299
|
type EmbeddedChatPrimitiveChatActionType = 'help' | 'copy' | 'share' | 'clear' | 'stop';
|
|
301
300
|
declare const PrimitiveChatAction: React.ForwardRefExoticComponent< PolymorphicProps & Omit<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "_id"> & Partial<Pick<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "_id">>>;
|
|
302
301
|
export interface EmbeddedChatPrimitiveChatActionProps extends ComponentPropsWithRef<typeof PrimitiveChatAction> {
|
|
@@ -323,7 +322,7 @@ export interface EmbeddedChatPrimitiveHelpActionsProps extends Omit<ComponentPro
|
|
|
323
322
|
}
|
|
324
323
|
export declare const EmbeddedChatPrimitiveHelpActions: (props: EmbeddedChatPrimitiveHelpActionsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
325
324
|
declare const PrimitiveChatHelpAction: React.ForwardRefExoticComponent< PolymorphicProps & Omit<EmbeddedChatPrimitiveChatActionProps, "action" | "_id"> & Partial<Pick<EmbeddedChatPrimitiveChatActionProps, "action" | "_id">>>;
|
|
326
|
-
declare const PrimitiveChatHelpActionLink: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "rel" | "
|
|
325
|
+
declare const PrimitiveChatHelpActionLink: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "rel" | "_id" | "target"> & Partial<Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "rel" | "_id" | "target">>>;
|
|
327
326
|
type ComponentProps = Omit<ComponentPropsWithRef<typeof PrimitiveChatHelpAction>, 'action'> | ComponentPropsWithRef<typeof PrimitiveChatHelpActionLink>;
|
|
328
327
|
export type EmbeddedChatPrimitiveChatHelpActionProps = ComponentProps & {
|
|
329
328
|
action: GetHelpOption;
|
|
@@ -416,7 +415,7 @@ export declare const EmbeddedChatPrimitiveFormFieldSelectTrigger: React.ForwardR
|
|
|
416
415
|
declare const PrimitiveFormFieldSelectValue: React.ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>, "_id"> & Partial<Pick<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>, "_id">>>;
|
|
417
416
|
export declare const EmbeddedChatPrimitiveFormFieldSelectValue: (props: ComponentPropsWithRef<typeof PrimitiveFormFieldSelectValue>) => import("react/jsx-runtime").JSX.Element;
|
|
418
417
|
export declare const EmbeddedChatPrimitiveFormFieldSelectIcon: React.ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectIconProps & React.RefAttributes<HTMLSpanElement>, "children" | "asChild" | "_id"> & Partial<Pick<SelectPrimitive.SelectIconProps & React.RefAttributes<HTMLSpanElement>, "children" | "asChild" | "_id">>>;
|
|
419
|
-
export declare const EmbeddedChatPrimitiveFormFieldSelectContent: React.ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "
|
|
418
|
+
export declare const EmbeddedChatPrimitiveFormFieldSelectContent: React.ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "_id" | "position"> & Partial<Pick<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "_id" | "position">>>;
|
|
420
419
|
export declare const EmbeddedChatPrimitiveFormFieldSelectViewport: React.ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectViewportProps & React.RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick<SelectPrimitive.SelectViewportProps & React.RefAttributes<HTMLDivElement>, "_id">>>;
|
|
421
420
|
export declare const EmbeddedChatPrimitiveFormFieldSelectItem: React.ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "_id">>>;
|
|
422
421
|
export declare const EmbeddedChatPrimitiveFormFieldSelectItemText: React.ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectItemTextProps & React.RefAttributes<HTMLSpanElement>, "_id"> & Partial<Pick<SelectPrimitive.SelectItemTextProps & React.RefAttributes<HTMLSpanElement>, "_id">>>;
|
|
@@ -458,4 +457,6 @@ declare const PrimitiveFormSuccessMessage: React.ForwardRefExoticComponent< Poly
|
|
|
458
457
|
export declare const EmbeddedChatPrimitiveFormSuccessMessage: (props: ComponentPropsWithRef<typeof PrimitiveFormSuccessMessage>) => import("react/jsx-runtime").JSX.Element;
|
|
459
458
|
declare const PrimitiveFormSuccessButton: React.ForwardRefExoticComponent< PolymorphicProps & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id"> & Partial<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id">>>;
|
|
460
459
|
export declare const EmbeddedChatPrimitiveFormSuccessButton: (props: ComponentPropsWithRef<typeof PrimitiveFormSuccessButton>) => import("react/jsx-runtime").JSX.Element | null;
|
|
461
|
-
export { ChatProvider as Provider, EmbeddedChatPrimitiveWrapper as Wrapper, EmbeddedChatPrimitiveRoot as Root, EmbeddedChatPrimitiveHeader as Header, EmbeddedChatPrimitiveHeaderToolbar as HeaderToolbar, EmbeddedChatPrimitiveToolbarHeaderWrapper as HeaderToolbarWrapper, EmbeddedChatPrimitiveToolbarHeader as ToolbarHeader, EmbeddedChatPrimitiveChatHistoryButtonIcon as ChatHistoryButtonIcon, EmbeddedChatPrimitiveChatHistoryButton as ChatHistoryButton, EmbeddedChatPrimitiveContent as Content, EmbeddedChatPrimitiveContentScrollArea as ContentScrollArea, EmbeddedChatPrimitiveContentScrollAreaViewport as ContentScrollAreaViewport, EmbeddedChatPrimitiveContentScrollAreaScrollbar as ContentScrollAreaScrollbar, EmbeddedChatPrimitiveContentScrollAreaThumb as ContentScrollAreaThumb, EmbeddedChatPrimitiveContentScrollAreaCorner as ContentScrollAreaCorner, EmbeddedChatPrimitiveMessages as Messages, EmbeddedChatPrimitiveMessageWrapper as MessageWrapper, EmbeddedChatPrimitiveIntroMessageWrapper as IntroMessageWrapper, EmbeddedChatPrimitiveDisclaimer as Disclaimer, EmbeddedChatPrimitiveDisclaimerLabel as DisclaimerLabel, EmbeddedChatPrimitiveDisclaimerTrigger as DisclaimerTrigger, EmbeddedChatPrimitiveDisclaimerContent as DisclaimerContent, EmbeddedChatPrimitiveDisclaimerText as DisclaimerText, EmbeddedChatPrimitiveDisclaimerArrow as DisclaimerArrow, EmbeddedChatPrimitiveExampleQuestions as ExampleQuestions, EmbeddedChatPrimitiveExampleQuestionsLabel as ExampleQuestionsLabel, EmbeddedChatPrimitiveExampleQuestionsList as ExampleQuestionsList, EmbeddedChatPrimitiveExampleQuestion as ExampleQuestion, EmbeddedChatPrimitiveExampleQuestionButton as ExampleQuestionButton, EmbeddedChatPrimitiveWorkflows as Workflows, EmbeddedChatPrimitiveWorkflowsLabel as WorkflowsLabel, EmbeddedChatPrimitiveWorkflowsList as WorkflowsList, EmbeddedChatPrimitiveWorkflow as Workflow, EmbeddedChatPrimitiveMessageHeader as MessageHeader, EmbeddedChatPrimitiveMessageLoading as MessageLoading, EmbeddedChatPrimitiveMessageAvatar as MessageAvatar, EmbeddedChatPrimitiveMessageAvatarContent as MessageAvatarContent, EmbeddedChatPrimitiveMessageAvatarFallback as MessageAvatarFallback, EmbeddedChatPrimitiveMessageAvatarImage as MessageAvatarImage, EmbeddedChatPrimitiveMessageName as MessageName, EmbeddedChatPrimitiveMessageContentWrapper as MessageContentWrapper, EmbeddedChatPrimitiveMessageContent as MessageContent, EmbeddedChatPrimitiveMessageAttachments as MessageAttachments, EmbeddedChatPrimitiveMessageAttachmentsList as MessageAttachmentsList, EmbeddedChatPrimitiveMessageAttachmentsItem as MessageAttachmentsItem, EmbeddedChatPrimitiveMessageAttachmentsItemIcon as MessageAttachmentsItemIcon, EmbeddedChatPrimitiveMessageAttachmentsItemTitle as MessageAttachmentsItemTitle, EmbeddedChatPrimitiveMessageAttachmentsPreview as MessageAttachmentsPreview, EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay as MessageAttachmentsPreviewOverlay, EmbeddedChatPrimitiveMessageAttachmentsPreviewContent as MessageAttachmentsPreviewContent, EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader as MessageAttachmentsPreviewHeader, EmbeddedChatPrimitiveMessageAttachmentsPreviewClose as MessageAttachmentsPreviewClose, EmbeddedChatPrimitiveMessageAttachmentsPreviewBody as MessageAttachmentsPreviewBody, EmbeddedChatPrimitiveMarkdown as Markdown, EmbeddedChatPrimitiveDynamicComponent as DynamicComponent, EmbeddedChatPrimitiveMessageToolbar as MessageToolbar, EmbeddedChatPrimitiveMessageCustomActions as MessageCustomActions, EmbeddedChatPrimitiveMessageCustomAction as MessageCustomAction, EmbeddedChatPrimitiveMessageAction as MessageAction, EmbeddedChatPrimitiveMessageSources as MessageSources, EmbeddedChatPrimitiveMessageSourcesHeader as MessageSourcesHeader, EmbeddedChatPrimitiveMessageSourcesList as MessageSourcesList, EmbeddedChatPrimitiveMessageSourceItem as MessageSourceItem, EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs as MessageSourceItemBreadcrumbs, EmbeddedChatPrimitiveMessageSourceItemBreadcrumbIcon as MessageSourceItemBreadcrumbIcon, EmbeddedChatPrimitiveMessageSourceItemIcon as MessageSourceItemIcon, EmbeddedChatPrimitiveMessageSourceItemTitle as MessageSourceItemTitle, EmbeddedChatPrimitiveMessageSourceItemTag as MessageSourceItemTag, EmbeddedChatPrimitiveMessageSourceItemDescription as MessageSourceItemDescription, EmbeddedChatPrimitiveMessageSourceItemDescriptionPart as MessageSourceItemDescriptionPart, EmbeddedChatPrimitiveMessageSourceItemIndicator as MessageSourceItemIndicator, EmbeddedChatPrimitiveFooter as Footer, EmbeddedChatPrimitiveInputFieldset as InputFieldset, EmbeddedChatPrimitiveInputGroup as InputGroup, EmbeddedChatPrimitiveInput as Input, EmbeddedChatPrimitiveSendButton as SendButton, EmbeddedChatPrimitiveSendButtonIcon as SendButtonIcon, EmbeddedChatPrimitiveAttachmentsBar as AttachmentsBar, EmbeddedChatPrimitiveAttachmentsBarList as AttachmentsBarList, EmbeddedChatPrimitiveAttachmentsBarAttachment as AttachmentsBarAttachment, EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon as AttachmentsBarAttachmentIcon, EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle as AttachmentsBarAttachmentTitle, EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete as AttachmentsBarAttachmentDelete, EmbeddedChatPrimitiveAttachmentsBarActions as AttachmentsBarActions, EmbeddedChatPrimitiveAttachmentsBarInfoTip as AttachmentsBarInfoTip, EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon as AttachmentsBarInfoTipIcon, EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow as AttachmentsBarInfoTipArrow, EmbeddedChatPrimitiveAttachmentsBarInfoTipText as AttachmentsBarInfoTipText, EmbeddedChatPrimitiveAttachmentsBarInputs as AttachmentsBarInputs, EmbeddedChatPrimitiveAttachmentsBarInput as AttachmentsBarInput, EmbeddedChatPrimitiveAttachmentsBarModal as AttachmentsBarModal, EmbeddedChatPrimitiveAttachmentsBarModalOverlay as AttachmentsBarModalOverlay, EmbeddedChatPrimitiveAttachmentsBarModalContent as AttachmentsBarModalContent, EmbeddedChatPrimitiveAttachmentsBarModalHeader as AttachmentsBarModalHeader, EmbeddedChatPrimitiveAttachmentsBarModalHeading as AttachmentsBarModalHeading, EmbeddedChatPrimitiveAttachmentsBarModalDescription as AttachmentsBarModalDescription, EmbeddedChatPrimitiveAttachmentsBarModalHelp as AttachmentsBarModalHelp, EmbeddedChatPrimitiveAttachmentsBarModalClose as AttachmentsBarModalClose, EmbeddedChatPrimitiveAttachmentsBarModalBody as AttachmentsBarModalBody, EmbeddedChatPrimitiveAttachmentsBarForm as AttachmentsBarForm, EmbeddedChatPrimitiveAttachmentsBarFormTitle as AttachmentsBarFormTitle, EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel as AttachmentsBarFormTitleLabel, EmbeddedChatPrimitiveAttachmentsBarFormTitleInput as AttachmentsBarFormTitleInput, EmbeddedChatPrimitiveAttachmentsBarFormTitleError as AttachmentsBarFormTitleError, EmbeddedChatPrimitiveAttachmentsBarFormContent as AttachmentsBarFormContent, EmbeddedChatPrimitiveAttachmentsBarFormContentLabel as AttachmentsBarFormContentLabel, EmbeddedChatPrimitiveAttachmentsBarFormContentInput as AttachmentsBarFormContentInput, EmbeddedChatPrimitiveAttachmentsBarFormContentError as AttachmentsBarFormContentError, EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton as AttachmentsBarFormSubmitButton, EmbeddedChatPrimitiveActionBar as ActionBar, EmbeddedChatPrimitiveActions as Actions, EmbeddedChatPrimitiveTaglineContainer as TaglineContainer, EmbeddedChatPrimitiveTaglineText as TaglineText, EmbeddedChatPrimitiveTaglineLogo as TaglineLogo, EmbeddedChatPrimitiveTaglineBrandName as TaglineBrandName, EmbeddedChatPrimitiveChatAction as ChatAction, EmbeddedChatPrimitiveChatActionLabel as ChatActionLabel, EmbeddedChatPrimitiveChatActionFeedback as ChatActionFeedback, EmbeddedChatPrimitiveHelpActions as HelpActions, EmbeddedChatPrimitiveChatHelpAction as ChatHelpAction, EmbeddedChatPrimitiveHelpActionsTrigger as HelpActionsTrigger, EmbeddedChatPrimitiveHelpActionsMenu as HelpActionsMenu, EmbeddedChatPrimitiveHelpActionsMenuArrow as HelpActionsMenuArrow, EmbeddedChatPrimitiveHelpActionsMenuItem as HelpActionsMenuItem, EmbeddedChatPrimitiveHelpActionsMenuItemIcon as HelpActionsMenuItemIcon, EmbeddedChatPrimitiveFeedbackModal as FeedbackModal, EmbeddedChatPrimitiveFeedbackModalOverlay as FeedbackModalOverlay, EmbeddedChatPrimitiveFeedbackModalContent as FeedbackModalContent, EmbeddedChatPrimitiveFeedbackModalHeader as FeedbackModalHeader, EmbeddedChatPrimitiveFeedbackModalClose as FeedbackModalClose, EmbeddedChatPrimitiveFeedbackModalBody as FeedbackModalBody, EmbeddedChatPrimitiveFeedbackForm as FeedbackForm, EmbeddedChatPrimitiveFeedbackItem as FeedbackItem, EmbeddedChatPrimitiveFeedbackItemCheckbox as FeedbackItemCheckbox, EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator as FeedbackItemCheckboxIndicator, EmbeddedChatPrimitiveFeedbackItemLabel as FeedbackItemLabel, EmbeddedChatPrimitiveFeedbackItemDescription as FeedbackItemDescription, EmbeddedChatPrimitiveFeedbackSubmitButton as FeedbackSubmitButton, EmbeddedChatPrimitiveFormWrapper as FormWrapper, EmbeddedChatPrimitiveForm as Form, EmbeddedChatPrimitiveFormClose as FormClose, EmbeddedChatPrimitiveFormHeader as FormHeader, EmbeddedChatPrimitiveFormHeading as FormHeading, EmbeddedChatPrimitiveFormDescription as FormDescription, EmbeddedChatPrimitiveFormContent as FormContent, EmbeddedChatPrimitiveFormField as FormField, EmbeddedChatPrimitiveFormFieldLabel as FormFieldLabel, EmbeddedChatPrimitiveFormFieldText as FormFieldText, EmbeddedChatPrimitiveFormFieldEmail as FormFieldEmail, EmbeddedChatPrimitiveFormFieldFile as FormFieldFile, EmbeddedChatPrimitiveFormFieldTextArea as FormFieldTextArea, EmbeddedChatPrimitiveFormFieldCheckbox as FormFieldCheckbox, EmbeddedChatPrimitiveFormFieldCheckboxIndicator as FormFieldCheckboxIndicator, EmbeddedChatPrimitiveFormFieldSelect as FormFieldSelect, EmbeddedChatPrimitiveFormFieldSelectTrigger as FormFieldSelectTrigger, EmbeddedChatPrimitiveFormFieldSelectValue as FormFieldSelectValue, EmbeddedChatPrimitiveFormFieldSelectIcon as FormFieldSelectIcon, EmbeddedChatPrimitiveFormFieldSelectContent as FormFieldSelectContent, EmbeddedChatPrimitiveFormFieldSelectViewport as FormFieldSelectViewport, EmbeddedChatPrimitiveFormFieldSelectItem as FormFieldSelectItem, EmbeddedChatPrimitiveFormFieldSelectItemText as FormFieldSelectItemText, EmbeddedChatPrimitiveFormFieldSelectItemIndicator as FormFieldSelectItemIndicator, EmbeddedChatPrimitiveFormFieldCombobox as FormFieldCombobox, EmbeddedChatPrimitiveFormFieldComboboxPositioner as FormFieldComboboxPositioner, EmbeddedChatPrimitiveFormFieldComboboxControl as FormFieldComboboxControl, EmbeddedChatPrimitiveFormFieldComboboxInput as FormFieldComboboxInput, EmbeddedChatPrimitiveFormFieldComboboxTrigger as FormFieldComboboxTrigger, EmbeddedChatPrimitiveFormFieldComboboxSelectedTags as FormFieldComboboxSelectedTags, EmbeddedChatPrimitiveFormFieldComboboxContent as FormFieldComboboxContent, EmbeddedChatPrimitiveFormFieldComboboxList as FormFieldComboboxList, EmbeddedChatPrimitiveFormFieldComboboxListItems as FormFieldComboboxListItems, EmbeddedChatPrimitiveFormFieldComboboxListEmpty as FormFieldComboboxListEmpty, EmbeddedChatPrimitiveFormFieldComboboxItem as FormFieldComboboxItem, EmbeddedChatPrimitiveFormFieldComboboxItemText as FormFieldComboboxItemText, EmbeddedChatPrimitiveFormFieldComboboxItemIndicator as FormFieldComboboxItemIndicator, EmbeddedChatPrimitiveFormFieldDescription as FormFieldDescription, EmbeddedChatPrimitiveFormFieldError as FormFieldError, EmbeddedChatPrimitiveFormFooter as FormFooter, EmbeddedChatPrimitiveFormError as FormError, EmbeddedChatPrimitiveFormCancel as FormCancel, EmbeddedChatPrimitiveFormSubmit as FormSubmit, EmbeddedChatPrimitiveFormSuccess as FormSuccess, EmbeddedChatPrimitiveFormSuccessHeading as FormSuccessHeading, EmbeddedChatPrimitiveFormSuccessMessage as FormSuccessMessage, EmbeddedChatPrimitiveFormSuccessButton as FormSuccessButton, };
|
|
460
|
+
export { ChatProvider as Provider, EmbeddedChatPrimitiveWrapper as Wrapper, EmbeddedChatPrimitiveRoot as Root, EmbeddedChatPrimitiveHeader as Header, EmbeddedChatPrimitiveHeaderToolbar as HeaderToolbar, EmbeddedChatPrimitiveToolbarHeaderWrapper as HeaderToolbarWrapper, EmbeddedChatPrimitiveToolbarHeader as ToolbarHeader, EmbeddedChatPrimitiveChatHistoryButtonIcon as ChatHistoryButtonIcon, EmbeddedChatPrimitiveChatHistoryButton as ChatHistoryButton, EmbeddedChatPrimitiveContent as Content, EmbeddedChatPrimitiveContentScrollArea as ContentScrollArea, EmbeddedChatPrimitiveContentScrollAreaViewport as ContentScrollAreaViewport, EmbeddedChatPrimitiveContentScrollAreaScrollbar as ContentScrollAreaScrollbar, EmbeddedChatPrimitiveContentScrollAreaThumb as ContentScrollAreaThumb, EmbeddedChatPrimitiveContentScrollAreaCorner as ContentScrollAreaCorner, EmbeddedChatPrimitiveMessages as Messages, EmbeddedChatPrimitiveMessageWrapper as MessageWrapper, EmbeddedChatPrimitiveIntroMessageWrapper as IntroMessageWrapper, EmbeddedChatPrimitiveDisclaimer as Disclaimer, EmbeddedChatPrimitiveDisclaimerLabel as DisclaimerLabel, EmbeddedChatPrimitiveDisclaimerTrigger as DisclaimerTrigger, EmbeddedChatPrimitiveDisclaimerContent as DisclaimerContent, EmbeddedChatPrimitiveDisclaimerText as DisclaimerText, EmbeddedChatPrimitiveDisclaimerArrow as DisclaimerArrow, EmbeddedChatPrimitiveExampleQuestions as ExampleQuestions, EmbeddedChatPrimitiveExampleQuestionsLabel as ExampleQuestionsLabel, EmbeddedChatPrimitiveExampleQuestionsList as ExampleQuestionsList, EmbeddedChatPrimitiveExampleQuestion as ExampleQuestion, EmbeddedChatPrimitiveExampleQuestionButton as ExampleQuestionButton, EmbeddedChatPrimitiveWorkflows as Workflows, EmbeddedChatPrimitiveWorkflowsLabel as WorkflowsLabel, EmbeddedChatPrimitiveWorkflowsList as WorkflowsList, EmbeddedChatPrimitiveWorkflow as Workflow, EmbeddedChatPrimitiveMessageHeader as MessageHeader, EmbeddedChatPrimitiveMessageLoading as MessageLoading, EmbeddedChatPrimitiveMessageAvatar as MessageAvatar, EmbeddedChatPrimitiveMessageAvatarContent as MessageAvatarContent, EmbeddedChatPrimitiveMessageAvatarFallback as MessageAvatarFallback, EmbeddedChatPrimitiveMessageAvatarImage as MessageAvatarImage, EmbeddedChatPrimitiveMessageName as MessageName, EmbeddedChatPrimitiveMessageContentWrapper as MessageContentWrapper, EmbeddedChatPrimitiveMessageContent as MessageContent, EmbeddedChatPrimitiveMessageAttachments as MessageAttachments, EmbeddedChatPrimitiveMessageAttachmentsList as MessageAttachmentsList, EmbeddedChatPrimitiveMessageAttachmentsItem as MessageAttachmentsItem, EmbeddedChatPrimitiveMessageAttachmentsItemIcon as MessageAttachmentsItemIcon, EmbeddedChatPrimitiveMessageAttachmentsItemTitle as MessageAttachmentsItemTitle, EmbeddedChatPrimitiveMessageAttachmentsPreview as MessageAttachmentsPreview, EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay as MessageAttachmentsPreviewOverlay, EmbeddedChatPrimitiveMessageAttachmentsPreviewContent as MessageAttachmentsPreviewContent, EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader as MessageAttachmentsPreviewHeader, EmbeddedChatPrimitiveMessageAttachmentsPreviewClose as MessageAttachmentsPreviewClose, EmbeddedChatPrimitiveMessageAttachmentsPreviewBody as MessageAttachmentsPreviewBody, EmbeddedChatPrimitiveMarkdown as Markdown, EmbeddedChatPrimitiveDynamicComponent as DynamicComponent, EmbeddedChatPrimitiveMessageToolbar as MessageToolbar, EmbeddedChatPrimitiveMessageCustomActions as MessageCustomActions, EmbeddedChatPrimitiveMessageCustomAction as MessageCustomAction, EmbeddedChatPrimitiveMessageAction as MessageAction, EmbeddedChatPrimitiveMessageSources as MessageSources, EmbeddedChatPrimitiveMessageSourcesHeader as MessageSourcesHeader, EmbeddedChatPrimitiveMessageSourcesList as MessageSourcesList, EmbeddedChatPrimitiveMessageSourceItem as MessageSourceItem, EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs as MessageSourceItemBreadcrumbs, EmbeddedChatPrimitiveMessageSourceItemBreadcrumbIcon as MessageSourceItemBreadcrumbIcon, EmbeddedChatPrimitiveMessageSourceItemIcon as MessageSourceItemIcon, EmbeddedChatPrimitiveMessageSourceItemTitle as MessageSourceItemTitle, EmbeddedChatPrimitiveMessageSourceItemTag as MessageSourceItemTag, EmbeddedChatPrimitiveMessageSourceItemDescription as MessageSourceItemDescription, EmbeddedChatPrimitiveMessageSourceItemDescriptionPart as MessageSourceItemDescriptionPart, EmbeddedChatPrimitiveMessageSourceItemIndicator as MessageSourceItemIndicator, EmbeddedChatPrimitiveFooter as Footer, EmbeddedChatPrimitiveInputGroup as InputGroup, EmbeddedChatPrimitiveInput as Input, EmbeddedChatPrimitiveSendButton as SendButton, EmbeddedChatPrimitiveSendButtonIcon as SendButtonIcon, EmbeddedChatPrimitiveAttachmentsBar as AttachmentsBar, EmbeddedChatPrimitiveAttachmentsBarList as AttachmentsBarList, EmbeddedChatPrimitiveAttachmentsBarAttachment as AttachmentsBarAttachment, EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon as AttachmentsBarAttachmentIcon, EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle as AttachmentsBarAttachmentTitle, EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete as AttachmentsBarAttachmentDelete, EmbeddedChatPrimitiveAttachmentsBarActions as AttachmentsBarActions, EmbeddedChatPrimitiveAttachmentsBarInfoTip as AttachmentsBarInfoTip, EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon as AttachmentsBarInfoTipIcon, EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow as AttachmentsBarInfoTipArrow, EmbeddedChatPrimitiveAttachmentsBarInfoTipText as AttachmentsBarInfoTipText, EmbeddedChatPrimitiveAttachmentsBarInputs as AttachmentsBarInputs, EmbeddedChatPrimitiveAttachmentsBarInput as AttachmentsBarInput, EmbeddedChatPrimitiveAttachmentsBarModal as AttachmentsBarModal, EmbeddedChatPrimitiveAttachmentsBarModalOverlay as AttachmentsBarModalOverlay, EmbeddedChatPrimitiveAttachmentsBarModalContent as AttachmentsBarModalContent, EmbeddedChatPrimitiveAttachmentsBarModalHeader as AttachmentsBarModalHeader, EmbeddedChatPrimitiveAttachmentsBarModalHeading as AttachmentsBarModalHeading, EmbeddedChatPrimitiveAttachmentsBarModalDescription as AttachmentsBarModalDescription, EmbeddedChatPrimitiveAttachmentsBarModalHelp as AttachmentsBarModalHelp, EmbeddedChatPrimitiveAttachmentsBarModalClose as AttachmentsBarModalClose, EmbeddedChatPrimitiveAttachmentsBarModalBody as AttachmentsBarModalBody, EmbeddedChatPrimitiveAttachmentsBarForm as AttachmentsBarForm, EmbeddedChatPrimitiveAttachmentsBarFormTitle as AttachmentsBarFormTitle, EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel as AttachmentsBarFormTitleLabel, EmbeddedChatPrimitiveAttachmentsBarFormTitleInput as AttachmentsBarFormTitleInput, EmbeddedChatPrimitiveAttachmentsBarFormTitleError as AttachmentsBarFormTitleError, EmbeddedChatPrimitiveAttachmentsBarFormContent as AttachmentsBarFormContent, EmbeddedChatPrimitiveAttachmentsBarFormContentLabel as AttachmentsBarFormContentLabel, EmbeddedChatPrimitiveAttachmentsBarFormContentInput as AttachmentsBarFormContentInput, EmbeddedChatPrimitiveAttachmentsBarFormContentError as AttachmentsBarFormContentError, EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton as AttachmentsBarFormSubmitButton, EmbeddedChatPrimitiveActionBar as ActionBar, EmbeddedChatPrimitiveActions as Actions, EmbeddedChatPrimitiveTaglineContainer as TaglineContainer, EmbeddedChatPrimitiveTaglineText as TaglineText, EmbeddedChatPrimitiveTaglineLogo as TaglineLogo, EmbeddedChatPrimitiveTaglineBrandName as TaglineBrandName, EmbeddedChatPrimitiveChatAction as ChatAction, EmbeddedChatPrimitiveChatActionLabel as ChatActionLabel, EmbeddedChatPrimitiveChatActionFeedback as ChatActionFeedback, EmbeddedChatPrimitiveHelpActions as HelpActions, EmbeddedChatPrimitiveChatHelpAction as ChatHelpAction, EmbeddedChatPrimitiveHelpActionsTrigger as HelpActionsTrigger, EmbeddedChatPrimitiveHelpActionsMenu as HelpActionsMenu, EmbeddedChatPrimitiveHelpActionsMenuArrow as HelpActionsMenuArrow, EmbeddedChatPrimitiveHelpActionsMenuItem as HelpActionsMenuItem, EmbeddedChatPrimitiveHelpActionsMenuItemIcon as HelpActionsMenuItemIcon, EmbeddedChatPrimitiveFeedbackModal as FeedbackModal, EmbeddedChatPrimitiveFeedbackModalOverlay as FeedbackModalOverlay, EmbeddedChatPrimitiveFeedbackModalContent as FeedbackModalContent, EmbeddedChatPrimitiveFeedbackModalHeader as FeedbackModalHeader, EmbeddedChatPrimitiveFeedbackModalClose as FeedbackModalClose, EmbeddedChatPrimitiveFeedbackModalBody as FeedbackModalBody, EmbeddedChatPrimitiveFeedbackForm as FeedbackForm, EmbeddedChatPrimitiveFeedbackItem as FeedbackItem, EmbeddedChatPrimitiveFeedbackItemCheckbox as FeedbackItemCheckbox, EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator as FeedbackItemCheckboxIndicator, EmbeddedChatPrimitiveFeedbackItemLabel as FeedbackItemLabel, EmbeddedChatPrimitiveFeedbackItemDescription as FeedbackItemDescription, EmbeddedChatPrimitiveFeedbackSubmitButton as FeedbackSubmitButton, EmbeddedChatPrimitiveFormWrapper as FormWrapper, EmbeddedChatPrimitiveForm as Form, EmbeddedChatPrimitiveFormClose as FormClose, EmbeddedChatPrimitiveFormHeader as FormHeader, EmbeddedChatPrimitiveFormHeading as FormHeading, EmbeddedChatPrimitiveFormDescription as FormDescription, EmbeddedChatPrimitiveFormContent as FormContent, EmbeddedChatPrimitiveFormField as FormField, EmbeddedChatPrimitiveFormFieldLabel as FormFieldLabel, EmbeddedChatPrimitiveFormFieldText as FormFieldText, EmbeddedChatPrimitiveFormFieldEmail as FormFieldEmail, EmbeddedChatPrimitiveFormFieldFile as FormFieldFile, EmbeddedChatPrimitiveFormFieldTextArea as FormFieldTextArea, EmbeddedChatPrimitiveFormFieldCheckbox as FormFieldCheckbox, EmbeddedChatPrimitiveFormFieldCheckboxIndicator as FormFieldCheckboxIndicator, EmbeddedChatPrimitiveFormFieldSelect as FormFieldSelect, EmbeddedChatPrimitiveFormFieldSelectTrigger as FormFieldSelectTrigger, EmbeddedChatPrimitiveFormFieldSelectValue as FormFieldSelectValue, EmbeddedChatPrimitiveFormFieldSelectIcon as FormFieldSelectIcon, EmbeddedChatPrimitiveFormFieldSelectContent as FormFieldSelectContent, EmbeddedChatPrimitiveFormFieldSelectViewport as FormFieldSelectViewport, EmbeddedChatPrimitiveFormFieldSelectItem as FormFieldSelectItem, EmbeddedChatPrimitiveFormFieldSelectItemText as FormFieldSelectItemText, EmbeddedChatPrimitiveFormFieldSelectItemIndicator as FormFieldSelectItemIndicator, EmbeddedChatPrimitiveFormFieldCombobox as FormFieldCombobox, EmbeddedChatPrimitiveFormFieldComboboxPositioner as FormFieldComboboxPositioner, EmbeddedChatPrimitiveFormFieldComboboxControl as FormFieldComboboxControl, EmbeddedChatPrimitiveFormFieldComboboxInput as FormFieldComboboxInput, EmbeddedChatPrimitiveFormFieldComboboxTrigger as FormFieldComboboxTrigger, EmbeddedChatPrimitiveFormFieldComboboxSelectedTags as FormFieldComboboxSelectedTags, EmbeddedChatPrimitiveFormFieldComboboxContent as FormFieldComboboxContent, EmbeddedChatPrimitiveFormFieldComboboxList as FormFieldComboboxList, EmbeddedChatPrimitiveFormFieldComboboxListItems as FormFieldComboboxListItems, EmbeddedChatPrimitiveFormFieldComboboxListEmpty as FormFieldComboboxListEmpty, EmbeddedChatPrimitiveFormFieldComboboxItem as FormFieldComboboxItem, EmbeddedChatPrimitiveFormFieldComboboxItemText as FormFieldComboboxItemText, EmbeddedChatPrimitiveFormFieldComboboxItemIndicator as FormFieldComboboxItemIndicator, EmbeddedChatPrimitiveFormFieldDescription as FormFieldDescription, EmbeddedChatPrimitiveFormFieldError as FormFieldError, EmbeddedChatPrimitiveFormFooter as FormFooter, EmbeddedChatPrimitiveFormError as FormError, EmbeddedChatPrimitiveFormCancel as FormCancel, EmbeddedChatPrimitiveFormSubmit as FormSubmit, EmbeddedChatPrimitiveFormSuccess as FormSuccess, EmbeddedChatPrimitiveFormSuccessHeading as FormSuccessHeading, EmbeddedChatPrimitiveFormSuccessMessage as FormSuccessMessage, EmbeddedChatPrimitiveFormSuccessButton as FormSuccessButton, };
|
|
461
|
+
export { EmbeddedChatPrimitiveMessageFiles as MessageFiles, EmbeddedChatPrimitiveMessageFile as MessageFile, EmbeddedChatPrimitiveInputFieldset as InputFieldset, EmbeddedChatPrimitiveDropZone as DropZone, EmbeddedChatPrimitiveInputNotification as InputNotification, EmbeddedChatPrimitiveInputNotificationContent as InputNotificationContent, EmbeddedChatPrimitiveInputNotificationHeader as InputNotificationHeader, EmbeddedChatPrimitiveInputNotificationTitle as InputNotificationTitle, EmbeddedChatPrimitiveInputNotificationMessage as InputNotificationMessage, EmbeddedChatPrimitiveInputNotificationClose as InputNotificationClose, EmbeddedChatPrimitiveFileUploadButtonIcon as FileUploadButtonIcon, EmbeddedChatPrimitiveFileUploadButton as FileUploadButton, EmbeddedChatPrimitiveFileInput as FileInput, EmbeddedChatPrimitiveFileList as FileList, EmbeddedChatPrimitiveFileItem as FileItem, EmbeddedChatPrimitiveFilePreviewTrigger as FilePreviewTrigger, EmbeddedChatPrimitiveFileContent as FileContent, EmbeddedChatPrimitiveFileThumbnail as FileThumbnail, EmbeddedChatPrimitiveFileTypeIcon as FileTypeIcon, EmbeddedChatPrimitiveFileName as FileName, EmbeddedChatPrimitiveFileRemoveIcon as FileRemoveIcon, EmbeddedChatPrimitiveFileRemove as FileRemove, } from './embedded-chat/file-upload-input';
|
|
462
|
+
export { EmbeddedChatPrimitiveImagePreviewModal as ImagePreviewModal, EmbeddedChatPrimitiveImagePreviewModalOverlay as ImagePreviewModalOverlay, EmbeddedChatPrimitiveImagePreviewModalContent as ImagePreviewModalContent, EmbeddedChatPrimitiveImagePreviewModalImage as ImagePreviewModalImage, EmbeddedChatPrimitiveImagePreviewModalFooter as ImagePreviewModalFooter, EmbeddedChatPrimitiveImagePreviewModalFileName as ImagePreviewModalFileName, EmbeddedChatPrimitiveImagePreviewModalClose as ImagePreviewModalClose, } from './embedded-chat/image-preview-modal';
|