@inkeep/cxkit-primitives 0.5.115 → 0.5.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),g=require("react"),ne=require("react-textarea-autosize"),Sa=require("@radix-ui/react-avatar"),fa=require("@radix-ui/react-checkbox"),Ba=require("@radix-ui/react-popover"),Ta=require("@radix-ui/react-tooltip"),ja=require("@radix-ui/react-scroll-area"),x=require("../atoms/select.cjs"),I=require("../atoms/combobox.cjs"),F=require("../atoms/dialog.cjs"),ya=require("../atoms/avatars/ai.cjs"),Ha=require("../atoms/avatars/user.cjs"),A=require("../atoms/icons/custom-icon.cjs"),M=require("../atoms/icons/built-in-icon-renderer.cjs"),wa=require("../atoms/link.cjs"),K=require("../atoms/markdown/index.cjs"),L=require("../providers/attachment-item-provider.cjs"),E=require("../providers/attachments-bar-provider.cjs"),T=require("../providers/source-item-provider.cjs"),p=require("../providers/config-provider.cjs"),D=require("../providers/conversation-provider.cjs"),O=require("../providers/chat-events-provider.cjs"),oe=require("../providers/feedback-provider.cjs"),q=require("../providers/message-attachments-provider.cjs"),P=require("../providers/message-provider.cjs"),ge=require("../atoms/icons/checkbox-icon.cjs"),ie=require("../hooks/use-copy-to-clipboard.cjs"),z=require("../providers/feedback-item-provider.cjs"),La=require("../utils/get-message-metadata.cjs"),h=require("../utils/misc.cjs"),i=require("./factory.cjs"),b=require("./embedded-chat/chat-provider.cjs"),Da=require("./tagline-logo-icon.cjs"),Ra=require("../hooks/use-settle-action.cjs"),Oa=require("../hooks/use-container-size.cjs"),re=require("./embedded-chat/use-chat-action.cjs"),ae=require("../providers/help-menu-provider.cjs"),_=require("../providers/chat-form-provider.cjs"),S=require("../providers/form-field-provider.cjs"),qa=require("react-hook-form"),Wa=require("../utils/highlight-emphasis.cjs"),Na=require("./modal/modal-provider.cjs"),Va=require("@inkeep/cxkit-color-mode"),se=require("../utils/compose-refs.cjs"),C=require("../utils/compose-event-handlers.cjs"),Qa=require("../hooks/use-scroll-to-bottom.cjs"),$a=require("../atoms/api/analytics/conversation.cjs"),Ua=require("../utils/transform-source/index.cjs"),Ka=require("../hooks/use-debounce.cjs"),de=require("../providers/hover-popover-provider.cjs"),za=require("./modal/widget-auto-focus.cjs"),Ga=require("../atoms/shadow/context.cjs");function W(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const me=W(Sa),G=W(fa),j=W(Ba),y=W(Ta),N=W(ja),Ya="__intro__",Ja=i.ikp("div",{_id:"aiChatWrapper"}),Pe=g.forwardRef((t,e)=>{const{...a}=t,{isHidden:o,isMobile:r}=b.useChat(),[s,d]=Oa.useContainerSize(),m=se.useComposedRefs(e,s),c=d?.width?d.width>580:!0,l=Na.useModal();return n.jsx(Ja,{ref:m,"data-widget-md":h.dataAttr(c),"data-hidden":h.dataAttr(o),"data-in-modal":h.dataAttr(!!l),"data-mobile":h.dataAttr(r),...a})}),Xa=i.ikp("div",{_id:"aiChatConversationLoading"}),Fe=t=>{const{isLoadingConversation:e}=b.useChat();return e?n.jsx(Xa,{children:n.jsx("span",{children:"Loading..."}),...t}):null},Za=i.ikp("div",{_id:"aiChatRoot"}),_e=t=>{const{isLoadingConversation:e,isHidden:a}=b.useChat(),{form:o}=_.useChatForm();return e||o?null:n.jsx(Za,{"data-hidden":h.dataAttr(a),...t})},en=i.ikp("div",{_id:"aiChatHeader"}),Ae=i.ikp("div",{_id:"aiChatHeader__Toolbar"}),Ee=i.ikp("div",{_id:"aiChatHeader__ToolbarHeaderWrapper"}),tn=i.ikp("div",{_id:"aiChatHeader__ToolbarHeader"}),ke=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=`Ask ${e.aiAssistantName||"AI"}`;return n.jsx(tn,{...t,children:a})}),Ie=i.ikp("div",{_id:"aiChatContent"}),Me=i.ikp(N.Root,{_id:"aiChatContentScrollArea"}),an=i.ikp(N.Viewport,{_id:"aiChatContentScrollArea__Viewport"}),xe=g.forwardRef(({children:t,...e},a)=>{const{containerRef:o}=Qa.useScrollToBottom(),r=se.useComposedRefs(a,o);return n.jsx(an,{ref:r,children:n.jsx("div",{"data-part":"grid",style:{display:"grid"},children:t}),...e})}),Se=i.ikp(N.ScrollAreaScrollbar,{_id:"aiChatContentScrollArea__Scrollbar"}),fe=i.ikp(N.ScrollAreaThumb,{_id:"aiChatContentScrollArea__Thumb"}),Be=i.ikp(N.Corner,{_id:"aiChatContentScrollArea__Corner"}),nn=i.ikp("div",{_id:"aiChatMessages"}),Te=t=>{const e=b.useChat(),{children:a,...o}=t;return n.jsx(nn,{children:h.maybeRender(a,e),...o})},on=i.ikp("div",{_id:"aiChatDisclaimer"}),je=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),[a,o]=g.useState(!1),r=Ka.useDebounce(a,100);return e.disclaimerSettings?.isEnabled?n.jsx(de.HoverPopoverProvider,{open:a,setOpen:o,children:n.jsx(j.Root,{open:r,onOpenChange:o,children:n.jsx(on,{...t})})}):null}),rn=i.ikp("span",{_id:"aiChatDisclaimerLabel"}),ye=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.disclaimerSettings;return n.jsx(rn,{children:a?.label,...t})}),sn=i.ikp(j.Trigger,{_id:"aiChatDisclaimerTrigger",children:n.jsx(A.CustomIcon,{iconKey:"info"})}),He=g.memo(t=>{const{setOpen:e}=de.useHoverPopover(),a=()=>e(!0),o=()=>e(!1);return n.jsx(sn,{onMouseEnter:a,onMouseLeave:o,...t})}),dn=i.ikp(j.Content,{_id:"aiChatDisclaimerContent"}),we=t=>{const{setOpen:e}=de.useHoverPopover(),a=()=>e(!0),o=()=>e(!1);return n.jsx(dn,{onMouseEnter:a,onMouseLeave:o,side:"top",sideOffset:8,align:"end",alignOffset:-10,...t})},mn=i.ikp(K.Markdown,{_id:"aiChatDisclaimerText"}),Le=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.aiAssistantName,r=e.disclaimerSettings?.tooltip||`Information provided by ${a||"this AI assistant"} is not guaranteed to be accurate or comprehensive.`;return n.jsx(mn,{shouldOpenLinksInNewTab:!0,children:r,...t})}),De=i.ikp(j.Arrow,{_id:"aiChatDisclaimerArrow"}),cn=i.ikp("div",{_id:"aiChatExampleQuestions"}),Re=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{messages:a}=b.useChat();return!e.exampleQuestions?.length||a.length?null:n.jsx(cn,{...t})},ln=i.ikp("h3",{_id:"aiChatExampleQuestionsLabel"}),Oe=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(ln,{children:e.exampleQuestionsLabel,...t})}),hn=i.ikp("div",{_id:"aiChatExampleQuestionsList"}),qe=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.exampleQuestions,{children:o,...r}=t;return n.jsx(hn,{children:h.maybeRender(o,a),...r})}),Cn=i.ikp("div",{_id:"aiChatExampleQuestion"}),We=g.forwardRef((t,e)=>{const{aiChatSettings:a}=p.useInkeepConfig(),o=a.isFirstExampleQuestionHighlighted;return n.jsx(Cn,{ref:e,"data-highlight":h.dataAttr(o),...t})}),un=i.ikp("button",{_id:"aiChatExampleQuestionButton"}),Ne=t=>{const{question:e,onClick:a,...o}=t,{handleSubmit:r}=b.useChat();return n.jsx(un,{onClick:C.composeEventHandlers(a,()=>r(e)),children:e,...o})},pn=i.ikp("div",{_id:"aiChatWorkflows"}),Ve=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{messages:a}=b.useChat();return!e.workflows?.length||a.length?null:n.jsx(pn,{...t})},bn=i.ikp("h3",{_id:"aiChatWorkflowsLabel"}),Qe=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(bn,{children:e.workflowsHeader,...t})}),vn=i.ikp("div",{_id:"aiChatWorkflowsList"}),$e=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.workflows,{children:o,...r}=t;return n.jsx(vn,{children:h.maybeRender(o,a),...r})}),gn=i.ikp("button",{_id:"aiChatWorkflow"}),Ue=t=>{const{workflow:e,onClick:a,...o}=t,{handleWorkflow:r}=b.useChat();return n.jsx(gn,{onClick:C.composeEventHandlers(a,()=>r(e)),children:e.displayName,...o})},Pn=i.ikp("div",{_id:"aiChatMessageWrapper"}),ce=t=>{const{message:e,...a}=t;return e.role==="system"?null:n.jsx(P.MessageProvider,{message:e,children:n.jsx(Pn,{"data-role":e.role,...a})})},Ke=g.memo(t=>{const{message:e,...a}=t,{aiChatSettings:o,baseSettings:r}=p.useInkeepConfig(),s=o.aiAssistantName,d=s?`Hi, I'm ${s}!`:"Hi!",m=o.chatSubjectName??r.organizationDisplayName,c=`${d}
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),g=require("react"),ne=require("react-textarea-autosize"),fa=require("@radix-ui/react-avatar"),Ba=require("@radix-ui/react-checkbox"),Ta=require("@radix-ui/react-popover"),ja=require("@radix-ui/react-tooltip"),ya=require("@radix-ui/react-scroll-area"),S=require("../atoms/select.cjs"),I=require("../atoms/combobox.cjs"),F=require("../atoms/dialog.cjs"),Ha=require("../atoms/avatars/ai.cjs"),wa=require("../atoms/avatars/user.cjs"),A=require("../atoms/icons/custom-icon.cjs"),M=require("../atoms/icons/built-in-icon-renderer.cjs"),La=require("../atoms/link.cjs"),K=require("../atoms/markdown/index.cjs"),L=require("../providers/attachment-item-provider.cjs"),E=require("../providers/attachments-bar-provider.cjs"),T=require("../providers/source-item-provider.cjs"),p=require("../providers/config-provider.cjs"),D=require("../providers/conversation-provider.cjs"),R=require("../providers/chat-events-provider.cjs"),oe=require("../providers/feedback-provider.cjs"),q=require("../providers/message-attachments-provider.cjs"),P=require("../providers/message-provider.cjs"),ge=require("../atoms/icons/checkbox-icon.cjs"),ie=require("../hooks/use-copy-to-clipboard.cjs"),z=require("../providers/feedback-item-provider.cjs"),Da=require("../utils/get-message-metadata.cjs"),h=require("../utils/misc.cjs"),i=require("./factory.cjs"),b=require("./embedded-chat/chat-provider.cjs"),Oa=require("./tagline-logo-icon.cjs"),Ra=require("../hooks/use-settle-action.cjs"),qa=require("../hooks/use-container-size.cjs"),re=require("./embedded-chat/use-chat-action.cjs"),ae=require("../providers/help-menu-provider.cjs"),_=require("../providers/chat-form-provider.cjs"),x=require("../providers/form-field-provider.cjs"),Wa=require("react-hook-form"),Na=require("../utils/highlight-emphasis.cjs"),Va=require("./modal/modal-provider.cjs"),Qa=require("@inkeep/cxkit-color-mode"),se=require("../utils/compose-refs.cjs"),C=require("../utils/compose-event-handlers.cjs"),$a=require("../hooks/use-scroll-to-bottom.cjs"),Ua=require("../atoms/api/analytics/conversation.cjs"),Ka=require("../utils/transform-source/index.cjs"),za=require("../hooks/use-debounce.cjs"),de=require("../providers/hover-popover-provider.cjs"),Ga=require("./modal/widget-auto-focus.cjs"),Ya=require("../atoms/shadow/context.cjs");function W(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const me=W(fa),G=W(Ba),j=W(Ta),y=W(ja),N=W(ya),Ja="__intro__",Xa=i.ikp("div",{_id:"aiChatWrapper"}),Pe=g.forwardRef((t,e)=>{const{...a}=t,{isHidden:o,isMobile:r}=b.useChat(),[s,d]=qa.useContainerSize(),m=se.useComposedRefs(e,s),c=d?.width?d.width>580:!0,l=Va.useModal();return n.jsx(Xa,{ref:m,"data-widget-md":h.dataAttr(c),"data-hidden":h.dataAttr(o),"data-in-modal":h.dataAttr(!!l),"data-mobile":h.dataAttr(r),...a})}),Za=i.ikp("div",{_id:"aiChatConversationLoading"}),Fe=t=>{const{isLoadingConversation:e}=b.useChat();return e?n.jsx(Za,{children:n.jsx("span",{children:"Loading..."}),...t}):null},en=i.ikp("div",{_id:"aiChatRoot"}),_e=t=>{const{isLoadingConversation:e,isHidden:a}=b.useChat(),{form:o}=_.useChatForm();return e||o?null:n.jsx(en,{"data-hidden":h.dataAttr(a),...t})},tn=i.ikp("div",{_id:"aiChatHeader"}),Ae=i.ikp("div",{_id:"aiChatHeader__Toolbar"}),Ee=i.ikp("div",{_id:"aiChatHeader__ToolbarHeaderWrapper"}),an=i.ikp("div",{_id:"aiChatHeader__ToolbarHeader"}),ke=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=`Ask ${e.aiAssistantName||"AI"}`;return n.jsx(an,{...t,children:a})}),Ie=i.ikp("div",{_id:"aiChatContent"}),Me=i.ikp(N.Root,{_id:"aiChatContentScrollArea"}),nn=i.ikp(N.Viewport,{_id:"aiChatContentScrollArea__Viewport"}),xe=g.forwardRef(({children:t,...e},a)=>{const{containerRef:o}=$a.useScrollToBottom(),r=se.useComposedRefs(a,o);return n.jsx(nn,{ref:r,children:n.jsx("div",{"data-part":"grid",style:{display:"grid"},children:t}),...e})}),Se=i.ikp(N.ScrollAreaScrollbar,{_id:"aiChatContentScrollArea__Scrollbar"}),fe=i.ikp(N.ScrollAreaThumb,{_id:"aiChatContentScrollArea__Thumb"}),Be=i.ikp(N.Corner,{_id:"aiChatContentScrollArea__Corner"}),on=i.ikp("div",{_id:"aiChatMessages"}),Te=t=>{const e=b.useChat(),{children:a,...o}=t;return n.jsx(on,{children:h.maybeRender(a,e),...o})},rn=i.ikp("div",{_id:"aiChatDisclaimer"}),je=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),[a,o]=g.useState(!1),r=za.useDebounce(a,100);return e.disclaimerSettings?.isEnabled?n.jsx(de.HoverPopoverProvider,{open:a,setOpen:o,children:n.jsx(j.Root,{open:r,onOpenChange:o,children:n.jsx(rn,{...t})})}):null}),sn=i.ikp("span",{_id:"aiChatDisclaimerLabel"}),ye=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.disclaimerSettings;return n.jsx(sn,{children:a?.label,...t})}),dn=i.ikp(j.Trigger,{_id:"aiChatDisclaimerTrigger",children:n.jsx(A.CustomIcon,{iconKey:"info"})}),He=g.memo(t=>{const{setOpen:e}=de.useHoverPopover(),a=()=>e(!0),o=()=>e(!1);return n.jsx(dn,{onMouseEnter:a,onMouseLeave:o,...t})}),mn=i.ikp(j.Content,{_id:"aiChatDisclaimerContent"}),we=t=>{const{setOpen:e}=de.useHoverPopover(),a=()=>e(!0),o=()=>e(!1);return n.jsx(mn,{onMouseEnter:a,onMouseLeave:o,side:"top",sideOffset:8,align:"end",alignOffset:-10,...t})},cn=i.ikp(K.Markdown,{_id:"aiChatDisclaimerText"}),Le=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.aiAssistantName,r=e.disclaimerSettings?.tooltip||`Information provided by ${a||"this AI assistant"} is not guaranteed to be accurate or comprehensive.`;return n.jsx(cn,{shouldOpenLinksInNewTab:!0,children:r,...t})}),De=i.ikp(j.Arrow,{_id:"aiChatDisclaimerArrow"}),ln=i.ikp("div",{_id:"aiChatExampleQuestions"}),Oe=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{messages:a}=b.useChat();return!e.exampleQuestions?.length||a.length?null:n.jsx(ln,{...t})},hn=i.ikp("h3",{_id:"aiChatExampleQuestionsLabel"}),Re=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(hn,{children:e.exampleQuestionsLabel,...t})}),Cn=i.ikp("div",{_id:"aiChatExampleQuestionsList"}),qe=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.exampleQuestions,{children:o,...r}=t;return n.jsx(Cn,{children:h.maybeRender(o,a),...r})}),un=i.ikp("div",{_id:"aiChatExampleQuestion"}),We=g.forwardRef((t,e)=>{const{aiChatSettings:a}=p.useInkeepConfig(),o=a.isFirstExampleQuestionHighlighted;return n.jsx(un,{ref:e,"data-highlight":h.dataAttr(o),...t})}),pn=i.ikp("button",{_id:"aiChatExampleQuestionButton"}),Ne=t=>{const{question:e,onClick:a,...o}=t,{handleSubmit:r}=b.useChat();return n.jsx(pn,{onClick:C.composeEventHandlers(a,()=>r(e)),children:e,...o})},bn=i.ikp("div",{_id:"aiChatWorkflows"}),Ve=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{messages:a}=b.useChat();return!e.workflows?.length||a.length?null:n.jsx(bn,{...t})},vn=i.ikp("h3",{_id:"aiChatWorkflowsLabel"}),Qe=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(vn,{children:e.workflowsHeader,...t})}),gn=i.ikp("div",{_id:"aiChatWorkflowsList"}),$e=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.workflows,{children:o,...r}=t;return n.jsx(gn,{children:h.maybeRender(o,a),...r})}),Pn=i.ikp("button",{_id:"aiChatWorkflow"}),Ue=t=>{const{workflow:e,onClick:a,...o}=t,{handleWorkflow:r}=b.useChat();return n.jsx(Pn,{onClick:C.composeEventHandlers(a,()=>r(e)),children:e.displayName,...o})},Fn=i.ikp("div",{_id:"aiChatMessageWrapper"}),ce=t=>{const{message:e,...a}=t;return e.role==="system"?null:n.jsx(P.MessageProvider,{message:e,children:n.jsx(Fn,{"data-role":e.role,...a})})},Ke=g.memo(t=>{const{message:e,...a}=t,{aiChatSettings:o,baseSettings:r}=p.useInkeepConfig(),s=o.aiAssistantName,d=s?`Hi, I'm ${s}!`:"Hi!",m=o.chatSubjectName??r.organizationDisplayName,c=`${d}
2
2
 
3
3
  I'm an AI assistant trained on documentation, help articles, and other content.`,l=m?`
4
4
 
5
5
  Ask me anything about \`${m}\`.`:`
6
6
 
7
- Let me know how I can help.`,v={content:o.introMessage??`${c}${l}`,id:Ya,...e,role:"assistant",links:[]};return n.jsx(ce,{message:v,...a})}),Fn=i.ikp("div",{_id:"aiChatMessageHeader"}),ze=t=>{const{message:e}=P.useMessage();return n.jsx(Fn,{"data-role":e.role,...t})},_n=i.ikp("div",{_id:"aiChatMessageLoading"}),Ge=t=>{const{isLoading:e,isStreaming:a,messages:o}=b.useChat(),{message:r}=P.useMessage();return!(o.at(-1)?.id===r?.id)||r.role!=="assistant"||!e||a?null:n.jsx(_n,{children:"Thinking...",...t})},An=i.ikp("div",{_id:"aiChatMessageAvatar"}),Ye=t=>{const{message:e}=P.useMessage();return n.jsx(An,{"data-role":e.role,...t})},En=i.ikp(me.Root,{_id:"aiChatMessageAvatarContent"}),Je=t=>{const{message:e}=P.useMessage(),{baseSettings:a}=p.useInkeepConfig();return n.jsx(En,{"data-username":h.dataAttr(e.role==="user"&&!!a.userProperties.name),"data-role":e.role,...t})},kn=i.ikp(me.Fallback,{_id:"aiChatMessageAvatarFallback"}),Xe=g.memo(t=>{const{baseSettings:e}=p.useInkeepConfig(),{message:a}=P.useMessage();return e.userProperties.name?n.jsx(kn,{"data-role":a.role,children:h.getInitials(e.userProperties.name),...t}):null}),be=i.ikp(me.Image,{_id:"aiChatMessageAvatarImage"}),Ze=g.memo(t=>{const{onLoadingStatusChange:e,...a}=t,{aiChatSettings:o,baseSettings:{userProperties:r}}=p.useInkeepConfig(),{message:s}=P.useMessage(),{aiAssistantAvatar:d}=o??{},m=typeof d=="string"?d:d?.light,c=(typeof d=="string"?d:d?.dark)??m,l=Va.useColorModeValue(m,c),[u,v]=g.useState(l);g.useEffect(()=>{v(l)},[l]);const k=H=>{H==="error"&&v(null)};return s.role==="user"?o.userAvatar?n.jsx(be,{"data-type":"image",alt:"User avatar","data-role":s.role,src:o.userAvatar,...t}):r.name?null:n.jsx(Ha.default,{"data-type":"icon","data-role":s.role,...t}):u?n.jsx(be,{src:u,alt:"AI assistant avatar","data-type":"image","data-role":s.role,onLoadingStatusChange:C.composeEventHandlers(e,k),...a}):n.jsx(ya.default,{"data-type":"icon","data-role":s.role,...t})}),In=i.ikp("span",{_id:"aiChatMessageName"}),et=t=>{const{message:e}=P.useMessage();return n.jsx(In,{"data-role":e.role,children:e.role==="user"?"You":"AI assistant",...t})},Mn=i.ikp("div",{_id:"aiChatMessageContentWrapper"}),tt=t=>{const{message:e}=P.useMessage(),{messageButtons:a}=b.useChat(),o=a[e.id]||[];return n.jsx(Mn,{"data-role":e.role,"data-has-message-buttons":h.dataAttr(!!o.length),...t})},xn=i.ikp("div",{_id:"aiChatMessageContent"}),it=t=>{const{message:e}=P.useMessage();return n.jsx(xn,{"data-role":e.role,...t})},Sn=i.ikp("div",{_id:"aiChatMessageAttachments"}),at=t=>{const{message:e}=P.useMessage(),a=e.metadata?.attributes?.attachments;return e.role!=="user"||!a?.length?null:n.jsx(q.MessageAttachmentsProvider,{children:n.jsx(Sn,{...t})})},fn=i.ikp("div",{_id:"aiChatMessageAttachments__List"}),nt=t=>{const{children:e,...a}=t,{message:o}=P.useMessage(),r=o.metadata?.attributes?.attachments;return r?n.jsx(fn,{children:h.maybeRender(e,r),...a}):null},Bn=i.ikp("div",{_id:"aiChatMessageAttachments__Item"}),ot=t=>{const{attachment:e,onClick:a,...o}=t,{selectItem:r,onOpen:s}=q.useMessageAttachments(),d=()=>{r(e),s()};return n.jsx(L.AttachmentItemProvider,{attachment:e,children:n.jsx(Bn,{onClick:C.composeEventHandlers(a,d),...o})})},Tn=i.ikp(M.BuiltInIconRenderer,{_id:"aiChatMessageAttachments__ItemIcon"}),rt=t=>{const{attachment:e}=L.useAttachmentItem(),a=e.contentType?.attachmentIcon;return a?n.jsx(Tn,{iconSettings:a,...t}):null},jn=i.ikp("span",{_id:"aiChatMessageAttachments__ItemTitle"}),st=t=>{const{attachment:e}=L.useAttachmentItem();return n.jsx(jn,{children:e.title,...t})},yn=i.ikp(F.Root,{_id:"aiChatMessageAttachmentsPreview"}),dt=t=>{const{onOpenChange:e,...a}=t,{selectItem:o,isOpen:r,onClose:s,selectedItem:d}=q.useMessageAttachments(),m=c=>{c||(s(),o(null))};return n.jsx(yn,{open:r&&d!==null,onOpenChange:C.composeEventHandlers(e,m),...a})},mt=i.ikp(F.Overlay,{_id:"aiChatMessageAttachmentsPreview__Overlay"}),ct=i.ikp(F.Content,{_id:"aiChatMessageAttachmentsPreview__Content","aria-describedby":void 0}),Hn=i.ikp(F.Title,{_id:"aiChatMessageAttachmentsPreview__Header"}),lt=t=>{const{selectedItem:e}=q.useMessageAttachments();return n.jsx(Hn,{children:e?.title||"Attachment",...t})},ht=i.ikp(F.Close,{_id:"aiChatMessageAttachmentsPreview__Close",children:n.jsx(A.CustomIcon,{iconKey:"close"})}),wn=i.ikp("p",{_id:"aiChatMessageAttachmentsPreview__Body"}),Ct=t=>{const{selectedItem:e}=q.useMessageAttachments();return n.jsx(wn,{children:e?.content,...t})},ve=i.ikp("div",{_id:"aiChatMessage"}),ut=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{componentStyles:a,...o}=t,{message:r}=P.useMessage(),{logEvent:s}=O.useChatEvents(),d=h.getMessageContent(r),{conversation:m}=D.useInkeepConversation();return r.role==="user"?n.jsx(ve,{"data-role":r.role,children:d,...o}):n.jsx(ve,{"data-role":r.role,...o,children:n.jsx(K.Markdown,{children:d,componentStyles:a,shouldOpenLinksInNewTab:e.shouldOpenLinksInNewTab,onLinkClick:(c,l)=>{s({eventName:"assistant_message_inline_link_opened",properties:{title:l?.toString(),url:c}})},onCodeCopy:(c,l)=>{s({eventName:"assistant_code_block_copied",properties:{conversation:m,language:c,code:l}})}})})},Ln=i.ikp("div",{_id:"aiChatMessageToolbar"}),pt=t=>{const{isLoading:e,messages:a}=b.useChat(),{message:o}=P.useMessage();return a.at(-1)?.id===o?.id&&e||o.role==="user"?null:n.jsx(Ln,{...t})},Dn=i.ikp("div",{_id:"aiChatMessageToolActions"}),bt=t=>{const{children:e,...a}=t,{message:o}=P.useMessage(),{messageButtons:r}=b.useChat(),s=r[o.id]||[];return n.jsx(Dn,{children:h.maybeRender(e,s),...a})},Rn=i.ikp("a",{_id:"aiChatMessageToolAction"}),On=i.ikp("button",{_id:"aiChatMessageToolAction"}),vt=t=>{const{onClick:e,action:a,...o}=t,{handleAction:r}=re.useChatAction(a),{logEvent:s}=O.useChatEvents(),{conversation:d}=D.useInkeepConversation(),m=()=>{r(),s({eventName:"tool_call_action_clicked",properties:{conversation:d}}),a.action.type!=="open_form"&&s({eventName:"user_escalation_indicated",properties:{escalationType:"contact_us",conversation:d}})},c=a.label||"Contact Support",l=n.jsxs(n.Fragment,{children:[a.icon&&n.jsx(M.BuiltInIconRenderer,{iconSettings:a.icon}),c]});return a.action.type==="open_link"?n.jsx(Rn,{href:a.action.url,target:"_blank",rel:"noopener","data-type":a.action.type,onClick:C.composeEventHandlers(e,m),children:l,...o}):n.jsx(On,{"data-type":a.action.type,onClick:C.composeEventHandlers(e,m),children:l,...o})},qn=i.ikp("button",{_id:"aiChatMessageAction"}),gt=t=>{const{action:e,onClick:a,className:o,...r}=t,{conversation:s}=D.useInkeepConversation(),{message:d}=P.useMessage(),{isStreaming:m,messages:c}=b.useChat(),[l,u]=ie.useCopyToClipboard(),{feedback:v,submitPositiveFeedback:k,setCurrentFeedback:H,currentFeedback:V}=oe.useMessageFeedback(),{logEvent:X}=O.useChatEvents(),[Q,Z]=Ra.useSettleAction(),{baseSettings:{privacyPreferences:Ce}}=p.useInkeepConfig(),{optOutAllAnalytics:ee}=Ce,ue=c.at(-1)?.id===d?.id,te=d.role==="assistant";if(ue&&m||!te||{copy:!1,upvote:ee,downvote:ee}[e])return null;const w={copy(){u(h.getMessageContent(d)),X({eventName:"assistant_message_copied",properties:{conversation:s}})},upvote(){k(d.id).then(()=>{Z()})},downvote(){H(d.id)}},R={copy:"Copy Message",upvote:"Upvote Message",downvote:"Downvote Message"},f={copy:n.jsx(A.CustomIcon,{iconKey:l?"messageCopied":"messageCopy"}),upvote:n.jsx(A.CustomIcon,{iconKey:Q?"messageCopied":"thumbsUp"}),downvote:n.jsx(A.CustomIcon,{iconKey:"thumbsDown"})},B={copy:{"data-copied":h.dataAttr(l)},upvote:{"data-upvoted":h.dataAttr(v[d.id]?.type==="positive")},downvote:{"data-downvoted":h.dataAttr(v[d.id]?.type==="negative"),"data-state":V===null?"closed":"open"}};return n.jsx(qn,{"data-action":e,...B[e],children:f[e],"aria-label":R[e],className:`${o} ${e}`,onClick:C.composeEventHandlers(a,w[e]),...r})},Wn=i.ikp("div",{_id:"aiChatMessageSources"}),Pt=t=>{const{message:e}=P.useMessage();return e.role!=="assistant"||!e.links?.length?null:n.jsx(Wn,{...t})},Nn=i.ikp("div",{_id:"aiChatMessageSources__Header"}),Ft=t=>n.jsx(Nn,{children:"Sources",...t}),Vn=i.ikp("div",{_id:"aiChatMessageSources__List"}),_t=t=>{const{message:e}=P.useMessage(),{children:a,...o}=t,{baseSettings:{transformSource:r,organizationDisplayName:s},aiChatSettings:{shouldOpenLinksInNewTab:d},searchSettings:{tabs:m}}=p.useInkeepConfig();if(e.role!=="assistant")return null;const c=e.links.map(l=>{const u=Ua.transformInkeepSource(l,"chatSourceItem",{organizationDisplayName:s,tabs:m,transformSource:r}),v=u.shouldOpenInNewTab!==void 0?u.shouldOpenInNewTab:d;return{...u,isExternal:v}});return n.jsx(Vn,{children:h.maybeRender(a,c),...o})},Qn=i.ikp(wa.LinkWithQueryParams,{_id:"aiChatMessageSourceItem"}),At=t=>{const{source:e,onClick:a,...o}=t,{logEvent:r}=O.useChatEvents(),{conversation:s}=D.useInkeepConversation(),d=()=>{r({eventName:"assistant_source_item_clicked",properties:{conversation:s,link:e}})};return n.jsx(T.SourceItemProvider,{source:e,children:n.jsx(Qn,{"data-type":e.type,appendToUrl:e.appendToUrl,isExternal:e.isExternal,"data-breadcrumbs":!!e.breadcrumbs?.length,onClick:C.composeEventHandlers(a,d),...o})})},$n=i.ikp("div",{_id:"aiChatMessageSourceItem__Breadcrumbs"}),Et=t=>{const{source:e}=T.useSourceItem();return e.breadcrumbs?.length?n.jsx($n,{"data-type":e.type,...t}):null},Un=i.ikp(A.CustomIcon,{_id:"aiChatMessageSourceItem__BreadcrumbIcon",iconKey:"breadcrumbSeparator"}),Kn=i.ikp(M.BuiltInIconRenderer,{_id:"aiChatMessageSourceItem__Icon"}),kt=t=>{const{source:e}=T.useSourceItem();return n.jsx(Kn,{iconSettings:e.icon,"data-type":e.type,...t})},zn=i.ikp("span",{_id:"aiChatMessageSourceItem__Title"}),It=t=>{const{source:e}=T.useSourceItem();return n.jsx(zn,{"data-type":e.type,children:e.title,...t})},Gn=i.ikp("span",{_id:"aiChatMessageSourceItem__Tag"}),Mt=t=>{const{source:e}=T.useSourceItem();return n.jsx(Gn,{"data-type":e.type,...t})},Yn=i.ikp("span",{_id:"aiChatMessageSourceItem__Description"}),xt=t=>{const{source:e}=T.useSourceItem(),{children:a,...o}=t,r=g.useMemo(()=>e.description?Wa.highlightEmphasis(e.description):[],[e.description]);return r.length?n.jsx(Yn,{"data-type":e.type,children:h.maybeRender(a,r),...o}):null},Jn=i.ikp("span",{_id:"aiChatMessageSourceItem__DescriptionPart"}),St=t=>{const{part:e,...a}=t,{source:o}=T.useSourceItem();return typeof e=="string"?e:n.jsx(Jn,{"data-type":o.type,children:e.content,"data-highlighted":h.dataAttr(e.highlighted),...a})},Xn=i.ikp(A.CustomIcon,{_id:"aiChatMessageSourceItem__Indicator"}),ft=t=>{const{source:e}=T.useSourceItem();return n.jsx(Xn,{iconKey:e.isExternal?"openLinkInNewTab":"openLinkInSameTab",...t})},Bt=i.ikp("div",{_id:"aiChatFooter"}),Tt=i.ikp("div",{_id:"aiChatInput__Fieldset"}),jt=i.ikp("div",{_id:"aiChatInput__Group"}),Zn=i.ikp("textarea",{_id:"aiChatInput"}),yt=g.forwardRef(({onChange:t,onKeyDown:e,...a},o)=>{const{handleInputChange:r,handleInputKeyDown:s,input:d,error:m,shouldAutoFocusInput:c,inputRef:l}=b.useChat(),{aiChatSettings:u}=p.useInkeepConfig(),v=se.useComposedRefs(o,l);return za.useWidgetAutoFocus("chat",l,c),n.jsx(Zn,{asChild:!0,ref:v,maxLength:99999,placeholder:u.placeholder,value:d,onChange:C.composeEventHandlers(t,r),onKeyDown:C.composeEventHandlers(e,s),disabled:!!m||u.isViewOnly,...a,children:n.jsx(ne,{})})}),eo=i.ikp("button",{_id:"aiChatInput__SendButton"}),Ht=t=>{const{handleSubmit:e,isSubmitDisabled:a,error:o}=b.useChat(),{aiChatSettings:r}=p.useInkeepConfig(),{onClick:s,...d}=t;return n.jsx(eo,{onClick:C.composeEventHandlers(s,()=>e()),"aria-label":"Send message",disabled:a||!!o||r.isViewOnly,...d})},wt=i.ikp(A.CustomIcon,{_id:"aiChatInput__SendButtonIcon",iconKey:"chatSubmit"}),to=i.ikp("div",{_id:"aiChatAttachmentsBar"}),Lt=t=>{const{selectedWorkflow:e}=b.useChat();return!e||!e.supportedInputs?.length?null:n.jsx(E.AttachmentsBarProvider,{children:n.jsx(to,{...t})})},io=i.ikp("div",{_id:"aiChatAttachmentsBar__List"}),Dt=t=>{const{children:e,...a}=t,{messageAttachments:o}=b.useChat();return n.jsx(io,{children:h.maybeRender(e,o),...a})},ao=i.ikp("div",{_id:"aiChatAttachmentsBar__Attachment"}),Rt=t=>{const{attachment:e,...a}=t;return n.jsx(L.AttachmentItemProvider,{attachment:e,children:n.jsx(ao,{...a})})},no=i.ikp(M.BuiltInIconRenderer,{_id:"aiChatAttachmentsBar__AttachmentIcon"}),Ot=t=>{const{attachment:e}=L.useAttachmentItem(),a=e.contentType?.attachmentIcon;return a?n.jsx(no,{iconSettings:a,...t}):null},oo=i.ikp("span",{_id:"aiChatAttachmentsBar__AttachmentTitle"}),qt=t=>{const{attachment:e}=L.useAttachmentItem();return n.jsx(oo,{children:e.title,...t})},ro=i.ikp("button",{_id:"aiChatAttachmentsBar__AttachmentDelete"}),Wt=t=>{const{onClick:e,...a}=t,{attachment:o}=L.useAttachmentItem(),{setMessageAttachments:r}=b.useChat(),s=()=>{r(d=>d.filter(m=>m.id!==o.id))};return n.jsx(ro,{"aria-label":"Remove attachment",children:n.jsx(A.CustomIcon,{iconKey:"close"}),onClick:C.composeEventHandlers(e,s),...a})},Nt=i.ikp("div",{_id:"aiChatAttachmentsBar__Actions"}),Vt=i.ikp(y.Tooltip,{_id:"aiChatAttachmentsBar__InfoTip",delayDuration:0}),Qt=i.ikp(y.Trigger,{_id:"aiChatAttachmentsBar__InfoTipIcon",children:n.jsx(A.CustomIcon,{iconKey:"info"})}),le=i.ikp(y.Arrow,{_id:"aiChatAttachmentsBar__InfoTipArrow"}),$t=i.ikp(y.Content,{_id:"aiChatAttachmentsBar__InfoTipText",side:"bottom",sideOffset:3,align:"center",children:n.jsxs(n.Fragment,{children:[n.jsx(le,{}),"Attachments will be kept in context for the entire conversation."]})}),so=i.ikp("div",{_id:"aiChatAttachmentsBar__Inputs"}),Ut=t=>{const{children:e,...a}=t,{selectedWorkflow:o}=b.useChat();return o?.supportedInputs?n.jsx(so,{children:h.maybeRender(e,o.supportedInputs),...a}):null},mo=i.ikp("button",{_id:"aiChatAttachmentsBar__Input"}),Kt=t=>{const{input:e,onClick:a,...o}=t,{selectedWorkflow:r,messageAttachments:s,setMessageAttachments:d}=b.useChat(),{selectInput:m,onOpen:c}=E.useAttachmentsBar(),l=()=>{if(e.type==="FUNCTIONAL_MULTI_ATTACHMENT")return r?e.onInvoke(r,e,d,[...s]):void 0;m(e),c()};return n.jsx(mo,{children:e.displayName,onClick:C.composeEventHandlers(a,l),...o})},co=i.ikp(F.Root,{_id:"aiChatAttachmentsBar__Modal"}),zt=t=>{const{onOpenChange:e,...a}=t,{selectInput:o,isOpen:r,onClose:s,selectedInput:d}=E.useAttachmentsBar(),m=c=>{c||(s(),o(null))};return n.jsx(co,{open:r&&d!==null,onOpenChange:C.composeEventHandlers(e,m),...a})},Gt=i.ikp(F.Overlay,{_id:"aiChatAttachmentsBar__ModalOverlay"}),Yt=i.ikp(F.Content,{_id:"aiChatAttachmentsBar__ModalContent","aria-describedby":void 0}),Jt=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalHeader"}),lo=i.ikp(F.Title,{_id:"aiChatAttachmentsBar__ModalHeading"}),Xt=t=>{const{selectedInput:e}=E.useAttachmentsBar(),a=`Add ${e?.displayName}`;return n.jsx(lo,{children:a,...t})},ho=i.ikp("span",{_id:"aiChatAttachmentsBar__ModalDescription"}),Zt=t=>{const{selectedInput:e}=E.useAttachmentsBar(),a=e?.workflowModalProps?.modalHelpText;return a?n.jsx(ho,{children:a,...t}):null},Co=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalHelp"}),ei=t=>{const{children:e,...a}=t,{selectedInput:o}=E.useAttachmentsBar(),r=o?.workflowModalProps?.modalHelpElement;return r?n.jsx(Co,{asChild:!e,children:e||r,...a}):null},ti=i.ikp(F.Close,{_id:"aiChatAttachmentsBar__ModalClose",children:n.jsx(A.CustomIcon,{iconKey:"close"})}),ii=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalBody"}),uo=i.ikp("form",{_id:"aiChatAttachmentsBar__Form"}),ai=t=>{const{onSubmit:e,...a}=t,{form:o}=E.useAttachmentsBar();return n.jsx(uo,{onSubmit:C.composeEventHandlers(e,o.onSubmit),...a})},ni=i.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),po=i.ikp("label",{_id:"aiChatAttachmentsBar__FormTitleLabel"}),oi=t=>{const{form:e,selectedInput:a}=E.useAttachmentsBar();return n.jsx(po,{htmlFor:`${a?.id}-title`,children:e.labels.title,...t})},bo=i.ikp("input",{_id:"aiChatAttachmentsBar__FormTitleInput"}),ri=t=>{const{onChange:e,...a}=t,{form:o,selectedInput:r}=E.useAttachmentsBar();return n.jsx(bo,{name:"title",value:o.data.title,id:`${r?.id}-title`,"data-invalid":h.dataAttr(!!o.errors.title),"aria-invalid":!!o.errors.title,onChange:C.composeEventHandlers(e,o.onChange),...a})},vo=i.ikp("span",{_id:"aiChatAttachmentsBar__FormTitleError"}),si=t=>{const{form:e}=E.useAttachmentsBar();return e.errors.title?n.jsx(vo,{"aria-live":"polite",children:e.errors.title,...t}):null},di=i.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),go=i.ikp("label",{_id:"aiChatAttachmentsBar__FormContentLabel"}),mi=t=>{const{form:e,selectedInput:a}=E.useAttachmentsBar();return n.jsx(go,{htmlFor:`${a?.id}-content`,children:e.labels.content,...t})},Po=i.ikp("textarea",{_id:"aiChatAttachmentsBar__FormTitleInput"}),ci=t=>{const{onChange:e,...a}=t,{form:o,selectedInput:r}=E.useAttachmentsBar();return n.jsx(Po,{asChild:!0,rows:4,name:"content",value:o.data.content,id:`${r?.id}-content`,"data-invalid":h.dataAttr(!!o.errors.content),"aria-invalid":!!o.errors.content,onChange:C.composeEventHandlers(e,o.onChange),...a,children:n.jsx(ne,{maxRows:10})})},Fo=i.ikp("span",{_id:"aiChatAttachmentsBar__FormContentError"}),li=t=>{const{form:e}=E.useAttachmentsBar();return e.errors.content?n.jsx(Fo,{"aria-live":"polite",children:e.errors.content,...t}):null},hi=i.ikp("button",{_id:"aiChatAttachmentsBar__FormSubmitButton",children:"Upload",type:"submit"}),Ci=i.ikp("div",{_id:"aiChatActionBar"}),ui=i.ikp("div",{_id:"aiChat__ChatActions"}),pi=i.ikp("div",{_id:"aiChatTagline__Container"}),bi=i.ikp("span",{_id:"aiChatTagline__Text",children:"Powered by"}),vi=i.ikp(Da.default,{_id:"aiChatTagline__Logo"}),gi=i.ikp("a",{_id:"aiChatTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),_o=i.ikp(y.Trigger,{_id:"aiChat__ChatAction"}),Y=t=>{const{action:e,onClick:a,className:o,...r}=t,{clear:s,stop:d,isLoading:m,messages:c,selectedWorkflow:l}=b.useChat(),{conversation:u}=D.useInkeepConversation(),{aiChatSettings:v,baseSettings:k}=p.useInkeepConfig(),{logEvent:H}=O.useChatEvents(),[V,X]=ie.useCopyToClipboard(),[Q,Z]=ie.useCopyToClipboard();if({help:!1,copy:c.length===0||!v.isCopyChatButtonVisible||m,share:c.length===0||!v.isShareButtonVisible||!u.id||!!l||m,clear:c.length===0||v.isViewOnly||m,stop:!m}[e])return null;const te={help:()=>{},copy:()=>{const $=c.map(w=>{const R=`**${w.role==="assistant"?"AI Assistant":"User"}**`,f=h.getMessageContent(w),B=La.stringifyAttachments(w.metadata?.attributes?.attachments),U=B?`
7
+ Let me know how I can help.`,v={content:o.introMessage??`${c}${l}`,id:Ja,...e,role:"assistant",links:[]};return n.jsx(ce,{message:v,...a})}),_n=i.ikp("div",{_id:"aiChatMessageHeader"}),ze=t=>{const{message:e}=P.useMessage();return n.jsx(_n,{"data-role":e.role,...t})},An=i.ikp("div",{_id:"aiChatMessageLoading"}),Ge=t=>{const{isLoading:e,isStreaming:a,messages:o}=b.useChat(),{message:r}=P.useMessage();return!(o.at(-1)?.id===r?.id)||r.role!=="assistant"||!e||a?null:n.jsx(An,{children:"Thinking...",...t})},En=i.ikp("div",{_id:"aiChatMessageAvatar"}),Ye=t=>{const{message:e}=P.useMessage();return n.jsx(En,{"data-role":e.role,...t})},kn=i.ikp(me.Root,{_id:"aiChatMessageAvatarContent"}),Je=t=>{const{message:e}=P.useMessage(),{baseSettings:a}=p.useInkeepConfig();return n.jsx(kn,{"data-username":h.dataAttr(e.role==="user"&&!!a.userProperties.name),"data-role":e.role,...t})},In=i.ikp(me.Fallback,{_id:"aiChatMessageAvatarFallback"}),Xe=g.memo(t=>{const{baseSettings:e}=p.useInkeepConfig(),{message:a}=P.useMessage();return e.userProperties.name?n.jsx(In,{"data-role":a.role,children:h.getInitials(e.userProperties.name),...t}):null}),be=i.ikp(me.Image,{_id:"aiChatMessageAvatarImage"}),Ze=g.memo(t=>{const{onLoadingStatusChange:e,...a}=t,{aiChatSettings:o,baseSettings:{userProperties:r}}=p.useInkeepConfig(),{message:s}=P.useMessage(),{aiAssistantAvatar:d}=o??{},m=typeof d=="string"?d:d?.light,c=(typeof d=="string"?d:d?.dark)??m,l=Qa.useColorModeValue(m,c),[u,v]=g.useState(l);g.useEffect(()=>{v(l)},[l]);const k=H=>{H==="error"&&v(null)};return s.role==="user"?o.userAvatar?n.jsx(be,{"data-type":"image",alt:"User avatar","data-role":s.role,src:o.userAvatar,...t}):r.name?null:n.jsx(wa.default,{"data-type":"icon","data-role":s.role,...t}):u?n.jsx(be,{src:u,alt:"AI assistant avatar","data-type":"image","data-role":s.role,onLoadingStatusChange:C.composeEventHandlers(e,k),...a}):n.jsx(Ha.default,{"data-type":"icon","data-role":s.role,...t})}),Mn=i.ikp("span",{_id:"aiChatMessageName"}),et=t=>{const{message:e}=P.useMessage();return n.jsx(Mn,{"data-role":e.role,children:e.role==="user"?"You":"AI assistant",...t})},xn=i.ikp("div",{_id:"aiChatMessageContentWrapper"}),tt=t=>{const{message:e}=P.useMessage(),{messageButtons:a}=b.useChat(),o=a[e.id]||[];return n.jsx(xn,{"data-role":e.role,"data-has-message-buttons":h.dataAttr(!!o.length),...t})},Sn=i.ikp("div",{_id:"aiChatMessageContent"}),it=t=>{const{message:e}=P.useMessage();return n.jsx(Sn,{"data-role":e.role,...t})},fn=i.ikp("div",{_id:"aiChatMessageAttachments"}),at=t=>{const{message:e}=P.useMessage(),a=e.metadata?.attributes?.attachments;return e.role!=="user"||!a?.length?null:n.jsx(q.MessageAttachmentsProvider,{children:n.jsx(fn,{...t})})},Bn=i.ikp("div",{_id:"aiChatMessageAttachments__List"}),nt=t=>{const{children:e,...a}=t,{message:o}=P.useMessage(),r=o.metadata?.attributes?.attachments;return r?n.jsx(Bn,{children:h.maybeRender(e,r),...a}):null},Tn=i.ikp("div",{_id:"aiChatMessageAttachments__Item"}),ot=t=>{const{attachment:e,onClick:a,...o}=t,{selectItem:r,onOpen:s}=q.useMessageAttachments(),d=()=>{r(e),s()};return n.jsx(L.AttachmentItemProvider,{attachment:e,children:n.jsx(Tn,{onClick:C.composeEventHandlers(a,d),...o})})},jn=i.ikp(M.BuiltInIconRenderer,{_id:"aiChatMessageAttachments__ItemIcon"}),rt=t=>{const{attachment:e}=L.useAttachmentItem(),a=e.contentType?.attachmentIcon;return a?n.jsx(jn,{iconSettings:a,...t}):null},yn=i.ikp("span",{_id:"aiChatMessageAttachments__ItemTitle"}),st=t=>{const{attachment:e}=L.useAttachmentItem();return n.jsx(yn,{children:e.title,...t})},Hn=i.ikp(F.Root,{_id:"aiChatMessageAttachmentsPreview"}),dt=t=>{const{onOpenChange:e,...a}=t,{selectItem:o,isOpen:r,onClose:s,selectedItem:d}=q.useMessageAttachments(),m=c=>{c||(s(),o(null))};return n.jsx(Hn,{open:r&&d!==null,onOpenChange:C.composeEventHandlers(e,m),...a})},mt=i.ikp(F.Overlay,{_id:"aiChatMessageAttachmentsPreview__Overlay"}),ct=i.ikp(F.Content,{_id:"aiChatMessageAttachmentsPreview__Content","aria-describedby":void 0}),wn=i.ikp(F.Title,{_id:"aiChatMessageAttachmentsPreview__Header"}),lt=t=>{const{selectedItem:e}=q.useMessageAttachments();return n.jsx(wn,{children:e?.title||"Attachment",...t})},ht=i.ikp(F.Close,{_id:"aiChatMessageAttachmentsPreview__Close",children:n.jsx(A.CustomIcon,{iconKey:"close"})}),Ln=i.ikp("p",{_id:"aiChatMessageAttachmentsPreview__Body"}),Ct=t=>{const{selectedItem:e}=q.useMessageAttachments();return n.jsx(Ln,{children:e?.content,...t})},ve=i.ikp("div",{_id:"aiChatMessage"}),ut=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{componentStyles:a,...o}=t,{message:r}=P.useMessage(),{logEvent:s}=R.useChatEvents(),d=h.getMessageContent(r),{conversation:m}=D.useInkeepConversation();return r.role==="user"?n.jsx(ve,{"data-role":r.role,children:d,...o}):n.jsx(ve,{"data-role":r.role,...o,children:n.jsx(K.Markdown,{children:d,componentStyles:a,shouldOpenLinksInNewTab:e.shouldOpenLinksInNewTab,onLinkClick:(c,l)=>{s({eventName:"assistant_message_inline_link_opened",properties:{title:l?.toString(),url:c}})},onCodeCopy:(c,l)=>{s({eventName:"assistant_code_block_copied",properties:{conversation:m,language:c,code:l}})}})})},Dn=i.ikp("div",{_id:"aiChatMessageToolbar"}),pt=t=>{const{isLoading:e,messages:a}=b.useChat(),{message:o}=P.useMessage();return a.at(-1)?.id===o?.id&&e||o.role==="user"?null:n.jsx(Dn,{...t})},On=i.ikp("div",{_id:"aiChatMessageToolActions"}),bt=t=>{const{children:e,...a}=t,{message:o}=P.useMessage(),{messageButtons:r}=b.useChat(),s=r[o.id]||[];return n.jsx(On,{children:h.maybeRender(e,s),...a})},Rn=i.ikp("a",{_id:"aiChatMessageToolAction"}),qn=i.ikp("button",{_id:"aiChatMessageToolAction"}),vt=t=>{const{onClick:e,action:a,...o}=t,{handleAction:r}=re.useChatAction(a),{logEvent:s}=R.useChatEvents(),{conversation:d}=D.useInkeepConversation(),m=()=>{r(),s({eventName:"tool_call_action_clicked",properties:{conversation:d}}),a.action.type!=="open_form"&&s({eventName:"user_escalation_indicated",properties:{escalationType:"contact_us",conversation:d}})},c=a.label||"Contact Support",l=n.jsxs(n.Fragment,{children:[a.icon&&n.jsx(M.BuiltInIconRenderer,{iconSettings:a.icon}),c]});return a.action.type==="open_link"?n.jsx(Rn,{href:a.action.url,target:"_blank",rel:"noopener","data-type":a.action.type,onClick:C.composeEventHandlers(e,m),children:l,...o}):n.jsx(qn,{"data-type":a.action.type,onClick:C.composeEventHandlers(e,m),children:l,...o})},Wn=i.ikp("button",{_id:"aiChatMessageAction"}),gt=t=>{const{action:e,onClick:a,className:o,...r}=t,{conversation:s}=D.useInkeepConversation(),{message:d}=P.useMessage(),{isStreaming:m,messages:c}=b.useChat(),[l,u]=ie.useCopyToClipboard(),{feedback:v,submitPositiveFeedback:k,setCurrentFeedback:H,currentFeedback:V}=oe.useMessageFeedback(),{logEvent:X}=R.useChatEvents(),[Q,Z]=Ra.useSettleAction(),{baseSettings:{privacyPreferences:Ce}}=p.useInkeepConfig(),{optOutAllAnalytics:ee}=Ce,ue=c.at(-1)?.id===d?.id,te=d.role==="assistant";if(ue&&m||!te||{copy:!1,upvote:ee,downvote:ee}[e])return null;const w={copy(){u(h.getMessageContent(d)),X({eventName:"assistant_message_copied",properties:{conversation:s}})},upvote(){k(d.id).then(()=>{Z()})},downvote(){H(d.id)}},O={copy:"Copy Message",upvote:"Upvote Message",downvote:"Downvote Message"},f={copy:n.jsx(A.CustomIcon,{iconKey:l?"messageCopied":"messageCopy"}),upvote:n.jsx(A.CustomIcon,{iconKey:Q?"messageCopied":"thumbsUp"}),downvote:n.jsx(A.CustomIcon,{iconKey:"thumbsDown"})},B={copy:{"data-copied":h.dataAttr(l)},upvote:{"data-upvoted":h.dataAttr(v[d.id]?.type==="positive")},downvote:{"data-downvoted":h.dataAttr(v[d.id]?.type==="negative"),"data-state":V===null?"closed":"open"}};return n.jsx(Wn,{"data-action":e,...B[e],children:f[e],"aria-label":O[e],className:`${o} ${e}`,onClick:C.composeEventHandlers(a,w[e]),...r})},Nn=i.ikp("div",{_id:"aiChatMessageSources"}),Pt=t=>{const{message:e}=P.useMessage();return e.role!=="assistant"||!e.links?.length?null:n.jsx(Nn,{...t})},Vn=i.ikp("div",{_id:"aiChatMessageSources__Header"}),Ft=t=>n.jsx(Vn,{children:"Sources",...t}),Qn=i.ikp("div",{_id:"aiChatMessageSources__List"}),_t=t=>{const{message:e}=P.useMessage(),{children:a,...o}=t,{baseSettings:{transformSource:r,organizationDisplayName:s},aiChatSettings:{shouldOpenLinksInNewTab:d},searchSettings:{tabs:m}}=p.useInkeepConfig();if(e.role!=="assistant")return null;const c=e.links.map(l=>{const u=Ka.transformInkeepSource(l,"chatSourceItem",{organizationDisplayName:s,tabs:m,transformSource:r}),v=u.shouldOpenInNewTab!==void 0?u.shouldOpenInNewTab:d;return{...u,isExternal:v}});return n.jsx(Qn,{children:h.maybeRender(a,c),...o})},$n=i.ikp(La.LinkWithQueryParams,{_id:"aiChatMessageSourceItem"}),At=t=>{const{source:e,onClick:a,...o}=t,{logEvent:r}=R.useChatEvents(),{conversation:s}=D.useInkeepConversation(),d=()=>{r({eventName:"assistant_source_item_clicked",properties:{conversation:s,link:e}})};return n.jsx(T.SourceItemProvider,{source:e,children:n.jsx($n,{"data-type":e.type,appendToUrl:e.appendToUrl,isExternal:e.isExternal,"data-breadcrumbs":!!e.breadcrumbs?.length,onClick:C.composeEventHandlers(a,d),...o})})},Un=i.ikp("div",{_id:"aiChatMessageSourceItem__Breadcrumbs"}),Et=t=>{const{source:e}=T.useSourceItem();return e.breadcrumbs?.length?n.jsx(Un,{"data-type":e.type,...t}):null},Kn=i.ikp(A.CustomIcon,{_id:"aiChatMessageSourceItem__BreadcrumbIcon",iconKey:"breadcrumbSeparator"}),zn=i.ikp(M.BuiltInIconRenderer,{_id:"aiChatMessageSourceItem__Icon"}),kt=t=>{const{source:e}=T.useSourceItem();return n.jsx(zn,{iconSettings:e.icon,"data-type":e.type,...t})},Gn=i.ikp("span",{_id:"aiChatMessageSourceItem__Title"}),It=t=>{const{source:e}=T.useSourceItem();return n.jsx(Gn,{"data-type":e.type,children:e.title,...t})},Yn=i.ikp("span",{_id:"aiChatMessageSourceItem__Tag"}),Mt=t=>{const{source:e}=T.useSourceItem();return n.jsx(Yn,{"data-type":e.type,...t})},Jn=i.ikp("span",{_id:"aiChatMessageSourceItem__Description"}),xt=t=>{const{source:e}=T.useSourceItem(),{children:a,...o}=t,r=g.useMemo(()=>e.description?Na.highlightEmphasis(e.description):[],[e.description]);return r.length?n.jsx(Jn,{"data-type":e.type,children:h.maybeRender(a,r),...o}):null},Xn=i.ikp("span",{_id:"aiChatMessageSourceItem__DescriptionPart"}),St=t=>{const{part:e,...a}=t,{source:o}=T.useSourceItem();return typeof e=="string"?e:n.jsx(Xn,{"data-type":o.type,children:e.content,"data-highlighted":h.dataAttr(e.highlighted),...a})},Zn=i.ikp(A.CustomIcon,{_id:"aiChatMessageSourceItem__Indicator"}),ft=t=>{const{source:e}=T.useSourceItem();return n.jsx(Zn,{iconKey:e.isExternal?"openLinkInNewTab":"openLinkInSameTab",...t})},Bt=i.ikp("div",{_id:"aiChatFooter"}),Tt=i.ikp("div",{_id:"aiChatInput__Fieldset"}),jt=i.ikp("div",{_id:"aiChatInput__Group"}),eo=i.ikp("textarea",{_id:"aiChatInput"}),yt=g.forwardRef(({onChange:t,onKeyDown:e,...a},o)=>{const{handleInputChange:r,handleInputKeyDown:s,input:d,error:m,shouldAutoFocusInput:c,inputRef:l}=b.useChat(),{aiChatSettings:u}=p.useInkeepConfig(),v=se.useComposedRefs(o,l);return Ga.useWidgetAutoFocus("chat",l,c),n.jsx(eo,{asChild:!0,ref:v,maxLength:99999,placeholder:u.placeholder,value:d,onChange:C.composeEventHandlers(t,r),onKeyDown:C.composeEventHandlers(e,s),disabled:!!m||u.isViewOnly,...a,children:n.jsx(ne,{})})}),to=i.ikp("button",{_id:"aiChatInput__SendButton"}),Ht=t=>{const{handleSubmit:e,isSubmitDisabled:a,error:o}=b.useChat(),{aiChatSettings:r}=p.useInkeepConfig(),{onClick:s,...d}=t;return n.jsx(to,{onClick:C.composeEventHandlers(s,()=>e()),"aria-label":"Send message",disabled:a||!!o||r.isViewOnly,...d})},wt=i.ikp(A.CustomIcon,{_id:"aiChatInput__SendButtonIcon",iconKey:"chatSubmit"}),io=i.ikp("div",{_id:"aiChatAttachmentsBar"}),Lt=t=>{const{selectedWorkflow:e}=b.useChat();return!e||!e.supportedInputs?.length?null:n.jsx(E.AttachmentsBarProvider,{children:n.jsx(io,{...t})})},ao=i.ikp("div",{_id:"aiChatAttachmentsBar__List"}),Dt=t=>{const{children:e,...a}=t,{messageAttachments:o}=b.useChat();return n.jsx(ao,{children:h.maybeRender(e,o),...a})},no=i.ikp("div",{_id:"aiChatAttachmentsBar__Attachment"}),Ot=t=>{const{attachment:e,...a}=t;return n.jsx(L.AttachmentItemProvider,{attachment:e,children:n.jsx(no,{...a})})},oo=i.ikp(M.BuiltInIconRenderer,{_id:"aiChatAttachmentsBar__AttachmentIcon"}),Rt=t=>{const{attachment:e}=L.useAttachmentItem(),a=e.contentType?.attachmentIcon;return a?n.jsx(oo,{iconSettings:a,...t}):null},ro=i.ikp("span",{_id:"aiChatAttachmentsBar__AttachmentTitle"}),qt=t=>{const{attachment:e}=L.useAttachmentItem();return n.jsx(ro,{children:e.title,...t})},so=i.ikp("button",{_id:"aiChatAttachmentsBar__AttachmentDelete"}),Wt=t=>{const{onClick:e,...a}=t,{attachment:o}=L.useAttachmentItem(),{setMessageAttachments:r}=b.useChat(),s=()=>{r(d=>d.filter(m=>m.id!==o.id))};return n.jsx(so,{"aria-label":"Remove attachment",children:n.jsx(A.CustomIcon,{iconKey:"close"}),onClick:C.composeEventHandlers(e,s),...a})},Nt=i.ikp("div",{_id:"aiChatAttachmentsBar__Actions"}),Vt=i.ikp(y.Tooltip,{_id:"aiChatAttachmentsBar__InfoTip",delayDuration:0}),Qt=i.ikp(y.Trigger,{_id:"aiChatAttachmentsBar__InfoTipIcon",children:n.jsx(A.CustomIcon,{iconKey:"info"})}),le=i.ikp(y.Arrow,{_id:"aiChatAttachmentsBar__InfoTipArrow"}),$t=i.ikp(y.Content,{_id:"aiChatAttachmentsBar__InfoTipText",side:"bottom",sideOffset:3,align:"center",children:n.jsxs(n.Fragment,{children:[n.jsx(le,{}),"Attachments will be kept in context for the entire conversation."]})}),mo=i.ikp("div",{_id:"aiChatAttachmentsBar__Inputs"}),Ut=t=>{const{children:e,...a}=t,{selectedWorkflow:o}=b.useChat();return o?.supportedInputs?n.jsx(mo,{children:h.maybeRender(e,o.supportedInputs),...a}):null},co=i.ikp("button",{_id:"aiChatAttachmentsBar__Input"}),Kt=t=>{const{input:e,onClick:a,...o}=t,{selectedWorkflow:r,messageAttachments:s,setMessageAttachments:d}=b.useChat(),{selectInput:m,onOpen:c}=E.useAttachmentsBar(),l=()=>{if(e.type==="FUNCTIONAL_MULTI_ATTACHMENT")return r?e.onInvoke(r,e,d,[...s]):void 0;m(e),c()};return n.jsx(co,{children:e.displayName,onClick:C.composeEventHandlers(a,l),...o})},lo=i.ikp(F.Root,{_id:"aiChatAttachmentsBar__Modal"}),zt=t=>{const{onOpenChange:e,...a}=t,{selectInput:o,isOpen:r,onClose:s,selectedInput:d}=E.useAttachmentsBar(),m=c=>{c||(s(),o(null))};return n.jsx(lo,{open:r&&d!==null,onOpenChange:C.composeEventHandlers(e,m),...a})},Gt=i.ikp(F.Overlay,{_id:"aiChatAttachmentsBar__ModalOverlay"}),Yt=i.ikp(F.Content,{_id:"aiChatAttachmentsBar__ModalContent","aria-describedby":void 0}),Jt=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalHeader"}),ho=i.ikp(F.Title,{_id:"aiChatAttachmentsBar__ModalHeading"}),Xt=t=>{const{selectedInput:e}=E.useAttachmentsBar(),a=`Add ${e?.displayName}`;return n.jsx(ho,{children:a,...t})},Co=i.ikp("span",{_id:"aiChatAttachmentsBar__ModalDescription"}),Zt=t=>{const{selectedInput:e}=E.useAttachmentsBar(),a=e?.workflowModalProps?.modalHelpText;return a?n.jsx(Co,{children:a,...t}):null},uo=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalHelp"}),ei=t=>{const{children:e,...a}=t,{selectedInput:o}=E.useAttachmentsBar(),r=o?.workflowModalProps?.modalHelpElement;return r?n.jsx(uo,{asChild:!e,children:e||r,...a}):null},ti=i.ikp(F.Close,{_id:"aiChatAttachmentsBar__ModalClose",children:n.jsx(A.CustomIcon,{iconKey:"close"})}),ii=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalBody"}),po=i.ikp("form",{_id:"aiChatAttachmentsBar__Form"}),ai=t=>{const{onSubmit:e,...a}=t,{form:o}=E.useAttachmentsBar();return n.jsx(po,{onSubmit:C.composeEventHandlers(e,o.onSubmit),...a})},ni=i.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),bo=i.ikp("label",{_id:"aiChatAttachmentsBar__FormTitleLabel"}),oi=t=>{const{form:e,selectedInput:a}=E.useAttachmentsBar();return n.jsx(bo,{htmlFor:`${a?.id}-title`,children:e.labels.title,...t})},vo=i.ikp("input",{_id:"aiChatAttachmentsBar__FormTitleInput"}),ri=t=>{const{onChange:e,...a}=t,{form:o,selectedInput:r}=E.useAttachmentsBar();return n.jsx(vo,{name:"title",value:o.data.title,id:`${r?.id}-title`,"data-invalid":h.dataAttr(!!o.errors.title),"aria-invalid":!!o.errors.title,onChange:C.composeEventHandlers(e,o.onChange),...a})},go=i.ikp("span",{_id:"aiChatAttachmentsBar__FormTitleError"}),si=t=>{const{form:e}=E.useAttachmentsBar();return e.errors.title?n.jsx(go,{"aria-live":"polite",children:e.errors.title,...t}):null},di=i.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),Po=i.ikp("label",{_id:"aiChatAttachmentsBar__FormContentLabel"}),mi=t=>{const{form:e,selectedInput:a}=E.useAttachmentsBar();return n.jsx(Po,{htmlFor:`${a?.id}-content`,children:e.labels.content,...t})},Fo=i.ikp("textarea",{_id:"aiChatAttachmentsBar__FormTitleInput"}),ci=t=>{const{onChange:e,...a}=t,{form:o,selectedInput:r}=E.useAttachmentsBar();return n.jsx(Fo,{asChild:!0,rows:4,name:"content",value:o.data.content,id:`${r?.id}-content`,"data-invalid":h.dataAttr(!!o.errors.content),"aria-invalid":!!o.errors.content,onChange:C.composeEventHandlers(e,o.onChange),...a,children:n.jsx(ne,{maxRows:10})})},_o=i.ikp("span",{_id:"aiChatAttachmentsBar__FormContentError"}),li=t=>{const{form:e}=E.useAttachmentsBar();return e.errors.content?n.jsx(_o,{"aria-live":"polite",children:e.errors.content,...t}):null},hi=i.ikp("button",{_id:"aiChatAttachmentsBar__FormSubmitButton",children:"Upload",type:"submit"}),Ci=i.ikp("div",{_id:"aiChatActionBar"}),ui=i.ikp("div",{_id:"aiChat__ChatActions"}),pi=i.ikp("div",{_id:"aiChatTagline__Container"}),bi=i.ikp("span",{_id:"aiChatTagline__Text",children:"Powered by"}),vi=i.ikp(Oa.default,{_id:"aiChatTagline__Logo"}),gi=i.ikp("a",{_id:"aiChatTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),Ao=i.ikp(y.Trigger,{_id:"aiChat__ChatAction"}),Y=t=>{const{action:e,onClick:a,className:o,...r}=t,{clear:s,stop:d,isLoading:m,messages:c,selectedWorkflow:l}=b.useChat(),{conversation:u}=D.useInkeepConversation(),{aiChatSettings:v,baseSettings:k}=p.useInkeepConfig(),{logEvent:H}=R.useChatEvents(),[V,X]=ie.useCopyToClipboard(),[Q,Z]=ie.useCopyToClipboard();if({help:!1,copy:c.length===0||!v.isCopyChatButtonVisible||m,share:c.length===0||!v.isShareButtonVisible||!u.id||!!l||m,clear:c.length===0||v.isViewOnly||m,stop:!m}[e])return null;const te={help:()=>{},copy:()=>{const $=c.map(w=>{const O=`**${w.role==="assistant"?"AI Assistant":"User"}**`,f=h.getMessageContent(w),B=Da.stringifyAttachments(w.metadata?.attributes?.attachments),U=B?`
8
8
 
9
9
  **Attachments**
10
10
 
11
- ${B}`:"";return`${R}
11
+ ${B}`:"";return`${O}
12
12
 
13
13
  ${f}${U}`}).join(`
14
14
 
15
15
  ---
16
16
 
17
- `);X($)},share:async()=>{const $={visibility:"public",tags:[],userProperties:{},messages:u.messages.map(B=>({...B,createdAt:void 0,updatedAt:void 0,id:Date.now().toString()+B.id,conversationId:void 0}))},{apiKey:w,analyticsApiBaseUrl:R}=k,f=await $a.logConversation("",$,w,R);if(f){const U=`${v.shareChatUrlBasePath}?${D.SHARE_QUERY_PARAM}=${f?.id}`;Z(U),H({eventName:"chat_share_button_clicked",properties:{sharedConversationId:f?.id,originalConversationId:u.id,sharedChatUrl:U,conversation:f}})}},clear:s,stop:d},pe={copy:V,share:Q};return n.jsx(y.Tooltip,{delayDuration:0,open:pe[e],children:n.jsx(_o,{"data-type":e,"data-copied":h.dataAttr(V||Q),className:`${o} ${e}`,children:n.jsx(he,{action:e}),onClick:C.composeEventHandlers(a,te[e]),...r})})},Ao=i.ikp("span",{_id:"aiChat__ChatActionLabel"}),he=t=>{const{action:e,...a}=t,{aiChatSettings:o}=p.useInkeepConfig(),r=o.toolbarButtonLabels??{},s={help:r.getHelp??"Get Help",copy:r.copyChat??"Copy",share:r.share??"Share",clear:r.clear??"Clear",stop:r.stop??"Stop"};return n.jsx(Ao,{children:s[e],...a})},Eo=i.ikp(y.TooltipContent,{_id:"aiChat__ChatActionFeeback"}),Pi=t=>{const{action:e,children:a,...o}=t,r={copy:"Copied!",share:"Link copied!"};return n.jsxs(Eo,{sideOffset:5,...o,children:[n.jsx(y.Arrow,{}),a||r[e]]})},ko=i.ikp(j.Root,{_id:"aiChatHelpActions"}),Fi=t=>{const{children:e,...a}=t,{aiChatSettings:o}=p.useInkeepConfig(),{getHelpOptions:r}=o;if(!r||(r??[]).length===0)return null;const{_pinned:s,_unpinned:d}=r.reduce((u,v)=>{const k=v.isPinnedToToolbar?"_pinned":"_unpinned";return{...u,[k]:[...u[k],v]}},{_pinned:[],_unpinned:[]}),m=d.length===1?[...s,d[0]]:s,c=d.length===1?[]:d,l=ae.useHelpMenuState();return n.jsx(ae.HelpMenuProvider,{value:l,children:n.jsx(ko,{open:l.open,onOpenChange:l.setOpen,children:h.maybeRender(e,{pinned:m,unpinned:c}),...a})})},Io=i.ikp(Y,{_id:"aiChatHelpAction",action:"help"}),Mo=i.ikp("a",{_id:"aiChatHelpAction",target:"_blank",rel:"noreferrer"}),_i=t=>{const{action:e,onClick:a,...o}=t,{handleAction:r,logHelpAction:s}=re.useChatAction(e),d=e.action.type,m={"aria-label":e.name,"data-name":e.name,children:e.name,onClick:C.composeEventHandlers(a,()=>{r(),s()}),...o};return d==="open_link"?n.jsx(Mo,{href:e.action.url,...m}):n.jsx(Io,{...m})},xo=i.ikp(j.Trigger,{_id:"aiChatHelpActions__Trigger"}),Ai=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(Y,{action:"help",...t,asChild:!0,children:n.jsx(xo,{children:e.toolbarButtonLabels?.getHelp??"Get Help"})})}),So=i.ikp(j.Content,{_id:"aiChatHelpActions__Menu"}),Ei=t=>n.jsx(So,{side:"top",sideOffset:8,align:"center",alignOffset:-10,...t}),ki=i.ikp(j.Arrow,{_id:"aiChatHelpActions__MenuArrow"}),Ii=t=>{const{action:e,onClick:a,...o}=t,{handleAction:r,logHelpAction:s}=re.useChatAction(e),{setOpen:d}=ae.useHelpMenu(),m=()=>{r({onOpenForm:()=>d(!1)}),s()},c=e.action.type,l=i.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(a,m)});return n.jsx(l,{...o})},fo=i.ikp(M.BuiltInIconRenderer,{_id:"aiChatHelpActions_MenuItemIcon"}),Mi=t=>{const{action:e,...a}=t;return e.icon?n.jsx(fo,{iconSettings:e.icon,...a}):null},Bo=i.ikp(F.Root,{_id:"aiChatFeedbackModal"}),xi=t=>{const{onOpenChange:e,...a}=t,{currentFeedback:o,setCurrentFeedback:r}=oe.useMessageFeedback();return n.jsx(Bo,{open:o!==null,onOpenChange:C.composeEventHandlers(e,()=>r(null)),...a})},Si=i.ikp(F.Overlay,{_id:"aiChatFeedbackModal__Overlay"}),fi=i.ikp(F.Content,{_id:"aiChatFeedbackModal__Content","aria-describedby":void 0}),Bi=i.ikp(F.Title,{_id:"aiChatFeedbackModal__Header",children:"Help improve my answers!"}),Ti=i.ikp(F.Close,{_id:"aiChatFeedbackModal__Close",children:n.jsx(A.CustomIcon,{iconKey:"close"})}),ji=i.ikp("div",{_id:"aiChatFeedbackModal__Body"}),To=i.ikp("form",{_id:"aiChatFeedbackForm"}),yi=t=>{const{onSubmit:e,...a}=t,{submitNegativeFeedback:o,currentFeedback:r,setCurrentFeedback:s}=oe.useMessageFeedback(),d=m=>{m.preventDefault();const c=m.target,l=new FormData(c),u=Object.fromEntries(l.entries());r&&(o(r,u),s(null))};return n.jsx(To,{onSubmit:C.composeEventHandlers(e,d),...a})},jo=i.ikp("div",{_id:"aiChatFeedbackItem"}),Hi=t=>{const{name:e,...a}=t;return n.jsx(z.FeedbackItemProvider,{name:e,children:n.jsx(jo,{...a})})},yo=i.ikp(G.Root,{_id:"aiChatFeedbackItem__Checkbox"}),wi=t=>{const{name:e,focusItem:a}=z.useFeedbackItem(),{onCheckedChange:o,...r}=t,s=d=>{d&&a?.current?.focus()};return n.jsx(yo,{id:`feedback-${e}`,name:e,onCheckedChange:C.composeEventHandlers(o,s),...r})},Li=i.ikp(G.Indicator,{_id:"aiChatFeedbackItem__CheckboxIndicator",children:n.jsx(ge.CheckboxIcon,{})}),Ho=i.ikp("label",{_id:"aiChatFeedbackItem__Label"}),Di=t=>{const{name:e}=z.useFeedbackItem(),a={unrelated_response:"Didn't answer my question",inaccurate_statement:"Inaccurate statement",inaccurate_code_snippet:"Inaccurate code snippet",irrelevant_citations:"Irrelevant citations"};return n.jsx(Ho,{htmlFor:`feedback-${e}`,children:a[e],...t})},wo=i.ikp("textarea",{_id:"aiChatFeedbackItem__Description",placeholder:"Please describe"}),Ri=t=>{const{name:e,focusItem:a}=z.useFeedbackItem();return n.jsx(wo,{ref:a,name:`${e}:description`,...t})},Oi=i.ikp("button",{_id:"aiChatFeedbackForm__SubmitButton",children:"Submit",type:"submit"}),Lo=i.ikp("div",{_id:"aiChatForm__Wrapper"}),qi=t=>{const{form:e}=_.useChatForm();return e?n.jsx(Lo,{...t}):null},Do=i.ikp("form",{_id:"aiChatForm"}),Wi=t=>{const{onSubmit:e,...a}=t,{handleSubmit:o,isSuccess:r}=_.useChatForm();return r?null:n.jsx(Do,{onSubmit:C.composeEventHandlers(e,o),...a})},Ro=i.ikp("button",{_id:"aiChatForm__Close",children:n.jsx(A.CustomIcon,{iconKey:"close"})}),Ni=t=>{const{onClick:e,...a}=t,{closeForm:o}=_.useChatForm();return n.jsx(Ro,{onClick:C.composeEventHandlers(e,o),...a})},Vi=i.ikp("div",{_id:"aiChatForm__Header"}),Oo=i.ikp("h2",{_id:"aiChatForm__Heading"}),Qi=t=>{const{form:e}=_.useChatForm();return e?.heading?n.jsx(Oo,{children:e.heading,...t}):null},qo=i.ikp(K.Markdown,{_id:"aiChatForm__Description"}),$i=t=>{const{form:e}=_.useChatForm();return e?.description?n.jsx(qo,{children:e.description,...t}):null},Wo=i.ikp("div",{_id:"aiChatForm__Content"}),Ui=t=>{const{children:e,...a}=t,{fields:o=[]}=_.useChatForm();return n.jsx(Wo,{children:h.maybeRender(e,o),...a})},No=i.ikp("div",{_id:"aiChatForm__Field"}),Ki=t=>{const{field:e,autoFocus:a,...o}=t,{control:r,errors:s}=_.useChatForm();return n.jsx(qa.Controller,{name:e.name,control:r,rules:{required:e.isRequired?`${e.label} is required.`:void 0},render:({field:d})=>{const m=d.value!==void 0||e.inputType==="file";return n.jsx(S.FormFieldProvider,{"data-invalid":h.dataAttr(!!s[e.name]),field:e,fieldProps:d,autoFocus:a,children:m&&n.jsx(No,{"data-input-type":e.inputType,"data-hidden":h.dataAttr(e.isHidden),...o})})}})},Vo=i.ikp("label",{_id:"aiChatForm__FieldLabel"}),zi=t=>{const{field:e}=S.useFormField();return n.jsx(Vo,{"data-required":h.dataAttr(e.isRequired),htmlFor:e.name,children:e.label,...t})},Qo=i.ikp("input",{_id:"aiChatForm__FieldText",type:"text"}),J=t=>{const{field:e,error:a,fieldProps:{onChange:o,onBlur:r,...s},autoFocus:d}=S.useFormField(),{onChange:m,onBlur:c,...l}=t;return n.jsx(Qo,{id:e.name,autoFocus:d,placeholder:"placeholder"in e?e.placeholder:void 0,"data-invalid":h.dataAttr(!!a),onChange:C.composeEventHandlers(m,o),onBlur:C.composeEventHandlers(c,r),...s,...l})},Gi=i.ikp(J,{_id:"aiChatForm__FieldEmail",type:"email"}),$o=i.ikp("input",{_id:"aiChatForm__FieldFile",type:"file",multiple:!0}),Yi=t=>{const{field:e,error:a,fieldProps:{value:o,onChange:r,onBlur:s,...d},autoFocus:m}=S.useFormField(),{onChange:c,onBlur:l,...u}=t,v=k=>{const H=k.target.files;r(H)};return n.jsx($o,{id:e.name,autoFocus:m,"data-value":o,"data-invalid":h.dataAttr(!!a),...u,...d,onChange:C.composeEventHandlers(c,v),onBlur:C.composeEventHandlers(l,s)})},Ji=i.ikp(J,{_id:"aiChatForm__FieldTextArea",type:"textarea",asChild:!0,children:n.jsx(ne,{maxRows:8})}),Uo=i.ikp(G.Root,{_id:"aiChatForm__FieldCheckbox"}),Xi=t=>{const{field:e,error:a,fieldProps:o,autoFocus:r}=S.useFormField(),{onCheckedChange:s,...d}=t;return n.jsx(Uo,{id:e.name,name:e.name,autoFocus:r,"data-invalid":h.dataAttr(!!a),checked:o.value,onCheckedChange:C.composeEventHandlers(s,o.onChange),...d})},Zi=i.ikp(G.Indicator,{_id:"aiChatForm__FieldCheckboxIndicator",children:n.jsx(ge.CheckboxIcon,{})}),Ko=i.ikp(x.Root,{_id:"aiChatForm__FieldSelect"}),ea=t=>{const{field:e,error:a,fieldProps:o}=S.useFormField(),{onValueChange:r,...s}=t;return n.jsx(Ko,{name:e.name,"data-invalid":h.dataAttr(!!a),value:o.value,onValueChange:C.composeEventHandlers(r,o.onChange),...s})},ta=i.ikp(x.Trigger,{_id:"aiChatForm__FieldSelect__Trigger"}),zo=i.ikp(x.Value,{_id:"aiChatForm__FieldSelect__Value"}),ia=t=>{const{field:e}=S.useFormField();return n.jsx(zo,{placeholder:"placeholder"in e?e.placeholder:void 0,...t})},aa=i.ikp(x.Icon,{_id:"aiChatForm__FieldSelect__Icon",asChild:!0,children:n.jsx(M.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})}),na=i.ikp(x.Content,{_id:"aiChatForm__FieldSelect__Content",position:"popper"}),oa=i.ikp(x.Viewport,{_id:"aiChatForm__FieldSelect__Viewport"}),ra=i.ikp(x.Item,{_id:"aiChatForm__FieldSelect__Item"}),sa=i.ikp(x.ItemText,{_id:"aiChatForm__FieldSelect__ItemText"}),da=i.ikp(x.ItemIndicator,{_id:"aiChatForm__FieldSelect__ItemIndicator",asChild:!0,children:n.jsx(M.BuiltInIconRenderer,{iconSettings:{builtIn:"LuCheck"}})}),ma=t=>{const{field:e,error:a,fieldProps:o,autoFocus:r}=S.useFormField(),s=Ga.useShadow();if(e.inputType!=="combobox")return null;const{onValueChange:d,children:m,...c}=t,l=s?.shadowHost?()=>s.shadowHost.shadowRoot??document:void 0;return n.jsx(I.ComboboxRoot,{...c,id:e.name,name:e.name,items:e.items??[],defaultValue:e.defaultValue,onValueChange:C.composeEventHandlers(d,o.onChange),multiple:e.multiple,placeholder:"placeholder"in e?e.placeholder:void 0,invalid:!!a,autoFocus:r,getRootNode:l,children:m})},ca=i.ikp(I.ComboboxControl,{_id:"aiChatForm__FieldCombobox__Control"}),la=i.ikp(I.ComboboxInput,{_id:"aiChatForm__FieldCombobox__Input"}),ha=i.ikp(I.ComboboxTrigger,{_id:"aiChatForm__FieldCombobox__Trigger",children:n.jsx(M.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})}),Ca=i.ikp(I.ComboboxPositioner,{_id:"aiChatForm__FieldCombobox__Positioner"}),ua=i.ikp(I.ComboboxContent,{_id:"aiChatForm__FieldCombobox__Content"}),pa=i.ikp(I.ComboboxItem,{_id:"aiChatForm__FieldCombobox__Item"}),ba=i.ikp(I.ComboboxItemText,{_id:"aiChatForm__FieldCombobox__ItemText"}),va=i.ikp(I.ComboboxSelectedTags,{_id:"aiChatForm__FieldCombobox__SelectedTags"}),ga=i.ikp(I.ComboboxItemIndicator,{_id:"aiChatForm__FieldCombobox__ItemIndicator",children:n.jsx(M.BuiltInIconRenderer,{iconSettings:{builtIn:"LuCheck"}})}),Go=i.ikp("span",{_id:"aiChatForm__FieldError"}),Pa=t=>{const{error:e}=S.useFormField();return e?n.jsx(Go,{children:e.message?.toString(),...t}):null},Yo=i.ikp("span",{_id:"aiChatForm__Error"}),Fa=t=>{const{formError:e}=_.useChatForm();return e?n.jsx(Yo,{children:e.message,...t}):null},_a=i.ikp("div",{_id:"aiChatForm__Footer"}),Jo=i.ikp("button",{_id:"aiChatForm__Cancel",children:"Cancel",type:"button"}),Aa=t=>{const{onClick:e,...a}=t,{closeForm:o}=_.useChatForm();return n.jsx(Jo,{onClick:C.composeEventHandlers(e,o),...a})},Xo=i.ikp("button",{_id:"aiChatForm__Submit",children:"Submit",type:"submit"}),Ea=t=>{const{onClick:e,...a}=t,{isSubmitting:o,form:r}=_.useChatForm(),s=r?.buttons.submit.label||"Submit";return n.jsx(Xo,{disabled:o,...a,children:s})},Zo=i.ikp("div",{_id:"aiChatForm__Success"}),ka=t=>{const{isSuccess:e}=_.useChatForm();return e?n.jsx(Zo,{...t}):null},er=i.ikp("h2",{_id:"aiChatForm__SuccessHeading"}),Ia=t=>{const{form:e}=_.useChatForm();return n.jsx(er,{children:e?.successView?.heading,...t})},tr=i.ikp(K.Markdown,{_id:"aiChatForm__SuccessMessage"}),Ma=t=>{const{form:e}=_.useChatForm();return n.jsx(tr,{children:e?.successView?.message,...t})},ir=i.ikp("button",{_id:"aiChatForm__SuccessButton"}),xa=t=>{const{onClick:e,...a}=t,{form:o,closeForm:r}=_.useChatForm(),s=o?.successView?.doneButton;if(!s)return null;const d=s.icon&&n.jsx(M.BuiltInIconRenderer,{iconSettings:s.icon}),m=s.label;return n.jsx(ir,{onClick:C.composeEventHandlers(e,r),children:n.jsxs(n.Fragment,{children:[d,m]}),...a})};exports.Provider=b.ChatProvider;exports.ActionBar=Ci;exports.Actions=ui;exports.AttachmentsBar=Lt;exports.AttachmentsBarActions=Nt;exports.AttachmentsBarAttachment=Rt;exports.AttachmentsBarAttachmentDelete=Wt;exports.AttachmentsBarAttachmentIcon=Ot;exports.AttachmentsBarAttachmentTitle=qt;exports.AttachmentsBarForm=ai;exports.AttachmentsBarFormContent=di;exports.AttachmentsBarFormContentError=li;exports.AttachmentsBarFormContentInput=ci;exports.AttachmentsBarFormContentLabel=mi;exports.AttachmentsBarFormSubmitButton=hi;exports.AttachmentsBarFormTitle=ni;exports.AttachmentsBarFormTitleError=si;exports.AttachmentsBarFormTitleInput=ri;exports.AttachmentsBarFormTitleLabel=oi;exports.AttachmentsBarInfoTip=Vt;exports.AttachmentsBarInfoTipArrow=le;exports.AttachmentsBarInfoTipIcon=Qt;exports.AttachmentsBarInfoTipText=$t;exports.AttachmentsBarInput=Kt;exports.AttachmentsBarInputs=Ut;exports.AttachmentsBarList=Dt;exports.AttachmentsBarModal=zt;exports.AttachmentsBarModalBody=ii;exports.AttachmentsBarModalClose=ti;exports.AttachmentsBarModalContent=Yt;exports.AttachmentsBarModalDescription=Zt;exports.AttachmentsBarModalHeader=Jt;exports.AttachmentsBarModalHeading=Xt;exports.AttachmentsBarModalHelp=ei;exports.AttachmentsBarModalOverlay=Gt;exports.ChatAction=Y;exports.ChatActionFeedback=Pi;exports.ChatActionLabel=he;exports.ChatHelpAction=_i;exports.Content=Ie;exports.ContentScrollArea=Me;exports.ContentScrollAreaCorner=Be;exports.ContentScrollAreaScrollbar=Se;exports.ContentScrollAreaThumb=fe;exports.ContentScrollAreaViewport=xe;exports.ConversationLoading=Fe;exports.Disclaimer=je;exports.DisclaimerArrow=De;exports.DisclaimerContent=we;exports.DisclaimerLabel=ye;exports.DisclaimerText=Le;exports.DisclaimerTrigger=He;exports.EmbeddedChatPrimitiveActionBar=Ci;exports.EmbeddedChatPrimitiveActions=ui;exports.EmbeddedChatPrimitiveAttachmentsBar=Lt;exports.EmbeddedChatPrimitiveAttachmentsBarActions=Nt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachment=Rt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete=Wt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon=Ot;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle=qt;exports.EmbeddedChatPrimitiveAttachmentsBarForm=ai;exports.EmbeddedChatPrimitiveAttachmentsBarFormContent=di;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentError=li;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentInput=ci;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentLabel=mi;exports.EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton=hi;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitle=ni;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleError=si;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleInput=ri;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel=oi;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTip=Vt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow=le;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon=Qt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipText=$t;exports.EmbeddedChatPrimitiveAttachmentsBarInput=Kt;exports.EmbeddedChatPrimitiveAttachmentsBarInputs=Ut;exports.EmbeddedChatPrimitiveAttachmentsBarList=Dt;exports.EmbeddedChatPrimitiveAttachmentsBarModal=zt;exports.EmbeddedChatPrimitiveAttachmentsBarModalBody=ii;exports.EmbeddedChatPrimitiveAttachmentsBarModalClose=ti;exports.EmbeddedChatPrimitiveAttachmentsBarModalContent=Yt;exports.EmbeddedChatPrimitiveAttachmentsBarModalDescription=Zt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeader=Jt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeading=Xt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHelp=ei;exports.EmbeddedChatPrimitiveAttachmentsBarModalOverlay=Gt;exports.EmbeddedChatPrimitiveChatAction=Y;exports.EmbeddedChatPrimitiveChatActionFeedback=Pi;exports.EmbeddedChatPrimitiveChatActionLabel=he;exports.EmbeddedChatPrimitiveChatHelpAction=_i;exports.EmbeddedChatPrimitiveContent=Ie;exports.EmbeddedChatPrimitiveContentScrollArea=Me;exports.EmbeddedChatPrimitiveContentScrollAreaCorner=Be;exports.EmbeddedChatPrimitiveContentScrollAreaScrollbar=Se;exports.EmbeddedChatPrimitiveContentScrollAreaThumb=fe;exports.EmbeddedChatPrimitiveContentScrollAreaViewport=xe;exports.EmbeddedChatPrimitiveConversationLoading=Fe;exports.EmbeddedChatPrimitiveDisclaimer=je;exports.EmbeddedChatPrimitiveDisclaimerArrow=De;exports.EmbeddedChatPrimitiveDisclaimerContent=we;exports.EmbeddedChatPrimitiveDisclaimerLabel=ye;exports.EmbeddedChatPrimitiveDisclaimerText=Le;exports.EmbeddedChatPrimitiveDisclaimerTrigger=He;exports.EmbeddedChatPrimitiveExampleQuestion=We;exports.EmbeddedChatPrimitiveExampleQuestionButton=Ne;exports.EmbeddedChatPrimitiveExampleQuestions=Re;exports.EmbeddedChatPrimitiveExampleQuestionsLabel=Oe;exports.EmbeddedChatPrimitiveExampleQuestionsList=qe;exports.EmbeddedChatPrimitiveFeedbackForm=yi;exports.EmbeddedChatPrimitiveFeedbackItem=Hi;exports.EmbeddedChatPrimitiveFeedbackItemCheckbox=wi;exports.EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator=Li;exports.EmbeddedChatPrimitiveFeedbackItemDescription=Ri;exports.EmbeddedChatPrimitiveFeedbackItemLabel=Di;exports.EmbeddedChatPrimitiveFeedbackModal=xi;exports.EmbeddedChatPrimitiveFeedbackModalBody=ji;exports.EmbeddedChatPrimitiveFeedbackModalClose=Ti;exports.EmbeddedChatPrimitiveFeedbackModalContent=fi;exports.EmbeddedChatPrimitiveFeedbackModalHeader=Bi;exports.EmbeddedChatPrimitiveFeedbackModalOverlay=Si;exports.EmbeddedChatPrimitiveFeedbackSubmitButton=Oi;exports.EmbeddedChatPrimitiveFooter=Bt;exports.EmbeddedChatPrimitiveForm=Wi;exports.EmbeddedChatPrimitiveFormCancel=Aa;exports.EmbeddedChatPrimitiveFormClose=Ni;exports.EmbeddedChatPrimitiveFormContent=Ui;exports.EmbeddedChatPrimitiveFormDescription=$i;exports.EmbeddedChatPrimitiveFormError=Fa;exports.EmbeddedChatPrimitiveFormField=Ki;exports.EmbeddedChatPrimitiveFormFieldCheckbox=Xi;exports.EmbeddedChatPrimitiveFormFieldCheckboxIndicator=Zi;exports.EmbeddedChatPrimitiveFormFieldCombobox=ma;exports.EmbeddedChatPrimitiveFormFieldComboboxContent=ua;exports.EmbeddedChatPrimitiveFormFieldComboboxControl=ca;exports.EmbeddedChatPrimitiveFormFieldComboboxInput=la;exports.EmbeddedChatPrimitiveFormFieldComboboxItem=pa;exports.EmbeddedChatPrimitiveFormFieldComboboxItemIndicator=ga;exports.EmbeddedChatPrimitiveFormFieldComboboxItemText=ba;exports.EmbeddedChatPrimitiveFormFieldComboboxPositioner=Ca;exports.EmbeddedChatPrimitiveFormFieldComboboxSelectedTags=va;exports.EmbeddedChatPrimitiveFormFieldComboboxTrigger=ha;exports.EmbeddedChatPrimitiveFormFieldEmail=Gi;exports.EmbeddedChatPrimitiveFormFieldError=Pa;exports.EmbeddedChatPrimitiveFormFieldFile=Yi;exports.EmbeddedChatPrimitiveFormFieldLabel=zi;exports.EmbeddedChatPrimitiveFormFieldSelect=ea;exports.EmbeddedChatPrimitiveFormFieldSelectContent=na;exports.EmbeddedChatPrimitiveFormFieldSelectIcon=aa;exports.EmbeddedChatPrimitiveFormFieldSelectItem=ra;exports.EmbeddedChatPrimitiveFormFieldSelectItemIndicator=da;exports.EmbeddedChatPrimitiveFormFieldSelectItemText=sa;exports.EmbeddedChatPrimitiveFormFieldSelectTrigger=ta;exports.EmbeddedChatPrimitiveFormFieldSelectValue=ia;exports.EmbeddedChatPrimitiveFormFieldSelectViewport=oa;exports.EmbeddedChatPrimitiveFormFieldText=J;exports.EmbeddedChatPrimitiveFormFieldTextArea=Ji;exports.EmbeddedChatPrimitiveFormFooter=_a;exports.EmbeddedChatPrimitiveFormHeader=Vi;exports.EmbeddedChatPrimitiveFormHeading=Qi;exports.EmbeddedChatPrimitiveFormSubmit=Ea;exports.EmbeddedChatPrimitiveFormSuccess=ka;exports.EmbeddedChatPrimitiveFormSuccessButton=xa;exports.EmbeddedChatPrimitiveFormSuccessHeading=Ia;exports.EmbeddedChatPrimitiveFormSuccessMessage=Ma;exports.EmbeddedChatPrimitiveFormWrapper=qi;exports.EmbeddedChatPrimitiveHeaderToolbar=Ae;exports.EmbeddedChatPrimitiveHelpActions=Fi;exports.EmbeddedChatPrimitiveHelpActionsMenu=Ei;exports.EmbeddedChatPrimitiveHelpActionsMenuArrow=ki;exports.EmbeddedChatPrimitiveHelpActionsMenuItem=Ii;exports.EmbeddedChatPrimitiveHelpActionsMenuItemIcon=Mi;exports.EmbeddedChatPrimitiveHelpActionsTrigger=Ai;exports.EmbeddedChatPrimitiveInput=yt;exports.EmbeddedChatPrimitiveInputFieldset=Tt;exports.EmbeddedChatPrimitiveInputGroup=jt;exports.EmbeddedChatPrimitiveIntroMessageWrapper=Ke;exports.EmbeddedChatPrimitiveMessage=ut;exports.EmbeddedChatPrimitiveMessageAction=gt;exports.EmbeddedChatPrimitiveMessageAttachments=at;exports.EmbeddedChatPrimitiveMessageAttachmentsItem=ot;exports.EmbeddedChatPrimitiveMessageAttachmentsItemIcon=rt;exports.EmbeddedChatPrimitiveMessageAttachmentsItemTitle=st;exports.EmbeddedChatPrimitiveMessageAttachmentsList=nt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreview=dt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewBody=Ct;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewClose=ht;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewContent=ct;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader=lt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay=mt;exports.EmbeddedChatPrimitiveMessageAvatar=Ye;exports.EmbeddedChatPrimitiveMessageAvatarContent=Je;exports.EmbeddedChatPrimitiveMessageAvatarFallback=Xe;exports.EmbeddedChatPrimitiveMessageAvatarImage=Ze;exports.EmbeddedChatPrimitiveMessageContent=it;exports.EmbeddedChatPrimitiveMessageContentWrapper=tt;exports.EmbeddedChatPrimitiveMessageHeader=ze;exports.EmbeddedChatPrimitiveMessageLoading=Ge;exports.EmbeddedChatPrimitiveMessageName=et;exports.EmbeddedChatPrimitiveMessageSourceItem=At;exports.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs=Et;exports.EmbeddedChatPrimitiveMessageSourceItemDescription=xt;exports.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart=St;exports.EmbeddedChatPrimitiveMessageSourceItemIcon=kt;exports.EmbeddedChatPrimitiveMessageSourceItemIndicator=ft;exports.EmbeddedChatPrimitiveMessageSourceItemTag=Mt;exports.EmbeddedChatPrimitiveMessageSourceItemTitle=It;exports.EmbeddedChatPrimitiveMessageSources=Pt;exports.EmbeddedChatPrimitiveMessageSourcesHeader=Ft;exports.EmbeddedChatPrimitiveMessageSourcesList=_t;exports.EmbeddedChatPrimitiveMessageToolAction=vt;exports.EmbeddedChatPrimitiveMessageToolActions=bt;exports.EmbeddedChatPrimitiveMessageToolbar=pt;exports.EmbeddedChatPrimitiveMessageWrapper=ce;exports.EmbeddedChatPrimitiveMessages=Te;exports.EmbeddedChatPrimitiveRoot=_e;exports.EmbeddedChatPrimitiveSendButton=Ht;exports.EmbeddedChatPrimitiveSendButtonIcon=wt;exports.EmbeddedChatPrimitiveTaglineBrandName=gi;exports.EmbeddedChatPrimitiveTaglineContainer=pi;exports.EmbeddedChatPrimitiveTaglineLogo=vi;exports.EmbeddedChatPrimitiveTaglineText=bi;exports.EmbeddedChatPrimitiveToolbarHeader=ke;exports.EmbeddedChatPrimitiveToolbarHeaderWrapper=Ee;exports.EmbeddedChatPrimitiveWorkflow=Ue;exports.EmbeddedChatPrimitiveWorkflows=Ve;exports.EmbeddedChatPrimitiveWorkflowsLabel=Qe;exports.EmbeddedChatPrimitiveWorkflowsList=$e;exports.EmbeddedChatPrimitiveWrapper=Pe;exports.ExampleQuestion=We;exports.ExampleQuestionButton=Ne;exports.ExampleQuestions=Re;exports.ExampleQuestionsLabel=Oe;exports.ExampleQuestionsList=qe;exports.FeedbackForm=yi;exports.FeedbackItem=Hi;exports.FeedbackItemCheckbox=wi;exports.FeedbackItemCheckboxIndicator=Li;exports.FeedbackItemDescription=Ri;exports.FeedbackItemLabel=Di;exports.FeedbackModal=xi;exports.FeedbackModalBody=ji;exports.FeedbackModalClose=Ti;exports.FeedbackModalContent=fi;exports.FeedbackModalHeader=Bi;exports.FeedbackModalOverlay=Si;exports.FeedbackSubmitButton=Oi;exports.Footer=Bt;exports.Form=Wi;exports.FormCancel=Aa;exports.FormClose=Ni;exports.FormContent=Ui;exports.FormDescription=$i;exports.FormError=Fa;exports.FormField=Ki;exports.FormFieldCheckbox=Xi;exports.FormFieldCheckboxIndicator=Zi;exports.FormFieldCombobox=ma;exports.FormFieldComboboxContent=ua;exports.FormFieldComboboxControl=ca;exports.FormFieldComboboxInput=la;exports.FormFieldComboboxItem=pa;exports.FormFieldComboboxItemIndicator=ga;exports.FormFieldComboboxItemText=ba;exports.FormFieldComboboxPositioner=Ca;exports.FormFieldComboboxSelectedTags=va;exports.FormFieldComboboxTrigger=ha;exports.FormFieldEmail=Gi;exports.FormFieldError=Pa;exports.FormFieldFile=Yi;exports.FormFieldLabel=zi;exports.FormFieldSelect=ea;exports.FormFieldSelectContent=na;exports.FormFieldSelectIcon=aa;exports.FormFieldSelectItem=ra;exports.FormFieldSelectItemIndicator=da;exports.FormFieldSelectItemText=sa;exports.FormFieldSelectTrigger=ta;exports.FormFieldSelectValue=ia;exports.FormFieldSelectViewport=oa;exports.FormFieldText=J;exports.FormFieldTextArea=Ji;exports.FormFooter=_a;exports.FormHeader=Vi;exports.FormHeading=Qi;exports.FormSubmit=Ea;exports.FormSuccess=ka;exports.FormSuccessButton=xa;exports.FormSuccessHeading=Ia;exports.FormSuccessMessage=Ma;exports.FormWrapper=qi;exports.Header=en;exports.HeaderToolbar=Ae;exports.HeaderToolbarWrapper=Ee;exports.HelpActions=Fi;exports.HelpActionsMenu=Ei;exports.HelpActionsMenuArrow=ki;exports.HelpActionsMenuItem=Ii;exports.HelpActionsMenuItemIcon=Mi;exports.HelpActionsTrigger=Ai;exports.Input=yt;exports.InputFieldset=Tt;exports.InputGroup=jt;exports.IntroMessageWrapper=Ke;exports.Message=ut;exports.MessageAction=gt;exports.MessageAttachments=at;exports.MessageAttachmentsItem=ot;exports.MessageAttachmentsItemIcon=rt;exports.MessageAttachmentsItemTitle=st;exports.MessageAttachmentsList=nt;exports.MessageAttachmentsPreview=dt;exports.MessageAttachmentsPreviewBody=Ct;exports.MessageAttachmentsPreviewClose=ht;exports.MessageAttachmentsPreviewContent=ct;exports.MessageAttachmentsPreviewHeader=lt;exports.MessageAttachmentsPreviewOverlay=mt;exports.MessageAvatar=Ye;exports.MessageAvatarContent=Je;exports.MessageAvatarFallback=Xe;exports.MessageAvatarImage=Ze;exports.MessageContent=it;exports.MessageContentWrapper=tt;exports.MessageHeader=ze;exports.MessageLoading=Ge;exports.MessageName=et;exports.MessageSourceItem=At;exports.MessageSourceItemBreadcrumbIcon=Un;exports.MessageSourceItemBreadcrumbs=Et;exports.MessageSourceItemDescription=xt;exports.MessageSourceItemDescriptionPart=St;exports.MessageSourceItemIcon=kt;exports.MessageSourceItemIndicator=ft;exports.MessageSourceItemTag=Mt;exports.MessageSourceItemTitle=It;exports.MessageSources=Pt;exports.MessageSourcesHeader=Ft;exports.MessageSourcesList=_t;exports.MessageToolAction=vt;exports.MessageToolActions=bt;exports.MessageToolbar=pt;exports.MessageWrapper=ce;exports.Messages=Te;exports.Root=_e;exports.SendButton=Ht;exports.SendButtonIcon=wt;exports.TaglineBrandName=gi;exports.TaglineContainer=pi;exports.TaglineLogo=vi;exports.TaglineText=bi;exports.ToolbarHeader=ke;exports.Workflow=Ue;exports.Workflows=Ve;exports.WorkflowsLabel=Qe;exports.WorkflowsList=$e;exports.Wrapper=Pe;
17
+ `);X($)},share:async()=>{const $={visibility:"public",tags:[],userProperties:{},messages:u.messages.map(B=>({...B,createdAt:void 0,updatedAt:void 0,id:Date.now().toString()+B.id,conversationId:void 0}))},{apiKey:w,analyticsApiBaseUrl:O}=k,f=await Ua.logConversation("",$,w,O);if(f){const U=`${v.shareChatUrlBasePath}?${D.SHARE_QUERY_PARAM}=${f?.id}`;Z(U),H({eventName:"chat_share_button_clicked",properties:{sharedConversationId:f?.id,originalConversationId:u.id,sharedChatUrl:U,conversation:f}})}},clear:s,stop:d},pe={copy:V,share:Q};return n.jsx(y.Tooltip,{delayDuration:0,open:pe[e],children:n.jsx(Ao,{"data-type":e,"data-copied":h.dataAttr(V||Q),className:`${o} ${e}`,children:n.jsx(he,{action:e}),onClick:C.composeEventHandlers(a,te[e]),...r})})},Eo=i.ikp("span",{_id:"aiChat__ChatActionLabel"}),he=t=>{const{action:e,...a}=t,{aiChatSettings:o}=p.useInkeepConfig(),r=o.toolbarButtonLabels??{},s={help:r.getHelp??"Get Help",copy:r.copyChat??"Copy",share:r.share??"Share",clear:r.clear??"Clear",stop:r.stop??"Stop"};return n.jsx(Eo,{children:s[e],...a})},ko=i.ikp(y.TooltipContent,{_id:"aiChat__ChatActionFeeback"}),Pi=t=>{const{action:e,children:a,...o}=t,r={copy:"Copied!",share:"Link copied!"};return n.jsxs(ko,{sideOffset:5,...o,children:[n.jsx(y.Arrow,{}),a||r[e]]})},Io=i.ikp(j.Root,{_id:"aiChatHelpActions"}),Fi=t=>{const{children:e,...a}=t,{aiChatSettings:o}=p.useInkeepConfig(),{getHelpOptions:r}=o;if(!r||(r??[]).length===0)return null;const{_pinned:s,_unpinned:d}=r.reduce((u,v)=>{const k=v.isPinnedToToolbar?"_pinned":"_unpinned";return{...u,[k]:[...u[k],v]}},{_pinned:[],_unpinned:[]}),m=d.length===1?[...s,d[0]]:s,c=d.length===1?[]:d,l=ae.useHelpMenuState();return n.jsx(ae.HelpMenuProvider,{value:l,children:n.jsx(Io,{open:l.open,onOpenChange:l.setOpen,children:h.maybeRender(e,{pinned:m,unpinned:c}),...a})})},Mo=i.ikp(Y,{_id:"aiChatHelpAction",action:"help"}),xo=i.ikp("a",{_id:"aiChatHelpAction",target:"_blank",rel:"noreferrer"}),_i=t=>{const{action:e,onClick:a,...o}=t,{handleAction:r,logHelpAction:s}=re.useChatAction(e),d=e.action.type,m={"aria-label":e.name,"data-name":e.name,children:e.name,onClick:C.composeEventHandlers(a,()=>{r(),s()}),...o};return d==="open_link"?n.jsx(xo,{href:e.action.url,...m}):n.jsx(Mo,{...m})},So=i.ikp(j.Trigger,{_id:"aiChatHelpActions__Trigger"}),Ai=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(Y,{action:"help",...t,asChild:!0,children:n.jsx(So,{children:e.toolbarButtonLabels?.getHelp??"Get Help"})})}),fo=i.ikp(j.Content,{_id:"aiChatHelpActions__Menu"}),Ei=t=>n.jsx(fo,{side:"top",sideOffset:8,align:"center",alignOffset:-10,...t}),ki=i.ikp(j.Arrow,{_id:"aiChatHelpActions__MenuArrow"}),Ii=t=>{const{action:e,onClick:a,...o}=t,{handleAction:r,logHelpAction:s}=re.useChatAction(e),{setOpen:d}=ae.useHelpMenu(),m=()=>{r({onOpenForm:()=>d(!1)}),s()},c=e.action.type,l=i.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(a,m)});return n.jsx(l,{...o})},Bo=i.ikp(M.BuiltInIconRenderer,{_id:"aiChatHelpActions_MenuItemIcon"}),Mi=t=>{const{action:e,...a}=t;return e.icon?n.jsx(Bo,{iconSettings:e.icon,...a}):null},To=i.ikp(F.Root,{_id:"aiChatFeedbackModal"}),xi=t=>{const{onOpenChange:e,...a}=t,{currentFeedback:o,setCurrentFeedback:r}=oe.useMessageFeedback();return n.jsx(To,{open:o!==null,onOpenChange:C.composeEventHandlers(e,()=>r(null)),...a})},Si=i.ikp(F.Overlay,{_id:"aiChatFeedbackModal__Overlay"}),fi=i.ikp(F.Content,{_id:"aiChatFeedbackModal__Content","aria-describedby":void 0}),Bi=i.ikp(F.Title,{_id:"aiChatFeedbackModal__Header",children:"Help improve my answers!"}),Ti=i.ikp(F.Close,{_id:"aiChatFeedbackModal__Close",children:n.jsx(A.CustomIcon,{iconKey:"close"})}),ji=i.ikp("div",{_id:"aiChatFeedbackModal__Body"}),jo=i.ikp("form",{_id:"aiChatFeedbackForm"}),yi=t=>{const{onSubmit:e,...a}=t,{submitNegativeFeedback:o,currentFeedback:r,setCurrentFeedback:s}=oe.useMessageFeedback(),d=m=>{m.preventDefault();const c=m.target,l=new FormData(c),u=Object.fromEntries(l.entries());r&&(o(r,u),s(null))};return n.jsx(jo,{onSubmit:C.composeEventHandlers(e,d),...a})},yo=i.ikp("div",{_id:"aiChatFeedbackItem"}),Hi=t=>{const{name:e,...a}=t;return n.jsx(z.FeedbackItemProvider,{name:e,children:n.jsx(yo,{...a})})},Ho=i.ikp(G.Root,{_id:"aiChatFeedbackItem__Checkbox"}),wi=t=>{const{name:e,focusItem:a}=z.useFeedbackItem(),{onCheckedChange:o,...r}=t,s=d=>{d&&a?.current?.focus()};return n.jsx(Ho,{id:`feedback-${e}`,name:e,onCheckedChange:C.composeEventHandlers(o,s),...r})},Li=i.ikp(G.Indicator,{_id:"aiChatFeedbackItem__CheckboxIndicator",children:n.jsx(ge.CheckboxIcon,{})}),wo=i.ikp("label",{_id:"aiChatFeedbackItem__Label"}),Di=t=>{const{name:e}=z.useFeedbackItem(),a={unrelated_response:"Didn't answer my question",inaccurate_statement:"Inaccurate statement",inaccurate_code_snippet:"Inaccurate code snippet",irrelevant_citations:"Irrelevant citations"};return n.jsx(wo,{htmlFor:`feedback-${e}`,children:a[e],...t})},Lo=i.ikp("textarea",{_id:"aiChatFeedbackItem__Description",placeholder:"Please describe"}),Oi=t=>{const{name:e,focusItem:a}=z.useFeedbackItem();return n.jsx(Lo,{ref:a,name:`${e}:description`,...t})},Ri=i.ikp("button",{_id:"aiChatFeedbackForm__SubmitButton",children:"Submit",type:"submit"}),Do=i.ikp("div",{_id:"aiChatForm__Wrapper"}),qi=t=>{const{form:e}=_.useChatForm();return e?n.jsx(Do,{...t}):null},Oo=i.ikp("form",{_id:"aiChatForm"}),Wi=t=>{const{onSubmit:e,...a}=t,{handleSubmit:o,isSuccess:r}=_.useChatForm();return r?null:n.jsx(Oo,{onSubmit:C.composeEventHandlers(e,o),...a})},Ro=i.ikp("button",{_id:"aiChatForm__Close",children:n.jsx(A.CustomIcon,{iconKey:"close"})}),Ni=t=>{const{onClick:e,...a}=t,{closeForm:o}=_.useChatForm();return n.jsx(Ro,{onClick:C.composeEventHandlers(e,o),...a})},Vi=i.ikp("div",{_id:"aiChatForm__Header"}),qo=i.ikp("h2",{_id:"aiChatForm__Heading"}),Qi=t=>{const{form:e}=_.useChatForm();return e?.heading?n.jsx(qo,{children:e.heading,...t}):null},Wo=i.ikp(K.Markdown,{_id:"aiChatForm__Description"}),$i=t=>{const{form:e}=_.useChatForm();return e?.description?n.jsx(Wo,{shouldOpenLinksInNewTab:!0,children:e.description,...t}):null},No=i.ikp("div",{_id:"aiChatForm__Content"}),Ui=t=>{const{children:e,...a}=t,{fields:o=[]}=_.useChatForm();return n.jsx(No,{children:h.maybeRender(e,o),...a})},Vo=i.ikp("div",{_id:"aiChatForm__Field"}),Ki=t=>{const{field:e,autoFocus:a,...o}=t,{control:r,errors:s}=_.useChatForm();return n.jsx(Wa.Controller,{name:e.name,control:r,rules:{required:e.isRequired?`${e.label} is required.`:void 0},render:({field:d})=>{const m=d.value!==void 0||e.inputType==="file";return n.jsx(x.FormFieldProvider,{"data-invalid":h.dataAttr(!!s[e.name]),field:e,fieldProps:d,autoFocus:a,children:m&&n.jsx(Vo,{"data-input-type":e.inputType,"data-hidden":h.dataAttr(e.isHidden),...o})})}})},Qo=i.ikp("label",{_id:"aiChatForm__FieldLabel"}),zi=t=>{const{field:e}=x.useFormField();return n.jsx(Qo,{"data-required":h.dataAttr(e.isRequired),htmlFor:e.name,children:e.label,...t})},$o=i.ikp("input",{_id:"aiChatForm__FieldText",type:"text"}),J=t=>{const{field:e,error:a,fieldProps:{onChange:o,onBlur:r,...s},autoFocus:d}=x.useFormField(),{onChange:m,onBlur:c,...l}=t;return n.jsx($o,{id:e.name,autoFocus:d,placeholder:"placeholder"in e?e.placeholder:void 0,"data-invalid":h.dataAttr(!!a),onChange:C.composeEventHandlers(m,o),onBlur:C.composeEventHandlers(c,r),...s,...l})},Gi=i.ikp(J,{_id:"aiChatForm__FieldEmail",type:"email"}),Uo=i.ikp("input",{_id:"aiChatForm__FieldFile",type:"file",multiple:!0}),Yi=t=>{const{field:e,error:a,fieldProps:{value:o,onChange:r,onBlur:s,...d},autoFocus:m}=x.useFormField(),{onChange:c,onBlur:l,...u}=t,v=k=>{const H=k.target.files;r(H)};return n.jsx(Uo,{id:e.name,autoFocus:m,"data-value":o,"data-invalid":h.dataAttr(!!a),...u,...d,onChange:C.composeEventHandlers(c,v),onBlur:C.composeEventHandlers(l,s)})},Ji=i.ikp(J,{_id:"aiChatForm__FieldTextArea",type:"textarea",asChild:!0,children:n.jsx(ne,{maxRows:8})}),Ko=i.ikp(G.Root,{_id:"aiChatForm__FieldCheckbox"}),Xi=t=>{const{field:e,error:a,fieldProps:o,autoFocus:r}=x.useFormField(),{onCheckedChange:s,...d}=t;return n.jsx(Ko,{id:e.name,name:e.name,autoFocus:r,"data-invalid":h.dataAttr(!!a),checked:o.value,onCheckedChange:C.composeEventHandlers(s,o.onChange),...d})},Zi=i.ikp(G.Indicator,{_id:"aiChatForm__FieldCheckboxIndicator",children:n.jsx(ge.CheckboxIcon,{})}),zo=i.ikp(S.Root,{_id:"aiChatForm__FieldSelect"}),ea=t=>{const{field:e,error:a,fieldProps:o}=x.useFormField(),{onValueChange:r,...s}=t;return n.jsx(zo,{name:e.name,"data-invalid":h.dataAttr(!!a),value:o.value,onValueChange:C.composeEventHandlers(r,o.onChange),...s})},ta=i.ikp(S.Trigger,{_id:"aiChatForm__FieldSelect__Trigger"}),Go=i.ikp(S.Value,{_id:"aiChatForm__FieldSelect__Value"}),ia=t=>{const{field:e}=x.useFormField();return n.jsx(Go,{placeholder:"placeholder"in e?e.placeholder:void 0,...t})},aa=i.ikp(S.Icon,{_id:"aiChatForm__FieldSelect__Icon",asChild:!0,children:n.jsx(M.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})}),na=i.ikp(S.Content,{_id:"aiChatForm__FieldSelect__Content",position:"popper"}),oa=i.ikp(S.Viewport,{_id:"aiChatForm__FieldSelect__Viewport"}),ra=i.ikp(S.Item,{_id:"aiChatForm__FieldSelect__Item"}),sa=i.ikp(S.ItemText,{_id:"aiChatForm__FieldSelect__ItemText"}),da=i.ikp(S.ItemIndicator,{_id:"aiChatForm__FieldSelect__ItemIndicator",asChild:!0,children:n.jsx(M.BuiltInIconRenderer,{iconSettings:{builtIn:"LuCheck"}})}),ma=t=>{const{field:e,error:a,fieldProps:o,autoFocus:r}=x.useFormField(),s=Ya.useShadow();if(e.inputType!=="combobox")return null;const{onValueChange:d,children:m,...c}=t,l=s?.shadowHost?()=>s.shadowHost.shadowRoot??document:void 0;return n.jsx(I.ComboboxRoot,{...c,id:e.name,name:e.name,items:e.items??[],defaultValue:e.defaultValue,onValueChange:C.composeEventHandlers(d,o.onChange),multiple:e.multiple,placeholder:"placeholder"in e?e.placeholder:void 0,invalid:!!a,autoFocus:r,getRootNode:l,children:m})},ca=i.ikp(I.ComboboxControl,{_id:"aiChatForm__FieldCombobox__Control"}),la=i.ikp(I.ComboboxInput,{_id:"aiChatForm__FieldCombobox__Input"}),ha=i.ikp(I.ComboboxTrigger,{_id:"aiChatForm__FieldCombobox__Trigger",children:n.jsx(M.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})}),Ca=i.ikp(I.ComboboxPositioner,{_id:"aiChatForm__FieldCombobox__Positioner"}),ua=i.ikp(I.ComboboxContent,{_id:"aiChatForm__FieldCombobox__Content"}),pa=i.ikp(I.ComboboxItem,{_id:"aiChatForm__FieldCombobox__Item"}),ba=i.ikp(I.ComboboxItemText,{_id:"aiChatForm__FieldCombobox__ItemText"}),va=i.ikp(I.ComboboxSelectedTags,{_id:"aiChatForm__FieldCombobox__SelectedTags"}),ga=i.ikp(I.ComboboxItemIndicator,{_id:"aiChatForm__FieldCombobox__ItemIndicator",children:n.jsx(M.BuiltInIconRenderer,{iconSettings:{builtIn:"LuCheck"}})}),Yo=i.ikp("p",{_id:"aiChatForm__FieldDescription"}),Pa=t=>{const{field:e}=x.useFormField();return e.description?n.jsx(Yo,{children:e.description,...t}):null},Jo=i.ikp("span",{_id:"aiChatForm__FieldError"}),Fa=t=>{const{error:e}=x.useFormField();return e?n.jsx(Jo,{children:e.message?.toString(),...t}):null},Xo=i.ikp("span",{_id:"aiChatForm__Error"}),_a=t=>{const{formError:e}=_.useChatForm();return e?n.jsx(Xo,{children:e.message,...t}):null},Aa=i.ikp("div",{_id:"aiChatForm__Footer"}),Zo=i.ikp("button",{_id:"aiChatForm__Cancel",children:"Cancel",type:"button"}),Ea=t=>{const{onClick:e,...a}=t,{closeForm:o}=_.useChatForm();return n.jsx(Zo,{onClick:C.composeEventHandlers(e,o),...a})},er=i.ikp("button",{_id:"aiChatForm__Submit",children:"Submit",type:"submit"}),ka=t=>{const{onClick:e,...a}=t,{isSubmitting:o,form:r}=_.useChatForm(),s=r?.buttons.submit.label||"Submit";return n.jsx(er,{disabled:o,...a,children:s})},tr=i.ikp("div",{_id:"aiChatForm__Success"}),Ia=t=>{const{isSuccess:e}=_.useChatForm();return e?n.jsx(tr,{...t}):null},ir=i.ikp("h2",{_id:"aiChatForm__SuccessHeading"}),Ma=t=>{const{form:e}=_.useChatForm();return n.jsx(ir,{children:e?.successView?.heading,...t})},ar=i.ikp(K.Markdown,{_id:"aiChatForm__SuccessMessage"}),xa=t=>{const{form:e}=_.useChatForm();return n.jsx(ar,{shouldOpenLinksInNewTab:!0,children:e?.successView?.message,...t})},nr=i.ikp("button",{_id:"aiChatForm__SuccessButton"}),Sa=t=>{const{onClick:e,...a}=t,{form:o,closeForm:r}=_.useChatForm(),s=o?.successView?.doneButton;if(!s)return null;const d=s.icon&&n.jsx(M.BuiltInIconRenderer,{iconSettings:s.icon}),m=s.label;return n.jsx(nr,{onClick:C.composeEventHandlers(e,r),children:n.jsxs(n.Fragment,{children:[d,m]}),...a})};exports.Provider=b.ChatProvider;exports.ActionBar=Ci;exports.Actions=ui;exports.AttachmentsBar=Lt;exports.AttachmentsBarActions=Nt;exports.AttachmentsBarAttachment=Ot;exports.AttachmentsBarAttachmentDelete=Wt;exports.AttachmentsBarAttachmentIcon=Rt;exports.AttachmentsBarAttachmentTitle=qt;exports.AttachmentsBarForm=ai;exports.AttachmentsBarFormContent=di;exports.AttachmentsBarFormContentError=li;exports.AttachmentsBarFormContentInput=ci;exports.AttachmentsBarFormContentLabel=mi;exports.AttachmentsBarFormSubmitButton=hi;exports.AttachmentsBarFormTitle=ni;exports.AttachmentsBarFormTitleError=si;exports.AttachmentsBarFormTitleInput=ri;exports.AttachmentsBarFormTitleLabel=oi;exports.AttachmentsBarInfoTip=Vt;exports.AttachmentsBarInfoTipArrow=le;exports.AttachmentsBarInfoTipIcon=Qt;exports.AttachmentsBarInfoTipText=$t;exports.AttachmentsBarInput=Kt;exports.AttachmentsBarInputs=Ut;exports.AttachmentsBarList=Dt;exports.AttachmentsBarModal=zt;exports.AttachmentsBarModalBody=ii;exports.AttachmentsBarModalClose=ti;exports.AttachmentsBarModalContent=Yt;exports.AttachmentsBarModalDescription=Zt;exports.AttachmentsBarModalHeader=Jt;exports.AttachmentsBarModalHeading=Xt;exports.AttachmentsBarModalHelp=ei;exports.AttachmentsBarModalOverlay=Gt;exports.ChatAction=Y;exports.ChatActionFeedback=Pi;exports.ChatActionLabel=he;exports.ChatHelpAction=_i;exports.Content=Ie;exports.ContentScrollArea=Me;exports.ContentScrollAreaCorner=Be;exports.ContentScrollAreaScrollbar=Se;exports.ContentScrollAreaThumb=fe;exports.ContentScrollAreaViewport=xe;exports.ConversationLoading=Fe;exports.Disclaimer=je;exports.DisclaimerArrow=De;exports.DisclaimerContent=we;exports.DisclaimerLabel=ye;exports.DisclaimerText=Le;exports.DisclaimerTrigger=He;exports.EmbeddedChatPrimitiveActionBar=Ci;exports.EmbeddedChatPrimitiveActions=ui;exports.EmbeddedChatPrimitiveAttachmentsBar=Lt;exports.EmbeddedChatPrimitiveAttachmentsBarActions=Nt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachment=Ot;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete=Wt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon=Rt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle=qt;exports.EmbeddedChatPrimitiveAttachmentsBarForm=ai;exports.EmbeddedChatPrimitiveAttachmentsBarFormContent=di;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentError=li;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentInput=ci;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentLabel=mi;exports.EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton=hi;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitle=ni;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleError=si;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleInput=ri;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel=oi;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTip=Vt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow=le;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon=Qt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipText=$t;exports.EmbeddedChatPrimitiveAttachmentsBarInput=Kt;exports.EmbeddedChatPrimitiveAttachmentsBarInputs=Ut;exports.EmbeddedChatPrimitiveAttachmentsBarList=Dt;exports.EmbeddedChatPrimitiveAttachmentsBarModal=zt;exports.EmbeddedChatPrimitiveAttachmentsBarModalBody=ii;exports.EmbeddedChatPrimitiveAttachmentsBarModalClose=ti;exports.EmbeddedChatPrimitiveAttachmentsBarModalContent=Yt;exports.EmbeddedChatPrimitiveAttachmentsBarModalDescription=Zt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeader=Jt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeading=Xt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHelp=ei;exports.EmbeddedChatPrimitiveAttachmentsBarModalOverlay=Gt;exports.EmbeddedChatPrimitiveChatAction=Y;exports.EmbeddedChatPrimitiveChatActionFeedback=Pi;exports.EmbeddedChatPrimitiveChatActionLabel=he;exports.EmbeddedChatPrimitiveChatHelpAction=_i;exports.EmbeddedChatPrimitiveContent=Ie;exports.EmbeddedChatPrimitiveContentScrollArea=Me;exports.EmbeddedChatPrimitiveContentScrollAreaCorner=Be;exports.EmbeddedChatPrimitiveContentScrollAreaScrollbar=Se;exports.EmbeddedChatPrimitiveContentScrollAreaThumb=fe;exports.EmbeddedChatPrimitiveContentScrollAreaViewport=xe;exports.EmbeddedChatPrimitiveConversationLoading=Fe;exports.EmbeddedChatPrimitiveDisclaimer=je;exports.EmbeddedChatPrimitiveDisclaimerArrow=De;exports.EmbeddedChatPrimitiveDisclaimerContent=we;exports.EmbeddedChatPrimitiveDisclaimerLabel=ye;exports.EmbeddedChatPrimitiveDisclaimerText=Le;exports.EmbeddedChatPrimitiveDisclaimerTrigger=He;exports.EmbeddedChatPrimitiveExampleQuestion=We;exports.EmbeddedChatPrimitiveExampleQuestionButton=Ne;exports.EmbeddedChatPrimitiveExampleQuestions=Oe;exports.EmbeddedChatPrimitiveExampleQuestionsLabel=Re;exports.EmbeddedChatPrimitiveExampleQuestionsList=qe;exports.EmbeddedChatPrimitiveFeedbackForm=yi;exports.EmbeddedChatPrimitiveFeedbackItem=Hi;exports.EmbeddedChatPrimitiveFeedbackItemCheckbox=wi;exports.EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator=Li;exports.EmbeddedChatPrimitiveFeedbackItemDescription=Oi;exports.EmbeddedChatPrimitiveFeedbackItemLabel=Di;exports.EmbeddedChatPrimitiveFeedbackModal=xi;exports.EmbeddedChatPrimitiveFeedbackModalBody=ji;exports.EmbeddedChatPrimitiveFeedbackModalClose=Ti;exports.EmbeddedChatPrimitiveFeedbackModalContent=fi;exports.EmbeddedChatPrimitiveFeedbackModalHeader=Bi;exports.EmbeddedChatPrimitiveFeedbackModalOverlay=Si;exports.EmbeddedChatPrimitiveFeedbackSubmitButton=Ri;exports.EmbeddedChatPrimitiveFooter=Bt;exports.EmbeddedChatPrimitiveForm=Wi;exports.EmbeddedChatPrimitiveFormCancel=Ea;exports.EmbeddedChatPrimitiveFormClose=Ni;exports.EmbeddedChatPrimitiveFormContent=Ui;exports.EmbeddedChatPrimitiveFormDescription=$i;exports.EmbeddedChatPrimitiveFormError=_a;exports.EmbeddedChatPrimitiveFormField=Ki;exports.EmbeddedChatPrimitiveFormFieldCheckbox=Xi;exports.EmbeddedChatPrimitiveFormFieldCheckboxIndicator=Zi;exports.EmbeddedChatPrimitiveFormFieldCombobox=ma;exports.EmbeddedChatPrimitiveFormFieldComboboxContent=ua;exports.EmbeddedChatPrimitiveFormFieldComboboxControl=ca;exports.EmbeddedChatPrimitiveFormFieldComboboxInput=la;exports.EmbeddedChatPrimitiveFormFieldComboboxItem=pa;exports.EmbeddedChatPrimitiveFormFieldComboboxItemIndicator=ga;exports.EmbeddedChatPrimitiveFormFieldComboboxItemText=ba;exports.EmbeddedChatPrimitiveFormFieldComboboxPositioner=Ca;exports.EmbeddedChatPrimitiveFormFieldComboboxSelectedTags=va;exports.EmbeddedChatPrimitiveFormFieldComboboxTrigger=ha;exports.EmbeddedChatPrimitiveFormFieldDescription=Pa;exports.EmbeddedChatPrimitiveFormFieldEmail=Gi;exports.EmbeddedChatPrimitiveFormFieldError=Fa;exports.EmbeddedChatPrimitiveFormFieldFile=Yi;exports.EmbeddedChatPrimitiveFormFieldLabel=zi;exports.EmbeddedChatPrimitiveFormFieldSelect=ea;exports.EmbeddedChatPrimitiveFormFieldSelectContent=na;exports.EmbeddedChatPrimitiveFormFieldSelectIcon=aa;exports.EmbeddedChatPrimitiveFormFieldSelectItem=ra;exports.EmbeddedChatPrimitiveFormFieldSelectItemIndicator=da;exports.EmbeddedChatPrimitiveFormFieldSelectItemText=sa;exports.EmbeddedChatPrimitiveFormFieldSelectTrigger=ta;exports.EmbeddedChatPrimitiveFormFieldSelectValue=ia;exports.EmbeddedChatPrimitiveFormFieldSelectViewport=oa;exports.EmbeddedChatPrimitiveFormFieldText=J;exports.EmbeddedChatPrimitiveFormFieldTextArea=Ji;exports.EmbeddedChatPrimitiveFormFooter=Aa;exports.EmbeddedChatPrimitiveFormHeader=Vi;exports.EmbeddedChatPrimitiveFormHeading=Qi;exports.EmbeddedChatPrimitiveFormSubmit=ka;exports.EmbeddedChatPrimitiveFormSuccess=Ia;exports.EmbeddedChatPrimitiveFormSuccessButton=Sa;exports.EmbeddedChatPrimitiveFormSuccessHeading=Ma;exports.EmbeddedChatPrimitiveFormSuccessMessage=xa;exports.EmbeddedChatPrimitiveFormWrapper=qi;exports.EmbeddedChatPrimitiveHeaderToolbar=Ae;exports.EmbeddedChatPrimitiveHelpActions=Fi;exports.EmbeddedChatPrimitiveHelpActionsMenu=Ei;exports.EmbeddedChatPrimitiveHelpActionsMenuArrow=ki;exports.EmbeddedChatPrimitiveHelpActionsMenuItem=Ii;exports.EmbeddedChatPrimitiveHelpActionsMenuItemIcon=Mi;exports.EmbeddedChatPrimitiveHelpActionsTrigger=Ai;exports.EmbeddedChatPrimitiveInput=yt;exports.EmbeddedChatPrimitiveInputFieldset=Tt;exports.EmbeddedChatPrimitiveInputGroup=jt;exports.EmbeddedChatPrimitiveIntroMessageWrapper=Ke;exports.EmbeddedChatPrimitiveMessage=ut;exports.EmbeddedChatPrimitiveMessageAction=gt;exports.EmbeddedChatPrimitiveMessageAttachments=at;exports.EmbeddedChatPrimitiveMessageAttachmentsItem=ot;exports.EmbeddedChatPrimitiveMessageAttachmentsItemIcon=rt;exports.EmbeddedChatPrimitiveMessageAttachmentsItemTitle=st;exports.EmbeddedChatPrimitiveMessageAttachmentsList=nt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreview=dt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewBody=Ct;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewClose=ht;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewContent=ct;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader=lt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay=mt;exports.EmbeddedChatPrimitiveMessageAvatar=Ye;exports.EmbeddedChatPrimitiveMessageAvatarContent=Je;exports.EmbeddedChatPrimitiveMessageAvatarFallback=Xe;exports.EmbeddedChatPrimitiveMessageAvatarImage=Ze;exports.EmbeddedChatPrimitiveMessageContent=it;exports.EmbeddedChatPrimitiveMessageContentWrapper=tt;exports.EmbeddedChatPrimitiveMessageHeader=ze;exports.EmbeddedChatPrimitiveMessageLoading=Ge;exports.EmbeddedChatPrimitiveMessageName=et;exports.EmbeddedChatPrimitiveMessageSourceItem=At;exports.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs=Et;exports.EmbeddedChatPrimitiveMessageSourceItemDescription=xt;exports.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart=St;exports.EmbeddedChatPrimitiveMessageSourceItemIcon=kt;exports.EmbeddedChatPrimitiveMessageSourceItemIndicator=ft;exports.EmbeddedChatPrimitiveMessageSourceItemTag=Mt;exports.EmbeddedChatPrimitiveMessageSourceItemTitle=It;exports.EmbeddedChatPrimitiveMessageSources=Pt;exports.EmbeddedChatPrimitiveMessageSourcesHeader=Ft;exports.EmbeddedChatPrimitiveMessageSourcesList=_t;exports.EmbeddedChatPrimitiveMessageToolAction=vt;exports.EmbeddedChatPrimitiveMessageToolActions=bt;exports.EmbeddedChatPrimitiveMessageToolbar=pt;exports.EmbeddedChatPrimitiveMessageWrapper=ce;exports.EmbeddedChatPrimitiveMessages=Te;exports.EmbeddedChatPrimitiveRoot=_e;exports.EmbeddedChatPrimitiveSendButton=Ht;exports.EmbeddedChatPrimitiveSendButtonIcon=wt;exports.EmbeddedChatPrimitiveTaglineBrandName=gi;exports.EmbeddedChatPrimitiveTaglineContainer=pi;exports.EmbeddedChatPrimitiveTaglineLogo=vi;exports.EmbeddedChatPrimitiveTaglineText=bi;exports.EmbeddedChatPrimitiveToolbarHeader=ke;exports.EmbeddedChatPrimitiveToolbarHeaderWrapper=Ee;exports.EmbeddedChatPrimitiveWorkflow=Ue;exports.EmbeddedChatPrimitiveWorkflows=Ve;exports.EmbeddedChatPrimitiveWorkflowsLabel=Qe;exports.EmbeddedChatPrimitiveWorkflowsList=$e;exports.EmbeddedChatPrimitiveWrapper=Pe;exports.ExampleQuestion=We;exports.ExampleQuestionButton=Ne;exports.ExampleQuestions=Oe;exports.ExampleQuestionsLabel=Re;exports.ExampleQuestionsList=qe;exports.FeedbackForm=yi;exports.FeedbackItem=Hi;exports.FeedbackItemCheckbox=wi;exports.FeedbackItemCheckboxIndicator=Li;exports.FeedbackItemDescription=Oi;exports.FeedbackItemLabel=Di;exports.FeedbackModal=xi;exports.FeedbackModalBody=ji;exports.FeedbackModalClose=Ti;exports.FeedbackModalContent=fi;exports.FeedbackModalHeader=Bi;exports.FeedbackModalOverlay=Si;exports.FeedbackSubmitButton=Ri;exports.Footer=Bt;exports.Form=Wi;exports.FormCancel=Ea;exports.FormClose=Ni;exports.FormContent=Ui;exports.FormDescription=$i;exports.FormError=_a;exports.FormField=Ki;exports.FormFieldCheckbox=Xi;exports.FormFieldCheckboxIndicator=Zi;exports.FormFieldCombobox=ma;exports.FormFieldComboboxContent=ua;exports.FormFieldComboboxControl=ca;exports.FormFieldComboboxInput=la;exports.FormFieldComboboxItem=pa;exports.FormFieldComboboxItemIndicator=ga;exports.FormFieldComboboxItemText=ba;exports.FormFieldComboboxPositioner=Ca;exports.FormFieldComboboxSelectedTags=va;exports.FormFieldComboboxTrigger=ha;exports.FormFieldDescription=Pa;exports.FormFieldEmail=Gi;exports.FormFieldError=Fa;exports.FormFieldFile=Yi;exports.FormFieldLabel=zi;exports.FormFieldSelect=ea;exports.FormFieldSelectContent=na;exports.FormFieldSelectIcon=aa;exports.FormFieldSelectItem=ra;exports.FormFieldSelectItemIndicator=da;exports.FormFieldSelectItemText=sa;exports.FormFieldSelectTrigger=ta;exports.FormFieldSelectValue=ia;exports.FormFieldSelectViewport=oa;exports.FormFieldText=J;exports.FormFieldTextArea=Ji;exports.FormFooter=Aa;exports.FormHeader=Vi;exports.FormHeading=Qi;exports.FormSubmit=ka;exports.FormSuccess=Ia;exports.FormSuccessButton=Sa;exports.FormSuccessHeading=Ma;exports.FormSuccessMessage=xa;exports.FormWrapper=qi;exports.Header=tn;exports.HeaderToolbar=Ae;exports.HeaderToolbarWrapper=Ee;exports.HelpActions=Fi;exports.HelpActionsMenu=Ei;exports.HelpActionsMenuArrow=ki;exports.HelpActionsMenuItem=Ii;exports.HelpActionsMenuItemIcon=Mi;exports.HelpActionsTrigger=Ai;exports.Input=yt;exports.InputFieldset=Tt;exports.InputGroup=jt;exports.IntroMessageWrapper=Ke;exports.Message=ut;exports.MessageAction=gt;exports.MessageAttachments=at;exports.MessageAttachmentsItem=ot;exports.MessageAttachmentsItemIcon=rt;exports.MessageAttachmentsItemTitle=st;exports.MessageAttachmentsList=nt;exports.MessageAttachmentsPreview=dt;exports.MessageAttachmentsPreviewBody=Ct;exports.MessageAttachmentsPreviewClose=ht;exports.MessageAttachmentsPreviewContent=ct;exports.MessageAttachmentsPreviewHeader=lt;exports.MessageAttachmentsPreviewOverlay=mt;exports.MessageAvatar=Ye;exports.MessageAvatarContent=Je;exports.MessageAvatarFallback=Xe;exports.MessageAvatarImage=Ze;exports.MessageContent=it;exports.MessageContentWrapper=tt;exports.MessageHeader=ze;exports.MessageLoading=Ge;exports.MessageName=et;exports.MessageSourceItem=At;exports.MessageSourceItemBreadcrumbIcon=Kn;exports.MessageSourceItemBreadcrumbs=Et;exports.MessageSourceItemDescription=xt;exports.MessageSourceItemDescriptionPart=St;exports.MessageSourceItemIcon=kt;exports.MessageSourceItemIndicator=ft;exports.MessageSourceItemTag=Mt;exports.MessageSourceItemTitle=It;exports.MessageSources=Pt;exports.MessageSourcesHeader=Ft;exports.MessageSourcesList=_t;exports.MessageToolAction=vt;exports.MessageToolActions=bt;exports.MessageToolbar=pt;exports.MessageWrapper=ce;exports.Messages=Te;exports.Root=_e;exports.SendButton=Ht;exports.SendButtonIcon=wt;exports.TaglineBrandName=gi;exports.TaglineContainer=pi;exports.TaglineLogo=vi;exports.TaglineText=bi;exports.ToolbarHeader=ke;exports.Workflow=Ue;exports.Workflows=Ve;exports.WorkflowsLabel=Qe;exports.WorkflowsList=$e;exports.Wrapper=Pe;