@aitronos/freddy-plugins 0.4.55 → 0.4.56
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/CHANGELOG.md +15 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +172 -172
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Ke = Object.defineProperty;
|
|
2
2
|
var Ge = (g, h, n) => h in g ? Ke(g, h, { enumerable: !0, configurable: !0, writable: !0, value: n }) : g[h] = n;
|
|
3
3
|
var ge = (g, h, n) => Ge(g, typeof h != "symbol" ? h + "" : h, n);
|
|
4
|
-
import { _ as Ze, a as qe, b as We, c as Je, d as Ye, e as Qe, f as Xe, g as et, h as tt, i as ot, j as nt, k as st, l as at, m as it, n as lt, o as rt, p as ct, q as dt, r as ut, s as pt, t as ft, u as ht, v as vt, w as mt, x as gt, y as yt, z as _t, A as bt, B as It, C as kt, D as Ct, E as wt, F as
|
|
5
|
-
import { cc as vu, cd as mu, ce as gu, cf as yu, cg as _u, ch as bu, ci as Iu, cj as ku, ck as Cu, cl as wu, cm as
|
|
4
|
+
import { _ as Ze, a as qe, b as We, c as Je, d as Ye, e as Qe, f as Xe, g as et, h as tt, i as ot, j as nt, k as st, l as at, m as it, n as lt, o as rt, p as ct, q as dt, r as ut, s as pt, t as ft, u as ht, v as vt, w as mt, x as gt, y as yt, z as _t, A as bt, B as It, C as kt, D as Ct, E as wt, F as Tt, G as St, H as $t, I as xt, J as At, K as Dt, L as Pt, M as Bt, N as Ft, O as Mt, P as Lt, Q as Vt, R as Et, S as Nt, T as Rt, U as Ot, V as zt, W as Ut, X as jt, Y as Ht, Z as Kt, $ as Gt, a0 as Zt, a1 as qt, a2 as Wt, a3 as Jt, a4 as Yt, a5 as Qt, a6 as Xt, a7 as eo, a8 as to, a9 as oo, aa as no, ab as so, ac as ao, ad as io, ae as lo, af as ro, ag as co, ah as uo, ai as po, aj as fo, ak as ho, al as vo, am as mo, an as go, ao as yo, ap as _o, aq as bo, ar as Io, as as ko, at as Co, au as wo, av as To, aw as So, ax as $o, ay as xo, az as Ao, aA as Do, aB as Po, aC as Bo, aD as Fo, aE as Mo, aF as Lo, aG as Vo, aH as Eo, aI as No, aJ as Ro, aK as Oo, aL as zo, aM as Uo, aN as jo, aO as Ho, aP as Ko, aQ as Go, aR as Zo, aS as qo, aT as Wo, aU as Jo, aV as Yo, aW as Qo, aX as Xo, aY as en, aZ as tn, a_ as on, a$ as nn, b0 as sn, b1 as an, b2 as ln, b3 as rn, b4 as cn, b5 as dn, b6 as un, b7 as pn, b8 as fn, b9 as hn, ba as vn, bb as mn, bc as gn, bd as yn, be as _n, bf as bn, bg as In, bh as kn, bi as Cn, bj as wn, bk as Tn, bl as Sn, bm as $n, bn as xn, bo as An, bp as Dn, bq as Pn, br as Bn, bs as Fn, bt as j, bu as ee, bv as pe, bw as Mn, bx as ye, by as Pe, bz as fe, bA as te, bB as Ln, bC as Be, bD as Vn, bE as re, bF as En, bG as Nn, bH as Rn, bI as On, bJ as he, bK as zn, bL as le, bM as Un, bN as jn, bO as Hn, bP as Kn, bQ as Gn, bR as Zn, bS as qn, bT as Wn, bU as Te, bV as Jn, bW as Se, bX as Yn, bY as Qn, bZ as Xn, b_ as es, b$ as ts, c0 as os, c1 as ns, c2 as ss, c3 as as, c4 as Fe, c5 as is, c6 as Me, c7 as Le, c8 as ls, c9 as rs, ca as $e, cb as cs } from "./icons-ChDgG5_V.js";
|
|
5
|
+
import { cc as vu, cd as mu, ce as gu, cf as yu, cg as _u, ch as bu, ci as Iu, cj as ku, ck as Cu, cl as wu, cm as Tu, cn as Su, co as $u, cp as xu, cq as Au, cr as Du, cs as Pu, ct as Bu, cu as Fu, cv as Mu, cw as Lu, cx as Vu, cy as Eu, cz as Nu, cA as Ru, cB as Ou, cC as zu, cD as Uu, cE as ju, cF as Hu, cG as Ku, cH as Gu, cI as Zu, cJ as qu, cK as Wu, cL as Ju, cM as Yu, cN as Qu, cO as Xu, cP as ep, cQ as tp, cR as op, cS as np, cT as sp, cU as ap, cV as ip, cW as lp, cX as rp, cY as cp, cZ as dp, c_ as up, c$ as pp, d0 as fp, d1 as hp, d2 as vp, d3 as mp, d4 as gp, d5 as yp, d6 as _p, d7 as bp, d8 as Ip, d9 as kp, da as Cp, db as wp, dc as Tp, dd as Sp, de as $p, df as xp, dg as Ap, dh as Dp, di as Pp, dj as Bp, dk as Fp, dl as Mp, dm as Lp, dn as Vp, dp as Ep, dq as Np, dr as Rp, ds as Op, dt as zp, du as Up, dv as jp, dw as Hp, dx as Kp, dy as Gp, dz as Zp, dA as qp, dB as Wp, dC as Jp, dD as Yp, dE as Qp, dF as Xp, dG as ef, dH as tf, dI as of, dJ as nf, dK as sf, dL as af, dM as lf, dN as rf, dO as cf, dP as df, dQ as uf, dR as pf, dS as ff, dT as hf, dU as vf, ej as mf, dY as gf, ef as yf, ea as _f, e4 as bf, ed as If, ee as kf, dX as Cf, eh as wf, eb as Tf, d_ as Sf, e2 as $f, e0 as xf, e3 as Af, d$ as Df, e5 as Pf, e7 as Bf, dZ as Ff, ec as Mf, eg as Lf, e6 as Vf, ek as Ef, dW as Nf, dV as Rf, ei as Of, e1 as zf, e9 as Uf, e8 as jf } from "./icons-ChDgG5_V.js";
|
|
6
6
|
import { defineComponent as N, createElementBlock as f, openBlock as l, normalizeStyle as ne, normalizeClass as P, createStaticVNode as ds, createBlock as E, Transition as ce, withCtx as q, createCommentVNode as w, createElementVNode as s, renderSlot as W, toDisplayString as B, createVNode as M, ref as D, computed as F, Fragment as O, renderList as U, resolveDynamicComponent as G, unref as V, watch as Z, withKeys as z, withModifiers as H, withDirectives as Y, vModelText as Q, createTextVNode as J, defineAsyncComponent as R, onMounted as ve, nextTick as oe, shallowRef as us, mergeProps as se, vModelDynamic as ps, onUnmounted as Ve, useAttrs as fs } from "vue";
|
|
7
7
|
const Ee = {
|
|
8
8
|
mounted(g) {
|
|
@@ -93,8 +93,8 @@ const vs = [
|
|
|
93
93
|
"./icons/IconApple.vue": An,
|
|
94
94
|
"./icons/IconApplePay.vue": xn,
|
|
95
95
|
"./icons/IconArrowDown.vue": $n,
|
|
96
|
-
"./icons/IconArrowLeft.vue":
|
|
97
|
-
"./icons/IconArrowUp.vue":
|
|
96
|
+
"./icons/IconArrowLeft.vue": Sn,
|
|
97
|
+
"./icons/IconArrowUp.vue": Tn,
|
|
98
98
|
"./icons/IconBadgeCheck.vue": wn,
|
|
99
99
|
"./icons/IconBroom.vue": Cn,
|
|
100
100
|
"./icons/IconBuildings.vue": kn,
|
|
@@ -146,8 +146,8 @@ const vs = [
|
|
|
146
146
|
"./icons/IconFigma.vue": Ao,
|
|
147
147
|
"./icons/IconFile.vue": xo,
|
|
148
148
|
"./icons/IconFileSystem.vue": $o,
|
|
149
|
-
"./icons/IconFileUpload.vue":
|
|
150
|
-
"./icons/IconFilter.vue":
|
|
149
|
+
"./icons/IconFileUpload.vue": So,
|
|
150
|
+
"./icons/IconFilter.vue": To,
|
|
151
151
|
"./icons/IconFolder.vue": wo,
|
|
152
152
|
"./icons/IconFreddyHub.vue": Co,
|
|
153
153
|
"./icons/IconFreddyHubLogo.vue": ko,
|
|
@@ -199,8 +199,8 @@ const vs = [
|
|
|
199
199
|
"./icons/IconQuestion.vue": At,
|
|
200
200
|
"./icons/IconRadio.vue": xt,
|
|
201
201
|
"./icons/IconRadioFill.vue": $t,
|
|
202
|
-
"./icons/IconRefresh.vue":
|
|
203
|
-
"./icons/IconRevertedTraingle.vue":
|
|
202
|
+
"./icons/IconRefresh.vue": St,
|
|
203
|
+
"./icons/IconRevertedTraingle.vue": Tt,
|
|
204
204
|
"./icons/IconRobotScreen.vue": wt,
|
|
205
205
|
"./icons/IconRoundTick.vue": Ct,
|
|
206
206
|
"./icons/IconSearch.vue": kt,
|
|
@@ -333,7 +333,7 @@ const vs = [
|
|
|
333
333
|
_: 3
|
|
334
334
|
}));
|
|
335
335
|
}
|
|
336
|
-
}), ks = { class: "freddy-assistant-field__content" }, Cs = { class: "freddy-assistant-field__header" }, ws = { class: "freddy-assistant-field__name" },
|
|
336
|
+
}), ks = { class: "freddy-assistant-field__content" }, Cs = { class: "freddy-assistant-field__header" }, ws = { class: "freddy-assistant-field__name" }, Ts = { class: "freddy-assistant-field__date" }, Ss = { class: "freddy-assistant-field__footer" }, $s = { class: "freddy-assistant-field__id" }, xs = {
|
|
337
337
|
key: 0,
|
|
338
338
|
class: "freddy-assistant-field__privacy-icon"
|
|
339
339
|
}, As = /* @__PURE__ */ N({
|
|
@@ -357,9 +357,9 @@ const vs = [
|
|
|
357
357
|
s("div", ks, [
|
|
358
358
|
s("div", Cs, [
|
|
359
359
|
s("div", ws, B(o.name), 1),
|
|
360
|
-
s("div",
|
|
360
|
+
s("div", Ts, B(o.date), 1)
|
|
361
361
|
]),
|
|
362
|
-
s("div",
|
|
362
|
+
s("div", Ss, [
|
|
363
363
|
s("div", $s, B(o.assistantId), 1),
|
|
364
364
|
o.isDefault ? (l(), f("div", xs, [
|
|
365
365
|
M(Fn, { class: "freddy-assistant-field__lock-icon" })
|
|
@@ -628,12 +628,12 @@ const vs = [
|
|
|
628
628
|
setup(g, { expose: h, emit: n }) {
|
|
629
629
|
const a = g, o = () => {
|
|
630
630
|
const c = [];
|
|
631
|
-
let
|
|
631
|
+
let T = 1;
|
|
632
632
|
for (const [_, t] of Object.entries(ye))
|
|
633
633
|
if (typeof t == "object" && t && "default" in t) {
|
|
634
634
|
const K = t.default;
|
|
635
635
|
c.push({
|
|
636
|
-
id:
|
|
636
|
+
id: T++,
|
|
637
637
|
name: _.replace("Icon", ""),
|
|
638
638
|
// Remove 'Icon' prefix for display
|
|
639
639
|
iconName: _,
|
|
@@ -644,9 +644,9 @@ const vs = [
|
|
|
644
644
|
}
|
|
645
645
|
return c;
|
|
646
646
|
}, i = F(() => a.icons.length > 0 ? a.icons : o()), r = n, d = D(null), p = D(null), m = D(null), y = D(""), C = F(() => y.value ? i.value.filter(
|
|
647
|
-
(
|
|
647
|
+
(T) => {
|
|
648
648
|
var _;
|
|
649
|
-
return (_ =
|
|
649
|
+
return (_ = T.name) == null ? void 0 : _.toLowerCase().includes(y.value.toLowerCase());
|
|
650
650
|
}
|
|
651
651
|
) : i.value), A = F(() => d.value !== null || p.value !== null || m.value !== null), L = () => {
|
|
652
652
|
r("close");
|
|
@@ -664,7 +664,7 @@ const vs = [
|
|
|
664
664
|
p.value = c.id, r("faceSelect", c);
|
|
665
665
|
}, I = (c) => {
|
|
666
666
|
m.value = c.id, r("voiceSelect", c);
|
|
667
|
-
},
|
|
667
|
+
}, S = (c) => {
|
|
668
668
|
y.value = c || "", r("searchInput", c || "");
|
|
669
669
|
}, u = () => {
|
|
670
670
|
r("uploadClick");
|
|
@@ -676,7 +676,7 @@ const vs = [
|
|
|
676
676
|
resetSelections: () => {
|
|
677
677
|
d.value = null, p.value = null, m.value = null;
|
|
678
678
|
}
|
|
679
|
-
}), (c,
|
|
679
|
+
}), (c, T) => (l(), f("div", Ys, [
|
|
680
680
|
s("div", Qs, [
|
|
681
681
|
s("div", Xs, [
|
|
682
682
|
s("div", ea, [
|
|
@@ -694,7 +694,7 @@ const vs = [
|
|
|
694
694
|
]),
|
|
695
695
|
s("div", sa, [
|
|
696
696
|
s("div", aa, [
|
|
697
|
-
|
|
697
|
+
T[1] || (T[1] = s("h3", { class: "freddy-choose-assistant-avatar__section-title" }, " Choose the icon ", -1)),
|
|
698
698
|
s("div", ia, [
|
|
699
699
|
s("div", la, [
|
|
700
700
|
s("button", {
|
|
@@ -707,8 +707,8 @@ const vs = [
|
|
|
707
707
|
M(V(ke), {
|
|
708
708
|
searchInput: y.value,
|
|
709
709
|
"onUpdate:searchInput": [
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
T[0] || (T[0] = (_) => y.value = _),
|
|
711
|
+
S
|
|
712
712
|
],
|
|
713
713
|
placeholder: c.searchPlaceholder,
|
|
714
714
|
class: "freddy-choose-assistant-avatar__search-input-wrapper"
|
|
@@ -739,7 +739,7 @@ const vs = [
|
|
|
739
739
|
])
|
|
740
740
|
]),
|
|
741
741
|
s("div", fa, [
|
|
742
|
-
|
|
742
|
+
T[2] || (T[2] = s("h3", { class: "freddy-choose-assistant-avatar__section-title" }, " Choose the face ", -1)),
|
|
743
743
|
s("div", ha, [
|
|
744
744
|
(l(!0), f(O, null, U(c.faces, (_, t) => (l(), E(V(Re), {
|
|
745
745
|
key: _.id || t,
|
|
@@ -752,7 +752,7 @@ const vs = [
|
|
|
752
752
|
])
|
|
753
753
|
]),
|
|
754
754
|
s("div", va, [
|
|
755
|
-
|
|
755
|
+
T[3] || (T[3] = s("h3", { class: "freddy-choose-assistant-avatar__section-title" }, " Choose the voice ", -1)),
|
|
756
756
|
s("div", ma, [
|
|
757
757
|
(l(!0), f(O, null, U(c.voices, (_, t) => (l(), E(V(Oe), {
|
|
758
758
|
key: _.id || t,
|
|
@@ -844,7 +844,7 @@ const vs = [
|
|
|
844
844
|
], 42, _a))), 128))
|
|
845
845
|
], 2));
|
|
846
846
|
}
|
|
847
|
-
}), Ca = { class: "rules-management" }, wa = { class: "rules-header" },
|
|
847
|
+
}), Ca = { class: "rules-management" }, wa = { class: "rules-header" }, Ta = { class: "header-actions" }, Sa = { class: "search-wrapper" }, $a = ["onKeydown"], xa = {
|
|
848
848
|
class: "tabs-container",
|
|
849
849
|
role: "tablist",
|
|
850
850
|
"aria-label": "Rules filter tabs"
|
|
@@ -906,12 +906,12 @@ const vs = [
|
|
|
906
906
|
}), C = F(() => {
|
|
907
907
|
const u = [], e = n.totalPages, c = r.value;
|
|
908
908
|
if (e <= 7)
|
|
909
|
-
for (let
|
|
910
|
-
u.push(
|
|
909
|
+
for (let T = 1; T <= e; T++)
|
|
910
|
+
u.push(T);
|
|
911
911
|
else {
|
|
912
912
|
u.push(1), c > 3 && u.push("...");
|
|
913
|
-
for (let
|
|
914
|
-
u.push(
|
|
913
|
+
for (let T = Math.max(2, c - 1); T <= Math.min(e - 1, c + 1); T++)
|
|
914
|
+
u.push(T);
|
|
915
915
|
c < e - 2 && u.push("..."), u.push(e);
|
|
916
916
|
}
|
|
917
917
|
return u;
|
|
@@ -929,7 +929,7 @@ const vs = [
|
|
|
929
929
|
r.value = u, a("pageChange", u);
|
|
930
930
|
}, I = () => {
|
|
931
931
|
r.value > 1 && k(r.value - 1);
|
|
932
|
-
},
|
|
932
|
+
}, S = () => {
|
|
933
933
|
r.value < n.totalPages && k(r.value + 1);
|
|
934
934
|
};
|
|
935
935
|
return (u, e) => (l(), f("div", Ca, [
|
|
@@ -938,8 +938,8 @@ const vs = [
|
|
|
938
938
|
s("h1", { class: "title" }, "Rules Management"),
|
|
939
939
|
s("p", { class: "subtitle" }, " Manage and organize your organization's rules and guidelines ")
|
|
940
940
|
], -1)),
|
|
941
|
-
s("div",
|
|
942
|
-
s("div",
|
|
941
|
+
s("div", Ta, [
|
|
942
|
+
s("div", Sa, [
|
|
943
943
|
M(Be, {
|
|
944
944
|
class: "search-icon",
|
|
945
945
|
"aria-hidden": "true"
|
|
@@ -1061,10 +1061,10 @@ const vs = [
|
|
|
1061
1061
|
s("div", Za, [
|
|
1062
1062
|
s("button", {
|
|
1063
1063
|
class: "icon-btn",
|
|
1064
|
-
onClick: (
|
|
1064
|
+
onClick: (T) => $(c),
|
|
1065
1065
|
onKeydown: [
|
|
1066
|
-
z((
|
|
1067
|
-
z(H((
|
|
1066
|
+
z((T) => $(c), ["enter"]),
|
|
1067
|
+
z(H((T) => $(c), ["prevent"]), ["space"])
|
|
1068
1068
|
],
|
|
1069
1069
|
"aria-label": `Edit ${c.title}`,
|
|
1070
1070
|
tabindex: "0"
|
|
@@ -1073,10 +1073,10 @@ const vs = [
|
|
|
1073
1073
|
], 40, qa),
|
|
1074
1074
|
s("button", {
|
|
1075
1075
|
class: "icon-btn",
|
|
1076
|
-
onClick: (
|
|
1076
|
+
onClick: (T) => b(c),
|
|
1077
1077
|
onKeydown: [
|
|
1078
|
-
z((
|
|
1079
|
-
z(H((
|
|
1078
|
+
z((T) => b(c), ["enter"]),
|
|
1079
|
+
z(H((T) => b(c), ["prevent"]), ["space"])
|
|
1080
1080
|
],
|
|
1081
1081
|
"aria-label": `View ${c.title}`,
|
|
1082
1082
|
tabindex: "0"
|
|
@@ -1108,10 +1108,10 @@ const vs = [
|
|
|
1108
1108
|
"page-number",
|
|
1109
1109
|
{ active: r.value === c, ellipsis: c === "..." }
|
|
1110
1110
|
]),
|
|
1111
|
-
onClick: (
|
|
1111
|
+
onClick: (T) => c !== "..." && k(c),
|
|
1112
1112
|
onKeydown: [
|
|
1113
|
-
z((
|
|
1114
|
-
z(H((
|
|
1113
|
+
z((T) => c !== "..." && k(c), ["enter"]),
|
|
1114
|
+
z(H((T) => c !== "..." && k(c), ["prevent"]), ["space"])
|
|
1115
1115
|
],
|
|
1116
1116
|
disabled: c === "...",
|
|
1117
1117
|
"aria-label": c === "..." ? "More pages" : `Go to page ${c}`,
|
|
@@ -1123,10 +1123,10 @@ const vs = [
|
|
|
1123
1123
|
s("button", {
|
|
1124
1124
|
class: "pagination-btn",
|
|
1125
1125
|
disabled: r.value === u.totalPages,
|
|
1126
|
-
onClick:
|
|
1126
|
+
onClick: S,
|
|
1127
1127
|
onKeydown: [
|
|
1128
|
-
z(
|
|
1129
|
-
z(H(
|
|
1128
|
+
z(S, ["enter"]),
|
|
1129
|
+
z(H(S, ["prevent"]), ["space"])
|
|
1130
1130
|
],
|
|
1131
1131
|
"aria-label": "Go to next page",
|
|
1132
1132
|
tabindex: r.value === u.totalPages ? -1 : 0
|
|
@@ -1177,7 +1177,7 @@ const vs = [
|
|
|
1177
1177
|
o.value ? (l(), f("div", ci)) : w("", !0)
|
|
1178
1178
|
], 2));
|
|
1179
1179
|
}
|
|
1180
|
-
}), ui = /* @__PURE__ */ j(di, [["__scopeId", "data-v-aa2b4501"]]), pi = { class: "freddy-vector-section" }, fi = { class: "freddy-vector-section__content" }, hi = { class: "freddy-vector-section__header" }, vi = { class: "freddy-vector-section__count" }, mi = { class: "freddy-vector-section__main" }, gi = { class: "freddy-vector-section__search-container" }, yi = { class: "freddy-vector-section__search-header" }, _i = { class: "freddy-vector-section__search-label" }, bi = { class: "freddy-vector-section__help-icon" }, Ii = { class: "freddy-vector-section__search-input-container" }, ki = { class: "freddy-vector-section__filter-results" }, Ci = { class: "freddy-vector-section__filter" }, wi = { class: "freddy-vector-section__filter-button" },
|
|
1180
|
+
}), ui = /* @__PURE__ */ j(di, [["__scopeId", "data-v-aa2b4501"]]), pi = { class: "freddy-vector-section" }, fi = { class: "freddy-vector-section__content" }, hi = { class: "freddy-vector-section__header" }, vi = { class: "freddy-vector-section__count" }, mi = { class: "freddy-vector-section__main" }, gi = { class: "freddy-vector-section__search-container" }, yi = { class: "freddy-vector-section__search-header" }, _i = { class: "freddy-vector-section__search-label" }, bi = { class: "freddy-vector-section__help-icon" }, Ii = { class: "freddy-vector-section__search-input-container" }, ki = { class: "freddy-vector-section__filter-results" }, Ci = { class: "freddy-vector-section__filter" }, wi = { class: "freddy-vector-section__filter-button" }, Ti = { class: "freddy-vector-section__results-count" }, Si = { class: "freddy-vector-section__frames-container" }, $i = {
|
|
1181
1181
|
key: 0,
|
|
1182
1182
|
class: "freddy-vector-section__show-more"
|
|
1183
1183
|
}, xi = { class: "freddy-vector-section__show-more-text" }, Ai = { class: "freddy-vector-section__add-section" }, Di = { class: "freddy-vector-section__add-container" }, Pi = /* @__PURE__ */ N({
|
|
@@ -1311,9 +1311,9 @@ const vs = [
|
|
|
1311
1311
|
M(le, { class: "freddy-vector-section__filter-arrow" })
|
|
1312
1312
|
])
|
|
1313
1313
|
]),
|
|
1314
|
-
s("div",
|
|
1314
|
+
s("div", Ti, B(p.value) + " databases found ", 1)
|
|
1315
1315
|
]),
|
|
1316
|
-
s("div",
|
|
1316
|
+
s("div", Si, [
|
|
1317
1317
|
(l(!0), f(O, null, U(d.value, (k, I) => (l(), f("div", {
|
|
1318
1318
|
key: k.id || I,
|
|
1319
1319
|
class: "freddy-vector-section__frame-item"
|
|
@@ -1322,7 +1322,7 @@ const vs = [
|
|
|
1322
1322
|
title: k.title,
|
|
1323
1323
|
badgeText: k.badgeText,
|
|
1324
1324
|
isSelected: k.isSelected,
|
|
1325
|
-
onClick: (
|
|
1325
|
+
onClick: (S) => C(k, I)
|
|
1326
1326
|
}, null, 8, ["title", "badgeText", "isSelected", "onClick"])
|
|
1327
1327
|
]))), 128))
|
|
1328
1328
|
]),
|
|
@@ -1978,13 +1978,13 @@ class cl {
|
|
|
1978
1978
|
this.apiKey = h || this.getApiKeyFromEnv() || "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";
|
|
1979
1979
|
}
|
|
1980
1980
|
getApiKeyFromEnv() {
|
|
1981
|
-
return
|
|
1981
|
+
return process.env.OPENAI_API_KEY || null;
|
|
1982
1982
|
}
|
|
1983
1983
|
/**
|
|
1984
1984
|
* Set the OpenAI API key
|
|
1985
1985
|
*/
|
|
1986
1986
|
setApiKey(h) {
|
|
1987
|
-
this.apiKey = h
|
|
1987
|
+
this.apiKey = h;
|
|
1988
1988
|
}
|
|
1989
1989
|
/**
|
|
1990
1990
|
* Smart system prompt that determines action and provides contextual responses
|
|
@@ -2288,10 +2288,10 @@ const ue = new cl(
|
|
|
2288
2288
|
}, Il = { class: "freddy-plugins-changes-header" }, kl = { class: "freddy-plugins-header-left" }, Cl = { class: "freddy-plugins-change-title" }, wl = {
|
|
2289
2289
|
key: 0,
|
|
2290
2290
|
class: "freddy-plugins-stat-added"
|
|
2291
|
-
},
|
|
2291
|
+
}, Tl = {
|
|
2292
2292
|
key: 1,
|
|
2293
2293
|
class: "freddy-plugins-stat-removed"
|
|
2294
|
-
},
|
|
2294
|
+
}, Sl = { class: "freddy-plugins-changes-content" }, $l = { class: "freddy-plugins-content-description" }, xl = {
|
|
2295
2295
|
key: 0,
|
|
2296
2296
|
class: "freddy-plugins-content-actions"
|
|
2297
2297
|
}, Al = ["onClick"], Dl = ["onClick"], Pl = {
|
|
@@ -2355,7 +2355,7 @@ const ue = new cl(
|
|
|
2355
2355
|
return "Text has been improved";
|
|
2356
2356
|
}
|
|
2357
2357
|
}, A = async (e) => {
|
|
2358
|
-
var c,
|
|
2358
|
+
var c, T;
|
|
2359
2359
|
if (!ue.isConfigured()) {
|
|
2360
2360
|
const _ = {
|
|
2361
2361
|
id: Date.now().toString(),
|
|
@@ -2384,7 +2384,7 @@ const ue = new cl(
|
|
|
2384
2384
|
title: _.changeTitle || y(_.action),
|
|
2385
2385
|
description: _.changeDescription || C(_.action),
|
|
2386
2386
|
added: ((c = _.stats) == null ? void 0 : c.added) || 0,
|
|
2387
|
-
removed: ((
|
|
2387
|
+
removed: ((T = _.stats) == null ? void 0 : T.removed) || 0,
|
|
2388
2388
|
data: {
|
|
2389
2389
|
originalText: a.textBoxContent,
|
|
2390
2390
|
improvedText: _.improvedText || _.content,
|
|
@@ -2441,19 +2441,19 @@ const ue = new cl(
|
|
|
2441
2441
|
};
|
|
2442
2442
|
return h({
|
|
2443
2443
|
addAIResponse: (e, c) => {
|
|
2444
|
-
const
|
|
2444
|
+
const T = {
|
|
2445
2445
|
id: Date.now().toString(),
|
|
2446
2446
|
content: e,
|
|
2447
2447
|
sender: "assistant",
|
|
2448
2448
|
timestamp: /* @__PURE__ */ new Date(),
|
|
2449
2449
|
changes: c
|
|
2450
2450
|
};
|
|
2451
|
-
p.value.push(
|
|
2451
|
+
p.value.push(T), b();
|
|
2452
2452
|
},
|
|
2453
2453
|
addAIResponseFromApi: (e) => {
|
|
2454
|
-
const c = ts(e),
|
|
2454
|
+
const c = ts(e), T = os(c), _ = ns(c), t = {
|
|
2455
2455
|
id: Date.now().toString(),
|
|
2456
|
-
content:
|
|
2456
|
+
content: T,
|
|
2457
2457
|
sender: "assistant",
|
|
2458
2458
|
timestamp: /* @__PURE__ */ new Date(),
|
|
2459
2459
|
applied: !1,
|
|
@@ -2469,15 +2469,15 @@ const ue = new cl(
|
|
|
2469
2469
|
class: "freddy-plugins-chat-messages"
|
|
2470
2470
|
}, [
|
|
2471
2471
|
s("div", ul, [
|
|
2472
|
-
(l(!0), f(O, null, U(p.value, (
|
|
2473
|
-
key:
|
|
2474
|
-
class: P(["freddy-plugins-message",
|
|
2472
|
+
(l(!0), f(O, null, U(p.value, (T) => (l(), f("div", {
|
|
2473
|
+
key: T.id,
|
|
2474
|
+
class: P(["freddy-plugins-message", T.sender])
|
|
2475
2475
|
}, [
|
|
2476
|
-
|
|
2477
|
-
s("div", fl, B(
|
|
2476
|
+
T.sender === "user" ? (l(), f("div", pl, [
|
|
2477
|
+
s("div", fl, B(T.content), 1),
|
|
2478
2478
|
s("div", hl, [
|
|
2479
2479
|
s("button", vl, [
|
|
2480
|
-
M(V(
|
|
2480
|
+
M(V(Te), { class: "freddy-plugins-action-icon" })
|
|
2481
2481
|
]),
|
|
2482
2482
|
s("button", ml, [
|
|
2483
2483
|
M(V(pe), { class: "freddy-plugins-action-icon" })
|
|
@@ -2485,36 +2485,36 @@ const ue = new cl(
|
|
|
2485
2485
|
])
|
|
2486
2486
|
])) : (l(), f("div", gl, [
|
|
2487
2487
|
s("div", yl, [
|
|
2488
|
-
s("p", _l, B(
|
|
2489
|
-
|
|
2488
|
+
s("p", _l, B(T.content), 1),
|
|
2489
|
+
T.changes ? (l(), f("div", bl, [
|
|
2490
2490
|
s("div", Il, [
|
|
2491
2491
|
s("div", kl, [
|
|
2492
2492
|
M(V(Jn), { class: "freddy-plugins-building-icon" }),
|
|
2493
|
-
s("span", Cl, B(
|
|
2494
|
-
|
|
2495
|
-
|
|
2493
|
+
s("span", Cl, B(T.changes.title || "Instructions"), 1),
|
|
2494
|
+
T.changes.added > 0 ? (l(), f("span", wl, "+" + B(T.changes.added), 1)) : w("", !0),
|
|
2495
|
+
T.changes.removed > 0 ? (l(), f("span", Tl, "-" + B(T.changes.removed), 1)) : w("", !0),
|
|
2496
2496
|
c[1] || (c[1] = s("span", { class: "freddy-plugins-changes-applied" }, "Changes applied", -1))
|
|
2497
2497
|
])
|
|
2498
2498
|
]),
|
|
2499
|
-
s("div",
|
|
2499
|
+
s("div", Sl, [
|
|
2500
2500
|
c[5] || (c[5] = s("div", { class: "freddy-plugins-content-header" }, [
|
|
2501
2501
|
s("span", { class: "freddy-plugins-content-title" }, "Instructions")
|
|
2502
2502
|
], -1)),
|
|
2503
|
-
s("p", $l, B(
|
|
2504
|
-
|
|
2505
|
-
M(V(
|
|
2503
|
+
s("p", $l, B(T.changes.description), 1),
|
|
2504
|
+
T.applied ? (l(), f("div", Pl, [
|
|
2505
|
+
M(V(Se), { class: "freddy-plugins-applied-icon" }),
|
|
2506
2506
|
c[4] || (c[4] = J(" Applied ", -1))
|
|
2507
2507
|
])) : (l(), f("div", xl, [
|
|
2508
2508
|
s("button", {
|
|
2509
2509
|
class: "freddy-plugins-accept-btn",
|
|
2510
|
-
onClick: (_) => k(
|
|
2510
|
+
onClick: (_) => k(T)
|
|
2511
2511
|
}, [
|
|
2512
|
-
M(V(
|
|
2512
|
+
M(V(Se), { class: "freddy-plugins-btn-icon" }),
|
|
2513
2513
|
c[2] || (c[2] = J(" Accept ", -1))
|
|
2514
2514
|
], 8, Al),
|
|
2515
2515
|
s("button", {
|
|
2516
2516
|
class: "freddy-plugins-deny-btn",
|
|
2517
|
-
onClick: (_) => I(
|
|
2517
|
+
onClick: (_) => I(T)
|
|
2518
2518
|
}, [
|
|
2519
2519
|
M(V(te), { class: "freddy-plugins-btn-icon" }),
|
|
2520
2520
|
c[3] || (c[3] = J(" Deny ", -1))
|
|
@@ -2527,7 +2527,7 @@ const ue = new cl(
|
|
|
2527
2527
|
M(V(Yn), { class: "freddy-plugins-action-icon" })
|
|
2528
2528
|
]),
|
|
2529
2529
|
s("button", Ml, [
|
|
2530
|
-
M(V(
|
|
2530
|
+
M(V(Te), { class: "freddy-plugins-action-icon" })
|
|
2531
2531
|
]),
|
|
2532
2532
|
s("button", Ll, [
|
|
2533
2533
|
M(V(Qn), { class: "freddy-plugins-action-icon" })
|
|
@@ -2551,7 +2551,7 @@ const ue = new cl(
|
|
|
2551
2551
|
Y(s("textarea", {
|
|
2552
2552
|
ref_key: "inputRef",
|
|
2553
2553
|
ref: d,
|
|
2554
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2554
|
+
"onUpdate:modelValue": c[0] || (c[0] = (T) => i.value = T),
|
|
2555
2555
|
placeholder: e.placeholder || "Type here...",
|
|
2556
2556
|
class: "freddy-plugins-chat-input",
|
|
2557
2557
|
rows: "1",
|
|
@@ -2634,7 +2634,7 @@ const ue = new cl(
|
|
|
2634
2634
|
}, b = (I) => {
|
|
2635
2635
|
}, k = (I) => {
|
|
2636
2636
|
};
|
|
2637
|
-
return (I,
|
|
2637
|
+
return (I, S) => (l(), E(ce, { name: "modal" }, {
|
|
2638
2638
|
default: q(() => [
|
|
2639
2639
|
g.isVisible ? (l(), f("div", {
|
|
2640
2640
|
key: 0,
|
|
@@ -2677,11 +2677,11 @@ const ue = new cl(
|
|
|
2677
2677
|
}, [
|
|
2678
2678
|
M(as, { class: "freddy-plugins-edit-excerpt-hide-section-icon" })
|
|
2679
2679
|
])) : w("", !0),
|
|
2680
|
-
|
|
2680
|
+
S[1] || (S[1] = s("div", { class: "freddy-plugins-edit-excerpt-modal-header-spacing" }, null, -1))
|
|
2681
2681
|
]),
|
|
2682
2682
|
s("div", Wl, [
|
|
2683
2683
|
Y(s("textarea", {
|
|
2684
|
-
"onUpdate:modelValue":
|
|
2684
|
+
"onUpdate:modelValue": S[0] || (S[0] = (u) => o.value = u),
|
|
2685
2685
|
class: "freddy-plugins-edit-excerpt-modal-textarea",
|
|
2686
2686
|
placeholder: "The text thats needed",
|
|
2687
2687
|
rows: "12"
|
|
@@ -2697,7 +2697,7 @@ const ue = new cl(
|
|
|
2697
2697
|
onClick: C
|
|
2698
2698
|
}, [
|
|
2699
2699
|
M(V(Fe), { class: "freddy-plugins-edit-excerpt-modal-ai-icon" }),
|
|
2700
|
-
|
|
2700
|
+
S[2] || (S[2] = s("span", { class: "freddy-plugins-edit-excerpt-modal-ai-text" }, " Ask AI ", -1))
|
|
2701
2701
|
])),
|
|
2702
2702
|
s("div", { class: "freddy-plugins-edit-excerpt-modal-action-buttons" }, [
|
|
2703
2703
|
s("button", {
|
|
@@ -2797,7 +2797,7 @@ const ue = new cl(
|
|
|
2797
2797
|
a.tagsOnly && o("tags-click");
|
|
2798
2798
|
}, I = () => {
|
|
2799
2799
|
o("tooltip-click");
|
|
2800
|
-
},
|
|
2800
|
+
}, S = (x) => {
|
|
2801
2801
|
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), I());
|
|
2802
2802
|
}, u = () => {
|
|
2803
2803
|
p.value = d.value, y.value = "ai", m.value = !0, o("ask-ai", d.value);
|
|
@@ -2805,7 +2805,7 @@ const ue = new cl(
|
|
|
2805
2805
|
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), u());
|
|
2806
2806
|
}, c = () => {
|
|
2807
2807
|
p.value = d.value, y.value = "expand", m.value = !0, o("expand", d.value);
|
|
2808
|
-
},
|
|
2808
|
+
}, T = (x) => {
|
|
2809
2809
|
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), c());
|
|
2810
2810
|
}, _ = (x) => {
|
|
2811
2811
|
o("remove-tag", x);
|
|
@@ -2849,7 +2849,7 @@ const ue = new cl(
|
|
|
2849
2849
|
"aria-label": "Help",
|
|
2850
2850
|
tabindex: "0",
|
|
2851
2851
|
onClick: I,
|
|
2852
|
-
onKeydown:
|
|
2852
|
+
onKeydown: S
|
|
2853
2853
|
}, [
|
|
2854
2854
|
M(V(he), { class: "freddy-plugins-textarea-tooltip-icon" })
|
|
2855
2855
|
], 32)
|
|
@@ -2936,7 +2936,7 @@ const ue = new cl(
|
|
|
2936
2936
|
type: "button",
|
|
2937
2937
|
class: "freddy-plugins-textarea-expand-button",
|
|
2938
2938
|
onClick: c,
|
|
2939
|
-
onKeydown:
|
|
2939
|
+
onKeydown: T,
|
|
2940
2940
|
"aria-label": "Expand textarea",
|
|
2941
2941
|
tabindex: "0"
|
|
2942
2942
|
}, [
|
|
@@ -3053,7 +3053,7 @@ const ue = new cl(
|
|
|
3053
3053
|
r.value.splice(c, 1), o("remove-tag", c);
|
|
3054
3054
|
}, I = () => {
|
|
3055
3055
|
o("tooltip-click");
|
|
3056
|
-
},
|
|
3056
|
+
}, S = (c) => {
|
|
3057
3057
|
o("add-tag", c);
|
|
3058
3058
|
}, u = () => {
|
|
3059
3059
|
o("tags-click");
|
|
@@ -3061,10 +3061,10 @@ const ue = new cl(
|
|
|
3061
3061
|
return h({
|
|
3062
3062
|
focus: () => {
|
|
3063
3063
|
}
|
|
3064
|
-
}), (c,
|
|
3064
|
+
}), (c, T) => (l(), E(gr, {
|
|
3065
3065
|
modelValue: i.value,
|
|
3066
3066
|
"onUpdate:modelValue": [
|
|
3067
|
-
|
|
3067
|
+
T[0] || (T[0] = (_) => i.value = _),
|
|
3068
3068
|
C
|
|
3069
3069
|
],
|
|
3070
3070
|
label: c.label,
|
|
@@ -3101,7 +3101,7 @@ const ue = new cl(
|
|
|
3101
3101
|
onExpand: b,
|
|
3102
3102
|
onRemoveTag: k,
|
|
3103
3103
|
onTooltipClick: I,
|
|
3104
|
-
onAddTag:
|
|
3104
|
+
onAddTag: S,
|
|
3105
3105
|
onTagsClick: u
|
|
3106
3106
|
}, 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"]));
|
|
3107
3107
|
}
|
|
@@ -3195,10 +3195,10 @@ const ue = new cl(
|
|
|
3195
3195
|
s("span", { class: "freddy-plugins-switch__thumb" }, null, -1)
|
|
3196
3196
|
])], 42, Cr));
|
|
3197
3197
|
}
|
|
3198
|
-
}),
|
|
3198
|
+
}), Tr = {
|
|
3199
3199
|
key: 0,
|
|
3200
3200
|
class: "freddy-plugins-dropdown-search-bar"
|
|
3201
|
-
},
|
|
3201
|
+
}, Sr = ["placeholder"], $r = { class: "freddy-plugins-dropdown-options" }, xr = ["onClick"], Ar = { class: "freddy-plugins-dropdown-option-label" }, Dr = {
|
|
3202
3202
|
key: 1,
|
|
3203
3203
|
class: "freddy-plugins-dropdown-option-shortcut"
|
|
3204
3204
|
}, Pr = {
|
|
@@ -3237,7 +3237,7 @@ const ue = new cl(
|
|
|
3237
3237
|
);
|
|
3238
3238
|
const p = () => {
|
|
3239
3239
|
if (r.value) return;
|
|
3240
|
-
const I = d.value.find((
|
|
3240
|
+
const I = d.value.find((S) => S.default);
|
|
3241
3241
|
I && (r.value = I);
|
|
3242
3242
|
};
|
|
3243
3243
|
Z(
|
|
@@ -3253,15 +3253,15 @@ const ue = new cl(
|
|
|
3253
3253
|
o.value = !1, i.value = "";
|
|
3254
3254
|
}, L = F(() => !n.searchable || !i.value ? d.value : d.value.filter(
|
|
3255
3255
|
(I) => I.label.toLowerCase().includes(i.value.toLowerCase())
|
|
3256
|
-
)), v = (I,
|
|
3256
|
+
)), v = (I, S) => {
|
|
3257
3257
|
I.type !== "toggle" && $(I);
|
|
3258
3258
|
}, $ = (I) => {
|
|
3259
3259
|
r.value = I, a("select", I), n.stayOpen || A();
|
|
3260
|
-
}, b = (I,
|
|
3260
|
+
}, b = (I, S) => {
|
|
3261
3261
|
const u = d.value.findIndex(
|
|
3262
3262
|
(e) => e.value === I.value
|
|
3263
3263
|
);
|
|
3264
|
-
u !== -1 && (d.value[u].checked =
|
|
3264
|
+
u !== -1 && (d.value[u].checked = S), a("toggle", { ...I, checked: S });
|
|
3265
3265
|
}, k = (I) => {
|
|
3266
3266
|
I.target.closest(".freddy-plugins-dropdown-wrapper") || A();
|
|
3267
3267
|
};
|
|
@@ -3269,7 +3269,7 @@ const ue = new cl(
|
|
|
3269
3269
|
I ? setTimeout(() => {
|
|
3270
3270
|
document.addEventListener("click", k);
|
|
3271
3271
|
}, 0) : document.removeEventListener("click", k);
|
|
3272
|
-
}), (I,
|
|
3272
|
+
}), (I, S) => (l(), f("div", {
|
|
3273
3273
|
class: "freddy-plugins-dropdown-wrapper",
|
|
3274
3274
|
onKeydown: z(A, ["esc"]),
|
|
3275
3275
|
tabindex: "0"
|
|
@@ -3301,13 +3301,13 @@ const ue = new cl(
|
|
|
3301
3301
|
"freddy-plugins-dropdown-menu--down": !I.openUp
|
|
3302
3302
|
}])
|
|
3303
3303
|
}, [
|
|
3304
|
-
I.searchable ? (l(), f("div",
|
|
3304
|
+
I.searchable ? (l(), f("div", Tr, [
|
|
3305
3305
|
Y(s("input", {
|
|
3306
|
-
"onUpdate:modelValue":
|
|
3306
|
+
"onUpdate:modelValue": S[0] || (S[0] = (u) => i.value = u),
|
|
3307
3307
|
type: "text",
|
|
3308
3308
|
class: "freddy-plugins-dropdown-search-input",
|
|
3309
3309
|
placeholder: I.searchPlaceholder
|
|
3310
|
-
}, null, 8,
|
|
3310
|
+
}, null, 8, Sr), [
|
|
3311
3311
|
[Q, i.value]
|
|
3312
3312
|
])
|
|
3313
3313
|
])) : w("", !0),
|
|
@@ -3338,13 +3338,13 @@ const ue = new cl(
|
|
|
3338
3338
|
"onUpdate:modelValue": (e) => {
|
|
3339
3339
|
b(u, e);
|
|
3340
3340
|
},
|
|
3341
|
-
onClick:
|
|
3341
|
+
onClick: S[1] || (S[1] = H(() => {
|
|
3342
3342
|
}, ["stop"]))
|
|
3343
3343
|
}, null, 8, ["modelValue", "size", "onUpdate:modelValue"])) : w("", !0)
|
|
3344
3344
|
], 10, xr))), 128)),
|
|
3345
3345
|
L.value.length === 0 ? (l(), f("li", Pr, [
|
|
3346
3346
|
W(I.$slots, "no-options", {}, () => [
|
|
3347
|
-
|
|
3347
|
+
S[2] || (S[2] = J("No options", -1))
|
|
3348
3348
|
])
|
|
3349
3349
|
])) : w("", !0)
|
|
3350
3350
|
])
|
|
@@ -3366,9 +3366,9 @@ const ue = new cl(
|
|
|
3366
3366
|
emits: ["verify", "resend"],
|
|
3367
3367
|
setup(g, { emit: h }) {
|
|
3368
3368
|
const n = g, { brand: a, loading: o, error: i, resendCooldown: r } = n, d = h, p = D(["", "", "", ""]), m = D([]), y = F(() => p.value.every((k) => k !== "")), C = F(() => p.value.join("")), A = (k, I) => {
|
|
3369
|
-
const
|
|
3369
|
+
const S = I.target, u = S.value;
|
|
3370
3370
|
if (!/^\d*$/.test(u)) {
|
|
3371
|
-
|
|
3371
|
+
S.value = "";
|
|
3372
3372
|
return;
|
|
3373
3373
|
}
|
|
3374
3374
|
p.value[k] = u, u && k < 3 && oe(() => {
|
|
@@ -3377,20 +3377,20 @@ const ue = new cl(
|
|
|
3377
3377
|
});
|
|
3378
3378
|
}, L = (k, I) => {
|
|
3379
3379
|
I.key === "Backspace" && !p.value[k] && k > 0 && oe(() => {
|
|
3380
|
-
var
|
|
3381
|
-
(
|
|
3380
|
+
var S;
|
|
3381
|
+
(S = m.value[k - 1]) == null || S.focus();
|
|
3382
3382
|
});
|
|
3383
3383
|
}, v = (k) => {
|
|
3384
3384
|
var c;
|
|
3385
3385
|
k.preventDefault();
|
|
3386
3386
|
const I = (c = k.clipboardData) == null ? void 0 : c.getData("text");
|
|
3387
3387
|
if (!I) return;
|
|
3388
|
-
const
|
|
3389
|
-
p.value = [...
|
|
3390
|
-
const u = p.value.findIndex((
|
|
3388
|
+
const S = I.replace(/\D/g, "").slice(0, 4).split("");
|
|
3389
|
+
p.value = [...S, "", "", "", ""].slice(0, 4);
|
|
3390
|
+
const u = p.value.findIndex((T) => T === ""), e = u === -1 ? 3 : u;
|
|
3391
3391
|
oe(() => {
|
|
3392
|
-
var
|
|
3393
|
-
(
|
|
3392
|
+
var T;
|
|
3393
|
+
(T = m.value[e]) == null || T.focus();
|
|
3394
3394
|
});
|
|
3395
3395
|
}, $ = () => {
|
|
3396
3396
|
y.value && d("verify", C.value);
|
|
@@ -3419,7 +3419,7 @@ const ue = new cl(
|
|
|
3419
3419
|
}, [
|
|
3420
3420
|
s("div", Lr, [
|
|
3421
3421
|
s("div", Vr, [
|
|
3422
|
-
(l(), f(O, null, U(4, (
|
|
3422
|
+
(l(), f(O, null, U(4, (S, u) => Y(s("input", {
|
|
3423
3423
|
key: u,
|
|
3424
3424
|
ref_for: !0,
|
|
3425
3425
|
ref: (e) => m.value[u] = e,
|
|
@@ -3631,7 +3631,7 @@ const ue = new cl(
|
|
|
3631
3631
|
d.value = K.replace(/\D/g, ""), p.value = b(K);
|
|
3632
3632
|
const X = $(d.value);
|
|
3633
3633
|
X !== m.value && (m.value = X, o("card-type-detected", X)), o("update:modelValue", p.value), o("update:cardNumber", d.value), o("input", p.value);
|
|
3634
|
-
},
|
|
3634
|
+
}, S = (_) => {
|
|
3635
3635
|
[8, 9, 27, 13, 46].indexOf(_.keyCode) !== -1 || // Allow Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X
|
|
3636
3636
|
_.keyCode === 65 && _.ctrlKey === !0 || _.keyCode === 67 && _.ctrlKey === !0 || _.keyCode === 86 && _.ctrlKey === !0 || _.keyCode === 88 && _.ctrlKey === !0 || // Allow home, end, left, right
|
|
3637
3637
|
_.keyCode >= 35 && _.keyCode <= 39 || (_.shiftKey || _.keyCode < 48 || _.keyCode > 57) && (_.keyCode < 96 || _.keyCode > 105) && _.preventDefault();
|
|
@@ -3641,7 +3641,7 @@ const ue = new cl(
|
|
|
3641
3641
|
o("blur", _);
|
|
3642
3642
|
}, c = (_) => {
|
|
3643
3643
|
o("trailing-icon-click", _);
|
|
3644
|
-
},
|
|
3644
|
+
}, T = () => {
|
|
3645
3645
|
var _;
|
|
3646
3646
|
(_ = i.value) == null || _.focus();
|
|
3647
3647
|
};
|
|
@@ -3652,7 +3652,7 @@ const ue = new cl(
|
|
|
3652
3652
|
},
|
|
3653
3653
|
{ immediate: !0 }
|
|
3654
3654
|
), h({
|
|
3655
|
-
focus:
|
|
3655
|
+
focus: T,
|
|
3656
3656
|
inputRef: i
|
|
3657
3657
|
}), (_, t) => (l(), E(Ie, se(y.value, {
|
|
3658
3658
|
onFocus: u,
|
|
@@ -3684,7 +3684,7 @@ const ue = new cl(
|
|
|
3684
3684
|
maxlength: L.value,
|
|
3685
3685
|
class: P(["freddy-plugins-input-field freddy-plugins-card-input-field", v.value]),
|
|
3686
3686
|
onInput: I,
|
|
3687
|
-
onKeydown:
|
|
3687
|
+
onKeydown: S,
|
|
3688
3688
|
onFocus: u,
|
|
3689
3689
|
onBlur: e
|
|
3690
3690
|
}, null, 42, qr), [
|
|
@@ -3753,7 +3753,7 @@ const ue = new cl(
|
|
|
3753
3753
|
o("leading-icon-click", u);
|
|
3754
3754
|
}, I = (u) => {
|
|
3755
3755
|
o("trailing-icon-click", u);
|
|
3756
|
-
},
|
|
3756
|
+
}, S = () => {
|
|
3757
3757
|
var u;
|
|
3758
3758
|
(u = i.value) == null || u.focus();
|
|
3759
3759
|
};
|
|
@@ -3763,7 +3763,7 @@ const ue = new cl(
|
|
|
3763
3763
|
u !== void 0 && (d.value = u);
|
|
3764
3764
|
}
|
|
3765
3765
|
), h({
|
|
3766
|
-
focus:
|
|
3766
|
+
focus: S,
|
|
3767
3767
|
inputRef: i
|
|
3768
3768
|
}), (u, e) => (l(), E(Ie, se(p.value, {
|
|
3769
3769
|
onFocus: v,
|
|
@@ -3781,7 +3781,7 @@ const ue = new cl(
|
|
|
3781
3781
|
id: (c = r.value) == null ? void 0 : c.inputId,
|
|
3782
3782
|
ref_key: "inputRef",
|
|
3783
3783
|
ref: i,
|
|
3784
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
3784
|
+
"onUpdate:modelValue": e[0] || (e[0] = (T) => d.value = T),
|
|
3785
3785
|
type: u.inputType,
|
|
3786
3786
|
placeholder: u.placeholder,
|
|
3787
3787
|
disabled: u.disabled,
|
|
@@ -3899,18 +3899,18 @@ const ue = new cl(
|
|
|
3899
3899
|
a.disabled || (p.value = !p.value);
|
|
3900
3900
|
}, $ = (e) => {
|
|
3901
3901
|
m.value = e.code, o("update:countryCode", e.code), o("country-change", e);
|
|
3902
|
-
const c = d.value.replace(/^\+\d+\s*/, ""),
|
|
3903
|
-
d.value =
|
|
3902
|
+
const c = d.value.replace(/^\+\d+\s*/, ""), T = `${e.dialCode} ${c}`.trim();
|
|
3903
|
+
d.value = T, o("update:phoneNumber", T), o("update:modelValue", T), p.value = !1;
|
|
3904
3904
|
}, b = (e) => {
|
|
3905
3905
|
const c = e.target;
|
|
3906
3906
|
d.value = c.value;
|
|
3907
|
-
const
|
|
3908
|
-
o("update:modelValue",
|
|
3907
|
+
const T = `${L.value.dialCode} ${c.value}`;
|
|
3908
|
+
o("update:modelValue", T), o("update:phoneNumber", c.value), o("input", T);
|
|
3909
3909
|
}, k = (e) => {
|
|
3910
3910
|
o("focus", e);
|
|
3911
3911
|
}, I = (e) => {
|
|
3912
3912
|
o("blur", e);
|
|
3913
|
-
},
|
|
3913
|
+
}, S = () => {
|
|
3914
3914
|
var e;
|
|
3915
3915
|
(e = i.value) == null || e.focus();
|
|
3916
3916
|
}, u = (e) => {
|
|
@@ -3932,14 +3932,14 @@ const ue = new cl(
|
|
|
3932
3932
|
}), Ve(() => {
|
|
3933
3933
|
document.removeEventListener("click", u);
|
|
3934
3934
|
}), h({
|
|
3935
|
-
focus:
|
|
3935
|
+
focus: S,
|
|
3936
3936
|
inputRef: i
|
|
3937
3937
|
}), (e, c) => (l(), E(Ie, se(C.value, {
|
|
3938
3938
|
onFocus: k,
|
|
3939
3939
|
onBlur: I
|
|
3940
3940
|
}), {
|
|
3941
3941
|
default: q(() => {
|
|
3942
|
-
var
|
|
3942
|
+
var T;
|
|
3943
3943
|
return [
|
|
3944
3944
|
s("div", {
|
|
3945
3945
|
class: P(["freddy-plugins-figma-dropdown", `freddy-plugins-figma-dropdown--${e.colorStyle}`]),
|
|
@@ -3966,7 +3966,7 @@ const ue = new cl(
|
|
|
3966
3966
|
class: P(["freddy-plugins-figma-text-input", `freddy-plugins-figma-text-input--${e.colorStyle}`])
|
|
3967
3967
|
}, [
|
|
3968
3968
|
Y(s("input", {
|
|
3969
|
-
id: (
|
|
3969
|
+
id: (T = r.value) == null ? void 0 : T.inputId,
|
|
3970
3970
|
ref_key: "inputRef",
|
|
3971
3971
|
ref: i,
|
|
3972
3972
|
"onUpdate:modelValue": c[0] || (c[0] = (_) => d.value = _),
|
|
@@ -4125,7 +4125,7 @@ const ue = new cl(
|
|
|
4125
4125
|
a("country-change", u);
|
|
4126
4126
|
}, I = (u) => {
|
|
4127
4127
|
a("update:cardNumber", u);
|
|
4128
|
-
},
|
|
4128
|
+
}, S = (u) => {
|
|
4129
4129
|
a("card-type-detected", u);
|
|
4130
4130
|
};
|
|
4131
4131
|
return (u, e) => o.value === "phone" ? (l(), E(rc, se({ key: 0 }, i.value, {
|
|
@@ -4139,7 +4139,7 @@ const ue = new cl(
|
|
|
4139
4139
|
}), null, 16)) : o.value === "card" ? (l(), E(Jr, se({ key: 1 }, r.value, {
|
|
4140
4140
|
"onUpdate:modelValue": p,
|
|
4141
4141
|
"onUpdate:cardNumber": I,
|
|
4142
|
-
onCardTypeDetected:
|
|
4142
|
+
onCardTypeDetected: S,
|
|
4143
4143
|
onInput: m,
|
|
4144
4144
|
onFocus: y,
|
|
4145
4145
|
onBlur: C,
|
|
@@ -4351,7 +4351,7 @@ const gc = /* @__PURE__ */ j(dc, [["render", mc]]), Yd = /* @__PURE__ */ N({
|
|
|
4351
4351
|
], 2);
|
|
4352
4352
|
};
|
|
4353
4353
|
}
|
|
4354
|
-
}), wc = { class: "model-dropdown-selected-content" },
|
|
4354
|
+
}), wc = { class: "model-dropdown-selected-content" }, Tc = ["src", "alt"], Sc = { class: "model-dropdown-placeholder" }, $c = {
|
|
4355
4355
|
key: 0,
|
|
4356
4356
|
class: "model-dropdown-menu"
|
|
4357
4357
|
}, xc = {
|
|
@@ -4407,8 +4407,8 @@ const gc = /* @__PURE__ */ j(dc, [["render", mc]]), Yd = /* @__PURE__ */ N({
|
|
|
4407
4407
|
src: r.value.imageSrc,
|
|
4408
4408
|
alt: r.value.value,
|
|
4409
4409
|
class: "model-dropdown-selected-image"
|
|
4410
|
-
}, null, 8,
|
|
4411
|
-
s("span",
|
|
4410
|
+
}, null, 8, Tc)) : w("", !0),
|
|
4411
|
+
s("span", Sc, B((($ = r.value) == null ? void 0 : $.value) || A.modelPlaceholder), 1)
|
|
4412
4412
|
]),
|
|
4413
4413
|
o.value ? (l(), E(Me, {
|
|
4414
4414
|
key: 1,
|
|
@@ -4673,7 +4673,7 @@ const gc = /* @__PURE__ */ j(dc, [["render", mc]]), Yd = /* @__PURE__ */ N({
|
|
|
4673
4673
|
const k = i.value.getBoundingClientRect(), I = Math.max(
|
|
4674
4674
|
0,
|
|
4675
4675
|
Math.min(1, (b - k.left) / k.width)
|
|
4676
|
-
),
|
|
4676
|
+
), S = n.min + I * (n.max - n.min), u = Math.round(S / n.step) * n.step;
|
|
4677
4677
|
return Math.min(n.max, Math.max(n.min, u));
|
|
4678
4678
|
}, C = (b) => {
|
|
4679
4679
|
const k = m(b);
|
|
@@ -4681,10 +4681,10 @@ const gc = /* @__PURE__ */ j(dc, [["render", mc]]), Yd = /* @__PURE__ */ N({
|
|
|
4681
4681
|
}, A = (b) => {
|
|
4682
4682
|
if (n.disabled) return;
|
|
4683
4683
|
b.preventDefault(), b.stopPropagation(), o.value = !0;
|
|
4684
|
-
const k = (
|
|
4684
|
+
const k = (S) => {
|
|
4685
4685
|
if (!o.value) return;
|
|
4686
|
-
|
|
4687
|
-
const u = y(
|
|
4686
|
+
S.preventDefault();
|
|
4687
|
+
const u = y(S.clientX);
|
|
4688
4688
|
C(u);
|
|
4689
4689
|
}, I = () => {
|
|
4690
4690
|
o.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", I);
|
|
@@ -4693,8 +4693,8 @@ const gc = /* @__PURE__ */ j(dc, [["render", mc]]), Yd = /* @__PURE__ */ N({
|
|
|
4693
4693
|
}, L = (b) => {
|
|
4694
4694
|
if (n.disabled) return;
|
|
4695
4695
|
b.preventDefault(), b.stopPropagation(), o.value = !0;
|
|
4696
|
-
const k = (
|
|
4697
|
-
!o.value || !
|
|
4696
|
+
const k = (S) => {
|
|
4697
|
+
!o.value || !S.touches[0] || (S.preventDefault(), C(y(S.touches[0].clientX)));
|
|
4698
4698
|
}, I = () => {
|
|
4699
4699
|
o.value = !1, document.removeEventListener("touchmove", k), document.removeEventListener("touchend", I);
|
|
4700
4700
|
};
|
|
@@ -4987,7 +4987,7 @@ const gc = /* @__PURE__ */ j(dc, [["render", mc]]), Yd = /* @__PURE__ */ N({
|
|
|
4987
4987
|
], 2))), 128))
|
|
4988
4988
|
]));
|
|
4989
4989
|
}
|
|
4990
|
-
}), Cd = ["aria-label"], wd = ["innerHTML"],
|
|
4990
|
+
}), Cd = ["aria-label"], wd = ["innerHTML"], Td = { key: 1 }, Sd = /* @__PURE__ */ N({
|
|
4991
4991
|
__name: "TooltipV2",
|
|
4992
4992
|
props: {
|
|
4993
4993
|
text: {},
|
|
@@ -5044,7 +5044,7 @@ const gc = /* @__PURE__ */ j(dc, [["render", mc]]), Yd = /* @__PURE__ */ N({
|
|
|
5044
5044
|
C.html ? (l(), f("span", {
|
|
5045
5045
|
key: 0,
|
|
5046
5046
|
innerHTML: C.text
|
|
5047
|
-
}, null, 8, wd)) : (l(), f("span",
|
|
5047
|
+
}, null, 8, wd)) : (l(), f("span", Td, B(C.text), 1))
|
|
5048
5048
|
], !0)
|
|
5049
5049
|
], 10, Cd)) : w("", !0)
|
|
5050
5050
|
]),
|
|
@@ -5052,7 +5052,7 @@ const gc = /* @__PURE__ */ j(dc, [["render", mc]]), Yd = /* @__PURE__ */ N({
|
|
|
5052
5052
|
})
|
|
5053
5053
|
], 544));
|
|
5054
5054
|
}
|
|
5055
|
-
}), du = /* @__PURE__ */ j(
|
|
5055
|
+
}), du = /* @__PURE__ */ j(Sd, [["__scopeId", "data-v-55872ec8"]]);
|
|
5056
5056
|
function uu(g = {}) {
|
|
5057
5057
|
const {
|
|
5058
5058
|
logErrors: h = !0,
|
|
@@ -5086,14 +5086,14 @@ function uu(g = {}) {
|
|
|
5086
5086
|
let k = null;
|
|
5087
5087
|
for (let I = 1; I <= a; I++) {
|
|
5088
5088
|
r.value = I - 1;
|
|
5089
|
-
const
|
|
5089
|
+
const S = await y($, {
|
|
5090
5090
|
...b,
|
|
5091
5091
|
attempt: I,
|
|
5092
5092
|
maxRetries: a
|
|
5093
5093
|
});
|
|
5094
|
-
if (
|
|
5095
|
-
return
|
|
5096
|
-
if (k =
|
|
5094
|
+
if (S.data !== null)
|
|
5095
|
+
return S;
|
|
5096
|
+
if (k = S.error, k != null && k.code && typeof k.code == "number" && k.code >= 400 && k.code < 500)
|
|
5097
5097
|
break;
|
|
5098
5098
|
I < a && await new Promise(
|
|
5099
5099
|
(u) => setTimeout(u, Math.pow(2, I) * 1e3)
|
|
@@ -5134,24 +5134,24 @@ function pu(g = {}) {
|
|
|
5134
5134
|
enableMetrics: h = process.env.NODE_ENV === "development",
|
|
5135
5135
|
trackMemory: n = !1,
|
|
5136
5136
|
sampleRate: a = 0.1
|
|
5137
|
-
} = g, o = D([]), i = D(!1), r = D(0), d = F(() => o.value.length === 0 ? 0 : o.value.reduce((u, e) => u + e.renderTime, 0) / o.value.length), p = F(() => o.value.length === 0 ? 0 : Math.max(...o.value.map((
|
|
5138
|
-
!h || Math.random() > a || (i.value = !0, r.value = performance.now(),
|
|
5139
|
-
}, y = (
|
|
5137
|
+
} = g, o = D([]), i = D(!1), r = D(0), d = F(() => o.value.length === 0 ? 0 : o.value.reduce((u, e) => u + e.renderTime, 0) / o.value.length), p = F(() => o.value.length === 0 ? 0 : Math.max(...o.value.map((S) => S.renderTime))), m = (S) => {
|
|
5138
|
+
!h || Math.random() > a || (i.value = !0, r.value = performance.now(), S && process.env.NODE_ENV);
|
|
5139
|
+
}, y = (S, u = 1) => {
|
|
5140
5140
|
if (!i.value || !h) return;
|
|
5141
|
-
const
|
|
5141
|
+
const T = {
|
|
5142
5142
|
renderTime: performance.now() - r.value,
|
|
5143
5143
|
componentCount: u,
|
|
5144
5144
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
5145
5145
|
};
|
|
5146
5146
|
if (n && "memory" in performance) {
|
|
5147
5147
|
const _ = performance.memory;
|
|
5148
|
-
|
|
5148
|
+
T.memoryUsage = _.usedJSHeapSize;
|
|
5149
5149
|
}
|
|
5150
|
-
return o.value.push(
|
|
5151
|
-
}, C = async (
|
|
5150
|
+
return o.value.push(T), o.value.length > 100 && o.value.shift(), i.value = !1, S && process.env.NODE_ENV, T;
|
|
5151
|
+
}, C = async (S, u) => {
|
|
5152
5152
|
m(u);
|
|
5153
5153
|
try {
|
|
5154
|
-
const e = await
|
|
5154
|
+
const e = await S(), c = y(u) || {
|
|
5155
5155
|
renderTime: 0,
|
|
5156
5156
|
componentCount: 1,
|
|
5157
5157
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -5160,36 +5160,36 @@ function pu(g = {}) {
|
|
|
5160
5160
|
} catch (e) {
|
|
5161
5161
|
throw y(u), e;
|
|
5162
5162
|
}
|
|
5163
|
-
}, A = (
|
|
5163
|
+
}, A = (S, u) => {
|
|
5164
5164
|
let e;
|
|
5165
5165
|
return (...c) => {
|
|
5166
|
-
clearTimeout(e), e = setTimeout(() =>
|
|
5166
|
+
clearTimeout(e), e = setTimeout(() => S(...c), u);
|
|
5167
5167
|
};
|
|
5168
|
-
}, L = (
|
|
5168
|
+
}, L = (S, u) => {
|
|
5169
5169
|
let e;
|
|
5170
5170
|
return (...c) => {
|
|
5171
|
-
e || (
|
|
5171
|
+
e || (S(...c), e = !0, setTimeout(() => e = !1, u));
|
|
5172
5172
|
};
|
|
5173
|
-
}, v = (
|
|
5174
|
-
"requestIdleCallback" in window ? window.requestIdleCallback(
|
|
5175
|
-
}, $ = async (
|
|
5173
|
+
}, v = (S, u = 5e3) => {
|
|
5174
|
+
"requestIdleCallback" in window ? window.requestIdleCallback(S, { timeout: u }) : setTimeout(S, 0);
|
|
5175
|
+
}, $ = async (S, u = 0) => (u > 0 && await new Promise((e) => setTimeout(e, u)), new Promise((e) => {
|
|
5176
5176
|
v(async () => {
|
|
5177
5177
|
try {
|
|
5178
|
-
const c = await
|
|
5178
|
+
const c = await S();
|
|
5179
5179
|
e(c);
|
|
5180
5180
|
} catch (c) {
|
|
5181
5181
|
throw c;
|
|
5182
5182
|
}
|
|
5183
5183
|
});
|
|
5184
|
-
})), b = (
|
|
5185
|
-
const c = Math.ceil(e / u),
|
|
5184
|
+
})), b = (S, u, e) => {
|
|
5185
|
+
const c = Math.ceil(e / u), T = Math.ceil(c * 0.5);
|
|
5186
5186
|
return (_) => {
|
|
5187
|
-
const t = Math.max(0, Math.floor(_ / u) -
|
|
5187
|
+
const t = Math.max(0, Math.floor(_ / u) - T), K = Math.min(S.length, t + c + T * 2);
|
|
5188
5188
|
return {
|
|
5189
|
-
visibleItems:
|
|
5189
|
+
visibleItems: S.slice(t, K),
|
|
5190
5190
|
startIndex: t,
|
|
5191
5191
|
endIndex: K,
|
|
5192
|
-
totalHeight:
|
|
5192
|
+
totalHeight: S.length * u,
|
|
5193
5193
|
offsetY: t * u
|
|
5194
5194
|
};
|
|
5195
5195
|
};
|
|
@@ -5260,14 +5260,14 @@ export {
|
|
|
5260
5260
|
On as IconBadgeCheck,
|
|
5261
5261
|
Cu as IconBroom,
|
|
5262
5262
|
wu as IconBuildings,
|
|
5263
|
-
|
|
5264
|
-
|
|
5263
|
+
Tu as IconCalendarWithTickInside,
|
|
5264
|
+
Su as IconCallNotAllowed,
|
|
5265
5265
|
$u as IconCardPay,
|
|
5266
5266
|
xu as IconCaution,
|
|
5267
5267
|
Au as IconChangeLog,
|
|
5268
5268
|
Du as IconCheckCircleFill,
|
|
5269
5269
|
$e as IconCheckInCircle,
|
|
5270
|
-
|
|
5270
|
+
Se as IconCheckRounded,
|
|
5271
5271
|
le as IconChevronDown,
|
|
5272
5272
|
Pu as IconChevronLeft,
|
|
5273
5273
|
Bu as IconChevronRight,
|
|
@@ -5285,7 +5285,7 @@ export {
|
|
|
5285
5285
|
ju as IconConnectorNotion,
|
|
5286
5286
|
Hu as IconConnectorSlack,
|
|
5287
5287
|
Ku as IconConnectorZapier,
|
|
5288
|
-
|
|
5288
|
+
Te as IconCopy,
|
|
5289
5289
|
te as IconCross,
|
|
5290
5290
|
Gu as IconCrossCircleFill,
|
|
5291
5291
|
Zu as IconCrossInCircle,
|
|
@@ -5336,8 +5336,8 @@ export {
|
|
|
5336
5336
|
Cp as IconMarketPlace,
|
|
5337
5337
|
is as IconMaximize,
|
|
5338
5338
|
wp as IconMicrophone,
|
|
5339
|
-
|
|
5340
|
-
|
|
5339
|
+
Tp as IconMutedMicrophone,
|
|
5340
|
+
Sp as IconNewNotification,
|
|
5341
5341
|
Mn as IconNewTab,
|
|
5342
5342
|
$p as IconNotification,
|
|
5343
5343
|
xp as IconOpenBook,
|
|
@@ -5436,8 +5436,8 @@ export {
|
|
|
5436
5436
|
Pd as default,
|
|
5437
5437
|
Cf as defaultImageSrc,
|
|
5438
5438
|
wf as extractStats,
|
|
5439
|
-
|
|
5440
|
-
|
|
5439
|
+
Tf as fileSizeFormatter,
|
|
5440
|
+
Sf as fillMissingDays,
|
|
5441
5441
|
$f as formatDate,
|
|
5442
5442
|
xf as formatDateToLocaleString,
|
|
5443
5443
|
Af as formatLastUsedDate,
|