@inkeep/cxkit-primitives 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/link.cjs +1 -1
- package/dist/atoms/link.js +5 -5
- package/dist/components/chat-button.cjs +1 -1
- package/dist/components/chat-button.js +21 -21
- package/dist/components/embedded-chat/use-captcha.cjs +1 -1
- package/dist/components/embedded-chat/use-captcha.d.cts +2 -2
- package/dist/components/embedded-chat/use-captcha.d.ts +2 -2
- package/dist/components/embedded-chat/use-captcha.js +1 -1
- package/dist/components/embedded-chat/use-chat-action.cjs +1 -1
- package/dist/components/embedded-chat/use-chat-action.js +9 -9
- package/dist/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/components/embedded-chat/use-inkeep-chat.js +39 -39
- package/dist/components/embedded-chat.cjs +4 -4
- package/dist/components/embedded-chat.d.cts +6 -6
- package/dist/components/embedded-chat.d.ts +6 -6
- package/dist/components/embedded-chat.js +707 -708
- package/dist/components/embedded-search/transform-results.cjs +1 -1
- package/dist/components/embedded-search/transform-results.js +3 -3
- package/dist/components/embedded-search/use-inkeep-search.cjs +1 -1
- package/dist/components/embedded-search/use-inkeep-search.js +36 -36
- package/dist/components/embedded-search.cjs +1 -1
- package/dist/components/embedded-search.js +60 -60
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.cjs +1 -1
- package/dist/components/intelligent-form/use-inkeep-intelligent-form.js +35 -35
- package/dist/components/intelligent-form.cjs +1 -1
- package/dist/components/intelligent-form.d.cts +3 -3
- package/dist/components/intelligent-form.d.ts +3 -3
- package/dist/components/intelligent-form.js +106 -106
- package/dist/components/modal/modal-provider.d.cts +1 -1
- package/dist/components/modal/modal-provider.d.ts +1 -1
- package/dist/components/modal/use-inkeep-modal.cjs +1 -1
- package/dist/components/modal/use-inkeep-modal.d.cts +1 -1
- package/dist/components/modal/use-inkeep-modal.d.ts +1 -1
- package/dist/components/modal/use-inkeep-modal.js +4 -4
- package/dist/components/modal.cjs +1 -1
- package/dist/components/modal.js +5 -5
- package/dist/hooks/use-browser-storage.cjs +1 -1
- package/dist/hooks/use-browser-storage.js +6 -6
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +22 -22
- package/dist/providers/chat-events-provider.cjs +1 -1
- package/dist/providers/chat-events-provider.js +46 -39
- package/dist/providers/chat-form-provider.cjs +1 -1
- package/dist/providers/chat-form-provider.js +40 -40
- package/dist/providers/config-provider.cjs +1 -1
- package/dist/providers/config-provider.d.cts +7 -7
- package/dist/providers/config-provider.d.ts +7 -7
- package/dist/providers/config-provider.js +24 -24
- package/dist/providers/feedback-provider.cjs +1 -1
- package/dist/providers/feedback-provider.js +10 -10
- package/dist/providers/root-provider.cjs +1 -1
- package/dist/providers/root-provider.d.cts +1 -1
- package/dist/providers/root-provider.d.ts +1 -1
- package/dist/providers/root-provider.js +2 -2
- package/dist/providers/theme-provider.cjs +1 -1
- package/dist/providers/theme-provider.js +32 -30
- package/dist/providers/user-provider.cjs +1 -1
- package/dist/providers/user-provider.js +14 -14
- package/dist/utils/default-settings.cjs +1 -1
- package/dist/utils/default-settings.d.cts +20 -20
- package/dist/utils/default-settings.d.ts +20 -20
- package/dist/utils/default-settings.js +32 -31
- package/dist/utils/form.cjs +1 -1
- package/dist/utils/form.js +11 -11
- package/package.json +5 -5
|
@@ -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"),ie=require("react-textarea-autosize"),Pa=require("@radix-ui/react-avatar"),_a=require("@radix-ui/react-checkbox"),Aa=require("@radix-ui/react-popover"),ka=require("@radix-ui/react-tooltip"),Fa=require("@radix-ui/react-scroll-area"),Ea=require("@radix-ui/react-select"),_=require("../atoms/dialog.cjs"),Ia=require("../node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/hi2/index.cjs"),Ma=require("../node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/io5/index.cjs"),Sa=require("../atoms/avatars/ai.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),g=require("react"),ie=require("react-textarea-autosize"),Pa=require("@radix-ui/react-avatar"),_a=require("@radix-ui/react-checkbox"),Aa=require("@radix-ui/react-popover"),ka=require("@radix-ui/react-tooltip"),Fa=require("@radix-ui/react-scroll-area"),Ea=require("@radix-ui/react-select"),_=require("../atoms/dialog.cjs"),Ia=require("../node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/hi2/index.cjs"),Ma=require("../node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/io5/index.cjs"),Sa=require("../atoms/avatars/ai.cjs"),fa=require("../atoms/avatars/user.cjs"),F=require("../atoms/icons/custom-icon.cjs"),S=require("../atoms/icons/built-in-icon-renderer.cjs"),Ba=require("../atoms/link.cjs"),K=require("../atoms/markdown/index.cjs"),w=require("../providers/attachment-item-provider.cjs"),E=require("../providers/attachments-bar-provider.cjs"),f=require("../providers/source-item-provider.cjs"),p=require("../providers/config-provider.cjs"),U=require("../providers/conversation-provider.cjs"),Q=require("../providers/chat-events-provider.cjs"),ae=require("../providers/feedback-provider.cjs"),N=require("../providers/message-attachments-provider.cjs"),P=require("../providers/message-provider.cjs"),ve=require("../atoms/icons/checkbox-icon.cjs"),ee=require("../hooks/use-copy-to-clipboard.cjs"),z=require("../providers/feedback-item-provider.cjs"),xa=require("../utils/get-message-metadata.cjs"),h=require("../utils/misc.cjs"),i=require("./factory.cjs"),b=require("./embedded-chat/chat-provider.cjs"),Ta=require("./tagline-logo-icon.cjs"),ja=require("../hooks/use-settle-action.cjs"),ya=require("../hooks/use-container-size.cjs"),ne=require("./embedded-chat/use-chat-action.cjs"),te=require("../providers/help-menu-provider.cjs"),A=require("../providers/chat-form-provider.cjs"),B=require("../providers/form-field-provider.cjs"),Ha=require("react-hook-form"),wa=require("../utils/highlight-emphasis.cjs"),be=require("./modal/modal-provider.cjs"),La=require("@inkeep/cxkit-color-mode"),se=require("../utils/compose-refs.cjs"),u=require("../utils/compose-event-handlers.cjs"),Da=require("../hooks/use-scroll-to-bottom.cjs"),qa=require("../atoms/api/analytics/conversation.cjs");function q(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const re=q(Pa),G=q(_a),x=q(Aa),T=q(ka),$=q(Fa),M=q(Ea),Wa="__intro__",Ra=i.ikp("div",{_id:"aiChatWrapper"}),ge=g.forwardRef((t,e)=>{const{...a}=t,{isHidden:s,isMobile:r}=b.useChat(),[o,d]=ya.useContainerSize(),c=se.useComposedRefs(e,o),m=d?.width?d.width>580:!0,l=be.useModal();return n.jsx(Ra,{ref:c,"data-widget-md":h.dataAttr(m),"data-hidden":h.dataAttr(s),"data-in-modal":h.dataAttr(!!l),"data-mobile":h.dataAttr(r),...a})}),Oa=i.ikp("div",{_id:"aiChatConversationLoading"}),Pe=t=>{const{isLoadingConversation:e}=b.useChat();return e?n.jsx(Oa,{children:n.jsx("span",{children:"Loading..."}),...t}):null},Qa=i.ikp("div",{_id:"aiChatRoot"}),_e=t=>{const{isLoadingConversation:e,isHidden:a}=b.useChat(),{form:s}=A.useChatForm();return e||s?null:n.jsx(Qa,{"data-hidden":h.dataAttr(a),...t})},Na=i.ikp("div",{_id:"aiChatHeader"}),Ae=i.ikp("div",{_id:"aiChatHeader__Toolbar"}),ke=i.ikp("div",{_id:"aiChatHeader__ToolbarHeaderWrapper"}),$a=i.ikp("div",{_id:"aiChatHeader__ToolbarHeader"}),Fe=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=`Ask ${e.aiAssistantName||"AI"}`;return n.jsx($a,{...t,children:a})}),Ee=i.ikp("div",{_id:"aiChatContent"}),Ie=i.ikp($.Root,{_id:"aiChatContentScrollArea"}),Va=i.ikp($.Viewport,{_id:"aiChatContentScrollArea__Viewport"}),Me=g.forwardRef(({children:t,...e},a)=>{const{containerRef:s}=Da.useScrollToBottom(),r=se.useComposedRefs(a,s);return n.jsx(Va,{ref:r,children:n.jsx("div",{"data-part":"grid",style:{display:"grid"},children:t}),...e})}),Se=i.ikp($.ScrollAreaScrollbar,{_id:"aiChatContentScrollArea__Scrollbar"}),fe=i.ikp($.ScrollAreaThumb,{_id:"aiChatContentScrollArea__Thumb"}),Be=i.ikp($.Corner,{_id:"aiChatContentScrollArea__Corner"}),Ua=i.ikp("div",{_id:"aiChatMessages"}),xe=t=>{const e=b.useChat(),{children:a,...s}=t;return n.jsx(Ua,{children:h.maybeRender(a,e),...s})},Ka=i.ikp("div",{_id:"aiChatDisclaimer"}),Te=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return e.disclaimerSettings?.isEnabled?n.jsx(x.Root,{children:n.jsx(Ka,{...t})}):null}),za=i.ikp("span",{_id:"aiChatDisclaimerLabel"}),je=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.disclaimerSettings;return n.jsx(za,{children:a?.label,...t})}),ye=i.ikp(x.Trigger,{_id:"aiChatDisclaimerTrigger",children:n.jsx(F.CustomIcon,{iconKey:"info"})}),Ga=i.ikp(x.Content,{_id:"aiChatDisclaimerContent"}),He=t=>n.jsx(Ga,{side:"top",sideOffset:8,align:"end",alignOffset:-10,...t});i.ikp(K.Markdown,{_id:"aiChatDisclaimerText"});const we=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(K.Markdown,{shouldOpenLinksInNewTab:!0,children:r,...t})}),Le=i.ikp(x.Arrow,{_id:"aiChatDisclaimerArrow"}),Ya=i.ikp("div",{_id:"aiChatQuickQuestions"}),De=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{messages:a}=b.useChat();return!e.exampleQuestions?.length||a.length?null:n.jsx(Ya,{...t})},Ja=i.ikp("h3",{_id:"aiChatQuickQuestionsLabel"}),qe=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(Ja,{children:e.exampleQuestionsLabel,...t})}),Xa=i.ikp("div",{_id:"aiChatQuickQuestionsList"}),We=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.exampleQuestions,{children:s,...r}=t;return n.jsx(Xa,{children:h.maybeRender(s,a),...r})}),Za=i.ikp("div",{_id:"aiChatQuickQuestion"}),Re=g.forwardRef((t,e)=>{const{aiChatSettings:a}=p.useInkeepConfig(),s=a.isFirstExampleQuestionHighlighted;return n.jsx(Za,{ref:e,"data-highlight":h.dataAttr(s),...t})}),en=i.ikp("button",{_id:"aiChatQuickQuestionButton"}),Oe=t=>{const{question:e,onClick:a,...s}=t,{handleSubmit:r}=b.useChat();return n.jsx(en,{onClick:u.composeEventHandlers(a,()=>r(e)),children:e,...s})},tn=i.ikp("div",{_id:"aiChatWorkflows"}),Qe=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{messages:a}=b.useChat();return!e.workflows?.length||a.length?null:n.jsx(tn,{...t})},an=i.ikp("h3",{_id:"aiChatWorkflowsLabel"}),Ne=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(an,{children:e.workflowsHeader,...t})}),nn=i.ikp("div",{_id:"aiChatWorkflowsList"}),$e=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig(),a=e.workflows,{children:s,...r}=t;return n.jsx(nn,{children:h.maybeRender(s,a),...r})}),sn=i.ikp("button",{_id:"aiChatWorkflow"}),Ve=t=>{const{workflow:e,onClick:a,...s}=t,{handleWorkflow:r}=b.useChat();return n.jsx(sn,{onClick:u.composeEventHandlers(a,()=>r(e)),children:e.displayName,...s})},rn=i.ikp(Ia.HiMiniBolt,{_id:"aiChatWorkflow__Icon"}),Ue=t=>n.jsx(rn,{...t}),on=i.ikp("div",{_id:"aiChatMessageWrapper"}),oe=t=>{const{message:e,...a}=t;return e.role==="system"?null:n.jsx(P.MessageProvider,{message:e,children:n.jsx(on,{"data-role":e.role,...a})})},Ke=g.memo(t=>{const{message:e,...a}=t,{aiChatSettings:s,baseSettings:r}=p.useInkeepConfig(),o=s.aiAssistantName,d=o?`Hi, I'm ${o}!`:"Hi!",c=s.chatSubjectName??r.organizationDisplayName,m=`${d}
|
|
2
2
|
|
|
3
3
|
I'm an AI assistant trained on documentation, help articles, and other content.`,l=c?`
|
|
4
4
|
|
|
5
5
|
Ask me anything about \`${c}\`.`:`
|
|
6
6
|
|
|
7
|
-
Let me know how I can help.`,v={content:r.introMessage??`${m}${l}`,id:Oa,...e,role:"assistant",links:[]};return n.jsx(oe,{message:v,...a})}),dn=i.ikp("div",{_id:"aiChatMessageHeader"}),ze=t=>{const{message:e}=P.useMessage();return n.jsx(dn,{"data-role":e.role,...t})},cn=i.ikp("div",{_id:"aiChatMessageLoading"}),Ge=t=>{const{isLoading:e,isStreaming:a,messages:r}=b.useChat(),{message:s}=P.useMessage();return!(r.at(-1)?.id===s?.id)||s.role!=="assistant"||!e||a?null:n.jsx(cn,{children:"Thinking...",...t})},mn=i.ikp("div",{_id:"aiChatMessageAvatar"}),Ye=t=>{const{message:e}=P.useMessage();return n.jsx(mn,{"data-role":e.role,...t})},ln=i.ikp(se.Root,{_id:"aiChatMessageAvatarContent"}),Je=t=>{const{message:e}=P.useMessage(),{baseSettings:a}=p.useInkeepConfig();return n.jsx(ln,{"data-username":h.dataAttr(e.role==="user"&&!!a.userProperties.name),"data-role":e.role,...t})},hn=i.ikp(se.Fallback,{_id:"aiChatMessageAvatarFallback"}),Xe=g.memo(t=>{const{baseSettings:e}=p.useInkeepConfig(),{message:a}=P.useMessage();return e.userProperties.name?n.jsx(hn,{"data-role":a.role,children:h.getInitials(e.userProperties.name),...t}):null}),Ce=i.ikp(se.Image,{_id:"aiChatMessageAvatarImage"}),Ze=g.memo(t=>{const{onLoadingStatusChange:e,...a}=t,{aiChatSettings:r,baseSettings:{userProperties:s}}=p.useInkeepConfig(),{message:o}=P.useMessage(),{botAvatarSrcUrl:d,botAvatarDarkSrcUrl:c}=r??{},m=c??d,l=La.useColorModeValue(d,m),[C,v]=g.useState(l);g.useEffect(()=>{v(l)},[l]);const k=I=>{I==="error"&&v(null)};return o.role==="user"?s.name?null:r.userAvatarSrcUrl?n.jsx(Ce,{"data-type":"image","data-role":o.role,src:r.userAvatarSrcUrl,...t}):n.jsx(Ba.default,{"data-type":"icon","data-role":o.role,...t}):C?n.jsx(Ce,{src:C,"data-type":"image","data-role":o.role,onLoadingStatusChange:u.composeEventHandlers(e,k),...a}):n.jsx(Sa.default,{"data-type":"icon","data-role":o.role,...t})}),un=i.ikp("span",{_id:"aiChatMessageName"}),et=t=>{const{message:e}=P.useMessage();return n.jsx(un,{"data-role":e.role,children:e.role==="user"?"You":"AI assistant",...t})},Cn=i.ikp("div",{_id:"aiChatMessageContentWrapper"}),tt=t=>{const{message:e}=P.useMessage();return n.jsx(Cn,{"data-role":e.role,...t})},pn=i.ikp("div",{_id:"aiChatMessageContent"}),it=t=>{const{message:e}=P.useMessage();return n.jsx(pn,{"data-role":e.role,...t})},vn=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(N.MessageAttachmentsProvider,{children:n.jsx(vn,{...t})})},bn=i.ikp("div",{_id:"aiChatMessageAttachments__List"}),nt=t=>{const{children:e,...a}=t,{message:r}=P.useMessage(),s=r.metadata?.attributes?.attachments;return s?n.jsx(bn,{children:h.maybeRender(e,s),...a}):null},gn=i.ikp("div",{_id:"aiChatMessageAttachments__Item"}),rt=t=>{const{attachment:e,onClick:a,...r}=t,{selectItem:s,onOpen:o}=N.useMessageAttachments(),d=()=>{s(e),o()};return n.jsx(w.AttachmentItemProvider,{attachment:e,children:n.jsx(gn,{onClick:u.composeEventHandlers(a,d),...r})})},Pn=i.ikp(S.BuiltInIconRenderer,{_id:"aiChatMessageAttachments__ItemIcon"}),st=t=>{const{attachment:e}=w.useAttachmentItem(),a=e.contentType?.attachmentIcon;return a?n.jsx(Pn,{iconSettings:a,...t}):null},_n=i.ikp("span",{_id:"aiChatMessageAttachments__ItemTitle"}),ot=t=>{const{attachment:e}=w.useAttachmentItem();return n.jsx(_n,{children:e.title,...t})},An=i.ikp(_.Root,{_id:"aiChatMessageAttachmentsPreview"}),dt=t=>{const{onOpenChange:e,...a}=t,{selectItem:r,isOpen:s,onClose:o,selectedItem:d}=N.useMessageAttachments(),c=m=>{m||(o(),r(null))};return n.jsx(An,{open:s&&d!==null,onOpenChange:u.composeEventHandlers(e,c),...a})},ct=i.ikp(_.Overlay,{_id:"aiChatMessageAttachmentsPreview__Overlay"}),mt=i.ikp(_.Content,{_id:"aiChatMessageAttachmentsPreview__Content","aria-describedby":void 0}),kn=i.ikp(_.Title,{_id:"aiChatMessageAttachmentsPreview__Header"}),lt=t=>{const{selectedItem:e}=N.useMessageAttachments();return n.jsx(kn,{children:e?.title||"Attachment",...t})},ht=i.ikp(_.Close,{_id:"aiChatMessageAttachmentsPreview__Close",children:n.jsx(F.CustomIcon,{iconKey:"close"})}),Fn=i.ikp("p",{_id:"aiChatMessageAttachmentsPreview__Body"}),ut=t=>{const{selectedItem:e}=N.useMessageAttachments();return n.jsx(Fn,{children:e?.content,...t})},pe=i.ikp("div",{_id:"aiChatMessage"}),Ct=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{componentStyles:a,...r}=t,{message:s}=P.useMessage(),{logEvent:o}=R.useChatEvents(),d=h.getMessageContent(s),{conversation:c}=K.useInkeepConversation();return s.role==="user"?n.jsx(pe,{"data-role":s.role,children:d,...r}):n.jsx(pe,{"data-role":s.role,...r,children:n.jsx(U.Markdown,{children:d,componentStyles:a,shouldOpenLinksInNewTab:e.shouldOpenLinksInNewTab,onLinkClick:(m,l)=>{o({eventName:"chat_response_link_opened",properties:{messageId:s.id,title:l?.toString(),url:m}})},onCodeCopy:(m,l)=>{o({eventName:"chat_code_block_copied",properties:{conversationId:c.id,language:m,code:l}})}})})},En=i.ikp("div",{_id:"aiChatMessageActions"}),pt=t=>{const{isLoading:e,messages:a}=b.useChat(),{message:r}=P.useMessage();return a.at(-1)?.id===r?.id&&e||r.role==="user"?null:n.jsx(En,{...t})},In=i.ikp("div",{_id:"aiChatMessageToolActions"}),vt=t=>{const{children:e,...a}=t,{message:r}=P.useMessage(),{messageToolCalls:s}=b.useChat(),o=s[r.id]||[];return n.jsx(In,{children:h.maybeRender(e,o),...a})},bt=t=>{const{onClick:e,action:a,...r}=t,{logEvent:s}=R.useChatEvents(),{message:o}=P.useMessage(),{messages:d,selectedWorkflow:c}=b.useChat(),{conversation:m}=K.useInkeepConversation(),{handleAction:l}=ne.useChatAction(a),C=d.findIndex(L=>L.id===o.id),v=()=>{l(),s({eventName:"toolcall_action_clicked",properties:{actionType:a.action.type,conversationId:m.id,question:h.getMessageContent(d[C-1]),answer:h.getMessageContent(o),answerId:o.id,workflowId:c?.id}})},k=a.label||"Contact Support",I=n.jsxs(n.Fragment,{children:[a.icon&&n.jsx(S.BuiltInIconRenderer,{iconSettings:a.icon}),k]}),j=a.action.type,O=i.ikp(j==="OPEN_LINK"?"a":"button",{_id:"aiChatMessageToolAction",children:I,"data-type":a.action.type,...j==="OPEN_LINK"&&{href:a.action.url,target:"_blank",rel:"noopener"},onClick:u.composeEventHandlers(e,v)});return n.jsx(O,{...r})},Mn=i.ikp("button",{_id:"aiChatMessageAction"}),gt=t=>{const{action:e,onClick:a,className:r,...s}=t,{message:o}=P.useMessage(),{isStreaming:d,messages:c}=b.useChat(),[m,l]=ee.useCopyToClipboard(),{feedback:C,submitPositiveFeedback:v,setCurrentFeedback:k,currentFeedback:I}=ae.useMessageFeedback(),{logEvent:j}=R.useChatEvents(),[O,L]=ja.useSettleAction(),{baseSettings:{analytics:X}}=p.useInkeepConfig(),{optOutAllAnalytics:Z}=X,me=c.at(-1)?.id===o?.id,le=o.role==="assistant";if(me&&d||!le||{copy:!1,upvote:Z,downvote:Z}[e])return null;const W={copy(){l(h.getMessageContent(o)),j({eventName:"chat_message_copied",properties:{messageId:o.id}})},upvote(){v(o.id).then(()=>{L()})},downvote(){k(o.id)}},y={copy:"Copy Message",upvote:"Upvote Message",downvote:"Downvote Message"},Q={copy:n.jsx(F.CustomIcon,{iconKey:m?"messageCopied":"messageCopy"}),upvote:n.jsx(F.CustomIcon,{iconKey:O?"messageCopied":"thumbsUp"}),downvote:n.jsx(F.CustomIcon,{iconKey:"thumbsDown"})},H={copy:{"data-copied":h.dataAttr(m)},upvote:{"data-upvoted":h.dataAttr(C[o.id]?.type==="positive")},downvote:{"data-downvoted":h.dataAttr(C[o.id]?.type==="negative"),"data-state":I===null?"closed":"open"}};return n.jsx(Mn,{"data-action":e,...H[e],children:Q[e],"aria-label":y[e],className:`${r} ${e}`,onClick:u.composeEventHandlers(a,W[e]),...s})},Sn=i.ikp("div",{_id:"aiChatMessageSources"}),Pt=t=>{const{message:e}=P.useMessage();return e.role!=="assistant"||!e.links?.length?null:n.jsx(Sn,{...t})},Bn=i.ikp("div",{_id:"aiChatMessageSources__Header"}),_t=t=>n.jsx(Bn,{children:"Sources",...t}),fn=i.ikp("div",{_id:"aiChatMessageSources__List"}),At=t=>{const{message:e}=P.useMessage(),{children:a,...r}=t,{baseSettings:{transformSource:s,organizationDisplayName:o},aiChatSettings:{shouldOpenLinksInNewTab:d},searchSettings:{tabs:c}}=p.useInkeepConfig();if(e.role!=="assistant")return null;const m=e.links.map(l=>{const C=s(l,"chatSourceItem",{organizationDisplayName:o,tabs:c}),v=d||C.shouldOpenInNewTab;return{...C,isExternal:v}});return n.jsx(fn,{children:h.maybeRender(a,m),...r})},xn=i.ikp(fa.LinkWithQueryParams,{_id:"aiChatMessageSourceItem"}),kt=t=>{const{source:e,onClick:a,...r}=t,{logEvent:s}=R.useChatEvents(),{message:o}=P.useMessage(),d=()=>{s({eventName:"chat_response_source_item_clicked",properties:{messageId:o.id,sourceType:e.type,title:e.title,url:e.url}})};return n.jsx(B.SourceItemProvider,{source:e,children:n.jsx(xn,{"data-type":e.type,appendToUrl:e.appendToUrl,isExternal:e.isExternal,"data-breadcrumbs":!!e.breadcrumbs?.length,onClick:u.composeEventHandlers(a,d),...r})})},Tn=i.ikp("div",{_id:"aiChatMessageSourceItem__Breadcrumbs"}),Ft=t=>{const{source:e}=B.useSourceItem();return e.breadcrumbs?.length?n.jsx(Tn,{"data-type":e.type,...t}):null},jn=i.ikp(F.CustomIcon,{_id:"aiChatMessageSourceItem__BreadcrumbIcon",iconKey:"breadcrumbSeparator"}),yn=i.ikp(S.BuiltInIconRenderer,{_id:"aiChatMessageSourceItem__Icon"}),Et=t=>{const{source:e}=B.useSourceItem();return n.jsx(yn,{iconSettings:e.icon,"data-type":e.type,...t})},Hn=i.ikp("span",{_id:"aiChatMessageSourceItem__Title"}),It=t=>{const{source:e}=B.useSourceItem();return n.jsx(Hn,{"data-type":e.type,children:e.title,...t})},wn=i.ikp("span",{_id:"aiChatMessageSourceItem__Tag"}),Mt=t=>{const{source:e}=B.useSourceItem();return n.jsx(wn,{"data-type":e.type,...t})},Ln=i.ikp("span",{_id:"aiChatMessageSourceItem__Description"}),St=t=>{const{source:e}=B.useSourceItem(),{children:a,...r}=t,s=g.useMemo(()=>e.description?wa.highlightEmphasis(e.description):[],[e.description]);return s.length?n.jsx(Ln,{"data-type":e.type,children:h.maybeRender(a,s),...r}):null},Dn=i.ikp("span",{_id:"aiChatMessageSourceItem__DescriptionPart"}),Bt=t=>{const{part:e,...a}=t,{source:r}=B.useSourceItem();return typeof e=="string"?e:n.jsx(Dn,{"data-type":r.type,children:e.content,"data-highlighted":h.dataAttr(e.highlighted),...a})},qn=i.ikp(F.CustomIcon,{_id:"aiChatMessageSourceItem__Indicator"}),ft=t=>{const{source:e}=B.useSourceItem();return n.jsx(qn,{iconKey:e.isExternal?"openLinkInNewTab":"openLinkInSameTab",...t})},xt=i.ikp("div",{_id:"aiChatFooter"}),Tt=i.ikp("div",{_id:"aiChatInput__Fieldset"}),jt=i.ikp("div",{_id:"aiChatInput__Group"}),On=i.ikp("textarea",{_id:"aiChatInput"}),yt=g.forwardRef(({onChange:t,onKeyDown:e,...a},r)=>{const{handleInputChange:s,handleInputKeyDown:o,input:d,error:c,shouldAutoFocusInput:m,inputRef:l}=b.useChat(),{aiChatSettings:C}=p.useInkeepConfig(),v=re.useComposedRefs(r,l),k=be.useModal();return g.useEffect(()=>{requestAnimationFrame(()=>{m&&l?.current&&(l.current.focus(),l.current.selectionStart=l.current.value.length)})},[m,l,k?.open]),n.jsx(On,{asChild:!0,ref:v,maxLength:99999,placeholder:C.placeholder,value:d,onChange:u.composeEventHandlers(t,s),onKeyDown:u.composeEventHandlers(e,o),disabled:!!c||C.isViewOnly,...a,children:n.jsx(ie,{})})}),Wn=i.ikp("button",{_id:"aiChatInput__SendButton"}),Ht=t=>{const{handleSubmit:e,isSubmitDisabled:a,error:r}=b.useChat(),{aiChatSettings:s}=p.useInkeepConfig(),{onClick:o,...d}=t;return n.jsx(Wn,{onClick:u.composeEventHandlers(o,()=>e()),"aria-label":"Send message",disabled:a||!!r||s.isViewOnly,...d})},wt=i.ikp(F.CustomIcon,{_id:"aiChatInput__SendButtonIcon",iconKey:"chatSubmit"}),Qn=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(Qn,{...t})})},Rn=i.ikp("div",{_id:"aiChatAttachmentsBar__List"}),Dt=t=>{const{children:e,...a}=t,{messageAttachments:r}=b.useChat();return n.jsx(Rn,{children:h.maybeRender(e,r),...a})},Nn=i.ikp("div",{_id:"aiChatAttachmentsBar__Attachment"}),qt=t=>{const{attachment:e,...a}=t;return n.jsx(w.AttachmentItemProvider,{attachment:e,children:n.jsx(Nn,{...a})})},$n=i.ikp(S.BuiltInIconRenderer,{_id:"aiChatAttachmentsBar__AttachmentIcon"}),Ot=t=>{const{attachment:e}=w.useAttachmentItem(),a=e.contentType?.attachmentIcon;return a?n.jsx($n,{iconSettings:a,...t}):null},Vn=i.ikp("span",{_id:"aiChatAttachmentsBar__AttachmentTitle"}),Wt=t=>{const{attachment:e}=w.useAttachmentItem();return n.jsx(Vn,{children:e.title,...t})},Kn=i.ikp("button",{_id:"aiChatAttachmentsBar__AttachmentDelete"}),Qt=t=>{const{onClick:e,...a}=t,{attachment:r}=w.useAttachmentItem(),{setMessageAttachments:s}=b.useChat(),o=()=>{s(d=>d.filter(c=>c.id!==r.id))};return n.jsx(Kn,{"aria-label":"Remove attachment",children:n.jsx(F.CustomIcon,{iconKey:"close"}),onClick:u.composeEventHandlers(e,o),...a})},Rt=i.ikp("div",{_id:"aiChatAttachmentsBar__Actions"}),Nt=i.ikp(T.Tooltip,{_id:"aiChatAttachmentsBar__InfoTip",delayDuration:0}),$t=i.ikp(T.Trigger,{_id:"aiChatAttachmentsBar__InfoTipIcon",children:n.jsx(F.CustomIcon,{iconKey:"info"})}),de=i.ikp(T.Arrow,{_id:"aiChatAttachmentsBar__InfoTipArrow"}),Vt=i.ikp(T.Content,{_id:"aiChatAttachmentsBar__InfoTipText",side:"bottom",sideOffset:3,align:"center",children:n.jsxs(n.Fragment,{children:[n.jsx(de,{}),"Attachments will be kept in context for the entire conversation."]})}),Un=i.ikp("div",{_id:"aiChatAttachmentsBar__Inputs"}),Kt=t=>{const{children:e,...a}=t,{selectedWorkflow:r}=b.useChat();return r?.supportedInputs?n.jsx(Un,{children:h.maybeRender(e,r.supportedInputs),...a}):null},zn=i.ikp("button",{_id:"aiChatAttachmentsBar__Input"}),Ut=t=>{const{input:e,onClick:a,...r}=t,{selectedWorkflow:s,messageAttachments:o,setMessageAttachments:d}=b.useChat(),{selectInput:c,onOpen:m}=E.useAttachmentsBar(),l=()=>{if(e.type==="FUNCTIONAL_MULTI_ATTACHMENT")return s?e.onInvoke(s,e,d,[...o]):void 0;c(e),m()};return n.jsx(zn,{children:e.displayName,onClick:u.composeEventHandlers(a,l),...r})},zt=i.ikp(Ma.IoAdd,{_id:"aiChatAttachmentsBar__InputIcon"}),Gn=i.ikp(_.Root,{_id:"aiChatAttachmentsBar__Modal"}),Gt=t=>{const{onOpenChange:e,...a}=t,{selectInput:r,isOpen:s,onClose:o,selectedInput:d}=E.useAttachmentsBar(),c=m=>{m||(o(),r(null))};return n.jsx(Gn,{open:s&&d!==null,onOpenChange:u.composeEventHandlers(e,c),...a})},Yt=i.ikp(_.Overlay,{_id:"aiChatAttachmentsBar__ModalOverlay"}),Jt=i.ikp(_.Content,{_id:"aiChatAttachmentsBar__ModalContent","aria-describedby":void 0}),Xt=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalHeader"}),Yn=i.ikp(_.Title,{_id:"aiChatAttachmentsBar__ModalHeading"}),Zt=t=>{const{selectedInput:e}=E.useAttachmentsBar(),a=`Add ${e?.displayName}`;return n.jsx(Yn,{children:a,...t})},Jn=i.ikp("span",{_id:"aiChatAttachmentsBar__ModalDescription"}),ei=t=>{const{selectedInput:e}=E.useAttachmentsBar(),a=e?.workflowModalProps?.modalHelpText;return a?n.jsx(Jn,{children:a,...t}):null},Xn=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalHelp"}),ti=t=>{const{children:e,...a}=t,{selectedInput:r}=E.useAttachmentsBar(),s=r?.workflowModalProps?.modalHelpElement;return s?n.jsx(Xn,{asChild:!e,children:e||s,...a}):null},ii=i.ikp(_.Close,{_id:"aiChatAttachmentsBar__ModalClose",children:n.jsx(F.CustomIcon,{iconKey:"close"})}),ai=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalBody"}),Zn=i.ikp("form",{_id:"aiChatAttachmentsBar__Form"}),ni=t=>{const{onSubmit:e,...a}=t,{form:r}=E.useAttachmentsBar();return n.jsx(Zn,{onSubmit:u.composeEventHandlers(e,r.onSubmit),...a})},ri=i.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),er=i.ikp("label",{_id:"aiChatAttachmentsBar__FormTitleLabel"}),si=t=>{const{form:e,selectedInput:a}=E.useAttachmentsBar();return n.jsx(er,{htmlFor:`${a?.id}-title`,children:e.labels.title,...t})},tr=i.ikp("input",{_id:"aiChatAttachmentsBar__FormTitleInput"}),oi=t=>{const{onChange:e,...a}=t,{form:r,selectedInput:s}=E.useAttachmentsBar();return n.jsx(tr,{name:"title",value:r.data.title,id:`${s?.id}-title`,"data-invalid":h.dataAttr(!!r.errors.title),"aria-invalid":!!r.errors.title,onChange:u.composeEventHandlers(e,r.onChange),...a})},ir=i.ikp("span",{_id:"aiChatAttachmentsBar__FormTitleError"}),di=t=>{const{form:e}=E.useAttachmentsBar();return e.errors.title?n.jsx(ir,{"aria-live":"polite",children:e.errors.title,...t}):null},ci=i.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),ar=i.ikp("label",{_id:"aiChatAttachmentsBar__FormContentLabel"}),mi=t=>{const{form:e,selectedInput:a}=E.useAttachmentsBar();return n.jsx(ar,{htmlFor:`${a?.id}-content`,children:e.labels.content,...t})},nr=i.ikp("textarea",{_id:"aiChatAttachmentsBar__FormTitleInput"}),li=t=>{const{onChange:e,...a}=t,{form:r,selectedInput:s}=E.useAttachmentsBar();return n.jsx(nr,{asChild:!0,rows:4,name:"content",value:r.data.content,id:`${s?.id}-content`,"data-invalid":h.dataAttr(!!r.errors.content),"aria-invalid":!!r.errors.content,onChange:u.composeEventHandlers(e,r.onChange),...a,children:n.jsx(ie,{maxRows:10})})},rr=i.ikp("span",{_id:"aiChatAttachmentsBar__FormContentError"}),hi=t=>{const{form:e}=E.useAttachmentsBar();return e.errors.content?n.jsx(rr,{"aria-live":"polite",children:e.errors.content,...t}):null},ui=i.ikp("button",{_id:"aiChatAttachmentsBar__FormSubmitButton",children:"Upload",type:"submit"}),Ci=i.ikp("div",{_id:"aiChatActionBar"}),pi=i.ikp("div",{_id:"aiChat__ChatActions"}),vi=i.ikp("div",{_id:"aiChatTagline__Container"}),bi=i.ikp("span",{_id:"aiChatTagline__Text",children:"Powered by"}),gi=i.ikp(Ta.default,{_id:"aiChatTagline__Logo"}),Pi=i.ikp("a",{_id:"aiChatTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),sr=i.ikp("div",{_id:"aiChat__ChatAction"}),Y=t=>{const{action:e,onClick:a,className:r,...s}=t,{clear:o,stop:d,isLoading:c,messages:m,selectedWorkflow:l}=b.useChat(),{conversation:C}=K.useInkeepConversation(),{aiChatSettings:v,baseSettings:k}=p.useInkeepConfig(),{logEvent:I}=R.useChatEvents(),[j,O]=ee.useCopyToClipboard(),[L,X]=ee.useCopyToClipboard();if({help:!1,copy:m.length===0||!v.shouldShowCopyChatButton||c,share:m.length===0||!v.isChatSharingEnabled||!C.id||!!l||c,clear:m.length===0||v.isViewOnly||c,stop:!c}[e])return null;const he={help:()=>{},copy:()=>{const W=m.map(y=>{const Q=`**${y.role==="assistant"?"AI Assistant":"User"}**`,H=h.getMessageContent(y),D=xa.stringifyAttachments(y.metadata?.attributes?.attachments),V=D?`
|
|
7
|
+
Let me know how I can help.`,v={content:s.introMessage??`${m}${l}`,id:Wa,...e,role:"assistant",links:[]};return n.jsx(oe,{message:v,...a})}),dn=i.ikp("div",{_id:"aiChatMessageHeader"}),ze=t=>{const{message:e}=P.useMessage();return n.jsx(dn,{"data-role":e.role,...t})},cn=i.ikp("div",{_id:"aiChatMessageLoading"}),Ge=t=>{const{isLoading:e,isStreaming:a,messages:s}=b.useChat(),{message:r}=P.useMessage();return!(s.at(-1)?.id===r?.id)||r.role!=="assistant"||!e||a?null:n.jsx(cn,{children:"Thinking...",...t})},mn=i.ikp("div",{_id:"aiChatMessageAvatar"}),Ye=t=>{const{message:e}=P.useMessage();return n.jsx(mn,{"data-role":e.role,...t})},ln=i.ikp(re.Root,{_id:"aiChatMessageAvatarContent"}),Je=t=>{const{message:e}=P.useMessage(),{baseSettings:a}=p.useInkeepConfig();return n.jsx(ln,{"data-username":h.dataAttr(e.role==="user"&&!!a.userProperties.name),"data-role":e.role,...t})},hn=i.ikp(re.Fallback,{_id:"aiChatMessageAvatarFallback"}),Xe=g.memo(t=>{const{baseSettings:e}=p.useInkeepConfig(),{message:a}=P.useMessage();return e.userProperties.name?n.jsx(hn,{"data-role":a.role,children:h.getInitials(e.userProperties.name),...t}):null}),Ce=i.ikp(re.Image,{_id:"aiChatMessageAvatarImage"}),Ze=g.memo(t=>{const{onLoadingStatusChange:e,...a}=t,{aiChatSettings:s,baseSettings:{userProperties:r}}=p.useInkeepConfig(),{message:o}=P.useMessage(),{aiAssistantAvatar:d}=s??{},c=typeof d=="string"?d:d?.light,m=(typeof d=="string"?d:d?.dark)??c,l=La.useColorModeValue(c,m),[C,v]=g.useState(l);g.useEffect(()=>{v(l)},[l]);const k=I=>{I==="error"&&v(null)};return o.role==="user"?r.name?null:s.userAvatar?n.jsx(Ce,{"data-type":"image","data-role":o.role,src:s.userAvatar,...t}):n.jsx(fa.default,{"data-type":"icon","data-role":o.role,...t}):C?n.jsx(Ce,{src:C,"data-type":"image","data-role":o.role,onLoadingStatusChange:u.composeEventHandlers(e,k),...a}):n.jsx(Sa.default,{"data-type":"icon","data-role":o.role,...t})}),un=i.ikp("span",{_id:"aiChatMessageName"}),et=t=>{const{message:e}=P.useMessage();return n.jsx(un,{"data-role":e.role,children:e.role==="user"?"You":"AI assistant",...t})},Cn=i.ikp("div",{_id:"aiChatMessageContentWrapper"}),tt=t=>{const{message:e}=P.useMessage();return n.jsx(Cn,{"data-role":e.role,...t})},pn=i.ikp("div",{_id:"aiChatMessageContent"}),it=t=>{const{message:e}=P.useMessage();return n.jsx(pn,{"data-role":e.role,...t})},vn=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(N.MessageAttachmentsProvider,{children:n.jsx(vn,{...t})})},bn=i.ikp("div",{_id:"aiChatMessageAttachments__List"}),nt=t=>{const{children:e,...a}=t,{message:s}=P.useMessage(),r=s.metadata?.attributes?.attachments;return r?n.jsx(bn,{children:h.maybeRender(e,r),...a}):null},gn=i.ikp("div",{_id:"aiChatMessageAttachments__Item"}),st=t=>{const{attachment:e,onClick:a,...s}=t,{selectItem:r,onOpen:o}=N.useMessageAttachments(),d=()=>{r(e),o()};return n.jsx(w.AttachmentItemProvider,{attachment:e,children:n.jsx(gn,{onClick:u.composeEventHandlers(a,d),...s})})},Pn=i.ikp(S.BuiltInIconRenderer,{_id:"aiChatMessageAttachments__ItemIcon"}),rt=t=>{const{attachment:e}=w.useAttachmentItem(),a=e.contentType?.attachmentIcon;return a?n.jsx(Pn,{iconSettings:a,...t}):null},_n=i.ikp("span",{_id:"aiChatMessageAttachments__ItemTitle"}),ot=t=>{const{attachment:e}=w.useAttachmentItem();return n.jsx(_n,{children:e.title,...t})},An=i.ikp(_.Root,{_id:"aiChatMessageAttachmentsPreview"}),dt=t=>{const{onOpenChange:e,...a}=t,{selectItem:s,isOpen:r,onClose:o,selectedItem:d}=N.useMessageAttachments(),c=m=>{m||(o(),s(null))};return n.jsx(An,{open:r&&d!==null,onOpenChange:u.composeEventHandlers(e,c),...a})},ct=i.ikp(_.Overlay,{_id:"aiChatMessageAttachmentsPreview__Overlay"}),mt=i.ikp(_.Content,{_id:"aiChatMessageAttachmentsPreview__Content","aria-describedby":void 0}),kn=i.ikp(_.Title,{_id:"aiChatMessageAttachmentsPreview__Header"}),lt=t=>{const{selectedItem:e}=N.useMessageAttachments();return n.jsx(kn,{children:e?.title||"Attachment",...t})},ht=i.ikp(_.Close,{_id:"aiChatMessageAttachmentsPreview__Close",children:n.jsx(F.CustomIcon,{iconKey:"close"})}),Fn=i.ikp("p",{_id:"aiChatMessageAttachmentsPreview__Body"}),ut=t=>{const{selectedItem:e}=N.useMessageAttachments();return n.jsx(Fn,{children:e?.content,...t})},pe=i.ikp("div",{_id:"aiChatMessage"}),Ct=t=>{const{aiChatSettings:e}=p.useInkeepConfig(),{componentStyles:a,...s}=t,{message:r}=P.useMessage(),{logEvent:o}=Q.useChatEvents(),d=h.getMessageContent(r),{conversation:c}=U.useInkeepConversation();return r.role==="user"?n.jsx(pe,{"data-role":r.role,children:d,...s}):n.jsx(pe,{"data-role":r.role,...s,children:n.jsx(K.Markdown,{children:d,componentStyles:a,shouldOpenLinksInNewTab:e.shouldOpenLinksInNewTab,onLinkClick:(m,l)=>{o({eventName:"chat_response_link_opened",properties:{messageId:r.id,title:l?.toString(),url:m}})},onCodeCopy:(m,l)=>{o({eventName:"chat_code_block_copied",properties:{conversationId:c.id,language:m,code:l}})}})})},En=i.ikp("div",{_id:"aiChatMessageActions"}),pt=t=>{const{isLoading:e,messages:a}=b.useChat(),{message:s}=P.useMessage();return a.at(-1)?.id===s?.id&&e||s.role==="user"?null:n.jsx(En,{...t})},In=i.ikp("div",{_id:"aiChatMessageToolActions"}),vt=t=>{const{children:e,...a}=t,{message:s}=P.useMessage(),{messageToolCalls:r}=b.useChat(),o=r[s.id]||[];return n.jsx(In,{children:h.maybeRender(e,o),...a})},bt=t=>{const{onClick:e,action:a,...s}=t,{logEvent:r}=Q.useChatEvents(),{message:o}=P.useMessage(),{messages:d,selectedWorkflow:c}=b.useChat(),{conversation:m}=U.useInkeepConversation(),{handleAction:l}=ne.useChatAction(a),C=d.findIndex(L=>L.id===o.id),v=()=>{l(),r({eventName:"toolcall_action_clicked",properties:{actionType:a.action.type,conversationId:m.id,question:h.getMessageContent(d[C-1]),answer:h.getMessageContent(o),answerId:o.id,workflowId:c?.id}})},k=a.label||"Contact Support",I=n.jsxs(n.Fragment,{children:[a.icon&&n.jsx(S.BuiltInIconRenderer,{iconSettings:a.icon}),k]}),j=a.action.type,W=i.ikp(j==="open_link"?"a":"button",{_id:"aiChatMessageToolAction",children:I,"data-type":a.action.type,...j==="open_link"&&{href:a.action.url,target:"_blank",rel:"noopener"},onClick:u.composeEventHandlers(e,v)});return n.jsx(W,{...s})},Mn=i.ikp("button",{_id:"aiChatMessageAction"}),gt=t=>{const{action:e,onClick:a,className:s,...r}=t,{message:o}=P.useMessage(),{isStreaming:d,messages:c}=b.useChat(),[m,l]=ee.useCopyToClipboard(),{feedback:C,submitPositiveFeedback:v,setCurrentFeedback:k,currentFeedback:I}=ae.useMessageFeedback(),{logEvent:j}=Q.useChatEvents(),[W,L]=ja.useSettleAction(),{baseSettings:{privacyPreferences:X}}=p.useInkeepConfig(),{optOutAllAnalytics:Z}=X,me=c.at(-1)?.id===o?.id,le=o.role==="assistant";if(me&&d||!le||{copy:!1,upvote:Z,downvote:Z}[e])return null;const R={copy(){l(h.getMessageContent(o)),j({eventName:"chat_message_copied",properties:{messageId:o.id}})},upvote(){v(o.id).then(()=>{L()})},downvote(){k(o.id)}},y={copy:"Copy Message",upvote:"Upvote Message",downvote:"Downvote Message"},O={copy:n.jsx(F.CustomIcon,{iconKey:m?"messageCopied":"messageCopy"}),upvote:n.jsx(F.CustomIcon,{iconKey:W?"messageCopied":"thumbsUp"}),downvote:n.jsx(F.CustomIcon,{iconKey:"thumbsDown"})},H={copy:{"data-copied":h.dataAttr(m)},upvote:{"data-upvoted":h.dataAttr(C[o.id]?.type==="positive")},downvote:{"data-downvoted":h.dataAttr(C[o.id]?.type==="negative"),"data-state":I===null?"closed":"open"}};return n.jsx(Mn,{"data-action":e,...H[e],children:O[e],"aria-label":y[e],className:`${s} ${e}`,onClick:u.composeEventHandlers(a,R[e]),...r})},Sn=i.ikp("div",{_id:"aiChatMessageSources"}),Pt=t=>{const{message:e}=P.useMessage();return e.role!=="assistant"||!e.links?.length?null:n.jsx(Sn,{...t})},fn=i.ikp("div",{_id:"aiChatMessageSources__Header"}),_t=t=>n.jsx(fn,{children:"Sources",...t}),Bn=i.ikp("div",{_id:"aiChatMessageSources__List"}),At=t=>{const{message:e}=P.useMessage(),{children:a,...s}=t,{baseSettings:{transformSource:r,organizationDisplayName:o},aiChatSettings:{shouldOpenLinksInNewTab:d},searchSettings:{tabs:c}}=p.useInkeepConfig();if(e.role!=="assistant")return null;const m=e.links.map(l=>{const C=r(l,"chatSourceItem",{organizationDisplayName:o,tabs:c}),v=d||C.shouldOpenInNewTab;return{...C,isExternal:v}});return n.jsx(Bn,{children:h.maybeRender(a,m),...s})},xn=i.ikp(Ba.LinkWithQueryParams,{_id:"aiChatMessageSourceItem"}),kt=t=>{const{source:e,onClick:a,...s}=t,{logEvent:r}=Q.useChatEvents(),{message:o}=P.useMessage(),d=()=>{r({eventName:"chat_response_source_item_clicked",properties:{messageId:o.id,sourceType:e.type,title:e.title,url:e.url}})};return n.jsx(f.SourceItemProvider,{source:e,children:n.jsx(xn,{"data-type":e.type,appendToUrl:e.appendToUrl,isExternal:e.isExternal,"data-breadcrumbs":!!e.breadcrumbs?.length,onClick:u.composeEventHandlers(a,d),...s})})},Tn=i.ikp("div",{_id:"aiChatMessageSourceItem__Breadcrumbs"}),Ft=t=>{const{source:e}=f.useSourceItem();return e.breadcrumbs?.length?n.jsx(Tn,{"data-type":e.type,...t}):null},jn=i.ikp(F.CustomIcon,{_id:"aiChatMessageSourceItem__BreadcrumbIcon",iconKey:"breadcrumbSeparator"}),yn=i.ikp(S.BuiltInIconRenderer,{_id:"aiChatMessageSourceItem__Icon"}),Et=t=>{const{source:e}=f.useSourceItem();return n.jsx(yn,{iconSettings:e.icon,"data-type":e.type,...t})},Hn=i.ikp("span",{_id:"aiChatMessageSourceItem__Title"}),It=t=>{const{source:e}=f.useSourceItem();return n.jsx(Hn,{"data-type":e.type,children:e.title,...t})},wn=i.ikp("span",{_id:"aiChatMessageSourceItem__Tag"}),Mt=t=>{const{source:e}=f.useSourceItem();return n.jsx(wn,{"data-type":e.type,...t})},Ln=i.ikp("span",{_id:"aiChatMessageSourceItem__Description"}),St=t=>{const{source:e}=f.useSourceItem(),{children:a,...s}=t,r=g.useMemo(()=>e.description?wa.highlightEmphasis(e.description):[],[e.description]);return r.length?n.jsx(Ln,{"data-type":e.type,children:h.maybeRender(a,r),...s}):null},Dn=i.ikp("span",{_id:"aiChatMessageSourceItem__DescriptionPart"}),ft=t=>{const{part:e,...a}=t,{source:s}=f.useSourceItem();return typeof e=="string"?e:n.jsx(Dn,{"data-type":s.type,children:e.content,"data-highlighted":h.dataAttr(e.highlighted),...a})},qn=i.ikp(F.CustomIcon,{_id:"aiChatMessageSourceItem__Indicator"}),Bt=t=>{const{source:e}=f.useSourceItem();return n.jsx(qn,{iconKey:e.isExternal?"openLinkInNewTab":"openLinkInSameTab",...t})},xt=i.ikp("div",{_id:"aiChatFooter"}),Tt=i.ikp("div",{_id:"aiChatInput__Fieldset"}),jt=i.ikp("div",{_id:"aiChatInput__Group"}),Wn=i.ikp("textarea",{_id:"aiChatInput"}),yt=g.forwardRef(({onChange:t,onKeyDown:e,...a},s)=>{const{handleInputChange:r,handleInputKeyDown:o,input:d,error:c,shouldAutoFocusInput:m,inputRef:l}=b.useChat(),{aiChatSettings:C}=p.useInkeepConfig(),v=se.useComposedRefs(s,l),k=be.useModal();return g.useEffect(()=>{requestAnimationFrame(()=>{m&&l?.current&&(l.current.focus(),l.current.selectionStart=l.current.value.length)})},[m,l,k?.isOpen]),n.jsx(Wn,{asChild:!0,ref:v,maxLength:99999,placeholder:C.placeholder,value:d,onChange:u.composeEventHandlers(t,r),onKeyDown:u.composeEventHandlers(e,o),disabled:!!c||C.isViewOnly,...a,children:n.jsx(ie,{})})}),Rn=i.ikp("button",{_id:"aiChatInput__SendButton"}),Ht=t=>{const{handleSubmit:e,isSubmitDisabled:a,error:s}=b.useChat(),{aiChatSettings:r}=p.useInkeepConfig(),{onClick:o,...d}=t;return n.jsx(Rn,{onClick:u.composeEventHandlers(o,()=>e()),"aria-label":"Send message",disabled:a||!!s||r.isViewOnly,...d})},wt=i.ikp(F.CustomIcon,{_id:"aiChatInput__SendButtonIcon",iconKey:"chatSubmit"}),On=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(On,{...t})})},Qn=i.ikp("div",{_id:"aiChatAttachmentsBar__List"}),Dt=t=>{const{children:e,...a}=t,{messageAttachments:s}=b.useChat();return n.jsx(Qn,{children:h.maybeRender(e,s),...a})},Nn=i.ikp("div",{_id:"aiChatAttachmentsBar__Attachment"}),qt=t=>{const{attachment:e,...a}=t;return n.jsx(w.AttachmentItemProvider,{attachment:e,children:n.jsx(Nn,{...a})})},$n=i.ikp(S.BuiltInIconRenderer,{_id:"aiChatAttachmentsBar__AttachmentIcon"}),Wt=t=>{const{attachment:e}=w.useAttachmentItem(),a=e.contentType?.attachmentIcon;return a?n.jsx($n,{iconSettings:a,...t}):null},Vn=i.ikp("span",{_id:"aiChatAttachmentsBar__AttachmentTitle"}),Rt=t=>{const{attachment:e}=w.useAttachmentItem();return n.jsx(Vn,{children:e.title,...t})},Un=i.ikp("button",{_id:"aiChatAttachmentsBar__AttachmentDelete"}),Ot=t=>{const{onClick:e,...a}=t,{attachment:s}=w.useAttachmentItem(),{setMessageAttachments:r}=b.useChat(),o=()=>{r(d=>d.filter(c=>c.id!==s.id))};return n.jsx(Un,{"aria-label":"Remove attachment",children:n.jsx(F.CustomIcon,{iconKey:"close"}),onClick:u.composeEventHandlers(e,o),...a})},Qt=i.ikp("div",{_id:"aiChatAttachmentsBar__Actions"}),Nt=i.ikp(T.Tooltip,{_id:"aiChatAttachmentsBar__InfoTip",delayDuration:0}),$t=i.ikp(T.Trigger,{_id:"aiChatAttachmentsBar__InfoTipIcon",children:n.jsx(F.CustomIcon,{iconKey:"info"})}),de=i.ikp(T.Arrow,{_id:"aiChatAttachmentsBar__InfoTipArrow"}),Vt=i.ikp(T.Content,{_id:"aiChatAttachmentsBar__InfoTipText",side:"bottom",sideOffset:3,align:"center",children:n.jsxs(n.Fragment,{children:[n.jsx(de,{}),"Attachments will be kept in context for the entire conversation."]})}),Kn=i.ikp("div",{_id:"aiChatAttachmentsBar__Inputs"}),Ut=t=>{const{children:e,...a}=t,{selectedWorkflow:s}=b.useChat();return s?.supportedInputs?n.jsx(Kn,{children:h.maybeRender(e,s.supportedInputs),...a}):null},zn=i.ikp("button",{_id:"aiChatAttachmentsBar__Input"}),Kt=t=>{const{input:e,onClick:a,...s}=t,{selectedWorkflow:r,messageAttachments:o,setMessageAttachments:d}=b.useChat(),{selectInput:c,onOpen:m}=E.useAttachmentsBar(),l=()=>{if(e.type==="FUNCTIONAL_MULTI_ATTACHMENT")return r?e.onInvoke(r,e,d,[...o]):void 0;c(e),m()};return n.jsx(zn,{children:e.displayName,onClick:u.composeEventHandlers(a,l),...s})},zt=i.ikp(Ma.IoAdd,{_id:"aiChatAttachmentsBar__InputIcon"}),Gn=i.ikp(_.Root,{_id:"aiChatAttachmentsBar__Modal"}),Gt=t=>{const{onOpenChange:e,...a}=t,{selectInput:s,isOpen:r,onClose:o,selectedInput:d}=E.useAttachmentsBar(),c=m=>{m||(o(),s(null))};return n.jsx(Gn,{open:r&&d!==null,onOpenChange:u.composeEventHandlers(e,c),...a})},Yt=i.ikp(_.Overlay,{_id:"aiChatAttachmentsBar__ModalOverlay"}),Jt=i.ikp(_.Content,{_id:"aiChatAttachmentsBar__ModalContent","aria-describedby":void 0}),Xt=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalHeader"}),Yn=i.ikp(_.Title,{_id:"aiChatAttachmentsBar__ModalHeading"}),Zt=t=>{const{selectedInput:e}=E.useAttachmentsBar(),a=`Add ${e?.displayName}`;return n.jsx(Yn,{children:a,...t})},Jn=i.ikp("span",{_id:"aiChatAttachmentsBar__ModalDescription"}),ei=t=>{const{selectedInput:e}=E.useAttachmentsBar(),a=e?.workflowModalProps?.modalHelpText;return a?n.jsx(Jn,{children:a,...t}):null},Xn=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalHelp"}),ti=t=>{const{children:e,...a}=t,{selectedInput:s}=E.useAttachmentsBar(),r=s?.workflowModalProps?.modalHelpElement;return r?n.jsx(Xn,{asChild:!e,children:e||r,...a}):null},ii=i.ikp(_.Close,{_id:"aiChatAttachmentsBar__ModalClose",children:n.jsx(F.CustomIcon,{iconKey:"close"})}),ai=i.ikp("div",{_id:"aiChatAttachmentsBar__ModalBody"}),Zn=i.ikp("form",{_id:"aiChatAttachmentsBar__Form"}),ni=t=>{const{onSubmit:e,...a}=t,{form:s}=E.useAttachmentsBar();return n.jsx(Zn,{onSubmit:u.composeEventHandlers(e,s.onSubmit),...a})},si=i.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),es=i.ikp("label",{_id:"aiChatAttachmentsBar__FormTitleLabel"}),ri=t=>{const{form:e,selectedInput:a}=E.useAttachmentsBar();return n.jsx(es,{htmlFor:`${a?.id}-title`,children:e.labels.title,...t})},ts=i.ikp("input",{_id:"aiChatAttachmentsBar__FormTitleInput"}),oi=t=>{const{onChange:e,...a}=t,{form:s,selectedInput:r}=E.useAttachmentsBar();return n.jsx(ts,{name:"title",value:s.data.title,id:`${r?.id}-title`,"data-invalid":h.dataAttr(!!s.errors.title),"aria-invalid":!!s.errors.title,onChange:u.composeEventHandlers(e,s.onChange),...a})},is=i.ikp("span",{_id:"aiChatAttachmentsBar__FormTitleError"}),di=t=>{const{form:e}=E.useAttachmentsBar();return e.errors.title?n.jsx(is,{"aria-live":"polite",children:e.errors.title,...t}):null},ci=i.ikp("div",{_id:"aiChatAttachmentsBar__FormTitle",role:"group"}),as=i.ikp("label",{_id:"aiChatAttachmentsBar__FormContentLabel"}),mi=t=>{const{form:e,selectedInput:a}=E.useAttachmentsBar();return n.jsx(as,{htmlFor:`${a?.id}-content`,children:e.labels.content,...t})},ns=i.ikp("textarea",{_id:"aiChatAttachmentsBar__FormTitleInput"}),li=t=>{const{onChange:e,...a}=t,{form:s,selectedInput:r}=E.useAttachmentsBar();return n.jsx(ns,{asChild:!0,rows:4,name:"content",value:s.data.content,id:`${r?.id}-content`,"data-invalid":h.dataAttr(!!s.errors.content),"aria-invalid":!!s.errors.content,onChange:u.composeEventHandlers(e,s.onChange),...a,children:n.jsx(ie,{maxRows:10})})},ss=i.ikp("span",{_id:"aiChatAttachmentsBar__FormContentError"}),hi=t=>{const{form:e}=E.useAttachmentsBar();return e.errors.content?n.jsx(ss,{"aria-live":"polite",children:e.errors.content,...t}):null},ui=i.ikp("button",{_id:"aiChatAttachmentsBar__FormSubmitButton",children:"Upload",type:"submit"}),Ci=i.ikp("div",{_id:"aiChatActionBar"}),pi=i.ikp("div",{_id:"aiChat__ChatActions"}),vi=i.ikp("div",{_id:"aiChatTagline__Container"}),bi=i.ikp("span",{_id:"aiChatTagline__Text",children:"Powered by"}),gi=i.ikp(Ta.default,{_id:"aiChatTagline__Logo"}),Pi=i.ikp("a",{_id:"aiChatTagline__BrandName",children:"inkeep",href:"https://www.inkeep.com/",target:"_blank",rel:"noopener noreferrer"}),rs=i.ikp("div",{_id:"aiChat__ChatAction"}),Y=t=>{const{action:e,onClick:a,className:s,...r}=t,{clear:o,stop:d,isLoading:c,messages:m,selectedWorkflow:l}=b.useChat(),{conversation:C}=U.useInkeepConversation(),{aiChatSettings:v,baseSettings:k}=p.useInkeepConfig(),{logEvent:I}=Q.useChatEvents(),[j,W]=ee.useCopyToClipboard(),[L,X]=ee.useCopyToClipboard();if({help:!1,copy:m.length===0||!v.isCopyChatButtonVisible||c,share:m.length===0||!v.isShareButtonVisible||!C.id||!!l||c,clear:m.length===0||v.isViewOnly||c,stop:!c}[e])return null;const he={help:()=>{},copy:()=>{const R=m.map(y=>{const O=`**${y.role==="assistant"?"AI Assistant":"User"}**`,H=h.getMessageContent(y),D=xa.stringifyAttachments(y.metadata?.attributes?.attachments),V=D?`
|
|
8
8
|
|
|
9
9
|
**Attachments**
|
|
10
10
|
|
|
11
|
-
${D}`:"";return`${
|
|
11
|
+
${D}`:"";return`${O}
|
|
12
12
|
|
|
13
13
|
${H}${V}`}).join(`
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
`);O(W)},share:async()=>{const W={visibility:"public",tags:[],userProperties:{},messages:C.messages.map(D=>({...D,id:Date.now().toString()+D.id,conversationId:void 0}))},{apiKey:y,analyticsBaseUrl:Q}=k,H=await qa.logConversation("",W,y,Q);if(H){const V=`${v.shareChatUrlBasePath}?${K.SHARE_QUERY_PARAM}=${H?.id}`;X(V),I({eventName:"chat_share_button_clicked",properties:{sharedConversationId:H?.id,originalConversationId:C.id,sharedChatUrl:V}})}},clear:o,stop:d},ue={copy:j,share:L};return n.jsx(T.Tooltip,{delayDuration:0,open:ue[e],children:n.jsx(sr,{"data-type":e,"data-copied":h.dataAttr(j||L),className:`${r} ${e}`,children:n.jsx(ce,{action:e}),onClick:u.composeEventHandlers(a,he[e]),...s})})},or=i.ikp(T.Trigger,{_id:"aiChat__ChatActionLabel"}),ce=t=>{const{action:e,...a}=t,{aiChatSettings:r}=p.useInkeepConfig(),{getHelpButtonLabel:s,clearButtonLabel:o,shareButtonLabel:d,stopButtonLabel:c,copyChatButtonLabel:m}=r.actionButtonLabels??{},l={help:s??"Get Help",copy:m??"Copy",share:d??"Share",clear:o??"Clear",stop:c??"Stop"};return n.jsx(or,{children:l[e],...a})},dr=i.ikp(T.TooltipContent,{_id:"aiChat__ChatActionFeeback"}),_i=t=>{const{action:e,children:a,...r}=t,s={copy:"Copied!",share:"Link copied!"};return n.jsxs(dr,{sideOffset:5,...r,children:[n.jsx(T.Arrow,{}),a||s[e]]})},cr=i.ikp(x.Root,{_id:"aiChatHelpActions"}),Ai=t=>{const{children:e,...a}=t,{aiChatSettings:r}=p.useInkeepConfig(),{getHelpCallToActions:s}=r;if(!s||(s??[]).length===0)return null;const{_pinned:o,_unpinned:d}=s.reduce((C,v)=>{const k=v.pinToToolbar?"_pinned":"_unpinned";return{...C,[k]:[...C[k],v]}},{_pinned:[],_unpinned:[]}),c=d.length===1?[...o,d[0]]:o,m=d.length===1?[]:d,l=te.useHelpMenuState();return n.jsx(te.HelpMenuProvider,{value:l,children:n.jsx(cr,{open:l.open,onOpenChange:l.setOpen,children:h.maybeRender(e,{pinned:c,unpinned:m}),...a})})},mr=i.ikp(Y,{_id:"aiChatHelpAction"}),ki=t=>{const{action:e,onClick:a,...r}=t,{handleAction:s,logHelpAction:o}=ne.useChatAction(e),d=e.action.type,c=d==="OPEN_LINK"?n.jsx("a",{href:e.action.url,target:"_blank",rel:"noreferrer",children:e.name}):e.name;return n.jsx(mr,{action:"help","aria-label":e.name,"data-name":e.name,children:c,asChild:d==="OPEN_LINK",onClick:u.composeEventHandlers(a,()=>{s(),o()}),...r})},lr=i.ikp(x.Trigger,{_id:"aiChatHelpActions__Trigger"}),Fi=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(Y,{action:"help",...t,asChild:!0,children:n.jsx(lr,{children:e.actionButtonLabels?.getHelpButtonLabel??"Get Help"})})}),hr=i.ikp(x.Content,{_id:"aiChatHelpActions__Menu"}),Ei=t=>n.jsx(hr,{side:"top",sideOffset:8,align:"center",alignOffset:-10,...t}),Ii=i.ikp(x.Arrow,{_id:"aiChatHelpActions__MenuArrow"}),Mi=t=>{const{action:e,onClick:a,...r}=t,{handleAction:s,logHelpAction:o}=ne.useChatAction(e),{setOpen:d}=te.useHelpMenu(),c=()=>{s({onOpenForm:()=>d(!1)}),o()},m=e.action.type,l=i.ikp(m==="OPEN_LINK"?"a":"button",{_id:"aiChatHelpActions__MenuItem",children:e.name,"aria-label":e.name,"data-name":e.name,"data-type":e.action.type,...m==="OPEN_LINK"&&{href:e.action.url,target:"_blank",rel:"noopener"},onClick:u.composeEventHandlers(a,c)});return n.jsx(l,{...r})},ur=i.ikp(S.BuiltInIconRenderer,{_id:"aiChatHelpActions_MenuItemIcon"}),Si=t=>{const{action:e,...a}=t;return e.icon?n.jsx(ur,{iconSettings:e.icon,...a}):null},Cr=i.ikp(_.Root,{_id:"aiChatFeedbackModal"}),Bi=t=>{const{onOpenChange:e,...a}=t,{currentFeedback:r,setCurrentFeedback:s}=ae.useMessageFeedback();return n.jsx(Cr,{open:r!==null,onOpenChange:u.composeEventHandlers(e,()=>s(null)),...a})},fi=i.ikp(_.Overlay,{_id:"aiChatFeedbackModal__Overlay"}),xi=i.ikp(_.Content,{_id:"aiChatFeedbackModal__Content","aria-describedby":void 0}),Ti=i.ikp(_.Title,{_id:"aiChatFeedbackModal__Header",children:"Help improve my answers!"}),ji=i.ikp(_.Close,{_id:"aiChatFeedbackModal__Close",children:n.jsx(F.CustomIcon,{iconKey:"close"})}),yi=i.ikp("div",{_id:"aiChatFeedbackModal__Body"}),pr=i.ikp("form",{_id:"aiChatFeedbackForm"}),Hi=t=>{const{onSubmit:e,...a}=t,{submitNegativeFeedback:r,currentFeedback:s,setCurrentFeedback:o}=ae.useMessageFeedback(),d=c=>{c.preventDefault();const m=c.target,l=new FormData(m),C=Object.fromEntries(l.entries());s&&(r(s,C),o(null))};return n.jsx(pr,{onSubmit:u.composeEventHandlers(e,d),...a})},vr=i.ikp("div",{_id:"aiChatFeedbackItem"}),wi=t=>{const{name:e,...a}=t;return n.jsx(z.FeedbackItemProvider,{name:e,children:n.jsx(vr,{...a})})},br=i.ikp(G.Root,{_id:"aiChatFeedbackItem__Checkbox"}),Li=t=>{const{name:e,focusItem:a}=z.useFeedbackItem(),{onCheckedChange:r,...s}=t,o=d=>{d&&a?.current?.focus()};return n.jsx(br,{id:`feedback-${e}`,name:e,onCheckedChange:u.composeEventHandlers(r,o),...s})},Di=i.ikp(G.Indicator,{_id:"aiChatFeedbackItem__CheckboxIndicator",children:n.jsx(ve.CheckboxIcon,{})}),gr=i.ikp("label",{_id:"aiChatFeedbackItem__Label"}),qi=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(gr,{htmlFor:`feedback-${e}`,children:a[e],...t})},Pr=i.ikp("textarea",{_id:"aiChatFeedbackItem__Description",placeholder:"Please describe"}),Oi=t=>{const{name:e,focusItem:a}=z.useFeedbackItem();return n.jsx(Pr,{ref:a,name:`${e}:description`,...t})},Wi=i.ikp("button",{_id:"aiChatFeedbackForm__SubmitButton",children:"Submit",type:"submit"}),_r=i.ikp("div",{_id:"aiChatForm__Wrapper"}),Qi=t=>{const{form:e}=A.useChatForm();return e?n.jsx(_r,{...t}):null},Ar=i.ikp("form",{_id:"aiChatForm"}),Ri=t=>{const{onSubmit:e,...a}=t,{handleSubmit:r,isSuccess:s}=A.useChatForm();return s?null:n.jsx(Ar,{onSubmit:u.composeEventHandlers(e,r),...a})},kr=i.ikp("button",{_id:"aiChatForm__Close",children:n.jsx(F.CustomIcon,{iconKey:"close"})}),Ni=t=>{const{onClick:e,...a}=t,{closeForm:r}=A.useChatForm();return n.jsx(kr,{onClick:u.composeEventHandlers(e,r),...a})},$i=i.ikp("div",{_id:"aiChatForm__Header"}),Fr=i.ikp("h2",{_id:"aiChatForm__Heading"}),Vi=t=>{const{form:e}=A.useChatForm();return e?.heading?n.jsx(Fr,{children:e.heading,...t}):null},Er=i.ikp("span",{_id:"aiChatForm__Description"}),Ki=t=>{const{form:e}=A.useChatForm();return e?.description?n.jsx(Er,{children:e.description,...t}):null},Ir=i.ikp("div",{_id:"aiChatForm__Content"}),Ui=t=>{const{children:e,...a}=t,{fields:r=[]}=A.useChatForm();return n.jsx(Ir,{children:h.maybeRender(e,r),...a})},Mr=i.ikp("div",{_id:"aiChatForm__Field"}),zi=t=>{const{field:e,autoFocus:a,...r}=t,{control:s,errors:o}=A.useChatForm();return n.jsx(Ha.Controller,{name:e.name,control:s,rules:{required:e.required?`${e.label} is required.`:void 0},render:({field:d})=>{const c=d.value!==void 0||e.inputType==="FILE";return n.jsx(f.FormFieldProvider,{"data-invalid":h.dataAttr(!!o[e.name]),field:e,fieldProps:d,autoFocus:a,children:c&&n.jsx(Mr,{"data-input-type":e.inputType,"data-hidden":h.dataAttr(e.isHidden),...r})})}})},Sr=i.ikp("label",{_id:"aiChatForm__FieldLabel"}),Gi=t=>{const{field:e}=f.useFormField();return n.jsx(Sr,{"data-required":h.dataAttr(e.required),htmlFor:e.name,children:e.label,...t})},Br=i.ikp("input",{_id:"aiChatForm__FieldText",type:"text"}),J=t=>{const{field:e,error:a,fieldProps:{onChange:r,onBlur:s,...o},autoFocus:d}=f.useFormField(),{onChange:c,onBlur:m,...l}=t;return n.jsx(Br,{id:e.name,autoFocus:d,placeholder:"placeholder"in e?e.placeholder:void 0,"data-invalid":h.dataAttr(!!a),onChange:u.composeEventHandlers(c,r),onBlur:u.composeEventHandlers(m,s),...o,...l})},Yi=i.ikp(J,{_id:"aiChatForm__FieldEmail",type:"email"}),fr=i.ikp("input",{_id:"aiChatForm__FieldFile",type:"file",multiple:!0}),Ji=t=>{const{field:e,error:a,fieldProps:{value:r,onChange:s,onBlur:o,...d},autoFocus:c}=f.useFormField(),{onChange:m,onBlur:l,...C}=t,v=k=>{const I=k.target.files;s(I)};return n.jsx(fr,{id:e.name,autoFocus:c,"data-value":r,"data-invalid":h.dataAttr(!!a),...C,...d,onChange:u.composeEventHandlers(m,v),onBlur:u.composeEventHandlers(l,o)})},Xi=i.ikp(J,{_id:"aiChatForm__FieldTextArea",type:"textarea",asChild:!0,children:n.jsx(ie,{maxRows:8})}),xr=i.ikp(G.Root,{_id:"aiChatForm__FieldCheckbox"}),Zi=t=>{const{field:e,error:a,fieldProps:r,autoFocus:s}=f.useFormField(),{onCheckedChange:o,...d}=t;return n.jsx(xr,{id:e.name,name:e.name,autoFocus:s,"data-invalid":h.dataAttr(!!a),checked:r.value,onCheckedChange:u.composeEventHandlers(o,r.onChange),...d})},ea=i.ikp(G.Indicator,{_id:"aiChatForm__FieldCheckboxIndicator",children:n.jsx(ve.CheckboxIcon,{})}),Tr=i.ikp(M.Root,{_id:"aiChatForm__FieldSelect"}),ta=t=>{const{field:e,error:a,fieldProps:r}=f.useFormField(),{onValueChange:s,...o}=t;return n.jsx(Tr,{name:e.name,"data-invalid":h.dataAttr(!!a),value:r.value,onValueChange:u.composeEventHandlers(s,r.onChange),...o})},ia=i.ikp(M.Trigger,{_id:"aiChatForm__FieldSelect__Trigger"}),jr=i.ikp(M.Value,{_id:"aiChatForm__FieldSelect__Value"}),aa=t=>{const{field:e}=f.useFormField();return n.jsx(jr,{placeholder:"placeholder"in e?e.placeholder:void 0,...t})},na=i.ikp(M.Icon,{_id:"aiChatForm__FieldSelect__Icon",asChild:!0,children:n.jsx(S.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})}),ra=i.ikp(M.Content,{_id:"aiChatForm__FieldSelect__Content",position:"popper"}),sa=i.ikp(M.Viewport,{_id:"aiChatForm__FieldSelect__Viewport"}),oa=i.ikp(M.Item,{_id:"aiChatForm__FieldSelect__Item"}),da=i.ikp(M.ItemText,{_id:"aiChatForm__FieldSelect__ItemText"}),ca=i.ikp(M.ItemIndicator,{_id:"aiChatForm__FieldSelect__ItemIndicator",asChild:!0,children:n.jsx(S.BuiltInIconRenderer,{iconSettings:{builtIn:"LuCheck"}})}),yr=i.ikp("span",{_id:"aiChatForm__FieldError"}),ma=t=>{const{error:e}=f.useFormField();return e?n.jsx(yr,{children:e.message?.toString(),...t}):null},Hr=i.ikp("span",{_id:"aiChatForm__Error"}),la=t=>{const{formError:e}=A.useChatForm();return e?n.jsx(Hr,{children:e.message,...t}):null},ha=i.ikp("div",{_id:"aiChatForm__Footer"}),wr=i.ikp("button",{_id:"aiChatForm__Cancel",children:"Cancel"}),ua=t=>{const{onClick:e,...a}=t,{closeForm:r}=A.useChatForm();return n.jsx(wr,{onClick:u.composeEventHandlers(e,r),...a})},Lr=i.ikp("button",{_id:"aiChatForm__Submit",children:"Submit",type:"submit"}),Ca=t=>{const{onClick:e,...a}=t,{isSubmitting:r}=A.useChatForm();return n.jsx(Lr,{disabled:r,...a})},Dr=i.ikp("div",{_id:"aiChatForm__Success"}),pa=t=>{const{isSuccess:e}=A.useChatForm();return e?n.jsx(Dr,{...t}):null},qr=i.ikp("h2",{_id:"aiChatForm__SuccessHeading"}),va=t=>{const{form:e}=A.useChatForm();return n.jsx(qr,{children:e?.successView.heading,...t})},Or=i.ikp(U.Markdown,{_id:"aiChatForm__SuccessMessage"}),ba=t=>{const{form:e}=A.useChatForm();return n.jsx(Or,{children:e?.successView.message,...t})},Wr=i.ikp("button",{_id:"aiChatForm__SuccessButton"}),ga=t=>{const{onClick:e,...a}=t,{form:r,closeForm:s}=A.useChatForm(),o=r?.successView?.button;if(!o)return null;const d=o.icon&&n.jsx(S.BuiltInIconRenderer,{iconSettings:o.icon}),c=o.label;return n.jsx(Wr,{onClick:u.composeEventHandlers(e,s),children:n.jsxs(n.Fragment,{children:[d,c]}),...a})};exports.Provider=b.ChatProvider;exports.ActionBar=Ci;exports.Actions=pi;exports.AttachmentsBar=Lt;exports.AttachmentsBarActions=Rt;exports.AttachmentsBarAttachment=qt;exports.AttachmentsBarAttachmentDelete=Qt;exports.AttachmentsBarAttachmentIcon=Ot;exports.AttachmentsBarAttachmentTitle=Wt;exports.AttachmentsBarForm=ni;exports.AttachmentsBarFormContent=ci;exports.AttachmentsBarFormContentError=hi;exports.AttachmentsBarFormContentInput=li;exports.AttachmentsBarFormContentLabel=mi;exports.AttachmentsBarFormSubmitButton=ui;exports.AttachmentsBarFormTitle=ri;exports.AttachmentsBarFormTitleError=di;exports.AttachmentsBarFormTitleInput=oi;exports.AttachmentsBarFormTitleLabel=si;exports.AttachmentsBarInfoTip=Nt;exports.AttachmentsBarInfoTipArrow=de;exports.AttachmentsBarInfoTipIcon=$t;exports.AttachmentsBarInfoTipText=Vt;exports.AttachmentsBarInput=Ut;exports.AttachmentsBarInputIcon=zt;exports.AttachmentsBarInputs=Kt;exports.AttachmentsBarList=Dt;exports.AttachmentsBarModal=Gt;exports.AttachmentsBarModalBody=ai;exports.AttachmentsBarModalClose=ii;exports.AttachmentsBarModalContent=Jt;exports.AttachmentsBarModalDescription=ei;exports.AttachmentsBarModalHeader=Xt;exports.AttachmentsBarModalHeading=Zt;exports.AttachmentsBarModalHelp=ti;exports.AttachmentsBarModalOverlay=Yt;exports.ChatAction=Y;exports.ChatActionFeedback=_i;exports.ChatActionLabel=ce;exports.ChatHelpAction=ki;exports.Content=Ee;exports.ContentScrollArea=Ie;exports.ContentScrollAreaCorner=fe;exports.ContentScrollAreaScrollbar=Se;exports.ContentScrollAreaThumb=Be;exports.ContentScrollAreaViewport=Me;exports.ConversationLoading=Pe;exports.Disclaimer=Te;exports.DisclaimerArrow=Le;exports.DisclaimerContent=He;exports.DisclaimerLabel=je;exports.DisclaimerText=we;exports.DisclaimerTrigger=ye;exports.EmbeddedChatPrimitiveActionBar=Ci;exports.EmbeddedChatPrimitiveActions=pi;exports.EmbeddedChatPrimitiveAttachmentsBar=Lt;exports.EmbeddedChatPrimitiveAttachmentsBarActions=Rt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachment=qt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete=Qt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon=Ot;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle=Wt;exports.EmbeddedChatPrimitiveAttachmentsBarForm=ni;exports.EmbeddedChatPrimitiveAttachmentsBarFormContent=ci;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentError=hi;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentInput=li;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentLabel=mi;exports.EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton=ui;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitle=ri;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleError=di;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleInput=oi;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel=si;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTip=Nt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow=de;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon=$t;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipText=Vt;exports.EmbeddedChatPrimitiveAttachmentsBarInput=Ut;exports.EmbeddedChatPrimitiveAttachmentsBarInputIcon=zt;exports.EmbeddedChatPrimitiveAttachmentsBarInputs=Kt;exports.EmbeddedChatPrimitiveAttachmentsBarList=Dt;exports.EmbeddedChatPrimitiveAttachmentsBarModal=Gt;exports.EmbeddedChatPrimitiveAttachmentsBarModalBody=ai;exports.EmbeddedChatPrimitiveAttachmentsBarModalClose=ii;exports.EmbeddedChatPrimitiveAttachmentsBarModalContent=Jt;exports.EmbeddedChatPrimitiveAttachmentsBarModalDescription=ei;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeader=Xt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeading=Zt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHelp=ti;exports.EmbeddedChatPrimitiveAttachmentsBarModalOverlay=Yt;exports.EmbeddedChatPrimitiveChatAction=Y;exports.EmbeddedChatPrimitiveChatActionFeedback=_i;exports.EmbeddedChatPrimitiveChatActionLabel=ce;exports.EmbeddedChatPrimitiveChatHelpAction=ki;exports.EmbeddedChatPrimitiveContent=Ee;exports.EmbeddedChatPrimitiveContentScrollArea=Ie;exports.EmbeddedChatPrimitiveContentScrollAreaCorner=fe;exports.EmbeddedChatPrimitiveContentScrollAreaScrollbar=Se;exports.EmbeddedChatPrimitiveContentScrollAreaThumb=Be;exports.EmbeddedChatPrimitiveContentScrollAreaViewport=Me;exports.EmbeddedChatPrimitiveConversationLoading=Pe;exports.EmbeddedChatPrimitiveDisclaimer=Te;exports.EmbeddedChatPrimitiveDisclaimerArrow=Le;exports.EmbeddedChatPrimitiveDisclaimerContent=He;exports.EmbeddedChatPrimitiveDisclaimerLabel=je;exports.EmbeddedChatPrimitiveDisclaimerText=we;exports.EmbeddedChatPrimitiveDisclaimerTrigger=ye;exports.EmbeddedChatPrimitiveFeedbackForm=Hi;exports.EmbeddedChatPrimitiveFeedbackItem=wi;exports.EmbeddedChatPrimitiveFeedbackItemCheckbox=Li;exports.EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator=Di;exports.EmbeddedChatPrimitiveFeedbackItemDescription=Oi;exports.EmbeddedChatPrimitiveFeedbackItemLabel=qi;exports.EmbeddedChatPrimitiveFeedbackModal=Bi;exports.EmbeddedChatPrimitiveFeedbackModalBody=yi;exports.EmbeddedChatPrimitiveFeedbackModalClose=ji;exports.EmbeddedChatPrimitiveFeedbackModalContent=xi;exports.EmbeddedChatPrimitiveFeedbackModalHeader=Ti;exports.EmbeddedChatPrimitiveFeedbackModalOverlay=fi;exports.EmbeddedChatPrimitiveFeedbackSubmitButton=Wi;exports.EmbeddedChatPrimitiveFooter=xt;exports.EmbeddedChatPrimitiveForm=Ri;exports.EmbeddedChatPrimitiveFormCancel=ua;exports.EmbeddedChatPrimitiveFormClose=Ni;exports.EmbeddedChatPrimitiveFormContent=Ui;exports.EmbeddedChatPrimitiveFormDescription=Ki;exports.EmbeddedChatPrimitiveFormError=la;exports.EmbeddedChatPrimitiveFormField=zi;exports.EmbeddedChatPrimitiveFormFieldCheckbox=Zi;exports.EmbeddedChatPrimitiveFormFieldCheckboxIndicator=ea;exports.EmbeddedChatPrimitiveFormFieldEmail=Yi;exports.EmbeddedChatPrimitiveFormFieldError=ma;exports.EmbeddedChatPrimitiveFormFieldFile=Ji;exports.EmbeddedChatPrimitiveFormFieldLabel=Gi;exports.EmbeddedChatPrimitiveFormFieldSelect=ta;exports.EmbeddedChatPrimitiveFormFieldSelectContent=ra;exports.EmbeddedChatPrimitiveFormFieldSelectIcon=na;exports.EmbeddedChatPrimitiveFormFieldSelectItem=oa;exports.EmbeddedChatPrimitiveFormFieldSelectItemIndicator=ca;exports.EmbeddedChatPrimitiveFormFieldSelectItemText=da;exports.EmbeddedChatPrimitiveFormFieldSelectTrigger=ia;exports.EmbeddedChatPrimitiveFormFieldSelectValue=aa;exports.EmbeddedChatPrimitiveFormFieldSelectViewport=sa;exports.EmbeddedChatPrimitiveFormFieldText=J;exports.EmbeddedChatPrimitiveFormFieldTextArea=Xi;exports.EmbeddedChatPrimitiveFormFooter=ha;exports.EmbeddedChatPrimitiveFormHeader=$i;exports.EmbeddedChatPrimitiveFormHeading=Vi;exports.EmbeddedChatPrimitiveFormSubmit=Ca;exports.EmbeddedChatPrimitiveFormSuccess=pa;exports.EmbeddedChatPrimitiveFormSuccessButton=ga;exports.EmbeddedChatPrimitiveFormSuccessHeading=va;exports.EmbeddedChatPrimitiveFormSuccessMessage=ba;exports.EmbeddedChatPrimitiveFormWrapper=Qi;exports.EmbeddedChatPrimitiveHeaderToolbar=Ae;exports.EmbeddedChatPrimitiveHelpActions=Ai;exports.EmbeddedChatPrimitiveHelpActionsMenu=Ei;exports.EmbeddedChatPrimitiveHelpActionsMenuArrow=Ii;exports.EmbeddedChatPrimitiveHelpActionsMenuItem=Mi;exports.EmbeddedChatPrimitiveHelpActionsMenuItemIcon=Si;exports.EmbeddedChatPrimitiveHelpActionsTrigger=Fi;exports.EmbeddedChatPrimitiveInput=yt;exports.EmbeddedChatPrimitiveInputFieldset=Tt;exports.EmbeddedChatPrimitiveInputGroup=jt;exports.EmbeddedChatPrimitiveIntroMessageWrapper=Ue;exports.EmbeddedChatPrimitiveMessage=Ct;exports.EmbeddedChatPrimitiveMessageAction=gt;exports.EmbeddedChatPrimitiveMessageActions=pt;exports.EmbeddedChatPrimitiveMessageAttachments=at;exports.EmbeddedChatPrimitiveMessageAttachmentsItem=rt;exports.EmbeddedChatPrimitiveMessageAttachmentsItemIcon=st;exports.EmbeddedChatPrimitiveMessageAttachmentsItemTitle=ot;exports.EmbeddedChatPrimitiveMessageAttachmentsList=nt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreview=dt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewBody=ut;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewClose=ht;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewContent=mt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader=lt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay=ct;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=kt;exports.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs=Ft;exports.EmbeddedChatPrimitiveMessageSourceItemDescription=St;exports.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart=Bt;exports.EmbeddedChatPrimitiveMessageSourceItemIcon=Et;exports.EmbeddedChatPrimitiveMessageSourceItemIndicator=ft;exports.EmbeddedChatPrimitiveMessageSourceItemTag=Mt;exports.EmbeddedChatPrimitiveMessageSourceItemTitle=It;exports.EmbeddedChatPrimitiveMessageSources=Pt;exports.EmbeddedChatPrimitiveMessageSourcesHeader=_t;exports.EmbeddedChatPrimitiveMessageSourcesList=At;exports.EmbeddedChatPrimitiveMessageToolAction=bt;exports.EmbeddedChatPrimitiveMessageToolActions=vt;exports.EmbeddedChatPrimitiveMessageWrapper=oe;exports.EmbeddedChatPrimitiveMessages=xe;exports.EmbeddedChatPrimitiveQuickQuestion=We;exports.EmbeddedChatPrimitiveQuickQuestionButton=Qe;exports.EmbeddedChatPrimitiveQuickQuestions=De;exports.EmbeddedChatPrimitiveQuickQuestionsLabel=qe;exports.EmbeddedChatPrimitiveQuickQuestionsList=Oe;exports.EmbeddedChatPrimitiveRoot=_e;exports.EmbeddedChatPrimitiveSendButton=Ht;exports.EmbeddedChatPrimitiveSendButtonIcon=wt;exports.EmbeddedChatPrimitiveTaglineBrandName=Pi;exports.EmbeddedChatPrimitiveTaglineContainer=vi;exports.EmbeddedChatPrimitiveTaglineLogo=gi;exports.EmbeddedChatPrimitiveTaglineText=bi;exports.EmbeddedChatPrimitiveToolbarHeader=Fe;exports.EmbeddedChatPrimitiveToolbarHeaderWrapper=ke;exports.EmbeddedChatPrimitiveWorkflow=Ve;exports.EmbeddedChatPrimitiveWorkflowIcon=Ke;exports.EmbeddedChatPrimitiveWorkflows=Re;exports.EmbeddedChatPrimitiveWorkflowsLabel=Ne;exports.EmbeddedChatPrimitiveWorkflowsList=$e;exports.EmbeddedChatPrimitiveWrapper=ge;exports.FeedbackForm=Hi;exports.FeedbackItem=wi;exports.FeedbackItemCheckbox=Li;exports.FeedbackItemCheckboxIndicator=Di;exports.FeedbackItemDescription=Oi;exports.FeedbackItemLabel=qi;exports.FeedbackModal=Bi;exports.FeedbackModalBody=yi;exports.FeedbackModalClose=ji;exports.FeedbackModalContent=xi;exports.FeedbackModalHeader=Ti;exports.FeedbackModalOverlay=fi;exports.FeedbackSubmitButton=Wi;exports.Footer=xt;exports.Form=Ri;exports.FormCancel=ua;exports.FormClose=Ni;exports.FormContent=Ui;exports.FormDescription=Ki;exports.FormError=la;exports.FormField=zi;exports.FormFieldCheckbox=Zi;exports.FormFieldCheckboxIndicator=ea;exports.FormFieldEmail=Yi;exports.FormFieldError=ma;exports.FormFieldFile=Ji;exports.FormFieldLabel=Gi;exports.FormFieldSelect=ta;exports.FormFieldSelectContent=ra;exports.FormFieldSelectIcon=na;exports.FormFieldSelectItem=oa;exports.FormFieldSelectItemIndicator=ca;exports.FormFieldSelectItemText=da;exports.FormFieldSelectTrigger=ia;exports.FormFieldSelectValue=aa;exports.FormFieldSelectViewport=sa;exports.FormFieldText=J;exports.FormFieldTextArea=Xi;exports.FormFooter=ha;exports.FormHeader=$i;exports.FormHeading=Vi;exports.FormSubmit=Ca;exports.FormSuccess=pa;exports.FormSuccessButton=ga;exports.FormSuccessHeading=va;exports.FormSuccessMessage=ba;exports.FormWrapper=Qi;exports.Header=Na;exports.HeaderToolbar=Ae;exports.HeaderToolbarWrapper=ke;exports.HelpActions=Ai;exports.HelpActionsMenu=Ei;exports.HelpActionsMenuArrow=Ii;exports.HelpActionsMenuItem=Mi;exports.HelpActionsMenuItemIcon=Si;exports.HelpActionsTrigger=Fi;exports.Input=yt;exports.InputFieldset=Tt;exports.InputGroup=jt;exports.IntroMessageWrapper=Ue;exports.Message=Ct;exports.MessageAction=gt;exports.MessageActions=pt;exports.MessageAttachments=at;exports.MessageAttachmentsItem=rt;exports.MessageAttachmentsItemIcon=st;exports.MessageAttachmentsItemTitle=ot;exports.MessageAttachmentsList=nt;exports.MessageAttachmentsPreview=dt;exports.MessageAttachmentsPreviewBody=ut;exports.MessageAttachmentsPreviewClose=ht;exports.MessageAttachmentsPreviewContent=mt;exports.MessageAttachmentsPreviewHeader=lt;exports.MessageAttachmentsPreviewOverlay=ct;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=kt;exports.MessageSourceItemBreadcrumbIcon=jn;exports.MessageSourceItemBreadcrumbs=Ft;exports.MessageSourceItemDescription=St;exports.MessageSourceItemDescriptionPart=Bt;exports.MessageSourceItemIcon=Et;exports.MessageSourceItemIndicator=ft;exports.MessageSourceItemTag=Mt;exports.MessageSourceItemTitle=It;exports.MessageSources=Pt;exports.MessageSourcesHeader=_t;exports.MessageSourcesList=At;exports.MessageToolAction=bt;exports.MessageToolActions=vt;exports.MessageWrapper=oe;exports.Messages=xe;exports.QuickQuestion=We;exports.QuickQuestionButton=Qe;exports.QuickQuestions=De;exports.QuickQuestionsLabel=qe;exports.QuickQuestionsList=Oe;exports.Root=_e;exports.SendButton=Ht;exports.SendButtonIcon=wt;exports.TaglineBrandName=Pi;exports.TaglineContainer=vi;exports.TaglineLogo=gi;exports.TaglineText=bi;exports.ToolbarHeader=Fe;exports.Workflow=Ve;exports.WorkflowIcon=Ke;exports.Workflows=Re;exports.WorkflowsLabel=Ne;exports.WorkflowsList=$e;exports.Wrapper=ge;
|
|
17
|
+
`);W(R)},share:async()=>{const R={visibility:"public",tags:[],userProperties:{},messages:C.messages.map(D=>({...D,id:Date.now().toString()+D.id,conversationId:void 0}))},{apiKey:y,analyticsApiBaseUrl:O}=k,H=await qa.logConversation("",R,y,O);if(H){const V=`${v.shareChatUrlBasePath}?${U.SHARE_QUERY_PARAM}=${H?.id}`;X(V),I({eventName:"chat_share_button_clicked",properties:{sharedConversationId:H?.id,originalConversationId:C.id,sharedChatUrl:V}})}},clear:o,stop:d},ue={copy:j,share:L};return n.jsx(T.Tooltip,{delayDuration:0,open:ue[e],children:n.jsx(rs,{"data-type":e,"data-copied":h.dataAttr(j||L),className:`${s} ${e}`,children:n.jsx(ce,{action:e}),onClick:u.composeEventHandlers(a,he[e]),...r})})},os=i.ikp(T.Trigger,{_id:"aiChat__ChatActionLabel"}),ce=t=>{const{action:e,...a}=t,{aiChatSettings:s}=p.useInkeepConfig(),r=s.toolbarButtonLabels??{},o={help:r.getHelp??"Get Help",copy:r.copyChat??"Copy",share:r.share??"Share",clear:r.clear??"Clear",stop:r.stop??"Stop"};return n.jsx(os,{children:o[e],...a})},ds=i.ikp(T.TooltipContent,{_id:"aiChat__ChatActionFeeback"}),_i=t=>{const{action:e,children:a,...s}=t,r={copy:"Copied!",share:"Link copied!"};return n.jsxs(ds,{sideOffset:5,...s,children:[n.jsx(T.Arrow,{}),a||r[e]]})},cs=i.ikp(x.Root,{_id:"aiChatHelpActions"}),Ai=t=>{const{children:e,...a}=t,{aiChatSettings:s}=p.useInkeepConfig(),{getHelpOptions:r}=s;if(!r||(r??[]).length===0)return null;const{_pinned:o,_unpinned:d}=r.reduce((C,v)=>{const k=v.isPinnedToToolbar?"_pinned":"_unpinned";return{...C,[k]:[...C[k],v]}},{_pinned:[],_unpinned:[]}),c=d.length===1?[...o,d[0]]:o,m=d.length===1?[]:d,l=te.useHelpMenuState();return n.jsx(te.HelpMenuProvider,{value:l,children:n.jsx(cs,{open:l.open,onOpenChange:l.setOpen,children:h.maybeRender(e,{pinned:c,unpinned:m}),...a})})},ms=i.ikp(Y,{_id:"aiChatHelpAction"}),ki=t=>{const{action:e,onClick:a,...s}=t,{handleAction:r,logHelpAction:o}=ne.useChatAction(e),d=e.action.type,c=d==="open_link"?n.jsx("a",{href:e.action.url,target:"_blank",rel:"noreferrer",children:e.name}):e.name;return n.jsx(ms,{action:"help","aria-label":e.name,"data-name":e.name,children:c,asChild:d==="open_link",onClick:u.composeEventHandlers(a,()=>{r(),o()}),...s})},ls=i.ikp(x.Trigger,{_id:"aiChatHelpActions__Trigger"}),Fi=g.memo(t=>{const{aiChatSettings:e}=p.useInkeepConfig();return n.jsx(Y,{action:"help",...t,asChild:!0,children:n.jsx(ls,{children:e.toolbarButtonLabels?.getHelp??"Get Help"})})}),hs=i.ikp(x.Content,{_id:"aiChatHelpActions__Menu"}),Ei=t=>n.jsx(hs,{side:"top",sideOffset:8,align:"center",alignOffset:-10,...t}),Ii=i.ikp(x.Arrow,{_id:"aiChatHelpActions__MenuArrow"}),Mi=t=>{const{action:e,onClick:a,...s}=t,{handleAction:r,logHelpAction:o}=ne.useChatAction(e),{setOpen:d}=te.useHelpMenu(),c=()=>{r({onOpenForm:()=>d(!1)}),o()},m=e.action.type,l=i.ikp(m==="open_link"?"a":"button",{_id:"aiChatHelpActions__MenuItem",children:e.name,"aria-label":e.name,"data-name":e.name,"data-type":e.action.type,...m==="open_link"&&{href:e.action.url,target:"_blank",rel:"noopener"},onClick:u.composeEventHandlers(a,c)});return n.jsx(l,{...s})},us=i.ikp(S.BuiltInIconRenderer,{_id:"aiChatHelpActions_MenuItemIcon"}),Si=t=>{const{action:e,...a}=t;return e.icon?n.jsx(us,{iconSettings:e.icon,...a}):null},Cs=i.ikp(_.Root,{_id:"aiChatFeedbackModal"}),fi=t=>{const{onOpenChange:e,...a}=t,{currentFeedback:s,setCurrentFeedback:r}=ae.useMessageFeedback();return n.jsx(Cs,{open:s!==null,onOpenChange:u.composeEventHandlers(e,()=>r(null)),...a})},Bi=i.ikp(_.Overlay,{_id:"aiChatFeedbackModal__Overlay"}),xi=i.ikp(_.Content,{_id:"aiChatFeedbackModal__Content","aria-describedby":void 0}),Ti=i.ikp(_.Title,{_id:"aiChatFeedbackModal__Header",children:"Help improve my answers!"}),ji=i.ikp(_.Close,{_id:"aiChatFeedbackModal__Close",children:n.jsx(F.CustomIcon,{iconKey:"close"})}),yi=i.ikp("div",{_id:"aiChatFeedbackModal__Body"}),ps=i.ikp("form",{_id:"aiChatFeedbackForm"}),Hi=t=>{const{onSubmit:e,...a}=t,{submitNegativeFeedback:s,currentFeedback:r,setCurrentFeedback:o}=ae.useMessageFeedback(),d=c=>{c.preventDefault();const m=c.target,l=new FormData(m),C=Object.fromEntries(l.entries());r&&(s(r,C),o(null))};return n.jsx(ps,{onSubmit:u.composeEventHandlers(e,d),...a})},vs=i.ikp("div",{_id:"aiChatFeedbackItem"}),wi=t=>{const{name:e,...a}=t;return n.jsx(z.FeedbackItemProvider,{name:e,children:n.jsx(vs,{...a})})},bs=i.ikp(G.Root,{_id:"aiChatFeedbackItem__Checkbox"}),Li=t=>{const{name:e,focusItem:a}=z.useFeedbackItem(),{onCheckedChange:s,...r}=t,o=d=>{d&&a?.current?.focus()};return n.jsx(bs,{id:`feedback-${e}`,name:e,onCheckedChange:u.composeEventHandlers(s,o),...r})},Di=i.ikp(G.Indicator,{_id:"aiChatFeedbackItem__CheckboxIndicator",children:n.jsx(ve.CheckboxIcon,{})}),gs=i.ikp("label",{_id:"aiChatFeedbackItem__Label"}),qi=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(gs,{htmlFor:`feedback-${e}`,children:a[e],...t})},Ps=i.ikp("textarea",{_id:"aiChatFeedbackItem__Description",placeholder:"Please describe"}),Wi=t=>{const{name:e,focusItem:a}=z.useFeedbackItem();return n.jsx(Ps,{ref:a,name:`${e}:description`,...t})},Ri=i.ikp("button",{_id:"aiChatFeedbackForm__SubmitButton",children:"Submit",type:"submit"}),_s=i.ikp("div",{_id:"aiChatForm__Wrapper"}),Oi=t=>{const{form:e}=A.useChatForm();return e?n.jsx(_s,{...t}):null},As=i.ikp("form",{_id:"aiChatForm"}),Qi=t=>{const{onSubmit:e,...a}=t,{handleSubmit:s,isSuccess:r}=A.useChatForm();return r?null:n.jsx(As,{onSubmit:u.composeEventHandlers(e,s),...a})},ks=i.ikp("button",{_id:"aiChatForm__Close",children:n.jsx(F.CustomIcon,{iconKey:"close"})}),Ni=t=>{const{onClick:e,...a}=t,{closeForm:s}=A.useChatForm();return n.jsx(ks,{onClick:u.composeEventHandlers(e,s),...a})},$i=i.ikp("div",{_id:"aiChatForm__Header"}),Fs=i.ikp("h2",{_id:"aiChatForm__Heading"}),Vi=t=>{const{form:e}=A.useChatForm();return e?.heading?n.jsx(Fs,{children:e.heading,...t}):null},Es=i.ikp("span",{_id:"aiChatForm__Description"}),Ui=t=>{const{form:e}=A.useChatForm();return e?.description?n.jsx(Es,{children:e.description,...t}):null},Is=i.ikp("div",{_id:"aiChatForm__Content"}),Ki=t=>{const{children:e,...a}=t,{fields:s=[]}=A.useChatForm();return n.jsx(Is,{children:h.maybeRender(e,s),...a})},Ms=i.ikp("div",{_id:"aiChatForm__Field"}),zi=t=>{const{field:e,autoFocus:a,...s}=t,{control:r,errors:o}=A.useChatForm();return n.jsx(Ha.Controller,{name:e.name,control:r,rules:{required:e.isRequired?`${e.label} is required.`:void 0},render:({field:d})=>{const c=d.value!==void 0||e.inputType==="file";return n.jsx(B.FormFieldProvider,{"data-invalid":h.dataAttr(!!o[e.name]),field:e,fieldProps:d,autoFocus:a,children:c&&n.jsx(Ms,{"data-input-type":e.inputType,"data-hidden":h.dataAttr(e.isHidden),...s})})}})},Ss=i.ikp("label",{_id:"aiChatForm__FieldLabel"}),Gi=t=>{const{field:e}=B.useFormField();return n.jsx(Ss,{"data-required":h.dataAttr(e.isRequired),htmlFor:e.name,children:e.label,...t})},fs=i.ikp("input",{_id:"aiChatForm__FieldText",type:"text"}),J=t=>{const{field:e,error:a,fieldProps:{onChange:s,onBlur:r,...o},autoFocus:d}=B.useFormField(),{onChange:c,onBlur:m,...l}=t;return n.jsx(fs,{id:e.name,autoFocus:d,placeholder:"placeholder"in e?e.placeholder:void 0,"data-invalid":h.dataAttr(!!a),onChange:u.composeEventHandlers(c,s),onBlur:u.composeEventHandlers(m,r),...o,...l})},Yi=i.ikp(J,{_id:"aiChatForm__FieldEmail",type:"email"}),Bs=i.ikp("input",{_id:"aiChatForm__FieldFile",type:"file",multiple:!0}),Ji=t=>{const{field:e,error:a,fieldProps:{value:s,onChange:r,onBlur:o,...d},autoFocus:c}=B.useFormField(),{onChange:m,onBlur:l,...C}=t,v=k=>{const I=k.target.files;r(I)};return n.jsx(Bs,{id:e.name,autoFocus:c,"data-value":s,"data-invalid":h.dataAttr(!!a),...C,...d,onChange:u.composeEventHandlers(m,v),onBlur:u.composeEventHandlers(l,o)})},Xi=i.ikp(J,{_id:"aiChatForm__FieldTextArea",type:"textarea",asChild:!0,children:n.jsx(ie,{maxRows:8})}),xs=i.ikp(G.Root,{_id:"aiChatForm__FieldCheckbox"}),Zi=t=>{const{field:e,error:a,fieldProps:s,autoFocus:r}=B.useFormField(),{onCheckedChange:o,...d}=t;return n.jsx(xs,{id:e.name,name:e.name,autoFocus:r,"data-invalid":h.dataAttr(!!a),checked:s.value,onCheckedChange:u.composeEventHandlers(o,s.onChange),...d})},ea=i.ikp(G.Indicator,{_id:"aiChatForm__FieldCheckboxIndicator",children:n.jsx(ve.CheckboxIcon,{})}),Ts=i.ikp(M.Root,{_id:"aiChatForm__FieldSelect"}),ta=t=>{const{field:e,error:a,fieldProps:s}=B.useFormField(),{onValueChange:r,...o}=t;return n.jsx(Ts,{name:e.name,"data-invalid":h.dataAttr(!!a),value:s.value,onValueChange:u.composeEventHandlers(r,s.onChange),...o})},ia=i.ikp(M.Trigger,{_id:"aiChatForm__FieldSelect__Trigger"}),js=i.ikp(M.Value,{_id:"aiChatForm__FieldSelect__Value"}),aa=t=>{const{field:e}=B.useFormField();return n.jsx(js,{placeholder:"placeholder"in e?e.placeholder:void 0,...t})},na=i.ikp(M.Icon,{_id:"aiChatForm__FieldSelect__Icon",asChild:!0,children:n.jsx(S.BuiltInIconRenderer,{iconSettings:{builtIn:"LuChevronDown"}})}),sa=i.ikp(M.Content,{_id:"aiChatForm__FieldSelect__Content",position:"popper"}),ra=i.ikp(M.Viewport,{_id:"aiChatForm__FieldSelect__Viewport"}),oa=i.ikp(M.Item,{_id:"aiChatForm__FieldSelect__Item"}),da=i.ikp(M.ItemText,{_id:"aiChatForm__FieldSelect__ItemText"}),ca=i.ikp(M.ItemIndicator,{_id:"aiChatForm__FieldSelect__ItemIndicator",asChild:!0,children:n.jsx(S.BuiltInIconRenderer,{iconSettings:{builtIn:"LuCheck"}})}),ys=i.ikp("span",{_id:"aiChatForm__FieldError"}),ma=t=>{const{error:e}=B.useFormField();return e?n.jsx(ys,{children:e.message?.toString(),...t}):null},Hs=i.ikp("span",{_id:"aiChatForm__Error"}),la=t=>{const{formError:e}=A.useChatForm();return e?n.jsx(Hs,{children:e.message,...t}):null},ha=i.ikp("div",{_id:"aiChatForm__Footer"}),ws=i.ikp("button",{_id:"aiChatForm__Cancel",children:"Cancel"}),ua=t=>{const{onClick:e,...a}=t,{closeForm:s}=A.useChatForm();return n.jsx(ws,{onClick:u.composeEventHandlers(e,s),...a})},Ls=i.ikp("button",{_id:"aiChatForm__Submit",children:"Submit",type:"submit"}),Ca=t=>{const{onClick:e,...a}=t,{isSubmitting:s}=A.useChatForm();return n.jsx(Ls,{disabled:s,...a})},Ds=i.ikp("div",{_id:"aiChatForm__Success"}),pa=t=>{const{isSuccess:e}=A.useChatForm();return e?n.jsx(Ds,{...t}):null},qs=i.ikp("h2",{_id:"aiChatForm__SuccessHeading"}),va=t=>{const{form:e}=A.useChatForm();return n.jsx(qs,{children:e?.successView.heading,...t})},Ws=i.ikp(K.Markdown,{_id:"aiChatForm__SuccessMessage"}),ba=t=>{const{form:e}=A.useChatForm();return n.jsx(Ws,{children:e?.successView.message,...t})},Rs=i.ikp("button",{_id:"aiChatForm__SuccessButton"}),ga=t=>{const{onClick:e,...a}=t,{form:s,closeForm:r}=A.useChatForm(),o=s?.successView?.button;if(!o)return null;const d=o.icon&&n.jsx(S.BuiltInIconRenderer,{iconSettings:o.icon}),c=o.label;return n.jsx(Rs,{onClick:u.composeEventHandlers(e,r),children:n.jsxs(n.Fragment,{children:[d,c]}),...a})};exports.Provider=b.ChatProvider;exports.ActionBar=Ci;exports.Actions=pi;exports.AttachmentsBar=Lt;exports.AttachmentsBarActions=Qt;exports.AttachmentsBarAttachment=qt;exports.AttachmentsBarAttachmentDelete=Ot;exports.AttachmentsBarAttachmentIcon=Wt;exports.AttachmentsBarAttachmentTitle=Rt;exports.AttachmentsBarForm=ni;exports.AttachmentsBarFormContent=ci;exports.AttachmentsBarFormContentError=hi;exports.AttachmentsBarFormContentInput=li;exports.AttachmentsBarFormContentLabel=mi;exports.AttachmentsBarFormSubmitButton=ui;exports.AttachmentsBarFormTitle=si;exports.AttachmentsBarFormTitleError=di;exports.AttachmentsBarFormTitleInput=oi;exports.AttachmentsBarFormTitleLabel=ri;exports.AttachmentsBarInfoTip=Nt;exports.AttachmentsBarInfoTipArrow=de;exports.AttachmentsBarInfoTipIcon=$t;exports.AttachmentsBarInfoTipText=Vt;exports.AttachmentsBarInput=Kt;exports.AttachmentsBarInputIcon=zt;exports.AttachmentsBarInputs=Ut;exports.AttachmentsBarList=Dt;exports.AttachmentsBarModal=Gt;exports.AttachmentsBarModalBody=ai;exports.AttachmentsBarModalClose=ii;exports.AttachmentsBarModalContent=Jt;exports.AttachmentsBarModalDescription=ei;exports.AttachmentsBarModalHeader=Xt;exports.AttachmentsBarModalHeading=Zt;exports.AttachmentsBarModalHelp=ti;exports.AttachmentsBarModalOverlay=Yt;exports.ChatAction=Y;exports.ChatActionFeedback=_i;exports.ChatActionLabel=ce;exports.ChatHelpAction=ki;exports.Content=Ee;exports.ContentScrollArea=Ie;exports.ContentScrollAreaCorner=Be;exports.ContentScrollAreaScrollbar=Se;exports.ContentScrollAreaThumb=fe;exports.ContentScrollAreaViewport=Me;exports.ConversationLoading=Pe;exports.Disclaimer=Te;exports.DisclaimerArrow=Le;exports.DisclaimerContent=He;exports.DisclaimerLabel=je;exports.DisclaimerText=we;exports.DisclaimerTrigger=ye;exports.EmbeddedChatPrimitiveActionBar=Ci;exports.EmbeddedChatPrimitiveActions=pi;exports.EmbeddedChatPrimitiveAttachmentsBar=Lt;exports.EmbeddedChatPrimitiveAttachmentsBarActions=Qt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachment=qt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete=Ot;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon=Wt;exports.EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle=Rt;exports.EmbeddedChatPrimitiveAttachmentsBarForm=ni;exports.EmbeddedChatPrimitiveAttachmentsBarFormContent=ci;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentError=hi;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentInput=li;exports.EmbeddedChatPrimitiveAttachmentsBarFormContentLabel=mi;exports.EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton=ui;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitle=si;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleError=di;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleInput=oi;exports.EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel=ri;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTip=Nt;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow=de;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon=$t;exports.EmbeddedChatPrimitiveAttachmentsBarInfoTipText=Vt;exports.EmbeddedChatPrimitiveAttachmentsBarInput=Kt;exports.EmbeddedChatPrimitiveAttachmentsBarInputIcon=zt;exports.EmbeddedChatPrimitiveAttachmentsBarInputs=Ut;exports.EmbeddedChatPrimitiveAttachmentsBarList=Dt;exports.EmbeddedChatPrimitiveAttachmentsBarModal=Gt;exports.EmbeddedChatPrimitiveAttachmentsBarModalBody=ai;exports.EmbeddedChatPrimitiveAttachmentsBarModalClose=ii;exports.EmbeddedChatPrimitiveAttachmentsBarModalContent=Jt;exports.EmbeddedChatPrimitiveAttachmentsBarModalDescription=ei;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeader=Xt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHeading=Zt;exports.EmbeddedChatPrimitiveAttachmentsBarModalHelp=ti;exports.EmbeddedChatPrimitiveAttachmentsBarModalOverlay=Yt;exports.EmbeddedChatPrimitiveChatAction=Y;exports.EmbeddedChatPrimitiveChatActionFeedback=_i;exports.EmbeddedChatPrimitiveChatActionLabel=ce;exports.EmbeddedChatPrimitiveChatHelpAction=ki;exports.EmbeddedChatPrimitiveContent=Ee;exports.EmbeddedChatPrimitiveContentScrollArea=Ie;exports.EmbeddedChatPrimitiveContentScrollAreaCorner=Be;exports.EmbeddedChatPrimitiveContentScrollAreaScrollbar=Se;exports.EmbeddedChatPrimitiveContentScrollAreaThumb=fe;exports.EmbeddedChatPrimitiveContentScrollAreaViewport=Me;exports.EmbeddedChatPrimitiveConversationLoading=Pe;exports.EmbeddedChatPrimitiveDisclaimer=Te;exports.EmbeddedChatPrimitiveDisclaimerArrow=Le;exports.EmbeddedChatPrimitiveDisclaimerContent=He;exports.EmbeddedChatPrimitiveDisclaimerLabel=je;exports.EmbeddedChatPrimitiveDisclaimerText=we;exports.EmbeddedChatPrimitiveDisclaimerTrigger=ye;exports.EmbeddedChatPrimitiveFeedbackForm=Hi;exports.EmbeddedChatPrimitiveFeedbackItem=wi;exports.EmbeddedChatPrimitiveFeedbackItemCheckbox=Li;exports.EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator=Di;exports.EmbeddedChatPrimitiveFeedbackItemDescription=Wi;exports.EmbeddedChatPrimitiveFeedbackItemLabel=qi;exports.EmbeddedChatPrimitiveFeedbackModal=fi;exports.EmbeddedChatPrimitiveFeedbackModalBody=yi;exports.EmbeddedChatPrimitiveFeedbackModalClose=ji;exports.EmbeddedChatPrimitiveFeedbackModalContent=xi;exports.EmbeddedChatPrimitiveFeedbackModalHeader=Ti;exports.EmbeddedChatPrimitiveFeedbackModalOverlay=Bi;exports.EmbeddedChatPrimitiveFeedbackSubmitButton=Ri;exports.EmbeddedChatPrimitiveFooter=xt;exports.EmbeddedChatPrimitiveForm=Qi;exports.EmbeddedChatPrimitiveFormCancel=ua;exports.EmbeddedChatPrimitiveFormClose=Ni;exports.EmbeddedChatPrimitiveFormContent=Ki;exports.EmbeddedChatPrimitiveFormDescription=Ui;exports.EmbeddedChatPrimitiveFormError=la;exports.EmbeddedChatPrimitiveFormField=zi;exports.EmbeddedChatPrimitiveFormFieldCheckbox=Zi;exports.EmbeddedChatPrimitiveFormFieldCheckboxIndicator=ea;exports.EmbeddedChatPrimitiveFormFieldEmail=Yi;exports.EmbeddedChatPrimitiveFormFieldError=ma;exports.EmbeddedChatPrimitiveFormFieldFile=Ji;exports.EmbeddedChatPrimitiveFormFieldLabel=Gi;exports.EmbeddedChatPrimitiveFormFieldSelect=ta;exports.EmbeddedChatPrimitiveFormFieldSelectContent=sa;exports.EmbeddedChatPrimitiveFormFieldSelectIcon=na;exports.EmbeddedChatPrimitiveFormFieldSelectItem=oa;exports.EmbeddedChatPrimitiveFormFieldSelectItemIndicator=ca;exports.EmbeddedChatPrimitiveFormFieldSelectItemText=da;exports.EmbeddedChatPrimitiveFormFieldSelectTrigger=ia;exports.EmbeddedChatPrimitiveFormFieldSelectValue=aa;exports.EmbeddedChatPrimitiveFormFieldSelectViewport=ra;exports.EmbeddedChatPrimitiveFormFieldText=J;exports.EmbeddedChatPrimitiveFormFieldTextArea=Xi;exports.EmbeddedChatPrimitiveFormFooter=ha;exports.EmbeddedChatPrimitiveFormHeader=$i;exports.EmbeddedChatPrimitiveFormHeading=Vi;exports.EmbeddedChatPrimitiveFormSubmit=Ca;exports.EmbeddedChatPrimitiveFormSuccess=pa;exports.EmbeddedChatPrimitiveFormSuccessButton=ga;exports.EmbeddedChatPrimitiveFormSuccessHeading=va;exports.EmbeddedChatPrimitiveFormSuccessMessage=ba;exports.EmbeddedChatPrimitiveFormWrapper=Oi;exports.EmbeddedChatPrimitiveHeaderToolbar=Ae;exports.EmbeddedChatPrimitiveHelpActions=Ai;exports.EmbeddedChatPrimitiveHelpActionsMenu=Ei;exports.EmbeddedChatPrimitiveHelpActionsMenuArrow=Ii;exports.EmbeddedChatPrimitiveHelpActionsMenuItem=Mi;exports.EmbeddedChatPrimitiveHelpActionsMenuItemIcon=Si;exports.EmbeddedChatPrimitiveHelpActionsTrigger=Fi;exports.EmbeddedChatPrimitiveInput=yt;exports.EmbeddedChatPrimitiveInputFieldset=Tt;exports.EmbeddedChatPrimitiveInputGroup=jt;exports.EmbeddedChatPrimitiveIntroMessageWrapper=Ke;exports.EmbeddedChatPrimitiveMessage=Ct;exports.EmbeddedChatPrimitiveMessageAction=gt;exports.EmbeddedChatPrimitiveMessageActions=pt;exports.EmbeddedChatPrimitiveMessageAttachments=at;exports.EmbeddedChatPrimitiveMessageAttachmentsItem=st;exports.EmbeddedChatPrimitiveMessageAttachmentsItemIcon=rt;exports.EmbeddedChatPrimitiveMessageAttachmentsItemTitle=ot;exports.EmbeddedChatPrimitiveMessageAttachmentsList=nt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreview=dt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewBody=ut;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewClose=ht;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewContent=mt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader=lt;exports.EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay=ct;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=kt;exports.EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs=Ft;exports.EmbeddedChatPrimitiveMessageSourceItemDescription=St;exports.EmbeddedChatPrimitiveMessageSourceItemDescriptionPart=ft;exports.EmbeddedChatPrimitiveMessageSourceItemIcon=Et;exports.EmbeddedChatPrimitiveMessageSourceItemIndicator=Bt;exports.EmbeddedChatPrimitiveMessageSourceItemTag=Mt;exports.EmbeddedChatPrimitiveMessageSourceItemTitle=It;exports.EmbeddedChatPrimitiveMessageSources=Pt;exports.EmbeddedChatPrimitiveMessageSourcesHeader=_t;exports.EmbeddedChatPrimitiveMessageSourcesList=At;exports.EmbeddedChatPrimitiveMessageToolAction=bt;exports.EmbeddedChatPrimitiveMessageToolActions=vt;exports.EmbeddedChatPrimitiveMessageWrapper=oe;exports.EmbeddedChatPrimitiveMessages=xe;exports.EmbeddedChatPrimitiveQuickQuestion=Re;exports.EmbeddedChatPrimitiveQuickQuestionButton=Oe;exports.EmbeddedChatPrimitiveQuickQuestions=De;exports.EmbeddedChatPrimitiveQuickQuestionsLabel=qe;exports.EmbeddedChatPrimitiveQuickQuestionsList=We;exports.EmbeddedChatPrimitiveRoot=_e;exports.EmbeddedChatPrimitiveSendButton=Ht;exports.EmbeddedChatPrimitiveSendButtonIcon=wt;exports.EmbeddedChatPrimitiveTaglineBrandName=Pi;exports.EmbeddedChatPrimitiveTaglineContainer=vi;exports.EmbeddedChatPrimitiveTaglineLogo=gi;exports.EmbeddedChatPrimitiveTaglineText=bi;exports.EmbeddedChatPrimitiveToolbarHeader=Fe;exports.EmbeddedChatPrimitiveToolbarHeaderWrapper=ke;exports.EmbeddedChatPrimitiveWorkflow=Ve;exports.EmbeddedChatPrimitiveWorkflowIcon=Ue;exports.EmbeddedChatPrimitiveWorkflows=Qe;exports.EmbeddedChatPrimitiveWorkflowsLabel=Ne;exports.EmbeddedChatPrimitiveWorkflowsList=$e;exports.EmbeddedChatPrimitiveWrapper=ge;exports.FeedbackForm=Hi;exports.FeedbackItem=wi;exports.FeedbackItemCheckbox=Li;exports.FeedbackItemCheckboxIndicator=Di;exports.FeedbackItemDescription=Wi;exports.FeedbackItemLabel=qi;exports.FeedbackModal=fi;exports.FeedbackModalBody=yi;exports.FeedbackModalClose=ji;exports.FeedbackModalContent=xi;exports.FeedbackModalHeader=Ti;exports.FeedbackModalOverlay=Bi;exports.FeedbackSubmitButton=Ri;exports.Footer=xt;exports.Form=Qi;exports.FormCancel=ua;exports.FormClose=Ni;exports.FormContent=Ki;exports.FormDescription=Ui;exports.FormError=la;exports.FormField=zi;exports.FormFieldCheckbox=Zi;exports.FormFieldCheckboxIndicator=ea;exports.FormFieldEmail=Yi;exports.FormFieldError=ma;exports.FormFieldFile=Ji;exports.FormFieldLabel=Gi;exports.FormFieldSelect=ta;exports.FormFieldSelectContent=sa;exports.FormFieldSelectIcon=na;exports.FormFieldSelectItem=oa;exports.FormFieldSelectItemIndicator=ca;exports.FormFieldSelectItemText=da;exports.FormFieldSelectTrigger=ia;exports.FormFieldSelectValue=aa;exports.FormFieldSelectViewport=ra;exports.FormFieldText=J;exports.FormFieldTextArea=Xi;exports.FormFooter=ha;exports.FormHeader=$i;exports.FormHeading=Vi;exports.FormSubmit=Ca;exports.FormSuccess=pa;exports.FormSuccessButton=ga;exports.FormSuccessHeading=va;exports.FormSuccessMessage=ba;exports.FormWrapper=Oi;exports.Header=Na;exports.HeaderToolbar=Ae;exports.HeaderToolbarWrapper=ke;exports.HelpActions=Ai;exports.HelpActionsMenu=Ei;exports.HelpActionsMenuArrow=Ii;exports.HelpActionsMenuItem=Mi;exports.HelpActionsMenuItemIcon=Si;exports.HelpActionsTrigger=Fi;exports.Input=yt;exports.InputFieldset=Tt;exports.InputGroup=jt;exports.IntroMessageWrapper=Ke;exports.Message=Ct;exports.MessageAction=gt;exports.MessageActions=pt;exports.MessageAttachments=at;exports.MessageAttachmentsItem=st;exports.MessageAttachmentsItemIcon=rt;exports.MessageAttachmentsItemTitle=ot;exports.MessageAttachmentsList=nt;exports.MessageAttachmentsPreview=dt;exports.MessageAttachmentsPreviewBody=ut;exports.MessageAttachmentsPreviewClose=ht;exports.MessageAttachmentsPreviewContent=mt;exports.MessageAttachmentsPreviewHeader=lt;exports.MessageAttachmentsPreviewOverlay=ct;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=kt;exports.MessageSourceItemBreadcrumbIcon=jn;exports.MessageSourceItemBreadcrumbs=Ft;exports.MessageSourceItemDescription=St;exports.MessageSourceItemDescriptionPart=ft;exports.MessageSourceItemIcon=Et;exports.MessageSourceItemIndicator=Bt;exports.MessageSourceItemTag=Mt;exports.MessageSourceItemTitle=It;exports.MessageSources=Pt;exports.MessageSourcesHeader=_t;exports.MessageSourcesList=At;exports.MessageToolAction=bt;exports.MessageToolActions=vt;exports.MessageWrapper=oe;exports.Messages=xe;exports.QuickQuestion=Re;exports.QuickQuestionButton=Oe;exports.QuickQuestions=De;exports.QuickQuestionsLabel=qe;exports.QuickQuestionsList=We;exports.Root=_e;exports.SendButton=Ht;exports.SendButtonIcon=wt;exports.TaglineBrandName=Pi;exports.TaglineContainer=vi;exports.TaglineLogo=gi;exports.TaglineText=bi;exports.ToolbarHeader=Fe;exports.Workflow=Ve;exports.WorkflowIcon=Ue;exports.Workflows=Qe;exports.WorkflowsLabel=Ne;exports.WorkflowsList=$e;exports.Wrapper=ge;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ComponentPropsWithoutRef, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes, MemoExoticComponent, ClassAttributes, ButtonHTMLAttributes, FormHTMLAttributes, LabelHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, SVGProps, AnchorHTMLAttributes } from 'react';
|
|
2
2
|
import { TextareaAutosizeProps } from 'react-textarea-autosize';
|
|
3
3
|
import { TransformedSourceItem } from '../providers/source-item-provider';
|
|
4
|
-
import {
|
|
4
|
+
import { GetHelpOption, MessageAttachment, ToolCallAction, Workflow, WorkflowInputTypes, FormField, FeedbackItemType, Message, MessageAction, InkeepCustomIcon, UrlQueryParam } from '@inkeep/cxkit-types';
|
|
5
5
|
import { ChatContextValue, ChatProvider } from './embedded-chat/chat-provider';
|
|
6
6
|
import { MarkdownComponentID } from '../utils/component-ids';
|
|
7
7
|
import { PolymorphicProps } from './factory';
|
|
@@ -298,8 +298,8 @@ export interface EmbeddedChatPrimitiveChatActionFeedbackProps extends ComponentP
|
|
|
298
298
|
}
|
|
299
299
|
export declare const EmbeddedChatPrimitiveChatActionFeedback: (props: EmbeddedChatPrimitiveChatActionFeedbackProps) => import("react/jsx-runtime").JSX.Element;
|
|
300
300
|
interface HelpCallToActions {
|
|
301
|
-
pinned:
|
|
302
|
-
unpinned:
|
|
301
|
+
pinned: GetHelpOption[];
|
|
302
|
+
unpinned: GetHelpOption[];
|
|
303
303
|
}
|
|
304
304
|
declare const PrimitiveHelpActions: ForwardRefExoticComponent< PolymorphicProps & Omit<PopoverPrimitive.PopoverProps, "_id"> & Partial<Pick<PopoverPrimitive.PopoverProps, "_id">>>;
|
|
305
305
|
export interface EmbeddedChatPrimitiveHelpActionsProps extends Omit<ComponentPropsWithRef<typeof PrimitiveHelpActions>, 'children'> {
|
|
@@ -308,7 +308,7 @@ export interface EmbeddedChatPrimitiveHelpActionsProps extends Omit<ComponentPro
|
|
|
308
308
|
export declare const EmbeddedChatPrimitiveHelpActions: (props: EmbeddedChatPrimitiveHelpActionsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
309
309
|
declare const PrimitiveChatHelpAction: ForwardRefExoticComponent< PolymorphicProps & Omit<EmbeddedChatPrimitiveChatActionProps, "_id"> & Partial<Pick<EmbeddedChatPrimitiveChatActionProps, "_id">>>;
|
|
310
310
|
export interface EmbeddedChatPrimitiveChatHelpActionProps extends Omit<ComponentPropsWithRef<typeof PrimitiveChatHelpAction>, 'action'> {
|
|
311
|
-
action:
|
|
311
|
+
action: GetHelpOption;
|
|
312
312
|
}
|
|
313
313
|
export declare const EmbeddedChatPrimitiveChatHelpAction: (props: EmbeddedChatPrimitiveChatHelpActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
314
314
|
export declare const EmbeddedChatPrimitiveHelpActionsTrigger: MemoExoticComponent<(props: Omit<EmbeddedChatPrimitiveChatActionProps, "action">) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -316,7 +316,7 @@ declare const PrimitiveHelpActionsMenu: ForwardRefExoticComponent< PolymorphicPr
|
|
|
316
316
|
export declare const EmbeddedChatPrimitiveHelpActionsMenu: (props: ComponentPropsWithRef<typeof PrimitiveHelpActionsMenu>) => import("react/jsx-runtime").JSX.Element;
|
|
317
317
|
export declare const EmbeddedChatPrimitiveHelpActionsMenuArrow: ForwardRefExoticComponent< PolymorphicProps & Omit<PopoverPrimitive.PopoverArrowProps & RefAttributes<SVGSVGElement>, "_id"> & Partial<Pick<PopoverPrimitive.PopoverArrowProps & RefAttributes<SVGSVGElement>, "_id">>>;
|
|
318
318
|
export interface EmbeddedChatPrimitiveHelpActionsMenuItemProps extends ComponentPropsWithRef<'button'> {
|
|
319
|
-
action:
|
|
319
|
+
action: GetHelpOption;
|
|
320
320
|
}
|
|
321
321
|
export declare const EmbeddedChatPrimitiveHelpActionsMenuItem: (props: EmbeddedChatPrimitiveHelpActionsMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
322
322
|
declare const PrimitiveHelpActionsMenuItemIcon: ForwardRefExoticComponent< PolymorphicProps & Omit<{
|
|
@@ -327,7 +327,7 @@ declare const PrimitiveHelpActionsMenuItemIcon: ForwardRefExoticComponent< Polym
|
|
|
327
327
|
className?: string;
|
|
328
328
|
}, "_id">>>;
|
|
329
329
|
export interface EmbeddedChatPrimitiveHelpActionsMenuItemIconProps extends Omit<ComponentPropsWithRef<typeof PrimitiveHelpActionsMenuItemIcon>, 'action' | 'iconSettings'> {
|
|
330
|
-
action:
|
|
330
|
+
action: GetHelpOption;
|
|
331
331
|
}
|
|
332
332
|
export declare const EmbeddedChatPrimitiveHelpActionsMenuItemIcon: (props: EmbeddedChatPrimitiveHelpActionsMenuItemIconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
333
333
|
declare const PrimitiveFeedbackModal: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogProps, "_id"> & Partial<Pick<DialogPrimitive.DialogProps, "_id">>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ComponentPropsWithoutRef, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes, MemoExoticComponent, ClassAttributes, ButtonHTMLAttributes, FormHTMLAttributes, LabelHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, SVGProps, AnchorHTMLAttributes } from 'react';
|
|
2
2
|
import { TextareaAutosizeProps } from 'react-textarea-autosize';
|
|
3
3
|
import { TransformedSourceItem } from '../providers/source-item-provider';
|
|
4
|
-
import {
|
|
4
|
+
import { GetHelpOption, MessageAttachment, ToolCallAction, Workflow, WorkflowInputTypes, FormField, FeedbackItemType, Message, MessageAction, InkeepCustomIcon, UrlQueryParam } from '@inkeep/cxkit-types';
|
|
5
5
|
import { ChatContextValue, ChatProvider } from './embedded-chat/chat-provider';
|
|
6
6
|
import { MarkdownComponentID } from '../utils/component-ids';
|
|
7
7
|
import { PolymorphicProps } from './factory';
|
|
@@ -298,8 +298,8 @@ export interface EmbeddedChatPrimitiveChatActionFeedbackProps extends ComponentP
|
|
|
298
298
|
}
|
|
299
299
|
export declare const EmbeddedChatPrimitiveChatActionFeedback: (props: EmbeddedChatPrimitiveChatActionFeedbackProps) => import("react/jsx-runtime").JSX.Element;
|
|
300
300
|
interface HelpCallToActions {
|
|
301
|
-
pinned:
|
|
302
|
-
unpinned:
|
|
301
|
+
pinned: GetHelpOption[];
|
|
302
|
+
unpinned: GetHelpOption[];
|
|
303
303
|
}
|
|
304
304
|
declare const PrimitiveHelpActions: ForwardRefExoticComponent< PolymorphicProps & Omit<PopoverPrimitive.PopoverProps, "_id"> & Partial<Pick<PopoverPrimitive.PopoverProps, "_id">>>;
|
|
305
305
|
export interface EmbeddedChatPrimitiveHelpActionsProps extends Omit<ComponentPropsWithRef<typeof PrimitiveHelpActions>, 'children'> {
|
|
@@ -308,7 +308,7 @@ export interface EmbeddedChatPrimitiveHelpActionsProps extends Omit<ComponentPro
|
|
|
308
308
|
export declare const EmbeddedChatPrimitiveHelpActions: (props: EmbeddedChatPrimitiveHelpActionsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
309
309
|
declare const PrimitiveChatHelpAction: ForwardRefExoticComponent< PolymorphicProps & Omit<EmbeddedChatPrimitiveChatActionProps, "_id"> & Partial<Pick<EmbeddedChatPrimitiveChatActionProps, "_id">>>;
|
|
310
310
|
export interface EmbeddedChatPrimitiveChatHelpActionProps extends Omit<ComponentPropsWithRef<typeof PrimitiveChatHelpAction>, 'action'> {
|
|
311
|
-
action:
|
|
311
|
+
action: GetHelpOption;
|
|
312
312
|
}
|
|
313
313
|
export declare const EmbeddedChatPrimitiveChatHelpAction: (props: EmbeddedChatPrimitiveChatHelpActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
314
314
|
export declare const EmbeddedChatPrimitiveHelpActionsTrigger: MemoExoticComponent<(props: Omit<EmbeddedChatPrimitiveChatActionProps, "action">) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -316,7 +316,7 @@ declare const PrimitiveHelpActionsMenu: ForwardRefExoticComponent< PolymorphicPr
|
|
|
316
316
|
export declare const EmbeddedChatPrimitiveHelpActionsMenu: (props: ComponentPropsWithRef<typeof PrimitiveHelpActionsMenu>) => import("react/jsx-runtime").JSX.Element;
|
|
317
317
|
export declare const EmbeddedChatPrimitiveHelpActionsMenuArrow: ForwardRefExoticComponent< PolymorphicProps & Omit<PopoverPrimitive.PopoverArrowProps & RefAttributes<SVGSVGElement>, "_id"> & Partial<Pick<PopoverPrimitive.PopoverArrowProps & RefAttributes<SVGSVGElement>, "_id">>>;
|
|
318
318
|
export interface EmbeddedChatPrimitiveHelpActionsMenuItemProps extends ComponentPropsWithRef<'button'> {
|
|
319
|
-
action:
|
|
319
|
+
action: GetHelpOption;
|
|
320
320
|
}
|
|
321
321
|
export declare const EmbeddedChatPrimitiveHelpActionsMenuItem: (props: EmbeddedChatPrimitiveHelpActionsMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
322
322
|
declare const PrimitiveHelpActionsMenuItemIcon: ForwardRefExoticComponent< PolymorphicProps & Omit<{
|
|
@@ -327,7 +327,7 @@ declare const PrimitiveHelpActionsMenuItemIcon: ForwardRefExoticComponent< Polym
|
|
|
327
327
|
className?: string;
|
|
328
328
|
}, "_id">>>;
|
|
329
329
|
export interface EmbeddedChatPrimitiveHelpActionsMenuItemIconProps extends Omit<ComponentPropsWithRef<typeof PrimitiveHelpActionsMenuItemIcon>, 'action' | 'iconSettings'> {
|
|
330
|
-
action:
|
|
330
|
+
action: GetHelpOption;
|
|
331
331
|
}
|
|
332
332
|
export declare const EmbeddedChatPrimitiveHelpActionsMenuItemIcon: (props: EmbeddedChatPrimitiveHelpActionsMenuItemIconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
333
333
|
declare const PrimitiveFeedbackModal: ForwardRefExoticComponent< PolymorphicProps & Omit<DialogPrimitive.DialogProps, "_id"> & Partial<Pick<DialogPrimitive.DialogProps, "_id">>>;
|