@aitronos/freddy-plugins 0.4.61 → 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 +30 -0
- package/dist/freddy-plugins.css +1 -1
- package/dist/{icons-ByG7XPWY.js → icons-GUqeJvd4.js} +100 -100
- package/dist/{icons-ByG7XPWY.js.map → icons-GUqeJvd4.js.map} +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1271 -1276
- 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,23 +1,23 @@
|
|
|
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 {
|
|
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
|
}
|
|
11
11
|
};
|
|
12
12
|
let ge = null;
|
|
13
|
-
const
|
|
13
|
+
const $t = async () => {
|
|
14
14
|
try {
|
|
15
15
|
ge = (await import("dompurify")).default;
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
const
|
|
19
|
+
$t();
|
|
20
|
+
const xt = [
|
|
21
21
|
"a",
|
|
22
22
|
"abbr",
|
|
23
23
|
"b",
|
|
@@ -51,7 +51,7 @@ const Pt = [
|
|
|
51
51
|
"tr",
|
|
52
52
|
"u",
|
|
53
53
|
"ul"
|
|
54
|
-
],
|
|
54
|
+
], Pt = [
|
|
55
55
|
"href",
|
|
56
56
|
"src",
|
|
57
57
|
"alt",
|
|
@@ -63,180 +63,180 @@ const Pt = [
|
|
|
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
|
-
ALLOWED_TAGS:
|
|
72
|
-
ALLOWED_ATTR:
|
|
71
|
+
ALLOWED_TAGS: xt,
|
|
72
|
+
ALLOWED_ATTR: Pt,
|
|
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
|
-
"./icons/IconAddChatPop.vue": () => import("./icons-
|
|
92
|
-
"./icons/IconAddFileSystem.vue": () => import("./icons-
|
|
93
|
-
"./icons/IconAddPeople.vue": () => import("./icons-
|
|
94
|
-
"./icons/IconAitronos.vue": () => import("./icons-
|
|
95
|
-
"./icons/IconApple.vue": () => import("./icons-
|
|
96
|
-
"./icons/IconApplePay.vue": () => import("./icons-
|
|
97
|
-
"./icons/IconAppsGrid.vue": () => import("./icons-
|
|
98
|
-
"./icons/IconArrowDown.vue": () => import("./icons-
|
|
99
|
-
"./icons/IconArrowLeft.vue": () => import("./icons-
|
|
100
|
-
"./icons/IconArrowUp.vue": () => import("./icons-
|
|
101
|
-
"./icons/IconBadgeCheck.vue": () => import("./icons-
|
|
102
|
-
"./icons/IconBroom.vue": () => import("./icons-
|
|
103
|
-
"./icons/IconBuildings.vue": () => import("./icons-
|
|
104
|
-
"./icons/IconCalendarWithTickInside.vue": () => import("./icons-
|
|
105
|
-
"./icons/IconCallNotAllowed.vue": () => import("./icons-
|
|
106
|
-
"./icons/IconCardPay.vue": () => import("./icons-
|
|
107
|
-
"./icons/IconCaution.vue": () => import("./icons-
|
|
108
|
-
"./icons/IconChangeLog.vue": () => import("./icons-
|
|
109
|
-
"./icons/IconCheckCircleFill.vue": () => import("./icons-
|
|
110
|
-
"./icons/IconCheckInCircle.vue": () => import("./icons-
|
|
111
|
-
"./icons/IconCheckRounded.vue": () => import("./icons-
|
|
112
|
-
"./icons/IconChevronDown.vue": () => import("./icons-
|
|
113
|
-
"./icons/IconChevronLeft.vue": () => import("./icons-
|
|
114
|
-
"./icons/IconChevronRight.vue": () => import("./icons-
|
|
115
|
-
"./icons/IconChevronUp.vue": () => import("./icons-
|
|
116
|
-
"./icons/IconCircledCheck.vue": () => import("./icons-
|
|
117
|
-
"./icons/IconClock.vue": () => import("./icons-
|
|
118
|
-
"./icons/IconClosedEnvelope.vue": () => import("./icons-
|
|
119
|
-
"./icons/IconCloudUpload.vue": () => import("./icons-
|
|
120
|
-
"./icons/IconConnectorConfluence.vue": () => import("./icons-
|
|
121
|
-
"./icons/IconConnectorFigma.vue": () => import("./icons-
|
|
122
|
-
"./icons/IconConnectorFreshDesk.vue": () => import("./icons-
|
|
123
|
-
"./icons/IconConnectorGitHub.vue": () => import("./icons-
|
|
124
|
-
"./icons/IconConnectorJira.vue": () => import("./icons-
|
|
125
|
-
"./icons/IconConnectorLinear.vue": () => import("./icons-
|
|
126
|
-
"./icons/IconConnectorNotion.vue": () => import("./icons-
|
|
127
|
-
"./icons/IconConnectorSlack.vue": () => import("./icons-
|
|
128
|
-
"./icons/IconConnectorZapier.vue": () => import("./icons-
|
|
129
|
-
"./icons/IconCopy.vue": () => import("./icons-
|
|
130
|
-
"./icons/IconCross.vue": () => import("./icons-
|
|
131
|
-
"./icons/IconCrossCircleFill.vue": () => import("./icons-
|
|
132
|
-
"./icons/IconCrossInCircle.vue": () => import("./icons-
|
|
133
|
-
"./icons/IconCurrentTick.vue": () => import("./icons-
|
|
134
|
-
"./icons/IconDataUpload.vue": () => import("./icons-
|
|
135
|
-
"./icons/IconDelete.vue": () => import("./icons-
|
|
136
|
-
"./icons/IconDeleteFillRed.vue": () => import("./icons-
|
|
137
|
-
"./icons/IconDialingPhone.vue": () => import("./icons-
|
|
138
|
-
"./icons/IconDisabledAlert.vue": () => import("./icons-
|
|
139
|
-
"./icons/IconDocumentation.vue": () => import("./icons-
|
|
140
|
-
"./icons/IconDownload.vue": () => import("./icons-
|
|
141
|
-
"./icons/IconDribbble.vue": () => import("./icons-
|
|
142
|
-
"./icons/IconDropdownArrow.vue": () => import("./icons-
|
|
143
|
-
"./icons/IconEdit.vue": () => import("./icons-
|
|
144
|
-
"./icons/IconEditLinePath.vue": () => import("./icons-
|
|
145
|
-
"./icons/IconEllipse.vue": () => import("./icons-
|
|
146
|
-
"./icons/IconExcelThumbnail.vue": () => import("./icons-
|
|
147
|
-
"./icons/IconExpand.vue": () => import("./icons-
|
|
148
|
-
"./icons/IconEye.vue": () => import("./icons-
|
|
149
|
-
"./icons/IconFacebook.vue": () => import("./icons-
|
|
150
|
-
"./icons/IconFigma.vue": () => import("./icons-
|
|
151
|
-
"./icons/IconFile.vue": () => import("./icons-
|
|
152
|
-
"./icons/IconFileSystem.vue": () => import("./icons-
|
|
153
|
-
"./icons/IconFileUpload.vue": () => import("./icons-
|
|
154
|
-
"./icons/IconFilter.vue": () => import("./icons-
|
|
155
|
-
"./icons/IconFolder.vue": () => import("./icons-
|
|
156
|
-
"./icons/IconFreddyHub.vue": () => import("./icons-
|
|
157
|
-
"./icons/IconFreddyHubLogo.vue": () => import("./icons-
|
|
158
|
-
"./icons/IconFreddyHubNewLogo.vue": () => import("./icons-
|
|
159
|
-
"./icons/IconFreddyHubTitle.vue": () => import("./icons-
|
|
160
|
-
"./icons/IconFreddySmall.vue": () => import("./icons-
|
|
161
|
-
"./icons/IconGlobExpand.vue": () => import("./icons-
|
|
162
|
-
"./icons/IconGlobe.vue": () => import("./icons-
|
|
163
|
-
"./icons/IconGoogle.vue": () => import("./icons-
|
|
164
|
-
"./icons/IconHollowCircle.vue": () => import("./icons-
|
|
165
|
-
"./icons/IconHome.vue": () => import("./icons-
|
|
166
|
-
"./icons/IconInfoRounded.vue": () => import("./icons-
|
|
167
|
-
"./icons/IconInvalidInvoice.vue": () => import("./icons-
|
|
168
|
-
"./icons/IconInvoice.vue": () => import("./icons-
|
|
169
|
-
"./icons/IconInvoiceSwitch.vue": () => import("./icons-
|
|
170
|
-
"./icons/IconLapTableBottom.vue": () => import("./icons-
|
|
171
|
-
"./icons/IconLense.vue": () => import("./icons-
|
|
172
|
-
"./icons/IconLightCross.vue": () => import("./icons-
|
|
173
|
-
"./icons/IconLink04.vue": () => import("./icons-
|
|
174
|
-
"./icons/IconLoadingError.vue": () => import("./icons-
|
|
175
|
-
"./icons/IconLoadingOrg.vue": () => import("./icons-
|
|
176
|
-
"./icons/IconLocationWithCircleIn.vue": () => import("./icons-
|
|
177
|
-
"./icons/IconLock.vue": () => import("./icons-
|
|
178
|
-
"./icons/IconMarketPlace.vue": () => import("./icons-
|
|
179
|
-
"./icons/IconMaximize.vue": () => import("./icons-
|
|
180
|
-
"./icons/IconMicrophone.vue": () => import("./icons-
|
|
181
|
-
"./icons/IconMutedMicrophone.vue": () => import("./icons-
|
|
182
|
-
"./icons/IconNewNotification.vue": () => import("./icons-
|
|
183
|
-
"./icons/IconNewTab.vue": () => import("./icons-
|
|
184
|
-
"./icons/IconNotification.vue": () => import("./icons-
|
|
185
|
-
"./icons/IconOpenBook.vue": () => import("./icons-
|
|
186
|
-
"./icons/IconPaperAirPlane.vue": () => import("./icons-
|
|
187
|
-
"./icons/IconPauseCircle.vue": () => import("./icons-
|
|
188
|
-
"./icons/IconPdfThumbnail.vue": () => import("./icons-
|
|
189
|
-
"./icons/IconPenEdit.vue": () => import("./icons-
|
|
190
|
-
"./icons/IconPencil.vue": () => import("./icons-
|
|
191
|
-
"./icons/IconPeopleHub.vue": () => import("./icons-
|
|
192
|
-
"./icons/IconPersonCircle.vue": () => import("./icons-
|
|
193
|
-
"./icons/IconPits.vue": () => import("./icons-
|
|
194
|
-
"./icons/IconPlay.vue": () => import("./icons-
|
|
195
|
-
"./icons/IconPlus.vue": () => import("./icons-
|
|
196
|
-
"./icons/IconPolygonDown.vue": () => import("./icons-
|
|
197
|
-
"./icons/IconPresentation.vue": () => import("./icons-
|
|
198
|
-
"./icons/IconProgressBase.vue": () => import("./icons-
|
|
199
|
-
"./icons/IconProgressComplete.vue": () => import("./icons-
|
|
200
|
-
"./icons/IconProgressGoing.vue": () => import("./icons-
|
|
201
|
-
"./icons/IconPurpose.vue": () => import("./icons-
|
|
202
|
-
"./icons/IconPurseCircleFill.vue": () => import("./icons-
|
|
203
|
-
"./icons/IconQuestion.vue": () => import("./icons-
|
|
204
|
-
"./icons/IconRadio.vue": () => import("./icons-
|
|
205
|
-
"./icons/IconRadioFill.vue": () => import("./icons-
|
|
206
|
-
"./icons/IconRefresh.vue": () => import("./icons-
|
|
207
|
-
"./icons/IconRevertedTriangle.vue": () => import("./icons-
|
|
208
|
-
"./icons/IconRobotScreen.vue": () => import("./icons-
|
|
209
|
-
"./icons/IconRoundTick.vue": () => import("./icons-
|
|
210
|
-
"./icons/IconSearch.vue": () => import("./icons-
|
|
211
|
-
"./icons/IconSearchOptimised.vue": () => import("./icons-
|
|
212
|
-
"./icons/IconSectionHide.vue": () => import("./icons-
|
|
213
|
-
"./icons/IconSend.vue": () => import("./icons-
|
|
214
|
-
"./icons/IconSettings.vue": () => import("./icons-
|
|
215
|
-
"./icons/IconSettingsBold.vue": () => import("./icons-
|
|
216
|
-
"./icons/IconSize.vue": () => import("./icons-
|
|
217
|
-
"./icons/IconSliderKnobs.vue": () => import("./icons-
|
|
218
|
-
"./icons/IconSortIdle.vue": () => import("./icons-
|
|
219
|
-
"./icons/IconSparkle.vue": () => import("./icons-
|
|
220
|
-
"./icons/IconSpotlio.vue": () => import("./icons-
|
|
221
|
-
"./icons/IconStar.vue": () => import("./icons-
|
|
222
|
-
"./icons/IconStatistics.vue": () => import("./icons-
|
|
223
|
-
"./icons/IconStopChat.vue": () => import("./icons-
|
|
224
|
-
"./icons/IconStreamLineHub.vue": () => import("./icons-
|
|
225
|
-
"./icons/IconStreamLineHubNewLogo.vue": () => import("./icons-
|
|
226
|
-
"./icons/IconSun.vue": () => import("./icons-
|
|
227
|
-
"./icons/IconSwap.vue": () => import("./icons-
|
|
228
|
-
"./icons/IconText.vue": () => import("./icons-
|
|
229
|
-
"./icons/IconTextThumbnail.vue": () => import("./icons-
|
|
230
|
-
"./icons/IconThinDocument.vue": () => import("./icons-
|
|
231
|
-
"./icons/IconThinFile.vue": () => import("./icons-
|
|
232
|
-
"./icons/IconThumbsDown.vue": () => import("./icons-
|
|
233
|
-
"./icons/IconTick.vue": () => import("./icons-
|
|
234
|
-
"./icons/IconUser.vue": () => import("./icons-
|
|
235
|
-
"./icons/IconVerticalDots.vue": () => import("./icons-
|
|
236
|
-
"./icons/IconVideoCamera.vue": () => import("./icons-
|
|
237
|
-
"./icons/IconWarningOctal.vue": () => import("./icons-
|
|
238
|
-
"./icons/IconX.vue": () => import("./icons-
|
|
239
|
-
"./icons/IconZip.vue": () => import("./icons-
|
|
91
|
+
"./icons/IconAddChatPop.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.c5),
|
|
92
|
+
"./icons/IconAddFileSystem.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.c6),
|
|
93
|
+
"./icons/IconAddPeople.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.c7),
|
|
94
|
+
"./icons/IconAitronos.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.c8),
|
|
95
|
+
"./icons/IconApple.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.c9),
|
|
96
|
+
"./icons/IconApplePay.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ca),
|
|
97
|
+
"./icons/IconAppsGrid.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cb),
|
|
98
|
+
"./icons/IconArrowDown.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cc),
|
|
99
|
+
"./icons/IconArrowLeft.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cd),
|
|
100
|
+
"./icons/IconArrowUp.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ce),
|
|
101
|
+
"./icons/IconBadgeCheck.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cf),
|
|
102
|
+
"./icons/IconBroom.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cg),
|
|
103
|
+
"./icons/IconBuildings.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ch),
|
|
104
|
+
"./icons/IconCalendarWithTickInside.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ci),
|
|
105
|
+
"./icons/IconCallNotAllowed.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cj),
|
|
106
|
+
"./icons/IconCardPay.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ck),
|
|
107
|
+
"./icons/IconCaution.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cl),
|
|
108
|
+
"./icons/IconChangeLog.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cm),
|
|
109
|
+
"./icons/IconCheckCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cn),
|
|
110
|
+
"./icons/IconCheckInCircle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.co),
|
|
111
|
+
"./icons/IconCheckRounded.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cp),
|
|
112
|
+
"./icons/IconChevronDown.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cq),
|
|
113
|
+
"./icons/IconChevronLeft.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cr),
|
|
114
|
+
"./icons/IconChevronRight.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cs),
|
|
115
|
+
"./icons/IconChevronUp.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ct),
|
|
116
|
+
"./icons/IconCircledCheck.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cu),
|
|
117
|
+
"./icons/IconClock.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cv),
|
|
118
|
+
"./icons/IconClosedEnvelope.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cw),
|
|
119
|
+
"./icons/IconCloudUpload.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cx),
|
|
120
|
+
"./icons/IconConnectorConfluence.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cy),
|
|
121
|
+
"./icons/IconConnectorFigma.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cz),
|
|
122
|
+
"./icons/IconConnectorFreshDesk.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cA),
|
|
123
|
+
"./icons/IconConnectorGitHub.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cB),
|
|
124
|
+
"./icons/IconConnectorJira.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cC),
|
|
125
|
+
"./icons/IconConnectorLinear.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cD),
|
|
126
|
+
"./icons/IconConnectorNotion.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cE),
|
|
127
|
+
"./icons/IconConnectorSlack.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cF),
|
|
128
|
+
"./icons/IconConnectorZapier.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cG),
|
|
129
|
+
"./icons/IconCopy.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cH),
|
|
130
|
+
"./icons/IconCross.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cI),
|
|
131
|
+
"./icons/IconCrossCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cJ),
|
|
132
|
+
"./icons/IconCrossInCircle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cK),
|
|
133
|
+
"./icons/IconCurrentTick.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cL),
|
|
134
|
+
"./icons/IconDataUpload.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cM),
|
|
135
|
+
"./icons/IconDelete.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cN),
|
|
136
|
+
"./icons/IconDeleteFillRed.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cO),
|
|
137
|
+
"./icons/IconDialingPhone.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cP),
|
|
138
|
+
"./icons/IconDisabledAlert.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cQ),
|
|
139
|
+
"./icons/IconDocumentation.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cR),
|
|
140
|
+
"./icons/IconDownload.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cS),
|
|
141
|
+
"./icons/IconDribbble.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cT),
|
|
142
|
+
"./icons/IconDropdownArrow.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cU),
|
|
143
|
+
"./icons/IconEdit.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cV),
|
|
144
|
+
"./icons/IconEditLinePath.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cW),
|
|
145
|
+
"./icons/IconEllipse.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cX),
|
|
146
|
+
"./icons/IconExcelThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cY),
|
|
147
|
+
"./icons/IconExpand.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.cZ),
|
|
148
|
+
"./icons/IconEye.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.c_),
|
|
149
|
+
"./icons/IconFacebook.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.c$),
|
|
150
|
+
"./icons/IconFigma.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d0),
|
|
151
|
+
"./icons/IconFile.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d1),
|
|
152
|
+
"./icons/IconFileSystem.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d2),
|
|
153
|
+
"./icons/IconFileUpload.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d3),
|
|
154
|
+
"./icons/IconFilter.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d4),
|
|
155
|
+
"./icons/IconFolder.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d5),
|
|
156
|
+
"./icons/IconFreddyHub.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d6),
|
|
157
|
+
"./icons/IconFreddyHubLogo.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d7),
|
|
158
|
+
"./icons/IconFreddyHubNewLogo.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d8),
|
|
159
|
+
"./icons/IconFreddyHubTitle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d9),
|
|
160
|
+
"./icons/IconFreddySmall.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.da),
|
|
161
|
+
"./icons/IconGlobExpand.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.db),
|
|
162
|
+
"./icons/IconGlobe.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dc),
|
|
163
|
+
"./icons/IconGoogle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dd),
|
|
164
|
+
"./icons/IconHollowCircle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.de),
|
|
165
|
+
"./icons/IconHome.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.df),
|
|
166
|
+
"./icons/IconInfoRounded.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dg),
|
|
167
|
+
"./icons/IconInvalidInvoice.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dh),
|
|
168
|
+
"./icons/IconInvoice.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.di),
|
|
169
|
+
"./icons/IconInvoiceSwitch.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dj),
|
|
170
|
+
"./icons/IconLapTableBottom.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dk),
|
|
171
|
+
"./icons/IconLense.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dl),
|
|
172
|
+
"./icons/IconLightCross.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dm),
|
|
173
|
+
"./icons/IconLink04.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dn),
|
|
174
|
+
"./icons/IconLoadingError.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dp),
|
|
175
|
+
"./icons/IconLoadingOrg.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dq),
|
|
176
|
+
"./icons/IconLocationWithCircleIn.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dr),
|
|
177
|
+
"./icons/IconLock.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ds),
|
|
178
|
+
"./icons/IconMarketPlace.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dt),
|
|
179
|
+
"./icons/IconMaximize.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.du),
|
|
180
|
+
"./icons/IconMicrophone.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dv),
|
|
181
|
+
"./icons/IconMutedMicrophone.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dw),
|
|
182
|
+
"./icons/IconNewNotification.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dx),
|
|
183
|
+
"./icons/IconNewTab.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dy),
|
|
184
|
+
"./icons/IconNotification.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dz),
|
|
185
|
+
"./icons/IconOpenBook.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dA),
|
|
186
|
+
"./icons/IconPaperAirPlane.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dB),
|
|
187
|
+
"./icons/IconPauseCircle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dC),
|
|
188
|
+
"./icons/IconPdfThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dD),
|
|
189
|
+
"./icons/IconPenEdit.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dE),
|
|
190
|
+
"./icons/IconPencil.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dF),
|
|
191
|
+
"./icons/IconPeopleHub.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dG),
|
|
192
|
+
"./icons/IconPersonCircle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dH),
|
|
193
|
+
"./icons/IconPits.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dI),
|
|
194
|
+
"./icons/IconPlay.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dJ),
|
|
195
|
+
"./icons/IconPlus.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dK),
|
|
196
|
+
"./icons/IconPolygonDown.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dL),
|
|
197
|
+
"./icons/IconPresentation.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dM),
|
|
198
|
+
"./icons/IconProgressBase.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dN),
|
|
199
|
+
"./icons/IconProgressComplete.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dO),
|
|
200
|
+
"./icons/IconProgressGoing.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dP),
|
|
201
|
+
"./icons/IconPurpose.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dQ),
|
|
202
|
+
"./icons/IconPurseCircleFill.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dR),
|
|
203
|
+
"./icons/IconQuestion.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dS),
|
|
204
|
+
"./icons/IconRadio.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dT),
|
|
205
|
+
"./icons/IconRadioFill.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dU),
|
|
206
|
+
"./icons/IconRefresh.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dV),
|
|
207
|
+
"./icons/IconRevertedTriangle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dW),
|
|
208
|
+
"./icons/IconRobotScreen.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dX),
|
|
209
|
+
"./icons/IconRoundTick.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dY),
|
|
210
|
+
"./icons/IconSearch.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.dZ),
|
|
211
|
+
"./icons/IconSearchOptimised.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d_),
|
|
212
|
+
"./icons/IconSectionHide.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.d$),
|
|
213
|
+
"./icons/IconSend.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e0),
|
|
214
|
+
"./icons/IconSettings.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e1),
|
|
215
|
+
"./icons/IconSettingsBold.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e2),
|
|
216
|
+
"./icons/IconSize.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e3),
|
|
217
|
+
"./icons/IconSliderKnobs.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e4),
|
|
218
|
+
"./icons/IconSortIdle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e5),
|
|
219
|
+
"./icons/IconSparkle.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e6),
|
|
220
|
+
"./icons/IconSpotlio.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e7),
|
|
221
|
+
"./icons/IconStar.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e8),
|
|
222
|
+
"./icons/IconStatistics.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.e9),
|
|
223
|
+
"./icons/IconStopChat.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ea),
|
|
224
|
+
"./icons/IconStreamLineHub.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.eb),
|
|
225
|
+
"./icons/IconStreamLineHubNewLogo.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ec),
|
|
226
|
+
"./icons/IconSun.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ed),
|
|
227
|
+
"./icons/IconSwap.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ee),
|
|
228
|
+
"./icons/IconText.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ef),
|
|
229
|
+
"./icons/IconTextThumbnail.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.eg),
|
|
230
|
+
"./icons/IconThinDocument.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.eh),
|
|
231
|
+
"./icons/IconThinFile.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ei),
|
|
232
|
+
"./icons/IconThumbsDown.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ej),
|
|
233
|
+
"./icons/IconTick.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ek),
|
|
234
|
+
"./icons/IconUser.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.el),
|
|
235
|
+
"./icons/IconVerticalDots.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.em),
|
|
236
|
+
"./icons/IconVideoCamera.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.en),
|
|
237
|
+
"./icons/IconWarningOctal.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.eo),
|
|
238
|
+
"./icons/IconX.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.ep),
|
|
239
|
+
"./icons/IconZip.vue": () => import("./icons-GUqeJvd4.js").then((e) => e.eq)
|
|
240
240
|
});
|
|
241
241
|
for (const e in s) {
|
|
242
242
|
const i = ((m = e.split("/").pop()) == null ? void 0 : m.replace(".vue", "")) || "";
|
|
@@ -258,11 +258,11 @@ const Pt = [
|
|
|
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",
|
|
@@ -279,7 +279,7 @@ const Pt = [
|
|
|
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
|
|
@@ -315,10 +315,10 @@ const Pt = [
|
|
|
315
315
|
278.436,375.599 383.003,264.076 364.393,251.618 264.807,364.928 "></polygon></g></g></g></g>`, 1)
|
|
316
316
|
])], 6));
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
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
|
-
},
|
|
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 },
|
|
@@ -327,33 +327,33 @@ const Pt = [
|
|
|
327
327
|
setup(y) {
|
|
328
328
|
return (m, s) => (c(), E(le, { name: "modal" }, {
|
|
329
329
|
default: Z(() => [
|
|
330
|
-
m.isVisible ? (c(), f("div",
|
|
331
|
-
a("div",
|
|
330
|
+
m.isVisible ? (c(), f("div", At, [
|
|
331
|
+
a("div", Dt, [
|
|
332
332
|
a("div", {
|
|
333
333
|
class: F({
|
|
334
334
|
"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white 2xl:w-[56.25rem] xl:w-[56.25rem] lg:w-[56.25rem] md:w-[45.625rem] sm:w-[31.25rem] xs:w-auto": m.largeModel
|
|
335
335
|
})
|
|
336
336
|
}, [
|
|
337
|
-
a("div",
|
|
337
|
+
a("div", Ft, [
|
|
338
338
|
q(m.$slots, "header")
|
|
339
339
|
]),
|
|
340
|
-
a("div",
|
|
340
|
+
a("div", Bt, [
|
|
341
341
|
q(m.$slots, "body")
|
|
342
342
|
]),
|
|
343
|
-
a("div",
|
|
343
|
+
a("div", Mt, [
|
|
344
344
|
q(m.$slots, "footer")
|
|
345
345
|
])
|
|
346
346
|
], 2)
|
|
347
347
|
])
|
|
348
|
-
])) :
|
|
348
|
+
])) : w("", !0)
|
|
349
349
|
]),
|
|
350
350
|
_: 3
|
|
351
351
|
}));
|
|
352
352
|
}
|
|
353
|
-
}),
|
|
353
|
+
}), Lt = { class: "freddy-assistant-field__content" }, Vt = { class: "freddy-assistant-field__header" }, Et = { class: "freddy-assistant-field__name" }, Nt = { class: "freddy-assistant-field__date" }, Rt = { class: "freddy-assistant-field__footer" }, Ot = { class: "freddy-assistant-field__id" }, zt = {
|
|
354
354
|
key: 0,
|
|
355
355
|
class: "freddy-assistant-field__privacy-icon"
|
|
356
|
-
},
|
|
356
|
+
}, Ht = /* @__PURE__ */ N({
|
|
357
357
|
__name: "AssistantField",
|
|
358
358
|
props: {
|
|
359
359
|
name: { default: "Name of the assistant" },
|
|
@@ -371,21 +371,21 @@ const Pt = [
|
|
|
371
371
|
class: F(["freddy-assistant-field", { "freddy-assistant-field--selected": i.isSelected }]),
|
|
372
372
|
onClick: e
|
|
373
373
|
}, [
|
|
374
|
-
a("div",
|
|
375
|
-
a("div",
|
|
376
|
-
a("div",
|
|
377
|
-
a("div",
|
|
374
|
+
a("div", Lt, [
|
|
375
|
+
a("div", Vt, [
|
|
376
|
+
a("div", Et, B(i.name), 1),
|
|
377
|
+
a("div", Nt, B(i.date), 1)
|
|
378
378
|
]),
|
|
379
|
-
a("div",
|
|
380
|
-
a("div",
|
|
381
|
-
i.isDefault ? (c(), f("div",
|
|
382
|
-
L(
|
|
383
|
-
])) :
|
|
379
|
+
a("div", Rt, [
|
|
380
|
+
a("div", Ot, B(i.assistantId), 1),
|
|
381
|
+
i.isDefault ? (c(), f("div", zt, [
|
|
382
|
+
L(D(Ze), { class: "freddy-assistant-field__lock-icon" })
|
|
383
|
+
])) : w("", !0)
|
|
384
384
|
])
|
|
385
385
|
])
|
|
386
386
|
], 2));
|
|
387
387
|
}
|
|
388
|
-
}), Ut = /* @__PURE__ */ H(
|
|
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 Pt = [
|
|
|
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 Pt = [
|
|
|
402
402
|
}), r = (u, d) => {
|
|
403
403
|
i.value = u.assistantId, e("assistantClick", u, d);
|
|
404
404
|
};
|
|
405
|
-
return (u, d) => (c(), f("div",
|
|
406
|
-
a("div",
|
|
407
|
-
(c(!0), f(O, null,
|
|
405
|
+
return (u, d) => (c(), f("div", jt, [
|
|
406
|
+
a("div", Kt, [
|
|
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
|
-
}), Ql = /* @__PURE__ */ H(
|
|
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)(
|
|
@@ -428,16 +428,16 @@ const Pt = [
|
|
|
428
428
|
)
|
|
429
429
|
);
|
|
430
430
|
});
|
|
431
|
-
},
|
|
431
|
+
}, Zt = { class: "freddy-assistants-header" }, qt = {
|
|
432
432
|
key: 0,
|
|
433
433
|
class: "freddy-assistants-header__avatar"
|
|
434
|
-
},
|
|
434
|
+
}, Wt = ["src"], Jt = {
|
|
435
435
|
key: 1,
|
|
436
436
|
class: "freddy-assistants-header__icon-with-edit"
|
|
437
|
-
},
|
|
437
|
+
}, Qt = {
|
|
438
438
|
key: 2,
|
|
439
439
|
class: "freddy-assistants-header__side-icon"
|
|
440
|
-
},
|
|
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 },
|
|
@@ -451,65 +451,65 @@ const Pt = [
|
|
|
451
451
|
}, l = (d) => {
|
|
452
452
|
e("playground", d);
|
|
453
453
|
}, r = (d) => d ? R(
|
|
454
|
-
() => be(/* @__PURE__ */ Object.assign({ "../../icons/IconAddChatPop.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.c5), "../../icons/IconAddFileSystem.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.c6), "../../icons/IconAddPeople.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.c7), "../../icons/IconAitronos.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.c8), "../../icons/IconApple.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.c9), "../../icons/IconApplePay.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ca), "../../icons/IconAppsGrid.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cb), "../../icons/IconArrowDown.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cc), "../../icons/IconArrowLeft.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cd), "../../icons/IconArrowUp.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ce), "../../icons/IconBadgeCheck.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cf), "../../icons/IconBroom.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cg), "../../icons/IconBuildings.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ch), "../../icons/IconCalendarWithTickInside.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ci), "../../icons/IconCallNotAllowed.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cj), "../../icons/IconCardPay.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ck), "../../icons/IconCaution.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cl), "../../icons/IconChangeLog.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cm), "../../icons/IconCheckCircleFill.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cn), "../../icons/IconCheckInCircle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.co), "../../icons/IconCheckRounded.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cp), "../../icons/IconChevronDown.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cq), "../../icons/IconChevronLeft.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cr), "../../icons/IconChevronRight.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cs), "../../icons/IconChevronUp.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ct), "../../icons/IconCircledCheck.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cu), "../../icons/IconClock.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cv), "../../icons/IconClosedEnvelope.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cw), "../../icons/IconCloudUpload.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cx), "../../icons/IconConnectorConfluence.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cy), "../../icons/IconConnectorFigma.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cz), "../../icons/IconConnectorFreshDesk.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cA), "../../icons/IconConnectorGitHub.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cB), "../../icons/IconConnectorJira.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cC), "../../icons/IconConnectorLinear.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cD), "../../icons/IconConnectorNotion.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cE), "../../icons/IconConnectorSlack.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cF), "../../icons/IconConnectorZapier.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cG), "../../icons/IconCopy.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cH), "../../icons/IconCross.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cI), "../../icons/IconCrossCircleFill.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cJ), "../../icons/IconCrossInCircle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cK), "../../icons/IconCurrentTick.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cL), "../../icons/IconDataUpload.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cM), "../../icons/IconDelete.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cN), "../../icons/IconDeleteFillRed.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cO), "../../icons/IconDialingPhone.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cP), "../../icons/IconDisabledAlert.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cQ), "../../icons/IconDocumentation.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cR), "../../icons/IconDownload.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cS), "../../icons/IconDribbble.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cT), "../../icons/IconDropdownArrow.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cU), "../../icons/IconEdit.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cV), "../../icons/IconEditLinePath.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cW), "../../icons/IconEllipse.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cX), "../../icons/IconExcelThumbnail.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cY), "../../icons/IconExpand.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.cZ), "../../icons/IconEye.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.c_), "../../icons/IconFacebook.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.c$), "../../icons/IconFigma.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d0), "../../icons/IconFile.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d1), "../../icons/IconFileSystem.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d2), "../../icons/IconFileUpload.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d3), "../../icons/IconFilter.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d4), "../../icons/IconFolder.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d5), "../../icons/IconFreddyHub.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d6), "../../icons/IconFreddyHubLogo.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d7), "../../icons/IconFreddyHubNewLogo.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d8), "../../icons/IconFreddyHubTitle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d9), "../../icons/IconFreddySmall.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.da), "../../icons/IconGlobExpand.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.db), "../../icons/IconGlobe.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dc), "../../icons/IconGoogle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dd), "../../icons/IconHollowCircle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.de), "../../icons/IconHome.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.df), "../../icons/IconInfoRounded.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dg), "../../icons/IconInvalidInvoice.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dh), "../../icons/IconInvoice.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.di), "../../icons/IconInvoiceSwitch.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dj), "../../icons/IconLapTableBottom.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dk), "../../icons/IconLense.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dl), "../../icons/IconLightCross.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dm), "../../icons/IconLink04.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dn), "../../icons/IconLoadingError.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dp), "../../icons/IconLoadingOrg.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dq), "../../icons/IconLocationWithCircleIn.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dr), "../../icons/IconLock.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ds), "../../icons/IconMarketPlace.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dt), "../../icons/IconMaximize.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.du), "../../icons/IconMicrophone.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dv), "../../icons/IconMutedMicrophone.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dw), "../../icons/IconNewNotification.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dx), "../../icons/IconNewTab.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dy), "../../icons/IconNotification.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dz), "../../icons/IconOpenBook.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dA), "../../icons/IconPaperAirPlane.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dB), "../../icons/IconPauseCircle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dC), "../../icons/IconPdfThumbnail.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dD), "../../icons/IconPenEdit.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dE), "../../icons/IconPencil.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dF), "../../icons/IconPeopleHub.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dG), "../../icons/IconPersonCircle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dH), "../../icons/IconPits.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dI), "../../icons/IconPlay.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dJ), "../../icons/IconPlus.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dK), "../../icons/IconPolygonDown.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dL), "../../icons/IconPresentation.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dM), "../../icons/IconProgressBase.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dN), "../../icons/IconProgressComplete.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dO), "../../icons/IconProgressGoing.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dP), "../../icons/IconPurpose.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dQ), "../../icons/IconPurseCircleFill.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dR), "../../icons/IconQuestion.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dS), "../../icons/IconRadio.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dT), "../../icons/IconRadioFill.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dU), "../../icons/IconRefresh.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dV), "../../icons/IconRevertedTriangle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dW), "../../icons/IconRobotScreen.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dX), "../../icons/IconRoundTick.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dY), "../../icons/IconSearch.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.dZ), "../../icons/IconSearchOptimised.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d_), "../../icons/IconSectionHide.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.d$), "../../icons/IconSend.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e0), "../../icons/IconSettings.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e1), "../../icons/IconSettingsBold.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e2), "../../icons/IconSize.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e3), "../../icons/IconSliderKnobs.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e4), "../../icons/IconSortIdle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e5), "../../icons/IconSparkle.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e6), "../../icons/IconSpotlio.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e7), "../../icons/IconStar.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e8), "../../icons/IconStatistics.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.e9), "../../icons/IconStopChat.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ea), "../../icons/IconStreamLineHub.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.eb), "../../icons/IconStreamLineHubNewLogo.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ec), "../../icons/IconSun.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ed), "../../icons/IconSwap.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ee), "../../icons/IconText.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ef), "../../icons/IconTextThumbnail.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.eg), "../../icons/IconThinDocument.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.eh), "../../icons/IconThinFile.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ei), "../../icons/IconThumbsDown.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ej), "../../icons/IconTick.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ek), "../../icons/IconUser.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.el), "../../icons/IconVerticalDots.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.em), "../../icons/IconVideoCamera.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.en), "../../icons/IconWarningOctal.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.eo), "../../icons/IconX.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.ep), "../../icons/IconZip.vue": () => import("./icons-ByG7XPWY.js").then((o) => o.eq) }), `../../icons/${d}.vue`, 4).catch(() => import("./icons-ByG7XPWY.js").then((o) => o.dX))
|
|
455
|
-
) :
|
|
456
|
-
return (d, o) => (c(), f("div",
|
|
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
|
+
) : We, u = M(() => r(s.assistantIcon));
|
|
456
|
+
return (d, o) => (c(), f("div", Zt, [
|
|
457
457
|
a("div", {
|
|
458
458
|
class: F(["freddy-assistants-header__avatar-section", {
|
|
459
459
|
"freddy-assistants-header__avatar-section--with-image": d.assistantImage,
|
|
460
460
|
"freddy-assistants-header__avatar-section--no-image": !d.assistantImage
|
|
461
461
|
}])
|
|
462
462
|
}, [
|
|
463
|
-
d.assistantImage ? (c(), f("div",
|
|
463
|
+
d.assistantImage ? (c(), f("div", qt, [
|
|
464
464
|
a("img", {
|
|
465
465
|
src: d.assistantImage,
|
|
466
466
|
alt: "Assistant Avatar",
|
|
467
467
|
class: "freddy-assistants-header__avatar-image"
|
|
468
|
-
}, null, 8,
|
|
468
|
+
}, null, 8, Wt),
|
|
469
469
|
a("button", {
|
|
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
|
-
])) : (c(), f("div",
|
|
475
|
+
])) : (c(), f("div", Jt, [
|
|
476
476
|
(c(), E(K(u.value), { class: "freddy-assistants-header__icon-component" })),
|
|
477
477
|
a("button", {
|
|
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
|
-
d.assistantImage && d.assistantIcon ? (c(), f("div",
|
|
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
|
-
a("div",
|
|
489
|
-
a("div",
|
|
490
|
-
a("div",
|
|
491
|
-
a("div",
|
|
488
|
+
a("div", Yt, [
|
|
489
|
+
a("div", Xt, [
|
|
490
|
+
a("div", eo, [
|
|
491
|
+
a("div", to, B(d.assistantId || "assistant ID"), 1)
|
|
492
492
|
])
|
|
493
493
|
])
|
|
494
494
|
]),
|
|
495
|
-
a("div",
|
|
495
|
+
a("div", oo, [
|
|
496
496
|
a("button", {
|
|
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
|
])
|
|
504
504
|
]));
|
|
505
505
|
}
|
|
506
|
-
}),
|
|
506
|
+
}), no = ["src", "alt"], so = {
|
|
507
507
|
key: 0,
|
|
508
508
|
class: "freddy-avatar-choosing__border"
|
|
509
|
-
},
|
|
509
|
+
}, io = {
|
|
510
510
|
key: 1,
|
|
511
511
|
class: "freddy-avatar-choosing__check-icon"
|
|
512
|
-
},
|
|
512
|
+
}, ao = /* @__PURE__ */ N({
|
|
513
513
|
__name: "AvatarChoosing",
|
|
514
514
|
props: {
|
|
515
515
|
imageUrl: {},
|
|
@@ -534,17 +534,17 @@ const Pt = [
|
|
|
534
534
|
src: i.imageUrl,
|
|
535
535
|
alt: i.altText,
|
|
536
536
|
class: "freddy-avatar-choosing__image"
|
|
537
|
-
}, null, 8,
|
|
538
|
-
i.isSelected ? (c(), f("div",
|
|
539
|
-
i.isSelected ? (c(), f("div",
|
|
537
|
+
}, null, 8, no),
|
|
538
|
+
i.isSelected ? (c(), f("div", so)) : w("", !0),
|
|
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 = {
|
|
545
545
|
key: 0,
|
|
546
546
|
class: "freddy-avatar-list__title"
|
|
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({
|
|
@@ -558,7 +558,7 @@ const Pt = [
|
|
|
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({
|
|
@@ -572,32 +572,36 @@ const Pt = [
|
|
|
572
572
|
}
|
|
573
573
|
}), (d, o) => {
|
|
574
574
|
var g;
|
|
575
|
-
return c(), f("div",
|
|
576
|
-
d.title ? (c(), f("h3",
|
|
577
|
-
a("div",
|
|
578
|
-
(c(!0), f(O, null,
|
|
579
|
-
key:
|
|
580
|
-
imageUrl:
|
|
581
|
-
isSelected: l.value ===
|
|
582
|
-
altText:
|
|
583
|
-
onClick: (
|
|
575
|
+
return c(), f("div", lo, [
|
|
576
|
+
d.title ? (c(), f("h3", co, B(d.title), 1)) : w("", !0),
|
|
577
|
+
a("div", ro, [
|
|
578
|
+
(c(!0), f(O, null, j(d.avatars, (b) => (c(), E(D(ao), {
|
|
579
|
+
key: b.id,
|
|
580
|
+
imageUrl: b.url,
|
|
581
|
+
isSelected: l.value === b.id,
|
|
582
|
+
altText: b.name,
|
|
583
|
+
onClick: ($) => u(b.id)
|
|
584
584
|
}, null, 8, ["imageUrl", "isSelected", "altText", "onClick"]))), 128))
|
|
585
585
|
]),
|
|
586
|
-
d.showSelectedInfo ? (c(), f("div",
|
|
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
|
-
}),
|
|
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,142 +621,143 @@ const Pt = [
|
|
|
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
|
-
let
|
|
625
|
-
for (const [
|
|
628
|
+
let p = 1;
|
|
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
|
-
id:
|
|
630
|
-
name:
|
|
633
|
+
id: p++,
|
|
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 =
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
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(
|
|
645
|
+
(p) => {
|
|
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
|
-
}, I = (t) => {
|
|
655
|
-
|
|
661
|
+
}, I = (t, p) => {
|
|
662
|
+
d.value = t, o.value = p, r("imageSelect", t);
|
|
656
663
|
}, C = (t) => {
|
|
657
|
-
|
|
658
|
-
},
|
|
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
|
-
}), (t,
|
|
671
|
-
a("div",
|
|
672
|
-
a("div",
|
|
673
|
-
a("div",
|
|
674
|
-
a("h1",
|
|
679
|
+
}), (t, p) => (c(), f("div", po, [
|
|
680
|
+
a("div", ho, [
|
|
681
|
+
a("div", fo, [
|
|
682
|
+
a("div", mo, [
|
|
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(
|
|
681
|
-
], 8,
|
|
689
|
+
L(D(ee), { class: "freddy-choose-assistant-avatar__close-icon" })
|
|
690
|
+
], 8, yo)
|
|
682
691
|
])
|
|
683
692
|
]),
|
|
684
|
-
a("p",
|
|
693
|
+
a("p", go, B(t.description), 1)
|
|
685
694
|
]),
|
|
686
|
-
a("div",
|
|
687
|
-
a("div",
|
|
688
|
-
|
|
689
|
-
a("div",
|
|
690
|
-
a("div",
|
|
695
|
+
a("div", Io, [
|
|
696
|
+
a("div", bo, [
|
|
697
|
+
p[1] || (p[1] = a("h3", { class: "freddy-choose-assistant-avatar__section-title" }, " Choose the icon ", -1)),
|
|
698
|
+
a("div", ko, [
|
|
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(
|
|
697
|
-
], 8,
|
|
698
|
-
L(
|
|
699
|
-
searchInput:
|
|
705
|
+
L(D(Je), { class: "freddy-choose-assistant-avatar__upload-icon" })
|
|
706
|
+
], 8, Co),
|
|
707
|
+
L(D(_e), {
|
|
708
|
+
searchInput: $.value,
|
|
700
709
|
"onUpdate:searchInput": [
|
|
701
|
-
|
|
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
|
-
a("div",
|
|
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", xo, B(((n = w.name) == null ? void 0 : n.charAt(0)) || "?"), 1))
|
|
726
|
-
])
|
|
727
|
-
], 10, To);
|
|
728
|
-
}), 128))
|
|
717
|
+
a("div", wo, [
|
|
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
|
-
|
|
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)),
|
|
738
743
|
a("div", Ao, [
|
|
739
|
-
(c(!0), f(O, null,
|
|
740
|
-
key:
|
|
741
|
-
voiceName:
|
|
742
|
-
isSelected:
|
|
743
|
-
onClick: (n) => C(
|
|
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
|
-
]),
|
|
751
|
+
])) : w("", !0),
|
|
747
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: !
|
|
759
|
+
onClick: k,
|
|
760
|
+
disabled: !V.value
|
|
756
761
|
}, B(t.saveButtonText), 9, Fo)
|
|
757
762
|
])
|
|
758
763
|
])
|
|
@@ -782,7 +787,7 @@ const Pt = [
|
|
|
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,29 +805,29 @@ const Pt = [
|
|
|
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", Mo, B(
|
|
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)) :
|
|
829
|
+
class: F({ "freddy-plugin-active-tab-bottom": u.value === b.id })
|
|
830
|
+
}, null, 2)) : w("", !0)
|
|
826
831
|
], 42, Bo))), 128))
|
|
827
832
|
], 2));
|
|
828
833
|
}
|
|
@@ -830,7 +835,7 @@ const Pt = [
|
|
|
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"
|
|
@@ -865,56 +870,56 @@ const Pt = [
|
|
|
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
|
-
title:
|
|
871
|
-
badge:
|
|
872
|
-
originalId:
|
|
875
|
+
title: h.label,
|
|
876
|
+
badge: h.count,
|
|
877
|
+
originalId: h.id
|
|
873
878
|
}))), d = M(() => {
|
|
874
|
-
const
|
|
875
|
-
return
|
|
876
|
-
}), o = (
|
|
877
|
-
const t = u.value.find((
|
|
879
|
+
const h = s.tabs.findIndex((t) => t.id === l.value);
|
|
880
|
+
return h >= 0 ? h + 1 : 1;
|
|
881
|
+
}), o = (h) => {
|
|
882
|
+
const t = u.value.find((p) => p.id === h);
|
|
878
883
|
t && t.originalId && v(t.originalId);
|
|
879
884
|
}, g = M(() => {
|
|
880
885
|
if (!i.value) return s.rules;
|
|
881
|
-
const
|
|
886
|
+
const h = i.value.toLowerCase();
|
|
882
887
|
return s.rules.filter(
|
|
883
888
|
(t) => {
|
|
884
|
-
var
|
|
885
|
-
return t.title.toLowerCase().includes(
|
|
889
|
+
var p;
|
|
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
|
-
}),
|
|
889
|
-
const
|
|
893
|
+
}), b = M(() => {
|
|
894
|
+
const h = [], t = s.totalPages, p = r.value;
|
|
890
895
|
if (t <= 7)
|
|
891
|
-
for (let
|
|
892
|
-
|
|
896
|
+
for (let S = 1; S <= t; S++)
|
|
897
|
+
h.push(S);
|
|
893
898
|
else {
|
|
894
|
-
|
|
895
|
-
for (let
|
|
896
|
-
|
|
897
|
-
|
|
899
|
+
h.push(1), p > 3 && h.push("...");
|
|
900
|
+
for (let S = Math.max(2, p - 1); S <= Math.min(t - 1, p + 1); S++)
|
|
901
|
+
h.push(S);
|
|
902
|
+
p < t - 2 && h.push("..."), h.push(t);
|
|
898
903
|
}
|
|
899
|
-
return
|
|
900
|
-
}),
|
|
904
|
+
return h;
|
|
905
|
+
}), $ = () => {
|
|
901
906
|
e("search", i.value);
|
|
902
907
|
}, V = () => {
|
|
903
908
|
e("createRule");
|
|
904
|
-
}, v = (
|
|
905
|
-
l.value =
|
|
906
|
-
}, T = (
|
|
907
|
-
e("edit",
|
|
908
|
-
},
|
|
909
|
-
e("view",
|
|
910
|
-
},
|
|
911
|
-
r.value =
|
|
912
|
-
},
|
|
913
|
-
r.value > 1 &&
|
|
914
|
-
},
|
|
915
|
-
r.value < s.totalPages &&
|
|
909
|
+
}, v = (h) => {
|
|
910
|
+
l.value = h, e("tabChange", h);
|
|
911
|
+
}, T = (h) => {
|
|
912
|
+
e("edit", h);
|
|
913
|
+
}, k = (h) => {
|
|
914
|
+
e("view", h);
|
|
915
|
+
}, I = (h) => {
|
|
916
|
+
r.value = h, e("pageChange", h);
|
|
917
|
+
}, C = () => {
|
|
918
|
+
r.value > 1 && I(r.value - 1);
|
|
919
|
+
}, P = () => {
|
|
920
|
+
r.value < s.totalPages && I(r.value + 1);
|
|
916
921
|
};
|
|
917
|
-
return (
|
|
922
|
+
return (h, t) => (c(), f("div", Eo, [
|
|
918
923
|
a("div", No, [
|
|
919
924
|
t[3] || (t[3] = a("div", { class: "header-content" }, [
|
|
920
925
|
a("h1", { class: "title" }, "Rules Management"),
|
|
@@ -922,7 +927,7 @@ const Pt = [
|
|
|
922
927
|
], -1)),
|
|
923
928
|
a("div", Ro, [
|
|
924
929
|
a("div", Oo, [
|
|
925
|
-
L(
|
|
930
|
+
L(D(Ye), {
|
|
926
931
|
class: "search-icon",
|
|
927
932
|
"aria-hidden": "true"
|
|
928
933
|
}),
|
|
@@ -930,8 +935,8 @@ const Pt = [
|
|
|
930
935
|
type: "text",
|
|
931
936
|
class: "search-input",
|
|
932
937
|
placeholder: "Search",
|
|
933
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
934
|
-
onInput:
|
|
938
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => i.value = p),
|
|
939
|
+
onInput: $,
|
|
935
940
|
"aria-label": "Search rules"
|
|
936
941
|
}, null, 544), [
|
|
937
942
|
[Y, i.value]
|
|
@@ -946,12 +951,12 @@ const Pt = [
|
|
|
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
|
}),
|
|
@@ -974,7 +979,7 @@ const Pt = [
|
|
|
974
979
|
id: `tabpanel-${l.value}`,
|
|
975
980
|
"aria-labelledby": `tab-${l.value}`
|
|
976
981
|
}, [
|
|
977
|
-
a("table",
|
|
982
|
+
a("table", jo, [
|
|
978
983
|
a("thead", null, [
|
|
979
984
|
a("tr", null, [
|
|
980
985
|
t[5] || (t[5] = a("th", {
|
|
@@ -988,7 +993,7 @@ const Pt = [
|
|
|
988
993
|
a("th", Ko, [
|
|
989
994
|
t[4] || (t[4] = J(" Dependencies ", -1)),
|
|
990
995
|
a("span", Go, [
|
|
991
|
-
L(
|
|
996
|
+
L(D(ce), { "aria-hidden": "true" })
|
|
992
997
|
])
|
|
993
998
|
]),
|
|
994
999
|
t[7] || (t[7] = a("th", {
|
|
@@ -1002,116 +1007,116 @@ const Pt = [
|
|
|
1002
1007
|
])
|
|
1003
1008
|
]),
|
|
1004
1009
|
a("tbody", null, [
|
|
1005
|
-
(c(!0), f(O, null,
|
|
1006
|
-
key:
|
|
1010
|
+
(c(!0), f(O, null, j(g.value, (p) => (c(), f("tr", {
|
|
1011
|
+
key: p.id,
|
|
1007
1012
|
class: "rule-row",
|
|
1008
1013
|
role: "row"
|
|
1009
1014
|
}, [
|
|
1010
1015
|
a("td", Zo, [
|
|
1011
|
-
a("div", qo, B(
|
|
1012
|
-
a("div", Wo, B(
|
|
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
|
-
class: F(["status-badge",
|
|
1017
|
-
"aria-label": `Status: ${
|
|
1018
|
-
}, B(
|
|
1021
|
+
class: F(["status-badge", p.status.toLowerCase()]),
|
|
1022
|
+
"aria-label": `Status: ${p.status}`
|
|
1023
|
+
}, B(p.status), 11, Jo)
|
|
1019
1024
|
]),
|
|
1020
1025
|
a("td", Qo, [
|
|
1021
1026
|
a("span", {
|
|
1022
|
-
"aria-label": `${
|
|
1023
|
-
}, B(
|
|
1027
|
+
"aria-label": `${p.dependencies} dependencies`
|
|
1028
|
+
}, B(p.dependencies), 9, Yo)
|
|
1024
1029
|
]),
|
|
1025
1030
|
a("td", Xo, [
|
|
1026
1031
|
a("div", en, [
|
|
1027
1032
|
a("img", {
|
|
1028
|
-
src:
|
|
1029
|
-
alt: `${
|
|
1033
|
+
src: p.creator.avatar,
|
|
1034
|
+
alt: `${p.creator.name} avatar`,
|
|
1030
1035
|
class: "creator-avatar"
|
|
1031
1036
|
}, null, 8, tn),
|
|
1032
1037
|
a("div", on, [
|
|
1033
|
-
a("div", nn, B(
|
|
1034
|
-
a("div", sn, B(
|
|
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
1043
|
a("td", an, [
|
|
1039
1044
|
a("span", {
|
|
1040
|
-
class: F(["status-badge",
|
|
1041
|
-
"aria-label": `Status: ${
|
|
1042
|
-
}, B(
|
|
1045
|
+
class: F(["status-badge", p.status.toLowerCase()]),
|
|
1046
|
+
"aria-label": `Status: ${p.status}`
|
|
1047
|
+
}, B(p.status), 11, ln),
|
|
1043
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
|
-
"aria-label": `Edit ${
|
|
1056
|
+
"aria-label": `Edit ${p.title}`,
|
|
1052
1057
|
tabindex: "0"
|
|
1053
1058
|
}, [
|
|
1054
|
-
L(
|
|
1059
|
+
L(D(pe), { "aria-hidden": "true" })
|
|
1055
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
|
-
"aria-label": `View ${
|
|
1068
|
+
"aria-label": `View ${p.title}`,
|
|
1064
1069
|
tabindex: "0"
|
|
1065
1070
|
}, [
|
|
1066
|
-
L(
|
|
1071
|
+
L(D(et), { "aria-hidden": "true" })
|
|
1067
1072
|
], 40, dn)
|
|
1068
1073
|
])
|
|
1069
1074
|
])
|
|
1070
1075
|
]))), 128))
|
|
1071
1076
|
])
|
|
1072
1077
|
])
|
|
1073
|
-
], 8,
|
|
1078
|
+
], 8, Uo),
|
|
1074
1079
|
a("nav", un, [
|
|
1075
1080
|
a("button", {
|
|
1076
1081
|
class: "pagination-btn",
|
|
1077
1082
|
disabled: r.value === 1,
|
|
1078
|
-
onClick:
|
|
1083
|
+
onClick: C,
|
|
1079
1084
|
onKeydown: [
|
|
1080
|
-
z(
|
|
1081
|
-
z(
|
|
1085
|
+
z(C, ["enter"]),
|
|
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
1090
|
}, " Previous ", 40, pn),
|
|
1086
1091
|
a("div", hn, [
|
|
1087
|
-
(c(!0), f(O, null,
|
|
1088
|
-
key:
|
|
1092
|
+
(c(!0), f(O, null, j(b.value, (p) => (c(), f("button", {
|
|
1093
|
+
key: p,
|
|
1089
1094
|
class: F([
|
|
1090
1095
|
"page-number",
|
|
1091
|
-
{ active: r.value ===
|
|
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
|
-
disabled:
|
|
1099
|
-
"aria-label":
|
|
1100
|
-
"aria-current": r.value ===
|
|
1101
|
-
tabindex:
|
|
1103
|
+
disabled: p === "...",
|
|
1104
|
+
"aria-label": p === "..." ? "More pages" : `Go to page ${p}`,
|
|
1105
|
+
"aria-current": r.value === p ? "page" : void 0,
|
|
1106
|
+
tabindex: p === "..." ? -1 : 0,
|
|
1102
1107
|
role: "listitem"
|
|
1103
|
-
}, B(
|
|
1108
|
+
}, B(p), 43, fn))), 128))
|
|
1104
1109
|
]),
|
|
1105
1110
|
a("button", {
|
|
1106
1111
|
class: "pagination-btn",
|
|
1107
|
-
disabled: r.value ===
|
|
1108
|
-
onClick:
|
|
1112
|
+
disabled: r.value === h.totalPages,
|
|
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
|
-
tabindex: r.value ===
|
|
1119
|
+
tabindex: r.value === h.totalPages ? -1 : 0
|
|
1115
1120
|
}, " Next ", 40, mn)
|
|
1116
1121
|
])
|
|
1117
1122
|
]));
|
|
@@ -1134,7 +1139,7 @@ const Pt = [
|
|
|
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", {
|
|
@@ -1143,26 +1148,26 @@ const Pt = [
|
|
|
1143
1148
|
}, [
|
|
1144
1149
|
a("div", yn, [
|
|
1145
1150
|
a("div", gn, [
|
|
1146
|
-
L(
|
|
1151
|
+
L(D(tt), { class: "freddy-vector-frame__icon" })
|
|
1147
1152
|
]),
|
|
1148
1153
|
a("div", In, B(r.title), 1),
|
|
1149
|
-
i.value ?
|
|
1154
|
+
i.value ? w("", !0) : (c(), f("div", bn, [
|
|
1150
1155
|
a("div", kn, [
|
|
1151
|
-
L(
|
|
1156
|
+
L(D(ot), { class: "freddy-vector-frame__badge-icon" }),
|
|
1152
1157
|
a("div", _n, B(r.badgeText), 1)
|
|
1153
1158
|
])
|
|
1154
1159
|
])),
|
|
1155
1160
|
i.value ? (c(), f("div", Cn, [
|
|
1156
|
-
L(
|
|
1157
|
-
])) :
|
|
1161
|
+
L(D(nt), { class: "freddy-vector-frame__tick-icon" })
|
|
1162
|
+
])) : w("", !0)
|
|
1158
1163
|
]),
|
|
1159
|
-
i.value ? (c(), f("div", wn)) :
|
|
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
|
-
}, Hn = { class: "freddy-vector-section__show-more-text" },
|
|
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,11 +1251,11 @@ const Pt = [
|
|
|
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);
|
|
@@ -1267,14 +1272,14 @@ const Pt = [
|
|
|
1267
1272
|
a("div", Bn, [
|
|
1268
1273
|
T[2] || (T[2] = J(" Vector Stores ", -1)),
|
|
1269
1274
|
a("div", Mn, [
|
|
1270
|
-
L(
|
|
1275
|
+
L(D(fe), { class: "freddy-vector-section__help-icon-svg" })
|
|
1271
1276
|
])
|
|
1272
1277
|
]),
|
|
1273
1278
|
a("div", Ln, [
|
|
1274
|
-
L(
|
|
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,
|
|
@@ -1286,37 +1291,37 @@ const Pt = [
|
|
|
1286
1291
|
a("div", Vn, [
|
|
1287
1292
|
a("div", En, [
|
|
1288
1293
|
a("div", Nn, [
|
|
1289
|
-
L(
|
|
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
1299
|
a("div", Rn, B(d.value) + " databases found ", 1)
|
|
1295
1300
|
]),
|
|
1296
1301
|
a("div", On, [
|
|
1297
|
-
(c(!0), f(O, null,
|
|
1298
|
-
key:
|
|
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
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
1312
|
a("span", Hn, "Show " + B(g.value) + " more", 1),
|
|
1308
|
-
L(
|
|
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
|
-
a("div",
|
|
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
|
])
|
|
@@ -1340,7 +1345,7 @@ const Pt = [
|
|
|
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({
|
|
@@ -1355,18 +1360,18 @@ const Pt = [
|
|
|
1355
1360
|
}), (d, o) => {
|
|
1356
1361
|
var g;
|
|
1357
1362
|
return c(), f("div", Gn, [
|
|
1358
|
-
d.title ? (c(), f("h3", Zn, B(d.title), 1)) :
|
|
1363
|
+
d.title ? (c(), f("h3", Zn, B(d.title), 1)) : w("", !0),
|
|
1359
1364
|
a("div", qn, [
|
|
1360
|
-
(c(!0), f(O, null,
|
|
1361
|
-
key:
|
|
1362
|
-
voiceName:
|
|
1363
|
-
isSelected: l.value ===
|
|
1364
|
-
onClick: (
|
|
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
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
|
}
|
|
@@ -1376,7 +1381,7 @@ const Pt = [
|
|
|
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: {},
|
|
@@ -1395,7 +1400,7 @@ const Pt = [
|
|
|
1395
1400
|
a("div", Qn, [
|
|
1396
1401
|
a("div", Yn, [
|
|
1397
1402
|
a("div", Xn, [
|
|
1398
|
-
L(
|
|
1403
|
+
L(D(at), { class: "freddy-voice-selection__triangle-icon" })
|
|
1399
1404
|
])
|
|
1400
1405
|
])
|
|
1401
1406
|
]),
|
|
@@ -1405,7 +1410,7 @@ const Pt = [
|
|
|
1405
1410
|
])
|
|
1406
1411
|
]),
|
|
1407
1412
|
i.isSelected ? (c(), f("div", ns, [
|
|
1408
|
-
L(
|
|
1413
|
+
L(D(he), { class: "freddy-voice-selection__check-icon-svg" })
|
|
1409
1414
|
])) : (c(), f("div", ss))
|
|
1410
1415
|
])
|
|
1411
1416
|
], 2));
|
|
@@ -1420,7 +1425,7 @@ const Pt = [
|
|
|
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(() => {
|
|
@@ -1461,7 +1466,7 @@ const Pt = [
|
|
|
1461
1466
|
innerHTML: u.text
|
|
1462
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
|
})
|
|
@@ -1499,51 +1504,51 @@ const Pt = [
|
|
|
1499
1504
|
emits: ["click", "leftIconClick", "rightIconClick"],
|
|
1500
1505
|
setup(y, { emit: m }) {
|
|
1501
1506
|
const s = y, e = {
|
|
1502
|
-
IconSearch: R(() => import("./icons-
|
|
1503
|
-
IconUser: R(() => import("./icons-
|
|
1504
|
-
IconDelete: R(() => import("./icons-
|
|
1505
|
-
IconSend: R(() => import("./icons-
|
|
1506
|
-
IconPlus: R(() => import("./icons-
|
|
1507
|
-
IconEdit: R(() => import("./icons-
|
|
1508
|
-
IconCross: R(() => import("./icons-
|
|
1509
|
-
IconTick: R(() => import("./icons-
|
|
1507
|
+
IconSearch: R(() => import("./icons-GUqeJvd4.js").then((v) => v.dZ)),
|
|
1508
|
+
IconUser: R(() => import("./icons-GUqeJvd4.js").then((v) => v.el)),
|
|
1509
|
+
IconDelete: R(() => import("./icons-GUqeJvd4.js").then((v) => v.cN)),
|
|
1510
|
+
IconSend: R(() => import("./icons-GUqeJvd4.js").then((v) => v.e0)),
|
|
1511
|
+
IconPlus: R(() => import("./icons-GUqeJvd4.js").then((v) => v.dK)),
|
|
1512
|
+
IconEdit: R(() => import("./icons-GUqeJvd4.js").then((v) => v.cV)),
|
|
1513
|
+
IconCross: R(() => import("./icons-GUqeJvd4.js").then((v) => v.cI)),
|
|
1514
|
+
IconTick: R(() => import("./icons-GUqeJvd4.js").then((v) => v.ek)),
|
|
1510
1515
|
IconArrowLeft: R(
|
|
1511
|
-
() => import("./icons-
|
|
1516
|
+
() => import("./icons-GUqeJvd4.js").then((v) => v.cd)
|
|
1512
1517
|
),
|
|
1513
1518
|
IconArrowDown: R(
|
|
1514
|
-
() => import("./icons-
|
|
1519
|
+
() => import("./icons-GUqeJvd4.js").then((v) => v.cc)
|
|
1515
1520
|
),
|
|
1516
|
-
IconArrowUp: R(() => import("./icons-
|
|
1521
|
+
IconArrowUp: R(() => import("./icons-GUqeJvd4.js").then((v) => v.ce)),
|
|
1517
1522
|
IconChevronDown: R(
|
|
1518
|
-
() => import("./icons-
|
|
1523
|
+
() => import("./icons-GUqeJvd4.js").then((v) => v.cq)
|
|
1519
1524
|
),
|
|
1520
1525
|
IconChevronUp: R(
|
|
1521
|
-
() => import("./icons-
|
|
1526
|
+
() => import("./icons-GUqeJvd4.js").then((v) => v.ct)
|
|
1522
1527
|
),
|
|
1523
1528
|
IconChevronLeft: R(
|
|
1524
|
-
() => import("./icons-
|
|
1529
|
+
() => import("./icons-GUqeJvd4.js").then((v) => v.cr)
|
|
1525
1530
|
),
|
|
1526
1531
|
IconChevronRight: R(
|
|
1527
|
-
() => import("./icons-
|
|
1532
|
+
() => import("./icons-GUqeJvd4.js").then((v) => v.cs)
|
|
1528
1533
|
),
|
|
1529
1534
|
IconSettings: R(
|
|
1530
|
-
() => import("./icons-
|
|
1535
|
+
() => import("./icons-GUqeJvd4.js").then((v) => v.e1)
|
|
1531
1536
|
),
|
|
1532
|
-
IconHome: R(() => import("./icons-
|
|
1537
|
+
IconHome: R(() => import("./icons-GUqeJvd4.js").then((v) => v.df)),
|
|
1533
1538
|
IconDownload: R(
|
|
1534
|
-
() => import("./icons-
|
|
1539
|
+
() => import("./icons-GUqeJvd4.js").then((v) => v.cS)
|
|
1535
1540
|
),
|
|
1536
|
-
IconRefresh: R(() => import("./icons-
|
|
1537
|
-
IconCopy: R(() => import("./icons-
|
|
1538
|
-
IconEye: R(() => import("./icons-
|
|
1539
|
-
IconLock: R(() => import("./icons-
|
|
1540
|
-
IconStar: R(() => import("./icons-
|
|
1541
|
-
IconFilter: R(() => import("./icons-
|
|
1542
|
-
IconFile: R(() => import("./icons-
|
|
1543
|
-
IconFolder: R(() => import("./icons-
|
|
1544
|
-
IconText: R(() => import("./icons-
|
|
1545
|
-
IconLink04: R(() => import("./icons-
|
|
1546
|
-
}, i = M(() => s.leftIcon && e[s.leftIcon] || null), l = M(() => s.rightIcon && e[s.rightIcon] || null), r = m, u =
|
|
1541
|
+
IconRefresh: R(() => import("./icons-GUqeJvd4.js").then((v) => v.dV)),
|
|
1542
|
+
IconCopy: R(() => import("./icons-GUqeJvd4.js").then((v) => v.cH)),
|
|
1543
|
+
IconEye: R(() => import("./icons-GUqeJvd4.js").then((v) => v.c_)),
|
|
1544
|
+
IconLock: R(() => import("./icons-GUqeJvd4.js").then((v) => v.ds)),
|
|
1545
|
+
IconStar: R(() => import("./icons-GUqeJvd4.js").then((v) => v.e8)),
|
|
1546
|
+
IconFilter: R(() => import("./icons-GUqeJvd4.js").then((v) => v.d4)),
|
|
1547
|
+
IconFile: R(() => import("./icons-GUqeJvd4.js").then((v) => v.d1)),
|
|
1548
|
+
IconFolder: R(() => import("./icons-GUqeJvd4.js").then((v) => v.d5)),
|
|
1549
|
+
IconText: R(() => import("./icons-GUqeJvd4.js").then((v) => v.ef)),
|
|
1550
|
+
IconLink04: R(() => import("./icons-GUqeJvd4.js").then((v) => v.dn))
|
|
1551
|
+
}, i = M(() => s.leftIcon && e[s.leftIcon] || null), l = M(() => s.rightIcon && e[s.rightIcon] || null), r = m, u = A(!1), d = M(() => [
|
|
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 Pt = [
|
|
|
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 Pt = [
|
|
|
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 Pt = [
|
|
|
1587
1592
|
class: "freddy-plugins-button-spinner",
|
|
1588
1593
|
"aria-hidden": "true"
|
|
1589
1594
|
}, null, -1)),
|
|
1590
|
-
v.loadingText || v.label ? (c(), f("span", cs, B(v.loadingText || v.label), 1)) :
|
|
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,15 +1602,15 @@ const Pt = [
|
|
|
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", rs, B(v.label), 1)) :
|
|
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
1615
|
], 42, ls)
|
|
1611
1616
|
]),
|
|
@@ -1618,7 +1623,7 @@ const Pt = [
|
|
|
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 Pt = [
|
|
|
1626
1631
|
class: "freddy-plugins-button-spinner",
|
|
1627
1632
|
"aria-hidden": "true"
|
|
1628
1633
|
}, null, -1)),
|
|
1629
|
-
v.loadingText || v.label ? (c(), f("span", us, B(v.loadingText || v.label), 1)) :
|
|
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,19 +1641,19 @@ const Pt = [
|
|
|
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", ps, B(v.label), 1)) :
|
|
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
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({
|
|
@@ -1804,37 +1809,37 @@ const Pt = [
|
|
|
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 ?
|
|
1831
|
+
g.iconOnly ? w("", !0) : (c(), f("span", ms, B(u($)), 1))
|
|
1827
1832
|
], 10, fs))), 128))
|
|
1828
1833
|
], 6));
|
|
1829
1834
|
}
|
|
1830
|
-
}), ic = /* @__PURE__ */ H(vs, [["__scopeId", "data-v-22e5ee7c"]]), ys = ["innerHTML"],
|
|
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,11 +1877,11 @@ const Pt = [
|
|
|
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>`;
|
|
@@ -1940,7 +1945,7 @@ const Pt = [
|
|
|
1940
1945
|
"stroke-linecap": "round",
|
|
1941
1946
|
"stroke-linejoin": "round"
|
|
1942
1947
|
}, null, 8, _s)
|
|
1943
|
-
])) :
|
|
1948
|
+
])) : w("", !0)
|
|
1944
1949
|
], 10, gs));
|
|
1945
1950
|
}
|
|
1946
1951
|
}), Cs = ["aria-label"], ws = ["innerHTML"], Ss = { key: 1 }, Ts = /* @__PURE__ */ N({
|
|
@@ -1954,13 +1959,13 @@ const Pt = [
|
|
|
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 Pt = [
|
|
|
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,26 +1988,26 @@ const Pt = [
|
|
|
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, ws)) : (c(), f("span", Ss, B(
|
|
2007
|
+
innerHTML: b.text
|
|
2008
|
+
}, null, 8, ws)) : (c(), f("span", Ss, B(b.text), 1))
|
|
2004
2009
|
], !0)
|
|
2005
|
-
], 10, Cs)) :
|
|
2010
|
+
], 10, Cs)) : w("", !0)
|
|
2006
2011
|
]),
|
|
2007
2012
|
_: 3
|
|
2008
2013
|
})
|
|
@@ -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
|
};
|
|
@@ -2323,10 +2328,10 @@ const ue = new xs(
|
|
|
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
|
-
}, Os = { class: "freddy-plugins-changes-header" }, zs = { class: "freddy-plugins-header-left" }, Hs = { class: "freddy-plugins-change-title" },
|
|
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 = {
|
|
@@ -2358,11 +2363,11 @@ const ue = new xs(
|
|
|
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 xs(
|
|
|
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 xs(
|
|
|
2392
2397
|
default:
|
|
2393
2398
|
return "Text has been improved";
|
|
2394
2399
|
}
|
|
2395
|
-
},
|
|
2396
|
-
var
|
|
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 xs(
|
|
|
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 xs(
|
|
|
2420
2425
|
// Explicitly set to false for new messages
|
|
2421
2426
|
changes: _.hasChanges ? {
|
|
2422
2427
|
title: _.changeTitle || g(_.action),
|
|
2423
|
-
description: _.changeDescription ||
|
|
2424
|
-
added: ((
|
|
2425
|
-
removed: ((
|
|
2428
|
+
description: _.changeDescription || b(_.action),
|
|
2429
|
+
added: ((p = _.stats) == null ? void 0 : p.added) || 0,
|
|
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 xs(
|
|
|
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 xs(
|
|
|
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,20 +2452,20 @@ const ue = new xs(
|
|
|
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
|
}
|
|
2454
2459
|
}, V = async () => {
|
|
2455
2460
|
const t = l.value.trim();
|
|
2456
2461
|
if (!t) return;
|
|
2457
|
-
const
|
|
2462
|
+
const p = {
|
|
2458
2463
|
id: Date.now().toString(),
|
|
2459
2464
|
content: t,
|
|
2460
2465
|
sender: "user",
|
|
2461
2466
|
timestamp: /* @__PURE__ */ new Date()
|
|
2462
2467
|
};
|
|
2463
|
-
d.value.push(
|
|
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,134 +2473,134 @@ const ue = new xs(
|
|
|
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
|
});
|
|
2475
|
-
},
|
|
2480
|
+
}, I = (t) => {
|
|
2476
2481
|
i("acceptChanges", t);
|
|
2477
|
-
},
|
|
2482
|
+
}, C = (t) => {
|
|
2478
2483
|
t.changes && (t.changes = void 0), i("denyChanges", t);
|
|
2479
2484
|
};
|
|
2480
2485
|
return m({
|
|
2481
|
-
addAIResponse: (t,
|
|
2482
|
-
const
|
|
2486
|
+
addAIResponse: (t, p) => {
|
|
2487
|
+
const S = {
|
|
2483
2488
|
id: Date.now().toString(),
|
|
2484
2489
|
content: t,
|
|
2485
2490
|
sender: "assistant",
|
|
2486
2491
|
timestamp: /* @__PURE__ */ new Date(),
|
|
2487
|
-
changes:
|
|
2492
|
+
changes: p
|
|
2488
2493
|
};
|
|
2489
|
-
d.value.push(
|
|
2494
|
+
d.value.push(S), k();
|
|
2490
2495
|
},
|
|
2491
2496
|
addAIResponseFromApi: (t) => {
|
|
2492
|
-
const
|
|
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,
|
|
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
2514
|
a("div", As, [
|
|
2510
|
-
(c(!0), f(O, null,
|
|
2511
|
-
key:
|
|
2512
|
-
class: F(["freddy-plugins-message",
|
|
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", Fs, B(
|
|
2519
|
+
S.sender === "user" ? (c(), f("div", Ds, [
|
|
2520
|
+
a("div", Fs, B(S.content), 1),
|
|
2516
2521
|
a("div", Bs, [
|
|
2517
2522
|
a("button", Ms, [
|
|
2518
|
-
L(
|
|
2523
|
+
L(D(Se), { class: "freddy-plugins-action-icon" })
|
|
2519
2524
|
]),
|
|
2520
2525
|
a("button", Ls, [
|
|
2521
|
-
L(
|
|
2526
|
+
L(D(pe), { class: "freddy-plugins-action-icon" })
|
|
2522
2527
|
])
|
|
2523
2528
|
])
|
|
2524
2529
|
])) : (c(), f("div", Vs, [
|
|
2525
2530
|
a("div", Es, [
|
|
2526
|
-
a("p", Ns, B(
|
|
2527
|
-
|
|
2531
|
+
a("p", Ns, B(S.content), 1),
|
|
2532
|
+
S.changes ? (c(), f("div", Rs, [
|
|
2528
2533
|
a("div", Os, [
|
|
2529
2534
|
a("div", zs, [
|
|
2530
|
-
L(
|
|
2531
|
-
a("span", Hs, B(
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
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),
|
|
2539
|
+
p[1] || (p[1] = a("span", { class: "freddy-plugins-changes-applied" }, "Changes applied", -1))
|
|
2535
2540
|
])
|
|
2536
2541
|
]),
|
|
2537
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", Gs, B(
|
|
2542
|
-
|
|
2543
|
-
L(
|
|
2544
|
-
|
|
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" }),
|
|
2549
|
+
p[4] || (p[4] = J(" Applied ", -1))
|
|
2545
2550
|
])) : (c(), f("div", Zs, [
|
|
2546
2551
|
a("button", {
|
|
2547
2552
|
class: "freddy-plugins-accept-btn",
|
|
2548
|
-
onClick: (_) =>
|
|
2553
|
+
onClick: (_) => I(S)
|
|
2549
2554
|
}, [
|
|
2550
|
-
L(
|
|
2551
|
-
|
|
2555
|
+
L(D(Te), { class: "freddy-plugins-btn-icon" }),
|
|
2556
|
+
p[2] || (p[2] = J(" Accept ", -1))
|
|
2552
2557
|
], 8, qs),
|
|
2553
2558
|
a("button", {
|
|
2554
2559
|
class: "freddy-plugins-deny-btn",
|
|
2555
|
-
onClick: (_) =>
|
|
2560
|
+
onClick: (_) => C(S)
|
|
2556
2561
|
}, [
|
|
2557
|
-
L(
|
|
2558
|
-
|
|
2562
|
+
L(D(ee), { class: "freddy-plugins-btn-icon" }),
|
|
2563
|
+
p[3] || (p[3] = J(" Deny ", -1))
|
|
2559
2564
|
], 8, Ws)
|
|
2560
2565
|
]))
|
|
2561
2566
|
])
|
|
2562
|
-
])) :
|
|
2567
|
+
])) : w("", !0),
|
|
2563
2568
|
a("div", Qs, [
|
|
2564
2569
|
a("button", Ys, [
|
|
2565
|
-
L(
|
|
2570
|
+
L(D(ft), { class: "freddy-plugins-action-icon" })
|
|
2566
2571
|
]),
|
|
2567
2572
|
a("button", Xs, [
|
|
2568
|
-
L(
|
|
2573
|
+
L(D(Se), { class: "freddy-plugins-action-icon" })
|
|
2569
2574
|
]),
|
|
2570
2575
|
a("button", ei, [
|
|
2571
|
-
L(
|
|
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", ti, [...
|
|
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
2590
|
a("div", oi, [
|
|
2586
2591
|
a("button", ni, [
|
|
2587
|
-
L(
|
|
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":
|
|
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
2606
|
}, null, 40, si), [
|
|
@@ -2606,7 +2611,7 @@ const ue = new xs(
|
|
|
2606
2611
|
disabled: !l.value.trim(),
|
|
2607
2612
|
onClick: V
|
|
2608
2613
|
}, [
|
|
2609
|
-
L(
|
|
2614
|
+
L(D(yt), { class: "freddy-plugins-send-icon" })
|
|
2610
2615
|
], 8, ii)
|
|
2611
2616
|
])
|
|
2612
2617
|
]));
|
|
@@ -2648,11 +2653,11 @@ const ue = new xs(
|
|
|
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
|
-
(
|
|
2655
|
-
i.value =
|
|
2659
|
+
(I) => {
|
|
2660
|
+
i.value = I;
|
|
2656
2661
|
}
|
|
2657
2662
|
);
|
|
2658
2663
|
const d = () => {
|
|
@@ -2661,23 +2666,21 @@ const ue = new xs(
|
|
|
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
|
-
},
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
}, v = (
|
|
2670
|
-
|
|
2671
|
-
},
|
|
2672
|
-
}, I = (b) => {
|
|
2673
|
-
}, C = (b) => {
|
|
2671
|
+
}, $ = async (I) => {
|
|
2672
|
+
}, V = (I) => {
|
|
2673
|
+
I.changes && I.changes.data && I.changes.data.improvedText && (i.value, i.value = I.changes.data.improvedText, I.applied = !0);
|
|
2674
|
+
}, v = (I) => {
|
|
2675
|
+
}, T = (I) => {
|
|
2676
|
+
}, k = (I) => {
|
|
2674
2677
|
};
|
|
2675
|
-
return (
|
|
2678
|
+
return (I, C) => (c(), E(le, { name: "modal" }, {
|
|
2676
2679
|
default: Z(() => [
|
|
2677
2680
|
y.isVisible ? (c(), f("div", {
|
|
2678
2681
|
key: 0,
|
|
2679
2682
|
class: "freddy-plugins-edit-excerpt-modal-overlay",
|
|
2680
|
-
onClick:
|
|
2683
|
+
onClick: U(d, ["self"])
|
|
2681
2684
|
}, [
|
|
2682
2685
|
a("div", {
|
|
2683
2686
|
class: F(["freddy-plugins-edit-excerpt-modal-container", { "ai-active": l.value }])
|
|
@@ -2686,7 +2689,7 @@ const ue = new xs(
|
|
|
2686
2689
|
a("div", ci, [
|
|
2687
2690
|
a("div", ri, [
|
|
2688
2691
|
a("div", di, [
|
|
2689
|
-
L(
|
|
2692
|
+
L(D(kt), {
|
|
2690
2693
|
class: "freddy-plugins-edit-excerpt-edit-icon",
|
|
2691
2694
|
"center-distance": 36,
|
|
2692
2695
|
"circle-gap": 44,
|
|
@@ -2704,22 +2707,14 @@ const ue = new xs(
|
|
|
2704
2707
|
onClick: d,
|
|
2705
2708
|
"aria-label": "Close modal"
|
|
2706
2709
|
}, [
|
|
2707
|
-
L(
|
|
2710
|
+
L(D(ee), { class: "freddy-plugins-edit-excerpt-modal-close-icon" })
|
|
2708
2711
|
], 4),
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
class: "freddy-plugins-edit-excerpt-modal-close-btn",
|
|
2712
|
-
style: { right: "16px" },
|
|
2713
|
-
onClick: P,
|
|
2714
|
-
"aria-label": "Hide AI"
|
|
2715
|
-
}, [
|
|
2716
|
-
L(_t, { class: "freddy-plugins-edit-excerpt-hide-section-icon" })
|
|
2717
|
-
])) : S("", !0),
|
|
2718
|
-
$[1] || ($[1] = a("div", { class: "freddy-plugins-edit-excerpt-modal-header-spacing" }, null, -1))
|
|
2712
|
+
w("", !0),
|
|
2713
|
+
C[1] || (C[1] = a("div", { class: "freddy-plugins-edit-excerpt-modal-header-spacing" }, null, -1))
|
|
2719
2714
|
]),
|
|
2720
2715
|
a("div", fi, [
|
|
2721
2716
|
Q(a("textarea", {
|
|
2722
|
-
"onUpdate:modelValue":
|
|
2717
|
+
"onUpdate:modelValue": C[0] || (C[0] = (P) => i.value = P),
|
|
2723
2718
|
class: "freddy-plugins-edit-excerpt-modal-textarea",
|
|
2724
2719
|
placeholder: "The text thats needed",
|
|
2725
2720
|
rows: "12"
|
|
@@ -2729,13 +2724,13 @@ const ue = new xs(
|
|
|
2729
2724
|
]),
|
|
2730
2725
|
a("div", mi, [
|
|
2731
2726
|
a("div", vi, [
|
|
2732
|
-
l.value ?
|
|
2727
|
+
l.value ? w("", !0) : (c(), f("button", {
|
|
2733
2728
|
key: 0,
|
|
2734
2729
|
class: "freddy-plugins-edit-excerpt-modal-ai-btn",
|
|
2735
|
-
onClick:
|
|
2730
|
+
onClick: b
|
|
2736
2731
|
}, [
|
|
2737
|
-
L(
|
|
2738
|
-
|
|
2732
|
+
L(D(Fe), { class: "freddy-plugins-edit-excerpt-modal-ai-icon" }),
|
|
2733
|
+
C[2] || (C[2] = a("span", { class: "freddy-plugins-edit-excerpt-modal-ai-text" }, " Ask AI ", -1))
|
|
2739
2734
|
])),
|
|
2740
2735
|
a("div", { class: "freddy-plugins-edit-excerpt-modal-action-buttons" }, [
|
|
2741
2736
|
a("button", {
|
|
@@ -2759,20 +2754,20 @@ const ue = new xs(
|
|
|
2759
2754
|
"enable-a-i": !0,
|
|
2760
2755
|
"openai-api-key": y.openaiApiKey,
|
|
2761
2756
|
"text-box-content": i.value,
|
|
2762
|
-
onSend:
|
|
2763
|
-
onAcceptChanges:
|
|
2764
|
-
onDenyChanges:
|
|
2765
|
-
onTextReplacement:
|
|
2766
|
-
onTextCompletion:
|
|
2757
|
+
onSend: $,
|
|
2758
|
+
onAcceptChanges: V,
|
|
2759
|
+
onDenyChanges: v,
|
|
2760
|
+
onTextReplacement: T,
|
|
2761
|
+
onTextCompletion: k
|
|
2767
2762
|
}, null, 8, ["messages", "openai-api-key", "text-box-content"])
|
|
2768
|
-
])) :
|
|
2763
|
+
])) : w("", !0)
|
|
2769
2764
|
], 2)
|
|
2770
|
-
])) :
|
|
2765
|
+
])) : w("", !0)
|
|
2771
2766
|
]),
|
|
2772
2767
|
_: 1
|
|
2773
2768
|
}));
|
|
2774
2769
|
}
|
|
2775
|
-
}), Ie = /* @__PURE__ */ H(gi, [["__scopeId", "data-v-
|
|
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 = {
|
|
2776
2771
|
key: 0,
|
|
2777
2772
|
class: "freddy-plugins-textarea-required"
|
|
2778
2773
|
}, Si = { class: "freddy-plugins-textarea-input-wrapper" }, Ti = ["placeholder", "disabled", "readonly"], $i = {
|
|
@@ -2815,9 +2810,9 @@ const ue = new xs(
|
|
|
2815
2810
|
},
|
|
2816
2811
|
emits: ["update:modelValue", "input", "focus", "blur", "ask-ai", "expand", "remove-tag", "tooltip-click", "add-tag", "tags-click"],
|
|
2817
2812
|
setup(y, { expose: m, emit: s }) {
|
|
2818
|
-
const e = y, i = s, l =
|
|
2813
|
+
const e = y, i = s, l = A(null), r = A(
|
|
2819
2814
|
null
|
|
2820
|
-
), 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);
|
|
2821
2816
|
G(
|
|
2822
2817
|
() => e.modelValue,
|
|
2823
2818
|
(x) => {
|
|
@@ -2827,24 +2822,24 @@ const ue = new xs(
|
|
|
2827
2822
|
const V = () => {
|
|
2828
2823
|
i("update:modelValue", u.value), i("input", u.value);
|
|
2829
2824
|
}, v = (x) => {
|
|
2830
|
-
|
|
2825
|
+
b.value = !0, i("focus", x);
|
|
2831
2826
|
}, T = (x) => {
|
|
2832
|
-
|
|
2833
|
-
},
|
|
2834
|
-
},
|
|
2827
|
+
b.value = !1, i("blur", x);
|
|
2828
|
+
}, k = (x) => {
|
|
2829
|
+
}, I = () => {
|
|
2835
2830
|
e.tagsOnly && i("tags-click");
|
|
2836
|
-
},
|
|
2831
|
+
}, C = () => {
|
|
2837
2832
|
i("tooltip-click");
|
|
2838
|
-
},
|
|
2839
|
-
(x.key === "Enter" || x.key === " ") && (x.preventDefault(),
|
|
2840
|
-
},
|
|
2833
|
+
}, P = (x) => {
|
|
2834
|
+
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), C());
|
|
2835
|
+
}, h = () => {
|
|
2841
2836
|
d.value = u.value, g.value = "ai", o.value = !0, i("ask-ai", u.value);
|
|
2842
2837
|
}, t = (x) => {
|
|
2843
|
-
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), p());
|
|
2844
|
-
}, h = () => {
|
|
2845
|
-
d.value = u.value, g.value = "expand", o.value = !0, i("expand", u.value);
|
|
2846
|
-
}, w = (x) => {
|
|
2847
2838
|
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), h());
|
|
2839
|
+
}, p = () => {
|
|
2840
|
+
d.value = u.value, g.value = "expand", o.value = !0, i("expand", u.value);
|
|
2841
|
+
}, S = (x) => {
|
|
2842
|
+
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), p());
|
|
2848
2843
|
}, _ = (x) => {
|
|
2849
2844
|
i("remove-tag", x);
|
|
2850
2845
|
}, n = (x, de) => {
|
|
@@ -2855,9 +2850,9 @@ const ue = new xs(
|
|
|
2855
2850
|
u.value = x, i("update:modelValue", x), i("input", x), o.value = !1;
|
|
2856
2851
|
}, Ce = () => {
|
|
2857
2852
|
u.value = d.value, i("update:modelValue", d.value), i("input", d.value), o.value = !1;
|
|
2858
|
-
},
|
|
2853
|
+
}, Re = () => {
|
|
2859
2854
|
i("ask-ai", u.value);
|
|
2860
|
-
},
|
|
2855
|
+
}, Oe = (x) => {
|
|
2861
2856
|
};
|
|
2862
2857
|
return m({
|
|
2863
2858
|
focus: () => {
|
|
@@ -2874,7 +2869,7 @@ const ue = new xs(
|
|
|
2874
2869
|
"freddy-plugins-textarea-label--underlined": x.showUnderlines
|
|
2875
2870
|
}])
|
|
2876
2871
|
}, B(x.dynamicTitle || x.label), 3),
|
|
2877
|
-
x.required ? (c(), f("span", wi, "*")) :
|
|
2872
|
+
x.required ? (c(), f("span", wi, "*")) : w("", !0),
|
|
2878
2873
|
x.$slots.tooltip ? q(x.$slots, "tooltip", { key: 1 }, void 0, !0) : x.showTooltip && x.tooltipText ? (c(), E($s, {
|
|
2879
2874
|
key: 2,
|
|
2880
2875
|
text: x.tooltipText,
|
|
@@ -2886,30 +2881,30 @@ const ue = new xs(
|
|
|
2886
2881
|
class: "freddy-plugins-textarea-tooltip-button",
|
|
2887
2882
|
"aria-label": "Help",
|
|
2888
2883
|
tabindex: "0",
|
|
2889
|
-
onClick:
|
|
2890
|
-
onKeydown:
|
|
2884
|
+
onClick: C,
|
|
2885
|
+
onKeydown: P
|
|
2891
2886
|
}, [
|
|
2892
|
-
L(
|
|
2887
|
+
L(D(fe), { class: "freddy-plugins-textarea-tooltip-icon" })
|
|
2893
2888
|
], 32)
|
|
2894
2889
|
]),
|
|
2895
2890
|
_: 1
|
|
2896
|
-
}, 8, ["text"])) :
|
|
2891
|
+
}, 8, ["text"])) : w("", !0)
|
|
2897
2892
|
])
|
|
2898
2893
|
]),
|
|
2899
2894
|
x.showAiButton ? (c(), f("button", {
|
|
2900
2895
|
key: 0,
|
|
2901
2896
|
type: "button",
|
|
2902
2897
|
class: "freddy-plugins-textarea-ai-button",
|
|
2903
|
-
onClick:
|
|
2898
|
+
onClick: h,
|
|
2904
2899
|
onKeydown: t,
|
|
2905
2900
|
"aria-label": "Ask AI for help",
|
|
2906
2901
|
tabindex: "0"
|
|
2907
2902
|
}, [
|
|
2908
|
-
L(
|
|
2909
|
-
], 32)) :
|
|
2903
|
+
L(D(Fe), { class: "freddy-plugins-textarea-ai-icon" })
|
|
2904
|
+
], 32)) : w("", !0)
|
|
2910
2905
|
]),
|
|
2911
2906
|
a("div", Si, [
|
|
2912
|
-
x.diffMode ?
|
|
2907
|
+
x.diffMode ? w("", !0) : Q((c(), f("textarea", {
|
|
2913
2908
|
key: 0,
|
|
2914
2909
|
ref_key: "textareaRef",
|
|
2915
2910
|
ref: l,
|
|
@@ -2917,18 +2912,18 @@ const ue = new xs(
|
|
|
2917
2912
|
class: F(["freddy-plugins-textarea-input", {
|
|
2918
2913
|
"freddy-plugins-textarea-input--error": x.hasError,
|
|
2919
2914
|
"freddy-plugins-textarea-input--disabled": x.disabled,
|
|
2920
|
-
"freddy-plugins-textarea-input--focused":
|
|
2915
|
+
"freddy-plugins-textarea-input--focused": b.value,
|
|
2921
2916
|
"freddy-plugins-textarea-input--with-tags": x.showTags && x.tags.length > 0,
|
|
2922
2917
|
"freddy-plugins-textarea-input--tags-only": x.tagsOnly
|
|
2923
2918
|
}]),
|
|
2924
|
-
placeholder:
|
|
2919
|
+
placeholder: $.value,
|
|
2925
2920
|
disabled: x.disabled,
|
|
2926
2921
|
readonly: x.readonly || x.tagsOnly,
|
|
2927
2922
|
onInput: V,
|
|
2928
2923
|
onFocus: v,
|
|
2929
2924
|
onBlur: T,
|
|
2930
|
-
onKeydown:
|
|
2931
|
-
onClick:
|
|
2925
|
+
onKeydown: k,
|
|
2926
|
+
onClick: I
|
|
2932
2927
|
}, null, 42, Ti)), [
|
|
2933
2928
|
[Y, u.value]
|
|
2934
2929
|
]),
|
|
@@ -2937,10 +2932,10 @@ const ue = new xs(
|
|
|
2937
2932
|
a("div", Pi, B(x.oldText), 1),
|
|
2938
2933
|
a("div", Ai, B(x.newText), 1)
|
|
2939
2934
|
])
|
|
2940
|
-
])) :
|
|
2935
|
+
])) : w("", !0),
|
|
2941
2936
|
x.showTags && x.tags.length > 0 ? (c(), f("div", Di, [
|
|
2942
2937
|
a("div", Fi, [
|
|
2943
|
-
(c(!0), f(O, null,
|
|
2938
|
+
(c(!0), f(O, null, j(x.tags, (ie, ve) => (c(), f("div", {
|
|
2944
2939
|
key: `${ie}-${ve}`,
|
|
2945
2940
|
class: "freddy-plugins-textarea-tag"
|
|
2946
2941
|
}, [
|
|
@@ -2959,7 +2954,7 @@ const ue = new xs(
|
|
|
2959
2954
|
"aria-label": `Remove ${ie} tag`,
|
|
2960
2955
|
tabindex: "0"
|
|
2961
2956
|
}, [
|
|
2962
|
-
L(
|
|
2957
|
+
L(D(ee), { class: "freddy-plugins-textarea-tag-close-icon" })
|
|
2963
2958
|
], 40, Mi)
|
|
2964
2959
|
]))), 128))
|
|
2965
2960
|
]),
|
|
@@ -2968,17 +2963,17 @@ const ue = new xs(
|
|
|
2968
2963
|
class: F(["freddy-plugins-textarea-add-tags", {
|
|
2969
2964
|
"freddy-plugins-textarea-add-tags--underlined": x.showUnderlines
|
|
2970
2965
|
}])
|
|
2971
|
-
}, B(x.addTagsPlaceholder), 3)) :
|
|
2972
|
-
])) :
|
|
2966
|
+
}, B(x.addTagsPlaceholder), 3)) : w("", !0)
|
|
2967
|
+
])) : w("", !0),
|
|
2973
2968
|
a("button", {
|
|
2974
2969
|
type: "button",
|
|
2975
2970
|
class: "freddy-plugins-textarea-expand-button",
|
|
2976
|
-
onClick:
|
|
2977
|
-
onKeydown:
|
|
2971
|
+
onClick: p,
|
|
2972
|
+
onKeydown: S,
|
|
2978
2973
|
"aria-label": "Expand textarea",
|
|
2979
2974
|
tabindex: "0"
|
|
2980
2975
|
}, [
|
|
2981
|
-
L(
|
|
2976
|
+
L(D(_t), { class: "freddy-plugins-textarea-expand-icon" })
|
|
2982
2977
|
], 32)
|
|
2983
2978
|
])
|
|
2984
2979
|
]),
|
|
@@ -2987,13 +2982,13 @@ const ue = new xs(
|
|
|
2987
2982
|
class: F(["freddy-plugins-textarea-hint-text", {
|
|
2988
2983
|
"freddy-plugins-textarea-hint-text--underlined": x.showUnderlines
|
|
2989
2984
|
}])
|
|
2990
|
-
}, B(x.hintText), 3)) :
|
|
2985
|
+
}, B(x.hintText), 3)) : w("", !0),
|
|
2991
2986
|
x.hasError && x.errorMessage ? (c(), f("p", {
|
|
2992
2987
|
key: 1,
|
|
2993
2988
|
class: F(["freddy-plugins-textarea-error-text", {
|
|
2994
2989
|
"freddy-plugins-textarea-error-text--underlined": x.showUnderlines
|
|
2995
2990
|
}])
|
|
2996
|
-
}, B(x.errorMessage), 3)) :
|
|
2991
|
+
}, B(x.errorMessage), 3)) : w("", !0),
|
|
2997
2992
|
g.value === "ai" ? (c(), E(Ie, {
|
|
2998
2993
|
key: 2,
|
|
2999
2994
|
ref_key: "aiModalRef",
|
|
@@ -3009,9 +3004,9 @@ const ue = new xs(
|
|
|
3009
3004
|
onClose: W,
|
|
3010
3005
|
onSave: X,
|
|
3011
3006
|
onCancel: Ce,
|
|
3012
|
-
onAskAI:
|
|
3013
|
-
onToggleAI:
|
|
3014
|
-
}, 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),
|
|
3015
3010
|
g.value === "expand" ? (c(), E(Ie, {
|
|
3016
3011
|
key: 3,
|
|
3017
3012
|
"is-visible": o.value && g.value === "expand",
|
|
@@ -3024,7 +3019,7 @@ const ue = new xs(
|
|
|
3024
3019
|
onClose: W,
|
|
3025
3020
|
onSave: X,
|
|
3026
3021
|
onCancel: Ce
|
|
3027
|
-
}, null, 8, ["is-visible", "title", "description", "initial-content", "openai-model"])) :
|
|
3022
|
+
}, null, 8, ["is-visible", "title", "description", "initial-content", "openai-model"])) : w("", !0)
|
|
3028
3023
|
]));
|
|
3029
3024
|
}
|
|
3030
3025
|
}), Vi = /* @__PURE__ */ H(Li, [["__scopeId", "data-v-279e4bd4"]]), Ei = /* @__PURE__ */ N({
|
|
@@ -3060,87 +3055,87 @@ const ue = new xs(
|
|
|
3060
3055
|
},
|
|
3061
3056
|
emits: ["update:modelValue", "input", "focus", "blur", "ask-ai", "expand", "remove-tag", "tooltip-click", "add-tag", "tags-click"],
|
|
3062
3057
|
setup(y, { expose: m, emit: s }) {
|
|
3063
|
-
const e = y, i = s, l =
|
|
3058
|
+
const e = y, i = s, l = A(e.modelValue), r = A([...e.tags]);
|
|
3064
3059
|
G(
|
|
3065
3060
|
() => e.modelValue,
|
|
3066
|
-
(
|
|
3067
|
-
l.value =
|
|
3061
|
+
(p) => {
|
|
3062
|
+
l.value = p;
|
|
3068
3063
|
}
|
|
3069
3064
|
), G(
|
|
3070
3065
|
() => e.tags,
|
|
3071
|
-
(
|
|
3072
|
-
r.value = [...
|
|
3066
|
+
(p) => {
|
|
3067
|
+
r.value = [...p];
|
|
3073
3068
|
},
|
|
3074
3069
|
{ deep: !0 }
|
|
3075
3070
|
);
|
|
3076
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);
|
|
3077
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);
|
|
3078
|
-
const
|
|
3079
|
-
l.value =
|
|
3080
|
-
},
|
|
3081
|
-
i("input",
|
|
3082
|
-
}, V = (
|
|
3083
|
-
i("focus",
|
|
3084
|
-
}, v = (
|
|
3085
|
-
i("blur",
|
|
3086
|
-
}, T = (
|
|
3087
|
-
i("ask-ai",
|
|
3088
|
-
},
|
|
3089
|
-
i("expand",
|
|
3090
|
-
},
|
|
3091
|
-
r.value.splice(
|
|
3092
|
-
},
|
|
3073
|
+
const b = (p) => {
|
|
3074
|
+
l.value = p, i("update:modelValue", p);
|
|
3075
|
+
}, $ = (p) => {
|
|
3076
|
+
i("input", p);
|
|
3077
|
+
}, V = (p) => {
|
|
3078
|
+
i("focus", p);
|
|
3079
|
+
}, v = (p) => {
|
|
3080
|
+
i("blur", p);
|
|
3081
|
+
}, T = (p) => {
|
|
3082
|
+
i("ask-ai", p);
|
|
3083
|
+
}, k = (p) => {
|
|
3084
|
+
i("expand", p);
|
|
3085
|
+
}, I = (p) => {
|
|
3086
|
+
r.value.splice(p, 1), i("remove-tag", p);
|
|
3087
|
+
}, C = () => {
|
|
3093
3088
|
i("tooltip-click");
|
|
3094
|
-
},
|
|
3095
|
-
i("add-tag",
|
|
3096
|
-
},
|
|
3089
|
+
}, P = (p) => {
|
|
3090
|
+
i("add-tag", p);
|
|
3091
|
+
}, h = () => {
|
|
3097
3092
|
i("tags-click");
|
|
3098
3093
|
};
|
|
3099
3094
|
return m({
|
|
3100
3095
|
focus: () => {
|
|
3101
3096
|
}
|
|
3102
|
-
}), (
|
|
3097
|
+
}), (p, S) => (c(), E(Vi, {
|
|
3103
3098
|
modelValue: l.value,
|
|
3104
3099
|
"onUpdate:modelValue": [
|
|
3105
|
-
|
|
3106
|
-
|
|
3100
|
+
S[0] || (S[0] = (_) => l.value = _),
|
|
3101
|
+
b
|
|
3107
3102
|
],
|
|
3108
|
-
label:
|
|
3109
|
-
placeholder:
|
|
3110
|
-
disabled:
|
|
3111
|
-
readonly:
|
|
3112
|
-
required:
|
|
3113
|
-
"show-tooltip":
|
|
3114
|
-
"tooltip-text":
|
|
3115
|
-
"show-ai-button":
|
|
3103
|
+
label: p.label,
|
|
3104
|
+
placeholder: p.placeholder,
|
|
3105
|
+
disabled: p.disabled,
|
|
3106
|
+
readonly: p.readonly,
|
|
3107
|
+
required: p.required,
|
|
3108
|
+
"show-tooltip": p.showTooltip,
|
|
3109
|
+
"tooltip-text": p.tooltipText,
|
|
3110
|
+
"show-ai-button": p.showAiButton,
|
|
3116
3111
|
"show-tags": u.value,
|
|
3117
3112
|
tags: r.value,
|
|
3118
3113
|
"show-add-tags-placeholder": d.value,
|
|
3119
3114
|
"add-tags-placeholder": o.value,
|
|
3120
|
-
"hint-text":
|
|
3115
|
+
"hint-text": p.hintText,
|
|
3121
3116
|
"has-error": g.value,
|
|
3122
|
-
"error-message":
|
|
3123
|
-
"modal-title":
|
|
3124
|
-
"modal-description":
|
|
3125
|
-
"openai-api-key":
|
|
3126
|
-
"openai-model":
|
|
3127
|
-
"openai-organization":
|
|
3128
|
-
"show-underlines":
|
|
3129
|
-
"dynamic-title":
|
|
3130
|
-
"show-hint":
|
|
3131
|
-
"diff-mode":
|
|
3132
|
-
"old-text":
|
|
3133
|
-
"new-text":
|
|
3134
|
-
"tags-only":
|
|
3135
|
-
onInput:
|
|
3117
|
+
"error-message": p.errorMessage,
|
|
3118
|
+
"modal-title": p.modalTitle,
|
|
3119
|
+
"modal-description": p.modalDescription,
|
|
3120
|
+
"openai-api-key": p.openaiApiKey,
|
|
3121
|
+
"openai-model": p.openaiModel,
|
|
3122
|
+
"openai-organization": p.openaiOrganization,
|
|
3123
|
+
"show-underlines": p.showUnderlines,
|
|
3124
|
+
"dynamic-title": p.dynamicTitle,
|
|
3125
|
+
"show-hint": p.showHint,
|
|
3126
|
+
"diff-mode": p.diffMode,
|
|
3127
|
+
"old-text": p.oldText,
|
|
3128
|
+
"new-text": p.newText,
|
|
3129
|
+
"tags-only": p.tagsOnly,
|
|
3130
|
+
onInput: $,
|
|
3136
3131
|
onFocus: V,
|
|
3137
3132
|
onBlur: v,
|
|
3138
3133
|
onAskAi: T,
|
|
3139
|
-
onExpand:
|
|
3140
|
-
onRemoveTag:
|
|
3141
|
-
onTooltipClick:
|
|
3142
|
-
onAddTag:
|
|
3143
|
-
onTagsClick:
|
|
3134
|
+
onExpand: k,
|
|
3135
|
+
onRemoveTag: I,
|
|
3136
|
+
onTooltipClick: C,
|
|
3137
|
+
onAddTag: P,
|
|
3138
|
+
onTagsClick: h
|
|
3144
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"]));
|
|
3145
3140
|
}
|
|
3146
3141
|
}), cc = /* @__PURE__ */ H(Ei, [["__scopeId", "data-v-19ded011"]]), Ni = { class: "freddy-plugins-diff-container" }, Ri = ["innerHTML"], Oi = ["placeholder"], zi = /* @__PURE__ */ N({
|
|
@@ -3154,7 +3149,7 @@ const ue = new xs(
|
|
|
3154
3149
|
},
|
|
3155
3150
|
emits: ["update:modelValue"],
|
|
3156
3151
|
setup(y, { expose: m, emit: s }) {
|
|
3157
|
-
const e = y, i = s, l =
|
|
3152
|
+
const e = y, i = s, l = A(null), r = A(e.modelValue);
|
|
3158
3153
|
G(
|
|
3159
3154
|
() => e.modelValue,
|
|
3160
3155
|
(o) => {
|
|
@@ -3166,11 +3161,11 @@ const ue = new xs(
|
|
|
3166
3161
|
}, d = M(() => {
|
|
3167
3162
|
if (!e.originalText || !e.improvedText) return "";
|
|
3168
3163
|
const o = e.originalText.split(/(\s+)/), g = e.improvedText.split(/(\s+)/);
|
|
3169
|
-
let
|
|
3170
|
-
const
|
|
3171
|
-
|
|
3164
|
+
let b = "";
|
|
3165
|
+
const $ = o.filter((v) => !g.includes(v) && v.trim()).join(" ");
|
|
3166
|
+
$ && (b += `<span class="freddy-plugins-diff-removed">${$}</span>`);
|
|
3172
3167
|
const V = g.filter((v) => !o.includes(v) && v.trim()).join(" ");
|
|
3173
|
-
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;
|
|
3174
3169
|
});
|
|
3175
3170
|
return m({
|
|
3176
3171
|
focus: () => {
|
|
@@ -3190,7 +3185,7 @@ const ue = new xs(
|
|
|
3190
3185
|
key: 1,
|
|
3191
3186
|
ref_key: "textareaRef",
|
|
3192
3187
|
ref: l,
|
|
3193
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
3188
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => r.value = b),
|
|
3194
3189
|
class: "freddy-plugins-diff-textarea",
|
|
3195
3190
|
placeholder: o.placeholder,
|
|
3196
3191
|
onInput: u
|
|
@@ -3199,7 +3194,7 @@ const ue = new xs(
|
|
|
3199
3194
|
])
|
|
3200
3195
|
]));
|
|
3201
3196
|
}
|
|
3202
|
-
}), rc = /* @__PURE__ */ H(zi, [["__scopeId", "data-v-54efeaf3"]]), Hi = ["aria-checked", "tabindex", "onKeydown", "disabled"],
|
|
3197
|
+
}), rc = /* @__PURE__ */ H(zi, [["__scopeId", "data-v-54efeaf3"]]), Hi = ["aria-checked", "tabindex", "onKeydown", "disabled"], Ui = /* @__PURE__ */ N({
|
|
3203
3198
|
__name: "Switch",
|
|
3204
3199
|
props: {
|
|
3205
3200
|
modelValue: { type: Boolean },
|
|
@@ -3224,8 +3219,8 @@ const ue = new xs(
|
|
|
3224
3219
|
tabindex: l.disabled ? -1 : 0,
|
|
3225
3220
|
onClick: i,
|
|
3226
3221
|
onKeydown: [
|
|
3227
|
-
z(
|
|
3228
|
-
z(
|
|
3222
|
+
z(U(i, ["prevent"]), ["space"]),
|
|
3223
|
+
z(U(i, ["prevent"]), ["enter"])
|
|
3229
3224
|
],
|
|
3230
3225
|
disabled: l.disabled
|
|
3231
3226
|
}, [...r[0] || (r[0] = [
|
|
@@ -3233,7 +3228,7 @@ const ue = new xs(
|
|
|
3233
3228
|
a("span", { class: "freddy-plugins-switch__thumb" }, null, -1)
|
|
3234
3229
|
])], 42, Hi));
|
|
3235
3230
|
}
|
|
3236
|
-
}),
|
|
3231
|
+
}), ji = {
|
|
3237
3232
|
key: 0,
|
|
3238
3233
|
class: "freddy-plugins-dropdown-search-bar"
|
|
3239
3234
|
}, Ki = ["placeholder"], Gi = { class: "freddy-plugins-dropdown-options" }, Zi = ["onClick"], qi = { class: "freddy-plugins-dropdown-option-label" }, Wi = {
|
|
@@ -3266,17 +3261,17 @@ const ue = new xs(
|
|
|
3266
3261
|
},
|
|
3267
3262
|
emits: ["select", "toggle"],
|
|
3268
3263
|
setup(y, { emit: m }) {
|
|
3269
|
-
const s = y, e = m, i =
|
|
3264
|
+
const s = y, e = m, i = A(!1), l = A(""), r = A(null), u = je([...s.options]);
|
|
3270
3265
|
G(
|
|
3271
3266
|
() => s.options,
|
|
3272
|
-
(
|
|
3273
|
-
u.value = [...
|
|
3267
|
+
(C) => {
|
|
3268
|
+
u.value = [...C];
|
|
3274
3269
|
}
|
|
3275
3270
|
);
|
|
3276
3271
|
const d = () => {
|
|
3277
3272
|
if (r.value) return;
|
|
3278
|
-
const
|
|
3279
|
-
|
|
3273
|
+
const C = u.value.find((P) => P.default);
|
|
3274
|
+
C && (r.value = C);
|
|
3280
3275
|
};
|
|
3281
3276
|
G(
|
|
3282
3277
|
u,
|
|
@@ -3285,48 +3280,48 @@ const ue = new xs(
|
|
|
3285
3280
|
},
|
|
3286
3281
|
{ immediate: !0 }
|
|
3287
3282
|
);
|
|
3288
|
-
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 = () => {
|
|
3289
3284
|
i.value = !i.value, i.value || (l.value = "");
|
|
3290
|
-
},
|
|
3285
|
+
}, $ = () => {
|
|
3291
3286
|
i.value = !1, l.value = "";
|
|
3292
3287
|
}, V = M(() => !s.searchable || !l.value ? u.value : u.value.filter(
|
|
3293
|
-
(
|
|
3294
|
-
)), v = (
|
|
3295
|
-
|
|
3296
|
-
}, T = (
|
|
3297
|
-
r.value =
|
|
3298
|
-
},
|
|
3299
|
-
const
|
|
3300
|
-
(t) => t.value ===
|
|
3288
|
+
(C) => C.label.toLowerCase().includes(l.value.toLowerCase())
|
|
3289
|
+
)), v = (C, P) => {
|
|
3290
|
+
C.type !== "toggle" && T(C);
|
|
3291
|
+
}, T = (C) => {
|
|
3292
|
+
r.value = C, e("select", C), s.stayOpen || $();
|
|
3293
|
+
}, k = (C, P) => {
|
|
3294
|
+
const h = u.value.findIndex(
|
|
3295
|
+
(t) => t.value === C.value
|
|
3301
3296
|
);
|
|
3302
|
-
|
|
3303
|
-
},
|
|
3304
|
-
|
|
3297
|
+
h !== -1 && (u.value[h].checked = P), e("toggle", { ...C, checked: P });
|
|
3298
|
+
}, I = (C) => {
|
|
3299
|
+
C.target.closest(".freddy-plugins-dropdown-wrapper") || $();
|
|
3305
3300
|
};
|
|
3306
|
-
return G(i, (
|
|
3307
|
-
|
|
3308
|
-
document.addEventListener("click",
|
|
3309
|
-
}, 0) : document.removeEventListener("click",
|
|
3310
|
-
}), (
|
|
3301
|
+
return G(i, (C) => {
|
|
3302
|
+
C ? setTimeout(() => {
|
|
3303
|
+
document.addEventListener("click", I);
|
|
3304
|
+
}, 0) : document.removeEventListener("click", I);
|
|
3305
|
+
}), (C, P) => (c(), f("div", {
|
|
3311
3306
|
class: "freddy-plugins-dropdown-wrapper",
|
|
3312
|
-
onKeydown: z(
|
|
3307
|
+
onKeydown: z($, ["esc"]),
|
|
3313
3308
|
tabindex: "0"
|
|
3314
3309
|
}, [
|
|
3315
|
-
L(
|
|
3310
|
+
L(Ne, {
|
|
3316
3311
|
class: "freddy-plugins-dropdown-trigger",
|
|
3317
3312
|
label: o.value,
|
|
3318
|
-
iconOnly:
|
|
3319
|
-
rightIcon:
|
|
3320
|
-
leftIcon: !
|
|
3321
|
-
size:
|
|
3313
|
+
iconOnly: C.iconOnly,
|
|
3314
|
+
rightIcon: C.chevronRight && C.showIcon ? g.value : void 0,
|
|
3315
|
+
leftIcon: !C.chevronRight && C.showIcon ? g.value : void 0,
|
|
3316
|
+
size: C.size,
|
|
3322
3317
|
hierarchy: "tertiary",
|
|
3323
|
-
onClick:
|
|
3318
|
+
onClick: b,
|
|
3324
3319
|
"aria-expanded": i.value,
|
|
3325
3320
|
"aria-haspopup": !0,
|
|
3326
3321
|
type: "button"
|
|
3327
3322
|
}, {
|
|
3328
3323
|
default: Z(() => [
|
|
3329
|
-
q(
|
|
3324
|
+
q(C.$slots, "button", {}, () => [
|
|
3330
3325
|
J(B(o.value), 1)
|
|
3331
3326
|
])
|
|
3332
3327
|
]),
|
|
@@ -3335,58 +3330,58 @@ const ue = new xs(
|
|
|
3335
3330
|
i.value ? (c(), f("div", {
|
|
3336
3331
|
key: 0,
|
|
3337
3332
|
class: F(["freddy-plugins-dropdown-menu", {
|
|
3338
|
-
"freddy-plugins-dropdown-menu--up":
|
|
3339
|
-
"freddy-plugins-dropdown-menu--down": !
|
|
3333
|
+
"freddy-plugins-dropdown-menu--up": C.openUp,
|
|
3334
|
+
"freddy-plugins-dropdown-menu--down": !C.openUp
|
|
3340
3335
|
}])
|
|
3341
3336
|
}, [
|
|
3342
|
-
|
|
3337
|
+
C.searchable ? (c(), f("div", ji, [
|
|
3343
3338
|
Q(a("input", {
|
|
3344
|
-
"onUpdate:modelValue":
|
|
3339
|
+
"onUpdate:modelValue": P[0] || (P[0] = (h) => l.value = h),
|
|
3345
3340
|
type: "text",
|
|
3346
3341
|
class: "freddy-plugins-dropdown-search-input",
|
|
3347
|
-
placeholder:
|
|
3342
|
+
placeholder: C.searchPlaceholder
|
|
3348
3343
|
}, null, 8, Ki), [
|
|
3349
3344
|
[Y, l.value]
|
|
3350
3345
|
])
|
|
3351
|
-
])) :
|
|
3346
|
+
])) : w("", !0),
|
|
3352
3347
|
a("ul", Gi, [
|
|
3353
|
-
(c(!0), f(O, null,
|
|
3354
|
-
key:
|
|
3348
|
+
(c(!0), f(O, null, j(V.value, (h) => (c(), f("li", {
|
|
3349
|
+
key: h.value,
|
|
3355
3350
|
class: F(["freddy-plugins-dropdown-option", {
|
|
3356
|
-
"freddy-plugins-dropdown-option--toggle":
|
|
3351
|
+
"freddy-plugins-dropdown-option--toggle": h.type === "toggle"
|
|
3357
3352
|
}]),
|
|
3358
|
-
onClick: (t) => v(
|
|
3353
|
+
onClick: (t) => v(h)
|
|
3359
3354
|
}, [
|
|
3360
3355
|
a("span", qi, [
|
|
3361
|
-
!
|
|
3356
|
+
!C.optionIconRight && h.icon ? (c(), E(K(h.icon), {
|
|
3362
3357
|
key: 0,
|
|
3363
3358
|
class: "freddy-plugins-dropdown-option-icon"
|
|
3364
|
-
})) :
|
|
3365
|
-
a("span", null, B(
|
|
3366
|
-
|
|
3367
|
-
|
|
3359
|
+
})) : w("", !0),
|
|
3360
|
+
a("span", null, B(h.label), 1),
|
|
3361
|
+
C.showShortcut && h.shortcut ? (c(), f("span", Wi, B(h.shortcut), 1)) : w("", !0),
|
|
3362
|
+
C.optionIconRight && h.icon ? (c(), E(K(h.icon), {
|
|
3368
3363
|
key: 2,
|
|
3369
3364
|
class: "freddy-plugins-dropdown-option-icon freddy-plugins-dropdown-option-icon--right"
|
|
3370
|
-
})) :
|
|
3365
|
+
})) : w("", !0)
|
|
3371
3366
|
]),
|
|
3372
|
-
|
|
3367
|
+
h.type === "toggle" ? (c(), E(Ui, {
|
|
3373
3368
|
key: 0,
|
|
3374
|
-
modelValue:
|
|
3369
|
+
modelValue: h.checked ?? !1,
|
|
3375
3370
|
size: s.size,
|
|
3376
3371
|
"onUpdate:modelValue": (t) => {
|
|
3377
|
-
|
|
3372
|
+
k(h, t);
|
|
3378
3373
|
},
|
|
3379
|
-
onClick:
|
|
3374
|
+
onClick: P[1] || (P[1] = U(() => {
|
|
3380
3375
|
}, ["stop"]))
|
|
3381
|
-
}, null, 8, ["modelValue", "size", "onUpdate:modelValue"])) :
|
|
3376
|
+
}, null, 8, ["modelValue", "size", "onUpdate:modelValue"])) : w("", !0)
|
|
3382
3377
|
], 10, Zi))), 128)),
|
|
3383
3378
|
V.value.length === 0 ? (c(), f("li", Ji, [
|
|
3384
|
-
q(
|
|
3385
|
-
|
|
3379
|
+
q(C.$slots, "no-options", {}, () => [
|
|
3380
|
+
P[2] || (P[2] = J("No options", -1))
|
|
3386
3381
|
])
|
|
3387
|
-
])) :
|
|
3382
|
+
])) : w("", !0)
|
|
3388
3383
|
])
|
|
3389
|
-
], 2)) :
|
|
3384
|
+
], 2)) : w("", !0)
|
|
3390
3385
|
], 32));
|
|
3391
3386
|
}
|
|
3392
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 = {
|
|
@@ -3403,99 +3398,99 @@ const ue = new xs(
|
|
|
3403
3398
|
},
|
|
3404
3399
|
emits: ["verify", "resend"],
|
|
3405
3400
|
setup(y, { emit: m }) {
|
|
3406
|
-
const s = y, { brand: e, loading: i, error: l, resendCooldown: r } = s, u = m, d =
|
|
3407
|
-
const
|
|
3408
|
-
if (!/^\d*$/.test(
|
|
3409
|
-
|
|
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;
|
|
3403
|
+
if (!/^\d*$/.test(h)) {
|
|
3404
|
+
P.value = "";
|
|
3410
3405
|
return;
|
|
3411
3406
|
}
|
|
3412
|
-
d.value[
|
|
3407
|
+
d.value[I] = h, h && I < 3 && te(() => {
|
|
3413
3408
|
var t;
|
|
3414
|
-
(t = o.value[
|
|
3409
|
+
(t = o.value[I + 1]) == null || t.focus();
|
|
3415
3410
|
});
|
|
3416
|
-
}, V = (
|
|
3417
|
-
|
|
3418
|
-
var
|
|
3419
|
-
(
|
|
3411
|
+
}, V = (I, C) => {
|
|
3412
|
+
C.key === "Backspace" && !d.value[I] && I > 0 && te(() => {
|
|
3413
|
+
var P;
|
|
3414
|
+
(P = o.value[I - 1]) == null || P.focus();
|
|
3420
3415
|
});
|
|
3421
|
-
}, v = (
|
|
3422
|
-
var
|
|
3423
|
-
|
|
3424
|
-
const
|
|
3425
|
-
if (!
|
|
3426
|
-
const
|
|
3427
|
-
d.value = [
|
|
3428
|
-
const
|
|
3416
|
+
}, v = (I) => {
|
|
3417
|
+
var p;
|
|
3418
|
+
I.preventDefault();
|
|
3419
|
+
const C = (p = I.clipboardData) == null ? void 0 : p.getData("text");
|
|
3420
|
+
if (!C) return;
|
|
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;
|
|
3429
3424
|
te(() => {
|
|
3430
|
-
var
|
|
3431
|
-
(
|
|
3425
|
+
var S;
|
|
3426
|
+
(S = o.value[t]) == null || S.focus();
|
|
3432
3427
|
});
|
|
3433
3428
|
}, T = () => {
|
|
3434
|
-
g.value && u("verify",
|
|
3435
|
-
},
|
|
3429
|
+
g.value && u("verify", b.value);
|
|
3430
|
+
}, k = () => {
|
|
3436
3431
|
u("resend");
|
|
3437
3432
|
};
|
|
3438
3433
|
return me(() => {
|
|
3439
3434
|
te(() => {
|
|
3440
|
-
var
|
|
3441
|
-
(
|
|
3435
|
+
var I;
|
|
3436
|
+
(I = o.value[0]) == null || I.focus();
|
|
3442
3437
|
});
|
|
3443
|
-
}), (
|
|
3444
|
-
class: F(["email-verification", `email-verification--${
|
|
3438
|
+
}), (I, C) => (c(), f("div", {
|
|
3439
|
+
class: F(["email-verification", `email-verification--${D(e)}`])
|
|
3445
3440
|
}, [
|
|
3446
3441
|
a("div", Qi, [
|
|
3447
3442
|
a("div", Yi, [
|
|
3448
|
-
|
|
3443
|
+
C[1] || (C[1] = a("h2", { class: "verification-title" }, "Verify Your Email", -1)),
|
|
3449
3444
|
a("p", Xi, [
|
|
3450
|
-
|
|
3451
|
-
a("strong", null, B(
|
|
3445
|
+
C[0] || (C[0] = J(" We've sent a 4-digit verification code to ", -1)),
|
|
3446
|
+
a("strong", null, B(I.email), 1)
|
|
3452
3447
|
])
|
|
3453
3448
|
]),
|
|
3454
3449
|
a("form", {
|
|
3455
|
-
onSubmit:
|
|
3450
|
+
onSubmit: U(T, ["prevent"]),
|
|
3456
3451
|
class: "verification-form"
|
|
3457
3452
|
}, [
|
|
3458
3453
|
a("div", ea, [
|
|
3459
3454
|
a("div", ta, [
|
|
3460
|
-
(c(), f(O, null,
|
|
3461
|
-
key:
|
|
3455
|
+
(c(), f(O, null, j(4, (P, h) => Q(a("input", {
|
|
3456
|
+
key: h,
|
|
3462
3457
|
ref_for: !0,
|
|
3463
|
-
ref: (t) => o.value[
|
|
3464
|
-
"onUpdate:modelValue": (t) => d.value[
|
|
3458
|
+
ref: (t) => o.value[h] = t,
|
|
3459
|
+
"onUpdate:modelValue": (t) => d.value[h] = t,
|
|
3465
3460
|
type: "text",
|
|
3466
3461
|
maxlength: "1",
|
|
3467
|
-
class: F(["code-input", `code-input--${
|
|
3468
|
-
onInput: (t) =>
|
|
3469
|
-
onKeydown: (t) => V(
|
|
3462
|
+
class: F(["code-input", `code-input--${D(e)}`]),
|
|
3463
|
+
onInput: (t) => $(h, t),
|
|
3464
|
+
onKeydown: (t) => V(h, t),
|
|
3470
3465
|
onPaste: v,
|
|
3471
|
-
disabled:
|
|
3466
|
+
disabled: D(i),
|
|
3472
3467
|
autocomplete: "one-time-code"
|
|
3473
3468
|
}, null, 42, oa), [
|
|
3474
|
-
[Y, d.value[
|
|
3469
|
+
[Y, d.value[h]]
|
|
3475
3470
|
])), 64))
|
|
3476
3471
|
])
|
|
3477
3472
|
]),
|
|
3478
3473
|
a("div", na, [
|
|
3479
|
-
L(
|
|
3474
|
+
L(Ne, {
|
|
3480
3475
|
type: "submit",
|
|
3481
|
-
label:
|
|
3476
|
+
label: D(i) ? "Verifying..." : "Verify Code",
|
|
3482
3477
|
hierarchy: "primary",
|
|
3483
3478
|
size: "lg",
|
|
3484
|
-
loading:
|
|
3485
|
-
disabled: !g.value ||
|
|
3486
|
-
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)}`)
|
|
3487
3482
|
}, null, 8, ["label", "loading", "disabled", "class"])
|
|
3488
3483
|
]),
|
|
3489
|
-
|
|
3484
|
+
D(l) ? (c(), f("div", sa, B(D(l)), 1)) : w("", !0),
|
|
3490
3485
|
a("div", ia, [
|
|
3491
3486
|
a("p", aa, [
|
|
3492
|
-
|
|
3487
|
+
C[2] || (C[2] = J(" Didn't receive the code? ", -1)),
|
|
3493
3488
|
a("button", {
|
|
3494
3489
|
type: "button",
|
|
3495
3490
|
class: "resend-button",
|
|
3496
|
-
disabled:
|
|
3497
|
-
onClick:
|
|
3498
|
-
}, B(
|
|
3491
|
+
disabled: D(r) > 0,
|
|
3492
|
+
onClick: k
|
|
3493
|
+
}, B(D(r) > 0 ? `Resend in ${D(r)}s` : "Resend code"), 9, la)
|
|
3499
3494
|
])
|
|
3500
3495
|
])
|
|
3501
3496
|
], 32)
|
|
@@ -3543,8 +3538,8 @@ const ue = new xs(
|
|
|
3543
3538
|
class: F(["freddy-plugins-input-field-label", `freddy-plugins-input-field-label--${d.colorStyle}`])
|
|
3544
3539
|
}, [
|
|
3545
3540
|
J(B(d.label) + " ", 1),
|
|
3546
|
-
d.required ? (c(), f("span", da, "*")) :
|
|
3547
|
-
], 10, ra)) :
|
|
3541
|
+
d.required ? (c(), f("span", da, "*")) : w("", !0)
|
|
3542
|
+
], 10, ra)) : w("", !0),
|
|
3548
3543
|
a("div", {
|
|
3549
3544
|
class: F(["freddy-plugins-input-field-container", r.value]),
|
|
3550
3545
|
onClick: u
|
|
@@ -3554,7 +3549,7 @@ const ue = new xs(
|
|
|
3554
3549
|
d.hintText ? (c(), f("p", {
|
|
3555
3550
|
key: 1,
|
|
3556
3551
|
class: F(["freddy-plugins-input-hint-text", `freddy-plugins-input-hint-text--${d.colorStyle}`])
|
|
3557
|
-
}, B(d.hintText), 3)) :
|
|
3552
|
+
}, B(d.hintText), 3)) : w("", !0)
|
|
3558
3553
|
]));
|
|
3559
3554
|
}
|
|
3560
3555
|
}), ke = /* @__PURE__ */ H(ua, [["__scopeId", "data-v-bb114a19"]]), pa = ["src", "alt"], ha = ["id", "placeholder", "disabled", "readonly", "maxlength"], fa = /* @__PURE__ */ N({
|
|
@@ -3610,7 +3605,7 @@ const ue = new xs(
|
|
|
3610
3605
|
},
|
|
3611
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"],
|
|
3612
3607
|
setup(y, { expose: m, emit: s }) {
|
|
3613
|
-
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(() => ({
|
|
3614
3609
|
size: e.size,
|
|
3615
3610
|
colorStyle: e.colorStyle,
|
|
3616
3611
|
state: e.state,
|
|
@@ -3619,9 +3614,9 @@ const ue = new xs(
|
|
|
3619
3614
|
label: e.label,
|
|
3620
3615
|
hintText: e.hintText,
|
|
3621
3616
|
disabled: e.disabled
|
|
3622
|
-
})),
|
|
3623
|
-
() => be(/* @__PURE__ */ Object.assign({ "../../icons/IconAddChatPop.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.c5), "../../icons/IconAddFileSystem.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.c6), "../../icons/IconAddPeople.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.c7), "../../icons/IconAitronos.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.c8), "../../icons/IconApple.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.c9), "../../icons/IconApplePay.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ca), "../../icons/IconAppsGrid.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cb), "../../icons/IconArrowDown.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cc), "../../icons/IconArrowLeft.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cd), "../../icons/IconArrowUp.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ce), "../../icons/IconBadgeCheck.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cf), "../../icons/IconBroom.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cg), "../../icons/IconBuildings.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ch), "../../icons/IconCalendarWithTickInside.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ci), "../../icons/IconCallNotAllowed.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cj), "../../icons/IconCardPay.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ck), "../../icons/IconCaution.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cl), "../../icons/IconChangeLog.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cm), "../../icons/IconCheckCircleFill.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cn), "../../icons/IconCheckInCircle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.co), "../../icons/IconCheckRounded.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cp), "../../icons/IconChevronDown.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cq), "../../icons/IconChevronLeft.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cr), "../../icons/IconChevronRight.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cs), "../../icons/IconChevronUp.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ct), "../../icons/IconCircledCheck.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cu), "../../icons/IconClock.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cv), "../../icons/IconClosedEnvelope.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cw), "../../icons/IconCloudUpload.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cx), "../../icons/IconConnectorConfluence.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cy), "../../icons/IconConnectorFigma.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cz), "../../icons/IconConnectorFreshDesk.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cA), "../../icons/IconConnectorGitHub.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cB), "../../icons/IconConnectorJira.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cC), "../../icons/IconConnectorLinear.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cD), "../../icons/IconConnectorNotion.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cE), "../../icons/IconConnectorSlack.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cF), "../../icons/IconConnectorZapier.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cG), "../../icons/IconCopy.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cH), "../../icons/IconCross.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cI), "../../icons/IconCrossCircleFill.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cJ), "../../icons/IconCrossInCircle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cK), "../../icons/IconCurrentTick.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cL), "../../icons/IconDataUpload.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cM), "../../icons/IconDelete.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cN), "../../icons/IconDeleteFillRed.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cO), "../../icons/IconDialingPhone.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cP), "../../icons/IconDisabledAlert.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cQ), "../../icons/IconDocumentation.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cR), "../../icons/IconDownload.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cS), "../../icons/IconDribbble.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cT), "../../icons/IconDropdownArrow.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cU), "../../icons/IconEdit.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cV), "../../icons/IconEditLinePath.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cW), "../../icons/IconEllipse.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cX), "../../icons/IconExcelThumbnail.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cY), "../../icons/IconExpand.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.cZ), "../../icons/IconEye.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.c_), "../../icons/IconFacebook.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.c$), "../../icons/IconFigma.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d0), "../../icons/IconFile.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d1), "../../icons/IconFileSystem.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d2), "../../icons/IconFileUpload.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d3), "../../icons/IconFilter.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d4), "../../icons/IconFolder.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d5), "../../icons/IconFreddyHub.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d6), "../../icons/IconFreddyHubLogo.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d7), "../../icons/IconFreddyHubNewLogo.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d8), "../../icons/IconFreddyHubTitle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d9), "../../icons/IconFreddySmall.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.da), "../../icons/IconGlobExpand.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.db), "../../icons/IconGlobe.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dc), "../../icons/IconGoogle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dd), "../../icons/IconHollowCircle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.de), "../../icons/IconHome.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.df), "../../icons/IconInfoRounded.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dg), "../../icons/IconInvalidInvoice.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dh), "../../icons/IconInvoice.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.di), "../../icons/IconInvoiceSwitch.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dj), "../../icons/IconLapTableBottom.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dk), "../../icons/IconLense.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dl), "../../icons/IconLightCross.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dm), "../../icons/IconLink04.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dn), "../../icons/IconLoadingError.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dp), "../../icons/IconLoadingOrg.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dq), "../../icons/IconLocationWithCircleIn.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dr), "../../icons/IconLock.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ds), "../../icons/IconMarketPlace.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dt), "../../icons/IconMaximize.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.du), "../../icons/IconMicrophone.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dv), "../../icons/IconMutedMicrophone.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dw), "../../icons/IconNewNotification.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dx), "../../icons/IconNewTab.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dy), "../../icons/IconNotification.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dz), "../../icons/IconOpenBook.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dA), "../../icons/IconPaperAirPlane.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dB), "../../icons/IconPauseCircle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dC), "../../icons/IconPdfThumbnail.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dD), "../../icons/IconPenEdit.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dE), "../../icons/IconPencil.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dF), "../../icons/IconPeopleHub.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dG), "../../icons/IconPersonCircle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dH), "../../icons/IconPits.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dI), "../../icons/IconPlay.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dJ), "../../icons/IconPlus.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dK), "../../icons/IconPolygonDown.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dL), "../../icons/IconPresentation.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dM), "../../icons/IconProgressBase.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dN), "../../icons/IconProgressComplete.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dO), "../../icons/IconProgressGoing.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dP), "../../icons/IconPurpose.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dQ), "../../icons/IconPurseCircleFill.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dR), "../../icons/IconQuestion.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dS), "../../icons/IconRadio.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dT), "../../icons/IconRadioFill.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dU), "../../icons/IconRefresh.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dV), "../../icons/IconRevertedTriangle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dW), "../../icons/IconRobotScreen.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dX), "../../icons/IconRoundTick.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dY), "../../icons/IconSearch.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.dZ), "../../icons/IconSearchOptimised.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d_), "../../icons/IconSectionHide.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.d$), "../../icons/IconSend.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e0), "../../icons/IconSettings.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e1), "../../icons/IconSettingsBold.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e2), "../../icons/IconSize.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e3), "../../icons/IconSliderKnobs.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e4), "../../icons/IconSortIdle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e5), "../../icons/IconSparkle.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e6), "../../icons/IconSpotlio.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e7), "../../icons/IconStar.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e8), "../../icons/IconStatistics.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.e9), "../../icons/IconStopChat.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ea), "../../icons/IconStreamLineHub.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.eb), "../../icons/IconStreamLineHubNewLogo.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ec), "../../icons/IconSun.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ed), "../../icons/IconSwap.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ee), "../../icons/IconText.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ef), "../../icons/IconTextThumbnail.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.eg), "../../icons/IconThinDocument.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.eh), "../../icons/IconThinFile.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ei), "../../icons/IconThumbsDown.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ej), "../../icons/IconTick.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ek), "../../icons/IconUser.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.el), "../../icons/IconVerticalDots.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.em), "../../icons/IconVideoCamera.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.en), "../../icons/IconWarningOctal.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.eo), "../../icons/IconX.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.ep), "../../icons/IconZip.vue": () => import("./icons-ByG7XPWY.js").then((n) => n.eq) }), `../../icons/${_}.vue`, 4).catch(() => ({ template: "<div></div>" }))
|
|
3624
|
-
) : null : null,
|
|
3617
|
+
})), b = (_) => _ ? typeof _ == "object" ? _ : typeof _ == "string" ? R(
|
|
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>" }))
|
|
3619
|
+
) : null : null, $ = M(() => b(e.trailingIcon)), V = M(() => {
|
|
3625
3620
|
switch (o.value) {
|
|
3626
3621
|
case "amex":
|
|
3627
3622
|
return 17;
|
|
@@ -3636,14 +3631,14 @@ const ue = new xs(
|
|
|
3636
3631
|
"freddy-plugins-input-field--focused": e.state === "focused",
|
|
3637
3632
|
"freddy-plugins-input-field--disabled": e.state === "disabled",
|
|
3638
3633
|
"freddy-plugins-input-field--with-leading": e.showCardIcon && o.value !== "unknown",
|
|
3639
|
-
"freddy-plugins-input-field--with-trailing":
|
|
3634
|
+
"freddy-plugins-input-field--with-trailing": !!$.value
|
|
3640
3635
|
})), T = (_) => {
|
|
3641
3636
|
const n = _.replace(/\D/g, "");
|
|
3642
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";
|
|
3643
|
-
},
|
|
3638
|
+
}, k = (_) => {
|
|
3644
3639
|
const n = _.replace(/\D/g, "");
|
|
3645
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);
|
|
3646
|
-
},
|
|
3641
|
+
}, I = (_) => {
|
|
3647
3642
|
const n = {
|
|
3648
3643
|
visa: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzAwNTFBNSIvPgo8cGF0aCBkPSJNMTYuNzUgN0wxNC4yNSAxN0gxMS43NUwxMy41IDEwLjVMMTIuMjUgOC41SDEwLjc1TDEyLjc1IDdIMTYuNzVaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjkuMjUgN0wyNi43NSAxN0gyNC4yNUwyNi43NSA3SDI5LjI1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+",
|
|
3649
3644
|
mastercard: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0VCMDAxQiIvPgo8Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSI3IiBmaWxsPSIjRkY1RjAwIi8+CjxjaXJjbGUgY3g9IjI1IiBjeT0iMTIiIHI9IjciIGZpbGw9IiNGRkY1RjAiLz4KPC9zdmc+",
|
|
@@ -3652,36 +3647,36 @@ const ue = new xs(
|
|
|
3652
3647
|
unknown: ""
|
|
3653
3648
|
};
|
|
3654
3649
|
return n[_] || n.unknown;
|
|
3655
|
-
},
|
|
3650
|
+
}, C = (_) => {
|
|
3656
3651
|
const W = _.target.value;
|
|
3657
|
-
u.value = W.replace(/\D/g, ""), d.value =
|
|
3652
|
+
u.value = W.replace(/\D/g, ""), d.value = k(W);
|
|
3658
3653
|
const X = T(u.value);
|
|
3659
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);
|
|
3660
|
-
},
|
|
3655
|
+
}, P = (_) => {
|
|
3661
3656
|
[8, 9, 27, 13, 46].indexOf(_.keyCode) !== -1 || // Allow Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X
|
|
3662
3657
|
_.keyCode === 65 && _.ctrlKey === !0 || _.keyCode === 67 && _.ctrlKey === !0 || _.keyCode === 86 && _.ctrlKey === !0 || _.keyCode === 88 && _.ctrlKey === !0 || // Allow home, end, left, right
|
|
3663
3658
|
_.keyCode >= 35 && _.keyCode <= 39 || (_.shiftKey || _.keyCode < 48 || _.keyCode > 57) && (_.keyCode < 96 || _.keyCode > 105) && _.preventDefault();
|
|
3664
|
-
},
|
|
3659
|
+
}, h = (_) => {
|
|
3665
3660
|
i("focus", _);
|
|
3666
3661
|
}, t = (_) => {
|
|
3667
3662
|
i("blur", _);
|
|
3668
|
-
},
|
|
3663
|
+
}, p = (_) => {
|
|
3669
3664
|
i("trailing-icon-click", _);
|
|
3670
|
-
},
|
|
3665
|
+
}, S = () => {
|
|
3671
3666
|
var _;
|
|
3672
3667
|
(_ = l.value) == null || _.focus();
|
|
3673
3668
|
};
|
|
3674
3669
|
return G(
|
|
3675
3670
|
() => e.cardNumber,
|
|
3676
3671
|
(_) => {
|
|
3677
|
-
_ !== u.value && (u.value = _, d.value =
|
|
3672
|
+
_ !== u.value && (u.value = _, d.value = k(_), o.value = T(_));
|
|
3678
3673
|
},
|
|
3679
3674
|
{ immediate: !0 }
|
|
3680
3675
|
), m({
|
|
3681
|
-
focus:
|
|
3676
|
+
focus: S,
|
|
3682
3677
|
inputRef: l
|
|
3683
3678
|
}), (_, n) => (c(), E(ke, se(g.value, {
|
|
3684
|
-
onFocus:
|
|
3679
|
+
onFocus: h,
|
|
3685
3680
|
onBlur: t
|
|
3686
3681
|
}), {
|
|
3687
3682
|
default: Z(() => {
|
|
@@ -3692,11 +3687,11 @@ const ue = new xs(
|
|
|
3692
3687
|
class: F(["freddy-plugins-card-type-icon", `freddy-plugins-card-type-icon--${_.colorStyle}`])
|
|
3693
3688
|
}, [
|
|
3694
3689
|
a("img", {
|
|
3695
|
-
src:
|
|
3690
|
+
src: I(o.value),
|
|
3696
3691
|
alt: `${o.value} card`,
|
|
3697
3692
|
class: "freddy-plugins-card-icon-image"
|
|
3698
3693
|
}, null, 8, pa)
|
|
3699
|
-
], 2)) :
|
|
3694
|
+
], 2)) : w("", !0),
|
|
3700
3695
|
Q(a("input", {
|
|
3701
3696
|
id: (W = r.value) == null ? void 0 : W.inputId,
|
|
3702
3697
|
ref_key: "inputRef",
|
|
@@ -3709,18 +3704,18 @@ const ue = new xs(
|
|
|
3709
3704
|
readonly: _.readonly,
|
|
3710
3705
|
maxlength: V.value,
|
|
3711
3706
|
class: F(["freddy-plugins-input-field freddy-plugins-card-input-field", v.value]),
|
|
3712
|
-
onInput:
|
|
3713
|
-
onKeydown:
|
|
3714
|
-
onFocus:
|
|
3707
|
+
onInput: C,
|
|
3708
|
+
onKeydown: P,
|
|
3709
|
+
onFocus: h,
|
|
3715
3710
|
onBlur: t
|
|
3716
3711
|
}, null, 42, ha), [
|
|
3717
3712
|
[Y, d.value]
|
|
3718
3713
|
]),
|
|
3719
|
-
|
|
3714
|
+
$.value ? (c(), E(K($.value), {
|
|
3720
3715
|
key: 1,
|
|
3721
3716
|
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${_.colorStyle}`]),
|
|
3722
|
-
onClick:
|
|
3723
|
-
}, null, 8, ["class"])) :
|
|
3717
|
+
onClick: p
|
|
3718
|
+
}, null, 8, ["class"])) : w("", !0)
|
|
3724
3719
|
];
|
|
3725
3720
|
}),
|
|
3726
3721
|
_: 1
|
|
@@ -3747,7 +3742,7 @@ const ue = new xs(
|
|
|
3747
3742
|
},
|
|
3748
3743
|
emits: ["update:modelValue", "input", "focus", "blur", "keydown", "leading-icon-click", "trailing-icon-click"],
|
|
3749
3744
|
setup(y, { expose: m, emit: s }) {
|
|
3750
|
-
const e = y, i = s, l =
|
|
3745
|
+
const e = y, i = s, l = A(null), r = A(null), u = A(e.modelValue || ""), d = M(() => ({
|
|
3751
3746
|
size: e.size,
|
|
3752
3747
|
colorStyle: e.colorStyle,
|
|
3753
3748
|
state: e.state,
|
|
@@ -3756,86 +3751,86 @@ const ue = new xs(
|
|
|
3756
3751
|
label: e.label,
|
|
3757
3752
|
hintText: e.hintText,
|
|
3758
3753
|
disabled: e.disabled
|
|
3759
|
-
})), o = (
|
|
3760
|
-
() => be(/* @__PURE__ */ Object.assign({ "../../icons/IconAddChatPop.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.c5), "../../icons/IconAddFileSystem.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.c6), "../../icons/IconAddPeople.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.c7), "../../icons/IconAitronos.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.c8), "../../icons/IconApple.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.c9), "../../icons/IconApplePay.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ca), "../../icons/IconAppsGrid.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cb), "../../icons/IconArrowDown.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cc), "../../icons/IconArrowLeft.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cd), "../../icons/IconArrowUp.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ce), "../../icons/IconBadgeCheck.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cf), "../../icons/IconBroom.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cg), "../../icons/IconBuildings.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ch), "../../icons/IconCalendarWithTickInside.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ci), "../../icons/IconCallNotAllowed.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cj), "../../icons/IconCardPay.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ck), "../../icons/IconCaution.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cl), "../../icons/IconChangeLog.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cm), "../../icons/IconCheckCircleFill.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cn), "../../icons/IconCheckInCircle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.co), "../../icons/IconCheckRounded.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cp), "../../icons/IconChevronDown.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cq), "../../icons/IconChevronLeft.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cr), "../../icons/IconChevronRight.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cs), "../../icons/IconChevronUp.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ct), "../../icons/IconCircledCheck.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cu), "../../icons/IconClock.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cv), "../../icons/IconClosedEnvelope.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cw), "../../icons/IconCloudUpload.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cx), "../../icons/IconConnectorConfluence.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cy), "../../icons/IconConnectorFigma.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cz), "../../icons/IconConnectorFreshDesk.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cA), "../../icons/IconConnectorGitHub.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cB), "../../icons/IconConnectorJira.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cC), "../../icons/IconConnectorLinear.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cD), "../../icons/IconConnectorNotion.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cE), "../../icons/IconConnectorSlack.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cF), "../../icons/IconConnectorZapier.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cG), "../../icons/IconCopy.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cH), "../../icons/IconCross.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cI), "../../icons/IconCrossCircleFill.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cJ), "../../icons/IconCrossInCircle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cK), "../../icons/IconCurrentTick.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cL), "../../icons/IconDataUpload.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cM), "../../icons/IconDelete.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cN), "../../icons/IconDeleteFillRed.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cO), "../../icons/IconDialingPhone.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cP), "../../icons/IconDisabledAlert.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cQ), "../../icons/IconDocumentation.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cR), "../../icons/IconDownload.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cS), "../../icons/IconDribbble.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cT), "../../icons/IconDropdownArrow.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cU), "../../icons/IconEdit.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cV), "../../icons/IconEditLinePath.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cW), "../../icons/IconEllipse.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cX), "../../icons/IconExcelThumbnail.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cY), "../../icons/IconExpand.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.cZ), "../../icons/IconEye.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.c_), "../../icons/IconFacebook.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.c$), "../../icons/IconFigma.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d0), "../../icons/IconFile.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d1), "../../icons/IconFileSystem.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d2), "../../icons/IconFileUpload.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d3), "../../icons/IconFilter.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d4), "../../icons/IconFolder.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d5), "../../icons/IconFreddyHub.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d6), "../../icons/IconFreddyHubLogo.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d7), "../../icons/IconFreddyHubNewLogo.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d8), "../../icons/IconFreddyHubTitle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d9), "../../icons/IconFreddySmall.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.da), "../../icons/IconGlobExpand.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.db), "../../icons/IconGlobe.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dc), "../../icons/IconGoogle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dd), "../../icons/IconHollowCircle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.de), "../../icons/IconHome.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.df), "../../icons/IconInfoRounded.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dg), "../../icons/IconInvalidInvoice.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dh), "../../icons/IconInvoice.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.di), "../../icons/IconInvoiceSwitch.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dj), "../../icons/IconLapTableBottom.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dk), "../../icons/IconLense.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dl), "../../icons/IconLightCross.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dm), "../../icons/IconLink04.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dn), "../../icons/IconLoadingError.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dp), "../../icons/IconLoadingOrg.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dq), "../../icons/IconLocationWithCircleIn.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dr), "../../icons/IconLock.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ds), "../../icons/IconMarketPlace.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dt), "../../icons/IconMaximize.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.du), "../../icons/IconMicrophone.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dv), "../../icons/IconMutedMicrophone.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dw), "../../icons/IconNewNotification.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dx), "../../icons/IconNewTab.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dy), "../../icons/IconNotification.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dz), "../../icons/IconOpenBook.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dA), "../../icons/IconPaperAirPlane.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dB), "../../icons/IconPauseCircle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dC), "../../icons/IconPdfThumbnail.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dD), "../../icons/IconPenEdit.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dE), "../../icons/IconPencil.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dF), "../../icons/IconPeopleHub.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dG), "../../icons/IconPersonCircle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dH), "../../icons/IconPits.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dI), "../../icons/IconPlay.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dJ), "../../icons/IconPlus.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dK), "../../icons/IconPolygonDown.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dL), "../../icons/IconPresentation.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dM), "../../icons/IconProgressBase.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dN), "../../icons/IconProgressComplete.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dO), "../../icons/IconProgressGoing.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dP), "../../icons/IconPurpose.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dQ), "../../icons/IconPurseCircleFill.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dR), "../../icons/IconQuestion.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dS), "../../icons/IconRadio.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dT), "../../icons/IconRadioFill.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dU), "../../icons/IconRefresh.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dV), "../../icons/IconRevertedTriangle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dW), "../../icons/IconRobotScreen.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dX), "../../icons/IconRoundTick.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dY), "../../icons/IconSearch.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.dZ), "../../icons/IconSearchOptimised.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d_), "../../icons/IconSectionHide.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.d$), "../../icons/IconSend.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e0), "../../icons/IconSettings.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e1), "../../icons/IconSettingsBold.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e2), "../../icons/IconSize.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e3), "../../icons/IconSliderKnobs.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e4), "../../icons/IconSortIdle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e5), "../../icons/IconSparkle.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e6), "../../icons/IconSpotlio.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e7), "../../icons/IconStar.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e8), "../../icons/IconStatistics.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.e9), "../../icons/IconStopChat.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ea), "../../icons/IconStreamLineHub.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.eb), "../../icons/IconStreamLineHubNewLogo.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ec), "../../icons/IconSun.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ed), "../../icons/IconSwap.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ee), "../../icons/IconText.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ef), "../../icons/IconTextThumbnail.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.eg), "../../icons/IconThinDocument.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.eh), "../../icons/IconThinFile.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ei), "../../icons/IconThumbsDown.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ej), "../../icons/IconTick.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ek), "../../icons/IconUser.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.el), "../../icons/IconVerticalDots.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.em), "../../icons/IconVideoCamera.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.en), "../../icons/IconWarningOctal.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.eo), "../../icons/IconX.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.ep), "../../icons/IconZip.vue": () => import("./icons-ByG7XPWY.js").then((t) => t.eq) }), `../../icons/${p}.vue`, 4).catch(() => ({ template: "<div></div>" }))
|
|
3761
|
-
) : null : null, g = M(() => o(e.leadingIcon)),
|
|
3754
|
+
})), o = (h) => h ? typeof h == "object" ? h : typeof h == "string" ? R(
|
|
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>" }))
|
|
3756
|
+
) : null : null, g = M(() => o(e.leadingIcon)), b = M(() => o(e.trailingIcon)), $ = M(() => ({
|
|
3762
3757
|
[`freddy-plugins-input-field--${e.size}`]: !0,
|
|
3763
3758
|
[`freddy-plugins-input-field--${e.colorStyle}`]: !0,
|
|
3764
3759
|
"freddy-plugins-input-field--destructive": e.destructive,
|
|
3765
3760
|
"freddy-plugins-input-field--focused": e.state === "focused",
|
|
3766
3761
|
"freddy-plugins-input-field--disabled": e.state === "disabled",
|
|
3767
3762
|
"freddy-plugins-input-field--with-leading": !!g.value,
|
|
3768
|
-
"freddy-plugins-input-field--with-trailing": !!
|
|
3769
|
-
})), V = (
|
|
3770
|
-
const t =
|
|
3763
|
+
"freddy-plugins-input-field--with-trailing": !!b.value
|
|
3764
|
+
})), V = (h) => {
|
|
3765
|
+
const t = h.target;
|
|
3771
3766
|
u.value = t.value, i("update:modelValue", t.value), i("input", t.value);
|
|
3772
|
-
}, v = (
|
|
3773
|
-
i("focus",
|
|
3774
|
-
}, T = (
|
|
3775
|
-
i("blur",
|
|
3776
|
-
},
|
|
3777
|
-
i("keydown",
|
|
3778
|
-
},
|
|
3779
|
-
i("leading-icon-click",
|
|
3780
|
-
},
|
|
3781
|
-
i("trailing-icon-click",
|
|
3782
|
-
},
|
|
3783
|
-
var
|
|
3784
|
-
(
|
|
3767
|
+
}, v = (h) => {
|
|
3768
|
+
i("focus", h);
|
|
3769
|
+
}, T = (h) => {
|
|
3770
|
+
i("blur", h);
|
|
3771
|
+
}, k = (h) => {
|
|
3772
|
+
i("keydown", h);
|
|
3773
|
+
}, I = (h) => {
|
|
3774
|
+
i("leading-icon-click", h);
|
|
3775
|
+
}, C = (h) => {
|
|
3776
|
+
i("trailing-icon-click", h);
|
|
3777
|
+
}, P = () => {
|
|
3778
|
+
var h;
|
|
3779
|
+
(h = l.value) == null || h.focus();
|
|
3785
3780
|
};
|
|
3786
3781
|
return G(
|
|
3787
3782
|
() => e.modelValue,
|
|
3788
|
-
(
|
|
3789
|
-
|
|
3783
|
+
(h) => {
|
|
3784
|
+
h !== void 0 && (u.value = h);
|
|
3790
3785
|
}
|
|
3791
3786
|
), m({
|
|
3792
|
-
focus:
|
|
3787
|
+
focus: P,
|
|
3793
3788
|
inputRef: l
|
|
3794
|
-
}), (
|
|
3789
|
+
}), (h, t) => (c(), E(ke, se(d.value, {
|
|
3795
3790
|
onFocus: v,
|
|
3796
3791
|
onBlur: T
|
|
3797
3792
|
}), {
|
|
3798
3793
|
default: Z(() => {
|
|
3799
|
-
var
|
|
3794
|
+
var p;
|
|
3800
3795
|
return [
|
|
3801
3796
|
g.value ? (c(), E(K(g.value), {
|
|
3802
3797
|
key: 0,
|
|
3803
|
-
class: F(["freddy-plugins-input-leading-icon", `freddy-plugins-input-leading-icon--${
|
|
3804
|
-
onClick:
|
|
3805
|
-
}, null, 8, ["class"])) :
|
|
3798
|
+
class: F(["freddy-plugins-input-leading-icon", `freddy-plugins-input-leading-icon--${h.colorStyle}`]),
|
|
3799
|
+
onClick: I
|
|
3800
|
+
}, null, 8, ["class"])) : w("", !0),
|
|
3806
3801
|
Q(a("input", {
|
|
3807
|
-
id: (
|
|
3802
|
+
id: (p = r.value) == null ? void 0 : p.inputId,
|
|
3808
3803
|
ref_key: "inputRef",
|
|
3809
3804
|
ref: l,
|
|
3810
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3811
|
-
type:
|
|
3812
|
-
placeholder:
|
|
3813
|
-
disabled:
|
|
3814
|
-
readonly:
|
|
3815
|
-
class: F(["freddy-plugins-input-field",
|
|
3805
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => u.value = S),
|
|
3806
|
+
type: h.inputType,
|
|
3807
|
+
placeholder: h.placeholder,
|
|
3808
|
+
disabled: h.disabled,
|
|
3809
|
+
readonly: h.readonly,
|
|
3810
|
+
class: F(["freddy-plugins-input-field", $.value]),
|
|
3816
3811
|
onInput: V,
|
|
3817
3812
|
onFocus: v,
|
|
3818
3813
|
onBlur: T,
|
|
3819
|
-
onKeydown:
|
|
3814
|
+
onKeydown: k
|
|
3820
3815
|
}, null, 42, va), [
|
|
3821
|
-
[
|
|
3816
|
+
[Ke, u.value]
|
|
3822
3817
|
]),
|
|
3823
|
-
|
|
3818
|
+
h.trailingIcon === "IconQuestion" && h.tooltipText ? (c(), E(re, {
|
|
3824
3819
|
key: 1,
|
|
3825
|
-
text:
|
|
3820
|
+
text: h.tooltipText,
|
|
3826
3821
|
placement: "top"
|
|
3827
3822
|
}, {
|
|
3828
3823
|
default: Z(() => [
|
|
3829
|
-
(c(), E(K(
|
|
3830
|
-
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${
|
|
3824
|
+
(c(), E(K(b.value), {
|
|
3825
|
+
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${h.colorStyle}`])
|
|
3831
3826
|
}, null, 8, ["class"]))
|
|
3832
3827
|
]),
|
|
3833
3828
|
_: 1
|
|
3834
|
-
}, 8, ["text"])) :
|
|
3829
|
+
}, 8, ["text"])) : b.value ? (c(), E(K(b.value), {
|
|
3835
3830
|
key: 2,
|
|
3836
|
-
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${
|
|
3837
|
-
onClick:
|
|
3838
|
-
}, null, 8, ["class"])) :
|
|
3831
|
+
class: F(["freddy-plugins-input-trailing-icon", `freddy-plugins-input-trailing-icon--${h.colorStyle}`]),
|
|
3832
|
+
onClick: C
|
|
3833
|
+
}, null, 8, ["class"])) : w("", !0)
|
|
3839
3834
|
];
|
|
3840
3835
|
}),
|
|
3841
3836
|
_: 1
|
|
@@ -3897,7 +3892,7 @@ const ue = new xs(
|
|
|
3897
3892
|
},
|
|
3898
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"],
|
|
3899
3894
|
setup(y, { expose: m, emit: s }) {
|
|
3900
|
-
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 = [
|
|
3901
3896
|
{ code: "US", name: "United States", flag: "🇺🇸", dialCode: "+1" },
|
|
3902
3897
|
{ code: "GB", name: "United Kingdom", flag: "🇬🇧", dialCode: "+44" },
|
|
3903
3898
|
{ code: "CA", name: "Canada", flag: "🇨🇦", dialCode: "+1" },
|
|
@@ -3908,7 +3903,7 @@ const ue = new xs(
|
|
|
3908
3903
|
{ code: "ES", name: "Spain", flag: "🇪🇸", dialCode: "+34" },
|
|
3909
3904
|
{ code: "JP", name: "Japan", flag: "🇯🇵", dialCode: "+81" },
|
|
3910
3905
|
{ code: "IN", name: "India", flag: "🇮🇳", dialCode: "+91" }
|
|
3911
|
-
],
|
|
3906
|
+
], b = M(() => ({
|
|
3912
3907
|
size: e.size,
|
|
3913
3908
|
colorStyle: e.colorStyle,
|
|
3914
3909
|
state: e.state,
|
|
@@ -3917,29 +3912,29 @@ const ue = new xs(
|
|
|
3917
3912
|
label: e.label,
|
|
3918
3913
|
hintText: e.hintText,
|
|
3919
3914
|
disabled: e.disabled
|
|
3920
|
-
})),
|
|
3915
|
+
})), $ = M(
|
|
3921
3916
|
() => e.countryOptions || g
|
|
3922
|
-
), V = M(() =>
|
|
3917
|
+
), V = M(() => $.value.find(
|
|
3923
3918
|
(t) => t.code === o.value
|
|
3924
|
-
) ||
|
|
3919
|
+
) || $.value[0]), v = () => {
|
|
3925
3920
|
e.disabled || (d.value = !d.value);
|
|
3926
3921
|
}, T = (t) => {
|
|
3927
3922
|
o.value = t.code, i("update:countryCode", t.code), i("country-change", t);
|
|
3928
|
-
const
|
|
3929
|
-
u.value =
|
|
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) => {
|
|
3926
|
+
const p = t.target;
|
|
3927
|
+
u.value = p.value;
|
|
3928
|
+
const S = `${V.value.dialCode} ${p.value}`;
|
|
3929
|
+
i("update:modelValue", S), i("update:phoneNumber", p.value), i("input", S);
|
|
3930
3930
|
}, I = (t) => {
|
|
3931
|
-
const h = t.target;
|
|
3932
|
-
u.value = h.value;
|
|
3933
|
-
const w = `${V.value.dialCode} ${h.value}`;
|
|
3934
|
-
i("update:modelValue", w), i("update:phoneNumber", h.value), i("input", w);
|
|
3935
|
-
}, C = (t) => {
|
|
3936
3931
|
i("focus", t);
|
|
3937
|
-
},
|
|
3932
|
+
}, C = (t) => {
|
|
3938
3933
|
i("blur", t);
|
|
3939
|
-
},
|
|
3934
|
+
}, P = () => {
|
|
3940
3935
|
var t;
|
|
3941
3936
|
(t = l.value) == null || t.focus();
|
|
3942
|
-
},
|
|
3937
|
+
}, h = (t) => {
|
|
3943
3938
|
t.target.closest(".freddy-plugins-input-field-container") || (d.value = !1);
|
|
3944
3939
|
};
|
|
3945
3940
|
return G(
|
|
@@ -3954,31 +3949,31 @@ const ue = new xs(
|
|
|
3954
3949
|
t !== void 0 && (u.value = t);
|
|
3955
3950
|
}
|
|
3956
3951
|
), me(() => {
|
|
3957
|
-
document.addEventListener("click",
|
|
3958
|
-
}),
|
|
3959
|
-
document.removeEventListener("click",
|
|
3952
|
+
document.addEventListener("click", h);
|
|
3953
|
+
}), De(() => {
|
|
3954
|
+
document.removeEventListener("click", h);
|
|
3960
3955
|
}), m({
|
|
3961
|
-
focus:
|
|
3956
|
+
focus: P,
|
|
3962
3957
|
inputRef: l
|
|
3963
|
-
}), (t,
|
|
3964
|
-
onFocus:
|
|
3965
|
-
onBlur:
|
|
3958
|
+
}), (t, p) => (c(), E(ke, se(b.value, {
|
|
3959
|
+
onFocus: I,
|
|
3960
|
+
onBlur: C
|
|
3966
3961
|
}), {
|
|
3967
3962
|
default: Z(() => {
|
|
3968
|
-
var
|
|
3963
|
+
var S;
|
|
3969
3964
|
return [
|
|
3970
3965
|
a("div", {
|
|
3971
3966
|
class: F(["freddy-plugins-figma-dropdown", `freddy-plugins-figma-dropdown--${t.colorStyle}`]),
|
|
3972
3967
|
onClick: v
|
|
3973
3968
|
}, [
|
|
3974
3969
|
a("span", Ia, B(V.value.code), 1),
|
|
3975
|
-
L(
|
|
3970
|
+
L(D(ae), { class: "freddy-plugins-figma-dropdown-icon" })
|
|
3976
3971
|
], 2),
|
|
3977
3972
|
d.value ? (c(), f("div", {
|
|
3978
3973
|
key: 0,
|
|
3979
3974
|
class: F(["freddy-plugins-country-options-dropdown", `freddy-plugins-country-options-dropdown--${t.colorStyle}`])
|
|
3980
3975
|
}, [
|
|
3981
|
-
(c(!0), f(O, null,
|
|
3976
|
+
(c(!0), f(O, null, j($.value, (_) => (c(), f("div", {
|
|
3982
3977
|
key: _.code,
|
|
3983
3978
|
class: F(["freddy-plugins-country-option", `freddy-plugins-country-option--${t.colorStyle}`]),
|
|
3984
3979
|
onClick: (n) => T(_)
|
|
@@ -3987,23 +3982,23 @@ const ue = new xs(
|
|
|
3987
3982
|
a("span", _a, B(_.name), 1),
|
|
3988
3983
|
a("span", Ca, B(_.dialCode), 1)
|
|
3989
3984
|
], 10, ba))), 128))
|
|
3990
|
-
], 2)) :
|
|
3985
|
+
], 2)) : w("", !0),
|
|
3991
3986
|
a("div", {
|
|
3992
3987
|
class: F(["freddy-plugins-figma-text-input", `freddy-plugins-figma-text-input--${t.colorStyle}`])
|
|
3993
3988
|
}, [
|
|
3994
3989
|
Q(a("input", {
|
|
3995
|
-
id: (
|
|
3990
|
+
id: (S = r.value) == null ? void 0 : S.inputId,
|
|
3996
3991
|
ref_key: "inputRef",
|
|
3997
3992
|
ref: l,
|
|
3998
|
-
"onUpdate:modelValue":
|
|
3993
|
+
"onUpdate:modelValue": p[0] || (p[0] = (_) => u.value = _),
|
|
3999
3994
|
type: "tel",
|
|
4000
3995
|
placeholder: t.placeholder,
|
|
4001
3996
|
disabled: t.disabled,
|
|
4002
3997
|
readonly: t.readonly,
|
|
4003
3998
|
class: "freddy-plugins-figma-phone-input",
|
|
4004
|
-
onInput:
|
|
4005
|
-
onFocus:
|
|
4006
|
-
onBlur:
|
|
3999
|
+
onInput: k,
|
|
4000
|
+
onFocus: I,
|
|
4001
|
+
onBlur: C
|
|
4007
4002
|
}, null, 40, wa), [
|
|
4008
4003
|
[Y, u.value]
|
|
4009
4004
|
]),
|
|
@@ -4014,14 +4009,14 @@ const ue = new xs(
|
|
|
4014
4009
|
placement: "top"
|
|
4015
4010
|
}, {
|
|
4016
4011
|
default: Z(() => [
|
|
4017
|
-
L(
|
|
4012
|
+
L(D(fe), { class: "freddy-plugins-figma-help-icon-svg" })
|
|
4018
4013
|
]),
|
|
4019
4014
|
_: 1
|
|
4020
|
-
}, 8, ["text"])) : (c(), E(
|
|
4015
|
+
}, 8, ["text"])) : (c(), E(D(fe), {
|
|
4021
4016
|
key: 1,
|
|
4022
4017
|
class: "freddy-plugins-figma-help-icon-svg"
|
|
4023
4018
|
}))
|
|
4024
|
-
])) :
|
|
4019
|
+
])) : w("", !0)
|
|
4025
4020
|
], 2)
|
|
4026
4021
|
];
|
|
4027
4022
|
}),
|
|
@@ -4129,53 +4124,53 @@ const ue = new xs(
|
|
|
4129
4124
|
tooltipText: s.tooltipText,
|
|
4130
4125
|
disabled: s.disabled,
|
|
4131
4126
|
readonly: s.readonly
|
|
4132
|
-
})), d = (
|
|
4133
|
-
e("update:modelValue",
|
|
4134
|
-
}, o = (
|
|
4135
|
-
e("input",
|
|
4136
|
-
}, g = (
|
|
4137
|
-
e("focus",
|
|
4138
|
-
},
|
|
4139
|
-
e("blur",
|
|
4140
|
-
},
|
|
4141
|
-
e("keydown",
|
|
4142
|
-
}, V = (
|
|
4143
|
-
e("leading-icon-click",
|
|
4144
|
-
}, v = (
|
|
4145
|
-
e("trailing-icon-click",
|
|
4146
|
-
}, T = (
|
|
4147
|
-
e("update:countryCode",
|
|
4148
|
-
},
|
|
4149
|
-
e("update:phoneNumber",
|
|
4150
|
-
},
|
|
4151
|
-
e("country-change",
|
|
4152
|
-
},
|
|
4153
|
-
e("update:cardNumber",
|
|
4154
|
-
},
|
|
4155
|
-
e("card-type-detected",
|
|
4127
|
+
})), d = (h) => {
|
|
4128
|
+
e("update:modelValue", h);
|
|
4129
|
+
}, o = (h) => {
|
|
4130
|
+
e("input", h);
|
|
4131
|
+
}, g = (h) => {
|
|
4132
|
+
e("focus", h);
|
|
4133
|
+
}, b = (h) => {
|
|
4134
|
+
e("blur", h);
|
|
4135
|
+
}, $ = (h) => {
|
|
4136
|
+
e("keydown", h);
|
|
4137
|
+
}, V = (h) => {
|
|
4138
|
+
e("leading-icon-click", h);
|
|
4139
|
+
}, v = (h) => {
|
|
4140
|
+
e("trailing-icon-click", h);
|
|
4141
|
+
}, T = (h) => {
|
|
4142
|
+
e("update:countryCode", h);
|
|
4143
|
+
}, k = (h) => {
|
|
4144
|
+
e("update:phoneNumber", h);
|
|
4145
|
+
}, I = (h) => {
|
|
4146
|
+
e("country-change", h);
|
|
4147
|
+
}, C = (h) => {
|
|
4148
|
+
e("update:cardNumber", h);
|
|
4149
|
+
}, P = (h) => {
|
|
4150
|
+
e("card-type-detected", h);
|
|
4156
4151
|
};
|
|
4157
|
-
return (
|
|
4152
|
+
return (h, t) => i.value === "phone" ? (c(), E($a, se({ key: 0 }, l.value, {
|
|
4158
4153
|
"onUpdate:modelValue": d,
|
|
4159
4154
|
"onUpdate:countryCode": T,
|
|
4160
|
-
"onUpdate:phoneNumber":
|
|
4161
|
-
onCountryChange:
|
|
4155
|
+
"onUpdate:phoneNumber": k,
|
|
4156
|
+
onCountryChange: I,
|
|
4162
4157
|
onInput: o,
|
|
4163
4158
|
onFocus: g,
|
|
4164
|
-
onBlur:
|
|
4159
|
+
onBlur: b
|
|
4165
4160
|
}), null, 16)) : i.value === "card" ? (c(), E(ma, se({ key: 1 }, r.value, {
|
|
4166
4161
|
"onUpdate:modelValue": d,
|
|
4167
|
-
"onUpdate:cardNumber":
|
|
4168
|
-
onCardTypeDetected:
|
|
4162
|
+
"onUpdate:cardNumber": C,
|
|
4163
|
+
onCardTypeDetected: P,
|
|
4169
4164
|
onInput: o,
|
|
4170
4165
|
onFocus: g,
|
|
4171
|
-
onBlur:
|
|
4166
|
+
onBlur: b,
|
|
4172
4167
|
onTrailingIconClick: v
|
|
4173
4168
|
}), null, 16)) : (c(), E(ga, se({ key: 2 }, u.value, {
|
|
4174
4169
|
"onUpdate:modelValue": d,
|
|
4175
4170
|
onInput: o,
|
|
4176
4171
|
onFocus: g,
|
|
4177
|
-
onBlur:
|
|
4178
|
-
onKeydown:
|
|
4172
|
+
onBlur: b,
|
|
4173
|
+
onKeydown: $,
|
|
4179
4174
|
onLeadingIconClick: V,
|
|
4180
4175
|
onTrailingIconClick: v
|
|
4181
4176
|
}), null, 16));
|
|
@@ -4223,7 +4218,7 @@ function La(y, m, s, e, i, l) {
|
|
|
4223
4218
|
])
|
|
4224
4219
|
], 2)
|
|
4225
4220
|
])
|
|
4226
|
-
])) :
|
|
4221
|
+
])) : w("", !0)
|
|
4227
4222
|
]),
|
|
4228
4223
|
_: 3
|
|
4229
4224
|
});
|
|
@@ -4293,7 +4288,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4293
4288
|
}, [
|
|
4294
4289
|
a("div", {
|
|
4295
4290
|
class: "freddy-plugins-modal-content",
|
|
4296
|
-
onClick: u[0] || (u[0] =
|
|
4291
|
+
onClick: u[0] || (u[0] = U(() => {
|
|
4297
4292
|
}, ["stop"]))
|
|
4298
4293
|
}, [
|
|
4299
4294
|
a("header", Ra, [
|
|
@@ -4304,7 +4299,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4304
4299
|
class: "freddy-plugins-modal-close",
|
|
4305
4300
|
onClick: i
|
|
4306
4301
|
}, [
|
|
4307
|
-
L(
|
|
4302
|
+
L(Me, { class: "freddy-plugins-modal-close-icon" })
|
|
4308
4303
|
])
|
|
4309
4304
|
]),
|
|
4310
4305
|
a("div", Oa, [
|
|
@@ -4334,7 +4329,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4334
4329
|
},
|
|
4335
4330
|
emits: ["update:searchInput", "clear"],
|
|
4336
4331
|
setup(y, { emit: m }) {
|
|
4337
|
-
const s =
|
|
4332
|
+
const s = Ge(), e = A(null), i = A(null), l = A(null), r = m, u = () => {
|
|
4338
4333
|
var g;
|
|
4339
4334
|
(g = i.value) == null || g.focus();
|
|
4340
4335
|
}, d = () => {
|
|
@@ -4342,22 +4337,22 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4342
4337
|
}, o = () => {
|
|
4343
4338
|
r("clear");
|
|
4344
4339
|
};
|
|
4345
|
-
return (g,
|
|
4346
|
-
var
|
|
4340
|
+
return (g, b) => {
|
|
4341
|
+
var $;
|
|
4347
4342
|
return c(), f("div", {
|
|
4348
4343
|
ref_key: "dropdownRef",
|
|
4349
4344
|
ref: l,
|
|
4350
|
-
class: F(["freddy-search-wrapper",
|
|
4345
|
+
class: F(["freddy-search-wrapper", D(s).class]),
|
|
4351
4346
|
onClick: u
|
|
4352
4347
|
}, [
|
|
4353
|
-
L(
|
|
4348
|
+
L(D(Ct), { class: "freddy-search-icon" }),
|
|
4354
4349
|
Q(a("input", {
|
|
4355
4350
|
type: "text",
|
|
4356
4351
|
id: "search-input",
|
|
4357
4352
|
class: "freddy-search-input",
|
|
4358
4353
|
ref_key: "searchInput",
|
|
4359
4354
|
ref: i,
|
|
4360
|
-
"onUpdate:modelValue":
|
|
4355
|
+
"onUpdate:modelValue": b[0] || (b[0] = (V) => e.value = V),
|
|
4361
4356
|
onInput: d,
|
|
4362
4357
|
placeholder: g.placeholder,
|
|
4363
4358
|
maxlength: g.maxCharLimit
|
|
@@ -4367,16 +4362,16 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4367
4362
|
g.showLoaderForSearch ? (c(), E(za, {
|
|
4368
4363
|
key: 0,
|
|
4369
4364
|
class: "freddy-search-spinner"
|
|
4370
|
-
})) :
|
|
4371
|
-
g.showCloseButton && !g.showLoaderForSearch && ((
|
|
4365
|
+
})) : w("", !0),
|
|
4366
|
+
g.showCloseButton && !g.showLoaderForSearch && (($ = e.value) != null && $.length) ? (c(), E(D(ee), {
|
|
4372
4367
|
key: 1,
|
|
4373
4368
|
class: "freddy-search-close",
|
|
4374
4369
|
onClick: o
|
|
4375
|
-
})) :
|
|
4370
|
+
})) : w("", !0)
|
|
4376
4371
|
], 2);
|
|
4377
4372
|
};
|
|
4378
4373
|
}
|
|
4379
|
-
}),
|
|
4374
|
+
}), Ua = { class: "model-dropdown-selected-content" }, ja = ["src", "alt"], Ka = { class: "model-dropdown-placeholder" }, Ga = {
|
|
4380
4375
|
key: 0,
|
|
4381
4376
|
class: "model-dropdown-menu"
|
|
4382
4377
|
}, Za = {
|
|
@@ -4396,24 +4391,24 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4396
4391
|
},
|
|
4397
4392
|
emits: ["select"],
|
|
4398
4393
|
setup(y, { emit: m }) {
|
|
4399
|
-
const s = y, e = m, i =
|
|
4400
|
-
(
|
|
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())
|
|
4401
4396
|
)), d = () => {
|
|
4402
4397
|
i.value = !i.value, i.value || (l.value = "");
|
|
4403
4398
|
}, o = () => {
|
|
4404
4399
|
i.value = !1, l.value = "";
|
|
4405
|
-
}, g = (
|
|
4406
|
-
r.value =
|
|
4407
|
-
},
|
|
4408
|
-
|
|
4400
|
+
}, g = ($) => {
|
|
4401
|
+
r.value = $, e("select", $), o();
|
|
4402
|
+
}, b = ($) => {
|
|
4403
|
+
$.target.closest(".model-dropdown-wrapper") || o();
|
|
4409
4404
|
};
|
|
4410
|
-
return G(i, (
|
|
4411
|
-
|
|
4412
|
-
document.addEventListener("click",
|
|
4413
|
-
}, 0) : document.removeEventListener("click",
|
|
4414
|
-
}),
|
|
4415
|
-
document.removeEventListener("click",
|
|
4416
|
-
}), (
|
|
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) => {
|
|
4417
4412
|
var v, T;
|
|
4418
4413
|
return c(), f("div", {
|
|
4419
4414
|
class: "model-dropdown-wrapper",
|
|
@@ -4421,21 +4416,21 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4421
4416
|
}, [
|
|
4422
4417
|
a("div", {
|
|
4423
4418
|
class: F(["model-dropdown-trigger", [
|
|
4424
|
-
`model-dropdown-trigger--${
|
|
4419
|
+
`model-dropdown-trigger--${$.size}`,
|
|
4425
4420
|
{ "model-dropdown-trigger--open": i.value }
|
|
4426
4421
|
]]),
|
|
4427
4422
|
onClick: d
|
|
4428
4423
|
}, [
|
|
4429
|
-
a("div",
|
|
4424
|
+
a("div", Ua, [
|
|
4430
4425
|
(v = r.value) != null && v.imageSrc ? (c(), f("img", {
|
|
4431
4426
|
key: 0,
|
|
4432
4427
|
src: r.value.imageSrc,
|
|
4433
4428
|
alt: r.value.value,
|
|
4434
4429
|
class: "model-dropdown-selected-image"
|
|
4435
|
-
}, null, 8,
|
|
4436
|
-
a("span", Ka, B(((T = r.value) == null ? void 0 : T.value) ||
|
|
4430
|
+
}, null, 8, ja)) : w("", !0),
|
|
4431
|
+
a("span", Ka, B(((T = r.value) == null ? void 0 : T.value) || $.modelPlaceholder), 1)
|
|
4437
4432
|
]),
|
|
4438
|
-
i.value ? (c(), E(
|
|
4433
|
+
i.value ? (c(), E(Be, {
|
|
4439
4434
|
key: 1,
|
|
4440
4435
|
class: "model-dropdown-chevron"
|
|
4441
4436
|
})) : (c(), E(ae, {
|
|
@@ -4444,36 +4439,36 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4444
4439
|
}))
|
|
4445
4440
|
], 2),
|
|
4446
4441
|
i.value ? (c(), f("div", Ga, [
|
|
4447
|
-
|
|
4442
|
+
$.searchable ? (c(), f("div", Za, [
|
|
4448
4443
|
L(_e, {
|
|
4449
4444
|
modelValue: l.value,
|
|
4450
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
4451
|
-
placeholder:
|
|
4445
|
+
"onUpdate:modelValue": V[0] || (V[0] = (k) => l.value = k),
|
|
4446
|
+
placeholder: $.searchPlaceholder,
|
|
4452
4447
|
showCloseButton: !0
|
|
4453
4448
|
}, null, 8, ["modelValue", "placeholder"])
|
|
4454
|
-
])) :
|
|
4449
|
+
])) : w("", !0),
|
|
4455
4450
|
a("ul", qa, [
|
|
4456
|
-
(c(!0), f(O, null,
|
|
4457
|
-
var
|
|
4451
|
+
(c(!0), f(O, null, j(u.value, (k) => {
|
|
4452
|
+
var I;
|
|
4458
4453
|
return c(), f("li", {
|
|
4459
|
-
key:
|
|
4454
|
+
key: k.id,
|
|
4460
4455
|
class: F(["model-dropdown-option", {
|
|
4461
|
-
"model-dropdown-option--selected": ((
|
|
4456
|
+
"model-dropdown-option--selected": ((I = r.value) == null ? void 0 : I.id) === k.id
|
|
4462
4457
|
}]),
|
|
4463
|
-
onClick: (
|
|
4458
|
+
onClick: (C) => g(k)
|
|
4464
4459
|
}, [
|
|
4465
|
-
|
|
4460
|
+
k.imageSrc ? (c(), f("img", {
|
|
4466
4461
|
key: 0,
|
|
4467
|
-
src:
|
|
4468
|
-
alt:
|
|
4462
|
+
src: k.imageSrc,
|
|
4463
|
+
alt: k.value,
|
|
4469
4464
|
class: "model-dropdown-option-image"
|
|
4470
|
-
}, null, 8, Ja)) :
|
|
4471
|
-
a("span", Qa, B(
|
|
4465
|
+
}, null, 8, Ja)) : w("", !0),
|
|
4466
|
+
a("span", Qa, B(k.value), 1)
|
|
4472
4467
|
], 10, Wa);
|
|
4473
4468
|
}), 128)),
|
|
4474
|
-
u.value.length === 0 ? (c(), f("li", Ya, " No providers found ")) :
|
|
4469
|
+
u.value.length === 0 ? (c(), f("li", Ya, " No providers found ")) : w("", !0)
|
|
4475
4470
|
])
|
|
4476
|
-
])) :
|
|
4471
|
+
])) : w("", !0)
|
|
4477
4472
|
], 32);
|
|
4478
4473
|
};
|
|
4479
4474
|
}
|
|
@@ -4563,7 +4558,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4563
4558
|
disabled: y.currentPage === 1
|
|
4564
4559
|
}, " Previous ", 10, tl),
|
|
4565
4560
|
a("div", ol, [
|
|
4566
|
-
(c(!0), f(O, null,
|
|
4561
|
+
(c(!0), f(O, null, j(l.value, (o) => (c(), f("button", {
|
|
4567
4562
|
key: String(o),
|
|
4568
4563
|
class: F(["freddy-pagination-number-button", { active: o === y.currentPage }]),
|
|
4569
4564
|
onClick: (g) => r(o),
|
|
@@ -4577,7 +4572,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4577
4572
|
disabled: y.currentPage === i.value || i.value === 0
|
|
4578
4573
|
}, " Next ", 10, sl)
|
|
4579
4574
|
])
|
|
4580
|
-
])) :
|
|
4575
|
+
])) : w("", !0);
|
|
4581
4576
|
}
|
|
4582
4577
|
}), il = ["disabled"], Ic = /* @__PURE__ */ N({
|
|
4583
4578
|
__name: "SendButton",
|
|
@@ -4592,7 +4587,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4592
4587
|
disabled: m.disabled,
|
|
4593
4588
|
onClick: s[0] || (s[0] = (e) => m.$emit("click"))
|
|
4594
4589
|
}, [
|
|
4595
|
-
(c(), E(K(
|
|
4590
|
+
(c(), E(K(wt), { class: "chat-bar-send-icon" }))
|
|
4596
4591
|
], 10, il));
|
|
4597
4592
|
}
|
|
4598
4593
|
}), al = {
|
|
@@ -4628,24 +4623,24 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4628
4623
|
},
|
|
4629
4624
|
setup(y) {
|
|
4630
4625
|
const m = y, { type: s, hasHeader: e = !1, count: i = 5 } = m;
|
|
4631
|
-
return (l, r) =>
|
|
4632
|
-
|
|
4626
|
+
return (l, r) => D(s) === "card" ? (c(), f("div", al, [
|
|
4627
|
+
D(e) ? (c(), f("div", ll)) : w("", !0),
|
|
4633
4628
|
r[0] || (r[0] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4" }, null, -1)),
|
|
4634
4629
|
r[1] || (r[1] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1)),
|
|
4635
4630
|
r[2] || (r[2] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6" }, null, -1))
|
|
4636
|
-
])) :
|
|
4637
|
-
|
|
4631
|
+
])) : D(s) === "paragraph" ? (c(), f("div", cl, [
|
|
4632
|
+
D(e) ? (c(), f("div", rl)) : w("", !0),
|
|
4638
4633
|
r[3] || (r[3] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1)),
|
|
4639
4634
|
r[4] || (r[4] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6" }, null, -1)),
|
|
4640
4635
|
r[5] || (r[5] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4" }, null, -1))
|
|
4641
|
-
])) :
|
|
4642
|
-
|
|
4636
|
+
])) : D(s) === "single-box" ? (c(), f("div", dl, [
|
|
4637
|
+
D(e) ? (c(), f("div", ul)) : w("", !0),
|
|
4643
4638
|
r[6] || (r[6] = a("div", { class: "skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full" }, null, -1))
|
|
4644
|
-
])) :
|
|
4645
|
-
|
|
4639
|
+
])) : D(s) === "table" ? (c(), f("div", pl, [
|
|
4640
|
+
D(e) ? (c(), f("div", hl)) : w("", !0),
|
|
4646
4641
|
a("table", fl, [
|
|
4647
4642
|
a("tbody", null, [
|
|
4648
|
-
(c(!0), f(O, null,
|
|
4643
|
+
(c(!0), f(O, null, j(D(i), (u) => (c(), f("tr", { key: u }, [...r[7] || (r[7] = [
|
|
4649
4644
|
a("td", { class: "td-padding" }, [
|
|
4650
4645
|
a("div", { class: "skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full" })
|
|
4651
4646
|
], -1),
|
|
@@ -4655,7 +4650,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4655
4650
|
])]))), 128))
|
|
4656
4651
|
])
|
|
4657
4652
|
])
|
|
4658
|
-
])) :
|
|
4653
|
+
])) : w("", !0);
|
|
4659
4654
|
}
|
|
4660
4655
|
}), ml = { class: "freddy-plugins-slider-container" }, vl = {
|
|
4661
4656
|
key: 0,
|
|
@@ -4687,109 +4682,109 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4687
4682
|
},
|
|
4688
4683
|
emits: ["update:modelValue", "update:rangeValue"],
|
|
4689
4684
|
setup(y, { emit: m }) {
|
|
4690
|
-
const s = y, e = m, i =
|
|
4691
|
-
var
|
|
4692
|
-
const
|
|
4693
|
-
return
|
|
4685
|
+
const s = y, e = m, i = A(!1), l = A(null), r = M(() => {
|
|
4686
|
+
var I;
|
|
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);
|
|
4694
4689
|
}), u = M(() => {
|
|
4695
|
-
const
|
|
4696
|
-
return Math.min(100, Math.max(0,
|
|
4697
|
-
}), d = M(() => u.value), o = (
|
|
4698
|
-
const
|
|
4699
|
-
return Math.min(s.max, Math.max(s.min,
|
|
4700
|
-
}, g = (
|
|
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;
|
|
4694
|
+
return Math.min(s.max, Math.max(s.min, I));
|
|
4695
|
+
}, g = (k) => {
|
|
4701
4696
|
if (!l.value) return s.modelValue;
|
|
4702
|
-
const
|
|
4697
|
+
const I = l.value.getBoundingClientRect(), C = Math.max(
|
|
4703
4698
|
0,
|
|
4704
|
-
Math.min(1, (
|
|
4705
|
-
),
|
|
4706
|
-
return Math.min(s.max, Math.max(s.min,
|
|
4707
|
-
},
|
|
4708
|
-
const
|
|
4709
|
-
|
|
4710
|
-
},
|
|
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;
|
|
4701
|
+
return Math.min(s.max, Math.max(s.min, h));
|
|
4702
|
+
}, b = (k) => {
|
|
4703
|
+
const I = o(k);
|
|
4704
|
+
I !== s.modelValue && e("update:modelValue", I);
|
|
4705
|
+
}, $ = (k) => {
|
|
4711
4706
|
if (s.disabled) return;
|
|
4712
|
-
|
|
4713
|
-
const
|
|
4707
|
+
k.preventDefault(), k.stopPropagation(), i.value = !0;
|
|
4708
|
+
const I = (P) => {
|
|
4714
4709
|
if (!i.value) return;
|
|
4715
|
-
|
|
4716
|
-
const
|
|
4717
|
-
|
|
4718
|
-
},
|
|
4719
|
-
i.value = !1, document.removeEventListener("mousemove",
|
|
4710
|
+
P.preventDefault();
|
|
4711
|
+
const h = g(P.clientX);
|
|
4712
|
+
b(h);
|
|
4713
|
+
}, C = () => {
|
|
4714
|
+
i.value = !1, document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", C);
|
|
4720
4715
|
};
|
|
4721
|
-
document.addEventListener("mousemove",
|
|
4722
|
-
}, V = (
|
|
4716
|
+
document.addEventListener("mousemove", I), document.addEventListener("mouseup", C);
|
|
4717
|
+
}, V = (k) => {
|
|
4723
4718
|
if (s.disabled) return;
|
|
4724
|
-
|
|
4725
|
-
const
|
|
4726
|
-
!i.value ||
|
|
4727
|
-
},
|
|
4728
|
-
i.value = !1, document.removeEventListener("touchmove",
|
|
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)));
|
|
4722
|
+
}, C = () => {
|
|
4723
|
+
i.value = !1, document.removeEventListener("touchmove", I), document.removeEventListener("touchend", C);
|
|
4729
4724
|
};
|
|
4730
|
-
document.addEventListener("touchmove",
|
|
4731
|
-
}, v = (
|
|
4725
|
+
document.addEventListener("touchmove", I), document.addEventListener("touchend", C);
|
|
4726
|
+
}, v = (k) => {
|
|
4732
4727
|
if (s.disabled || i.value) return;
|
|
4733
|
-
|
|
4734
|
-
const
|
|
4735
|
-
|
|
4736
|
-
}, T = (
|
|
4728
|
+
k.preventDefault(), k.stopPropagation();
|
|
4729
|
+
const I = g(k.clientX);
|
|
4730
|
+
b(I);
|
|
4731
|
+
}, T = (k) => {
|
|
4737
4732
|
if (s.disabled) return;
|
|
4738
|
-
let
|
|
4739
|
-
switch (
|
|
4733
|
+
let I = s.modelValue;
|
|
4734
|
+
switch (k.key) {
|
|
4740
4735
|
case "ArrowLeft":
|
|
4741
4736
|
case "ArrowDown":
|
|
4742
|
-
|
|
4737
|
+
k.preventDefault(), I = s.modelValue - s.step;
|
|
4743
4738
|
break;
|
|
4744
4739
|
case "ArrowRight":
|
|
4745
4740
|
case "ArrowUp":
|
|
4746
|
-
|
|
4741
|
+
k.preventDefault(), I = s.modelValue + s.step;
|
|
4747
4742
|
break;
|
|
4748
4743
|
case "Home":
|
|
4749
|
-
|
|
4744
|
+
k.preventDefault(), I = s.min;
|
|
4750
4745
|
break;
|
|
4751
4746
|
case "End":
|
|
4752
|
-
|
|
4747
|
+
k.preventDefault(), I = s.max;
|
|
4753
4748
|
break;
|
|
4754
4749
|
case "PageDown":
|
|
4755
|
-
|
|
4750
|
+
k.preventDefault(), I = s.modelValue - s.step * 10;
|
|
4756
4751
|
break;
|
|
4757
4752
|
case "PageUp":
|
|
4758
|
-
|
|
4753
|
+
k.preventDefault(), I = s.modelValue + s.step * 10;
|
|
4759
4754
|
break;
|
|
4760
4755
|
default:
|
|
4761
4756
|
return;
|
|
4762
4757
|
}
|
|
4763
|
-
|
|
4758
|
+
b(I);
|
|
4764
4759
|
};
|
|
4765
|
-
return (
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
a("span", gl, B(
|
|
4769
|
-
|
|
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, {
|
|
4770
4765
|
key: 0,
|
|
4771
|
-
text:
|
|
4772
|
-
placement:
|
|
4766
|
+
text: k.tooltip,
|
|
4767
|
+
placement: k.tooltipPlacement
|
|
4773
4768
|
}, {
|
|
4774
4769
|
default: Z(() => [
|
|
4775
4770
|
L(ce, { class: "freddy-plugins-slider-tooltip-icon" })
|
|
4776
4771
|
]),
|
|
4777
4772
|
_: 1
|
|
4778
|
-
}, 8, ["text", "placement"])) :
|
|
4779
|
-
])) :
|
|
4780
|
-
|
|
4781
|
-
])) :
|
|
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),
|
|
4782
4777
|
a("div", {
|
|
4783
|
-
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 }]),
|
|
4784
4779
|
onClick: v,
|
|
4785
4780
|
onKeydown: T,
|
|
4786
|
-
tabindex:
|
|
4781
|
+
tabindex: k.disabled ? -1 : 0,
|
|
4787
4782
|
role: "slider",
|
|
4788
|
-
"aria-valuemin":
|
|
4789
|
-
"aria-valuemax":
|
|
4790
|
-
"aria-valuenow":
|
|
4791
|
-
"aria-disabled":
|
|
4792
|
-
"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"
|
|
4793
4788
|
}, [
|
|
4794
4789
|
a("div", {
|
|
4795
4790
|
ref_key: "sliderTrack",
|
|
@@ -4803,30 +4798,30 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4803
4798
|
a("div", {
|
|
4804
4799
|
class: F(["freddy-plugins-slider-thumb", {
|
|
4805
4800
|
"freddy-plugins-slider-thumb-dragging": i.value,
|
|
4806
|
-
"freddy-plugins-slider-thumb-disabled":
|
|
4801
|
+
"freddy-plugins-slider-thumb-disabled": k.disabled
|
|
4807
4802
|
}]),
|
|
4808
4803
|
style: oe({ left: d.value + "%" }),
|
|
4809
|
-
onMousedown:
|
|
4804
|
+
onMousedown: $,
|
|
4810
4805
|
onTouchstart: V
|
|
4811
4806
|
}, null, 38)
|
|
4812
4807
|
], 42, bl),
|
|
4813
|
-
|
|
4808
|
+
k.hint ? (c(), f("p", kl, B(k.hint), 1)) : w("", !0)
|
|
4814
4809
|
]));
|
|
4815
4810
|
}
|
|
4816
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({
|
|
4817
4812
|
__name: "SnackBar",
|
|
4818
4813
|
setup(y) {
|
|
4819
4814
|
ne();
|
|
4820
|
-
const { snackQueue: m } =
|
|
4815
|
+
const { snackQueue: m } = St(), s = (l) => {
|
|
4821
4816
|
switch (l) {
|
|
4822
4817
|
case "success":
|
|
4823
|
-
return
|
|
4818
|
+
return $e;
|
|
4824
4819
|
case "danger":
|
|
4825
4820
|
return ee;
|
|
4826
4821
|
case "info":
|
|
4827
4822
|
return ce;
|
|
4828
4823
|
default:
|
|
4829
|
-
return
|
|
4824
|
+
return $e;
|
|
4830
4825
|
}
|
|
4831
4826
|
}, e = M(() => {
|
|
4832
4827
|
const l = m.value[m.value.length - 1];
|
|
@@ -4845,7 +4840,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4845
4840
|
return (l, r) => (c(), f("div", {
|
|
4846
4841
|
class: F(["freddy-plugins-snackbar-container", `freddy-plugins-snackbar-container--${e.value}`])
|
|
4847
4842
|
}, [
|
|
4848
|
-
(c(!0), f(O, null,
|
|
4843
|
+
(c(!0), f(O, null, j(D(m), (u, d) => (c(), f("div", {
|
|
4849
4844
|
key: d,
|
|
4850
4845
|
class: F(["freddy-plugins-snackbar", `freddy-plugins-snackbar--${u.toastType}`])
|
|
4851
4846
|
}, [
|
|
@@ -4873,7 +4868,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4873
4868
|
class: "freddy-plugins-snackbar-close-btn",
|
|
4874
4869
|
onClick: (o) => i(d)
|
|
4875
4870
|
}, [
|
|
4876
|
-
L(
|
|
4871
|
+
L(Me, { class: "freddy-plugins-snackbar-close-icon" })
|
|
4877
4872
|
], 8, xl)
|
|
4878
4873
|
])
|
|
4879
4874
|
], 2))), 128))
|
|
@@ -4916,7 +4911,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4916
4911
|
}, [
|
|
4917
4912
|
a("div", Pl, [
|
|
4918
4913
|
l.label || l.tooltip ? (c(), f("div", Al, [
|
|
4919
|
-
l.label ? (c(), f("span", Dl, B(l.label), 1)) :
|
|
4914
|
+
l.label ? (c(), f("span", Dl, B(l.label), 1)) : w("", !0),
|
|
4920
4915
|
l.tooltip ? (c(), E(re, {
|
|
4921
4916
|
key: 1,
|
|
4922
4917
|
text: l.tooltip,
|
|
@@ -4926,8 +4921,8 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4926
4921
|
L(ce, { class: "freddy-plugins-switch-slot__tooltip-icon" })
|
|
4927
4922
|
]),
|
|
4928
4923
|
_: 1
|
|
4929
|
-
}, 8, ["text", "placement"])) :
|
|
4930
|
-
])) :
|
|
4924
|
+
}, 8, ["text", "placement"])) : w("", !0)
|
|
4925
|
+
])) : w("", !0),
|
|
4931
4926
|
a("button", {
|
|
4932
4927
|
class: F(["freddy-plugins-switch-slot__switch", { "freddy-plugins-switch-slot__switch--on": l.modelValue }]),
|
|
4933
4928
|
"aria-checked": l.modelValue,
|
|
@@ -4935,8 +4930,8 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4935
4930
|
tabindex: l.disabled ? -1 : 0,
|
|
4936
4931
|
onClick: i,
|
|
4937
4932
|
onKeydown: [
|
|
4938
|
-
z(
|
|
4939
|
-
z(
|
|
4933
|
+
z(U(i, ["prevent"]), ["space"]),
|
|
4934
|
+
z(U(i, ["prevent"]), ["enter"])
|
|
4940
4935
|
],
|
|
4941
4936
|
disabled: l.disabled
|
|
4942
4937
|
}, [...r[0] || (r[0] = [
|
|
@@ -4946,8 +4941,8 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4946
4941
|
]),
|
|
4947
4942
|
l.showSlotContent ? (c(), f("div", Bl, [
|
|
4948
4943
|
q(l.$slots, "content", {}, void 0, !0)
|
|
4949
|
-
])) :
|
|
4950
|
-
l.hint ? (c(), f("p", Ml, B(l.hint), 1)) :
|
|
4944
|
+
])) : w("", !0),
|
|
4945
|
+
l.hint ? (c(), f("p", Ml, B(l.hint), 1)) : w("", !0)
|
|
4951
4946
|
], 2));
|
|
4952
4947
|
}
|
|
4953
4948
|
}), Cc = /* @__PURE__ */ H(Ll, [["__scopeId", "data-v-edc0859a"]]), Vl = { class: "freddy-plugin-nav-bar" }, El = ["onClick"], wc = /* @__PURE__ */ N({
|
|
@@ -4961,11 +4956,11 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4961
4956
|
},
|
|
4962
4957
|
emits: ["tabSwitch"],
|
|
4963
4958
|
setup(y, { emit: m }) {
|
|
4964
|
-
const s = y, e = m, i =
|
|
4959
|
+
const s = y, e = m, i = A(s.currentTab), l = (r) => {
|
|
4965
4960
|
i.value !== r.id && (i.value = r.id, e("tabSwitch", r.id));
|
|
4966
4961
|
};
|
|
4967
4962
|
return (r, u) => (c(), f("div", Vl, [
|
|
4968
|
-
(c(!0), f(O, null,
|
|
4963
|
+
(c(!0), f(O, null, j(r.tabList, (d, o) => (c(), f("button", {
|
|
4969
4964
|
class: "freddy-plugin-tab-list-menu-button",
|
|
4970
4965
|
key: o,
|
|
4971
4966
|
onClick: (g) => l(d)
|
|
@@ -4980,7 +4975,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4980
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({
|
|
4981
4976
|
__name: "ToastMessage",
|
|
4982
4977
|
setup(y) {
|
|
4983
|
-
const { toastQueue: m } =
|
|
4978
|
+
const { toastQueue: m } = Tt(), s = {
|
|
4984
4979
|
success: "freddy-plugins-toast-success",
|
|
4985
4980
|
danger: "freddy-plugins-toast-danger",
|
|
4986
4981
|
info: "freddy-plugins-toast-info"
|
|
@@ -4999,7 +4994,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
4999
4994
|
m.value.splice(r, 1);
|
|
5000
4995
|
};
|
|
5001
4996
|
return (r, u) => (c(), f("div", Nl, [
|
|
5002
|
-
(c(!0), f(O, null,
|
|
4997
|
+
(c(!0), f(O, null, j(D(m), (d, o) => (c(), f("div", {
|
|
5003
4998
|
key: o,
|
|
5004
4999
|
class: F(["freddy-plugins-toast-item", e(d.toastType)])
|
|
5005
5000
|
}, [
|
|
@@ -5011,7 +5006,7 @@ const Va = /* @__PURE__ */ H(Pa, [["render", La]]), hc = /* @__PURE__ */ N({
|
|
|
5011
5006
|
class: "freddy-plugins-toast-close-button",
|
|
5012
5007
|
onClick: (g) => l(o)
|
|
5013
5008
|
}, [
|
|
5014
|
-
L(
|
|
5009
|
+
L(D(ee), { class: "freddy-plugins-toast-close-icon" })
|
|
5015
5010
|
], 8, zl)
|
|
5016
5011
|
], 2))), 128))
|
|
5017
5012
|
]));
|
|
@@ -5022,49 +5017,49 @@ function Tc(y = {}) {
|
|
|
5022
5017
|
logErrors: m = !0,
|
|
5023
5018
|
throwOnCritical: s = !1,
|
|
5024
5019
|
maxRetries: e = 3
|
|
5025
|
-
} = y, i =
|
|
5026
|
-
const
|
|
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) => {
|
|
5021
|
+
const I = {
|
|
5027
5022
|
message: T instanceof Error ? T.message : String(T),
|
|
5028
5023
|
stack: T instanceof Error ? T.stack : void 0,
|
|
5029
5024
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
5030
5025
|
context: {
|
|
5031
|
-
...
|
|
5026
|
+
...k,
|
|
5032
5027
|
retryCount: r.value,
|
|
5033
5028
|
userAgent: typeof navigator < "u" ? navigator.userAgent : "Unknown"
|
|
5034
5029
|
}
|
|
5035
5030
|
};
|
|
5036
|
-
if (T && typeof T == "object" && "status" in T && (
|
|
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))
|
|
5037
5032
|
throw T;
|
|
5038
|
-
return
|
|
5039
|
-
}, g = async (T,
|
|
5033
|
+
return I;
|
|
5034
|
+
}, g = async (T, k) => {
|
|
5040
5035
|
l.value = !0;
|
|
5041
5036
|
try {
|
|
5042
|
-
const
|
|
5043
|
-
return r.value = 0, { data:
|
|
5044
|
-
} catch (
|
|
5045
|
-
return { data: null, error: o(
|
|
5037
|
+
const I = await T();
|
|
5038
|
+
return r.value = 0, { data: I, error: null };
|
|
5039
|
+
} catch (I) {
|
|
5040
|
+
return { data: null, error: o(I, k) };
|
|
5046
5041
|
} finally {
|
|
5047
5042
|
l.value = !1;
|
|
5048
5043
|
}
|
|
5049
|
-
},
|
|
5050
|
-
let
|
|
5051
|
-
for (let
|
|
5052
|
-
r.value =
|
|
5053
|
-
const
|
|
5054
|
-
...
|
|
5055
|
-
attempt:
|
|
5044
|
+
}, b = async (T, k) => {
|
|
5045
|
+
let I = null;
|
|
5046
|
+
for (let C = 1; C <= e; C++) {
|
|
5047
|
+
r.value = C - 1;
|
|
5048
|
+
const P = await g(T, {
|
|
5049
|
+
...k,
|
|
5050
|
+
attempt: C,
|
|
5056
5051
|
maxRetries: e
|
|
5057
5052
|
});
|
|
5058
|
-
if (
|
|
5059
|
-
return
|
|
5060
|
-
if (
|
|
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)
|
|
5061
5056
|
break;
|
|
5062
|
-
|
|
5063
|
-
(
|
|
5057
|
+
C < e && await new Promise(
|
|
5058
|
+
(h) => setTimeout(h, Math.pow(2, C) * 1e3)
|
|
5064
5059
|
);
|
|
5065
5060
|
}
|
|
5066
|
-
return { data: null, error:
|
|
5067
|
-
},
|
|
5061
|
+
return { data: null, error: I };
|
|
5062
|
+
}, $ = () => {
|
|
5068
5063
|
i.value = [], r.value = 0;
|
|
5069
5064
|
}, V = (T) => {
|
|
5070
5065
|
T >= 0 && T < i.value.length && i.value.splice(T, 1);
|
|
@@ -5087,8 +5082,8 @@ function Tc(y = {}) {
|
|
|
5087
5082
|
// Methods
|
|
5088
5083
|
handleError: o,
|
|
5089
5084
|
handleAsync: g,
|
|
5090
|
-
retryAsync:
|
|
5091
|
-
clearErrors:
|
|
5085
|
+
retryAsync: b,
|
|
5086
|
+
clearErrors: $,
|
|
5092
5087
|
clearError: V,
|
|
5093
5088
|
isCriticalError: v
|
|
5094
5089
|
};
|
|
@@ -5098,68 +5093,68 @@ function $c(y = {}) {
|
|
|
5098
5093
|
enableMetrics: m = process.env.NODE_ENV === "development",
|
|
5099
5094
|
trackMemory: s = !1,
|
|
5100
5095
|
sampleRate: e = 0.1
|
|
5101
|
-
} = y, i =
|
|
5102
|
-
!m || Math.random() > e || (l.value = !0, r.value = performance.now(),
|
|
5103
|
-
}, 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) => {
|
|
5104
5099
|
if (!l.value || !m) return;
|
|
5105
|
-
const
|
|
5100
|
+
const S = {
|
|
5106
5101
|
renderTime: performance.now() - r.value,
|
|
5107
|
-
componentCount:
|
|
5102
|
+
componentCount: h,
|
|
5108
5103
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
5109
5104
|
};
|
|
5110
5105
|
if (s && "memory" in performance) {
|
|
5111
5106
|
const _ = performance.memory;
|
|
5112
|
-
|
|
5107
|
+
S.memoryUsage = _.usedJSHeapSize;
|
|
5113
5108
|
}
|
|
5114
|
-
return i.value.push(
|
|
5115
|
-
},
|
|
5116
|
-
o(
|
|
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) => {
|
|
5111
|
+
o(h);
|
|
5117
5112
|
try {
|
|
5118
|
-
const t = await
|
|
5113
|
+
const t = await P(), p = g(h) || {
|
|
5119
5114
|
renderTime: 0,
|
|
5120
5115
|
componentCount: 1,
|
|
5121
5116
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
5122
5117
|
};
|
|
5123
|
-
return { result: t, metrics:
|
|
5118
|
+
return { result: t, metrics: p };
|
|
5124
5119
|
} catch (t) {
|
|
5125
|
-
throw g(
|
|
5120
|
+
throw g(h), t;
|
|
5126
5121
|
}
|
|
5127
|
-
},
|
|
5122
|
+
}, $ = (P, h) => {
|
|
5128
5123
|
let t;
|
|
5129
|
-
return (...
|
|
5130
|
-
clearTimeout(t), t = setTimeout(() =>
|
|
5124
|
+
return (...p) => {
|
|
5125
|
+
clearTimeout(t), t = setTimeout(() => P(...p), h);
|
|
5131
5126
|
};
|
|
5132
|
-
}, V = (
|
|
5127
|
+
}, V = (P, h) => {
|
|
5133
5128
|
let t;
|
|
5134
|
-
return (...
|
|
5135
|
-
t || (
|
|
5129
|
+
return (...p) => {
|
|
5130
|
+
t || (P(...p), t = !0, setTimeout(() => t = !1, h));
|
|
5136
5131
|
};
|
|
5137
|
-
}, v = (
|
|
5138
|
-
"requestIdleCallback" in window ? window.requestIdleCallback(
|
|
5139
|
-
}, 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) => {
|
|
5140
5135
|
v(async () => {
|
|
5141
5136
|
try {
|
|
5142
|
-
const
|
|
5143
|
-
t(
|
|
5144
|
-
} catch (
|
|
5145
|
-
throw
|
|
5137
|
+
const p = await P();
|
|
5138
|
+
t(p);
|
|
5139
|
+
} catch (p) {
|
|
5140
|
+
throw p;
|
|
5146
5141
|
}
|
|
5147
5142
|
});
|
|
5148
|
-
})),
|
|
5149
|
-
const
|
|
5143
|
+
})), k = (P, h, t) => {
|
|
5144
|
+
const p = Math.ceil(t / h), S = Math.ceil(p * 0.5);
|
|
5150
5145
|
return (_) => {
|
|
5151
|
-
const n = Math.max(0, Math.floor(_ /
|
|
5146
|
+
const n = Math.max(0, Math.floor(_ / h) - S), W = Math.min(P.length, n + p + S * 2);
|
|
5152
5147
|
return {
|
|
5153
|
-
visibleItems:
|
|
5148
|
+
visibleItems: P.slice(n, W),
|
|
5154
5149
|
startIndex: n,
|
|
5155
5150
|
endIndex: W,
|
|
5156
|
-
totalHeight:
|
|
5157
|
-
offsetY: n *
|
|
5151
|
+
totalHeight: P.length * h,
|
|
5152
|
+
offsetY: n * h
|
|
5158
5153
|
};
|
|
5159
5154
|
};
|
|
5160
|
-
},
|
|
5155
|
+
}, I = () => {
|
|
5161
5156
|
i.value = [];
|
|
5162
|
-
},
|
|
5157
|
+
}, C = () => ({
|
|
5163
5158
|
totalMeasurements: i.value.length,
|
|
5164
5159
|
averageRenderTime: u.value,
|
|
5165
5160
|
maxRenderTime: d.value,
|
|
@@ -5178,16 +5173,16 @@ function $c(y = {}) {
|
|
|
5178
5173
|
// Performance tracking
|
|
5179
5174
|
startTracking: o,
|
|
5180
5175
|
endTracking: g,
|
|
5181
|
-
measureAsync:
|
|
5176
|
+
measureAsync: b,
|
|
5182
5177
|
// Optimization utilities
|
|
5183
|
-
debounce:
|
|
5178
|
+
debounce: $,
|
|
5184
5179
|
throttle: V,
|
|
5185
5180
|
scheduleWork: v,
|
|
5186
5181
|
lazyLoad: T,
|
|
5187
|
-
createVirtualList:
|
|
5182
|
+
createVirtualList: k,
|
|
5188
5183
|
// Management
|
|
5189
|
-
clearMetrics:
|
|
5190
|
-
getSummary:
|
|
5184
|
+
clearMetrics: I,
|
|
5185
|
+
getSummary: C
|
|
5191
5186
|
};
|
|
5192
5187
|
}
|
|
5193
5188
|
export {
|
|
@@ -5196,9 +5191,9 @@ export {
|
|
|
5196
5191
|
Ut as AssistantField,
|
|
5197
5192
|
Ql as AssistantList,
|
|
5198
5193
|
Yl as AssistantsHeader,
|
|
5199
|
-
|
|
5194
|
+
ao as AvatarChoosing,
|
|
5200
5195
|
Xl as AvatarList,
|
|
5201
|
-
|
|
5196
|
+
Ne as BaseButton,
|
|
5202
5197
|
ke as BaseInput,
|
|
5203
5198
|
Vo as BaseTabButton,
|
|
5204
5199
|
ma as CardInput,
|
|
@@ -5227,17 +5222,17 @@ export {
|
|
|
5227
5222
|
Oc as IconBroom,
|
|
5228
5223
|
zc as IconBuildings,
|
|
5229
5224
|
Hc as IconCalendarWithTickInside,
|
|
5230
|
-
|
|
5231
|
-
|
|
5225
|
+
Uc as IconCallNotAllowed,
|
|
5226
|
+
jc as IconCardPay,
|
|
5232
5227
|
Kc as IconCaution,
|
|
5233
5228
|
Gc as IconChangeLog,
|
|
5234
5229
|
Zc as IconCheckCircleFill,
|
|
5235
|
-
|
|
5236
|
-
|
|
5230
|
+
$e as IconCheckInCircle,
|
|
5231
|
+
Te as IconCheckRounded,
|
|
5237
5232
|
ae as IconChevronDown,
|
|
5238
5233
|
qc as IconChevronLeft,
|
|
5239
5234
|
Wc as IconChevronRight,
|
|
5240
|
-
|
|
5235
|
+
Be as IconChevronUp,
|
|
5241
5236
|
Jc as IconCircledCheck,
|
|
5242
5237
|
Qc as IconClock,
|
|
5243
5238
|
Yc as IconClosedEnvelope,
|
|
@@ -5251,12 +5246,12 @@ export {
|
|
|
5251
5246
|
ar as IconConnectorNotion,
|
|
5252
5247
|
lr as IconConnectorSlack,
|
|
5253
5248
|
cr as IconConnectorZapier,
|
|
5254
|
-
|
|
5249
|
+
Se as IconCopy,
|
|
5255
5250
|
ee as IconCross,
|
|
5256
5251
|
rr as IconCrossCircleFill,
|
|
5257
5252
|
dr as IconCrossInCircle,
|
|
5258
5253
|
ur as IconCurrentTick,
|
|
5259
|
-
|
|
5254
|
+
Je as IconDataUpload,
|
|
5260
5255
|
pr as IconDelete,
|
|
5261
5256
|
hr as IconDeleteFillRed,
|
|
5262
5257
|
fr as IconDialingPhone,
|
|
@@ -5269,7 +5264,7 @@ export {
|
|
|
5269
5264
|
kt as IconEditLinePath,
|
|
5270
5265
|
Ir as IconEllipse,
|
|
5271
5266
|
br as IconExcelThumbnail,
|
|
5272
|
-
|
|
5267
|
+
_t as IconExpand,
|
|
5273
5268
|
et as IconEye,
|
|
5274
5269
|
ut as IconFacebook,
|
|
5275
5270
|
ct as IconFigma,
|
|
@@ -5294,18 +5289,18 @@ export {
|
|
|
5294
5289
|
Br as IconInvoiceSwitch,
|
|
5295
5290
|
Mr as IconLapTableBottom,
|
|
5296
5291
|
Lr as IconLense,
|
|
5297
|
-
|
|
5292
|
+
Me as IconLightCross,
|
|
5298
5293
|
Vr as IconLink04,
|
|
5299
5294
|
Er as IconLoadingError,
|
|
5300
5295
|
Nr as IconLoadingOrg,
|
|
5301
5296
|
Rr as IconLocationWithCircleIn,
|
|
5302
|
-
|
|
5297
|
+
Ze as IconLock,
|
|
5303
5298
|
Or as IconMarketPlace,
|
|
5304
5299
|
zr as IconMaximize,
|
|
5305
5300
|
Hr as IconMicrophone,
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5301
|
+
Ur as IconMutedMicrophone,
|
|
5302
|
+
jr as IconNewNotification,
|
|
5303
|
+
qe as IconNewTab,
|
|
5309
5304
|
Kr as IconNotification,
|
|
5310
5305
|
Gr as IconOpenBook,
|
|
5311
5306
|
yt as IconPaperAirPlane,
|
|
@@ -5330,39 +5325,39 @@ export {
|
|
|
5330
5325
|
rd as IconRadioFill,
|
|
5331
5326
|
ft as IconRefresh,
|
|
5332
5327
|
at as IconRevertedTriangle,
|
|
5333
|
-
|
|
5328
|
+
We as IconRobotScreen,
|
|
5334
5329
|
dd as IconRoundTick,
|
|
5335
5330
|
Ye as IconSearch,
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5331
|
+
Ct as IconSearchOptimised,
|
|
5332
|
+
ud as IconSectionHide,
|
|
5333
|
+
wt as IconSend,
|
|
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,
|
|
5346
5341
|
ot as IconStar,
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
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,
|
|
5358
5353
|
mt as IconThumbsDown,
|
|
5359
5354
|
he as IconTick,
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5355
|
+
xd as IconUser,
|
|
5356
|
+
Pd as IconVerticalDots,
|
|
5357
|
+
Ad as IconVideoCamera,
|
|
5358
|
+
Dd as IconWarningOctal,
|
|
5364
5359
|
rt as IconX,
|
|
5365
|
-
|
|
5360
|
+
Fd as IconZip,
|
|
5366
5361
|
pc as InputField,
|
|
5367
5362
|
hc as InstructionsModal,
|
|
5368
5363
|
fc as InstructiontextArea,
|
|
@@ -5381,7 +5376,7 @@ export {
|
|
|
5381
5376
|
_c as SnackBar,
|
|
5382
5377
|
ic as SocialButtons,
|
|
5383
5378
|
za as Spinner,
|
|
5384
|
-
|
|
5379
|
+
Ui as Switch,
|
|
5385
5380
|
Cc as SwitchSlot,
|
|
5386
5381
|
wc as TabList,
|
|
5387
5382
|
Vi as TextAreaInputField,
|
|
@@ -5391,45 +5386,45 @@ export {
|
|
|
5391
5386
|
oc as VectorFrame,
|
|
5392
5387
|
nc as VectorSection,
|
|
5393
5388
|
sc as VoiceList,
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5389
|
+
Ee as VoiceSelection,
|
|
5390
|
+
Bd as aiResponseToChatMessage,
|
|
5391
|
+
Md as calculatePercentage,
|
|
5392
|
+
Ld as cloneDeepSafe,
|
|
5393
|
+
Vd as copyToClipboard,
|
|
5399
5394
|
bt as createChangesObject,
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5395
|
+
Ed as daysInMonth,
|
|
5396
|
+
Nd as debounce,
|
|
5397
|
+
Rd as deepEqual,
|
|
5403
5398
|
Gl as default,
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5399
|
+
Od as defaultImageSrc,
|
|
5400
|
+
zd as extractStats,
|
|
5401
|
+
Hd as fileSizeFormatter,
|
|
5402
|
+
Ud as fillMissingDays,
|
|
5408
5403
|
jd as formatDate,
|
|
5409
|
-
|
|
5410
|
-
|
|
5404
|
+
Kd as formatDateToLocaleString,
|
|
5405
|
+
Gd as formatLastUsedDate,
|
|
5411
5406
|
Zl as frSanitizePlugin,
|
|
5412
|
-
|
|
5413
|
-
|
|
5407
|
+
Zd as getDatesForMonth,
|
|
5408
|
+
qd as getDaysInMonth,
|
|
5414
5409
|
It as getDisplayContent,
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5410
|
+
Wd as getFileNameFromUrl,
|
|
5411
|
+
Jd as getShortMonthName,
|
|
5412
|
+
Qd as hasOverflow,
|
|
5413
|
+
Yd as hasTextImprovements,
|
|
5419
5414
|
ql as iconStylePlugin,
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5415
|
+
Xd as interpolateColor,
|
|
5416
|
+
eu as isValidAIResponse,
|
|
5417
|
+
tu as openConfirmBoxModal,
|
|
5418
|
+
ou as openDeleteConfirmModal,
|
|
5419
|
+
nu as parseAITextResponse,
|
|
5425
5420
|
gt as parseApiResponse,
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5421
|
+
su as readableDateFormat,
|
|
5422
|
+
iu as scrollToBottom,
|
|
5423
|
+
au as scrollToElement,
|
|
5429
5424
|
Tc as useErrorHandler,
|
|
5430
5425
|
$c as usePerformance,
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5426
|
+
St as useSnackBar,
|
|
5427
|
+
Tt as useToast,
|
|
5428
|
+
Ve as vFrSanitize
|
|
5434
5429
|
};
|
|
5435
5430
|
//# sourceMappingURL=index.js.map
|