@chatsystem/client 1.1.25 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +20 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +129 -128
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/assets/index.DheDN0XW.css +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { jsx as F, Fragment as rn, jsxs as De } from "react/jsx-runtime";
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: rgb(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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: rgb(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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}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,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;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{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.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}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.bottom-1\\.5{bottom:.375rem}.bottom-10{bottom:2.5rem}.bottom-\\[120px\\]{bottom:120px}.left-0{left:0}.right-0{right:0}.right-10{right:2.5rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.z-10{z-index:10}.z-\\[999999999\\]{z-index:999999999}.z-\\[99999999\\]{z-index:99999999}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mr-3{margin-right:.75rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-5{margin-top:1.25rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-12{height:3rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[520px\\]{height:520px}.h-auto{height:auto}.max-h-12{max-height:3rem}.min-h-0{min-height:0px}.w-10{width:2.5rem}.w-12{width:3rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.max-w-12{max-width:3rem}.max-w-\\[90\\%\\]{max-width:90%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fadeIn .3s ease-in-out}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.content-center{align-content:center}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border,.border-\\[1px\\]{border-width:1px}.border-l-4{border-left-width:4px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.\\!bg-blue-700{--tw-bg-opacity: 1 !important;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))!important}.\\!bg-gray-400{--tw-bg-opacity: 1 !important;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))!important}.\\!bg-green-700{--tw-bg-opacity: 1 !important;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))!important}.\\!bg-red-700{--tw-bg-opacity: 1 !important;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))!important}.\\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-700{--tw-bg-opacity: 1;background-color:rgb(109 40 217 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.align-baseline{vertical-align:baseline}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow-\\[0_0px_4px_5px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 0 0px 4px 5px rgba(0,0,0,.2);--tw-shadow-colored: 0 0px 4px 5px var(--tw-shadow-color);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 rgb(0 0 0 / .1), 0 4px 6px -4px rgb(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)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px 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{outline-style:solid}.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)}.transition{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-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:\\!bg-blue-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!bg-blue-900:hover{--tw-bg-opacity: 1 !important;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!bg-green-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(22 101 52 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!bg-red-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(153 27 27 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!bg-slate-500:hover{--tw-bg-opacity: 1 !important;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))!important}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity, 1))}.focus\\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(134 239 172 / var(--tw-ring-opacity, 1))}.focus\\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(252 165 165 / var(--tw-ring-opacity, 1))}.focus\\:ring-slate-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(203 213 225 / var(--tw-ring-opacity, 1))}.enabled\\:bg-black:enabled{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.enabled\\:bg-white:enabled{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.disabled\\:opacity-10:disabled{opacity:.1}.dark\\:border-white:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.dark\\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.dark\\:text-black:is(.dark *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.dark\\:hover\\:bg-white:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.dark\\:focus\\:ring-blue-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 58 138 / var(--tw-ring-opacity, 1))}.dark\\:focus\\:ring-green-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(20 83 45 / var(--tw-ring-opacity, 1))}.dark\\:focus\\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(127 29 29 / var(--tw-ring-opacity, 1))}.dark\\:focus\\:ring-slate-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(15 23 42 / var(--tw-ring-opacity, 1))}@media (min-width: 768px){.md\\:bottom-2{bottom:.5rem}.md\\:bottom-\\[110px\\]{bottom:110px}.md\\:left-auto{left:auto}.md\\:right-3{right:.75rem}.md\\:right-\\[40px\\]{right:40px}.md\\:top-auto{top:auto}.md\\:h-\\[600px\\]{height:600px}.md\\:w-\\[400px\\]{width:400px}}.chatBox{overflow-x:hidden}.chatBox ol>li{margin-top:10px;background-color:#0000001a;padding:.5rem 1rem 1rem;border-radius:.5rem}.chatBox ol>li>p:first-child,.chatBox ol>li>li:first-child,.chatBox h3,.chatBox h2{font-size:1.5rem;margin:1rem 0}.chatBox a{display:block;cursor:pointer;color:#00f;font-size:1.1rem;margin:1rem 0}.chatBox a:hover{text-decoration:underline}.chatBox img{display:block;margin:2rem 0;max-width:200px}.chatBox hr{margin:1.5rem 0}.menuTransition-enter{opacity:0;transform:scale(.9) translate(200px)}.menuTransition-enter-active{opacity:1;transform:translate(0);transition:opacity .3s,transform .3s}.menuTransition-exit{opacity:1}.menuTransition-exit-active{opacity:0;transform:scale(.5) translate(400px);transition:opacity .3s,transform .3s}p,li,textarea{font-size:14px}textarea::placeholder{font-size:14px}.assetContainer svg{width:2rem;height:2rem}.launcher{background-color:#7c3aed;border-radius:50%;box-shadow:0 0 4px 5px #0003;width:3rem;height:3rem;bottom:40px;right:40px}.launcher .assetContainer svg{fill:#fff}.assistant .assetContainer svg{fill:#32cf56}@tailwind base;@tailwind components;@tailwind utilities;')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
import { jsx as B, Fragment as rn, jsxs as De } from "react/jsx-runtime";
|
|
2
3
|
import * as Qe from "react";
|
|
3
4
|
import ke, { useState as ge, useEffect as Pe, useRef as we, forwardRef as os, useMemo as xn, useImperativeHandle as Dl, useContext as lt, useCallback as Ut, createContext as kl, useLayoutEffect as wl } from "react";
|
|
4
5
|
import Ml from "lottie-react";
|
|
@@ -176,7 +177,7 @@ function Hl() {
|
|
|
176
177
|
function p(U) {
|
|
177
178
|
return D(U) === c;
|
|
178
179
|
}
|
|
179
|
-
function
|
|
180
|
+
function F(U) {
|
|
180
181
|
return D(U) === o;
|
|
181
182
|
}
|
|
182
183
|
function X(U) {
|
|
@@ -209,7 +210,7 @@ function Hl() {
|
|
|
209
210
|
function _e(U) {
|
|
210
211
|
return D(U) === d;
|
|
211
212
|
}
|
|
212
|
-
Te.AsyncMode = x, Te.ConcurrentMode = I, Te.ContextConsumer = q, Te.ContextProvider = ue, Te.Element = te, Te.ForwardRef = Y, Te.Fragment = M, Te.Lazy = w, Te.Memo = G, Te.Portal = $, Te.Profiler = W, Te.StrictMode = se, Te.Suspense = me, Te.isAsyncMode = Le, Te.isConcurrentMode = p, Te.isContextConsumer =
|
|
213
|
+
Te.AsyncMode = x, Te.ConcurrentMode = I, Te.ContextConsumer = q, Te.ContextProvider = ue, Te.Element = te, Te.ForwardRef = Y, Te.Fragment = M, Te.Lazy = w, Te.Memo = G, Te.Portal = $, Te.Profiler = W, Te.StrictMode = se, Te.Suspense = me, Te.isAsyncMode = Le, Te.isConcurrentMode = p, Te.isContextConsumer = F, Te.isContextProvider = X, Te.isElement = T, Te.isForwardRef = V, Te.isFragment = K, Te.isLazy = z, Te.isMemo = Q, Te.isPortal = ee, Te.isProfiler = ae, Te.isStrictMode = Z, Te.isSuspense = _e, Te.isValidElementType = N, Te.typeOf = D;
|
|
213
214
|
})()), Te;
|
|
214
215
|
}
|
|
215
216
|
var yi;
|
|
@@ -4298,12 +4299,12 @@ const Pf = ({
|
|
|
4298
4299
|
), console.log(
|
|
4299
4300
|
"hasDIsplayedCss",
|
|
4300
4301
|
l.appInternalContext.hasDisplayedCSS
|
|
4301
|
-
), /* @__PURE__ */
|
|
4302
|
+
), /* @__PURE__ */ B(rn, { children: /* @__PURE__ */ B(
|
|
4302
4303
|
of,
|
|
4303
4304
|
{
|
|
4304
4305
|
locale: i?.locale,
|
|
4305
4306
|
messages: i?.translatedText,
|
|
4306
|
-
children: /* @__PURE__ */
|
|
4307
|
+
children: /* @__PURE__ */ B(Bs.Provider, { value: o, children: /* @__PURE__ */ B(Us.Provider, { value: l, children: /* @__PURE__ */ B(Sr.Provider, { value: c, children: /* @__PURE__ */ B(
|
|
4307
4308
|
Fs.Provider,
|
|
4308
4309
|
{
|
|
4309
4310
|
value: f,
|
|
@@ -4323,7 +4324,7 @@ const Pf = ({
|
|
|
4323
4324
|
}).catch(() => n(null)), () => {
|
|
4324
4325
|
t && !r && (URL.revokeObjectURL(t), r = !0);
|
|
4325
4326
|
};
|
|
4326
|
-
}, [e]), /* @__PURE__ */
|
|
4327
|
+
}, [e]), /* @__PURE__ */ B("img", { src: t ?? e, decoding: "async", loading: "eager" });
|
|
4327
4328
|
};
|
|
4328
4329
|
function Bf(e) {
|
|
4329
4330
|
return !!e && typeof e == "object" && "blob" in e && e.blob instanceof Blob;
|
|
@@ -4354,21 +4355,21 @@ function Ff({
|
|
|
4354
4355
|
), () => {
|
|
4355
4356
|
m = !0, d && URL.revokeObjectURL(d);
|
|
4356
4357
|
};
|
|
4357
|
-
}, [e]), c.kind === "loading" ? /* @__PURE__ */
|
|
4358
|
+
}, [e]), c.kind === "loading" ? /* @__PURE__ */ B(
|
|
4358
4359
|
"div",
|
|
4359
4360
|
{
|
|
4360
4361
|
className: "flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 " + (r ?? ""),
|
|
4361
4362
|
style: { minHeight: 96, ...a },
|
|
4362
4363
|
children: i ?? "Loading animation…"
|
|
4363
4364
|
}
|
|
4364
|
-
) : c.kind === "error" ? /* @__PURE__ */
|
|
4365
|
+
) : c.kind === "error" ? /* @__PURE__ */ B(
|
|
4365
4366
|
"div",
|
|
4366
4367
|
{
|
|
4367
4368
|
className: "flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 " + (r ?? ""),
|
|
4368
4369
|
style: { minHeight: 96, ...a },
|
|
4369
4370
|
children: u ?? "Failed to load animation"
|
|
4370
4371
|
}
|
|
4371
|
-
) : c.kind === "json" ? /* @__PURE__ */
|
|
4372
|
+
) : c.kind === "json" ? /* @__PURE__ */ B(
|
|
4372
4373
|
Ml,
|
|
4373
4374
|
{
|
|
4374
4375
|
animationData: c.data,
|
|
@@ -4378,7 +4379,7 @@ function Ff({
|
|
|
4378
4379
|
style: a,
|
|
4379
4380
|
rendererSettings: { preserveAspectRatio: "xMidYMid meet" }
|
|
4380
4381
|
}
|
|
4381
|
-
) : /* @__PURE__ */
|
|
4382
|
+
) : /* @__PURE__ */ B(
|
|
4382
4383
|
Bl,
|
|
4383
4384
|
{
|
|
4384
4385
|
src: c.blobUrl,
|
|
@@ -4565,7 +4566,7 @@ const $f = os(function({
|
|
|
4565
4566
|
onEnd: x,
|
|
4566
4567
|
onFrame: I
|
|
4567
4568
|
}, q) {
|
|
4568
|
-
const ue = we(null), te = we(null), [Y, M] = ge(null), [w, G] = ge(null), [$, W] = ge(null), [se, me] = ge(!1), [ve, Le] = ge(!!d), [p,
|
|
4569
|
+
const ue = we(null), te = we(null), [Y, M] = ge(null), [w, G] = ge(null), [$, W] = ge(null), [se, me] = ge(!1), [ve, Le] = ge(!!d), [p, F] = ge(h), X = we(1), [T, V] = ge(null), K = Math.max(
|
|
4569
4570
|
1,
|
|
4570
4571
|
Math.floor(typeof window < "u" && window.devicePixelRatio || 1)
|
|
4571
4572
|
);
|
|
@@ -4700,7 +4701,7 @@ const $f = os(function({
|
|
|
4700
4701
|
xe(p);
|
|
4701
4702
|
return;
|
|
4702
4703
|
}
|
|
4703
|
-
le = Ee - Ne % Ie,
|
|
4704
|
+
le = Ee - Ne % Ie, F((Ye) => {
|
|
4704
4705
|
const He = Ce.length - 1;
|
|
4705
4706
|
let Ke = Ye;
|
|
4706
4707
|
return y === "forward" ? Ke = Ye + 1 : y === "backward" ? Ke = Ye - 1 : ((Ye >= He && X.current === 1 || Ye <= 0 && X.current === -1) && (X.current *= -1), Ke = Ye + X.current), (Ke > He || Ke < 0) && (m ? Ke = y === "backward" ? He : 0 : (Ke = Math.max(0, Math.min(Ke, He)), Le(!1), x?.())), Ke;
|
|
@@ -4723,7 +4724,7 @@ const $f = os(function({
|
|
|
4723
4724
|
play: () => Le(!0),
|
|
4724
4725
|
pause: () => Le(!1),
|
|
4725
4726
|
toggle: () => Le((le) => !le),
|
|
4726
|
-
gotoFrame: (le) =>
|
|
4727
|
+
gotoFrame: (le) => F(() => Math.max(
|
|
4727
4728
|
0,
|
|
4728
4729
|
Math.min(le, Math.max(0, Ce.length - 1))
|
|
4729
4730
|
)),
|
|
@@ -4731,7 +4732,7 @@ const $f = os(function({
|
|
|
4731
4732
|
currentFrame: () => p
|
|
4732
4733
|
}),
|
|
4733
4734
|
[ve, p, Ce.length]
|
|
4734
|
-
), /* @__PURE__ */
|
|
4735
|
+
), /* @__PURE__ */ B("div", { className: S, style: R, children: /* @__PURE__ */ B("canvas", { ref: ue, "aria-label": "spritesheet animation" }) });
|
|
4735
4736
|
});
|
|
4736
4737
|
function Yf({
|
|
4737
4738
|
url: e,
|
|
@@ -4748,12 +4749,12 @@ function Yf({
|
|
|
4748
4749
|
}, [e]), a ? /* @__PURE__ */ De("div", { className: t, role: "alert", children: [
|
|
4749
4750
|
"Couldn’t load SVG: ",
|
|
4750
4751
|
a
|
|
4751
|
-
] }) : n ? /* @__PURE__ */
|
|
4752
|
+
] }) : n ? /* @__PURE__ */ B("div", { className: t, dangerouslySetInnerHTML: { __html: n } }) : /* @__PURE__ */ B("div", { className: t });
|
|
4752
4753
|
}
|
|
4753
4754
|
const Qa = ({ facet: e }) => {
|
|
4754
4755
|
const { mode: t, assetUrl: n } = e;
|
|
4755
4756
|
return /* @__PURE__ */ De("div", { className: "assetContainer", children: [
|
|
4756
|
-
t === We.AgentDisplayFacetModeType.LOTTIE && /* @__PURE__ */
|
|
4757
|
+
t === We.AgentDisplayFacetModeType.LOTTIE && /* @__PURE__ */ B(
|
|
4757
4758
|
Ff,
|
|
4758
4759
|
{
|
|
4759
4760
|
src: n,
|
|
@@ -4761,9 +4762,9 @@ const Qa = ({ facet: e }) => {
|
|
|
4761
4762
|
onError: (r) => console.error(r)
|
|
4762
4763
|
}
|
|
4763
4764
|
),
|
|
4764
|
-
t === We.AgentDisplayFacetModeType.SVG && /* @__PURE__ */
|
|
4765
|
-
t === We.AgentDisplayFacetModeType.IMAGE && /* @__PURE__ */
|
|
4766
|
-
t === We.AgentDisplayFacetModeType.SPRITESHEET && /* @__PURE__ */
|
|
4765
|
+
t === We.AgentDisplayFacetModeType.SVG && /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(Yf, { url: n }) }),
|
|
4766
|
+
t === We.AgentDisplayFacetModeType.IMAGE && /* @__PURE__ */ B(Mf, { src: n }),
|
|
4767
|
+
t === We.AgentDisplayFacetModeType.SPRITESHEET && /* @__PURE__ */ B($f, { src: n })
|
|
4767
4768
|
] });
|
|
4768
4769
|
}, Gf = ({
|
|
4769
4770
|
isWidgetOpen: e,
|
|
@@ -4787,13 +4788,13 @@ const Qa = ({ facet: e }) => {
|
|
|
4787
4788
|
`,
|
|
4788
4789
|
onClick: () => t(!e),
|
|
4789
4790
|
children: [
|
|
4790
|
-
!e && /* @__PURE__ */
|
|
4791
|
+
!e && /* @__PURE__ */ B(
|
|
4791
4792
|
Qa,
|
|
4792
4793
|
{
|
|
4793
4794
|
facet: n.agent.display[We.AgentDisplayFacetRoleType.LAUNCHER]
|
|
4794
4795
|
}
|
|
4795
4796
|
),
|
|
4796
|
-
e && /* @__PURE__ */
|
|
4797
|
+
e && /* @__PURE__ */ B(wf, { className: "w-6 h-6", fill: "white" })
|
|
4797
4798
|
]
|
|
4798
4799
|
}
|
|
4799
4800
|
);
|
|
@@ -7734,7 +7735,7 @@ function Pd(e, t, n) {
|
|
|
7734
7735
|
return T === null || J(T) ? w(T) : he(T) ? (e.consume(T), M) : n(T);
|
|
7735
7736
|
}
|
|
7736
7737
|
function w(T) {
|
|
7737
|
-
return T === 45 && a === 2 ? (e.consume(T), se) : T === 60 && a === 1 ? (e.consume(T), me) : T === 62 && a === 4 ? (e.consume(T),
|
|
7738
|
+
return T === 45 && a === 2 ? (e.consume(T), se) : T === 60 && a === 1 ? (e.consume(T), me) : T === 62 && a === 4 ? (e.consume(T), F) : T === 63 && a === 3 ? (e.consume(T), p) : T === 93 && a === 5 ? (e.consume(T), Le) : J(T) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
7738
7739
|
Ld,
|
|
7739
7740
|
X,
|
|
7740
7741
|
G
|
|
@@ -7762,7 +7763,7 @@ function Pd(e, t, n) {
|
|
|
7762
7763
|
function ve(T) {
|
|
7763
7764
|
if (T === 62) {
|
|
7764
7765
|
const V = u.toLowerCase();
|
|
7765
|
-
return su.includes(V) ? (e.consume(T),
|
|
7766
|
+
return su.includes(V) ? (e.consume(T), F) : w(T);
|
|
7766
7767
|
}
|
|
7767
7768
|
return Et(T) && u.length < 8 ? (e.consume(T), u += String.fromCharCode(T), ve) : w(T);
|
|
7768
7769
|
}
|
|
@@ -7770,10 +7771,10 @@ function Pd(e, t, n) {
|
|
|
7770
7771
|
return T === 93 ? (e.consume(T), p) : w(T);
|
|
7771
7772
|
}
|
|
7772
7773
|
function p(T) {
|
|
7773
|
-
return T === 62 ? (e.consume(T),
|
|
7774
|
+
return T === 62 ? (e.consume(T), F) : T === 45 && a === 2 ? (e.consume(T), p) : w(T);
|
|
7774
7775
|
}
|
|
7775
|
-
function
|
|
7776
|
-
return T === null || J(T) ? (e.exit("htmlFlowData"), X(T)) : (e.consume(T),
|
|
7776
|
+
function F(T) {
|
|
7777
|
+
return T === null || J(T) ? (e.exit("htmlFlowData"), X(T)) : (e.consume(T), F);
|
|
7777
7778
|
}
|
|
7778
7779
|
function X(T) {
|
|
7779
7780
|
return e.exit("htmlFlow"), t(T);
|
|
@@ -7825,8 +7826,8 @@ function Md(e, t, n) {
|
|
|
7825
7826
|
return p === 62 ? se(p) : p === 45 ? m(p) : d(p);
|
|
7826
7827
|
}
|
|
7827
7828
|
function y(p) {
|
|
7828
|
-
const
|
|
7829
|
-
return p ===
|
|
7829
|
+
const F = "CDATA[";
|
|
7830
|
+
return p === F.charCodeAt(i++) ? (e.consume(p), i === F.length ? A : y) : n(p);
|
|
7830
7831
|
}
|
|
7831
7832
|
function A(p) {
|
|
7832
7833
|
return p === null ? n(p) : p === 93 ? (e.consume(p), L) : J(p) ? (u = A, me(p)) : (e.consume(p), A);
|
|
@@ -8527,8 +8528,8 @@ function hh(e, t, n) {
|
|
|
8527
8528
|
return Array.isArray($) ? X($) : "tokenize" in $ ? (
|
|
8528
8529
|
// @ts-expect-error Looks like a construct.
|
|
8529
8530
|
X([$])
|
|
8530
|
-
) :
|
|
8531
|
-
function
|
|
8531
|
+
) : F($);
|
|
8532
|
+
function F(z) {
|
|
8532
8533
|
return Q;
|
|
8533
8534
|
function Q(ee) {
|
|
8534
8535
|
const ae = ee !== null && z[ee], Z = ee !== null && z.null, _e = [
|
|
@@ -8879,7 +8880,7 @@ function Dh(e) {
|
|
|
8879
8880
|
paragraph: l(),
|
|
8880
8881
|
referenceString: V,
|
|
8881
8882
|
resourceDestinationString: p,
|
|
8882
|
-
resourceTitleString:
|
|
8883
|
+
resourceTitleString: F,
|
|
8883
8884
|
resource: X,
|
|
8884
8885
|
setextHeading: l(ue),
|
|
8885
8886
|
setextHeadingLineSequence: q,
|
|
@@ -9173,7 +9174,7 @@ function Dh(e) {
|
|
|
9173
9174
|
const O = this.resume(), H = this.stack[this.stack.length - 1];
|
|
9174
9175
|
H.url = O;
|
|
9175
9176
|
}
|
|
9176
|
-
function
|
|
9177
|
+
function F() {
|
|
9177
9178
|
const O = this.resume(), H = this.stack[this.stack.length - 1];
|
|
9178
9179
|
H.title = O;
|
|
9179
9180
|
}
|
|
@@ -11484,7 +11485,7 @@ function Ro(e) {
|
|
|
11484
11485
|
Fragment: rn,
|
|
11485
11486
|
components: i,
|
|
11486
11487
|
ignoreInvalidStyle: !0,
|
|
11487
|
-
jsx:
|
|
11488
|
+
jsx: B,
|
|
11488
11489
|
jsxs: De,
|
|
11489
11490
|
passKeys: !0,
|
|
11490
11491
|
passNode: !0
|
|
@@ -17865,21 +17866,21 @@ const hb = (e) => /* @__PURE__ */ Qe.createElement("svg", { xmlns: "http://www.w
|
|
|
17865
17866
|
}) => {
|
|
17866
17867
|
const { chatlineLabelUserTranslation: n } = Ka();
|
|
17867
17868
|
return /* @__PURE__ */ De("div", { className: "flex px-3 justify-between mt-8 bg-gray-200 rounded-lg", children: [
|
|
17868
|
-
/* @__PURE__ */
|
|
17869
|
+
/* @__PURE__ */ B("div", { className: "w-10 mr-3 flex-col content-center", children: /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(hb, { fill: "#4564d6" }) }) }),
|
|
17869
17870
|
/* @__PURE__ */ De(
|
|
17870
17871
|
"div",
|
|
17871
17872
|
{
|
|
17872
17873
|
className: `w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage ? "bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in" : " text-gray-800"}`,
|
|
17873
17874
|
children: [
|
|
17874
|
-
/* @__PURE__ */
|
|
17875
|
-
/* @__PURE__ */
|
|
17875
|
+
/* @__PURE__ */ B("p", { className: "font-bold", children: n }),
|
|
17876
|
+
/* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(Ro, { rehypePlugins: [El], children: e && e }) })
|
|
17876
17877
|
]
|
|
17877
17878
|
}
|
|
17878
17879
|
)
|
|
17879
17880
|
] });
|
|
17880
17881
|
}, pb = ({}) => {
|
|
17881
17882
|
const { companySettings: e } = lt(Sr);
|
|
17882
|
-
return /* @__PURE__ */
|
|
17883
|
+
return /* @__PURE__ */ B(
|
|
17883
17884
|
"div",
|
|
17884
17885
|
{
|
|
17885
17886
|
className: `assistant
|
|
@@ -17891,7 +17892,7 @@ const hb = (e) => /* @__PURE__ */ Qe.createElement("svg", { xmlns: "http://www.w
|
|
|
17891
17892
|
justify-center
|
|
17892
17893
|
items-center
|
|
17893
17894
|
`,
|
|
17894
|
-
children: /* @__PURE__ */
|
|
17895
|
+
children: /* @__PURE__ */ B(
|
|
17895
17896
|
Qa,
|
|
17896
17897
|
{
|
|
17897
17898
|
facet: e.agent.display[We.AgentDisplayFacetRoleType.ASSISTANT]
|
|
@@ -17902,14 +17903,14 @@ const hb = (e) => /* @__PURE__ */ Qe.createElement("svg", { xmlns: "http://www.w
|
|
|
17902
17903
|
}, Eb = ({ content: e, metaData: t }) => {
|
|
17903
17904
|
const { chatlineLabelAssistantTranslation: n } = Ka();
|
|
17904
17905
|
return /* @__PURE__ */ De("div", { className: "flex justify-between mt-8 px-3", children: [
|
|
17905
|
-
/* @__PURE__ */
|
|
17906
|
+
/* @__PURE__ */ B("div", { className: "w-10 mr-3 mt-6", children: /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(pb, {}) }) }),
|
|
17906
17907
|
/* @__PURE__ */ De(
|
|
17907
17908
|
"div",
|
|
17908
17909
|
{
|
|
17909
17910
|
className: `w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage ? "bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in" : "bg-white text-gray-800"}`,
|
|
17910
17911
|
children: [
|
|
17911
|
-
/* @__PURE__ */
|
|
17912
|
-
/* @__PURE__ */
|
|
17912
|
+
/* @__PURE__ */ B("p", { className: "font-bold", children: n }),
|
|
17913
|
+
/* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(Ro, { rehypePlugins: [El], children: e && e }) })
|
|
17913
17914
|
]
|
|
17914
17915
|
}
|
|
17915
17916
|
)
|
|
@@ -17919,8 +17920,8 @@ const hb = (e) => /* @__PURE__ */ Qe.createElement("svg", { xmlns: "http://www.w
|
|
|
17919
17920
|
content: t,
|
|
17920
17921
|
metaData: n
|
|
17921
17922
|
}) => /* @__PURE__ */ De(rn, { children: [
|
|
17922
|
-
e === "user" && /* @__PURE__ */
|
|
17923
|
-
e === "assistant" && /* @__PURE__ */
|
|
17923
|
+
e === "user" && /* @__PURE__ */ B(mb, { content: t, metaData: n }),
|
|
17924
|
+
e === "assistant" && /* @__PURE__ */ B(Eb, { content: t, metaData: n })
|
|
17924
17925
|
] });
|
|
17925
17926
|
function Tb(e, t, n) {
|
|
17926
17927
|
let [r, a] = ge(e || t), i = we(e !== void 0), u = e !== void 0;
|
|
@@ -18839,8 +18840,8 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
|
|
|
18839
18840
|
className: `${e.classNameContainer} w-fu`,
|
|
18840
18841
|
children: [
|
|
18841
18842
|
/* @__PURE__ */ De("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
18842
|
-
/* @__PURE__ */
|
|
18843
|
-
/* @__PURE__ */
|
|
18843
|
+
/* @__PURE__ */ B("label", { ...h, className: e.classNameLabel, children: u }),
|
|
18844
|
+
/* @__PURE__ */ B(
|
|
18844
18845
|
"textarea",
|
|
18845
18846
|
{
|
|
18846
18847
|
...y,
|
|
@@ -18861,21 +18862,21 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
|
|
|
18861
18862
|
}
|
|
18862
18863
|
)
|
|
18863
18864
|
] }),
|
|
18864
|
-
!c && o && /* @__PURE__ */
|
|
18865
|
+
!c && o && /* @__PURE__ */ B("div", { className: "relative", children: /* @__PURE__ */ B(
|
|
18865
18866
|
o,
|
|
18866
18867
|
{
|
|
18867
18868
|
onSubmitButton: R,
|
|
18868
18869
|
isDisabled: S
|
|
18869
18870
|
}
|
|
18870
18871
|
) }),
|
|
18871
|
-
c && f && /* @__PURE__ */
|
|
18872
|
+
c && f && /* @__PURE__ */ B("div", { className: "relative", children: /* @__PURE__ */ B(f, { onPressLoadingButton: N }) })
|
|
18872
18873
|
]
|
|
18873
18874
|
}
|
|
18874
18875
|
);
|
|
18875
18876
|
}, xT = ({
|
|
18876
18877
|
onSubmitButton: e,
|
|
18877
18878
|
isDisabled: t
|
|
18878
|
-
}) => /* @__PURE__ */
|
|
18879
|
+
}) => /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(
|
|
18879
18880
|
"button",
|
|
18880
18881
|
{
|
|
18881
18882
|
className: `absolute
|
|
@@ -18898,7 +18899,7 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
|
|
|
18898
18899
|
"data-testid": "send-button",
|
|
18899
18900
|
onClick: e,
|
|
18900
18901
|
disabled: t,
|
|
18901
|
-
children: /* @__PURE__ */
|
|
18902
|
+
children: /* @__PURE__ */ B("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ B(
|
|
18902
18903
|
"svg",
|
|
18903
18904
|
{
|
|
18904
18905
|
width: "24",
|
|
@@ -18906,7 +18907,7 @@ const ST = (e) => e.charCodeAt(e.length - 1) === 10, CT = (e) => {
|
|
|
18906
18907
|
viewBox: "0 0 24 24",
|
|
18907
18908
|
fill: "none",
|
|
18908
18909
|
className: "text-white dark:text-black",
|
|
18909
|
-
children: /* @__PURE__ */
|
|
18910
|
+
children: /* @__PURE__ */ B(
|
|
18910
18911
|
"path",
|
|
18911
18912
|
{
|
|
18912
18913
|
d: "M7 11L12 6L17 11M12 18V7",
|
|
@@ -18991,7 +18992,7 @@ const Il = () => {
|
|
|
18991
18992
|
};
|
|
18992
18993
|
}, RT = ({}) => {
|
|
18993
18994
|
const { companySettings: e } = lt(Sr);
|
|
18994
|
-
return /* @__PURE__ */
|
|
18995
|
+
return /* @__PURE__ */ B(
|
|
18995
18996
|
"div",
|
|
18996
18997
|
{
|
|
18997
18998
|
className: `search
|
|
@@ -19002,7 +19003,7 @@ const Il = () => {
|
|
|
19002
19003
|
justify-center
|
|
19003
19004
|
items-center
|
|
19004
19005
|
`,
|
|
19005
|
-
children: /* @__PURE__ */
|
|
19006
|
+
children: /* @__PURE__ */ B(
|
|
19006
19007
|
Qa,
|
|
19007
19008
|
{
|
|
19008
19009
|
facet: e.agent.display[We.AgentDisplayFacetRoleType.SEARCH]
|
|
@@ -19021,32 +19022,32 @@ const Il = () => {
|
|
|
19021
19022
|
stepTranslation: i,
|
|
19022
19023
|
lookingForProductTranslation: u
|
|
19023
19024
|
} = Il();
|
|
19024
|
-
return /* @__PURE__ */
|
|
19025
|
+
return /* @__PURE__ */ B(rn, { children: e === "loadingIntermediaryStates" && /* @__PURE__ */ De("div", { children: [
|
|
19025
19026
|
/* @__PURE__ */ De("div", { children: [
|
|
19026
19027
|
/* @__PURE__ */ De("p", { className: "text-center my-2 text-lg", children: [
|
|
19027
19028
|
u,
|
|
19028
19029
|
"..."
|
|
19029
19030
|
] }),
|
|
19030
|
-
/* @__PURE__ */
|
|
19031
|
+
/* @__PURE__ */ B("p", { className: "text-center my-1 text-md", children: t && `${a(t)}` }),
|
|
19031
19032
|
n && /* @__PURE__ */ De("p", { className: "text-center my-2", children: [
|
|
19032
19033
|
i,
|
|
19033
|
-
/* @__PURE__ */
|
|
19034
|
+
/* @__PURE__ */ B("span", { children: " " }),
|
|
19034
19035
|
n,
|
|
19035
19036
|
"/",
|
|
19036
19037
|
r
|
|
19037
19038
|
] })
|
|
19038
19039
|
] }),
|
|
19039
|
-
/* @__PURE__ */
|
|
19040
|
+
/* @__PURE__ */ B("div", { className: "flex justify-center", children: /* @__PURE__ */ B(RT, {}) })
|
|
19040
19041
|
] }) });
|
|
19041
19042
|
}, PT = ({
|
|
19042
19043
|
onPressLoadingButton: e
|
|
19043
|
-
}) => /* @__PURE__ */
|
|
19044
|
+
}) => /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(
|
|
19044
19045
|
"button",
|
|
19045
19046
|
{
|
|
19046
19047
|
className: "absolute bg-white md:bottom-2 md:right-3 dark:hover:bg-white right-2 bottom-1.5 disabled:opacity-10 disabled:text-gray-400 enabled:bg-white text-white p-0.5 border border-white rounded-lg dark:border-white dark:bg-white transition-colors",
|
|
19047
19048
|
"data-testid": "send-button",
|
|
19048
19049
|
onClick: e,
|
|
19049
|
-
children: /* @__PURE__ */
|
|
19050
|
+
children: /* @__PURE__ */ B("span", { className: "", "data-state": "closed", children: /* @__PURE__ */ De(
|
|
19050
19051
|
"svg",
|
|
19051
19052
|
{
|
|
19052
19053
|
fill: "#000000",
|
|
@@ -19057,8 +19058,8 @@ const Il = () => {
|
|
|
19057
19058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19058
19059
|
viewBox: "0 0 297 297",
|
|
19059
19060
|
children: [
|
|
19060
|
-
/* @__PURE__ */
|
|
19061
|
-
/* @__PURE__ */
|
|
19061
|
+
/* @__PURE__ */ B("g", { id: "SVGRepo_bgCarrier", "stroke-width": "0" }),
|
|
19062
|
+
/* @__PURE__ */ B(
|
|
19062
19063
|
"g",
|
|
19063
19064
|
{
|
|
19064
19065
|
id: "SVGRepo_tracerCarrier",
|
|
@@ -19068,7 +19069,7 @@ const Il = () => {
|
|
|
19068
19069
|
),
|
|
19069
19070
|
/* @__PURE__ */ De("g", { id: "SVGRepo_iconCarrier", children: [
|
|
19070
19071
|
" ",
|
|
19071
|
-
/* @__PURE__ */
|
|
19072
|
+
/* @__PURE__ */ B("path", { d: "M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z" }),
|
|
19072
19073
|
" "
|
|
19073
19074
|
] })
|
|
19074
19075
|
]
|
|
@@ -19178,7 +19179,7 @@ const Nl = ({
|
|
|
19178
19179
|
});
|
|
19179
19180
|
fetch(`${w}/ai/prompt/${e}`, W).then(async (se) => {
|
|
19180
19181
|
const me = se?.body?.getReader(), ve = new TextDecoder();
|
|
19181
|
-
let Le = "", p = "",
|
|
19182
|
+
let Le = "", p = "", F = !1, X = !1, T = null;
|
|
19182
19183
|
await new ReadableStream({
|
|
19183
19184
|
start(z) {
|
|
19184
19185
|
return Q();
|
|
@@ -19196,7 +19197,7 @@ const Nl = ({
|
|
|
19196
19197
|
streamSourceUuid: Ie,
|
|
19197
19198
|
shouldStopStream: pe
|
|
19198
19199
|
} = Fe;
|
|
19199
|
-
T && T !== Ie && (Le += '<span style="display:block;height:1rem;"></span>'), T = Ie, (le || pe) && (X = !0), z.enqueue(xe), NT(xe) ? (p += xe, Le += p, p = "",
|
|
19200
|
+
T && T !== Ie && (Le += '<span style="display:block;height:1rem;"></span>'), T = Ie, (le || pe) && (X = !0), z.enqueue(xe), NT(xe) ? (p += xe, Le += p, p = "", F = !1) : F || IT(xe) ? (p += xe, F = !0) : Le += xe, i((Ee) => {
|
|
19200
19201
|
const Ne = [...Ee], Ye = Ne.length - 1, He = Ne[Ye];
|
|
19201
19202
|
return Ne[Ye] = {
|
|
19202
19203
|
...He,
|
|
@@ -19258,7 +19259,7 @@ const Nl = ({
|
|
|
19258
19259
|
className: "flex-1 overflow-y-auto min-h-0 messagesContainer",
|
|
19259
19260
|
ref: I,
|
|
19260
19261
|
children: [
|
|
19261
|
-
a.map((M, w) => /* @__PURE__ */
|
|
19262
|
+
a.map((M, w) => /* @__PURE__ */ B(
|
|
19262
19263
|
bb,
|
|
19263
19264
|
{
|
|
19264
19265
|
content: M.content,
|
|
@@ -19267,7 +19268,7 @@ const Nl = ({
|
|
|
19267
19268
|
},
|
|
19268
19269
|
w
|
|
19269
19270
|
)),
|
|
19270
|
-
/* @__PURE__ */
|
|
19271
|
+
/* @__PURE__ */ B(
|
|
19271
19272
|
vT,
|
|
19272
19273
|
{
|
|
19273
19274
|
currentStepName: h,
|
|
@@ -19279,7 +19280,7 @@ const Nl = ({
|
|
|
19279
19280
|
]
|
|
19280
19281
|
}
|
|
19281
19282
|
),
|
|
19282
|
-
x && /* @__PURE__ */
|
|
19283
|
+
x && /* @__PURE__ */ B(
|
|
19283
19284
|
"button",
|
|
19284
19285
|
{
|
|
19285
19286
|
onClick: () => D({
|
|
@@ -19288,7 +19289,7 @@ const Nl = ({
|
|
|
19288
19289
|
}),
|
|
19289
19290
|
className: "absolute bottom-[120px] right-4 bg-blue-500 hover:bg-blue-600 text-white p-3 rounded-full shadow-lg transition-all duration-300 z-10",
|
|
19290
19291
|
"aria-label": "Scroll to bottom",
|
|
19291
|
-
children: /* @__PURE__ */
|
|
19292
|
+
children: /* @__PURE__ */ B(
|
|
19292
19293
|
"svg",
|
|
19293
19294
|
{
|
|
19294
19295
|
width: "20",
|
|
@@ -19296,7 +19297,7 @@ const Nl = ({
|
|
|
19296
19297
|
viewBox: "0 0 24 24",
|
|
19297
19298
|
fill: "none",
|
|
19298
19299
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19299
|
-
children: /* @__PURE__ */
|
|
19300
|
+
children: /* @__PURE__ */ B(
|
|
19300
19301
|
"path",
|
|
19301
19302
|
{
|
|
19302
19303
|
d: "M12 16L6 10L7.4 8.6L12 13.2L16.6 8.6L18 10L12 16Z",
|
|
@@ -19307,7 +19308,7 @@ const Nl = ({
|
|
|
19307
19308
|
)
|
|
19308
19309
|
}
|
|
19309
19310
|
),
|
|
19310
|
-
/* @__PURE__ */
|
|
19311
|
+
/* @__PURE__ */ B("div", { className: "flex-shrink-0", children: /* @__PURE__ */ B(
|
|
19311
19312
|
CT,
|
|
19312
19313
|
{
|
|
19313
19314
|
classNameTextarea: "",
|
|
@@ -19500,9 +19501,9 @@ function MT() {
|
|
|
19500
19501
|
return da = function(o, l) {
|
|
19501
19502
|
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
19502
19503
|
function d(p) {
|
|
19503
|
-
var
|
|
19504
|
-
if (typeof
|
|
19505
|
-
return
|
|
19504
|
+
var F = p && (c && p[c] || p[f]);
|
|
19505
|
+
if (typeof F == "function")
|
|
19506
|
+
return F;
|
|
19506
19507
|
}
|
|
19507
19508
|
var m = "<<anonymous>>", h = {
|
|
19508
19509
|
array: S("array"),
|
|
@@ -19525,16 +19526,16 @@ function MT() {
|
|
|
19525
19526
|
shape: w,
|
|
19526
19527
|
exact: G
|
|
19527
19528
|
};
|
|
19528
|
-
function y(p,
|
|
19529
|
-
return p ===
|
|
19529
|
+
function y(p, F) {
|
|
19530
|
+
return p === F ? p !== 0 || 1 / p === 1 / F : p !== p && F !== F;
|
|
19530
19531
|
}
|
|
19531
|
-
function A(p,
|
|
19532
|
-
this.message = p, this.data =
|
|
19532
|
+
function A(p, F) {
|
|
19533
|
+
this.message = p, this.data = F && typeof F == "object" ? F : {}, this.stack = "";
|
|
19533
19534
|
}
|
|
19534
19535
|
A.prototype = Error.prototype;
|
|
19535
19536
|
function L(p) {
|
|
19536
19537
|
if (process.env.NODE_ENV !== "production")
|
|
19537
|
-
var
|
|
19538
|
+
var F = {}, X = 0;
|
|
19538
19539
|
function T(K, z, Q, ee, ae, Z, _e) {
|
|
19539
19540
|
if (ee = ee || m, Z = Z || Q, _e !== n) {
|
|
19540
19541
|
if (l) {
|
|
@@ -19544,10 +19545,10 @@ function MT() {
|
|
|
19544
19545
|
throw U.name = "Invariant Violation", U;
|
|
19545
19546
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
19546
19547
|
var Ce = ee + ":" + Q;
|
|
19547
|
-
!
|
|
19548
|
+
!F[Ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
19548
19549
|
X < 3 && (i(
|
|
19549
19550
|
"You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
19550
|
-
),
|
|
19551
|
+
), F[Ce] = !0, X++);
|
|
19551
19552
|
}
|
|
19552
19553
|
}
|
|
19553
19554
|
return z[Q] == null ? K ? z[Q] === null ? new A("The " + ae + " `" + Z + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new A("The " + ae + " `" + Z + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : p(z, Q, ee, ae, Z);
|
|
@@ -19556,7 +19557,7 @@ function MT() {
|
|
|
19556
19557
|
return V.isRequired = T.bind(null, !0), V;
|
|
19557
19558
|
}
|
|
19558
19559
|
function S(p) {
|
|
19559
|
-
function
|
|
19560
|
+
function F(X, T, V, K, z, Q) {
|
|
19560
19561
|
var ee = X[T], ae = se(ee);
|
|
19561
19562
|
if (ae !== p) {
|
|
19562
19563
|
var Z = me(ee);
|
|
@@ -19567,13 +19568,13 @@ function MT() {
|
|
|
19567
19568
|
}
|
|
19568
19569
|
return null;
|
|
19569
19570
|
}
|
|
19570
|
-
return L(
|
|
19571
|
+
return L(F);
|
|
19571
19572
|
}
|
|
19572
19573
|
function R() {
|
|
19573
19574
|
return L(u);
|
|
19574
19575
|
}
|
|
19575
19576
|
function N(p) {
|
|
19576
|
-
function
|
|
19577
|
+
function F(X, T, V, K, z) {
|
|
19577
19578
|
if (typeof p != "function")
|
|
19578
19579
|
return new A("Property `" + z + "` of component `" + V + "` has invalid PropType notation inside arrayOf.");
|
|
19579
19580
|
var Q = X[T];
|
|
@@ -19588,11 +19589,11 @@ function MT() {
|
|
|
19588
19589
|
}
|
|
19589
19590
|
return null;
|
|
19590
19591
|
}
|
|
19591
|
-
return L(
|
|
19592
|
+
return L(F);
|
|
19592
19593
|
}
|
|
19593
19594
|
function D() {
|
|
19594
|
-
function p(
|
|
19595
|
-
var z =
|
|
19595
|
+
function p(F, X, T, V, K) {
|
|
19596
|
+
var z = F[X];
|
|
19596
19597
|
if (!o(z)) {
|
|
19597
19598
|
var Q = se(z);
|
|
19598
19599
|
return new A("Invalid " + V + " `" + K + "` of type " + ("`" + Q + "` supplied to `" + T + "`, expected a single ReactElement."));
|
|
@@ -19602,8 +19603,8 @@ function MT() {
|
|
|
19602
19603
|
return L(p);
|
|
19603
19604
|
}
|
|
19604
19605
|
function x() {
|
|
19605
|
-
function p(
|
|
19606
|
-
var z =
|
|
19606
|
+
function p(F, X, T, V, K) {
|
|
19607
|
+
var z = F[X];
|
|
19607
19608
|
if (!e.isValidElementType(z)) {
|
|
19608
19609
|
var Q = se(z);
|
|
19609
19610
|
return new A("Invalid " + V + " `" + K + "` of type " + ("`" + Q + "` supplied to `" + T + "`, expected a single ReactElement type."));
|
|
@@ -19613,21 +19614,21 @@ function MT() {
|
|
|
19613
19614
|
return L(p);
|
|
19614
19615
|
}
|
|
19615
19616
|
function I(p) {
|
|
19616
|
-
function
|
|
19617
|
+
function F(X, T, V, K, z) {
|
|
19617
19618
|
if (!(X[T] instanceof p)) {
|
|
19618
19619
|
var Q = p.name || m, ee = Le(X[T]);
|
|
19619
19620
|
return new A("Invalid " + K + " `" + z + "` of type " + ("`" + ee + "` supplied to `" + V + "`, expected ") + ("instance of `" + Q + "`."));
|
|
19620
19621
|
}
|
|
19621
19622
|
return null;
|
|
19622
19623
|
}
|
|
19623
|
-
return L(
|
|
19624
|
+
return L(F);
|
|
19624
19625
|
}
|
|
19625
19626
|
function q(p) {
|
|
19626
19627
|
if (!Array.isArray(p))
|
|
19627
19628
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
19628
19629
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
19629
19630
|
) : i("Invalid argument supplied to oneOf, expected an array.")), u;
|
|
19630
|
-
function
|
|
19631
|
+
function F(X, T, V, K, z) {
|
|
19631
19632
|
for (var Q = X[T], ee = 0; ee < p.length; ee++)
|
|
19632
19633
|
if (y(Q, p[ee]))
|
|
19633
19634
|
return null;
|
|
@@ -19637,10 +19638,10 @@ function MT() {
|
|
|
19637
19638
|
});
|
|
19638
19639
|
return new A("Invalid " + K + " `" + z + "` of value `" + String(Q) + "` " + ("supplied to `" + V + "`, expected one of " + ae + "."));
|
|
19639
19640
|
}
|
|
19640
|
-
return L(
|
|
19641
|
+
return L(F);
|
|
19641
19642
|
}
|
|
19642
19643
|
function ue(p) {
|
|
19643
|
-
function
|
|
19644
|
+
function F(X, T, V, K, z) {
|
|
19644
19645
|
if (typeof p != "function")
|
|
19645
19646
|
return new A("Property `" + z + "` of component `" + V + "` has invalid PropType notation inside objectOf.");
|
|
19646
19647
|
var Q = X[T], ee = se(Q);
|
|
@@ -19654,16 +19655,16 @@ function MT() {
|
|
|
19654
19655
|
}
|
|
19655
19656
|
return null;
|
|
19656
19657
|
}
|
|
19657
|
-
return L(
|
|
19658
|
+
return L(F);
|
|
19658
19659
|
}
|
|
19659
19660
|
function te(p) {
|
|
19660
19661
|
if (!Array.isArray(p))
|
|
19661
19662
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), u;
|
|
19662
|
-
for (var
|
|
19663
|
-
var X = p[
|
|
19663
|
+
for (var F = 0; F < p.length; F++) {
|
|
19664
|
+
var X = p[F];
|
|
19664
19665
|
if (typeof X != "function")
|
|
19665
19666
|
return i(
|
|
19666
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(X) + " at index " +
|
|
19667
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(X) + " at index " + F + "."
|
|
19667
19668
|
), u;
|
|
19668
19669
|
}
|
|
19669
19670
|
function T(V, K, z, Q, ee) {
|
|
@@ -19679,18 +19680,18 @@ function MT() {
|
|
|
19679
19680
|
return L(T);
|
|
19680
19681
|
}
|
|
19681
19682
|
function Y() {
|
|
19682
|
-
function p(
|
|
19683
|
-
return $(
|
|
19683
|
+
function p(F, X, T, V, K) {
|
|
19684
|
+
return $(F[X]) ? null : new A("Invalid " + V + " `" + K + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
|
|
19684
19685
|
}
|
|
19685
19686
|
return L(p);
|
|
19686
19687
|
}
|
|
19687
|
-
function M(p,
|
|
19688
|
+
function M(p, F, X, T, V) {
|
|
19688
19689
|
return new A(
|
|
19689
|
-
(p || "React class") + ": " +
|
|
19690
|
+
(p || "React class") + ": " + F + " type `" + X + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + V + "`."
|
|
19690
19691
|
);
|
|
19691
19692
|
}
|
|
19692
19693
|
function w(p) {
|
|
19693
|
-
function
|
|
19694
|
+
function F(X, T, V, K, z) {
|
|
19694
19695
|
var Q = X[T], ee = se(Q);
|
|
19695
19696
|
if (ee !== "object")
|
|
19696
19697
|
return new A("Invalid " + K + " `" + z + "` of type `" + ee + "` " + ("supplied to `" + V + "`, expected `object`."));
|
|
@@ -19704,10 +19705,10 @@ function MT() {
|
|
|
19704
19705
|
}
|
|
19705
19706
|
return null;
|
|
19706
19707
|
}
|
|
19707
|
-
return L(
|
|
19708
|
+
return L(F);
|
|
19708
19709
|
}
|
|
19709
19710
|
function G(p) {
|
|
19710
|
-
function
|
|
19711
|
+
function F(X, T, V, K, z) {
|
|
19711
19712
|
var Q = X[T], ee = se(Q);
|
|
19712
19713
|
if (ee !== "object")
|
|
19713
19714
|
return new A("Invalid " + K + " `" + z + "` of type `" + ee + "` " + ("supplied to `" + V + "`, expected `object`."));
|
|
@@ -19727,7 +19728,7 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
19727
19728
|
}
|
|
19728
19729
|
return null;
|
|
19729
19730
|
}
|
|
19730
|
-
return L(
|
|
19731
|
+
return L(F);
|
|
19731
19732
|
}
|
|
19732
19733
|
function $(p) {
|
|
19733
19734
|
switch (typeof p) {
|
|
@@ -19742,10 +19743,10 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
19742
19743
|
return p.every($);
|
|
19743
19744
|
if (p === null || o(p))
|
|
19744
19745
|
return !0;
|
|
19745
|
-
var
|
|
19746
|
-
if (
|
|
19747
|
-
var X =
|
|
19748
|
-
if (
|
|
19746
|
+
var F = d(p);
|
|
19747
|
+
if (F) {
|
|
19748
|
+
var X = F.call(p), T;
|
|
19749
|
+
if (F !== p.entries) {
|
|
19749
19750
|
for (; !(T = X.next()).done; )
|
|
19750
19751
|
if (!$(T.value))
|
|
19751
19752
|
return !1;
|
|
@@ -19762,37 +19763,37 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
19762
19763
|
return !1;
|
|
19763
19764
|
}
|
|
19764
19765
|
}
|
|
19765
|
-
function W(p,
|
|
19766
|
-
return p === "symbol" ? !0 :
|
|
19766
|
+
function W(p, F) {
|
|
19767
|
+
return p === "symbol" ? !0 : F ? F["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && F instanceof Symbol : !1;
|
|
19767
19768
|
}
|
|
19768
19769
|
function se(p) {
|
|
19769
|
-
var
|
|
19770
|
-
return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : W(
|
|
19770
|
+
var F = typeof p;
|
|
19771
|
+
return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : W(F, p) ? "symbol" : F;
|
|
19771
19772
|
}
|
|
19772
19773
|
function me(p) {
|
|
19773
19774
|
if (typeof p > "u" || p === null)
|
|
19774
19775
|
return "" + p;
|
|
19775
|
-
var
|
|
19776
|
-
if (
|
|
19776
|
+
var F = se(p);
|
|
19777
|
+
if (F === "object") {
|
|
19777
19778
|
if (p instanceof Date)
|
|
19778
19779
|
return "date";
|
|
19779
19780
|
if (p instanceof RegExp)
|
|
19780
19781
|
return "regexp";
|
|
19781
19782
|
}
|
|
19782
|
-
return
|
|
19783
|
+
return F;
|
|
19783
19784
|
}
|
|
19784
19785
|
function ve(p) {
|
|
19785
|
-
var
|
|
19786
|
-
switch (
|
|
19786
|
+
var F = me(p);
|
|
19787
|
+
switch (F) {
|
|
19787
19788
|
case "array":
|
|
19788
19789
|
case "object":
|
|
19789
|
-
return "an " +
|
|
19790
|
+
return "an " + F;
|
|
19790
19791
|
case "boolean":
|
|
19791
19792
|
case "date":
|
|
19792
19793
|
case "regexp":
|
|
19793
|
-
return "a " +
|
|
19794
|
+
return "a " + F;
|
|
19794
19795
|
default:
|
|
19795
|
-
return
|
|
19796
|
+
return F;
|
|
19796
19797
|
}
|
|
19797
19798
|
}
|
|
19798
19799
|
function Le(p) {
|
|
@@ -20435,20 +20436,20 @@ const VT = os(
|
|
|
20435
20436
|
bg-white
|
|
20436
20437
|
`,
|
|
20437
20438
|
children: [
|
|
20438
|
-
/* @__PURE__ */
|
|
20439
|
+
/* @__PURE__ */ B(
|
|
20439
20440
|
"div",
|
|
20440
20441
|
{
|
|
20441
20442
|
className: "bg-violet-700 py-2 text-white text-center flex justify-center items-center",
|
|
20442
20443
|
children: "Assistant"
|
|
20443
20444
|
}
|
|
20444
20445
|
),
|
|
20445
|
-
/* @__PURE__ */
|
|
20446
|
+
/* @__PURE__ */ B(Nl, { appToken: e.appToken })
|
|
20446
20447
|
]
|
|
20447
20448
|
}
|
|
20448
20449
|
)
|
|
20449
20450
|
), qT = ({ isWidgetOpen: e, appToken: t }) => {
|
|
20450
20451
|
const n = we(null);
|
|
20451
|
-
return /* @__PURE__ */
|
|
20452
|
+
return /* @__PURE__ */ B("div", { children: /* @__PURE__ */ B(
|
|
20452
20453
|
gi,
|
|
20453
20454
|
{
|
|
20454
20455
|
nodeRef: n,
|
|
@@ -20456,23 +20457,23 @@ const VT = os(
|
|
|
20456
20457
|
timeout: 200,
|
|
20457
20458
|
classNames: "menuTransition",
|
|
20458
20459
|
unmountOnExit: !0,
|
|
20459
|
-
children: /* @__PURE__ */
|
|
20460
|
+
children: /* @__PURE__ */ B(VT, { ref: n, props: { appToken: t } })
|
|
20460
20461
|
}
|
|
20461
20462
|
) });
|
|
20462
20463
|
}, WT = ({ displayMode: e, appToken: t }) => {
|
|
20463
20464
|
const [n, r] = ge(!1), { appInternalContext: a } = lt(Us);
|
|
20464
20465
|
return /* @__PURE__ */ De(rn, { children: [
|
|
20465
20466
|
e === ln.LAUNCHER && a.hasFetchedSettings && /* @__PURE__ */ De(rn, { children: [
|
|
20466
|
-
/* @__PURE__ */
|
|
20467
|
+
/* @__PURE__ */ B(
|
|
20467
20468
|
Gf,
|
|
20468
20469
|
{
|
|
20469
20470
|
isWidgetOpen: n,
|
|
20470
20471
|
setIsWidgetOpen: r
|
|
20471
20472
|
}
|
|
20472
20473
|
),
|
|
20473
|
-
/* @__PURE__ */
|
|
20474
|
+
/* @__PURE__ */ B(qT, { isWidgetOpen: n, appToken: t })
|
|
20474
20475
|
] }),
|
|
20475
|
-
e === ln.CHATBOX && a.hasFetchedSettings && /* @__PURE__ */
|
|
20476
|
+
e === ln.CHATBOX && a.hasFetchedSettings && /* @__PURE__ */ B("div", { className: "chatBox", children: /* @__PURE__ */ B(Nl, { appToken: t }) })
|
|
20476
20477
|
] });
|
|
20477
20478
|
};
|
|
20478
20479
|
var ln = /* @__PURE__ */ ((e) => (e.LAUNCHER = "launcher", e.CHATBOX = "chatbox", e))(ln || {});
|
|
@@ -20485,7 +20486,7 @@ function eg({
|
|
|
20485
20486
|
"appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC"
|
|
20486
20487
|
);
|
|
20487
20488
|
const r = kf(t);
|
|
20488
|
-
return /* @__PURE__ */
|
|
20489
|
+
return /* @__PURE__ */ B("div", { className: "chatSystemWidget", children: /* @__PURE__ */ B(Pf, { appToken: e, agentId: n, children: /* @__PURE__ */ B(WT, { displayMode: r, appToken: e }) }) });
|
|
20489
20490
|
}
|
|
20490
20491
|
export {
|
|
20491
20492
|
eg as App
|