diff --git a/dist/components/Bot.d.ts b/dist/components/Bot.d.ts index 95a35bde9..084a54090 100644 --- a/dist/components/Bot.d.ts +++ b/dist/components/Bot.d.ts @@ -83,6 +83,10 @@ export type MessageType = { }; type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void; export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>; +export type MultiSessionConfig = { + enabled: boolean; + maxSessions?: number; +}; export type BotProps = { chatflowid: string; apiHost?: string; @@ -124,6 +128,7 @@ export type BotProps = { closeBot?: () => void; hasCustomHeader?: boolean; dialogContainer?: HTMLElement; + multiSession?: MultiSessionConfig; }; export type LeadsConfig = { status: boolean; diff --git a/dist/components/Bot.d.ts.map b/dist/components/Bot.d.ts.map index 08434ea73..d37404b76 100644 --- a/dist/components/Bot.d.ts.map +++ b/dist/components/Bot.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,kBAAkB,EAKnB,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EACL,eAAe,EACf,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAKjC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAiBnF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,CAAC,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,qBAAqB,EAA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C,EAAE,MAAM,CAAC;CACzB,CAAC;AA+QF,eAAO,MAAM,GAAG,aAAc,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mCAolF1D,CAAC"} \ No newline at end of file diff --git a/dist/components/avatars/Avatar.d.ts.map b/dist/components/avatars/Avatar.d.ts.map index 0f77b3dec..812417534 100644 --- a/dist/components/avatars/Avatar.d.ts.map +++ b/dist/components/avatars/Avatar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/Avatar.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,UAAW;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,mCAkB1D,CAAC"} \ No newline at end of file +{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/Avatar.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,UAAW;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,mCAmB1D,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/BotBubble.d.ts b/dist/components/bubbles/BotBubble.d.ts index 043984598..61137001d 100644 --- a/dist/components/bubbles/BotBubble.d.ts +++ b/dist/components/bubbles/BotBubble.d.ts @@ -33,6 +33,7 @@ type Props = { handleTTSStop?: (messageId: string) => void; hasCustomHeader?: boolean; dialogContainer?: HTMLElement; + bare?: boolean; }; export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element; export {}; diff --git a/dist/components/bubbles/BotBubble.d.ts.map b/dist/components/bubbles/BotBubble.d.ts.map index 0a83172ea..ac7a5ec63 100644 --- a/dist/components/bubbles/BotBubble.d.ts.map +++ b/dist/components/bubbles/BotBubble.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAiE,MAAM,4BAA4B,C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Bubble.d.ts index 228314a6d..055b2e3c4 100644 --- a/dist/components/bubbles/LoadingBubble.d.ts +++ b/dist/components/bubbles/LoadingBubble.d.ts @@ -1,2 +1,4 @@ -export declare const LoadingBubble: () => import("solid-js").JSX.Element; +export declare const LoadingBubble: (props: { + backgroundColor?: string; +}) => import("solid-js").JSX.Element; //# sourceMappingURL=LoadingBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/LoadingBubble.d.ts.map b/dist/components/bubbles/LoadingBubble.d.ts.map index 105246a54..477fe942e 100644 --- a/dist/components/bubbles/LoadingBubble.d.ts.map +++ b/dist/components/bubbles/LoadingBubble.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCAMzB,CAAC"} \ No newline at end of file +{"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,UAAW;IAAE,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,mCAUhE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/LeadCaptureButtons.d.ts.map b/dist/components/buttons/LeadCaptureButtons.d.ts.map index d80b5bbc0..ce8f43cd2 100644 --- a/dist/components/buttons/LeadCaptureButtons.d.ts.map +++ b/dist/components/buttons/LeadCaptureButtons.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"LeadCaptureButtons.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/LeadCaptureButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAGhD,eAAO,MAAM,uBAAuB,UAAW,sBAAsB,gBAepE,CAAC;AAWF,eAAO,MAAM,cAAc,UAAW,sBAAsB,gBAc3D,CAAC"} \ No newline at end of file +{"version":3,"file":"LeadCaptureButtons.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/LeadCaptureButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAGrC,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAGhD,eAAO,MAAM,uBAAuB,UAAW,sBAAsB,gBAepE,CAAC;AAWF,eAAO,MAAM,cAAc,UAAW,sBAAsB,gBAc3D,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/SendButton.d.ts b/dist/components/buttons/SendButton.d.ts index 1ae608e5a..7b3db5605 100644 --- a/dist/components/buttons/SendButton.d.ts +++ b/dist/components/buttons/SendButton.d.ts @@ -4,6 +4,7 @@ type SendButtonProps = { isDisabled?: boolean; isLoading?: boolean; disableIcon?: boolean; + useUpArrow?: boolean; } & JSX.ButtonHTMLAttributes; export declare const SendButton: (props: SendButtonProps) => JSX.Element; export declare const DeleteButton: (props: SendButtonProps) => JSX.Element; diff --git a/dist/components/buttons/SendButton.d.ts.map b/dist/components/buttons/SendButton.d.ts.map index 935ceaa06..ae1c15259 100644 --- a/dist/components/buttons/SendButton.d.ts.map +++ b/dist/components/buttons/SendButton.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SendButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU,UAAW,eAAe,gBAiBhD,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,eAAe,gBAsBlD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file +{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SendButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU,UAAW,eAAe,gBAsBhD,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,eAAe,gBAsBlD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/UpArrowIcon.d.ts b/dist/components/icons/UpArrowIcon.d.ts new file mode 100644 index 000000000..fa7d269ac --- /dev/null +++ b/dist/components/icons/UpArrowIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const UpArrowIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=UpArrowIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/UpArrowIcon.d.ts.map b/dist/components/icons/UpArrowIcon.d.ts.map new file mode 100644 index 000000000..3638d9e1c --- /dev/null +++ b/dist/components/icons/UpArrowIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UpArrowIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/UpArrowIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,WAAW,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBrE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/index.d.ts b/dist/components/icons/index.d.ts index 6144cc51a..1272f6bd2 100644 --- a/dist/components/icons/index.d.ts +++ b/dist/components/icons/index.d.ts @@ -6,6 +6,7 @@ export * from './CircleDotIcon'; export * from './DeleteIcon'; export * from './RecordIcon'; export * from './SendIcon'; +export * from './UpArrowIcon'; export * from './TrashIcon'; export * from './XIcon'; export * from './TickIcon'; diff --git a/dist/components/icons/index.d.ts.map b/dist/components/icons/index.d.ts.map index 9e28ff41a..7ac7d728c 100644 --- a/dist/components/icons/index.d.ts.map +++ b/dist/components/icons/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/components/index.d.ts b/dist/components/index.d.ts index 8e2814056..2880a4b5e 100644 --- a/dist/components/index.d.ts +++ b/dist/components/index.d.ts @@ -1,3 +1,4 @@ export * from './buttons/SendButton'; export * from './TypingBubble'; +export * from './sessions/ChatRoot'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/index.d.ts.map b/dist/components/index.d.ts.map index 87bc3a508..9a0ece33b 100644 --- a/dist/components/index.d.ts.map +++ b/dist/components/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/ShortTextInput.d.ts b/dist/components/inputs/textInput/components/ShortTextInput.d.ts index 28543c6ef..1cba72492 100644 --- a/dist/components/inputs/textInput/components/ShortTextInput.d.ts +++ b/dist/components/inputs/textInput/components/ShortTextInput.d.ts @@ -4,6 +4,7 @@ type ShortTextInputProps = { onInput: (value: string) => void; fontSize?: number; disabled?: boolean; + compact?: boolean; } & Omit, 'onInput'>; export declare const ShortTextInput: (props: ShortTextInputProps) => JSX.Element; export {}; diff --git a/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map b/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map index ee2430171..14bf28898 100644 --- a/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +++ b/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ShortTextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/ShortTextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,SAAS,CAAC;IACxD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,SAAS,CAAC,CAAC;AAIrE,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBA4CxD,CAAC"} \ No newline at end of file +{"version":3,"file":"ShortTextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/ShortTextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,SAAS,CAAC;IACxD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,SAAS,CAAC,CAAC;AAKrE,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBA+CxD,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/TextInput.d.ts b/dist/components/inputs/textInput/components/TextInput.d.ts index 1db356031..8dd44f63d 100644 --- a/dist/components/inputs/textInput/components/TextInput.d.ts +++ b/dist/components/inputs/textInput/components/TextInput.d.ts @@ -5,6 +5,7 @@ type TextInputProps = { backgroundColor?: string; textColor?: string; sendButtonColor?: string; + sendButtonBackgroundColor?: string; inputValue: string; fontSize?: number; disabled?: boolean; @@ -27,6 +28,7 @@ type TextInputProps = { showAbortButton?: boolean; isMessageStopping?: boolean; onAbort?: () => void; + modernLayout?: boolean; }; export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element; export {}; diff --git a/dist/components/inputs/textInput/components/TextInput.d.ts.map b/dist/components/inputs/textInput/components/TextInput.d.ts.map index c791133cd..234b202ce 100644 --- a/dist/components/inputs/textInput/components/TextInput.d.ts.map +++ b/dist/components/inputs/textInput/components/TextInput.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/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,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,cAAc,mCAoP9C,CAAC"} \ No newline at end of file +{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/TextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6C,MAAM,EAAE,MAAM,UAAU,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAM5D,KAAK,cAAc,GAAG;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC/B,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,gBAAgB,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAGrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,cAAc,mCAuV9C,CAAC"} \ No newline at end of file diff --git a/dist/components/sessions/CapWarningToast.d.ts b/dist/components/sessions/CapWarningToast.d.ts new file mode 100644 index 000000000..5630db9fc --- /dev/null +++ b/dist/components/sessions/CapWarningToast.d.ts @@ -0,0 +1,8 @@ +type Props = { + visible: boolean; + text: string; + onDismiss: () => void; +}; +export declare const CapWarningToast: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=CapWarningToast.d.ts.map \ No newline at end of file diff --git a/dist/components/sessions/CapWarningToast.d.ts.map b/dist/components/sessions/CapWarningToast.d.ts.map new file mode 100644 index 000000000..23ffbc4e4 --- /dev/null +++ b/dist/components/sessions/CapWarningToast.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CapWarningToast.d.ts","sourceRoot":"","sources":["../../../src/components/sessions/CapWarningToast.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,KAAK,mCAoC3C,CAAC"} \ No newline at end of file diff --git a/dist/components/sessions/ChatRoot.d.ts b/dist/components/sessions/ChatRoot.d.ts new file mode 100644 index 000000000..d3605e8c2 --- /dev/null +++ b/dist/components/sessions/ChatRoot.d.ts @@ -0,0 +1,8 @@ +import { type BotProps } from '@/components/Bot'; +type ChatRootProps = BotProps & { + class?: string; + theme?: unknown; +}; +export declare const ChatRoot: (props: ChatRootProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=ChatRoot.d.ts.map \ No newline at end of file diff --git a/dist/components/sessions/ChatRoot.d.ts.map b/dist/components/sessions/ChatRoot.d.ts.map new file mode 100644 index 000000000..1169b72f3 --- /dev/null +++ b/dist/components/sessions/ChatRoot.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChatRoot.d.ts","sourceRoot":"","sources":["../../../src/components/sessions/ChatRoot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAOtD,KAAK,aAAa,GAAG,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEpE,eAAO,MAAM,QAAQ,UAAW,aAAa,mCAQ5C,CAAC"} \ No newline at end of file diff --git a/dist/components/sessions/SessionListItem.d.ts b/dist/components/sessions/SessionListItem.d.ts new file mode 100644 index 000000000..0d9b54395 --- /dev/null +++ b/dist/components/sessions/SessionListItem.d.ts @@ -0,0 +1,28 @@ +import type { SessionV2 } from '@/state/sessionStorage'; +type Theme = { + textColor: string; + activeBackgroundColor: string; + activeTextColor: string; + hoverBackgroundColor: string; + accentColor: string; +}; +type Props = { + session: SessionV2; + active: boolean; + editing: boolean; + editingDraft: string; + confirmingDelete: boolean; + theme: Theme; + onSwitch: () => void; + onStartEdit: () => void; + onChangeDraft: (next: string) => void; + onCommitEdit: () => void; + onCancelEdit: () => void; + onStartDelete: () => void; + onCancelDelete: () => void; + onConfirmDelete: () => void; + onToggleStar?: () => void; +}; +export declare const SessionListItem: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=SessionListItem.d.ts.map \ No newline at end of file diff --git a/dist/components/sessions/SessionListItem.d.ts.map b/dist/components/sessions/SessionListItem.d.ts.map new file mode 100644 index 000000000..4a7f41f0d --- /dev/null +++ b/dist/components/sessions/SessionListItem.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SessionListItem.d.ts","sourceRoot":"","sources":["../../../src/components/sessions/SessionListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,KAAK,mCAmT3C,CAAC"} \ No newline at end of file diff --git a/dist/components/sessions/SessionPanel.d.ts b/dist/components/sessions/SessionPanel.d.ts new file mode 100644 index 000000000..44163a7f8 --- /dev/null +++ b/dist/components/sessions/SessionPanel.d.ts @@ -0,0 +1,32 @@ +import { type JSX } from 'solid-js'; +import type { SessionStore } from '@/state/sessionStore'; +type SessionPanelTheme = { + width?: string | number; + collapsedWidth?: string | number; + backgroundColor?: string; + textColor?: string; + activeBackgroundColor?: string; + activeTextColor?: string; + hoverBackgroundColor?: string; + borderColor?: string; + newChatButtonColor?: string; + newChatButtonTextColor?: string; + newChatLabel?: string; + emptyStateText?: string; + capWarningText?: string; + quotaPanicText?: string; +}; +type Props = { + store: SessionStore; + isFullPage: boolean; + isDrawer: boolean; + drawerOpen?: () => boolean; + onDrawerClose?: () => void; + panelTheme?: SessionPanelTheme; + chatWindowBackground?: string; + chatWindowText?: string; + chatBrandColor: string; +}; +export declare const SessionPanel: (props: Props) => JSX.Element; +export {}; +//# sourceMappingURL=SessionPanel.d.ts.map \ No newline at end of file diff --git a/dist/components/sessions/SessionPanel.d.ts.map b/dist/components/sessions/SessionPanel.d.ts.map new file mode 100644 index 000000000..dc84b9fb7 --- /dev/null +++ b/dist/components/sessions/SessionPanel.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SessionPanel.d.ts","sourceRoot":"","sources":["../../../src/components/sessions/SessionPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6D,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKzD,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,YAAY,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAUF,eAAO,MAAM,YAAY,UAAW,KAAK,gBAwZxC,CAAC"} \ No newline at end of file diff --git a/dist/components/sessions/SessionTitleHeader.d.ts b/dist/components/sessions/SessionTitleHeader.d.ts new file mode 100644 index 000000000..86019a99b --- /dev/null +++ b/dist/components/sessions/SessionTitleHeader.d.ts @@ -0,0 +1,8 @@ +type Props = { + isFullPage: boolean; + textColor?: string; + bubbleBackground?: string; +}; +export declare const SessionTitleHeader: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=SessionTitleHeader.d.ts.map \ No newline at end of file diff --git a/dist/components/sessions/SessionTitleHeader.d.ts.map b/dist/components/sessions/SessionTitleHeader.d.ts.map new file mode 100644 index 000000000..1de0fec49 --- /dev/null +++ b/dist/components/sessions/SessionTitleHeader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SessionTitleHeader.d.ts","sourceRoot":"","sources":["../../../src/components/sessions/SessionTitleHeader.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,KAAK,mCA+S9C,CAAC"} \ No newline at end of file diff --git a/dist/components/sessions/latestUserAnchor.d.ts b/dist/components/sessions/latestUserAnchor.d.ts new file mode 100644 index 000000000..5b89ceb4e --- /dev/null +++ b/dist/components/sessions/latestUserAnchor.d.ts @@ -0,0 +1,16 @@ +export type LatestUserAnchorDeps = { + getChatContainer: () => HTMLDivElement | undefined; + getMessageList: () => HTMLDivElement | undefined; + programmaticScrollGuard: (fn: () => void) => void; + onAnchored?: () => void; +}; +export type LatestUserAnchor = ReturnType; +export declare const createLatestUserAnchor: (deps: LatestUserAnchorDeps) => { + activate: () => void; + deactivate: () => void; + dispose: () => void; + isActive: () => boolean; + keepAtTop: (behavior?: ScrollBehavior) => void; + bottomSpacerHeight: import("solid-js").Accessor; +}; +//# sourceMappingURL=latestUserAnchor.d.ts.map \ No newline at end of file diff --git a/dist/components/sessions/latestUserAnchor.d.ts.map b/dist/components/sessions/latestUserAnchor.d.ts.map new file mode 100644 index 000000000..3df062cdb --- /dev/null +++ b/dist/components/sessions/latestUserAnchor.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"latestUserAnchor.d.ts","sourceRoot":"","sources":["../../../src/components/sessions/latestUserAnchor.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,oBAAoB,GAAG;IACjC,gBAAgB,EAAE,MAAM,cAAc,GAAG,SAAS,CAAC;IACnD,cAAc,EAAE,MAAM,cAAc,GAAG,SAAS,CAAC;IACjD,uBAAuB,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAElD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAIzE,eAAO,MAAM,sBAAsB,SAAU,oBAAoB;;;;;2BA0FlC,cAAc;;CAmC5C,CAAC"} \ No newline at end of file diff --git a/dist/components/sessions/sessionContext.d.ts b/dist/components/sessions/sessionContext.d.ts new file mode 100644 index 000000000..5da743559 --- /dev/null +++ b/dist/components/sessions/sessionContext.d.ts @@ -0,0 +1,50 @@ +import type { SessionStore } from '@/state/sessionStore'; +export declare const SessionContext: import("solid-js").Context<{ + chatflowid: string; + maxSessions: number; + sessions: import("solid-js").Accessor; + starredSessions: import("solid-js").Accessor; + recentSessions: import("solid-js").Accessor; + activeChatId: import("solid-js").Accessor; + activeSession: import("solid-js").Accessor; + activeMessages: import("solid-js").Accessor; + lead: import("solid-js").Accessor; + capWarning: import("solid-js").Accessor; + quotaPanic: import("solid-js").Accessor; + dispose: () => void; + actions: { + newChat: () => string; + switchSession: (chatId: string) => void; + upsertMessage: (msg: import("../Bot").MessageType, options?: { + replaceId?: string | undefined; + } | undefined) => void; + upsertMessageInSession: (chatId: string, msg: import("../Bot").MessageType, options?: { + replaceId?: string | undefined; + } | undefined) => void; + removeMessageById: (messageId: string) => void; + removeMessageByIdInSession: (chatId: string, messageId: string) => void; + replaceActiveMessages: (next: import("../Bot").MessageType[]) => void; + getSessionMessages: (chatId: string) => import("../Bot").MessageType[]; + renameSession: (chatId: string, rawTitle: string) => void; + toggleStarred: (chatId: string) => void; + deleteSession: (chatId: string) => void; + setLead: (lead: import("../../state/sessionStorage").LeadCaptureData | undefined) => void; + flushPending: () => void; + setOnSessionChanged: (cb: ((detail: { + chatId: string; + title: string; + }) => void) | null) => void; + setStreamingChatIdGetter: (fn: (() => string | undefined) | null) => void; + dismissCapWarning: () => false; + dismissQuotaPanic: () => false; + }; + _internal: { + index: import("solid-js").Accessor; + setIndex: import("solid-js").Setter; + messageCache: Map; + setActiveMessages: import("solid-js").Setter; + persistIndex: (next: import("../../state/sessionStorage").ChatflowIndexV2) => void; + }; +} | undefined>; +export declare const useSessionStore: () => SessionStore | undefined; +//# sourceMappingURL=sessionContext.d.ts.map \ No newline at end of file diff --git a/dist/components/sessions/sessionContext.d.ts.map b/dist/components/sessions/sessionContext.d.ts.map new file mode 100644 index 000000000..93503974a --- /dev/null +++ b/dist/components/sessions/sessionContext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"sessionContext.d.ts","sourceRoot":"","sources":["../../../src/components/sessions/sessionContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA4C,CAAC;AAExE,eAAO,MAAM,eAAe,QAAO,YAAY,GAAG,SAAuC,CAAC"} \ No newline at end of file diff --git a/dist/constants.d.ts.map b/dist/constants.d.ts.map index 41d60f132..5861abea6 100644 --- a/dist/constants.d.ts.map +++ b/dist/constants.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,eAAe,EAAE,WAQ7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,KAAK,CAAC"} \ No newline at end of file +{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,eAAe,EAAE,WAS7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,KAAK,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/Bubble.d.ts b/dist/features/bubble/components/Bubble.d.ts index 2828d64ee..3da4f12ea 100644 --- a/dist/features/bubble/components/Bubble.d.ts +++ b/dist/features/bubble/components/Bubble.d.ts @@ -1,5 +1,5 @@ import { BubbleParams } from '../types'; -import { BotProps } from '../../../components/Bot'; +import type { BotProps } from '../../../components/Bot'; export type BubbleProps = BotProps & BubbleParams; export declare const Bubble: (props: BubbleProps) => import("solid-js").JSX.Element; //# sourceMappingURL=Bubble.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/Bubble.d.ts.map b/dist/features/bubble/components/Bubble.d.ts.map index 568e924e4..72888966c 100644 --- a/dist/features/bubble/components/Bubble.d.ts.map +++ b/dist/features/bubble/components/Bubble.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAQxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,mCA8MxC,CAAC"} \ No newline at end of file +{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AASxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,mCAgNxC,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/types.d.ts b/dist/features/bubble/types.d.ts index 03ae1443c..19d37b88a 100644 --- a/dist/features/bubble/types.d.ts +++ b/dist/features/bubble/types.d.ts @@ -76,6 +76,22 @@ export type ChatWindowTheme = { dateTimeToggle?: DateTimeToggleTheme; renderHTML?: boolean; headerHtml?: string; + sessionPanel?: { + width?: string | number; + collapsedWidth?: string | number; + backgroundColor?: string; + textColor?: string; + activeBackgroundColor?: string; + activeTextColor?: string; + hoverBackgroundColor?: string; + borderColor?: string; + newChatButtonColor?: string; + newChatButtonTextColor?: string; + newChatLabel?: string; + emptyStateText?: string; + capWarningText?: string; + quotaPanicText?: string; + }; }; export type ButtonTheme = { size?: 'small' | 'medium' | 'large' | number; diff --git a/dist/features/bubble/types.d.ts.map b/dist/features/bubble/types.d.ts.map index 87f94bbe3..3a38696d7 100644 --- a/dist/features/bubble/types.d.ts.map +++ b/dist/features/bubble/types.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,CAAC,E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AAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"} \ No newline at end of file +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,C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M,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"} \ No newline at end of file diff --git a/dist/features/full/components/Full.d.ts b/dist/features/full/components/Full.d.ts index 15e8bc3a8..986999995 100644 --- a/dist/features/full/components/Full.d.ts +++ b/dist/features/full/components/Full.d.ts @@ -1,4 +1,4 @@ -import { BotProps } from '@/components/Bot'; +import type { BotProps } from '@/components/Bot'; import { BubbleParams } from '@/features/bubble/types'; export type FullProps = BotProps & BubbleParams; export declare const Full: (props: FullProps, { element }: { diff --git a/dist/features/full/components/Full.d.ts.map b/dist/features/full/components/Full.d.ts.map index 2eb8f121d..36330e387 100644 --- a/dist/features/full/components/Full.d.ts.map +++ b/dist/features/full/components/Full.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Full.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/Full.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAOvD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,IAAI,UAAW,SAAS;aAA0B,WAAW;oCAoGzE,CAAC"} \ No newline at end of file +{"version":3,"file":"Full.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/Full.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAOvD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,IAAI,UAAW,SAAS;aAA0B,WAAW;oCAsGzE,CAAC"} \ No newline at end of file diff --git a/dist/features/full/types.d.ts b/dist/features/full/types.d.ts new file mode 100644 index 000000000..660fd6c06 --- /dev/null +++ b/dist/features/full/types.d.ts @@ -0,0 +1,109 @@ +export type FullParams = { + theme?: FullTheme; +}; +export type FullTheme = { + chatWindow?: ChatWindowTheme; + disclaimer?: DisclaimerPopUpTheme; + customCSS?: string; + form?: FormTheme; +}; +export type FormTheme = { + backgroundColor?: string; + textColor?: string; +}; +export type TextInputTheme = { + backgroundColor?: string; + textColor?: string; + placeholder?: string; + sendButtonColor?: string; + maxChars?: number; + maxCharsWarningMessage?: string; + autoFocus?: boolean; + sendMessageSound?: boolean; + sendSoundLocation?: string; + receiveMessageSound?: boolean; + receiveSoundLocation?: string; + enableInputHistory?: boolean; +}; +export type UserMessageTheme = { + backgroundColor?: string; + textColor?: string; + showAvatar?: boolean; + avatarSrc?: string; +}; +export type BotMessageTheme = { + backgroundColor?: string; + textColor?: string; + showAvatar?: boolean; + avatarSrc?: string; +}; +export type FooterTheme = { + showFooter?: boolean; + textColor?: string; + text?: string; + company?: string; + companyLink?: string; +}; +export type FeedbackTheme = { + color?: string; +}; +export type ChatWindowTheme = { + showTitle?: boolean; + showAgentMessages?: boolean; + title?: string; + titleAvatarSrc?: string; + titleTextColor?: string; + titleBackgroundColor?: string; + welcomeMessage?: string; + errorMessage?: string; + backgroundColor?: string; + backgroundImage?: string; + height?: number | string; + width?: number | string; + fontSize?: number; + userMessage?: UserMessageTheme; + botMessage?: BotMessageTheme; + textInput?: TextInputTheme; + feedback?: FeedbackTheme; + footer?: FooterTheme; + sourceDocsTitle?: string; + poweredByTextColor?: string; + starterPrompts?: string[]; + starterPromptFontSize?: number; + clearChatOnReload?: boolean; + dateTimeToggle?: DateTimeToggleTheme; + renderHTML?: boolean; + headerHtml?: string; + sessionPanel?: { + width?: string | number; + collapsedWidth?: string | number; + backgroundColor?: string; + textColor?: string; + activeBackgroundColor?: string; + activeTextColor?: string; + hoverBackgroundColor?: string; + borderColor?: string; + newChatButtonColor?: string; + newChatButtonTextColor?: string; + newChatLabel?: string; + emptyStateText?: string; + capWarningText?: string; + }; +}; +export type DisclaimerPopUpTheme = { + title?: string; + message?: string; + textColor?: string; + buttonColor?: string; + buttonTextColor?: string; + buttonText?: string; + blurredBackgroundColor?: string; + backgroundColor?: string; + denyButtonBgColor?: string; + denyButtonText?: string; +}; +export type DateTimeToggleTheme = { + date?: boolean; + time?: boolean; +}; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/features/full/types.d.ts.map b/dist/features/full/types.d.ts.map new file mode 100644 index 000000000..e0fc9a8d1 --- /dev/null +++ b/dist/features/full/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/full/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mB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AC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"} \ No newline at end of file diff --git a/dist/state/sessionMigration.d.ts b/dist/state/sessionMigration.d.ts new file mode 100644 index 000000000..4524a625e --- /dev/null +++ b/dist/state/sessionMigration.d.ts @@ -0,0 +1,12 @@ +import { type ChatflowIndexV2 } from './sessionStorage'; +/** + * Read whatever is at localStorage[chatflowid_EXTERNAL] and return a v2 index. + * - v2 already → returned as-is. + * - v1 shape → wrapped into a single session, written back to storage, returned. + * - unknown shape → log warning, return a fresh v2 (does not clobber). + * - missing → fresh v2 with one empty session. + * + * Pass `newChatId` so callers can plumb in their `customerId+uuid` prefix. + */ +export declare const loadOrMigrate: (chatflowid: string, newChatId: () => string) => ChatflowIndexV2; +//# sourceMappingURL=sessionMigration.d.ts.map \ No newline at end of file diff --git a/dist/state/sessionMigration.d.ts.map b/dist/state/sessionMigration.d.ts.map new file mode 100644 index 000000000..f05010676 --- /dev/null +++ b/dist/state/sessionMigration.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"sessionMigration.d.ts","sourceRoot":"","sources":["../../src/state/sessionMigration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAmD,MAAM,kBAAkB,CAAC;AAkBzG;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,eAAgB,MAAM,aAAa,MAAM,MAAM,KAAG,eAgE3E,CAAC"} \ No newline at end of file diff --git a/dist/state/sessionStorage.d.ts b/dist/state/sessionStorage.d.ts new file mode 100644 index 000000000..64c32e63a --- /dev/null +++ b/dist/state/sessionStorage.d.ts @@ -0,0 +1,44 @@ +import type { MessageType } from '@/components/Bot'; +export type LeadCaptureData = Record; +export type SessionV2 = { + chatId: string; + title: string; + createdAt: number; + updatedAt: number; + starred?: boolean; +}; +export type ChatflowIndexV2 = { + version: 2; + activeChatId: string; + sessions: SessionV2[]; + lead?: LeadCaptureData; +}; +export declare const readIndex: (chatflowid: string) => ChatflowIndexV2 | null; +export declare const readMessages: (chatflowid: string, chatId: string) => MessageType[]; +export declare const readPanelCollapsed: (chatflowid: string) => boolean; +export declare const readCapWarned: (chatflowid: string) => boolean; +export declare const _internalKeys: { + indexKey: (chatflowid: string) => string; + msgKey: (chatflowid: string, chatId: string) => string; + capWarnedKey: (chatflowid: string) => string; + panelCollapsedKey: (chatflowid: string) => string; +}; +export declare class StorageQuotaError extends Error { + constructor(); +} +export declare const isQuotaError: (e: unknown) => boolean; +export declare const writeIndex: (chatflowid: string, index: ChatflowIndexV2) => void; +export declare const writeMessages: (chatflowid: string, chatId: string, messages: MessageType[]) => void; +export declare const removeMessages: (chatflowid: string, chatId: string) => void; +export declare const writePanelCollapsed: (chatflowid: string, collapsed: boolean) => void; +export declare const writeCapWarned: (chatflowid: string) => void; +/** + * Reconcile MsgKey orphans against an Index. + * - Returns chatIds whose MsgKey was deleted (orphans, not in index). + * - Returns chatIds in index that have no MsgKey (caller should seed empty). + */ +export declare const reconcileOrphans: (chatflowid: string, index: ChatflowIndexV2) => { + deletedOrphans: string[]; + missingMsgKeys: string[]; +}; +//# sourceMappingURL=sessionStorage.d.ts.map \ No newline at end of file diff --git a/dist/state/sessionStorage.d.ts.map b/dist/state/sessionStorage.d.ts.map new file mode 100644 index 000000000..d02c2f783 --- /dev/null +++ b/dist/state/sessionStorage.d.ts.map @@ -0,0 +1 @@ +{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AAU,MAAM,KAAG,IAEnE,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAgB,MAAM,aAAa,OAAO,KAAG,IAE5E,CAAC;AAEF,eAAO,MAAM,cAAc,eAAgB,MAAM,KAAG,IAEnD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,eAAgB,MAAM,SAAS,eAAe;oBAAqB,MAAM,EAAE;oBAAkB,MAAM,EAAE;CA0BjI,CAAC"} \ No newline at end of file diff --git a/dist/state/sessionStore.d.ts b/dist/state/sessionStore.d.ts new file mode 100644 index 000000000..23c07b647 --- /dev/null +++ b/dist/state/sessionStore.d.ts @@ -0,0 +1,56 @@ +import type { MessageType } from '@/components/Bot'; +import { type ChatflowIndexV2, type SessionV2, type LeadCaptureData } from './sessionStorage'; +export type SessionStoreOptions = { + chatflowid: string; + newChatId: () => string; + maxSessions?: number; +}; +export type SessionStore = ReturnType; +export declare const createSessionStore: (opts: SessionStoreOptions) => { + chatflowid: string; + maxSessions: number; + sessions: import("solid-js").Accessor; + starredSessions: import("solid-js").Accessor; + recentSessions: import("solid-js").Accessor; + activeChatId: import("solid-js").Accessor; + activeSession: import("solid-js").Accessor; + activeMessages: import("solid-js").Accessor; + lead: import("solid-js").Accessor; + capWarning: import("solid-js").Accessor; + quotaPanic: import("solid-js").Accessor; + dispose: () => void; + actions: { + newChat: () => string; + switchSession: (chatId: string) => void; + upsertMessage: (msg: MessageType, options?: { + replaceId?: string; + }) => void; + upsertMessageInSession: (chatId: string, msg: MessageType, options?: { + replaceId?: string; + }) => void; + removeMessageById: (messageId: string) => void; + removeMessageByIdInSession: (chatId: string, messageId: string) => void; + replaceActiveMessages: (next: MessageType[]) => void; + getSessionMessages: (chatId: string) => MessageType[]; + renameSession: (chatId: string, rawTitle: string) => void; + toggleStarred: (chatId: string) => void; + deleteSession: (chatId: string) => void; + setLead: (lead: LeadCaptureData | undefined) => void; + flushPending: () => void; + setOnSessionChanged: (cb: ((detail: { + chatId: string; + title: string; + }) => void) | null) => void; + setStreamingChatIdGetter: (fn: (() => string | undefined) | null) => void; + dismissCapWarning: () => false; + dismissQuotaPanic: () => false; + }; + _internal: { + index: import("solid-js").Accessor; + setIndex: import("solid-js").Setter; + messageCache: Map; + setActiveMessages: import("solid-js").Setter; + persistIndex: (next: ChatflowIndexV2) => void; + }; +}; +//# sourceMappingURL=sessionStore.d.ts.map \ No newline at end of file diff --git a/dist/state/sessionStore.d.ts.map b/dist/state/sessionStore.d.ts.map new file mode 100644 index 000000000..2083ae896 --- /dev/null +++ b/dist/state/sessionStore.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"sessionStore.d.ts","sourceRoot":"","sources":["../../src/state/sessionStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,eAAe,EAQrB,MAAM,kBAAkB,CAAC;AAM1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjE,eAAO,MAAM,kBAAkB,SAAU,mBAAmB;;;;;;;;;;;;;;uBAyHtC,MAAM;gCAyDK,MAAM,KAAG,IAAI;6BAgHhB,WAAW,YAAY;YAAE,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE,KAAG,IAAI;yCAtCxC,MAAM,OAAO,WAAW,YAAY;YAAE,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE,KAAG,IAAI;uCA2DnE,MAAM,KAAG,IAAI;6CAbP,MAAM,aAAa,MAAM,KAAG,IAAI;sCAqBvC,WAAW,EAAE,KAAG,IAAI;qCA9ErB,MAAM,KAAG,WAAW,EAAE;gCAqG3B,MAAM,YAAY,MAAM,KAAG,IAAI;gCAV/B,MAAM,KAAG,IAAI;gCA4Bb,MAAM,KAAG,IAAI;wBA6BrB,eAAe,GAAG,SAAS,KAAG,IAAI;;4CAvTzB;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,KAAK,IAAI;uCAhEpC,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,IAAI;;;;;;;;;6BA0D1C,eAAe;;CAyW7C,CAAC"} \ No newline at end of file diff --git a/dist/utils/index.d.ts b/dist/utils/index.d.ts index f32e7650d..45982c493 100644 --- a/dist/utils/index.d.ts +++ b/dist/utils/index.d.ts @@ -15,7 +15,17 @@ export declare const sendRequest: (params: string | { data?: ResponseData | undefined; error?: Error | undefined; }>; +/** + * v1-compatible wrapper. Writes are field-level merges over the v2 index + * (and active-session messages where applicable), so callers writing + * `{ lead }` or `{ chatHistory }` don't clobber other v2 fields. + */ export declare const setLocalStorageChatflow: (chatflowid: string, chatId: string, saveObj?: Record) => void; +/** + * v1-compatible projection. Returns a v1-shaped object derived from the active + * session of the v2 index, so existing callers (notably the lead-capture path) + * keep working. + */ export declare const getLocalStorageChatflow: (chatflowid: string) => any; export declare const removeLocalStorageChatHistory: (chatflowid: string) => void; export declare const getBubbleButtonSize: (size: 'small' | 'medium' | 'large' | number | undefined) => number; diff --git a/dist/utils/index.d.ts.map b/dist/utils/index.d.ts.map index a4e9bd113..9d1126198 100644 --- a/dist/utils/index.d.ts.map +++ b/dist/utils/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+DAAuG,CAAC;AAEjI,eAAO,MAAM,SAAS,6DAAqG,CAAC;AAE5H,eAAO,MAAM,OAAO,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,uBAA8E,CAAC;AAEvI,eAAO,MAAM,UAAU,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,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GAIG;AACH,eAAO,MAAM,uBAAuB,eAAgB,MAAM,QAiBzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,eAAgB,MAAM,SAe/D,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,WAO1F,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,UAAU,MAAM,UAAU,MAAM,SAKtE,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAczC,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAS,OAAO,KAAG,WAAW,GAAG,SAenE,CAAC;AAEF,eAAO,MAAM,4BAA4B,SAAU,MAAM,WAiBxD,CAAC"} \ No newline at end of file diff --git a/dist/utils/titleFromMessage.d.ts b/dist/utils/titleFromMessage.d.ts new file mode 100644 index 000000000..1fadbd217 --- /dev/null +++ b/dist/utils/titleFromMessage.d.ts @@ -0,0 +1,3 @@ +import type { MessageType } from '@/components/Bot'; +export declare const titleFromMessage: (messages: MessageType[]) => string | null; +//# sourceMappingURL=titleFromMessage.d.ts.map \ No newline at end of file diff --git a/dist/utils/titleFromMessage.d.ts.map b/dist/utils/titleFromMessage.d.ts.map new file mode 100644 index 000000000..624aa0e12 --- /dev/null +++ b/dist/utils/titleFromMessage.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"titleFromMessage.d.ts","sourceRoot":"","sources":["../../src/utils/titleFromMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD,eAAO,MAAM,gBAAgB,aAAc,WAAW,EAAE,KAAG,MAAM,GAAG,IAanE,CAAC"} \ No newline at end of file diff --git a/dist/web.js b/dist/web.js index 9e1b13188..f9cb97757 100644 --- a/dist/web.js +++ b/dist/web.js @@ -1 +1 @@ -function e(e){return Object.keys(e).reduce(((r,o)=>{var a=e[o];return r[o]=Object.assign({},a),!t(a.value)||function(e){return"[object Function]"===Object.prototype.toString.call(e)}(a.value)||Array.isArray(a.value)||(r[o].value=Object.assign({},a.value)),Array.isArray(a.value)&&(r[o].value=a.value.slice(0)),r}),{})}function r(e){if(e)try{return JSON.parse(e)}catch(r){return e}}function o(e,r,o){if(null==o||!1===o)return e.removeAttribute(r);let t=JSON.stringify(o);e.__updating[r]=!0,"true"===t&&(t=""),e.setAttribute(r,t),Promise.resolve().then((()=>delete e.__updating[r]))}function t(e){return null!=e&&("object"==typeof e||"function"==typeof e)}let a;function l(t,l){const n=Object.keys(l);return class extends t{static get observedAttributes(){return n.map((e=>l[e].attribute))}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={}}connectedCallback(){if(!this.__initialized){this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=function(t,a){const l=e(a);return Object.keys(a).forEach((e=>{const a=l[e],n=t.getAttribute(a.attribute),i=t[e];n&&(a.value=a.parse?r(n):n),null!=i&&(a.value=Array.isArray(i)?i.slice(0):i),a.reflect&&o(t,a.attribute,a.value),Object.defineProperty(t,e,{get:()=>a.value,set(r){var t=a.value;a.value=r,a.reflect&&o(this,a.attribute,a.value);for(let o=0,a=this.__propertyChangedCallbacks.length;o(r[o]=e[o].value,r)),{})}(this.props),n=this.Component,i=a;try{(a=this).__initialized=!0,function(e){return"function"==typeof e&&0===e.toString().indexOf("class")}(n)?new n(t,{element:this}):n(t,{element:this})}finally{a=i}}}async disconnectedCallback(){if(await Promise.resolve(),!this.isConnected){this.__propertyChangedCallbacks.length=0;for(var e=null;e=this.__releaseCallbacks.pop();)e(this);delete this.__initialized,this.__released=!0}}attributeChangedCallback(e,o,t){!this.__initialized||this.__updating[e]||(e=this.lookupProp(e))in l&&(null==t&&!this[e]||(this[e]=l[e].parse?r(t):t))}lookupProp(e){if(l)return n.find((r=>e===r||e===l[r].attribute))}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(e){this.__releaseCallbacks.push(e)}addPropertyChangedCallback(e){this.__propertyChangedCallbacks.push(e)}}}function n(e,r={},o={}){const{BaseElement:a=HTMLElement,extension:n}=o;return o=>{if(!e)throw new Error("tag is required to register a Component");let i=customElements.get(e);return i?i.prototype.Component=o:((i=l(a,function(e){return e?Object.keys(e).reduce(((r,o)=>{var a=e[o];return r[o]=t(a)&&"value"in a?a:{value:a},r[o].attribute||(r[o].attribute=function(e){return e.replace(/\.?([A-Z]+)/g,((e,r)=>"-"+r.toLowerCase())).replace("_","-").replace(/^-/,"")}(o)),r[o].parse="parse"in r[o]?r[o].parse:"string"!=typeof r[o].value,r}),{}):{}}(r))).prototype.Component=o,i.prototype.registeredTag=e,customElements.define(e,i,n)),i}}const i=Symbol("solid-proxy"),d=Symbol("solid-track"),s=Symbol("solid-dev-component"),m={equals:(e,r)=>e===r};let g=D;const c=1,u=2,x={owned:null,cleanups:null,context:null,owner:null};var p=null;let h=null,v=null,S=null,b=null,y=0;function f(e,r){const o=v,t=p,a=0===e.length,l=a?x:{owned:null,cleanups:null,context:null,owner:void 0===r?t:r},n=a?e:()=>e((()=>T((()=>H(l)))));p=l,v=null;try{return k(n,!0)}finally{v=o,p=t}}function $(e,r){const o={value:e,observers:null,observerSlots:null,comparator:(r=r?Object.assign({},m,r):m).equals||void 0};return[E.bind(o),e=>("function"==typeof e&&(e=e(o.value)),B(o,e))]}function P(e,r,o){N(O(e,r,!1,c))}function A(e,r,o){g=R,(e=O(e,r,!1,c)).user=!0,b?b.push(e):N(e)}function M(e,r,o){return o=o?Object.assign({},m,o):m,(e=O(e,r,!0,0)).observers=null,e.observerSlots=null,e.comparator=o.equals||void 0,N(e),E.bind(e)}function T(e){if(null===v)return e();var r=v;v=null;try{return e()}finally{v=r}}function _(e){A((()=>T(e)))}function w(e){return null!==p&&(null===p.cleanups?p.cleanups=[e]:p.cleanups.push(e)),e}function L(){return v}function G(e){var r;return void 0!==(r=V(p,e.id))?r:e.defaultValue}function C(e){const r=M(e),o=M((()=>W(r())));return o.toArray=()=>{var e=o();return Array.isArray(e)?e:null!=e?[e]:[]},o}function E(){var e;return this.sources&&this.state&&(this.state===c?N(this):(e=S,S=null,k((()=>F(this)),!1),S=e)),v&&(e=this.observers?this.observers.length:0,v.sources?(v.sources.push(this),v.sourceSlots.push(e)):(v.sources=[this],v.sourceSlots=[e]),this.observers?(this.observers.push(v),this.observerSlots.push(v.sources.length-1)):(this.observers=[v],this.observerSlots=[v.sources.length-1])),this.value}function B(e,r,o){var t=e.value;return e.comparator&&e.comparator(t,r)||(e.value=r,e.observers&&e.observers.length&&k((()=>{for(let t=0;tF(e,o[0])),!1),S=r)}}}function k(e,r){if(S)return e();let o=!1;r||(S=[]),b?o=!0:b=[],y++;try{var t=e();return function(e){if(S&&(D(S),S=null),!e){const e=b;b=null,e.length&&k((()=>g(e)),!1)}}(o),t}catch(e){o||(b=null),S=null,U(e)}}function D(e){for(let r=0;ro=T((()=>(p.context={[e]:r.value},C((()=>r.children)))))),void 0),o}}const Z=Symbol("fallback");function z(e){for(let r=0;re(r||{})))}function Y(){return!0}const J={get:(e,r,o)=>r===i?o:e.get(r),has:(e,r)=>r===i||e.has(r),set:Y,deleteProperty:Y,getOwnPropertyDescriptor:(e,r)=>({configurable:!0,enumerable:!0,get:()=>e.get(r),set:Y,deleteProperty:Y}),ownKeys:e=>e.keys()};function j(e){return(e="function"==typeof e?e():e)||{}}function q(...e){let r=!1;for(let t=0;tnew Proxy({get:o=>r.includes(o)?e[o]:void 0,has:o=>r.includes(o)&&o in e,keys:()=>r.filter((r=>r in e))},J)))).push(new Proxy({get:r=>o.has(r)?void 0:e[r],has:r=>!o.has(r)&&r in e,keys:()=>Object.keys(e).filter((e=>!o.has(e)))},J)),t;const a=Object.getOwnPropertyDescriptors(e);return r.push(Object.keys(a).filter((e=>!o.has(e)))),r.map((r=>{var o={};for(let t=0;te[l],set:()=>!0,enumerable:!0})}return o}))}function re(e){var r="fallback"in e&&{fallback:()=>e.fallback};return M(function(e,r,o={}){let t=[],a=[],l=[],n=0,i=1z(l))),()=>{let s,m,g=e()||[];return g[d],T((()=>{let e,r,d,u,x,p,h,v,S,b=g.length;if(0===b)0!==n&&(z(l),l=[],t=[],a=[],n=0,i=i&&[]),o.fallback&&(t=[Z],a[0]=f((e=>(l[0]=e,o.fallback()))),n=1);else if(0===n){for(a=new Array(b),m=0;m=p&&v>=p&&t[h]===g[v];h--,v--)d[v]=a[h],u[v]=l[h],i&&(x[v]=i[h]);for(e=new Map,r=new Array(v+1),m=v;m>=p;m--)S=g[m],s=e.get(S),r[m]=void 0===s?-1:s,e.set(S,m);for(s=p;s<=h;s++)S=t[s],void 0!==(m=e.get(S))&&-1!==m?(d[m]=a[s],u[m]=l[s],i&&(x[m]=i[s]),m=r[m],e.set(S,m)):l[s]();for(m=p;me.each),e.children,r||void 0))}function oe(e){const r=e.keyed,o=M((()=>e.when),void 0,{equals:(e,o)=>r?e===o:!e==!o});return M((()=>{const t=o();if(t){const a=e.children;return"function"==typeof a&&0a(r?t:()=>{if(T(o))return e.when;throw(e=>`Stale read from <${e}>.`)("Show")}))):a}return e.fallback}),void 0,void 0)}const te=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),ae=new Set(["innerHTML","textContent","innerText","children"]),le=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ne=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});const ie=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),de=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),se={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const me="_$DX_DELEGATE";function ge(e,r,o){let t;const a=()=>{var r=document.createElement("template");return r.innerHTML=e,(o?r.content.firstChild:r.content).firstChild};return(r=r?()=>(t=t||a()).cloneNode(!0):()=>T((()=>document.importNode(t=t||a(),!0)))).cloneNode=r}function ce(e,r=window.document){var o=r[me]||(r[me]=new Set);for(let a=0,l=e.length;at.call(e,o[1],r))}else e.addEventListener(r,o)}function he(e,r,o){if(!r)return o?ue(e,"style"):r;var t=e.style;if("string"==typeof r)return t.cssText=r;let a,l;for(l in"string"==typeof o&&(t.cssText=o=void 0),r=r||{},o=o||{})null==r[l]&&t.removeProperty(l),delete o[l];for(l in r)(a=r[l])!==o[l]&&(t.setProperty(l,a),o[l]=a);return o}function ve(e,r={},o,t){const a={};return t||P((()=>a.children=Pe(e,r.children,a.children))),P((()=>r.ref&&r.ref(e))),P((()=>function(e,r,o,t,a={},l=!1){r=r||{};for(const t in a)t in r||"children"!==t&&(a[t]=fe(e,t,null,a[t],o,l));for(const i in r){var n;"children"===i?t||Pe(e,r.children):(n=r[i],a[i]=fe(e,i,n,a[i],o,l))}}(e,r,o,!0,a,!0))),a}function Se(e,r,o){return T((()=>e(r,o)))}function be(e,r,o,t){if(void 0!==o&&(t=t||[]),"function"!=typeof r)return Pe(e,r,t,o);P((t=>Pe(e,r(),t,o)),t)}function ye(e,r,o){var t=r.trim().split(/\s+/);for(let r=0,a=t.length;rr.toUpperCase()))}(r)]=o):(t=a&&-1o||document});o;){var t=o[r];if(t&&!o.disabled){var a=o[r+"Data"];if(void 0!==a?t.call(o,a,e):t.call(o,e),e.cancelBubble)return}o=o._$host||o.parentNode||o.host}}function Pe(e,r,o,t,a){for(;"function"==typeof o;)o=o();if(r!==o){var l=typeof r,n=void 0!==t;if(e=n&&o[0]&&o[0].parentNode||e,"string"==l||"number"==l)if("number"==l&&(r=r.toString()),n){let a=o[0];a&&3===a.nodeType?a.data=r:a=document.createTextNode(r),o=Te(e,o,t,a)}else o=""!==o&&"string"==typeof o?e.firstChild.data=r:e.textContent=r;else if(null==r||"boolean"==l)o=Te(e,o,t);else{if("function"==l)return P((()=>{let a=r();for(;"function"==typeof a;)a=a();o=Pe(e,a,o,t)})),()=>o;if(Array.isArray(r)){const i=[];if(l=o&&Array.isArray(o),Ae(i,r,o,a))return P((()=>o=Pe(e,i,o,t,!0))),()=>o;if(0===i.length){if(o=Te(e,o,t),n)return o}else l?0===o.length?Me(e,i,t):function(e,r,o){let t=o.length,a=r.length,l=t,n=0,i=0,d=r[a-1].nextSibling,s=null;for(;nc-i)for(var u=r[n];i{a=a||function(e,r){var o=p,t=v;p=e,v=null;try{return k(r,!0)}catch(e){U(e)}finally{p=o,v=t}}(t,(()=>e.children));const l=e.mount||document.body;if(l instanceof HTMLHeadElement){const[e,r]=$(!1);f((r=>be(l,(()=>e()?r():a),null))),w((()=>r(!0)))}else{const t=we(e.isSVG?"g":"div",e.isSVG),n=r&&t.attachShadow?t.attachShadow({mode:"open"}):t;Object.defineProperty(t,"_$host",{get:()=>o.parentNode,configurable:!0}),be(n,a),l.appendChild(t),e.ref&&e.ref(t),w((()=>l.removeChild(t)))}})),o}function Ge(e){const[r,o]=ee(e,["component"]),t=M((()=>r.component));return M((()=>{const e=t();switch(typeof e){case"function":return Object.assign(e,{[s]:!0}),T((()=>e(o)));case"string":var r=de.has(e),a=we(e,r);return ve(a,o,r),a}}))}function Ce(e){return(r,o)=>{const t=o.element;return f((a=>{const l=function(e){var r=Object.keys(e),o={};for(let t=0;te))}})}return o}(r);t.addPropertyChangedCallback(((e,r)=>l[e]=r)),t.addReleaseCallback((()=>{t.renderRoot.textContent="",a()}));var n=e(l,o);return be(t.renderRoot,n)}),function(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let r=e.parentNode;for(;r&&!r._$owner&&(!r.assignedSlot||!r.assignedSlot._$owner);)r=r.parentNode;return(r&&r.assignedSlot?r.assignedSlot:e)._$owner}(t))}}function Ee(e,r,o){return 2===arguments.length&&(o=r,r={}),n(e,r)(Ce(o))}const Be={chatflowid:"",apiHost:void 0,onRequest:void 0,chatflowConfig:void 0,theme:void 0,observersConfig:void 0,dialogContainer:void 0};var Ne='/*! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-left-color:var(--tw-prose-quote-borders);border-left-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-left:1em;quotes:"\\201C""\\201D""\\2018""\\2019"}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.3125rem;box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;text-align:left;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;padding-bottom:.5714286em;padding-left:.5714286em;padding-right:.5714286em;vertical-align:bottom}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-\\[140px\\]{bottom:140px}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-\\[-8px\\]{right:-8px}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1001\\]{z-index:1001}.z-\\[1002\\]{z-index:1002}.float-right{float:right}.m-0{margin:0}.m-\\[6px\\]{margin:6px}.m-auto{margin:auto}.mx-4{margin-left:16px;margin-right:16px}.my-2{margin-bottom:8px;margin-top:8px}.my-6{margin-bottom:24px;margin-top:24px}.-ml-1{margin-left:-4px}.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.ml-1{margin-left:4px}.ml-1\\.5{margin-left:6px}.ml-10{margin-left:40px}.ml-2{margin-left:8px}.ml-auto{margin-left:auto}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-3{margin-right:12px}.mr-\\[10px\\]{margin-right:10px}.mt-2{margin-top:8px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:40px}.h-12{height:48px}.h-14{height:56px}.h-2{height:8px}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-\\[58px\\]{height:58px}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[128px\\]{max-height:128px}.max-h-\\[192px\\]{max-height:192px}.min-h-0{min-height:0}.min-h-\\[56px\\]{min-height:56px}.min-h-full{min-height:100%}.w-10{width:40px}.w-12{width:48px}.w-2{width:8px}.w-4{width:16px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-7{width:28px}.w-8{width:32px}.w-\\[200px\\]{width:200px}.w-full{width:100%}.min-w-full{min-width:100%}.max-w-3xl{max-width:768px}.max-w-\\[128px\\]{max-width:128px}.max-w-full{max-width:100%}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:448px}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.basis-auto{flex-basis:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x:-50%}.-rotate-180,.-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate:-180deg}.rotate-0{--tw-rotate:0deg}.rotate-0,.scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease-out}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(8px*(1 - var(--tw-space-x-reverse)));margin-right:calc(8px*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(16px*(1 - var(--tw-space-x-reverse)));margin-right:calc(16px*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(8px*var(--tw-space-y-reverse));margin-top:calc(8px*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(16px*var(--tw-space-y-reverse));margin-top:calc(16px*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:4px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:6px}.rounded-none{border-radius:0}.rounded-xl{border-radius:12px}.rounded-b{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.rounded-t{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-\\[\\#eeeeee\\]{--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.border-t-transparent{border-top-color:transparent}.border-t-white{--tw-border-opacity:1;border-top-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.3\\)\\]{background-color:rgba(0,0,0,.3)}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.4\\)\\]{background-color:rgba(0,0,0,.4)}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\\/10{background-color:rgba(0,0,0,.1)}.bg-black\\/60{background-color:rgba(0,0,0,.6)}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-cover{background-size:cover}.bg-center{background-position:50%}.fill-transparent{fill:transparent}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:4px}.p-10{padding:40px}.p-2{padding:8px}.p-2\\.5{padding:10px}.p-3{padding:12px}.p-4{padding:16px}.p-5{padding:20px}.p-6{padding:24px}.px-1{padding-left:4px;padding-right:4px}.px-12{padding-left:48px;padding-right:48px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}.px-6{padding-left:24px;padding-right:24px}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.py-4{padding-bottom:16px;padding-top:16px}.py-8{padding-bottom:32px;padding-top:32px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-\\[10px\\]{padding-bottom:10px}.pl-4{padding-left:16px}.pr-0{padding-right:0}.pr-3{padding-right:12px}.pt-2{padding-top:8px}.pt-4{padding-top:16px}.pt-\\[6px\\]{padding-top:6px}.pt-\\[70px\\]{padding-top:70px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:24px;line-height:32px}.text-\\[13px\\]{font-size:13px}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-4{line-height:16px}.leading-none{line-height:1}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur-\\[2px\\]{--tw-blur:blur(2px)}.blur-\\[2px\\],.blur-none{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-none{--tw-blur:blur(0)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:host{--chatbot-container-bg-image:none;--chatbot-container-bg-color:transparent;--chatbot-container-font-family:"Open Sans";--chatbot-button-bg-color:#0042da;--chatbot-button-color:#fff;--chatbot-host-bubble-bg-color:#f7f8ff;--chatbot-host-bubble-color:#303235;--chatbot-guest-bubble-bg-color:#3b81f6;--chatbot-guest-bubble-color:#fff;--chatbot-input-bg-color:#fff;--chatbot-input-color:#303235;--chatbot-input-placeholder-color:#9095a0;--chatbot-header-bg-color:#fff;--chatbot-header-color:#303235;--chatbot-border-radius:6px;--PhoneInputCountryFlag-borderColor:transparent;--PhoneInput-color--focus:transparent}a{color:#16bed7;font-weight:500}a:hover{text-decoration:underline}pre{word-wrap:break-word;font-size:13px;margin:5px;overflow:auto;padding:5px;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;width:auto}.string{color:green}.number{color:#ff8c00}.boolean{color:blue}.null{color:#f0f}.key{color:#002b36}.scrollable-container{scrollbar-color:rgba(0,0,0,.2) transparent;scrollbar-width:thin}.scrollable-container::-webkit-scrollbar{width:4px}.scrollable-container::-webkit-scrollbar-track{background:transparent}.scrollable-container::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);border-radius:4px}.scrollable-container::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.35)}@media (hover:none) and (pointer:coarse){.scrollable-container{scrollbar-width:none}.scrollable-container::-webkit-scrollbar{display:none}}.text-fade-in{transition:opacity .4s ease-in .2s}.bubble-typing{transition:width .4s ease-out,height .4s ease-out}.bubble1,.bubble2,.bubble3{background-color:var(--chatbot-host-bubble-color);opacity:.5}.bubble1,.bubble2{animation:chatBubbles 1s ease-in-out infinite}.bubble2{animation-delay:.3s}.bubble3{animation:chatBubbles 1s ease-in-out infinite;animation-delay:.5s}@keyframes chatBubbles{0%{transform:translateY(0)}50%{transform:translateY(-5px)}to{transform:translateY(0)}}button,input,textarea{font-weight:300}.slate-a{text-decoration:underline}.slate-html-container>div{min-height:24px}.slate-bold{font-weight:700}.slate-italic{font-style:oblique}.slate-underline{text-decoration:underline}.text-input::-moz-placeholder{color:#9095a0!important;opacity:1!important}.text-input::placeholder{color:#9095a0!important;opacity:1!important}.chatbot-container{background-color:var(--chatbot-container-bg-color);background-image:var(--chatbot-container-bg-image);font-family:Open Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.file-annotation-button{background-color:#02a0a0c2;border:1px solid #02a0a0c2;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button{background-color:#0042da;border:1px solid #0042da;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button.selectable{border:1px solid #0042da}.chatbot-button.selectable,.chatbot-host-bubble{background-color:#f7f8ff;color:var(--chatbot-host-bubble-color)}.chatbot-host-bubble{word-wrap:break-word;overflow-wrap:break-word;white-space:normal;word-break:break-word}.bot-markdown-content :is(a,h1,h2,h3,h4,h5,h6,strong,em,blockquote,li){color:var(--bot-markdown-text-color,var(--chatbot-host-bubble-color))}.bot-markdown-content pre,.bot-markdown-content pre code{color:var(--bot-markdown-code-color,#fff)}.bot-markdown-content code:not(pre code){color:var(--bot-markdown-inline-code-color,#4caf50)}.chatbot-host-bubble>.bubble-typing{background-color:#f7f8ff;border:var(--chatbot-host-bubble-border);border-radius:6px}.chatbot-host-bubble iframe,.chatbot-host-bubble img,.chatbot-host-bubble video{border-radius:var(--chatbot-border-radius)}.chatbot-guest-bubble{word-wrap:break-word;background-color:#3b81f6;border-radius:6px;color:var(--chatbot-guest-bubble-color);overflow-wrap:break-word;white-space:normal;word-break:break-word}.chatbot-input,.feedback-input{background-color:#fff;border-radius:var(--chatbot-border-radius);box-shadow:0 2px 6px -1px rgba(0,0,0,.1);color:#303235}.chatbot-input-error-message{color:#303235}.chatbot-button>.send-icon{fill:var(--chatbot-button-color);stroke:var(--chatbot-button-color)}.regenerate-response-button>.icon-tabler-refresh{height:16px;width:16px}.chatbot-chat-view{max-width:800px}.ping span{background-color:#0042da}.rating-icon-container svg{stroke:#0042da;fill:#f7f8ff;height:42px;transition:fill .1s ease-out;width:42px}.rating-icon-container.selected svg{fill:#0042da}.rating-icon-container:hover svg{filter:brightness(.9)}.rating-icon-container:active svg{filter:brightness(.75)}.upload-progress-bar{background-color:#0042da;border-radius:var(--chatbot-border-radius)}.total-files-indicator{background-color:#0042da;color:var(--chatbot-button-color);font-size:10px}.chatbot-upload-input{transition:border-color .1s ease-out}.chatbot-upload-input.dragging-over{border-color:#0042da}.secondary-button{background-color:#f7f8ff;border-radius:var(--chatbot-border-radius);color:var(--chatbot-host-bubble-color)}.chatbot-country-select{color:#303235}.chatbot-country-select,.chatbot-date-input{background-color:#fff;border-radius:var(--chatbot-border-radius)}.chatbot-date-input{color:#303235;color-scheme:light}.chatbot-popup-blocked-toast{border-radius:var(--chatbot-border-radius)}.messagelist{border-radius:.5rem;height:100%;overflow-y:scroll;width:100%}.messagelistloading{display:flex;justify-content:center;margin-top:1rem;width:100%}.usermessage{padding:1rem 1.5rem}.usermessagewaiting-light{background:linear-gradient(270deg,#ede7f6,#e3f2fd,#ede7f6);background-position:-100% 0;background-size:200% 200%}.usermessagewaiting-dark,.usermessagewaiting-light{animation:loading-gradient 2s ease-in-out infinite;animation-direction:alternate;animation-name:loading-gradient;padding:1rem 1.5rem}.usermessagewaiting-dark{background:linear-gradient(270deg,#2e2352,#1d3d60,#2e2352);background-position:-100% 0;background-size:200% 200%;color:#ececf1}@keyframes loading-gradient{0%{background-position:-100% 0}to{background-position:100% 0}}.apimessage{animation:fadein .5s;padding:1rem 1.5rem}@keyframes fadein{0%{opacity:0}to{opacity:1}}.apimessage,.usermessage,.usermessagewaiting{display:flex}.markdownanswer{line-height:1.75}.markdownanswer a:hover{opacity:.8}.markdownanswer a{color:#16bed7;font-weight:500}.markdownanswer code{color:#15cb19;font-weight:500;white-space:pre-wrap!important}.markdownanswer ol,.markdownanswer ul{margin:1rem}.boticon,.usericon{border-radius:1rem;margin-right:1rem}.markdownanswer h1,.markdownanswer h2,.markdownanswer h3{font-size:inherit}.chatbot-host-bubble .prose,.chatbot-host-bubble.prose{font-size:inherit;line-height:1.55}.chatbot-host-bubble .prose h1,.chatbot-host-bubble.prose h1{font-size:1.25em;font-weight:700;line-height:1.3;margin-bottom:.3em;margin-top:.6em}.chatbot-host-bubble .prose h2,.chatbot-host-bubble.prose h2{font-size:1.125em;font-weight:600;line-height:1.35;margin-bottom:.25em;margin-top:.5em}.chatbot-host-bubble .prose h3,.chatbot-host-bubble.prose h3{font-size:1em;font-weight:600;line-height:1.4;margin-bottom:.2em;margin-top:.4em}:is(.chatbot-host-bubble.prose,.chatbot-host-bubble .prose) :is(h4,h5,h6){font-size:.95em;font-weight:600;line-height:1.4;margin-bottom:.15em;margin-top:.3em}.chatbot-host-bubble .prose p,.chatbot-host-bubble.prose p{margin-bottom:.35em;margin-top:.35em}.chatbot-host-bubble .prose ol,.chatbot-host-bubble .prose ul,.chatbot-host-bubble.prose ol,.chatbot-host-bubble.prose ul{margin-bottom:.25em;margin-top:.25em;padding-left:1.25em}.chatbot-host-bubble .prose li,.chatbot-host-bubble.prose li{margin-bottom:.1em;margin-top:.1em}.chatbot-host-bubble .prose blockquote,.chatbot-host-bubble.prose blockquote{border-left:3px solid;margin-bottom:.3em;margin-top:.3em;padding-left:.75em}.chatbot-host-bubble .prose pre,.chatbot-host-bubble.prose pre{word-wrap:break-word;font-size:.85em;margin-bottom:.4em;margin-top:.4em;overflow:auto;padding:5px;white-space:pre-wrap}.chatbot-host-bubble .prose hr,.chatbot-host-bubble.prose hr{margin-bottom:.5em;margin-top:.5em}.chatbot-host-bubble .prose table,.chatbot-host-bubble.prose table{font-size:.9em;margin-bottom:.3em;margin-top:.3em}.chatbot-host-bubble .prose>:first-child,.chatbot-host-bubble.prose>:first-child{margin-top:0}.chatbot-host-bubble .prose>:last-child,.chatbot-host-bubble.prose>:last-child{margin-bottom:0}.center{flex-direction:column;padding:10px;position:relative}.center,.cloud{align-items:center;display:flex;justify-content:center}.cloud{border-radius:.5rem;height:calc(100% - 50px);width:400px}input,textarea{background-color:transparent;border:none;font-family:Poppins,sans-serif;padding:10px}@media (max-width:640px){div[part=bot]{height:100%!important;left:0!important;max-height:unset!important;max-width:unset!important;overflow:auto;overflow-x:hidden;position:fixed!important;top:0!important;width:100%!important}.chatbot-container,.rounded-lg,div[class="flex flex-row items-center w-full h-[50px] absolute top-0 left-0 z-10"],div[part=button]{border-radius:0!important}button{cursor:default!important}}.tooltip{background:var(--tooltip-background-color,#000);border-radius:5px;color:var(--tooltip-text-color,#fff);font-size:var(--tooltip-font-size,12px);max-width:calc(100vw - 20px);padding:5px 10px;position:fixed;transition:opacity .3s ease-in-out;white-space:pre-wrap;word-break:break-word;z-index:42424242}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.spinner{animation:spin 1s linear infinite;border:4px solid hsla(0,0%,100%,.3);border-radius:50%;border-top-color:#fff;height:24px;width:24px}.hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:brightness-90:hover{--tw-brightness:brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.active\\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:bg-emerald-600:active{--tw-bg-opacity:1;background-color:rgb(5 150 105/var(--tw-bg-opacity))}.active\\:brightness-75:active{--tw-brightness:brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:brightness-100:disabled{--tw-brightness:brightness(1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.group:hover .group-hover\\:flex{display:flex}@media (min-width:640px){.sm\\:right-5{right:20px}.sm\\:my-8{margin-bottom:32px;margin-top:32px}.sm\\:w-\\[400px\\]{width:400px}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}.sm\\:p-0{padding:0}}';const Oe=e=>null==e,Ie=e=>null!=e,ke=async e=>{try{var r="string"==typeof e?e:e.url,o="string"!=typeof e&&Ie(e.body)?{"Content-Type":"application/json",...e.headers}:void 0;let n="string"!=typeof e&&Ie(e.body)?JSON.stringify(e.body):void 0;"string"!=typeof e&&e.formData&&(n=e.formData);var t={method:"string"==typeof e?"GET":e.method,mode:"cors",headers:o,body:n,signal:"string"!=typeof e?e.signal:void 0},a=("string"!=typeof e&&e.onRequest&&await e.onRequest(t),await fetch(r,t));let i;var l=a.headers.get("Content-Type");if(i=l&&l.includes("application/json")?await a.json():"string"!=typeof e&&"blob"===e.type?await a.blob():await a.text(),a.ok)return{data:i};{let e;throw e="object"==typeof i&&"error"in i?i.error:i||a.statusText}}catch(e){return console.error(e),{error:e}}},De=(e,r,o={})=>{var t=localStorage.getItem(e+"_EXTERNAL");o={...o};if(r&&(o.chatId=r),t)try{var a=JSON.parse(t);localStorage.setItem(e+"_EXTERNAL",JSON.stringify({...a,...o}))}catch(a){const r=t;o.chatId=r,localStorage.setItem(e+"_EXTERNAL",JSON.stringify(o))}else localStorage.setItem(e+"_EXTERNAL",JSON.stringify(o))},Re=e=>{if(!(e=localStorage.getItem(e+"_EXTERNAL")))return{};try{return JSON.parse(e)}catch(e){return{}}},Fe=e=>e?"number"==typeof e?e:"small"===e?32:"medium"!==e&&"large"===e?64:48:48,Xe=e=>{if("string"==typeof e)try{var r=document.querySelector(e);return null===r&&console.warn(`[Flowise] dialogContainer selector "${e}" did not match any element. Dialog will render inline.`),r??void 0}catch{return void console.warn(`[Flowise] Invalid dialogContainer selector: "${e}". Dialog will render inline.`)}if(e instanceof HTMLElement)return e},He=ge(''),Ue=ge('Bubble button icon'),Ve=ge('
');function Cn(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})):""}const En=()=>ql(),Bn=()=>en(),Nn=()=>rn(),On=()=>on(),In=()=>tn(),kn=()=>an(),Dn=()=>ln(),Rn=e=>{{const r=nn();return P((o=>{var t=e.size,a=e.size;return t!==o._v$&&ue(r,"width",o._v$=t),a!==o._v$2&&ue(r,"height",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),r}},Fn=e=>{const r=e.size??24,o=Rl(e.name);if(o){const t=dn();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),r+"px"!=null?t.style.setProperty("width",r+"px"):t.style.removeProperty("width"),r+"px"!=null?t.style.setProperty("height",r+"px"):t.style.removeProperty("height"),be(t,(()=>o.icon({size:Math.round(.55*r),color:"white"}))),P((r=>{var a=e.borderRadius??"50%",l=e.bgColor??o.color;return a!==r._v$3&&(null!=(r._v$3=a)?t.style.setProperty("border-radius",a):t.style.removeProperty("border-radius")),l!==r._v$4&&(null!=(r._v$4=l)?t.style.setProperty("background",l):t.style.removeProperty("background")),r}),{_v$3:void 0,_v$4:void 0}),t}if(e.apiHost){const[o,t]=$(!1);{const a=dn();return a.style.setProperty("flex-shrink","0"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),r+"px"!=null?a.style.setProperty("width",r+"px"):a.style.removeProperty("width"),r+"px"!=null?a.style.setProperty("height",r+"px"):a.style.removeProperty("height"),a.style.setProperty("overflow","hidden"),be(a,Q(oe,{get when(){return!o()},get fallback(){return Q(Rn,{get size(){return Math.round(.6*r)}})},get children(){const r=sn();return r.addEventListener("error",(()=>t(!0))),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),P((o=>{var t=e.apiHost+"/api/v1/node-icon/"+e.name,a=e.name;return t!==o._v$5&&ue(r,"src",o._v$5=t),a!==o._v$6&&ue(r,"alt",o._v$6=a),o}),{_v$5:void 0,_v$6:void 0}),r}})),P((r=>{var t=e.borderRadius??"50%",l=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?a.style.setProperty("border-radius",t):a.style.removeProperty("border-radius")),l!==r._v$8&&(null!=(r._v$8=l)?a.style.setProperty("background",l):a.style.removeProperty("background")),r}),{_v$7:void 0,_v$8:void 0}),a}}{const o=dn();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),r+"px"!=null?o.style.setProperty("width",r+"px"):o.style.removeProperty("width"),r+"px"!=null?o.style.setProperty("height",r+"px"):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),be(o,Q(Rn,{get size(){return Math.round(.6*r)}})),P((()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius"))),o}},Xn=(e,r)=>Array.isArray(r)&&(r=r.find((r=>r.name===e)),r?.toolNode?.name)?r.toolNode.name:e,Hn=e=>{const[r,o]=$(e.defaultOpen??!1),t=()=>o(!r());{const o=mn(),a=o.firstChild,l=a.firstChild,n=l.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),a.$$click=t,a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("width","100%"),a.style.setProperty("padding","10px 12px"),a.style.setProperty("cursor","pointer"),a.style.setProperty("user-select","none"),a.style.setProperty("gap","8px"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("font-family","inherit"),a.style.setProperty("color","inherit"),a.style.setProperty("text-align","left"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),l.style.setProperty("flex","1"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("text-align","left"),be(l,(()=>e.header)),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","center"),n.style.setProperty("flex-shrink","0"),n.style.setProperty("transition","transform 0.2s ease"),n.style.setProperty("opacity","0.5"),be(n,Q(Bn,{})),be(o,Q(oe,{get when(){return r()},get children(){var r=dn();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),be(r,(()=>e.children)),r}}),null),P((t=>{var l="1px solid "+(e.borderColor||"rgba(0,0,0,0.1)"),i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return l!==t._v$9&&(null!=(t._v$9=l)?o.style.setProperty("border",l):o.style.removeProperty("border")),i!==t._v$10&&(null!=(t._v$10=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$11&&ue(a,"aria-expanded",t._v$11=d),s!==t._v$12&&(null!=(t._v$12=s)?n.style.setProperty("transform",s):n.style.removeProperty("transform")),t}),{_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0}),o}},Un={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Vn=e=>{{const r=gn();return he(r,Un),P((()=>r.innerHTML=Cn(JSON.stringify(e.data,null,2)))),r}},Wn=e=>{Wo.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return Q(oe,{get when(){return r()},get fallback(){return Q(oe,{get when(){return e.content},get fallback(){return(e=un()).style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e;var e},get children(){const r=cn();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),P((()=>r.innerHTML=Wo.parse(e.content))),r}})},get children(){return Q(Vn,{get data(){return r()}})}})},Kn=e=>{var r=e.artifact?.type;const o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>e.startsWith("FILE-STORAGE::")&&r?r+`/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=`+e.replace("FILE-STORAGE::",""):e)(o,e.apiHost,e.chatflowid,e.chatId);{const o=xn(),a=o.firstChild;return ue(a,"src",r),a.style.setProperty("max-height","400px"),a.style.setProperty("max-width","100%"),a.style.setProperty("object-fit","contain"),a.style.setProperty("display","block"),P((r=>{var l={...t,display:"flex","justify-content":"center"},n="artifact-"+e.index;return r._v$13=he(o,l,r._v$13),n!==r._v$14&&ue(a,"alt",r._v$14=n),r}),{_v$13:void 0,_v$14:void 0}),o}}if("html"===r){const e=dn();return P((r=>{var a={...t,padding:"8px 12px","font-size":"0.85rem"},l=aa.sanitize(o);return r._v$15=he(e,a,r._v$15),l!==r._v$16&&(e.innerHTML=r._v$16=l),r}),{_v$15:void 0,_v$16:void 0}),e}{const e=dn();return be(e,Q(Wn,{content:o})),P((r=>he(e,{...t,padding:"8px 12px"},r))),e}},Zn=e=>{const r=async()=>{if(e.apiHost)try{var r=await(await fetch(e.apiHost+"/api/v1/openai-assistants-file/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})})).blob(),o=window.URL.createObjectURL(r),t=document.createElement("a");t.href=o,t.download=e.annotation.fileName,document.body.appendChild(t),t.click(),t.remove(),window.URL.revokeObjectURL(o)}catch(r){console.error("Download failed:",r)}};{const o=pn(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),be(t,(()=>e.annotation.fileName)),be(o,Q(Dn,{}),null),P((()=>ue(o,"title","Download "+e.annotation.fileName))),o}},zn=e=>{const[r,o]=$("rendered"),[t,a]=$(null),l=()=>e.node?.data?jl(e.node.data):{},n=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),i={"margin-bottom":"16px"},d={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},s={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},m=()=>{const r=l();var o,t,m,g,c,u,x;return r?(g=(m=(t=(o=An()).firstChild).firstChild).nextSibling,x=(u=(c=t.nextSibling).firstChild).nextSibling,be(o,Q(oe,{get when(){return r.output?.availableTools?.length},get children(){var o=fn(),t=o.firstChild,a=t.nextSibling;return he(o,i),he(t,d),he(a,s),be(a,Q(re,{get each(){return r.output.availableTools},children:o=>{a=o.name,l=r.output?.usedTools;const t=Array.isArray(l)&&l.some((e=>e.tool===a));var a,l;const i=o.toolNode?.name||o.name;return Q(Hn,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[Q(Fn,{name:i,get apiHost(){return e.apiHost},size:22}),(be(r=hn(),(()=>o.toolNode?.label||o.name)),r),Q(oe,{when:t,get children(){const e=Mn();return P((r=>he(e,n("#E8F5E9","#2E7D32"),r))),e}})];var r},get children(){return Q(Vn,{data:o})}})}})),o}}),t),he(t,i),he(m,d),he(g,s),be(g,Q(oe,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&0r.input.code)),e}})},get children(){return Q(Vn,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){var o=dn();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),be(o,Q(re,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",l=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),n=(e,r,o,t)=>{{const a=hn();return be(a,o),P((o=>he(a,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o))),a}};return(i=dn()).style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),be(i,(()=>n(l.background,l.color,t)),null),be(i,Q(oe,{get when(){return r.name},get children(){return n(l.background,l.color,r.name,{"margin-left":"4px"})}}),null),be(i,Q(oe,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&0Q(Hn,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[Q(kn,{}),(be(r=hn(),(()=>e.function?.name||e.name||"Tool Call")),r),M((()=>n("#FFF3E0","#E65100","Called")))];var r},get children(){return Q(Vn,{data:e})}})})}}),null),be(i,Q(oe,{get when(){return"tool"===t&&r.name},get children(){var e=vn(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),be(e,Q(kn,{}),o),o.style.setProperty("font-size","0.85rem"),be(o,(()=>r.name)),be(e,Q(oe,{get when(){return r.tool_call_id},get children(){return n("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),be(i,Q(oe,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){var t=dn();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),be(t,Q(re,{get each(){return r.additional_kwargs.usedTools},children:r=>Q(oe,{when:r,get children(){const t=Sn(),l=t.firstChild;return t.$$click=()=>a(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),be(t,Q(Fn,{get name(){return Xn(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),be(t,(()=>r.tool),null),P((e=>{var o=r.error?"#FFEBEE":"#F3E5F5",a=r.error?"#C62828":"#7B1FA2",l="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),a!==e._v$18&&(null!=(e._v$18=a)?t.style.setProperty("color",a):t.style.removeProperty("color")),l!==e._v$19&&(null!=(e._v$19=l)?t.style.setProperty("border",l):t.style.removeProperty("border")),e}),{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),be(i,Q(oe,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){var o=dn();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),be(o,Q(re,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>Q(Kn,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),be(i,Q(oe,{get when(){return"user"===t&&Array.isArray(r.content)&&0{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=`+r.name:r.name;{const e=xn(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),ue(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),P((()=>ue(r,"alt","file-upload-"+o()))),e}}})),o}}),null),be(i,Q(oe,{get when(){return"string"==typeof r.content&&r.content},get children(){var e=dn();return e.style.setProperty("margin-top","4px"),be(e,Q(Wn,{get content(){return r.content}})),e}}),null),be(i,Q(oe,{get when(){return!r.content},get children(){var e=un();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),be(i,Q(oe,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){var o=dn();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),be(o,Q(re,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>Q(Zn,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i;var i})(o,r)})),o}})),he(c,i),he(u,d),he(x,s),be(x,Q(oe,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return Q(oe,{get when(){return r.output?.conditions},get fallback(){return Q(Vn,{get data(){return r.output?.form||r.output?.http}})},get children(){return(e=>Q(re,{each:e.filter((e=>e.isFulfilled)),children:(e,r)=>{{const o=bn(),t=o.firstChild,a=t.firstChild,l=a.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),a.style.setProperty("font-size","0.85rem"),be(a,(()=>{const o=M((()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2)));return()=>o()?"Else condition fulfilled":"Condition "+r()})()),be(o,Q(oe,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){var r=dn();return r.style.setProperty("margin-top","4px"),be(r,Q(Vn,{data:e})),r}}),null),P((e=>he(l,n("#E8F5E9","#2E7D32"),e))),o}}}))(r.output.conditions)}})},get children(){return[Q(oe,{get when(){return r.output?.usedTools?.length},get children(){var o=dn();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),be(o,Q(re,{get each(){return r.output.usedTools},children:o=>Q(oe,{when:o,get children(){const t=Sn(),l=t.firstChild;return t.$$click=()=>a(o),be(t,Q(Fn,{get name(){return Xn(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),be(t,(()=>o.tool),null),P((e=>he(t,{...n(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e))),t}})})),o}}),Q(oe,{get when(){return r.output?.artifacts?.length},get children(){var o=dn();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),be(o,Q(re,{get each(){return r.output.artifacts},children:(r,o)=>Q(Kn,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),Q(oe,{get when(){return r.output?.content},get fallback(){return Q(oe,{get when(){return r.output},get children(){var e=un();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return Q(Wn,{get content(){return r.output.content}})}}),Q(oe,{get when(){return r.output?.fileAnnotations?.length},get children(){var o=dn();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),be(o,Q(re,{get each(){return r.output.fileAnnotations},children:r=>Q(Zn,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),be(o,Q(oe,{get when(){return r.error},get children(){const e=$n(),o=e.firstChild,t=o.nextSibling,a=t.firstChild;return he(e,i),a.style.setProperty("padding","8px 12px"),a.style.setProperty("border-radius","6px"),a.style.setProperty("border","1px solid #F44336"),a.style.setProperty("background","rgba(244,67,54,0.08)"),a.style.setProperty("color","#C62828"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("white-space","pre-wrap"),a.style.setProperty("word-break","break-word"),be(a,(()=>{const e=M((()=>"object"==typeof r.error));return()=>e()?JSON.stringify(r.error,null,2):r.error})()),P((e=>{var r={...d,color:"#C62828"},a={...s,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return e._v$20=he(o,r,e._v$20),e._v$21=he(t,a,e._v$21),e}),{_v$20:void 0,_v$21:void 0}),e}}),null),be(o,Q(oe,{get when(){return M((()=>!!r.state))()&&0e.node.label)),x.style.setProperty("display","flex"),x.style.setProperty("flex-wrap","wrap"),x.style.setProperty("align-items","center"),x.style.setProperty("gap","8px"),x.style.setProperty("flex","1"),be(x,Q(oe,{get when(){return(e=>{var r;return e=e?.output,e&&(r={},e.timeMetadata?.delta&&(r.time=(e.timeMetadata.delta/1e3).toFixed(2)+" seconds"),e.usageMetadata?.total_tokens&&(r.tokens=e.usageMetadata.total_tokens+" tokens"),null!=e.usageMetadata?.total_cost&&0<=Number(e.usageMetadata.total_cost)&&(e=Number(e.usageMetadata.total_cost),r.cost=.01<=e?"$"+e.toFixed(2):"$"+e.toFixed(6)),0[Q(oe,{get when(){return e().time},get children(){var r=Sn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),be(r,Q(Nn,{}),o),be(r,(()=>e().time),null),r}}),Q(oe,{get when(){return e().tokens},get children(){var r=Sn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),be(r,Q(In,{}),o),be(r,(()=>e().tokens),null),r}}),Q(oe,{get when(){return e().cost},get children(){var r=Sn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),be(r,Q(On,{}),o),be(r,(()=>e().cost),null),r}})]})),g),(()=>{const e=wn(),t=e.firstChild,a=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),a.$$click=()=>o("raw"),a.style.setProperty("padding","10px 16px"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),a.style.setProperty("cursor","pointer"),a.style.setProperty("font-size","0.875rem"),a.style.setProperty("font-weight","500"),a.style.setProperty("font-family","inherit"),a.style.setProperty("margin-bottom","-1px"),P((e=>{var o="rendered"===r()?"#1976d2":"inherit",l="rendered"===r()?1:.6,n="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$22&&(null!=(e._v$22=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),l!==e._v$23&&(null!=(e._v$23=l)?t.style.setProperty("opacity",l):t.style.removeProperty("opacity")),n!==e._v$24&&(null!=(e._v$24=n)?t.style.setProperty("border-bottom",n):t.style.removeProperty("border-bottom")),i!==e._v$25&&(null!=(e._v$25=i)?a.style.setProperty("color",i):a.style.removeProperty("color")),d!==e._v$26&&(null!=(e._v$26=d)?a.style.setProperty("opacity",d):a.style.removeProperty("opacity")),s!==e._v$27&&(null!=(e._v$27=s)?a.style.setProperty("border-bottom",s):a.style.removeProperty("border-bottom")),e}),{_v$22:void 0,_v$23:void 0,_v$24:void 0,_v$25:void 0,_v$26:void 0,_v$27:void 0}),e})(),((c=dn()).style.setProperty("padding","16px 20px"),c.style.setProperty("overflow-y","auto"),c.style.setProperty("flex","1"),be(c,Q(oe,{get when(){return"rendered"===r()},get fallback(){{const e=gn();return he(e,Un),P((()=>e.innerHTML=Cn(JSON.stringify(l(),null,2)))),e}},get children(){return m()}})),c),Q(oe,{get when(){return t()},get children(){return[(()=>{const r=Gn(),o=r.firstChild,n=o.firstChild,i=n.firstChild,d=i.firstChild,s=i.nextSibling,m=n.nextSibling;return r.$$click=()=>a(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","space-between"),n.style.setProperty("padding","14px 20px"),n.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),be(i,Q(Fn,{get name(){return Xn(t()?.tool||"",l()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),be(d,(()=>t()?.tool||"Tool Detail")),be(i,Q(oe,{get when(){return t()?.error},get children(){var e=Ln();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>a(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),be(s,Q(En,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),be(m,Q(Vn,{get data(){return t()}})),P((r=>{var t=e.backgroundColor??"#ffffff",a=e.textColor??"#303235";return t!==r._v$28&&(null!=(r._v$28=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),a!==r._v$29&&(null!=(r._v$29=a)?o.style.setProperty("color",a):o.style.removeProperty("color")),r}),{_v$28:void 0,_v$29:void 0}),r})(),((r=dn()).$$click=e=>{e.stopPropagation(),a(null)},r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1003"),r.style.setProperty("background-color","rgba(0,0,0,0.35)"),r)];var r}})];var g,c,u,x},Qn=(ce(["click"]),ge('')),Yn=ge(''),Jn=ge(''),jn=ge(""),qn=ge("
"),ei=ge('
'),ri=ge("
'),td=ge("
");const ad=e=>{let r;const[o]=ee(e,["onOpen","onClose","isOpen","value"]),[t,a]=(_((()=>{r&&(r.innerHTML=function(e){return(e=(e="string"!=typeof e?JSON.stringify(e,void 0,2):e).replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}))}(JSON.stringify(e?.value,void 0,2)))})),$(o.isOpen??!1)),l=(A((()=>{Oe(e.isOpen)||e.isOpen===t()||i()})),e=>{e.stopPropagation()}),n=()=>{a(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?n():(a(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return Q(oe,{get when(){return t()},get children(){return[(be(a=rd(),Ne),a),(a=od(),o=a.firstChild,t=o.nextSibling.nextSibling.firstChild.firstChild,a.style.setProperty("z-index","1100"),a.addEventListener("click",n),be(o,Ne),t.style.setProperty("background-color","transparent"),t.style.setProperty("margin-left","20px"),t.style.setProperty("margin-right","20px"),t.addEventListener("click",l),t.addEventListener("pointerdown",l),be(t,(()=>{const o=M((()=>!!e.value));return()=>{return o()&&(t=(e=td()).firstChild,e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px"),"function"==typeof(a=r)?Se(a,t):r=t,e);var e,t,a}})()),a)];var o,t,a}})},ld=ge('
');function jn(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})):""}const qn=()=>fn(),ei=()=>$n(),ri=()=>Pn(),oi=()=>An(),ti=()=>Mn(),ai=()=>wn(),li=()=>_n(),ni=e=>{{const r=Tn();return P((o=>{var t=e.size,a=e.size;return t!==o._v$&&he(r,"width",o._v$=t),a!==o._v$2&&he(r,"height",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),r}},ii=e=>{const r=e.size??24,o=nn(e.name);if(o){const t=Ln();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),r+"px"!=null?t.style.setProperty("width",r+"px"):t.style.removeProperty("width"),r+"px"!=null?t.style.setProperty("height",r+"px"):t.style.removeProperty("height"),$e(t,(()=>o.icon({size:Math.round(.55*r),color:"white"}))),P((r=>{var a=e.borderRadius??"50%",l=e.bgColor??o.color;return a!==r._v$3&&(null!=(r._v$3=a)?t.style.setProperty("border-radius",a):t.style.removeProperty("border-radius")),l!==r._v$4&&(null!=(r._v$4=l)?t.style.setProperty("background",l):t.style.removeProperty("background")),r}),{_v$3:void 0,_v$4:void 0}),t}if(e.apiHost){const[o,t]=$(!1);{const a=Ln();return a.style.setProperty("flex-shrink","0"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),r+"px"!=null?a.style.setProperty("width",r+"px"):a.style.removeProperty("width"),r+"px"!=null?a.style.setProperty("height",r+"px"):a.style.removeProperty("height"),a.style.setProperty("overflow","hidden"),$e(a,j(le,{get when(){return!o()},get fallback(){return j(ni,{get size(){return Math.round(.6*r)}})},get children(){const r=Cn();return r.addEventListener("error",(()=>t(!0))),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),P((o=>{var t=e.apiHost+"/api/v1/node-icon/"+e.name,a=e.name;return t!==o._v$5&&he(r,"src",o._v$5=t),a!==o._v$6&&he(r,"alt",o._v$6=a),o}),{_v$5:void 0,_v$6:void 0}),r}})),P((r=>{var t=e.borderRadius??"50%",l=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?a.style.setProperty("border-radius",t):a.style.removeProperty("border-radius")),l!==r._v$8&&(null!=(r._v$8=l)?a.style.setProperty("background",l):a.style.removeProperty("background")),r}),{_v$7:void 0,_v$8:void 0}),a}}{const o=Ln();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),r+"px"!=null?o.style.setProperty("width",r+"px"):o.style.removeProperty("width"),r+"px"!=null?o.style.setProperty("height",r+"px"):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),$e(o,j(ni,{get size(){return Math.round(.6*r)}})),P((()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius"))),o}},di=(e,r)=>Array.isArray(r)&&(r=r.find((r=>r.name===e)),r?.toolNode?.name)?r.toolNode.name:e,si=e=>{const[r,o]=$(e.defaultOpen??!1),t=()=>o(!r());{const o=Gn(),a=o.firstChild,l=a.firstChild,n=l.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),a.$$click=t,a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("width","100%"),a.style.setProperty("padding","10px 12px"),a.style.setProperty("cursor","pointer"),a.style.setProperty("user-select","none"),a.style.setProperty("gap","8px"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("font-family","inherit"),a.style.setProperty("color","inherit"),a.style.setProperty("text-align","left"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),l.style.setProperty("flex","1"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("text-align","left"),$e(l,(()=>e.header)),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","center"),n.style.setProperty("flex-shrink","0"),n.style.setProperty("transition","transform 0.2s ease"),n.style.setProperty("opacity","0.5"),$e(n,j(ei,{})),$e(o,j(le,{get when(){return r()},get children(){var r=Ln();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),$e(r,(()=>e.children)),r}}),null),P((t=>{var l="1px solid "+(e.borderColor||"rgba(0,0,0,0.1)"),i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return l!==t._v$9&&(null!=(t._v$9=l)?o.style.setProperty("border",l):o.style.removeProperty("border")),i!==t._v$10&&(null!=(t._v$10=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$11&&he(a,"aria-expanded",t._v$11=d),s!==t._v$12&&(null!=(t._v$12=s)?n.style.setProperty("transform",s):n.style.removeProperty("transform")),t}),{_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0}),o}},mi={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},gi=e=>{{const r=En();return ye(r,mi),P((()=>r.innerHTML=jn(JSON.stringify(e.data,null,2)))),r}},ci=e=>{ct.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return j(le,{get when(){return r()},get fallback(){return j(le,{get when(){return e.content},get fallback(){return(e=Nn()).style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e;var e},get children(){const r=Bn();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),P((()=>r.innerHTML=ct.parse(e.content))),r}})},get children(){return j(gi,{get data(){return r()}})}})},ui=e=>{var r=e.artifact?.type;const o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>e.startsWith("FILE-STORAGE::")&&r?r+`/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=`+e.replace("FILE-STORAGE::",""):e)(o,e.apiHost,e.chatflowid,e.chatId);{const o=On(),a=o.firstChild;return he(a,"src",r),a.style.setProperty("max-height","400px"),a.style.setProperty("max-width","100%"),a.style.setProperty("object-fit","contain"),a.style.setProperty("display","block"),P((r=>{var l={...t,display:"flex","justify-content":"center"},n="artifact-"+e.index;return r._v$13=ye(o,l,r._v$13),n!==r._v$14&&he(a,"alt",r._v$14=n),r}),{_v$13:void 0,_v$14:void 0}),o}}if("html"===r){const e=Ln();return P((r=>{var a={...t,padding:"8px 12px","font-size":"0.85rem"},l=Ma.sanitize(o);return r._v$15=ye(e,a,r._v$15),l!==r._v$16&&(e.innerHTML=r._v$16=l),r}),{_v$15:void 0,_v$16:void 0}),e}{const e=Ln();return $e(e,j(ci,{content:o})),P((r=>ye(e,{...t,padding:"8px 12px"},r))),e}},xi=e=>{const r=async()=>{if(e.apiHost)try{var r=await(await fetch(e.apiHost+"/api/v1/openai-assistants-file/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})})).blob(),o=window.URL.createObjectURL(r),t=document.createElement("a");t.href=o,t.download=e.annotation.fileName,document.body.appendChild(t),t.click(),t.remove(),window.URL.revokeObjectURL(o)}catch(r){console.error("Download failed:",r)}};{const o=In(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),$e(t,(()=>e.annotation.fileName)),$e(o,j(li,{}),null),P((()=>he(o,"title","Download "+e.annotation.fileName))),o}},pi=e=>{const[r,o]=$("rendered"),[t,a]=$(null),l=()=>e.node?.data?bn(e.node.data):{},n=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),i={"margin-bottom":"16px"},d={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},s={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},m=()=>{const r=l();var o,t,m,g,c,u,x;return r?(g=(m=(t=(o=Wn()).firstChild).firstChild).nextSibling,x=(u=(c=t.nextSibling).firstChild).nextSibling,$e(o,j(le,{get when(){return r.output?.availableTools?.length},get children(){var o=Hn(),t=o.firstChild,a=t.nextSibling;return ye(o,i),ye(t,d),ye(a,s),$e(a,j(ae,{get each(){return r.output.availableTools},children:o=>{a=o.name,l=r.output?.usedTools;const t=Array.isArray(l)&&l.some((e=>e.tool===a));var a,l;const i=o.toolNode?.name||o.name;return j(si,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[j(ii,{name:i,get apiHost(){return e.apiHost},size:22}),($e(r=kn(),(()=>o.toolNode?.label||o.name)),r),j(le,{when:t,get children(){const e=Kn();return P((r=>ye(e,n("#E8F5E9","#2E7D32"),r))),e}})];var r},get children(){return j(gi,{data:o})}})}})),o}}),t),ye(t,i),ye(m,d),ye(g,s),$e(g,j(le,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&0r.input.code)),e}})},get children(){return j(gi,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){var o=Ln();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),$e(o,j(ae,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",l=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),n=(e,r,o,t)=>{{const a=kn();return $e(a,o),P((o=>ye(a,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o))),a}};return(i=Ln()).style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),$e(i,(()=>n(l.background,l.color,t)),null),$e(i,j(le,{get when(){return r.name},get children(){return n(l.background,l.color,r.name,{"margin-left":"4px"})}}),null),$e(i,j(le,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&0j(si,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[j(ai,{}),($e(r=kn(),(()=>e.function?.name||e.name||"Tool Call")),r),M((()=>n("#FFF3E0","#E65100","Called")))];var r},get children(){return j(gi,{data:e})}})})}}),null),$e(i,j(le,{get when(){return"tool"===t&&r.name},get children(){var e=Dn(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),$e(e,j(ai,{}),o),o.style.setProperty("font-size","0.85rem"),$e(o,(()=>r.name)),$e(e,j(le,{get when(){return r.tool_call_id},get children(){return n("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),$e(i,j(le,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){var t=Ln();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),$e(t,j(ae,{get each(){return r.additional_kwargs.usedTools},children:r=>j(le,{when:r,get children(){const t=Rn(),l=t.firstChild;return t.$$click=()=>a(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),$e(t,j(ii,{get name(){return di(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),$e(t,(()=>r.tool),null),P((e=>{var o=r.error?"#FFEBEE":"#F3E5F5",a=r.error?"#C62828":"#7B1FA2",l="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),a!==e._v$18&&(null!=(e._v$18=a)?t.style.setProperty("color",a):t.style.removeProperty("color")),l!==e._v$19&&(null!=(e._v$19=l)?t.style.setProperty("border",l):t.style.removeProperty("border")),e}),{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),$e(i,j(le,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){var o=Ln();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),$e(o,j(ae,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>j(ui,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),$e(i,j(le,{get when(){return"user"===t&&Array.isArray(r.content)&&0{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=`+r.name:r.name;{const e=On(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),he(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),P((()=>he(r,"alt","file-upload-"+o()))),e}}})),o}}),null),$e(i,j(le,{get when(){return"string"==typeof r.content&&r.content},get children(){var e=Ln();return e.style.setProperty("margin-top","4px"),$e(e,j(ci,{get content(){return r.content}})),e}}),null),$e(i,j(le,{get when(){return!r.content},get children(){var e=Nn();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),$e(i,j(le,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){var o=Ln();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),$e(o,j(ae,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>j(xi,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i;var i})(o,r)})),o}})),ye(c,i),ye(u,d),ye(x,s),$e(x,j(le,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return j(le,{get when(){return r.output?.conditions},get fallback(){return j(gi,{get data(){return r.output?.form||r.output?.http}})},get children(){return(e=>j(ae,{each:e.filter((e=>e.isFulfilled)),children:(e,r)=>{{const o=Fn(),t=o.firstChild,a=t.firstChild,l=a.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),a.style.setProperty("font-size","0.85rem"),$e(a,(()=>{const o=M((()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2)));return()=>o()?"Else condition fulfilled":"Condition "+r()})()),$e(o,j(le,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){var r=Ln();return r.style.setProperty("margin-top","4px"),$e(r,j(gi,{data:e})),r}}),null),P((e=>ye(l,n("#E8F5E9","#2E7D32"),e))),o}}}))(r.output.conditions)}})},get children(){return[j(le,{get when(){return r.output?.usedTools?.length},get children(){var o=Ln();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),$e(o,j(ae,{get each(){return r.output.usedTools},children:o=>j(le,{when:o,get children(){const t=Rn(),l=t.firstChild;return t.$$click=()=>a(o),$e(t,j(ii,{get name(){return di(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),$e(t,(()=>o.tool),null),P((e=>ye(t,{...n(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e))),t}})})),o}}),j(le,{get when(){return r.output?.artifacts?.length},get children(){var o=Ln();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),$e(o,j(ae,{get each(){return r.output.artifacts},children:(r,o)=>j(ui,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),j(le,{get when(){return r.output?.content},get fallback(){return j(le,{get when(){return r.output},get children(){var e=Nn();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return j(ci,{get content(){return r.output.content}})}}),j(le,{get when(){return r.output?.fileAnnotations?.length},get children(){var o=Ln();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),$e(o,j(ae,{get each(){return r.output.fileAnnotations},children:r=>j(xi,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),$e(o,j(le,{get when(){return r.error},get children(){const e=Un(),o=e.firstChild,t=o.nextSibling,a=t.firstChild;return ye(e,i),a.style.setProperty("padding","8px 12px"),a.style.setProperty("border-radius","6px"),a.style.setProperty("border","1px solid #F44336"),a.style.setProperty("background","rgba(244,67,54,0.08)"),a.style.setProperty("color","#C62828"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("white-space","pre-wrap"),a.style.setProperty("word-break","break-word"),$e(a,(()=>{const e=M((()=>"object"==typeof r.error));return()=>e()?JSON.stringify(r.error,null,2):r.error})()),P((e=>{var r={...d,color:"#C62828"},a={...s,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return e._v$20=ye(o,r,e._v$20),e._v$21=ye(t,a,e._v$21),e}),{_v$20:void 0,_v$21:void 0}),e}}),null),$e(o,j(le,{get when(){return M((()=>!!r.state))()&&0e.node.label)),x.style.setProperty("display","flex"),x.style.setProperty("flex-wrap","wrap"),x.style.setProperty("align-items","center"),x.style.setProperty("gap","8px"),x.style.setProperty("flex","1"),$e(x,j(le,{get when(){return(e=>{var r;return e=e?.output,e&&(r={},e.timeMetadata?.delta&&(r.time=(e.timeMetadata.delta/1e3).toFixed(2)+" seconds"),e.usageMetadata?.total_tokens&&(r.tokens=e.usageMetadata.total_tokens+" tokens"),null!=e.usageMetadata?.total_cost&&0<=Number(e.usageMetadata.total_cost)&&(e=Number(e.usageMetadata.total_cost),r.cost=.01<=e?"$"+e.toFixed(2):"$"+e.toFixed(6)),0[j(le,{get when(){return e().time},get children(){var r=Rn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),$e(r,j(ri,{}),o),$e(r,(()=>e().time),null),r}}),j(le,{get when(){return e().tokens},get children(){var r=Rn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),$e(r,j(ti,{}),o),$e(r,(()=>e().tokens),null),r}}),j(le,{get when(){return e().cost},get children(){var r=Rn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),$e(r,j(oi,{}),o),$e(r,(()=>e().cost),null),r}})]})),g),(()=>{const e=Qn(),t=e.firstChild,a=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),a.$$click=()=>o("raw"),a.style.setProperty("padding","10px 16px"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),a.style.setProperty("cursor","pointer"),a.style.setProperty("font-size","0.875rem"),a.style.setProperty("font-weight","500"),a.style.setProperty("font-family","inherit"),a.style.setProperty("margin-bottom","-1px"),P((e=>{var o="rendered"===r()?"#1976d2":"inherit",l="rendered"===r()?1:.6,n="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$22&&(null!=(e._v$22=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),l!==e._v$23&&(null!=(e._v$23=l)?t.style.setProperty("opacity",l):t.style.removeProperty("opacity")),n!==e._v$24&&(null!=(e._v$24=n)?t.style.setProperty("border-bottom",n):t.style.removeProperty("border-bottom")),i!==e._v$25&&(null!=(e._v$25=i)?a.style.setProperty("color",i):a.style.removeProperty("color")),d!==e._v$26&&(null!=(e._v$26=d)?a.style.setProperty("opacity",d):a.style.removeProperty("opacity")),s!==e._v$27&&(null!=(e._v$27=s)?a.style.setProperty("border-bottom",s):a.style.removeProperty("border-bottom")),e}),{_v$22:void 0,_v$23:void 0,_v$24:void 0,_v$25:void 0,_v$26:void 0,_v$27:void 0}),e})(),((c=Ln()).style.setProperty("padding","16px 20px"),c.style.setProperty("overflow-y","auto"),c.style.setProperty("flex","1"),$e(c,j(le,{get when(){return"rendered"===r()},get fallback(){{const e=En();return ye(e,mi),P((()=>e.innerHTML=jn(JSON.stringify(l(),null,2)))),e}},get children(){return m()}})),c),j(le,{get when(){return t()},get children(){return[(()=>{const r=Jn(),o=r.firstChild,n=o.firstChild,i=n.firstChild,d=i.firstChild,s=i.nextSibling,m=n.nextSibling;return r.$$click=()=>a(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","space-between"),n.style.setProperty("padding","14px 20px"),n.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),$e(i,j(ii,{get name(){return di(t()?.tool||"",l()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),$e(d,(()=>t()?.tool||"Tool Detail")),$e(i,j(le,{get when(){return t()?.error},get children(){var e=Yn();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>a(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),$e(s,j(qn,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),$e(m,j(gi,{get data(){return t()}})),P((r=>{var t=e.backgroundColor??"#ffffff",a=e.textColor??"#303235";return t!==r._v$28&&(null!=(r._v$28=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),a!==r._v$29&&(null!=(r._v$29=a)?o.style.setProperty("color",a):o.style.removeProperty("color")),r}),{_v$28:void 0,_v$29:void 0}),r})(),((r=Ln()).$$click=e=>{e.stopPropagation(),a(null)},r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1003"),r.style.setProperty("background-color","rgba(0,0,0,0.35)"),r)];var r}})];var g,c,u,x},hi=(pe(["click"]),xe('')),vi=xe(''),Si=xe(''),yi=xe(""),bi=xe("
"),fi=xe('
'),$i=xe("
'),Ad=xe("
");const Md=e=>{let r;const[o]=te(e,["onOpen","onClose","isOpen","value"]),[t,a]=(L((()=>{r&&(r.innerHTML=function(e){return(e=(e="string"!=typeof e?JSON.stringify(e,void 0,2):e).replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}))}(JSON.stringify(e?.value,void 0,2)))})),$(o.isOpen??!1)),l=(A((()=>{Ye(e.isOpen)||e.isOpen===t()||i()})),e=>{e.stopPropagation()}),n=()=>{a(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?n():(a(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return j(le,{get when(){return t()},get children(){return[($e(a=$d(),ke),a),(a=Pd(),o=a.firstChild,t=o.nextSibling.nextSibling.firstChild.firstChild,a.style.setProperty("z-index","1100"),a.addEventListener("click",n),$e(o,ke),t.style.setProperty("background-color","transparent"),t.style.setProperty("margin-left","20px"),t.style.setProperty("margin-right","20px"),t.addEventListener("click",l),t.addEventListener("pointerdown",l),$e(t,(()=>{const o=M((()=>!!e.value));return()=>{return o()&&(t=(e=Ad()).firstChild,e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px"),"function"==typeof(a=r)?fe(a,t):r=t,e);var e,t,a}})()),a)];var o,t,a}})},wd=xe('
');function Xn(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})):""}const Hn=()=>mn(),Un=()=>gn(),Vn=()=>cn(),Wn=()=>un(),Kn=()=>xn(),zn=()=>pn(),Zn=()=>hn(),Qn=e=>{{const r=vn();return f((o=>{var t=e.size,a=e.size;return t!==o._v$&&de(r,"width",o._v$=t),a!==o._v$2&&de(r,"height",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),r}},Yn=e=>{const r=e.size??24,o=Ql(e.name);if(o){const t=Sn();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),r+"px"!=null?t.style.setProperty("width",r+"px"):t.style.removeProperty("width"),r+"px"!=null?t.style.setProperty("height",r+"px"):t.style.removeProperty("height"),xe(t,(()=>o.icon({size:Math.round(.55*r),color:"white"}))),f((r=>{var a=e.borderRadius??"50%",l=e.bgColor??o.color;return a!==r._v$3&&(null!=(r._v$3=a)?t.style.setProperty("border-radius",a):t.style.removeProperty("border-radius")),l!==r._v$4&&(null!=(r._v$4=l)?t.style.setProperty("background",l):t.style.removeProperty("background")),r}),{_v$3:void 0,_v$4:void 0}),t}if(e.apiHost){const[o,t]=b(!1);{const a=Sn();return a.style.setProperty("flex-shrink","0"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),r+"px"!=null?a.style.setProperty("width",r+"px"):a.style.removeProperty("width"),r+"px"!=null?a.style.setProperty("height",r+"px"):a.style.removeProperty("height"),a.style.setProperty("overflow","hidden"),xe(a,V(J,{get when(){return!o()},get fallback(){return V(Qn,{get size(){return Math.round(.6*r)}})},get children(){const r=yn();return r.addEventListener("error",(()=>t(!0))),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),f((o=>{var t=e.apiHost+"/api/v1/node-icon/"+e.name,a=e.name;return t!==o._v$5&&de(r,"src",o._v$5=t),a!==o._v$6&&de(r,"alt",o._v$6=a),o}),{_v$5:void 0,_v$6:void 0}),r}})),f((r=>{var t=e.borderRadius??"50%",l=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?a.style.setProperty("border-radius",t):a.style.removeProperty("border-radius")),l!==r._v$8&&(null!=(r._v$8=l)?a.style.setProperty("background",l):a.style.removeProperty("background")),r}),{_v$7:void 0,_v$8:void 0}),a}}{const o=Sn();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),r+"px"!=null?o.style.setProperty("width",r+"px"):o.style.removeProperty("width"),r+"px"!=null?o.style.setProperty("height",r+"px"):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),xe(o,V(Qn,{get size(){return Math.round(.6*r)}})),f((()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius"))),o}},Jn=(e,r)=>Array.isArray(r)&&(r=r.find((r=>r.name===e)),r?.toolNode?.name)?r.toolNode.name:e,jn=e=>{const[r,o]=b(e.defaultOpen??!1),t=()=>o(!r());{const o=bn(),a=o.firstChild,l=a.firstChild,n=l.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),a.$$click=t,a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("width","100%"),a.style.setProperty("padding","10px 12px"),a.style.setProperty("cursor","pointer"),a.style.setProperty("user-select","none"),a.style.setProperty("gap","8px"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("font-family","inherit"),a.style.setProperty("color","inherit"),a.style.setProperty("text-align","left"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),l.style.setProperty("flex","1"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("text-align","left"),xe(l,(()=>e.header)),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","center"),n.style.setProperty("flex-shrink","0"),n.style.setProperty("transition","transform 0.2s ease"),n.style.setProperty("opacity","0.5"),xe(n,V(Un,{})),xe(o,V(J,{get when(){return r()},get children(){var r=Sn();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),xe(r,(()=>e.children)),r}}),null),f((t=>{var l="1px solid "+(e.borderColor||"rgba(0,0,0,0.1)"),i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return l!==t._v$9&&(null!=(t._v$9=l)?o.style.setProperty("border",l):o.style.removeProperty("border")),i!==t._v$10&&(null!=(t._v$10=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$11&&de(a,"aria-expanded",t._v$11=d),s!==t._v$12&&(null!=(t._v$12=s)?n.style.setProperty("transform",s):n.style.removeProperty("transform")),t}),{_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0}),o}},qn={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},ei=e=>{{const r=fn();return ge(r,qn),f((()=>r.innerHTML=Xn(JSON.stringify(e.data,null,2)))),r}},ri=e=>{it.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return V(J,{get when(){return r()},get fallback(){return V(J,{get when(){return e.content},get fallback(){return(e=Pn()).style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e;var e},get children(){const r=$n();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),f((()=>r.innerHTML=it.parse(e.content))),r}})},get children(){return V(ei,{get data(){return r()}})}})},oi=e=>{var r=e.artifact?.type;const o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>e.startsWith("FILE-STORAGE::")&&r?r+`/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=`+e.replace("FILE-STORAGE::",""):e)(o,e.apiHost,e.chatflowid,e.chatId);{const o=An(),a=o.firstChild;return de(a,"src",r),a.style.setProperty("max-height","400px"),a.style.setProperty("max-width","100%"),a.style.setProperty("object-fit","contain"),a.style.setProperty("display","block"),f((r=>{var l={...t,display:"flex","justify-content":"center"},n="artifact-"+e.index;return r._v$13=ge(o,l,r._v$13),n!==r._v$14&&de(a,"alt",r._v$14=n),r}),{_v$13:void 0,_v$14:void 0}),o}}if("html"===r){const e=Sn();return f((r=>{var a={...t,padding:"8px 12px","font-size":"0.85rem"},l=ha.sanitize(o);return r._v$15=ge(e,a,r._v$15),l!==r._v$16&&(e.innerHTML=r._v$16=l),r}),{_v$15:void 0,_v$16:void 0}),e}{const e=Sn();return xe(e,V(ri,{content:o})),f((r=>ge(e,{...t,padding:"8px 12px"},r))),e}},ti=e=>{const r=async()=>{if(e.apiHost)try{var r=await(await fetch(e.apiHost+"/api/v1/openai-assistants-file/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})})).blob(),o=window.URL.createObjectURL(r),t=document.createElement("a");t.href=o,t.download=e.annotation.fileName,document.body.appendChild(t),t.click(),t.remove(),window.URL.revokeObjectURL(o)}catch(r){console.error("Download failed:",r)}};{const o=Mn(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),xe(t,(()=>e.annotation.fileName)),xe(o,V(Zn,{}),null),f((()=>de(o,"title","Download "+e.annotation.fileName))),o}},ai=e=>{const[r,o]=b("rendered"),[t,a]=b(null),l=()=>e.node?.data?sn(e.node.data):{},n=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),i={"margin-bottom":"16px"},d={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},s={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},m=()=>{const r=l();var o,t,m,g,c,u,x;return r?(g=(m=(t=(o=Nn()).firstChild).firstChild).nextSibling,x=(u=(c=t.nextSibling).firstChild).nextSibling,xe(o,V(J,{get when(){return r.output?.availableTools?.length},get children(){var o=Gn(),t=o.firstChild,a=t.nextSibling;return ge(o,i),ge(t,d),ge(a,s),xe(a,V(Y,{get each(){return r.output.availableTools},children:o=>{a=o.name,l=r.output?.usedTools;const t=Array.isArray(l)&&l.some((e=>e.tool===a));var a,l;const i=o.toolNode?.name||o.name;return V(jn,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[V(Yn,{name:i,get apiHost(){return e.apiHost},size:22}),(xe(r=wn(),(()=>o.toolNode?.label||o.name)),r),V(J,{when:t,get children(){const e=On();return f((r=>ge(e,n("#E8F5E9","#2E7D32"),r))),e}})];var r},get children(){return V(ei,{data:o})}})}})),o}}),t),ge(t,i),ge(m,d),ge(g,s),xe(g,V(J,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&0r.input.code)),e}})},get children(){return V(ei,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){var o=Sn();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),xe(o,V(Y,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",l=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),n=(e,r,o,t)=>{{const a=wn();return xe(a,o),f((o=>ge(a,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o))),a}};return(i=Sn()).style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),xe(i,(()=>n(l.background,l.color,t)),null),xe(i,V(J,{get when(){return r.name},get children(){return n(l.background,l.color,r.name,{"margin-left":"4px"})}}),null),xe(i,V(J,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&0V(jn,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[V(zn,{}),(xe(r=wn(),(()=>e.function?.name||e.name||"Tool Call")),r),P((()=>n("#FFF3E0","#E65100","Called")))];var r},get children(){return V(ei,{data:e})}})})}}),null),xe(i,V(J,{get when(){return"tool"===t&&r.name},get children(){var e=_n(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),xe(e,V(zn,{}),o),o.style.setProperty("font-size","0.85rem"),xe(o,(()=>r.name)),xe(e,V(J,{get when(){return r.tool_call_id},get children(){return n("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),xe(i,V(J,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){var t=Sn();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),xe(t,V(Y,{get each(){return r.additional_kwargs.usedTools},children:r=>V(J,{when:r,get children(){const t=Tn(),l=t.firstChild;return t.$$click=()=>a(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),xe(t,V(Yn,{get name(){return Jn(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),xe(t,(()=>r.tool),null),f((e=>{var o=r.error?"#FFEBEE":"#F3E5F5",a=r.error?"#C62828":"#7B1FA2",l="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),a!==e._v$18&&(null!=(e._v$18=a)?t.style.setProperty("color",a):t.style.removeProperty("color")),l!==e._v$19&&(null!=(e._v$19=l)?t.style.setProperty("border",l):t.style.removeProperty("border")),e}),{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),xe(i,V(J,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){var o=Sn();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),xe(o,V(Y,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>V(oi,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),xe(i,V(J,{get when(){return"user"===t&&Array.isArray(r.content)&&0{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=`+r.name:r.name;{const e=An(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),de(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),f((()=>de(r,"alt","file-upload-"+o()))),e}}})),o}}),null),xe(i,V(J,{get when(){return"string"==typeof r.content&&r.content},get children(){var e=Sn();return e.style.setProperty("margin-top","4px"),xe(e,V(ri,{get content(){return r.content}})),e}}),null),xe(i,V(J,{get when(){return!r.content},get children(){var e=Pn();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),xe(i,V(J,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){var o=Sn();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),xe(o,V(Y,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>V(ti,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i;var i})(o,r)})),o}})),ge(c,i),ge(u,d),ge(x,s),xe(x,V(J,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return V(J,{get when(){return r.output?.conditions},get fallback(){return V(ei,{get data(){return r.output?.form||r.output?.http}})},get children(){return(e=>V(Y,{each:e.filter((e=>e.isFulfilled)),children:(e,r)=>{{const o=Ln(),t=o.firstChild,a=t.firstChild,l=a.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),a.style.setProperty("font-size","0.85rem"),xe(a,(()=>{const o=P((()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2)));return()=>o()?"Else condition fulfilled":"Condition "+r()})()),xe(o,V(J,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){var r=Sn();return r.style.setProperty("margin-top","4px"),xe(r,V(ei,{data:e})),r}}),null),f((e=>ge(l,n("#E8F5E9","#2E7D32"),e))),o}}}))(r.output.conditions)}})},get children(){return[V(J,{get when(){return r.output?.usedTools?.length},get children(){var o=Sn();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),xe(o,V(Y,{get each(){return r.output.usedTools},children:o=>V(J,{when:o,get children(){const t=Tn(),l=t.firstChild;return t.$$click=()=>a(o),xe(t,V(Yn,{get name(){return Jn(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),xe(t,(()=>o.tool),null),f((e=>ge(t,{...n(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e))),t}})})),o}}),V(J,{get when(){return r.output?.artifacts?.length},get children(){var o=Sn();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),xe(o,V(Y,{get each(){return r.output.artifacts},children:(r,o)=>V(oi,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),V(J,{get when(){return r.output?.content},get fallback(){return V(J,{get when(){return r.output},get children(){var e=Pn();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return V(ri,{get content(){return r.output.content}})}}),V(J,{get when(){return r.output?.fileAnnotations?.length},get children(){var o=Sn();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),xe(o,V(Y,{get each(){return r.output.fileAnnotations},children:r=>V(ti,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),xe(o,V(J,{get when(){return r.error},get children(){const e=En(),o=e.firstChild,t=o.nextSibling,a=t.firstChild;return ge(e,i),a.style.setProperty("padding","8px 12px"),a.style.setProperty("border-radius","6px"),a.style.setProperty("border","1px solid #F44336"),a.style.setProperty("background","rgba(244,67,54,0.08)"),a.style.setProperty("color","#C62828"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("white-space","pre-wrap"),a.style.setProperty("word-break","break-word"),xe(a,(()=>{const e=P((()=>"object"==typeof r.error));return()=>e()?JSON.stringify(r.error,null,2):r.error})()),f((e=>{var r={...d,color:"#C62828"},a={...s,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return e._v$20=ge(o,r,e._v$20),e._v$21=ge(t,a,e._v$21),e}),{_v$20:void 0,_v$21:void 0}),e}}),null),xe(o,V(J,{get when(){return P((()=>!!r.state))()&&0e.node.label)),x.style.setProperty("display","flex"),x.style.setProperty("flex-wrap","wrap"),x.style.setProperty("align-items","center"),x.style.setProperty("gap","8px"),x.style.setProperty("flex","1"),xe(x,V(J,{get when(){return(e=>{var r;return e=e?.output,e&&(r={},e.timeMetadata?.delta&&(r.time=(e.timeMetadata.delta/1e3).toFixed(2)+" seconds"),e.usageMetadata?.total_tokens&&(r.tokens=e.usageMetadata.total_tokens+" tokens"),null!=e.usageMetadata?.total_cost&&0<=Number(e.usageMetadata.total_cost)&&(e=Number(e.usageMetadata.total_cost),r.cost=.01<=e?"$"+e.toFixed(2):"$"+e.toFixed(6)),0[V(J,{get when(){return e().time},get children(){var r=Tn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),xe(r,V(Vn,{}),o),xe(r,(()=>e().time),null),r}}),V(J,{get when(){return e().tokens},get children(){var r=Tn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),xe(r,V(Kn,{}),o),xe(r,(()=>e().tokens),null),r}}),V(J,{get when(){return e().cost},get children(){var r=Tn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),xe(r,V(Wn,{}),o),xe(r,(()=>e().cost),null),r}})]})),g),(()=>{const e=Dn(),t=e.firstChild,a=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),a.$$click=()=>o("raw"),a.style.setProperty("padding","10px 16px"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),a.style.setProperty("cursor","pointer"),a.style.setProperty("font-size","0.875rem"),a.style.setProperty("font-weight","500"),a.style.setProperty("font-family","inherit"),a.style.setProperty("margin-bottom","-1px"),f((e=>{var o="rendered"===r()?"#1976d2":"inherit",l="rendered"===r()?1:.6,n="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$22&&(null!=(e._v$22=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),l!==e._v$23&&(null!=(e._v$23=l)?t.style.setProperty("opacity",l):t.style.removeProperty("opacity")),n!==e._v$24&&(null!=(e._v$24=n)?t.style.setProperty("border-bottom",n):t.style.removeProperty("border-bottom")),i!==e._v$25&&(null!=(e._v$25=i)?a.style.setProperty("color",i):a.style.removeProperty("color")),d!==e._v$26&&(null!=(e._v$26=d)?a.style.setProperty("opacity",d):a.style.removeProperty("opacity")),s!==e._v$27&&(null!=(e._v$27=s)?a.style.setProperty("border-bottom",s):a.style.removeProperty("border-bottom")),e}),{_v$22:void 0,_v$23:void 0,_v$24:void 0,_v$25:void 0,_v$26:void 0,_v$27:void 0}),e})(),((c=Sn()).style.setProperty("padding","16px 20px"),c.style.setProperty("overflow-y","auto"),c.style.setProperty("flex","1"),xe(c,V(J,{get when(){return"rendered"===r()},get fallback(){{const e=fn();return ge(e,qn),f((()=>e.innerHTML=Xn(JSON.stringify(l(),null,2)))),e}},get children(){return m()}})),c),V(J,{get when(){return t()},get children(){return[(()=>{const r=Fn(),o=r.firstChild,n=o.firstChild,i=n.firstChild,d=i.firstChild,s=i.nextSibling,m=n.nextSibling;return r.$$click=()=>a(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","space-between"),n.style.setProperty("padding","14px 20px"),n.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),xe(i,V(Yn,{get name(){return Jn(t()?.tool||"",l()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),xe(d,(()=>t()?.tool||"Tool Detail")),xe(i,V(J,{get when(){return t()?.error},get children(){var e=Rn();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>a(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),xe(s,V(Hn,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),xe(m,V(ei,{get data(){return t()}})),f((r=>{var t=e.backgroundColor??"#ffffff",a=e.textColor??"#303235";return t!==r._v$28&&(null!=(r._v$28=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),a!==r._v$29&&(null!=(r._v$29=a)?o.style.setProperty("color",a):o.style.removeProperty("color")),r}),{_v$28:void 0,_v$29:void 0}),r})(),((r=Sn()).$$click=e=>{e.stopPropagation(),a(null)},r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1003"),r.style.setProperty("background-color","rgba(0,0,0,0.35)"),r)];var r}})];var g,c,u,x},li=(ie(["click"]),ne('')),ni=ne(''),ii=ne(''),di=ne(""),si=ne("
"),mi=ne('
'),gi=ne("
'),ud=ne("
"),xd=e=>{let r;const[o]=Q(e,["onOpen","onClose","isOpen","value"]),[t,a]=(_((()=>{var o;r&&(r.innerHTML=(o=(o="string"!=typeof(o=JSON.stringify(e?.value,void 0,2))?JSON.stringify(o,void 0,2):o).replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})))})),b(o.isOpen??!1)),l=($((()=>{Fe(e.isOpen)||e.isOpen===t()||i()})),e=>{e.stopPropagation()}),n=()=>{a(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?n():(a(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return V(J,{get when(){return t()},get children(){return[(xe(a=gd(),_e),a),(a=cd(),o=a.firstChild,t=o.nextSibling.nextSibling.firstChild.firstChild,a.style.setProperty("z-index","1100"),a.addEventListener("click",n),xe(o,_e),t.style.setProperty("background-color","transparent"),t.style.setProperty("margin-left","20px"),t.style.setProperty("margin-right","20px"),t.addEventListener("click",l),t.addEventListener("pointerdown",l),xe(t,(()=>{const o=P((()=>!!e.value));return()=>{return o()&&(t=(e=ud()).firstChild,e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px"),"function"==typeof(a=r)?ue(a,t):r=t,e);var e,t,a}})()),a)];var o,t,a}})},pd=ne('
   );
diff --git a/src/components/icons/UpArrowIcon.tsx b/src/components/icons/UpArrowIcon.tsx
new file mode 100644
index 000000000..d8bdb6aba
--- /dev/null
+++ b/src/components/icons/UpArrowIcon.tsx
@@ -0,0 +1,19 @@
+import { JSX } from 'solid-js/jsx-runtime';
+const defaultButtonColor = '#ffffff';
+export const UpArrowIcon = (props: JSX.SvgSVGAttributes) => (
+  
+    
+    
+  
+);
diff --git a/src/components/icons/index.ts b/src/components/icons/index.ts
index f1ba3cf48..34c6cd180 100644
--- a/src/components/icons/index.ts
+++ b/src/components/icons/index.ts
@@ -6,6 +6,7 @@ export * from './CircleDotIcon';
 export * from './DeleteIcon';
 export * from './RecordIcon';
 export * from './SendIcon';
+export * from './UpArrowIcon';
 export * from './TrashIcon';
 export * from './XIcon';
 export * from './TickIcon';
diff --git a/src/components/index.ts b/src/components/index.ts
index deb55f1e9..04eb8e31a 100644
--- a/src/components/index.ts
+++ b/src/components/index.ts
@@ -1,2 +1,3 @@
 export * from './buttons/SendButton';
 export * from './TypingBubble';
+export * from './sessions/ChatRoot';
diff --git a/src/components/inputs/textInput/components/ShortTextInput.tsx b/src/components/inputs/textInput/components/ShortTextInput.tsx
index 029b3a1a5..c63cf5eff 100644
--- a/src/components/inputs/textInput/components/ShortTextInput.tsx
+++ b/src/components/inputs/textInput/components/ShortTextInput.tsx
@@ -6,20 +6,22 @@ type ShortTextInputProps = {
   onInput: (value: string) => void;
   fontSize?: number;
   disabled?: boolean;
+  compact?: boolean;
 } & Omit, 'onInput'>;
 
-const DEFAULT_HEIGHT = 56;
+const LEGACY_HEIGHT = 56;
+const COMPACT_HEIGHT = 42;
 
 export const ShortTextInput = (props: ShortTextInputProps) => {
-  const [local, others] = splitProps(props, ['ref', 'onInput']);
-  const [height, setHeight] = createSignal(56);
+  const [local, others] = splitProps(props, ['ref', 'onInput', 'compact']);
+  const defaultHeight = () => (local.compact ? COMPACT_HEIGHT : LEGACY_HEIGHT);
+  const [height, setHeight] = createSignal(defaultHeight());
 
   // @ts-expect-error: unknown type
   const handleInput = (e) => {
     if (props.ref) {
       if (e.currentTarget.value === '') {
-        // reset height when value is empty
-        setHeight(DEFAULT_HEIGHT);
+        setHeight(defaultHeight());
       } else {
         setHeight(e.currentTarget.scrollHeight - 24);
       }
@@ -30,7 +32,6 @@ export const ShortTextInput = (props: ShortTextInputProps) => {
 
   // @ts-expect-error: unknown type
   const handleKeyDown = (e) => {
-    // Handle Shift + Enter new line
     if (e.keyCode == 13 && e.shiftKey) {
       e.preventDefault();
       e.stopPropagation();
@@ -42,12 +43,16 @@ export const ShortTextInput = (props: ShortTextInputProps) => {
   return (