@aitronos/freddy-plugins 0.4.65 → 0.4.67
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 +588 -576
- package/dist/index.js.map +1 -1
- package/dist/src/components/Descriptions.vue.d.ts +1 -1
- package/dist/src/components/TextAreaInputField.vue.d.ts +4 -4
- package/dist/src/components/TooltipV2.vue.d.ts +4 -5
- package/package.json +2 -2
- package/CHANGELOG.md +0 -697
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var He = (y, m, s) => m in y ? ze(y, m, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ye = (y, m, s) => He(y, typeof m != "symbol" ? m + "" : m, s);
|
|
4
4
|
import { defineAsyncComponent as R, defineComponent as N, createElementBlock as f, openBlock as c, normalizeStyle as oe, normalizeClass as F, createStaticVNode as Ue, createBlock as E, Transition as le, withCtx as Z, createCommentVNode as w, createElementVNode as a, renderSlot as q, toDisplayString as B, createVNode as L, unref as D, ref as A, computed as M, Fragment as O, renderList as j, resolveDynamicComponent as K, watch as G, withKeys as z, withModifiers as U, withDirectives as Q, vModelText as Y, createTextVNode as J, onMounted as me, nextTick as te, shallowRef as je, mergeProps as se, vModelDynamic as Ke, onUnmounted as De, useAttrs as Ge } from "vue";
|
|
5
5
|
import { I as Ze, _ as H, a as pe, b as qe, c as We, d as he, e as ee, f as Je, g as Qe, h as Ye, i as Xe, j as ce, k as et, l as tt, m as ot, n as nt, o as fe, p as st, q as ae, r as it, s as at, u as ne, t as lt, v as ct, w as rt, x as dt, y as ut, z as pt, A as Se, B as ht, C as Te, D as ft, E as mt, F as vt, G as yt, H as gt, J as It, K as bt, L as kt, M as Fe, N as _t, O as Be, P as Me, Q as Ct, R as wt, S as St, T as $e, U as Tt } from "./icons-BAyOBzYf.js";
|
|
6
|
-
import { V as
|
|
6
|
+
import { V as Dc, W as Fc, X as Bc, Y as Mc, Z as Lc, $ as Vc, a0 as Ec, a1 as Nc, a2 as Rc, a3 as Oc, a4 as zc, a5 as Hc, a6 as Uc, a7 as jc, a8 as Kc, a9 as Gc, aa as Zc, ab as qc, ac as Wc, ad as Jc, ae as Qc, af as Yc, ag as Xc, ah as er, ai as tr, aj as or, ak as nr, al as sr, am as ir, an as ar, ao as lr, ap as cr, aq as rr, ar as dr, as as ur, at as pr, au as hr, av as fr, aw as mr, ax as vr, ay as yr, az as gr, aA as Ir, aB as br, aC as kr, aD as _r, aE as Cr, aF as wr, aG as Sr, aH as Tr, aI as $r, aJ as xr, aK as Pr, aL as Ar, aM as Dr, aN as Fr, aO as Br, aP as Mr, aQ as Lr, aR as Vr, aS as Er, aT as Nr, aU as Rr, aV as Or, aW as zr, aX as Hr, aY as Ur, aZ as jr, a_ as Kr, a$ as Gr, b0 as Zr, b1 as qr, b2 as Wr, b3 as Jr, b4 as Qr, b5 as Yr, b6 as Xr, b7 as ed, b8 as td, b9 as od, ba as nd, bb as sd, bc as id, bd as ad, be as ld, bf as cd, bg as rd, bh as dd, bi as ud, bj as pd, bk as hd, bl as fd, bm as md, bn as vd, bo as yd, bp as gd, bq as Id, br as bd, bs as kd, bt as _d, bu as Cd, bv as wd, bw as Sd, bx as Td, by as $d, bz as xd, bA as Pd, bB as Ad, bC as Dd, bD as Fd, bE as Bd, c3 as Md, bI as Ld, b$ as Vd, bW as Ed, bQ as Nd, bZ as Rd, b_ as Od, bH as zd, c1 as Hd, bX as Ud, bK as jd, bO as Kd, bM as Gd, bP as Zd, bL as qd, bR as Wd, bT as Jd, bJ as Qd, bY as Yd, c0 as Xd, bS as eu, c4 as tu, bG as ou, bF as nu, c2 as su, bN as iu, bV as au, bU as lu } from "./icons-BAyOBzYf.js";
|
|
7
7
|
const Le = {
|
|
8
8
|
mounted(y) {
|
|
9
9
|
y.getAttribute("class") || y.setAttribute("class", "base-fallback-style");
|
|
@@ -82,7 +82,7 @@ const xt = [
|
|
|
82
82
|
updated(y, m) {
|
|
83
83
|
y.innerHTML = Pe(m.value || "");
|
|
84
84
|
}
|
|
85
|
-
},
|
|
85
|
+
}, Zl = {
|
|
86
86
|
install(y) {
|
|
87
87
|
var m;
|
|
88
88
|
y.directive("icon-style", Le), y.directive("fr-sanitize", Ve);
|
|
@@ -256,15 +256,15 @@ const xt = [
|
|
|
256
256
|
typeof process < "u" && process.env.NODE_ENV;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
},
|
|
259
|
+
}, ql = {
|
|
260
260
|
install(y) {
|
|
261
261
|
y.directive("fr-sanitize", Ve);
|
|
262
262
|
}
|
|
263
|
-
},
|
|
263
|
+
}, Wl = {
|
|
264
264
|
install(y) {
|
|
265
265
|
y.directive("icon-style", Le);
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, Jl = /* @__PURE__ */ N({
|
|
268
268
|
__name: "AnimeSpaceman",
|
|
269
269
|
props: {
|
|
270
270
|
customClass: {},
|
|
@@ -318,7 +318,7 @@ const xt = [
|
|
|
318
318
|
}), At = {
|
|
319
319
|
key: 0,
|
|
320
320
|
class: "fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"
|
|
321
|
-
}, Dt = { class: "flex justify-center items-center" }, Ft = { class: "modal-header" }, Bt = { class: "modal-body" }, Mt = { class: "modal-footer" },
|
|
321
|
+
}, Dt = { class: "flex justify-center items-center" }, Ft = { class: "modal-header" }, Bt = { class: "modal-body" }, Mt = { class: "modal-footer" }, Ql = /* @__PURE__ */ N({
|
|
322
322
|
__name: "AdvancedModal",
|
|
323
323
|
props: {
|
|
324
324
|
isVisible: { type: Boolean },
|
|
@@ -416,7 +416,7 @@ const xt = [
|
|
|
416
416
|
])
|
|
417
417
|
]));
|
|
418
418
|
}
|
|
419
|
-
}),
|
|
419
|
+
}), Yl = /* @__PURE__ */ H(Gt, [["__scopeId", "data-v-37cf8653"]]), be = (y, m, s) => {
|
|
420
420
|
const e = y[m];
|
|
421
421
|
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, l) => {
|
|
422
422
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -437,7 +437,7 @@ const xt = [
|
|
|
437
437
|
}, Qt = {
|
|
438
438
|
key: 2,
|
|
439
439
|
class: "freddy-assistants-header__side-icon"
|
|
440
|
-
}, Yt = { class: "freddy-assistants-header__content" }, Xt = { class: "freddy-assistants-header__content-inner" }, eo = { class: "freddy-assistants-header__text-content" }, to = { class: "freddy-assistants-header__id-badge" }, oo = { class: "freddy-assistants-header__actions" },
|
|
440
|
+
}, Yt = { class: "freddy-assistants-header__content" }, Xt = { class: "freddy-assistants-header__content-inner" }, eo = { class: "freddy-assistants-header__text-content" }, to = { class: "freddy-assistants-header__id-badge" }, oo = { class: "freddy-assistants-header__actions" }, Xl = /* @__PURE__ */ N({
|
|
441
441
|
__name: "AssistantsHeader",
|
|
442
442
|
props: {
|
|
443
443
|
assistantImage: { default: void 0 },
|
|
@@ -547,7 +547,7 @@ const xt = [
|
|
|
547
547
|
}, ro = { class: "freddy-avatar-list__grid" }, uo = {
|
|
548
548
|
key: 1,
|
|
549
549
|
class: "freddy-avatar-list__selected-info"
|
|
550
|
-
},
|
|
550
|
+
}, ec = /* @__PURE__ */ N({
|
|
551
551
|
__name: "AvatarList",
|
|
552
552
|
props: {
|
|
553
553
|
avatars: {},
|
|
@@ -580,7 +580,7 @@ const xt = [
|
|
|
580
580
|
imageUrl: b.url,
|
|
581
581
|
isSelected: l.value === b.id,
|
|
582
582
|
altText: b.name,
|
|
583
|
-
onClick: (
|
|
583
|
+
onClick: (x) => u(b.id)
|
|
584
584
|
}, null, 8, ["imageUrl", "isSelected", "altText", "onClick"]))), 128))
|
|
585
585
|
]),
|
|
586
586
|
d.showSelectedInfo ? (c(), f("div", uo, [
|
|
@@ -595,7 +595,7 @@ const xt = [
|
|
|
595
595
|
}, Po = {
|
|
596
596
|
key: 1,
|
|
597
597
|
class: "freddy-choose-assistant-avatar__section"
|
|
598
|
-
}, Ao = { class: "freddy-choose-assistant-avatar__voice-list" }, Do = { class: "freddy-choose-assistant-avatar__actions" }, Fo = ["disabled"],
|
|
598
|
+
}, Ao = { class: "freddy-choose-assistant-avatar__voice-list" }, Do = { class: "freddy-choose-assistant-avatar__actions" }, Fo = ["disabled"], tc = /* @__PURE__ */ N({
|
|
599
599
|
__name: "ChooseAssistantAvatar",
|
|
600
600
|
props: {
|
|
601
601
|
title: { default: "Choose your assistant" },
|
|
@@ -640,11 +640,11 @@ const xt = [
|
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
return t;
|
|
643
|
-
}, l = M(() => e.icons.length > 0 ? e.icons : i()), r = s, u = A(null), d = A(null), o = A(null), g = A(null), b = A(null),
|
|
644
|
-
M(() =>
|
|
643
|
+
}, l = M(() => e.icons.length > 0 ? e.icons : i()), r = s, u = A(null), d = A(null), o = A(null), g = A(null), b = A(null), x = A("");
|
|
644
|
+
M(() => x.value ? l.value.filter(
|
|
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(x.value.toLowerCase());
|
|
648
648
|
}
|
|
649
649
|
) : l.value);
|
|
650
650
|
const V = M(() => u.value !== null || d.value !== null || g.value !== null || b.value !== null), v = () => {
|
|
@@ -663,7 +663,7 @@ const xt = [
|
|
|
663
663
|
}, C = (t) => {
|
|
664
664
|
b.value = t.id, r("voiceSelect", t);
|
|
665
665
|
}, P = (t) => {
|
|
666
|
-
|
|
666
|
+
x.value = t || "", r("searchInput", t || "");
|
|
667
667
|
}, h = () => {
|
|
668
668
|
r("uploadClick");
|
|
669
669
|
};
|
|
@@ -705,9 +705,9 @@ const xt = [
|
|
|
705
705
|
L(D(Je), { class: "freddy-choose-assistant-avatar__upload-icon" })
|
|
706
706
|
], 8, Co),
|
|
707
707
|
L(D(_e), {
|
|
708
|
-
searchInput:
|
|
708
|
+
searchInput: x.value,
|
|
709
709
|
"onUpdate:searchInput": [
|
|
710
|
-
p[0] || (p[0] = (S) =>
|
|
710
|
+
p[0] || (p[0] = (S) => x.value = S),
|
|
711
711
|
P
|
|
712
712
|
],
|
|
713
713
|
placeholder: t.searchPlaceholder,
|
|
@@ -805,14 +805,14 @@ const xt = [
|
|
|
805
805
|
{ "freddy-plugin-nav-bar--full-width": s.fullWidth }
|
|
806
806
|
])
|
|
807
807
|
}, [
|
|
808
|
-
(c(!0), f(O, null, j(s.tabList, (b,
|
|
808
|
+
(c(!0), f(O, null, j(s.tabList, (b, x) => (c(), f("button", {
|
|
809
809
|
class: F([
|
|
810
810
|
"freddy-plugin-menu-button",
|
|
811
811
|
`freddy-plugin-menu-button--${r.value}`,
|
|
812
812
|
{ "freddy-plugin-menu-button--active": u.value === b.id },
|
|
813
813
|
{ "freddy-plugin-menu-button--full-width": s.fullWidth }
|
|
814
814
|
]),
|
|
815
|
-
key:
|
|
815
|
+
key: x,
|
|
816
816
|
onClick: (V) => d(b),
|
|
817
817
|
"aria-selected": u.value === b.id,
|
|
818
818
|
role: "tab",
|
|
@@ -902,7 +902,7 @@ const xt = [
|
|
|
902
902
|
p < t - 2 && h.push("..."), h.push(t);
|
|
903
903
|
}
|
|
904
904
|
return h;
|
|
905
|
-
}),
|
|
905
|
+
}), x = () => {
|
|
906
906
|
e("search", i.value);
|
|
907
907
|
}, V = () => {
|
|
908
908
|
e("createRule");
|
|
@@ -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: x,
|
|
940
940
|
"aria-label": "Search rules"
|
|
941
941
|
}, null, 544), [
|
|
942
942
|
[Y, i.value]
|
|
@@ -1121,7 +1121,7 @@ const xt = [
|
|
|
1121
1121
|
])
|
|
1122
1122
|
]));
|
|
1123
1123
|
}
|
|
1124
|
-
}),
|
|
1124
|
+
}), oc = /* @__PURE__ */ H(vn, [["__scopeId", "data-v-e6ad3a6e"]]), yn = { class: "freddy-vector-frame__content" }, gn = { class: "freddy-vector-frame__icon-container" }, In = { class: "freddy-vector-frame__title" }, bn = {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
class: "freddy-vector-frame__badge"
|
|
1127
1127
|
}, kn = { class: "freddy-vector-frame__badge-content" }, _n = { class: "freddy-vector-frame__badge-text" }, Cn = {
|
|
@@ -1164,7 +1164,7 @@ const xt = [
|
|
|
1164
1164
|
i.value ? (c(), f("div", wn)) : w("", !0)
|
|
1165
1165
|
], 2));
|
|
1166
1166
|
}
|
|
1167
|
-
}),
|
|
1167
|
+
}), nc = /* @__PURE__ */ H(Sn, [["__scopeId", "data-v-e2bc0b9f"]]), Tn = { class: "freddy-vector-section" }, $n = { class: "freddy-vector-section__content" }, xn = { class: "freddy-vector-section__header" }, Pn = { class: "freddy-vector-section__count" }, An = { class: "freddy-vector-section__main" }, Dn = { class: "freddy-vector-section__search-container" }, Fn = { class: "freddy-vector-section__search-header" }, Bn = { class: "freddy-vector-section__search-label" }, Mn = { class: "freddy-vector-section__help-icon" }, Ln = { class: "freddy-vector-section__search-input-container" }, Vn = { class: "freddy-vector-section__filter-results" }, En = { class: "freddy-vector-section__filter" }, Nn = { class: "freddy-vector-section__filter-button" }, Rn = { class: "freddy-vector-section__results-count" }, On = { class: "freddy-vector-section__frames-container" }, zn = {
|
|
1168
1168
|
key: 0,
|
|
1169
1169
|
class: "freddy-vector-section__show-more"
|
|
1170
1170
|
}, Hn = { class: "freddy-vector-section__show-more-text" }, Un = { class: "freddy-vector-section__add-section" }, jn = { class: "freddy-vector-section__add-container" }, Kn = /* @__PURE__ */ N({
|
|
@@ -1255,7 +1255,7 @@ const xt = [
|
|
|
1255
1255
|
(v) => v.title.toLowerCase().includes(i.value.toLowerCase())
|
|
1256
1256
|
) : s.frames), u = M(() => r.value.slice(0, l.value)), d = M(() => r.value.length), o = M(() => r.value.length > l.value), g = M(() => r.value.length - l.value), b = () => {
|
|
1257
1257
|
e("addVectorStore");
|
|
1258
|
-
},
|
|
1258
|
+
}, x = () => {
|
|
1259
1259
|
l.value = r.value.length, e("showMore");
|
|
1260
1260
|
}, V = (v) => {
|
|
1261
1261
|
i.value = v || "", l.value = s.maxDisplayed, e("searchInput", i.value);
|
|
@@ -1307,7 +1307,7 @@ const xt = [
|
|
|
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: x
|
|
1311
1311
|
}, [
|
|
1312
1312
|
a("span", Hn, "Show " + B(g.value) + " more", 1),
|
|
1313
1313
|
L(D(ae), { class: "freddy-vector-section__show-more-icon" })
|
|
@@ -1329,13 +1329,13 @@ const xt = [
|
|
|
1329
1329
|
])
|
|
1330
1330
|
]));
|
|
1331
1331
|
}
|
|
1332
|
-
}),
|
|
1332
|
+
}), sc = /* @__PURE__ */ H(Kn, [["__scopeId", "data-v-8434fbf8"]]), Gn = { class: "freddy-voice-list" }, Zn = {
|
|
1333
1333
|
key: 0,
|
|
1334
1334
|
class: "freddy-voice-list__title"
|
|
1335
1335
|
}, qn = { class: "freddy-voice-list__container" }, Wn = {
|
|
1336
1336
|
key: 1,
|
|
1337
1337
|
class: "freddy-voice-list__selected-info"
|
|
1338
|
-
},
|
|
1338
|
+
}, ic = /* @__PURE__ */ N({
|
|
1339
1339
|
__name: "VoiceList",
|
|
1340
1340
|
props: {
|
|
1341
1341
|
voices: {},
|
|
@@ -1366,7 +1366,7 @@ const xt = [
|
|
|
1366
1366
|
key: b.id,
|
|
1367
1367
|
voiceName: b.name,
|
|
1368
1368
|
isSelected: l.value === b.id,
|
|
1369
|
-
onClick: (
|
|
1369
|
+
onClick: (x) => u(b.id)
|
|
1370
1370
|
}, null, 8, ["voiceName", "isSelected", "onClick"]))), 128))
|
|
1371
1371
|
]),
|
|
1372
1372
|
d.showSelectedInfo ? (c(), f("div", Wn, [
|
|
@@ -1566,7 +1566,7 @@ const xt = [
|
|
|
1566
1566
|
!s.disabled && !s.loading && r("leftIconClick", v);
|
|
1567
1567
|
}, b = (v) => {
|
|
1568
1568
|
!s.disabled && !s.loading && r("rightIconClick", v);
|
|
1569
|
-
},
|
|
1569
|
+
}, x = () => {
|
|
1570
1570
|
u.value = !0;
|
|
1571
1571
|
}, V = () => {
|
|
1572
1572
|
u.value = !1;
|
|
@@ -1584,7 +1584,7 @@ const xt = [
|
|
|
1584
1584
|
"aria-label": v.iconOnly ? v.label : void 0,
|
|
1585
1585
|
role: "button",
|
|
1586
1586
|
onClick: o,
|
|
1587
|
-
onMouseenter:
|
|
1587
|
+
onMouseenter: x,
|
|
1588
1588
|
onMouseleave: V
|
|
1589
1589
|
}, [
|
|
1590
1590
|
v.loading ? (c(), f(O, { key: 0 }, [
|
|
@@ -1623,7 +1623,7 @@ const xt = [
|
|
|
1623
1623
|
"aria-label": v.iconOnly ? v.label : void 0,
|
|
1624
1624
|
role: "button",
|
|
1625
1625
|
onClick: o,
|
|
1626
|
-
onMouseenter:
|
|
1626
|
+
onMouseenter: x,
|
|
1627
1627
|
onMouseleave: V
|
|
1628
1628
|
}, [
|
|
1629
1629
|
v.loading ? (c(), f(O, { key: 0 }, [
|
|
@@ -1816,23 +1816,23 @@ const xt = [
|
|
|
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, (x) => (c(), f("button", {
|
|
1820
|
+
key: x,
|
|
1821
|
+
class: F(d(x)),
|
|
1822
1822
|
disabled: g.disabled,
|
|
1823
|
-
"aria-label": g.iconOnly ? u(
|
|
1823
|
+
"aria-label": g.iconOnly ? u(x) : void 0,
|
|
1824
1824
|
role: "button",
|
|
1825
|
-
onClick: (V) => o(
|
|
1825
|
+
onClick: (V) => o(x, V)
|
|
1826
1826
|
}, [
|
|
1827
|
-
(c(), E(K(r(
|
|
1827
|
+
(c(), E(K(r(x)), {
|
|
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(x)), 1))
|
|
1832
1832
|
], 10, fs))), 128))
|
|
1833
1833
|
], 6));
|
|
1834
1834
|
}
|
|
1835
|
-
}),
|
|
1835
|
+
}), ac = /* @__PURE__ */ H(vs, [["__scopeId", "data-v-22e5ee7c"]]), ys = ["innerHTML"], Ae = "nord", lc = /* @__PURE__ */ N({
|
|
1836
1836
|
__name: "CodeBlock",
|
|
1837
1837
|
props: {
|
|
1838
1838
|
code: {},
|
|
@@ -1900,7 +1900,7 @@ const xt = [
|
|
|
1900
1900
|
viewBox: "0 0 12 12",
|
|
1901
1901
|
fill: "none",
|
|
1902
1902
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1903
|
-
}, _s = ["stroke"],
|
|
1903
|
+
}, _s = ["stroke"], cc = /* @__PURE__ */ N({
|
|
1904
1904
|
__name: "CustomCheckbox",
|
|
1905
1905
|
props: {
|
|
1906
1906
|
isChecked: { type: Boolean },
|
|
@@ -1948,12 +1948,15 @@ const xt = [
|
|
|
1948
1948
|
])) : w("", !0)
|
|
1949
1949
|
], 10, gs));
|
|
1950
1950
|
}
|
|
1951
|
-
}), Cs = ["aria-label"], ws =
|
|
1951
|
+
}), Cs = ["aria-label"], ws = {
|
|
1952
|
+
key: 0,
|
|
1953
|
+
class: "freddy-plugins-tooltip-v2-inner"
|
|
1954
|
+
}, Ss = ["innerHTML"], Ts = ["innerHTML"], $s = /* @__PURE__ */ N({
|
|
1952
1955
|
__name: "TooltipV2",
|
|
1953
1956
|
props: {
|
|
1954
|
-
|
|
1957
|
+
title: {},
|
|
1958
|
+
description: {},
|
|
1955
1959
|
placement: { default: "top" },
|
|
1956
|
-
html: { type: Boolean, default: !1 },
|
|
1957
1960
|
contentClass: {},
|
|
1958
1961
|
delay: { default: 200 },
|
|
1959
1962
|
hideDelay: { default: 0 }
|
|
@@ -1978,7 +1981,7 @@ const xt = [
|
|
|
1978
1981
|
}, g = () => {
|
|
1979
1982
|
d();
|
|
1980
1983
|
};
|
|
1981
|
-
return (b,
|
|
1984
|
+
return (b, x) => (c(), f("div", {
|
|
1982
1985
|
ref_key: "tooltipWrapper",
|
|
1983
1986
|
ref: i,
|
|
1984
1987
|
class: "freddy-plugins-tooltip-v2-wrapper",
|
|
@@ -1999,13 +2002,21 @@ const xt = [
|
|
|
1999
2002
|
b.contentClass
|
|
2000
2003
|
]]),
|
|
2001
2004
|
role: "tooltip",
|
|
2002
|
-
"aria-label": b.
|
|
2005
|
+
"aria-label": b.title
|
|
2003
2006
|
}, [
|
|
2004
2007
|
q(b.$slots, "content", {}, () => [
|
|
2005
|
-
b.
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2008
|
+
b.title || b.description ? (c(), f("div", ws, [
|
|
2009
|
+
b.title ? (c(), f("div", {
|
|
2010
|
+
key: 0,
|
|
2011
|
+
class: "freddy-plugins-tooltip-v2-title",
|
|
2012
|
+
innerHTML: b.title
|
|
2013
|
+
}, null, 8, Ss)) : w("", !0),
|
|
2014
|
+
b.description ? (c(), f("div", {
|
|
2015
|
+
key: 1,
|
|
2016
|
+
class: "freddy-plugins-tooltip-v2-description",
|
|
2017
|
+
innerHTML: b.description
|
|
2018
|
+
}, null, 8, Ts)) : w("", !0)
|
|
2019
|
+
])) : w("", !0)
|
|
2009
2020
|
], !0)
|
|
2010
2021
|
], 10, Cs)) : w("", !0)
|
|
2011
2022
|
]),
|
|
@@ -2013,8 +2024,8 @@ const xt = [
|
|
|
2013
2024
|
})
|
|
2014
2025
|
], 544));
|
|
2015
2026
|
}
|
|
2016
|
-
}),
|
|
2017
|
-
class
|
|
2027
|
+
}), xs = /* @__PURE__ */ H($s, [["__scopeId", "data-v-7dd5798c"]]);
|
|
2028
|
+
class Ps {
|
|
2018
2029
|
constructor(m) {
|
|
2019
2030
|
ye(this, "apiKey", null);
|
|
2020
2031
|
ye(this, "baseUrl", "https://api.openai.com/v1");
|
|
@@ -2282,8 +2293,8 @@ User request: ${m}` : m, o = {
|
|
|
2282
2293
|
success: !1,
|
|
2283
2294
|
error: ((e = (await g.json().catch(() => ({}))).error) == null ? void 0 : e.message) || `API request failed with status ${g.status}: ${g.statusText}`
|
|
2284
2295
|
};
|
|
2285
|
-
const
|
|
2286
|
-
return
|
|
2296
|
+
const x = (u = (r = (l = (i = (await g.json()).output) == null ? void 0 : i[0]) == null ? void 0 : l.content) == null ? void 0 : r[0]) == null ? void 0 : u.text;
|
|
2297
|
+
return x ? this.processResponse(x, m, s) : {
|
|
2287
2298
|
success: !1,
|
|
2288
2299
|
error: "No response received from AI"
|
|
2289
2300
|
};
|
|
@@ -2311,48 +2322,48 @@ User request: ${m}` : m, o = {
|
|
|
2311
2322
|
};
|
|
2312
2323
|
}
|
|
2313
2324
|
}
|
|
2314
|
-
const ue = new
|
|
2325
|
+
const ue = new Ps(
|
|
2315
2326
|
"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"
|
|
2316
|
-
),
|
|
2327
|
+
), As = { class: "freddy-plugins-simple-chat-interface" }, Ds = { class: "freddy-plugins-messages-list" }, Fs = {
|
|
2317
2328
|
key: 0,
|
|
2318
2329
|
class: "freddy-plugins-user-message-container"
|
|
2319
|
-
},
|
|
2330
|
+
}, Bs = { class: "freddy-plugins-user-bubble" }, Ms = { class: "freddy-plugins-user-actions" }, Ls = {
|
|
2320
2331
|
class: "freddy-plugins-action-btn",
|
|
2321
2332
|
title: "Copy"
|
|
2322
|
-
},
|
|
2333
|
+
}, Vs = {
|
|
2323
2334
|
class: "freddy-plugins-action-btn",
|
|
2324
2335
|
title: "Edit"
|
|
2325
|
-
},
|
|
2336
|
+
}, Es = {
|
|
2326
2337
|
key: 1,
|
|
2327
2338
|
class: "freddy-plugins-assistant-message-container"
|
|
2328
|
-
},
|
|
2339
|
+
}, Ns = { class: "freddy-plugins-assistant-content" }, Rs = { class: "freddy-plugins-assistant-text" }, Os = {
|
|
2329
2340
|
key: 0,
|
|
2330
2341
|
class: "freddy-plugins-changes-card"
|
|
2331
|
-
},
|
|
2342
|
+
}, zs = { class: "freddy-plugins-changes-header" }, Hs = { class: "freddy-plugins-header-left" }, Us = { class: "freddy-plugins-change-title" }, js = {
|
|
2332
2343
|
key: 0,
|
|
2333
2344
|
class: "freddy-plugins-stat-added"
|
|
2334
|
-
},
|
|
2345
|
+
}, Ks = {
|
|
2335
2346
|
key: 1,
|
|
2336
2347
|
class: "freddy-plugins-stat-removed"
|
|
2337
|
-
},
|
|
2348
|
+
}, Gs = { class: "freddy-plugins-changes-content" }, Zs = { class: "freddy-plugins-content-description" }, qs = {
|
|
2338
2349
|
key: 0,
|
|
2339
2350
|
class: "freddy-plugins-content-actions"
|
|
2340
|
-
},
|
|
2351
|
+
}, Ws = ["onClick"], Js = ["onClick"], Qs = {
|
|
2341
2352
|
key: 1,
|
|
2342
2353
|
class: "freddy-plugins-applied-label"
|
|
2343
|
-
},
|
|
2354
|
+
}, Ys = { class: "freddy-plugins-assistant-actions" }, Xs = {
|
|
2344
2355
|
class: "freddy-plugins-action-btn",
|
|
2345
2356
|
title: "Refresh"
|
|
2346
|
-
},
|
|
2357
|
+
}, ei = {
|
|
2347
2358
|
class: "freddy-plugins-action-btn",
|
|
2348
2359
|
title: "Copy"
|
|
2349
|
-
},
|
|
2360
|
+
}, ti = {
|
|
2350
2361
|
class: "freddy-plugins-action-btn",
|
|
2351
2362
|
title: "Thumbs down"
|
|
2352
|
-
},
|
|
2363
|
+
}, oi = {
|
|
2353
2364
|
key: 0,
|
|
2354
2365
|
class: "freddy-plugins-processing-indicator"
|
|
2355
|
-
},
|
|
2366
|
+
}, ni = { class: "freddy-plugins-chat-input-area" }, si = { class: "freddy-plugins-folder-btn" }, ii = ["placeholder", "onKeydown"], ai = ["disabled"], li = /* @__PURE__ */ N({
|
|
2356
2367
|
__name: "SimpleChatInterface",
|
|
2357
2368
|
props: {
|
|
2358
2369
|
placeholder: {},
|
|
@@ -2397,7 +2408,7 @@ const ue = new xs(
|
|
|
2397
2408
|
default:
|
|
2398
2409
|
return "Text has been improved";
|
|
2399
2410
|
}
|
|
2400
|
-
},
|
|
2411
|
+
}, x = async (t) => {
|
|
2401
2412
|
var p, S;
|
|
2402
2413
|
if (!ue.isConfigured()) {
|
|
2403
2414
|
const _ = {
|
|
@@ -2465,7 +2476,7 @@ const ue = new xs(
|
|
|
2465
2476
|
sender: "user",
|
|
2466
2477
|
timestamp: /* @__PURE__ */ new Date()
|
|
2467
2478
|
};
|
|
2468
|
-
d.value.push(p), i("send", t), l.value = "", T(), k(), e.enableAI && await
|
|
2479
|
+
d.value.push(p), i("send", t), l.value = "", T(), k(), e.enableAI && await x(t);
|
|
2469
2480
|
}, v = () => {
|
|
2470
2481
|
l.value += `
|
|
2471
2482
|
`, T();
|
|
@@ -2505,74 +2516,74 @@ const ue = new xs(
|
|
|
2505
2516
|
};
|
|
2506
2517
|
d.value.push(n), k();
|
|
2507
2518
|
}
|
|
2508
|
-
}), (t, p) => (c(), f("div",
|
|
2519
|
+
}), (t, p) => (c(), f("div", As, [
|
|
2509
2520
|
a("div", {
|
|
2510
2521
|
ref_key: "messagesContainer",
|
|
2511
2522
|
ref: r,
|
|
2512
2523
|
class: "freddy-plugins-chat-messages"
|
|
2513
2524
|
}, [
|
|
2514
|
-
a("div",
|
|
2525
|
+
a("div", Ds, [
|
|
2515
2526
|
(c(!0), f(O, null, j(d.value, (S) => (c(), f("div", {
|
|
2516
2527
|
key: S.id,
|
|
2517
2528
|
class: F(["freddy-plugins-message", S.sender])
|
|
2518
2529
|
}, [
|
|
2519
|
-
S.sender === "user" ? (c(), f("div",
|
|
2520
|
-
a("div",
|
|
2521
|
-
a("div",
|
|
2522
|
-
a("button",
|
|
2530
|
+
S.sender === "user" ? (c(), f("div", Fs, [
|
|
2531
|
+
a("div", Bs, B(S.content), 1),
|
|
2532
|
+
a("div", Ms, [
|
|
2533
|
+
a("button", Ls, [
|
|
2523
2534
|
L(D(Se), { class: "freddy-plugins-action-icon" })
|
|
2524
2535
|
]),
|
|
2525
|
-
a("button",
|
|
2536
|
+
a("button", Vs, [
|
|
2526
2537
|
L(D(pe), { class: "freddy-plugins-action-icon" })
|
|
2527
2538
|
])
|
|
2528
2539
|
])
|
|
2529
|
-
])) : (c(), f("div",
|
|
2530
|
-
a("div",
|
|
2531
|
-
a("p",
|
|
2532
|
-
S.changes ? (c(), f("div",
|
|
2533
|
-
a("div",
|
|
2534
|
-
a("div",
|
|
2540
|
+
])) : (c(), f("div", Es, [
|
|
2541
|
+
a("div", Ns, [
|
|
2542
|
+
a("p", Rs, B(S.content), 1),
|
|
2543
|
+
S.changes ? (c(), f("div", Os, [
|
|
2544
|
+
a("div", zs, [
|
|
2545
|
+
a("div", Hs, [
|
|
2535
2546
|
L(D(ht), { class: "freddy-plugins-building-icon" }),
|
|
2536
|
-
a("span",
|
|
2537
|
-
S.changes.added > 0 ? (c(), f("span",
|
|
2538
|
-
S.changes.removed > 0 ? (c(), f("span",
|
|
2547
|
+
a("span", Us, B(S.changes.title || "Instructions"), 1),
|
|
2548
|
+
S.changes.added > 0 ? (c(), f("span", js, "+" + B(S.changes.added), 1)) : w("", !0),
|
|
2549
|
+
S.changes.removed > 0 ? (c(), f("span", Ks, "-" + B(S.changes.removed), 1)) : w("", !0),
|
|
2539
2550
|
p[1] || (p[1] = a("span", { class: "freddy-plugins-changes-applied" }, "Changes applied", -1))
|
|
2540
2551
|
])
|
|
2541
2552
|
]),
|
|
2542
|
-
a("div",
|
|
2553
|
+
a("div", Gs, [
|
|
2543
2554
|
p[5] || (p[5] = a("div", { class: "freddy-plugins-content-header" }, [
|
|
2544
2555
|
a("span", { class: "freddy-plugins-content-title" }, "Instructions")
|
|
2545
2556
|
], -1)),
|
|
2546
|
-
a("p",
|
|
2547
|
-
S.applied ? (c(), f("div",
|
|
2557
|
+
a("p", Zs, B(S.changes.description), 1),
|
|
2558
|
+
S.applied ? (c(), f("div", Qs, [
|
|
2548
2559
|
L(D(Te), { class: "freddy-plugins-applied-icon" }),
|
|
2549
2560
|
p[4] || (p[4] = J(" Applied ", -1))
|
|
2550
|
-
])) : (c(), f("div",
|
|
2561
|
+
])) : (c(), f("div", qs, [
|
|
2551
2562
|
a("button", {
|
|
2552
2563
|
class: "freddy-plugins-accept-btn",
|
|
2553
2564
|
onClick: (_) => I(S)
|
|
2554
2565
|
}, [
|
|
2555
2566
|
L(D(Te), { class: "freddy-plugins-btn-icon" }),
|
|
2556
2567
|
p[2] || (p[2] = J(" Accept ", -1))
|
|
2557
|
-
], 8,
|
|
2568
|
+
], 8, Ws),
|
|
2558
2569
|
a("button", {
|
|
2559
2570
|
class: "freddy-plugins-deny-btn",
|
|
2560
2571
|
onClick: (_) => C(S)
|
|
2561
2572
|
}, [
|
|
2562
2573
|
L(D(ee), { class: "freddy-plugins-btn-icon" }),
|
|
2563
2574
|
p[3] || (p[3] = J(" Deny ", -1))
|
|
2564
|
-
], 8,
|
|
2575
|
+
], 8, Js)
|
|
2565
2576
|
]))
|
|
2566
2577
|
])
|
|
2567
2578
|
])) : w("", !0),
|
|
2568
|
-
a("div",
|
|
2569
|
-
a("button",
|
|
2579
|
+
a("div", Ys, [
|
|
2580
|
+
a("button", Xs, [
|
|
2570
2581
|
L(D(ft), { class: "freddy-plugins-action-icon" })
|
|
2571
2582
|
]),
|
|
2572
|
-
a("button",
|
|
2583
|
+
a("button", ei, [
|
|
2573
2584
|
L(D(Se), { class: "freddy-plugins-action-icon" })
|
|
2574
2585
|
]),
|
|
2575
|
-
a("button",
|
|
2586
|
+
a("button", ti, [
|
|
2576
2587
|
L(D(mt), { class: "freddy-plugins-action-icon" })
|
|
2577
2588
|
])
|
|
2578
2589
|
])
|
|
@@ -2580,15 +2591,15 @@ const ue = new xs(
|
|
|
2580
2591
|
]))
|
|
2581
2592
|
], 2))), 128))
|
|
2582
2593
|
]),
|
|
2583
|
-
o.value ? (c(), f("div",
|
|
2594
|
+
o.value ? (c(), f("div", oi, [...p[6] || (p[6] = [
|
|
2584
2595
|
a("div", { class: "freddy-plugins-processing-content" }, [
|
|
2585
2596
|
a("div", { class: "freddy-plugins-processing-spinner" }),
|
|
2586
2597
|
a("span", { class: "freddy-plugins-processing-text" }, "AI is processing your request...")
|
|
2587
2598
|
], -1)
|
|
2588
2599
|
])])) : w("", !0)
|
|
2589
2600
|
], 512),
|
|
2590
|
-
a("div",
|
|
2591
|
-
a("button",
|
|
2601
|
+
a("div", ni, [
|
|
2602
|
+
a("button", si, [
|
|
2592
2603
|
L(D(vt), { class: "freddy-plugins-folder-icon" })
|
|
2593
2604
|
]),
|
|
2594
2605
|
Q(a("textarea", {
|
|
@@ -2603,7 +2614,7 @@ const ue = new xs(
|
|
|
2603
2614
|
z(U(v, ["shift", "exact"]), ["enter"])
|
|
2604
2615
|
],
|
|
2605
2616
|
onInput: T
|
|
2606
|
-
}, null, 40,
|
|
2617
|
+
}, null, 40, ii), [
|
|
2607
2618
|
[Y, l.value]
|
|
2608
2619
|
]),
|
|
2609
2620
|
a("button", {
|
|
@@ -2612,14 +2623,14 @@ const ue = new xs(
|
|
|
2612
2623
|
onClick: V
|
|
2613
2624
|
}, [
|
|
2614
2625
|
L(D(yt), { class: "freddy-plugins-send-icon" })
|
|
2615
|
-
], 8,
|
|
2626
|
+
], 8, ai)
|
|
2616
2627
|
])
|
|
2617
2628
|
]));
|
|
2618
2629
|
}
|
|
2619
|
-
}),
|
|
2630
|
+
}), ci = { class: "freddy-plugins-edit-excerpt-modal-content" }, ri = { class: "freddy-plugins-edit-excerpt-modal-header" }, di = { class: "freddy-plugins-edit-excerpt-modal-header-content" }, ui = { class: "freddy-plugins-edit-excerpt-modal-icon" }, pi = { class: "freddy-plugins-edit-excerpt-modal-text" }, hi = { class: "freddy-plugins-edit-excerpt-modal-title" }, fi = { class: "freddy-plugins-edit-excerpt-modal-subtitle" }, mi = { class: "freddy-plugins-edit-excerpt-modal-textarea-section" }, vi = { class: "freddy-plugins-edit-excerpt-modal-footer" }, yi = { class: "freddy-plugins-edit-excerpt-modal-footer-content" }, gi = {
|
|
2620
2631
|
key: 0,
|
|
2621
2632
|
class: "freddy-plugins-edit-excerpt-modal-ai-container"
|
|
2622
|
-
},
|
|
2633
|
+
}, Ii = /* @__PURE__ */ N({
|
|
2623
2634
|
__name: "EditFeaturedExcerptModal",
|
|
2624
2635
|
props: {
|
|
2625
2636
|
isVisible: {
|
|
@@ -2668,7 +2679,7 @@ const ue = new xs(
|
|
|
2668
2679
|
l.value = !1, r.value = [], e("cancel");
|
|
2669
2680
|
}, b = () => {
|
|
2670
2681
|
l.value = !0, e("toggleAI", l.value), e("askAI", i.value);
|
|
2671
|
-
},
|
|
2682
|
+
}, x = async (I) => {
|
|
2672
2683
|
}, V = (I) => {
|
|
2673
2684
|
I.changes && I.changes.data && I.changes.data.improvedText && (i.value, i.value = I.changes.data.improvedText, I.applied = !0);
|
|
2674
2685
|
}, v = (I) => {
|
|
@@ -2685,10 +2696,10 @@ const ue = new xs(
|
|
|
2685
2696
|
a("div", {
|
|
2686
2697
|
class: F(["freddy-plugins-edit-excerpt-modal-container", { "ai-active": l.value }])
|
|
2687
2698
|
}, [
|
|
2688
|
-
a("div",
|
|
2689
|
-
a("div",
|
|
2690
|
-
a("div",
|
|
2691
|
-
a("div",
|
|
2699
|
+
a("div", ci, [
|
|
2700
|
+
a("div", ri, [
|
|
2701
|
+
a("div", di, [
|
|
2702
|
+
a("div", ui, [
|
|
2692
2703
|
L(D(kt), {
|
|
2693
2704
|
class: "freddy-plugins-edit-excerpt-edit-icon",
|
|
2694
2705
|
"center-distance": 36,
|
|
@@ -2696,9 +2707,9 @@ const ue = new xs(
|
|
|
2696
2707
|
"show-circles": !0
|
|
2697
2708
|
})
|
|
2698
2709
|
]),
|
|
2699
|
-
a("div",
|
|
2700
|
-
a("h2",
|
|
2701
|
-
a("p",
|
|
2710
|
+
a("div", pi, [
|
|
2711
|
+
a("h2", hi, B(y.title), 1),
|
|
2712
|
+
a("p", fi, B(y.description), 1)
|
|
2702
2713
|
])
|
|
2703
2714
|
]),
|
|
2704
2715
|
a("button", {
|
|
@@ -2712,7 +2723,7 @@ const ue = new xs(
|
|
|
2712
2723
|
w("", !0),
|
|
2713
2724
|
C[1] || (C[1] = a("div", { class: "freddy-plugins-edit-excerpt-modal-header-spacing" }, null, -1))
|
|
2714
2725
|
]),
|
|
2715
|
-
a("div",
|
|
2726
|
+
a("div", mi, [
|
|
2716
2727
|
Q(a("textarea", {
|
|
2717
2728
|
"onUpdate:modelValue": C[0] || (C[0] = (P) => i.value = P),
|
|
2718
2729
|
class: "freddy-plugins-edit-excerpt-modal-textarea",
|
|
@@ -2722,8 +2733,8 @@ const ue = new xs(
|
|
|
2722
2733
|
[Y, i.value]
|
|
2723
2734
|
])
|
|
2724
2735
|
]),
|
|
2725
|
-
a("div",
|
|
2726
|
-
a("div",
|
|
2736
|
+
a("div", vi, [
|
|
2737
|
+
a("div", yi, [
|
|
2727
2738
|
l.value ? w("", !0) : (c(), f("button", {
|
|
2728
2739
|
key: 0,
|
|
2729
2740
|
class: "freddy-plugins-edit-excerpt-modal-ai-btn",
|
|
@@ -2745,8 +2756,8 @@ const ue = new xs(
|
|
|
2745
2756
|
])
|
|
2746
2757
|
])
|
|
2747
2758
|
]),
|
|
2748
|
-
l.value ? (c(), f("div",
|
|
2749
|
-
L(
|
|
2759
|
+
l.value ? (c(), f("div", gi, [
|
|
2760
|
+
L(li, {
|
|
2750
2761
|
ref_key: "chatRef",
|
|
2751
2762
|
ref: u,
|
|
2752
2763
|
placeholder: "Type here...",
|
|
@@ -2754,7 +2765,7 @@ const ue = new xs(
|
|
|
2754
2765
|
"enable-a-i": !0,
|
|
2755
2766
|
"openai-api-key": y.openaiApiKey,
|
|
2756
2767
|
"text-box-content": i.value,
|
|
2757
|
-
onSend:
|
|
2768
|
+
onSend: x,
|
|
2758
2769
|
onAcceptChanges: V,
|
|
2759
2770
|
onDenyChanges: v,
|
|
2760
2771
|
onTextReplacement: T,
|
|
@@ -2767,16 +2778,16 @@ const ue = new xs(
|
|
|
2767
2778
|
_: 1
|
|
2768
2779
|
}));
|
|
2769
2780
|
}
|
|
2770
|
-
}), Ie = /* @__PURE__ */ H(
|
|
2781
|
+
}), Ie = /* @__PURE__ */ H(Ii, [["__scopeId", "data-v-d2e675b0"]]), bi = { class: "freddy-plugins-textarea-input-field-wrapper" }, ki = { class: "freddy-plugins-textarea-input-container" }, _i = { class: "freddy-plugins-textarea-header" }, Ci = { class: "freddy-plugins-textarea-label-wrapper" }, wi = { class: "freddy-plugins-textarea-label-container" }, Si = {
|
|
2771
2782
|
key: 0,
|
|
2772
2783
|
class: "freddy-plugins-textarea-required"
|
|
2773
|
-
},
|
|
2784
|
+
}, Ti = { class: "freddy-plugins-textarea-input-wrapper" }, $i = ["placeholder", "disabled", "readonly"], xi = {
|
|
2774
2785
|
key: 1,
|
|
2775
2786
|
class: "freddy-plugins-textarea-diff-container"
|
|
2776
|
-
},
|
|
2787
|
+
}, Pi = { class: "freddy-plugins-textarea-diff-content" }, Ai = { class: "freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old" }, Di = { class: "freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new" }, Fi = {
|
|
2777
2788
|
key: 2,
|
|
2778
2789
|
class: "freddy-plugins-textarea-tags-container"
|
|
2779
|
-
},
|
|
2790
|
+
}, Bi = { class: "freddy-plugins-textarea-tags" }, Mi = { class: "freddy-plugins-textarea-tag-content" }, Li = ["onClick", "onKeydown", "aria-label"], Vi = /* @__PURE__ */ N({
|
|
2780
2791
|
__name: "TextAreaInputField",
|
|
2781
2792
|
props: {
|
|
2782
2793
|
modelValue: { default: "" },
|
|
@@ -2785,8 +2796,8 @@ const ue = new xs(
|
|
|
2785
2796
|
disabled: { type: Boolean, default: !1 },
|
|
2786
2797
|
readonly: { type: Boolean, default: !1 },
|
|
2787
2798
|
required: { type: Boolean, default: !1 },
|
|
2788
|
-
|
|
2789
|
-
|
|
2799
|
+
tooltipTitle: { default: "" },
|
|
2800
|
+
tooltipDescription: { default: "" },
|
|
2790
2801
|
showAiButton: { type: Boolean, default: !0 },
|
|
2791
2802
|
showTags: { type: Boolean, default: !1 },
|
|
2792
2803
|
tags: { default: () => [] },
|
|
@@ -2812,67 +2823,68 @@ const ue = new xs(
|
|
|
2812
2823
|
setup(y, { expose: m, emit: s }) {
|
|
2813
2824
|
const e = y, i = s, l = A(null), r = A(
|
|
2814
2825
|
null
|
|
2815
|
-
), u = A(e.modelValue), d = A(""), o = A(!1), g = A("expand"), b = A(!1),
|
|
2826
|
+
), u = A(e.modelValue), d = A(""), o = A(!1), g = A("expand"), b = A(!1), x = M(() => e.showTags && e.tags.length > 0 ? "" : e.placeholder);
|
|
2816
2827
|
G(
|
|
2817
2828
|
() => e.modelValue,
|
|
2818
|
-
(
|
|
2819
|
-
u.value =
|
|
2829
|
+
($) => {
|
|
2830
|
+
u.value = $;
|
|
2820
2831
|
}
|
|
2821
2832
|
);
|
|
2822
2833
|
const V = () => {
|
|
2823
2834
|
i("update:modelValue", u.value), i("input", u.value);
|
|
2824
|
-
}, v = (
|
|
2825
|
-
b.value = !0, i("focus",
|
|
2826
|
-
}, T = (
|
|
2827
|
-
b.value = !1, i("blur",
|
|
2828
|
-
}, k = (
|
|
2835
|
+
}, v = ($) => {
|
|
2836
|
+
b.value = !0, i("focus", $);
|
|
2837
|
+
}, T = ($) => {
|
|
2838
|
+
b.value = !1, i("blur", $);
|
|
2839
|
+
}, k = ($) => {
|
|
2829
2840
|
}, I = () => {
|
|
2830
2841
|
e.tagsOnly && i("tags-click");
|
|
2831
2842
|
}, C = () => {
|
|
2832
2843
|
i("tooltip-click");
|
|
2833
|
-
}, P = (
|
|
2834
|
-
(
|
|
2844
|
+
}, P = ($) => {
|
|
2845
|
+
($.key === "Enter" || $.key === " ") && ($.preventDefault(), C());
|
|
2835
2846
|
}, h = () => {
|
|
2836
2847
|
d.value = u.value, g.value = "ai", o.value = !0, i("ask-ai", u.value);
|
|
2837
|
-
}, t = (
|
|
2838
|
-
(
|
|
2848
|
+
}, t = ($) => {
|
|
2849
|
+
($.key === "Enter" || $.key === " ") && ($.preventDefault(), h());
|
|
2839
2850
|
}, p = () => {
|
|
2840
2851
|
d.value = u.value, g.value = "expand", o.value = !0, i("expand", u.value);
|
|
2841
|
-
}, S = (
|
|
2842
|
-
(
|
|
2843
|
-
}, _ = (
|
|
2844
|
-
i("remove-tag",
|
|
2845
|
-
}, n = (
|
|
2846
|
-
(
|
|
2852
|
+
}, S = ($) => {
|
|
2853
|
+
($.key === "Enter" || $.key === " ") && ($.preventDefault(), p());
|
|
2854
|
+
}, _ = ($) => {
|
|
2855
|
+
i("remove-tag", $);
|
|
2856
|
+
}, n = ($, de) => {
|
|
2857
|
+
($.key === "Enter" || $.key === " ") && ($.preventDefault(), _(de));
|
|
2847
2858
|
}, W = () => {
|
|
2848
2859
|
u.value = d.value, i("update:modelValue", d.value), i("input", d.value), o.value = !1;
|
|
2849
|
-
}, X = (
|
|
2850
|
-
u.value =
|
|
2860
|
+
}, X = ($) => {
|
|
2861
|
+
u.value = $, i("update:modelValue", $), i("input", $), o.value = !1;
|
|
2851
2862
|
}, Ce = () => {
|
|
2852
2863
|
u.value = d.value, i("update:modelValue", d.value), i("input", d.value), o.value = !1;
|
|
2853
2864
|
}, Re = () => {
|
|
2854
2865
|
i("ask-ai", u.value);
|
|
2855
|
-
}, Oe = (
|
|
2866
|
+
}, Oe = ($) => {
|
|
2856
2867
|
};
|
|
2857
2868
|
return m({
|
|
2858
2869
|
focus: () => {
|
|
2859
|
-
var
|
|
2860
|
-
(
|
|
2870
|
+
var $;
|
|
2871
|
+
($ = l.value) == null || $.focus();
|
|
2861
2872
|
}
|
|
2862
|
-
}), (
|
|
2863
|
-
a("div",
|
|
2864
|
-
a("div",
|
|
2865
|
-
a("div",
|
|
2866
|
-
a("div",
|
|
2873
|
+
}), ($, de) => (c(), f("div", bi, [
|
|
2874
|
+
a("div", ki, [
|
|
2875
|
+
a("div", _i, [
|
|
2876
|
+
a("div", Ci, [
|
|
2877
|
+
a("div", wi, [
|
|
2867
2878
|
a("label", {
|
|
2868
2879
|
class: F(["freddy-plugins-textarea-label", {
|
|
2869
|
-
"freddy-plugins-textarea-label--underlined":
|
|
2880
|
+
"freddy-plugins-textarea-label--underlined": $.showUnderlines
|
|
2870
2881
|
}])
|
|
2871
|
-
}, B(
|
|
2872
|
-
|
|
2873
|
-
|
|
2882
|
+
}, B($.dynamicTitle || $.label), 3),
|
|
2883
|
+
$.required ? (c(), f("span", Si, "*")) : w("", !0),
|
|
2884
|
+
$.$slots.tooltip ? q($.$slots, "tooltip", { key: 1 }, void 0, !0) : $.tooltipTitle || $.tooltipDescription ? (c(), E(xs, {
|
|
2874
2885
|
key: 2,
|
|
2875
|
-
|
|
2886
|
+
title: $.tooltipTitle,
|
|
2887
|
+
description: $.tooltipDescription,
|
|
2876
2888
|
placement: "top"
|
|
2877
2889
|
}, {
|
|
2878
2890
|
default: Z(() => [
|
|
@@ -2888,10 +2900,10 @@ const ue = new xs(
|
|
|
2888
2900
|
], 32)
|
|
2889
2901
|
]),
|
|
2890
2902
|
_: 1
|
|
2891
|
-
}, 8, ["
|
|
2903
|
+
}, 8, ["title", "description"])) : w("", !0)
|
|
2892
2904
|
])
|
|
2893
2905
|
]),
|
|
2894
|
-
|
|
2906
|
+
$.showAiButton ? (c(), f("button", {
|
|
2895
2907
|
key: 0,
|
|
2896
2908
|
type: "button",
|
|
2897
2909
|
class: "freddy-plugins-textarea-ai-button",
|
|
@@ -2903,46 +2915,46 @@ const ue = new xs(
|
|
|
2903
2915
|
L(D(Fe), { class: "freddy-plugins-textarea-ai-icon" })
|
|
2904
2916
|
], 32)) : w("", !0)
|
|
2905
2917
|
]),
|
|
2906
|
-
a("div",
|
|
2907
|
-
|
|
2918
|
+
a("div", Ti, [
|
|
2919
|
+
$.diffMode ? w("", !0) : Q((c(), f("textarea", {
|
|
2908
2920
|
key: 0,
|
|
2909
2921
|
ref_key: "textareaRef",
|
|
2910
2922
|
ref: l,
|
|
2911
2923
|
"onUpdate:modelValue": de[0] || (de[0] = (ie) => u.value = ie),
|
|
2912
2924
|
class: F(["freddy-plugins-textarea-input", {
|
|
2913
|
-
"freddy-plugins-textarea-input--error":
|
|
2914
|
-
"freddy-plugins-textarea-input--disabled":
|
|
2925
|
+
"freddy-plugins-textarea-input--error": $.hasError,
|
|
2926
|
+
"freddy-plugins-textarea-input--disabled": $.disabled,
|
|
2915
2927
|
"freddy-plugins-textarea-input--focused": b.value,
|
|
2916
|
-
"freddy-plugins-textarea-input--with-tags":
|
|
2917
|
-
"freddy-plugins-textarea-input--tags-only":
|
|
2928
|
+
"freddy-plugins-textarea-input--with-tags": $.showTags && $.tags.length > 0,
|
|
2929
|
+
"freddy-plugins-textarea-input--tags-only": $.tagsOnly
|
|
2918
2930
|
}]),
|
|
2919
|
-
placeholder:
|
|
2920
|
-
disabled:
|
|
2921
|
-
readonly:
|
|
2931
|
+
placeholder: x.value,
|
|
2932
|
+
disabled: $.disabled,
|
|
2933
|
+
readonly: $.readonly || $.tagsOnly,
|
|
2922
2934
|
onInput: V,
|
|
2923
2935
|
onFocus: v,
|
|
2924
2936
|
onBlur: T,
|
|
2925
2937
|
onKeydown: k,
|
|
2926
2938
|
onClick: I
|
|
2927
|
-
}, null, 42,
|
|
2939
|
+
}, null, 42, $i)), [
|
|
2928
2940
|
[Y, u.value]
|
|
2929
2941
|
]),
|
|
2930
|
-
|
|
2931
|
-
a("div",
|
|
2932
|
-
a("div",
|
|
2933
|
-
a("div",
|
|
2942
|
+
$.diffMode ? (c(), f("div", xi, [
|
|
2943
|
+
a("div", Pi, [
|
|
2944
|
+
a("div", Ai, B($.oldText), 1),
|
|
2945
|
+
a("div", Di, B($.newText), 1)
|
|
2934
2946
|
])
|
|
2935
2947
|
])) : w("", !0),
|
|
2936
|
-
|
|
2937
|
-
a("div",
|
|
2938
|
-
(c(!0), f(O, null, j(
|
|
2948
|
+
$.showTags && $.tags.length > 0 ? (c(), f("div", Fi, [
|
|
2949
|
+
a("div", Bi, [
|
|
2950
|
+
(c(!0), f(O, null, j($.tags, (ie, ve) => (c(), f("div", {
|
|
2939
2951
|
key: `${ie}-${ve}`,
|
|
2940
2952
|
class: "freddy-plugins-textarea-tag"
|
|
2941
2953
|
}, [
|
|
2942
|
-
a("div",
|
|
2954
|
+
a("div", Mi, [
|
|
2943
2955
|
a("span", {
|
|
2944
2956
|
class: F(["freddy-plugins-textarea-tag-text", {
|
|
2945
|
-
"freddy-plugins-textarea-tag-text--underlined":
|
|
2957
|
+
"freddy-plugins-textarea-tag-text--underlined": $.showUnderlines
|
|
2946
2958
|
}])
|
|
2947
2959
|
}, B(ie), 3)
|
|
2948
2960
|
]),
|
|
@@ -2955,15 +2967,15 @@ const ue = new xs(
|
|
|
2955
2967
|
tabindex: "0"
|
|
2956
2968
|
}, [
|
|
2957
2969
|
L(D(ee), { class: "freddy-plugins-textarea-tag-close-icon" })
|
|
2958
|
-
], 40,
|
|
2970
|
+
], 40, Li)
|
|
2959
2971
|
]))), 128))
|
|
2960
2972
|
]),
|
|
2961
|
-
|
|
2973
|
+
$.showAddTagsPlaceholder ? (c(), f("span", {
|
|
2962
2974
|
key: 0,
|
|
2963
2975
|
class: F(["freddy-plugins-textarea-add-tags", {
|
|
2964
|
-
"freddy-plugins-textarea-add-tags--underlined":
|
|
2976
|
+
"freddy-plugins-textarea-add-tags--underlined": $.showUnderlines
|
|
2965
2977
|
}])
|
|
2966
|
-
}, B(
|
|
2978
|
+
}, B($.addTagsPlaceholder), 3)) : w("", !0)
|
|
2967
2979
|
])) : w("", !0),
|
|
2968
2980
|
a("button", {
|
|
2969
2981
|
type: "button",
|
|
@@ -2977,29 +2989,29 @@ const ue = new xs(
|
|
|
2977
2989
|
], 32)
|
|
2978
2990
|
])
|
|
2979
2991
|
]),
|
|
2980
|
-
|
|
2992
|
+
$.showHint && $.hintText && !$.hasError ? (c(), f("p", {
|
|
2981
2993
|
key: 0,
|
|
2982
2994
|
class: F(["freddy-plugins-textarea-hint-text", {
|
|
2983
|
-
"freddy-plugins-textarea-hint-text--underlined":
|
|
2995
|
+
"freddy-plugins-textarea-hint-text--underlined": $.showUnderlines
|
|
2984
2996
|
}])
|
|
2985
|
-
}, B(
|
|
2986
|
-
|
|
2997
|
+
}, B($.hintText), 3)) : w("", !0),
|
|
2998
|
+
$.hasError && $.errorMessage ? (c(), f("p", {
|
|
2987
2999
|
key: 1,
|
|
2988
3000
|
class: F(["freddy-plugins-textarea-error-text", {
|
|
2989
|
-
"freddy-plugins-textarea-error-text--underlined":
|
|
3001
|
+
"freddy-plugins-textarea-error-text--underlined": $.showUnderlines
|
|
2990
3002
|
}])
|
|
2991
|
-
}, B(
|
|
3003
|
+
}, B($.errorMessage), 3)) : w("", !0),
|
|
2992
3004
|
g.value === "ai" ? (c(), E(Ie, {
|
|
2993
3005
|
key: 2,
|
|
2994
3006
|
ref_key: "aiModalRef",
|
|
2995
3007
|
ref: r,
|
|
2996
3008
|
"is-visible": o.value && g.value === "ai",
|
|
2997
|
-
title:
|
|
2998
|
-
description:
|
|
3009
|
+
title: $.modalTitle,
|
|
3010
|
+
description: $.modalDescription,
|
|
2999
3011
|
"initial-content": u.value,
|
|
3000
|
-
"openai-api-key":
|
|
3001
|
-
"openai-model":
|
|
3002
|
-
"openai-organization":
|
|
3012
|
+
"openai-api-key": $.openaiApiKey,
|
|
3013
|
+
"openai-model": $.openaiModel,
|
|
3014
|
+
"openai-organization": $.openaiOrganization,
|
|
3003
3015
|
"auto-show-a-i": !0,
|
|
3004
3016
|
onClose: W,
|
|
3005
3017
|
onSave: X,
|
|
@@ -3010,11 +3022,11 @@ const ue = new xs(
|
|
|
3010
3022
|
g.value === "expand" ? (c(), E(Ie, {
|
|
3011
3023
|
key: 3,
|
|
3012
3024
|
"is-visible": o.value && g.value === "expand",
|
|
3013
|
-
title:
|
|
3014
|
-
description:
|
|
3025
|
+
title: $.modalTitle,
|
|
3026
|
+
description: $.modalDescription,
|
|
3015
3027
|
"initial-content": u.value,
|
|
3016
3028
|
"openai-api-key": "",
|
|
3017
|
-
"openai-model":
|
|
3029
|
+
"openai-model": $.openaiModel,
|
|
3018
3030
|
"openai-organization": "",
|
|
3019
3031
|
onClose: W,
|
|
3020
3032
|
onSave: X,
|
|
@@ -3022,7 +3034,7 @@ const ue = new xs(
|
|
|
3022
3034
|
}, null, 8, ["is-visible", "title", "description", "initial-content", "openai-model"])) : w("", !0)
|
|
3023
3035
|
]));
|
|
3024
3036
|
}
|
|
3025
|
-
}),
|
|
3037
|
+
}), Ei = /* @__PURE__ */ H(Vi, [["__scopeId", "data-v-be1e5f9b"]]), Ni = /* @__PURE__ */ N({
|
|
3026
3038
|
__name: "Descriptions",
|
|
3027
3039
|
props: {
|
|
3028
3040
|
modelValue: { default: "" },
|
|
@@ -3072,7 +3084,7 @@ const ue = new xs(
|
|
|
3072
3084
|
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);
|
|
3073
3085
|
const b = (p) => {
|
|
3074
3086
|
l.value = p, i("update:modelValue", p);
|
|
3075
|
-
},
|
|
3087
|
+
}, x = (p) => {
|
|
3076
3088
|
i("input", p);
|
|
3077
3089
|
}, V = (p) => {
|
|
3078
3090
|
i("focus", p);
|
|
@@ -3094,7 +3106,7 @@ const ue = new xs(
|
|
|
3094
3106
|
return m({
|
|
3095
3107
|
focus: () => {
|
|
3096
3108
|
}
|
|
3097
|
-
}), (p, S) => (c(), E(
|
|
3109
|
+
}), (p, S) => (c(), E(Ei, {
|
|
3098
3110
|
modelValue: l.value,
|
|
3099
3111
|
"onUpdate:modelValue": [
|
|
3100
3112
|
S[0] || (S[0] = (_) => l.value = _),
|
|
@@ -3127,7 +3139,7 @@ const ue = new xs(
|
|
|
3127
3139
|
"old-text": p.oldText,
|
|
3128
3140
|
"new-text": p.newText,
|
|
3129
3141
|
"tags-only": p.tagsOnly,
|
|
3130
|
-
onInput:
|
|
3142
|
+
onInput: x,
|
|
3131
3143
|
onFocus: V,
|
|
3132
3144
|
onBlur: v,
|
|
3133
3145
|
onAskAi: T,
|
|
@@ -3138,7 +3150,7 @@ const ue = new xs(
|
|
|
3138
3150
|
onTagsClick: h
|
|
3139
3151
|
}, null, 8, ["modelValue", "label", "placeholder", "disabled", "readonly", "required", "show-tooltip", "tooltip-text", "show-ai-button", "show-tags", "tags", "show-add-tags-placeholder", "add-tags-placeholder", "hint-text", "has-error", "error-message", "modal-title", "modal-description", "openai-api-key", "openai-model", "openai-organization", "show-underlines", "dynamic-title", "show-hint", "diff-mode", "old-text", "new-text", "tags-only"]));
|
|
3140
3152
|
}
|
|
3141
|
-
}),
|
|
3153
|
+
}), rc = /* @__PURE__ */ H(Ni, [["__scopeId", "data-v-19ded011"]]), Ri = { class: "freddy-plugins-diff-container" }, Oi = ["innerHTML"], zi = ["placeholder"], Hi = /* @__PURE__ */ N({
|
|
3142
3154
|
__name: "DiffTextarea",
|
|
3143
3155
|
props: {
|
|
3144
3156
|
modelValue: {},
|
|
@@ -3162,8 +3174,8 @@ const ue = new xs(
|
|
|
3162
3174
|
if (!e.originalText || !e.improvedText) return "";
|
|
3163
3175
|
const o = e.originalText.split(/(\s+)/), g = e.improvedText.split(/(\s+)/);
|
|
3164
3176
|
let b = "";
|
|
3165
|
-
const
|
|
3166
|
-
|
|
3177
|
+
const x = o.filter((v) => !g.includes(v) && v.trim()).join(" ");
|
|
3178
|
+
x && (b += `<span class="freddy-plugins-diff-removed">${x}</span>`);
|
|
3167
3179
|
const V = g.filter((v) => !o.includes(v) && v.trim()).join(" ");
|
|
3168
3180
|
return V && (b && (b += "<br>"), b += `<span class="freddy-plugins-diff-added">${V}</span>`), b || (b = `<span class="freddy-plugins-diff-improved">${e.improvedText}</span>`), b;
|
|
3169
3181
|
});
|
|
@@ -3176,12 +3188,12 @@ const ue = new xs(
|
|
|
3176
3188
|
var o;
|
|
3177
3189
|
return (o = l.value) == null ? void 0 : o.blur();
|
|
3178
3190
|
}
|
|
3179
|
-
}), (o, g) => (c(), f("div",
|
|
3191
|
+
}), (o, g) => (c(), f("div", Ri, [
|
|
3180
3192
|
o.showDiff && d.value ? (c(), f("div", {
|
|
3181
3193
|
key: 0,
|
|
3182
3194
|
class: "freddy-plugins-diff-preview",
|
|
3183
3195
|
innerHTML: d.value
|
|
3184
|
-
}, null, 8,
|
|
3196
|
+
}, null, 8, Oi)) : Q((c(), f("textarea", {
|
|
3185
3197
|
key: 1,
|
|
3186
3198
|
ref_key: "textareaRef",
|
|
3187
3199
|
ref: l,
|
|
@@ -3189,12 +3201,12 @@ const ue = new xs(
|
|
|
3189
3201
|
class: "freddy-plugins-diff-textarea",
|
|
3190
3202
|
placeholder: o.placeholder,
|
|
3191
3203
|
onInput: u
|
|
3192
|
-
}, null, 40,
|
|
3204
|
+
}, null, 40, zi)), [
|
|
3193
3205
|
[Y, r.value]
|
|
3194
3206
|
])
|
|
3195
3207
|
]));
|
|
3196
3208
|
}
|
|
3197
|
-
}),
|
|
3209
|
+
}), dc = /* @__PURE__ */ H(Hi, [["__scopeId", "data-v-54efeaf3"]]), Ui = ["aria-checked", "tabindex", "onKeydown", "disabled"], ji = /* @__PURE__ */ N({
|
|
3198
3210
|
__name: "Switch",
|
|
3199
3211
|
props: {
|
|
3200
3212
|
modelValue: { type: Boolean },
|
|
@@ -3226,18 +3238,18 @@ const ue = new xs(
|
|
|
3226
3238
|
}, [...r[0] || (r[0] = [
|
|
3227
3239
|
a("span", { class: "freddy-plugins-switch__track" }, null, -1),
|
|
3228
3240
|
a("span", { class: "freddy-plugins-switch__thumb" }, null, -1)
|
|
3229
|
-
])], 42,
|
|
3241
|
+
])], 42, Ui));
|
|
3230
3242
|
}
|
|
3231
|
-
}),
|
|
3243
|
+
}), Ki = {
|
|
3232
3244
|
key: 0,
|
|
3233
3245
|
class: "freddy-plugins-dropdown-search-bar"
|
|
3234
|
-
},
|
|
3246
|
+
}, Gi = ["placeholder"], Zi = { class: "freddy-plugins-dropdown-options" }, qi = ["onClick"], Wi = { class: "freddy-plugins-dropdown-option-label" }, Ji = {
|
|
3235
3247
|
key: 1,
|
|
3236
3248
|
class: "freddy-plugins-dropdown-option-shortcut"
|
|
3237
|
-
},
|
|
3249
|
+
}, Qi = {
|
|
3238
3250
|
key: 0,
|
|
3239
3251
|
class: "freddy-plugins-dropdown-no-options"
|
|
3240
|
-
},
|
|
3252
|
+
}, uc = /* @__PURE__ */ N({
|
|
3241
3253
|
__name: "Dropdown",
|
|
3242
3254
|
props: {
|
|
3243
3255
|
label: { default: "Select" },
|
|
@@ -3282,21 +3294,21 @@ const ue = new xs(
|
|
|
3282
3294
|
);
|
|
3283
3295
|
const o = M(() => s.label !== "Select" ? s.label : r.value ? r.value.label : "Select"), g = M(() => s.showIcon ? s.customIcon ? s.customIcon : s.openUp ? Be : ae : null), b = () => {
|
|
3284
3296
|
i.value = !i.value, i.value || (l.value = "");
|
|
3285
|
-
},
|
|
3297
|
+
}, x = () => {
|
|
3286
3298
|
i.value = !1, l.value = "";
|
|
3287
3299
|
}, V = M(() => !s.searchable || !l.value ? u.value : u.value.filter(
|
|
3288
3300
|
(C) => C.label.toLowerCase().includes(l.value.toLowerCase())
|
|
3289
3301
|
)), v = (C, P) => {
|
|
3290
3302
|
C.type !== "toggle" && T(C);
|
|
3291
3303
|
}, T = (C) => {
|
|
3292
|
-
r.value = C, e("select", C), s.stayOpen ||
|
|
3304
|
+
r.value = C, e("select", C), s.stayOpen || x();
|
|
3293
3305
|
}, k = (C, P) => {
|
|
3294
3306
|
const h = u.value.findIndex(
|
|
3295
3307
|
(t) => t.value === C.value
|
|
3296
3308
|
);
|
|
3297
3309
|
h !== -1 && (u.value[h].checked = P), e("toggle", { ...C, checked: P });
|
|
3298
3310
|
}, I = (C) => {
|
|
3299
|
-
C.target.closest(".freddy-plugins-dropdown-wrapper") ||
|
|
3311
|
+
C.target.closest(".freddy-plugins-dropdown-wrapper") || x();
|
|
3300
3312
|
};
|
|
3301
3313
|
return G(i, (C) => {
|
|
3302
3314
|
C ? setTimeout(() => {
|
|
@@ -3304,7 +3316,7 @@ const ue = new xs(
|
|
|
3304
3316
|
}, 0) : document.removeEventListener("click", I);
|
|
3305
3317
|
}), (C, P) => (c(), f("div", {
|
|
3306
3318
|
class: "freddy-plugins-dropdown-wrapper",
|
|
3307
|
-
onKeydown: z(
|
|
3319
|
+
onKeydown: z(x, ["esc"]),
|
|
3308
3320
|
tabindex: "0"
|
|
3309
3321
|
}, [
|
|
3310
3322
|
L(Ne, {
|
|
@@ -3334,17 +3346,17 @@ const ue = new xs(
|
|
|
3334
3346
|
"freddy-plugins-dropdown-menu--down": !C.openUp
|
|
3335
3347
|
}])
|
|
3336
3348
|
}, [
|
|
3337
|
-
C.searchable ? (c(), f("div",
|
|
3349
|
+
C.searchable ? (c(), f("div", Ki, [
|
|
3338
3350
|
Q(a("input", {
|
|
3339
3351
|
"onUpdate:modelValue": P[0] || (P[0] = (h) => l.value = h),
|
|
3340
3352
|
type: "text",
|
|
3341
3353
|
class: "freddy-plugins-dropdown-search-input",
|
|
3342
3354
|
placeholder: C.searchPlaceholder
|
|
3343
|
-
}, null, 8,
|
|
3355
|
+
}, null, 8, Gi), [
|
|
3344
3356
|
[Y, l.value]
|
|
3345
3357
|
])
|
|
3346
3358
|
])) : w("", !0),
|
|
3347
|
-
a("ul",
|
|
3359
|
+
a("ul", Zi, [
|
|
3348
3360
|
(c(!0), f(O, null, j(V.value, (h) => (c(), f("li", {
|
|
3349
3361
|
key: h.value,
|
|
3350
3362
|
class: F(["freddy-plugins-dropdown-option", {
|
|
@@ -3352,19 +3364,19 @@ const ue = new xs(
|
|
|
3352
3364
|
}]),
|
|
3353
3365
|
onClick: (t) => v(h)
|
|
3354
3366
|
}, [
|
|
3355
|
-
a("span",
|
|
3367
|
+
a("span", Wi, [
|
|
3356
3368
|
!C.optionIconRight && h.icon ? (c(), E(K(h.icon), {
|
|
3357
3369
|
key: 0,
|
|
3358
3370
|
class: "freddy-plugins-dropdown-option-icon"
|
|
3359
3371
|
})) : w("", !0),
|
|
3360
3372
|
a("span", null, B(h.label), 1),
|
|
3361
|
-
C.showShortcut && h.shortcut ? (c(), f("span",
|
|
3373
|
+
C.showShortcut && h.shortcut ? (c(), f("span", Ji, B(h.shortcut), 1)) : w("", !0),
|
|
3362
3374
|
C.optionIconRight && h.icon ? (c(), E(K(h.icon), {
|
|
3363
3375
|
key: 2,
|
|
3364
3376
|
class: "freddy-plugins-dropdown-option-icon freddy-plugins-dropdown-option-icon--right"
|
|
3365
3377
|
})) : w("", !0)
|
|
3366
3378
|
]),
|
|
3367
|
-
h.type === "toggle" ? (c(), E(
|
|
3379
|
+
h.type === "toggle" ? (c(), E(ji, {
|
|
3368
3380
|
key: 0,
|
|
3369
3381
|
modelValue: h.checked ?? !1,
|
|
3370
3382
|
size: s.size,
|
|
@@ -3374,8 +3386,8 @@ const ue = new xs(
|
|
|
3374
3386
|
onClick: P[1] || (P[1] = U(() => {
|
|
3375
3387
|
}, ["stop"]))
|
|
3376
3388
|
}, null, 8, ["modelValue", "size", "onUpdate:modelValue"])) : w("", !0)
|
|
3377
|
-
], 10,
|
|
3378
|
-
V.value.length === 0 ? (c(), f("li",
|
|
3389
|
+
], 10, qi))), 128)),
|
|
3390
|
+
V.value.length === 0 ? (c(), f("li", Qi, [
|
|
3379
3391
|
q(C.$slots, "no-options", {}, () => [
|
|
3380
3392
|
P[2] || (P[2] = J("No options", -1))
|
|
3381
3393
|
])
|
|
@@ -3384,10 +3396,10 @@ const ue = new xs(
|
|
|
3384
3396
|
], 2)) : w("", !0)
|
|
3385
3397
|
], 32));
|
|
3386
3398
|
}
|
|
3387
|
-
}),
|
|
3399
|
+
}), Yi = { class: "verification-container" }, Xi = { class: "verification-header" }, ea = { class: "verification-subtitle" }, ta = { class: "code-input-container" }, oa = { class: "code-inputs" }, na = ["onUpdate:modelValue", "onInput", "onKeydown", "disabled"], sa = { class: "verification-actions" }, ia = {
|
|
3388
3400
|
key: 0,
|
|
3389
3401
|
class: "error-message"
|
|
3390
|
-
},
|
|
3402
|
+
}, aa = { class: "verification-footer" }, la = { class: "resend-text" }, ca = ["disabled"], pc = /* @__PURE__ */ N({
|
|
3391
3403
|
__name: "EmailCodeVerification",
|
|
3392
3404
|
props: {
|
|
3393
3405
|
email: {},
|
|
@@ -3398,7 +3410,7 @@ const ue = new xs(
|
|
|
3398
3410
|
},
|
|
3399
3411
|
emits: ["verify", "resend"],
|
|
3400
3412
|
setup(y, { emit: m }) {
|
|
3401
|
-
const s = y, { brand: e, loading: i, error: l, resendCooldown: r } = s, u = m, d = A(["", "", "", ""]), o = A([]), g = M(() => d.value.every((I) => I !== "")), b = M(() => d.value.join("")),
|
|
3413
|
+
const s = y, { brand: e, loading: i, error: l, resendCooldown: r } = s, u = m, d = A(["", "", "", ""]), o = A([]), g = M(() => d.value.every((I) => I !== "")), b = M(() => d.value.join("")), x = (I, C) => {
|
|
3402
3414
|
const P = C.target, h = P.value;
|
|
3403
3415
|
if (!/^\d*$/.test(h)) {
|
|
3404
3416
|
P.value = "";
|
|
@@ -3438,10 +3450,10 @@ const ue = new xs(
|
|
|
3438
3450
|
}), (I, C) => (c(), f("div", {
|
|
3439
3451
|
class: F(["email-verification", `email-verification--${D(e)}`])
|
|
3440
3452
|
}, [
|
|
3441
|
-
a("div",
|
|
3442
|
-
a("div",
|
|
3453
|
+
a("div", Yi, [
|
|
3454
|
+
a("div", Xi, [
|
|
3443
3455
|
C[1] || (C[1] = a("h2", { class: "verification-title" }, "Verify Your Email", -1)),
|
|
3444
|
-
a("p",
|
|
3456
|
+
a("p", ea, [
|
|
3445
3457
|
C[0] || (C[0] = J(" We've sent a 4-digit verification code to ", -1)),
|
|
3446
3458
|
a("strong", null, B(I.email), 1)
|
|
3447
3459
|
])
|
|
@@ -3450,8 +3462,8 @@ const ue = new xs(
|
|
|
3450
3462
|
onSubmit: U(T, ["prevent"]),
|
|
3451
3463
|
class: "verification-form"
|
|
3452
3464
|
}, [
|
|
3453
|
-
a("div",
|
|
3454
|
-
a("div",
|
|
3465
|
+
a("div", ta, [
|
|
3466
|
+
a("div", oa, [
|
|
3455
3467
|
(c(), f(O, null, j(4, (P, h) => Q(a("input", {
|
|
3456
3468
|
key: h,
|
|
3457
3469
|
ref_for: !0,
|
|
@@ -3460,17 +3472,17 @@ const ue = new xs(
|
|
|
3460
3472
|
type: "text",
|
|
3461
3473
|
maxlength: "1",
|
|
3462
3474
|
class: F(["code-input", `code-input--${D(e)}`]),
|
|
3463
|
-
onInput: (t) =>
|
|
3475
|
+
onInput: (t) => x(h, t),
|
|
3464
3476
|
onKeydown: (t) => V(h, t),
|
|
3465
3477
|
onPaste: v,
|
|
3466
3478
|
disabled: D(i),
|
|
3467
3479
|
autocomplete: "one-time-code"
|
|
3468
|
-
}, null, 42,
|
|
3480
|
+
}, null, 42, na), [
|
|
3469
3481
|
[Y, d.value[h]]
|
|
3470
3482
|
])), 64))
|
|
3471
3483
|
])
|
|
3472
3484
|
]),
|
|
3473
|
-
a("div",
|
|
3485
|
+
a("div", sa, [
|
|
3474
3486
|
L(Ne, {
|
|
3475
3487
|
type: "submit",
|
|
3476
3488
|
label: D(i) ? "Verifying..." : "Verify Code",
|
|
@@ -3481,26 +3493,26 @@ const ue = new xs(
|
|
|
3481
3493
|
class: F(`verify-button verify-button--${D(e)}`)
|
|
3482
3494
|
}, null, 8, ["label", "loading", "disabled", "class"])
|
|
3483
3495
|
]),
|
|
3484
|
-
D(l) ? (c(), f("div",
|
|
3485
|
-
a("div",
|
|
3486
|
-
a("p",
|
|
3496
|
+
D(l) ? (c(), f("div", ia, B(D(l)), 1)) : w("", !0),
|
|
3497
|
+
a("div", aa, [
|
|
3498
|
+
a("p", la, [
|
|
3487
3499
|
C[2] || (C[2] = J(" Didn't receive the code? ", -1)),
|
|
3488
3500
|
a("button", {
|
|
3489
3501
|
type: "button",
|
|
3490
3502
|
class: "resend-button",
|
|
3491
3503
|
disabled: D(r) > 0,
|
|
3492
3504
|
onClick: k
|
|
3493
|
-
}, B(D(r) > 0 ? `Resend in ${D(r)}s` : "Resend code"), 9,
|
|
3505
|
+
}, B(D(r) > 0 ? `Resend in ${D(r)}s` : "Resend code"), 9, ca)
|
|
3494
3506
|
])
|
|
3495
3507
|
])
|
|
3496
3508
|
], 32)
|
|
3497
3509
|
])
|
|
3498
3510
|
], 2));
|
|
3499
3511
|
}
|
|
3500
|
-
}),
|
|
3512
|
+
}), ra = { class: "freddy-plugins-input-field-wrapper" }, da = ["for"], ua = {
|
|
3501
3513
|
key: 0,
|
|
3502
3514
|
class: "freddy-plugins-required-asterisk"
|
|
3503
|
-
},
|
|
3515
|
+
}, pa = /* @__PURE__ */ N({
|
|
3504
3516
|
__name: "BaseInput",
|
|
3505
3517
|
props: {
|
|
3506
3518
|
size: { default: "md" },
|
|
@@ -3531,15 +3543,15 @@ const ue = new xs(
|
|
|
3531
3543
|
inputId: l,
|
|
3532
3544
|
containerClasses: r,
|
|
3533
3545
|
focusInput: u
|
|
3534
|
-
}), (d, o) => (c(), f("div",
|
|
3546
|
+
}), (d, o) => (c(), f("div", ra, [
|
|
3535
3547
|
d.label ? (c(), f("label", {
|
|
3536
3548
|
key: 0,
|
|
3537
3549
|
for: l.value,
|
|
3538
3550
|
class: F(["freddy-plugins-input-field-label", `freddy-plugins-input-field-label--${d.colorStyle}`])
|
|
3539
3551
|
}, [
|
|
3540
3552
|
J(B(d.label) + " ", 1),
|
|
3541
|
-
d.required ? (c(), f("span",
|
|
3542
|
-
], 10,
|
|
3553
|
+
d.required ? (c(), f("span", ua, "*")) : w("", !0)
|
|
3554
|
+
], 10, da)) : w("", !0),
|
|
3543
3555
|
a("div", {
|
|
3544
3556
|
class: F(["freddy-plugins-input-field-container", r.value]),
|
|
3545
3557
|
onClick: u
|
|
@@ -3552,7 +3564,7 @@ const ue = new xs(
|
|
|
3552
3564
|
}, B(d.hintText), 3)) : w("", !0)
|
|
3553
3565
|
]));
|
|
3554
3566
|
}
|
|
3555
|
-
}), ke = /* @__PURE__ */ H(
|
|
3567
|
+
}), ke = /* @__PURE__ */ H(pa, [["__scopeId", "data-v-bb114a19"]]), ha = ["src", "alt"], fa = ["id", "placeholder", "disabled", "readonly", "maxlength"], ma = /* @__PURE__ */ N({
|
|
3556
3568
|
__name: "CardInput",
|
|
3557
3569
|
props: {
|
|
3558
3570
|
cardNumber: { default: "" },
|
|
@@ -3616,7 +3628,7 @@ const ue = new xs(
|
|
|
3616
3628
|
disabled: e.disabled
|
|
3617
3629
|
})), b = (_) => _ ? typeof _ == "object" ? _ : typeof _ == "string" ? R(
|
|
3618
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>" }))
|
|
3619
|
-
) : null : null,
|
|
3631
|
+
) : null : null, x = M(() => b(e.trailingIcon)), V = M(() => {
|
|
3620
3632
|
switch (o.value) {
|
|
3621
3633
|
case "amex":
|
|
3622
3634
|
return 17;
|
|
@@ -3631,7 +3643,7 @@ const ue = new xs(
|
|
|
3631
3643
|
"freddy-plugins-input-field--focused": e.state === "focused",
|
|
3632
3644
|
"freddy-plugins-input-field--disabled": e.state === "disabled",
|
|
3633
3645
|
"freddy-plugins-input-field--with-leading": e.showCardIcon && o.value !== "unknown",
|
|
3634
|
-
"freddy-plugins-input-field--with-trailing":
|
|
3646
|
+
"freddy-plugins-input-field--with-trailing": !!x.value
|
|
3635
3647
|
})), T = (_) => {
|
|
3636
3648
|
const n = _.replace(/\D/g, "");
|
|
3637
3649
|
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";
|
|
@@ -3690,7 +3702,7 @@ const ue = new xs(
|
|
|
3690
3702
|
src: I(o.value),
|
|
3691
3703
|
alt: `${o.value} card`,
|
|
3692
3704
|
class: "freddy-plugins-card-icon-image"
|
|
3693
|
-
}, null, 8,
|
|
3705
|
+
}, null, 8, ha)
|
|
3694
3706
|
], 2)) : w("", !0),
|
|
3695
3707
|
Q(a("input", {
|
|
3696
3708
|
id: (W = r.value) == null ? void 0 : W.inputId,
|
|
@@ -3708,10 +3720,10 @@ const ue = new xs(
|
|
|
3708
3720
|
onKeydown: P,
|
|
3709
3721
|
onFocus: h,
|
|
3710
3722
|
onBlur: t
|
|
3711
|
-
}, null, 42,
|
|
3723
|
+
}, null, 42, fa), [
|
|
3712
3724
|
[Y, d.value]
|
|
3713
3725
|
]),
|
|
3714
|
-
|
|
3726
|
+
x.value ? (c(), E(K(x.value), {
|
|
3715
3727
|
key: 1,
|
|
3716
3728
|
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${_.colorStyle}`]),
|
|
3717
3729
|
onClick: p
|
|
@@ -3721,7 +3733,7 @@ const ue = new xs(
|
|
|
3721
3733
|
_: 1
|
|
3722
3734
|
}, 16));
|
|
3723
3735
|
}
|
|
3724
|
-
}),
|
|
3736
|
+
}), va = /* @__PURE__ */ H(ma, [["__scopeId", "data-v-3a6797a1"]]), ya = ["id", "type", "placeholder", "disabled", "readonly"], ga = /* @__PURE__ */ N({
|
|
3725
3737
|
__name: "DefaultInput",
|
|
3726
3738
|
props: {
|
|
3727
3739
|
placeholder: { default: "" },
|
|
@@ -3753,7 +3765,7 @@ const ue = new xs(
|
|
|
3753
3765
|
disabled: e.disabled
|
|
3754
3766
|
})), o = (h) => h ? typeof h == "object" ? h : typeof h == "string" ? R(
|
|
3755
3767
|
() => 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>" }))
|
|
3756
|
-
) : null : null, g = M(() => o(e.leadingIcon)), b = M(() => o(e.trailingIcon)),
|
|
3768
|
+
) : null : null, g = M(() => o(e.leadingIcon)), b = M(() => o(e.trailingIcon)), x = M(() => ({
|
|
3757
3769
|
[`freddy-plugins-input-field--${e.size}`]: !0,
|
|
3758
3770
|
[`freddy-plugins-input-field--${e.colorStyle}`]: !0,
|
|
3759
3771
|
"freddy-plugins-input-field--destructive": e.destructive,
|
|
@@ -3807,12 +3819,12 @@ const ue = new xs(
|
|
|
3807
3819
|
placeholder: h.placeholder,
|
|
3808
3820
|
disabled: h.disabled,
|
|
3809
3821
|
readonly: h.readonly,
|
|
3810
|
-
class: F(["freddy-plugins-input-field",
|
|
3822
|
+
class: F(["freddy-plugins-input-field", x.value]),
|
|
3811
3823
|
onInput: V,
|
|
3812
3824
|
onFocus: v,
|
|
3813
3825
|
onBlur: T,
|
|
3814
3826
|
onKeydown: k
|
|
3815
|
-
}, null, 42,
|
|
3827
|
+
}, null, 42, ya), [
|
|
3816
3828
|
[Ke, u.value]
|
|
3817
3829
|
]),
|
|
3818
3830
|
h.trailingIcon === "IconQuestion" && h.tooltipText ? (c(), E(re, {
|
|
@@ -3836,10 +3848,10 @@ const ue = new xs(
|
|
|
3836
3848
|
_: 1
|
|
3837
3849
|
}, 16));
|
|
3838
3850
|
}
|
|
3839
|
-
}),
|
|
3851
|
+
}), Ia = /* @__PURE__ */ H(ga, [["__scopeId", "data-v-e865b202"]]), ba = { class: "freddy-plugins-figma-dropdown-text" }, ka = ["onClick"], _a = { class: "freddy-plugins-country-flag" }, Ca = { class: "freddy-plugins-country-name" }, wa = { class: "freddy-plugins-country-dial-code" }, Sa = ["id", "placeholder", "disabled", "readonly"], Ta = {
|
|
3840
3852
|
key: 0,
|
|
3841
3853
|
class: "freddy-plugins-figma-help-icon"
|
|
3842
|
-
},
|
|
3854
|
+
}, $a = /* @__PURE__ */ N({
|
|
3843
3855
|
__name: "PhoneInput",
|
|
3844
3856
|
props: {
|
|
3845
3857
|
countryCode: { default: "US" },
|
|
@@ -3912,11 +3924,11 @@ const ue = new xs(
|
|
|
3912
3924
|
label: e.label,
|
|
3913
3925
|
hintText: e.hintText,
|
|
3914
3926
|
disabled: e.disabled
|
|
3915
|
-
})),
|
|
3927
|
+
})), x = M(
|
|
3916
3928
|
() => e.countryOptions || g
|
|
3917
|
-
), V = M(() =>
|
|
3929
|
+
), V = M(() => x.value.find(
|
|
3918
3930
|
(t) => t.code === o.value
|
|
3919
|
-
) ||
|
|
3931
|
+
) || x.value[0]), v = () => {
|
|
3920
3932
|
e.disabled || (d.value = !d.value);
|
|
3921
3933
|
}, T = (t) => {
|
|
3922
3934
|
o.value = t.code, i("update:countryCode", t.code), i("country-change", t);
|
|
@@ -3966,22 +3978,22 @@ const ue = new xs(
|
|
|
3966
3978
|
class: F(["freddy-plugins-figma-dropdown", `freddy-plugins-figma-dropdown--${t.colorStyle}`]),
|
|
3967
3979
|
onClick: v
|
|
3968
3980
|
}, [
|
|
3969
|
-
a("span",
|
|
3981
|
+
a("span", ba, B(V.value.code), 1),
|
|
3970
3982
|
L(D(ae), { class: "freddy-plugins-figma-dropdown-icon" })
|
|
3971
3983
|
], 2),
|
|
3972
3984
|
d.value ? (c(), f("div", {
|
|
3973
3985
|
key: 0,
|
|
3974
3986
|
class: F(["freddy-plugins-country-options-dropdown", `freddy-plugins-country-options-dropdown--${t.colorStyle}`])
|
|
3975
3987
|
}, [
|
|
3976
|
-
(c(!0), f(O, null, j(
|
|
3988
|
+
(c(!0), f(O, null, j(x.value, (_) => (c(), f("div", {
|
|
3977
3989
|
key: _.code,
|
|
3978
3990
|
class: F(["freddy-plugins-country-option", `freddy-plugins-country-option--${t.colorStyle}`]),
|
|
3979
3991
|
onClick: (n) => T(_)
|
|
3980
3992
|
}, [
|
|
3981
|
-
a("span",
|
|
3982
|
-
a("span",
|
|
3983
|
-
a("span",
|
|
3984
|
-
], 10,
|
|
3993
|
+
a("span", _a, B(_.flag), 1),
|
|
3994
|
+
a("span", Ca, B(_.name), 1),
|
|
3995
|
+
a("span", wa, B(_.dialCode), 1)
|
|
3996
|
+
], 10, ka))), 128))
|
|
3985
3997
|
], 2)) : w("", !0),
|
|
3986
3998
|
a("div", {
|
|
3987
3999
|
class: F(["freddy-plugins-figma-text-input", `freddy-plugins-figma-text-input--${t.colorStyle}`])
|
|
@@ -3999,10 +4011,10 @@ const ue = new xs(
|
|
|
3999
4011
|
onInput: k,
|
|
4000
4012
|
onFocus: I,
|
|
4001
4013
|
onBlur: C
|
|
4002
|
-
}, null, 40,
|
|
4014
|
+
}, null, 40, Sa), [
|
|
4003
4015
|
[Y, u.value]
|
|
4004
4016
|
]),
|
|
4005
|
-
t.trailingIcon === "IconQuestion" ? (c(), f("div",
|
|
4017
|
+
t.trailingIcon === "IconQuestion" ? (c(), f("div", Ta, [
|
|
4006
4018
|
t.tooltipText ? (c(), E(re, {
|
|
4007
4019
|
key: 0,
|
|
4008
4020
|
text: t.tooltipText,
|
|
@@ -4023,7 +4035,7 @@ const ue = new xs(
|
|
|
4023
4035
|
_: 1
|
|
4024
4036
|
}, 16));
|
|
4025
4037
|
}
|
|
4026
|
-
}),
|
|
4038
|
+
}), xa = /* @__PURE__ */ H($a, [["__scopeId", "data-v-20d005c2"]]), Pa = /* @__PURE__ */ N({
|
|
4027
4039
|
__name: "InputField",
|
|
4028
4040
|
props: {
|
|
4029
4041
|
size: { default: "md" },
|
|
@@ -4132,7 +4144,7 @@ const ue = new xs(
|
|
|
4132
4144
|
e("focus", h);
|
|
4133
4145
|
}, b = (h) => {
|
|
4134
4146
|
e("blur", h);
|
|
4135
|
-
},
|
|
4147
|
+
}, x = (h) => {
|
|
4136
4148
|
e("keydown", h);
|
|
4137
4149
|
}, V = (h) => {
|
|
4138
4150
|
e("leading-icon-click", h);
|
|
@@ -4149,7 +4161,7 @@ const ue = new xs(
|
|
|
4149
4161
|
}, P = (h) => {
|
|
4150
4162
|
e("card-type-detected", h);
|
|
4151
4163
|
};
|
|
4152
|
-
return (h, t) => i.value === "phone" ? (c(), E(
|
|
4164
|
+
return (h, t) => i.value === "phone" ? (c(), E(xa, se({ key: 0 }, l.value, {
|
|
4153
4165
|
"onUpdate:modelValue": d,
|
|
4154
4166
|
"onUpdate:countryCode": T,
|
|
4155
4167
|
"onUpdate:phoneNumber": k,
|
|
@@ -4157,7 +4169,7 @@ const ue = new xs(
|
|
|
4157
4169
|
onInput: o,
|
|
4158
4170
|
onFocus: g,
|
|
4159
4171
|
onBlur: b
|
|
4160
|
-
}), null, 16)) : i.value === "card" ? (c(), E(
|
|
4172
|
+
}), null, 16)) : i.value === "card" ? (c(), E(va, se({ key: 1 }, r.value, {
|
|
4161
4173
|
"onUpdate:modelValue": d,
|
|
4162
4174
|
"onUpdate:cardNumber": C,
|
|
4163
4175
|
onCardTypeDetected: P,
|
|
@@ -4165,17 +4177,17 @@ const ue = new xs(
|
|
|
4165
4177
|
onFocus: g,
|
|
4166
4178
|
onBlur: b,
|
|
4167
4179
|
onTrailingIconClick: v
|
|
4168
|
-
}), null, 16)) : (c(), E(
|
|
4180
|
+
}), null, 16)) : (c(), E(Ia, se({ key: 2 }, u.value, {
|
|
4169
4181
|
"onUpdate:modelValue": d,
|
|
4170
4182
|
onInput: o,
|
|
4171
4183
|
onFocus: g,
|
|
4172
4184
|
onBlur: b,
|
|
4173
|
-
onKeydown:
|
|
4185
|
+
onKeydown: x,
|
|
4174
4186
|
onLeadingIconClick: V,
|
|
4175
4187
|
onTrailingIconClick: v
|
|
4176
4188
|
}), null, 16));
|
|
4177
4189
|
}
|
|
4178
|
-
}),
|
|
4190
|
+
}), hc = /* @__PURE__ */ H(Pa, [["__scopeId", "data-v-5a761e6c"]]), Aa = {
|
|
4179
4191
|
name: "ModalBox",
|
|
4180
4192
|
props: {
|
|
4181
4193
|
isVisible: {
|
|
@@ -4192,28 +4204,28 @@ const ue = new xs(
|
|
|
4192
4204
|
this.$emit("close");
|
|
4193
4205
|
}
|
|
4194
4206
|
}
|
|
4195
|
-
},
|
|
4207
|
+
}, Da = {
|
|
4196
4208
|
key: 0,
|
|
4197
4209
|
class: "fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"
|
|
4198
|
-
},
|
|
4199
|
-
function
|
|
4210
|
+
}, Fa = { class: "flex justify-center items-center" }, Ba = { class: "freddy-plugins-modal-header" }, Ma = { class: "freddy-plugins-modal-body" }, La = { class: "freddy-plugins-modal-footer" };
|
|
4211
|
+
function Va(y, m, s, e, i, l) {
|
|
4200
4212
|
return c(), E(le, { name: "modal" }, {
|
|
4201
4213
|
default: Z(() => [
|
|
4202
|
-
s.isVisible ? (c(), f("div",
|
|
4203
|
-
a("div",
|
|
4214
|
+
s.isVisible ? (c(), f("div", Da, [
|
|
4215
|
+
a("div", Fa, [
|
|
4204
4216
|
a("div", {
|
|
4205
4217
|
class: F({
|
|
4206
4218
|
"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white": s.largeModel,
|
|
4207
4219
|
"freddy-plugins-modal-container-large": s.largeModel
|
|
4208
4220
|
})
|
|
4209
4221
|
}, [
|
|
4210
|
-
a("div",
|
|
4222
|
+
a("div", Ba, [
|
|
4211
4223
|
q(y.$slots, "header")
|
|
4212
4224
|
]),
|
|
4213
|
-
a("div",
|
|
4225
|
+
a("div", Ma, [
|
|
4214
4226
|
q(y.$slots, "body")
|
|
4215
4227
|
]),
|
|
4216
|
-
a("div",
|
|
4228
|
+
a("div", La, [
|
|
4217
4229
|
q(y.$slots, "footer")
|
|
4218
4230
|
])
|
|
4219
4231
|
], 2)
|
|
@@ -4223,7 +4235,7 @@ function La(y, m, s, e, i, l) {
|
|
|
4223
4235
|
_: 3
|
|
4224
4236
|
});
|
|
4225
4237
|
}
|
|
4226
|
-
const
|
|
4238
|
+
const Ea = /* @__PURE__ */ H(Aa, [["render", Va]]), fc = /* @__PURE__ */ N({
|
|
4227
4239
|
__name: "InstructionsModal",
|
|
4228
4240
|
props: {
|
|
4229
4241
|
isVisible: {
|
|
@@ -4232,7 +4244,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4232
4244
|
}
|
|
4233
4245
|
},
|
|
4234
4246
|
setup(y) {
|
|
4235
|
-
return (m, s) => (c(), E(
|
|
4247
|
+
return (m, s) => (c(), E(Ea, { isVisible: y.isVisible }, {
|
|
4236
4248
|
header: Z(() => [...s[0] || (s[0] = [
|
|
4237
4249
|
a("h2", null, "Instructions", -1)
|
|
4238
4250
|
])]),
|
|
@@ -4242,7 +4254,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4242
4254
|
_: 1
|
|
4243
4255
|
}, 8, ["isVisible"]));
|
|
4244
4256
|
}
|
|
4245
|
-
}),
|
|
4257
|
+
}), Na = ["value", "placeholder"], Ra = /* @__PURE__ */ N({
|
|
4246
4258
|
__name: "InstructiontextArea",
|
|
4247
4259
|
props: {
|
|
4248
4260
|
inputValue: {},
|
|
@@ -4263,9 +4275,9 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4263
4275
|
onInput: l,
|
|
4264
4276
|
class: "instruction-text-input",
|
|
4265
4277
|
"aria-label": "Instruction input"
|
|
4266
|
-
}, null, 44,
|
|
4278
|
+
}, null, 44, Na));
|
|
4267
4279
|
}
|
|
4268
|
-
}),
|
|
4280
|
+
}), mc = /* @__PURE__ */ H(Ra, [["__scopeId", "data-v-d4000e78"]]), Oa = { class: "freddy-plugins-modal-header" }, za = { class: "freddy-plugins-modal-body" }, vc = /* @__PURE__ */ N({
|
|
4269
4281
|
__name: "ModalOverlay",
|
|
4270
4282
|
props: {
|
|
4271
4283
|
modalTitle: {},
|
|
@@ -4291,7 +4303,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4291
4303
|
onClick: u[0] || (u[0] = U(() => {
|
|
4292
4304
|
}, ["stop"]))
|
|
4293
4305
|
}, [
|
|
4294
|
-
a("header",
|
|
4306
|
+
a("header", Oa, [
|
|
4295
4307
|
a("h2", {
|
|
4296
4308
|
class: F(["freddy-plugins-modal-title", r.headerClass])
|
|
4297
4309
|
}, B(r.modalTitle), 3),
|
|
@@ -4302,13 +4314,13 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4302
4314
|
L(Me, { class: "freddy-plugins-modal-close-icon" })
|
|
4303
4315
|
])
|
|
4304
4316
|
]),
|
|
4305
|
-
a("div",
|
|
4317
|
+
a("div", za, [
|
|
4306
4318
|
q(r.$slots, "content")
|
|
4307
4319
|
])
|
|
4308
4320
|
])
|
|
4309
4321
|
]));
|
|
4310
4322
|
}
|
|
4311
|
-
}),
|
|
4323
|
+
}), Ha = /* @__PURE__ */ N({
|
|
4312
4324
|
__name: "Spinner",
|
|
4313
4325
|
props: {
|
|
4314
4326
|
customClass: {}
|
|
@@ -4318,7 +4330,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4318
4330
|
class: F(["freddy-plugin-spinner", m.customClass])
|
|
4319
4331
|
}, null, 2));
|
|
4320
4332
|
}
|
|
4321
|
-
}),
|
|
4333
|
+
}), Ua = ["placeholder", "maxlength"], _e = /* @__PURE__ */ N({
|
|
4322
4334
|
inheritAttrs: !1,
|
|
4323
4335
|
__name: "SearchInput",
|
|
4324
4336
|
props: {
|
|
@@ -4338,7 +4350,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4338
4350
|
r("clear");
|
|
4339
4351
|
};
|
|
4340
4352
|
return (g, b) => {
|
|
4341
|
-
var
|
|
4353
|
+
var x;
|
|
4342
4354
|
return c(), f("div", {
|
|
4343
4355
|
ref_key: "dropdownRef",
|
|
4344
4356
|
ref: l,
|
|
@@ -4356,14 +4368,14 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4356
4368
|
onInput: d,
|
|
4357
4369
|
placeholder: g.placeholder,
|
|
4358
4370
|
maxlength: g.maxCharLimit
|
|
4359
|
-
}, null, 40,
|
|
4371
|
+
}, null, 40, Ua), [
|
|
4360
4372
|
[Y, e.value]
|
|
4361
4373
|
]),
|
|
4362
|
-
g.showLoaderForSearch ? (c(), E(
|
|
4374
|
+
g.showLoaderForSearch ? (c(), E(Ha, {
|
|
4363
4375
|
key: 0,
|
|
4364
4376
|
class: "freddy-search-spinner"
|
|
4365
4377
|
})) : w("", !0),
|
|
4366
|
-
g.showCloseButton && !g.showLoaderForSearch && ((
|
|
4378
|
+
g.showCloseButton && !g.showLoaderForSearch && ((x = e.value) != null && x.length) ? (c(), E(D(ee), {
|
|
4367
4379
|
key: 1,
|
|
4368
4380
|
class: "freddy-search-close",
|
|
4369
4381
|
onClick: o
|
|
@@ -4371,16 +4383,16 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4371
4383
|
], 2);
|
|
4372
4384
|
};
|
|
4373
4385
|
}
|
|
4374
|
-
}),
|
|
4386
|
+
}), ja = { class: "model-dropdown-selected-content" }, Ka = ["src", "alt"], Ga = { class: "model-dropdown-placeholder" }, Za = {
|
|
4375
4387
|
key: 0,
|
|
4376
4388
|
class: "model-dropdown-menu"
|
|
4377
|
-
},
|
|
4389
|
+
}, qa = {
|
|
4378
4390
|
key: 0,
|
|
4379
4391
|
class: "model-dropdown-search"
|
|
4380
|
-
},
|
|
4392
|
+
}, Wa = { class: "model-dropdown-options" }, Ja = ["onClick"], Qa = ["src", "alt"], Ya = { class: "model-dropdown-option-value" }, Xa = {
|
|
4381
4393
|
key: 0,
|
|
4382
4394
|
class: "model-dropdown-no-options"
|
|
4383
|
-
},
|
|
4395
|
+
}, el = /* @__PURE__ */ N({
|
|
4384
4396
|
__name: "ModelDropdown",
|
|
4385
4397
|
props: {
|
|
4386
4398
|
options: {},
|
|
@@ -4392,23 +4404,23 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4392
4404
|
emits: ["select"],
|
|
4393
4405
|
setup(y, { emit: m }) {
|
|
4394
4406
|
const s = y, e = m, i = A(!1), l = A(""), r = A(null), u = M(() => !s.searchable || !l.value ? s.options : s.options.filter(
|
|
4395
|
-
(
|
|
4407
|
+
(x) => x.value.toLowerCase().includes(l.value.toLowerCase())
|
|
4396
4408
|
)), d = () => {
|
|
4397
4409
|
i.value = !i.value, i.value || (l.value = "");
|
|
4398
4410
|
}, o = () => {
|
|
4399
4411
|
i.value = !1, l.value = "";
|
|
4400
|
-
}, g = (
|
|
4401
|
-
r.value =
|
|
4402
|
-
}, b = (
|
|
4403
|
-
|
|
4412
|
+
}, g = (x) => {
|
|
4413
|
+
r.value = x, e("select", x), o();
|
|
4414
|
+
}, b = (x) => {
|
|
4415
|
+
x.target.closest(".model-dropdown-wrapper") || o();
|
|
4404
4416
|
};
|
|
4405
|
-
return G(i, (
|
|
4406
|
-
|
|
4417
|
+
return G(i, (x) => {
|
|
4418
|
+
x ? setTimeout(() => {
|
|
4407
4419
|
document.addEventListener("click", b);
|
|
4408
4420
|
}, 0) : document.removeEventListener("click", b);
|
|
4409
4421
|
}), De(() => {
|
|
4410
4422
|
document.removeEventListener("click", b);
|
|
4411
|
-
}), (
|
|
4423
|
+
}), (x, V) => {
|
|
4412
4424
|
var v, T;
|
|
4413
4425
|
return c(), f("div", {
|
|
4414
4426
|
class: "model-dropdown-wrapper",
|
|
@@ -4416,19 +4428,19 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4416
4428
|
}, [
|
|
4417
4429
|
a("div", {
|
|
4418
4430
|
class: F(["model-dropdown-trigger", [
|
|
4419
|
-
`model-dropdown-trigger--${
|
|
4431
|
+
`model-dropdown-trigger--${x.size}`,
|
|
4420
4432
|
{ "model-dropdown-trigger--open": i.value }
|
|
4421
4433
|
]]),
|
|
4422
4434
|
onClick: d
|
|
4423
4435
|
}, [
|
|
4424
|
-
a("div",
|
|
4436
|
+
a("div", ja, [
|
|
4425
4437
|
(v = r.value) != null && v.imageSrc ? (c(), f("img", {
|
|
4426
4438
|
key: 0,
|
|
4427
4439
|
src: r.value.imageSrc,
|
|
4428
4440
|
alt: r.value.value,
|
|
4429
4441
|
class: "model-dropdown-selected-image"
|
|
4430
|
-
}, null, 8,
|
|
4431
|
-
a("span",
|
|
4442
|
+
}, null, 8, Ka)) : w("", !0),
|
|
4443
|
+
a("span", Ga, B(((T = r.value) == null ? void 0 : T.value) || x.modelPlaceholder), 1)
|
|
4432
4444
|
]),
|
|
4433
4445
|
i.value ? (c(), E(Be, {
|
|
4434
4446
|
key: 1,
|
|
@@ -4438,16 +4450,16 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4438
4450
|
class: "model-dropdown-chevron"
|
|
4439
4451
|
}))
|
|
4440
4452
|
], 2),
|
|
4441
|
-
i.value ? (c(), f("div",
|
|
4442
|
-
|
|
4453
|
+
i.value ? (c(), f("div", Za, [
|
|
4454
|
+
x.searchable ? (c(), f("div", qa, [
|
|
4443
4455
|
L(_e, {
|
|
4444
4456
|
modelValue: l.value,
|
|
4445
4457
|
"onUpdate:modelValue": V[0] || (V[0] = (k) => l.value = k),
|
|
4446
|
-
placeholder:
|
|
4458
|
+
placeholder: x.searchPlaceholder,
|
|
4447
4459
|
showCloseButton: !0
|
|
4448
4460
|
}, null, 8, ["modelValue", "placeholder"])
|
|
4449
4461
|
])) : w("", !0),
|
|
4450
|
-
a("ul",
|
|
4462
|
+
a("ul", Wa, [
|
|
4451
4463
|
(c(!0), f(O, null, j(u.value, (k) => {
|
|
4452
4464
|
var I;
|
|
4453
4465
|
return c(), f("li", {
|
|
@@ -4462,17 +4474,17 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4462
4474
|
src: k.imageSrc,
|
|
4463
4475
|
alt: k.value,
|
|
4464
4476
|
class: "model-dropdown-option-image"
|
|
4465
|
-
}, null, 8,
|
|
4466
|
-
a("span",
|
|
4467
|
-
], 10,
|
|
4477
|
+
}, null, 8, Qa)) : w("", !0),
|
|
4478
|
+
a("span", Ya, B(k.value), 1)
|
|
4479
|
+
], 10, Ja);
|
|
4468
4480
|
}), 128)),
|
|
4469
|
-
u.value.length === 0 ? (c(), f("li",
|
|
4481
|
+
u.value.length === 0 ? (c(), f("li", Xa, " No providers found ")) : w("", !0)
|
|
4470
4482
|
])
|
|
4471
4483
|
])) : w("", !0)
|
|
4472
4484
|
], 32);
|
|
4473
4485
|
};
|
|
4474
4486
|
}
|
|
4475
|
-
}),
|
|
4487
|
+
}), yc = /* @__PURE__ */ H(el, [["__scopeId", "data-v-75f8685b"]]), gc = /* @__PURE__ */ N({
|
|
4476
4488
|
__name: "OutputModeModal",
|
|
4477
4489
|
props: {
|
|
4478
4490
|
isVisible: {
|
|
@@ -4522,11 +4534,11 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4522
4534
|
onToggleAI: i
|
|
4523
4535
|
}, null, 8, ["is-visible", "initial-content", "openai-api-key", "openai-model", "openai-organization"]));
|
|
4524
4536
|
}
|
|
4525
|
-
}),
|
|
4537
|
+
}), tl = {
|
|
4526
4538
|
key: 0,
|
|
4527
4539
|
class: "freddy-pagination-nav",
|
|
4528
4540
|
"aria-label": "Pagination"
|
|
4529
|
-
},
|
|
4541
|
+
}, ol = ["disabled"], nl = { class: "freddy-pagination-dynamic-container" }, sl = ["onClick", "disabled"], il = ["disabled"], Ic = /* @__PURE__ */ N({
|
|
4530
4542
|
__name: "Pagination",
|
|
4531
4543
|
props: {
|
|
4532
4544
|
totalItems: { type: Number, required: !0, default: 0 },
|
|
@@ -4551,30 +4563,30 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4551
4563
|
function r(u) {
|
|
4552
4564
|
u === "..." || u === s.currentPage || typeof u == "number" && u >= 1 && u <= i.value && e("update:currentPage", u);
|
|
4553
4565
|
}
|
|
4554
|
-
return (u, d) => i.value > 0 ? (c(), f("nav",
|
|
4566
|
+
return (u, d) => i.value > 0 ? (c(), f("nav", tl, [
|
|
4555
4567
|
a("button", {
|
|
4556
4568
|
class: F(["freddy-pagination-end-button", { "freddy-pagination-hover-enabled": y.currentPage !== 1 }]),
|
|
4557
4569
|
onClick: d[0] || (d[0] = (o) => r(y.currentPage - 1)),
|
|
4558
4570
|
disabled: y.currentPage === 1
|
|
4559
|
-
}, " Previous ", 10,
|
|
4560
|
-
a("div",
|
|
4571
|
+
}, " Previous ", 10, ol),
|
|
4572
|
+
a("div", nl, [
|
|
4561
4573
|
(c(!0), f(O, null, j(l.value, (o) => (c(), f("button", {
|
|
4562
4574
|
key: String(o),
|
|
4563
4575
|
class: F(["freddy-pagination-number-button", { active: o === y.currentPage }]),
|
|
4564
4576
|
onClick: (g) => r(o),
|
|
4565
4577
|
disabled: o === "..." || o === y.currentPage
|
|
4566
|
-
}, B(o), 11,
|
|
4578
|
+
}, B(o), 11, sl))), 128)),
|
|
4567
4579
|
a("button", {
|
|
4568
4580
|
class: F(["freddy-pagination-end-button", {
|
|
4569
4581
|
"freddy-pagination-hover-enabled": y.currentPage !== i.value
|
|
4570
4582
|
}]),
|
|
4571
4583
|
onClick: d[1] || (d[1] = (o) => r(y.currentPage + 1)),
|
|
4572
4584
|
disabled: y.currentPage === i.value || i.value === 0
|
|
4573
|
-
}, " Next ", 10,
|
|
4585
|
+
}, " Next ", 10, il)
|
|
4574
4586
|
])
|
|
4575
4587
|
])) : w("", !0);
|
|
4576
4588
|
}
|
|
4577
|
-
}),
|
|
4589
|
+
}), al = ["disabled"], bc = /* @__PURE__ */ N({
|
|
4578
4590
|
__name: "SendButton",
|
|
4579
4591
|
props: {
|
|
4580
4592
|
disabled: { type: Boolean },
|
|
@@ -4588,33 +4600,33 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4588
4600
|
onClick: s[0] || (s[0] = (e) => m.$emit("click"))
|
|
4589
4601
|
}, [
|
|
4590
4602
|
(c(), E(K(wt), { class: "chat-bar-send-icon" }))
|
|
4591
|
-
], 10,
|
|
4603
|
+
], 10, al));
|
|
4592
4604
|
}
|
|
4593
|
-
}),
|
|
4605
|
+
}), ll = {
|
|
4594
4606
|
key: 0,
|
|
4595
4607
|
class: "skeleton-card"
|
|
4596
|
-
},
|
|
4608
|
+
}, cl = {
|
|
4597
4609
|
key: 0,
|
|
4598
4610
|
class: "skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"
|
|
4599
|
-
},
|
|
4611
|
+
}, rl = {
|
|
4600
4612
|
key: 1,
|
|
4601
4613
|
class: "skeleton-paragraph"
|
|
4602
|
-
},
|
|
4614
|
+
}, dl = {
|
|
4603
4615
|
key: 0,
|
|
4604
4616
|
class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"
|
|
4605
|
-
},
|
|
4617
|
+
}, ul = {
|
|
4606
4618
|
key: 2,
|
|
4607
4619
|
class: "skeleton-single-box"
|
|
4608
|
-
},
|
|
4620
|
+
}, pl = {
|
|
4609
4621
|
key: 0,
|
|
4610
4622
|
class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"
|
|
4611
|
-
},
|
|
4623
|
+
}, hl = {
|
|
4612
4624
|
key: 3,
|
|
4613
4625
|
class: "skeleton-table"
|
|
4614
|
-
},
|
|
4626
|
+
}, fl = {
|
|
4615
4627
|
key: 0,
|
|
4616
4628
|
class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"
|
|
4617
|
-
},
|
|
4629
|
+
}, ml = { class: "table-full" }, kc = /* @__PURE__ */ N({
|
|
4618
4630
|
__name: "SkeletonLoader",
|
|
4619
4631
|
props: {
|
|
4620
4632
|
type: {},
|
|
@@ -4623,22 +4635,22 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4623
4635
|
},
|
|
4624
4636
|
setup(y) {
|
|
4625
4637
|
const m = y, { type: s, hasHeader: e = !1, count: i = 5 } = m;
|
|
4626
|
-
return (l, r) => D(s) === "card" ? (c(), f("div",
|
|
4627
|
-
D(e) ? (c(), f("div",
|
|
4638
|
+
return (l, r) => D(s) === "card" ? (c(), f("div", ll, [
|
|
4639
|
+
D(e) ? (c(), f("div", cl)) : w("", !0),
|
|
4628
4640
|
r[0] || (r[0] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4" }, null, -1)),
|
|
4629
4641
|
r[1] || (r[1] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1)),
|
|
4630
4642
|
r[2] || (r[2] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6" }, null, -1))
|
|
4631
|
-
])) : D(s) === "paragraph" ? (c(), f("div",
|
|
4632
|
-
D(e) ? (c(), f("div",
|
|
4643
|
+
])) : D(s) === "paragraph" ? (c(), f("div", rl, [
|
|
4644
|
+
D(e) ? (c(), f("div", dl)) : w("", !0),
|
|
4633
4645
|
r[3] || (r[3] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1)),
|
|
4634
4646
|
r[4] || (r[4] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6" }, null, -1)),
|
|
4635
4647
|
r[5] || (r[5] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4" }, null, -1))
|
|
4636
|
-
])) : D(s) === "single-box" ? (c(), f("div",
|
|
4637
|
-
D(e) ? (c(), f("div",
|
|
4648
|
+
])) : D(s) === "single-box" ? (c(), f("div", ul, [
|
|
4649
|
+
D(e) ? (c(), f("div", pl)) : w("", !0),
|
|
4638
4650
|
r[6] || (r[6] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1))
|
|
4639
|
-
])) : D(s) === "table" ? (c(), f("div",
|
|
4640
|
-
D(e) ? (c(), f("div",
|
|
4641
|
-
a("table",
|
|
4651
|
+
])) : D(s) === "table" ? (c(), f("div", hl, [
|
|
4652
|
+
D(e) ? (c(), f("div", fl)) : w("", !0),
|
|
4653
|
+
a("table", ml, [
|
|
4642
4654
|
a("tbody", null, [
|
|
4643
4655
|
(c(!0), f(O, null, j(D(i), (u) => (c(), f("tr", { key: u }, [...r[7] || (r[7] = [
|
|
4644
4656
|
a("td", { class: "td-padding" }, [
|
|
@@ -4652,19 +4664,19 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4652
4664
|
])
|
|
4653
4665
|
])) : w("", !0);
|
|
4654
4666
|
}
|
|
4655
|
-
}),
|
|
4667
|
+
}), vl = { class: "freddy-plugins-slider-container" }, yl = {
|
|
4656
4668
|
key: 0,
|
|
4657
4669
|
class: "freddy-plugins-slider-header"
|
|
4658
|
-
},
|
|
4670
|
+
}, gl = {
|
|
4659
4671
|
key: 0,
|
|
4660
4672
|
class: "freddy-plugins-slider-label-section"
|
|
4661
|
-
},
|
|
4673
|
+
}, Il = { class: "freddy-plugins-slider-label" }, bl = {
|
|
4662
4674
|
key: 1,
|
|
4663
4675
|
class: "freddy-plugins-slider-value-badge"
|
|
4664
|
-
},
|
|
4676
|
+
}, kl = ["tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-label"], _l = {
|
|
4665
4677
|
key: 1,
|
|
4666
4678
|
class: "freddy-plugins-slider-hint"
|
|
4667
|
-
},
|
|
4679
|
+
}, Cl = /* @__PURE__ */ N({
|
|
4668
4680
|
__name: "Slider",
|
|
4669
4681
|
props: {
|
|
4670
4682
|
modelValue: {},
|
|
@@ -4702,7 +4714,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4702
4714
|
}, b = (k) => {
|
|
4703
4715
|
const I = o(k);
|
|
4704
4716
|
I !== s.modelValue && e("update:modelValue", I);
|
|
4705
|
-
},
|
|
4717
|
+
}, x = (k) => {
|
|
4706
4718
|
if (s.disabled) return;
|
|
4707
4719
|
k.preventDefault(), k.stopPropagation(), i.value = !0;
|
|
4708
4720
|
const I = (P) => {
|
|
@@ -4757,10 +4769,10 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4757
4769
|
}
|
|
4758
4770
|
b(I);
|
|
4759
4771
|
};
|
|
4760
|
-
return (k, I) => (c(), f("div",
|
|
4761
|
-
k.label || k.showValue ? (c(), f("div",
|
|
4762
|
-
k.label ? (c(), f("div",
|
|
4763
|
-
a("span",
|
|
4772
|
+
return (k, I) => (c(), f("div", vl, [
|
|
4773
|
+
k.label || k.showValue ? (c(), f("div", yl, [
|
|
4774
|
+
k.label ? (c(), f("div", gl, [
|
|
4775
|
+
a("span", Il, B(k.label), 1),
|
|
4764
4776
|
k.tooltip ? (c(), E(re, {
|
|
4765
4777
|
key: 0,
|
|
4766
4778
|
text: k.tooltip,
|
|
@@ -4772,7 +4784,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4772
4784
|
_: 1
|
|
4773
4785
|
}, 8, ["text", "placement"])) : w("", !0)
|
|
4774
4786
|
])) : w("", !0),
|
|
4775
|
-
k.showValue ? (c(), f("div",
|
|
4787
|
+
k.showValue ? (c(), f("div", bl, B(r.value), 1)) : w("", !0)
|
|
4776
4788
|
])) : w("", !0),
|
|
4777
4789
|
a("div", {
|
|
4778
4790
|
class: F(["freddy-plugins-slider-track-container", { "freddy-plugins-slider-disabled": k.disabled }]),
|
|
@@ -4801,14 +4813,14 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4801
4813
|
"freddy-plugins-slider-thumb-disabled": k.disabled
|
|
4802
4814
|
}]),
|
|
4803
4815
|
style: oe({ left: d.value + "%" }),
|
|
4804
|
-
onMousedown:
|
|
4816
|
+
onMousedown: x,
|
|
4805
4817
|
onTouchstart: V
|
|
4806
4818
|
}, null, 38)
|
|
4807
|
-
], 42,
|
|
4808
|
-
k.hint ? (c(), f("p",
|
|
4819
|
+
], 42, kl),
|
|
4820
|
+
k.hint ? (c(), f("p", _l, B(k.hint), 1)) : w("", !0)
|
|
4809
4821
|
]));
|
|
4810
4822
|
}
|
|
4811
|
-
}),
|
|
4823
|
+
}), _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({
|
|
4812
4824
|
__name: "SnackBar",
|
|
4813
4825
|
setup(y) {
|
|
4814
4826
|
ne();
|
|
@@ -4844,8 +4856,8 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4844
4856
|
key: d,
|
|
4845
4857
|
class: F(["freddy-plugins-snackbar", `freddy-plugins-snackbar--${u.toastType}`])
|
|
4846
4858
|
}, [
|
|
4847
|
-
a("div",
|
|
4848
|
-
a("div",
|
|
4859
|
+
a("div", wl, [
|
|
4860
|
+
a("div", Sl, [
|
|
4849
4861
|
(c(), E(K(s(u.toastType)), {
|
|
4850
4862
|
class: F(["freddy-plugins-snackbar-icon", [
|
|
4851
4863
|
u.toastType === "info" && "freddy-plugins-snackbar-icon--info",
|
|
@@ -4853,15 +4865,15 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4853
4865
|
u.toastType === "success" && "freddy-plugins-snackbar-icon--success"
|
|
4854
4866
|
]])
|
|
4855
4867
|
}, null, 8, ["class"])),
|
|
4856
|
-
a("div",
|
|
4868
|
+
a("div", Tl, [
|
|
4857
4869
|
a("p", {
|
|
4858
4870
|
class: "freddy-plugins-snackbar-title",
|
|
4859
4871
|
innerHTML: u.title
|
|
4860
|
-
}, null, 8,
|
|
4872
|
+
}, null, 8, $l),
|
|
4861
4873
|
a("p", {
|
|
4862
4874
|
class: "freddy-plugins-snackbar-message",
|
|
4863
4875
|
innerHTML: u.message
|
|
4864
|
-
}, null, 8,
|
|
4876
|
+
}, null, 8, xl)
|
|
4865
4877
|
])
|
|
4866
4878
|
]),
|
|
4867
4879
|
a("button", {
|
|
@@ -4869,24 +4881,24 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4869
4881
|
onClick: (o) => i(d)
|
|
4870
4882
|
}, [
|
|
4871
4883
|
L(Me, { class: "freddy-plugins-snackbar-close-icon" })
|
|
4872
|
-
], 8,
|
|
4884
|
+
], 8, Pl)
|
|
4873
4885
|
])
|
|
4874
4886
|
], 2))), 128))
|
|
4875
4887
|
], 2));
|
|
4876
4888
|
}
|
|
4877
|
-
}),
|
|
4889
|
+
}), Al = { class: "freddy-plugins-switch-slot__header" }, Dl = {
|
|
4878
4890
|
key: 0,
|
|
4879
4891
|
class: "freddy-plugins-switch-slot__label-section"
|
|
4880
|
-
},
|
|
4892
|
+
}, Fl = {
|
|
4881
4893
|
key: 0,
|
|
4882
4894
|
class: "freddy-plugins-switch-slot__label"
|
|
4883
|
-
},
|
|
4895
|
+
}, Bl = ["aria-checked", "tabindex", "onKeydown", "disabled"], Ml = {
|
|
4884
4896
|
key: 0,
|
|
4885
4897
|
class: "freddy-plugins-switch-slot__content"
|
|
4886
|
-
},
|
|
4898
|
+
}, Ll = {
|
|
4887
4899
|
key: 1,
|
|
4888
4900
|
class: "freddy-plugins-switch-slot__hint"
|
|
4889
|
-
},
|
|
4901
|
+
}, Vl = /* @__PURE__ */ N({
|
|
4890
4902
|
__name: "SwitchSlot",
|
|
4891
4903
|
props: {
|
|
4892
4904
|
modelValue: { type: Boolean },
|
|
@@ -4909,9 +4921,9 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4909
4921
|
"freddy-plugins-switch-slot--disabled": l.disabled
|
|
4910
4922
|
}])
|
|
4911
4923
|
}, [
|
|
4912
|
-
a("div",
|
|
4913
|
-
l.label || l.tooltip ? (c(), f("div",
|
|
4914
|
-
l.label ? (c(), f("span",
|
|
4924
|
+
a("div", Al, [
|
|
4925
|
+
l.label || l.tooltip ? (c(), f("div", Dl, [
|
|
4926
|
+
l.label ? (c(), f("span", Fl, B(l.label), 1)) : w("", !0),
|
|
4915
4927
|
l.tooltip ? (c(), E(re, {
|
|
4916
4928
|
key: 1,
|
|
4917
4929
|
text: l.tooltip,
|
|
@@ -4937,15 +4949,15 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4937
4949
|
}, [...r[0] || (r[0] = [
|
|
4938
4950
|
a("span", { class: "freddy-plugins-switch-slot__track" }, null, -1),
|
|
4939
4951
|
a("span", { class: "freddy-plugins-switch-slot__thumb" }, null, -1)
|
|
4940
|
-
])], 42,
|
|
4952
|
+
])], 42, Bl)
|
|
4941
4953
|
]),
|
|
4942
|
-
l.showSlotContent ? (c(), f("div",
|
|
4954
|
+
l.showSlotContent ? (c(), f("div", Ml, [
|
|
4943
4955
|
q(l.$slots, "content", {}, void 0, !0)
|
|
4944
4956
|
])) : w("", !0),
|
|
4945
|
-
l.hint ? (c(), f("p",
|
|
4957
|
+
l.hint ? (c(), f("p", Ll, B(l.hint), 1)) : w("", !0)
|
|
4946
4958
|
], 2));
|
|
4947
4959
|
}
|
|
4948
|
-
}),
|
|
4960
|
+
}), wc = /* @__PURE__ */ H(Vl, [["__scopeId", "data-v-edc0859a"]]), El = { class: "freddy-plugin-nav-bar" }, Nl = ["onClick"], Sc = /* @__PURE__ */ N({
|
|
4949
4961
|
__name: "TabList",
|
|
4950
4962
|
props: {
|
|
4951
4963
|
tabList: {},
|
|
@@ -4959,7 +4971,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4959
4971
|
const s = y, e = m, i = A(s.currentTab), l = (r) => {
|
|
4960
4972
|
i.value !== r.id && (i.value = r.id, e("tabSwitch", r.id));
|
|
4961
4973
|
};
|
|
4962
|
-
return (r, u) => (c(), f("div",
|
|
4974
|
+
return (r, u) => (c(), f("div", El, [
|
|
4963
4975
|
(c(!0), f(O, null, j(r.tabList, (d, o) => (c(), f("button", {
|
|
4964
4976
|
class: "freddy-plugin-tab-list-menu-button",
|
|
4965
4977
|
key: o,
|
|
@@ -4969,10 +4981,10 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4969
4981
|
a("span", {
|
|
4970
4982
|
class: F({ "freddy-plugin-active-tab": i.value === d.id })
|
|
4971
4983
|
}, null, 2)
|
|
4972
|
-
], 8,
|
|
4984
|
+
], 8, Nl))), 128))
|
|
4973
4985
|
]));
|
|
4974
4986
|
}
|
|
4975
|
-
}),
|
|
4987
|
+
}), Rl = { class: "freddy-plugins-toast-wrapper" }, Ol = { class: "freddy-plugins-toast-icon-wrapper" }, zl = { class: "freddy-plugins-toast-message" }, Hl = ["onClick"], Tc = /* @__PURE__ */ N({
|
|
4976
4988
|
__name: "ToastMessage",
|
|
4977
4989
|
setup(y) {
|
|
4978
4990
|
const { toastQueue: m } = Tt(), s = {
|
|
@@ -4993,26 +5005,26 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4993
5005
|
}, l = (r) => {
|
|
4994
5006
|
m.value.splice(r, 1);
|
|
4995
5007
|
};
|
|
4996
|
-
return (r, u) => (c(), f("div",
|
|
5008
|
+
return (r, u) => (c(), f("div", Rl, [
|
|
4997
5009
|
(c(!0), f(O, null, j(D(m), (d, o) => (c(), f("div", {
|
|
4998
5010
|
key: o,
|
|
4999
5011
|
class: F(["freddy-plugins-toast-item", e(d.toastType)])
|
|
5000
5012
|
}, [
|
|
5001
|
-
a("div",
|
|
5013
|
+
a("div", Ol, [
|
|
5002
5014
|
(c(), E(K(i(d.toastType)), { class: "freddy-plugins-toast-icon" }))
|
|
5003
5015
|
]),
|
|
5004
|
-
a("span",
|
|
5016
|
+
a("span", zl, B(d.message), 1),
|
|
5005
5017
|
a("button", {
|
|
5006
5018
|
class: "freddy-plugins-toast-close-button",
|
|
5007
5019
|
onClick: (g) => l(o)
|
|
5008
5020
|
}, [
|
|
5009
5021
|
L(D(ee), { class: "freddy-plugins-toast-close-icon" })
|
|
5010
|
-
], 8,
|
|
5022
|
+
], 8, Hl)
|
|
5011
5023
|
], 2))), 128))
|
|
5012
5024
|
]));
|
|
5013
5025
|
}
|
|
5014
5026
|
});
|
|
5015
|
-
function
|
|
5027
|
+
function $c(y = {}) {
|
|
5016
5028
|
const {
|
|
5017
5029
|
logErrors: m = !0,
|
|
5018
5030
|
throwOnCritical: s = !1,
|
|
@@ -5059,7 +5071,7 @@ function Tc(y = {}) {
|
|
|
5059
5071
|
);
|
|
5060
5072
|
}
|
|
5061
5073
|
return { data: null, error: I };
|
|
5062
|
-
},
|
|
5074
|
+
}, x = () => {
|
|
5063
5075
|
i.value = [], r.value = 0;
|
|
5064
5076
|
}, V = (T) => {
|
|
5065
5077
|
T >= 0 && T < i.value.length && i.value.splice(T, 1);
|
|
@@ -5083,12 +5095,12 @@ function Tc(y = {}) {
|
|
|
5083
5095
|
handleError: o,
|
|
5084
5096
|
handleAsync: g,
|
|
5085
5097
|
retryAsync: b,
|
|
5086
|
-
clearErrors:
|
|
5098
|
+
clearErrors: x,
|
|
5087
5099
|
clearError: V,
|
|
5088
5100
|
isCriticalError: v
|
|
5089
5101
|
};
|
|
5090
5102
|
}
|
|
5091
|
-
function
|
|
5103
|
+
function xc(y = {}) {
|
|
5092
5104
|
const {
|
|
5093
5105
|
enableMetrics: m = process.env.NODE_ENV === "development",
|
|
5094
5106
|
trackMemory: s = !1,
|
|
@@ -5119,7 +5131,7 @@ function $c(y = {}) {
|
|
|
5119
5131
|
} catch (t) {
|
|
5120
5132
|
throw g(h), t;
|
|
5121
5133
|
}
|
|
5122
|
-
},
|
|
5134
|
+
}, x = (P, h) => {
|
|
5123
5135
|
let t;
|
|
5124
5136
|
return (...p) => {
|
|
5125
5137
|
clearTimeout(t), t = setTimeout(() => P(...p), h);
|
|
@@ -5175,7 +5187,7 @@ function $c(y = {}) {
|
|
|
5175
5187
|
endTracking: g,
|
|
5176
5188
|
measureAsync: b,
|
|
5177
5189
|
// Optimization utilities
|
|
5178
|
-
debounce:
|
|
5190
|
+
debounce: x,
|
|
5179
5191
|
throttle: V,
|
|
5180
5192
|
scheduleWork: v,
|
|
5181
5193
|
lazyLoad: T,
|
|
@@ -5186,243 +5198,243 @@ function $c(y = {}) {
|
|
|
5186
5198
|
};
|
|
5187
5199
|
}
|
|
5188
5200
|
export {
|
|
5189
|
-
|
|
5190
|
-
|
|
5201
|
+
Ql as AdvancedModal,
|
|
5202
|
+
Jl as AnimeSpaceman,
|
|
5191
5203
|
Ut as AssistantField,
|
|
5192
|
-
|
|
5193
|
-
|
|
5204
|
+
Yl as AssistantList,
|
|
5205
|
+
Xl as AssistantsHeader,
|
|
5194
5206
|
ao as AvatarChoosing,
|
|
5195
|
-
|
|
5207
|
+
ec as AvatarList,
|
|
5196
5208
|
Ne as BaseButton,
|
|
5197
5209
|
ke as BaseInput,
|
|
5198
5210
|
Vo as BaseTabButton,
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5211
|
+
va as CardInput,
|
|
5212
|
+
tc as ChooseAssistantAvatar,
|
|
5213
|
+
lc as CodeBlock,
|
|
5214
|
+
Dc as ConfirmationModal,
|
|
5215
|
+
cc as CustomCheckbox,
|
|
5216
|
+
Ia as DefaultInput,
|
|
5217
|
+
Fc as DeleteConfirmationModal,
|
|
5218
|
+
rc as Descriptions,
|
|
5219
|
+
dc as DiffTextarea,
|
|
5220
|
+
uc as Dropdown,
|
|
5209
5221
|
Ie as EditFeaturedExcerptModal,
|
|
5210
|
-
|
|
5211
|
-
|
|
5222
|
+
pc as EmailCodeVerification,
|
|
5223
|
+
Bc as IconAddChatPop,
|
|
5212
5224
|
it as IconAddFileSystem,
|
|
5213
|
-
|
|
5214
|
-
|
|
5225
|
+
Mc as IconAddPeople,
|
|
5226
|
+
Lc as IconAitronos,
|
|
5215
5227
|
dt as IconApple,
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5228
|
+
Vc as IconApplePay,
|
|
5229
|
+
Ec as IconAppsGrid,
|
|
5230
|
+
Nc as IconArrowDown,
|
|
5231
|
+
Rc as IconArrowLeft,
|
|
5232
|
+
Oc as IconArrowUp,
|
|
5221
5233
|
nt as IconBadgeCheck,
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5234
|
+
zc as IconBroom,
|
|
5235
|
+
Hc as IconBuildings,
|
|
5236
|
+
Uc as IconCalendarWithTickInside,
|
|
5237
|
+
jc as IconCallNotAllowed,
|
|
5238
|
+
Kc as IconCardPay,
|
|
5239
|
+
Gc as IconCaution,
|
|
5240
|
+
Zc as IconChangeLog,
|
|
5241
|
+
qc as IconCheckCircleFill,
|
|
5230
5242
|
$e as IconCheckInCircle,
|
|
5231
5243
|
Te as IconCheckRounded,
|
|
5232
5244
|
ae as IconChevronDown,
|
|
5233
|
-
|
|
5234
|
-
|
|
5245
|
+
Wc as IconChevronLeft,
|
|
5246
|
+
Jc as IconChevronRight,
|
|
5235
5247
|
Be as IconChevronUp,
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5248
|
+
Qc as IconCircledCheck,
|
|
5249
|
+
Yc as IconClock,
|
|
5250
|
+
Xc as IconClosedEnvelope,
|
|
5251
|
+
er as IconCloudUpload,
|
|
5252
|
+
tr as IconConnectorConfluence,
|
|
5253
|
+
or as IconConnectorFigma,
|
|
5254
|
+
nr as IconConnectorFreshDesk,
|
|
5255
|
+
sr as IconConnectorGitHub,
|
|
5256
|
+
ir as IconConnectorJira,
|
|
5257
|
+
ar as IconConnectorLinear,
|
|
5258
|
+
lr as IconConnectorNotion,
|
|
5259
|
+
cr as IconConnectorSlack,
|
|
5260
|
+
rr as IconConnectorZapier,
|
|
5249
5261
|
Se as IconCopy,
|
|
5250
5262
|
ee as IconCross,
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5263
|
+
dr as IconCrossCircleFill,
|
|
5264
|
+
ur as IconCrossInCircle,
|
|
5265
|
+
pr as IconCurrentTick,
|
|
5254
5266
|
Je as IconDataUpload,
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5267
|
+
hr as IconDelete,
|
|
5268
|
+
fr as IconDeleteFillRed,
|
|
5269
|
+
mr as IconDialingPhone,
|
|
5270
|
+
vr as IconDisabledAlert,
|
|
5271
|
+
yr as IconDocumentation,
|
|
5272
|
+
gr as IconDownload,
|
|
5261
5273
|
lt as IconDribbble,
|
|
5262
|
-
|
|
5274
|
+
Ir as IconDropdownArrow,
|
|
5263
5275
|
pe as IconEdit,
|
|
5264
5276
|
kt as IconEditLinePath,
|
|
5265
|
-
|
|
5266
|
-
|
|
5277
|
+
br as IconEllipse,
|
|
5278
|
+
kr as IconExcelThumbnail,
|
|
5267
5279
|
_t as IconExpand,
|
|
5268
5280
|
et as IconEye,
|
|
5269
5281
|
ut as IconFacebook,
|
|
5270
5282
|
ct as IconFigma,
|
|
5271
5283
|
ht as IconFile,
|
|
5272
5284
|
tt as IconFileSystem,
|
|
5273
|
-
|
|
5285
|
+
_r as IconFileUpload,
|
|
5274
5286
|
st as IconFilter,
|
|
5275
5287
|
vt as IconFolder,
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5288
|
+
Cr as IconFreddyHub,
|
|
5289
|
+
wr as IconFreddyHubLogo,
|
|
5290
|
+
Sr as IconFreddyHubNewLogo,
|
|
5291
|
+
Tr as IconFreddyHubTitle,
|
|
5292
|
+
$r as IconFreddySmall,
|
|
5293
|
+
xr as IconGlobExpand,
|
|
5294
|
+
Pr as IconGlobe,
|
|
5283
5295
|
pt as IconGoogle,
|
|
5284
|
-
|
|
5285
|
-
|
|
5296
|
+
Ar as IconHollowCircle,
|
|
5297
|
+
Dr as IconHome,
|
|
5286
5298
|
ce as IconInfoRounded,
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5299
|
+
Fr as IconInvalidInvoice,
|
|
5300
|
+
Br as IconInvoice,
|
|
5301
|
+
Mr as IconInvoiceSwitch,
|
|
5302
|
+
Lr as IconLapTableBottom,
|
|
5303
|
+
Vr as IconLense,
|
|
5292
5304
|
Me as IconLightCross,
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5305
|
+
Er as IconLink04,
|
|
5306
|
+
Nr as IconLoadingError,
|
|
5307
|
+
Rr as IconLoadingOrg,
|
|
5308
|
+
Or as IconLocationWithCircleIn,
|
|
5297
5309
|
Ze as IconLock,
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5310
|
+
zr as IconMarketPlace,
|
|
5311
|
+
Hr as IconMaximize,
|
|
5312
|
+
Ur as IconMicrophone,
|
|
5313
|
+
jr as IconMutedMicrophone,
|
|
5314
|
+
Kr as IconNewNotification,
|
|
5303
5315
|
qe as IconNewTab,
|
|
5304
|
-
|
|
5305
|
-
|
|
5316
|
+
Gr as IconNotification,
|
|
5317
|
+
Zr as IconOpenBook,
|
|
5306
5318
|
yt as IconPaperAirPlane,
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5319
|
+
qr as IconPauseCircle,
|
|
5320
|
+
Wr as IconPdfThumbnail,
|
|
5321
|
+
Jr as IconPenEdit,
|
|
5322
|
+
Qr as IconPencil,
|
|
5323
|
+
Yr as IconPeopleHub,
|
|
5324
|
+
Xr as IconPersonCircle,
|
|
5325
|
+
ed as IconPits,
|
|
5326
|
+
td as IconPlay,
|
|
5315
5327
|
Xe as IconPlus,
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5328
|
+
od as IconPolygonDown,
|
|
5329
|
+
nd as IconPresentation,
|
|
5330
|
+
sd as IconProgressBase,
|
|
5331
|
+
id as IconProgressComplete,
|
|
5332
|
+
ad as IconProgressGoing,
|
|
5333
|
+
ld as IconPurpose,
|
|
5334
|
+
cd as IconPurseCircleFill,
|
|
5323
5335
|
fe as IconQuestion,
|
|
5324
|
-
|
|
5325
|
-
|
|
5336
|
+
rd as IconRadio,
|
|
5337
|
+
dd as IconRadioFill,
|
|
5326
5338
|
ft as IconRefresh,
|
|
5327
5339
|
at as IconRevertedTriangle,
|
|
5328
5340
|
We as IconRobotScreen,
|
|
5329
|
-
|
|
5341
|
+
ud as IconRoundTick,
|
|
5330
5342
|
Ye as IconSearch,
|
|
5331
5343
|
Ct as IconSearchOptimised,
|
|
5332
|
-
|
|
5344
|
+
pd as IconSectionHide,
|
|
5333
5345
|
wt as IconSend,
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5346
|
+
hd as IconSettings,
|
|
5347
|
+
fd as IconSettingsBold,
|
|
5348
|
+
md as IconSize,
|
|
5349
|
+
vd as IconSliderKnobs,
|
|
5350
|
+
yd as IconSortIdle,
|
|
5339
5351
|
Fe as IconSparkle,
|
|
5340
|
-
|
|
5352
|
+
gd as IconSpotlio,
|
|
5341
5353
|
ot as IconStar,
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5354
|
+
Id as IconStatistics,
|
|
5355
|
+
bd as IconStopChat,
|
|
5356
|
+
kd as IconStreamLineHub,
|
|
5357
|
+
_d as IconStreamLineHubNewLogo,
|
|
5346
5358
|
Le as IconStyleDirective,
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5359
|
+
Cd as IconSun,
|
|
5360
|
+
wd as IconSwap,
|
|
5361
|
+
Sd as IconText,
|
|
5362
|
+
Td as IconTextThumbnail,
|
|
5363
|
+
$d as IconThinDocument,
|
|
5364
|
+
xd as IconThinFile,
|
|
5353
5365
|
mt as IconThumbsDown,
|
|
5354
5366
|
he as IconTick,
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5367
|
+
Pd as IconUser,
|
|
5368
|
+
Ad as IconVerticalDots,
|
|
5369
|
+
Dd as IconVideoCamera,
|
|
5370
|
+
Fd as IconWarningOctal,
|
|
5359
5371
|
rt as IconX,
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5372
|
+
Bd as IconZip,
|
|
5373
|
+
hc as InputField,
|
|
5374
|
+
fc as InstructionsModal,
|
|
5375
|
+
mc as InstructiontextArea,
|
|
5376
|
+
Ea as ModalBox,
|
|
5377
|
+
vc as ModalOverlay,
|
|
5378
|
+
yc as ModelDropdown,
|
|
5379
|
+
gc as OutputModeModal,
|
|
5380
|
+
Ic as Pagination,
|
|
5381
|
+
xa as PhoneInput,
|
|
5382
|
+
oc as RulesManagement,
|
|
5371
5383
|
_e as SearchInput,
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
+
bc as SendButton,
|
|
5385
|
+
li as SimpleChatInterface,
|
|
5386
|
+
kc as SkeletonLoader,
|
|
5387
|
+
_c as Slider,
|
|
5388
|
+
Cc as SnackBar,
|
|
5389
|
+
ac as SocialButtons,
|
|
5390
|
+
Ha as Spinner,
|
|
5391
|
+
ji as Switch,
|
|
5392
|
+
wc as SwitchSlot,
|
|
5393
|
+
Sc as TabList,
|
|
5394
|
+
Ei as TextAreaInputField,
|
|
5395
|
+
Tc as ToastMessage,
|
|
5384
5396
|
re as Tooltip,
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5397
|
+
xs as TooltipV2,
|
|
5398
|
+
nc as VectorFrame,
|
|
5399
|
+
sc as VectorSection,
|
|
5400
|
+
ic as VoiceList,
|
|
5389
5401
|
Ee as VoiceSelection,
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5402
|
+
Md as aiResponseToChatMessage,
|
|
5403
|
+
Ld as calculatePercentage,
|
|
5404
|
+
Vd as cloneDeepSafe,
|
|
5405
|
+
Ed as copyToClipboard,
|
|
5394
5406
|
bt as createChangesObject,
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5407
|
+
Nd as daysInMonth,
|
|
5408
|
+
Rd as debounce,
|
|
5409
|
+
Od as deepEqual,
|
|
5410
|
+
Zl as default,
|
|
5411
|
+
zd as defaultImageSrc,
|
|
5412
|
+
Hd as extractStats,
|
|
5413
|
+
Ud as fileSizeFormatter,
|
|
5414
|
+
jd as fillMissingDays,
|
|
5415
|
+
Kd as formatDate,
|
|
5416
|
+
Gd as formatDateToLocaleString,
|
|
5417
|
+
Zd as formatLastUsedDate,
|
|
5418
|
+
ql as frSanitizePlugin,
|
|
5419
|
+
qd as getDatesForMonth,
|
|
5420
|
+
Wd as getDaysInMonth,
|
|
5409
5421
|
It as getDisplayContent,
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5422
|
+
Jd as getFileNameFromUrl,
|
|
5423
|
+
Qd as getShortMonthName,
|
|
5424
|
+
Yd as hasOverflow,
|
|
5425
|
+
Xd as hasTextImprovements,
|
|
5426
|
+
Wl as iconStylePlugin,
|
|
5427
|
+
eu as interpolateColor,
|
|
5428
|
+
tu as isValidAIResponse,
|
|
5429
|
+
ou as openConfirmBoxModal,
|
|
5430
|
+
nu as openDeleteConfirmModal,
|
|
5431
|
+
su as parseAITextResponse,
|
|
5420
5432
|
gt as parseApiResponse,
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5433
|
+
iu as readableDateFormat,
|
|
5434
|
+
au as scrollToBottom,
|
|
5435
|
+
lu as scrollToElement,
|
|
5436
|
+
$c as useErrorHandler,
|
|
5437
|
+
xc as usePerformance,
|
|
5426
5438
|
St as useSnackBar,
|
|
5427
5439
|
Tt as useToast,
|
|
5428
5440
|
Ve as vFrSanitize
|