@aitronos/freddy-plugins 0.4.67 → 0.4.69

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,9 +1,9 @@
1
1
  var ze = Object.defineProperty;
2
2
  var He = (y, m, s) => m in y ? ze(y, m, { enumerable: !0, configurable: !0, writable: !0, value: s }) : y[m] = s;
3
3
  var ye = (y, m, s) => He(y, typeof m != "symbol" ? m + "" : m, s);
4
- import { defineAsyncComponent as R, defineComponent as N, createElementBlock as f, openBlock as c, normalizeStyle as oe, normalizeClass as F, createStaticVNode as Ue, createBlock as E, Transition as le, withCtx as Z, createCommentVNode as w, createElementVNode as a, renderSlot as q, toDisplayString as B, createVNode as L, unref as D, ref as A, computed as M, Fragment as O, renderList as j, resolveDynamicComponent as K, watch as G, withKeys as z, withModifiers as U, withDirectives as Q, vModelText as Y, createTextVNode as J, onMounted as me, nextTick as te, shallowRef as je, mergeProps as se, vModelDynamic as Ke, onUnmounted as De, useAttrs as Ge } from "vue";
4
+ import { defineAsyncComponent as R, defineComponent as N, createElementBlock as f, openBlock as c, normalizeStyle as oe, normalizeClass as F, createStaticVNode as Ue, createBlock as E, Transition as le, withCtx as Z, createCommentVNode as w, createElementVNode as a, renderSlot as q, toDisplayString as B, createVNode as V, unref as A, ref as D, computed as M, Fragment as O, renderList as j, resolveDynamicComponent as K, watch as G, withKeys as z, withModifiers as U, withDirectives as Q, vModelText as Y, createTextVNode as J, onMounted as me, nextTick as te, shallowRef as je, mergeProps as se, vModelDynamic as Ke, onUnmounted as Ae, useAttrs as Ge } from "vue";
5
5
  import { I as Ze, _ as H, a as pe, b as qe, c as We, d as he, e as ee, f as Je, g as Qe, h as Ye, i as Xe, j as ce, k as et, l as tt, m as ot, n as nt, o as fe, p as st, q as ae, r as it, s as at, u as ne, t as lt, v as ct, w as rt, x as dt, y as ut, z as pt, A as Se, B as ht, C as Te, D as ft, E as mt, F as vt, G as yt, H as gt, J as It, K as bt, L as kt, M as Fe, N as _t, O as Be, P as Me, Q as Ct, R as wt, S as St, T as $e, U as Tt } from "./icons-BAyOBzYf.js";
6
- import { V as Dc, W as Fc, X as Bc, Y as Mc, Z as Lc, $ as Vc, a0 as Ec, a1 as Nc, a2 as Rc, a3 as Oc, a4 as zc, a5 as Hc, a6 as Uc, a7 as jc, a8 as Kc, a9 as Gc, aa as Zc, ab as qc, ac as Wc, ad as Jc, ae as Qc, af as Yc, ag as Xc, ah as er, ai as tr, aj as or, ak as nr, al as sr, am as ir, an as ar, ao as lr, ap as cr, aq as rr, ar as dr, as as ur, at as pr, au as hr, av as fr, aw as mr, ax as vr, ay as yr, az as gr, aA as Ir, aB as br, aC as kr, aD as _r, aE as Cr, aF as wr, aG as Sr, aH as Tr, aI as $r, aJ as xr, aK as Pr, aL as Ar, aM as Dr, aN as Fr, aO as Br, aP as Mr, aQ as Lr, aR as Vr, aS as Er, aT as Nr, aU as Rr, aV as Or, aW as zr, aX as Hr, aY as Ur, aZ as jr, a_ as Kr, a$ as Gr, b0 as Zr, b1 as qr, b2 as Wr, b3 as Jr, b4 as Qr, b5 as Yr, b6 as Xr, b7 as ed, b8 as td, b9 as od, ba as nd, bb as sd, bc as id, bd as ad, be as ld, bf as cd, bg as rd, bh as dd, bi as ud, bj as pd, bk as hd, bl as fd, bm as md, bn as vd, bo as yd, bp as gd, bq as Id, br as bd, bs as kd, bt as _d, bu as Cd, bv as wd, bw as Sd, bx as Td, by as $d, bz as xd, bA as Pd, bB as Ad, bC as Dd, bD as Fd, bE as Bd, c3 as Md, bI as Ld, b$ as Vd, bW as Ed, bQ as Nd, bZ as Rd, b_ as Od, bH as zd, c1 as Hd, bX as Ud, bK as jd, bO as Kd, bM as Gd, bP as Zd, bL as qd, bR as Wd, bT as Jd, bJ as Qd, bY as Yd, c0 as Xd, bS as eu, c4 as tu, bG as ou, bF as nu, c2 as su, bN as iu, bV as au, bU as lu } from "./icons-BAyOBzYf.js";
6
+ import { V as Ac, W as Fc, X as Bc, Y as Mc, Z as Lc, $ as Vc, a0 as Ec, a1 as Nc, a2 as Rc, a3 as Oc, a4 as zc, a5 as Hc, a6 as Uc, a7 as jc, a8 as Kc, a9 as Gc, aa as Zc, ab as qc, ac as Wc, ad as Jc, ae as Qc, af as Yc, ag as Xc, ah as er, ai as tr, aj as or, ak as nr, al as sr, am as ir, an as ar, ao as lr, ap as cr, aq as rr, ar as dr, as as ur, at as pr, au as hr, av as fr, aw as mr, ax as vr, ay as yr, az as gr, aA as Ir, aB as br, aC as kr, aD as _r, aE as Cr, aF as wr, aG as Sr, aH as Tr, aI as $r, aJ as xr, aK as Pr, aL as Dr, aM as Ar, aN as Fr, aO as Br, aP as Mr, aQ as Lr, aR as Vr, aS as Er, aT as Nr, aU as Rr, aV as Or, aW as zr, aX as Hr, aY as Ur, aZ as jr, a_ as Kr, a$ as Gr, b0 as Zr, b1 as qr, b2 as Wr, b3 as Jr, b4 as Qr, b5 as Yr, b6 as Xr, b7 as ed, b8 as td, b9 as od, ba as nd, bb as sd, bc as id, bd as ad, be as ld, bf as cd, bg as rd, bh as dd, bi as ud, bj as pd, bk as hd, bl as fd, bm as md, bn as vd, bo as yd, bp as gd, bq as Id, br as bd, bs as kd, bt as _d, bu as Cd, bv as wd, bw as Sd, bx as Td, by as $d, bz as xd, bA as Pd, bB as Dd, bC as Ad, bD as Fd, bE as Bd, c3 as Md, bI as Ld, b$ as Vd, bW as Ed, bQ as Nd, bZ as Rd, b_ as Od, bH as zd, c1 as Hd, bX as Ud, bK as jd, bO as Kd, bM as Gd, bP as Zd, bL as qd, bR as Wd, bT as Jd, bJ as Qd, bY as Yd, c0 as Xd, bS as eu, c4 as tu, bG as ou, bF as nu, c2 as su, bN as iu, bV as au, bU as lu } from "./icons-BAyOBzYf.js";
7
7
  const Le = {
8
8
  mounted(y) {
9
9
  y.getAttribute("class") || y.setAttribute("class", "base-fallback-style");
@@ -315,10 +315,10 @@ const xt = [
315
315
  278.436,375.599 383.003,264.076 364.393,251.618 264.807,364.928 "></polygon></g></g></g></g>`, 1)
316
316
  ])], 6));
317
317
  }
318
- }), At = {
318
+ }), Dt = {
319
319
  key: 0,
320
320
  class: "fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"
321
- }, Dt = { class: "flex justify-center items-center" }, Ft = { class: "modal-header" }, Bt = { class: "modal-body" }, Mt = { class: "modal-footer" }, Ql = /* @__PURE__ */ N({
321
+ }, At = { class: "flex justify-center items-center" }, Ft = { class: "modal-header" }, Bt = { class: "modal-body" }, Mt = { class: "modal-footer" }, Ql = /* @__PURE__ */ N({
322
322
  __name: "AdvancedModal",
323
323
  props: {
324
324
  isVisible: { type: Boolean },
@@ -327,8 +327,8 @@ const xt = [
327
327
  setup(y) {
328
328
  return (m, s) => (c(), E(le, { name: "modal" }, {
329
329
  default: Z(() => [
330
- m.isVisible ? (c(), f("div", At, [
331
- a("div", Dt, [
330
+ m.isVisible ? (c(), f("div", Dt, [
331
+ a("div", At, [
332
332
  a("div", {
333
333
  class: F({
334
334
  "p-8 bg-background rounded-[2.5rem] overflow-hidden text-white 2xl:w-[56.25rem] xl:w-[56.25rem] lg:w-[56.25rem] md:w-[45.625rem] sm:w-[31.25rem] xs:w-auto": m.largeModel
@@ -379,7 +379,7 @@ const xt = [
379
379
  a("div", Rt, [
380
380
  a("div", Ot, B(i.assistantId), 1),
381
381
  i.isDefault ? (c(), f("div", zt, [
382
- L(D(Ze), { class: "freddy-assistant-field__lock-icon" })
382
+ V(A(Ze), { class: "freddy-assistant-field__lock-icon" })
383
383
  ])) : w("", !0)
384
384
  ])
385
385
  ])
@@ -393,7 +393,7 @@ const xt = [
393
393
  },
394
394
  emits: ["assistantClick"],
395
395
  setup(y, { emit: m }) {
396
- const s = y, e = m, i = A(s.selectedAssistantId), l = M(() => {
396
+ const s = y, e = m, i = D(s.selectedAssistantId), l = M(() => {
397
397
  const u = s.selectedAssistantId ?? i.value;
398
398
  return s.assistants.map((d) => ({
399
399
  ...d,
@@ -404,14 +404,14 @@ const xt = [
404
404
  };
405
405
  return (u, d) => (c(), f("div", jt, [
406
406
  a("div", Kt, [
407
- (c(!0), f(O, null, j(l.value, (o, g) => (c(), E(D(Ut), {
407
+ (c(!0), f(O, null, j(l.value, (o, g) => (c(), E(A(Ut), {
408
408
  key: o.id || g,
409
409
  name: o.name,
410
410
  date: o.date,
411
411
  assistantId: o.assistantId,
412
412
  isDefault: o.isDefault,
413
413
  isSelected: o.isSelected,
414
- onAssistantFieldClick: (b) => r(o, b)
414
+ onAssistantFieldClick: (_) => r(o, _)
415
415
  }, null, 8, ["name", "date", "assistantId", "isDefault", "isSelected", "onAssistantFieldClick"]))), 128))
416
416
  ])
417
417
  ]));
@@ -470,7 +470,7 @@ const xt = [
470
470
  class: "freddy-assistants-header__edit-overlay",
471
471
  onClick: i
472
472
  }, [
473
- L(D(pe), { class: "freddy-assistants-header__edit-icon" })
473
+ V(A(pe), { class: "freddy-assistants-header__edit-icon" })
474
474
  ])
475
475
  ])) : (c(), f("div", Jt, [
476
476
  (c(), E(K(u.value), { class: "freddy-assistants-header__icon-component" })),
@@ -478,7 +478,7 @@ const xt = [
478
478
  class: "freddy-assistants-header__edit-overlay-icon",
479
479
  onClick: i
480
480
  }, [
481
- L(D(pe), { class: "freddy-assistants-header__edit-icon" })
481
+ V(A(pe), { class: "freddy-assistants-header__edit-icon" })
482
482
  ])
483
483
  ])),
484
484
  d.assistantImage && d.assistantIcon ? (c(), f("div", Qt, [
@@ -497,7 +497,7 @@ const xt = [
497
497
  class: "freddy-assistants-header__playground-button",
498
498
  onClick: l
499
499
  }, [
500
- L(D(qe), { class: "freddy-assistants-header__playground-icon" }),
500
+ V(A(qe), { class: "freddy-assistants-header__playground-icon" }),
501
501
  o[0] || (o[0] = a("span", { class: "freddy-assistants-header__playground-label" }, "Playground", -1))
502
502
  ])
503
503
  ])
@@ -537,7 +537,7 @@ const xt = [
537
537
  }, null, 8, no),
538
538
  i.isSelected ? (c(), f("div", so)) : w("", !0),
539
539
  i.isSelected ? (c(), f("div", io, [
540
- L(he, { class: "freddy-avatar-choosing__check-icon-svg" })
540
+ V(he, { class: "freddy-avatar-choosing__check-icon-svg" })
541
541
  ])) : w("", !0)
542
542
  ], 2));
543
543
  }
@@ -558,7 +558,7 @@ const xt = [
558
558
  },
559
559
  emits: ["selectionChange", "avatarClick"],
560
560
  setup(y, { expose: m, emit: s }) {
561
- const e = y, i = s, l = A(null), r = M(() => e.avatars.find((d) => d.id === l.value) || null), u = (d) => {
561
+ const e = y, i = s, l = D(null), r = M(() => e.avatars.find((d) => d.id === l.value) || null), u = (d) => {
562
562
  l.value === d && e.allowDeselect ? l.value = null : l.value = d, i("selectionChange", l.value), i("avatarClick", d, l.value === d);
563
563
  };
564
564
  return m({
@@ -575,12 +575,12 @@ const xt = [
575
575
  return c(), f("div", lo, [
576
576
  d.title ? (c(), f("h3", co, B(d.title), 1)) : w("", !0),
577
577
  a("div", ro, [
578
- (c(!0), f(O, null, j(d.avatars, (b) => (c(), E(D(ao), {
579
- key: b.id,
580
- imageUrl: b.url,
581
- isSelected: l.value === b.id,
582
- altText: b.name,
583
- onClick: (x) => u(b.id)
578
+ (c(!0), f(O, null, j(d.avatars, (_) => (c(), E(A(ao), {
579
+ key: _.id,
580
+ imageUrl: _.url,
581
+ isSelected: l.value === _.id,
582
+ altText: _.name,
583
+ onClick: ($) => u(_.id)
584
584
  }, null, 8, ["imageUrl", "isSelected", "altText", "onClick"]))), 128))
585
585
  ]),
586
586
  d.showSelectedInfo ? (c(), f("div", uo, [
@@ -595,7 +595,7 @@ const xt = [
595
595
  }, Po = {
596
596
  key: 1,
597
597
  class: "freddy-choose-assistant-avatar__section"
598
- }, Ao = { class: "freddy-choose-assistant-avatar__voice-list" }, Do = { class: "freddy-choose-assistant-avatar__actions" }, Fo = ["disabled"], tc = /* @__PURE__ */ N({
598
+ }, Do = { class: "freddy-choose-assistant-avatar__voice-list" }, Ao = { class: "freddy-choose-assistant-avatar__actions" }, Fo = ["disabled"], tc = /* @__PURE__ */ N({
599
599
  __name: "ChooseAssistantAvatar",
600
600
  props: {
601
601
  title: { default: "Choose your assistant" },
@@ -626,9 +626,9 @@ const xt = [
626
626
  const e = y, i = () => {
627
627
  const t = [];
628
628
  let p = 1;
629
- for (const [S, _] of Object.entries(Qe))
630
- if (typeof _ == "object" && _ && "default" in _) {
631
- const n = _.default;
629
+ for (const [S, k] of Object.entries(Qe))
630
+ if (typeof k == "object" && k && "default" in k) {
631
+ const n = k.default;
632
632
  t.push({
633
633
  id: p++,
634
634
  name: S.replace("Icon", ""),
@@ -640,30 +640,30 @@ const xt = [
640
640
  });
641
641
  }
642
642
  return t;
643
- }, l = M(() => e.icons.length > 0 ? e.icons : i()), r = s, u = A(null), d = A(null), o = A(null), g = A(null), b = A(null), x = A("");
644
- M(() => x.value ? l.value.filter(
643
+ }, l = M(() => e.icons.length > 0 ? e.icons : i()), r = s, u = D(null), d = D(null), o = D(null), g = D(null), _ = D(null), $ = D("");
644
+ M(() => $.value ? l.value.filter(
645
645
  (p) => {
646
646
  var S;
647
- return (S = p.name) == null ? void 0 : S.toLowerCase().includes(x.value.toLowerCase());
647
+ return (S = p.name) == null ? void 0 : S.toLowerCase().includes($.value.toLowerCase());
648
648
  }
649
649
  ) : l.value);
650
- const V = M(() => u.value !== null || d.value !== null || g.value !== null || b.value !== null), v = () => {
650
+ const L = M(() => u.value !== null || d.value !== null || g.value !== null || _.value !== null), v = () => {
651
651
  r("close");
652
652
  }, T = () => {
653
653
  r("cancel");
654
- }, k = () => {
655
- V.value && r("save", {
654
+ }, b = () => {
655
+ L.value && r("save", {
656
656
  selectedIconId: u.value,
657
657
  selectedImageUrl: d.value,
658
658
  selectedFaceId: g.value,
659
- selectedVoiceId: b.value
659
+ selectedVoiceId: _.value
660
660
  });
661
661
  }, I = (t, p) => {
662
662
  d.value = t, o.value = p, r("imageSelect", t);
663
663
  }, C = (t) => {
664
- b.value = t.id, r("voiceSelect", t);
664
+ _.value = t.id, r("voiceSelect", t);
665
665
  }, P = (t) => {
666
- x.value = t || "", r("searchInput", t || "");
666
+ $.value = t || "", r("searchInput", t || "");
667
667
  }, h = () => {
668
668
  r("uploadClick");
669
669
  };
@@ -672,9 +672,9 @@ const xt = [
672
672
  selectedImageUrl: d,
673
673
  selectedImageIndex: o,
674
674
  selectedFaceId: g,
675
- selectedVoiceId: b,
675
+ selectedVoiceId: _,
676
676
  resetSelections: () => {
677
- u.value = null, d.value = null, o.value = null, g.value = null, b.value = null;
677
+ u.value = null, d.value = null, o.value = null, g.value = null, _.value = null;
678
678
  }
679
679
  }), (t, p) => (c(), f("div", po, [
680
680
  a("div", ho, [
@@ -686,7 +686,7 @@ const xt = [
686
686
  onClick: v,
687
687
  "aria-label": t.closeButtonAriaLabel
688
688
  }, [
689
- L(D(ee), { class: "freddy-choose-assistant-avatar__close-icon" })
689
+ V(A(ee), { class: "freddy-choose-assistant-avatar__close-icon" })
690
690
  ], 8, yo)
691
691
  ])
692
692
  ]),
@@ -702,12 +702,12 @@ const xt = [
702
702
  onClick: h,
703
703
  "aria-label": t.uploadButtonAriaLabel
704
704
  }, [
705
- L(D(Je), { class: "freddy-choose-assistant-avatar__upload-icon" })
705
+ V(A(Je), { class: "freddy-choose-assistant-avatar__upload-icon" })
706
706
  ], 8, Co),
707
- L(D(_e), {
708
- searchInput: x.value,
707
+ V(A(_e), {
708
+ searchInput: $.value,
709
709
  "onUpdate:searchInput": [
710
- p[0] || (p[0] = (S) => x.value = S),
710
+ p[0] || (p[0] = (S) => $.value = S),
711
711
  P
712
712
  ],
713
713
  placeholder: t.searchPlaceholder,
@@ -715,18 +715,18 @@ const xt = [
715
715
  }, null, 8, ["searchInput", "placeholder"])
716
716
  ]),
717
717
  a("div", wo, [
718
- (c(!0), f(O, null, j(e.imageUrls, (S, _) => (c(), f("div", {
719
- key: _,
718
+ (c(!0), f(O, null, j(e.imageUrls, (S, k) => (c(), f("div", {
719
+ key: k,
720
720
  class: F(["freddy-choose-assistant-avatar__icon-item", {
721
- "freddy-choose-assistant-avatar__icon-item--selected": o.value === _
721
+ "freddy-choose-assistant-avatar__icon-item--selected": o.value === k
722
722
  }]),
723
- onClick: (n) => I(S, _),
724
- title: `Image ${_ + 1}`
723
+ onClick: (n) => I(S, k),
724
+ title: `Image ${k + 1}`
725
725
  }, [
726
726
  a("div", To, [
727
727
  a("img", {
728
728
  src: S,
729
- alt: `Image ${_ + 1}`,
729
+ alt: `Image ${k + 1}`,
730
730
  class: "freddy-choose-assistant-avatar__icon-image"
731
731
  }, null, 8, $o)
732
732
  ])
@@ -740,24 +740,24 @@ const xt = [
740
740
  ])])) : w("", !0),
741
741
  t.voices && t.voices.length ? (c(), f("div", Po, [
742
742
  p[3] || (p[3] = a("h3", { class: "freddy-choose-assistant-avatar__section-title" }, " Choose the voice ", -1)),
743
- a("div", Ao, [
744
- (c(!0), f(O, null, j(t.voices, (S, _) => (c(), E(D(Ee), {
745
- key: S.id || _,
743
+ a("div", Do, [
744
+ (c(!0), f(O, null, j(t.voices, (S, k) => (c(), E(A(Ee), {
745
+ key: S.id || k,
746
746
  voiceName: S.name,
747
- isSelected: b.value === S.id,
747
+ isSelected: _.value === S.id,
748
748
  onClick: (n) => C(S)
749
749
  }, null, 8, ["voiceName", "isSelected", "onClick"]))), 128))
750
750
  ])
751
751
  ])) : w("", !0),
752
- a("div", Do, [
752
+ a("div", Ao, [
753
753
  a("button", {
754
754
  class: "freddy-choose-assistant-avatar__cancel-button",
755
755
  onClick: T
756
756
  }, B(t.cancelButtonText), 1),
757
757
  a("button", {
758
758
  class: "freddy-choose-assistant-avatar__save-button",
759
- onClick: k,
760
- disabled: !V.value
759
+ onClick: b,
760
+ disabled: !L.value
761
761
  }, B(t.saveButtonText), 9, Fo)
762
762
  ])
763
763
  ])
@@ -787,7 +787,7 @@ const xt = [
787
787
  "primary-active": "background-031525",
788
788
  "bg-primary-active-bordered": "background-border"
789
789
  }[g] || g;
790
- }), u = A(s.currentTab);
790
+ }), u = D(s.currentTab);
791
791
  G(
792
792
  () => s.currentTab,
793
793
  (o) => {
@@ -805,28 +805,28 @@ const xt = [
805
805
  { "freddy-plugin-nav-bar--full-width": s.fullWidth }
806
806
  ])
807
807
  }, [
808
- (c(!0), f(O, null, j(s.tabList, (b, x) => (c(), f("button", {
808
+ (c(!0), f(O, null, j(s.tabList, (_, $) => (c(), f("button", {
809
809
  class: F([
810
810
  "freddy-plugin-menu-button",
811
811
  `freddy-plugin-menu-button--${r.value}`,
812
- { "freddy-plugin-menu-button--active": u.value === b.id },
812
+ { "freddy-plugin-menu-button--active": u.value === _.id },
813
813
  { "freddy-plugin-menu-button--full-width": s.fullWidth }
814
814
  ]),
815
- key: x,
816
- onClick: (V) => d(b),
817
- "aria-selected": u.value === b.id,
815
+ key: $,
816
+ onClick: (L) => d(_),
817
+ "aria-selected": u.value === _.id,
818
818
  role: "tab",
819
819
  tabindex: "0",
820
820
  onKeydown: [
821
- z((V) => d(b), ["enter"]),
822
- z(U((V) => d(b), ["prevent"]), ["space"])
821
+ z((L) => d(_), ["enter"]),
822
+ z(U((L) => d(_), ["prevent"]), ["space"])
823
823
  ]
824
824
  }, [
825
- a("span", Mo, B(b.title), 1),
826
- b.badge !== void 0 ? (c(), f("span", Lo, B(b.badge), 1)) : w("", !0),
827
- r.value === "bottom-dash" && u.value === b.id ? (c(), f("span", {
825
+ a("span", Mo, B(_.title), 1),
826
+ _.badge !== void 0 ? (c(), f("span", Lo, B(_.badge), 1)) : w("", !0),
827
+ r.value === "bottom-dash" && u.value === _.id ? (c(), f("span", {
828
828
  key: 1,
829
- class: F({ "freddy-plugin-active-tab-bottom": u.value === b.id })
829
+ class: F({ "freddy-plugin-active-tab-bottom": u.value === _.id })
830
830
  }, null, 2)) : w("", !0)
831
831
  ], 42, Bo))), 128))
832
832
  ], 2));
@@ -870,7 +870,7 @@ const xt = [
870
870
  },
871
871
  emits: ["search", "createRule", "tabChange", "edit", "view", "pageChange"],
872
872
  setup(y, { emit: m }) {
873
- const s = y, e = m, i = A(""), l = A(s.initialTab), r = A(1), u = M(() => s.tabs.map((h, t) => ({
873
+ const s = y, e = m, i = D(""), l = D(s.initialTab), r = D(1), u = M(() => s.tabs.map((h, t) => ({
874
874
  id: t + 1,
875
875
  title: h.label,
876
876
  badge: h.count,
@@ -890,7 +890,7 @@ const xt = [
890
890
  return t.title.toLowerCase().includes(h) || ((p = t.description) == null ? void 0 : p.toLowerCase().includes(h)) || t.creator.name.toLowerCase().includes(h);
891
891
  }
892
892
  );
893
- }), b = M(() => {
893
+ }), _ = M(() => {
894
894
  const h = [], t = s.totalPages, p = r.value;
895
895
  if (t <= 7)
896
896
  for (let S = 1; S <= t; S++)
@@ -902,15 +902,15 @@ const xt = [
902
902
  p < t - 2 && h.push("..."), h.push(t);
903
903
  }
904
904
  return h;
905
- }), x = () => {
905
+ }), $ = () => {
906
906
  e("search", i.value);
907
- }, V = () => {
907
+ }, L = () => {
908
908
  e("createRule");
909
909
  }, v = (h) => {
910
910
  l.value = h, e("tabChange", h);
911
911
  }, T = (h) => {
912
912
  e("edit", h);
913
- }, k = (h) => {
913
+ }, b = (h) => {
914
914
  e("view", h);
915
915
  }, I = (h) => {
916
916
  r.value = h, e("pageChange", h);
@@ -927,7 +927,7 @@ const xt = [
927
927
  ], -1)),
928
928
  a("div", Ro, [
929
929
  a("div", Oo, [
930
- L(D(Ye), {
930
+ V(A(Ye), {
931
931
  class: "search-icon",
932
932
  "aria-hidden": "true"
933
933
  }),
@@ -936,7 +936,7 @@ const xt = [
936
936
  class: "search-input",
937
937
  placeholder: "Search",
938
938
  "onUpdate:modelValue": t[0] || (t[0] = (p) => i.value = p),
939
- onInput: x,
939
+ onInput: $,
940
940
  "aria-label": "Search rules"
941
941
  }, null, 544), [
942
942
  [Y, i.value]
@@ -948,15 +948,15 @@ const xt = [
948
948
  ]),
949
949
  a("button", {
950
950
  class: "create-rule-btn",
951
- onClick: V,
951
+ onClick: L,
952
952
  onKeydown: [
953
- z(V, ["enter"]),
954
- z(U(V, ["prevent"]), ["space"])
953
+ z(L, ["enter"]),
954
+ z(U(L, ["prevent"]), ["space"])
955
955
  ],
956
956
  "aria-label": "Create new rule",
957
957
  tabindex: "0"
958
958
  }, [
959
- L(D(Xe), {
959
+ V(A(Xe), {
960
960
  class: "plus-icon",
961
961
  "aria-hidden": "true"
962
962
  }),
@@ -965,7 +965,7 @@ const xt = [
965
965
  ])
966
966
  ]),
967
967
  a("div", Ho, [
968
- L(Vo, {
968
+ V(Vo, {
969
969
  tabList: u.value,
970
970
  currentTab: d.value,
971
971
  activeStateType: "bottom-dash",
@@ -993,7 +993,7 @@ const xt = [
993
993
  a("th", Ko, [
994
994
  t[4] || (t[4] = J(" Dependencies ", -1)),
995
995
  a("span", Go, [
996
- L(D(ce), { "aria-hidden": "true" })
996
+ V(A(ce), { "aria-hidden": "true" })
997
997
  ])
998
998
  ]),
999
999
  t[7] || (t[7] = a("th", {
@@ -1056,19 +1056,19 @@ const xt = [
1056
1056
  "aria-label": `Edit ${p.title}`,
1057
1057
  tabindex: "0"
1058
1058
  }, [
1059
- L(D(pe), { "aria-hidden": "true" })
1059
+ V(A(pe), { "aria-hidden": "true" })
1060
1060
  ], 40, rn),
1061
1061
  a("button", {
1062
1062
  class: "icon-btn",
1063
- onClick: (S) => k(p),
1063
+ onClick: (S) => b(p),
1064
1064
  onKeydown: [
1065
- z((S) => k(p), ["enter"]),
1066
- z(U((S) => k(p), ["prevent"]), ["space"])
1065
+ z((S) => b(p), ["enter"]),
1066
+ z(U((S) => b(p), ["prevent"]), ["space"])
1067
1067
  ],
1068
1068
  "aria-label": `View ${p.title}`,
1069
1069
  tabindex: "0"
1070
1070
  }, [
1071
- L(D(et), { "aria-hidden": "true" })
1071
+ V(A(et), { "aria-hidden": "true" })
1072
1072
  ], 40, dn)
1073
1073
  ])
1074
1074
  ])
@@ -1089,7 +1089,7 @@ const xt = [
1089
1089
  tabindex: r.value === 1 ? -1 : 0
1090
1090
  }, " Previous ", 40, pn),
1091
1091
  a("div", hn, [
1092
- (c(!0), f(O, null, j(b.value, (p) => (c(), f("button", {
1092
+ (c(!0), f(O, null, j(_.value, (p) => (c(), f("button", {
1093
1093
  key: p,
1094
1094
  class: F([
1095
1095
  "page-number",
@@ -1139,7 +1139,7 @@ const xt = [
1139
1139
  },
1140
1140
  emits: ["click"],
1141
1141
  setup(y, { emit: m }) {
1142
- const s = y, e = m, i = A(s.isSelected), l = (r) => {
1142
+ const s = y, e = m, i = D(s.isSelected), l = (r) => {
1143
1143
  i.value = !i.value, e("click", r);
1144
1144
  };
1145
1145
  return (r, u) => (c(), f("div", {
@@ -1148,23 +1148,23 @@ const xt = [
1148
1148
  }, [
1149
1149
  a("div", yn, [
1150
1150
  a("div", gn, [
1151
- L(D(tt), { class: "freddy-vector-frame__icon" })
1151
+ V(A(tt), { class: "freddy-vector-frame__icon" })
1152
1152
  ]),
1153
1153
  a("div", In, B(r.title), 1),
1154
1154
  i.value ? w("", !0) : (c(), f("div", bn, [
1155
1155
  a("div", kn, [
1156
- L(D(ot), { class: "freddy-vector-frame__badge-icon" }),
1156
+ V(A(ot), { class: "freddy-vector-frame__badge-icon" }),
1157
1157
  a("div", _n, B(r.badgeText), 1)
1158
1158
  ])
1159
1159
  ])),
1160
1160
  i.value ? (c(), f("div", Cn, [
1161
- L(D(nt), { class: "freddy-vector-frame__tick-icon" })
1161
+ V(A(nt), { class: "freddy-vector-frame__tick-icon" })
1162
1162
  ])) : w("", !0)
1163
1163
  ]),
1164
1164
  i.value ? (c(), f("div", wn)) : w("", !0)
1165
1165
  ], 2));
1166
1166
  }
1167
- }), nc = /* @__PURE__ */ H(Sn, [["__scopeId", "data-v-e2bc0b9f"]]), Tn = { class: "freddy-vector-section" }, $n = { class: "freddy-vector-section__content" }, xn = { class: "freddy-vector-section__header" }, Pn = { class: "freddy-vector-section__count" }, An = { class: "freddy-vector-section__main" }, Dn = { class: "freddy-vector-section__search-container" }, Fn = { class: "freddy-vector-section__search-header" }, Bn = { class: "freddy-vector-section__search-label" }, Mn = { class: "freddy-vector-section__help-icon" }, Ln = { class: "freddy-vector-section__search-input-container" }, Vn = { class: "freddy-vector-section__filter-results" }, En = { class: "freddy-vector-section__filter" }, Nn = { class: "freddy-vector-section__filter-button" }, Rn = { class: "freddy-vector-section__results-count" }, On = { class: "freddy-vector-section__frames-container" }, zn = {
1167
+ }), nc = /* @__PURE__ */ H(Sn, [["__scopeId", "data-v-e2bc0b9f"]]), Tn = { class: "freddy-vector-section" }, $n = { class: "freddy-vector-section__content" }, xn = { class: "freddy-vector-section__header" }, Pn = { class: "freddy-vector-section__count" }, Dn = { class: "freddy-vector-section__main" }, An = { class: "freddy-vector-section__search-container" }, Fn = { class: "freddy-vector-section__search-header" }, Bn = { class: "freddy-vector-section__search-label" }, Mn = { class: "freddy-vector-section__help-icon" }, Ln = { class: "freddy-vector-section__search-input-container" }, Vn = { class: "freddy-vector-section__filter-results" }, En = { class: "freddy-vector-section__filter" }, Nn = { class: "freddy-vector-section__filter-button" }, Rn = { class: "freddy-vector-section__results-count" }, On = { class: "freddy-vector-section__frames-container" }, zn = {
1168
1168
  key: 0,
1169
1169
  class: "freddy-vector-section__show-more"
1170
1170
  }, Hn = { class: "freddy-vector-section__show-more-text" }, Un = { class: "freddy-vector-section__add-section" }, jn = { class: "freddy-vector-section__add-container" }, Kn = /* @__PURE__ */ N({
@@ -1251,13 +1251,13 @@ const xt = [
1251
1251
  },
1252
1252
  emits: ["frameClick", "addVectorStore", "showMore", "searchInput"],
1253
1253
  setup(y, { emit: m }) {
1254
- const s = y, e = m, i = A(""), l = A(s.maxDisplayed), r = M(() => i.value.trim() ? s.frames.filter(
1254
+ const s = y, e = m, i = D(""), l = D(s.maxDisplayed), r = M(() => i.value.trim() ? s.frames.filter(
1255
1255
  (v) => v.title.toLowerCase().includes(i.value.toLowerCase())
1256
- ) : s.frames), u = M(() => r.value.slice(0, l.value)), d = M(() => r.value.length), o = M(() => r.value.length > l.value), g = M(() => r.value.length - l.value), b = () => {
1256
+ ) : s.frames), u = M(() => r.value.slice(0, l.value)), d = M(() => r.value.length), o = M(() => r.value.length > l.value), g = M(() => r.value.length - l.value), _ = () => {
1257
1257
  e("addVectorStore");
1258
- }, x = () => {
1258
+ }, $ = () => {
1259
1259
  l.value = r.value.length, e("showMore");
1260
- }, V = (v) => {
1260
+ }, L = (v) => {
1261
1261
  i.value = v || "", l.value = s.maxDisplayed, e("searchInput", i.value);
1262
1262
  };
1263
1263
  return (v, T) => (c(), f("div", Tn, [
@@ -1266,21 +1266,21 @@ const xt = [
1266
1266
  T[1] || (T[1] = a("div", { class: "freddy-vector-section__title" }, "Knowledge", -1)),
1267
1267
  a("div", Pn, B(v.dbCount) + " DBs added", 1)
1268
1268
  ]),
1269
- a("div", An, [
1270
- a("div", Dn, [
1269
+ a("div", Dn, [
1270
+ a("div", An, [
1271
1271
  a("div", Fn, [
1272
1272
  a("div", Bn, [
1273
1273
  T[2] || (T[2] = J(" Vector Stores ", -1)),
1274
1274
  a("div", Mn, [
1275
- L(D(fe), { class: "freddy-vector-section__help-icon-svg" })
1275
+ V(A(fe), { class: "freddy-vector-section__help-icon-svg" })
1276
1276
  ])
1277
1277
  ]),
1278
1278
  a("div", Ln, [
1279
- L(D(_e), {
1279
+ V(A(_e), {
1280
1280
  searchInput: i.value,
1281
1281
  "onUpdate:searchInput": [
1282
- T[0] || (T[0] = (k) => i.value = k),
1283
- V
1282
+ T[0] || (T[0] = (b) => i.value = b),
1283
+ L
1284
1284
  ],
1285
1285
  placeholder: v.searchPlaceholder,
1286
1286
  class: "freddy-vector-section__search-input"
@@ -1291,26 +1291,26 @@ const xt = [
1291
1291
  a("div", Vn, [
1292
1292
  a("div", En, [
1293
1293
  a("div", Nn, [
1294
- L(D(st), { class: "freddy-vector-section__filter-icon" }),
1294
+ V(A(st), { class: "freddy-vector-section__filter-icon" }),
1295
1295
  T[3] || (T[3] = a("span", { class: "freddy-vector-section__filter-text" }, "Filter by", -1)),
1296
- L(D(ae), { class: "freddy-vector-section__filter-arrow" })
1296
+ V(A(ae), { class: "freddy-vector-section__filter-arrow" })
1297
1297
  ])
1298
1298
  ]),
1299
1299
  a("div", Rn, B(d.value) + " databases found ", 1)
1300
1300
  ]),
1301
1301
  a("div", On, [
1302
- (c(!0), f(O, null, j(u.value, (k, I) => (c(), f("div", {
1303
- key: k.id || I,
1302
+ (c(!0), f(O, null, j(u.value, (b, I) => (c(), f("div", {
1303
+ key: b.id || I,
1304
1304
  class: "freddy-vector-section__frame-item"
1305
1305
  }))), 128))
1306
1306
  ]),
1307
1307
  o.value ? (c(), f("div", zn, [
1308
1308
  a("button", {
1309
1309
  class: "freddy-vector-section__show-more-button",
1310
- onClick: x
1310
+ onClick: $
1311
1311
  }, [
1312
1312
  a("span", Hn, "Show " + B(g.value) + " more", 1),
1313
- L(D(ae), { class: "freddy-vector-section__show-more-icon" })
1313
+ V(A(ae), { class: "freddy-vector-section__show-more-icon" })
1314
1314
  ])
1315
1315
  ])) : w("", !0)
1316
1316
  ]),
@@ -1319,9 +1319,9 @@ const xt = [
1319
1319
  a("div", jn, [
1320
1320
  a("button", {
1321
1321
  class: "freddy-vector-section__add-button",
1322
- onClick: b
1322
+ onClick: _
1323
1323
  }, [
1324
- L(D(it), { class: "freddy-vector-section__add-icon" }),
1324
+ V(A(it), { class: "freddy-vector-section__add-icon" }),
1325
1325
  T[4] || (T[4] = a("span", { class: "freddy-vector-section__add-text" }, "Add vector store to assistant", -1))
1326
1326
  ])
1327
1327
  ])
@@ -1345,7 +1345,7 @@ const xt = [
1345
1345
  },
1346
1346
  emits: ["selectionChange", "voiceClick"],
1347
1347
  setup(y, { expose: m, emit: s }) {
1348
- const e = y, i = s, l = A(null), r = M(() => e.voices.find((d) => d.id === l.value) || null), u = (d) => {
1348
+ const e = y, i = s, l = D(null), r = M(() => e.voices.find((d) => d.id === l.value) || null), u = (d) => {
1349
1349
  l.value === d && e.allowDeselect ? l.value = null : l.value = d, i("selectionChange", l.value), i("voiceClick", d, l.value === d);
1350
1350
  };
1351
1351
  return m({
@@ -1362,11 +1362,11 @@ const xt = [
1362
1362
  return c(), f("div", Gn, [
1363
1363
  d.title ? (c(), f("h3", Zn, B(d.title), 1)) : w("", !0),
1364
1364
  a("div", qn, [
1365
- (c(!0), f(O, null, j(d.voices, (b) => (c(), E(D(Ee), {
1366
- key: b.id,
1367
- voiceName: b.name,
1368
- isSelected: l.value === b.id,
1369
- onClick: (x) => u(b.id)
1365
+ (c(!0), f(O, null, j(d.voices, (_) => (c(), E(A(Ee), {
1366
+ key: _.id,
1367
+ voiceName: _.name,
1368
+ isSelected: l.value === _.id,
1369
+ onClick: ($) => u(_.id)
1370
1370
  }, null, 8, ["voiceName", "isSelected", "onClick"]))), 128))
1371
1371
  ]),
1372
1372
  d.showSelectedInfo ? (c(), f("div", Wn, [
@@ -1400,7 +1400,7 @@ const xt = [
1400
1400
  a("div", Qn, [
1401
1401
  a("div", Yn, [
1402
1402
  a("div", Xn, [
1403
- L(D(at), { class: "freddy-voice-selection__triangle-icon" })
1403
+ V(A(at), { class: "freddy-voice-selection__triangle-icon" })
1404
1404
  ])
1405
1405
  ])
1406
1406
  ]),
@@ -1410,7 +1410,7 @@ const xt = [
1410
1410
  ])
1411
1411
  ]),
1412
1412
  i.isSelected ? (c(), f("div", ns, [
1413
- L(D(he), { class: "freddy-voice-selection__check-icon-svg" })
1413
+ V(A(he), { class: "freddy-voice-selection__check-icon-svg" })
1414
1414
  ])) : (c(), f("div", ss))
1415
1415
  ])
1416
1416
  ], 2));
@@ -1425,7 +1425,7 @@ const xt = [
1425
1425
  },
1426
1426
  setup(y) {
1427
1427
  ne();
1428
- const m = A(!1), s = A(!1), e = A(null);
1428
+ const m = D(!1), s = D(!1), e = D(null);
1429
1429
  let i = null;
1430
1430
  function l() {
1431
1431
  i && clearTimeout(i), i = setTimeout(() => {
@@ -1450,7 +1450,7 @@ const xt = [
1450
1450
  tabindex: "0"
1451
1451
  }, [
1452
1452
  q(u.$slots, "default"),
1453
- L(le, { name: "fade" }, {
1453
+ V(le, { name: "fade" }, {
1454
1454
  default: Z(() => [
1455
1455
  m.value ? (c(), f("div", {
1456
1456
  key: 0,
@@ -1548,7 +1548,7 @@ const xt = [
1548
1548
  IconFolder: R(() => import("./icons-BAyOBzYf.js").then((v) => v.d5)),
1549
1549
  IconText: R(() => import("./icons-BAyOBzYf.js").then((v) => v.ef)),
1550
1550
  IconLink04: R(() => import("./icons-BAyOBzYf.js").then((v) => v.dn))
1551
- }, i = M(() => s.leftIcon && e[s.leftIcon] || null), l = M(() => s.rightIcon && e[s.rightIcon] || null), r = m, u = A(!1), d = M(() => [
1551
+ }, i = M(() => s.leftIcon && e[s.leftIcon] || null), l = M(() => s.rightIcon && e[s.rightIcon] || null), r = m, u = D(!1), d = M(() => [
1552
1552
  "freddy-plugins-base-button",
1553
1553
  `freddy-plugins-base-button--${s.size}`,
1554
1554
  `freddy-plugins-base-button--${s.hierarchy}`,
@@ -1564,11 +1564,11 @@ const xt = [
1564
1564
  !s.disabled && !s.loading && r("click", v);
1565
1565
  }, g = (v) => {
1566
1566
  !s.disabled && !s.loading && r("leftIconClick", v);
1567
- }, b = (v) => {
1567
+ }, _ = (v) => {
1568
1568
  !s.disabled && !s.loading && r("rightIconClick", v);
1569
- }, x = () => {
1569
+ }, $ = () => {
1570
1570
  u.value = !0;
1571
- }, V = () => {
1571
+ }, L = () => {
1572
1572
  u.value = !1;
1573
1573
  };
1574
1574
  return (v, T) => v.tooltip ? (c(), E(re, {
@@ -1584,8 +1584,8 @@ const xt = [
1584
1584
  "aria-label": v.iconOnly ? v.label : void 0,
1585
1585
  role: "button",
1586
1586
  onClick: o,
1587
- onMouseenter: x,
1588
- onMouseleave: V
1587
+ onMouseenter: $,
1588
+ onMouseleave: L
1589
1589
  }, [
1590
1590
  v.loading ? (c(), f(O, { key: 0 }, [
1591
1591
  T[0] || (T[0] = a("span", {
@@ -1609,7 +1609,7 @@ const xt = [
1609
1609
  key: 2,
1610
1610
  class: F(["freddy-plugins-button-icon freddy-plugins-button-icon-right", `freddy-plugins-button-icon--${v.size}`]),
1611
1611
  "aria-hidden": "true",
1612
- onClick: U(b, ["stop"])
1612
+ onClick: U(_, ["stop"])
1613
1613
  }, null, 8, ["class"])) : w("", !0)
1614
1614
  ], 64))
1615
1615
  ], 42, ls)
@@ -1623,8 +1623,8 @@ const xt = [
1623
1623
  "aria-label": v.iconOnly ? v.label : void 0,
1624
1624
  role: "button",
1625
1625
  onClick: o,
1626
- onMouseenter: x,
1627
- onMouseleave: V
1626
+ onMouseenter: $,
1627
+ onMouseleave: L
1628
1628
  }, [
1629
1629
  v.loading ? (c(), f(O, { key: 0 }, [
1630
1630
  T[1] || (T[1] = a("span", {
@@ -1648,7 +1648,7 @@ const xt = [
1648
1648
  key: 2,
1649
1649
  class: F(["freddy-plugins-button-icon freddy-plugins-button-icon-right", `freddy-plugins-button-icon--${v.size}`]),
1650
1650
  "aria-hidden": "true",
1651
- onClick: U(b, ["stop"])
1651
+ onClick: U(_, ["stop"])
1652
1652
  }, null, 8, ["class"])) : w("", !0)
1653
1653
  ], 64))
1654
1654
  ], 42, ds));
@@ -1809,37 +1809,37 @@ const xt = [
1809
1809
  "freddy-plugins-social-button--disabled": s.disabled,
1810
1810
  "freddy-plugins-social-button--icon-only": s.iconOnly
1811
1811
  }
1812
- ], o = (g, b) => {
1813
- s.disabled || e("click", g, b);
1812
+ ], o = (g, _) => {
1813
+ s.disabled || e("click", g, _);
1814
1814
  };
1815
- return (g, b) => (c(), f("div", {
1815
+ return (g, _) => (c(), f("div", {
1816
1816
  class: F(l.value),
1817
1817
  style: oe(g.style)
1818
1818
  }, [
1819
- (c(!0), f(O, null, j(g.providers, (x) => (c(), f("button", {
1820
- key: x,
1821
- class: F(d(x)),
1819
+ (c(!0), f(O, null, j(g.providers, ($) => (c(), f("button", {
1820
+ key: $,
1821
+ class: F(d($)),
1822
1822
  disabled: g.disabled,
1823
- "aria-label": g.iconOnly ? u(x) : void 0,
1823
+ "aria-label": g.iconOnly ? u($) : void 0,
1824
1824
  role: "button",
1825
- onClick: (V) => o(x, V)
1825
+ onClick: (L) => o($, L)
1826
1826
  }, [
1827
- (c(), E(K(r(x)), {
1827
+ (c(), E(K(r($)), {
1828
1828
  class: "freddy-plugins-social-button-icon",
1829
1829
  "aria-hidden": "true"
1830
1830
  })),
1831
- g.iconOnly ? w("", !0) : (c(), f("span", ms, B(u(x)), 1))
1831
+ g.iconOnly ? w("", !0) : (c(), f("span", ms, B(u($)), 1))
1832
1832
  ], 10, fs))), 128))
1833
1833
  ], 6));
1834
1834
  }
1835
- }), ac = /* @__PURE__ */ H(vs, [["__scopeId", "data-v-22e5ee7c"]]), ys = ["innerHTML"], Ae = "nord", lc = /* @__PURE__ */ N({
1835
+ }), ac = /* @__PURE__ */ H(vs, [["__scopeId", "data-v-22e5ee7c"]]), ys = ["innerHTML"], De = "nord", lc = /* @__PURE__ */ N({
1836
1836
  __name: "CodeBlock",
1837
1837
  props: {
1838
1838
  code: {},
1839
1839
  language: {}
1840
1840
  },
1841
1841
  setup(y) {
1842
- const m = y, s = A("");
1842
+ const m = y, s = D("");
1843
1843
  let e = null, i = null;
1844
1844
  const l = async () => {
1845
1845
  try {
@@ -1877,11 +1877,11 @@ const xt = [
1877
1877
  }
1878
1878
  try {
1879
1879
  e || (e = await i({
1880
- themes: [Ae],
1880
+ themes: [De],
1881
1881
  langs: r
1882
1882
  })), s.value = e.codeToHtml(m.code, {
1883
1883
  lang: m.language,
1884
- theme: Ae
1884
+ theme: De
1885
1885
  });
1886
1886
  } catch {
1887
1887
  s.value = `<pre><code>${m.code.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")}</code></pre>`;
@@ -1962,59 +1962,58 @@ const xt = [
1962
1962
  hideDelay: { default: 0 }
1963
1963
  },
1964
1964
  setup(y) {
1965
- const m = y, s = A(!1), e = A(!1), i = A(null);
1966
- let l = null, r = null;
1967
- const u = () => {
1968
- r && (clearTimeout(r), r = null), l && clearTimeout(l), l = setTimeout(() => {
1969
- if (i.value) {
1970
- const b = i.value.getBoundingClientRect();
1971
- e.value = b.top < 150;
1972
- }
1973
- s.value = !0;
1965
+ const m = y, s = D(!1), e = D(!1), i = D(null), l = D(null);
1966
+ let r = null, u = null;
1967
+ const d = () => {
1968
+ if (!i.value) return;
1969
+ const L = i.value.getBoundingClientRect(), v = window.innerHeight, T = 250, b = L.top, I = v - L.bottom;
1970
+ I >= T || I > b ? e.value = !0 : e.value = !1;
1971
+ }, o = () => {
1972
+ u && (clearTimeout(u), u = null), r && clearTimeout(r), r = setTimeout(() => {
1973
+ d(), s.value = !0;
1974
1974
  }, m.delay);
1975
- }, d = () => {
1976
- l && (clearTimeout(l), l = null), r = setTimeout(() => {
1975
+ }, g = () => {
1976
+ r && (clearTimeout(r), r = null), u = setTimeout(() => {
1977
1977
  s.value = !1;
1978
1978
  }, m.hideDelay);
1979
- }, o = () => {
1980
- u();
1981
- }, g = () => {
1982
- d();
1979
+ }, _ = () => {
1980
+ o();
1981
+ }, $ = () => {
1982
+ g();
1983
1983
  };
1984
- return (b, x) => (c(), f("div", {
1984
+ return (L, v) => (c(), f("div", {
1985
1985
  ref_key: "tooltipWrapper",
1986
1986
  ref: i,
1987
1987
  class: "freddy-plugins-tooltip-v2-wrapper",
1988
- onMouseenter: u,
1989
- onMouseleave: d,
1990
- onFocusin: o,
1991
- onFocusout: g,
1988
+ onMouseenter: o,
1989
+ onMouseleave: g,
1990
+ onFocusin: _,
1991
+ onFocusout: $,
1992
1992
  tabindex: "0"
1993
1993
  }, [
1994
- q(b.$slots, "default", {}, void 0, !0),
1995
- L(le, { name: "fade" }, {
1994
+ q(L.$slots, "default", {}, void 0, !0),
1995
+ V(le, { name: "fade" }, {
1996
1996
  default: Z(() => [
1997
1997
  s.value ? (c(), f("div", {
1998
1998
  key: 0,
1999
- class: F(["freddy-plugins-tooltip-v2-content", [
2000
- b.placement,
2001
- e.value ? "force-bottom" : "",
2002
- b.contentClass
2003
- ]]),
1999
+ ref_key: "tooltipContent",
2000
+ ref: l,
2001
+ class: F(["freddy-plugins-tooltip-v2-content", [e.value ? "bottom" : "top", L.contentClass]]),
2004
2002
  role: "tooltip",
2005
- "aria-label": b.title
2003
+ "aria-label": L.title
2006
2004
  }, [
2007
- q(b.$slots, "content", {}, () => [
2008
- b.title || b.description ? (c(), f("div", ws, [
2009
- b.title ? (c(), f("div", {
2005
+ v[0] || (v[0] = a("div", { class: "freddy-plugins-tooltip-v2-arrow" }, null, -1)),
2006
+ q(L.$slots, "content", {}, () => [
2007
+ L.title || L.description ? (c(), f("div", ws, [
2008
+ L.title ? (c(), f("div", {
2010
2009
  key: 0,
2011
2010
  class: "freddy-plugins-tooltip-v2-title",
2012
- innerHTML: b.title
2011
+ innerHTML: L.title
2013
2012
  }, null, 8, Ss)) : w("", !0),
2014
- b.description ? (c(), f("div", {
2013
+ L.description ? (c(), f("div", {
2015
2014
  key: 1,
2016
2015
  class: "freddy-plugins-tooltip-v2-description",
2017
- innerHTML: b.description
2016
+ innerHTML: L.description
2018
2017
  }, null, 8, Ts)) : w("", !0)
2019
2018
  ])) : w("", !0)
2020
2019
  ], !0)
@@ -2024,7 +2023,7 @@ const xt = [
2024
2023
  })
2025
2024
  ], 544));
2026
2025
  }
2027
- }), xs = /* @__PURE__ */ H($s, [["__scopeId", "data-v-7dd5798c"]]);
2026
+ }), xs = /* @__PURE__ */ H($s, [["__scopeId", "data-v-d8a69414"]]);
2028
2027
  class Ps {
2029
2028
  constructor(m) {
2030
2029
  ye(this, "apiKey", null);
@@ -2293,8 +2292,8 @@ User request: ${m}` : m, o = {
2293
2292
  success: !1,
2294
2293
  error: ((e = (await g.json().catch(() => ({}))).error) == null ? void 0 : e.message) || `API request failed with status ${g.status}: ${g.statusText}`
2295
2294
  };
2296
- const x = (u = (r = (l = (i = (await g.json()).output) == null ? void 0 : i[0]) == null ? void 0 : l.content) == null ? void 0 : r[0]) == null ? void 0 : u.text;
2297
- return x ? this.processResponse(x, m, s) : {
2295
+ const $ = (u = (r = (l = (i = (await g.json()).output) == null ? void 0 : i[0]) == null ? void 0 : l.content) == null ? void 0 : r[0]) == null ? void 0 : u.text;
2296
+ return $ ? this.processResponse($, m, s) : {
2298
2297
  success: !1,
2299
2298
  error: "No response received from AI"
2300
2299
  };
@@ -2324,7 +2323,7 @@ User request: ${m}` : m, o = {
2324
2323
  }
2325
2324
  const ue = new Ps(
2326
2325
  "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"
2327
- ), As = { class: "freddy-plugins-simple-chat-interface" }, Ds = { class: "freddy-plugins-messages-list" }, Fs = {
2326
+ ), Ds = { class: "freddy-plugins-simple-chat-interface" }, As = { class: "freddy-plugins-messages-list" }, Fs = {
2328
2327
  key: 0,
2329
2328
  class: "freddy-plugins-user-message-container"
2330
2329
  }, Bs = { class: "freddy-plugins-user-bubble" }, Ms = { class: "freddy-plugins-user-actions" }, Ls = {
@@ -2374,11 +2373,11 @@ const ue = new Ps(
2374
2373
  },
2375
2374
  emits: ["send", "acceptChanges", "denyChanges", "textReplacement", "textCompletion"],
2376
2375
  setup(y, { expose: m, emit: s }) {
2377
- const e = y, i = s, l = A(""), r = A(null), u = A(null), d = A(e.messages || []), o = A(!1);
2376
+ const e = y, i = s, l = D(""), r = D(null), u = D(null), d = D(e.messages || []), o = D(!1);
2378
2377
  e.openaiApiKey && ue.setApiKey(e.openaiApiKey), G(
2379
2378
  () => e.messages,
2380
2379
  (t) => {
2381
- t && (d.value = t, k());
2380
+ t && (d.value = t, b());
2382
2381
  }
2383
2382
  ), G(
2384
2383
  () => e.openaiApiKey,
@@ -2397,7 +2396,7 @@ const ue = new Ps(
2397
2396
  default:
2398
2397
  return "Text Improvement";
2399
2398
  }
2400
- }, b = (t) => {
2399
+ }, _ = (t) => {
2401
2400
  switch (t) {
2402
2401
  case "replace":
2403
2402
  return "Your text has been improved and replaced";
@@ -2408,53 +2407,53 @@ const ue = new Ps(
2408
2407
  default:
2409
2408
  return "Text has been improved";
2410
2409
  }
2411
- }, x = async (t) => {
2410
+ }, $ = async (t) => {
2412
2411
  var p, S;
2413
2412
  if (!ue.isConfigured()) {
2414
- const _ = {
2413
+ const k = {
2415
2414
  id: Date.now().toString(),
2416
2415
  content: "AI service is not configured. Please provide an OpenAI API key.",
2417
2416
  sender: "assistant",
2418
2417
  timestamp: /* @__PURE__ */ new Date()
2419
2418
  };
2420
- d.value.push(_), k();
2419
+ d.value.push(k), b();
2421
2420
  return;
2422
2421
  }
2423
2422
  o.value = !0;
2424
2423
  try {
2425
- const _ = await ue.askAI(
2424
+ const k = await ue.askAI(
2426
2425
  t,
2427
2426
  e.textBoxContent
2428
2427
  );
2429
- if (_.success && _.content) {
2428
+ if (k.success && k.content) {
2430
2429
  const n = {
2431
2430
  id: Date.now().toString(),
2432
- content: _.content,
2431
+ content: k.content,
2433
2432
  sender: "assistant",
2434
2433
  timestamp: /* @__PURE__ */ new Date(),
2435
2434
  applied: !1,
2436
2435
  // Explicitly set to false for new messages
2437
- changes: _.hasChanges ? {
2438
- title: _.changeTitle || g(_.action),
2439
- description: _.changeDescription || b(_.action),
2440
- added: ((p = _.stats) == null ? void 0 : p.added) || 0,
2441
- removed: ((S = _.stats) == null ? void 0 : S.removed) || 0,
2436
+ changes: k.hasChanges ? {
2437
+ title: k.changeTitle || g(k.action),
2438
+ description: k.changeDescription || _(k.action),
2439
+ added: ((p = k.stats) == null ? void 0 : p.added) || 0,
2440
+ removed: ((S = k.stats) == null ? void 0 : S.removed) || 0,
2442
2441
  data: {
2443
2442
  originalText: e.textBoxContent,
2444
- improvedText: _.improvedText || _.content,
2445
- action: _.action
2443
+ improvedText: k.improvedText || k.content,
2444
+ action: k.action
2446
2445
  }
2447
2446
  } : void 0
2448
2447
  };
2449
- d.value.push(n), k();
2448
+ d.value.push(n), b();
2450
2449
  } else {
2451
2450
  const n = {
2452
2451
  id: Date.now().toString(),
2453
- content: _.error || "Failed to process your request. Please try again.",
2452
+ content: k.error || "Failed to process your request. Please try again.",
2454
2453
  sender: "assistant",
2455
2454
  timestamp: /* @__PURE__ */ new Date()
2456
2455
  };
2457
- d.value.push(n), k();
2456
+ d.value.push(n), b();
2458
2457
  }
2459
2458
  } catch {
2460
2459
  const n = {
@@ -2463,11 +2462,11 @@ const ue = new Ps(
2463
2462
  sender: "assistant",
2464
2463
  timestamp: /* @__PURE__ */ new Date()
2465
2464
  };
2466
- d.value.push(n), k();
2465
+ d.value.push(n), b();
2467
2466
  } finally {
2468
2467
  o.value = !1;
2469
2468
  }
2470
- }, V = async () => {
2469
+ }, L = async () => {
2471
2470
  const t = l.value.trim();
2472
2471
  if (!t) return;
2473
2472
  const p = {
@@ -2476,7 +2475,7 @@ const ue = new Ps(
2476
2475
  sender: "user",
2477
2476
  timestamp: /* @__PURE__ */ new Date()
2478
2477
  };
2479
- d.value.push(p), i("send", t), l.value = "", T(), k(), e.enableAI && await x(t);
2478
+ d.value.push(p), i("send", t), l.value = "", T(), b(), e.enableAI && await $(t);
2480
2479
  }, v = () => {
2481
2480
  l.value += `
2482
2481
  `, T();
@@ -2484,7 +2483,7 @@ const ue = new Ps(
2484
2483
  te(() => {
2485
2484
  u.value && (u.value.style.height = "auto", u.value.style.height = Math.min(u.value.scrollHeight, 120) + "px");
2486
2485
  });
2487
- }, k = () => {
2486
+ }, b = () => {
2488
2487
  te(() => {
2489
2488
  r.value && (r.value.scrollTop = r.value.scrollHeight);
2490
2489
  });
@@ -2502,27 +2501,27 @@ const ue = new Ps(
2502
2501
  timestamp: /* @__PURE__ */ new Date(),
2503
2502
  changes: p
2504
2503
  };
2505
- d.value.push(S), k();
2504
+ d.value.push(S), b();
2506
2505
  },
2507
2506
  addAIResponseFromApi: (t) => {
2508
- const p = gt(t), S = It(p), _ = bt(p), n = {
2507
+ const p = gt(t), S = It(p), k = bt(p), n = {
2509
2508
  id: Date.now().toString(),
2510
2509
  content: S,
2511
2510
  sender: "assistant",
2512
2511
  timestamp: /* @__PURE__ */ new Date(),
2513
2512
  applied: !1,
2514
2513
  // Explicitly set to false for new messages
2515
- changes: _
2514
+ changes: k
2516
2515
  };
2517
- d.value.push(n), k();
2516
+ d.value.push(n), b();
2518
2517
  }
2519
- }), (t, p) => (c(), f("div", As, [
2518
+ }), (t, p) => (c(), f("div", Ds, [
2520
2519
  a("div", {
2521
2520
  ref_key: "messagesContainer",
2522
2521
  ref: r,
2523
2522
  class: "freddy-plugins-chat-messages"
2524
2523
  }, [
2525
- a("div", Ds, [
2524
+ a("div", As, [
2526
2525
  (c(!0), f(O, null, j(d.value, (S) => (c(), f("div", {
2527
2526
  key: S.id,
2528
2527
  class: F(["freddy-plugins-message", S.sender])
@@ -2531,10 +2530,10 @@ const ue = new Ps(
2531
2530
  a("div", Bs, B(S.content), 1),
2532
2531
  a("div", Ms, [
2533
2532
  a("button", Ls, [
2534
- L(D(Se), { class: "freddy-plugins-action-icon" })
2533
+ V(A(Se), { class: "freddy-plugins-action-icon" })
2535
2534
  ]),
2536
2535
  a("button", Vs, [
2537
- L(D(pe), { class: "freddy-plugins-action-icon" })
2536
+ V(A(pe), { class: "freddy-plugins-action-icon" })
2538
2537
  ])
2539
2538
  ])
2540
2539
  ])) : (c(), f("div", Es, [
@@ -2543,7 +2542,7 @@ const ue = new Ps(
2543
2542
  S.changes ? (c(), f("div", Os, [
2544
2543
  a("div", zs, [
2545
2544
  a("div", Hs, [
2546
- L(D(ht), { class: "freddy-plugins-building-icon" }),
2545
+ V(A(ht), { class: "freddy-plugins-building-icon" }),
2547
2546
  a("span", Us, B(S.changes.title || "Instructions"), 1),
2548
2547
  S.changes.added > 0 ? (c(), f("span", js, "+" + B(S.changes.added), 1)) : w("", !0),
2549
2548
  S.changes.removed > 0 ? (c(), f("span", Ks, "-" + B(S.changes.removed), 1)) : w("", !0),
@@ -2556,21 +2555,21 @@ const ue = new Ps(
2556
2555
  ], -1)),
2557
2556
  a("p", Zs, B(S.changes.description), 1),
2558
2557
  S.applied ? (c(), f("div", Qs, [
2559
- L(D(Te), { class: "freddy-plugins-applied-icon" }),
2558
+ V(A(Te), { class: "freddy-plugins-applied-icon" }),
2560
2559
  p[4] || (p[4] = J(" Applied ", -1))
2561
2560
  ])) : (c(), f("div", qs, [
2562
2561
  a("button", {
2563
2562
  class: "freddy-plugins-accept-btn",
2564
- onClick: (_) => I(S)
2563
+ onClick: (k) => I(S)
2565
2564
  }, [
2566
- L(D(Te), { class: "freddy-plugins-btn-icon" }),
2565
+ V(A(Te), { class: "freddy-plugins-btn-icon" }),
2567
2566
  p[2] || (p[2] = J(" Accept ", -1))
2568
2567
  ], 8, Ws),
2569
2568
  a("button", {
2570
2569
  class: "freddy-plugins-deny-btn",
2571
- onClick: (_) => C(S)
2570
+ onClick: (k) => C(S)
2572
2571
  }, [
2573
- L(D(ee), { class: "freddy-plugins-btn-icon" }),
2572
+ V(A(ee), { class: "freddy-plugins-btn-icon" }),
2574
2573
  p[3] || (p[3] = J(" Deny ", -1))
2575
2574
  ], 8, Js)
2576
2575
  ]))
@@ -2578,13 +2577,13 @@ const ue = new Ps(
2578
2577
  ])) : w("", !0),
2579
2578
  a("div", Ys, [
2580
2579
  a("button", Xs, [
2581
- L(D(ft), { class: "freddy-plugins-action-icon" })
2580
+ V(A(ft), { class: "freddy-plugins-action-icon" })
2582
2581
  ]),
2583
2582
  a("button", ei, [
2584
- L(D(Se), { class: "freddy-plugins-action-icon" })
2583
+ V(A(Se), { class: "freddy-plugins-action-icon" })
2585
2584
  ]),
2586
2585
  a("button", ti, [
2587
- L(D(mt), { class: "freddy-plugins-action-icon" })
2586
+ V(A(mt), { class: "freddy-plugins-action-icon" })
2588
2587
  ])
2589
2588
  ])
2590
2589
  ])
@@ -2600,7 +2599,7 @@ const ue = new Ps(
2600
2599
  ], 512),
2601
2600
  a("div", ni, [
2602
2601
  a("button", si, [
2603
- L(D(vt), { class: "freddy-plugins-folder-icon" })
2602
+ V(A(vt), { class: "freddy-plugins-folder-icon" })
2604
2603
  ]),
2605
2604
  Q(a("textarea", {
2606
2605
  ref_key: "inputRef",
@@ -2610,7 +2609,7 @@ const ue = new Ps(
2610
2609
  class: "freddy-plugins-chat-input",
2611
2610
  rows: "1",
2612
2611
  onKeydown: [
2613
- z(U(V, ["exact", "prevent"]), ["enter"]),
2612
+ z(U(L, ["exact", "prevent"]), ["enter"]),
2614
2613
  z(U(v, ["shift", "exact"]), ["enter"])
2615
2614
  ],
2616
2615
  onInput: T
@@ -2620,9 +2619,9 @@ const ue = new Ps(
2620
2619
  a("button", {
2621
2620
  class: "freddy-plugins-send-button",
2622
2621
  disabled: !l.value.trim(),
2623
- onClick: V
2622
+ onClick: L
2624
2623
  }, [
2625
- L(D(yt), { class: "freddy-plugins-send-icon" })
2624
+ V(A(yt), { class: "freddy-plugins-send-icon" })
2626
2625
  ], 8, ai)
2627
2626
  ])
2628
2627
  ]));
@@ -2664,7 +2663,7 @@ const ue = new Ps(
2664
2663
  },
2665
2664
  emits: ["close", "save", "cancel", "askAI", "toggleAI"],
2666
2665
  setup(y, { emit: m }) {
2667
- const s = y, e = m, i = A(s.initialContent), l = A(!1), r = A([]), u = A(null);
2666
+ const s = y, e = m, i = D(s.initialContent), l = D(!1), r = D([]), u = D(null);
2668
2667
  G(
2669
2668
  () => s.initialContent,
2670
2669
  (I) => {
@@ -2677,14 +2676,14 @@ const ue = new Ps(
2677
2676
  e("save", i.value);
2678
2677
  }, g = () => {
2679
2678
  l.value = !1, r.value = [], e("cancel");
2680
- }, b = () => {
2679
+ }, _ = () => {
2681
2680
  l.value = !0, e("toggleAI", l.value), e("askAI", i.value);
2682
- }, x = async (I) => {
2683
- }, V = (I) => {
2681
+ }, $ = async (I) => {
2682
+ }, L = (I) => {
2684
2683
  I.changes && I.changes.data && I.changes.data.improvedText && (i.value, i.value = I.changes.data.improvedText, I.applied = !0);
2685
2684
  }, v = (I) => {
2686
2685
  }, T = (I) => {
2687
- }, k = (I) => {
2686
+ }, b = (I) => {
2688
2687
  };
2689
2688
  return (I, C) => (c(), E(le, { name: "modal" }, {
2690
2689
  default: Z(() => [
@@ -2700,7 +2699,7 @@ const ue = new Ps(
2700
2699
  a("div", ri, [
2701
2700
  a("div", di, [
2702
2701
  a("div", ui, [
2703
- L(D(kt), {
2702
+ V(A(kt), {
2704
2703
  class: "freddy-plugins-edit-excerpt-edit-icon",
2705
2704
  "center-distance": 36,
2706
2705
  "circle-gap": 44,
@@ -2718,7 +2717,7 @@ const ue = new Ps(
2718
2717
  onClick: d,
2719
2718
  "aria-label": "Close modal"
2720
2719
  }, [
2721
- L(D(ee), { class: "freddy-plugins-edit-excerpt-modal-close-icon" })
2720
+ V(A(ee), { class: "freddy-plugins-edit-excerpt-modal-close-icon" })
2722
2721
  ], 4),
2723
2722
  w("", !0),
2724
2723
  C[1] || (C[1] = a("div", { class: "freddy-plugins-edit-excerpt-modal-header-spacing" }, null, -1))
@@ -2738,9 +2737,9 @@ const ue = new Ps(
2738
2737
  l.value ? w("", !0) : (c(), f("button", {
2739
2738
  key: 0,
2740
2739
  class: "freddy-plugins-edit-excerpt-modal-ai-btn",
2741
- onClick: b
2740
+ onClick: _
2742
2741
  }, [
2743
- L(D(Fe), { class: "freddy-plugins-edit-excerpt-modal-ai-icon" }),
2742
+ V(A(Fe), { class: "freddy-plugins-edit-excerpt-modal-ai-icon" }),
2744
2743
  C[2] || (C[2] = a("span", { class: "freddy-plugins-edit-excerpt-modal-ai-text" }, " Ask AI ", -1))
2745
2744
  ])),
2746
2745
  a("div", { class: "freddy-plugins-edit-excerpt-modal-action-buttons" }, [
@@ -2757,7 +2756,7 @@ const ue = new Ps(
2757
2756
  ])
2758
2757
  ]),
2759
2758
  l.value ? (c(), f("div", gi, [
2760
- L(li, {
2759
+ V(li, {
2761
2760
  ref_key: "chatRef",
2762
2761
  ref: u,
2763
2762
  placeholder: "Type here...",
@@ -2765,11 +2764,11 @@ const ue = new Ps(
2765
2764
  "enable-a-i": !0,
2766
2765
  "openai-api-key": y.openaiApiKey,
2767
2766
  "text-box-content": i.value,
2768
- onSend: x,
2769
- onAcceptChanges: V,
2767
+ onSend: $,
2768
+ onAcceptChanges: L,
2770
2769
  onDenyChanges: v,
2771
2770
  onTextReplacement: T,
2772
- onTextCompletion: k
2771
+ onTextCompletion: b
2773
2772
  }, null, 8, ["messages", "openai-api-key", "text-box-content"])
2774
2773
  ])) : w("", !0)
2775
2774
  ], 2)
@@ -2784,7 +2783,7 @@ const ue = new Ps(
2784
2783
  }, Ti = { class: "freddy-plugins-textarea-input-wrapper" }, $i = ["placeholder", "disabled", "readonly"], xi = {
2785
2784
  key: 1,
2786
2785
  class: "freddy-plugins-textarea-diff-container"
2787
- }, Pi = { class: "freddy-plugins-textarea-diff-content" }, Ai = { class: "freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old" }, Di = { class: "freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new" }, Fi = {
2786
+ }, Pi = { class: "freddy-plugins-textarea-diff-content" }, Di = { class: "freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old" }, Ai = { class: "freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new" }, Fi = {
2788
2787
  key: 2,
2789
2788
  class: "freddy-plugins-textarea-tags-container"
2790
2789
  }, Bi = { class: "freddy-plugins-textarea-tags" }, Mi = { class: "freddy-plugins-textarea-tag-content" }, Li = ["onClick", "onKeydown", "aria-label"], Vi = /* @__PURE__ */ N({
@@ -2821,70 +2820,70 @@ const ue = new Ps(
2821
2820
  },
2822
2821
  emits: ["update:modelValue", "input", "focus", "blur", "ask-ai", "expand", "remove-tag", "tooltip-click", "add-tag", "tags-click"],
2823
2822
  setup(y, { expose: m, emit: s }) {
2824
- const e = y, i = s, l = A(null), r = A(
2823
+ const e = y, i = s, l = D(null), r = D(
2825
2824
  null
2826
- ), u = A(e.modelValue), d = A(""), o = A(!1), g = A("expand"), b = A(!1), x = M(() => e.showTags && e.tags.length > 0 ? "" : e.placeholder);
2825
+ ), u = D(e.modelValue), d = D(""), o = D(!1), g = D("expand"), _ = D(!1), $ = M(() => e.showTags && e.tags.length > 0 ? "" : e.placeholder);
2827
2826
  G(
2828
2827
  () => e.modelValue,
2829
- ($) => {
2830
- u.value = $;
2828
+ (x) => {
2829
+ u.value = x;
2831
2830
  }
2832
2831
  );
2833
- const V = () => {
2832
+ const L = () => {
2834
2833
  i("update:modelValue", u.value), i("input", u.value);
2835
- }, v = ($) => {
2836
- b.value = !0, i("focus", $);
2837
- }, T = ($) => {
2838
- b.value = !1, i("blur", $);
2839
- }, k = ($) => {
2834
+ }, v = (x) => {
2835
+ _.value = !0, i("focus", x);
2836
+ }, T = (x) => {
2837
+ _.value = !1, i("blur", x);
2838
+ }, b = (x) => {
2840
2839
  }, I = () => {
2841
2840
  e.tagsOnly && i("tags-click");
2842
2841
  }, C = () => {
2843
2842
  i("tooltip-click");
2844
- }, P = ($) => {
2845
- ($.key === "Enter" || $.key === " ") && ($.preventDefault(), C());
2843
+ }, P = (x) => {
2844
+ (x.key === "Enter" || x.key === " ") && (x.preventDefault(), C());
2846
2845
  }, h = () => {
2847
2846
  d.value = u.value, g.value = "ai", o.value = !0, i("ask-ai", u.value);
2848
- }, t = ($) => {
2849
- ($.key === "Enter" || $.key === " ") && ($.preventDefault(), h());
2847
+ }, t = (x) => {
2848
+ (x.key === "Enter" || x.key === " ") && (x.preventDefault(), h());
2850
2849
  }, p = () => {
2851
2850
  d.value = u.value, g.value = "expand", o.value = !0, i("expand", u.value);
2852
- }, S = ($) => {
2853
- ($.key === "Enter" || $.key === " ") && ($.preventDefault(), p());
2854
- }, _ = ($) => {
2855
- i("remove-tag", $);
2856
- }, n = ($, de) => {
2857
- ($.key === "Enter" || $.key === " ") && ($.preventDefault(), _(de));
2851
+ }, S = (x) => {
2852
+ (x.key === "Enter" || x.key === " ") && (x.preventDefault(), p());
2853
+ }, k = (x) => {
2854
+ i("remove-tag", x);
2855
+ }, n = (x, de) => {
2856
+ (x.key === "Enter" || x.key === " ") && (x.preventDefault(), k(de));
2858
2857
  }, W = () => {
2859
2858
  u.value = d.value, i("update:modelValue", d.value), i("input", d.value), o.value = !1;
2860
- }, X = ($) => {
2861
- u.value = $, i("update:modelValue", $), i("input", $), o.value = !1;
2859
+ }, X = (x) => {
2860
+ u.value = x, i("update:modelValue", x), i("input", x), o.value = !1;
2862
2861
  }, Ce = () => {
2863
2862
  u.value = d.value, i("update:modelValue", d.value), i("input", d.value), o.value = !1;
2864
2863
  }, Re = () => {
2865
2864
  i("ask-ai", u.value);
2866
- }, Oe = ($) => {
2865
+ }, Oe = (x) => {
2867
2866
  };
2868
2867
  return m({
2869
2868
  focus: () => {
2870
- var $;
2871
- ($ = l.value) == null || $.focus();
2869
+ var x;
2870
+ (x = l.value) == null || x.focus();
2872
2871
  }
2873
- }), ($, de) => (c(), f("div", bi, [
2872
+ }), (x, de) => (c(), f("div", bi, [
2874
2873
  a("div", ki, [
2875
2874
  a("div", _i, [
2876
2875
  a("div", Ci, [
2877
2876
  a("div", wi, [
2878
2877
  a("label", {
2879
2878
  class: F(["freddy-plugins-textarea-label", {
2880
- "freddy-plugins-textarea-label--underlined": $.showUnderlines
2879
+ "freddy-plugins-textarea-label--underlined": x.showUnderlines
2881
2880
  }])
2882
- }, B($.dynamicTitle || $.label), 3),
2883
- $.required ? (c(), f("span", Si, "*")) : w("", !0),
2884
- $.$slots.tooltip ? q($.$slots, "tooltip", { key: 1 }, void 0, !0) : $.tooltipTitle || $.tooltipDescription ? (c(), E(xs, {
2881
+ }, B(x.dynamicTitle || x.label), 3),
2882
+ x.required ? (c(), f("span", Si, "*")) : w("", !0),
2883
+ x.$slots.tooltip ? q(x.$slots, "tooltip", { key: 1 }, void 0, !0) : x.tooltipTitle || x.tooltipDescription ? (c(), E(xs, {
2885
2884
  key: 2,
2886
- title: $.tooltipTitle,
2887
- description: $.tooltipDescription,
2885
+ title: x.tooltipTitle,
2886
+ description: x.tooltipDescription,
2888
2887
  placement: "top"
2889
2888
  }, {
2890
2889
  default: Z(() => [
@@ -2896,14 +2895,14 @@ const ue = new Ps(
2896
2895
  onClick: C,
2897
2896
  onKeydown: P
2898
2897
  }, [
2899
- L(D(fe), { class: "freddy-plugins-textarea-tooltip-icon" })
2898
+ V(A(fe), { class: "freddy-plugins-textarea-tooltip-icon" })
2900
2899
  ], 32)
2901
2900
  ]),
2902
2901
  _: 1
2903
2902
  }, 8, ["title", "description"])) : w("", !0)
2904
2903
  ])
2905
2904
  ]),
2906
- $.showAiButton ? (c(), f("button", {
2905
+ x.showAiButton ? (c(), f("button", {
2907
2906
  key: 0,
2908
2907
  type: "button",
2909
2908
  class: "freddy-plugins-textarea-ai-button",
@@ -2912,70 +2911,70 @@ const ue = new Ps(
2912
2911
  "aria-label": "Ask AI for help",
2913
2912
  tabindex: "0"
2914
2913
  }, [
2915
- L(D(Fe), { class: "freddy-plugins-textarea-ai-icon" })
2914
+ V(A(Fe), { class: "freddy-plugins-textarea-ai-icon" })
2916
2915
  ], 32)) : w("", !0)
2917
2916
  ]),
2918
2917
  a("div", Ti, [
2919
- $.diffMode ? w("", !0) : Q((c(), f("textarea", {
2918
+ x.diffMode ? w("", !0) : Q((c(), f("textarea", {
2920
2919
  key: 0,
2921
2920
  ref_key: "textareaRef",
2922
2921
  ref: l,
2923
2922
  "onUpdate:modelValue": de[0] || (de[0] = (ie) => u.value = ie),
2924
2923
  class: F(["freddy-plugins-textarea-input", {
2925
- "freddy-plugins-textarea-input--error": $.hasError,
2926
- "freddy-plugins-textarea-input--disabled": $.disabled,
2927
- "freddy-plugins-textarea-input--focused": b.value,
2928
- "freddy-plugins-textarea-input--with-tags": $.showTags && $.tags.length > 0,
2929
- "freddy-plugins-textarea-input--tags-only": $.tagsOnly
2924
+ "freddy-plugins-textarea-input--error": x.hasError,
2925
+ "freddy-plugins-textarea-input--disabled": x.disabled,
2926
+ "freddy-plugins-textarea-input--focused": _.value,
2927
+ "freddy-plugins-textarea-input--with-tags": x.showTags && x.tags.length > 0,
2928
+ "freddy-plugins-textarea-input--tags-only": x.tagsOnly
2930
2929
  }]),
2931
- placeholder: x.value,
2932
- disabled: $.disabled,
2933
- readonly: $.readonly || $.tagsOnly,
2934
- onInput: V,
2930
+ placeholder: $.value,
2931
+ disabled: x.disabled,
2932
+ readonly: x.readonly || x.tagsOnly,
2933
+ onInput: L,
2935
2934
  onFocus: v,
2936
2935
  onBlur: T,
2937
- onKeydown: k,
2936
+ onKeydown: b,
2938
2937
  onClick: I
2939
2938
  }, null, 42, $i)), [
2940
2939
  [Y, u.value]
2941
2940
  ]),
2942
- $.diffMode ? (c(), f("div", xi, [
2941
+ x.diffMode ? (c(), f("div", xi, [
2943
2942
  a("div", Pi, [
2944
- a("div", Ai, B($.oldText), 1),
2945
- a("div", Di, B($.newText), 1)
2943
+ a("div", Di, B(x.oldText), 1),
2944
+ a("div", Ai, B(x.newText), 1)
2946
2945
  ])
2947
2946
  ])) : w("", !0),
2948
- $.showTags && $.tags.length > 0 ? (c(), f("div", Fi, [
2947
+ x.showTags && x.tags.length > 0 ? (c(), f("div", Fi, [
2949
2948
  a("div", Bi, [
2950
- (c(!0), f(O, null, j($.tags, (ie, ve) => (c(), f("div", {
2949
+ (c(!0), f(O, null, j(x.tags, (ie, ve) => (c(), f("div", {
2951
2950
  key: `${ie}-${ve}`,
2952
2951
  class: "freddy-plugins-textarea-tag"
2953
2952
  }, [
2954
2953
  a("div", Mi, [
2955
2954
  a("span", {
2956
2955
  class: F(["freddy-plugins-textarea-tag-text", {
2957
- "freddy-plugins-textarea-tag-text--underlined": $.showUnderlines
2956
+ "freddy-plugins-textarea-tag-text--underlined": x.showUnderlines
2958
2957
  }])
2959
2958
  }, B(ie), 3)
2960
2959
  ]),
2961
2960
  a("button", {
2962
2961
  type: "button",
2963
2962
  class: "freddy-plugins-textarea-tag-close",
2964
- onClick: (we) => _(ve),
2963
+ onClick: (we) => k(ve),
2965
2964
  onKeydown: (we) => n(we, ve),
2966
2965
  "aria-label": `Remove ${ie} tag`,
2967
2966
  tabindex: "0"
2968
2967
  }, [
2969
- L(D(ee), { class: "freddy-plugins-textarea-tag-close-icon" })
2968
+ V(A(ee), { class: "freddy-plugins-textarea-tag-close-icon" })
2970
2969
  ], 40, Li)
2971
2970
  ]))), 128))
2972
2971
  ]),
2973
- $.showAddTagsPlaceholder ? (c(), f("span", {
2972
+ x.showAddTagsPlaceholder ? (c(), f("span", {
2974
2973
  key: 0,
2975
2974
  class: F(["freddy-plugins-textarea-add-tags", {
2976
- "freddy-plugins-textarea-add-tags--underlined": $.showUnderlines
2975
+ "freddy-plugins-textarea-add-tags--underlined": x.showUnderlines
2977
2976
  }])
2978
- }, B($.addTagsPlaceholder), 3)) : w("", !0)
2977
+ }, B(x.addTagsPlaceholder), 3)) : w("", !0)
2979
2978
  ])) : w("", !0),
2980
2979
  a("button", {
2981
2980
  type: "button",
@@ -2985,33 +2984,33 @@ const ue = new Ps(
2985
2984
  "aria-label": "Expand textarea",
2986
2985
  tabindex: "0"
2987
2986
  }, [
2988
- L(D(_t), { class: "freddy-plugins-textarea-expand-icon" })
2987
+ V(A(_t), { class: "freddy-plugins-textarea-expand-icon" })
2989
2988
  ], 32)
2990
2989
  ])
2991
2990
  ]),
2992
- $.showHint && $.hintText && !$.hasError ? (c(), f("p", {
2991
+ x.showHint && x.hintText && !x.hasError ? (c(), f("p", {
2993
2992
  key: 0,
2994
2993
  class: F(["freddy-plugins-textarea-hint-text", {
2995
- "freddy-plugins-textarea-hint-text--underlined": $.showUnderlines
2994
+ "freddy-plugins-textarea-hint-text--underlined": x.showUnderlines
2996
2995
  }])
2997
- }, B($.hintText), 3)) : w("", !0),
2998
- $.hasError && $.errorMessage ? (c(), f("p", {
2996
+ }, B(x.hintText), 3)) : w("", !0),
2997
+ x.hasError && x.errorMessage ? (c(), f("p", {
2999
2998
  key: 1,
3000
2999
  class: F(["freddy-plugins-textarea-error-text", {
3001
- "freddy-plugins-textarea-error-text--underlined": $.showUnderlines
3000
+ "freddy-plugins-textarea-error-text--underlined": x.showUnderlines
3002
3001
  }])
3003
- }, B($.errorMessage), 3)) : w("", !0),
3002
+ }, B(x.errorMessage), 3)) : w("", !0),
3004
3003
  g.value === "ai" ? (c(), E(Ie, {
3005
3004
  key: 2,
3006
3005
  ref_key: "aiModalRef",
3007
3006
  ref: r,
3008
3007
  "is-visible": o.value && g.value === "ai",
3009
- title: $.modalTitle,
3010
- description: $.modalDescription,
3008
+ title: x.modalTitle,
3009
+ description: x.modalDescription,
3011
3010
  "initial-content": u.value,
3012
- "openai-api-key": $.openaiApiKey,
3013
- "openai-model": $.openaiModel,
3014
- "openai-organization": $.openaiOrganization,
3011
+ "openai-api-key": x.openaiApiKey,
3012
+ "openai-model": x.openaiModel,
3013
+ "openai-organization": x.openaiOrganization,
3015
3014
  "auto-show-a-i": !0,
3016
3015
  onClose: W,
3017
3016
  onSave: X,
@@ -3022,11 +3021,11 @@ const ue = new Ps(
3022
3021
  g.value === "expand" ? (c(), E(Ie, {
3023
3022
  key: 3,
3024
3023
  "is-visible": o.value && g.value === "expand",
3025
- title: $.modalTitle,
3026
- description: $.modalDescription,
3024
+ title: x.modalTitle,
3025
+ description: x.modalDescription,
3027
3026
  "initial-content": u.value,
3028
3027
  "openai-api-key": "",
3029
- "openai-model": $.openaiModel,
3028
+ "openai-model": x.openaiModel,
3030
3029
  "openai-organization": "",
3031
3030
  onClose: W,
3032
3031
  onSave: X,
@@ -3043,8 +3042,8 @@ const ue = new Ps(
3043
3042
  disabled: { type: Boolean, default: !1 },
3044
3043
  readonly: { type: Boolean, default: !1 },
3045
3044
  required: { type: Boolean, default: !0 },
3046
- showTooltip: { type: Boolean, default: !0 },
3047
- tooltipText: { default: "Provide detailed description for your content" },
3045
+ tooltipTitle: { default: "" },
3046
+ tooltipDescription: { default: "" },
3048
3047
  showAiButton: { type: Boolean, default: !0 },
3049
3048
  stage: { default: "placeholder" },
3050
3049
  type: { default: "default" },
@@ -3067,7 +3066,7 @@ const ue = new Ps(
3067
3066
  },
3068
3067
  emits: ["update:modelValue", "input", "focus", "blur", "ask-ai", "expand", "remove-tag", "tooltip-click", "add-tag", "tags-click"],
3069
3068
  setup(y, { expose: m, emit: s }) {
3070
- const e = y, i = s, l = A(e.modelValue), r = A([...e.tags]);
3069
+ const e = y, i = s, l = D(e.modelValue), r = D([...e.tags]);
3071
3070
  G(
3072
3071
  () => e.modelValue,
3073
3072
  (p) => {
@@ -3082,17 +3081,17 @@ const ue = new Ps(
3082
3081
  );
3083
3082
  const u = M(() => e.type === "tags"), d = M(() => e.type === "tags" && (e.stage === "placeholder" || e.stage === "focused")), o = M(() => (e.stage === "focused", "Add tags...")), g = M(() => e.stage === "error" || e.destructive);
3084
3083
  M(() => g.value && e.destructive ? e.errorMessage : e.hintText), M(() => e.stage === "placeholder" ? e.placeholder : e.stage === "focused" && e.type === "tags" || e.stage === "default" || e.stage === "focused" ? "" : e.placeholder);
3085
- const b = (p) => {
3084
+ const _ = (p) => {
3086
3085
  l.value = p, i("update:modelValue", p);
3087
- }, x = (p) => {
3086
+ }, $ = (p) => {
3088
3087
  i("input", p);
3089
- }, V = (p) => {
3088
+ }, L = (p) => {
3090
3089
  i("focus", p);
3091
3090
  }, v = (p) => {
3092
3091
  i("blur", p);
3093
3092
  }, T = (p) => {
3094
3093
  i("ask-ai", p);
3095
- }, k = (p) => {
3094
+ }, b = (p) => {
3096
3095
  i("expand", p);
3097
3096
  }, I = (p) => {
3098
3097
  r.value.splice(p, 1), i("remove-tag", p);
@@ -3109,16 +3108,16 @@ const ue = new Ps(
3109
3108
  }), (p, S) => (c(), E(Ei, {
3110
3109
  modelValue: l.value,
3111
3110
  "onUpdate:modelValue": [
3112
- S[0] || (S[0] = (_) => l.value = _),
3113
- b
3111
+ S[0] || (S[0] = (k) => l.value = k),
3112
+ _
3114
3113
  ],
3115
3114
  label: p.label,
3116
3115
  placeholder: p.placeholder,
3117
3116
  disabled: p.disabled,
3118
3117
  readonly: p.readonly,
3119
3118
  required: p.required,
3120
- "show-tooltip": p.showTooltip,
3121
- "tooltip-text": p.tooltipText,
3119
+ "tooltip-title": p.tooltipTitle,
3120
+ "tooltip-description": p.tooltipDescription,
3122
3121
  "show-ai-button": p.showAiButton,
3123
3122
  "show-tags": u.value,
3124
3123
  tags: r.value,
@@ -3139,18 +3138,18 @@ const ue = new Ps(
3139
3138
  "old-text": p.oldText,
3140
3139
  "new-text": p.newText,
3141
3140
  "tags-only": p.tagsOnly,
3142
- onInput: x,
3143
- onFocus: V,
3141
+ onInput: $,
3142
+ onFocus: L,
3144
3143
  onBlur: v,
3145
3144
  onAskAi: T,
3146
- onExpand: k,
3145
+ onExpand: b,
3147
3146
  onRemoveTag: I,
3148
3147
  onTooltipClick: C,
3149
3148
  onAddTag: P,
3150
3149
  onTagsClick: h
3151
- }, null, 8, ["modelValue", "label", "placeholder", "disabled", "readonly", "required", "show-tooltip", "tooltip-text", "show-ai-button", "show-tags", "tags", "show-add-tags-placeholder", "add-tags-placeholder", "hint-text", "has-error", "error-message", "modal-title", "modal-description", "openai-api-key", "openai-model", "openai-organization", "show-underlines", "dynamic-title", "show-hint", "diff-mode", "old-text", "new-text", "tags-only"]));
3150
+ }, null, 8, ["modelValue", "label", "placeholder", "disabled", "readonly", "required", "tooltip-title", "tooltip-description", "show-ai-button", "show-tags", "tags", "show-add-tags-placeholder", "add-tags-placeholder", "hint-text", "has-error", "error-message", "modal-title", "modal-description", "openai-api-key", "openai-model", "openai-organization", "show-underlines", "dynamic-title", "show-hint", "diff-mode", "old-text", "new-text", "tags-only"]));
3152
3151
  }
3153
- }), rc = /* @__PURE__ */ H(Ni, [["__scopeId", "data-v-19ded011"]]), Ri = { class: "freddy-plugins-diff-container" }, Oi = ["innerHTML"], zi = ["placeholder"], Hi = /* @__PURE__ */ N({
3152
+ }), rc = /* @__PURE__ */ H(Ni, [["__scopeId", "data-v-9bdd8550"]]), Ri = { class: "freddy-plugins-diff-container" }, Oi = ["innerHTML"], zi = ["placeholder"], Hi = /* @__PURE__ */ N({
3154
3153
  __name: "DiffTextarea",
3155
3154
  props: {
3156
3155
  modelValue: {},
@@ -3161,7 +3160,7 @@ const ue = new Ps(
3161
3160
  },
3162
3161
  emits: ["update:modelValue"],
3163
3162
  setup(y, { expose: m, emit: s }) {
3164
- const e = y, i = s, l = A(null), r = A(e.modelValue);
3163
+ const e = y, i = s, l = D(null), r = D(e.modelValue);
3165
3164
  G(
3166
3165
  () => e.modelValue,
3167
3166
  (o) => {
@@ -3173,11 +3172,11 @@ const ue = new Ps(
3173
3172
  }, d = M(() => {
3174
3173
  if (!e.originalText || !e.improvedText) return "";
3175
3174
  const o = e.originalText.split(/(\s+)/), g = e.improvedText.split(/(\s+)/);
3176
- let b = "";
3177
- const x = o.filter((v) => !g.includes(v) && v.trim()).join(" ");
3178
- x && (b += `<span class="freddy-plugins-diff-removed">${x}</span>`);
3179
- const V = g.filter((v) => !o.includes(v) && v.trim()).join(" ");
3180
- return V && (b && (b += "<br>"), b += `<span class="freddy-plugins-diff-added">${V}</span>`), b || (b = `<span class="freddy-plugins-diff-improved">${e.improvedText}</span>`), b;
3175
+ let _ = "";
3176
+ const $ = o.filter((v) => !g.includes(v) && v.trim()).join(" ");
3177
+ $ && (_ += `<span class="freddy-plugins-diff-removed">${$}</span>`);
3178
+ const L = g.filter((v) => !o.includes(v) && v.trim()).join(" ");
3179
+ return L && (_ && (_ += "<br>"), _ += `<span class="freddy-plugins-diff-added">${L}</span>`), _ || (_ = `<span class="freddy-plugins-diff-improved">${e.improvedText}</span>`), _;
3181
3180
  });
3182
3181
  return m({
3183
3182
  focus: () => {
@@ -3197,7 +3196,7 @@ const ue = new Ps(
3197
3196
  key: 1,
3198
3197
  ref_key: "textareaRef",
3199
3198
  ref: l,
3200
- "onUpdate:modelValue": g[0] || (g[0] = (b) => r.value = b),
3199
+ "onUpdate:modelValue": g[0] || (g[0] = (_) => r.value = _),
3201
3200
  class: "freddy-plugins-diff-textarea",
3202
3201
  placeholder: o.placeholder,
3203
3202
  onInput: u
@@ -3273,7 +3272,7 @@ const ue = new Ps(
3273
3272
  },
3274
3273
  emits: ["select", "toggle"],
3275
3274
  setup(y, { emit: m }) {
3276
- const s = y, e = m, i = A(!1), l = A(""), r = A(null), u = je([...s.options]);
3275
+ const s = y, e = m, i = D(!1), l = D(""), r = D(null), u = je([...s.options]);
3277
3276
  G(
3278
3277
  () => s.options,
3279
3278
  (C) => {
@@ -3292,23 +3291,23 @@ const ue = new Ps(
3292
3291
  },
3293
3292
  { immediate: !0 }
3294
3293
  );
3295
- const o = M(() => s.label !== "Select" ? s.label : r.value ? r.value.label : "Select"), g = M(() => s.showIcon ? s.customIcon ? s.customIcon : s.openUp ? Be : ae : null), b = () => {
3294
+ const o = M(() => s.label !== "Select" ? s.label : r.value ? r.value.label : "Select"), g = M(() => s.showIcon ? s.customIcon ? s.customIcon : s.openUp ? Be : ae : null), _ = () => {
3296
3295
  i.value = !i.value, i.value || (l.value = "");
3297
- }, x = () => {
3296
+ }, $ = () => {
3298
3297
  i.value = !1, l.value = "";
3299
- }, V = M(() => !s.searchable || !l.value ? u.value : u.value.filter(
3298
+ }, L = M(() => !s.searchable || !l.value ? u.value : u.value.filter(
3300
3299
  (C) => C.label.toLowerCase().includes(l.value.toLowerCase())
3301
3300
  )), v = (C, P) => {
3302
3301
  C.type !== "toggle" && T(C);
3303
3302
  }, T = (C) => {
3304
- r.value = C, e("select", C), s.stayOpen || x();
3305
- }, k = (C, P) => {
3303
+ r.value = C, e("select", C), s.stayOpen || $();
3304
+ }, b = (C, P) => {
3306
3305
  const h = u.value.findIndex(
3307
3306
  (t) => t.value === C.value
3308
3307
  );
3309
3308
  h !== -1 && (u.value[h].checked = P), e("toggle", { ...C, checked: P });
3310
3309
  }, I = (C) => {
3311
- C.target.closest(".freddy-plugins-dropdown-wrapper") || x();
3310
+ C.target.closest(".freddy-plugins-dropdown-wrapper") || $();
3312
3311
  };
3313
3312
  return G(i, (C) => {
3314
3313
  C ? setTimeout(() => {
@@ -3316,10 +3315,10 @@ const ue = new Ps(
3316
3315
  }, 0) : document.removeEventListener("click", I);
3317
3316
  }), (C, P) => (c(), f("div", {
3318
3317
  class: "freddy-plugins-dropdown-wrapper",
3319
- onKeydown: z(x, ["esc"]),
3318
+ onKeydown: z($, ["esc"]),
3320
3319
  tabindex: "0"
3321
3320
  }, [
3322
- L(Ne, {
3321
+ V(Ne, {
3323
3322
  class: "freddy-plugins-dropdown-trigger",
3324
3323
  label: o.value,
3325
3324
  iconOnly: C.iconOnly,
@@ -3327,7 +3326,7 @@ const ue = new Ps(
3327
3326
  leftIcon: !C.chevronRight && C.showIcon ? g.value : void 0,
3328
3327
  size: C.size,
3329
3328
  hierarchy: "tertiary",
3330
- onClick: b,
3329
+ onClick: _,
3331
3330
  "aria-expanded": i.value,
3332
3331
  "aria-haspopup": !0,
3333
3332
  type: "button"
@@ -3357,7 +3356,7 @@ const ue = new Ps(
3357
3356
  ])
3358
3357
  ])) : w("", !0),
3359
3358
  a("ul", Zi, [
3360
- (c(!0), f(O, null, j(V.value, (h) => (c(), f("li", {
3359
+ (c(!0), f(O, null, j(L.value, (h) => (c(), f("li", {
3361
3360
  key: h.value,
3362
3361
  class: F(["freddy-plugins-dropdown-option", {
3363
3362
  "freddy-plugins-dropdown-option--toggle": h.type === "toggle"
@@ -3381,13 +3380,13 @@ const ue = new Ps(
3381
3380
  modelValue: h.checked ?? !1,
3382
3381
  size: s.size,
3383
3382
  "onUpdate:modelValue": (t) => {
3384
- k(h, t);
3383
+ b(h, t);
3385
3384
  },
3386
3385
  onClick: P[1] || (P[1] = U(() => {
3387
3386
  }, ["stop"]))
3388
3387
  }, null, 8, ["modelValue", "size", "onUpdate:modelValue"])) : w("", !0)
3389
3388
  ], 10, qi))), 128)),
3390
- V.value.length === 0 ? (c(), f("li", Qi, [
3389
+ L.value.length === 0 ? (c(), f("li", Qi, [
3391
3390
  q(C.$slots, "no-options", {}, () => [
3392
3391
  P[2] || (P[2] = J("No options", -1))
3393
3392
  ])
@@ -3410,7 +3409,7 @@ const ue = new Ps(
3410
3409
  },
3411
3410
  emits: ["verify", "resend"],
3412
3411
  setup(y, { emit: m }) {
3413
- const s = y, { brand: e, loading: i, error: l, resendCooldown: r } = s, u = m, d = A(["", "", "", ""]), o = A([]), g = M(() => d.value.every((I) => I !== "")), b = M(() => d.value.join("")), x = (I, C) => {
3412
+ const s = y, { brand: e, loading: i, error: l, resendCooldown: r } = s, u = m, d = D(["", "", "", ""]), o = D([]), g = M(() => d.value.every((I) => I !== "")), _ = M(() => d.value.join("")), $ = (I, C) => {
3414
3413
  const P = C.target, h = P.value;
3415
3414
  if (!/^\d*$/.test(h)) {
3416
3415
  P.value = "";
@@ -3420,7 +3419,7 @@ const ue = new Ps(
3420
3419
  var t;
3421
3420
  (t = o.value[I + 1]) == null || t.focus();
3422
3421
  });
3423
- }, V = (I, C) => {
3422
+ }, L = (I, C) => {
3424
3423
  C.key === "Backspace" && !d.value[I] && I > 0 && te(() => {
3425
3424
  var P;
3426
3425
  (P = o.value[I - 1]) == null || P.focus();
@@ -3438,8 +3437,8 @@ const ue = new Ps(
3438
3437
  (S = o.value[t]) == null || S.focus();
3439
3438
  });
3440
3439
  }, T = () => {
3441
- g.value && u("verify", b.value);
3442
- }, k = () => {
3440
+ g.value && u("verify", _.value);
3441
+ }, b = () => {
3443
3442
  u("resend");
3444
3443
  };
3445
3444
  return me(() => {
@@ -3448,7 +3447,7 @@ const ue = new Ps(
3448
3447
  (I = o.value[0]) == null || I.focus();
3449
3448
  });
3450
3449
  }), (I, C) => (c(), f("div", {
3451
- class: F(["email-verification", `email-verification--${D(e)}`])
3450
+ class: F(["email-verification", `email-verification--${A(e)}`])
3452
3451
  }, [
3453
3452
  a("div", Yi, [
3454
3453
  a("div", Xi, [
@@ -3471,11 +3470,11 @@ const ue = new Ps(
3471
3470
  "onUpdate:modelValue": (t) => d.value[h] = t,
3472
3471
  type: "text",
3473
3472
  maxlength: "1",
3474
- class: F(["code-input", `code-input--${D(e)}`]),
3475
- onInput: (t) => x(h, t),
3476
- onKeydown: (t) => V(h, t),
3473
+ class: F(["code-input", `code-input--${A(e)}`]),
3474
+ onInput: (t) => $(h, t),
3475
+ onKeydown: (t) => L(h, t),
3477
3476
  onPaste: v,
3478
- disabled: D(i),
3477
+ disabled: A(i),
3479
3478
  autocomplete: "one-time-code"
3480
3479
  }, null, 42, na), [
3481
3480
  [Y, d.value[h]]
@@ -3483,26 +3482,26 @@ const ue = new Ps(
3483
3482
  ])
3484
3483
  ]),
3485
3484
  a("div", sa, [
3486
- L(Ne, {
3485
+ V(Ne, {
3487
3486
  type: "submit",
3488
- label: D(i) ? "Verifying..." : "Verify Code",
3487
+ label: A(i) ? "Verifying..." : "Verify Code",
3489
3488
  hierarchy: "primary",
3490
3489
  size: "lg",
3491
- loading: D(i),
3492
- disabled: !g.value || D(i),
3493
- class: F(`verify-button verify-button--${D(e)}`)
3490
+ loading: A(i),
3491
+ disabled: !g.value || A(i),
3492
+ class: F(`verify-button verify-button--${A(e)}`)
3494
3493
  }, null, 8, ["label", "loading", "disabled", "class"])
3495
3494
  ]),
3496
- D(l) ? (c(), f("div", ia, B(D(l)), 1)) : w("", !0),
3495
+ A(l) ? (c(), f("div", ia, B(A(l)), 1)) : w("", !0),
3497
3496
  a("div", aa, [
3498
3497
  a("p", la, [
3499
3498
  C[2] || (C[2] = J(" Didn't receive the code? ", -1)),
3500
3499
  a("button", {
3501
3500
  type: "button",
3502
3501
  class: "resend-button",
3503
- disabled: D(r) > 0,
3504
- onClick: k
3505
- }, B(D(r) > 0 ? `Resend in ${D(r)}s` : "Resend code"), 9, ca)
3502
+ disabled: A(r) > 0,
3503
+ onClick: b
3504
+ }, B(A(r) > 0 ? `Resend in ${A(r)}s` : "Resend code"), 9, ca)
3506
3505
  ])
3507
3506
  ])
3508
3507
  ], 32)
@@ -3617,7 +3616,7 @@ const ue = new Ps(
3617
3616
  },
3618
3617
  emits: ["update:cardNumber", "card-type-detected", "update:modelValue", "input", "focus", "blur", "trailing-icon-click", "keydown", "leading-icon-click", "trailing-button-click", "update:countryCode", "update:phoneNumber", "country-change", "update:currency", "update:amount", "currency-change", "update:protocol", "update:url", "protocol-change", "update:tags", "tag-added", "tag-removed", "max-tags-reached", "copy-success", "copy-error"],
3619
3618
  setup(y, { expose: m, emit: s }) {
3620
- const e = y, i = s, l = A(null), r = A(null), u = A(""), d = A(""), o = A("unknown"), g = M(() => ({
3619
+ const e = y, i = s, l = D(null), r = D(null), u = D(""), d = D(""), o = D("unknown"), g = M(() => ({
3621
3620
  size: e.size,
3622
3621
  colorStyle: e.colorStyle,
3623
3622
  state: e.state,
@@ -3626,9 +3625,9 @@ const ue = new Ps(
3626
3625
  label: e.label,
3627
3626
  hintText: e.hintText,
3628
3627
  disabled: e.disabled
3629
- })), b = (_) => _ ? typeof _ == "object" ? _ : typeof _ == "string" ? R(
3630
- () => be(/* @__PURE__ */ Object.assign({ "../../icons/IconAddChatPop.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c5), "../../icons/IconAddFileSystem.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c6), "../../icons/IconAddPeople.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c7), "../../icons/IconAitronos.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c8), "../../icons/IconApple.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c9), "../../icons/IconApplePay.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ca), "../../icons/IconAppsGrid.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cb), "../../icons/IconArrowDown.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cc), "../../icons/IconArrowLeft.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cd), "../../icons/IconArrowUp.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ce), "../../icons/IconBadgeCheck.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cf), "../../icons/IconBroom.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cg), "../../icons/IconBuildings.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ch), "../../icons/IconCalendarWithTickInside.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ci), "../../icons/IconCallNotAllowed.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cj), "../../icons/IconCardPay.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ck), "../../icons/IconCaution.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cl), "../../icons/IconChangeLog.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cm), "../../icons/IconCheckCircleFill.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cn), "../../icons/IconCheckInCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.co), "../../icons/IconCheckRounded.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cp), "../../icons/IconChevronDown.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cq), "../../icons/IconChevronLeft.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cr), "../../icons/IconChevronRight.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cs), "../../icons/IconChevronUp.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ct), "../../icons/IconCircledCheck.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cu), "../../icons/IconClock.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cv), "../../icons/IconClosedEnvelope.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cw), "../../icons/IconCloudUpload.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cx), "../../icons/IconConnectorConfluence.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cy), "../../icons/IconConnectorFigma.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cz), "../../icons/IconConnectorFreshDesk.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cA), "../../icons/IconConnectorGitHub.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cB), "../../icons/IconConnectorJira.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cC), "../../icons/IconConnectorLinear.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cD), "../../icons/IconConnectorNotion.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cE), "../../icons/IconConnectorSlack.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cF), "../../icons/IconConnectorZapier.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cG), "../../icons/IconCopy.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cH), "../../icons/IconCross.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cI), "../../icons/IconCrossCircleFill.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cJ), "../../icons/IconCrossInCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cK), "../../icons/IconCurrentTick.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cL), "../../icons/IconDataUpload.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cM), "../../icons/IconDelete.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cN), "../../icons/IconDeleteFillRed.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cO), "../../icons/IconDialingPhone.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cP), "../../icons/IconDisabledAlert.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cQ), "../../icons/IconDocumentation.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cR), "../../icons/IconDownload.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cS), "../../icons/IconDribbble.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cT), "../../icons/IconDropdownArrow.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cU), "../../icons/IconEdit.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cV), "../../icons/IconEditLinePath.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cW), "../../icons/IconEllipse.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cX), "../../icons/IconExcelThumbnail.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cY), "../../icons/IconExpand.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cZ), "../../icons/IconEye.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c_), "../../icons/IconFacebook.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c$), "../../icons/IconFigma.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d0), "../../icons/IconFile.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d1), "../../icons/IconFileSystem.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d2), "../../icons/IconFileUpload.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d3), "../../icons/IconFilter.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d4), "../../icons/IconFolder.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d5), "../../icons/IconFreddyHub.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d6), "../../icons/IconFreddyHubLogo.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d7), "../../icons/IconFreddyHubNewLogo.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d8), "../../icons/IconFreddyHubTitle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d9), "../../icons/IconFreddySmall.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.da), "../../icons/IconGlobExpand.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.db), "../../icons/IconGlobe.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dc), "../../icons/IconGoogle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dd), "../../icons/IconHollowCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.de), "../../icons/IconHome.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.df), "../../icons/IconInfoRounded.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dg), "../../icons/IconInvalidInvoice.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dh), "../../icons/IconInvoice.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.di), "../../icons/IconInvoiceSwitch.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dj), "../../icons/IconLapTableBottom.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dk), "../../icons/IconLense.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dl), "../../icons/IconLightCross.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dm), "../../icons/IconLink04.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dn), "../../icons/IconLoadingError.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dp), "../../icons/IconLoadingOrg.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dq), "../../icons/IconLocationWithCircleIn.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dr), "../../icons/IconLock.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ds), "../../icons/IconMarketPlace.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dt), "../../icons/IconMaximize.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.du), "../../icons/IconMicrophone.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dv), "../../icons/IconMutedMicrophone.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dw), "../../icons/IconNewNotification.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dx), "../../icons/IconNewTab.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dy), "../../icons/IconNotification.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dz), "../../icons/IconOpenBook.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dA), "../../icons/IconPaperAirPlane.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dB), "../../icons/IconPauseCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dC), "../../icons/IconPdfThumbnail.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dD), "../../icons/IconPenEdit.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dE), "../../icons/IconPencil.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dF), "../../icons/IconPeopleHub.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dG), "../../icons/IconPersonCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dH), "../../icons/IconPits.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dI), "../../icons/IconPlay.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dJ), "../../icons/IconPlus.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dK), "../../icons/IconPolygonDown.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dL), "../../icons/IconPresentation.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dM), "../../icons/IconProgressBase.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dN), "../../icons/IconProgressComplete.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dO), "../../icons/IconProgressGoing.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dP), "../../icons/IconPurpose.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dQ), "../../icons/IconPurseCircleFill.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dR), "../../icons/IconQuestion.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dS), "../../icons/IconRadio.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dT), "../../icons/IconRadioFill.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dU), "../../icons/IconRefresh.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dV), "../../icons/IconRevertedTriangle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dW), "../../icons/IconRobotScreen.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dX), "../../icons/IconRoundTick.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dY), "../../icons/IconSearch.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dZ), "../../icons/IconSearchOptimised.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d_), "../../icons/IconSectionHide.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d$), "../../icons/IconSend.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e0), "../../icons/IconSettings.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e1), "../../icons/IconSettingsBold.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e2), "../../icons/IconSize.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e3), "../../icons/IconSliderKnobs.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e4), "../../icons/IconSortIdle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e5), "../../icons/IconSparkle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e6), "../../icons/IconSpotlio.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e7), "../../icons/IconStar.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e8), "../../icons/IconStatistics.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e9), "../../icons/IconStopChat.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ea), "../../icons/IconStreamLineHub.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eb), "../../icons/IconStreamLineHubNewLogo.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ec), "../../icons/IconSun.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ed), "../../icons/IconSwap.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ee), "../../icons/IconText.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ef), "../../icons/IconTextThumbnail.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eg), "../../icons/IconThinDocument.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eh), "../../icons/IconThinFile.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ei), "../../icons/IconThumbsDown.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ej), "../../icons/IconTick.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ek), "../../icons/IconUser.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.el), "../../icons/IconVerticalDots.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.em), "../../icons/IconVideoCamera.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.en), "../../icons/IconWarningOctal.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eo), "../../icons/IconX.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ep), "../../icons/IconZip.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eq) }), `../../icons/${_}.vue`, 4).catch(() => ({ template: "<div></div>" }))
3631
- ) : null : null, x = M(() => b(e.trailingIcon)), V = M(() => {
3628
+ })), _ = (k) => k ? typeof k == "object" ? k : typeof k == "string" ? R(
3629
+ () => be(/* @__PURE__ */ Object.assign({ "../../icons/IconAddChatPop.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c5), "../../icons/IconAddFileSystem.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c6), "../../icons/IconAddPeople.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c7), "../../icons/IconAitronos.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c8), "../../icons/IconApple.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c9), "../../icons/IconApplePay.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ca), "../../icons/IconAppsGrid.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cb), "../../icons/IconArrowDown.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cc), "../../icons/IconArrowLeft.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cd), "../../icons/IconArrowUp.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ce), "../../icons/IconBadgeCheck.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cf), "../../icons/IconBroom.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cg), "../../icons/IconBuildings.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ch), "../../icons/IconCalendarWithTickInside.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ci), "../../icons/IconCallNotAllowed.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cj), "../../icons/IconCardPay.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ck), "../../icons/IconCaution.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cl), "../../icons/IconChangeLog.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cm), "../../icons/IconCheckCircleFill.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cn), "../../icons/IconCheckInCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.co), "../../icons/IconCheckRounded.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cp), "../../icons/IconChevronDown.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cq), "../../icons/IconChevronLeft.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cr), "../../icons/IconChevronRight.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cs), "../../icons/IconChevronUp.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ct), "../../icons/IconCircledCheck.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cu), "../../icons/IconClock.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cv), "../../icons/IconClosedEnvelope.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cw), "../../icons/IconCloudUpload.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cx), "../../icons/IconConnectorConfluence.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cy), "../../icons/IconConnectorFigma.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cz), "../../icons/IconConnectorFreshDesk.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cA), "../../icons/IconConnectorGitHub.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cB), "../../icons/IconConnectorJira.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cC), "../../icons/IconConnectorLinear.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cD), "../../icons/IconConnectorNotion.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cE), "../../icons/IconConnectorSlack.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cF), "../../icons/IconConnectorZapier.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cG), "../../icons/IconCopy.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cH), "../../icons/IconCross.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cI), "../../icons/IconCrossCircleFill.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cJ), "../../icons/IconCrossInCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cK), "../../icons/IconCurrentTick.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cL), "../../icons/IconDataUpload.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cM), "../../icons/IconDelete.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cN), "../../icons/IconDeleteFillRed.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cO), "../../icons/IconDialingPhone.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cP), "../../icons/IconDisabledAlert.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cQ), "../../icons/IconDocumentation.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cR), "../../icons/IconDownload.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cS), "../../icons/IconDribbble.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cT), "../../icons/IconDropdownArrow.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cU), "../../icons/IconEdit.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cV), "../../icons/IconEditLinePath.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cW), "../../icons/IconEllipse.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cX), "../../icons/IconExcelThumbnail.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cY), "../../icons/IconExpand.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.cZ), "../../icons/IconEye.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c_), "../../icons/IconFacebook.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.c$), "../../icons/IconFigma.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d0), "../../icons/IconFile.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d1), "../../icons/IconFileSystem.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d2), "../../icons/IconFileUpload.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d3), "../../icons/IconFilter.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d4), "../../icons/IconFolder.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d5), "../../icons/IconFreddyHub.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d6), "../../icons/IconFreddyHubLogo.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d7), "../../icons/IconFreddyHubNewLogo.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d8), "../../icons/IconFreddyHubTitle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d9), "../../icons/IconFreddySmall.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.da), "../../icons/IconGlobExpand.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.db), "../../icons/IconGlobe.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dc), "../../icons/IconGoogle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dd), "../../icons/IconHollowCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.de), "../../icons/IconHome.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.df), "../../icons/IconInfoRounded.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dg), "../../icons/IconInvalidInvoice.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dh), "../../icons/IconInvoice.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.di), "../../icons/IconInvoiceSwitch.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dj), "../../icons/IconLapTableBottom.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dk), "../../icons/IconLense.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dl), "../../icons/IconLightCross.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dm), "../../icons/IconLink04.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dn), "../../icons/IconLoadingError.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dp), "../../icons/IconLoadingOrg.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dq), "../../icons/IconLocationWithCircleIn.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dr), "../../icons/IconLock.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ds), "../../icons/IconMarketPlace.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dt), "../../icons/IconMaximize.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.du), "../../icons/IconMicrophone.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dv), "../../icons/IconMutedMicrophone.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dw), "../../icons/IconNewNotification.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dx), "../../icons/IconNewTab.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dy), "../../icons/IconNotification.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dz), "../../icons/IconOpenBook.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dA), "../../icons/IconPaperAirPlane.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dB), "../../icons/IconPauseCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dC), "../../icons/IconPdfThumbnail.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dD), "../../icons/IconPenEdit.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dE), "../../icons/IconPencil.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dF), "../../icons/IconPeopleHub.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dG), "../../icons/IconPersonCircle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dH), "../../icons/IconPits.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dI), "../../icons/IconPlay.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dJ), "../../icons/IconPlus.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dK), "../../icons/IconPolygonDown.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dL), "../../icons/IconPresentation.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dM), "../../icons/IconProgressBase.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dN), "../../icons/IconProgressComplete.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dO), "../../icons/IconProgressGoing.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dP), "../../icons/IconPurpose.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dQ), "../../icons/IconPurseCircleFill.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dR), "../../icons/IconQuestion.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dS), "../../icons/IconRadio.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dT), "../../icons/IconRadioFill.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dU), "../../icons/IconRefresh.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dV), "../../icons/IconRevertedTriangle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dW), "../../icons/IconRobotScreen.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dX), "../../icons/IconRoundTick.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dY), "../../icons/IconSearch.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.dZ), "../../icons/IconSearchOptimised.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d_), "../../icons/IconSectionHide.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.d$), "../../icons/IconSend.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e0), "../../icons/IconSettings.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e1), "../../icons/IconSettingsBold.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e2), "../../icons/IconSize.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e3), "../../icons/IconSliderKnobs.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e4), "../../icons/IconSortIdle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e5), "../../icons/IconSparkle.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e6), "../../icons/IconSpotlio.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e7), "../../icons/IconStar.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e8), "../../icons/IconStatistics.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.e9), "../../icons/IconStopChat.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ea), "../../icons/IconStreamLineHub.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eb), "../../icons/IconStreamLineHubNewLogo.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ec), "../../icons/IconSun.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ed), "../../icons/IconSwap.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ee), "../../icons/IconText.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ef), "../../icons/IconTextThumbnail.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eg), "../../icons/IconThinDocument.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eh), "../../icons/IconThinFile.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ei), "../../icons/IconThumbsDown.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ej), "../../icons/IconTick.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ek), "../../icons/IconUser.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.el), "../../icons/IconVerticalDots.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.em), "../../icons/IconVideoCamera.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.en), "../../icons/IconWarningOctal.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eo), "../../icons/IconX.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.ep), "../../icons/IconZip.vue": () => import("./icons-BAyOBzYf.js").then((n) => n.eq) }), `../../icons/${k}.vue`, 4).catch(() => ({ template: "<div></div>" }))
3630
+ ) : null : null, $ = M(() => _(e.trailingIcon)), L = M(() => {
3632
3631
  switch (o.value) {
3633
3632
  case "amex":
3634
3633
  return 17;
@@ -3643,14 +3642,14 @@ const ue = new Ps(
3643
3642
  "freddy-plugins-input-field--focused": e.state === "focused",
3644
3643
  "freddy-plugins-input-field--disabled": e.state === "disabled",
3645
3644
  "freddy-plugins-input-field--with-leading": e.showCardIcon && o.value !== "unknown",
3646
- "freddy-plugins-input-field--with-trailing": !!x.value
3647
- })), T = (_) => {
3648
- const n = _.replace(/\D/g, "");
3645
+ "freddy-plugins-input-field--with-trailing": !!$.value
3646
+ })), T = (k) => {
3647
+ const n = k.replace(/\D/g, "");
3649
3648
  return /^4/.test(n) ? "visa" : /^5[1-5]/.test(n) || /^2[2-7]/.test(n) ? "mastercard" : /^3[47]/.test(n) ? "amex" : /^6/.test(n) ? "discover" : "unknown";
3650
- }, k = (_) => {
3651
- const n = _.replace(/\D/g, "");
3649
+ }, b = (k) => {
3650
+ const n = k.replace(/\D/g, "");
3652
3651
  return T(n) === "amex" ? n.replace(/(\d{4})(\d{6})(\d{5})/, "$1 $2 $3").replace(/(\d{4})(\d{1,6})/, "$1 $2").substring(0, 17) : n.replace(/(\d{4})(\d{4})(\d{4})(\d{4})/, "$1 $2 $3 $4").replace(/(\d{4})(\d{4})(\d{4})/, "$1 $2 $3").replace(/(\d{4})(\d{4})/, "$1 $2").replace(/(\d{4})/, "$1").substring(0, 19);
3653
- }, I = (_) => {
3652
+ }, I = (k) => {
3654
3653
  const n = {
3655
3654
  visa: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzAwNTFBNSIvPgo8cGF0aCBkPSJNMTYuNzUgN0wxNC4yNSAxN0gxMS43NUwxMy41IDEwLjVMMTIuMjUgOC41SDEwLjc1TDEyLjc1IDdIMTYuNzVaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjkuMjUgN0wyNi43NSAxN0gyNC4yNUwyNi43NSA3SDI5LjI1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+",
3656
3655
  mastercard: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0VCMDAxQiIvPgo8Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSI3IiBmaWxsPSIjRkY1RjAwIi8+CjxjaXJjbGUgY3g9IjI1IiBjeT0iMTIiIHI9IjciIGZpbGw9IiNGRkY1RjAiLz4KPC9zdmc+",
@@ -3658,45 +3657,45 @@ const ue = new Ps(
3658
3657
  discover: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0ZGNjAwMCIvPgo8cGF0aCBkPSJNOCA4SDE2VjE2SDhWOFoiIGZpbGw9IndoaXRlIi8+CjxjaXJjbGUgY3g9IjI4IiBjeT0iMTIiIHI9IjYiIGZpbGw9IndoaXRlIi8+CjwvdXZnPg==",
3659
3658
  unknown: ""
3660
3659
  };
3661
- return n[_] || n.unknown;
3662
- }, C = (_) => {
3663
- const W = _.target.value;
3664
- u.value = W.replace(/\D/g, ""), d.value = k(W);
3660
+ return n[k] || n.unknown;
3661
+ }, C = (k) => {
3662
+ const W = k.target.value;
3663
+ u.value = W.replace(/\D/g, ""), d.value = b(W);
3665
3664
  const X = T(u.value);
3666
3665
  X !== o.value && (o.value = X, i("card-type-detected", X)), i("update:modelValue", d.value), i("update:cardNumber", u.value), i("input", d.value);
3667
- }, P = (_) => {
3668
- [8, 9, 27, 13, 46].indexOf(_.keyCode) !== -1 || // Allow Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X
3669
- _.keyCode === 65 && _.ctrlKey === !0 || _.keyCode === 67 && _.ctrlKey === !0 || _.keyCode === 86 && _.ctrlKey === !0 || _.keyCode === 88 && _.ctrlKey === !0 || // Allow home, end, left, right
3670
- _.keyCode >= 35 && _.keyCode <= 39 || (_.shiftKey || _.keyCode < 48 || _.keyCode > 57) && (_.keyCode < 96 || _.keyCode > 105) && _.preventDefault();
3671
- }, h = (_) => {
3672
- i("focus", _);
3673
- }, t = (_) => {
3674
- i("blur", _);
3675
- }, p = (_) => {
3676
- i("trailing-icon-click", _);
3666
+ }, P = (k) => {
3667
+ [8, 9, 27, 13, 46].indexOf(k.keyCode) !== -1 || // Allow Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X
3668
+ k.keyCode === 65 && k.ctrlKey === !0 || k.keyCode === 67 && k.ctrlKey === !0 || k.keyCode === 86 && k.ctrlKey === !0 || k.keyCode === 88 && k.ctrlKey === !0 || // Allow home, end, left, right
3669
+ k.keyCode >= 35 && k.keyCode <= 39 || (k.shiftKey || k.keyCode < 48 || k.keyCode > 57) && (k.keyCode < 96 || k.keyCode > 105) && k.preventDefault();
3670
+ }, h = (k) => {
3671
+ i("focus", k);
3672
+ }, t = (k) => {
3673
+ i("blur", k);
3674
+ }, p = (k) => {
3675
+ i("trailing-icon-click", k);
3677
3676
  }, S = () => {
3678
- var _;
3679
- (_ = l.value) == null || _.focus();
3677
+ var k;
3678
+ (k = l.value) == null || k.focus();
3680
3679
  };
3681
3680
  return G(
3682
3681
  () => e.cardNumber,
3683
- (_) => {
3684
- _ !== u.value && (u.value = _, d.value = k(_), o.value = T(_));
3682
+ (k) => {
3683
+ k !== u.value && (u.value = k, d.value = b(k), o.value = T(k));
3685
3684
  },
3686
3685
  { immediate: !0 }
3687
3686
  ), m({
3688
3687
  focus: S,
3689
3688
  inputRef: l
3690
- }), (_, n) => (c(), E(ke, se(g.value, {
3689
+ }), (k, n) => (c(), E(ke, se(g.value, {
3691
3690
  onFocus: h,
3692
3691
  onBlur: t
3693
3692
  }), {
3694
3693
  default: Z(() => {
3695
3694
  var W;
3696
3695
  return [
3697
- _.showCardIcon && o.value !== "unknown" ? (c(), f("div", {
3696
+ k.showCardIcon && o.value !== "unknown" ? (c(), f("div", {
3698
3697
  key: 0,
3699
- class: F(["freddy-plugins-card-type-icon", `freddy-plugins-card-type-icon--${_.colorStyle}`])
3698
+ class: F(["freddy-plugins-card-type-icon", `freddy-plugins-card-type-icon--${k.colorStyle}`])
3700
3699
  }, [
3701
3700
  a("img", {
3702
3701
  src: I(o.value),
@@ -3711,10 +3710,10 @@ const ue = new Ps(
3711
3710
  "onUpdate:modelValue": n[0] || (n[0] = (X) => d.value = X),
3712
3711
  type: "text",
3713
3712
  inputmode: "numeric",
3714
- placeholder: _.placeholder,
3715
- disabled: _.disabled,
3716
- readonly: _.readonly,
3717
- maxlength: V.value,
3713
+ placeholder: k.placeholder,
3714
+ disabled: k.disabled,
3715
+ readonly: k.readonly,
3716
+ maxlength: L.value,
3718
3717
  class: F(["freddy-plugins-input-field freddy-plugins-card-input-field", v.value]),
3719
3718
  onInput: C,
3720
3719
  onKeydown: P,
@@ -3723,9 +3722,9 @@ const ue = new Ps(
3723
3722
  }, null, 42, fa), [
3724
3723
  [Y, d.value]
3725
3724
  ]),
3726
- x.value ? (c(), E(K(x.value), {
3725
+ $.value ? (c(), E(K($.value), {
3727
3726
  key: 1,
3728
- class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${_.colorStyle}`]),
3727
+ class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${k.colorStyle}`]),
3729
3728
  onClick: p
3730
3729
  }, null, 8, ["class"])) : w("", !0)
3731
3730
  ];
@@ -3754,7 +3753,7 @@ const ue = new Ps(
3754
3753
  },
3755
3754
  emits: ["update:modelValue", "input", "focus", "blur", "keydown", "leading-icon-click", "trailing-icon-click"],
3756
3755
  setup(y, { expose: m, emit: s }) {
3757
- const e = y, i = s, l = A(null), r = A(null), u = A(e.modelValue || ""), d = M(() => ({
3756
+ const e = y, i = s, l = D(null), r = D(null), u = D(e.modelValue || ""), d = M(() => ({
3758
3757
  size: e.size,
3759
3758
  colorStyle: e.colorStyle,
3760
3759
  state: e.state,
@@ -3765,22 +3764,22 @@ const ue = new Ps(
3765
3764
  disabled: e.disabled
3766
3765
  })), o = (h) => h ? typeof h == "object" ? h : typeof h == "string" ? R(
3767
3766
  () => be(/* @__PURE__ */ Object.assign({ "../../icons/IconAddChatPop.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.c5), "../../icons/IconAddFileSystem.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.c6), "../../icons/IconAddPeople.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.c7), "../../icons/IconAitronos.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.c8), "../../icons/IconApple.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.c9), "../../icons/IconApplePay.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ca), "../../icons/IconAppsGrid.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cb), "../../icons/IconArrowDown.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cc), "../../icons/IconArrowLeft.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cd), "../../icons/IconArrowUp.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ce), "../../icons/IconBadgeCheck.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cf), "../../icons/IconBroom.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cg), "../../icons/IconBuildings.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ch), "../../icons/IconCalendarWithTickInside.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ci), "../../icons/IconCallNotAllowed.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cj), "../../icons/IconCardPay.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ck), "../../icons/IconCaution.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cl), "../../icons/IconChangeLog.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cm), "../../icons/IconCheckCircleFill.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cn), "../../icons/IconCheckInCircle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.co), "../../icons/IconCheckRounded.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cp), "../../icons/IconChevronDown.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cq), "../../icons/IconChevronLeft.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cr), "../../icons/IconChevronRight.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cs), "../../icons/IconChevronUp.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ct), "../../icons/IconCircledCheck.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cu), "../../icons/IconClock.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cv), "../../icons/IconClosedEnvelope.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cw), "../../icons/IconCloudUpload.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cx), "../../icons/IconConnectorConfluence.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cy), "../../icons/IconConnectorFigma.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cz), "../../icons/IconConnectorFreshDesk.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cA), "../../icons/IconConnectorGitHub.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cB), "../../icons/IconConnectorJira.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cC), "../../icons/IconConnectorLinear.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cD), "../../icons/IconConnectorNotion.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cE), "../../icons/IconConnectorSlack.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cF), "../../icons/IconConnectorZapier.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cG), "../../icons/IconCopy.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cH), "../../icons/IconCross.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cI), "../../icons/IconCrossCircleFill.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cJ), "../../icons/IconCrossInCircle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cK), "../../icons/IconCurrentTick.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cL), "../../icons/IconDataUpload.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cM), "../../icons/IconDelete.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cN), "../../icons/IconDeleteFillRed.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cO), "../../icons/IconDialingPhone.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cP), "../../icons/IconDisabledAlert.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cQ), "../../icons/IconDocumentation.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cR), "../../icons/IconDownload.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cS), "../../icons/IconDribbble.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cT), "../../icons/IconDropdownArrow.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cU), "../../icons/IconEdit.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cV), "../../icons/IconEditLinePath.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cW), "../../icons/IconEllipse.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cX), "../../icons/IconExcelThumbnail.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cY), "../../icons/IconExpand.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.cZ), "../../icons/IconEye.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.c_), "../../icons/IconFacebook.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.c$), "../../icons/IconFigma.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d0), "../../icons/IconFile.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d1), "../../icons/IconFileSystem.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d2), "../../icons/IconFileUpload.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d3), "../../icons/IconFilter.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d4), "../../icons/IconFolder.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d5), "../../icons/IconFreddyHub.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d6), "../../icons/IconFreddyHubLogo.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d7), "../../icons/IconFreddyHubNewLogo.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d8), "../../icons/IconFreddyHubTitle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d9), "../../icons/IconFreddySmall.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.da), "../../icons/IconGlobExpand.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.db), "../../icons/IconGlobe.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dc), "../../icons/IconGoogle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dd), "../../icons/IconHollowCircle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.de), "../../icons/IconHome.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.df), "../../icons/IconInfoRounded.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dg), "../../icons/IconInvalidInvoice.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dh), "../../icons/IconInvoice.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.di), "../../icons/IconInvoiceSwitch.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dj), "../../icons/IconLapTableBottom.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dk), "../../icons/IconLense.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dl), "../../icons/IconLightCross.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dm), "../../icons/IconLink04.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dn), "../../icons/IconLoadingError.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dp), "../../icons/IconLoadingOrg.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dq), "../../icons/IconLocationWithCircleIn.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dr), "../../icons/IconLock.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ds), "../../icons/IconMarketPlace.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dt), "../../icons/IconMaximize.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.du), "../../icons/IconMicrophone.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dv), "../../icons/IconMutedMicrophone.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dw), "../../icons/IconNewNotification.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dx), "../../icons/IconNewTab.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dy), "../../icons/IconNotification.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dz), "../../icons/IconOpenBook.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dA), "../../icons/IconPaperAirPlane.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dB), "../../icons/IconPauseCircle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dC), "../../icons/IconPdfThumbnail.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dD), "../../icons/IconPenEdit.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dE), "../../icons/IconPencil.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dF), "../../icons/IconPeopleHub.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dG), "../../icons/IconPersonCircle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dH), "../../icons/IconPits.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dI), "../../icons/IconPlay.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dJ), "../../icons/IconPlus.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dK), "../../icons/IconPolygonDown.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dL), "../../icons/IconPresentation.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dM), "../../icons/IconProgressBase.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dN), "../../icons/IconProgressComplete.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dO), "../../icons/IconProgressGoing.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dP), "../../icons/IconPurpose.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dQ), "../../icons/IconPurseCircleFill.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dR), "../../icons/IconQuestion.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dS), "../../icons/IconRadio.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dT), "../../icons/IconRadioFill.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dU), "../../icons/IconRefresh.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dV), "../../icons/IconRevertedTriangle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dW), "../../icons/IconRobotScreen.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dX), "../../icons/IconRoundTick.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dY), "../../icons/IconSearch.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.dZ), "../../icons/IconSearchOptimised.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d_), "../../icons/IconSectionHide.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.d$), "../../icons/IconSend.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e0), "../../icons/IconSettings.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e1), "../../icons/IconSettingsBold.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e2), "../../icons/IconSize.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e3), "../../icons/IconSliderKnobs.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e4), "../../icons/IconSortIdle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e5), "../../icons/IconSparkle.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e6), "../../icons/IconSpotlio.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e7), "../../icons/IconStar.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e8), "../../icons/IconStatistics.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.e9), "../../icons/IconStopChat.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ea), "../../icons/IconStreamLineHub.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.eb), "../../icons/IconStreamLineHubNewLogo.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ec), "../../icons/IconSun.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ed), "../../icons/IconSwap.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ee), "../../icons/IconText.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ef), "../../icons/IconTextThumbnail.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.eg), "../../icons/IconThinDocument.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.eh), "../../icons/IconThinFile.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ei), "../../icons/IconThumbsDown.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ej), "../../icons/IconTick.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ek), "../../icons/IconUser.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.el), "../../icons/IconVerticalDots.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.em), "../../icons/IconVideoCamera.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.en), "../../icons/IconWarningOctal.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.eo), "../../icons/IconX.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.ep), "../../icons/IconZip.vue": () => import("./icons-BAyOBzYf.js").then((t) => t.eq) }), `../../icons/${h}.vue`, 4).catch(() => ({ template: "<div></div>" }))
3768
- ) : null : null, g = M(() => o(e.leadingIcon)), b = M(() => o(e.trailingIcon)), x = M(() => ({
3767
+ ) : null : null, g = M(() => o(e.leadingIcon)), _ = M(() => o(e.trailingIcon)), $ = M(() => ({
3769
3768
  [`freddy-plugins-input-field--${e.size}`]: !0,
3770
3769
  [`freddy-plugins-input-field--${e.colorStyle}`]: !0,
3771
3770
  "freddy-plugins-input-field--destructive": e.destructive,
3772
3771
  "freddy-plugins-input-field--focused": e.state === "focused",
3773
3772
  "freddy-plugins-input-field--disabled": e.state === "disabled",
3774
3773
  "freddy-plugins-input-field--with-leading": !!g.value,
3775
- "freddy-plugins-input-field--with-trailing": !!b.value
3776
- })), V = (h) => {
3774
+ "freddy-plugins-input-field--with-trailing": !!_.value
3775
+ })), L = (h) => {
3777
3776
  const t = h.target;
3778
3777
  u.value = t.value, i("update:modelValue", t.value), i("input", t.value);
3779
3778
  }, v = (h) => {
3780
3779
  i("focus", h);
3781
3780
  }, T = (h) => {
3782
3781
  i("blur", h);
3783
- }, k = (h) => {
3782
+ }, b = (h) => {
3784
3783
  i("keydown", h);
3785
3784
  }, I = (h) => {
3786
3785
  i("leading-icon-click", h);
@@ -3819,11 +3818,11 @@ const ue = new Ps(
3819
3818
  placeholder: h.placeholder,
3820
3819
  disabled: h.disabled,
3821
3820
  readonly: h.readonly,
3822
- class: F(["freddy-plugins-input-field", x.value]),
3823
- onInput: V,
3821
+ class: F(["freddy-plugins-input-field", $.value]),
3822
+ onInput: L,
3824
3823
  onFocus: v,
3825
3824
  onBlur: T,
3826
- onKeydown: k
3825
+ onKeydown: b
3827
3826
  }, null, 42, ya), [
3828
3827
  [Ke, u.value]
3829
3828
  ]),
@@ -3833,12 +3832,12 @@ const ue = new Ps(
3833
3832
  placement: "top"
3834
3833
  }, {
3835
3834
  default: Z(() => [
3836
- (c(), E(K(b.value), {
3835
+ (c(), E(K(_.value), {
3837
3836
  class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${h.colorStyle}`])
3838
3837
  }, null, 8, ["class"]))
3839
3838
  ]),
3840
3839
  _: 1
3841
- }, 8, ["text"])) : b.value ? (c(), E(K(b.value), {
3840
+ }, 8, ["text"])) : _.value ? (c(), E(K(_.value), {
3842
3841
  key: 2,
3843
3842
  class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${h.colorStyle}`]),
3844
3843
  onClick: C
@@ -3904,7 +3903,7 @@ const ue = new Ps(
3904
3903
  },
3905
3904
  emits: ["update:countryCode", "update:phoneNumber", "country-change", "update:modelValue", "input", "focus", "blur", "keydown", "leading-icon-click", "trailing-icon-click", "trailing-button-click", "update:currency", "update:amount", "currency-change", "update:protocol", "update:url", "protocol-change", "update:cardNumber", "card-type-detected", "update:tags", "tag-added", "tag-removed", "max-tags-reached", "copy-success", "copy-error"],
3906
3905
  setup(y, { expose: m, emit: s }) {
3907
- const e = y, i = s, l = A(null), r = A(null), u = A(e.phoneNumber || ""), d = A(!1), o = A(e.countryCode || "US"), g = [
3906
+ const e = y, i = s, l = D(null), r = D(null), u = D(e.phoneNumber || ""), d = D(!1), o = D(e.countryCode || "US"), g = [
3908
3907
  { code: "US", name: "United States", flag: "🇺🇸", dialCode: "+1" },
3909
3908
  { code: "GB", name: "United Kingdom", flag: "🇬🇧", dialCode: "+44" },
3910
3909
  { code: "CA", name: "Canada", flag: "🇨🇦", dialCode: "+1" },
@@ -3915,7 +3914,7 @@ const ue = new Ps(
3915
3914
  { code: "ES", name: "Spain", flag: "🇪🇸", dialCode: "+34" },
3916
3915
  { code: "JP", name: "Japan", flag: "🇯🇵", dialCode: "+81" },
3917
3916
  { code: "IN", name: "India", flag: "🇮🇳", dialCode: "+91" }
3918
- ], b = M(() => ({
3917
+ ], _ = M(() => ({
3919
3918
  size: e.size,
3920
3919
  colorStyle: e.colorStyle,
3921
3920
  state: e.state,
@@ -3924,20 +3923,20 @@ const ue = new Ps(
3924
3923
  label: e.label,
3925
3924
  hintText: e.hintText,
3926
3925
  disabled: e.disabled
3927
- })), x = M(
3926
+ })), $ = M(
3928
3927
  () => e.countryOptions || g
3929
- ), V = M(() => x.value.find(
3928
+ ), L = M(() => $.value.find(
3930
3929
  (t) => t.code === o.value
3931
- ) || x.value[0]), v = () => {
3930
+ ) || $.value[0]), v = () => {
3932
3931
  e.disabled || (d.value = !d.value);
3933
3932
  }, T = (t) => {
3934
3933
  o.value = t.code, i("update:countryCode", t.code), i("country-change", t);
3935
3934
  const p = u.value.replace(/^\+\d+\s*/, ""), S = `${t.dialCode} ${p}`.trim();
3936
3935
  u.value = S, i("update:phoneNumber", S), i("update:modelValue", S), d.value = !1;
3937
- }, k = (t) => {
3936
+ }, b = (t) => {
3938
3937
  const p = t.target;
3939
3938
  u.value = p.value;
3940
- const S = `${V.value.dialCode} ${p.value}`;
3939
+ const S = `${L.value.dialCode} ${p.value}`;
3941
3940
  i("update:modelValue", S), i("update:phoneNumber", p.value), i("input", S);
3942
3941
  }, I = (t) => {
3943
3942
  i("focus", t);
@@ -3962,12 +3961,12 @@ const ue = new Ps(
3962
3961
  }
3963
3962
  ), me(() => {
3964
3963
  document.addEventListener("click", h);
3965
- }), De(() => {
3964
+ }), Ae(() => {
3966
3965
  document.removeEventListener("click", h);
3967
3966
  }), m({
3968
3967
  focus: P,
3969
3968
  inputRef: l
3970
- }), (t, p) => (c(), E(ke, se(b.value, {
3969
+ }), (t, p) => (c(), E(ke, se(_.value, {
3971
3970
  onFocus: I,
3972
3971
  onBlur: C
3973
3972
  }), {
@@ -3978,21 +3977,21 @@ const ue = new Ps(
3978
3977
  class: F(["freddy-plugins-figma-dropdown", `freddy-plugins-figma-dropdown--${t.colorStyle}`]),
3979
3978
  onClick: v
3980
3979
  }, [
3981
- a("span", ba, B(V.value.code), 1),
3982
- L(D(ae), { class: "freddy-plugins-figma-dropdown-icon" })
3980
+ a("span", ba, B(L.value.code), 1),
3981
+ V(A(ae), { class: "freddy-plugins-figma-dropdown-icon" })
3983
3982
  ], 2),
3984
3983
  d.value ? (c(), f("div", {
3985
3984
  key: 0,
3986
3985
  class: F(["freddy-plugins-country-options-dropdown", `freddy-plugins-country-options-dropdown--${t.colorStyle}`])
3987
3986
  }, [
3988
- (c(!0), f(O, null, j(x.value, (_) => (c(), f("div", {
3989
- key: _.code,
3987
+ (c(!0), f(O, null, j($.value, (k) => (c(), f("div", {
3988
+ key: k.code,
3990
3989
  class: F(["freddy-plugins-country-option", `freddy-plugins-country-option--${t.colorStyle}`]),
3991
- onClick: (n) => T(_)
3990
+ onClick: (n) => T(k)
3992
3991
  }, [
3993
- a("span", _a, B(_.flag), 1),
3994
- a("span", Ca, B(_.name), 1),
3995
- a("span", wa, B(_.dialCode), 1)
3992
+ a("span", _a, B(k.flag), 1),
3993
+ a("span", Ca, B(k.name), 1),
3994
+ a("span", wa, B(k.dialCode), 1)
3996
3995
  ], 10, ka))), 128))
3997
3996
  ], 2)) : w("", !0),
3998
3997
  a("div", {
@@ -4002,13 +4001,13 @@ const ue = new Ps(
4002
4001
  id: (S = r.value) == null ? void 0 : S.inputId,
4003
4002
  ref_key: "inputRef",
4004
4003
  ref: l,
4005
- "onUpdate:modelValue": p[0] || (p[0] = (_) => u.value = _),
4004
+ "onUpdate:modelValue": p[0] || (p[0] = (k) => u.value = k),
4006
4005
  type: "tel",
4007
4006
  placeholder: t.placeholder,
4008
4007
  disabled: t.disabled,
4009
4008
  readonly: t.readonly,
4010
4009
  class: "freddy-plugins-figma-phone-input",
4011
- onInput: k,
4010
+ onInput: b,
4012
4011
  onFocus: I,
4013
4012
  onBlur: C
4014
4013
  }, null, 40, Sa), [
@@ -4021,10 +4020,10 @@ const ue = new Ps(
4021
4020
  placement: "top"
4022
4021
  }, {
4023
4022
  default: Z(() => [
4024
- L(D(fe), { class: "freddy-plugins-figma-help-icon-svg" })
4023
+ V(A(fe), { class: "freddy-plugins-figma-help-icon-svg" })
4025
4024
  ]),
4026
4025
  _: 1
4027
- }, 8, ["text"])) : (c(), E(D(fe), {
4026
+ }, 8, ["text"])) : (c(), E(A(fe), {
4028
4027
  key: 1,
4029
4028
  class: "freddy-plugins-figma-help-icon-svg"
4030
4029
  }))
@@ -4142,17 +4141,17 @@ const ue = new Ps(
4142
4141
  e("input", h);
4143
4142
  }, g = (h) => {
4144
4143
  e("focus", h);
4145
- }, b = (h) => {
4144
+ }, _ = (h) => {
4146
4145
  e("blur", h);
4147
- }, x = (h) => {
4146
+ }, $ = (h) => {
4148
4147
  e("keydown", h);
4149
- }, V = (h) => {
4148
+ }, L = (h) => {
4150
4149
  e("leading-icon-click", h);
4151
4150
  }, v = (h) => {
4152
4151
  e("trailing-icon-click", h);
4153
4152
  }, T = (h) => {
4154
4153
  e("update:countryCode", h);
4155
- }, k = (h) => {
4154
+ }, b = (h) => {
4156
4155
  e("update:phoneNumber", h);
4157
4156
  }, I = (h) => {
4158
4157
  e("country-change", h);
@@ -4164,30 +4163,30 @@ const ue = new Ps(
4164
4163
  return (h, t) => i.value === "phone" ? (c(), E(xa, se({ key: 0 }, l.value, {
4165
4164
  "onUpdate:modelValue": d,
4166
4165
  "onUpdate:countryCode": T,
4167
- "onUpdate:phoneNumber": k,
4166
+ "onUpdate:phoneNumber": b,
4168
4167
  onCountryChange: I,
4169
4168
  onInput: o,
4170
4169
  onFocus: g,
4171
- onBlur: b
4170
+ onBlur: _
4172
4171
  }), null, 16)) : i.value === "card" ? (c(), E(va, se({ key: 1 }, r.value, {
4173
4172
  "onUpdate:modelValue": d,
4174
4173
  "onUpdate:cardNumber": C,
4175
4174
  onCardTypeDetected: P,
4176
4175
  onInput: o,
4177
4176
  onFocus: g,
4178
- onBlur: b,
4177
+ onBlur: _,
4179
4178
  onTrailingIconClick: v
4180
4179
  }), null, 16)) : (c(), E(Ia, se({ key: 2 }, u.value, {
4181
4180
  "onUpdate:modelValue": d,
4182
4181
  onInput: o,
4183
4182
  onFocus: g,
4184
- onBlur: b,
4185
- onKeydown: x,
4186
- onLeadingIconClick: V,
4183
+ onBlur: _,
4184
+ onKeydown: $,
4185
+ onLeadingIconClick: L,
4187
4186
  onTrailingIconClick: v
4188
4187
  }), null, 16));
4189
4188
  }
4190
- }), hc = /* @__PURE__ */ H(Pa, [["__scopeId", "data-v-5a761e6c"]]), Aa = {
4189
+ }), hc = /* @__PURE__ */ H(Pa, [["__scopeId", "data-v-5a761e6c"]]), Da = {
4191
4190
  name: "ModalBox",
4192
4191
  props: {
4193
4192
  isVisible: {
@@ -4204,14 +4203,14 @@ const ue = new Ps(
4204
4203
  this.$emit("close");
4205
4204
  }
4206
4205
  }
4207
- }, Da = {
4206
+ }, Aa = {
4208
4207
  key: 0,
4209
4208
  class: "fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"
4210
4209
  }, Fa = { class: "flex justify-center items-center" }, Ba = { class: "freddy-plugins-modal-header" }, Ma = { class: "freddy-plugins-modal-body" }, La = { class: "freddy-plugins-modal-footer" };
4211
4210
  function Va(y, m, s, e, i, l) {
4212
4211
  return c(), E(le, { name: "modal" }, {
4213
4212
  default: Z(() => [
4214
- s.isVisible ? (c(), f("div", Da, [
4213
+ s.isVisible ? (c(), f("div", Aa, [
4215
4214
  a("div", Fa, [
4216
4215
  a("div", {
4217
4216
  class: F({
@@ -4235,7 +4234,7 @@ function Va(y, m, s, e, i, l) {
4235
4234
  _: 3
4236
4235
  });
4237
4236
  }
4238
- const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4237
+ const Ea = /* @__PURE__ */ H(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
4239
4238
  __name: "InstructionsModal",
4240
4239
  props: {
4241
4240
  isVisible: {
@@ -4311,7 +4310,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4311
4310
  class: "freddy-plugins-modal-close",
4312
4311
  onClick: i
4313
4312
  }, [
4314
- L(Me, { class: "freddy-plugins-modal-close-icon" })
4313
+ V(Me, { class: "freddy-plugins-modal-close-icon" })
4315
4314
  ])
4316
4315
  ]),
4317
4316
  a("div", za, [
@@ -4341,7 +4340,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4341
4340
  },
4342
4341
  emits: ["update:searchInput", "clear"],
4343
4342
  setup(y, { emit: m }) {
4344
- const s = Ge(), e = A(null), i = A(null), l = A(null), r = m, u = () => {
4343
+ const s = Ge(), e = D(null), i = D(null), l = D(null), r = m, u = () => {
4345
4344
  var g;
4346
4345
  (g = i.value) == null || g.focus();
4347
4346
  }, d = () => {
@@ -4349,22 +4348,22 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4349
4348
  }, o = () => {
4350
4349
  r("clear");
4351
4350
  };
4352
- return (g, b) => {
4353
- var x;
4351
+ return (g, _) => {
4352
+ var $;
4354
4353
  return c(), f("div", {
4355
4354
  ref_key: "dropdownRef",
4356
4355
  ref: l,
4357
- class: F(["freddy-search-wrapper", D(s).class]),
4356
+ class: F(["freddy-search-wrapper", A(s).class]),
4358
4357
  onClick: u
4359
4358
  }, [
4360
- L(D(Ct), { class: "freddy-search-icon" }),
4359
+ V(A(Ct), { class: "freddy-search-icon" }),
4361
4360
  Q(a("input", {
4362
4361
  type: "text",
4363
4362
  id: "search-input",
4364
4363
  class: "freddy-search-input",
4365
4364
  ref_key: "searchInput",
4366
4365
  ref: i,
4367
- "onUpdate:modelValue": b[0] || (b[0] = (V) => e.value = V),
4366
+ "onUpdate:modelValue": _[0] || (_[0] = (L) => e.value = L),
4368
4367
  onInput: d,
4369
4368
  placeholder: g.placeholder,
4370
4369
  maxlength: g.maxCharLimit
@@ -4375,7 +4374,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4375
4374
  key: 0,
4376
4375
  class: "freddy-search-spinner"
4377
4376
  })) : w("", !0),
4378
- g.showCloseButton && !g.showLoaderForSearch && ((x = e.value) != null && x.length) ? (c(), E(D(ee), {
4377
+ g.showCloseButton && !g.showLoaderForSearch && (($ = e.value) != null && $.length) ? (c(), E(A(ee), {
4379
4378
  key: 1,
4380
4379
  class: "freddy-search-close",
4381
4380
  onClick: o
@@ -4403,24 +4402,24 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4403
4402
  },
4404
4403
  emits: ["select"],
4405
4404
  setup(y, { emit: m }) {
4406
- const s = y, e = m, i = A(!1), l = A(""), r = A(null), u = M(() => !s.searchable || !l.value ? s.options : s.options.filter(
4407
- (x) => x.value.toLowerCase().includes(l.value.toLowerCase())
4405
+ const s = y, e = m, i = D(!1), l = D(""), r = D(null), u = M(() => !s.searchable || !l.value ? s.options : s.options.filter(
4406
+ ($) => $.value.toLowerCase().includes(l.value.toLowerCase())
4408
4407
  )), d = () => {
4409
4408
  i.value = !i.value, i.value || (l.value = "");
4410
4409
  }, o = () => {
4411
4410
  i.value = !1, l.value = "";
4412
- }, g = (x) => {
4413
- r.value = x, e("select", x), o();
4414
- }, b = (x) => {
4415
- x.target.closest(".model-dropdown-wrapper") || o();
4411
+ }, g = ($) => {
4412
+ r.value = $, e("select", $), o();
4413
+ }, _ = ($) => {
4414
+ $.target.closest(".model-dropdown-wrapper") || o();
4416
4415
  };
4417
- return G(i, (x) => {
4418
- x ? setTimeout(() => {
4419
- document.addEventListener("click", b);
4420
- }, 0) : document.removeEventListener("click", b);
4421
- }), De(() => {
4422
- document.removeEventListener("click", b);
4423
- }), (x, V) => {
4416
+ return G(i, ($) => {
4417
+ $ ? setTimeout(() => {
4418
+ document.addEventListener("click", _);
4419
+ }, 0) : document.removeEventListener("click", _);
4420
+ }), Ae(() => {
4421
+ document.removeEventListener("click", _);
4422
+ }), ($, L) => {
4424
4423
  var v, T;
4425
4424
  return c(), f("div", {
4426
4425
  class: "model-dropdown-wrapper",
@@ -4428,7 +4427,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4428
4427
  }, [
4429
4428
  a("div", {
4430
4429
  class: F(["model-dropdown-trigger", [
4431
- `model-dropdown-trigger--${x.size}`,
4430
+ `model-dropdown-trigger--${$.size}`,
4432
4431
  { "model-dropdown-trigger--open": i.value }
4433
4432
  ]]),
4434
4433
  onClick: d
@@ -4440,7 +4439,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4440
4439
  alt: r.value.value,
4441
4440
  class: "model-dropdown-selected-image"
4442
4441
  }, null, 8, Ka)) : w("", !0),
4443
- a("span", Ga, B(((T = r.value) == null ? void 0 : T.value) || x.modelPlaceholder), 1)
4442
+ a("span", Ga, B(((T = r.value) == null ? void 0 : T.value) || $.modelPlaceholder), 1)
4444
4443
  ]),
4445
4444
  i.value ? (c(), E(Be, {
4446
4445
  key: 1,
@@ -4451,31 +4450,31 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4451
4450
  }))
4452
4451
  ], 2),
4453
4452
  i.value ? (c(), f("div", Za, [
4454
- x.searchable ? (c(), f("div", qa, [
4455
- L(_e, {
4453
+ $.searchable ? (c(), f("div", qa, [
4454
+ V(_e, {
4456
4455
  modelValue: l.value,
4457
- "onUpdate:modelValue": V[0] || (V[0] = (k) => l.value = k),
4458
- placeholder: x.searchPlaceholder,
4456
+ "onUpdate:modelValue": L[0] || (L[0] = (b) => l.value = b),
4457
+ placeholder: $.searchPlaceholder,
4459
4458
  showCloseButton: !0
4460
4459
  }, null, 8, ["modelValue", "placeholder"])
4461
4460
  ])) : w("", !0),
4462
4461
  a("ul", Wa, [
4463
- (c(!0), f(O, null, j(u.value, (k) => {
4462
+ (c(!0), f(O, null, j(u.value, (b) => {
4464
4463
  var I;
4465
4464
  return c(), f("li", {
4466
- key: k.id,
4465
+ key: b.id,
4467
4466
  class: F(["model-dropdown-option", {
4468
- "model-dropdown-option--selected": ((I = r.value) == null ? void 0 : I.id) === k.id
4467
+ "model-dropdown-option--selected": ((I = r.value) == null ? void 0 : I.id) === b.id
4469
4468
  }]),
4470
- onClick: (C) => g(k)
4469
+ onClick: (C) => g(b)
4471
4470
  }, [
4472
- k.imageSrc ? (c(), f("img", {
4471
+ b.imageSrc ? (c(), f("img", {
4473
4472
  key: 0,
4474
- src: k.imageSrc,
4475
- alt: k.value,
4473
+ src: b.imageSrc,
4474
+ alt: b.value,
4476
4475
  class: "model-dropdown-option-image"
4477
4476
  }, null, 8, Qa)) : w("", !0),
4478
- a("span", Ya, B(k.value), 1)
4477
+ a("span", Ya, B(b.value), 1)
4479
4478
  ], 10, Ja);
4480
4479
  }), 128)),
4481
4480
  u.value.length === 0 ? (c(), f("li", Xa, " No providers found ")) : w("", !0)
@@ -4635,24 +4634,24 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4635
4634
  },
4636
4635
  setup(y) {
4637
4636
  const m = y, { type: s, hasHeader: e = !1, count: i = 5 } = m;
4638
- return (l, r) => D(s) === "card" ? (c(), f("div", ll, [
4639
- D(e) ? (c(), f("div", cl)) : w("", !0),
4637
+ return (l, r) => A(s) === "card" ? (c(), f("div", ll, [
4638
+ A(e) ? (c(), f("div", cl)) : w("", !0),
4640
4639
  r[0] || (r[0] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4" }, null, -1)),
4641
4640
  r[1] || (r[1] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1)),
4642
4641
  r[2] || (r[2] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6" }, null, -1))
4643
- ])) : D(s) === "paragraph" ? (c(), f("div", rl, [
4644
- D(e) ? (c(), f("div", dl)) : w("", !0),
4642
+ ])) : A(s) === "paragraph" ? (c(), f("div", rl, [
4643
+ A(e) ? (c(), f("div", dl)) : w("", !0),
4645
4644
  r[3] || (r[3] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1)),
4646
4645
  r[4] || (r[4] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6" }, null, -1)),
4647
4646
  r[5] || (r[5] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4" }, null, -1))
4648
- ])) : D(s) === "single-box" ? (c(), f("div", ul, [
4649
- D(e) ? (c(), f("div", pl)) : w("", !0),
4647
+ ])) : A(s) === "single-box" ? (c(), f("div", ul, [
4648
+ A(e) ? (c(), f("div", pl)) : w("", !0),
4650
4649
  r[6] || (r[6] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1))
4651
- ])) : D(s) === "table" ? (c(), f("div", hl, [
4652
- D(e) ? (c(), f("div", fl)) : w("", !0),
4650
+ ])) : A(s) === "table" ? (c(), f("div", hl, [
4651
+ A(e) ? (c(), f("div", fl)) : w("", !0),
4653
4652
  a("table", ml, [
4654
4653
  a("tbody", null, [
4655
- (c(!0), f(O, null, j(D(i), (u) => (c(), f("tr", { key: u }, [...r[7] || (r[7] = [
4654
+ (c(!0), f(O, null, j(A(i), (u) => (c(), f("tr", { key: u }, [...r[7] || (r[7] = [
4656
4655
  a("td", { class: "td-padding" }, [
4657
4656
  a("div", { class: "skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full" })
4658
4657
  ], -1),
@@ -4694,109 +4693,109 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4694
4693
  },
4695
4694
  emits: ["update:modelValue", "update:rangeValue"],
4696
4695
  setup(y, { emit: m }) {
4697
- const s = y, e = m, i = A(!1), l = A(null), r = M(() => {
4696
+ const s = y, e = m, i = D(!1), l = D(null), r = M(() => {
4698
4697
  var I;
4699
- const k = ((I = s.step.toString().split(".")[1]) == null ? void 0 : I.length) || 0;
4700
- return k > 0 ? s.modelValue.toFixed(k) : Math.round(s.modelValue);
4698
+ const b = ((I = s.step.toString().split(".")[1]) == null ? void 0 : I.length) || 0;
4699
+ return b > 0 ? s.modelValue.toFixed(b) : Math.round(s.modelValue);
4701
4700
  }), u = M(() => {
4702
- const k = s.max - s.min, I = s.modelValue - s.min;
4703
- return Math.min(100, Math.max(0, I / k * 100));
4704
- }), d = M(() => u.value), o = (k) => {
4705
- const I = Math.round(k / s.step) * s.step;
4701
+ const b = s.max - s.min, I = s.modelValue - s.min;
4702
+ return Math.min(100, Math.max(0, I / b * 100));
4703
+ }), d = M(() => u.value), o = (b) => {
4704
+ const I = Math.round(b / s.step) * s.step;
4706
4705
  return Math.min(s.max, Math.max(s.min, I));
4707
- }, g = (k) => {
4706
+ }, g = (b) => {
4708
4707
  if (!l.value) return s.modelValue;
4709
4708
  const I = l.value.getBoundingClientRect(), C = Math.max(
4710
4709
  0,
4711
- Math.min(1, (k - I.left) / I.width)
4710
+ Math.min(1, (b - I.left) / I.width)
4712
4711
  ), P = s.min + C * (s.max - s.min), h = Math.round(P / s.step) * s.step;
4713
4712
  return Math.min(s.max, Math.max(s.min, h));
4714
- }, b = (k) => {
4715
- const I = o(k);
4713
+ }, _ = (b) => {
4714
+ const I = o(b);
4716
4715
  I !== s.modelValue && e("update:modelValue", I);
4717
- }, x = (k) => {
4716
+ }, $ = (b) => {
4718
4717
  if (s.disabled) return;
4719
- k.preventDefault(), k.stopPropagation(), i.value = !0;
4718
+ b.preventDefault(), b.stopPropagation(), i.value = !0;
4720
4719
  const I = (P) => {
4721
4720
  if (!i.value) return;
4722
4721
  P.preventDefault();
4723
4722
  const h = g(P.clientX);
4724
- b(h);
4723
+ _(h);
4725
4724
  }, C = () => {
4726
4725
  i.value = !1, document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", C);
4727
4726
  };
4728
4727
  document.addEventListener("mousemove", I), document.addEventListener("mouseup", C);
4729
- }, V = (k) => {
4728
+ }, L = (b) => {
4730
4729
  if (s.disabled) return;
4731
- k.preventDefault(), k.stopPropagation(), i.value = !0;
4730
+ b.preventDefault(), b.stopPropagation(), i.value = !0;
4732
4731
  const I = (P) => {
4733
- !i.value || !P.touches[0] || (P.preventDefault(), b(g(P.touches[0].clientX)));
4732
+ !i.value || !P.touches[0] || (P.preventDefault(), _(g(P.touches[0].clientX)));
4734
4733
  }, C = () => {
4735
4734
  i.value = !1, document.removeEventListener("touchmove", I), document.removeEventListener("touchend", C);
4736
4735
  };
4737
4736
  document.addEventListener("touchmove", I), document.addEventListener("touchend", C);
4738
- }, v = (k) => {
4737
+ }, v = (b) => {
4739
4738
  if (s.disabled || i.value) return;
4740
- k.preventDefault(), k.stopPropagation();
4741
- const I = g(k.clientX);
4742
- b(I);
4743
- }, T = (k) => {
4739
+ b.preventDefault(), b.stopPropagation();
4740
+ const I = g(b.clientX);
4741
+ _(I);
4742
+ }, T = (b) => {
4744
4743
  if (s.disabled) return;
4745
4744
  let I = s.modelValue;
4746
- switch (k.key) {
4745
+ switch (b.key) {
4747
4746
  case "ArrowLeft":
4748
4747
  case "ArrowDown":
4749
- k.preventDefault(), I = s.modelValue - s.step;
4748
+ b.preventDefault(), I = s.modelValue - s.step;
4750
4749
  break;
4751
4750
  case "ArrowRight":
4752
4751
  case "ArrowUp":
4753
- k.preventDefault(), I = s.modelValue + s.step;
4752
+ b.preventDefault(), I = s.modelValue + s.step;
4754
4753
  break;
4755
4754
  case "Home":
4756
- k.preventDefault(), I = s.min;
4755
+ b.preventDefault(), I = s.min;
4757
4756
  break;
4758
4757
  case "End":
4759
- k.preventDefault(), I = s.max;
4758
+ b.preventDefault(), I = s.max;
4760
4759
  break;
4761
4760
  case "PageDown":
4762
- k.preventDefault(), I = s.modelValue - s.step * 10;
4761
+ b.preventDefault(), I = s.modelValue - s.step * 10;
4763
4762
  break;
4764
4763
  case "PageUp":
4765
- k.preventDefault(), I = s.modelValue + s.step * 10;
4764
+ b.preventDefault(), I = s.modelValue + s.step * 10;
4766
4765
  break;
4767
4766
  default:
4768
4767
  return;
4769
4768
  }
4770
- b(I);
4769
+ _(I);
4771
4770
  };
4772
- return (k, I) => (c(), f("div", vl, [
4773
- k.label || k.showValue ? (c(), f("div", yl, [
4774
- k.label ? (c(), f("div", gl, [
4775
- a("span", Il, B(k.label), 1),
4776
- k.tooltip ? (c(), E(re, {
4771
+ return (b, I) => (c(), f("div", vl, [
4772
+ b.label || b.showValue ? (c(), f("div", yl, [
4773
+ b.label ? (c(), f("div", gl, [
4774
+ a("span", Il, B(b.label), 1),
4775
+ b.tooltip ? (c(), E(re, {
4777
4776
  key: 0,
4778
- text: k.tooltip,
4779
- placement: k.tooltipPlacement
4777
+ text: b.tooltip,
4778
+ placement: b.tooltipPlacement
4780
4779
  }, {
4781
4780
  default: Z(() => [
4782
- L(ce, { class: "freddy-plugins-slider-tooltip-icon" })
4781
+ V(ce, { class: "freddy-plugins-slider-tooltip-icon" })
4783
4782
  ]),
4784
4783
  _: 1
4785
4784
  }, 8, ["text", "placement"])) : w("", !0)
4786
4785
  ])) : w("", !0),
4787
- k.showValue ? (c(), f("div", bl, B(r.value), 1)) : w("", !0)
4786
+ b.showValue ? (c(), f("div", bl, B(r.value), 1)) : w("", !0)
4788
4787
  ])) : w("", !0),
4789
4788
  a("div", {
4790
- class: F(["freddy-plugins-slider-track-container", { "freddy-plugins-slider-disabled": k.disabled }]),
4789
+ class: F(["freddy-plugins-slider-track-container", { "freddy-plugins-slider-disabled": b.disabled }]),
4791
4790
  onClick: v,
4792
4791
  onKeydown: T,
4793
- tabindex: k.disabled ? -1 : 0,
4792
+ tabindex: b.disabled ? -1 : 0,
4794
4793
  role: "slider",
4795
- "aria-valuemin": k.min,
4796
- "aria-valuemax": k.max,
4797
- "aria-valuenow": k.modelValue,
4798
- "aria-disabled": k.disabled,
4799
- "aria-label": k.label || "Slider"
4794
+ "aria-valuemin": b.min,
4795
+ "aria-valuemax": b.max,
4796
+ "aria-valuenow": b.modelValue,
4797
+ "aria-disabled": b.disabled,
4798
+ "aria-label": b.label || "Slider"
4800
4799
  }, [
4801
4800
  a("div", {
4802
4801
  ref_key: "sliderTrack",
@@ -4810,14 +4809,14 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4810
4809
  a("div", {
4811
4810
  class: F(["freddy-plugins-slider-thumb", {
4812
4811
  "freddy-plugins-slider-thumb-dragging": i.value,
4813
- "freddy-plugins-slider-thumb-disabled": k.disabled
4812
+ "freddy-plugins-slider-thumb-disabled": b.disabled
4814
4813
  }]),
4815
4814
  style: oe({ left: d.value + "%" }),
4816
- onMousedown: x,
4817
- onTouchstart: V
4815
+ onMousedown: $,
4816
+ onTouchstart: L
4818
4817
  }, null, 38)
4819
4818
  ], 42, kl),
4820
- k.hint ? (c(), f("p", _l, B(k.hint), 1)) : w("", !0)
4819
+ b.hint ? (c(), f("p", _l, B(b.hint), 1)) : w("", !0)
4821
4820
  ]));
4822
4821
  }
4823
4822
  }), _c = /* @__PURE__ */ H(Cl, [["__scopeId", "data-v-156893ff"]]), wl = { class: "freddy-plugins-snackbar-content" }, Sl = { class: "freddy-plugins-snackbar-left" }, Tl = { class: "freddy-plugins-snackbar-text" }, $l = ["innerHTML"], xl = ["innerHTML"], Pl = ["onClick"], Cc = /* @__PURE__ */ N({
@@ -4852,7 +4851,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4852
4851
  return (l, r) => (c(), f("div", {
4853
4852
  class: F(["freddy-plugins-snackbar-container", `freddy-plugins-snackbar-container--${e.value}`])
4854
4853
  }, [
4855
- (c(!0), f(O, null, j(D(m), (u, d) => (c(), f("div", {
4854
+ (c(!0), f(O, null, j(A(m), (u, d) => (c(), f("div", {
4856
4855
  key: d,
4857
4856
  class: F(["freddy-plugins-snackbar", `freddy-plugins-snackbar--${u.toastType}`])
4858
4857
  }, [
@@ -4880,13 +4879,13 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4880
4879
  class: "freddy-plugins-snackbar-close-btn",
4881
4880
  onClick: (o) => i(d)
4882
4881
  }, [
4883
- L(Me, { class: "freddy-plugins-snackbar-close-icon" })
4882
+ V(Me, { class: "freddy-plugins-snackbar-close-icon" })
4884
4883
  ], 8, Pl)
4885
4884
  ])
4886
4885
  ], 2))), 128))
4887
4886
  ], 2));
4888
4887
  }
4889
- }), Al = { class: "freddy-plugins-switch-slot__header" }, Dl = {
4888
+ }), Dl = { class: "freddy-plugins-switch-slot__header" }, Al = {
4890
4889
  key: 0,
4891
4890
  class: "freddy-plugins-switch-slot__label-section"
4892
4891
  }, Fl = {
@@ -4921,8 +4920,8 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4921
4920
  "freddy-plugins-switch-slot--disabled": l.disabled
4922
4921
  }])
4923
4922
  }, [
4924
- a("div", Al, [
4925
- l.label || l.tooltip ? (c(), f("div", Dl, [
4923
+ a("div", Dl, [
4924
+ l.label || l.tooltip ? (c(), f("div", Al, [
4926
4925
  l.label ? (c(), f("span", Fl, B(l.label), 1)) : w("", !0),
4927
4926
  l.tooltip ? (c(), E(re, {
4928
4927
  key: 1,
@@ -4930,7 +4929,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4930
4929
  placement: l.tooltipPlacement
4931
4930
  }, {
4932
4931
  default: Z(() => [
4933
- L(ce, { class: "freddy-plugins-switch-slot__tooltip-icon" })
4932
+ V(ce, { class: "freddy-plugins-switch-slot__tooltip-icon" })
4934
4933
  ]),
4935
4934
  _: 1
4936
4935
  }, 8, ["text", "placement"])) : w("", !0)
@@ -4968,7 +4967,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
4968
4967
  },
4969
4968
  emits: ["tabSwitch"],
4970
4969
  setup(y, { emit: m }) {
4971
- const s = y, e = m, i = A(s.currentTab), l = (r) => {
4970
+ const s = y, e = m, i = D(s.currentTab), l = (r) => {
4972
4971
  i.value !== r.id && (i.value = r.id, e("tabSwitch", r.id));
4973
4972
  };
4974
4973
  return (r, u) => (c(), f("div", El, [
@@ -5006,7 +5005,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
5006
5005
  m.value.splice(r, 1);
5007
5006
  };
5008
5007
  return (r, u) => (c(), f("div", Rl, [
5009
- (c(!0), f(O, null, j(D(m), (d, o) => (c(), f("div", {
5008
+ (c(!0), f(O, null, j(A(m), (d, o) => (c(), f("div", {
5010
5009
  key: o,
5011
5010
  class: F(["freddy-plugins-toast-item", e(d.toastType)])
5012
5011
  }, [
@@ -5018,7 +5017,7 @@ const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
5018
5017
  class: "freddy-plugins-toast-close-button",
5019
5018
  onClick: (g) => l(o)
5020
5019
  }, [
5021
- L(D(ee), { class: "freddy-plugins-toast-close-icon" })
5020
+ V(A(ee), { class: "freddy-plugins-toast-close-icon" })
5022
5021
  ], 8, Hl)
5023
5022
  ], 2))), 128))
5024
5023
  ]));
@@ -5029,13 +5028,13 @@ function $c(y = {}) {
5029
5028
  logErrors: m = !0,
5030
5029
  throwOnCritical: s = !1,
5031
5030
  maxRetries: e = 3
5032
- } = y, i = A([]), l = A(!1), r = A(0), u = M(() => i.value.length > 0), d = M(() => i.value[i.value.length - 1] || null), o = (T, k) => {
5031
+ } = y, i = D([]), l = D(!1), r = D(0), u = M(() => i.value.length > 0), d = M(() => i.value[i.value.length - 1] || null), o = (T, b) => {
5033
5032
  const I = {
5034
5033
  message: T instanceof Error ? T.message : String(T),
5035
5034
  stack: T instanceof Error ? T.stack : void 0,
5036
5035
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
5037
5036
  context: {
5038
- ...k,
5037
+ ...b,
5039
5038
  retryCount: r.value,
5040
5039
  userAgent: typeof navigator < "u" ? navigator.userAgent : "Unknown"
5041
5040
  }
@@ -5043,22 +5042,22 @@ function $c(y = {}) {
5043
5042
  if (T && typeof T == "object" && "status" in T && (I.code = T.status), i.value.push(I), m && process.env.NODE_ENV, s && v(T))
5044
5043
  throw T;
5045
5044
  return I;
5046
- }, g = async (T, k) => {
5045
+ }, g = async (T, b) => {
5047
5046
  l.value = !0;
5048
5047
  try {
5049
5048
  const I = await T();
5050
5049
  return r.value = 0, { data: I, error: null };
5051
5050
  } catch (I) {
5052
- return { data: null, error: o(I, k) };
5051
+ return { data: null, error: o(I, b) };
5053
5052
  } finally {
5054
5053
  l.value = !1;
5055
5054
  }
5056
- }, b = async (T, k) => {
5055
+ }, _ = async (T, b) => {
5057
5056
  let I = null;
5058
5057
  for (let C = 1; C <= e; C++) {
5059
5058
  r.value = C - 1;
5060
5059
  const P = await g(T, {
5061
- ...k,
5060
+ ...b,
5062
5061
  attempt: C,
5063
5062
  maxRetries: e
5064
5063
  });
@@ -5071,9 +5070,9 @@ function $c(y = {}) {
5071
5070
  );
5072
5071
  }
5073
5072
  return { data: null, error: I };
5074
- }, x = () => {
5073
+ }, $ = () => {
5075
5074
  i.value = [], r.value = 0;
5076
- }, V = (T) => {
5075
+ }, L = (T) => {
5077
5076
  T >= 0 && T < i.value.length && i.value.splice(T, 1);
5078
5077
  }, v = (T) => {
5079
5078
  if (T instanceof Error) {
@@ -5094,9 +5093,9 @@ function $c(y = {}) {
5094
5093
  // Methods
5095
5094
  handleError: o,
5096
5095
  handleAsync: g,
5097
- retryAsync: b,
5098
- clearErrors: x,
5099
- clearError: V,
5096
+ retryAsync: _,
5097
+ clearErrors: $,
5098
+ clearError: L,
5100
5099
  isCriticalError: v
5101
5100
  };
5102
5101
  }
@@ -5105,7 +5104,7 @@ function xc(y = {}) {
5105
5104
  enableMetrics: m = process.env.NODE_ENV === "development",
5106
5105
  trackMemory: s = !1,
5107
5106
  sampleRate: e = 0.1
5108
- } = y, i = A([]), l = A(!1), r = A(0), u = M(() => i.value.length === 0 ? 0 : i.value.reduce((h, t) => h + t.renderTime, 0) / i.value.length), d = M(() => i.value.length === 0 ? 0 : Math.max(...i.value.map((P) => P.renderTime))), o = (P) => {
5107
+ } = y, i = D([]), l = D(!1), r = D(0), u = M(() => i.value.length === 0 ? 0 : i.value.reduce((h, t) => h + t.renderTime, 0) / i.value.length), d = M(() => i.value.length === 0 ? 0 : Math.max(...i.value.map((P) => P.renderTime))), o = (P) => {
5109
5108
  !m || Math.random() > e || (l.value = !0, r.value = performance.now(), P && process.env.NODE_ENV);
5110
5109
  }, g = (P, h = 1) => {
5111
5110
  if (!l.value || !m) return;
@@ -5115,11 +5114,11 @@ function xc(y = {}) {
5115
5114
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
5116
5115
  };
5117
5116
  if (s && "memory" in performance) {
5118
- const _ = performance.memory;
5119
- S.memoryUsage = _.usedJSHeapSize;
5117
+ const k = performance.memory;
5118
+ S.memoryUsage = k.usedJSHeapSize;
5120
5119
  }
5121
5120
  return i.value.push(S), i.value.length > 100 && i.value.shift(), l.value = !1, P && process.env.NODE_ENV, S;
5122
- }, b = async (P, h) => {
5121
+ }, _ = async (P, h) => {
5123
5122
  o(h);
5124
5123
  try {
5125
5124
  const t = await P(), p = g(h) || {
@@ -5131,12 +5130,12 @@ function xc(y = {}) {
5131
5130
  } catch (t) {
5132
5131
  throw g(h), t;
5133
5132
  }
5134
- }, x = (P, h) => {
5133
+ }, $ = (P, h) => {
5135
5134
  let t;
5136
5135
  return (...p) => {
5137
5136
  clearTimeout(t), t = setTimeout(() => P(...p), h);
5138
5137
  };
5139
- }, V = (P, h) => {
5138
+ }, L = (P, h) => {
5140
5139
  let t;
5141
5140
  return (...p) => {
5142
5141
  t || (P(...p), t = !0, setTimeout(() => t = !1, h));
@@ -5152,10 +5151,10 @@ function xc(y = {}) {
5152
5151
  throw p;
5153
5152
  }
5154
5153
  });
5155
- })), k = (P, h, t) => {
5154
+ })), b = (P, h, t) => {
5156
5155
  const p = Math.ceil(t / h), S = Math.ceil(p * 0.5);
5157
- return (_) => {
5158
- const n = Math.max(0, Math.floor(_ / h) - S), W = Math.min(P.length, n + p + S * 2);
5156
+ return (k) => {
5157
+ const n = Math.max(0, Math.floor(k / h) - S), W = Math.min(P.length, n + p + S * 2);
5159
5158
  return {
5160
5159
  visibleItems: P.slice(n, W),
5161
5160
  startIndex: n,
@@ -5185,13 +5184,13 @@ function xc(y = {}) {
5185
5184
  // Performance tracking
5186
5185
  startTracking: o,
5187
5186
  endTracking: g,
5188
- measureAsync: b,
5187
+ measureAsync: _,
5189
5188
  // Optimization utilities
5190
- debounce: x,
5191
- throttle: V,
5189
+ debounce: $,
5190
+ throttle: L,
5192
5191
  scheduleWork: v,
5193
5192
  lazyLoad: T,
5194
- createVirtualList: k,
5193
+ createVirtualList: b,
5195
5194
  // Management
5196
5195
  clearMetrics: I,
5197
5196
  getSummary: C
@@ -5211,7 +5210,7 @@ export {
5211
5210
  va as CardInput,
5212
5211
  tc as ChooseAssistantAvatar,
5213
5212
  lc as CodeBlock,
5214
- Dc as ConfirmationModal,
5213
+ Ac as ConfirmationModal,
5215
5214
  cc as CustomCheckbox,
5216
5215
  Ia as DefaultInput,
5217
5216
  Fc as DeleteConfirmationModal,
@@ -5293,8 +5292,8 @@ export {
5293
5292
  xr as IconGlobExpand,
5294
5293
  Pr as IconGlobe,
5295
5294
  pt as IconGoogle,
5296
- Ar as IconHollowCircle,
5297
- Dr as IconHome,
5295
+ Dr as IconHollowCircle,
5296
+ Ar as IconHome,
5298
5297
  ce as IconInfoRounded,
5299
5298
  Fr as IconInvalidInvoice,
5300
5299
  Br as IconInvoice,
@@ -5365,8 +5364,8 @@ export {
5365
5364
  mt as IconThumbsDown,
5366
5365
  he as IconTick,
5367
5366
  Pd as IconUser,
5368
- Ad as IconVerticalDots,
5369
- Dd as IconVideoCamera,
5367
+ Dd as IconVerticalDots,
5368
+ Ad as IconVideoCamera,
5370
5369
  Fd as IconWarningOctal,
5371
5370
  rt as IconX,
5372
5371
  Bd as IconZip,