ai-chat-bot-interface 1.8.5 → 1.8.6

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as Ut, inject as Bn, shallowRef as fa, ref as H, computed as ie, onBeforeMount as dl, watch as Re, onMounted as Nt, onUnmounted as $u, defineComponent as _t, h as On, createVNode as R, Text as _l, Fragment as se, createElementBlock as N, openBlock as I, createElementVNode as C, nextTick as Qe, render as _o, renderSlot as da, normalizeStyle as fu, normalizeClass as at, createCommentVNode as le, withModifiers as oe, toDisplayString as $, unref as re, withDirectives as an, vShow as Vn, renderList as Be, createBlock as st, createTextVNode as Tt, withKeys as _a, vModelText as hl, resolveDynamicComponent as pl, createStaticVNode as ml, onDeactivated as Un, isRef as gl, onActivated as Rr, reactive as jr, onBeforeUnmount as ha, provide as zn, watchEffect as bl, mergeProps as Qt, Transition as pa, Teleport as ma, createApp as vl, withCtx as yl } from "vue";
1
+ import { getCurrentInstance as Ut, inject as Bn, shallowRef as fa, ref as H, computed as ie, onBeforeMount as dl, watch as Re, onMounted as Nt, onUnmounted as $u, defineComponent as _t, h as On, createVNode as R, Text as _l, Fragment as le, createElementBlock as N, openBlock as I, createElementVNode as C, nextTick as Qe, render as _o, renderSlot as da, normalizeStyle as fu, normalizeClass as at, createCommentVNode as ce, withModifiers as oe, toDisplayString as $, unref as re, withDirectives as an, vShow as Vn, renderList as Be, createBlock as st, createTextVNode as Tt, withKeys as _a, vModelText as hl, resolveDynamicComponent as pl, createStaticVNode as ml, onDeactivated as Un, isRef as gl, onActivated as Rr, reactive as jr, onBeforeUnmount as ha, provide as zn, watchEffect as bl, mergeProps as Qt, Transition as pa, Teleport as ma, createApp as vl, withCtx as yl } from "vue";
2
2
  /*!
3
3
  * shared v9.14.5
4
4
  * (c) 2025 kazuya kawaguchi
@@ -24,7 +24,7 @@ if (process.env.NODE_ENV !== "production") {
24
24
  }
25
25
  const xl = /\{([0-9a-zA-Z]+)\}/g;
26
26
  function Br(e, ...t) {
27
- return t.length === 1 && ce(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(xl, (u, n) => t.hasOwnProperty(n) ? t[n] : "");
27
+ return t.length === 1 && fe(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(xl, (u, n) => t.hasOwnProperty(n) ? t[n] : "");
28
28
  }
29
29
  const zt = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), El = (e, t, u) => kl({ l: e, k: t, s: u }), kl = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ze = (e) => typeof e == "number" && isFinite(e), Cl = (e) => va(e) === "[object Date]", Iu = (e) => va(e) === "[object RegExp]", qn = (e) => ae(e) && Object.keys(e).length === 0, Xe = Object.assign, wl = Object.create, ve = (e = null) => wl(e);
30
30
  let po;
@@ -49,8 +49,8 @@ const Al = Object.prototype.hasOwnProperty;
49
49
  function xt(e, t) {
50
50
  return Al.call(e, t);
51
51
  }
52
- const $e = Array.isArray, Oe = (e) => typeof e == "function", j = (e) => typeof e == "string", Ce = (e) => typeof e == "boolean", ce = (e) => e !== null && typeof e == "object", Tl = (e) => ce(e) && Oe(e.then) && Oe(e.catch), ba = Object.prototype.toString, va = (e) => ba.call(e), ae = (e) => {
53
- if (!ce(e))
52
+ const $e = Array.isArray, Oe = (e) => typeof e == "function", j = (e) => typeof e == "string", Ce = (e) => typeof e == "boolean", fe = (e) => e !== null && typeof e == "object", Tl = (e) => fe(e) && Oe(e.then) && Oe(e.catch), ba = Object.prototype.toString, va = (e) => ba.call(e), ae = (e) => {
53
+ if (!fe(e))
54
54
  return !1;
55
55
  const t = Object.getPrototypeOf(e);
56
56
  return t === null || t.constructor === Object;
@@ -108,7 +108,7 @@ function Nl() {
108
108
  }
109
109
  };
110
110
  }
111
- const hn = (e) => !ce(e) || $e(e);
111
+ const hn = (e) => !fe(e) || $e(e);
112
112
  function wn(e, t) {
113
113
  if (hn(e) || hn(t))
114
114
  throw new Error("Invalid value");
@@ -116,7 +116,7 @@ function wn(e, t) {
116
116
  for (; u.length; ) {
117
117
  const { src: n, des: r } = u.pop();
118
118
  Object.keys(n).forEach((o) => {
119
- o !== "__proto__" && (ce(n[o]) && !ce(r[o]) && (r[o] = Array.isArray(n[o]) ? [] : ve()), hn(r[o]) || hn(n[o]) ? r[o] = n[o] : u.push({ src: n[o], des: r[o] }));
119
+ o !== "__proto__" && (fe(n[o]) && !fe(r[o]) && (r[o] = Array.isArray(n[o]) ? [] : ve()), hn(r[o]) || hn(n[o]) ? r[o] = n[o] : u.push({ src: n[o], des: r[o] }));
120
120
  });
121
121
  }
122
122
  }
@@ -405,7 +405,7 @@ function Gl(e, t = {}) {
405
405
  b === 36 || // $
406
406
  b === 45;
407
407
  }
408
- function fe(g) {
408
+ function se(g) {
409
409
  return ge(g, te);
410
410
  }
411
411
  function We(g) {
@@ -462,7 +462,7 @@ function Gl(e, t = {}) {
462
462
  function Ge(g) {
463
463
  D(g);
464
464
  let b = "", L = "";
465
- for (; b = fe(g); )
465
+ for (; b = se(g); )
466
466
  L += b;
467
467
  return g.currentChar() === Wt && f(G.UNTERMINATED_CLOSING_BRACE, o(), 0), L;
468
468
  }
@@ -1118,7 +1118,7 @@ function fc() {
1118
1118
  typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (jt().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (jt().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (jt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1119
1119
  }
1120
1120
  function kt(e) {
1121
- return ce(e) && Ur(e) === 0 && (xt(e, "b") || xt(e, "body"));
1121
+ return fe(e) && Ur(e) === 0 && (xt(e, "b") || xt(e, "body"));
1122
1122
  }
1123
1123
  const ka = ["b", "body"];
1124
1124
  function dc(e) {
@@ -1450,10 +1450,10 @@ function kc(e) {
1450
1450
  }
1451
1451
  const ko = /* @__PURE__ */ new Map();
1452
1452
  function Cc(e, t) {
1453
- return ce(e) ? e[t] : null;
1453
+ return fe(e) ? e[t] : null;
1454
1454
  }
1455
1455
  function wc(e, t) {
1456
- if (!ce(e))
1456
+ if (!fe(e))
1457
1457
  return null;
1458
1458
  let u = ko.get(t);
1459
1459
  if (u || (u = kc(t), u && ko.set(t, u)), !u)
@@ -1483,11 +1483,11 @@ function Nc(e, t) {
1483
1483
  t.count || (t.count = e), t.n || (t.n = e);
1484
1484
  }
1485
1485
  function Lc(e = {}) {
1486
- const t = e.locale, u = Sc(e), n = ce(e.pluralRules) && j(t) && Oe(e.pluralRules[t]) ? e.pluralRules[t] : Co, r = ce(e.pluralRules) && j(t) && Oe(e.pluralRules[t]) ? Co : void 0, o = (A) => A[n(u, A.length, r)], i = e.list || [], a = (A) => i[A], s = e.named || ve();
1486
+ const t = e.locale, u = Sc(e), n = fe(e.pluralRules) && j(t) && Oe(e.pluralRules[t]) ? e.pluralRules[t] : Co, r = fe(e.pluralRules) && j(t) && Oe(e.pluralRules[t]) ? Co : void 0, o = (A) => A[n(u, A.length, r)], i = e.list || [], a = (A) => i[A], s = e.named || ve();
1487
1487
  ze(e.pluralIndex) && Nc(u, s);
1488
1488
  const l = (A) => s[A];
1489
1489
  function c(A) {
1490
- const k = Oe(e.messages) ? e.messages(A) : ce(e.messages) ? e.messages[A] : !1;
1490
+ const k = Oe(e.messages) ? e.messages(A) : fe(e.messages) ? e.messages[A] : !1;
1491
1491
  return k || (e.parent ? e.parent.message(A) : Ac);
1492
1492
  }
1493
1493
  const f = (A) => e.modifiers ? e.modifiers[A] : Dc, d = ae(e.processor) && Oe(e.processor.normalize) ? e.processor.normalize : Oc, p = ae(e.processor) && Oe(e.processor.interpolate) ? e.processor.interpolate : Ic, h = ae(e.processor) && j(e.processor.type) ? e.processor.type : Tc, D = {
@@ -1497,7 +1497,7 @@ function Lc(e = {}) {
1497
1497
  linked: (A, ...k) => {
1498
1498
  const [m, v] = k;
1499
1499
  let w = "text", _ = "";
1500
- k.length === 1 ? ce(m) ? (_ = m.modifier || _, w = m.type || w) : j(m) && (_ = m || _) : k.length === 2 && (j(m) && (_ = m || _), j(v) && (w = v || w));
1500
+ k.length === 1 ? fe(m) ? (_ = m.modifier || _, w = m.type || w) : j(m) && (_ = m || _) : k.length === 2 && (j(m) && (_ = m || _), j(v) && (w = v || w));
1501
1501
  const E = c(A)(D), y = (
1502
1502
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
1503
1503
  w === "vnode" && $e(E) && _ ? E[0] : E
@@ -1613,7 +1613,7 @@ function wo(e) {
1613
1613
  function Bc(e, t, u) {
1614
1614
  return [.../* @__PURE__ */ new Set([
1615
1615
  u,
1616
- ...$e(t) ? t : ce(t) ? Object.keys(t) : j(t) ? [t] : [u]
1616
+ ...$e(t) ? t : fe(t) ? Object.keys(t) : j(t) ? [t] : [u]
1617
1617
  ])];
1618
1618
  }
1619
1619
  function Fa(e, t, u) {
@@ -1659,9 +1659,9 @@ function Uc(e, t, u) {
1659
1659
  const zc = "9.14.5", Yn = -1, Ku = "en-US", Sn = "", Ao = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1660
1660
  function qc() {
1661
1661
  return {
1662
- upper: (e, t) => t === "text" && j(e) ? e.toUpperCase() : t === "vnode" && ce(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1663
- lower: (e, t) => t === "text" && j(e) ? e.toLowerCase() : t === "vnode" && ce(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1664
- capitalize: (e, t) => t === "text" && j(e) ? Ao(e) : t === "vnode" && ce(e) && "__v_isVNode" in e ? Ao(e.children) : e
1662
+ upper: (e, t) => t === "text" && j(e) ? e.toUpperCase() : t === "vnode" && fe(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1663
+ lower: (e, t) => t === "text" && j(e) ? e.toLowerCase() : t === "vnode" && fe(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1664
+ capitalize: (e, t) => t === "text" && j(e) ? Ao(e) : t === "vnode" && fe(e) && "__v_isVNode" in e ? Ao(e.children) : e
1665
1665
  };
1666
1666
  }
1667
1667
  let Ma;
@@ -1688,7 +1688,7 @@ let Io = 0;
1688
1688
  function Zc(e = {}) {
1689
1689
  const t = Oe(e.onWarn) ? e.onWarn : Lt, u = j(e.version) ? e.version : zc, n = j(e.locale) || Oe(e.locale) ? e.locale : Ku, r = Oe(n) ? Ku : n, o = $e(e.fallbackLocale) || ae(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, i = ae(e.messages) ? e.messages : or(r), a = ae(e.datetimeFormats) ? e.datetimeFormats : or(r), s = ae(e.numberFormats) ? e.numberFormats : or(r), l = Xe(ve(), e.modifiers, qc()), c = e.pluralRules || ve(), f = Oe(e.missing) ? e.missing : null, d = Ce(e.missingWarn) || Iu(e.missingWarn) ? e.missingWarn : !0, p = Ce(e.fallbackWarn) || Iu(e.fallbackWarn) ? e.fallbackWarn : !0, h = !!e.fallbackFormat, x = !!e.unresolving, D = Oe(e.postTranslation) ? e.postTranslation : null, A = ae(e.processor) ? e.processor : null, k = Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter, v = Oe(e.messageCompiler) ? e.messageCompiler : Ma;
1690
1690
  process.env.NODE_ENV !== "production" && Oe(e.messageCompiler) && ga(_u(Je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1691
- const w = Oe(e.messageResolver) ? e.messageResolver : Pa || Cc, _ = Oe(e.localeFallbacker) ? e.localeFallbacker : $a || Bc, E = ce(e.fallbackContext) ? e.fallbackContext : void 0, y = e, T = ce(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(), U = ce(y.__numberFormatters) ? y.__numberFormatters : /* @__PURE__ */ new Map(), Y = ce(y.__meta) ? y.__meta : {};
1691
+ const w = Oe(e.messageResolver) ? e.messageResolver : Pa || Cc, _ = Oe(e.localeFallbacker) ? e.localeFallbacker : $a || Bc, E = fe(e.fallbackContext) ? e.fallbackContext : void 0, y = e, T = fe(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(), U = fe(y.__numberFormatters) ? y.__numberFormatters : /* @__PURE__ */ new Map(), Y = fe(y.__meta) ? y.__meta : {};
1692
1692
  Io++;
1693
1693
  const W = {
1694
1694
  version: u,
@@ -1909,7 +1909,7 @@ function Lo(e, ...t) {
1909
1909
  return W;
1910
1910
  }
1911
1911
  function u0(e) {
1912
- $e(e.list) ? e.list = e.list.map((t) => j(t) ? mo(t) : t) : ce(e.named) && Object.keys(e.named).forEach((t) => {
1912
+ $e(e.list) ? e.list = e.list.map((t) => j(t) ? mo(t) : t) : fe(e.named) && Object.keys(e.named).forEach((t) => {
1913
1913
  j(e.named[t]) && (e.named[t] = mo(e.named[t]));
1914
1914
  });
1915
1915
  }
@@ -2341,19 +2341,19 @@ const c0 = {
2341
2341
  [Ne.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2342
2342
  }, Cr = /* @__PURE__ */ zt("__translateVNode"), wr = /* @__PURE__ */ zt("__datetimeParts"), Dr = /* @__PURE__ */ zt("__numberParts"), Ar = /* @__PURE__ */ zt("__enableEmitter"), Tr = /* @__PURE__ */ zt("__disableEmitter"), f0 = zt("__setPluralRules"), Qa = /* @__PURE__ */ zt("__injectWithOption"), Or = /* @__PURE__ */ zt("__dispose");
2343
2343
  function Ju(e) {
2344
- if (!ce(e) || kt(e))
2344
+ if (!fe(e) || kt(e))
2345
2345
  return e;
2346
2346
  for (const t in e)
2347
2347
  if (xt(e, t))
2348
2348
  if (!t.includes("."))
2349
- ce(e[t]) && Ju(e[t]);
2349
+ fe(e[t]) && Ju(e[t]);
2350
2350
  else {
2351
2351
  const u = t.split("."), n = u.length - 1;
2352
2352
  let r = e, o = !1;
2353
2353
  for (let i = 0; i < n; i++) {
2354
2354
  if (u[i] === "__proto__")
2355
2355
  throw new Error(`unsafe key: ${u[i]}`);
2356
- if (u[i] in r || (r[u[i]] = ve()), !ce(r[u[i]])) {
2356
+ if (u[i] in r || (r[u[i]] = ve()), !fe(r[u[i]])) {
2357
2357
  process.env.NODE_ENV !== "production" && Lt(Nn(rt.IGNORE_OBJ_FLATTEN, {
2358
2358
  key: u[i]
2359
2359
  })), o = !0;
@@ -2363,7 +2363,7 @@ function Ju(e) {
2363
2363
  }
2364
2364
  if (o || (kt(r) ? Sa.includes(u[n]) || delete e[t] : (r[u[n]] = e[t], delete e[t])), !kt(r)) {
2365
2365
  const i = r[u[n]];
2366
- ce(i) && Ju(i);
2366
+ fe(i) && Ju(i);
2367
2367
  }
2368
2368
  }
2369
2369
  return e;
@@ -2385,7 +2385,7 @@ function es(e) {
2385
2385
  return e.type;
2386
2386
  }
2387
2387
  function d0(e, t, u) {
2388
- let n = ce(t.messages) ? t.messages : ve();
2388
+ let n = fe(t.messages) ? t.messages : ve();
2389
2389
  "__i18nGlobal" in u && (n = Hr(e.locale.value, {
2390
2390
  messages: n,
2391
2391
  __i18n: u.__i18nGlobal
@@ -2395,13 +2395,13 @@ function d0(e, t, u) {
2395
2395
  e.mergeLocaleMessage(o, n[o]);
2396
2396
  });
2397
2397
  {
2398
- if (ce(t.datetimeFormats)) {
2398
+ if (fe(t.datetimeFormats)) {
2399
2399
  const o = Object.keys(t.datetimeFormats);
2400
2400
  o.length && o.forEach((i) => {
2401
2401
  e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
2402
2402
  });
2403
2403
  }
2404
- if (ce(t.numberFormats)) {
2404
+ if (fe(t.numberFormats)) {
2405
2405
  const o = Object.keys(t.numberFormats);
2406
2406
  o.length && o.forEach((i) => {
2407
2407
  e.mergeNumberFormat(i, t.numberFormats[i]);
@@ -2481,7 +2481,7 @@ function p0(e = {}, t) {
2481
2481
  c.value = O, T.fallbackLocale = c.value, Bu(T, l.value, O);
2482
2482
  }
2483
2483
  }), Z = ie(() => f.value), X = /* @__PURE__ */ ie(() => d.value), te = /* @__PURE__ */ ie(() => p.value);
2484
- function fe() {
2484
+ function se() {
2485
2485
  return Oe(v) ? v : null;
2486
2486
  }
2487
2487
  function We(O) {
@@ -2531,7 +2531,7 @@ function p0(e = {}, t) {
2531
2531
  }
2532
2532
  function J(...O) {
2533
2533
  const [M, he, Me] = O;
2534
- if (Me && !ce(Me))
2534
+ if (Me && !fe(Me))
2535
2535
  throw Kt(Ne.INVALID_ARGUMENT);
2536
2536
  return me(M, he, Xe({ resolvedMessage: !0 }, Me || {}));
2537
2537
  }
@@ -2724,7 +2724,7 @@ function p0(e = {}, t) {
2724
2724
  getLocaleMessage: ut,
2725
2725
  setLocaleMessage: ru,
2726
2726
  mergeLocaleMessage: Se,
2727
- getPostTranslationHandler: fe,
2727
+ getPostTranslationHandler: se,
2728
2728
  setPostTranslationHandler: We,
2729
2729
  getMissingHandler: et,
2730
2730
  setMissingHandler: V,
@@ -2758,14 +2758,14 @@ function m0({ slots: e }, t) {
2758
2758
  return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, r) => [
2759
2759
  ...n,
2760
2760
  // prettier-ignore
2761
- ...r.type === se ? r.children : [r]
2761
+ ...r.type === le ? r.children : [r]
2762
2762
  ], []) : t.reduce((u, n) => {
2763
2763
  const r = e[n];
2764
2764
  return r && (u[n] = r()), u;
2765
2765
  }, ve());
2766
2766
  }
2767
2767
  function ts(e) {
2768
- return se;
2768
+ return le;
2769
2769
  }
2770
2770
  Xe({
2771
2771
  keypath: {
@@ -2786,14 +2786,14 @@ function us(e, t, u, n) {
2786
2786
  return () => {
2787
2787
  const i = { part: !0 };
2788
2788
  let a = ve();
2789
- e.locale && (i.locale = e.locale), j(e.format) ? i.key = e.format : ce(e.format) && (j(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((d, p) => u.includes(p) ? Xe(ve(), d, { [p]: e.format[p] }) : d, ve()));
2789
+ e.locale && (i.locale = e.locale), j(e.format) ? i.key = e.format : fe(e.format) && (j(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((d, p) => u.includes(p) ? Xe(ve(), d, { [p]: e.format[p] }) : d, ve()));
2790
2790
  const s = n(e.value, i, a);
2791
2791
  let l = [i.key];
2792
2792
  $e(s) ? l = s.map((d, p) => {
2793
2793
  const h = r[d.type], x = h ? h({ [d.type]: d.value, index: p, parts: s }) : [d.value];
2794
2794
  return g0(x) && (x[0].key = `${d.type}-${p}`), x;
2795
2795
  }) : j(s) && (l = [s]);
2796
- const c = Xe(ve(), o), f = j(e.tag) || ce(e.tag) ? e.tag : ts();
2796
+ const c = Xe(ve(), o), f = j(e.tag) || fe(e.tag) ? e.tag : ts();
2797
2797
  return On(f, c, l);
2798
2798
  };
2799
2799
  }
@@ -2940,7 +2940,7 @@ function w0(e, t, u, n = {}) {
2940
2940
  function te(F) {
2941
2941
  return _(), F();
2942
2942
  }
2943
- function fe(...F) {
2943
+ function se(...F) {
2944
2944
  return o.value ? te(() => Reflect.apply(o.value.t, null, [...F])) : te(() => "");
2945
2945
  }
2946
2946
  function We(...F) {
@@ -3048,7 +3048,7 @@ function w0(e, t, u, n = {}) {
3048
3048
  set escapeParameter(F) {
3049
3049
  o.value && (o.value.escapeParameter = F);
3050
3050
  },
3051
- t: fe,
3051
+ t: se,
3052
3052
  getPostTranslationHandler: W,
3053
3053
  setPostTranslationHandler: ge,
3054
3054
  getMissingHandler: Z,
@@ -5373,7 +5373,7 @@ const Cs = /* @__PURE__ */ Ae(B1, [["render", U1]]), z1 = ["src"], q1 = { class:
5373
5373
  width: "100%",
5374
5374
  controls: "true"
5375
5375
  }, null, 8, G1)
5376
- ])) : le("", !0),
5376
+ ])) : ce("", !0),
5377
5377
  C("img", {
5378
5378
  src: a.value.craftUrl,
5379
5379
  width: "100%",
@@ -5383,7 +5383,7 @@ const Cs = /* @__PURE__ */ Ae(B1, [["render", U1]]), z1 = ["src"], q1 = { class:
5383
5383
  class: "collapse_btn",
5384
5384
  onClick: k[1] || (k[1] = oe((m) => r.value = !1, ["stop"]))
5385
5385
  }, $(re(t)("dishes_card_collapse")), 1)
5386
- ], 512)) : le("", !0)
5386
+ ], 512)) : ce("", !0)
5387
5387
  ], 6));
5388
5388
  }
5389
5389
  }, K1 = /* @__PURE__ */ Ae(Z1, [["__scopeId", "data-v-4901daf6"]]), J1 = { class: "dl_wrap" }, Q1 = { key: 0 }, e_ = {
@@ -5451,23 +5451,23 @@ const Cs = /* @__PURE__ */ Ae(B1, [["render", U1]]), z1 = ["src"], q1 = { class:
5451
5451
  C("div", {
5452
5452
  class: at(["dl_list", { show_full: a.value }])
5453
5453
  }, [
5454
- (I(!0), N(se, null, Be(e.skuList, (h, x) => (I(), N(se, {
5454
+ (I(!0), N(le, null, Be(e.skuList, (h, x) => (I(), N(le, {
5455
5455
  key: h.category
5456
5456
  }, [
5457
5457
  c(x) ? (I(), N("div", Q1, [
5458
- x > 0 ? (I(), N("div", e_)) : le("", !0),
5458
+ x > 0 ? (I(), N("div", e_)) : ce("", !0),
5459
5459
  re(n) === "en-US" ? (I(), N("div", t_, $(h.strDate.slice(6)) + "/" + $(h.strDate.slice(4, 6)), 1)) : (I(), N("div", u_, $(h.strDate.slice(4, 6)) + "月" + $(h.strDate.slice(6)) + "日 ", 1))
5460
- ])) : le("", !0),
5460
+ ])) : ce("", !0),
5461
5461
  h.list && h.list.length ? (I(), N("div", n_, [
5462
5462
  C("p", {
5463
5463
  class: "title",
5464
5464
  onClick: oe(o, ["stop"])
5465
5465
  }, $(re(u)(`dishes_cart_cate_${h.category}`)) + " " + $(l(h)) + "kcal ", 1),
5466
5466
  C("div", null, [
5467
- (I(!0), N(se, null, Be(h.list, (D) => (I(), N(se, {
5467
+ (I(!0), N(le, null, Be(h.list, (D) => (I(), N(le, {
5468
5468
  key: D.id
5469
5469
  }, [
5470
- (I(!0), N(se, null, Be(D.getCategoryList, (A, k) => (I(), st(K1, {
5470
+ (I(!0), N(le, null, Be(D.getCategoryList, (A, k) => (I(), st(K1, {
5471
5471
  key: k,
5472
5472
  info: A,
5473
5473
  "def-msg": e.defMsg,
@@ -5475,7 +5475,7 @@ const Cs = /* @__PURE__ */ Ae(B1, [["render", U1]]), z1 = ["src"], q1 = { class:
5475
5475
  }, null, 8, ["info", "def-msg", "open"]))), 128))
5476
5476
  ], 64))), 128))
5477
5477
  ])
5478
- ])) : le("", !0)
5478
+ ])) : ce("", !0)
5479
5479
  ], 64))), 128))
5480
5480
  ], 2),
5481
5481
  C("div", {
@@ -5486,7 +5486,7 @@ const Cs = /* @__PURE__ */ Ae(B1, [["render", U1]]), z1 = ["src"], q1 = { class:
5486
5486
  Tt($(re(u)("msg_obj_dishes_warmTip")), 1),
5487
5487
  p[6] || (p[6] = C("br", null, null, -1)),
5488
5488
  C("strong", null, $(re(u)("msg_obj_dishes_halfPriceSurprise")), 1)
5489
- ])) : le("", !0),
5489
+ ])) : ce("", !0),
5490
5490
  e.channel === "cdc" ? (I(), N("div", o_, [
5491
5491
  C("div", {
5492
5492
  class: "btn btn_2",
@@ -5515,7 +5515,7 @@ const Cs = /* @__PURE__ */ Ae(B1, [["render", U1]]), z1 = ["src"], q1 = { class:
5515
5515
  }, [
5516
5516
  C("span", f_, $(re(u)("msg_obj_dishes_deliveryOrder")), 1),
5517
5517
  C("span", d_, $(re(u)("msg_obj_dishes_deliveryToDoor")), 1)
5518
- ])) : le("", !0),
5518
+ ])) : ce("", !0),
5519
5519
  C("div", {
5520
5520
  class: "btn btn_2",
5521
5521
  onClick: p[5] || (p[5] = oe((h) => f("pick_order"), ["stop"]))
@@ -5554,14 +5554,14 @@ const Cs = /* @__PURE__ */ Ae(B1, [["render", U1]]), z1 = ["src"], q1 = { class:
5554
5554
  }, r = t, o = () => {
5555
5555
  r("select", {});
5556
5556
  };
5557
- return (i, a) => (I(), N(se, null, [
5557
+ return (i, a) => (I(), N(le, null, [
5558
5558
  C("div", g_, [
5559
5559
  C("div", b_, [
5560
5560
  C("div", v_, $(re(u)("msg_obj_plan_dailyIntake")), 1),
5561
5561
  C("div", y_, $(e.info.totalIntake) + " kcal", 1)
5562
5562
  ])
5563
5563
  ]),
5564
- (I(!0), N(se, null, Be(e.info.planDetailList, (s) => (I(), N("div", {
5564
+ (I(!0), N(le, null, Be(e.info.planDetailList, (s) => (I(), N("div", {
5565
5565
  key: i.category,
5566
5566
  class: "card"
5567
5567
  }, [
@@ -5936,24 +5936,24 @@ const ws = /* @__PURE__ */ Ae(ch, [["render", dh]]), _h = {
5936
5936
  console.log("========", X), p.value || (p.value = l.defMsg.fileText);
5937
5937
  const te = new FormData();
5938
5938
  te.append("file", X);
5939
- const fe = new XMLHttpRequest();
5940
- fe.open("POST", "https://api.coze.cn/v1/files/upload"), fe.setRequestHeader(
5939
+ const se = new XMLHttpRequest();
5940
+ se.open("POST", "https://api.coze.cn/v1/files/upload"), se.setRequestHeader(
5941
5941
  "Authorization",
5942
5942
  f.value.headers.Authorization
5943
- ), fe.upload.onprogress = (We) => {
5943
+ ), se.upload.onprogress = (We) => {
5944
5944
  if (We.lengthComputable) {
5945
5945
  const et = Math.round(We.loaded / We.total * 100);
5946
5946
  console.log(`======进度======:${et}%`), s.value[Z].percent = et;
5947
5947
  }
5948
- }, fe.onreadystatechange = function() {
5949
- if (console.log("============", fe), fe.readyState === XMLHttpRequest.DONE)
5950
- if (fe.status === 200) {
5951
- console.log("上传成功:", fe.responseText);
5952
- const We = JSON.parse(fe.response);
5948
+ }, se.onreadystatechange = function() {
5949
+ if (console.log("============", se), se.readyState === XMLHttpRequest.DONE)
5950
+ if (se.status === 200) {
5951
+ console.log("上传成功:", se.responseText);
5952
+ const We = JSON.parse(se.response);
5953
5953
  s.value[Z].data = We.data;
5954
5954
  } else
5955
- console.error("上传失败:", fe.status);
5956
- }, fe.send(te);
5955
+ console.error("上传失败:", se.status);
5956
+ }, se.send(te);
5957
5957
  }, w = () => {
5958
5958
  E(!0), a.value = !0;
5959
5959
  }, _ = () => {
@@ -5995,10 +5995,10 @@ const ws = /* @__PURE__ */ Ae(ch, [["render", dh]]), _h = {
5995
5995
  };
5996
5996
  return (Z, X) => (I(), N("div", gh, [
5997
5997
  C("div", bh, [
5998
- (I(!0), N(se, null, Be(e.tagList, (te) => (I(), N("div", {
5998
+ (I(!0), N(le, null, Be(e.tagList, (te) => (I(), N("div", {
5999
5999
  class: "tag",
6000
6000
  key: te.value,
6001
- onClick: oe((fe) => x(te), ["stop"])
6001
+ onClick: oe((se) => x(te), ["stop"])
6002
6002
  }, [
6003
6003
  R(B_, { class: "icon" }),
6004
6004
  Tt(" " + $(te.name), 1)
@@ -6011,14 +6011,14 @@ const ws = /* @__PURE__ */ Ae(ch, [["render", dh]]), _h = {
6011
6011
  onClick: oe(T, ["stop"])
6012
6012
  }, [
6013
6013
  R(ws)
6014
- ])) : le("", !0),
6014
+ ])) : ce("", !0),
6015
6015
  C("div", xh, [
6016
6016
  C("div", {
6017
6017
  class: at(["file_list_box", { hidden: !a.value }])
6018
6018
  }, [
6019
6019
  C("div", Eh, [
6020
- (I(!0), N(se, null, Be(s.value, (te, fe) => (I(), N("div", {
6021
- key: fe,
6020
+ (I(!0), N(le, null, Be(s.value, (te, se) => (I(), N("div", {
6021
+ key: se,
6022
6022
  class: "file_card"
6023
6023
  }, [
6024
6024
  te.file_type.toLocaleLowerCase().includes("pdf") ? (I(), N("img", {
@@ -6041,7 +6041,7 @@ const ws = /* @__PURE__ */ Ae(ch, [["render", dh]]), _h = {
6041
6041
  ])) : (I(), st(lh, {
6042
6042
  key: 3,
6043
6043
  class: "close",
6044
- onClick: oe((We) => y(fe), ["stop"])
6044
+ onClick: oe((We) => y(se), ["stop"])
6045
6045
  }, null, 8, ["onClick"]))
6046
6046
  ]))), 128)),
6047
6047
  s.value.length < 4 ? (I(), N("div", {
@@ -6050,7 +6050,7 @@ const ws = /* @__PURE__ */ Ae(ch, [["render", dh]]), _h = {
6050
6050
  onClick: oe(k, ["stop"])
6051
6051
  }, [
6052
6052
  R(oh)
6053
- ])) : le("", !0),
6053
+ ])) : ce("", !0),
6054
6054
  C("div", {
6055
6055
  class: "file_close",
6056
6056
  onClick: oe(_, ["stop"])
@@ -6110,7 +6110,7 @@ const ws = /* @__PURE__ */ Ae(ch, [["render", dh]]), _h = {
6110
6110
  style: { display: "none" },
6111
6111
  onChange: m
6112
6112
  }, null, 544),
6113
- (I(), N(se, null, Be(n, (te) => C("div", {
6113
+ (I(), N(le, null, Be(n, (te) => C("div", {
6114
6114
  key: te.type,
6115
6115
  class: "card",
6116
6116
  onClick: oe(k, ["stop"])
@@ -6174,7 +6174,7 @@ const Uh = /* @__PURE__ */ Ae(jh, [["render", Vh]]), zh = ["src", "alt"], qh = "
6174
6174
  return (r, o) => (I(), N("div", {
6175
6175
  class: at(["img_wrap", e.list.length > 1 ? "grid_2" : "grid_1"])
6176
6176
  }, [
6177
- (I(!0), N(se, null, Be(e.list, (i) => (I(), N("img", {
6177
+ (I(!0), N(le, null, Be(e.list, (i) => (I(), N("img", {
6178
6178
  key: i.file_id,
6179
6179
  class: "img",
6180
6180
  width: "100%",
@@ -6267,15 +6267,15 @@ const ep = /* @__PURE__ */ Ae(Kh, [["render", Qh]]), tp = { class: "text" }, up
6267
6267
  });
6268
6268
  };
6269
6269
  return (o, i) => (I(), N("p", tp, [
6270
- (I(!0), N(se, null, Be(n.value, (a, s) => (I(), N(se, { key: s }, [
6271
- a.type === "text" ? (I(), N(se, { key: 0 }, [
6270
+ (I(!0), N(le, null, Be(n.value, (a, s) => (I(), N(le, { key: s }, [
6271
+ a.type === "text" ? (I(), N(le, { key: 0 }, [
6272
6272
  Tt($(a.content), 1)
6273
- ], 64)) : le("", !0),
6273
+ ], 64)) : ce("", !0),
6274
6274
  a.type === "link" ? (I(), N("a", {
6275
6275
  key: 1,
6276
6276
  class: "link",
6277
6277
  onClick: oe((l) => r(a), ["stop"])
6278
- }, $(a.content), 9, up)) : le("", !0)
6278
+ }, $(a.content), 9, up)) : ce("", !0)
6279
6279
  ], 64))), 128))
6280
6280
  ]));
6281
6281
  }
@@ -6331,9 +6331,9 @@ const ep = /* @__PURE__ */ Ae(Kh, [["render", Qh]]), tp = { class: "text" }, up
6331
6331
  const { t: u } = Ct(), n = t, r = (o) => {
6332
6332
  n("select", { ...o });
6333
6333
  };
6334
- return (o, i) => (I(), N(se, null, [
6334
+ return (o, i) => (I(), N(le, null, [
6335
6335
  C("div", null, $(re(u)("msg_obj_store_selectStore")), 1),
6336
- (I(!0), N(se, null, Be(e.list, (a) => (I(), st(lp, {
6336
+ (I(!0), N(le, null, Be(e.list, (a) => (I(), st(lp, {
6337
6337
  key: a.hpName,
6338
6338
  info: a,
6339
6339
  onSelect: r
@@ -9557,7 +9557,7 @@ const tg = /* @__PURE__ */ Ae(J2, [["render", eg]]), ug = { class: "pup_header"
9557
9557
  da(f.$slots, "default", {}, void 0, !0)
9558
9558
  ])
9559
9559
  ], 4)
9560
- ], 4)) : le("", !0);
9560
+ ], 4)) : ce("", !0);
9561
9561
  }
9562
9562
  }, sg = /* @__PURE__ */ Ae(ag, [["__scopeId", "data-v-bf0a2e37"]]);
9563
9563
  function lg() {
@@ -10390,7 +10390,7 @@ var xb = _t({
10390
10390
  to: e.teleport
10391
10391
  }, {
10392
10392
  default: () => [p(), w()]
10393
- }) : R(se, null, [p(), w()]);
10393
+ }) : R(le, null, [p(), w()]);
10394
10394
  }
10395
10395
  });
10396
10396
  const Eb = nu(xb);
@@ -10754,7 +10754,7 @@ var $b = _t({
10754
10754
  return {
10755
10755
  width: lt(S)
10756
10756
  };
10757
- }), fe = (S) => {
10757
+ }), se = (S) => {
10758
10758
  S.keyCode === 13 && (!(s && s.props.submitOnEnter) && e.type !== "textarea" && Yu(S), e.type === "search" && _()), t("keypress", S);
10759
10759
  }, We = () => e.id || `${n}-input`, et = () => r.status, V = () => {
10760
10760
  const S = pt("control", [c("inputAlign"), {
@@ -10789,7 +10789,7 @@ var $b = _t({
10789
10789
  onInput: w,
10790
10790
  onClick: Y,
10791
10791
  onChange: la,
10792
- onKeypress: fe,
10792
+ onKeypress: se,
10793
10793
  onCompositionend: la,
10794
10794
  onCompositionstart: Sb
10795
10795
  };
@@ -11467,10 +11467,10 @@ ${u("personal_form_taste")}:${f.value.find((Y) => Y.key === "taste").value ? f
11467
11467
  E.push(u(`personal_form_taboo_list_${y}`));
11468
11468
  }), _.value = E.join("、") || _.placeholder, E.join("、") || _.placeholder;
11469
11469
  };
11470
- return (_, E) => (I(), N(se, null, [
11470
+ return (_, E) => (I(), N(le, null, [
11471
11471
  C("div", Kb, [
11472
11472
  C("div", Jb, [
11473
- (I(!0), N(se, null, Be(f.value, (y) => (I(), N("div", {
11473
+ (I(!0), N(le, null, Be(f.value, (y) => (I(), N("div", {
11474
11474
  key: y.key,
11475
11475
  class: "pf_row"
11476
11476
  }, [
@@ -11516,7 +11516,7 @@ ${u("personal_form_taste")}:${f.value.find((Y) => Y.key === "taste").value ? f
11516
11516
  class: at({ sex: !0, selected: i.value.sex === "female" }),
11517
11517
  onClick: E[1] || (E[1] = oe((y) => v("female"), ["stop"]))
11518
11518
  }, $(re(u)("personal_form_sex_options_female")), 3)
11519
- ])) : le("", !0),
11519
+ ])) : ce("", !0),
11520
11520
  ["age", "height", "weight"].includes(i.value.key) ? (I(), N("div", t3, [
11521
11521
  R(re(Rb), {
11522
11522
  modelValue: i.value[i.value.key],
@@ -11529,9 +11529,9 @@ ${u("personal_form_taste")}:${f.value.find((Y) => Y.key === "taste").value ? f
11529
11529
  placeholder: re(u)("personal_form_placeholder_input")
11530
11530
  }, null, 8, ["modelValue", "type", "min", "max", "placeholder"]),
11531
11531
  C("div", u3, $(i.value.unit), 1)
11532
- ])) : le("", !0),
11532
+ ])) : ce("", !0),
11533
11533
  i.value.key === "sport" ? (I(), N("div", n3, [
11534
- (I(!0), N(se, null, Be(s.value, (y) => (I(), N("div", {
11534
+ (I(!0), N(le, null, Be(s.value, (y) => (I(), N("div", {
11535
11535
  key: y.key,
11536
11536
  class: at({ row: !0, selected: i.value.sport === y.key }),
11537
11537
  onClick: oe((T) => k(y), ["stop"])
@@ -11539,9 +11539,9 @@ ${u("personal_form_taste")}:${f.value.find((Y) => Y.key === "taste").value ? f
11539
11539
  C("div", o3, $(y.name), 1),
11540
11540
  C("div", i3, $(y.sub), 1)
11541
11541
  ], 10, r3))), 128))
11542
- ])) : le("", !0),
11542
+ ])) : ce("", !0),
11543
11543
  i.value.key === "target" ? (I(), N("div", a3, [
11544
- (I(!0), N(se, null, Be(a.value, (y) => (I(), N("div", {
11544
+ (I(!0), N(le, null, Be(a.value, (y) => (I(), N("div", {
11545
11545
  key: y.key,
11546
11546
  class: at({ row: !0, selected: i.value.target === y.key }),
11547
11547
  onClick: oe((T) => m(y), ["stop"])
@@ -11549,11 +11549,11 @@ ${u("personal_form_taste")}:${f.value.find((Y) => Y.key === "taste").value ? f
11549
11549
  C("div", l3, $(y.name), 1),
11550
11550
  C("div", c3, $(y.sub), 1)
11551
11551
  ], 10, s3))), 128))
11552
- ])) : le("", !0),
11552
+ ])) : ce("", !0),
11553
11553
  i.value.key === "taste" ? (I(), N("div", f3, [
11554
11554
  C("div", d3, $(re(u)("personal_form_taste")), 1),
11555
11555
  C("div", _3, [
11556
- (I(), N(se, null, Be(l, (y) => C("div", {
11556
+ (I(), N(le, null, Be(l, (y) => C("div", {
11557
11557
  class: at({ tag: !0, selected: i.value.taste.includes(y) }),
11558
11558
  key: y,
11559
11559
  onClick: oe((T) => A(y, "taste"), ["stop"])
@@ -11562,13 +11562,13 @@ ${u("personal_form_taste")}:${f.value.find((Y) => Y.key === "taste").value ? f
11562
11562
  E[4] || (E[4] = C("div", { class: "line" }, null, -1)),
11563
11563
  C("div", p3, $(re(u)("personal_form_taboo")), 1),
11564
11564
  C("div", m3, [
11565
- (I(), N(se, null, Be(c, (y) => C("div", {
11565
+ (I(), N(le, null, Be(c, (y) => C("div", {
11566
11566
  class: at({ tag: !0, selected: i.value.taboo.includes(y) }),
11567
11567
  key: y,
11568
11568
  onClick: oe((T) => A(y, "taboo"), ["stop"])
11569
11569
  }, $(re(u)(`personal_form_taboo_list_${y}`)), 11, g3)), 64))
11570
11570
  ])
11571
- ])) : le("", !0)
11571
+ ])) : ce("", !0)
11572
11572
  ]),
11573
11573
  _: 1
11574
11574
  }, 8, ["show", "title", "height"])
@@ -11589,7 +11589,7 @@ ${u("personal_form_taste")}:${f.value.find((Y) => Y.key === "taste").value ? f
11589
11589
  setup(e, { emit: t }) {
11590
11590
  const u = t;
11591
11591
  return (n, r) => (I(), N("div", y3, [
11592
- (I(!0), N(se, null, Be(e.list, (o) => (I(), N("div", {
11592
+ (I(!0), N(le, null, Be(e.list, (o) => (I(), N("div", {
11593
11593
  key: o,
11594
11594
  class: "btn",
11595
11595
  onClick: oe((i) => u("select", o), ["stop"])
@@ -11745,7 +11745,7 @@ ${u("personal_form_taste")}:${f.value.find((Y) => Y.key === "taste").value ? f
11745
11745
  getItem: (V) => d.storage === "sessionStorage" ? sessionStorage.getItem(V) : localStorage.getItem(V)
11746
11746
  };
11747
11747
  Nt(async () => {
11748
- console.log("=====55555====", h.value), localStorage.setItem("postToken", d.postToken || ""), m.getItem("conversationId") ? (o.value = m.getItem("conversationId"), await U(), await T(), l.value = !1) : (await E(), await v(), d.firstMsg && await _()), fe();
11748
+ console.log("=====55555====", h.value), localStorage.setItem("postToken", d.postToken || ""), m.getItem("conversationId") ? (o.value = m.getItem("conversationId"), await U(), await T(), l.value = !1) : (await E(), await v(), d.firstMsg && await _()), se();
11749
11749
  });
11750
11750
  const v = async () => {
11751
11751
  switch (d.firstType) {
@@ -11782,7 +11782,7 @@ ${u("personal_form_taste")}:${f.value.find((Y) => Y.key === "taste").value ? f
11782
11782
  showType: "card"
11783
11783
  }
11784
11784
  ]
11785
- });
11785
+ }), se();
11786
11786
  }, _ = async () => {
11787
11787
  var P;
11788
11788
  const ue = ((P = (await xu("/api/cn.weis.api.open/bdIntentRecognition", {
@@ -11983,6 +11983,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
11983
11983
  }
11984
11984
  });
11985
11985
  }
11986
+ se();
11986
11987
  }
11987
11988
  }, E = async () => {
11988
11989
  const V = await xu(
@@ -12067,7 +12068,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12067
12068
  reasoning_content: "",
12068
12069
  status: "answering",
12069
12070
  extra: []
12070
- }), fe(), A.value = "";
12071
+ }), se(), A.value = "";
12071
12072
  const B = s.value.length - 1, z = S.body.getReader(), de = new TextDecoder("utf-8");
12072
12073
  let _e = "";
12073
12074
  const Ze = () => {
@@ -12086,7 +12087,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12086
12087
  ...Ge
12087
12088
  }
12088
12089
  }
12089
- }), c.value += 1), fe();
12090
+ }), c.value += 1), se();
12090
12091
  break;
12091
12092
  }
12092
12093
  const Q = de.decode(F, { stream: !0 });
@@ -12097,11 +12098,11 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12097
12098
  if (ut.trim().length > 0 && ut.trim().startsWith("data:")) {
12098
12099
  const ru = ut.replace(/^data:\s*/, ""), Se = JSON.parse(ru);
12099
12100
  if (console.log("Received:", Se), i.value = !0, a.value = "04", !s.value[B].bot_id && Se.bot_id && (s.value[B].bot_id = Se.bot_id), !s.value[B].conversation_id && Se.conversation_id && (s.value[B].conversation_id = Se.conversation_id), Se.hasOwnProperty("reasoning_content") && Se.reasoning_content && Se.type === "answer")
12100
- s.value[B].status = "thinking", s.value[B].reasoning_content += Se.reasoning_content, fe();
12101
+ s.value[B].status = "thinking", s.value[B].reasoning_content += Se.reasoning_content, se();
12101
12102
  else if (Se.hasOwnProperty("content") && Se.hasOwnProperty("content_type") && Se.content_type === "text" && Se.hasOwnProperty("type") && Se.type === "answer" && !Se.hasOwnProperty("created_at"))
12102
12103
  s.value[B].status = "answering", s.value[B].content = Y(
12103
12104
  s.value[B].content + Se.content
12104
- ), fe();
12105
+ ), se();
12105
12106
  else if (Se.hasOwnProperty("type") && Se.type === "tool_response") {
12106
12107
  const g = JSON.parse(Se.content);
12107
12108
  if (g.hasOwnProperty("showType"))
@@ -12110,7 +12111,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12110
12111
  const b = JSON.parse(g.response_for_model);
12111
12112
  b.hasOwnProperty("showType") && s.value[B].extra.push({ ...b });
12112
12113
  }
12113
- fe();
12114
+ se();
12114
12115
  }
12115
12116
  }
12116
12117
  });
@@ -12244,14 +12245,14 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12244
12245
  p("call", V);
12245
12246
  break;
12246
12247
  }
12247
- }, fe = () => {
12248
+ }, se = () => {
12248
12249
  setTimeout(() => {
12249
12250
  Qe(() => {
12250
12251
  D.value.scrollIntoView();
12251
12252
  });
12252
12253
  }, 100);
12253
12254
  };
12254
- zn("triggerScrollToEnd", fe);
12255
+ zn("triggerScrollToEnd", se);
12255
12256
  const We = (V) => /#全日總熱量:(\d*?)kcal/g.test(V), et = (V, ue = !0) => {
12256
12257
  ue && s.value.push({
12257
12258
  conversation_id: "",
@@ -12295,7 +12296,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12295
12296
  role: "user"
12296
12297
  }
12297
12298
  }
12298
- }), fe();
12299
+ }), se();
12299
12300
  };
12300
12301
  return (V, ue) => (I(), N("div", C3, [
12301
12302
  C("div", w3, [
@@ -12312,7 +12313,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12312
12313
  ]),
12313
12314
  C("div", A3, [
12314
12315
  C("div", T3, $(e.name), 1),
12315
- e.nameSub ? (I(), N("div", O3, $(e.nameSub), 1)) : le("", !0)
12316
+ e.nameSub ? (I(), N("div", O3, $(e.nameSub), 1)) : ce("", !0)
12316
12317
  ])
12317
12318
  ]),
12318
12319
  C("div", I3, [
@@ -12334,7 +12335,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12334
12335
  [Vn, !1]
12335
12336
  ])
12336
12337
  ])
12337
- ])) : le("", !0),
12338
+ ])) : ce("", !0),
12338
12339
  C("div", F3, [
12339
12340
  k.value && k.value.onboarding_info ? (I(), N("div", M3, [
12340
12341
  C("div", P3, [
@@ -12349,14 +12350,14 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12349
12350
  ]),
12350
12351
  C("div", j3, $(k.value.onboarding_info.prologue), 1),
12351
12352
  C("div", B3, [
12352
- (I(!0), N(se, null, Be(k.value.onboarding_info.suggested_questions, (P, me) => (I(), N("span", {
12353
+ (I(!0), N(le, null, Be(k.value.onboarding_info.suggested_questions, (P, me) => (I(), N("span", {
12353
12354
  key: me,
12354
12355
  class: "board_sug",
12355
12356
  onClick: oe((J) => y([{ content: P, text: P }]), ["stop"])
12356
12357
  }, $(P), 9, V3))), 128))
12357
12358
  ])
12358
- ])) : le("", !0),
12359
- (I(!0), N(se, null, Be(s.value, (P, me) => (I(), N(se, { key: me }, [
12359
+ ])) : ce("", !0),
12360
+ (I(!0), N(le, null, Be(s.value, (P, me) => (I(), N(le, { key: me }, [
12360
12361
  P.role === "assistant" ? (I(), N("div", U3, [
12361
12362
  C("div", z3, [
12362
12363
  C("div", q3, [
@@ -12368,7 +12369,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12368
12369
  Tt(" " + $(e.name), 1)
12369
12370
  ]),
12370
12371
  C("div", W3, [
12371
- P.reasoning_content ? (I(), N(se, { key: 0 }, [
12372
+ P.reasoning_content ? (I(), N(le, { key: 0 }, [
12372
12373
  P.status === "thinking" ? (I(), N("div", Y3, [
12373
12374
  R(Zh, { class: "icon" }),
12374
12375
  Tt(" " + $(h.value.thinking), 1)
@@ -12377,18 +12378,18 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12377
12378
  Tt(" " + $(h.value.thinkCompleted), 1)
12378
12379
  ])),
12379
12380
  C("p", X3, $(P.reasoning_content), 1)
12380
- ], 64)) : le("", !0),
12381
- P.content ? (I(), N(se, { key: 1 }, [
12381
+ ], 64)) : ce("", !0),
12382
+ P.content ? (I(), N(le, { key: 1 }, [
12382
12383
  e.contentTye === "text" ? (I(), st(rp, {
12383
12384
  key: 0,
12384
12385
  content: P.content
12385
12386
  }, null, 8, ["content"])) : e.contentTye === "markdown" ? (I(), st(K2, {
12386
12387
  key: 1,
12387
12388
  content: P.content
12388
- }, null, 8, ["content"])) : le("", !0),
12389
- i.value ? le("", !0) : (I(), N(se, { key: 2 }, [
12389
+ }, null, 8, ["content"])) : ce("", !0),
12390
+ i.value ? ce("", !0) : (I(), N(le, { key: 2 }, [
12390
12391
  P.extra.length ? (I(), N("div", Z3, [
12391
- (I(!0), N(se, null, Be(P.extra, (J, Ge) => (I(), N(se, { key: Ge }, [
12392
+ (I(!0), N(le, null, Be(P.extra, (J, Ge) => (I(), N(le, { key: Ge }, [
12392
12393
  x.value.dishes && J.showType === "card" ? (I(), st(m_, {
12393
12394
  key: 0,
12394
12395
  "sku-list": J.skuList,
@@ -12396,23 +12397,23 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12396
12397
  "def-msg": h.value,
12397
12398
  channel: e.channel,
12398
12399
  onSelect: (tt) => X(tt, J)
12399
- }, null, 8, ["sku-list", "is-mini", "def-msg", "channel", "onSelect"])) : le("", !0),
12400
+ }, null, 8, ["sku-list", "is-mini", "def-msg", "channel", "onSelect"])) : ce("", !0),
12400
12401
  x.value.plan && J.showType === "plan" ? (I(), st(P_, {
12401
12402
  key: 1,
12402
12403
  info: J,
12403
12404
  "def-msg": h.value,
12404
12405
  onSelect: (tt) => X({ type: "match" }, J)
12405
- }, null, 8, ["info", "def-msg", "onSelect"])) : le("", !0),
12406
+ }, null, 8, ["info", "def-msg", "onSelect"])) : ce("", !0),
12406
12407
  x.value.store && J.showType === "store" ? (I(), st(cp, {
12407
12408
  key: 2,
12408
12409
  list: J.storeList,
12409
12410
  onSelect: ge
12410
- }, null, 8, ["list"])) : le("", !0),
12411
+ }, null, 8, ["list"])) : ce("", !0),
12411
12412
  x.value.personalForm && J.showType === "personalForm" ? (I(), st(v3, {
12412
12413
  key: 3,
12413
12414
  query: e.firstMsg,
12414
12415
  onSubmit: y
12415
- }, null, 8, ["query"])) : le("", !0),
12416
+ }, null, 8, ["query"])) : ce("", !0),
12416
12417
  J.showType === "contactKF" ? (I(), N("div", K3, [
12417
12418
  Tt($(re(u)("msg_obj_hotline")), 1),
12418
12419
  ue[2] || (ue[2] = C("a", { href: "tel:4006681606" }, "400 6681 606", -1)),
@@ -12422,25 +12423,25 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12422
12423
  width: "100%",
12423
12424
  style: { "margin-top": "10px" }
12424
12425
  }, null, -1))
12425
- ])) : le("", !0),
12426
+ ])) : ce("", !0),
12426
12427
  J.showType === "select_card" ? (I(), st(k3, {
12427
12428
  key: 5,
12428
12429
  list: J.intention,
12429
12430
  onSelect: w
12430
- }, null, 8, ["list"])) : le("", !0)
12431
+ }, null, 8, ["list"])) : ce("", !0)
12431
12432
  ], 64))), 128))
12432
12433
  ])) : We(P.content) ? (I(), N("div", J3, [
12433
12434
  C("div", {
12434
12435
  class: "cui_btn cui_btn_2",
12435
12436
  onClick: ue[0] || (ue[0] = oe((J) => X({ type: "match" }, {}), ["stop"]))
12436
12437
  }, $(h.value.useSolution), 1)
12437
- ])) : le("", !0)
12438
+ ])) : ce("", !0)
12438
12439
  ], 64))
12439
- ], 64)) : le("", !0),
12440
+ ], 64)) : ce("", !0),
12440
12441
  i.value && me === s.value.length - 1 ? (I(), N("div", Q3, [
12441
12442
  Tt($(re(u)("msg_obj_generating")) + " ", 1),
12442
12443
  R(Uh)
12443
- ])) : le("", !0)
12444
+ ])) : ce("", !0)
12444
12445
  ])
12445
12446
  ])
12446
12447
  ])) : (I(), N("div", e6, [
@@ -12462,7 +12463,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12462
12463
  R(Wh, {
12463
12464
  list: P.extra
12464
12465
  }, null, 8, ["list"])
12465
- ])) : le("", !0)
12466
+ ])) : ce("", !0)
12466
12467
  ])
12467
12468
  ])
12468
12469
  ]))
@@ -12488,7 +12489,7 @@ ${u("msg_obj_firstMsg_customizePlan")}`
12488
12489
  ])
12489
12490
  ]));
12490
12491
  }
12491
- }, s6 = /* @__PURE__ */ Ae(a6, [["__scopeId", "data-v-6d0508b2"]]), l6 = {
12492
+ }, s6 = /* @__PURE__ */ Ae(a6, [["__scopeId", "data-v-d6b4e2c6"]]), l6 = {
12492
12493
  common_send: "发送",
12493
12494
  common_cancel: "取消",
12494
12495
  common_confirm: "确认",