@aitronos/freddy-plugins 0.4.62 → 0.4.63
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/freddy-plugins.css +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1194 -1189
- package/dist/index.js.map +1 -1
- package/dist/src/components/Assistant/ChooseAssistantAvatar.vue.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var ye = (y, m, s) =>
|
|
4
|
-
import { defineAsyncComponent as R, defineComponent as N, createElementBlock as f, openBlock as c, normalizeStyle as oe, normalizeClass as F, createStaticVNode as
|
|
5
|
-
import { I as
|
|
6
|
-
import { V as
|
|
7
|
-
const
|
|
1
|
+
var ze = Object.defineProperty;
|
|
2
|
+
var He = (y, m, s) => m in y ? ze(y, m, { enumerable: !0, configurable: !0, writable: !0, value: s }) : y[m] = s;
|
|
3
|
+
var ye = (y, m, s) => He(y, typeof m != "symbol" ? m + "" : m, s);
|
|
4
|
+
import { defineAsyncComponent as R, defineComponent as N, createElementBlock as f, openBlock as c, normalizeStyle as oe, normalizeClass as F, createStaticVNode as Ue, createBlock as E, Transition as le, withCtx as Z, createCommentVNode as w, createElementVNode as a, renderSlot as q, toDisplayString as B, createVNode as L, unref as D, ref as A, computed as M, Fragment as O, renderList as j, resolveDynamicComponent as K, watch as G, withKeys as z, withModifiers as U, withDirectives as Q, vModelText as Y, createTextVNode as J, onMounted as me, nextTick as te, shallowRef as je, mergeProps as se, vModelDynamic as Ke, onUnmounted as De, useAttrs as Ge } from "vue";
|
|
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-GUqeJvd4.js";
|
|
6
|
+
import { V as Ac, W as Dc, X as Fc, Y as Bc, Z as Mc, $ as Lc, a0 as Vc, a1 as Ec, a2 as Nc, a3 as Rc, a4 as Oc, a5 as zc, a6 as Hc, a7 as Uc, a8 as jc, a9 as Kc, aa as Gc, ab as Zc, ac as qc, ad as Wc, ae as Jc, af as Qc, ag as Yc, ah as Xc, ai as er, aj as tr, ak as or, al as nr, am as sr, an as ir, ao as ar, ap as lr, aq as cr, ar as rr, as as dr, at as ur, au as pr, av as hr, aw as fr, ax as mr, ay as vr, az as yr, aA as gr, aB as Ir, aC as br, aD as kr, aE as _r, aF as Cr, aG as wr, aH as Sr, aI as Tr, aJ as $r, aK as xr, aL as Pr, aM as Ar, aN as Dr, aO as Fr, aP as Br, aQ as Mr, aR as Lr, aS as Vr, aT as Er, aU as Nr, aV as Rr, aW as Or, aX as zr, aY as Hr, aZ as Ur, a_ as jr, a$ as Kr, b0 as Gr, b1 as Zr, b2 as qr, b3 as Wr, b4 as Jr, b5 as Qr, b6 as Yr, b7 as Xr, b8 as ed, b9 as td, ba as od, bb as nd, bc as sd, bd as id, be as ad, bf as ld, bg as cd, bh as rd, bi as dd, bj as ud, bk as pd, bl as hd, bm as fd, bn as md, bo as vd, bp as yd, bq as gd, br as Id, bs as bd, bt as kd, bu as _d, bv as Cd, bw as wd, bx as Sd, by as Td, bz as $d, bA as xd, bB as Pd, bC as Ad, bD as Dd, bE as Fd, c3 as Bd, bI as Md, b$ as Ld, bW as Vd, bQ as Ed, bZ as Nd, b_ as Rd, bH as Od, c1 as zd, bX as Hd, bK as Ud, bO as jd, bM as Kd, bP as Gd, bL as Zd, bR as qd, bT as Wd, bJ as Jd, bY as Qd, c0 as Yd, bS as Xd, c4 as eu, bG as tu, bF as ou, c2 as nu, bN as su, bV as iu, bU as au } from "./icons-GUqeJvd4.js";
|
|
7
|
+
const Le = {
|
|
8
8
|
mounted(y) {
|
|
9
9
|
y.getAttribute("class") || y.setAttribute("class", "base-fallback-style");
|
|
10
10
|
}
|
|
@@ -63,9 +63,9 @@ const xt = [
|
|
|
63
63
|
"id",
|
|
64
64
|
"colspan",
|
|
65
65
|
"rowspan"
|
|
66
|
-
],
|
|
66
|
+
], xe = (y) => y.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, "").replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi, "").replace(/on\w+="[^"]*"/gi, "").replace(/javascript:/gi, ""), Pe = (y) => {
|
|
67
67
|
if (!ge)
|
|
68
|
-
return
|
|
68
|
+
return xe(y);
|
|
69
69
|
try {
|
|
70
70
|
return ge.sanitize(y, {
|
|
71
71
|
ALLOWED_TAGS: xt,
|
|
@@ -73,19 +73,19 @@ const xt = [
|
|
|
73
73
|
USE_PROFILES: { html: !0 }
|
|
74
74
|
});
|
|
75
75
|
} catch {
|
|
76
|
-
return
|
|
76
|
+
return xe(y);
|
|
77
77
|
}
|
|
78
|
-
},
|
|
78
|
+
}, Ve = {
|
|
79
79
|
mounted(y, m) {
|
|
80
|
-
y.innerHTML =
|
|
80
|
+
y.innerHTML = Pe(m.value || "");
|
|
81
81
|
},
|
|
82
82
|
updated(y, m) {
|
|
83
|
-
y.innerHTML =
|
|
83
|
+
y.innerHTML = Pe(m.value || "");
|
|
84
84
|
}
|
|
85
|
-
},
|
|
85
|
+
}, Gl = {
|
|
86
86
|
install(y) {
|
|
87
87
|
var m;
|
|
88
|
-
y.directive("icon-style",
|
|
88
|
+
y.directive("icon-style", Le), y.directive("fr-sanitize", Ve);
|
|
89
89
|
try {
|
|
90
90
|
const s = /* @__PURE__ */ Object.assign({
|
|
91
91
|
"./icons/IconAddChatPop.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.c5),
|
|
@@ -256,15 +256,15 @@ const xt = [
|
|
|
256
256
|
typeof process < "u" && process.env.NODE_ENV;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
},
|
|
259
|
+
}, Zl = {
|
|
260
260
|
install(y) {
|
|
261
|
-
y.directive("fr-sanitize",
|
|
261
|
+
y.directive("fr-sanitize", Ve);
|
|
262
262
|
}
|
|
263
|
-
},
|
|
263
|
+
}, ql = {
|
|
264
264
|
install(y) {
|
|
265
|
-
y.directive("icon-style",
|
|
265
|
+
y.directive("icon-style", Le);
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, Wl = /* @__PURE__ */ N({
|
|
268
268
|
__name: "AnimeSpaceman",
|
|
269
269
|
props: {
|
|
270
270
|
customClass: {},
|
|
@@ -279,7 +279,7 @@ const xt = [
|
|
|
279
279
|
class: F(["spaceman-logo", m.customClass]),
|
|
280
280
|
style: oe(m.customStyle)
|
|
281
281
|
}, [...s[0] || (s[0] = [
|
|
282
|
-
|
|
282
|
+
Ue(`<g><defs><clipPath id="GlassClip"><path d="M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5
|
|
283
283
|
s-28.485-16.599-34.877-24.192c-3.101-3.684-4.177-8.66-2.93-13.311l7.453-27.798c0.756-2.82,3.181-4.868,6.088-5.13
|
|
284
284
|
c6.755-0.61,20.546-0.608,41.785,5.087s33.181,12.591,38.725,16.498c2.387,1.682,3.461,4.668,2.705,7.488L380.857,346.164z"></path></clipPath><clipPath id="cordClip"><rect width="800" height="600"></rect></clipPath></defs><g id="planet"><circle fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" cx="572.859" cy="108.803" r="90.788"></circle><circle id="craterBig" fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" cx="548.891" cy="62.319" r="13.074"></circle><circle id="craterSmall" fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" cx="591.743" cy="158.918" r="7.989"></circle><path id="ring" fill="none" stroke="#ffffff" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" d="
|
|
285
285
|
M476.562,101.461c-30.404,2.164-49.691,4.221-49.691,8.007c0,6.853,63.166,12.408,141.085,12.408s141.085-5.555,141.085-12.408
|
|
@@ -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" }, Jl = /* @__PURE__ */ N({
|
|
322
322
|
__name: "AdvancedModal",
|
|
323
323
|
props: {
|
|
324
324
|
isVisible: { type: Boolean },
|
|
@@ -345,7 +345,7 @@ const xt = [
|
|
|
345
345
|
])
|
|
346
346
|
], 2)
|
|
347
347
|
])
|
|
348
|
-
])) :
|
|
348
|
+
])) : w("", !0)
|
|
349
349
|
]),
|
|
350
350
|
_: 3
|
|
351
351
|
}));
|
|
@@ -379,13 +379,13 @@ const xt = [
|
|
|
379
379
|
a("div", Rt, [
|
|
380
380
|
a("div", Ot, B(i.assistantId), 1),
|
|
381
381
|
i.isDefault ? (c(), f("div", zt, [
|
|
382
|
-
L(
|
|
383
|
-
])) :
|
|
382
|
+
L(D(Ze), { class: "freddy-assistant-field__lock-icon" })
|
|
383
|
+
])) : w("", !0)
|
|
384
384
|
])
|
|
385
385
|
])
|
|
386
386
|
], 2));
|
|
387
387
|
}
|
|
388
|
-
}),
|
|
388
|
+
}), Ut = /* @__PURE__ */ H(Ht, [["__scopeId", "data-v-482ea9be"]]), jt = { class: "freddy-assistant-list" }, Kt = { class: "freddy-assistant-list__container" }, Gt = /* @__PURE__ */ N({
|
|
389
389
|
__name: "AssistantList",
|
|
390
390
|
props: {
|
|
391
391
|
assistants: { default: () => [] },
|
|
@@ -393,7 +393,7 @@ const xt = [
|
|
|
393
393
|
},
|
|
394
394
|
emits: ["assistantClick"],
|
|
395
395
|
setup(y, { emit: m }) {
|
|
396
|
-
const s = y, e = m, i =
|
|
396
|
+
const s = y, e = m, i = A(s.selectedAssistantId), l = M(() => {
|
|
397
397
|
const u = s.selectedAssistantId ?? i.value;
|
|
398
398
|
return s.assistants.map((d) => ({
|
|
399
399
|
...d,
|
|
@@ -402,21 +402,21 @@ const xt = [
|
|
|
402
402
|
}), r = (u, d) => {
|
|
403
403
|
i.value = u.assistantId, e("assistantClick", u, d);
|
|
404
404
|
};
|
|
405
|
-
return (u, d) => (c(), f("div",
|
|
405
|
+
return (u, d) => (c(), f("div", jt, [
|
|
406
406
|
a("div", Kt, [
|
|
407
|
-
(c(!0), f(O, null,
|
|
407
|
+
(c(!0), f(O, null, j(l.value, (o, g) => (c(), E(D(Ut), {
|
|
408
408
|
key: o.id || g,
|
|
409
409
|
name: o.name,
|
|
410
410
|
date: o.date,
|
|
411
411
|
assistantId: o.assistantId,
|
|
412
412
|
isDefault: o.isDefault,
|
|
413
413
|
isSelected: o.isSelected,
|
|
414
|
-
onAssistantFieldClick: (
|
|
414
|
+
onAssistantFieldClick: (b) => r(o, b)
|
|
415
415
|
}, null, 8, ["name", "date", "assistantId", "isDefault", "isSelected", "onAssistantFieldClick"]))), 128))
|
|
416
416
|
])
|
|
417
417
|
]));
|
|
418
418
|
}
|
|
419
|
-
}),
|
|
419
|
+
}), Ql = /* @__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" }, Yl = /* @__PURE__ */ N({
|
|
441
441
|
__name: "AssistantsHeader",
|
|
442
442
|
props: {
|
|
443
443
|
assistantImage: { default: void 0 },
|
|
@@ -452,7 +452,7 @@ const xt = [
|
|
|
452
452
|
e("playground", d);
|
|
453
453
|
}, r = (d) => d ? R(
|
|
454
454
|
() => be(/* @__PURE__ */ Object.assign({ "../../icons/IconAddChatPop.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.c5), "../../icons/IconAddFileSystem.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.c6), "../../icons/IconAddPeople.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.c7), "../../icons/IconAitronos.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.c8), "../../icons/IconApple.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.c9), "../../icons/IconApplePay.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ca), "../../icons/IconAppsGrid.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cb), "../../icons/IconArrowDown.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cc), "../../icons/IconArrowLeft.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cd), "../../icons/IconArrowUp.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ce), "../../icons/IconBadgeCheck.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cf), "../../icons/IconBroom.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cg), "../../icons/IconBuildings.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ch), "../../icons/IconCalendarWithTickInside.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ci), "../../icons/IconCallNotAllowed.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cj), "../../icons/IconCardPay.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ck), "../../icons/IconCaution.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cl), "../../icons/IconChangeLog.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cm), "../../icons/IconCheckCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cn), "../../icons/IconCheckInCircle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.co), "../../icons/IconCheckRounded.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cp), "../../icons/IconChevronDown.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cq), "../../icons/IconChevronLeft.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cr), "../../icons/IconChevronRight.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cs), "../../icons/IconChevronUp.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ct), "../../icons/IconCircledCheck.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cu), "../../icons/IconClock.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cv), "../../icons/IconClosedEnvelope.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cw), "../../icons/IconCloudUpload.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cx), "../../icons/IconConnectorConfluence.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cy), "../../icons/IconConnectorFigma.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cz), "../../icons/IconConnectorFreshDesk.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cA), "../../icons/IconConnectorGitHub.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cB), "../../icons/IconConnectorJira.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cC), "../../icons/IconConnectorLinear.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cD), "../../icons/IconConnectorNotion.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cE), "../../icons/IconConnectorSlack.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cF), "../../icons/IconConnectorZapier.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cG), "../../icons/IconCopy.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cH), "../../icons/IconCross.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cI), "../../icons/IconCrossCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cJ), "../../icons/IconCrossInCircle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cK), "../../icons/IconCurrentTick.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cL), "../../icons/IconDataUpload.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cM), "../../icons/IconDelete.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cN), "../../icons/IconDeleteFillRed.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cO), "../../icons/IconDialingPhone.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cP), "../../icons/IconDisabledAlert.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cQ), "../../icons/IconDocumentation.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cR), "../../icons/IconDownload.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cS), "../../icons/IconDribbble.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cT), "../../icons/IconDropdownArrow.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cU), "../../icons/IconEdit.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cV), "../../icons/IconEditLinePath.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cW), "../../icons/IconEllipse.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cX), "../../icons/IconExcelThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cY), "../../icons/IconExpand.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.cZ), "../../icons/IconEye.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.c_), "../../icons/IconFacebook.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.c$), "../../icons/IconFigma.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d0), "../../icons/IconFile.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d1), "../../icons/IconFileSystem.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d2), "../../icons/IconFileUpload.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d3), "../../icons/IconFilter.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d4), "../../icons/IconFolder.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d5), "../../icons/IconFreddyHub.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d6), "../../icons/IconFreddyHubLogo.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d7), "../../icons/IconFreddyHubNewLogo.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d8), "../../icons/IconFreddyHubTitle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d9), "../../icons/IconFreddySmall.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.da), "../../icons/IconGlobExpand.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.db), "../../icons/IconGlobe.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dc), "../../icons/IconGoogle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dd), "../../icons/IconHollowCircle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.de), "../../icons/IconHome.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.df), "../../icons/IconInfoRounded.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dg), "../../icons/IconInvalidInvoice.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dh), "../../icons/IconInvoice.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.di), "../../icons/IconInvoiceSwitch.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dj), "../../icons/IconLapTableBottom.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dk), "../../icons/IconLense.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dl), "../../icons/IconLightCross.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dm), "../../icons/IconLink04.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dn), "../../icons/IconLoadingError.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dp), "../../icons/IconLoadingOrg.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dq), "../../icons/IconLocationWithCircleIn.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dr), "../../icons/IconLock.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ds), "../../icons/IconMarketPlace.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dt), "../../icons/IconMaximize.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.du), "../../icons/IconMicrophone.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dv), "../../icons/IconMutedMicrophone.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dw), "../../icons/IconNewNotification.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dx), "../../icons/IconNewTab.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dy), "../../icons/IconNotification.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dz), "../../icons/IconOpenBook.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dA), "../../icons/IconPaperAirPlane.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dB), "../../icons/IconPauseCircle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dC), "../../icons/IconPdfThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dD), "../../icons/IconPenEdit.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dE), "../../icons/IconPencil.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dF), "../../icons/IconPeopleHub.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dG), "../../icons/IconPersonCircle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dH), "../../icons/IconPits.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dI), "../../icons/IconPlay.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dJ), "../../icons/IconPlus.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dK), "../../icons/IconPolygonDown.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dL), "../../icons/IconPresentation.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dM), "../../icons/IconProgressBase.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dN), "../../icons/IconProgressComplete.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dO), "../../icons/IconProgressGoing.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dP), "../../icons/IconPurpose.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dQ), "../../icons/IconPurseCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dR), "../../icons/IconQuestion.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dS), "../../icons/IconRadio.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dT), "../../icons/IconRadioFill.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dU), "../../icons/IconRefresh.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dV), "../../icons/IconRevertedTriangle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dW), "../../icons/IconRobotScreen.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dX), "../../icons/IconRoundTick.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dY), "../../icons/IconSearch.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.dZ), "../../icons/IconSearchOptimised.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d_), "../../icons/IconSectionHide.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.d$), "../../icons/IconSend.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e0), "../../icons/IconSettings.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e1), "../../icons/IconSettingsBold.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e2), "../../icons/IconSize.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e3), "../../icons/IconSliderKnobs.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e4), "../../icons/IconSortIdle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e5), "../../icons/IconSparkle.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e6), "../../icons/IconSpotlio.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e7), "../../icons/IconStar.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e8), "../../icons/IconStatistics.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.e9), "../../icons/IconStopChat.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ea), "../../icons/IconStreamLineHub.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.eb), "../../icons/IconStreamLineHubNewLogo.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ec), "../../icons/IconSun.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ed), "../../icons/IconSwap.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ee), "../../icons/IconText.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ef), "../../icons/IconTextThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.eg), "../../icons/IconThinDocument.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.eh), "../../icons/IconThinFile.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ei), "../../icons/IconThumbsDown.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ej), "../../icons/IconTick.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ek), "../../icons/IconUser.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.el), "../../icons/IconVerticalDots.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.em), "../../icons/IconVideoCamera.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.en), "../../icons/IconWarningOctal.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.eo), "../../icons/IconX.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.ep), "../../icons/IconZip.vue": () => import("./icons-GUqeJvd4.js").then((o) => o.eq) }), `../../icons/${d}.vue`, 4).catch(() => import("./icons-GUqeJvd4.js").then((o) => o.dX))
|
|
455
|
-
) :
|
|
455
|
+
) : We, u = M(() => r(s.assistantIcon));
|
|
456
456
|
return (d, o) => (c(), f("div", Zt, [
|
|
457
457
|
a("div", {
|
|
458
458
|
class: F(["freddy-assistants-header__avatar-section", {
|
|
@@ -470,7 +470,7 @@ const xt = [
|
|
|
470
470
|
class: "freddy-assistants-header__edit-overlay",
|
|
471
471
|
onClick: i
|
|
472
472
|
}, [
|
|
473
|
-
L(
|
|
473
|
+
L(D(pe), { class: "freddy-assistants-header__edit-icon" })
|
|
474
474
|
])
|
|
475
475
|
])) : (c(), f("div", Jt, [
|
|
476
476
|
(c(), E(K(u.value), { class: "freddy-assistants-header__icon-component" })),
|
|
@@ -478,12 +478,12 @@ const xt = [
|
|
|
478
478
|
class: "freddy-assistants-header__edit-overlay-icon",
|
|
479
479
|
onClick: i
|
|
480
480
|
}, [
|
|
481
|
-
L(
|
|
481
|
+
L(D(pe), { class: "freddy-assistants-header__edit-icon" })
|
|
482
482
|
])
|
|
483
483
|
])),
|
|
484
484
|
d.assistantImage && d.assistantIcon ? (c(), f("div", Qt, [
|
|
485
485
|
(c(), E(K(u.value), { class: "freddy-assistants-header__side-icon-component" }))
|
|
486
|
-
])) :
|
|
486
|
+
])) : w("", !0)
|
|
487
487
|
], 2),
|
|
488
488
|
a("div", Yt, [
|
|
489
489
|
a("div", Xt, [
|
|
@@ -497,7 +497,7 @@ const xt = [
|
|
|
497
497
|
class: "freddy-assistants-header__playground-button",
|
|
498
498
|
onClick: l
|
|
499
499
|
}, [
|
|
500
|
-
L(
|
|
500
|
+
L(D(qe), { class: "freddy-assistants-header__playground-icon" }),
|
|
501
501
|
o[0] || (o[0] = a("span", { class: "freddy-assistants-header__playground-label" }, "Playground", -1))
|
|
502
502
|
])
|
|
503
503
|
])
|
|
@@ -535,10 +535,10 @@ const xt = [
|
|
|
535
535
|
alt: i.altText,
|
|
536
536
|
class: "freddy-avatar-choosing__image"
|
|
537
537
|
}, null, 8, no),
|
|
538
|
-
i.isSelected ? (c(), f("div", so)) :
|
|
538
|
+
i.isSelected ? (c(), f("div", so)) : w("", !0),
|
|
539
539
|
i.isSelected ? (c(), f("div", io, [
|
|
540
540
|
L(he, { class: "freddy-avatar-choosing__check-icon-svg" })
|
|
541
|
-
])) :
|
|
541
|
+
])) : w("", !0)
|
|
542
542
|
], 2));
|
|
543
543
|
}
|
|
544
544
|
}), lo = { class: "freddy-avatar-list" }, co = {
|
|
@@ -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
|
+
}, Xl = /* @__PURE__ */ N({
|
|
551
551
|
__name: "AvatarList",
|
|
552
552
|
props: {
|
|
553
553
|
avatars: {},
|
|
@@ -558,7 +558,7 @@ const xt = [
|
|
|
558
558
|
},
|
|
559
559
|
emits: ["selectionChange", "avatarClick"],
|
|
560
560
|
setup(y, { expose: m, emit: s }) {
|
|
561
|
-
const e = y, i = s, l =
|
|
561
|
+
const e = y, i = s, l = A(null), r = M(() => e.avatars.find((d) => d.id === l.value) || null), u = (d) => {
|
|
562
562
|
l.value === d && e.allowDeselect ? l.value = null : l.value = d, i("selectionChange", l.value), i("avatarClick", d, l.value === d);
|
|
563
563
|
};
|
|
564
564
|
return m({
|
|
@@ -573,31 +573,35 @@ const xt = [
|
|
|
573
573
|
}), (d, o) => {
|
|
574
574
|
var g;
|
|
575
575
|
return c(), f("div", lo, [
|
|
576
|
-
d.title ? (c(), f("h3", co, B(d.title), 1)) :
|
|
576
|
+
d.title ? (c(), f("h3", co, B(d.title), 1)) : w("", !0),
|
|
577
577
|
a("div", ro, [
|
|
578
|
-
(c(!0), f(O, null,
|
|
579
|
-
key:
|
|
580
|
-
imageUrl:
|
|
581
|
-
isSelected: l.value ===
|
|
582
|
-
altText:
|
|
583
|
-
onClick: (
|
|
578
|
+
(c(!0), f(O, null, j(d.avatars, (b) => (c(), E(D(ao), {
|
|
579
|
+
key: b.id,
|
|
580
|
+
imageUrl: b.url,
|
|
581
|
+
isSelected: l.value === b.id,
|
|
582
|
+
altText: b.name,
|
|
583
|
+
onClick: ($) => u(b.id)
|
|
584
584
|
}, null, 8, ["imageUrl", "isSelected", "altText", "onClick"]))), 128))
|
|
585
585
|
]),
|
|
586
586
|
d.showSelectedInfo ? (c(), f("div", uo, [
|
|
587
587
|
a("p", null, "Selected: " + B(((g = r.value) == null ? void 0 : g.name) || "None"), 1)
|
|
588
|
-
])) :
|
|
588
|
+
])) : w("", !0)
|
|
589
589
|
]);
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
}), po = { class: "freddy-choose-assistant-avatar" }, ho = { class: "freddy-choose-assistant-avatar__header" }, fo = { class: "freddy-choose-assistant-avatar__title-section" }, mo = { class: "freddy-choose-assistant-avatar__title-row" }, vo = { class: "freddy-choose-assistant-avatar__title" }, yo = ["aria-label"], go = { class: "freddy-choose-assistant-avatar__description" }, Io = { class: "freddy-choose-assistant-avatar__content" }, bo = { class: "freddy-choose-assistant-avatar__section" }, ko = { class: "freddy-choose-assistant-avatar__icon-container" }, _o = { class: "freddy-choose-assistant-avatar__icon-search" }, Co = ["aria-label"], wo = { class: "freddy-choose-assistant-avatar__icon-grid" }, So = ["onClick", "title"], To = { class: "freddy-choose-assistant-avatar__icon-wrapper" }, $o = {
|
|
592
|
+
}), po = { class: "freddy-choose-assistant-avatar" }, ho = { class: "freddy-choose-assistant-avatar__header" }, fo = { class: "freddy-choose-assistant-avatar__title-section" }, mo = { class: "freddy-choose-assistant-avatar__title-row" }, vo = { class: "freddy-choose-assistant-avatar__title" }, yo = ["aria-label"], go = { class: "freddy-choose-assistant-avatar__description" }, Io = { class: "freddy-choose-assistant-avatar__content" }, bo = { class: "freddy-choose-assistant-avatar__section" }, ko = { class: "freddy-choose-assistant-avatar__icon-container" }, _o = { class: "freddy-choose-assistant-avatar__icon-search" }, Co = ["aria-label"], wo = { class: "freddy-choose-assistant-avatar__icon-grid" }, So = ["onClick", "title"], To = { class: "freddy-choose-assistant-avatar__icon-wrapper" }, $o = ["src", "alt"], xo = {
|
|
593
|
+
key: 0,
|
|
594
|
+
class: "freddy-choose-assistant-avatar__section"
|
|
595
|
+
}, Po = {
|
|
593
596
|
key: 1,
|
|
594
|
-
class: "freddy-choose-assistant-
|
|
595
|
-
},
|
|
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"], ec = /* @__PURE__ */ N({
|
|
596
599
|
__name: "ChooseAssistantAvatar",
|
|
597
600
|
props: {
|
|
598
601
|
title: { default: "Choose your assistant" },
|
|
599
602
|
description: { default: "Choose your assistant's appearance and select a preferred voice." },
|
|
600
603
|
icons: { default: () => [] },
|
|
604
|
+
imageUrls: { default: () => [] },
|
|
601
605
|
faces: {},
|
|
602
606
|
voices: { default: () => [
|
|
603
607
|
{ id: 1, name: "Alloy" },
|
|
@@ -617,55 +621,60 @@ const xt = [
|
|
|
617
621
|
uploadButtonAriaLabel: { default: "Upload custom icon" },
|
|
618
622
|
allowMultipleSelection: { type: Boolean, default: !1 }
|
|
619
623
|
},
|
|
620
|
-
emits: ["close", "cancel", "save", "iconSelect", "faceSelect", "voiceSelect", "searchInput", "searchClick", "uploadClick"],
|
|
624
|
+
emits: ["close", "cancel", "save", "iconSelect", "imageSelect", "faceSelect", "voiceSelect", "searchInput", "searchClick", "uploadClick"],
|
|
621
625
|
setup(y, { expose: m, emit: s }) {
|
|
622
626
|
const e = y, i = () => {
|
|
623
627
|
const t = [];
|
|
624
628
|
let p = 1;
|
|
625
|
-
for (const [
|
|
629
|
+
for (const [S, _] of Object.entries(Qe))
|
|
626
630
|
if (typeof _ == "object" && _ && "default" in _) {
|
|
627
631
|
const n = _.default;
|
|
628
632
|
t.push({
|
|
629
633
|
id: p++,
|
|
630
|
-
name:
|
|
634
|
+
name: S.replace("Icon", ""),
|
|
631
635
|
// Remove 'Icon' prefix for display
|
|
632
|
-
iconName:
|
|
636
|
+
iconName: S,
|
|
633
637
|
// Store the full icon name
|
|
634
638
|
component: n
|
|
635
639
|
// Keep for backward compatibility
|
|
636
640
|
});
|
|
637
641
|
}
|
|
638
642
|
return t;
|
|
639
|
-
}, l = M(() => e.icons.length > 0 ? e.icons : i()), r = s, u =
|
|
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), $ = A("");
|
|
644
|
+
M(() => $.value ? l.value.filter(
|
|
640
645
|
(p) => {
|
|
641
|
-
var
|
|
642
|
-
return (
|
|
646
|
+
var S;
|
|
647
|
+
return (S = p.name) == null ? void 0 : S.toLowerCase().includes($.value.toLowerCase());
|
|
643
648
|
}
|
|
644
|
-
) : l.value)
|
|
649
|
+
) : l.value);
|
|
650
|
+
const V = M(() => u.value !== null || d.value !== null || g.value !== null || b.value !== null), v = () => {
|
|
645
651
|
r("close");
|
|
646
|
-
}, v = () => {
|
|
647
|
-
r("cancel");
|
|
648
652
|
}, T = () => {
|
|
649
|
-
|
|
653
|
+
r("cancel");
|
|
654
|
+
}, k = () => {
|
|
655
|
+
V.value && r("save", {
|
|
650
656
|
selectedIconId: u.value,
|
|
651
|
-
|
|
652
|
-
|
|
657
|
+
selectedImageUrl: d.value,
|
|
658
|
+
selectedFaceId: g.value,
|
|
659
|
+
selectedVoiceId: b.value
|
|
653
660
|
});
|
|
654
|
-
},
|
|
655
|
-
|
|
656
|
-
}, I = (t) => {
|
|
657
|
-
o.value = t.id, r("voiceSelect", t);
|
|
661
|
+
}, I = (t, p) => {
|
|
662
|
+
d.value = t, o.value = p, r("imageSelect", t);
|
|
658
663
|
}, C = (t) => {
|
|
659
|
-
|
|
660
|
-
},
|
|
664
|
+
b.value = t.id, r("voiceSelect", t);
|
|
665
|
+
}, P = (t) => {
|
|
666
|
+
$.value = t || "", r("searchInput", t || "");
|
|
667
|
+
}, h = () => {
|
|
661
668
|
r("uploadClick");
|
|
662
|
-
}
|
|
669
|
+
};
|
|
663
670
|
return m({
|
|
664
671
|
selectedIconId: u,
|
|
665
|
-
|
|
666
|
-
|
|
672
|
+
selectedImageUrl: d,
|
|
673
|
+
selectedImageIndex: o,
|
|
674
|
+
selectedFaceId: g,
|
|
675
|
+
selectedVoiceId: b,
|
|
667
676
|
resetSelections: () => {
|
|
668
|
-
u.value = null, d.value = null, o.value = null;
|
|
677
|
+
u.value = null, d.value = null, o.value = null, g.value = null, b.value = null;
|
|
669
678
|
}
|
|
670
679
|
}), (t, p) => (c(), f("div", po, [
|
|
671
680
|
a("div", ho, [
|
|
@@ -674,10 +683,10 @@ const xt = [
|
|
|
674
683
|
a("h1", vo, B(t.title), 1),
|
|
675
684
|
a("button", {
|
|
676
685
|
class: "freddy-choose-assistant-avatar__close-button",
|
|
677
|
-
onClick:
|
|
686
|
+
onClick: v,
|
|
678
687
|
"aria-label": t.closeButtonAriaLabel
|
|
679
688
|
}, [
|
|
680
|
-
L(
|
|
689
|
+
L(D(ee), { class: "freddy-choose-assistant-avatar__close-icon" })
|
|
681
690
|
], 8, yo)
|
|
682
691
|
])
|
|
683
692
|
]),
|
|
@@ -690,78 +699,74 @@ const xt = [
|
|
|
690
699
|
a("div", _o, [
|
|
691
700
|
a("button", {
|
|
692
701
|
class: "freddy-choose-assistant-avatar__search-button",
|
|
693
|
-
onClick:
|
|
702
|
+
onClick: h,
|
|
694
703
|
"aria-label": t.uploadButtonAriaLabel
|
|
695
704
|
}, [
|
|
696
|
-
L(
|
|
705
|
+
L(D(Je), { class: "freddy-choose-assistant-avatar__upload-icon" })
|
|
697
706
|
], 8, Co),
|
|
698
|
-
L(
|
|
699
|
-
searchInput:
|
|
707
|
+
L(D(_e), {
|
|
708
|
+
searchInput: $.value,
|
|
700
709
|
"onUpdate:searchInput": [
|
|
701
|
-
p[0] || (p[0] = (
|
|
702
|
-
|
|
710
|
+
p[0] || (p[0] = (S) => $.value = S),
|
|
711
|
+
P
|
|
703
712
|
],
|
|
704
713
|
placeholder: t.searchPlaceholder,
|
|
705
714
|
class: "freddy-choose-assistant-avatar__search-input-wrapper"
|
|
706
715
|
}, null, 8, ["searchInput", "placeholder"])
|
|
707
716
|
]),
|
|
708
717
|
a("div", wo, [
|
|
709
|
-
(c(!0), f(O, null,
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
})) : (c(), f("div", $o, B(((n = w.name) == null ? void 0 : n.charAt(0)) || "?"), 1))
|
|
726
|
-
])
|
|
727
|
-
], 10, So);
|
|
728
|
-
}), 128))
|
|
718
|
+
(c(!0), f(O, null, j(e.imageUrls, (S, _) => (c(), f("div", {
|
|
719
|
+
key: _,
|
|
720
|
+
class: F(["freddy-choose-assistant-avatar__icon-item", {
|
|
721
|
+
"freddy-choose-assistant-avatar__icon-item--selected": o.value === _
|
|
722
|
+
}]),
|
|
723
|
+
onClick: (n) => I(S, _),
|
|
724
|
+
title: `Image ${_ + 1}`
|
|
725
|
+
}, [
|
|
726
|
+
a("div", To, [
|
|
727
|
+
a("img", {
|
|
728
|
+
src: S,
|
|
729
|
+
alt: `Image ${_ + 1}`,
|
|
730
|
+
class: "freddy-choose-assistant-avatar__icon-image"
|
|
731
|
+
}, null, 8, $o)
|
|
732
|
+
])
|
|
733
|
+
], 10, So))), 128))
|
|
729
734
|
])
|
|
730
735
|
])
|
|
731
736
|
]),
|
|
732
|
-
|
|
733
|
-
a("h3", { class: "freddy-choose-assistant-avatar__section-title" }, " Choose the face "),
|
|
734
|
-
a("div", { class: "freddy-choose-assistant-avatar__face-grid" })
|
|
735
|
-
],
|
|
736
|
-
|
|
737
|
-
p[
|
|
738
|
-
a("div",
|
|
739
|
-
(c(!0), f(O, null,
|
|
740
|
-
key:
|
|
741
|
-
voiceName:
|
|
742
|
-
isSelected:
|
|
743
|
-
onClick: (n) =>
|
|
737
|
+
t.faces && t.faces.length ? (c(), f("div", xo, [...p[2] || (p[2] = [
|
|
738
|
+
a("h3", { class: "freddy-choose-assistant-avatar__section-title" }, " Choose the face ", -1),
|
|
739
|
+
a("div", { class: "freddy-choose-assistant-avatar__face-grid" }, null, -1)
|
|
740
|
+
])])) : w("", !0),
|
|
741
|
+
t.voices && t.voices.length ? (c(), f("div", Po, [
|
|
742
|
+
p[3] || (p[3] = a("h3", { class: "freddy-choose-assistant-avatar__section-title" }, " Choose the voice ", -1)),
|
|
743
|
+
a("div", Ao, [
|
|
744
|
+
(c(!0), f(O, null, j(t.voices, (S, _) => (c(), E(D(Ee), {
|
|
745
|
+
key: S.id || _,
|
|
746
|
+
voiceName: S.name,
|
|
747
|
+
isSelected: b.value === S.id,
|
|
748
|
+
onClick: (n) => C(S)
|
|
744
749
|
}, null, 8, ["voiceName", "isSelected", "onClick"]))), 128))
|
|
745
750
|
])
|
|
746
|
-
]),
|
|
747
|
-
a("div",
|
|
751
|
+
])) : w("", !0),
|
|
752
|
+
a("div", Do, [
|
|
748
753
|
a("button", {
|
|
749
754
|
class: "freddy-choose-assistant-avatar__cancel-button",
|
|
750
|
-
onClick:
|
|
755
|
+
onClick: T
|
|
751
756
|
}, B(t.cancelButtonText), 1),
|
|
752
757
|
a("button", {
|
|
753
758
|
class: "freddy-choose-assistant-avatar__save-button",
|
|
754
|
-
onClick:
|
|
755
|
-
disabled: !
|
|
756
|
-
}, B(t.saveButtonText), 9,
|
|
759
|
+
onClick: k,
|
|
760
|
+
disabled: !V.value
|
|
761
|
+
}, B(t.saveButtonText), 9, Fo)
|
|
757
762
|
])
|
|
758
763
|
])
|
|
759
764
|
]));
|
|
760
765
|
}
|
|
761
|
-
}),
|
|
766
|
+
}), Bo = ["onClick", "aria-selected", "onKeydown"], Mo = { class: "freddy-plugin-menu-button-label" }, Lo = {
|
|
762
767
|
key: 0,
|
|
763
768
|
class: "freddy-plugin-menu-button-badge"
|
|
764
|
-
},
|
|
769
|
+
}, Vo = /* @__PURE__ */ N({
|
|
765
770
|
__name: "BaseTabButton",
|
|
766
771
|
props: {
|
|
767
772
|
tabList: {},
|
|
@@ -782,7 +787,7 @@ const xt = [
|
|
|
782
787
|
"primary-active": "background-031525",
|
|
783
788
|
"bg-primary-active-bordered": "background-border"
|
|
784
789
|
}[g] || g;
|
|
785
|
-
}), u =
|
|
790
|
+
}), u = A(s.currentTab);
|
|
786
791
|
G(
|
|
787
792
|
() => s.currentTab,
|
|
788
793
|
(o) => {
|
|
@@ -800,57 +805,57 @@ const xt = [
|
|
|
800
805
|
{ "freddy-plugin-nav-bar--full-width": s.fullWidth }
|
|
801
806
|
])
|
|
802
807
|
}, [
|
|
803
|
-
(c(!0), f(O, null,
|
|
808
|
+
(c(!0), f(O, null, j(s.tabList, (b, $) => (c(), f("button", {
|
|
804
809
|
class: F([
|
|
805
810
|
"freddy-plugin-menu-button",
|
|
806
811
|
`freddy-plugin-menu-button--${r.value}`,
|
|
807
|
-
{ "freddy-plugin-menu-button--active": u.value ===
|
|
812
|
+
{ "freddy-plugin-menu-button--active": u.value === b.id },
|
|
808
813
|
{ "freddy-plugin-menu-button--full-width": s.fullWidth }
|
|
809
814
|
]),
|
|
810
|
-
key:
|
|
811
|
-
onClick: (V) => d(
|
|
812
|
-
"aria-selected": u.value ===
|
|
815
|
+
key: $,
|
|
816
|
+
onClick: (V) => d(b),
|
|
817
|
+
"aria-selected": u.value === b.id,
|
|
813
818
|
role: "tab",
|
|
814
819
|
tabindex: "0",
|
|
815
820
|
onKeydown: [
|
|
816
|
-
z((V) => d(
|
|
817
|
-
z(
|
|
821
|
+
z((V) => d(b), ["enter"]),
|
|
822
|
+
z(U((V) => d(b), ["prevent"]), ["space"])
|
|
818
823
|
]
|
|
819
824
|
}, [
|
|
820
|
-
a("span",
|
|
821
|
-
|
|
822
|
-
r.value === "bottom-dash" && u.value ===
|
|
825
|
+
a("span", Mo, B(b.title), 1),
|
|
826
|
+
b.badge !== void 0 ? (c(), f("span", Lo, B(b.badge), 1)) : w("", !0),
|
|
827
|
+
r.value === "bottom-dash" && u.value === b.id ? (c(), f("span", {
|
|
823
828
|
key: 1,
|
|
824
|
-
class: F({ "freddy-plugin-active-tab-bottom": u.value ===
|
|
825
|
-
}, null, 2)) :
|
|
826
|
-
], 42,
|
|
829
|
+
class: F({ "freddy-plugin-active-tab-bottom": u.value === b.id })
|
|
830
|
+
}, null, 2)) : w("", !0)
|
|
831
|
+
], 42, Bo))), 128))
|
|
827
832
|
], 2));
|
|
828
833
|
}
|
|
829
|
-
}),
|
|
834
|
+
}), Eo = { class: "rules-management" }, No = { class: "rules-header" }, Ro = { class: "header-actions" }, Oo = { class: "search-wrapper" }, zo = ["onKeydown"], Ho = {
|
|
830
835
|
class: "tabs-container",
|
|
831
836
|
role: "tablist",
|
|
832
837
|
"aria-label": "Rules filter tabs"
|
|
833
|
-
},
|
|
838
|
+
}, Uo = ["id", "aria-labelledby"], jo = {
|
|
834
839
|
class: "rules-table",
|
|
835
840
|
role: "table",
|
|
836
841
|
"aria-label": "Rules list"
|
|
837
|
-
},
|
|
842
|
+
}, Ko = {
|
|
838
843
|
class: "col-dependencies",
|
|
839
844
|
scope: "col"
|
|
840
|
-
},
|
|
845
|
+
}, Go = {
|
|
841
846
|
class: "info-icon",
|
|
842
847
|
title: "Number of dependent rules",
|
|
843
848
|
"aria-label": "Information about dependencies",
|
|
844
849
|
role: "img"
|
|
845
|
-
},
|
|
850
|
+
}, Zo = { class: "rule-info" }, qo = { class: "rule-title" }, Wo = { class: "rule-description" }, Jo = ["aria-label"], Qo = { class: "dependencies-count" }, Yo = ["aria-label"], Xo = { class: "creator-info" }, en = { class: "creator-wrapper" }, tn = ["src", "alt"], on = { class: "creator-details" }, nn = { class: "creator-name" }, sn = { class: "creator-username" }, an = { class: "action-cell" }, ln = ["aria-label"], cn = { class: "action-icons" }, rn = ["onClick", "onKeydown", "aria-label"], dn = ["onClick", "onKeydown", "aria-label"], un = {
|
|
846
851
|
class: "pagination-container",
|
|
847
852
|
role: "navigation",
|
|
848
853
|
"aria-label": "Pagination"
|
|
849
|
-
},
|
|
854
|
+
}, pn = ["disabled", "onKeydown", "tabindex"], hn = {
|
|
850
855
|
class: "page-numbers",
|
|
851
856
|
role: "list",
|
|
852
857
|
"aria-label": "Page numbers"
|
|
853
|
-
},
|
|
858
|
+
}, fn = ["onClick", "onKeydown", "disabled", "aria-label", "aria-current", "tabindex"], mn = ["disabled", "onKeydown", "tabindex"], vn = /* @__PURE__ */ N({
|
|
854
859
|
__name: "RulesManagement",
|
|
855
860
|
props: {
|
|
856
861
|
rules: { default: () => [] },
|
|
@@ -865,7 +870,7 @@ const xt = [
|
|
|
865
870
|
},
|
|
866
871
|
emits: ["search", "createRule", "tabChange", "edit", "view", "pageChange"],
|
|
867
872
|
setup(y, { emit: m }) {
|
|
868
|
-
const s = y, e = m, i =
|
|
873
|
+
const s = y, e = m, i = A(""), l = A(s.initialTab), r = A(1), u = M(() => s.tabs.map((h, t) => ({
|
|
869
874
|
id: t + 1,
|
|
870
875
|
title: h.label,
|
|
871
876
|
badge: h.count,
|
|
@@ -885,19 +890,19 @@ const xt = [
|
|
|
885
890
|
return t.title.toLowerCase().includes(h) || ((p = t.description) == null ? void 0 : p.toLowerCase().includes(h)) || t.creator.name.toLowerCase().includes(h);
|
|
886
891
|
}
|
|
887
892
|
);
|
|
888
|
-
}),
|
|
893
|
+
}), b = M(() => {
|
|
889
894
|
const h = [], t = s.totalPages, p = r.value;
|
|
890
895
|
if (t <= 7)
|
|
891
|
-
for (let
|
|
892
|
-
h.push(
|
|
896
|
+
for (let S = 1; S <= t; S++)
|
|
897
|
+
h.push(S);
|
|
893
898
|
else {
|
|
894
899
|
h.push(1), p > 3 && h.push("...");
|
|
895
|
-
for (let
|
|
896
|
-
h.push(
|
|
900
|
+
for (let S = Math.max(2, p - 1); S <= Math.min(t - 1, p + 1); S++)
|
|
901
|
+
h.push(S);
|
|
897
902
|
p < t - 2 && h.push("..."), h.push(t);
|
|
898
903
|
}
|
|
899
904
|
return h;
|
|
900
|
-
}),
|
|
905
|
+
}), $ = () => {
|
|
901
906
|
e("search", i.value);
|
|
902
907
|
}, V = () => {
|
|
903
908
|
e("createRule");
|
|
@@ -905,24 +910,24 @@ const xt = [
|
|
|
905
910
|
l.value = h, e("tabChange", h);
|
|
906
911
|
}, T = (h) => {
|
|
907
912
|
e("edit", h);
|
|
908
|
-
},
|
|
913
|
+
}, k = (h) => {
|
|
909
914
|
e("view", h);
|
|
910
915
|
}, I = (h) => {
|
|
911
916
|
r.value = h, e("pageChange", h);
|
|
912
917
|
}, C = () => {
|
|
913
918
|
r.value > 1 && I(r.value - 1);
|
|
914
|
-
},
|
|
919
|
+
}, P = () => {
|
|
915
920
|
r.value < s.totalPages && I(r.value + 1);
|
|
916
921
|
};
|
|
917
|
-
return (h, t) => (c(), f("div",
|
|
918
|
-
a("div",
|
|
922
|
+
return (h, t) => (c(), f("div", Eo, [
|
|
923
|
+
a("div", No, [
|
|
919
924
|
t[3] || (t[3] = a("div", { class: "header-content" }, [
|
|
920
925
|
a("h1", { class: "title" }, "Rules Management"),
|
|
921
926
|
a("p", { class: "subtitle" }, " Manage and organize your organization's rules and guidelines ")
|
|
922
927
|
], -1)),
|
|
923
|
-
a("div",
|
|
924
|
-
a("div",
|
|
925
|
-
L(
|
|
928
|
+
a("div", Ro, [
|
|
929
|
+
a("div", Oo, [
|
|
930
|
+
L(D(Ye), {
|
|
926
931
|
class: "search-icon",
|
|
927
932
|
"aria-hidden": "true"
|
|
928
933
|
}),
|
|
@@ -931,7 +936,7 @@ const xt = [
|
|
|
931
936
|
class: "search-input",
|
|
932
937
|
placeholder: "Search",
|
|
933
938
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => i.value = p),
|
|
934
|
-
onInput:
|
|
939
|
+
onInput: $,
|
|
935
940
|
"aria-label": "Search rules"
|
|
936
941
|
}, null, 544), [
|
|
937
942
|
[Y, i.value]
|
|
@@ -946,21 +951,21 @@ const xt = [
|
|
|
946
951
|
onClick: V,
|
|
947
952
|
onKeydown: [
|
|
948
953
|
z(V, ["enter"]),
|
|
949
|
-
z(
|
|
954
|
+
z(U(V, ["prevent"]), ["space"])
|
|
950
955
|
],
|
|
951
956
|
"aria-label": "Create new rule",
|
|
952
957
|
tabindex: "0"
|
|
953
958
|
}, [
|
|
954
|
-
L(
|
|
959
|
+
L(D(Xe), {
|
|
955
960
|
class: "plus-icon",
|
|
956
961
|
"aria-hidden": "true"
|
|
957
962
|
}),
|
|
958
963
|
t[2] || (t[2] = J(" Create Rule ", -1))
|
|
959
|
-
], 40,
|
|
964
|
+
], 40, zo)
|
|
960
965
|
])
|
|
961
966
|
]),
|
|
962
|
-
a("div",
|
|
963
|
-
L(
|
|
967
|
+
a("div", Ho, [
|
|
968
|
+
L(Vo, {
|
|
964
969
|
tabList: u.value,
|
|
965
970
|
currentTab: d.value,
|
|
966
971
|
activeStateType: "bottom-dash",
|
|
@@ -985,10 +990,10 @@ const xt = [
|
|
|
985
990
|
class: "col-status",
|
|
986
991
|
scope: "col"
|
|
987
992
|
}, "Status", -1)),
|
|
988
|
-
a("th",
|
|
993
|
+
a("th", Ko, [
|
|
989
994
|
t[4] || (t[4] = J(" Dependencies ", -1)),
|
|
990
|
-
a("span",
|
|
991
|
-
L(
|
|
995
|
+
a("span", Go, [
|
|
996
|
+
L(D(ce), { "aria-hidden": "true" })
|
|
992
997
|
])
|
|
993
998
|
]),
|
|
994
999
|
t[7] || (t[7] = a("th", {
|
|
@@ -1002,130 +1007,130 @@ const xt = [
|
|
|
1002
1007
|
])
|
|
1003
1008
|
]),
|
|
1004
1009
|
a("tbody", null, [
|
|
1005
|
-
(c(!0), f(O, null,
|
|
1010
|
+
(c(!0), f(O, null, j(g.value, (p) => (c(), f("tr", {
|
|
1006
1011
|
key: p.id,
|
|
1007
1012
|
class: "rule-row",
|
|
1008
1013
|
role: "row"
|
|
1009
1014
|
}, [
|
|
1010
|
-
a("td",
|
|
1011
|
-
a("div",
|
|
1012
|
-
a("div",
|
|
1015
|
+
a("td", Zo, [
|
|
1016
|
+
a("div", qo, B(p.title), 1),
|
|
1017
|
+
a("div", Wo, B(p.description), 1)
|
|
1013
1018
|
]),
|
|
1014
1019
|
a("td", null, [
|
|
1015
1020
|
a("span", {
|
|
1016
1021
|
class: F(["status-badge", p.status.toLowerCase()]),
|
|
1017
1022
|
"aria-label": `Status: ${p.status}`
|
|
1018
|
-
}, B(p.status), 11,
|
|
1023
|
+
}, B(p.status), 11, Jo)
|
|
1019
1024
|
]),
|
|
1020
|
-
a("td",
|
|
1025
|
+
a("td", Qo, [
|
|
1021
1026
|
a("span", {
|
|
1022
1027
|
"aria-label": `${p.dependencies} dependencies`
|
|
1023
|
-
}, B(p.dependencies), 9,
|
|
1028
|
+
}, B(p.dependencies), 9, Yo)
|
|
1024
1029
|
]),
|
|
1025
|
-
a("td",
|
|
1026
|
-
a("div",
|
|
1030
|
+
a("td", Xo, [
|
|
1031
|
+
a("div", en, [
|
|
1027
1032
|
a("img", {
|
|
1028
1033
|
src: p.creator.avatar,
|
|
1029
1034
|
alt: `${p.creator.name} avatar`,
|
|
1030
1035
|
class: "creator-avatar"
|
|
1031
|
-
}, null, 8,
|
|
1032
|
-
a("div",
|
|
1033
|
-
a("div",
|
|
1034
|
-
a("div",
|
|
1036
|
+
}, null, 8, tn),
|
|
1037
|
+
a("div", on, [
|
|
1038
|
+
a("div", nn, B(p.creator.name), 1),
|
|
1039
|
+
a("div", sn, B(p.creator.username), 1)
|
|
1035
1040
|
])
|
|
1036
1041
|
])
|
|
1037
1042
|
]),
|
|
1038
|
-
a("td",
|
|
1043
|
+
a("td", an, [
|
|
1039
1044
|
a("span", {
|
|
1040
1045
|
class: F(["status-badge", p.status.toLowerCase()]),
|
|
1041
1046
|
"aria-label": `Status: ${p.status}`
|
|
1042
|
-
}, B(p.status), 11,
|
|
1043
|
-
a("div",
|
|
1047
|
+
}, B(p.status), 11, ln),
|
|
1048
|
+
a("div", cn, [
|
|
1044
1049
|
a("button", {
|
|
1045
1050
|
class: "icon-btn",
|
|
1046
|
-
onClick: (
|
|
1051
|
+
onClick: (S) => T(p),
|
|
1047
1052
|
onKeydown: [
|
|
1048
|
-
z((
|
|
1049
|
-
z(
|
|
1053
|
+
z((S) => T(p), ["enter"]),
|
|
1054
|
+
z(U((S) => T(p), ["prevent"]), ["space"])
|
|
1050
1055
|
],
|
|
1051
1056
|
"aria-label": `Edit ${p.title}`,
|
|
1052
1057
|
tabindex: "0"
|
|
1053
1058
|
}, [
|
|
1054
|
-
L(
|
|
1055
|
-
], 40,
|
|
1059
|
+
L(D(pe), { "aria-hidden": "true" })
|
|
1060
|
+
], 40, rn),
|
|
1056
1061
|
a("button", {
|
|
1057
1062
|
class: "icon-btn",
|
|
1058
|
-
onClick: (
|
|
1063
|
+
onClick: (S) => k(p),
|
|
1059
1064
|
onKeydown: [
|
|
1060
|
-
z((
|
|
1061
|
-
z(
|
|
1065
|
+
z((S) => k(p), ["enter"]),
|
|
1066
|
+
z(U((S) => k(p), ["prevent"]), ["space"])
|
|
1062
1067
|
],
|
|
1063
1068
|
"aria-label": `View ${p.title}`,
|
|
1064
1069
|
tabindex: "0"
|
|
1065
1070
|
}, [
|
|
1066
|
-
L(
|
|
1067
|
-
], 40,
|
|
1071
|
+
L(D(et), { "aria-hidden": "true" })
|
|
1072
|
+
], 40, dn)
|
|
1068
1073
|
])
|
|
1069
1074
|
])
|
|
1070
1075
|
]))), 128))
|
|
1071
1076
|
])
|
|
1072
1077
|
])
|
|
1073
|
-
], 8,
|
|
1074
|
-
a("nav",
|
|
1078
|
+
], 8, Uo),
|
|
1079
|
+
a("nav", un, [
|
|
1075
1080
|
a("button", {
|
|
1076
1081
|
class: "pagination-btn",
|
|
1077
1082
|
disabled: r.value === 1,
|
|
1078
1083
|
onClick: C,
|
|
1079
1084
|
onKeydown: [
|
|
1080
1085
|
z(C, ["enter"]),
|
|
1081
|
-
z(
|
|
1086
|
+
z(U(C, ["prevent"]), ["space"])
|
|
1082
1087
|
],
|
|
1083
1088
|
"aria-label": "Go to previous page",
|
|
1084
1089
|
tabindex: r.value === 1 ? -1 : 0
|
|
1085
|
-
}, " Previous ", 40,
|
|
1086
|
-
a("div",
|
|
1087
|
-
(c(!0), f(O, null,
|
|
1090
|
+
}, " Previous ", 40, pn),
|
|
1091
|
+
a("div", hn, [
|
|
1092
|
+
(c(!0), f(O, null, j(b.value, (p) => (c(), f("button", {
|
|
1088
1093
|
key: p,
|
|
1089
1094
|
class: F([
|
|
1090
1095
|
"page-number",
|
|
1091
1096
|
{ active: r.value === p, ellipsis: p === "..." }
|
|
1092
1097
|
]),
|
|
1093
|
-
onClick: (
|
|
1098
|
+
onClick: (S) => p !== "..." && I(p),
|
|
1094
1099
|
onKeydown: [
|
|
1095
|
-
z((
|
|
1096
|
-
z(
|
|
1100
|
+
z((S) => p !== "..." && I(p), ["enter"]),
|
|
1101
|
+
z(U((S) => p !== "..." && I(p), ["prevent"]), ["space"])
|
|
1097
1102
|
],
|
|
1098
1103
|
disabled: p === "...",
|
|
1099
1104
|
"aria-label": p === "..." ? "More pages" : `Go to page ${p}`,
|
|
1100
1105
|
"aria-current": r.value === p ? "page" : void 0,
|
|
1101
1106
|
tabindex: p === "..." ? -1 : 0,
|
|
1102
1107
|
role: "listitem"
|
|
1103
|
-
}, B(p), 43,
|
|
1108
|
+
}, B(p), 43, fn))), 128))
|
|
1104
1109
|
]),
|
|
1105
1110
|
a("button", {
|
|
1106
1111
|
class: "pagination-btn",
|
|
1107
1112
|
disabled: r.value === h.totalPages,
|
|
1108
|
-
onClick:
|
|
1113
|
+
onClick: P,
|
|
1109
1114
|
onKeydown: [
|
|
1110
|
-
z(
|
|
1111
|
-
z(
|
|
1115
|
+
z(P, ["enter"]),
|
|
1116
|
+
z(U(P, ["prevent"]), ["space"])
|
|
1112
1117
|
],
|
|
1113
1118
|
"aria-label": "Go to next page",
|
|
1114
1119
|
tabindex: r.value === h.totalPages ? -1 : 0
|
|
1115
|
-
}, " Next ", 40,
|
|
1120
|
+
}, " Next ", 40, mn)
|
|
1116
1121
|
])
|
|
1117
1122
|
]));
|
|
1118
1123
|
}
|
|
1119
|
-
}),
|
|
1124
|
+
}), tc = /* @__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 = {
|
|
1120
1125
|
key: 0,
|
|
1121
1126
|
class: "freddy-vector-frame__badge"
|
|
1122
|
-
},
|
|
1127
|
+
}, kn = { class: "freddy-vector-frame__badge-content" }, _n = { class: "freddy-vector-frame__badge-text" }, Cn = {
|
|
1123
1128
|
key: 1,
|
|
1124
1129
|
class: "freddy-vector-frame__tick-container"
|
|
1125
|
-
},
|
|
1130
|
+
}, wn = {
|
|
1126
1131
|
key: 0,
|
|
1127
1132
|
class: "freddy-vector-frame__underline"
|
|
1128
|
-
},
|
|
1133
|
+
}, Sn = /* @__PURE__ */ N({
|
|
1129
1134
|
__name: "VectorFrame",
|
|
1130
1135
|
props: {
|
|
1131
1136
|
title: { default: "Main Vector Store" },
|
|
@@ -1134,35 +1139,35 @@ const xt = [
|
|
|
1134
1139
|
},
|
|
1135
1140
|
emits: ["click"],
|
|
1136
1141
|
setup(y, { emit: m }) {
|
|
1137
|
-
const s = y, e = m, i =
|
|
1142
|
+
const s = y, e = m, i = A(s.isSelected), l = (r) => {
|
|
1138
1143
|
i.value = !i.value, e("click", r);
|
|
1139
1144
|
};
|
|
1140
1145
|
return (r, u) => (c(), f("div", {
|
|
1141
1146
|
class: F(["freddy-vector-frame", { "freddy-vector-frame--clicked": i.value }]),
|
|
1142
1147
|
onClick: l
|
|
1143
1148
|
}, [
|
|
1144
|
-
a("div",
|
|
1145
|
-
a("div",
|
|
1146
|
-
L(
|
|
1149
|
+
a("div", yn, [
|
|
1150
|
+
a("div", gn, [
|
|
1151
|
+
L(D(tt), { class: "freddy-vector-frame__icon" })
|
|
1147
1152
|
]),
|
|
1148
|
-
a("div",
|
|
1149
|
-
i.value ?
|
|
1150
|
-
a("div",
|
|
1151
|
-
L(
|
|
1152
|
-
a("div",
|
|
1153
|
+
a("div", In, B(r.title), 1),
|
|
1154
|
+
i.value ? w("", !0) : (c(), f("div", bn, [
|
|
1155
|
+
a("div", kn, [
|
|
1156
|
+
L(D(ot), { class: "freddy-vector-frame__badge-icon" }),
|
|
1157
|
+
a("div", _n, B(r.badgeText), 1)
|
|
1153
1158
|
])
|
|
1154
1159
|
])),
|
|
1155
|
-
i.value ? (c(), f("div",
|
|
1156
|
-
L(
|
|
1157
|
-
])) :
|
|
1160
|
+
i.value ? (c(), f("div", Cn, [
|
|
1161
|
+
L(D(nt), { class: "freddy-vector-frame__tick-icon" })
|
|
1162
|
+
])) : w("", !0)
|
|
1158
1163
|
]),
|
|
1159
|
-
i.value ? (c(), f("div",
|
|
1164
|
+
i.value ? (c(), f("div", wn)) : w("", !0)
|
|
1160
1165
|
], 2));
|
|
1161
1166
|
}
|
|
1162
|
-
}),
|
|
1167
|
+
}), oc = /* @__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 = {
|
|
1163
1168
|
key: 0,
|
|
1164
1169
|
class: "freddy-vector-section__show-more"
|
|
1165
|
-
},
|
|
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({
|
|
1166
1171
|
__name: "VectorSection",
|
|
1167
1172
|
props: {
|
|
1168
1173
|
title: { default: "Knowledge" },
|
|
@@ -1246,35 +1251,35 @@ const xt = [
|
|
|
1246
1251
|
},
|
|
1247
1252
|
emits: ["frameClick", "addVectorStore", "showMore", "searchInput"],
|
|
1248
1253
|
setup(y, { emit: m }) {
|
|
1249
|
-
const s = y, e = m, i =
|
|
1254
|
+
const s = y, e = m, i = A(""), l = A(s.maxDisplayed), r = M(() => i.value.trim() ? s.frames.filter(
|
|
1250
1255
|
(v) => v.title.toLowerCase().includes(i.value.toLowerCase())
|
|
1251
|
-
) : s.frames), u = M(() => r.value.slice(0, l.value)), d = M(() => r.value.length), o = M(() => r.value.length > l.value), g = M(() => r.value.length - l.value),
|
|
1256
|
+
) : s.frames), u = M(() => r.value.slice(0, l.value)), d = M(() => r.value.length), o = M(() => r.value.length > l.value), g = M(() => r.value.length - l.value), b = () => {
|
|
1252
1257
|
e("addVectorStore");
|
|
1253
|
-
},
|
|
1258
|
+
}, $ = () => {
|
|
1254
1259
|
l.value = r.value.length, e("showMore");
|
|
1255
1260
|
}, V = (v) => {
|
|
1256
1261
|
i.value = v || "", l.value = s.maxDisplayed, e("searchInput", i.value);
|
|
1257
1262
|
};
|
|
1258
|
-
return (v, T) => (c(), f("div",
|
|
1259
|
-
a("div",
|
|
1260
|
-
a("div",
|
|
1263
|
+
return (v, T) => (c(), f("div", Tn, [
|
|
1264
|
+
a("div", $n, [
|
|
1265
|
+
a("div", xn, [
|
|
1261
1266
|
T[1] || (T[1] = a("div", { class: "freddy-vector-section__title" }, "Knowledge", -1)),
|
|
1262
|
-
a("div",
|
|
1267
|
+
a("div", Pn, B(v.dbCount) + " DBs added", 1)
|
|
1263
1268
|
]),
|
|
1264
|
-
a("div",
|
|
1265
|
-
a("div",
|
|
1266
|
-
a("div",
|
|
1267
|
-
a("div",
|
|
1269
|
+
a("div", An, [
|
|
1270
|
+
a("div", Dn, [
|
|
1271
|
+
a("div", Fn, [
|
|
1272
|
+
a("div", Bn, [
|
|
1268
1273
|
T[2] || (T[2] = J(" Vector Stores ", -1)),
|
|
1269
|
-
a("div",
|
|
1270
|
-
L(
|
|
1274
|
+
a("div", Mn, [
|
|
1275
|
+
L(D(fe), { class: "freddy-vector-section__help-icon-svg" })
|
|
1271
1276
|
])
|
|
1272
1277
|
]),
|
|
1273
|
-
a("div",
|
|
1274
|
-
L(
|
|
1278
|
+
a("div", Ln, [
|
|
1279
|
+
L(D(_e), {
|
|
1275
1280
|
searchInput: i.value,
|
|
1276
1281
|
"onUpdate:searchInput": [
|
|
1277
|
-
T[0] || (T[0] = (
|
|
1282
|
+
T[0] || (T[0] = (k) => i.value = k),
|
|
1278
1283
|
V
|
|
1279
1284
|
],
|
|
1280
1285
|
placeholder: v.searchPlaceholder,
|
|
@@ -1283,40 +1288,40 @@ const xt = [
|
|
|
1283
1288
|
])
|
|
1284
1289
|
])
|
|
1285
1290
|
]),
|
|
1286
|
-
a("div",
|
|
1287
|
-
a("div",
|
|
1288
|
-
a("div",
|
|
1289
|
-
L(
|
|
1291
|
+
a("div", Vn, [
|
|
1292
|
+
a("div", En, [
|
|
1293
|
+
a("div", Nn, [
|
|
1294
|
+
L(D(st), { class: "freddy-vector-section__filter-icon" }),
|
|
1290
1295
|
T[3] || (T[3] = a("span", { class: "freddy-vector-section__filter-text" }, "Filter by", -1)),
|
|
1291
|
-
L(
|
|
1296
|
+
L(D(ae), { class: "freddy-vector-section__filter-arrow" })
|
|
1292
1297
|
])
|
|
1293
1298
|
]),
|
|
1294
|
-
a("div",
|
|
1299
|
+
a("div", Rn, B(d.value) + " databases found ", 1)
|
|
1295
1300
|
]),
|
|
1296
|
-
a("div",
|
|
1297
|
-
(c(!0), f(O, null,
|
|
1298
|
-
key:
|
|
1301
|
+
a("div", On, [
|
|
1302
|
+
(c(!0), f(O, null, j(u.value, (k, I) => (c(), f("div", {
|
|
1303
|
+
key: k.id || I,
|
|
1299
1304
|
class: "freddy-vector-section__frame-item"
|
|
1300
1305
|
}))), 128))
|
|
1301
1306
|
]),
|
|
1302
|
-
o.value ? (c(), f("div",
|
|
1307
|
+
o.value ? (c(), f("div", zn, [
|
|
1303
1308
|
a("button", {
|
|
1304
1309
|
class: "freddy-vector-section__show-more-button",
|
|
1305
|
-
onClick:
|
|
1310
|
+
onClick: $
|
|
1306
1311
|
}, [
|
|
1307
|
-
a("span",
|
|
1308
|
-
L(
|
|
1312
|
+
a("span", Hn, "Show " + B(g.value) + " more", 1),
|
|
1313
|
+
L(D(ae), { class: "freddy-vector-section__show-more-icon" })
|
|
1309
1314
|
])
|
|
1310
|
-
])) :
|
|
1315
|
+
])) : w("", !0)
|
|
1311
1316
|
]),
|
|
1312
|
-
a("div",
|
|
1317
|
+
a("div", Un, [
|
|
1313
1318
|
T[5] || (T[5] = a("div", { class: "freddy-vector-section__add-title" }, "Knowledge", -1)),
|
|
1314
1319
|
a("div", jn, [
|
|
1315
1320
|
a("button", {
|
|
1316
1321
|
class: "freddy-vector-section__add-button",
|
|
1317
|
-
onClick:
|
|
1322
|
+
onClick: b
|
|
1318
1323
|
}, [
|
|
1319
|
-
L(
|
|
1324
|
+
L(D(it), { class: "freddy-vector-section__add-icon" }),
|
|
1320
1325
|
T[4] || (T[4] = a("span", { class: "freddy-vector-section__add-text" }, "Add vector store to assistant", -1))
|
|
1321
1326
|
])
|
|
1322
1327
|
])
|
|
@@ -1324,13 +1329,13 @@ const xt = [
|
|
|
1324
1329
|
])
|
|
1325
1330
|
]));
|
|
1326
1331
|
}
|
|
1327
|
-
}),
|
|
1332
|
+
}), nc = /* @__PURE__ */ H(Kn, [["__scopeId", "data-v-8434fbf8"]]), Gn = { class: "freddy-voice-list" }, Zn = {
|
|
1328
1333
|
key: 0,
|
|
1329
1334
|
class: "freddy-voice-list__title"
|
|
1330
|
-
},
|
|
1335
|
+
}, qn = { class: "freddy-voice-list__container" }, Wn = {
|
|
1331
1336
|
key: 1,
|
|
1332
1337
|
class: "freddy-voice-list__selected-info"
|
|
1333
|
-
},
|
|
1338
|
+
}, sc = /* @__PURE__ */ N({
|
|
1334
1339
|
__name: "VoiceList",
|
|
1335
1340
|
props: {
|
|
1336
1341
|
voices: {},
|
|
@@ -1340,7 +1345,7 @@ const xt = [
|
|
|
1340
1345
|
},
|
|
1341
1346
|
emits: ["selectionChange", "voiceClick"],
|
|
1342
1347
|
setup(y, { expose: m, emit: s }) {
|
|
1343
|
-
const e = y, i = s, l =
|
|
1348
|
+
const e = y, i = s, l = A(null), r = M(() => e.voices.find((d) => d.id === l.value) || null), u = (d) => {
|
|
1344
1349
|
l.value === d && e.allowDeselect ? l.value = null : l.value = d, i("selectionChange", l.value), i("voiceClick", d, l.value === d);
|
|
1345
1350
|
};
|
|
1346
1351
|
return m({
|
|
@@ -1354,29 +1359,29 @@ const xt = [
|
|
|
1354
1359
|
}
|
|
1355
1360
|
}), (d, o) => {
|
|
1356
1361
|
var g;
|
|
1357
|
-
return c(), f("div",
|
|
1358
|
-
d.title ? (c(), f("h3",
|
|
1359
|
-
a("div",
|
|
1360
|
-
(c(!0), f(O, null,
|
|
1361
|
-
key:
|
|
1362
|
-
voiceName:
|
|
1363
|
-
isSelected: l.value ===
|
|
1364
|
-
onClick: (
|
|
1362
|
+
return c(), f("div", Gn, [
|
|
1363
|
+
d.title ? (c(), f("h3", Zn, B(d.title), 1)) : w("", !0),
|
|
1364
|
+
a("div", qn, [
|
|
1365
|
+
(c(!0), f(O, null, j(d.voices, (b) => (c(), E(D(Ee), {
|
|
1366
|
+
key: b.id,
|
|
1367
|
+
voiceName: b.name,
|
|
1368
|
+
isSelected: l.value === b.id,
|
|
1369
|
+
onClick: ($) => u(b.id)
|
|
1365
1370
|
}, null, 8, ["voiceName", "isSelected", "onClick"]))), 128))
|
|
1366
1371
|
]),
|
|
1367
|
-
d.showSelectedInfo ? (c(), f("div",
|
|
1372
|
+
d.showSelectedInfo ? (c(), f("div", Wn, [
|
|
1368
1373
|
a("p", null, "Selected: " + B(((g = r.value) == null ? void 0 : g.name) || "None"), 1)
|
|
1369
|
-
])) :
|
|
1374
|
+
])) : w("", !0)
|
|
1370
1375
|
]);
|
|
1371
1376
|
};
|
|
1372
1377
|
}
|
|
1373
|
-
}),
|
|
1378
|
+
}), Jn = { class: "freddy-voice-selection__container" }, Qn = { class: "freddy-voice-selection__icon-container" }, Yn = { class: "freddy-voice-selection__icon" }, Xn = { class: "freddy-voice-selection__play-background" }, es = { class: "freddy-voice-selection__name-container" }, ts = { class: "freddy-voice-selection__name-wrapper" }, os = { class: "freddy-voice-selection__name" }, ns = {
|
|
1374
1379
|
key: 0,
|
|
1375
1380
|
class: "freddy-voice-selection__check-icon"
|
|
1376
|
-
},
|
|
1381
|
+
}, ss = {
|
|
1377
1382
|
key: 1,
|
|
1378
1383
|
class: "freddy-voice-selection__indicator"
|
|
1379
|
-
},
|
|
1384
|
+
}, Ee = /* @__PURE__ */ N({
|
|
1380
1385
|
__name: "VoiceSelection",
|
|
1381
1386
|
props: {
|
|
1382
1387
|
voiceName: {},
|
|
@@ -1391,26 +1396,26 @@ const xt = [
|
|
|
1391
1396
|
class: F(["freddy-voice-selection", { "freddy-voice-selection--selected": i.isSelected }]),
|
|
1392
1397
|
onClick: e
|
|
1393
1398
|
}, [
|
|
1394
|
-
a("div",
|
|
1395
|
-
a("div",
|
|
1396
|
-
a("div",
|
|
1397
|
-
a("div",
|
|
1398
|
-
L(
|
|
1399
|
+
a("div", Jn, [
|
|
1400
|
+
a("div", Qn, [
|
|
1401
|
+
a("div", Yn, [
|
|
1402
|
+
a("div", Xn, [
|
|
1403
|
+
L(D(at), { class: "freddy-voice-selection__triangle-icon" })
|
|
1399
1404
|
])
|
|
1400
1405
|
])
|
|
1401
1406
|
]),
|
|
1402
|
-
a("div",
|
|
1403
|
-
a("div",
|
|
1404
|
-
a("div",
|
|
1407
|
+
a("div", es, [
|
|
1408
|
+
a("div", ts, [
|
|
1409
|
+
a("div", os, B(i.voiceName), 1)
|
|
1405
1410
|
])
|
|
1406
1411
|
]),
|
|
1407
|
-
i.isSelected ? (c(), f("div",
|
|
1408
|
-
L(
|
|
1409
|
-
])) : (c(), f("div",
|
|
1412
|
+
i.isSelected ? (c(), f("div", ns, [
|
|
1413
|
+
L(D(he), { class: "freddy-voice-selection__check-icon-svg" })
|
|
1414
|
+
])) : (c(), f("div", ss))
|
|
1410
1415
|
])
|
|
1411
1416
|
], 2));
|
|
1412
1417
|
}
|
|
1413
|
-
}),
|
|
1418
|
+
}), is = ["innerHTML"], as = { key: 1 }, re = /* @__PURE__ */ N({
|
|
1414
1419
|
__name: "Tooltip",
|
|
1415
1420
|
props: {
|
|
1416
1421
|
text: {},
|
|
@@ -1420,7 +1425,7 @@ const xt = [
|
|
|
1420
1425
|
},
|
|
1421
1426
|
setup(y) {
|
|
1422
1427
|
ne();
|
|
1423
|
-
const m =
|
|
1428
|
+
const m = A(!1), s = A(!1), e = A(null);
|
|
1424
1429
|
let i = null;
|
|
1425
1430
|
function l() {
|
|
1426
1431
|
i && clearTimeout(i), i = setTimeout(() => {
|
|
@@ -1459,27 +1464,27 @@ const xt = [
|
|
|
1459
1464
|
u.html ? (c(), f("span", {
|
|
1460
1465
|
key: 0,
|
|
1461
1466
|
innerHTML: u.text
|
|
1462
|
-
}, null, 8,
|
|
1467
|
+
}, null, 8, is)) : (c(), f("span", as, B(u.text), 1))
|
|
1463
1468
|
])
|
|
1464
|
-
], 2)) :
|
|
1469
|
+
], 2)) : w("", !0)
|
|
1465
1470
|
]),
|
|
1466
1471
|
_: 3
|
|
1467
1472
|
})
|
|
1468
1473
|
], 544));
|
|
1469
1474
|
}
|
|
1470
|
-
}),
|
|
1475
|
+
}), ls = ["disabled", "aria-disabled", "aria-label"], cs = {
|
|
1471
1476
|
key: 0,
|
|
1472
1477
|
class: "freddy-plugins-button-label"
|
|
1473
|
-
},
|
|
1478
|
+
}, rs = {
|
|
1474
1479
|
key: 1,
|
|
1475
1480
|
class: "freddy-plugins-button-label"
|
|
1476
|
-
},
|
|
1481
|
+
}, ds = ["disabled", "aria-disabled", "aria-label"], us = {
|
|
1477
1482
|
key: 0,
|
|
1478
1483
|
class: "freddy-plugins-button-label"
|
|
1479
|
-
},
|
|
1484
|
+
}, ps = {
|
|
1480
1485
|
key: 1,
|
|
1481
1486
|
class: "freddy-plugins-button-label"
|
|
1482
|
-
},
|
|
1487
|
+
}, hs = /* @__PURE__ */ N({
|
|
1483
1488
|
__name: "BaseButton",
|
|
1484
1489
|
props: {
|
|
1485
1490
|
size: { default: "md" },
|
|
@@ -1543,7 +1548,7 @@ const xt = [
|
|
|
1543
1548
|
IconFolder: R(() => import("./icons-GUqeJvd4.js").then((v) => v.d5)),
|
|
1544
1549
|
IconText: R(() => import("./icons-GUqeJvd4.js").then((v) => v.ef)),
|
|
1545
1550
|
IconLink04: R(() => import("./icons-GUqeJvd4.js").then((v) => v.dn))
|
|
1546
|
-
}, i = M(() => s.leftIcon && e[s.leftIcon] || null), l = M(() => s.rightIcon && e[s.rightIcon] || null), r = m, u =
|
|
1551
|
+
}, i = M(() => s.leftIcon && e[s.leftIcon] || null), l = M(() => s.rightIcon && e[s.rightIcon] || null), r = m, u = A(!1), d = M(() => [
|
|
1547
1552
|
"freddy-plugins-base-button",
|
|
1548
1553
|
`freddy-plugins-base-button--${s.size}`,
|
|
1549
1554
|
`freddy-plugins-base-button--${s.hierarchy}`,
|
|
@@ -1559,9 +1564,9 @@ const xt = [
|
|
|
1559
1564
|
!s.disabled && !s.loading && r("click", v);
|
|
1560
1565
|
}, g = (v) => {
|
|
1561
1566
|
!s.disabled && !s.loading && r("leftIconClick", v);
|
|
1562
|
-
},
|
|
1567
|
+
}, b = (v) => {
|
|
1563
1568
|
!s.disabled && !s.loading && r("rightIconClick", v);
|
|
1564
|
-
},
|
|
1569
|
+
}, $ = () => {
|
|
1565
1570
|
u.value = !0;
|
|
1566
1571
|
}, V = () => {
|
|
1567
1572
|
u.value = !1;
|
|
@@ -1579,7 +1584,7 @@ const xt = [
|
|
|
1579
1584
|
"aria-label": v.iconOnly ? v.label : void 0,
|
|
1580
1585
|
role: "button",
|
|
1581
1586
|
onClick: o,
|
|
1582
|
-
onMouseenter:
|
|
1587
|
+
onMouseenter: $,
|
|
1583
1588
|
onMouseleave: V
|
|
1584
1589
|
}, [
|
|
1585
1590
|
v.loading ? (c(), f(O, { key: 0 }, [
|
|
@@ -1587,7 +1592,7 @@ const xt = [
|
|
|
1587
1592
|
class: "freddy-plugins-button-spinner",
|
|
1588
1593
|
"aria-hidden": "true"
|
|
1589
1594
|
}, null, -1)),
|
|
1590
|
-
v.loadingText || v.label ? (c(), f("span",
|
|
1595
|
+
v.loadingText || v.label ? (c(), f("span", cs, B(v.loadingText || v.label), 1)) : w("", !0)
|
|
1591
1596
|
], 64)) : v.iconOnly ? (c(), E(K(i.value), {
|
|
1592
1597
|
key: 1,
|
|
1593
1598
|
class: F(["freddy-plugins-button-icon freddy-plugins-button-icon-center", `freddy-plugins-button-icon--${v.size}`]),
|
|
@@ -1597,17 +1602,17 @@ const xt = [
|
|
|
1597
1602
|
key: 0,
|
|
1598
1603
|
class: F(["freddy-plugins-button-icon freddy-plugins-button-icon-left", `freddy-plugins-button-icon--${v.size}`]),
|
|
1599
1604
|
"aria-hidden": "true",
|
|
1600
|
-
onClick:
|
|
1601
|
-
}, null, 8, ["class"])) :
|
|
1602
|
-
v.label ? (c(), f("span",
|
|
1605
|
+
onClick: U(g, ["stop"])
|
|
1606
|
+
}, null, 8, ["class"])) : w("", !0),
|
|
1607
|
+
v.label ? (c(), f("span", rs, B(v.label), 1)) : w("", !0),
|
|
1603
1608
|
v.rightIcon ? (c(), E(K(l.value), {
|
|
1604
1609
|
key: 2,
|
|
1605
1610
|
class: F(["freddy-plugins-button-icon freddy-plugins-button-icon-right", `freddy-plugins-button-icon--${v.size}`]),
|
|
1606
1611
|
"aria-hidden": "true",
|
|
1607
|
-
onClick:
|
|
1608
|
-
}, null, 8, ["class"])) :
|
|
1612
|
+
onClick: U(b, ["stop"])
|
|
1613
|
+
}, null, 8, ["class"])) : w("", !0)
|
|
1609
1614
|
], 64))
|
|
1610
|
-
], 42,
|
|
1615
|
+
], 42, ls)
|
|
1611
1616
|
]),
|
|
1612
1617
|
_: 1
|
|
1613
1618
|
}, 8, ["text", "placement"])) : (c(), f("button", {
|
|
@@ -1618,7 +1623,7 @@ const xt = [
|
|
|
1618
1623
|
"aria-label": v.iconOnly ? v.label : void 0,
|
|
1619
1624
|
role: "button",
|
|
1620
1625
|
onClick: o,
|
|
1621
|
-
onMouseenter:
|
|
1626
|
+
onMouseenter: $,
|
|
1622
1627
|
onMouseleave: V
|
|
1623
1628
|
}, [
|
|
1624
1629
|
v.loading ? (c(), f(O, { key: 0 }, [
|
|
@@ -1626,7 +1631,7 @@ const xt = [
|
|
|
1626
1631
|
class: "freddy-plugins-button-spinner",
|
|
1627
1632
|
"aria-hidden": "true"
|
|
1628
1633
|
}, null, -1)),
|
|
1629
|
-
v.loadingText || v.label ? (c(), f("span",
|
|
1634
|
+
v.loadingText || v.label ? (c(), f("span", us, B(v.loadingText || v.label), 1)) : w("", !0)
|
|
1630
1635
|
], 64)) : v.iconOnly ? (c(), E(K(i.value), {
|
|
1631
1636
|
key: 1,
|
|
1632
1637
|
class: F(["freddy-plugins-button-icon freddy-plugins-button-icon-center", `freddy-plugins-button-icon--${v.size}`]),
|
|
@@ -1636,22 +1641,22 @@ const xt = [
|
|
|
1636
1641
|
key: 0,
|
|
1637
1642
|
class: F(["freddy-plugins-button-icon freddy-plugins-button-icon-left", `freddy-plugins-button-icon--${v.size}`]),
|
|
1638
1643
|
"aria-hidden": "true",
|
|
1639
|
-
onClick:
|
|
1640
|
-
}, null, 8, ["class"])) :
|
|
1641
|
-
v.label ? (c(), f("span",
|
|
1644
|
+
onClick: U(g, ["stop"])
|
|
1645
|
+
}, null, 8, ["class"])) : w("", !0),
|
|
1646
|
+
v.label ? (c(), f("span", ps, B(v.label), 1)) : w("", !0),
|
|
1642
1647
|
v.rightIcon ? (c(), E(K(l.value), {
|
|
1643
1648
|
key: 2,
|
|
1644
1649
|
class: F(["freddy-plugins-button-icon freddy-plugins-button-icon-right", `freddy-plugins-button-icon--${v.size}`]),
|
|
1645
1650
|
"aria-hidden": "true",
|
|
1646
|
-
onClick:
|
|
1647
|
-
}, null, 8, ["class"])) :
|
|
1651
|
+
onClick: U(b, ["stop"])
|
|
1652
|
+
}, null, 8, ["class"])) : w("", !0)
|
|
1648
1653
|
], 64))
|
|
1649
|
-
], 42,
|
|
1654
|
+
], 42, ds));
|
|
1650
1655
|
}
|
|
1651
|
-
}),
|
|
1656
|
+
}), Ne = /* @__PURE__ */ H(hs, [["__scopeId", "data-v-ca53fa07"]]), fs = ["disabled", "aria-label", "onClick"], ms = {
|
|
1652
1657
|
key: 0,
|
|
1653
1658
|
class: "freddy-plugins-social-button-label"
|
|
1654
|
-
},
|
|
1659
|
+
}, vs = /* @__PURE__ */ N({
|
|
1655
1660
|
__name: "SocialButtons",
|
|
1656
1661
|
props: {
|
|
1657
1662
|
providers: {},
|
|
@@ -1804,37 +1809,37 @@ const xt = [
|
|
|
1804
1809
|
"freddy-plugins-social-button--disabled": s.disabled,
|
|
1805
1810
|
"freddy-plugins-social-button--icon-only": s.iconOnly
|
|
1806
1811
|
}
|
|
1807
|
-
], o = (g,
|
|
1808
|
-
s.disabled || e("click", g,
|
|
1812
|
+
], o = (g, b) => {
|
|
1813
|
+
s.disabled || e("click", g, b);
|
|
1809
1814
|
};
|
|
1810
|
-
return (g,
|
|
1815
|
+
return (g, b) => (c(), f("div", {
|
|
1811
1816
|
class: F(l.value),
|
|
1812
1817
|
style: oe(g.style)
|
|
1813
1818
|
}, [
|
|
1814
|
-
(c(!0), f(O, null,
|
|
1815
|
-
key:
|
|
1816
|
-
class: F(d(
|
|
1819
|
+
(c(!0), f(O, null, j(g.providers, ($) => (c(), f("button", {
|
|
1820
|
+
key: $,
|
|
1821
|
+
class: F(d($)),
|
|
1817
1822
|
disabled: g.disabled,
|
|
1818
|
-
"aria-label": g.iconOnly ? u(
|
|
1823
|
+
"aria-label": g.iconOnly ? u($) : void 0,
|
|
1819
1824
|
role: "button",
|
|
1820
|
-
onClick: (V) => o(
|
|
1825
|
+
onClick: (V) => o($, V)
|
|
1821
1826
|
}, [
|
|
1822
|
-
(c(), E(K(r(
|
|
1827
|
+
(c(), E(K(r($)), {
|
|
1823
1828
|
class: "freddy-plugins-social-button-icon",
|
|
1824
1829
|
"aria-hidden": "true"
|
|
1825
1830
|
})),
|
|
1826
|
-
g.iconOnly ?
|
|
1827
|
-
], 10,
|
|
1831
|
+
g.iconOnly ? w("", !0) : (c(), f("span", ms, B(u($)), 1))
|
|
1832
|
+
], 10, fs))), 128))
|
|
1828
1833
|
], 6));
|
|
1829
1834
|
}
|
|
1830
|
-
}),
|
|
1835
|
+
}), ic = /* @__PURE__ */ H(vs, [["__scopeId", "data-v-22e5ee7c"]]), ys = ["innerHTML"], Ae = "nord", ac = /* @__PURE__ */ N({
|
|
1831
1836
|
__name: "CodeBlock",
|
|
1832
1837
|
props: {
|
|
1833
1838
|
code: {},
|
|
1834
1839
|
language: {}
|
|
1835
1840
|
},
|
|
1836
1841
|
setup(y) {
|
|
1837
|
-
const m = y, s =
|
|
1842
|
+
const m = y, s = A("");
|
|
1838
1843
|
let e = null, i = null;
|
|
1839
1844
|
const l = async () => {
|
|
1840
1845
|
try {
|
|
@@ -1872,30 +1877,30 @@ const xt = [
|
|
|
1872
1877
|
}
|
|
1873
1878
|
try {
|
|
1874
1879
|
e || (e = await i({
|
|
1875
|
-
themes: [
|
|
1880
|
+
themes: [Ae],
|
|
1876
1881
|
langs: r
|
|
1877
1882
|
})), s.value = e.codeToHtml(m.code, {
|
|
1878
1883
|
lang: m.language,
|
|
1879
|
-
theme:
|
|
1884
|
+
theme: Ae
|
|
1880
1885
|
});
|
|
1881
1886
|
} catch {
|
|
1882
1887
|
s.value = `<pre><code>${m.code.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">")}</code></pre>`;
|
|
1883
1888
|
}
|
|
1884
1889
|
};
|
|
1885
1890
|
return G(() => [m.code, m.language], u, { immediate: !0 }), me(u), (d, o) => (c(), f("pre", null, [
|
|
1886
|
-
a("code", { innerHTML: s.value }, null, 8,
|
|
1891
|
+
a("code", { innerHTML: s.value }, null, 8, ys)
|
|
1887
1892
|
]));
|
|
1888
1893
|
}
|
|
1889
|
-
}),
|
|
1894
|
+
}), gs = ["aria-checked", "aria-disabled", "aria-label"], Is = ["checked", "disabled"], bs = {
|
|
1890
1895
|
key: 0,
|
|
1891
1896
|
class: "freddy-plugins-checkbox-dash"
|
|
1892
|
-
},
|
|
1897
|
+
}, ks = {
|
|
1893
1898
|
key: 1,
|
|
1894
1899
|
class: "freddy-plugins-checkbox-icon",
|
|
1895
1900
|
viewBox: "0 0 12 12",
|
|
1896
1901
|
fill: "none",
|
|
1897
1902
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1898
|
-
},
|
|
1903
|
+
}, _s = ["stroke"], lc = /* @__PURE__ */ N({
|
|
1899
1904
|
__name: "CustomCheckbox",
|
|
1900
1905
|
props: {
|
|
1901
1906
|
isChecked: { type: Boolean },
|
|
@@ -1931,19 +1936,19 @@ const xt = [
|
|
|
1931
1936
|
checked: l.isChecked,
|
|
1932
1937
|
disabled: l.disabled,
|
|
1933
1938
|
onChange: i
|
|
1934
|
-
}, null, 40,
|
|
1935
|
-
l.isDashInput && l.isChecked ? (c(), f("span",
|
|
1939
|
+
}, null, 40, Is),
|
|
1940
|
+
l.isDashInput && l.isChecked ? (c(), f("span", bs)) : l.isChecked && !l.isDashInput ? (c(), f("svg", ks, [
|
|
1936
1941
|
a("path", {
|
|
1937
1942
|
d: "M10 3L4.5 8.5L2 6",
|
|
1938
1943
|
stroke: l.blueCheckbox ? "var(--text-50, var(--text-inverse))" : "#000",
|
|
1939
1944
|
"stroke-width": "1.6666",
|
|
1940
1945
|
"stroke-linecap": "round",
|
|
1941
1946
|
"stroke-linejoin": "round"
|
|
1942
|
-
}, null, 8,
|
|
1943
|
-
])) :
|
|
1944
|
-
], 10,
|
|
1947
|
+
}, null, 8, _s)
|
|
1948
|
+
])) : w("", !0)
|
|
1949
|
+
], 10, gs));
|
|
1945
1950
|
}
|
|
1946
|
-
}),
|
|
1951
|
+
}), Cs = ["aria-label"], ws = ["innerHTML"], Ss = { key: 1 }, Ts = /* @__PURE__ */ N({
|
|
1947
1952
|
__name: "TooltipV2",
|
|
1948
1953
|
props: {
|
|
1949
1954
|
text: {},
|
|
@@ -1954,13 +1959,13 @@ const xt = [
|
|
|
1954
1959
|
hideDelay: { default: 0 }
|
|
1955
1960
|
},
|
|
1956
1961
|
setup(y) {
|
|
1957
|
-
const m = y, s =
|
|
1962
|
+
const m = y, s = A(!1), e = A(!1), i = A(null);
|
|
1958
1963
|
let l = null, r = null;
|
|
1959
1964
|
const u = () => {
|
|
1960
1965
|
r && (clearTimeout(r), r = null), l && clearTimeout(l), l = setTimeout(() => {
|
|
1961
1966
|
if (i.value) {
|
|
1962
|
-
const
|
|
1963
|
-
e.value =
|
|
1967
|
+
const b = i.value.getBoundingClientRect();
|
|
1968
|
+
e.value = b.top < 150;
|
|
1964
1969
|
}
|
|
1965
1970
|
s.value = !0;
|
|
1966
1971
|
}, m.delay);
|
|
@@ -1973,7 +1978,7 @@ const xt = [
|
|
|
1973
1978
|
}, g = () => {
|
|
1974
1979
|
d();
|
|
1975
1980
|
};
|
|
1976
|
-
return (
|
|
1981
|
+
return (b, $) => (c(), f("div", {
|
|
1977
1982
|
ref_key: "tooltipWrapper",
|
|
1978
1983
|
ref: i,
|
|
1979
1984
|
class: "freddy-plugins-tooltip-v2-wrapper",
|
|
@@ -1983,33 +1988,33 @@ const xt = [
|
|
|
1983
1988
|
onFocusout: g,
|
|
1984
1989
|
tabindex: "0"
|
|
1985
1990
|
}, [
|
|
1986
|
-
q(
|
|
1991
|
+
q(b.$slots, "default", {}, void 0, !0),
|
|
1987
1992
|
L(le, { name: "fade" }, {
|
|
1988
1993
|
default: Z(() => [
|
|
1989
1994
|
s.value ? (c(), f("div", {
|
|
1990
1995
|
key: 0,
|
|
1991
1996
|
class: F(["freddy-plugins-tooltip-v2-content", [
|
|
1992
|
-
|
|
1997
|
+
b.placement,
|
|
1993
1998
|
e.value ? "force-bottom" : "",
|
|
1994
|
-
|
|
1999
|
+
b.contentClass
|
|
1995
2000
|
]]),
|
|
1996
2001
|
role: "tooltip",
|
|
1997
|
-
"aria-label":
|
|
2002
|
+
"aria-label": b.text
|
|
1998
2003
|
}, [
|
|
1999
|
-
q(
|
|
2000
|
-
|
|
2004
|
+
q(b.$slots, "content", {}, () => [
|
|
2005
|
+
b.html ? (c(), f("span", {
|
|
2001
2006
|
key: 0,
|
|
2002
|
-
innerHTML:
|
|
2003
|
-
}, null, 8,
|
|
2007
|
+
innerHTML: b.text
|
|
2008
|
+
}, null, 8, ws)) : (c(), f("span", Ss, B(b.text), 1))
|
|
2004
2009
|
], !0)
|
|
2005
|
-
], 10,
|
|
2010
|
+
], 10, Cs)) : w("", !0)
|
|
2006
2011
|
]),
|
|
2007
2012
|
_: 3
|
|
2008
2013
|
})
|
|
2009
2014
|
], 544));
|
|
2010
2015
|
}
|
|
2011
|
-
}),
|
|
2012
|
-
class
|
|
2016
|
+
}), $s = /* @__PURE__ */ H(Ts, [["__scopeId", "data-v-55872ec8"]]);
|
|
2017
|
+
class xs {
|
|
2013
2018
|
constructor(m) {
|
|
2014
2019
|
ye(this, "apiKey", null);
|
|
2015
2020
|
ye(this, "baseUrl", "https://api.openai.com/v1");
|
|
@@ -2277,8 +2282,8 @@ User request: ${m}` : m, o = {
|
|
|
2277
2282
|
success: !1,
|
|
2278
2283
|
error: ((e = (await g.json().catch(() => ({}))).error) == null ? void 0 : e.message) || `API request failed with status ${g.status}: ${g.statusText}`
|
|
2279
2284
|
};
|
|
2280
|
-
const
|
|
2281
|
-
return
|
|
2285
|
+
const $ = (u = (r = (l = (i = (await g.json()).output) == null ? void 0 : i[0]) == null ? void 0 : l.content) == null ? void 0 : r[0]) == null ? void 0 : u.text;
|
|
2286
|
+
return $ ? this.processResponse($, m, s) : {
|
|
2282
2287
|
success: !1,
|
|
2283
2288
|
error: "No response received from AI"
|
|
2284
2289
|
};
|
|
@@ -2306,48 +2311,48 @@ User request: ${m}` : m, o = {
|
|
|
2306
2311
|
};
|
|
2307
2312
|
}
|
|
2308
2313
|
}
|
|
2309
|
-
const ue = new
|
|
2314
|
+
const ue = new xs(
|
|
2310
2315
|
"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"
|
|
2311
|
-
),
|
|
2316
|
+
), Ps = { class: "freddy-plugins-simple-chat-interface" }, As = { class: "freddy-plugins-messages-list" }, Ds = {
|
|
2312
2317
|
key: 0,
|
|
2313
2318
|
class: "freddy-plugins-user-message-container"
|
|
2314
|
-
},
|
|
2319
|
+
}, Fs = { class: "freddy-plugins-user-bubble" }, Bs = { class: "freddy-plugins-user-actions" }, Ms = {
|
|
2315
2320
|
class: "freddy-plugins-action-btn",
|
|
2316
2321
|
title: "Copy"
|
|
2317
|
-
},
|
|
2322
|
+
}, Ls = {
|
|
2318
2323
|
class: "freddy-plugins-action-btn",
|
|
2319
2324
|
title: "Edit"
|
|
2320
|
-
},
|
|
2325
|
+
}, Vs = {
|
|
2321
2326
|
key: 1,
|
|
2322
2327
|
class: "freddy-plugins-assistant-message-container"
|
|
2323
|
-
},
|
|
2328
|
+
}, Es = { class: "freddy-plugins-assistant-content" }, Ns = { class: "freddy-plugins-assistant-text" }, Rs = {
|
|
2324
2329
|
key: 0,
|
|
2325
2330
|
class: "freddy-plugins-changes-card"
|
|
2326
|
-
},
|
|
2331
|
+
}, Os = { class: "freddy-plugins-changes-header" }, zs = { class: "freddy-plugins-header-left" }, Hs = { class: "freddy-plugins-change-title" }, Us = {
|
|
2327
2332
|
key: 0,
|
|
2328
2333
|
class: "freddy-plugins-stat-added"
|
|
2329
2334
|
}, js = {
|
|
2330
2335
|
key: 1,
|
|
2331
2336
|
class: "freddy-plugins-stat-removed"
|
|
2332
|
-
},
|
|
2337
|
+
}, Ks = { class: "freddy-plugins-changes-content" }, Gs = { class: "freddy-plugins-content-description" }, Zs = {
|
|
2333
2338
|
key: 0,
|
|
2334
2339
|
class: "freddy-plugins-content-actions"
|
|
2335
|
-
},
|
|
2340
|
+
}, qs = ["onClick"], Ws = ["onClick"], Js = {
|
|
2336
2341
|
key: 1,
|
|
2337
2342
|
class: "freddy-plugins-applied-label"
|
|
2338
|
-
},
|
|
2343
|
+
}, Qs = { class: "freddy-plugins-assistant-actions" }, Ys = {
|
|
2339
2344
|
class: "freddy-plugins-action-btn",
|
|
2340
2345
|
title: "Refresh"
|
|
2341
|
-
},
|
|
2346
|
+
}, Xs = {
|
|
2342
2347
|
class: "freddy-plugins-action-btn",
|
|
2343
2348
|
title: "Copy"
|
|
2344
|
-
},
|
|
2349
|
+
}, ei = {
|
|
2345
2350
|
class: "freddy-plugins-action-btn",
|
|
2346
2351
|
title: "Thumbs down"
|
|
2347
|
-
},
|
|
2352
|
+
}, ti = {
|
|
2348
2353
|
key: 0,
|
|
2349
2354
|
class: "freddy-plugins-processing-indicator"
|
|
2350
|
-
},
|
|
2355
|
+
}, oi = { class: "freddy-plugins-chat-input-area" }, ni = { class: "freddy-plugins-folder-btn" }, si = ["placeholder", "onKeydown"], ii = ["disabled"], ai = /* @__PURE__ */ N({
|
|
2351
2356
|
__name: "SimpleChatInterface",
|
|
2352
2357
|
props: {
|
|
2353
2358
|
placeholder: {},
|
|
@@ -2358,11 +2363,11 @@ const ue = new $s(
|
|
|
2358
2363
|
},
|
|
2359
2364
|
emits: ["send", "acceptChanges", "denyChanges", "textReplacement", "textCompletion"],
|
|
2360
2365
|
setup(y, { expose: m, emit: s }) {
|
|
2361
|
-
const e = y, i = s, l =
|
|
2366
|
+
const e = y, i = s, l = A(""), r = A(null), u = A(null), d = A(e.messages || []), o = A(!1);
|
|
2362
2367
|
e.openaiApiKey && ue.setApiKey(e.openaiApiKey), G(
|
|
2363
2368
|
() => e.messages,
|
|
2364
2369
|
(t) => {
|
|
2365
|
-
t && (d.value = t,
|
|
2370
|
+
t && (d.value = t, k());
|
|
2366
2371
|
}
|
|
2367
2372
|
), G(
|
|
2368
2373
|
() => e.openaiApiKey,
|
|
@@ -2381,7 +2386,7 @@ const ue = new $s(
|
|
|
2381
2386
|
default:
|
|
2382
2387
|
return "Text Improvement";
|
|
2383
2388
|
}
|
|
2384
|
-
},
|
|
2389
|
+
}, b = (t) => {
|
|
2385
2390
|
switch (t) {
|
|
2386
2391
|
case "replace":
|
|
2387
2392
|
return "Your text has been improved and replaced";
|
|
@@ -2392,8 +2397,8 @@ const ue = new $s(
|
|
|
2392
2397
|
default:
|
|
2393
2398
|
return "Text has been improved";
|
|
2394
2399
|
}
|
|
2395
|
-
},
|
|
2396
|
-
var p,
|
|
2400
|
+
}, $ = async (t) => {
|
|
2401
|
+
var p, S;
|
|
2397
2402
|
if (!ue.isConfigured()) {
|
|
2398
2403
|
const _ = {
|
|
2399
2404
|
id: Date.now().toString(),
|
|
@@ -2401,7 +2406,7 @@ const ue = new $s(
|
|
|
2401
2406
|
sender: "assistant",
|
|
2402
2407
|
timestamp: /* @__PURE__ */ new Date()
|
|
2403
2408
|
};
|
|
2404
|
-
d.value.push(_),
|
|
2409
|
+
d.value.push(_), k();
|
|
2405
2410
|
return;
|
|
2406
2411
|
}
|
|
2407
2412
|
o.value = !0;
|
|
@@ -2420,9 +2425,9 @@ const ue = new $s(
|
|
|
2420
2425
|
// Explicitly set to false for new messages
|
|
2421
2426
|
changes: _.hasChanges ? {
|
|
2422
2427
|
title: _.changeTitle || g(_.action),
|
|
2423
|
-
description: _.changeDescription ||
|
|
2428
|
+
description: _.changeDescription || b(_.action),
|
|
2424
2429
|
added: ((p = _.stats) == null ? void 0 : p.added) || 0,
|
|
2425
|
-
removed: ((
|
|
2430
|
+
removed: ((S = _.stats) == null ? void 0 : S.removed) || 0,
|
|
2426
2431
|
data: {
|
|
2427
2432
|
originalText: e.textBoxContent,
|
|
2428
2433
|
improvedText: _.improvedText || _.content,
|
|
@@ -2430,7 +2435,7 @@ const ue = new $s(
|
|
|
2430
2435
|
}
|
|
2431
2436
|
} : void 0
|
|
2432
2437
|
};
|
|
2433
|
-
d.value.push(n),
|
|
2438
|
+
d.value.push(n), k();
|
|
2434
2439
|
} else {
|
|
2435
2440
|
const n = {
|
|
2436
2441
|
id: Date.now().toString(),
|
|
@@ -2438,7 +2443,7 @@ const ue = new $s(
|
|
|
2438
2443
|
sender: "assistant",
|
|
2439
2444
|
timestamp: /* @__PURE__ */ new Date()
|
|
2440
2445
|
};
|
|
2441
|
-
d.value.push(n),
|
|
2446
|
+
d.value.push(n), k();
|
|
2442
2447
|
}
|
|
2443
2448
|
} catch {
|
|
2444
2449
|
const n = {
|
|
@@ -2447,7 +2452,7 @@ const ue = new $s(
|
|
|
2447
2452
|
sender: "assistant",
|
|
2448
2453
|
timestamp: /* @__PURE__ */ new Date()
|
|
2449
2454
|
};
|
|
2450
|
-
d.value.push(n),
|
|
2455
|
+
d.value.push(n), k();
|
|
2451
2456
|
} finally {
|
|
2452
2457
|
o.value = !1;
|
|
2453
2458
|
}
|
|
@@ -2460,7 +2465,7 @@ const ue = new $s(
|
|
|
2460
2465
|
sender: "user",
|
|
2461
2466
|
timestamp: /* @__PURE__ */ new Date()
|
|
2462
2467
|
};
|
|
2463
|
-
d.value.push(p), i("send", t), l.value = "", T(),
|
|
2468
|
+
d.value.push(p), i("send", t), l.value = "", T(), k(), e.enableAI && await $(t);
|
|
2464
2469
|
}, v = () => {
|
|
2465
2470
|
l.value += `
|
|
2466
2471
|
`, T();
|
|
@@ -2468,7 +2473,7 @@ const ue = new $s(
|
|
|
2468
2473
|
te(() => {
|
|
2469
2474
|
u.value && (u.value.style.height = "auto", u.value.style.height = Math.min(u.value.scrollHeight, 120) + "px");
|
|
2470
2475
|
});
|
|
2471
|
-
},
|
|
2476
|
+
}, k = () => {
|
|
2472
2477
|
te(() => {
|
|
2473
2478
|
r.value && (r.value.scrollTop = r.value.scrollHeight);
|
|
2474
2479
|
});
|
|
@@ -2479,126 +2484,126 @@ const ue = new $s(
|
|
|
2479
2484
|
};
|
|
2480
2485
|
return m({
|
|
2481
2486
|
addAIResponse: (t, p) => {
|
|
2482
|
-
const
|
|
2487
|
+
const S = {
|
|
2483
2488
|
id: Date.now().toString(),
|
|
2484
2489
|
content: t,
|
|
2485
2490
|
sender: "assistant",
|
|
2486
2491
|
timestamp: /* @__PURE__ */ new Date(),
|
|
2487
2492
|
changes: p
|
|
2488
2493
|
};
|
|
2489
|
-
d.value.push(
|
|
2494
|
+
d.value.push(S), k();
|
|
2490
2495
|
},
|
|
2491
2496
|
addAIResponseFromApi: (t) => {
|
|
2492
|
-
const p = gt(t),
|
|
2497
|
+
const p = gt(t), S = It(p), _ = bt(p), n = {
|
|
2493
2498
|
id: Date.now().toString(),
|
|
2494
|
-
content:
|
|
2499
|
+
content: S,
|
|
2495
2500
|
sender: "assistant",
|
|
2496
2501
|
timestamp: /* @__PURE__ */ new Date(),
|
|
2497
2502
|
applied: !1,
|
|
2498
2503
|
// Explicitly set to false for new messages
|
|
2499
2504
|
changes: _
|
|
2500
2505
|
};
|
|
2501
|
-
d.value.push(n),
|
|
2506
|
+
d.value.push(n), k();
|
|
2502
2507
|
}
|
|
2503
|
-
}), (t, p) => (c(), f("div",
|
|
2508
|
+
}), (t, p) => (c(), f("div", Ps, [
|
|
2504
2509
|
a("div", {
|
|
2505
2510
|
ref_key: "messagesContainer",
|
|
2506
2511
|
ref: r,
|
|
2507
2512
|
class: "freddy-plugins-chat-messages"
|
|
2508
2513
|
}, [
|
|
2509
|
-
a("div",
|
|
2510
|
-
(c(!0), f(O, null,
|
|
2511
|
-
key:
|
|
2512
|
-
class: F(["freddy-plugins-message",
|
|
2514
|
+
a("div", As, [
|
|
2515
|
+
(c(!0), f(O, null, j(d.value, (S) => (c(), f("div", {
|
|
2516
|
+
key: S.id,
|
|
2517
|
+
class: F(["freddy-plugins-message", S.sender])
|
|
2513
2518
|
}, [
|
|
2514
|
-
|
|
2515
|
-
a("div",
|
|
2516
|
-
a("div",
|
|
2517
|
-
a("button", Bs, [
|
|
2518
|
-
L(A(Te), { class: "freddy-plugins-action-icon" })
|
|
2519
|
-
]),
|
|
2519
|
+
S.sender === "user" ? (c(), f("div", Ds, [
|
|
2520
|
+
a("div", Fs, B(S.content), 1),
|
|
2521
|
+
a("div", Bs, [
|
|
2520
2522
|
a("button", Ms, [
|
|
2521
|
-
L(
|
|
2523
|
+
L(D(Se), { class: "freddy-plugins-action-icon" })
|
|
2524
|
+
]),
|
|
2525
|
+
a("button", Ls, [
|
|
2526
|
+
L(D(pe), { class: "freddy-plugins-action-icon" })
|
|
2522
2527
|
])
|
|
2523
2528
|
])
|
|
2524
|
-
])) : (c(), f("div",
|
|
2525
|
-
a("div",
|
|
2526
|
-
a("p",
|
|
2527
|
-
|
|
2528
|
-
a("div",
|
|
2529
|
-
a("div",
|
|
2530
|
-
L(
|
|
2531
|
-
a("span",
|
|
2532
|
-
|
|
2533
|
-
|
|
2529
|
+
])) : (c(), f("div", Vs, [
|
|
2530
|
+
a("div", Es, [
|
|
2531
|
+
a("p", Ns, B(S.content), 1),
|
|
2532
|
+
S.changes ? (c(), f("div", Rs, [
|
|
2533
|
+
a("div", Os, [
|
|
2534
|
+
a("div", zs, [
|
|
2535
|
+
L(D(ht), { class: "freddy-plugins-building-icon" }),
|
|
2536
|
+
a("span", Hs, B(S.changes.title || "Instructions"), 1),
|
|
2537
|
+
S.changes.added > 0 ? (c(), f("span", Us, "+" + B(S.changes.added), 1)) : w("", !0),
|
|
2538
|
+
S.changes.removed > 0 ? (c(), f("span", js, "-" + B(S.changes.removed), 1)) : w("", !0),
|
|
2534
2539
|
p[1] || (p[1] = a("span", { class: "freddy-plugins-changes-applied" }, "Changes applied", -1))
|
|
2535
2540
|
])
|
|
2536
2541
|
]),
|
|
2537
|
-
a("div",
|
|
2542
|
+
a("div", Ks, [
|
|
2538
2543
|
p[5] || (p[5] = a("div", { class: "freddy-plugins-content-header" }, [
|
|
2539
2544
|
a("span", { class: "freddy-plugins-content-title" }, "Instructions")
|
|
2540
2545
|
], -1)),
|
|
2541
|
-
a("p",
|
|
2542
|
-
|
|
2543
|
-
L(
|
|
2546
|
+
a("p", Gs, B(S.changes.description), 1),
|
|
2547
|
+
S.applied ? (c(), f("div", Js, [
|
|
2548
|
+
L(D(Te), { class: "freddy-plugins-applied-icon" }),
|
|
2544
2549
|
p[4] || (p[4] = J(" Applied ", -1))
|
|
2545
|
-
])) : (c(), f("div",
|
|
2550
|
+
])) : (c(), f("div", Zs, [
|
|
2546
2551
|
a("button", {
|
|
2547
2552
|
class: "freddy-plugins-accept-btn",
|
|
2548
|
-
onClick: (_) => I(
|
|
2553
|
+
onClick: (_) => I(S)
|
|
2549
2554
|
}, [
|
|
2550
|
-
L(
|
|
2555
|
+
L(D(Te), { class: "freddy-plugins-btn-icon" }),
|
|
2551
2556
|
p[2] || (p[2] = J(" Accept ", -1))
|
|
2552
|
-
], 8,
|
|
2557
|
+
], 8, qs),
|
|
2553
2558
|
a("button", {
|
|
2554
2559
|
class: "freddy-plugins-deny-btn",
|
|
2555
|
-
onClick: (_) => C(
|
|
2560
|
+
onClick: (_) => C(S)
|
|
2556
2561
|
}, [
|
|
2557
|
-
L(
|
|
2562
|
+
L(D(ee), { class: "freddy-plugins-btn-icon" }),
|
|
2558
2563
|
p[3] || (p[3] = J(" Deny ", -1))
|
|
2559
|
-
], 8,
|
|
2564
|
+
], 8, Ws)
|
|
2560
2565
|
]))
|
|
2561
2566
|
])
|
|
2562
|
-
])) :
|
|
2563
|
-
a("div",
|
|
2564
|
-
a("button", Qs, [
|
|
2565
|
-
L(A(ft), { class: "freddy-plugins-action-icon" })
|
|
2566
|
-
]),
|
|
2567
|
+
])) : w("", !0),
|
|
2568
|
+
a("div", Qs, [
|
|
2567
2569
|
a("button", Ys, [
|
|
2568
|
-
L(
|
|
2570
|
+
L(D(ft), { class: "freddy-plugins-action-icon" })
|
|
2569
2571
|
]),
|
|
2570
2572
|
a("button", Xs, [
|
|
2571
|
-
L(
|
|
2573
|
+
L(D(Se), { class: "freddy-plugins-action-icon" })
|
|
2574
|
+
]),
|
|
2575
|
+
a("button", ei, [
|
|
2576
|
+
L(D(mt), { class: "freddy-plugins-action-icon" })
|
|
2572
2577
|
])
|
|
2573
2578
|
])
|
|
2574
2579
|
])
|
|
2575
2580
|
]))
|
|
2576
2581
|
], 2))), 128))
|
|
2577
2582
|
]),
|
|
2578
|
-
o.value ? (c(), f("div",
|
|
2583
|
+
o.value ? (c(), f("div", ti, [...p[6] || (p[6] = [
|
|
2579
2584
|
a("div", { class: "freddy-plugins-processing-content" }, [
|
|
2580
2585
|
a("div", { class: "freddy-plugins-processing-spinner" }),
|
|
2581
2586
|
a("span", { class: "freddy-plugins-processing-text" }, "AI is processing your request...")
|
|
2582
2587
|
], -1)
|
|
2583
|
-
])])) :
|
|
2588
|
+
])])) : w("", !0)
|
|
2584
2589
|
], 512),
|
|
2585
|
-
a("div",
|
|
2586
|
-
a("button",
|
|
2587
|
-
L(
|
|
2590
|
+
a("div", oi, [
|
|
2591
|
+
a("button", ni, [
|
|
2592
|
+
L(D(vt), { class: "freddy-plugins-folder-icon" })
|
|
2588
2593
|
]),
|
|
2589
2594
|
Q(a("textarea", {
|
|
2590
2595
|
ref_key: "inputRef",
|
|
2591
2596
|
ref: u,
|
|
2592
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
2597
|
+
"onUpdate:modelValue": p[0] || (p[0] = (S) => l.value = S),
|
|
2593
2598
|
placeholder: t.placeholder || "Type here...",
|
|
2594
2599
|
class: "freddy-plugins-chat-input",
|
|
2595
2600
|
rows: "1",
|
|
2596
2601
|
onKeydown: [
|
|
2597
|
-
z(
|
|
2598
|
-
z(
|
|
2602
|
+
z(U(V, ["exact", "prevent"]), ["enter"]),
|
|
2603
|
+
z(U(v, ["shift", "exact"]), ["enter"])
|
|
2599
2604
|
],
|
|
2600
2605
|
onInput: T
|
|
2601
|
-
}, null, 40,
|
|
2606
|
+
}, null, 40, si), [
|
|
2602
2607
|
[Y, l.value]
|
|
2603
2608
|
]),
|
|
2604
2609
|
a("button", {
|
|
@@ -2606,15 +2611,15 @@ const ue = new $s(
|
|
|
2606
2611
|
disabled: !l.value.trim(),
|
|
2607
2612
|
onClick: V
|
|
2608
2613
|
}, [
|
|
2609
|
-
L(
|
|
2610
|
-
], 8,
|
|
2614
|
+
L(D(yt), { class: "freddy-plugins-send-icon" })
|
|
2615
|
+
], 8, ii)
|
|
2611
2616
|
])
|
|
2612
2617
|
]));
|
|
2613
2618
|
}
|
|
2614
|
-
}),
|
|
2619
|
+
}), li = { class: "freddy-plugins-edit-excerpt-modal-content" }, ci = { class: "freddy-plugins-edit-excerpt-modal-header" }, ri = { class: "freddy-plugins-edit-excerpt-modal-header-content" }, di = { class: "freddy-plugins-edit-excerpt-modal-icon" }, ui = { class: "freddy-plugins-edit-excerpt-modal-text" }, pi = { class: "freddy-plugins-edit-excerpt-modal-title" }, hi = { class: "freddy-plugins-edit-excerpt-modal-subtitle" }, fi = { class: "freddy-plugins-edit-excerpt-modal-textarea-section" }, mi = { class: "freddy-plugins-edit-excerpt-modal-footer" }, vi = { class: "freddy-plugins-edit-excerpt-modal-footer-content" }, yi = {
|
|
2615
2620
|
key: 0,
|
|
2616
2621
|
class: "freddy-plugins-edit-excerpt-modal-ai-container"
|
|
2617
|
-
},
|
|
2622
|
+
}, gi = /* @__PURE__ */ N({
|
|
2618
2623
|
__name: "EditFeaturedExcerptModal",
|
|
2619
2624
|
props: {
|
|
2620
2625
|
isVisible: {
|
|
@@ -2648,7 +2653,7 @@ const ue = new $s(
|
|
|
2648
2653
|
},
|
|
2649
2654
|
emits: ["close", "save", "cancel", "askAI", "toggleAI"],
|
|
2650
2655
|
setup(y, { emit: m }) {
|
|
2651
|
-
const s = y, e = m, i =
|
|
2656
|
+
const s = y, e = m, i = A(s.initialContent), l = A(!1), r = A([]), u = A(null);
|
|
2652
2657
|
G(
|
|
2653
2658
|
() => s.initialContent,
|
|
2654
2659
|
(I) => {
|
|
@@ -2661,39 +2666,39 @@ const ue = new $s(
|
|
|
2661
2666
|
e("save", i.value);
|
|
2662
2667
|
}, g = () => {
|
|
2663
2668
|
l.value = !1, r.value = [], e("cancel");
|
|
2664
|
-
},
|
|
2669
|
+
}, b = () => {
|
|
2665
2670
|
l.value = !0, e("toggleAI", l.value), e("askAI", i.value);
|
|
2666
|
-
},
|
|
2671
|
+
}, $ = async (I) => {
|
|
2667
2672
|
}, V = (I) => {
|
|
2668
2673
|
I.changes && I.changes.data && I.changes.data.improvedText && (i.value, i.value = I.changes.data.improvedText, I.applied = !0);
|
|
2669
2674
|
}, v = (I) => {
|
|
2670
2675
|
}, T = (I) => {
|
|
2671
|
-
},
|
|
2676
|
+
}, k = (I) => {
|
|
2672
2677
|
};
|
|
2673
2678
|
return (I, C) => (c(), E(le, { name: "modal" }, {
|
|
2674
2679
|
default: Z(() => [
|
|
2675
2680
|
y.isVisible ? (c(), f("div", {
|
|
2676
2681
|
key: 0,
|
|
2677
2682
|
class: "freddy-plugins-edit-excerpt-modal-overlay",
|
|
2678
|
-
onClick:
|
|
2683
|
+
onClick: U(d, ["self"])
|
|
2679
2684
|
}, [
|
|
2680
2685
|
a("div", {
|
|
2681
2686
|
class: F(["freddy-plugins-edit-excerpt-modal-container", { "ai-active": l.value }])
|
|
2682
2687
|
}, [
|
|
2683
|
-
a("div",
|
|
2684
|
-
a("div",
|
|
2685
|
-
a("div",
|
|
2686
|
-
a("div",
|
|
2687
|
-
L(
|
|
2688
|
+
a("div", li, [
|
|
2689
|
+
a("div", ci, [
|
|
2690
|
+
a("div", ri, [
|
|
2691
|
+
a("div", di, [
|
|
2692
|
+
L(D(kt), {
|
|
2688
2693
|
class: "freddy-plugins-edit-excerpt-edit-icon",
|
|
2689
2694
|
"center-distance": 36,
|
|
2690
2695
|
"circle-gap": 44,
|
|
2691
2696
|
"show-circles": !0
|
|
2692
2697
|
})
|
|
2693
2698
|
]),
|
|
2694
|
-
a("div",
|
|
2695
|
-
a("h2",
|
|
2696
|
-
a("p",
|
|
2699
|
+
a("div", ui, [
|
|
2700
|
+
a("h2", pi, B(y.title), 1),
|
|
2701
|
+
a("p", hi, B(y.description), 1)
|
|
2697
2702
|
])
|
|
2698
2703
|
]),
|
|
2699
2704
|
a("button", {
|
|
@@ -2702,14 +2707,14 @@ const ue = new $s(
|
|
|
2702
2707
|
onClick: d,
|
|
2703
2708
|
"aria-label": "Close modal"
|
|
2704
2709
|
}, [
|
|
2705
|
-
L(
|
|
2710
|
+
L(D(ee), { class: "freddy-plugins-edit-excerpt-modal-close-icon" })
|
|
2706
2711
|
], 4),
|
|
2707
|
-
|
|
2712
|
+
w("", !0),
|
|
2708
2713
|
C[1] || (C[1] = a("div", { class: "freddy-plugins-edit-excerpt-modal-header-spacing" }, null, -1))
|
|
2709
2714
|
]),
|
|
2710
|
-
a("div",
|
|
2715
|
+
a("div", fi, [
|
|
2711
2716
|
Q(a("textarea", {
|
|
2712
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
2717
|
+
"onUpdate:modelValue": C[0] || (C[0] = (P) => i.value = P),
|
|
2713
2718
|
class: "freddy-plugins-edit-excerpt-modal-textarea",
|
|
2714
2719
|
placeholder: "The text thats needed",
|
|
2715
2720
|
rows: "12"
|
|
@@ -2717,14 +2722,14 @@ const ue = new $s(
|
|
|
2717
2722
|
[Y, i.value]
|
|
2718
2723
|
])
|
|
2719
2724
|
]),
|
|
2720
|
-
a("div",
|
|
2721
|
-
a("div",
|
|
2722
|
-
l.value ?
|
|
2725
|
+
a("div", mi, [
|
|
2726
|
+
a("div", vi, [
|
|
2727
|
+
l.value ? w("", !0) : (c(), f("button", {
|
|
2723
2728
|
key: 0,
|
|
2724
2729
|
class: "freddy-plugins-edit-excerpt-modal-ai-btn",
|
|
2725
|
-
onClick:
|
|
2730
|
+
onClick: b
|
|
2726
2731
|
}, [
|
|
2727
|
-
L(
|
|
2732
|
+
L(D(Fe), { class: "freddy-plugins-edit-excerpt-modal-ai-icon" }),
|
|
2728
2733
|
C[2] || (C[2] = a("span", { class: "freddy-plugins-edit-excerpt-modal-ai-text" }, " Ask AI ", -1))
|
|
2729
2734
|
])),
|
|
2730
2735
|
a("div", { class: "freddy-plugins-edit-excerpt-modal-action-buttons" }, [
|
|
@@ -2740,8 +2745,8 @@ const ue = new $s(
|
|
|
2740
2745
|
])
|
|
2741
2746
|
])
|
|
2742
2747
|
]),
|
|
2743
|
-
l.value ? (c(), f("div",
|
|
2744
|
-
L(
|
|
2748
|
+
l.value ? (c(), f("div", yi, [
|
|
2749
|
+
L(ai, {
|
|
2745
2750
|
ref_key: "chatRef",
|
|
2746
2751
|
ref: u,
|
|
2747
2752
|
placeholder: "Type here...",
|
|
@@ -2749,29 +2754,29 @@ const ue = new $s(
|
|
|
2749
2754
|
"enable-a-i": !0,
|
|
2750
2755
|
"openai-api-key": y.openaiApiKey,
|
|
2751
2756
|
"text-box-content": i.value,
|
|
2752
|
-
onSend:
|
|
2757
|
+
onSend: $,
|
|
2753
2758
|
onAcceptChanges: V,
|
|
2754
2759
|
onDenyChanges: v,
|
|
2755
2760
|
onTextReplacement: T,
|
|
2756
|
-
onTextCompletion:
|
|
2761
|
+
onTextCompletion: k
|
|
2757
2762
|
}, null, 8, ["messages", "openai-api-key", "text-box-content"])
|
|
2758
|
-
])) :
|
|
2763
|
+
])) : w("", !0)
|
|
2759
2764
|
], 2)
|
|
2760
|
-
])) :
|
|
2765
|
+
])) : w("", !0)
|
|
2761
2766
|
]),
|
|
2762
2767
|
_: 1
|
|
2763
2768
|
}));
|
|
2764
2769
|
}
|
|
2765
|
-
}), Ie = /* @__PURE__ */ H(
|
|
2770
|
+
}), Ie = /* @__PURE__ */ H(gi, [["__scopeId", "data-v-d2e675b0"]]), Ii = { class: "freddy-plugins-textarea-input-field-wrapper" }, bi = { class: "freddy-plugins-textarea-input-container" }, ki = { class: "freddy-plugins-textarea-header" }, _i = { class: "freddy-plugins-textarea-label-wrapper" }, Ci = { class: "freddy-plugins-textarea-label-container" }, wi = {
|
|
2766
2771
|
key: 0,
|
|
2767
2772
|
class: "freddy-plugins-textarea-required"
|
|
2768
|
-
},
|
|
2773
|
+
}, Si = { class: "freddy-plugins-textarea-input-wrapper" }, Ti = ["placeholder", "disabled", "readonly"], $i = {
|
|
2769
2774
|
key: 1,
|
|
2770
2775
|
class: "freddy-plugins-textarea-diff-container"
|
|
2771
|
-
},
|
|
2776
|
+
}, xi = { class: "freddy-plugins-textarea-diff-content" }, Pi = { class: "freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old" }, Ai = { class: "freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new" }, Di = {
|
|
2772
2777
|
key: 2,
|
|
2773
2778
|
class: "freddy-plugins-textarea-tags-container"
|
|
2774
|
-
},
|
|
2779
|
+
}, Fi = { class: "freddy-plugins-textarea-tags" }, Bi = { class: "freddy-plugins-textarea-tag-content" }, Mi = ["onClick", "onKeydown", "aria-label"], Li = /* @__PURE__ */ N({
|
|
2775
2780
|
__name: "TextAreaInputField",
|
|
2776
2781
|
props: {
|
|
2777
2782
|
modelValue: { default: "" },
|
|
@@ -2805,69 +2810,69 @@ const ue = new $s(
|
|
|
2805
2810
|
},
|
|
2806
2811
|
emits: ["update:modelValue", "input", "focus", "blur", "ask-ai", "expand", "remove-tag", "tooltip-click", "add-tag", "tags-click"],
|
|
2807
2812
|
setup(y, { expose: m, emit: s }) {
|
|
2808
|
-
const e = y, i = s, l =
|
|
2813
|
+
const e = y, i = s, l = A(null), r = A(
|
|
2809
2814
|
null
|
|
2810
|
-
), u =
|
|
2815
|
+
), u = A(e.modelValue), d = A(""), o = A(!1), g = A("expand"), b = A(!1), $ = M(() => e.showTags && e.tags.length > 0 ? "" : e.placeholder);
|
|
2811
2816
|
G(
|
|
2812
2817
|
() => e.modelValue,
|
|
2813
|
-
(
|
|
2814
|
-
u.value =
|
|
2818
|
+
(x) => {
|
|
2819
|
+
u.value = x;
|
|
2815
2820
|
}
|
|
2816
2821
|
);
|
|
2817
2822
|
const V = () => {
|
|
2818
2823
|
i("update:modelValue", u.value), i("input", u.value);
|
|
2819
|
-
}, v = (
|
|
2820
|
-
|
|
2821
|
-
}, T = (
|
|
2822
|
-
|
|
2823
|
-
},
|
|
2824
|
+
}, v = (x) => {
|
|
2825
|
+
b.value = !0, i("focus", x);
|
|
2826
|
+
}, T = (x) => {
|
|
2827
|
+
b.value = !1, i("blur", x);
|
|
2828
|
+
}, k = (x) => {
|
|
2824
2829
|
}, I = () => {
|
|
2825
2830
|
e.tagsOnly && i("tags-click");
|
|
2826
2831
|
}, C = () => {
|
|
2827
2832
|
i("tooltip-click");
|
|
2828
|
-
},
|
|
2829
|
-
(
|
|
2833
|
+
}, P = (x) => {
|
|
2834
|
+
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), C());
|
|
2830
2835
|
}, h = () => {
|
|
2831
2836
|
d.value = u.value, g.value = "ai", o.value = !0, i("ask-ai", u.value);
|
|
2832
|
-
}, t = (
|
|
2833
|
-
(
|
|
2837
|
+
}, t = (x) => {
|
|
2838
|
+
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), h());
|
|
2834
2839
|
}, p = () => {
|
|
2835
2840
|
d.value = u.value, g.value = "expand", o.value = !0, i("expand", u.value);
|
|
2836
|
-
},
|
|
2837
|
-
(
|
|
2838
|
-
}, _ = (
|
|
2839
|
-
i("remove-tag",
|
|
2840
|
-
}, n = (
|
|
2841
|
-
(
|
|
2841
|
+
}, S = (x) => {
|
|
2842
|
+
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), p());
|
|
2843
|
+
}, _ = (x) => {
|
|
2844
|
+
i("remove-tag", x);
|
|
2845
|
+
}, n = (x, de) => {
|
|
2846
|
+
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), _(de));
|
|
2842
2847
|
}, W = () => {
|
|
2843
2848
|
u.value = d.value, i("update:modelValue", d.value), i("input", d.value), o.value = !1;
|
|
2844
|
-
}, X = (
|
|
2845
|
-
u.value =
|
|
2849
|
+
}, X = (x) => {
|
|
2850
|
+
u.value = x, i("update:modelValue", x), i("input", x), o.value = !1;
|
|
2846
2851
|
}, Ce = () => {
|
|
2847
2852
|
u.value = d.value, i("update:modelValue", d.value), i("input", d.value), o.value = !1;
|
|
2848
|
-
},
|
|
2853
|
+
}, Re = () => {
|
|
2849
2854
|
i("ask-ai", u.value);
|
|
2850
|
-
},
|
|
2855
|
+
}, Oe = (x) => {
|
|
2851
2856
|
};
|
|
2852
2857
|
return m({
|
|
2853
2858
|
focus: () => {
|
|
2854
|
-
var
|
|
2855
|
-
(
|
|
2859
|
+
var x;
|
|
2860
|
+
(x = l.value) == null || x.focus();
|
|
2856
2861
|
}
|
|
2857
|
-
}), (
|
|
2858
|
-
a("div",
|
|
2859
|
-
a("div",
|
|
2860
|
-
a("div",
|
|
2861
|
-
a("div",
|
|
2862
|
+
}), (x, de) => (c(), f("div", Ii, [
|
|
2863
|
+
a("div", bi, [
|
|
2864
|
+
a("div", ki, [
|
|
2865
|
+
a("div", _i, [
|
|
2866
|
+
a("div", Ci, [
|
|
2862
2867
|
a("label", {
|
|
2863
2868
|
class: F(["freddy-plugins-textarea-label", {
|
|
2864
|
-
"freddy-plugins-textarea-label--underlined":
|
|
2869
|
+
"freddy-plugins-textarea-label--underlined": x.showUnderlines
|
|
2865
2870
|
}])
|
|
2866
|
-
}, B(
|
|
2867
|
-
|
|
2868
|
-
|
|
2871
|
+
}, B(x.dynamicTitle || x.label), 3),
|
|
2872
|
+
x.required ? (c(), f("span", wi, "*")) : w("", !0),
|
|
2873
|
+
x.$slots.tooltip ? q(x.$slots, "tooltip", { key: 1 }, void 0, !0) : x.showTooltip && x.tooltipText ? (c(), E($s, {
|
|
2869
2874
|
key: 2,
|
|
2870
|
-
text:
|
|
2875
|
+
text: x.tooltipText,
|
|
2871
2876
|
placement: "top"
|
|
2872
2877
|
}, {
|
|
2873
2878
|
default: Z(() => [
|
|
@@ -2877,16 +2882,16 @@ const ue = new $s(
|
|
|
2877
2882
|
"aria-label": "Help",
|
|
2878
2883
|
tabindex: "0",
|
|
2879
2884
|
onClick: C,
|
|
2880
|
-
onKeydown:
|
|
2885
|
+
onKeydown: P
|
|
2881
2886
|
}, [
|
|
2882
|
-
L(
|
|
2887
|
+
L(D(fe), { class: "freddy-plugins-textarea-tooltip-icon" })
|
|
2883
2888
|
], 32)
|
|
2884
2889
|
]),
|
|
2885
2890
|
_: 1
|
|
2886
|
-
}, 8, ["text"])) :
|
|
2891
|
+
}, 8, ["text"])) : w("", !0)
|
|
2887
2892
|
])
|
|
2888
2893
|
]),
|
|
2889
|
-
|
|
2894
|
+
x.showAiButton ? (c(), f("button", {
|
|
2890
2895
|
key: 0,
|
|
2891
2896
|
type: "button",
|
|
2892
2897
|
class: "freddy-plugins-textarea-ai-button",
|
|
@@ -2895,49 +2900,49 @@ const ue = new $s(
|
|
|
2895
2900
|
"aria-label": "Ask AI for help",
|
|
2896
2901
|
tabindex: "0"
|
|
2897
2902
|
}, [
|
|
2898
|
-
L(
|
|
2899
|
-
], 32)) :
|
|
2903
|
+
L(D(Fe), { class: "freddy-plugins-textarea-ai-icon" })
|
|
2904
|
+
], 32)) : w("", !0)
|
|
2900
2905
|
]),
|
|
2901
|
-
a("div",
|
|
2902
|
-
|
|
2906
|
+
a("div", Si, [
|
|
2907
|
+
x.diffMode ? w("", !0) : Q((c(), f("textarea", {
|
|
2903
2908
|
key: 0,
|
|
2904
2909
|
ref_key: "textareaRef",
|
|
2905
2910
|
ref: l,
|
|
2906
2911
|
"onUpdate:modelValue": de[0] || (de[0] = (ie) => u.value = ie),
|
|
2907
2912
|
class: F(["freddy-plugins-textarea-input", {
|
|
2908
|
-
"freddy-plugins-textarea-input--error":
|
|
2909
|
-
"freddy-plugins-textarea-input--disabled":
|
|
2910
|
-
"freddy-plugins-textarea-input--focused":
|
|
2911
|
-
"freddy-plugins-textarea-input--with-tags":
|
|
2912
|
-
"freddy-plugins-textarea-input--tags-only":
|
|
2913
|
+
"freddy-plugins-textarea-input--error": x.hasError,
|
|
2914
|
+
"freddy-plugins-textarea-input--disabled": x.disabled,
|
|
2915
|
+
"freddy-plugins-textarea-input--focused": b.value,
|
|
2916
|
+
"freddy-plugins-textarea-input--with-tags": x.showTags && x.tags.length > 0,
|
|
2917
|
+
"freddy-plugins-textarea-input--tags-only": x.tagsOnly
|
|
2913
2918
|
}]),
|
|
2914
|
-
placeholder:
|
|
2915
|
-
disabled:
|
|
2916
|
-
readonly:
|
|
2919
|
+
placeholder: $.value,
|
|
2920
|
+
disabled: x.disabled,
|
|
2921
|
+
readonly: x.readonly || x.tagsOnly,
|
|
2917
2922
|
onInput: V,
|
|
2918
2923
|
onFocus: v,
|
|
2919
2924
|
onBlur: T,
|
|
2920
|
-
onKeydown:
|
|
2925
|
+
onKeydown: k,
|
|
2921
2926
|
onClick: I
|
|
2922
|
-
}, null, 42,
|
|
2927
|
+
}, null, 42, Ti)), [
|
|
2923
2928
|
[Y, u.value]
|
|
2924
2929
|
]),
|
|
2925
|
-
|
|
2926
|
-
a("div",
|
|
2927
|
-
a("div",
|
|
2928
|
-
a("div",
|
|
2930
|
+
x.diffMode ? (c(), f("div", $i, [
|
|
2931
|
+
a("div", xi, [
|
|
2932
|
+
a("div", Pi, B(x.oldText), 1),
|
|
2933
|
+
a("div", Ai, B(x.newText), 1)
|
|
2929
2934
|
])
|
|
2930
|
-
])) :
|
|
2931
|
-
|
|
2932
|
-
a("div",
|
|
2933
|
-
(c(!0), f(O, null,
|
|
2935
|
+
])) : w("", !0),
|
|
2936
|
+
x.showTags && x.tags.length > 0 ? (c(), f("div", Di, [
|
|
2937
|
+
a("div", Fi, [
|
|
2938
|
+
(c(!0), f(O, null, j(x.tags, (ie, ve) => (c(), f("div", {
|
|
2934
2939
|
key: `${ie}-${ve}`,
|
|
2935
2940
|
class: "freddy-plugins-textarea-tag"
|
|
2936
2941
|
}, [
|
|
2937
|
-
a("div",
|
|
2942
|
+
a("div", Bi, [
|
|
2938
2943
|
a("span", {
|
|
2939
2944
|
class: F(["freddy-plugins-textarea-tag-text", {
|
|
2940
|
-
"freddy-plugins-textarea-tag-text--underlined":
|
|
2945
|
+
"freddy-plugins-textarea-tag-text--underlined": x.showUnderlines
|
|
2941
2946
|
}])
|
|
2942
2947
|
}, B(ie), 3)
|
|
2943
2948
|
]),
|
|
@@ -2949,75 +2954,75 @@ const ue = new $s(
|
|
|
2949
2954
|
"aria-label": `Remove ${ie} tag`,
|
|
2950
2955
|
tabindex: "0"
|
|
2951
2956
|
}, [
|
|
2952
|
-
L(
|
|
2953
|
-
], 40,
|
|
2957
|
+
L(D(ee), { class: "freddy-plugins-textarea-tag-close-icon" })
|
|
2958
|
+
], 40, Mi)
|
|
2954
2959
|
]))), 128))
|
|
2955
2960
|
]),
|
|
2956
|
-
|
|
2961
|
+
x.showAddTagsPlaceholder ? (c(), f("span", {
|
|
2957
2962
|
key: 0,
|
|
2958
2963
|
class: F(["freddy-plugins-textarea-add-tags", {
|
|
2959
|
-
"freddy-plugins-textarea-add-tags--underlined":
|
|
2964
|
+
"freddy-plugins-textarea-add-tags--underlined": x.showUnderlines
|
|
2960
2965
|
}])
|
|
2961
|
-
}, B(
|
|
2962
|
-
])) :
|
|
2966
|
+
}, B(x.addTagsPlaceholder), 3)) : w("", !0)
|
|
2967
|
+
])) : w("", !0),
|
|
2963
2968
|
a("button", {
|
|
2964
2969
|
type: "button",
|
|
2965
2970
|
class: "freddy-plugins-textarea-expand-button",
|
|
2966
2971
|
onClick: p,
|
|
2967
|
-
onKeydown:
|
|
2972
|
+
onKeydown: S,
|
|
2968
2973
|
"aria-label": "Expand textarea",
|
|
2969
2974
|
tabindex: "0"
|
|
2970
2975
|
}, [
|
|
2971
|
-
L(
|
|
2976
|
+
L(D(_t), { class: "freddy-plugins-textarea-expand-icon" })
|
|
2972
2977
|
], 32)
|
|
2973
2978
|
])
|
|
2974
2979
|
]),
|
|
2975
|
-
|
|
2980
|
+
x.showHint && x.hintText && !x.hasError ? (c(), f("p", {
|
|
2976
2981
|
key: 0,
|
|
2977
2982
|
class: F(["freddy-plugins-textarea-hint-text", {
|
|
2978
|
-
"freddy-plugins-textarea-hint-text--underlined":
|
|
2983
|
+
"freddy-plugins-textarea-hint-text--underlined": x.showUnderlines
|
|
2979
2984
|
}])
|
|
2980
|
-
}, B(
|
|
2981
|
-
|
|
2985
|
+
}, B(x.hintText), 3)) : w("", !0),
|
|
2986
|
+
x.hasError && x.errorMessage ? (c(), f("p", {
|
|
2982
2987
|
key: 1,
|
|
2983
2988
|
class: F(["freddy-plugins-textarea-error-text", {
|
|
2984
|
-
"freddy-plugins-textarea-error-text--underlined":
|
|
2989
|
+
"freddy-plugins-textarea-error-text--underlined": x.showUnderlines
|
|
2985
2990
|
}])
|
|
2986
|
-
}, B(
|
|
2991
|
+
}, B(x.errorMessage), 3)) : w("", !0),
|
|
2987
2992
|
g.value === "ai" ? (c(), E(Ie, {
|
|
2988
2993
|
key: 2,
|
|
2989
2994
|
ref_key: "aiModalRef",
|
|
2990
2995
|
ref: r,
|
|
2991
2996
|
"is-visible": o.value && g.value === "ai",
|
|
2992
|
-
title:
|
|
2993
|
-
description:
|
|
2997
|
+
title: x.modalTitle,
|
|
2998
|
+
description: x.modalDescription,
|
|
2994
2999
|
"initial-content": u.value,
|
|
2995
|
-
"openai-api-key":
|
|
2996
|
-
"openai-model":
|
|
2997
|
-
"openai-organization":
|
|
3000
|
+
"openai-api-key": x.openaiApiKey,
|
|
3001
|
+
"openai-model": x.openaiModel,
|
|
3002
|
+
"openai-organization": x.openaiOrganization,
|
|
2998
3003
|
"auto-show-a-i": !0,
|
|
2999
3004
|
onClose: W,
|
|
3000
3005
|
onSave: X,
|
|
3001
3006
|
onCancel: Ce,
|
|
3002
|
-
onAskAI:
|
|
3003
|
-
onToggleAI:
|
|
3004
|
-
}, null, 8, ["is-visible", "title", "description", "initial-content", "openai-api-key", "openai-model", "openai-organization"])) :
|
|
3007
|
+
onAskAI: Re,
|
|
3008
|
+
onToggleAI: Oe
|
|
3009
|
+
}, null, 8, ["is-visible", "title", "description", "initial-content", "openai-api-key", "openai-model", "openai-organization"])) : w("", !0),
|
|
3005
3010
|
g.value === "expand" ? (c(), E(Ie, {
|
|
3006
3011
|
key: 3,
|
|
3007
3012
|
"is-visible": o.value && g.value === "expand",
|
|
3008
|
-
title:
|
|
3009
|
-
description:
|
|
3013
|
+
title: x.modalTitle,
|
|
3014
|
+
description: x.modalDescription,
|
|
3010
3015
|
"initial-content": u.value,
|
|
3011
3016
|
"openai-api-key": "",
|
|
3012
|
-
"openai-model":
|
|
3017
|
+
"openai-model": x.openaiModel,
|
|
3013
3018
|
"openai-organization": "",
|
|
3014
3019
|
onClose: W,
|
|
3015
3020
|
onSave: X,
|
|
3016
3021
|
onCancel: Ce
|
|
3017
|
-
}, null, 8, ["is-visible", "title", "description", "initial-content", "openai-model"])) :
|
|
3022
|
+
}, null, 8, ["is-visible", "title", "description", "initial-content", "openai-model"])) : w("", !0)
|
|
3018
3023
|
]));
|
|
3019
3024
|
}
|
|
3020
|
-
}),
|
|
3025
|
+
}), Vi = /* @__PURE__ */ H(Li, [["__scopeId", "data-v-279e4bd4"]]), Ei = /* @__PURE__ */ N({
|
|
3021
3026
|
__name: "Descriptions",
|
|
3022
3027
|
props: {
|
|
3023
3028
|
modelValue: { default: "" },
|
|
@@ -3050,7 +3055,7 @@ const ue = new $s(
|
|
|
3050
3055
|
},
|
|
3051
3056
|
emits: ["update:modelValue", "input", "focus", "blur", "ask-ai", "expand", "remove-tag", "tooltip-click", "add-tag", "tags-click"],
|
|
3052
3057
|
setup(y, { expose: m, emit: s }) {
|
|
3053
|
-
const e = y, i = s, l =
|
|
3058
|
+
const e = y, i = s, l = A(e.modelValue), r = A([...e.tags]);
|
|
3054
3059
|
G(
|
|
3055
3060
|
() => e.modelValue,
|
|
3056
3061
|
(p) => {
|
|
@@ -3065,9 +3070,9 @@ const ue = new $s(
|
|
|
3065
3070
|
);
|
|
3066
3071
|
const u = M(() => e.type === "tags"), d = M(() => e.type === "tags" && (e.stage === "placeholder" || e.stage === "focused")), o = M(() => (e.stage === "focused", "Add tags...")), g = M(() => e.stage === "error" || e.destructive);
|
|
3067
3072
|
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);
|
|
3068
|
-
const
|
|
3073
|
+
const b = (p) => {
|
|
3069
3074
|
l.value = p, i("update:modelValue", p);
|
|
3070
|
-
},
|
|
3075
|
+
}, $ = (p) => {
|
|
3071
3076
|
i("input", p);
|
|
3072
3077
|
}, V = (p) => {
|
|
3073
3078
|
i("focus", p);
|
|
@@ -3075,13 +3080,13 @@ const ue = new $s(
|
|
|
3075
3080
|
i("blur", p);
|
|
3076
3081
|
}, T = (p) => {
|
|
3077
3082
|
i("ask-ai", p);
|
|
3078
|
-
},
|
|
3083
|
+
}, k = (p) => {
|
|
3079
3084
|
i("expand", p);
|
|
3080
3085
|
}, I = (p) => {
|
|
3081
3086
|
r.value.splice(p, 1), i("remove-tag", p);
|
|
3082
3087
|
}, C = () => {
|
|
3083
3088
|
i("tooltip-click");
|
|
3084
|
-
},
|
|
3089
|
+
}, P = (p) => {
|
|
3085
3090
|
i("add-tag", p);
|
|
3086
3091
|
}, h = () => {
|
|
3087
3092
|
i("tags-click");
|
|
@@ -3089,11 +3094,11 @@ const ue = new $s(
|
|
|
3089
3094
|
return m({
|
|
3090
3095
|
focus: () => {
|
|
3091
3096
|
}
|
|
3092
|
-
}), (p,
|
|
3097
|
+
}), (p, S) => (c(), E(Vi, {
|
|
3093
3098
|
modelValue: l.value,
|
|
3094
3099
|
"onUpdate:modelValue": [
|
|
3095
|
-
|
|
3096
|
-
|
|
3100
|
+
S[0] || (S[0] = (_) => l.value = _),
|
|
3101
|
+
b
|
|
3097
3102
|
],
|
|
3098
3103
|
label: p.label,
|
|
3099
3104
|
placeholder: p.placeholder,
|
|
@@ -3122,18 +3127,18 @@ const ue = new $s(
|
|
|
3122
3127
|
"old-text": p.oldText,
|
|
3123
3128
|
"new-text": p.newText,
|
|
3124
3129
|
"tags-only": p.tagsOnly,
|
|
3125
|
-
onInput:
|
|
3130
|
+
onInput: $,
|
|
3126
3131
|
onFocus: V,
|
|
3127
3132
|
onBlur: v,
|
|
3128
3133
|
onAskAi: T,
|
|
3129
|
-
onExpand:
|
|
3134
|
+
onExpand: k,
|
|
3130
3135
|
onRemoveTag: I,
|
|
3131
3136
|
onTooltipClick: C,
|
|
3132
|
-
onAddTag:
|
|
3137
|
+
onAddTag: P,
|
|
3133
3138
|
onTagsClick: h
|
|
3134
3139
|
}, 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"]));
|
|
3135
3140
|
}
|
|
3136
|
-
}),
|
|
3141
|
+
}), cc = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-19ded011"]]), Ni = { class: "freddy-plugins-diff-container" }, Ri = ["innerHTML"], Oi = ["placeholder"], zi = /* @__PURE__ */ N({
|
|
3137
3142
|
__name: "DiffTextarea",
|
|
3138
3143
|
props: {
|
|
3139
3144
|
modelValue: {},
|
|
@@ -3144,7 +3149,7 @@ const ue = new $s(
|
|
|
3144
3149
|
},
|
|
3145
3150
|
emits: ["update:modelValue"],
|
|
3146
3151
|
setup(y, { expose: m, emit: s }) {
|
|
3147
|
-
const e = y, i = s, l =
|
|
3152
|
+
const e = y, i = s, l = A(null), r = A(e.modelValue);
|
|
3148
3153
|
G(
|
|
3149
3154
|
() => e.modelValue,
|
|
3150
3155
|
(o) => {
|
|
@@ -3156,11 +3161,11 @@ const ue = new $s(
|
|
|
3156
3161
|
}, d = M(() => {
|
|
3157
3162
|
if (!e.originalText || !e.improvedText) return "";
|
|
3158
3163
|
const o = e.originalText.split(/(\s+)/), g = e.improvedText.split(/(\s+)/);
|
|
3159
|
-
let
|
|
3160
|
-
const
|
|
3161
|
-
|
|
3164
|
+
let b = "";
|
|
3165
|
+
const $ = o.filter((v) => !g.includes(v) && v.trim()).join(" ");
|
|
3166
|
+
$ && (b += `<span class="freddy-plugins-diff-removed">${$}</span>`);
|
|
3162
3167
|
const V = g.filter((v) => !o.includes(v) && v.trim()).join(" ");
|
|
3163
|
-
return V && (
|
|
3168
|
+
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;
|
|
3164
3169
|
});
|
|
3165
3170
|
return m({
|
|
3166
3171
|
focus: () => {
|
|
@@ -3171,25 +3176,25 @@ const ue = new $s(
|
|
|
3171
3176
|
var o;
|
|
3172
3177
|
return (o = l.value) == null ? void 0 : o.blur();
|
|
3173
3178
|
}
|
|
3174
|
-
}), (o, g) => (c(), f("div",
|
|
3179
|
+
}), (o, g) => (c(), f("div", Ni, [
|
|
3175
3180
|
o.showDiff && d.value ? (c(), f("div", {
|
|
3176
3181
|
key: 0,
|
|
3177
3182
|
class: "freddy-plugins-diff-preview",
|
|
3178
3183
|
innerHTML: d.value
|
|
3179
|
-
}, null, 8,
|
|
3184
|
+
}, null, 8, Ri)) : Q((c(), f("textarea", {
|
|
3180
3185
|
key: 1,
|
|
3181
3186
|
ref_key: "textareaRef",
|
|
3182
3187
|
ref: l,
|
|
3183
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
3188
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => r.value = b),
|
|
3184
3189
|
class: "freddy-plugins-diff-textarea",
|
|
3185
3190
|
placeholder: o.placeholder,
|
|
3186
3191
|
onInput: u
|
|
3187
|
-
}, null, 40,
|
|
3192
|
+
}, null, 40, Oi)), [
|
|
3188
3193
|
[Y, r.value]
|
|
3189
3194
|
])
|
|
3190
3195
|
]));
|
|
3191
3196
|
}
|
|
3192
|
-
}),
|
|
3197
|
+
}), rc = /* @__PURE__ */ H(zi, [["__scopeId", "data-v-54efeaf3"]]), Hi = ["aria-checked", "tabindex", "onKeydown", "disabled"], Ui = /* @__PURE__ */ N({
|
|
3193
3198
|
__name: "Switch",
|
|
3194
3199
|
props: {
|
|
3195
3200
|
modelValue: { type: Boolean },
|
|
@@ -3214,25 +3219,25 @@ const ue = new $s(
|
|
|
3214
3219
|
tabindex: l.disabled ? -1 : 0,
|
|
3215
3220
|
onClick: i,
|
|
3216
3221
|
onKeydown: [
|
|
3217
|
-
z(
|
|
3218
|
-
z(
|
|
3222
|
+
z(U(i, ["prevent"]), ["space"]),
|
|
3223
|
+
z(U(i, ["prevent"]), ["enter"])
|
|
3219
3224
|
],
|
|
3220
3225
|
disabled: l.disabled
|
|
3221
3226
|
}, [...r[0] || (r[0] = [
|
|
3222
3227
|
a("span", { class: "freddy-plugins-switch__track" }, null, -1),
|
|
3223
3228
|
a("span", { class: "freddy-plugins-switch__thumb" }, null, -1)
|
|
3224
|
-
])], 42,
|
|
3229
|
+
])], 42, Hi));
|
|
3225
3230
|
}
|
|
3226
3231
|
}), ji = {
|
|
3227
3232
|
key: 0,
|
|
3228
3233
|
class: "freddy-plugins-dropdown-search-bar"
|
|
3229
|
-
},
|
|
3234
|
+
}, Ki = ["placeholder"], Gi = { class: "freddy-plugins-dropdown-options" }, Zi = ["onClick"], qi = { class: "freddy-plugins-dropdown-option-label" }, Wi = {
|
|
3230
3235
|
key: 1,
|
|
3231
3236
|
class: "freddy-plugins-dropdown-option-shortcut"
|
|
3232
|
-
},
|
|
3237
|
+
}, Ji = {
|
|
3233
3238
|
key: 0,
|
|
3234
3239
|
class: "freddy-plugins-dropdown-no-options"
|
|
3235
|
-
},
|
|
3240
|
+
}, dc = /* @__PURE__ */ N({
|
|
3236
3241
|
__name: "Dropdown",
|
|
3237
3242
|
props: {
|
|
3238
3243
|
label: { default: "Select" },
|
|
@@ -3256,7 +3261,7 @@ const ue = new $s(
|
|
|
3256
3261
|
},
|
|
3257
3262
|
emits: ["select", "toggle"],
|
|
3258
3263
|
setup(y, { emit: m }) {
|
|
3259
|
-
const s = y, e = m, i =
|
|
3264
|
+
const s = y, e = m, i = A(!1), l = A(""), r = A(null), u = je([...s.options]);
|
|
3260
3265
|
G(
|
|
3261
3266
|
() => s.options,
|
|
3262
3267
|
(C) => {
|
|
@@ -3265,7 +3270,7 @@ const ue = new $s(
|
|
|
3265
3270
|
);
|
|
3266
3271
|
const d = () => {
|
|
3267
3272
|
if (r.value) return;
|
|
3268
|
-
const C = u.value.find((
|
|
3273
|
+
const C = u.value.find((P) => P.default);
|
|
3269
3274
|
C && (r.value = C);
|
|
3270
3275
|
};
|
|
3271
3276
|
G(
|
|
@@ -3275,34 +3280,34 @@ const ue = new $s(
|
|
|
3275
3280
|
},
|
|
3276
3281
|
{ immediate: !0 }
|
|
3277
3282
|
);
|
|
3278
|
-
const o = M(() => s.label !== "Select" ? s.label : r.value ? r.value.label : "Select"), g = M(() => s.showIcon ? s.customIcon ? s.customIcon : s.openUp ?
|
|
3283
|
+
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 = () => {
|
|
3279
3284
|
i.value = !i.value, i.value || (l.value = "");
|
|
3280
|
-
},
|
|
3285
|
+
}, $ = () => {
|
|
3281
3286
|
i.value = !1, l.value = "";
|
|
3282
3287
|
}, V = M(() => !s.searchable || !l.value ? u.value : u.value.filter(
|
|
3283
3288
|
(C) => C.label.toLowerCase().includes(l.value.toLowerCase())
|
|
3284
|
-
)), v = (C,
|
|
3289
|
+
)), v = (C, P) => {
|
|
3285
3290
|
C.type !== "toggle" && T(C);
|
|
3286
3291
|
}, T = (C) => {
|
|
3287
|
-
r.value = C, e("select", C), s.stayOpen ||
|
|
3288
|
-
},
|
|
3292
|
+
r.value = C, e("select", C), s.stayOpen || $();
|
|
3293
|
+
}, k = (C, P) => {
|
|
3289
3294
|
const h = u.value.findIndex(
|
|
3290
3295
|
(t) => t.value === C.value
|
|
3291
3296
|
);
|
|
3292
|
-
h !== -1 && (u.value[h].checked =
|
|
3297
|
+
h !== -1 && (u.value[h].checked = P), e("toggle", { ...C, checked: P });
|
|
3293
3298
|
}, I = (C) => {
|
|
3294
|
-
C.target.closest(".freddy-plugins-dropdown-wrapper") ||
|
|
3299
|
+
C.target.closest(".freddy-plugins-dropdown-wrapper") || $();
|
|
3295
3300
|
};
|
|
3296
3301
|
return G(i, (C) => {
|
|
3297
3302
|
C ? setTimeout(() => {
|
|
3298
3303
|
document.addEventListener("click", I);
|
|
3299
3304
|
}, 0) : document.removeEventListener("click", I);
|
|
3300
|
-
}), (C,
|
|
3305
|
+
}), (C, P) => (c(), f("div", {
|
|
3301
3306
|
class: "freddy-plugins-dropdown-wrapper",
|
|
3302
|
-
onKeydown: z(
|
|
3307
|
+
onKeydown: z($, ["esc"]),
|
|
3303
3308
|
tabindex: "0"
|
|
3304
3309
|
}, [
|
|
3305
|
-
L(
|
|
3310
|
+
L(Ne, {
|
|
3306
3311
|
class: "freddy-plugins-dropdown-trigger",
|
|
3307
3312
|
label: o.value,
|
|
3308
3313
|
iconOnly: C.iconOnly,
|
|
@@ -3310,7 +3315,7 @@ const ue = new $s(
|
|
|
3310
3315
|
leftIcon: !C.chevronRight && C.showIcon ? g.value : void 0,
|
|
3311
3316
|
size: C.size,
|
|
3312
3317
|
hierarchy: "tertiary",
|
|
3313
|
-
onClick:
|
|
3318
|
+
onClick: b,
|
|
3314
3319
|
"aria-expanded": i.value,
|
|
3315
3320
|
"aria-haspopup": !0,
|
|
3316
3321
|
type: "button"
|
|
@@ -3331,58 +3336,58 @@ const ue = new $s(
|
|
|
3331
3336
|
}, [
|
|
3332
3337
|
C.searchable ? (c(), f("div", ji, [
|
|
3333
3338
|
Q(a("input", {
|
|
3334
|
-
"onUpdate:modelValue":
|
|
3339
|
+
"onUpdate:modelValue": P[0] || (P[0] = (h) => l.value = h),
|
|
3335
3340
|
type: "text",
|
|
3336
3341
|
class: "freddy-plugins-dropdown-search-input",
|
|
3337
3342
|
placeholder: C.searchPlaceholder
|
|
3338
|
-
}, null, 8,
|
|
3343
|
+
}, null, 8, Ki), [
|
|
3339
3344
|
[Y, l.value]
|
|
3340
3345
|
])
|
|
3341
|
-
])) :
|
|
3342
|
-
a("ul",
|
|
3343
|
-
(c(!0), f(O, null,
|
|
3346
|
+
])) : w("", !0),
|
|
3347
|
+
a("ul", Gi, [
|
|
3348
|
+
(c(!0), f(O, null, j(V.value, (h) => (c(), f("li", {
|
|
3344
3349
|
key: h.value,
|
|
3345
3350
|
class: F(["freddy-plugins-dropdown-option", {
|
|
3346
3351
|
"freddy-plugins-dropdown-option--toggle": h.type === "toggle"
|
|
3347
3352
|
}]),
|
|
3348
3353
|
onClick: (t) => v(h)
|
|
3349
3354
|
}, [
|
|
3350
|
-
a("span",
|
|
3355
|
+
a("span", qi, [
|
|
3351
3356
|
!C.optionIconRight && h.icon ? (c(), E(K(h.icon), {
|
|
3352
3357
|
key: 0,
|
|
3353
3358
|
class: "freddy-plugins-dropdown-option-icon"
|
|
3354
|
-
})) :
|
|
3359
|
+
})) : w("", !0),
|
|
3355
3360
|
a("span", null, B(h.label), 1),
|
|
3356
|
-
C.showShortcut && h.shortcut ? (c(), f("span",
|
|
3361
|
+
C.showShortcut && h.shortcut ? (c(), f("span", Wi, B(h.shortcut), 1)) : w("", !0),
|
|
3357
3362
|
C.optionIconRight && h.icon ? (c(), E(K(h.icon), {
|
|
3358
3363
|
key: 2,
|
|
3359
3364
|
class: "freddy-plugins-dropdown-option-icon freddy-plugins-dropdown-option-icon--right"
|
|
3360
|
-
})) :
|
|
3365
|
+
})) : w("", !0)
|
|
3361
3366
|
]),
|
|
3362
|
-
h.type === "toggle" ? (c(), E(
|
|
3367
|
+
h.type === "toggle" ? (c(), E(Ui, {
|
|
3363
3368
|
key: 0,
|
|
3364
3369
|
modelValue: h.checked ?? !1,
|
|
3365
3370
|
size: s.size,
|
|
3366
3371
|
"onUpdate:modelValue": (t) => {
|
|
3367
|
-
|
|
3372
|
+
k(h, t);
|
|
3368
3373
|
},
|
|
3369
|
-
onClick:
|
|
3374
|
+
onClick: P[1] || (P[1] = U(() => {
|
|
3370
3375
|
}, ["stop"]))
|
|
3371
|
-
}, null, 8, ["modelValue", "size", "onUpdate:modelValue"])) :
|
|
3372
|
-
], 10,
|
|
3373
|
-
V.value.length === 0 ? (c(), f("li",
|
|
3376
|
+
}, null, 8, ["modelValue", "size", "onUpdate:modelValue"])) : w("", !0)
|
|
3377
|
+
], 10, Zi))), 128)),
|
|
3378
|
+
V.value.length === 0 ? (c(), f("li", Ji, [
|
|
3374
3379
|
q(C.$slots, "no-options", {}, () => [
|
|
3375
|
-
|
|
3380
|
+
P[2] || (P[2] = J("No options", -1))
|
|
3376
3381
|
])
|
|
3377
|
-
])) :
|
|
3382
|
+
])) : w("", !0)
|
|
3378
3383
|
])
|
|
3379
|
-
], 2)) :
|
|
3384
|
+
], 2)) : w("", !0)
|
|
3380
3385
|
], 32));
|
|
3381
3386
|
}
|
|
3382
|
-
}),
|
|
3387
|
+
}), Qi = { class: "verification-container" }, Yi = { class: "verification-header" }, Xi = { class: "verification-subtitle" }, ea = { class: "code-input-container" }, ta = { class: "code-inputs" }, oa = ["onUpdate:modelValue", "onInput", "onKeydown", "disabled"], na = { class: "verification-actions" }, sa = {
|
|
3383
3388
|
key: 0,
|
|
3384
3389
|
class: "error-message"
|
|
3385
|
-
},
|
|
3390
|
+
}, ia = { class: "verification-footer" }, aa = { class: "resend-text" }, la = ["disabled"], uc = /* @__PURE__ */ N({
|
|
3386
3391
|
__name: "EmailCodeVerification",
|
|
3387
3392
|
props: {
|
|
3388
3393
|
email: {},
|
|
@@ -3393,10 +3398,10 @@ const ue = new $s(
|
|
|
3393
3398
|
},
|
|
3394
3399
|
emits: ["verify", "resend"],
|
|
3395
3400
|
setup(y, { emit: m }) {
|
|
3396
|
-
const s = y, { brand: e, loading: i, error: l, resendCooldown: r } = s, u = m, d =
|
|
3397
|
-
const
|
|
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("")), $ = (I, C) => {
|
|
3402
|
+
const P = C.target, h = P.value;
|
|
3398
3403
|
if (!/^\d*$/.test(h)) {
|
|
3399
|
-
|
|
3404
|
+
P.value = "";
|
|
3400
3405
|
return;
|
|
3401
3406
|
}
|
|
3402
3407
|
d.value[I] = h, h && I < 3 && te(() => {
|
|
@@ -3405,24 +3410,24 @@ const ue = new $s(
|
|
|
3405
3410
|
});
|
|
3406
3411
|
}, V = (I, C) => {
|
|
3407
3412
|
C.key === "Backspace" && !d.value[I] && I > 0 && te(() => {
|
|
3408
|
-
var
|
|
3409
|
-
(
|
|
3413
|
+
var P;
|
|
3414
|
+
(P = o.value[I - 1]) == null || P.focus();
|
|
3410
3415
|
});
|
|
3411
3416
|
}, v = (I) => {
|
|
3412
3417
|
var p;
|
|
3413
3418
|
I.preventDefault();
|
|
3414
3419
|
const C = (p = I.clipboardData) == null ? void 0 : p.getData("text");
|
|
3415
3420
|
if (!C) return;
|
|
3416
|
-
const
|
|
3417
|
-
d.value = [...
|
|
3418
|
-
const h = d.value.findIndex((
|
|
3421
|
+
const P = C.replace(/\D/g, "").slice(0, 4).split("");
|
|
3422
|
+
d.value = [...P, "", "", "", ""].slice(0, 4);
|
|
3423
|
+
const h = d.value.findIndex((S) => S === ""), t = h === -1 ? 3 : h;
|
|
3419
3424
|
te(() => {
|
|
3420
|
-
var
|
|
3421
|
-
(
|
|
3425
|
+
var S;
|
|
3426
|
+
(S = o.value[t]) == null || S.focus();
|
|
3422
3427
|
});
|
|
3423
3428
|
}, T = () => {
|
|
3424
|
-
g.value && u("verify",
|
|
3425
|
-
},
|
|
3429
|
+
g.value && u("verify", b.value);
|
|
3430
|
+
}, k = () => {
|
|
3426
3431
|
u("resend");
|
|
3427
3432
|
};
|
|
3428
3433
|
return me(() => {
|
|
@@ -3431,71 +3436,71 @@ const ue = new $s(
|
|
|
3431
3436
|
(I = o.value[0]) == null || I.focus();
|
|
3432
3437
|
});
|
|
3433
3438
|
}), (I, C) => (c(), f("div", {
|
|
3434
|
-
class: F(["email-verification", `email-verification--${
|
|
3439
|
+
class: F(["email-verification", `email-verification--${D(e)}`])
|
|
3435
3440
|
}, [
|
|
3436
|
-
a("div",
|
|
3437
|
-
a("div",
|
|
3441
|
+
a("div", Qi, [
|
|
3442
|
+
a("div", Yi, [
|
|
3438
3443
|
C[1] || (C[1] = a("h2", { class: "verification-title" }, "Verify Your Email", -1)),
|
|
3439
|
-
a("p",
|
|
3444
|
+
a("p", Xi, [
|
|
3440
3445
|
C[0] || (C[0] = J(" We've sent a 4-digit verification code to ", -1)),
|
|
3441
3446
|
a("strong", null, B(I.email), 1)
|
|
3442
3447
|
])
|
|
3443
3448
|
]),
|
|
3444
3449
|
a("form", {
|
|
3445
|
-
onSubmit:
|
|
3450
|
+
onSubmit: U(T, ["prevent"]),
|
|
3446
3451
|
class: "verification-form"
|
|
3447
3452
|
}, [
|
|
3448
|
-
a("div",
|
|
3449
|
-
a("div",
|
|
3450
|
-
(c(), f(O, null,
|
|
3453
|
+
a("div", ea, [
|
|
3454
|
+
a("div", ta, [
|
|
3455
|
+
(c(), f(O, null, j(4, (P, h) => Q(a("input", {
|
|
3451
3456
|
key: h,
|
|
3452
3457
|
ref_for: !0,
|
|
3453
3458
|
ref: (t) => o.value[h] = t,
|
|
3454
3459
|
"onUpdate:modelValue": (t) => d.value[h] = t,
|
|
3455
3460
|
type: "text",
|
|
3456
3461
|
maxlength: "1",
|
|
3457
|
-
class: F(["code-input", `code-input--${
|
|
3458
|
-
onInput: (t) =>
|
|
3462
|
+
class: F(["code-input", `code-input--${D(e)}`]),
|
|
3463
|
+
onInput: (t) => $(h, t),
|
|
3459
3464
|
onKeydown: (t) => V(h, t),
|
|
3460
3465
|
onPaste: v,
|
|
3461
|
-
disabled:
|
|
3466
|
+
disabled: D(i),
|
|
3462
3467
|
autocomplete: "one-time-code"
|
|
3463
|
-
}, null, 42,
|
|
3468
|
+
}, null, 42, oa), [
|
|
3464
3469
|
[Y, d.value[h]]
|
|
3465
3470
|
])), 64))
|
|
3466
3471
|
])
|
|
3467
3472
|
]),
|
|
3468
|
-
a("div",
|
|
3469
|
-
L(
|
|
3473
|
+
a("div", na, [
|
|
3474
|
+
L(Ne, {
|
|
3470
3475
|
type: "submit",
|
|
3471
|
-
label:
|
|
3476
|
+
label: D(i) ? "Verifying..." : "Verify Code",
|
|
3472
3477
|
hierarchy: "primary",
|
|
3473
3478
|
size: "lg",
|
|
3474
|
-
loading:
|
|
3475
|
-
disabled: !g.value ||
|
|
3476
|
-
class: F(`verify-button verify-button--${
|
|
3479
|
+
loading: D(i),
|
|
3480
|
+
disabled: !g.value || D(i),
|
|
3481
|
+
class: F(`verify-button verify-button--${D(e)}`)
|
|
3477
3482
|
}, null, 8, ["label", "loading", "disabled", "class"])
|
|
3478
3483
|
]),
|
|
3479
|
-
|
|
3480
|
-
a("div",
|
|
3481
|
-
a("p",
|
|
3484
|
+
D(l) ? (c(), f("div", sa, B(D(l)), 1)) : w("", !0),
|
|
3485
|
+
a("div", ia, [
|
|
3486
|
+
a("p", aa, [
|
|
3482
3487
|
C[2] || (C[2] = J(" Didn't receive the code? ", -1)),
|
|
3483
3488
|
a("button", {
|
|
3484
3489
|
type: "button",
|
|
3485
3490
|
class: "resend-button",
|
|
3486
|
-
disabled:
|
|
3487
|
-
onClick:
|
|
3488
|
-
}, B(
|
|
3491
|
+
disabled: D(r) > 0,
|
|
3492
|
+
onClick: k
|
|
3493
|
+
}, B(D(r) > 0 ? `Resend in ${D(r)}s` : "Resend code"), 9, la)
|
|
3489
3494
|
])
|
|
3490
3495
|
])
|
|
3491
3496
|
], 32)
|
|
3492
3497
|
])
|
|
3493
3498
|
], 2));
|
|
3494
3499
|
}
|
|
3495
|
-
}),
|
|
3500
|
+
}), ca = { class: "freddy-plugins-input-field-wrapper" }, ra = ["for"], da = {
|
|
3496
3501
|
key: 0,
|
|
3497
3502
|
class: "freddy-plugins-required-asterisk"
|
|
3498
|
-
},
|
|
3503
|
+
}, ua = /* @__PURE__ */ N({
|
|
3499
3504
|
__name: "BaseInput",
|
|
3500
3505
|
props: {
|
|
3501
3506
|
size: { default: "md" },
|
|
@@ -3526,15 +3531,15 @@ const ue = new $s(
|
|
|
3526
3531
|
inputId: l,
|
|
3527
3532
|
containerClasses: r,
|
|
3528
3533
|
focusInput: u
|
|
3529
|
-
}), (d, o) => (c(), f("div",
|
|
3534
|
+
}), (d, o) => (c(), f("div", ca, [
|
|
3530
3535
|
d.label ? (c(), f("label", {
|
|
3531
3536
|
key: 0,
|
|
3532
3537
|
for: l.value,
|
|
3533
3538
|
class: F(["freddy-plugins-input-field-label", `freddy-plugins-input-field-label--${d.colorStyle}`])
|
|
3534
3539
|
}, [
|
|
3535
3540
|
J(B(d.label) + " ", 1),
|
|
3536
|
-
d.required ? (c(), f("span",
|
|
3537
|
-
], 10,
|
|
3541
|
+
d.required ? (c(), f("span", da, "*")) : w("", !0)
|
|
3542
|
+
], 10, ra)) : w("", !0),
|
|
3538
3543
|
a("div", {
|
|
3539
3544
|
class: F(["freddy-plugins-input-field-container", r.value]),
|
|
3540
3545
|
onClick: u
|
|
@@ -3544,10 +3549,10 @@ const ue = new $s(
|
|
|
3544
3549
|
d.hintText ? (c(), f("p", {
|
|
3545
3550
|
key: 1,
|
|
3546
3551
|
class: F(["freddy-plugins-input-hint-text", `freddy-plugins-input-hint-text--${d.colorStyle}`])
|
|
3547
|
-
}, B(d.hintText), 3)) :
|
|
3552
|
+
}, B(d.hintText), 3)) : w("", !0)
|
|
3548
3553
|
]));
|
|
3549
3554
|
}
|
|
3550
|
-
}), ke = /* @__PURE__ */ H(
|
|
3555
|
+
}), ke = /* @__PURE__ */ H(ua, [["__scopeId", "data-v-bb114a19"]]), pa = ["src", "alt"], ha = ["id", "placeholder", "disabled", "readonly", "maxlength"], fa = /* @__PURE__ */ N({
|
|
3551
3556
|
__name: "CardInput",
|
|
3552
3557
|
props: {
|
|
3553
3558
|
cardNumber: { default: "" },
|
|
@@ -3600,7 +3605,7 @@ const ue = new $s(
|
|
|
3600
3605
|
},
|
|
3601
3606
|
emits: ["update:cardNumber", "card-type-detected", "update:modelValue", "input", "focus", "blur", "trailing-icon-click", "keydown", "leading-icon-click", "trailing-button-click", "update:countryCode", "update:phoneNumber", "country-change", "update:currency", "update:amount", "currency-change", "update:protocol", "update:url", "protocol-change", "update:tags", "tag-added", "tag-removed", "max-tags-reached", "copy-success", "copy-error"],
|
|
3602
3607
|
setup(y, { expose: m, emit: s }) {
|
|
3603
|
-
const e = y, i = s, l =
|
|
3608
|
+
const e = y, i = s, l = A(null), r = A(null), u = A(""), d = A(""), o = A("unknown"), g = M(() => ({
|
|
3604
3609
|
size: e.size,
|
|
3605
3610
|
colorStyle: e.colorStyle,
|
|
3606
3611
|
state: e.state,
|
|
@@ -3609,9 +3614,9 @@ const ue = new $s(
|
|
|
3609
3614
|
label: e.label,
|
|
3610
3615
|
hintText: e.hintText,
|
|
3611
3616
|
disabled: e.disabled
|
|
3612
|
-
})),
|
|
3617
|
+
})), b = (_) => _ ? typeof _ == "object" ? _ : typeof _ == "string" ? R(
|
|
3613
3618
|
() => be(/* @__PURE__ */ Object.assign({ "../../icons/IconAddChatPop.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.c5), "../../icons/IconAddFileSystem.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.c6), "../../icons/IconAddPeople.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.c7), "../../icons/IconAitronos.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.c8), "../../icons/IconApple.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.c9), "../../icons/IconApplePay.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ca), "../../icons/IconAppsGrid.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cb), "../../icons/IconArrowDown.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cc), "../../icons/IconArrowLeft.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cd), "../../icons/IconArrowUp.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ce), "../../icons/IconBadgeCheck.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cf), "../../icons/IconBroom.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cg), "../../icons/IconBuildings.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ch), "../../icons/IconCalendarWithTickInside.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ci), "../../icons/IconCallNotAllowed.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cj), "../../icons/IconCardPay.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ck), "../../icons/IconCaution.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cl), "../../icons/IconChangeLog.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cm), "../../icons/IconCheckCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cn), "../../icons/IconCheckInCircle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.co), "../../icons/IconCheckRounded.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cp), "../../icons/IconChevronDown.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cq), "../../icons/IconChevronLeft.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cr), "../../icons/IconChevronRight.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cs), "../../icons/IconChevronUp.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ct), "../../icons/IconCircledCheck.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cu), "../../icons/IconClock.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cv), "../../icons/IconClosedEnvelope.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cw), "../../icons/IconCloudUpload.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cx), "../../icons/IconConnectorConfluence.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cy), "../../icons/IconConnectorFigma.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cz), "../../icons/IconConnectorFreshDesk.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cA), "../../icons/IconConnectorGitHub.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cB), "../../icons/IconConnectorJira.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cC), "../../icons/IconConnectorLinear.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cD), "../../icons/IconConnectorNotion.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cE), "../../icons/IconConnectorSlack.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cF), "../../icons/IconConnectorZapier.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cG), "../../icons/IconCopy.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cH), "../../icons/IconCross.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cI), "../../icons/IconCrossCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cJ), "../../icons/IconCrossInCircle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cK), "../../icons/IconCurrentTick.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cL), "../../icons/IconDataUpload.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cM), "../../icons/IconDelete.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cN), "../../icons/IconDeleteFillRed.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cO), "../../icons/IconDialingPhone.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cP), "../../icons/IconDisabledAlert.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cQ), "../../icons/IconDocumentation.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cR), "../../icons/IconDownload.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cS), "../../icons/IconDribbble.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cT), "../../icons/IconDropdownArrow.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cU), "../../icons/IconEdit.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cV), "../../icons/IconEditLinePath.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cW), "../../icons/IconEllipse.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cX), "../../icons/IconExcelThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cY), "../../icons/IconExpand.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.cZ), "../../icons/IconEye.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.c_), "../../icons/IconFacebook.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.c$), "../../icons/IconFigma.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d0), "../../icons/IconFile.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d1), "../../icons/IconFileSystem.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d2), "../../icons/IconFileUpload.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d3), "../../icons/IconFilter.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d4), "../../icons/IconFolder.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d5), "../../icons/IconFreddyHub.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d6), "../../icons/IconFreddyHubLogo.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d7), "../../icons/IconFreddyHubNewLogo.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d8), "../../icons/IconFreddyHubTitle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d9), "../../icons/IconFreddySmall.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.da), "../../icons/IconGlobExpand.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.db), "../../icons/IconGlobe.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dc), "../../icons/IconGoogle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dd), "../../icons/IconHollowCircle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.de), "../../icons/IconHome.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.df), "../../icons/IconInfoRounded.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dg), "../../icons/IconInvalidInvoice.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dh), "../../icons/IconInvoice.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.di), "../../icons/IconInvoiceSwitch.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dj), "../../icons/IconLapTableBottom.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dk), "../../icons/IconLense.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dl), "../../icons/IconLightCross.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dm), "../../icons/IconLink04.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dn), "../../icons/IconLoadingError.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dp), "../../icons/IconLoadingOrg.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dq), "../../icons/IconLocationWithCircleIn.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dr), "../../icons/IconLock.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ds), "../../icons/IconMarketPlace.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dt), "../../icons/IconMaximize.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.du), "../../icons/IconMicrophone.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dv), "../../icons/IconMutedMicrophone.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dw), "../../icons/IconNewNotification.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dx), "../../icons/IconNewTab.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dy), "../../icons/IconNotification.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dz), "../../icons/IconOpenBook.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dA), "../../icons/IconPaperAirPlane.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dB), "../../icons/IconPauseCircle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dC), "../../icons/IconPdfThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dD), "../../icons/IconPenEdit.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dE), "../../icons/IconPencil.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dF), "../../icons/IconPeopleHub.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dG), "../../icons/IconPersonCircle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dH), "../../icons/IconPits.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dI), "../../icons/IconPlay.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dJ), "../../icons/IconPlus.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dK), "../../icons/IconPolygonDown.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dL), "../../icons/IconPresentation.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dM), "../../icons/IconProgressBase.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dN), "../../icons/IconProgressComplete.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dO), "../../icons/IconProgressGoing.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dP), "../../icons/IconPurpose.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dQ), "../../icons/IconPurseCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dR), "../../icons/IconQuestion.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dS), "../../icons/IconRadio.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dT), "../../icons/IconRadioFill.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dU), "../../icons/IconRefresh.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dV), "../../icons/IconRevertedTriangle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dW), "../../icons/IconRobotScreen.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dX), "../../icons/IconRoundTick.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dY), "../../icons/IconSearch.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.dZ), "../../icons/IconSearchOptimised.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d_), "../../icons/IconSectionHide.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.d$), "../../icons/IconSend.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e0), "../../icons/IconSettings.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e1), "../../icons/IconSettingsBold.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e2), "../../icons/IconSize.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e3), "../../icons/IconSliderKnobs.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e4), "../../icons/IconSortIdle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e5), "../../icons/IconSparkle.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e6), "../../icons/IconSpotlio.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e7), "../../icons/IconStar.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e8), "../../icons/IconStatistics.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.e9), "../../icons/IconStopChat.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ea), "../../icons/IconStreamLineHub.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.eb), "../../icons/IconStreamLineHubNewLogo.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ec), "../../icons/IconSun.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ed), "../../icons/IconSwap.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ee), "../../icons/IconText.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ef), "../../icons/IconTextThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.eg), "../../icons/IconThinDocument.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.eh), "../../icons/IconThinFile.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ei), "../../icons/IconThumbsDown.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ej), "../../icons/IconTick.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ek), "../../icons/IconUser.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.el), "../../icons/IconVerticalDots.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.em), "../../icons/IconVideoCamera.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.en), "../../icons/IconWarningOctal.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.eo), "../../icons/IconX.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.ep), "../../icons/IconZip.vue": () => import("./icons-GUqeJvd4.js").then((n) => n.eq) }), `../../icons/${_}.vue`, 4).catch(() => ({ template: "<div></div>" }))
|
|
3614
|
-
) : null : null,
|
|
3619
|
+
) : null : null, $ = M(() => b(e.trailingIcon)), V = M(() => {
|
|
3615
3620
|
switch (o.value) {
|
|
3616
3621
|
case "amex":
|
|
3617
3622
|
return 17;
|
|
@@ -3626,11 +3631,11 @@ const ue = new $s(
|
|
|
3626
3631
|
"freddy-plugins-input-field--focused": e.state === "focused",
|
|
3627
3632
|
"freddy-plugins-input-field--disabled": e.state === "disabled",
|
|
3628
3633
|
"freddy-plugins-input-field--with-leading": e.showCardIcon && o.value !== "unknown",
|
|
3629
|
-
"freddy-plugins-input-field--with-trailing":
|
|
3634
|
+
"freddy-plugins-input-field--with-trailing": !!$.value
|
|
3630
3635
|
})), T = (_) => {
|
|
3631
3636
|
const n = _.replace(/\D/g, "");
|
|
3632
3637
|
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";
|
|
3633
|
-
},
|
|
3638
|
+
}, k = (_) => {
|
|
3634
3639
|
const n = _.replace(/\D/g, "");
|
|
3635
3640
|
return T(n) === "amex" ? n.replace(/(\d{4})(\d{6})(\d{5})/, "$1 $2 $3").replace(/(\d{4})(\d{1,6})/, "$1 $2").substring(0, 17) : n.replace(/(\d{4})(\d{4})(\d{4})(\d{4})/, "$1 $2 $3 $4").replace(/(\d{4})(\d{4})(\d{4})/, "$1 $2 $3").replace(/(\d{4})(\d{4})/, "$1 $2").replace(/(\d{4})/, "$1").substring(0, 19);
|
|
3636
3641
|
}, I = (_) => {
|
|
@@ -3644,10 +3649,10 @@ const ue = new $s(
|
|
|
3644
3649
|
return n[_] || n.unknown;
|
|
3645
3650
|
}, C = (_) => {
|
|
3646
3651
|
const W = _.target.value;
|
|
3647
|
-
u.value = W.replace(/\D/g, ""), d.value =
|
|
3652
|
+
u.value = W.replace(/\D/g, ""), d.value = k(W);
|
|
3648
3653
|
const X = T(u.value);
|
|
3649
3654
|
X !== o.value && (o.value = X, i("card-type-detected", X)), i("update:modelValue", d.value), i("update:cardNumber", u.value), i("input", d.value);
|
|
3650
|
-
},
|
|
3655
|
+
}, P = (_) => {
|
|
3651
3656
|
[8, 9, 27, 13, 46].indexOf(_.keyCode) !== -1 || // Allow Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X
|
|
3652
3657
|
_.keyCode === 65 && _.ctrlKey === !0 || _.keyCode === 67 && _.ctrlKey === !0 || _.keyCode === 86 && _.ctrlKey === !0 || _.keyCode === 88 && _.ctrlKey === !0 || // Allow home, end, left, right
|
|
3653
3658
|
_.keyCode >= 35 && _.keyCode <= 39 || (_.shiftKey || _.keyCode < 48 || _.keyCode > 57) && (_.keyCode < 96 || _.keyCode > 105) && _.preventDefault();
|
|
@@ -3657,18 +3662,18 @@ const ue = new $s(
|
|
|
3657
3662
|
i("blur", _);
|
|
3658
3663
|
}, p = (_) => {
|
|
3659
3664
|
i("trailing-icon-click", _);
|
|
3660
|
-
},
|
|
3665
|
+
}, S = () => {
|
|
3661
3666
|
var _;
|
|
3662
3667
|
(_ = l.value) == null || _.focus();
|
|
3663
3668
|
};
|
|
3664
3669
|
return G(
|
|
3665
3670
|
() => e.cardNumber,
|
|
3666
3671
|
(_) => {
|
|
3667
|
-
_ !== u.value && (u.value = _, d.value =
|
|
3672
|
+
_ !== u.value && (u.value = _, d.value = k(_), o.value = T(_));
|
|
3668
3673
|
},
|
|
3669
3674
|
{ immediate: !0 }
|
|
3670
3675
|
), m({
|
|
3671
|
-
focus:
|
|
3676
|
+
focus: S,
|
|
3672
3677
|
inputRef: l
|
|
3673
3678
|
}), (_, n) => (c(), E(ke, se(g.value, {
|
|
3674
3679
|
onFocus: h,
|
|
@@ -3685,8 +3690,8 @@ const ue = new $s(
|
|
|
3685
3690
|
src: I(o.value),
|
|
3686
3691
|
alt: `${o.value} card`,
|
|
3687
3692
|
class: "freddy-plugins-card-icon-image"
|
|
3688
|
-
}, null, 8,
|
|
3689
|
-
], 2)) :
|
|
3693
|
+
}, null, 8, pa)
|
|
3694
|
+
], 2)) : w("", !0),
|
|
3690
3695
|
Q(a("input", {
|
|
3691
3696
|
id: (W = r.value) == null ? void 0 : W.inputId,
|
|
3692
3697
|
ref_key: "inputRef",
|
|
@@ -3700,23 +3705,23 @@ const ue = new $s(
|
|
|
3700
3705
|
maxlength: V.value,
|
|
3701
3706
|
class: F(["freddy-plugins-input-field freddy-plugins-card-input-field", v.value]),
|
|
3702
3707
|
onInput: C,
|
|
3703
|
-
onKeydown:
|
|
3708
|
+
onKeydown: P,
|
|
3704
3709
|
onFocus: h,
|
|
3705
3710
|
onBlur: t
|
|
3706
|
-
}, null, 42,
|
|
3711
|
+
}, null, 42, ha), [
|
|
3707
3712
|
[Y, d.value]
|
|
3708
3713
|
]),
|
|
3709
|
-
|
|
3714
|
+
$.value ? (c(), E(K($.value), {
|
|
3710
3715
|
key: 1,
|
|
3711
3716
|
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${_.colorStyle}`]),
|
|
3712
3717
|
onClick: p
|
|
3713
|
-
}, null, 8, ["class"])) :
|
|
3718
|
+
}, null, 8, ["class"])) : w("", !0)
|
|
3714
3719
|
];
|
|
3715
3720
|
}),
|
|
3716
3721
|
_: 1
|
|
3717
3722
|
}, 16));
|
|
3718
3723
|
}
|
|
3719
|
-
}),
|
|
3724
|
+
}), ma = /* @__PURE__ */ H(fa, [["__scopeId", "data-v-3a6797a1"]]), va = ["id", "type", "placeholder", "disabled", "readonly"], ya = /* @__PURE__ */ N({
|
|
3720
3725
|
__name: "DefaultInput",
|
|
3721
3726
|
props: {
|
|
3722
3727
|
placeholder: { default: "" },
|
|
@@ -3737,7 +3742,7 @@ const ue = new $s(
|
|
|
3737
3742
|
},
|
|
3738
3743
|
emits: ["update:modelValue", "input", "focus", "blur", "keydown", "leading-icon-click", "trailing-icon-click"],
|
|
3739
3744
|
setup(y, { expose: m, emit: s }) {
|
|
3740
|
-
const e = y, i = s, l =
|
|
3745
|
+
const e = y, i = s, l = A(null), r = A(null), u = A(e.modelValue || ""), d = M(() => ({
|
|
3741
3746
|
size: e.size,
|
|
3742
3747
|
colorStyle: e.colorStyle,
|
|
3743
3748
|
state: e.state,
|
|
@@ -3748,14 +3753,14 @@ const ue = new $s(
|
|
|
3748
3753
|
disabled: e.disabled
|
|
3749
3754
|
})), o = (h) => h ? typeof h == "object" ? h : typeof h == "string" ? R(
|
|
3750
3755
|
() => be(/* @__PURE__ */ Object.assign({ "../../icons/IconAddChatPop.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.c5), "../../icons/IconAddFileSystem.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.c6), "../../icons/IconAddPeople.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.c7), "../../icons/IconAitronos.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.c8), "../../icons/IconApple.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.c9), "../../icons/IconApplePay.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ca), "../../icons/IconAppsGrid.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cb), "../../icons/IconArrowDown.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cc), "../../icons/IconArrowLeft.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cd), "../../icons/IconArrowUp.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ce), "../../icons/IconBadgeCheck.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cf), "../../icons/IconBroom.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cg), "../../icons/IconBuildings.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ch), "../../icons/IconCalendarWithTickInside.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ci), "../../icons/IconCallNotAllowed.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cj), "../../icons/IconCardPay.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ck), "../../icons/IconCaution.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cl), "../../icons/IconChangeLog.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cm), "../../icons/IconCheckCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cn), "../../icons/IconCheckInCircle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.co), "../../icons/IconCheckRounded.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cp), "../../icons/IconChevronDown.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cq), "../../icons/IconChevronLeft.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cr), "../../icons/IconChevronRight.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cs), "../../icons/IconChevronUp.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ct), "../../icons/IconCircledCheck.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cu), "../../icons/IconClock.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cv), "../../icons/IconClosedEnvelope.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cw), "../../icons/IconCloudUpload.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cx), "../../icons/IconConnectorConfluence.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cy), "../../icons/IconConnectorFigma.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cz), "../../icons/IconConnectorFreshDesk.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cA), "../../icons/IconConnectorGitHub.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cB), "../../icons/IconConnectorJira.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cC), "../../icons/IconConnectorLinear.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cD), "../../icons/IconConnectorNotion.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cE), "../../icons/IconConnectorSlack.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cF), "../../icons/IconConnectorZapier.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cG), "../../icons/IconCopy.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cH), "../../icons/IconCross.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cI), "../../icons/IconCrossCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cJ), "../../icons/IconCrossInCircle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cK), "../../icons/IconCurrentTick.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cL), "../../icons/IconDataUpload.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cM), "../../icons/IconDelete.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cN), "../../icons/IconDeleteFillRed.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cO), "../../icons/IconDialingPhone.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cP), "../../icons/IconDisabledAlert.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cQ), "../../icons/IconDocumentation.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cR), "../../icons/IconDownload.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cS), "../../icons/IconDribbble.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cT), "../../icons/IconDropdownArrow.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cU), "../../icons/IconEdit.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cV), "../../icons/IconEditLinePath.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cW), "../../icons/IconEllipse.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cX), "../../icons/IconExcelThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cY), "../../icons/IconExpand.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.cZ), "../../icons/IconEye.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.c_), "../../icons/IconFacebook.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.c$), "../../icons/IconFigma.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d0), "../../icons/IconFile.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d1), "../../icons/IconFileSystem.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d2), "../../icons/IconFileUpload.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d3), "../../icons/IconFilter.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d4), "../../icons/IconFolder.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d5), "../../icons/IconFreddyHub.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d6), "../../icons/IconFreddyHubLogo.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d7), "../../icons/IconFreddyHubNewLogo.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d8), "../../icons/IconFreddyHubTitle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d9), "../../icons/IconFreddySmall.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.da), "../../icons/IconGlobExpand.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.db), "../../icons/IconGlobe.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dc), "../../icons/IconGoogle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dd), "../../icons/IconHollowCircle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.de), "../../icons/IconHome.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.df), "../../icons/IconInfoRounded.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dg), "../../icons/IconInvalidInvoice.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dh), "../../icons/IconInvoice.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.di), "../../icons/IconInvoiceSwitch.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dj), "../../icons/IconLapTableBottom.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dk), "../../icons/IconLense.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dl), "../../icons/IconLightCross.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dm), "../../icons/IconLink04.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dn), "../../icons/IconLoadingError.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dp), "../../icons/IconLoadingOrg.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dq), "../../icons/IconLocationWithCircleIn.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dr), "../../icons/IconLock.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ds), "../../icons/IconMarketPlace.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dt), "../../icons/IconMaximize.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.du), "../../icons/IconMicrophone.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dv), "../../icons/IconMutedMicrophone.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dw), "../../icons/IconNewNotification.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dx), "../../icons/IconNewTab.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dy), "../../icons/IconNotification.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dz), "../../icons/IconOpenBook.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dA), "../../icons/IconPaperAirPlane.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dB), "../../icons/IconPauseCircle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dC), "../../icons/IconPdfThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dD), "../../icons/IconPenEdit.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dE), "../../icons/IconPencil.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dF), "../../icons/IconPeopleHub.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dG), "../../icons/IconPersonCircle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dH), "../../icons/IconPits.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dI), "../../icons/IconPlay.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dJ), "../../icons/IconPlus.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dK), "../../icons/IconPolygonDown.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dL), "../../icons/IconPresentation.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dM), "../../icons/IconProgressBase.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dN), "../../icons/IconProgressComplete.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dO), "../../icons/IconProgressGoing.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dP), "../../icons/IconPurpose.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dQ), "../../icons/IconPurseCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dR), "../../icons/IconQuestion.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dS), "../../icons/IconRadio.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dT), "../../icons/IconRadioFill.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dU), "../../icons/IconRefresh.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dV), "../../icons/IconRevertedTriangle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dW), "../../icons/IconRobotScreen.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dX), "../../icons/IconRoundTick.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dY), "../../icons/IconSearch.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.dZ), "../../icons/IconSearchOptimised.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d_), "../../icons/IconSectionHide.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.d$), "../../icons/IconSend.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e0), "../../icons/IconSettings.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e1), "../../icons/IconSettingsBold.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e2), "../../icons/IconSize.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e3), "../../icons/IconSliderKnobs.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e4), "../../icons/IconSortIdle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e5), "../../icons/IconSparkle.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e6), "../../icons/IconSpotlio.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e7), "../../icons/IconStar.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e8), "../../icons/IconStatistics.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.e9), "../../icons/IconStopChat.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ea), "../../icons/IconStreamLineHub.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.eb), "../../icons/IconStreamLineHubNewLogo.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ec), "../../icons/IconSun.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ed), "../../icons/IconSwap.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ee), "../../icons/IconText.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ef), "../../icons/IconTextThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.eg), "../../icons/IconThinDocument.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.eh), "../../icons/IconThinFile.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ei), "../../icons/IconThumbsDown.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ej), "../../icons/IconTick.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ek), "../../icons/IconUser.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.el), "../../icons/IconVerticalDots.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.em), "../../icons/IconVideoCamera.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.en), "../../icons/IconWarningOctal.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.eo), "../../icons/IconX.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.ep), "../../icons/IconZip.vue": () => import("./icons-GUqeJvd4.js").then((t) => t.eq) }), `../../icons/${h}.vue`, 4).catch(() => ({ template: "<div></div>" }))
|
|
3751
|
-
) : null : null, g = M(() => o(e.leadingIcon)),
|
|
3756
|
+
) : null : null, g = M(() => o(e.leadingIcon)), b = M(() => o(e.trailingIcon)), $ = M(() => ({
|
|
3752
3757
|
[`freddy-plugins-input-field--${e.size}`]: !0,
|
|
3753
3758
|
[`freddy-plugins-input-field--${e.colorStyle}`]: !0,
|
|
3754
3759
|
"freddy-plugins-input-field--destructive": e.destructive,
|
|
3755
3760
|
"freddy-plugins-input-field--focused": e.state === "focused",
|
|
3756
3761
|
"freddy-plugins-input-field--disabled": e.state === "disabled",
|
|
3757
3762
|
"freddy-plugins-input-field--with-leading": !!g.value,
|
|
3758
|
-
"freddy-plugins-input-field--with-trailing": !!
|
|
3763
|
+
"freddy-plugins-input-field--with-trailing": !!b.value
|
|
3759
3764
|
})), V = (h) => {
|
|
3760
3765
|
const t = h.target;
|
|
3761
3766
|
u.value = t.value, i("update:modelValue", t.value), i("input", t.value);
|
|
@@ -3763,13 +3768,13 @@ const ue = new $s(
|
|
|
3763
3768
|
i("focus", h);
|
|
3764
3769
|
}, T = (h) => {
|
|
3765
3770
|
i("blur", h);
|
|
3766
|
-
},
|
|
3771
|
+
}, k = (h) => {
|
|
3767
3772
|
i("keydown", h);
|
|
3768
3773
|
}, I = (h) => {
|
|
3769
3774
|
i("leading-icon-click", h);
|
|
3770
3775
|
}, C = (h) => {
|
|
3771
3776
|
i("trailing-icon-click", h);
|
|
3772
|
-
},
|
|
3777
|
+
}, P = () => {
|
|
3773
3778
|
var h;
|
|
3774
3779
|
(h = l.value) == null || h.focus();
|
|
3775
3780
|
};
|
|
@@ -3779,7 +3784,7 @@ const ue = new $s(
|
|
|
3779
3784
|
h !== void 0 && (u.value = h);
|
|
3780
3785
|
}
|
|
3781
3786
|
), m({
|
|
3782
|
-
focus:
|
|
3787
|
+
focus: P,
|
|
3783
3788
|
inputRef: l
|
|
3784
3789
|
}), (h, t) => (c(), E(ke, se(d.value, {
|
|
3785
3790
|
onFocus: v,
|
|
@@ -3792,23 +3797,23 @@ const ue = new $s(
|
|
|
3792
3797
|
key: 0,
|
|
3793
3798
|
class: F(["freddy-plugins-input-leading-icon", `freddy-plugins-input-leading-icon--${h.colorStyle}`]),
|
|
3794
3799
|
onClick: I
|
|
3795
|
-
}, null, 8, ["class"])) :
|
|
3800
|
+
}, null, 8, ["class"])) : w("", !0),
|
|
3796
3801
|
Q(a("input", {
|
|
3797
3802
|
id: (p = r.value) == null ? void 0 : p.inputId,
|
|
3798
3803
|
ref_key: "inputRef",
|
|
3799
3804
|
ref: l,
|
|
3800
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3805
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => u.value = S),
|
|
3801
3806
|
type: h.inputType,
|
|
3802
3807
|
placeholder: h.placeholder,
|
|
3803
3808
|
disabled: h.disabled,
|
|
3804
3809
|
readonly: h.readonly,
|
|
3805
|
-
class: F(["freddy-plugins-input-field",
|
|
3810
|
+
class: F(["freddy-plugins-input-field", $.value]),
|
|
3806
3811
|
onInput: V,
|
|
3807
3812
|
onFocus: v,
|
|
3808
3813
|
onBlur: T,
|
|
3809
|
-
onKeydown:
|
|
3810
|
-
}, null, 42,
|
|
3811
|
-
[
|
|
3814
|
+
onKeydown: k
|
|
3815
|
+
}, null, 42, va), [
|
|
3816
|
+
[Ke, u.value]
|
|
3812
3817
|
]),
|
|
3813
3818
|
h.trailingIcon === "IconQuestion" && h.tooltipText ? (c(), E(re, {
|
|
3814
3819
|
key: 1,
|
|
@@ -3816,25 +3821,25 @@ const ue = new $s(
|
|
|
3816
3821
|
placement: "top"
|
|
3817
3822
|
}, {
|
|
3818
3823
|
default: Z(() => [
|
|
3819
|
-
(c(), E(K(
|
|
3824
|
+
(c(), E(K(b.value), {
|
|
3820
3825
|
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${h.colorStyle}`])
|
|
3821
3826
|
}, null, 8, ["class"]))
|
|
3822
3827
|
]),
|
|
3823
3828
|
_: 1
|
|
3824
|
-
}, 8, ["text"])) :
|
|
3829
|
+
}, 8, ["text"])) : b.value ? (c(), E(K(b.value), {
|
|
3825
3830
|
key: 2,
|
|
3826
3831
|
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${h.colorStyle}`]),
|
|
3827
3832
|
onClick: C
|
|
3828
|
-
}, null, 8, ["class"])) :
|
|
3833
|
+
}, null, 8, ["class"])) : w("", !0)
|
|
3829
3834
|
];
|
|
3830
3835
|
}),
|
|
3831
3836
|
_: 1
|
|
3832
3837
|
}, 16));
|
|
3833
3838
|
}
|
|
3834
|
-
}),
|
|
3839
|
+
}), ga = /* @__PURE__ */ H(ya, [["__scopeId", "data-v-e865b202"]]), Ia = { class: "freddy-plugins-figma-dropdown-text" }, ba = ["onClick"], ka = { class: "freddy-plugins-country-flag" }, _a = { class: "freddy-plugins-country-name" }, Ca = { class: "freddy-plugins-country-dial-code" }, wa = ["id", "placeholder", "disabled", "readonly"], Sa = {
|
|
3835
3840
|
key: 0,
|
|
3836
3841
|
class: "freddy-plugins-figma-help-icon"
|
|
3837
|
-
},
|
|
3842
|
+
}, Ta = /* @__PURE__ */ N({
|
|
3838
3843
|
__name: "PhoneInput",
|
|
3839
3844
|
props: {
|
|
3840
3845
|
countryCode: { default: "US" },
|
|
@@ -3887,7 +3892,7 @@ const ue = new $s(
|
|
|
3887
3892
|
},
|
|
3888
3893
|
emits: ["update:countryCode", "update:phoneNumber", "country-change", "update:modelValue", "input", "focus", "blur", "keydown", "leading-icon-click", "trailing-icon-click", "trailing-button-click", "update:currency", "update:amount", "currency-change", "update:protocol", "update:url", "protocol-change", "update:cardNumber", "card-type-detected", "update:tags", "tag-added", "tag-removed", "max-tags-reached", "copy-success", "copy-error"],
|
|
3889
3894
|
setup(y, { expose: m, emit: s }) {
|
|
3890
|
-
const e = y, i = s, l =
|
|
3895
|
+
const e = y, i = s, l = A(null), r = A(null), u = A(e.phoneNumber || ""), d = A(!1), o = A(e.countryCode || "US"), g = [
|
|
3891
3896
|
{ code: "US", name: "United States", flag: "🇺🇸", dialCode: "+1" },
|
|
3892
3897
|
{ code: "GB", name: "United Kingdom", flag: "🇬🇧", dialCode: "+44" },
|
|
3893
3898
|
{ code: "CA", name: "Canada", flag: "🇨🇦", dialCode: "+1" },
|
|
@@ -3898,7 +3903,7 @@ const ue = new $s(
|
|
|
3898
3903
|
{ code: "ES", name: "Spain", flag: "🇪🇸", dialCode: "+34" },
|
|
3899
3904
|
{ code: "JP", name: "Japan", flag: "🇯🇵", dialCode: "+81" },
|
|
3900
3905
|
{ code: "IN", name: "India", flag: "🇮🇳", dialCode: "+91" }
|
|
3901
|
-
],
|
|
3906
|
+
], b = M(() => ({
|
|
3902
3907
|
size: e.size,
|
|
3903
3908
|
colorStyle: e.colorStyle,
|
|
3904
3909
|
state: e.state,
|
|
@@ -3907,26 +3912,26 @@ const ue = new $s(
|
|
|
3907
3912
|
label: e.label,
|
|
3908
3913
|
hintText: e.hintText,
|
|
3909
3914
|
disabled: e.disabled
|
|
3910
|
-
})),
|
|
3915
|
+
})), $ = M(
|
|
3911
3916
|
() => e.countryOptions || g
|
|
3912
|
-
), V = M(() =>
|
|
3917
|
+
), V = M(() => $.value.find(
|
|
3913
3918
|
(t) => t.code === o.value
|
|
3914
|
-
) ||
|
|
3919
|
+
) || $.value[0]), v = () => {
|
|
3915
3920
|
e.disabled || (d.value = !d.value);
|
|
3916
3921
|
}, T = (t) => {
|
|
3917
3922
|
o.value = t.code, i("update:countryCode", t.code), i("country-change", t);
|
|
3918
|
-
const p = u.value.replace(/^\+\d+\s*/, ""),
|
|
3919
|
-
u.value =
|
|
3920
|
-
},
|
|
3923
|
+
const p = u.value.replace(/^\+\d+\s*/, ""), S = `${t.dialCode} ${p}`.trim();
|
|
3924
|
+
u.value = S, i("update:phoneNumber", S), i("update:modelValue", S), d.value = !1;
|
|
3925
|
+
}, k = (t) => {
|
|
3921
3926
|
const p = t.target;
|
|
3922
3927
|
u.value = p.value;
|
|
3923
|
-
const
|
|
3924
|
-
i("update:modelValue",
|
|
3928
|
+
const S = `${V.value.dialCode} ${p.value}`;
|
|
3929
|
+
i("update:modelValue", S), i("update:phoneNumber", p.value), i("input", S);
|
|
3925
3930
|
}, I = (t) => {
|
|
3926
3931
|
i("focus", t);
|
|
3927
3932
|
}, C = (t) => {
|
|
3928
3933
|
i("blur", t);
|
|
3929
|
-
},
|
|
3934
|
+
}, P = () => {
|
|
3930
3935
|
var t;
|
|
3931
3936
|
(t = l.value) == null || t.focus();
|
|
3932
3937
|
}, h = (t) => {
|
|
@@ -3945,44 +3950,44 @@ const ue = new $s(
|
|
|
3945
3950
|
}
|
|
3946
3951
|
), me(() => {
|
|
3947
3952
|
document.addEventListener("click", h);
|
|
3948
|
-
}),
|
|
3953
|
+
}), De(() => {
|
|
3949
3954
|
document.removeEventListener("click", h);
|
|
3950
3955
|
}), m({
|
|
3951
|
-
focus:
|
|
3956
|
+
focus: P,
|
|
3952
3957
|
inputRef: l
|
|
3953
|
-
}), (t, p) => (c(), E(ke, se(
|
|
3958
|
+
}), (t, p) => (c(), E(ke, se(b.value, {
|
|
3954
3959
|
onFocus: I,
|
|
3955
3960
|
onBlur: C
|
|
3956
3961
|
}), {
|
|
3957
3962
|
default: Z(() => {
|
|
3958
|
-
var
|
|
3963
|
+
var S;
|
|
3959
3964
|
return [
|
|
3960
3965
|
a("div", {
|
|
3961
3966
|
class: F(["freddy-plugins-figma-dropdown", `freddy-plugins-figma-dropdown--${t.colorStyle}`]),
|
|
3962
3967
|
onClick: v
|
|
3963
3968
|
}, [
|
|
3964
|
-
a("span",
|
|
3965
|
-
L(
|
|
3969
|
+
a("span", Ia, B(V.value.code), 1),
|
|
3970
|
+
L(D(ae), { class: "freddy-plugins-figma-dropdown-icon" })
|
|
3966
3971
|
], 2),
|
|
3967
3972
|
d.value ? (c(), f("div", {
|
|
3968
3973
|
key: 0,
|
|
3969
3974
|
class: F(["freddy-plugins-country-options-dropdown", `freddy-plugins-country-options-dropdown--${t.colorStyle}`])
|
|
3970
3975
|
}, [
|
|
3971
|
-
(c(!0), f(O, null,
|
|
3976
|
+
(c(!0), f(O, null, j($.value, (_) => (c(), f("div", {
|
|
3972
3977
|
key: _.code,
|
|
3973
3978
|
class: F(["freddy-plugins-country-option", `freddy-plugins-country-option--${t.colorStyle}`]),
|
|
3974
3979
|
onClick: (n) => T(_)
|
|
3975
3980
|
}, [
|
|
3976
|
-
a("span",
|
|
3977
|
-
a("span",
|
|
3978
|
-
a("span",
|
|
3979
|
-
], 10,
|
|
3980
|
-
], 2)) :
|
|
3981
|
+
a("span", ka, B(_.flag), 1),
|
|
3982
|
+
a("span", _a, B(_.name), 1),
|
|
3983
|
+
a("span", Ca, B(_.dialCode), 1)
|
|
3984
|
+
], 10, ba))), 128))
|
|
3985
|
+
], 2)) : w("", !0),
|
|
3981
3986
|
a("div", {
|
|
3982
3987
|
class: F(["freddy-plugins-figma-text-input", `freddy-plugins-figma-text-input--${t.colorStyle}`])
|
|
3983
3988
|
}, [
|
|
3984
3989
|
Q(a("input", {
|
|
3985
|
-
id: (
|
|
3990
|
+
id: (S = r.value) == null ? void 0 : S.inputId,
|
|
3986
3991
|
ref_key: "inputRef",
|
|
3987
3992
|
ref: l,
|
|
3988
3993
|
"onUpdate:modelValue": p[0] || (p[0] = (_) => u.value = _),
|
|
@@ -3991,34 +3996,34 @@ const ue = new $s(
|
|
|
3991
3996
|
disabled: t.disabled,
|
|
3992
3997
|
readonly: t.readonly,
|
|
3993
3998
|
class: "freddy-plugins-figma-phone-input",
|
|
3994
|
-
onInput:
|
|
3999
|
+
onInput: k,
|
|
3995
4000
|
onFocus: I,
|
|
3996
4001
|
onBlur: C
|
|
3997
|
-
}, null, 40,
|
|
4002
|
+
}, null, 40, wa), [
|
|
3998
4003
|
[Y, u.value]
|
|
3999
4004
|
]),
|
|
4000
|
-
t.trailingIcon === "IconQuestion" ? (c(), f("div",
|
|
4005
|
+
t.trailingIcon === "IconQuestion" ? (c(), f("div", Sa, [
|
|
4001
4006
|
t.tooltipText ? (c(), E(re, {
|
|
4002
4007
|
key: 0,
|
|
4003
4008
|
text: t.tooltipText,
|
|
4004
4009
|
placement: "top"
|
|
4005
4010
|
}, {
|
|
4006
4011
|
default: Z(() => [
|
|
4007
|
-
L(
|
|
4012
|
+
L(D(fe), { class: "freddy-plugins-figma-help-icon-svg" })
|
|
4008
4013
|
]),
|
|
4009
4014
|
_: 1
|
|
4010
|
-
}, 8, ["text"])) : (c(), E(
|
|
4015
|
+
}, 8, ["text"])) : (c(), E(D(fe), {
|
|
4011
4016
|
key: 1,
|
|
4012
4017
|
class: "freddy-plugins-figma-help-icon-svg"
|
|
4013
4018
|
}))
|
|
4014
|
-
])) :
|
|
4019
|
+
])) : w("", !0)
|
|
4015
4020
|
], 2)
|
|
4016
4021
|
];
|
|
4017
4022
|
}),
|
|
4018
4023
|
_: 1
|
|
4019
4024
|
}, 16));
|
|
4020
4025
|
}
|
|
4021
|
-
}),
|
|
4026
|
+
}), $a = /* @__PURE__ */ H(Ta, [["__scopeId", "data-v-20d005c2"]]), xa = /* @__PURE__ */ N({
|
|
4022
4027
|
__name: "InputField",
|
|
4023
4028
|
props: {
|
|
4024
4029
|
size: { default: "md" },
|
|
@@ -4125,9 +4130,9 @@ const ue = new $s(
|
|
|
4125
4130
|
e("input", h);
|
|
4126
4131
|
}, g = (h) => {
|
|
4127
4132
|
e("focus", h);
|
|
4128
|
-
},
|
|
4133
|
+
}, b = (h) => {
|
|
4129
4134
|
e("blur", h);
|
|
4130
|
-
},
|
|
4135
|
+
}, $ = (h) => {
|
|
4131
4136
|
e("keydown", h);
|
|
4132
4137
|
}, V = (h) => {
|
|
4133
4138
|
e("leading-icon-click", h);
|
|
@@ -4135,42 +4140,42 @@ const ue = new $s(
|
|
|
4135
4140
|
e("trailing-icon-click", h);
|
|
4136
4141
|
}, T = (h) => {
|
|
4137
4142
|
e("update:countryCode", h);
|
|
4138
|
-
},
|
|
4143
|
+
}, k = (h) => {
|
|
4139
4144
|
e("update:phoneNumber", h);
|
|
4140
4145
|
}, I = (h) => {
|
|
4141
4146
|
e("country-change", h);
|
|
4142
4147
|
}, C = (h) => {
|
|
4143
4148
|
e("update:cardNumber", h);
|
|
4144
|
-
},
|
|
4149
|
+
}, P = (h) => {
|
|
4145
4150
|
e("card-type-detected", h);
|
|
4146
4151
|
};
|
|
4147
|
-
return (h, t) => i.value === "phone" ? (c(), E(
|
|
4152
|
+
return (h, t) => i.value === "phone" ? (c(), E($a, se({ key: 0 }, l.value, {
|
|
4148
4153
|
"onUpdate:modelValue": d,
|
|
4149
4154
|
"onUpdate:countryCode": T,
|
|
4150
|
-
"onUpdate:phoneNumber":
|
|
4155
|
+
"onUpdate:phoneNumber": k,
|
|
4151
4156
|
onCountryChange: I,
|
|
4152
4157
|
onInput: o,
|
|
4153
4158
|
onFocus: g,
|
|
4154
|
-
onBlur:
|
|
4155
|
-
}), null, 16)) : i.value === "card" ? (c(), E(
|
|
4159
|
+
onBlur: b
|
|
4160
|
+
}), null, 16)) : i.value === "card" ? (c(), E(ma, se({ key: 1 }, r.value, {
|
|
4156
4161
|
"onUpdate:modelValue": d,
|
|
4157
4162
|
"onUpdate:cardNumber": C,
|
|
4158
|
-
onCardTypeDetected:
|
|
4163
|
+
onCardTypeDetected: P,
|
|
4159
4164
|
onInput: o,
|
|
4160
4165
|
onFocus: g,
|
|
4161
|
-
onBlur:
|
|
4166
|
+
onBlur: b,
|
|
4162
4167
|
onTrailingIconClick: v
|
|
4163
|
-
}), null, 16)) : (c(), E(
|
|
4168
|
+
}), null, 16)) : (c(), E(ga, se({ key: 2 }, u.value, {
|
|
4164
4169
|
"onUpdate:modelValue": d,
|
|
4165
4170
|
onInput: o,
|
|
4166
4171
|
onFocus: g,
|
|
4167
|
-
onBlur:
|
|
4168
|
-
onKeydown:
|
|
4172
|
+
onBlur: b,
|
|
4173
|
+
onKeydown: $,
|
|
4169
4174
|
onLeadingIconClick: V,
|
|
4170
4175
|
onTrailingIconClick: v
|
|
4171
4176
|
}), null, 16));
|
|
4172
4177
|
}
|
|
4173
|
-
}),
|
|
4178
|
+
}), pc = /* @__PURE__ */ H(xa, [["__scopeId", "data-v-5a761e6c"]]), Pa = {
|
|
4174
4179
|
name: "ModalBox",
|
|
4175
4180
|
props: {
|
|
4176
4181
|
isVisible: {
|
|
@@ -4187,38 +4192,38 @@ const ue = new $s(
|
|
|
4187
4192
|
this.$emit("close");
|
|
4188
4193
|
}
|
|
4189
4194
|
}
|
|
4190
|
-
},
|
|
4195
|
+
}, Aa = {
|
|
4191
4196
|
key: 0,
|
|
4192
4197
|
class: "fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"
|
|
4193
|
-
},
|
|
4194
|
-
function
|
|
4198
|
+
}, Da = { class: "flex justify-center items-center" }, Fa = { class: "freddy-plugins-modal-header" }, Ba = { class: "freddy-plugins-modal-body" }, Ma = { class: "freddy-plugins-modal-footer" };
|
|
4199
|
+
function La(y, m, s, e, i, l) {
|
|
4195
4200
|
return c(), E(le, { name: "modal" }, {
|
|
4196
4201
|
default: Z(() => [
|
|
4197
|
-
s.isVisible ? (c(), f("div",
|
|
4198
|
-
a("div",
|
|
4202
|
+
s.isVisible ? (c(), f("div", Aa, [
|
|
4203
|
+
a("div", Da, [
|
|
4199
4204
|
a("div", {
|
|
4200
4205
|
class: F({
|
|
4201
4206
|
"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white": s.largeModel,
|
|
4202
4207
|
"freddy-plugins-modal-container-large": s.largeModel
|
|
4203
4208
|
})
|
|
4204
4209
|
}, [
|
|
4205
|
-
a("div",
|
|
4210
|
+
a("div", Fa, [
|
|
4206
4211
|
q(y.$slots, "header")
|
|
4207
4212
|
]),
|
|
4208
|
-
a("div",
|
|
4213
|
+
a("div", Ba, [
|
|
4209
4214
|
q(y.$slots, "body")
|
|
4210
4215
|
]),
|
|
4211
|
-
a("div",
|
|
4216
|
+
a("div", Ma, [
|
|
4212
4217
|
q(y.$slots, "footer")
|
|
4213
4218
|
])
|
|
4214
4219
|
], 2)
|
|
4215
4220
|
])
|
|
4216
|
-
])) :
|
|
4221
|
+
])) : w("", !0)
|
|
4217
4222
|
]),
|
|
4218
4223
|
_: 3
|
|
4219
4224
|
});
|
|
4220
4225
|
}
|
|
4221
|
-
const
|
|
4226
|
+
const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
4222
4227
|
__name: "InstructionsModal",
|
|
4223
4228
|
props: {
|
|
4224
4229
|
isVisible: {
|
|
@@ -4227,7 +4232,7 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4227
4232
|
}
|
|
4228
4233
|
},
|
|
4229
4234
|
setup(y) {
|
|
4230
|
-
return (m, s) => (c(), E(
|
|
4235
|
+
return (m, s) => (c(), E(Va, { isVisible: y.isVisible }, {
|
|
4231
4236
|
header: Z(() => [...s[0] || (s[0] = [
|
|
4232
4237
|
a("h2", null, "Instructions", -1)
|
|
4233
4238
|
])]),
|
|
@@ -4237,7 +4242,7 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4237
4242
|
_: 1
|
|
4238
4243
|
}, 8, ["isVisible"]));
|
|
4239
4244
|
}
|
|
4240
|
-
}),
|
|
4245
|
+
}), Ea = ["value", "placeholder"], Na = /* @__PURE__ */ N({
|
|
4241
4246
|
__name: "InstructiontextArea",
|
|
4242
4247
|
props: {
|
|
4243
4248
|
inputValue: {},
|
|
@@ -4258,9 +4263,9 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4258
4263
|
onInput: l,
|
|
4259
4264
|
class: "instruction-text-input",
|
|
4260
4265
|
"aria-label": "Instruction input"
|
|
4261
|
-
}, null, 44,
|
|
4266
|
+
}, null, 44, Ea));
|
|
4262
4267
|
}
|
|
4263
|
-
}),
|
|
4268
|
+
}), fc = /* @__PURE__ */ H(Na, [["__scopeId", "data-v-d4000e78"]]), Ra = { class: "freddy-plugins-modal-header" }, Oa = { class: "freddy-plugins-modal-body" }, mc = /* @__PURE__ */ N({
|
|
4264
4269
|
__name: "ModalOverlay",
|
|
4265
4270
|
props: {
|
|
4266
4271
|
modalTitle: {},
|
|
@@ -4283,10 +4288,10 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4283
4288
|
}, [
|
|
4284
4289
|
a("div", {
|
|
4285
4290
|
class: "freddy-plugins-modal-content",
|
|
4286
|
-
onClick: u[0] || (u[0] =
|
|
4291
|
+
onClick: u[0] || (u[0] = U(() => {
|
|
4287
4292
|
}, ["stop"]))
|
|
4288
4293
|
}, [
|
|
4289
|
-
a("header",
|
|
4294
|
+
a("header", Ra, [
|
|
4290
4295
|
a("h2", {
|
|
4291
4296
|
class: F(["freddy-plugins-modal-title", r.headerClass])
|
|
4292
4297
|
}, B(r.modalTitle), 3),
|
|
@@ -4294,16 +4299,16 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4294
4299
|
class: "freddy-plugins-modal-close",
|
|
4295
4300
|
onClick: i
|
|
4296
4301
|
}, [
|
|
4297
|
-
L(
|
|
4302
|
+
L(Me, { class: "freddy-plugins-modal-close-icon" })
|
|
4298
4303
|
])
|
|
4299
4304
|
]),
|
|
4300
|
-
a("div",
|
|
4305
|
+
a("div", Oa, [
|
|
4301
4306
|
q(r.$slots, "content")
|
|
4302
4307
|
])
|
|
4303
4308
|
])
|
|
4304
4309
|
]));
|
|
4305
4310
|
}
|
|
4306
|
-
}),
|
|
4311
|
+
}), za = /* @__PURE__ */ N({
|
|
4307
4312
|
__name: "Spinner",
|
|
4308
4313
|
props: {
|
|
4309
4314
|
customClass: {}
|
|
@@ -4313,7 +4318,7 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4313
4318
|
class: F(["freddy-plugin-spinner", m.customClass])
|
|
4314
4319
|
}, null, 2));
|
|
4315
4320
|
}
|
|
4316
|
-
}),
|
|
4321
|
+
}), Ha = ["placeholder", "maxlength"], _e = /* @__PURE__ */ N({
|
|
4317
4322
|
inheritAttrs: !1,
|
|
4318
4323
|
__name: "SearchInput",
|
|
4319
4324
|
props: {
|
|
@@ -4324,7 +4329,7 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4324
4329
|
},
|
|
4325
4330
|
emits: ["update:searchInput", "clear"],
|
|
4326
4331
|
setup(y, { emit: m }) {
|
|
4327
|
-
const s =
|
|
4332
|
+
const s = Ge(), e = A(null), i = A(null), l = A(null), r = m, u = () => {
|
|
4328
4333
|
var g;
|
|
4329
4334
|
(g = i.value) == null || g.focus();
|
|
4330
4335
|
}, d = () => {
|
|
@@ -4332,50 +4337,50 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4332
4337
|
}, o = () => {
|
|
4333
4338
|
r("clear");
|
|
4334
4339
|
};
|
|
4335
|
-
return (g,
|
|
4336
|
-
var
|
|
4340
|
+
return (g, b) => {
|
|
4341
|
+
var $;
|
|
4337
4342
|
return c(), f("div", {
|
|
4338
4343
|
ref_key: "dropdownRef",
|
|
4339
4344
|
ref: l,
|
|
4340
|
-
class: F(["freddy-search-wrapper",
|
|
4345
|
+
class: F(["freddy-search-wrapper", D(s).class]),
|
|
4341
4346
|
onClick: u
|
|
4342
4347
|
}, [
|
|
4343
|
-
L(
|
|
4348
|
+
L(D(Ct), { class: "freddy-search-icon" }),
|
|
4344
4349
|
Q(a("input", {
|
|
4345
4350
|
type: "text",
|
|
4346
4351
|
id: "search-input",
|
|
4347
4352
|
class: "freddy-search-input",
|
|
4348
4353
|
ref_key: "searchInput",
|
|
4349
4354
|
ref: i,
|
|
4350
|
-
"onUpdate:modelValue":
|
|
4355
|
+
"onUpdate:modelValue": b[0] || (b[0] = (V) => e.value = V),
|
|
4351
4356
|
onInput: d,
|
|
4352
4357
|
placeholder: g.placeholder,
|
|
4353
4358
|
maxlength: g.maxCharLimit
|
|
4354
|
-
}, null, 40,
|
|
4359
|
+
}, null, 40, Ha), [
|
|
4355
4360
|
[Y, e.value]
|
|
4356
4361
|
]),
|
|
4357
|
-
g.showLoaderForSearch ? (c(), E(
|
|
4362
|
+
g.showLoaderForSearch ? (c(), E(za, {
|
|
4358
4363
|
key: 0,
|
|
4359
4364
|
class: "freddy-search-spinner"
|
|
4360
|
-
})) :
|
|
4361
|
-
g.showCloseButton && !g.showLoaderForSearch && ((
|
|
4365
|
+
})) : w("", !0),
|
|
4366
|
+
g.showCloseButton && !g.showLoaderForSearch && (($ = e.value) != null && $.length) ? (c(), E(D(ee), {
|
|
4362
4367
|
key: 1,
|
|
4363
4368
|
class: "freddy-search-close",
|
|
4364
4369
|
onClick: o
|
|
4365
|
-
})) :
|
|
4370
|
+
})) : w("", !0)
|
|
4366
4371
|
], 2);
|
|
4367
4372
|
};
|
|
4368
4373
|
}
|
|
4369
|
-
}),
|
|
4374
|
+
}), Ua = { class: "model-dropdown-selected-content" }, ja = ["src", "alt"], Ka = { class: "model-dropdown-placeholder" }, Ga = {
|
|
4370
4375
|
key: 0,
|
|
4371
4376
|
class: "model-dropdown-menu"
|
|
4372
|
-
},
|
|
4377
|
+
}, Za = {
|
|
4373
4378
|
key: 0,
|
|
4374
4379
|
class: "model-dropdown-search"
|
|
4375
|
-
},
|
|
4380
|
+
}, qa = { class: "model-dropdown-options" }, Wa = ["onClick"], Ja = ["src", "alt"], Qa = { class: "model-dropdown-option-value" }, Ya = {
|
|
4376
4381
|
key: 0,
|
|
4377
4382
|
class: "model-dropdown-no-options"
|
|
4378
|
-
},
|
|
4383
|
+
}, Xa = /* @__PURE__ */ N({
|
|
4379
4384
|
__name: "ModelDropdown",
|
|
4380
4385
|
props: {
|
|
4381
4386
|
options: {},
|
|
@@ -4386,24 +4391,24 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4386
4391
|
},
|
|
4387
4392
|
emits: ["select"],
|
|
4388
4393
|
setup(y, { emit: m }) {
|
|
4389
|
-
const s = y, e = m, i =
|
|
4390
|
-
(
|
|
4394
|
+
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
|
+
($) => $.value.toLowerCase().includes(l.value.toLowerCase())
|
|
4391
4396
|
)), d = () => {
|
|
4392
4397
|
i.value = !i.value, i.value || (l.value = "");
|
|
4393
4398
|
}, o = () => {
|
|
4394
4399
|
i.value = !1, l.value = "";
|
|
4395
|
-
}, g = (
|
|
4396
|
-
r.value =
|
|
4397
|
-
},
|
|
4398
|
-
|
|
4400
|
+
}, g = ($) => {
|
|
4401
|
+
r.value = $, e("select", $), o();
|
|
4402
|
+
}, b = ($) => {
|
|
4403
|
+
$.target.closest(".model-dropdown-wrapper") || o();
|
|
4399
4404
|
};
|
|
4400
|
-
return G(i, (
|
|
4401
|
-
|
|
4402
|
-
document.addEventListener("click",
|
|
4403
|
-
}, 0) : document.removeEventListener("click",
|
|
4404
|
-
}),
|
|
4405
|
-
document.removeEventListener("click",
|
|
4406
|
-
}), (
|
|
4405
|
+
return G(i, ($) => {
|
|
4406
|
+
$ ? setTimeout(() => {
|
|
4407
|
+
document.addEventListener("click", b);
|
|
4408
|
+
}, 0) : document.removeEventListener("click", b);
|
|
4409
|
+
}), De(() => {
|
|
4410
|
+
document.removeEventListener("click", b);
|
|
4411
|
+
}), ($, V) => {
|
|
4407
4412
|
var v, T;
|
|
4408
4413
|
return c(), f("div", {
|
|
4409
4414
|
class: "model-dropdown-wrapper",
|
|
@@ -4411,21 +4416,21 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4411
4416
|
}, [
|
|
4412
4417
|
a("div", {
|
|
4413
4418
|
class: F(["model-dropdown-trigger", [
|
|
4414
|
-
`model-dropdown-trigger--${
|
|
4419
|
+
`model-dropdown-trigger--${$.size}`,
|
|
4415
4420
|
{ "model-dropdown-trigger--open": i.value }
|
|
4416
4421
|
]]),
|
|
4417
4422
|
onClick: d
|
|
4418
4423
|
}, [
|
|
4419
|
-
a("div",
|
|
4424
|
+
a("div", Ua, [
|
|
4420
4425
|
(v = r.value) != null && v.imageSrc ? (c(), f("img", {
|
|
4421
4426
|
key: 0,
|
|
4422
4427
|
src: r.value.imageSrc,
|
|
4423
4428
|
alt: r.value.value,
|
|
4424
4429
|
class: "model-dropdown-selected-image"
|
|
4425
|
-
}, null, 8, ja)) :
|
|
4426
|
-
a("span",
|
|
4430
|
+
}, null, 8, ja)) : w("", !0),
|
|
4431
|
+
a("span", Ka, B(((T = r.value) == null ? void 0 : T.value) || $.modelPlaceholder), 1)
|
|
4427
4432
|
]),
|
|
4428
|
-
i.value ? (c(), E(
|
|
4433
|
+
i.value ? (c(), E(Be, {
|
|
4429
4434
|
key: 1,
|
|
4430
4435
|
class: "model-dropdown-chevron"
|
|
4431
4436
|
})) : (c(), E(ae, {
|
|
@@ -4433,41 +4438,41 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4433
4438
|
class: "model-dropdown-chevron"
|
|
4434
4439
|
}))
|
|
4435
4440
|
], 2),
|
|
4436
|
-
i.value ? (c(), f("div",
|
|
4437
|
-
|
|
4441
|
+
i.value ? (c(), f("div", Ga, [
|
|
4442
|
+
$.searchable ? (c(), f("div", Za, [
|
|
4438
4443
|
L(_e, {
|
|
4439
4444
|
modelValue: l.value,
|
|
4440
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
4441
|
-
placeholder:
|
|
4445
|
+
"onUpdate:modelValue": V[0] || (V[0] = (k) => l.value = k),
|
|
4446
|
+
placeholder: $.searchPlaceholder,
|
|
4442
4447
|
showCloseButton: !0
|
|
4443
4448
|
}, null, 8, ["modelValue", "placeholder"])
|
|
4444
|
-
])) :
|
|
4445
|
-
a("ul",
|
|
4446
|
-
(c(!0), f(O, null,
|
|
4449
|
+
])) : w("", !0),
|
|
4450
|
+
a("ul", qa, [
|
|
4451
|
+
(c(!0), f(O, null, j(u.value, (k) => {
|
|
4447
4452
|
var I;
|
|
4448
4453
|
return c(), f("li", {
|
|
4449
|
-
key:
|
|
4454
|
+
key: k.id,
|
|
4450
4455
|
class: F(["model-dropdown-option", {
|
|
4451
|
-
"model-dropdown-option--selected": ((I = r.value) == null ? void 0 : I.id) ===
|
|
4456
|
+
"model-dropdown-option--selected": ((I = r.value) == null ? void 0 : I.id) === k.id
|
|
4452
4457
|
}]),
|
|
4453
|
-
onClick: (C) => g(
|
|
4458
|
+
onClick: (C) => g(k)
|
|
4454
4459
|
}, [
|
|
4455
|
-
|
|
4460
|
+
k.imageSrc ? (c(), f("img", {
|
|
4456
4461
|
key: 0,
|
|
4457
|
-
src:
|
|
4458
|
-
alt:
|
|
4462
|
+
src: k.imageSrc,
|
|
4463
|
+
alt: k.value,
|
|
4459
4464
|
class: "model-dropdown-option-image"
|
|
4460
|
-
}, null, 8,
|
|
4461
|
-
a("span",
|
|
4462
|
-
], 10,
|
|
4465
|
+
}, null, 8, Ja)) : w("", !0),
|
|
4466
|
+
a("span", Qa, B(k.value), 1)
|
|
4467
|
+
], 10, Wa);
|
|
4463
4468
|
}), 128)),
|
|
4464
|
-
u.value.length === 0 ? (c(), f("li",
|
|
4469
|
+
u.value.length === 0 ? (c(), f("li", Ya, " No providers found ")) : w("", !0)
|
|
4465
4470
|
])
|
|
4466
|
-
])) :
|
|
4471
|
+
])) : w("", !0)
|
|
4467
4472
|
], 32);
|
|
4468
4473
|
};
|
|
4469
4474
|
}
|
|
4470
|
-
}),
|
|
4475
|
+
}), vc = /* @__PURE__ */ H(Xa, [["__scopeId", "data-v-75f8685b"]]), yc = /* @__PURE__ */ N({
|
|
4471
4476
|
__name: "OutputModeModal",
|
|
4472
4477
|
props: {
|
|
4473
4478
|
isVisible: {
|
|
@@ -4517,11 +4522,11 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4517
4522
|
onToggleAI: i
|
|
4518
4523
|
}, null, 8, ["is-visible", "initial-content", "openai-api-key", "openai-model", "openai-organization"]));
|
|
4519
4524
|
}
|
|
4520
|
-
}),
|
|
4525
|
+
}), el = {
|
|
4521
4526
|
key: 0,
|
|
4522
4527
|
class: "freddy-pagination-nav",
|
|
4523
4528
|
"aria-label": "Pagination"
|
|
4524
|
-
},
|
|
4529
|
+
}, tl = ["disabled"], ol = { class: "freddy-pagination-dynamic-container" }, nl = ["onClick", "disabled"], sl = ["disabled"], gc = /* @__PURE__ */ N({
|
|
4525
4530
|
__name: "Pagination",
|
|
4526
4531
|
props: {
|
|
4527
4532
|
totalItems: { type: Number, required: !0, default: 0 },
|
|
@@ -4546,30 +4551,30 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4546
4551
|
function r(u) {
|
|
4547
4552
|
u === "..." || u === s.currentPage || typeof u == "number" && u >= 1 && u <= i.value && e("update:currentPage", u);
|
|
4548
4553
|
}
|
|
4549
|
-
return (u, d) => i.value > 0 ? (c(), f("nav",
|
|
4554
|
+
return (u, d) => i.value > 0 ? (c(), f("nav", el, [
|
|
4550
4555
|
a("button", {
|
|
4551
4556
|
class: F(["freddy-pagination-end-button", { "freddy-pagination-hover-enabled": y.currentPage !== 1 }]),
|
|
4552
4557
|
onClick: d[0] || (d[0] = (o) => r(y.currentPage - 1)),
|
|
4553
4558
|
disabled: y.currentPage === 1
|
|
4554
|
-
}, " Previous ", 10,
|
|
4555
|
-
a("div",
|
|
4556
|
-
(c(!0), f(O, null,
|
|
4559
|
+
}, " Previous ", 10, tl),
|
|
4560
|
+
a("div", ol, [
|
|
4561
|
+
(c(!0), f(O, null, j(l.value, (o) => (c(), f("button", {
|
|
4557
4562
|
key: String(o),
|
|
4558
4563
|
class: F(["freddy-pagination-number-button", { active: o === y.currentPage }]),
|
|
4559
4564
|
onClick: (g) => r(o),
|
|
4560
4565
|
disabled: o === "..." || o === y.currentPage
|
|
4561
|
-
}, B(o), 11,
|
|
4566
|
+
}, B(o), 11, nl))), 128)),
|
|
4562
4567
|
a("button", {
|
|
4563
4568
|
class: F(["freddy-pagination-end-button", {
|
|
4564
4569
|
"freddy-pagination-hover-enabled": y.currentPage !== i.value
|
|
4565
4570
|
}]),
|
|
4566
4571
|
onClick: d[1] || (d[1] = (o) => r(y.currentPage + 1)),
|
|
4567
4572
|
disabled: y.currentPage === i.value || i.value === 0
|
|
4568
|
-
}, " Next ", 10,
|
|
4573
|
+
}, " Next ", 10, sl)
|
|
4569
4574
|
])
|
|
4570
|
-
])) :
|
|
4575
|
+
])) : w("", !0);
|
|
4571
4576
|
}
|
|
4572
|
-
}),
|
|
4577
|
+
}), il = ["disabled"], Ic = /* @__PURE__ */ N({
|
|
4573
4578
|
__name: "SendButton",
|
|
4574
4579
|
props: {
|
|
4575
4580
|
disabled: { type: Boolean },
|
|
@@ -4583,33 +4588,33 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4583
4588
|
onClick: s[0] || (s[0] = (e) => m.$emit("click"))
|
|
4584
4589
|
}, [
|
|
4585
4590
|
(c(), E(K(wt), { class: "chat-bar-send-icon" }))
|
|
4586
|
-
], 10,
|
|
4591
|
+
], 10, il));
|
|
4587
4592
|
}
|
|
4588
|
-
}),
|
|
4593
|
+
}), al = {
|
|
4589
4594
|
key: 0,
|
|
4590
4595
|
class: "skeleton-card"
|
|
4591
|
-
},
|
|
4596
|
+
}, ll = {
|
|
4592
4597
|
key: 0,
|
|
4593
4598
|
class: "skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"
|
|
4594
|
-
},
|
|
4599
|
+
}, cl = {
|
|
4595
4600
|
key: 1,
|
|
4596
4601
|
class: "skeleton-paragraph"
|
|
4597
|
-
},
|
|
4602
|
+
}, rl = {
|
|
4598
4603
|
key: 0,
|
|
4599
4604
|
class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"
|
|
4600
|
-
},
|
|
4605
|
+
}, dl = {
|
|
4601
4606
|
key: 2,
|
|
4602
4607
|
class: "skeleton-single-box"
|
|
4603
|
-
},
|
|
4608
|
+
}, ul = {
|
|
4604
4609
|
key: 0,
|
|
4605
4610
|
class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"
|
|
4606
|
-
},
|
|
4611
|
+
}, pl = {
|
|
4607
4612
|
key: 3,
|
|
4608
4613
|
class: "skeleton-table"
|
|
4609
|
-
},
|
|
4614
|
+
}, hl = {
|
|
4610
4615
|
key: 0,
|
|
4611
4616
|
class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"
|
|
4612
|
-
},
|
|
4617
|
+
}, fl = { class: "table-full" }, bc = /* @__PURE__ */ N({
|
|
4613
4618
|
__name: "SkeletonLoader",
|
|
4614
4619
|
props: {
|
|
4615
4620
|
type: {},
|
|
@@ -4618,24 +4623,24 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4618
4623
|
},
|
|
4619
4624
|
setup(y) {
|
|
4620
4625
|
const m = y, { type: s, hasHeader: e = !1, count: i = 5 } = m;
|
|
4621
|
-
return (l, r) =>
|
|
4622
|
-
|
|
4626
|
+
return (l, r) => D(s) === "card" ? (c(), f("div", al, [
|
|
4627
|
+
D(e) ? (c(), f("div", ll)) : w("", !0),
|
|
4623
4628
|
r[0] || (r[0] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4" }, null, -1)),
|
|
4624
4629
|
r[1] || (r[1] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1)),
|
|
4625
4630
|
r[2] || (r[2] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6" }, null, -1))
|
|
4626
|
-
])) :
|
|
4627
|
-
|
|
4631
|
+
])) : D(s) === "paragraph" ? (c(), f("div", cl, [
|
|
4632
|
+
D(e) ? (c(), f("div", rl)) : w("", !0),
|
|
4628
4633
|
r[3] || (r[3] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1)),
|
|
4629
4634
|
r[4] || (r[4] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6" }, null, -1)),
|
|
4630
4635
|
r[5] || (r[5] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4" }, null, -1))
|
|
4631
|
-
])) :
|
|
4632
|
-
|
|
4636
|
+
])) : D(s) === "single-box" ? (c(), f("div", dl, [
|
|
4637
|
+
D(e) ? (c(), f("div", ul)) : w("", !0),
|
|
4633
4638
|
r[6] || (r[6] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1))
|
|
4634
|
-
])) :
|
|
4635
|
-
|
|
4636
|
-
a("table",
|
|
4639
|
+
])) : D(s) === "table" ? (c(), f("div", pl, [
|
|
4640
|
+
D(e) ? (c(), f("div", hl)) : w("", !0),
|
|
4641
|
+
a("table", fl, [
|
|
4637
4642
|
a("tbody", null, [
|
|
4638
|
-
(c(!0), f(O, null,
|
|
4643
|
+
(c(!0), f(O, null, j(D(i), (u) => (c(), f("tr", { key: u }, [...r[7] || (r[7] = [
|
|
4639
4644
|
a("td", { class: "td-padding" }, [
|
|
4640
4645
|
a("div", { class: "skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full" })
|
|
4641
4646
|
], -1),
|
|
@@ -4645,21 +4650,21 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4645
4650
|
])]))), 128))
|
|
4646
4651
|
])
|
|
4647
4652
|
])
|
|
4648
|
-
])) :
|
|
4653
|
+
])) : w("", !0);
|
|
4649
4654
|
}
|
|
4650
|
-
}),
|
|
4655
|
+
}), ml = { class: "freddy-plugins-slider-container" }, vl = {
|
|
4651
4656
|
key: 0,
|
|
4652
4657
|
class: "freddy-plugins-slider-header"
|
|
4653
|
-
},
|
|
4658
|
+
}, yl = {
|
|
4654
4659
|
key: 0,
|
|
4655
4660
|
class: "freddy-plugins-slider-label-section"
|
|
4656
|
-
},
|
|
4661
|
+
}, gl = { class: "freddy-plugins-slider-label" }, Il = {
|
|
4657
4662
|
key: 1,
|
|
4658
4663
|
class: "freddy-plugins-slider-value-badge"
|
|
4659
|
-
},
|
|
4664
|
+
}, bl = ["tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-label"], kl = {
|
|
4660
4665
|
key: 1,
|
|
4661
4666
|
class: "freddy-plugins-slider-hint"
|
|
4662
|
-
},
|
|
4667
|
+
}, _l = /* @__PURE__ */ N({
|
|
4663
4668
|
__name: "Slider",
|
|
4664
4669
|
props: {
|
|
4665
4670
|
modelValue: {},
|
|
@@ -4677,109 +4682,109 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4677
4682
|
},
|
|
4678
4683
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
4679
4684
|
setup(y, { emit: m }) {
|
|
4680
|
-
const s = y, e = m, i =
|
|
4685
|
+
const s = y, e = m, i = A(!1), l = A(null), r = M(() => {
|
|
4681
4686
|
var I;
|
|
4682
|
-
const
|
|
4683
|
-
return
|
|
4687
|
+
const k = ((I = s.step.toString().split(".")[1]) == null ? void 0 : I.length) || 0;
|
|
4688
|
+
return k > 0 ? s.modelValue.toFixed(k) : Math.round(s.modelValue);
|
|
4684
4689
|
}), u = M(() => {
|
|
4685
|
-
const
|
|
4686
|
-
return Math.min(100, Math.max(0, I /
|
|
4687
|
-
}), d = M(() => u.value), o = (
|
|
4688
|
-
const I = Math.round(
|
|
4690
|
+
const k = s.max - s.min, I = s.modelValue - s.min;
|
|
4691
|
+
return Math.min(100, Math.max(0, I / k * 100));
|
|
4692
|
+
}), d = M(() => u.value), o = (k) => {
|
|
4693
|
+
const I = Math.round(k / s.step) * s.step;
|
|
4689
4694
|
return Math.min(s.max, Math.max(s.min, I));
|
|
4690
|
-
}, g = (
|
|
4695
|
+
}, g = (k) => {
|
|
4691
4696
|
if (!l.value) return s.modelValue;
|
|
4692
4697
|
const I = l.value.getBoundingClientRect(), C = Math.max(
|
|
4693
4698
|
0,
|
|
4694
|
-
Math.min(1, (
|
|
4695
|
-
),
|
|
4699
|
+
Math.min(1, (k - I.left) / I.width)
|
|
4700
|
+
), P = s.min + C * (s.max - s.min), h = Math.round(P / s.step) * s.step;
|
|
4696
4701
|
return Math.min(s.max, Math.max(s.min, h));
|
|
4697
|
-
},
|
|
4698
|
-
const I = o(
|
|
4702
|
+
}, b = (k) => {
|
|
4703
|
+
const I = o(k);
|
|
4699
4704
|
I !== s.modelValue && e("update:modelValue", I);
|
|
4700
|
-
},
|
|
4705
|
+
}, $ = (k) => {
|
|
4701
4706
|
if (s.disabled) return;
|
|
4702
|
-
|
|
4703
|
-
const I = (
|
|
4707
|
+
k.preventDefault(), k.stopPropagation(), i.value = !0;
|
|
4708
|
+
const I = (P) => {
|
|
4704
4709
|
if (!i.value) return;
|
|
4705
|
-
|
|
4706
|
-
const h = g(
|
|
4707
|
-
|
|
4710
|
+
P.preventDefault();
|
|
4711
|
+
const h = g(P.clientX);
|
|
4712
|
+
b(h);
|
|
4708
4713
|
}, C = () => {
|
|
4709
4714
|
i.value = !1, document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", C);
|
|
4710
4715
|
};
|
|
4711
4716
|
document.addEventListener("mousemove", I), document.addEventListener("mouseup", C);
|
|
4712
|
-
}, V = (
|
|
4717
|
+
}, V = (k) => {
|
|
4713
4718
|
if (s.disabled) return;
|
|
4714
|
-
|
|
4715
|
-
const I = (
|
|
4716
|
-
!i.value || !
|
|
4719
|
+
k.preventDefault(), k.stopPropagation(), i.value = !0;
|
|
4720
|
+
const I = (P) => {
|
|
4721
|
+
!i.value || !P.touches[0] || (P.preventDefault(), b(g(P.touches[0].clientX)));
|
|
4717
4722
|
}, C = () => {
|
|
4718
4723
|
i.value = !1, document.removeEventListener("touchmove", I), document.removeEventListener("touchend", C);
|
|
4719
4724
|
};
|
|
4720
4725
|
document.addEventListener("touchmove", I), document.addEventListener("touchend", C);
|
|
4721
|
-
}, v = (
|
|
4726
|
+
}, v = (k) => {
|
|
4722
4727
|
if (s.disabled || i.value) return;
|
|
4723
|
-
|
|
4724
|
-
const I = g(
|
|
4725
|
-
|
|
4726
|
-
}, T = (
|
|
4728
|
+
k.preventDefault(), k.stopPropagation();
|
|
4729
|
+
const I = g(k.clientX);
|
|
4730
|
+
b(I);
|
|
4731
|
+
}, T = (k) => {
|
|
4727
4732
|
if (s.disabled) return;
|
|
4728
4733
|
let I = s.modelValue;
|
|
4729
|
-
switch (
|
|
4734
|
+
switch (k.key) {
|
|
4730
4735
|
case "ArrowLeft":
|
|
4731
4736
|
case "ArrowDown":
|
|
4732
|
-
|
|
4737
|
+
k.preventDefault(), I = s.modelValue - s.step;
|
|
4733
4738
|
break;
|
|
4734
4739
|
case "ArrowRight":
|
|
4735
4740
|
case "ArrowUp":
|
|
4736
|
-
|
|
4741
|
+
k.preventDefault(), I = s.modelValue + s.step;
|
|
4737
4742
|
break;
|
|
4738
4743
|
case "Home":
|
|
4739
|
-
|
|
4744
|
+
k.preventDefault(), I = s.min;
|
|
4740
4745
|
break;
|
|
4741
4746
|
case "End":
|
|
4742
|
-
|
|
4747
|
+
k.preventDefault(), I = s.max;
|
|
4743
4748
|
break;
|
|
4744
4749
|
case "PageDown":
|
|
4745
|
-
|
|
4750
|
+
k.preventDefault(), I = s.modelValue - s.step * 10;
|
|
4746
4751
|
break;
|
|
4747
4752
|
case "PageUp":
|
|
4748
|
-
|
|
4753
|
+
k.preventDefault(), I = s.modelValue + s.step * 10;
|
|
4749
4754
|
break;
|
|
4750
4755
|
default:
|
|
4751
4756
|
return;
|
|
4752
4757
|
}
|
|
4753
|
-
|
|
4758
|
+
b(I);
|
|
4754
4759
|
};
|
|
4755
|
-
return (
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
a("span",
|
|
4759
|
-
|
|
4760
|
+
return (k, I) => (c(), f("div", ml, [
|
|
4761
|
+
k.label || k.showValue ? (c(), f("div", vl, [
|
|
4762
|
+
k.label ? (c(), f("div", yl, [
|
|
4763
|
+
a("span", gl, B(k.label), 1),
|
|
4764
|
+
k.tooltip ? (c(), E(re, {
|
|
4760
4765
|
key: 0,
|
|
4761
|
-
text:
|
|
4762
|
-
placement:
|
|
4766
|
+
text: k.tooltip,
|
|
4767
|
+
placement: k.tooltipPlacement
|
|
4763
4768
|
}, {
|
|
4764
4769
|
default: Z(() => [
|
|
4765
4770
|
L(ce, { class: "freddy-plugins-slider-tooltip-icon" })
|
|
4766
4771
|
]),
|
|
4767
4772
|
_: 1
|
|
4768
|
-
}, 8, ["text", "placement"])) :
|
|
4769
|
-
])) :
|
|
4770
|
-
|
|
4771
|
-
])) :
|
|
4773
|
+
}, 8, ["text", "placement"])) : w("", !0)
|
|
4774
|
+
])) : w("", !0),
|
|
4775
|
+
k.showValue ? (c(), f("div", Il, B(r.value), 1)) : w("", !0)
|
|
4776
|
+
])) : w("", !0),
|
|
4772
4777
|
a("div", {
|
|
4773
|
-
class: F(["freddy-plugins-slider-track-container", { "freddy-plugins-slider-disabled":
|
|
4778
|
+
class: F(["freddy-plugins-slider-track-container", { "freddy-plugins-slider-disabled": k.disabled }]),
|
|
4774
4779
|
onClick: v,
|
|
4775
4780
|
onKeydown: T,
|
|
4776
|
-
tabindex:
|
|
4781
|
+
tabindex: k.disabled ? -1 : 0,
|
|
4777
4782
|
role: "slider",
|
|
4778
|
-
"aria-valuemin":
|
|
4779
|
-
"aria-valuemax":
|
|
4780
|
-
"aria-valuenow":
|
|
4781
|
-
"aria-disabled":
|
|
4782
|
-
"aria-label":
|
|
4783
|
+
"aria-valuemin": k.min,
|
|
4784
|
+
"aria-valuemax": k.max,
|
|
4785
|
+
"aria-valuenow": k.modelValue,
|
|
4786
|
+
"aria-disabled": k.disabled,
|
|
4787
|
+
"aria-label": k.label || "Slider"
|
|
4783
4788
|
}, [
|
|
4784
4789
|
a("div", {
|
|
4785
4790
|
ref_key: "sliderTrack",
|
|
@@ -4793,30 +4798,30 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4793
4798
|
a("div", {
|
|
4794
4799
|
class: F(["freddy-plugins-slider-thumb", {
|
|
4795
4800
|
"freddy-plugins-slider-thumb-dragging": i.value,
|
|
4796
|
-
"freddy-plugins-slider-thumb-disabled":
|
|
4801
|
+
"freddy-plugins-slider-thumb-disabled": k.disabled
|
|
4797
4802
|
}]),
|
|
4798
4803
|
style: oe({ left: d.value + "%" }),
|
|
4799
|
-
onMousedown:
|
|
4804
|
+
onMousedown: $,
|
|
4800
4805
|
onTouchstart: V
|
|
4801
4806
|
}, null, 38)
|
|
4802
|
-
], 42,
|
|
4803
|
-
|
|
4807
|
+
], 42, bl),
|
|
4808
|
+
k.hint ? (c(), f("p", kl, B(k.hint), 1)) : w("", !0)
|
|
4804
4809
|
]));
|
|
4805
4810
|
}
|
|
4806
|
-
}),
|
|
4811
|
+
}), kc = /* @__PURE__ */ H(_l, [["__scopeId", "data-v-156893ff"]]), Cl = { class: "freddy-plugins-snackbar-content" }, wl = { class: "freddy-plugins-snackbar-left" }, Sl = { class: "freddy-plugins-snackbar-text" }, Tl = ["innerHTML"], $l = ["innerHTML"], xl = ["onClick"], _c = /* @__PURE__ */ N({
|
|
4807
4812
|
__name: "SnackBar",
|
|
4808
4813
|
setup(y) {
|
|
4809
4814
|
ne();
|
|
4810
4815
|
const { snackQueue: m } = St(), s = (l) => {
|
|
4811
4816
|
switch (l) {
|
|
4812
4817
|
case "success":
|
|
4813
|
-
return
|
|
4818
|
+
return $e;
|
|
4814
4819
|
case "danger":
|
|
4815
4820
|
return ee;
|
|
4816
4821
|
case "info":
|
|
4817
4822
|
return ce;
|
|
4818
4823
|
default:
|
|
4819
|
-
return
|
|
4824
|
+
return $e;
|
|
4820
4825
|
}
|
|
4821
4826
|
}, e = M(() => {
|
|
4822
4827
|
const l = m.value[m.value.length - 1];
|
|
@@ -4835,12 +4840,12 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4835
4840
|
return (l, r) => (c(), f("div", {
|
|
4836
4841
|
class: F(["freddy-plugins-snackbar-container", `freddy-plugins-snackbar-container--${e.value}`])
|
|
4837
4842
|
}, [
|
|
4838
|
-
(c(!0), f(O, null,
|
|
4843
|
+
(c(!0), f(O, null, j(D(m), (u, d) => (c(), f("div", {
|
|
4839
4844
|
key: d,
|
|
4840
4845
|
class: F(["freddy-plugins-snackbar", `freddy-plugins-snackbar--${u.toastType}`])
|
|
4841
4846
|
}, [
|
|
4842
|
-
a("div",
|
|
4843
|
-
a("div",
|
|
4847
|
+
a("div", Cl, [
|
|
4848
|
+
a("div", wl, [
|
|
4844
4849
|
(c(), E(K(s(u.toastType)), {
|
|
4845
4850
|
class: F(["freddy-plugins-snackbar-icon", [
|
|
4846
4851
|
u.toastType === "info" && "freddy-plugins-snackbar-icon--info",
|
|
@@ -4848,40 +4853,40 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4848
4853
|
u.toastType === "success" && "freddy-plugins-snackbar-icon--success"
|
|
4849
4854
|
]])
|
|
4850
4855
|
}, null, 8, ["class"])),
|
|
4851
|
-
a("div",
|
|
4856
|
+
a("div", Sl, [
|
|
4852
4857
|
a("p", {
|
|
4853
4858
|
class: "freddy-plugins-snackbar-title",
|
|
4854
4859
|
innerHTML: u.title
|
|
4855
|
-
}, null, 8,
|
|
4860
|
+
}, null, 8, Tl),
|
|
4856
4861
|
a("p", {
|
|
4857
4862
|
class: "freddy-plugins-snackbar-message",
|
|
4858
4863
|
innerHTML: u.message
|
|
4859
|
-
}, null, 8,
|
|
4864
|
+
}, null, 8, $l)
|
|
4860
4865
|
])
|
|
4861
4866
|
]),
|
|
4862
4867
|
a("button", {
|
|
4863
4868
|
class: "freddy-plugins-snackbar-close-btn",
|
|
4864
4869
|
onClick: (o) => i(d)
|
|
4865
4870
|
}, [
|
|
4866
|
-
L(
|
|
4867
|
-
], 8,
|
|
4871
|
+
L(Me, { class: "freddy-plugins-snackbar-close-icon" })
|
|
4872
|
+
], 8, xl)
|
|
4868
4873
|
])
|
|
4869
4874
|
], 2))), 128))
|
|
4870
4875
|
], 2));
|
|
4871
4876
|
}
|
|
4872
|
-
}),
|
|
4877
|
+
}), Pl = { class: "freddy-plugins-switch-slot__header" }, Al = {
|
|
4873
4878
|
key: 0,
|
|
4874
4879
|
class: "freddy-plugins-switch-slot__label-section"
|
|
4875
|
-
},
|
|
4880
|
+
}, Dl = {
|
|
4876
4881
|
key: 0,
|
|
4877
4882
|
class: "freddy-plugins-switch-slot__label"
|
|
4878
|
-
},
|
|
4883
|
+
}, Fl = ["aria-checked", "tabindex", "onKeydown", "disabled"], Bl = {
|
|
4879
4884
|
key: 0,
|
|
4880
4885
|
class: "freddy-plugins-switch-slot__content"
|
|
4881
|
-
},
|
|
4886
|
+
}, Ml = {
|
|
4882
4887
|
key: 1,
|
|
4883
4888
|
class: "freddy-plugins-switch-slot__hint"
|
|
4884
|
-
},
|
|
4889
|
+
}, Ll = /* @__PURE__ */ N({
|
|
4885
4890
|
__name: "SwitchSlot",
|
|
4886
4891
|
props: {
|
|
4887
4892
|
modelValue: { type: Boolean },
|
|
@@ -4904,9 +4909,9 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4904
4909
|
"freddy-plugins-switch-slot--disabled": l.disabled
|
|
4905
4910
|
}])
|
|
4906
4911
|
}, [
|
|
4907
|
-
a("div",
|
|
4908
|
-
l.label || l.tooltip ? (c(), f("div",
|
|
4909
|
-
l.label ? (c(), f("span",
|
|
4912
|
+
a("div", Pl, [
|
|
4913
|
+
l.label || l.tooltip ? (c(), f("div", Al, [
|
|
4914
|
+
l.label ? (c(), f("span", Dl, B(l.label), 1)) : w("", !0),
|
|
4910
4915
|
l.tooltip ? (c(), E(re, {
|
|
4911
4916
|
key: 1,
|
|
4912
4917
|
text: l.tooltip,
|
|
@@ -4916,8 +4921,8 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4916
4921
|
L(ce, { class: "freddy-plugins-switch-slot__tooltip-icon" })
|
|
4917
4922
|
]),
|
|
4918
4923
|
_: 1
|
|
4919
|
-
}, 8, ["text", "placement"])) :
|
|
4920
|
-
])) :
|
|
4924
|
+
}, 8, ["text", "placement"])) : w("", !0)
|
|
4925
|
+
])) : w("", !0),
|
|
4921
4926
|
a("button", {
|
|
4922
4927
|
class: F(["freddy-plugins-switch-slot__switch", { "freddy-plugins-switch-slot__switch--on": l.modelValue }]),
|
|
4923
4928
|
"aria-checked": l.modelValue,
|
|
@@ -4925,22 +4930,22 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4925
4930
|
tabindex: l.disabled ? -1 : 0,
|
|
4926
4931
|
onClick: i,
|
|
4927
4932
|
onKeydown: [
|
|
4928
|
-
z(
|
|
4929
|
-
z(
|
|
4933
|
+
z(U(i, ["prevent"]), ["space"]),
|
|
4934
|
+
z(U(i, ["prevent"]), ["enter"])
|
|
4930
4935
|
],
|
|
4931
4936
|
disabled: l.disabled
|
|
4932
4937
|
}, [...r[0] || (r[0] = [
|
|
4933
4938
|
a("span", { class: "freddy-plugins-switch-slot__track" }, null, -1),
|
|
4934
4939
|
a("span", { class: "freddy-plugins-switch-slot__thumb" }, null, -1)
|
|
4935
|
-
])], 42,
|
|
4940
|
+
])], 42, Fl)
|
|
4936
4941
|
]),
|
|
4937
|
-
l.showSlotContent ? (c(), f("div",
|
|
4942
|
+
l.showSlotContent ? (c(), f("div", Bl, [
|
|
4938
4943
|
q(l.$slots, "content", {}, void 0, !0)
|
|
4939
|
-
])) :
|
|
4940
|
-
l.hint ? (c(), f("p",
|
|
4944
|
+
])) : w("", !0),
|
|
4945
|
+
l.hint ? (c(), f("p", Ml, B(l.hint), 1)) : w("", !0)
|
|
4941
4946
|
], 2));
|
|
4942
4947
|
}
|
|
4943
|
-
}),
|
|
4948
|
+
}), Cc = /* @__PURE__ */ H(Ll, [["__scopeId", "data-v-edc0859a"]]), Vl = { class: "freddy-plugin-nav-bar" }, El = ["onClick"], wc = /* @__PURE__ */ N({
|
|
4944
4949
|
__name: "TabList",
|
|
4945
4950
|
props: {
|
|
4946
4951
|
tabList: {},
|
|
@@ -4951,11 +4956,11 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4951
4956
|
},
|
|
4952
4957
|
emits: ["tabSwitch"],
|
|
4953
4958
|
setup(y, { emit: m }) {
|
|
4954
|
-
const s = y, e = m, i =
|
|
4959
|
+
const s = y, e = m, i = A(s.currentTab), l = (r) => {
|
|
4955
4960
|
i.value !== r.id && (i.value = r.id, e("tabSwitch", r.id));
|
|
4956
4961
|
};
|
|
4957
|
-
return (r, u) => (c(), f("div",
|
|
4958
|
-
(c(!0), f(O, null,
|
|
4962
|
+
return (r, u) => (c(), f("div", Vl, [
|
|
4963
|
+
(c(!0), f(O, null, j(r.tabList, (d, o) => (c(), f("button", {
|
|
4959
4964
|
class: "freddy-plugin-tab-list-menu-button",
|
|
4960
4965
|
key: o,
|
|
4961
4966
|
onClick: (g) => l(d)
|
|
@@ -4964,10 +4969,10 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4964
4969
|
a("span", {
|
|
4965
4970
|
class: F({ "freddy-plugin-active-tab": i.value === d.id })
|
|
4966
4971
|
}, null, 2)
|
|
4967
|
-
], 8,
|
|
4972
|
+
], 8, El))), 128))
|
|
4968
4973
|
]));
|
|
4969
4974
|
}
|
|
4970
|
-
}),
|
|
4975
|
+
}), Nl = { class: "freddy-plugins-toast-wrapper" }, Rl = { class: "freddy-plugins-toast-icon-wrapper" }, Ol = { class: "freddy-plugins-toast-message" }, zl = ["onClick"], Sc = /* @__PURE__ */ N({
|
|
4971
4976
|
__name: "ToastMessage",
|
|
4972
4977
|
setup(y) {
|
|
4973
4978
|
const { toastQueue: m } = Tt(), s = {
|
|
@@ -4988,37 +4993,37 @@ const La = /* @__PURE__ */ H(xa, [["render", Ma]]), pc = /* @__PURE__ */ N({
|
|
|
4988
4993
|
}, l = (r) => {
|
|
4989
4994
|
m.value.splice(r, 1);
|
|
4990
4995
|
};
|
|
4991
|
-
return (r, u) => (c(), f("div",
|
|
4992
|
-
(c(!0), f(O, null,
|
|
4996
|
+
return (r, u) => (c(), f("div", Nl, [
|
|
4997
|
+
(c(!0), f(O, null, j(D(m), (d, o) => (c(), f("div", {
|
|
4993
4998
|
key: o,
|
|
4994
4999
|
class: F(["freddy-plugins-toast-item", e(d.toastType)])
|
|
4995
5000
|
}, [
|
|
4996
|
-
a("div",
|
|
5001
|
+
a("div", Rl, [
|
|
4997
5002
|
(c(), E(K(i(d.toastType)), { class: "freddy-plugins-toast-icon" }))
|
|
4998
5003
|
]),
|
|
4999
|
-
a("span",
|
|
5004
|
+
a("span", Ol, B(d.message), 1),
|
|
5000
5005
|
a("button", {
|
|
5001
5006
|
class: "freddy-plugins-toast-close-button",
|
|
5002
5007
|
onClick: (g) => l(o)
|
|
5003
5008
|
}, [
|
|
5004
|
-
L(
|
|
5005
|
-
], 8,
|
|
5009
|
+
L(D(ee), { class: "freddy-plugins-toast-close-icon" })
|
|
5010
|
+
], 8, zl)
|
|
5006
5011
|
], 2))), 128))
|
|
5007
5012
|
]));
|
|
5008
5013
|
}
|
|
5009
5014
|
});
|
|
5010
|
-
function
|
|
5015
|
+
function Tc(y = {}) {
|
|
5011
5016
|
const {
|
|
5012
5017
|
logErrors: m = !0,
|
|
5013
5018
|
throwOnCritical: s = !1,
|
|
5014
5019
|
maxRetries: e = 3
|
|
5015
|
-
} = y, i =
|
|
5020
|
+
} = y, i = A([]), l = A(!1), r = A(0), u = M(() => i.value.length > 0), d = M(() => i.value[i.value.length - 1] || null), o = (T, k) => {
|
|
5016
5021
|
const I = {
|
|
5017
5022
|
message: T instanceof Error ? T.message : String(T),
|
|
5018
5023
|
stack: T instanceof Error ? T.stack : void 0,
|
|
5019
5024
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
5020
5025
|
context: {
|
|
5021
|
-
...
|
|
5026
|
+
...k,
|
|
5022
5027
|
retryCount: r.value,
|
|
5023
5028
|
userAgent: typeof navigator < "u" ? navigator.userAgent : "Unknown"
|
|
5024
5029
|
}
|
|
@@ -5026,35 +5031,35 @@ function Sc(y = {}) {
|
|
|
5026
5031
|
if (T && typeof T == "object" && "status" in T && (I.code = T.status), i.value.push(I), m && process.env.NODE_ENV, s && v(T))
|
|
5027
5032
|
throw T;
|
|
5028
5033
|
return I;
|
|
5029
|
-
}, g = async (T,
|
|
5034
|
+
}, g = async (T, k) => {
|
|
5030
5035
|
l.value = !0;
|
|
5031
5036
|
try {
|
|
5032
5037
|
const I = await T();
|
|
5033
5038
|
return r.value = 0, { data: I, error: null };
|
|
5034
5039
|
} catch (I) {
|
|
5035
|
-
return { data: null, error: o(I,
|
|
5040
|
+
return { data: null, error: o(I, k) };
|
|
5036
5041
|
} finally {
|
|
5037
5042
|
l.value = !1;
|
|
5038
5043
|
}
|
|
5039
|
-
},
|
|
5044
|
+
}, b = async (T, k) => {
|
|
5040
5045
|
let I = null;
|
|
5041
5046
|
for (let C = 1; C <= e; C++) {
|
|
5042
5047
|
r.value = C - 1;
|
|
5043
|
-
const
|
|
5044
|
-
...
|
|
5048
|
+
const P = await g(T, {
|
|
5049
|
+
...k,
|
|
5045
5050
|
attempt: C,
|
|
5046
5051
|
maxRetries: e
|
|
5047
5052
|
});
|
|
5048
|
-
if (
|
|
5049
|
-
return
|
|
5050
|
-
if (I =
|
|
5053
|
+
if (P.data !== null)
|
|
5054
|
+
return P;
|
|
5055
|
+
if (I = P.error, I != null && I.code && typeof I.code == "number" && I.code >= 400 && I.code < 500)
|
|
5051
5056
|
break;
|
|
5052
5057
|
C < e && await new Promise(
|
|
5053
5058
|
(h) => setTimeout(h, Math.pow(2, C) * 1e3)
|
|
5054
5059
|
);
|
|
5055
5060
|
}
|
|
5056
5061
|
return { data: null, error: I };
|
|
5057
|
-
},
|
|
5062
|
+
}, $ = () => {
|
|
5058
5063
|
i.value = [], r.value = 0;
|
|
5059
5064
|
}, V = (T) => {
|
|
5060
5065
|
T >= 0 && T < i.value.length && i.value.splice(T, 1);
|
|
@@ -5077,35 +5082,35 @@ function Sc(y = {}) {
|
|
|
5077
5082
|
// Methods
|
|
5078
5083
|
handleError: o,
|
|
5079
5084
|
handleAsync: g,
|
|
5080
|
-
retryAsync:
|
|
5081
|
-
clearErrors:
|
|
5085
|
+
retryAsync: b,
|
|
5086
|
+
clearErrors: $,
|
|
5082
5087
|
clearError: V,
|
|
5083
5088
|
isCriticalError: v
|
|
5084
5089
|
};
|
|
5085
5090
|
}
|
|
5086
|
-
function
|
|
5091
|
+
function $c(y = {}) {
|
|
5087
5092
|
const {
|
|
5088
5093
|
enableMetrics: m = process.env.NODE_ENV === "development",
|
|
5089
5094
|
trackMemory: s = !1,
|
|
5090
5095
|
sampleRate: e = 0.1
|
|
5091
|
-
} = y, i =
|
|
5092
|
-
!m || Math.random() > e || (l.value = !0, r.value = performance.now(),
|
|
5093
|
-
}, g = (
|
|
5096
|
+
} = y, i = A([]), l = A(!1), r = A(0), u = M(() => i.value.length === 0 ? 0 : i.value.reduce((h, t) => h + t.renderTime, 0) / i.value.length), d = M(() => i.value.length === 0 ? 0 : Math.max(...i.value.map((P) => P.renderTime))), o = (P) => {
|
|
5097
|
+
!m || Math.random() > e || (l.value = !0, r.value = performance.now(), P && process.env.NODE_ENV);
|
|
5098
|
+
}, g = (P, h = 1) => {
|
|
5094
5099
|
if (!l.value || !m) return;
|
|
5095
|
-
const
|
|
5100
|
+
const S = {
|
|
5096
5101
|
renderTime: performance.now() - r.value,
|
|
5097
5102
|
componentCount: h,
|
|
5098
5103
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
5099
5104
|
};
|
|
5100
5105
|
if (s && "memory" in performance) {
|
|
5101
5106
|
const _ = performance.memory;
|
|
5102
|
-
|
|
5107
|
+
S.memoryUsage = _.usedJSHeapSize;
|
|
5103
5108
|
}
|
|
5104
|
-
return i.value.push(
|
|
5105
|
-
},
|
|
5109
|
+
return i.value.push(S), i.value.length > 100 && i.value.shift(), l.value = !1, P && process.env.NODE_ENV, S;
|
|
5110
|
+
}, b = async (P, h) => {
|
|
5106
5111
|
o(h);
|
|
5107
5112
|
try {
|
|
5108
|
-
const t = await
|
|
5113
|
+
const t = await P(), p = g(h) || {
|
|
5109
5114
|
renderTime: 0,
|
|
5110
5115
|
componentCount: 1,
|
|
5111
5116
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -5114,36 +5119,36 @@ function Tc(y = {}) {
|
|
|
5114
5119
|
} catch (t) {
|
|
5115
5120
|
throw g(h), t;
|
|
5116
5121
|
}
|
|
5117
|
-
},
|
|
5122
|
+
}, $ = (P, h) => {
|
|
5118
5123
|
let t;
|
|
5119
5124
|
return (...p) => {
|
|
5120
|
-
clearTimeout(t), t = setTimeout(() =>
|
|
5125
|
+
clearTimeout(t), t = setTimeout(() => P(...p), h);
|
|
5121
5126
|
};
|
|
5122
|
-
}, V = (
|
|
5127
|
+
}, V = (P, h) => {
|
|
5123
5128
|
let t;
|
|
5124
5129
|
return (...p) => {
|
|
5125
|
-
t || (
|
|
5130
|
+
t || (P(...p), t = !0, setTimeout(() => t = !1, h));
|
|
5126
5131
|
};
|
|
5127
|
-
}, v = (
|
|
5128
|
-
"requestIdleCallback" in window ? window.requestIdleCallback(
|
|
5129
|
-
}, T = async (
|
|
5132
|
+
}, v = (P, h = 5e3) => {
|
|
5133
|
+
"requestIdleCallback" in window ? window.requestIdleCallback(P, { timeout: h }) : setTimeout(P, 0);
|
|
5134
|
+
}, T = async (P, h = 0) => (h > 0 && await new Promise((t) => setTimeout(t, h)), new Promise((t) => {
|
|
5130
5135
|
v(async () => {
|
|
5131
5136
|
try {
|
|
5132
|
-
const p = await
|
|
5137
|
+
const p = await P();
|
|
5133
5138
|
t(p);
|
|
5134
5139
|
} catch (p) {
|
|
5135
5140
|
throw p;
|
|
5136
5141
|
}
|
|
5137
5142
|
});
|
|
5138
|
-
})),
|
|
5139
|
-
const p = Math.ceil(t / h),
|
|
5143
|
+
})), k = (P, h, t) => {
|
|
5144
|
+
const p = Math.ceil(t / h), S = Math.ceil(p * 0.5);
|
|
5140
5145
|
return (_) => {
|
|
5141
|
-
const n = Math.max(0, Math.floor(_ / h) -
|
|
5146
|
+
const n = Math.max(0, Math.floor(_ / h) - S), W = Math.min(P.length, n + p + S * 2);
|
|
5142
5147
|
return {
|
|
5143
|
-
visibleItems:
|
|
5148
|
+
visibleItems: P.slice(n, W),
|
|
5144
5149
|
startIndex: n,
|
|
5145
5150
|
endIndex: W,
|
|
5146
|
-
totalHeight:
|
|
5151
|
+
totalHeight: P.length * h,
|
|
5147
5152
|
offsetY: n * h
|
|
5148
5153
|
};
|
|
5149
5154
|
};
|
|
@@ -5168,258 +5173,258 @@ function Tc(y = {}) {
|
|
|
5168
5173
|
// Performance tracking
|
|
5169
5174
|
startTracking: o,
|
|
5170
5175
|
endTracking: g,
|
|
5171
|
-
measureAsync:
|
|
5176
|
+
measureAsync: b,
|
|
5172
5177
|
// Optimization utilities
|
|
5173
|
-
debounce:
|
|
5178
|
+
debounce: $,
|
|
5174
5179
|
throttle: V,
|
|
5175
5180
|
scheduleWork: v,
|
|
5176
5181
|
lazyLoad: T,
|
|
5177
|
-
createVirtualList:
|
|
5182
|
+
createVirtualList: k,
|
|
5178
5183
|
// Management
|
|
5179
5184
|
clearMetrics: I,
|
|
5180
5185
|
getSummary: C
|
|
5181
5186
|
};
|
|
5182
5187
|
}
|
|
5183
5188
|
export {
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
+
Jl as AdvancedModal,
|
|
5190
|
+
Wl as AnimeSpaceman,
|
|
5191
|
+
Ut as AssistantField,
|
|
5192
|
+
Ql as AssistantList,
|
|
5193
|
+
Yl as AssistantsHeader,
|
|
5189
5194
|
ao as AvatarChoosing,
|
|
5190
|
-
|
|
5191
|
-
|
|
5195
|
+
Xl as AvatarList,
|
|
5196
|
+
Ne as BaseButton,
|
|
5192
5197
|
ke as BaseInput,
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5198
|
+
Vo as BaseTabButton,
|
|
5199
|
+
ma as CardInput,
|
|
5200
|
+
ec as ChooseAssistantAvatar,
|
|
5201
|
+
ac as CodeBlock,
|
|
5202
|
+
Ac as ConfirmationModal,
|
|
5203
|
+
lc as CustomCheckbox,
|
|
5204
|
+
ga as DefaultInput,
|
|
5205
|
+
Dc as DeleteConfirmationModal,
|
|
5206
|
+
cc as Descriptions,
|
|
5207
|
+
rc as DiffTextarea,
|
|
5208
|
+
dc as Dropdown,
|
|
5204
5209
|
Ie as EditFeaturedExcerptModal,
|
|
5205
|
-
|
|
5206
|
-
|
|
5210
|
+
uc as EmailCodeVerification,
|
|
5211
|
+
Fc as IconAddChatPop,
|
|
5207
5212
|
it as IconAddFileSystem,
|
|
5208
|
-
|
|
5209
|
-
|
|
5213
|
+
Bc as IconAddPeople,
|
|
5214
|
+
Mc as IconAitronos,
|
|
5210
5215
|
dt as IconApple,
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
+
Lc as IconApplePay,
|
|
5217
|
+
Vc as IconAppsGrid,
|
|
5218
|
+
Ec as IconArrowDown,
|
|
5219
|
+
Nc as IconArrowLeft,
|
|
5220
|
+
Rc as IconArrowUp,
|
|
5216
5221
|
nt as IconBadgeCheck,
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5222
|
+
Oc as IconBroom,
|
|
5223
|
+
zc as IconBuildings,
|
|
5224
|
+
Hc as IconCalendarWithTickInside,
|
|
5225
|
+
Uc as IconCallNotAllowed,
|
|
5221
5226
|
jc as IconCardPay,
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
+
Kc as IconCaution,
|
|
5228
|
+
Gc as IconChangeLog,
|
|
5229
|
+
Zc as IconCheckCircleFill,
|
|
5230
|
+
$e as IconCheckInCircle,
|
|
5231
|
+
Te as IconCheckRounded,
|
|
5227
5232
|
ae as IconChevronDown,
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5233
|
+
qc as IconChevronLeft,
|
|
5234
|
+
Wc as IconChevronRight,
|
|
5235
|
+
Be as IconChevronUp,
|
|
5236
|
+
Jc as IconCircledCheck,
|
|
5237
|
+
Qc as IconClock,
|
|
5238
|
+
Yc as IconClosedEnvelope,
|
|
5239
|
+
Xc as IconCloudUpload,
|
|
5240
|
+
er as IconConnectorConfluence,
|
|
5241
|
+
tr as IconConnectorFigma,
|
|
5242
|
+
or as IconConnectorFreshDesk,
|
|
5243
|
+
nr as IconConnectorGitHub,
|
|
5244
|
+
sr as IconConnectorJira,
|
|
5245
|
+
ir as IconConnectorLinear,
|
|
5246
|
+
ar as IconConnectorNotion,
|
|
5247
|
+
lr as IconConnectorSlack,
|
|
5248
|
+
cr as IconConnectorZapier,
|
|
5249
|
+
Se as IconCopy,
|
|
5245
5250
|
ee as IconCross,
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5251
|
+
rr as IconCrossCircleFill,
|
|
5252
|
+
dr as IconCrossInCircle,
|
|
5253
|
+
ur as IconCurrentTick,
|
|
5254
|
+
Je as IconDataUpload,
|
|
5255
|
+
pr as IconDelete,
|
|
5256
|
+
hr as IconDeleteFillRed,
|
|
5257
|
+
fr as IconDialingPhone,
|
|
5258
|
+
mr as IconDisabledAlert,
|
|
5259
|
+
vr as IconDocumentation,
|
|
5260
|
+
yr as IconDownload,
|
|
5256
5261
|
lt as IconDribbble,
|
|
5257
|
-
|
|
5262
|
+
gr as IconDropdownArrow,
|
|
5258
5263
|
pe as IconEdit,
|
|
5259
5264
|
kt as IconEditLinePath,
|
|
5260
|
-
|
|
5261
|
-
|
|
5265
|
+
Ir as IconEllipse,
|
|
5266
|
+
br as IconExcelThumbnail,
|
|
5262
5267
|
_t as IconExpand,
|
|
5263
5268
|
et as IconEye,
|
|
5264
5269
|
ut as IconFacebook,
|
|
5265
5270
|
ct as IconFigma,
|
|
5266
5271
|
ht as IconFile,
|
|
5267
5272
|
tt as IconFileSystem,
|
|
5268
|
-
|
|
5273
|
+
kr as IconFileUpload,
|
|
5269
5274
|
st as IconFilter,
|
|
5270
5275
|
vt as IconFolder,
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5276
|
+
_r as IconFreddyHub,
|
|
5277
|
+
Cr as IconFreddyHubLogo,
|
|
5278
|
+
wr as IconFreddyHubNewLogo,
|
|
5279
|
+
Sr as IconFreddyHubTitle,
|
|
5280
|
+
Tr as IconFreddySmall,
|
|
5281
|
+
$r as IconGlobExpand,
|
|
5282
|
+
xr as IconGlobe,
|
|
5278
5283
|
pt as IconGoogle,
|
|
5279
|
-
|
|
5280
|
-
|
|
5284
|
+
Pr as IconHollowCircle,
|
|
5285
|
+
Ar as IconHome,
|
|
5281
5286
|
ce as IconInfoRounded,
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5287
|
+
Dr as IconInvalidInvoice,
|
|
5288
|
+
Fr as IconInvoice,
|
|
5289
|
+
Br as IconInvoiceSwitch,
|
|
5290
|
+
Mr as IconLapTableBottom,
|
|
5291
|
+
Lr as IconLense,
|
|
5292
|
+
Me as IconLightCross,
|
|
5293
|
+
Vr as IconLink04,
|
|
5294
|
+
Er as IconLoadingError,
|
|
5295
|
+
Nr as IconLoadingOrg,
|
|
5296
|
+
Rr as IconLocationWithCircleIn,
|
|
5297
|
+
Ze as IconLock,
|
|
5298
|
+
Or as IconMarketPlace,
|
|
5299
|
+
zr as IconMaximize,
|
|
5300
|
+
Hr as IconMicrophone,
|
|
5301
|
+
Ur as IconMutedMicrophone,
|
|
5297
5302
|
jr as IconNewNotification,
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5303
|
+
qe as IconNewTab,
|
|
5304
|
+
Kr as IconNotification,
|
|
5305
|
+
Gr as IconOpenBook,
|
|
5301
5306
|
yt as IconPaperAirPlane,
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5307
|
+
Zr as IconPauseCircle,
|
|
5308
|
+
qr as IconPdfThumbnail,
|
|
5309
|
+
Wr as IconPenEdit,
|
|
5310
|
+
Jr as IconPencil,
|
|
5311
|
+
Qr as IconPeopleHub,
|
|
5312
|
+
Yr as IconPersonCircle,
|
|
5313
|
+
Xr as IconPits,
|
|
5314
|
+
ed as IconPlay,
|
|
5310
5315
|
Xe as IconPlus,
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5316
|
+
td as IconPolygonDown,
|
|
5317
|
+
od as IconPresentation,
|
|
5318
|
+
nd as IconProgressBase,
|
|
5319
|
+
sd as IconProgressComplete,
|
|
5320
|
+
id as IconProgressGoing,
|
|
5321
|
+
ad as IconPurpose,
|
|
5322
|
+
ld as IconPurseCircleFill,
|
|
5318
5323
|
fe as IconQuestion,
|
|
5319
|
-
|
|
5320
|
-
|
|
5324
|
+
cd as IconRadio,
|
|
5325
|
+
rd as IconRadioFill,
|
|
5321
5326
|
ft as IconRefresh,
|
|
5322
5327
|
at as IconRevertedTriangle,
|
|
5323
|
-
|
|
5324
|
-
|
|
5328
|
+
We as IconRobotScreen,
|
|
5329
|
+
dd as IconRoundTick,
|
|
5325
5330
|
Ye as IconSearch,
|
|
5326
5331
|
Ct as IconSearchOptimised,
|
|
5327
|
-
|
|
5332
|
+
ud as IconSectionHide,
|
|
5328
5333
|
wt as IconSend,
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5334
|
+
pd as IconSettings,
|
|
5335
|
+
hd as IconSettingsBold,
|
|
5336
|
+
fd as IconSize,
|
|
5337
|
+
md as IconSliderKnobs,
|
|
5338
|
+
vd as IconSortIdle,
|
|
5339
|
+
Fe as IconSparkle,
|
|
5340
|
+
yd as IconSpotlio,
|
|
5336
5341
|
ot as IconStar,
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5342
|
+
gd as IconStatistics,
|
|
5343
|
+
Id as IconStopChat,
|
|
5344
|
+
bd as IconStreamLineHub,
|
|
5345
|
+
kd as IconStreamLineHubNewLogo,
|
|
5346
|
+
Le as IconStyleDirective,
|
|
5347
|
+
_d as IconSun,
|
|
5348
|
+
Cd as IconSwap,
|
|
5349
|
+
wd as IconText,
|
|
5350
|
+
Sd as IconTextThumbnail,
|
|
5351
|
+
Td as IconThinDocument,
|
|
5352
|
+
$d as IconThinFile,
|
|
5348
5353
|
mt as IconThumbsDown,
|
|
5349
5354
|
he as IconTick,
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5355
|
+
xd as IconUser,
|
|
5356
|
+
Pd as IconVerticalDots,
|
|
5357
|
+
Ad as IconVideoCamera,
|
|
5358
|
+
Dd as IconWarningOctal,
|
|
5354
5359
|
rt as IconX,
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5360
|
+
Fd as IconZip,
|
|
5361
|
+
pc as InputField,
|
|
5362
|
+
hc as InstructionsModal,
|
|
5363
|
+
fc as InstructiontextArea,
|
|
5364
|
+
Va as ModalBox,
|
|
5365
|
+
mc as ModalOverlay,
|
|
5366
|
+
vc as ModelDropdown,
|
|
5367
|
+
yc as OutputModeModal,
|
|
5368
|
+
gc as Pagination,
|
|
5369
|
+
$a as PhoneInput,
|
|
5370
|
+
tc as RulesManagement,
|
|
5366
5371
|
_e as SearchInput,
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5372
|
+
Ic as SendButton,
|
|
5373
|
+
ai as SimpleChatInterface,
|
|
5374
|
+
bc as SkeletonLoader,
|
|
5375
|
+
kc as Slider,
|
|
5376
|
+
_c as SnackBar,
|
|
5377
|
+
ic as SocialButtons,
|
|
5378
|
+
za as Spinner,
|
|
5379
|
+
Ui as Switch,
|
|
5380
|
+
Cc as SwitchSlot,
|
|
5381
|
+
wc as TabList,
|
|
5382
|
+
Vi as TextAreaInputField,
|
|
5383
|
+
Sc as ToastMessage,
|
|
5379
5384
|
re as Tooltip,
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5385
|
+
$s as TooltipV2,
|
|
5386
|
+
oc as VectorFrame,
|
|
5387
|
+
nc as VectorSection,
|
|
5388
|
+
sc as VoiceList,
|
|
5389
|
+
Ee as VoiceSelection,
|
|
5390
|
+
Bd as aiResponseToChatMessage,
|
|
5391
|
+
Md as calculatePercentage,
|
|
5392
|
+
Ld as cloneDeepSafe,
|
|
5393
|
+
Vd as copyToClipboard,
|
|
5389
5394
|
bt as createChangesObject,
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5395
|
+
Ed as daysInMonth,
|
|
5396
|
+
Nd as debounce,
|
|
5397
|
+
Rd as deepEqual,
|
|
5398
|
+
Gl as default,
|
|
5399
|
+
Od as defaultImageSrc,
|
|
5400
|
+
zd as extractStats,
|
|
5401
|
+
Hd as fileSizeFormatter,
|
|
5402
|
+
Ud as fillMissingDays,
|
|
5398
5403
|
jd as formatDate,
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
+
Kd as formatDateToLocaleString,
|
|
5405
|
+
Gd as formatLastUsedDate,
|
|
5406
|
+
Zl as frSanitizePlugin,
|
|
5407
|
+
Zd as getDatesForMonth,
|
|
5408
|
+
qd as getDaysInMonth,
|
|
5404
5409
|
It as getDisplayContent,
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5410
|
+
Wd as getFileNameFromUrl,
|
|
5411
|
+
Jd as getShortMonthName,
|
|
5412
|
+
Qd as hasOverflow,
|
|
5413
|
+
Yd as hasTextImprovements,
|
|
5414
|
+
ql as iconStylePlugin,
|
|
5415
|
+
Xd as interpolateColor,
|
|
5416
|
+
eu as isValidAIResponse,
|
|
5417
|
+
tu as openConfirmBoxModal,
|
|
5418
|
+
ou as openDeleteConfirmModal,
|
|
5419
|
+
nu as parseAITextResponse,
|
|
5415
5420
|
gt as parseApiResponse,
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
+
su as readableDateFormat,
|
|
5422
|
+
iu as scrollToBottom,
|
|
5423
|
+
au as scrollToElement,
|
|
5424
|
+
Tc as useErrorHandler,
|
|
5425
|
+
$c as usePerformance,
|
|
5421
5426
|
St as useSnackBar,
|
|
5422
5427
|
Tt as useToast,
|
|
5423
|
-
|
|
5428
|
+
Ve as vFrSanitize
|
|
5424
5429
|
};
|
|
5425
5430
|
//# sourceMappingURL=index.js.map
|