@aitronos/freddy-plugins 0.4.68 → 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/freddy-plugins.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +491 -492
- package/dist/index.js.map +1 -1
- package/dist/src/components/TooltipV2.vue.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
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
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 = {
|
|
@@ -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
|
-
|
|
382
|
+
V(A(Ze), { class: "freddy-assistant-field__lock-icon" })
|
|
383
383
|
])) : w("", !0)
|
|
384
384
|
])
|
|
385
385
|
])
|
|
@@ -411,7 +411,7 @@ const xt = [
|
|
|
411
411
|
assistantId: o.assistantId,
|
|
412
412
|
isDefault: o.isDefault,
|
|
413
413
|
isSelected: o.isSelected,
|
|
414
|
-
onAssistantFieldClick: (
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
540
|
+
V(he, { class: "freddy-avatar-choosing__check-icon-svg" })
|
|
541
541
|
])) : w("", !0)
|
|
542
542
|
], 2));
|
|
543
543
|
}
|
|
@@ -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, (
|
|
579
|
-
key:
|
|
580
|
-
imageUrl:
|
|
581
|
-
isSelected: l.value ===
|
|
582
|
-
altText:
|
|
583
|
-
onClick: (
|
|
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, [
|
|
@@ -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,
|
|
630
|
-
if (typeof
|
|
631
|
-
const n =
|
|
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 = D(null), d = D(null), o = D(null), g = D(null),
|
|
644
|
-
M(() =>
|
|
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(
|
|
647
|
+
return (S = p.name) == null ? void 0 : S.toLowerCase().includes($.value.toLowerCase());
|
|
648
648
|
}
|
|
649
649
|
) : l.value);
|
|
650
|
-
const
|
|
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
|
-
},
|
|
655
|
-
|
|
654
|
+
}, b = () => {
|
|
655
|
+
L.value && r("save", {
|
|
656
656
|
selectedIconId: u.value,
|
|
657
657
|
selectedImageUrl: d.value,
|
|
658
658
|
selectedFaceId: g.value,
|
|
659
|
-
selectedVoiceId:
|
|
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
|
-
|
|
664
|
+
_.value = t.id, r("voiceSelect", t);
|
|
665
665
|
}, P = (t) => {
|
|
666
|
-
|
|
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:
|
|
675
|
+
selectedVoiceId: _,
|
|
676
676
|
resetSelections: () => {
|
|
677
|
-
u.value = null, d.value = null, o.value = null, g.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
|
-
|
|
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
|
-
|
|
705
|
+
V(A(Je), { class: "freddy-choose-assistant-avatar__upload-icon" })
|
|
706
706
|
], 8, Co),
|
|
707
|
-
|
|
708
|
-
searchInput:
|
|
707
|
+
V(A(_e), {
|
|
708
|
+
searchInput: $.value,
|
|
709
709
|
"onUpdate:searchInput": [
|
|
710
|
-
p[0] || (p[0] = (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,
|
|
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 ${
|
|
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 ${
|
|
729
|
+
alt: `Image ${k + 1}`,
|
|
730
730
|
class: "freddy-choose-assistant-avatar__icon-image"
|
|
731
731
|
}, null, 8, $o)
|
|
732
732
|
])
|
|
@@ -741,10 +741,10 @@ const xt = [
|
|
|
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
743
|
a("div", Do, [
|
|
744
|
-
(c(!0), f(O, null, j(t.voices, (S,
|
|
745
|
-
key: S.id ||
|
|
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:
|
|
747
|
+
isSelected: _.value === S.id,
|
|
748
748
|
onClick: (n) => C(S)
|
|
749
749
|
}, null, 8, ["voiceName", "isSelected", "onClick"]))), 128))
|
|
750
750
|
])
|
|
@@ -756,8 +756,8 @@ const xt = [
|
|
|
756
756
|
}, B(t.cancelButtonText), 1),
|
|
757
757
|
a("button", {
|
|
758
758
|
class: "freddy-choose-assistant-avatar__save-button",
|
|
759
|
-
onClick:
|
|
760
|
-
disabled: !
|
|
759
|
+
onClick: b,
|
|
760
|
+
disabled: !L.value
|
|
761
761
|
}, B(t.saveButtonText), 9, Fo)
|
|
762
762
|
])
|
|
763
763
|
])
|
|
@@ -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, (
|
|
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 ===
|
|
812
|
+
{ "freddy-plugin-menu-button--active": u.value === _.id },
|
|
813
813
|
{ "freddy-plugin-menu-button--full-width": s.fullWidth }
|
|
814
814
|
]),
|
|
815
|
-
key:
|
|
816
|
-
onClick: (
|
|
817
|
-
"aria-selected": u.value ===
|
|
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((
|
|
822
|
-
z(U((
|
|
821
|
+
z((L) => d(_), ["enter"]),
|
|
822
|
+
z(U((L) => d(_), ["prevent"]), ["space"])
|
|
823
823
|
]
|
|
824
824
|
}, [
|
|
825
|
-
a("span", Mo, B(
|
|
826
|
-
|
|
827
|
-
r.value === "bottom-dash" && u.value ===
|
|
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 ===
|
|
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));
|
|
@@ -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
|
-
}),
|
|
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
|
-
}),
|
|
905
|
+
}), $ = () => {
|
|
906
906
|
e("search", i.value);
|
|
907
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
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:
|
|
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:
|
|
951
|
+
onClick: L,
|
|
952
952
|
onKeydown: [
|
|
953
|
-
z(
|
|
954
|
-
z(U(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1059
|
+
V(A(pe), { "aria-hidden": "true" })
|
|
1060
1060
|
], 40, rn),
|
|
1061
1061
|
a("button", {
|
|
1062
1062
|
class: "icon-btn",
|
|
1063
|
-
onClick: (S) =>
|
|
1063
|
+
onClick: (S) => b(p),
|
|
1064
1064
|
onKeydown: [
|
|
1065
|
-
z((S) =>
|
|
1066
|
-
z(U((S) =>
|
|
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
|
-
|
|
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(
|
|
1092
|
+
(c(!0), f(O, null, j(_.value, (p) => (c(), f("button", {
|
|
1093
1093
|
key: p,
|
|
1094
1094
|
class: F([
|
|
1095
1095
|
"page-number",
|
|
@@ -1148,17 +1148,17 @@ const xt = [
|
|
|
1148
1148
|
}, [
|
|
1149
1149
|
a("div", yn, [
|
|
1150
1150
|
a("div", gn, [
|
|
1151
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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)
|
|
@@ -1253,11 +1253,11 @@ const xt = [
|
|
|
1253
1253
|
setup(y, { emit: m }) {
|
|
1254
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),
|
|
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
|
-
},
|
|
1258
|
+
}, $ = () => {
|
|
1259
1259
|
l.value = r.value.length, e("showMore");
|
|
1260
|
-
},
|
|
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, [
|
|
@@ -1272,15 +1272,15 @@ const xt = [
|
|
|
1272
1272
|
a("div", Bn, [
|
|
1273
1273
|
T[2] || (T[2] = J(" Vector Stores ", -1)),
|
|
1274
1274
|
a("div", Mn, [
|
|
1275
|
-
|
|
1275
|
+
V(A(fe), { class: "freddy-vector-section__help-icon-svg" })
|
|
1276
1276
|
])
|
|
1277
1277
|
]),
|
|
1278
1278
|
a("div", Ln, [
|
|
1279
|
-
|
|
1279
|
+
V(A(_e), {
|
|
1280
1280
|
searchInput: i.value,
|
|
1281
1281
|
"onUpdate:searchInput": [
|
|
1282
|
-
T[0] || (T[0] = (
|
|
1283
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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, (
|
|
1303
|
-
key:
|
|
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:
|
|
1310
|
+
onClick: $
|
|
1311
1311
|
}, [
|
|
1312
1312
|
a("span", Hn, "Show " + B(g.value) + " more", 1),
|
|
1313
|
-
|
|
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:
|
|
1322
|
+
onClick: _
|
|
1323
1323
|
}, [
|
|
1324
|
-
|
|
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
|
])
|
|
@@ -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, (
|
|
1366
|
-
key:
|
|
1367
|
-
voiceName:
|
|
1368
|
-
isSelected: l.value ===
|
|
1369
|
-
onClick: (
|
|
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
|
-
|
|
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
|
-
|
|
1413
|
+
V(A(he), { class: "freddy-voice-selection__check-icon-svg" })
|
|
1414
1414
|
])) : (c(), f("div", ss))
|
|
1415
1415
|
])
|
|
1416
1416
|
], 2));
|
|
@@ -1450,7 +1450,7 @@ const xt = [
|
|
|
1450
1450
|
tabindex: "0"
|
|
1451
1451
|
}, [
|
|
1452
1452
|
q(u.$slots, "default"),
|
|
1453
|
-
|
|
1453
|
+
V(le, { name: "fade" }, {
|
|
1454
1454
|
default: Z(() => [
|
|
1455
1455
|
m.value ? (c(), f("div", {
|
|
1456
1456
|
key: 0,
|
|
@@ -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
|
-
},
|
|
1567
|
+
}, _ = (v) => {
|
|
1568
1568
|
!s.disabled && !s.loading && r("rightIconClick", v);
|
|
1569
|
-
},
|
|
1569
|
+
}, $ = () => {
|
|
1570
1570
|
u.value = !0;
|
|
1571
|
-
},
|
|
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:
|
|
1588
|
-
onMouseleave:
|
|
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(
|
|
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:
|
|
1627
|
-
onMouseleave:
|
|
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(
|
|
1651
|
+
onClick: U(_, ["stop"])
|
|
1652
1652
|
}, null, 8, ["class"])) : w("", !0)
|
|
1653
1653
|
], 64))
|
|
1654
1654
|
], 42, ds));
|
|
@@ -1809,26 +1809,26 @@ 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,
|
|
1813
|
-
s.disabled || e("click", g,
|
|
1812
|
+
], o = (g, _) => {
|
|
1813
|
+
s.disabled || e("click", g, _);
|
|
1814
1814
|
};
|
|
1815
|
-
return (g,
|
|
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, (
|
|
1820
|
-
key:
|
|
1821
|
-
class: F(d(
|
|
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(
|
|
1823
|
+
"aria-label": g.iconOnly ? u($) : void 0,
|
|
1824
1824
|
role: "button",
|
|
1825
|
-
onClick: (
|
|
1825
|
+
onClick: (L) => o($, L)
|
|
1826
1826
|
}, [
|
|
1827
|
-
(c(), E(K(r(
|
|
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(
|
|
1831
|
+
g.iconOnly ? w("", !0) : (c(), f("span", ms, B(u($)), 1))
|
|
1832
1832
|
], 10, fs))), 128))
|
|
1833
1833
|
], 6));
|
|
1834
1834
|
}
|
|
@@ -1962,59 +1962,58 @@ const xt = [
|
|
|
1962
1962
|
hideDelay: { default: 0 }
|
|
1963
1963
|
},
|
|
1964
1964
|
setup(y) {
|
|
1965
|
-
const m = y, s = D(!1), e = D(!1), i = D(null);
|
|
1966
|
-
let
|
|
1967
|
-
const
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
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
|
-
},
|
|
1976
|
-
|
|
1975
|
+
}, g = () => {
|
|
1976
|
+
r && (clearTimeout(r), r = null), u = setTimeout(() => {
|
|
1977
1977
|
s.value = !1;
|
|
1978
1978
|
}, m.hideDelay);
|
|
1979
|
-
},
|
|
1980
|
-
|
|
1981
|
-
},
|
|
1982
|
-
|
|
1979
|
+
}, _ = () => {
|
|
1980
|
+
o();
|
|
1981
|
+
}, $ = () => {
|
|
1982
|
+
g();
|
|
1983
1983
|
};
|
|
1984
|
-
return (
|
|
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:
|
|
1989
|
-
onMouseleave:
|
|
1990
|
-
onFocusin:
|
|
1991
|
-
onFocusout:
|
|
1988
|
+
onMouseenter: o,
|
|
1989
|
+
onMouseleave: g,
|
|
1990
|
+
onFocusin: _,
|
|
1991
|
+
onFocusout: $,
|
|
1992
1992
|
tabindex: "0"
|
|
1993
1993
|
}, [
|
|
1994
|
-
q(
|
|
1995
|
-
|
|
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
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
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":
|
|
2003
|
+
"aria-label": L.title
|
|
2006
2004
|
}, [
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
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:
|
|
2011
|
+
innerHTML: L.title
|
|
2013
2012
|
}, null, 8, Ss)) : w("", !0),
|
|
2014
|
-
|
|
2013
|
+
L.description ? (c(), f("div", {
|
|
2015
2014
|
key: 1,
|
|
2016
2015
|
class: "freddy-plugins-tooltip-v2-description",
|
|
2017
|
-
innerHTML:
|
|
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-
|
|
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
|
|
2297
|
-
return
|
|
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
|
};
|
|
@@ -2378,7 +2377,7 @@ const ue = new Ps(
|
|
|
2378
2377
|
e.openaiApiKey && ue.setApiKey(e.openaiApiKey), G(
|
|
2379
2378
|
() => e.messages,
|
|
2380
2379
|
(t) => {
|
|
2381
|
-
t && (d.value = t,
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
2419
|
+
d.value.push(k), b();
|
|
2421
2420
|
return;
|
|
2422
2421
|
}
|
|
2423
2422
|
o.value = !0;
|
|
2424
2423
|
try {
|
|
2425
|
-
const
|
|
2424
|
+
const k = await ue.askAI(
|
|
2426
2425
|
t,
|
|
2427
2426
|
e.textBoxContent
|
|
2428
2427
|
);
|
|
2429
|
-
if (
|
|
2428
|
+
if (k.success && k.content) {
|
|
2430
2429
|
const n = {
|
|
2431
2430
|
id: Date.now().toString(),
|
|
2432
|
-
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:
|
|
2438
|
-
title:
|
|
2439
|
-
description:
|
|
2440
|
-
added: ((p =
|
|
2441
|
-
removed: ((S =
|
|
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:
|
|
2445
|
-
action:
|
|
2443
|
+
improvedText: k.improvedText || k.content,
|
|
2444
|
+
action: k.action
|
|
2446
2445
|
}
|
|
2447
2446
|
} : void 0
|
|
2448
2447
|
};
|
|
2449
|
-
d.value.push(n),
|
|
2448
|
+
d.value.push(n), b();
|
|
2450
2449
|
} else {
|
|
2451
2450
|
const n = {
|
|
2452
2451
|
id: Date.now().toString(),
|
|
2453
|
-
content:
|
|
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),
|
|
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),
|
|
2465
|
+
d.value.push(n), b();
|
|
2467
2466
|
} finally {
|
|
2468
2467
|
o.value = !1;
|
|
2469
2468
|
}
|
|
2470
|
-
},
|
|
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(),
|
|
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
|
-
},
|
|
2486
|
+
}, b = () => {
|
|
2488
2487
|
te(() => {
|
|
2489
2488
|
r.value && (r.value.scrollTop = r.value.scrollHeight);
|
|
2490
2489
|
});
|
|
@@ -2502,19 +2501,19 @@ const ue = new Ps(
|
|
|
2502
2501
|
timestamp: /* @__PURE__ */ new Date(),
|
|
2503
2502
|
changes: p
|
|
2504
2503
|
};
|
|
2505
|
-
d.value.push(S),
|
|
2504
|
+
d.value.push(S), b();
|
|
2506
2505
|
},
|
|
2507
2506
|
addAIResponseFromApi: (t) => {
|
|
2508
|
-
const p = gt(t), S = It(p),
|
|
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),
|
|
2516
|
+
d.value.push(n), b();
|
|
2518
2517
|
}
|
|
2519
2518
|
}), (t, p) => (c(), f("div", Ds, [
|
|
2520
2519
|
a("div", {
|
|
@@ -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
|
-
|
|
2533
|
+
V(A(Se), { class: "freddy-plugins-action-icon" })
|
|
2535
2534
|
]),
|
|
2536
2535
|
a("button", Vs, [
|
|
2537
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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: (
|
|
2563
|
+
onClick: (k) => I(S)
|
|
2565
2564
|
}, [
|
|
2566
|
-
|
|
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: (
|
|
2570
|
+
onClick: (k) => C(S)
|
|
2572
2571
|
}, [
|
|
2573
|
-
|
|
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
|
-
|
|
2580
|
+
V(A(ft), { class: "freddy-plugins-action-icon" })
|
|
2582
2581
|
]),
|
|
2583
2582
|
a("button", ei, [
|
|
2584
|
-
|
|
2583
|
+
V(A(Se), { class: "freddy-plugins-action-icon" })
|
|
2585
2584
|
]),
|
|
2586
2585
|
a("button", ti, [
|
|
2587
|
-
|
|
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
|
-
|
|
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(
|
|
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:
|
|
2622
|
+
onClick: L
|
|
2624
2623
|
}, [
|
|
2625
|
-
|
|
2624
|
+
V(A(yt), { class: "freddy-plugins-send-icon" })
|
|
2626
2625
|
], 8, ai)
|
|
2627
2626
|
])
|
|
2628
2627
|
]));
|
|
@@ -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
|
-
},
|
|
2679
|
+
}, _ = () => {
|
|
2681
2680
|
l.value = !0, e("toggleAI", l.value), e("askAI", i.value);
|
|
2682
|
-
},
|
|
2683
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
2740
|
+
onClick: _
|
|
2742
2741
|
}, [
|
|
2743
|
-
|
|
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
|
-
|
|
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:
|
|
2769
|
-
onAcceptChanges:
|
|
2767
|
+
onSend: $,
|
|
2768
|
+
onAcceptChanges: L,
|
|
2770
2769
|
onDenyChanges: v,
|
|
2771
2770
|
onTextReplacement: T,
|
|
2772
|
-
onTextCompletion:
|
|
2771
|
+
onTextCompletion: b
|
|
2773
2772
|
}, null, 8, ["messages", "openai-api-key", "text-box-content"])
|
|
2774
2773
|
])) : w("", !0)
|
|
2775
2774
|
], 2)
|
|
@@ -2823,68 +2822,68 @@ const ue = new Ps(
|
|
|
2823
2822
|
setup(y, { expose: m, emit: s }) {
|
|
2824
2823
|
const e = y, i = s, l = D(null), r = D(
|
|
2825
2824
|
null
|
|
2826
|
-
), u = D(e.modelValue), d = D(""), o = D(!1), g = D("expand"),
|
|
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
|
|
2832
|
+
const L = () => {
|
|
2834
2833
|
i("update:modelValue", u.value), i("input", u.value);
|
|
2835
|
-
}, v = (
|
|
2836
|
-
|
|
2837
|
-
}, T = (
|
|
2838
|
-
|
|
2839
|
-
},
|
|
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
|
-
(
|
|
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
|
-
(
|
|
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
|
-
(
|
|
2854
|
-
},
|
|
2855
|
-
i("remove-tag",
|
|
2856
|
-
}, n = (
|
|
2857
|
-
(
|
|
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 =
|
|
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
|
-
(
|
|
2869
|
+
var x;
|
|
2870
|
+
(x = l.value) == null || x.focus();
|
|
2872
2871
|
}
|
|
2873
|
-
}), (
|
|
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":
|
|
2879
|
+
"freddy-plugins-textarea-label--underlined": x.showUnderlines
|
|
2881
2880
|
}])
|
|
2882
|
-
}, B(
|
|
2883
|
-
|
|
2884
|
-
|
|
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:
|
|
2887
|
-
description:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2914
|
+
V(A(Fe), { class: "freddy-plugins-textarea-ai-icon" })
|
|
2916
2915
|
], 32)) : w("", !0)
|
|
2917
2916
|
]),
|
|
2918
2917
|
a("div", Ti, [
|
|
2919
|
-
|
|
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":
|
|
2926
|
-
"freddy-plugins-textarea-input--disabled":
|
|
2927
|
-
"freddy-plugins-textarea-input--focused":
|
|
2928
|
-
"freddy-plugins-textarea-input--with-tags":
|
|
2929
|
-
"freddy-plugins-textarea-input--tags-only":
|
|
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:
|
|
2932
|
-
disabled:
|
|
2933
|
-
readonly:
|
|
2934
|
-
onInput:
|
|
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:
|
|
2936
|
+
onKeydown: b,
|
|
2938
2937
|
onClick: I
|
|
2939
2938
|
}, null, 42, $i)), [
|
|
2940
2939
|
[Y, u.value]
|
|
2941
2940
|
]),
|
|
2942
|
-
|
|
2941
|
+
x.diffMode ? (c(), f("div", xi, [
|
|
2943
2942
|
a("div", Pi, [
|
|
2944
|
-
a("div", Di, B(
|
|
2945
|
-
a("div", Ai, B(
|
|
2943
|
+
a("div", Di, B(x.oldText), 1),
|
|
2944
|
+
a("div", Ai, B(x.newText), 1)
|
|
2946
2945
|
])
|
|
2947
2946
|
])) : w("", !0),
|
|
2948
|
-
|
|
2947
|
+
x.showTags && x.tags.length > 0 ? (c(), f("div", Fi, [
|
|
2949
2948
|
a("div", Bi, [
|
|
2950
|
-
(c(!0), f(O, null, j(
|
|
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":
|
|
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) =>
|
|
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
|
-
|
|
2968
|
+
V(A(ee), { class: "freddy-plugins-textarea-tag-close-icon" })
|
|
2970
2969
|
], 40, Li)
|
|
2971
2970
|
]))), 128))
|
|
2972
2971
|
]),
|
|
2973
|
-
|
|
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":
|
|
2975
|
+
"freddy-plugins-textarea-add-tags--underlined": x.showUnderlines
|
|
2977
2976
|
}])
|
|
2978
|
-
}, B(
|
|
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
|
-
|
|
2987
|
+
V(A(_t), { class: "freddy-plugins-textarea-expand-icon" })
|
|
2989
2988
|
], 32)
|
|
2990
2989
|
])
|
|
2991
2990
|
]),
|
|
2992
|
-
|
|
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":
|
|
2994
|
+
"freddy-plugins-textarea-hint-text--underlined": x.showUnderlines
|
|
2996
2995
|
}])
|
|
2997
|
-
}, B(
|
|
2998
|
-
|
|
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":
|
|
3000
|
+
"freddy-plugins-textarea-error-text--underlined": x.showUnderlines
|
|
3002
3001
|
}])
|
|
3003
|
-
}, B(
|
|
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:
|
|
3010
|
-
description:
|
|
3008
|
+
title: x.modalTitle,
|
|
3009
|
+
description: x.modalDescription,
|
|
3011
3010
|
"initial-content": u.value,
|
|
3012
|
-
"openai-api-key":
|
|
3013
|
-
"openai-model":
|
|
3014
|
-
"openai-organization":
|
|
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:
|
|
3026
|
-
description:
|
|
3024
|
+
title: x.modalTitle,
|
|
3025
|
+
description: x.modalDescription,
|
|
3027
3026
|
"initial-content": u.value,
|
|
3028
3027
|
"openai-api-key": "",
|
|
3029
|
-
"openai-model":
|
|
3028
|
+
"openai-model": x.openaiModel,
|
|
3030
3029
|
"openai-organization": "",
|
|
3031
3030
|
onClose: W,
|
|
3032
3031
|
onSave: X,
|
|
@@ -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
|
|
3084
|
+
const _ = (p) => {
|
|
3086
3085
|
l.value = p, i("update:modelValue", p);
|
|
3087
|
-
},
|
|
3086
|
+
}, $ = (p) => {
|
|
3088
3087
|
i("input", p);
|
|
3089
|
-
},
|
|
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
|
-
},
|
|
3094
|
+
}, b = (p) => {
|
|
3096
3095
|
i("expand", p);
|
|
3097
3096
|
}, I = (p) => {
|
|
3098
3097
|
r.value.splice(p, 1), i("remove-tag", p);
|
|
@@ -3109,8 +3108,8 @@ 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] = (
|
|
3113
|
-
|
|
3111
|
+
S[0] || (S[0] = (k) => l.value = k),
|
|
3112
|
+
_
|
|
3114
3113
|
],
|
|
3115
3114
|
label: p.label,
|
|
3116
3115
|
placeholder: p.placeholder,
|
|
@@ -3139,11 +3138,11 @@ const ue = new Ps(
|
|
|
3139
3138
|
"old-text": p.oldText,
|
|
3140
3139
|
"new-text": p.newText,
|
|
3141
3140
|
"tags-only": p.tagsOnly,
|
|
3142
|
-
onInput:
|
|
3143
|
-
onFocus:
|
|
3141
|
+
onInput: $,
|
|
3142
|
+
onFocus: L,
|
|
3144
3143
|
onBlur: v,
|
|
3145
3144
|
onAskAi: T,
|
|
3146
|
-
onExpand:
|
|
3145
|
+
onExpand: b,
|
|
3147
3146
|
onRemoveTag: I,
|
|
3148
3147
|
onTooltipClick: C,
|
|
3149
3148
|
onAddTag: P,
|
|
@@ -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
|
|
3177
|
-
const
|
|
3178
|
-
|
|
3179
|
-
const
|
|
3180
|
-
return
|
|
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] = (
|
|
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
|
|
@@ -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),
|
|
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
|
-
},
|
|
3296
|
+
}, $ = () => {
|
|
3298
3297
|
i.value = !1, l.value = "";
|
|
3299
|
-
},
|
|
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 ||
|
|
3305
|
-
},
|
|
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") ||
|
|
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(
|
|
3318
|
+
onKeydown: z($, ["esc"]),
|
|
3320
3319
|
tabindex: "0"
|
|
3321
3320
|
}, [
|
|
3322
|
-
|
|
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:
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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 = D(["", "", "", ""]), o = D([]), g = M(() => d.value.every((I) => I !== "")),
|
|
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
|
-
},
|
|
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",
|
|
3442
|
-
},
|
|
3440
|
+
g.value && u("verify", _.value);
|
|
3441
|
+
}, b = () => {
|
|
3443
3442
|
u("resend");
|
|
3444
3443
|
};
|
|
3445
3444
|
return me(() => {
|
|
@@ -3472,8 +3471,8 @@ const ue = new Ps(
|
|
|
3472
3471
|
type: "text",
|
|
3473
3472
|
maxlength: "1",
|
|
3474
3473
|
class: F(["code-input", `code-input--${A(e)}`]),
|
|
3475
|
-
onInput: (t) =>
|
|
3476
|
-
onKeydown: (t) =>
|
|
3474
|
+
onInput: (t) => $(h, t),
|
|
3475
|
+
onKeydown: (t) => L(h, t),
|
|
3477
3476
|
onPaste: v,
|
|
3478
3477
|
disabled: A(i),
|
|
3479
3478
|
autocomplete: "one-time-code"
|
|
@@ -3483,7 +3482,7 @@ const ue = new Ps(
|
|
|
3483
3482
|
])
|
|
3484
3483
|
]),
|
|
3485
3484
|
a("div", sa, [
|
|
3486
|
-
|
|
3485
|
+
V(Ne, {
|
|
3487
3486
|
type: "submit",
|
|
3488
3487
|
label: A(i) ? "Verifying..." : "Verify Code",
|
|
3489
3488
|
hierarchy: "primary",
|
|
@@ -3501,7 +3500,7 @@ const ue = new Ps(
|
|
|
3501
3500
|
type: "button",
|
|
3502
3501
|
class: "resend-button",
|
|
3503
3502
|
disabled: A(r) > 0,
|
|
3504
|
-
onClick:
|
|
3503
|
+
onClick: b
|
|
3505
3504
|
}, B(A(r) > 0 ? `Resend in ${A(r)}s` : "Resend code"), 9, ca)
|
|
3506
3505
|
])
|
|
3507
3506
|
])
|
|
@@ -3626,9 +3625,9 @@ const ue = new Ps(
|
|
|
3626
3625
|
label: e.label,
|
|
3627
3626
|
hintText: e.hintText,
|
|
3628
3627
|
disabled: e.disabled
|
|
3629
|
-
})),
|
|
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,
|
|
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":
|
|
3647
|
-
})), T = (
|
|
3648
|
-
const n =
|
|
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
|
-
},
|
|
3651
|
-
const n =
|
|
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[
|
|
3662
|
-
}, C = (
|
|
3663
|
-
const W =
|
|
3664
|
-
u.value = W.replace(/\D/g, ""), d.value =
|
|
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(
|
|
3669
|
-
|
|
3670
|
-
|
|
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
|
-
(
|
|
3677
|
+
var k;
|
|
3678
|
+
(k = l.value) == null || k.focus();
|
|
3680
3679
|
};
|
|
3681
3680
|
return G(
|
|
3682
3681
|
() => e.cardNumber,
|
|
3683
|
-
(
|
|
3684
|
-
|
|
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
|
-
}), (
|
|
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
|
-
|
|
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--${
|
|
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:
|
|
3715
|
-
disabled:
|
|
3716
|
-
readonly:
|
|
3717
|
-
maxlength:
|
|
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
|
-
|
|
3725
|
+
$.value ? (c(), E(K($.value), {
|
|
3727
3726
|
key: 1,
|
|
3728
|
-
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${
|
|
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
|
];
|
|
@@ -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)),
|
|
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": !!
|
|
3776
|
-
})),
|
|
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
|
-
},
|
|
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",
|
|
3823
|
-
onInput:
|
|
3821
|
+
class: F(["freddy-plugins-input-field", $.value]),
|
|
3822
|
+
onInput: L,
|
|
3824
3823
|
onFocus: v,
|
|
3825
3824
|
onBlur: T,
|
|
3826
|
-
onKeydown:
|
|
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(
|
|
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"])) :
|
|
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
|
|
@@ -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
|
-
],
|
|
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
|
-
})),
|
|
3926
|
+
})), $ = M(
|
|
3928
3927
|
() => e.countryOptions || g
|
|
3929
|
-
),
|
|
3928
|
+
), L = M(() => $.value.find(
|
|
3930
3929
|
(t) => t.code === o.value
|
|
3931
|
-
) ||
|
|
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
|
-
},
|
|
3936
|
+
}, b = (t) => {
|
|
3938
3937
|
const p = t.target;
|
|
3939
3938
|
u.value = p.value;
|
|
3940
|
-
const S = `${
|
|
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);
|
|
@@ -3967,7 +3966,7 @@ const ue = new Ps(
|
|
|
3967
3966
|
}), m({
|
|
3968
3967
|
focus: P,
|
|
3969
3968
|
inputRef: l
|
|
3970
|
-
}), (t, p) => (c(), E(ke, se(
|
|
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(
|
|
3982
|
-
|
|
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(
|
|
3989
|
-
key:
|
|
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(
|
|
3994
|
-
a("span", Ca, B(
|
|
3995
|
-
a("span", wa, B(
|
|
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] = (
|
|
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:
|
|
4010
|
+
onInput: b,
|
|
4012
4011
|
onFocus: I,
|
|
4013
4012
|
onBlur: C
|
|
4014
4013
|
}, null, 40, Sa), [
|
|
@@ -4021,7 +4020,7 @@ const ue = new Ps(
|
|
|
4021
4020
|
placement: "top"
|
|
4022
4021
|
}, {
|
|
4023
4022
|
default: Z(() => [
|
|
4024
|
-
|
|
4023
|
+
V(A(fe), { class: "freddy-plugins-figma-help-icon-svg" })
|
|
4025
4024
|
]),
|
|
4026
4025
|
_: 1
|
|
4027
4026
|
}, 8, ["text"])) : (c(), E(A(fe), {
|
|
@@ -4142,17 +4141,17 @@ const ue = new Ps(
|
|
|
4142
4141
|
e("input", h);
|
|
4143
4142
|
}, g = (h) => {
|
|
4144
4143
|
e("focus", h);
|
|
4145
|
-
},
|
|
4144
|
+
}, _ = (h) => {
|
|
4146
4145
|
e("blur", h);
|
|
4147
|
-
},
|
|
4146
|
+
}, $ = (h) => {
|
|
4148
4147
|
e("keydown", h);
|
|
4149
|
-
},
|
|
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
|
-
},
|
|
4154
|
+
}, b = (h) => {
|
|
4156
4155
|
e("update:phoneNumber", h);
|
|
4157
4156
|
}, I = (h) => {
|
|
4158
4157
|
e("country-change", h);
|
|
@@ -4164,26 +4163,26 @@ 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":
|
|
4166
|
+
"onUpdate:phoneNumber": b,
|
|
4168
4167
|
onCountryChange: I,
|
|
4169
4168
|
onInput: o,
|
|
4170
4169
|
onFocus: g,
|
|
4171
|
-
onBlur:
|
|
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:
|
|
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:
|
|
4185
|
-
onKeydown:
|
|
4186
|
-
onLeadingIconClick:
|
|
4183
|
+
onBlur: _,
|
|
4184
|
+
onKeydown: $,
|
|
4185
|
+
onLeadingIconClick: L,
|
|
4187
4186
|
onTrailingIconClick: v
|
|
4188
4187
|
}), null, 16));
|
|
4189
4188
|
}
|
|
@@ -4311,7 +4310,7 @@ const Ea = /* @__PURE__ */ H(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
4311
4310
|
class: "freddy-plugins-modal-close",
|
|
4312
4311
|
onClick: i
|
|
4313
4312
|
}, [
|
|
4314
|
-
|
|
4313
|
+
V(Me, { class: "freddy-plugins-modal-close-icon" })
|
|
4315
4314
|
])
|
|
4316
4315
|
]),
|
|
4317
4316
|
a("div", za, [
|
|
@@ -4349,22 +4348,22 @@ const Ea = /* @__PURE__ */ H(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
4349
4348
|
}, o = () => {
|
|
4350
4349
|
r("clear");
|
|
4351
4350
|
};
|
|
4352
|
-
return (g,
|
|
4353
|
-
var
|
|
4351
|
+
return (g, _) => {
|
|
4352
|
+
var $;
|
|
4354
4353
|
return c(), f("div", {
|
|
4355
4354
|
ref_key: "dropdownRef",
|
|
4356
4355
|
ref: l,
|
|
4357
4356
|
class: F(["freddy-search-wrapper", A(s).class]),
|
|
4358
4357
|
onClick: u
|
|
4359
4358
|
}, [
|
|
4360
|
-
|
|
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":
|
|
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(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
4375
4374
|
key: 0,
|
|
4376
4375
|
class: "freddy-search-spinner"
|
|
4377
4376
|
})) : w("", !0),
|
|
4378
|
-
g.showCloseButton && !g.showLoaderForSearch && ((
|
|
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
|
|
@@ -4404,23 +4403,23 @@ const Ea = /* @__PURE__ */ H(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
4404
4403
|
emits: ["select"],
|
|
4405
4404
|
setup(y, { emit: m }) {
|
|
4406
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(
|
|
4407
|
-
(
|
|
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 = (
|
|
4413
|
-
r.value =
|
|
4414
|
-
},
|
|
4415
|
-
|
|
4411
|
+
}, g = ($) => {
|
|
4412
|
+
r.value = $, e("select", $), o();
|
|
4413
|
+
}, _ = ($) => {
|
|
4414
|
+
$.target.closest(".model-dropdown-wrapper") || o();
|
|
4416
4415
|
};
|
|
4417
|
-
return G(i, (
|
|
4418
|
-
|
|
4419
|
-
document.addEventListener("click",
|
|
4420
|
-
}, 0) : document.removeEventListener("click",
|
|
4416
|
+
return G(i, ($) => {
|
|
4417
|
+
$ ? setTimeout(() => {
|
|
4418
|
+
document.addEventListener("click", _);
|
|
4419
|
+
}, 0) : document.removeEventListener("click", _);
|
|
4421
4420
|
}), Ae(() => {
|
|
4422
|
-
document.removeEventListener("click",
|
|
4423
|
-
}), (
|
|
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(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
4428
4427
|
}, [
|
|
4429
4428
|
a("div", {
|
|
4430
4429
|
class: F(["model-dropdown-trigger", [
|
|
4431
|
-
`model-dropdown-trigger--${
|
|
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(Da, [["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) ||
|
|
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(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
4451
4450
|
}))
|
|
4452
4451
|
], 2),
|
|
4453
4452
|
i.value ? (c(), f("div", Za, [
|
|
4454
|
-
|
|
4455
|
-
|
|
4453
|
+
$.searchable ? (c(), f("div", qa, [
|
|
4454
|
+
V(_e, {
|
|
4456
4455
|
modelValue: l.value,
|
|
4457
|
-
"onUpdate:modelValue":
|
|
4458
|
-
placeholder:
|
|
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, (
|
|
4462
|
+
(c(!0), f(O, null, j(u.value, (b) => {
|
|
4464
4463
|
var I;
|
|
4465
4464
|
return c(), f("li", {
|
|
4466
|
-
key:
|
|
4465
|
+
key: b.id,
|
|
4467
4466
|
class: F(["model-dropdown-option", {
|
|
4468
|
-
"model-dropdown-option--selected": ((I = r.value) == null ? void 0 : I.id) ===
|
|
4467
|
+
"model-dropdown-option--selected": ((I = r.value) == null ? void 0 : I.id) === b.id
|
|
4469
4468
|
}]),
|
|
4470
|
-
onClick: (C) => g(
|
|
4469
|
+
onClick: (C) => g(b)
|
|
4471
4470
|
}, [
|
|
4472
|
-
|
|
4471
|
+
b.imageSrc ? (c(), f("img", {
|
|
4473
4472
|
key: 0,
|
|
4474
|
-
src:
|
|
4475
|
-
alt:
|
|
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(
|
|
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)
|
|
@@ -4696,107 +4695,107 @@ const Ea = /* @__PURE__ */ H(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
4696
4695
|
setup(y, { emit: m }) {
|
|
4697
4696
|
const s = y, e = m, i = D(!1), l = D(null), r = M(() => {
|
|
4698
4697
|
var I;
|
|
4699
|
-
const
|
|
4700
|
-
return
|
|
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
|
|
4703
|
-
return Math.min(100, Math.max(0, I /
|
|
4704
|
-
}), d = M(() => u.value), o = (
|
|
4705
|
-
const I = Math.round(
|
|
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 = (
|
|
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, (
|
|
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
|
-
},
|
|
4715
|
-
const I = o(
|
|
4713
|
+
}, _ = (b) => {
|
|
4714
|
+
const I = o(b);
|
|
4716
4715
|
I !== s.modelValue && e("update:modelValue", I);
|
|
4717
|
-
},
|
|
4716
|
+
}, $ = (b) => {
|
|
4718
4717
|
if (s.disabled) return;
|
|
4719
|
-
|
|
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
|
-
|
|
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
|
-
},
|
|
4728
|
+
}, L = (b) => {
|
|
4730
4729
|
if (s.disabled) return;
|
|
4731
|
-
|
|
4730
|
+
b.preventDefault(), b.stopPropagation(), i.value = !0;
|
|
4732
4731
|
const I = (P) => {
|
|
4733
|
-
!i.value || !P.touches[0] || (P.preventDefault(),
|
|
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 = (
|
|
4737
|
+
}, v = (b) => {
|
|
4739
4738
|
if (s.disabled || i.value) return;
|
|
4740
|
-
|
|
4741
|
-
const I = g(
|
|
4742
|
-
|
|
4743
|
-
}, T = (
|
|
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 (
|
|
4745
|
+
switch (b.key) {
|
|
4747
4746
|
case "ArrowLeft":
|
|
4748
4747
|
case "ArrowDown":
|
|
4749
|
-
|
|
4748
|
+
b.preventDefault(), I = s.modelValue - s.step;
|
|
4750
4749
|
break;
|
|
4751
4750
|
case "ArrowRight":
|
|
4752
4751
|
case "ArrowUp":
|
|
4753
|
-
|
|
4752
|
+
b.preventDefault(), I = s.modelValue + s.step;
|
|
4754
4753
|
break;
|
|
4755
4754
|
case "Home":
|
|
4756
|
-
|
|
4755
|
+
b.preventDefault(), I = s.min;
|
|
4757
4756
|
break;
|
|
4758
4757
|
case "End":
|
|
4759
|
-
|
|
4758
|
+
b.preventDefault(), I = s.max;
|
|
4760
4759
|
break;
|
|
4761
4760
|
case "PageDown":
|
|
4762
|
-
|
|
4761
|
+
b.preventDefault(), I = s.modelValue - s.step * 10;
|
|
4763
4762
|
break;
|
|
4764
4763
|
case "PageUp":
|
|
4765
|
-
|
|
4764
|
+
b.preventDefault(), I = s.modelValue + s.step * 10;
|
|
4766
4765
|
break;
|
|
4767
4766
|
default:
|
|
4768
4767
|
return;
|
|
4769
4768
|
}
|
|
4770
|
-
|
|
4769
|
+
_(I);
|
|
4771
4770
|
};
|
|
4772
|
-
return (
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
a("span", Il, B(
|
|
4776
|
-
|
|
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:
|
|
4779
|
-
placement:
|
|
4777
|
+
text: b.tooltip,
|
|
4778
|
+
placement: b.tooltipPlacement
|
|
4780
4779
|
}, {
|
|
4781
4780
|
default: Z(() => [
|
|
4782
|
-
|
|
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
|
-
|
|
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":
|
|
4789
|
+
class: F(["freddy-plugins-slider-track-container", { "freddy-plugins-slider-disabled": b.disabled }]),
|
|
4791
4790
|
onClick: v,
|
|
4792
4791
|
onKeydown: T,
|
|
4793
|
-
tabindex:
|
|
4792
|
+
tabindex: b.disabled ? -1 : 0,
|
|
4794
4793
|
role: "slider",
|
|
4795
|
-
"aria-valuemin":
|
|
4796
|
-
"aria-valuemax":
|
|
4797
|
-
"aria-valuenow":
|
|
4798
|
-
"aria-disabled":
|
|
4799
|
-
"aria-label":
|
|
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(Da, [["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":
|
|
4812
|
+
"freddy-plugins-slider-thumb-disabled": b.disabled
|
|
4814
4813
|
}]),
|
|
4815
4814
|
style: oe({ left: d.value + "%" }),
|
|
4816
|
-
onMousedown:
|
|
4817
|
-
onTouchstart:
|
|
4815
|
+
onMousedown: $,
|
|
4816
|
+
onTouchstart: L
|
|
4818
4817
|
}, null, 38)
|
|
4819
4818
|
], 42, kl),
|
|
4820
|
-
|
|
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({
|
|
@@ -4880,7 +4879,7 @@ const Ea = /* @__PURE__ */ H(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
4880
4879
|
class: "freddy-plugins-snackbar-close-btn",
|
|
4881
4880
|
onClick: (o) => i(d)
|
|
4882
4881
|
}, [
|
|
4883
|
-
|
|
4882
|
+
V(Me, { class: "freddy-plugins-snackbar-close-icon" })
|
|
4884
4883
|
], 8, Pl)
|
|
4885
4884
|
])
|
|
4886
4885
|
], 2))), 128))
|
|
@@ -4930,7 +4929,7 @@ const Ea = /* @__PURE__ */ H(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
4930
4929
|
placement: l.tooltipPlacement
|
|
4931
4930
|
}, {
|
|
4932
4931
|
default: Z(() => [
|
|
4933
|
-
|
|
4932
|
+
V(ce, { class: "freddy-plugins-switch-slot__tooltip-icon" })
|
|
4934
4933
|
]),
|
|
4935
4934
|
_: 1
|
|
4936
4935
|
}, 8, ["text", "placement"])) : w("", !0)
|
|
@@ -5018,7 +5017,7 @@ const Ea = /* @__PURE__ */ H(Da, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
|
5018
5017
|
class: "freddy-plugins-toast-close-button",
|
|
5019
5018
|
onClick: (g) => l(o)
|
|
5020
5019
|
}, [
|
|
5021
|
-
|
|
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 = D([]), l = D(!1), r = D(0), u = M(() => i.value.length > 0), d = M(() => i.value[i.value.length - 1] || null), o = (T,
|
|
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
|
-
...
|
|
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,
|
|
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,
|
|
5051
|
+
return { data: null, error: o(I, b) };
|
|
5053
5052
|
} finally {
|
|
5054
5053
|
l.value = !1;
|
|
5055
5054
|
}
|
|
5056
|
-
},
|
|
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
|
-
...
|
|
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
|
-
},
|
|
5073
|
+
}, $ = () => {
|
|
5075
5074
|
i.value = [], r.value = 0;
|
|
5076
|
-
},
|
|
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:
|
|
5098
|
-
clearErrors:
|
|
5099
|
-
clearError:
|
|
5096
|
+
retryAsync: _,
|
|
5097
|
+
clearErrors: $,
|
|
5098
|
+
clearError: L,
|
|
5100
5099
|
isCriticalError: v
|
|
5101
5100
|
};
|
|
5102
5101
|
}
|
|
@@ -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
|
|
5119
|
-
S.memoryUsage =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
5133
|
+
}, $ = (P, h) => {
|
|
5135
5134
|
let t;
|
|
5136
5135
|
return (...p) => {
|
|
5137
5136
|
clearTimeout(t), t = setTimeout(() => P(...p), h);
|
|
5138
5137
|
};
|
|
5139
|
-
},
|
|
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
|
-
})),
|
|
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(
|
|
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:
|
|
5187
|
+
measureAsync: _,
|
|
5189
5188
|
// Optimization utilities
|
|
5190
|
-
debounce:
|
|
5191
|
-
throttle:
|
|
5189
|
+
debounce: $,
|
|
5190
|
+
throttle: L,
|
|
5192
5191
|
scheduleWork: v,
|
|
5193
5192
|
lazyLoad: T,
|
|
5194
|
-
createVirtualList:
|
|
5193
|
+
createVirtualList: b,
|
|
5195
5194
|
// Management
|
|
5196
5195
|
clearMetrics: I,
|
|
5197
5196
|
getSummary: C
|