@encatch/web-sdk 0.0.24 → 0.0.25
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as fa, x as Sv, k as lp, t as $v, u as Ds } from "./module-
|
|
1
|
+
import { l as fa, x as Sv, k as lp, t as $v, u as Ds } from "./module-CyTvQ4YT.js";
|
|
2
2
|
var os, Dt, yc, yd, ss = 0, up = [], Zt = fa, _d = Zt.__b, xd = Zt.__r, kd = Zt.diffed, Sd = Zt.__c, $d = Zt.unmount, Td = Zt.__;
|
|
3
3
|
function Vl(e, t) {
|
|
4
4
|
Zt.__h && Zt.__h(Dt, e, ss || t), ss = 0;
|
|
@@ -2841,7 +2841,7 @@ const Zi = 15, ef = 852, tf = 592, nf = 0, qc = 1, rf = 2, Dw = new Uint16Array(
|
|
|
2841
2841
|
const u = a.bits;
|
|
2842
2842
|
let c = 0, d = 0, m = 0, h = 0, p = 0, g = 0, $ = 0, k = 0, E = 0, j = 0, A, y, T, D, v, S = null, C;
|
|
2843
2843
|
const N = new Uint16Array(Zi + 1), L = new Uint16Array(Zi + 1);
|
|
2844
|
-
let M = null, R,
|
|
2844
|
+
let M = null, R, W, G;
|
|
2845
2845
|
for (c = 0; c <= Zi; c++)
|
|
2846
2846
|
N[c] = 0;
|
|
2847
2847
|
for (d = 0; d < r; d++)
|
|
@@ -2864,9 +2864,9 @@ const Zi = 15, ef = 852, tf = 592, nf = 0, qc = 1, rf = 2, Dw = new Uint16Array(
|
|
|
2864
2864
|
if (e === nf ? (S = M = s, C = 20) : e === qc ? (S = Dw, M = qw, C = 257) : (S = Fw, M = jw, C = 0), j = 0, d = 0, c = m, v = o, g = p, $ = 0, T = -1, E = 1 << p, D = E - 1, e === qc && E > ef || e === rf && E > tf)
|
|
2865
2865
|
return 1;
|
|
2866
2866
|
for (; ; ) {
|
|
2867
|
-
R = c - $, s[d] + 1 < C ? (
|
|
2867
|
+
R = c - $, s[d] + 1 < C ? (W = 0, G = s[d]) : s[d] >= C ? (W = M[s[d] - C], G = S[s[d] - C]) : (W = 96, G = 0), A = 1 << c - $, y = 1 << g, m = y;
|
|
2868
2868
|
do
|
|
2869
|
-
y -= A, i[v + (j >> $) + y] = R << 24 |
|
|
2869
|
+
y -= A, i[v + (j >> $) + y] = R << 24 | W << 16 | G | 0;
|
|
2870
2870
|
while (y !== 0);
|
|
2871
2871
|
for (A = 1 << c - 1; j & A; )
|
|
2872
2872
|
A >>= 1;
|
|
@@ -7551,17 +7551,17 @@ const $o = {
|
|
|
7551
7551
|
const M = Gi(), R = Gc(M);
|
|
7552
7552
|
return L.feedbackConfiguration = R, L;
|
|
7553
7553
|
}, A = (N) => {
|
|
7554
|
-
const L = N?.masterProperties?.configSyncIntervalSeconds || 900, M = Date.now() + L * 1e3, R = N?.masterProperties?.disableAllSurvey || !1,
|
|
7554
|
+
const L = N?.masterProperties?.configSyncIntervalSeconds || 900, M = Date.now() + L * 1e3, R = N?.masterProperties?.disableAllSurvey || !1, W = N?.masterProperties?.feedbackIntervalDuration || 60, G = R ? [] : N?.feedbackConfiguration || [];
|
|
7555
7555
|
c(G);
|
|
7556
|
-
const Y = G || [],
|
|
7556
|
+
const Y = G || [], Z = {
|
|
7557
7557
|
feedbackConfiguration: Y,
|
|
7558
7558
|
expiry: M,
|
|
7559
|
-
feedbackInterval:
|
|
7559
|
+
feedbackInterval: W,
|
|
7560
7560
|
masterProperties: N?.masterProperties
|
|
7561
7561
|
};
|
|
7562
|
-
g(
|
|
7562
|
+
g(W), k(L), sessionStorage.setItem(
|
|
7563
7563
|
"encatch-configuration",
|
|
7564
|
-
JSON.stringify(
|
|
7564
|
+
JSON.stringify(Z)
|
|
7565
7565
|
), Pm(Y), Y.forEach((P) => {
|
|
7566
7566
|
const ee = P.triggerProperties?.isManual === !0;
|
|
7567
7567
|
P.frequencyAndScheduling && !ee && W$(
|
|
@@ -7583,8 +7583,8 @@ const $o = {
|
|
|
7583
7583
|
if (L) {
|
|
7584
7584
|
const M = Gi(), R = Gc(M);
|
|
7585
7585
|
a(R), g(L.feedbackInterval);
|
|
7586
|
-
const
|
|
7587
|
-
return k(
|
|
7586
|
+
const W = L.masterProperties?.configSyncIntervalSeconds || 900;
|
|
7587
|
+
return k(W), r(!1), R;
|
|
7588
7588
|
}
|
|
7589
7589
|
}
|
|
7590
7590
|
try {
|
|
@@ -11155,12 +11155,12 @@ function bn(e, t, n, r, i, o = null) {
|
|
|
11155
11155
|
Re && Ye.nodeType === Ai && /** @type {Comment} */
|
|
11156
11156
|
Ye.data === Nu && (s = /** @type {Comment} */
|
|
11157
11157
|
Ye, T = !0, Cn(!1));
|
|
11158
|
-
var M = $[L], R = r(M, L),
|
|
11159
|
-
|
|
11158
|
+
var M = $[L], R = r(M, L), W = k ? null : a.get(R);
|
|
11159
|
+
W ? (d && go(W.v, M), m && go(
|
|
11160
11160
|
/** @type {Value<number>} */
|
|
11161
|
-
|
|
11161
|
+
W.i,
|
|
11162
11162
|
L
|
|
11163
|
-
), N && S.skipped_effects.delete(
|
|
11163
|
+
), N && S.skipped_effects.delete(W.e)) : (W = DC(
|
|
11164
11164
|
k ? s : null,
|
|
11165
11165
|
C,
|
|
11166
11166
|
M,
|
|
@@ -11169,7 +11169,7 @@ function bn(e, t, n, r, i, o = null) {
|
|
|
11169
11169
|
i,
|
|
11170
11170
|
t,
|
|
11171
11171
|
n
|
|
11172
|
-
), k && (
|
|
11172
|
+
), k && (W.o = !0, C === null ? u = W : C.next = W, C = W), a.set(R, W)), v.add(R);
|
|
11173
11173
|
}
|
|
11174
11174
|
if (y === 0 && o && !p)
|
|
11175
11175
|
if (k)
|
|
@@ -11186,8 +11186,8 @@ function bn(e, t, n, r, i, o = null) {
|
|
|
11186
11186
|
}
|
|
11187
11187
|
if (Re && y > 0 && Yt(xa()), !k)
|
|
11188
11188
|
if (N) {
|
|
11189
|
-
for (const [
|
|
11190
|
-
v.has(
|
|
11189
|
+
for (const [Z, P] of a)
|
|
11190
|
+
v.has(Z) || S.skipped_effects.add(P.e);
|
|
11191
11191
|
S.oncommit(E), S.ondiscard(() => {
|
|
11192
11192
|
});
|
|
11193
11193
|
} else
|
|
@@ -12962,7 +12962,7 @@ const iI = {
|
|
|
12962
12962
|
"left-bottom"
|
|
12963
12963
|
], T = () => [...y(), Ee, Ie], D = () => ["auto", "hidden", "clip", "visible", "scroll"], v = () => ["auto", "contain", "none"], S = () => [Ee, Ie, u], C = () => [Qi, "full", "auto", ...S()], N = () => [Mr, "none", "subgrid", Ee, Ie], L = () => ["auto", {
|
|
12964
12964
|
span: ["full", Mr, Ee, Ie]
|
|
12965
|
-
}, Mr, Ee, Ie], M = () => [Mr, "auto", Ee, Ie], R = () => ["auto", "min", "max", "fr", Ee, Ie],
|
|
12965
|
+
}, Mr, Ee, Ie], M = () => [Mr, "auto", Ee, Ie], R = () => ["auto", "min", "max", "fr", Ee, Ie], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Y = () => ["auto", ...S()], Z = () => [Qi, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], P = () => [e, Ee, Ie], ee = () => [...y(), jh, Fh, {
|
|
12966
12966
|
position: [Ee, Ie]
|
|
12967
12967
|
}], O = () => ["no-repeat", {
|
|
12968
12968
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -13386,7 +13386,7 @@ const iI = {
|
|
|
13386
13386
|
* @see https://tailwindcss.com/docs/justify-content
|
|
13387
13387
|
*/
|
|
13388
13388
|
"justify-content": [{
|
|
13389
|
-
justify: [...
|
|
13389
|
+
justify: [...W(), "normal"]
|
|
13390
13390
|
}],
|
|
13391
13391
|
/**
|
|
13392
13392
|
* Justify Items
|
|
@@ -13407,7 +13407,7 @@ const iI = {
|
|
|
13407
13407
|
* @see https://tailwindcss.com/docs/align-content
|
|
13408
13408
|
*/
|
|
13409
13409
|
"align-content": [{
|
|
13410
|
-
content: ["normal", ...
|
|
13410
|
+
content: ["normal", ...W()]
|
|
13411
13411
|
}],
|
|
13412
13412
|
/**
|
|
13413
13413
|
* Align Items
|
|
@@ -13432,7 +13432,7 @@ const iI = {
|
|
|
13432
13432
|
* @see https://tailwindcss.com/docs/place-content
|
|
13433
13433
|
*/
|
|
13434
13434
|
"place-content": [{
|
|
13435
|
-
"place-content":
|
|
13435
|
+
"place-content": W()
|
|
13436
13436
|
}],
|
|
13437
13437
|
/**
|
|
13438
13438
|
* Place Items
|
|
@@ -13607,14 +13607,14 @@ const iI = {
|
|
|
13607
13607
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
13608
13608
|
*/
|
|
13609
13609
|
size: [{
|
|
13610
|
-
size:
|
|
13610
|
+
size: Z()
|
|
13611
13611
|
}],
|
|
13612
13612
|
/**
|
|
13613
13613
|
* Width
|
|
13614
13614
|
* @see https://tailwindcss.com/docs/width
|
|
13615
13615
|
*/
|
|
13616
13616
|
w: [{
|
|
13617
|
-
w: [a, "screen", ...
|
|
13617
|
+
w: [a, "screen", ...Z()]
|
|
13618
13618
|
}],
|
|
13619
13619
|
/**
|
|
13620
13620
|
* Min-Width
|
|
@@ -13626,7 +13626,7 @@ const iI = {
|
|
|
13626
13626
|
"screen",
|
|
13627
13627
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
13628
13628
|
"none",
|
|
13629
|
-
...
|
|
13629
|
+
...Z()
|
|
13630
13630
|
]
|
|
13631
13631
|
}],
|
|
13632
13632
|
/**
|
|
@@ -13644,7 +13644,7 @@ const iI = {
|
|
|
13644
13644
|
{
|
|
13645
13645
|
screen: [s]
|
|
13646
13646
|
},
|
|
13647
|
-
...
|
|
13647
|
+
...Z()
|
|
13648
13648
|
]
|
|
13649
13649
|
}],
|
|
13650
13650
|
/**
|
|
@@ -13652,21 +13652,21 @@ const iI = {
|
|
|
13652
13652
|
* @see https://tailwindcss.com/docs/height
|
|
13653
13653
|
*/
|
|
13654
13654
|
h: [{
|
|
13655
|
-
h: ["screen", "lh", ...
|
|
13655
|
+
h: ["screen", "lh", ...Z()]
|
|
13656
13656
|
}],
|
|
13657
13657
|
/**
|
|
13658
13658
|
* Min-Height
|
|
13659
13659
|
* @see https://tailwindcss.com/docs/min-height
|
|
13660
13660
|
*/
|
|
13661
13661
|
"min-h": [{
|
|
13662
|
-
"min-h": ["screen", "lh", "none", ...
|
|
13662
|
+
"min-h": ["screen", "lh", "none", ...Z()]
|
|
13663
13663
|
}],
|
|
13664
13664
|
/**
|
|
13665
13665
|
* Max-Height
|
|
13666
13666
|
* @see https://tailwindcss.com/docs/max-height
|
|
13667
13667
|
*/
|
|
13668
13668
|
"max-h": [{
|
|
13669
|
-
"max-h": ["screen", "lh", ...
|
|
13669
|
+
"max-h": ["screen", "lh", ...Z()]
|
|
13670
13670
|
}],
|
|
13671
13671
|
// ------------------
|
|
13672
13672
|
// --- Typography ---
|
|
@@ -15563,9 +15563,9 @@ var hr = JI(), XI = (e) => {
|
|
|
15563
15563
|
throw new TypeError(
|
|
15564
15564
|
`The "compoundSlots" prop must be an array. Received: ${typeof u}`
|
|
15565
15565
|
);
|
|
15566
|
-
const T = (R,
|
|
15567
|
-
const
|
|
15568
|
-
if (!
|
|
15566
|
+
const T = (R, W = h, G = null, Y = null) => {
|
|
15567
|
+
const Z = W[R];
|
|
15568
|
+
if (!Z || fn(Z))
|
|
15569
15569
|
return null;
|
|
15570
15570
|
const P = Y?.[R] ?? y?.[R];
|
|
15571
15571
|
if (P === null) return null;
|
|
@@ -15573,29 +15573,29 @@ var hr = JI(), XI = (e) => {
|
|
|
15573
15573
|
if (typeof ee == "object")
|
|
15574
15574
|
return null;
|
|
15575
15575
|
const O = p?.[R], _ = ee ?? Rh(O);
|
|
15576
|
-
return
|
|
15576
|
+
return Z[_ || "false"];
|
|
15577
15577
|
}, D = () => {
|
|
15578
15578
|
if (!h) return null;
|
|
15579
|
-
const R = Object.keys(h),
|
|
15579
|
+
const R = Object.keys(h), W = [];
|
|
15580
15580
|
for (let G = 0; G < R.length; G++) {
|
|
15581
15581
|
const Y = T(R[G], h);
|
|
15582
|
-
Y &&
|
|
15582
|
+
Y && W.push(Y);
|
|
15583
15583
|
}
|
|
15584
|
-
return
|
|
15585
|
-
}, v = (R,
|
|
15584
|
+
return W;
|
|
15585
|
+
}, v = (R, W) => {
|
|
15586
15586
|
if (!h || typeof h != "object") return null;
|
|
15587
15587
|
const G = [];
|
|
15588
15588
|
for (const Y in h) {
|
|
15589
|
-
const
|
|
15589
|
+
const Z = T(Y, h, R, W), P = R === "base" && typeof Z == "string" ? Z : Z && Z[R];
|
|
15590
15590
|
P && G.push(P);
|
|
15591
15591
|
}
|
|
15592
15592
|
return G;
|
|
15593
15593
|
}, S = {};
|
|
15594
15594
|
for (const R in y) {
|
|
15595
|
-
const
|
|
15596
|
-
|
|
15595
|
+
const W = y[R];
|
|
15596
|
+
W !== void 0 && (S[R] = W);
|
|
15597
15597
|
}
|
|
15598
|
-
const C = (R,
|
|
15598
|
+
const C = (R, W) => {
|
|
15599
15599
|
const G = typeof y?.[R] == "object" ? {
|
|
15600
15600
|
[R]: y[R]?.initial
|
|
15601
15601
|
} : {};
|
|
@@ -15603,14 +15603,14 @@ var hr = JI(), XI = (e) => {
|
|
|
15603
15603
|
...p,
|
|
15604
15604
|
...S,
|
|
15605
15605
|
...G,
|
|
15606
|
-
...
|
|
15606
|
+
...W
|
|
15607
15607
|
};
|
|
15608
|
-
}, N = (R = [],
|
|
15608
|
+
}, N = (R = [], W) => {
|
|
15609
15609
|
const G = [], Y = R.length;
|
|
15610
|
-
for (let
|
|
15611
|
-
const { class: P, className: ee, ...O } = R[
|
|
15610
|
+
for (let Z = 0; Z < Y; Z++) {
|
|
15611
|
+
const { class: P, className: ee, ...O } = R[Z];
|
|
15612
15612
|
let _ = !0;
|
|
15613
|
-
const H = C(null,
|
|
15613
|
+
const H = C(null, W);
|
|
15614
15614
|
for (const Q in O) {
|
|
15615
15615
|
const ge = O[Q], ke = H[Q];
|
|
15616
15616
|
if (Array.isArray(ge)) {
|
|
@@ -15631,11 +15631,11 @@ var hr = JI(), XI = (e) => {
|
|
|
15631
15631
|
}
|
|
15632
15632
|
return G;
|
|
15633
15633
|
}, L = (R) => {
|
|
15634
|
-
const
|
|
15635
|
-
if (!Array.isArray(
|
|
15634
|
+
const W = N(E, R);
|
|
15635
|
+
if (!Array.isArray(W)) return W;
|
|
15636
15636
|
const G = {}, Y = e;
|
|
15637
|
-
for (let
|
|
15638
|
-
const P = Z
|
|
15637
|
+
for (let Z = 0; Z < W.length; Z++) {
|
|
15638
|
+
const P = W[Z];
|
|
15639
15639
|
if (typeof P == "string")
|
|
15640
15640
|
G.base = Y(G.base, P)(d);
|
|
15641
15641
|
else if (typeof P == "object")
|
|
@@ -15645,10 +15645,10 @@ var hr = JI(), XI = (e) => {
|
|
|
15645
15645
|
return G;
|
|
15646
15646
|
}, M = (R) => {
|
|
15647
15647
|
if (u.length < 1) return null;
|
|
15648
|
-
const
|
|
15648
|
+
const W = {}, G = C(null, R);
|
|
15649
15649
|
for (let Y = 0; Y < u.length; Y++) {
|
|
15650
15650
|
const {
|
|
15651
|
-
slots:
|
|
15651
|
+
slots: Z = [],
|
|
15652
15652
|
class: P,
|
|
15653
15653
|
className: ee,
|
|
15654
15654
|
...O
|
|
@@ -15664,24 +15664,24 @@ var hr = JI(), XI = (e) => {
|
|
|
15664
15664
|
}
|
|
15665
15665
|
if (!_) continue;
|
|
15666
15666
|
}
|
|
15667
|
-
for (let _ = 0; _ <
|
|
15668
|
-
const H =
|
|
15669
|
-
|
|
15667
|
+
for (let _ = 0; _ < Z.length; _++) {
|
|
15668
|
+
const H = Z[_];
|
|
15669
|
+
W[H] || (W[H] = []), W[H].push([P, ee]);
|
|
15670
15670
|
}
|
|
15671
15671
|
}
|
|
15672
|
-
return
|
|
15672
|
+
return W;
|
|
15673
15673
|
};
|
|
15674
15674
|
if (!fn(o) || !g) {
|
|
15675
15675
|
const R = {};
|
|
15676
15676
|
if (typeof k == "object" && !fn(k)) {
|
|
15677
|
-
const
|
|
15677
|
+
const W = e;
|
|
15678
15678
|
for (const G in k)
|
|
15679
15679
|
R[G] = (Y) => {
|
|
15680
|
-
const
|
|
15681
|
-
return
|
|
15680
|
+
const Z = L(Y), P = M(Y);
|
|
15681
|
+
return W(
|
|
15682
15682
|
k[G],
|
|
15683
15683
|
v(G, Y),
|
|
15684
|
-
|
|
15684
|
+
Z ? Z[G] : void 0,
|
|
15685
15685
|
P ? P[G] : void 0,
|
|
15686
15686
|
Y?.class,
|
|
15687
15687
|
Y?.className
|
|
@@ -15823,8 +15823,8 @@ function pE(e, t) {
|
|
|
15823
15823
|
var g = hE(), $ = B(g), k = B($);
|
|
15824
15824
|
{
|
|
15825
15825
|
var E = (G) => {
|
|
15826
|
-
var Y = sE(),
|
|
15827
|
-
U(Y), $e(() => Ce(
|
|
15826
|
+
var Y = sE(), Z = B(Y);
|
|
15827
|
+
U(Y), $e(() => Ce(Z, `${m() ?? ""}.`)), z(G, Y);
|
|
15828
15828
|
};
|
|
15829
15829
|
ae(k, (G) => {
|
|
15830
15830
|
m() !== void 0 && G(E);
|
|
@@ -15844,8 +15844,8 @@ function pE(e, t) {
|
|
|
15844
15844
|
var v = pe(A, 2);
|
|
15845
15845
|
{
|
|
15846
15846
|
var S = (G) => {
|
|
15847
|
-
var Y = cE(),
|
|
15848
|
-
U(Y), $e(() => Ce(
|
|
15847
|
+
var Y = cE(), Z = B(Y, !0);
|
|
15848
|
+
U(Y), $e(() => Ce(Z, (I(s()), F(() => s().description)))), z(G, Y);
|
|
15849
15849
|
};
|
|
15850
15850
|
ae(v, (G) => {
|
|
15851
15851
|
I(s()), F(() => s().description) && G(S);
|
|
@@ -15855,13 +15855,13 @@ function pE(e, t) {
|
|
|
15855
15855
|
var C = pe($, 2), N = B(C);
|
|
15856
15856
|
bn(N, 5, () => l(r), An, (G, Y) => {
|
|
15857
15857
|
{
|
|
15858
|
-
let
|
|
15858
|
+
let Z = /* @__PURE__ */ Oe(() => `flex-1 min-w-0 h-8 xs:h-9 sm:h-10 text-xs xs:text-sm sm:text-base font-semibold transition-all hover:bg-primary/20 hover:text-primary border ${l(h) === l(Y) ? "bg-primary/20! dark:bg-primary/40! text-primary border-primary" : "bg-card text-card-foreground hover:border-primary"}`);
|
|
15859
15859
|
Ft(G, {
|
|
15860
15860
|
type: "button",
|
|
15861
15861
|
variant: "outline",
|
|
15862
15862
|
size: "sm",
|
|
15863
15863
|
get class() {
|
|
15864
|
-
return l(
|
|
15864
|
+
return l(Z);
|
|
15865
15865
|
},
|
|
15866
15866
|
onclick: () => p(l(Y)),
|
|
15867
15867
|
children: (P, ee) => {
|
|
@@ -15876,17 +15876,17 @@ function pE(e, t) {
|
|
|
15876
15876
|
var L = pe(N, 2);
|
|
15877
15877
|
{
|
|
15878
15878
|
var M = (G) => {
|
|
15879
|
-
var Y = dE(),
|
|
15879
|
+
var Y = dE(), Z = B(Y);
|
|
15880
15880
|
{
|
|
15881
15881
|
var P = (_) => {
|
|
15882
15882
|
var H = lE(), Q = B(H, !0);
|
|
15883
15883
|
U(H), $e(() => Ce(Q, (I(s()), F(() => s().minLabel)))), z(_, H);
|
|
15884
15884
|
};
|
|
15885
|
-
ae(
|
|
15885
|
+
ae(Z, (_) => {
|
|
15886
15886
|
I(s()), F(() => s().minLabel) && _(P);
|
|
15887
15887
|
});
|
|
15888
15888
|
}
|
|
15889
|
-
var ee = pe(
|
|
15889
|
+
var ee = pe(Z, 2);
|
|
15890
15890
|
{
|
|
15891
15891
|
var O = (_) => {
|
|
15892
15892
|
var H = uE(), Q = B(H, !0);
|
|
@@ -15905,12 +15905,12 @@ function pE(e, t) {
|
|
|
15905
15905
|
U(C);
|
|
15906
15906
|
var R = pe(C, 2);
|
|
15907
15907
|
{
|
|
15908
|
-
var
|
|
15909
|
-
var Y = fE(),
|
|
15910
|
-
U(
|
|
15908
|
+
var W = (G) => {
|
|
15909
|
+
var Y = fE(), Z = B(Y), P = B(Z, !0);
|
|
15910
|
+
U(Z), U(Y), $e(() => Ce(P, c())), z(G, Y);
|
|
15911
15911
|
};
|
|
15912
15912
|
ae(R, (G) => {
|
|
15913
|
-
c() && G(
|
|
15913
|
+
c() && G(W);
|
|
15914
15914
|
});
|
|
15915
15915
|
}
|
|
15916
15916
|
U(g), $e(() => Ce(y, `${I(s()), F(() => s().title) ?? ""} `)), z(e, g), Ve();
|
|
@@ -16184,12 +16184,12 @@ function qE(e, t) {
|
|
|
16184
16184
|
}
|
|
16185
16185
|
var N = pe(S, 2), L = B(N), M = B(L), R = pe(M);
|
|
16186
16186
|
{
|
|
16187
|
-
var
|
|
16187
|
+
var W = (J) => {
|
|
16188
16188
|
var de = IE();
|
|
16189
16189
|
z(J, de);
|
|
16190
16190
|
};
|
|
16191
16191
|
ae(R, (J) => {
|
|
16192
|
-
I(r()), F(() => r().required) && J(
|
|
16192
|
+
I(r()), F(() => r().required) && J(W);
|
|
16193
16193
|
});
|
|
16194
16194
|
}
|
|
16195
16195
|
U(L);
|
|
@@ -16204,7 +16204,7 @@ function qE(e, t) {
|
|
|
16204
16204
|
});
|
|
16205
16205
|
}
|
|
16206
16206
|
U(N), U(v);
|
|
16207
|
-
var
|
|
16207
|
+
var Z = pe(v, 2), P = B(Z), ee = B(P);
|
|
16208
16208
|
gE(ee, {
|
|
16209
16209
|
children: (J, de) => {
|
|
16210
16210
|
TE(J, {
|
|
@@ -16329,8 +16329,8 @@ function qE(e, t) {
|
|
|
16329
16329
|
l(p), F(() => l(p).length > 0) ? J(H) : J(Q, !1);
|
|
16330
16330
|
});
|
|
16331
16331
|
}
|
|
16332
|
-
U(O), U(
|
|
16333
|
-
var ge = pe(
|
|
16332
|
+
U(O), U(Z);
|
|
16333
|
+
var ge = pe(Z, 2);
|
|
16334
16334
|
{
|
|
16335
16335
|
var ke = (J) => {
|
|
16336
16336
|
var de = PE(), Se = pe(B(de), 2), ye = B(Se, !0);
|
|
@@ -16405,7 +16405,7 @@ function JE(e, t) {
|
|
|
16405
16405
|
const n = /* @__PURE__ */ te(), r = /* @__PURE__ */ te(), i = /* @__PURE__ */ te(), o = /* @__PURE__ */ te(), s = /* @__PURE__ */ te(), a = /* @__PURE__ */ te(), u = /* @__PURE__ */ te(), c = /* @__PURE__ */ te();
|
|
16406
16406
|
let d = w(t, "question", 8), m = w(t, "value", 8, ""), h = w(t, "onChange", 8), p = w(t, "error", 8, void 0), g = w(t, "currentMode", 8, void 0), $ = w(t, "questionNumber", 8, void 0);
|
|
16407
16407
|
w(t, "themeSettings", 8, void 0), w(t, "currentLanguage", 8, void 0), w(t, "apiKey", 8, void 0), w(t, "hostUrl", 8, void 0);
|
|
16408
|
-
let k = w(t, "identifier", 8, void 0), E = w(t, "feedbackConfigurationId", 8, void 0), j = w(t, "otherConfigurationProperties", 8, void 0), A = /* @__PURE__ */ te(m() ?? ""), y = /* @__PURE__ */ te(null), T = /* @__PURE__ */ te(0), D = /* @__PURE__ */ te(p()), v = /* @__PURE__ */ te(!1), S = /* @__PURE__ */ te(!1), C = /* @__PURE__ */ te(!1), N = /* @__PURE__ */ te(null), L = /* @__PURE__ */ te(null), M = /* @__PURE__ */ te(!1), R = /* @__PURE__ */ te(!1),
|
|
16408
|
+
let k = w(t, "identifier", 8, void 0), E = w(t, "feedbackConfigurationId", 8, void 0), j = w(t, "otherConfigurationProperties", 8, void 0), A = /* @__PURE__ */ te(m() ?? ""), y = /* @__PURE__ */ te(null), T = /* @__PURE__ */ te(0), D = /* @__PURE__ */ te(p()), v = /* @__PURE__ */ te(!1), S = /* @__PURE__ */ te(!1), C = /* @__PURE__ */ te(!1), N = /* @__PURE__ */ te(null), L = /* @__PURE__ */ te(null), M = /* @__PURE__ */ te(!1), R = /* @__PURE__ */ te(!1), W = /* @__PURE__ */ te(""), G = /* @__PURE__ */ te(0), Y = null, Z = /* @__PURE__ */ te(l(A));
|
|
16409
16409
|
const { updateQuestionResponse: P, setQuestionError: ee } = Ar();
|
|
16410
16410
|
Er(() => {
|
|
16411
16411
|
setTimeout(
|
|
@@ -16504,7 +16504,7 @@ function JE(e, t) {
|
|
|
16504
16504
|
}), ve(
|
|
16505
16505
|
() => (I(m()), l(A), l(v)),
|
|
16506
16506
|
() => {
|
|
16507
|
-
m() !== void 0 && m() !== l(A) && !l(v) && (b(A, m()), b(
|
|
16507
|
+
m() !== void 0 && m() !== l(A) && !l(v) && (b(A, m()), b(Z, m()));
|
|
16508
16508
|
}
|
|
16509
16509
|
), ve(() => l(A), () => {
|
|
16510
16510
|
b(r, l(A).length);
|
|
@@ -16526,7 +16526,7 @@ function JE(e, t) {
|
|
|
16526
16526
|
}), ve(
|
|
16527
16527
|
() => (l(i), l(o), l(r), I(d())),
|
|
16528
16528
|
() => {
|
|
16529
|
-
l(i) !== void 0 && l(o) !== void 0 ? b(
|
|
16529
|
+
l(i) !== void 0 && l(o) !== void 0 ? b(W, `${l(r)} / (${l(i)} - ${l(o)})`) : l(o) !== void 0 && d().required ? b(W, `${l(r)} / (1 - ${l(o)})`) : l(i) !== void 0 ? b(W, `${l(r)} / (${l(i)} - 5000)`) : b(W, "");
|
|
16530
16530
|
}
|
|
16531
16531
|
), ve(
|
|
16532
16532
|
() => (l(G), I(j())),
|
|
@@ -16536,10 +16536,10 @@ function JE(e, t) {
|
|
|
16536
16536
|
), ve(() => I(p()), () => {
|
|
16537
16537
|
p() !== void 0 && b(D, p());
|
|
16538
16538
|
}), ve(
|
|
16539
|
-
() => (l(M), l(v), l(A), l(
|
|
16539
|
+
() => (l(M), l(v), l(A), l(Z), I(d()), Le),
|
|
16540
16540
|
() => {
|
|
16541
|
-
if (l(M) && l(v) && l(A) !== l(
|
|
16542
|
-
b(
|
|
16541
|
+
if (l(M) && l(v) && l(A) !== l(Z)) {
|
|
16542
|
+
b(Z, l(A));
|
|
16543
16543
|
const K = _(l(A));
|
|
16544
16544
|
b(D, K), P(d().id, l(A), Le.LONG_TEXT, K);
|
|
16545
16545
|
}
|
|
@@ -16752,7 +16752,7 @@ function JE(e, t) {
|
|
|
16752
16752
|
Ce(Ge, `${I(d()), F(() => d().title) ?? ""} `), kr(mt, 1, `absolute right-3 bottom-3 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${l(u) ? "bg-destructive/10 text-destructive border border-destructive/20" : "bg-muted text-muted-foreground"}`), Ce(yt, `${l(A), F(() => l(A)?.length || 0) ?? ""}${K ?? ""}`);
|
|
16753
16753
|
},
|
|
16754
16754
|
[
|
|
16755
|
-
() => (l(
|
|
16755
|
+
() => (l(W), F(() => l(W) ? ` ${l(W).split("/")[1] || ""}` : ""))
|
|
16756
16756
|
]
|
|
16757
16757
|
), z(e, Se), Ve();
|
|
16758
16758
|
}
|
|
@@ -16821,12 +16821,12 @@ function hA(e, t) {
|
|
|
16821
16821
|
const n = /* @__PURE__ */ te(), r = /* @__PURE__ */ te(), i = /* @__PURE__ */ te(), o = /* @__PURE__ */ te(), s = /* @__PURE__ */ te(), a = /* @__PURE__ */ te(), u = /* @__PURE__ */ te(), c = /* @__PURE__ */ te(), { updateQuestionResponse: d, setQuestionError: m } = Ar();
|
|
16822
16822
|
let h = w(t, "question", 8), p = w(t, "value", 8, ""), g = w(t, "onChange", 8), $ = w(t, "error", 8, void 0), k = w(t, "currentMode", 8, void 0), E = w(t, "questionNumber", 8, void 0);
|
|
16823
16823
|
w(t, "themeSettings", 8, void 0), w(t, "currentLanguage", 8, void 0), w(t, "apiKey", 8, void 0), w(t, "hostUrl", 8, void 0);
|
|
16824
|
-
let j = w(t, "identifier", 8, void 0), A = w(t, "feedbackConfigurationId", 8, void 0), y = w(t, "otherConfigurationProperties", 8, void 0), T = /* @__PURE__ */ te(p() || ""), D = /* @__PURE__ */ te(null), v = /* @__PURE__ */ te(0), S = /* @__PURE__ */ te($()), C = /* @__PURE__ */ te(!1), N = /* @__PURE__ */ te(!1), L = /* @__PURE__ */ te(!1), M = /* @__PURE__ */ te(null), R = /* @__PURE__ */ te(null),
|
|
16824
|
+
let j = w(t, "identifier", 8, void 0), A = w(t, "feedbackConfigurationId", 8, void 0), y = w(t, "otherConfigurationProperties", 8, void 0), T = /* @__PURE__ */ te(p() || ""), D = /* @__PURE__ */ te(null), v = /* @__PURE__ */ te(0), S = /* @__PURE__ */ te($()), C = /* @__PURE__ */ te(!1), N = /* @__PURE__ */ te(!1), L = /* @__PURE__ */ te(!1), M = /* @__PURE__ */ te(null), R = /* @__PURE__ */ te(null), W = /* @__PURE__ */ te(!1), G = /* @__PURE__ */ te(!1), Y = /* @__PURE__ */ te(""), Z = /* @__PURE__ */ te(0), P = null, ee = /* @__PURE__ */ te(l(T));
|
|
16825
16825
|
Er(() => {
|
|
16826
16826
|
setTimeout(
|
|
16827
16827
|
() => {
|
|
16828
16828
|
const K = J(l(T));
|
|
16829
|
-
b(S, K), K && m(h().id, K), b(
|
|
16829
|
+
b(S, K), K && m(h().id, K), b(W, !0);
|
|
16830
16830
|
},
|
|
16831
16831
|
0
|
|
16832
16832
|
);
|
|
@@ -16840,7 +16840,7 @@ function hA(e, t) {
|
|
|
16840
16840
|
P !== null && clearInterval(P), P = Mb(
|
|
16841
16841
|
K,
|
|
16842
16842
|
(fe) => {
|
|
16843
|
-
b(
|
|
16843
|
+
b(Z, fe);
|
|
16844
16844
|
},
|
|
16845
16845
|
() => {
|
|
16846
16846
|
P = null, b(M, null);
|
|
@@ -16952,16 +16952,16 @@ function hA(e, t) {
|
|
|
16952
16952
|
l(i) !== void 0 && l(o) !== void 0 ? b(Y, `${K} / (${l(i)} - ${l(o)})`) : l(o) !== void 0 && h().required ? b(Y, `${K} / (1 - ${l(o)})`) : l(i) !== void 0 ? b(Y, `${K} / (${l(i)} - 5000)`) : b(Y, `${K}`);
|
|
16953
16953
|
}
|
|
16954
16954
|
), ve(
|
|
16955
|
-
() => (l(
|
|
16955
|
+
() => (l(Z), I(y())),
|
|
16956
16956
|
() => {
|
|
16957
|
-
l(
|
|
16957
|
+
l(Z) > 0 && y()?.otherFields?.aiEnhancementCooldownErrorMessage && b(M, `${y().otherFields.aiEnhancementCooldownErrorMessage} (${l(Z)}s)`);
|
|
16958
16958
|
}
|
|
16959
16959
|
), ve(() => I($()), () => {
|
|
16960
16960
|
$() !== void 0 && b(S, $());
|
|
16961
16961
|
}), ve(
|
|
16962
|
-
() => (l(
|
|
16962
|
+
() => (l(W), l(C), l(T), l(ee), I(h()), Le),
|
|
16963
16963
|
() => {
|
|
16964
|
-
if (l(
|
|
16964
|
+
if (l(W) && l(C) && l(T) !== l(ee)) {
|
|
16965
16965
|
b(ee, l(T));
|
|
16966
16966
|
const K = J(l(T));
|
|
16967
16967
|
b(S, K), d(h().id, l(T), Le.SHORT_ANSWER, K);
|
|
@@ -17022,7 +17022,7 @@ function hA(e, t) {
|
|
|
17022
17022
|
return I(h()), F(() => h().placeholder);
|
|
17023
17023
|
},
|
|
17024
17024
|
onblur: () => {
|
|
17025
|
-
if (l(
|
|
17025
|
+
if (l(W)) {
|
|
17026
17026
|
const fe = J(l(T));
|
|
17027
17027
|
b(S, fe), m(h().id, fe), g()(l(T));
|
|
17028
17028
|
}
|
|
@@ -18569,8 +18569,8 @@ function WL(e, t) {
|
|
|
18569
18569
|
var h = ZL(), p = B(h), g = B(p);
|
|
18570
18570
|
{
|
|
18571
18571
|
var $ = (M) => {
|
|
18572
|
-
var R = zL(),
|
|
18573
|
-
U(R), $e(() => Ce(
|
|
18572
|
+
var R = zL(), W = B(R);
|
|
18573
|
+
U(R), $e(() => Ce(W, `${u() ?? ""}.`)), z(M, R);
|
|
18574
18574
|
};
|
|
18575
18575
|
ae(g, (M) => {
|
|
18576
18576
|
u() !== void 0 && M($);
|
|
@@ -18590,8 +18590,8 @@ function WL(e, t) {
|
|
|
18590
18590
|
var T = pe(E, 2);
|
|
18591
18591
|
{
|
|
18592
18592
|
var D = (M) => {
|
|
18593
|
-
var R = PL(),
|
|
18594
|
-
U(R), $e(() => Ce(
|
|
18593
|
+
var R = PL(), W = B(R, !0);
|
|
18594
|
+
U(R), $e(() => Ce(W, (I(r()), F(() => r().description)))), z(M, R);
|
|
18595
18595
|
};
|
|
18596
18596
|
ae(T, (M) => {
|
|
18597
18597
|
I(r()), F(() => r().description) && M(D);
|
|
@@ -18606,14 +18606,14 @@ function WL(e, t) {
|
|
|
18606
18606
|
return l(d);
|
|
18607
18607
|
},
|
|
18608
18608
|
class: "flex flex-col gap-3",
|
|
18609
|
-
children: (R,
|
|
18609
|
+
children: (R, W) => {
|
|
18610
18610
|
var G = De(), Y = Te(G);
|
|
18611
18611
|
bn(
|
|
18612
18612
|
Y,
|
|
18613
18613
|
1,
|
|
18614
18614
|
() => (I(r()), F(() => r().options)),
|
|
18615
18615
|
An,
|
|
18616
|
-
(
|
|
18616
|
+
(Z, P) => {
|
|
18617
18617
|
var ee = DL(), O = B(ee);
|
|
18618
18618
|
{
|
|
18619
18619
|
let Q = /* @__PURE__ */ Oe(() => (l(c), I(r()), l(P), F(() => `${l(c)}-${r().id}-${l(P).value}`)));
|
|
@@ -18644,16 +18644,16 @@ function WL(e, t) {
|
|
|
18644
18644
|
var _ = pe(O, 2), H = B(_, !0);
|
|
18645
18645
|
U(_), U(ee), $e(() => {
|
|
18646
18646
|
Ci(_, "for", (l(c), I(r()), l(P), F(() => `${l(c)}-${r().id}-${l(P).value}`))), Ce(H, (l(P), F(() => l(P).label)));
|
|
18647
|
-
}), z(
|
|
18647
|
+
}), z(Z, ee);
|
|
18648
18648
|
}
|
|
18649
18649
|
), z(R, G);
|
|
18650
18650
|
},
|
|
18651
18651
|
$$slots: { default: !0 }
|
|
18652
18652
|
});
|
|
18653
18653
|
}, C = (M) => {
|
|
18654
|
-
var R = De(),
|
|
18654
|
+
var R = De(), W = Te(R);
|
|
18655
18655
|
{
|
|
18656
|
-
var G = (
|
|
18656
|
+
var G = (Z) => {
|
|
18657
18657
|
var P = qL();
|
|
18658
18658
|
bn(
|
|
18659
18659
|
P,
|
|
@@ -18679,8 +18679,8 @@ function WL(e, t) {
|
|
|
18679
18679
|
});
|
|
18680
18680
|
}
|
|
18681
18681
|
}
|
|
18682
|
-
), U(P), z(
|
|
18683
|
-
}, Y = (
|
|
18682
|
+
), U(P), z(Z, P);
|
|
18683
|
+
}, Y = (Z) => {
|
|
18684
18684
|
var P = De(), ee = Te(P);
|
|
18685
18685
|
{
|
|
18686
18686
|
var O = (_) => {
|
|
@@ -18730,12 +18730,12 @@ function WL(e, t) {
|
|
|
18730
18730
|
!0
|
|
18731
18731
|
);
|
|
18732
18732
|
}
|
|
18733
|
-
z(
|
|
18733
|
+
z(Z, P);
|
|
18734
18734
|
};
|
|
18735
18735
|
ae(
|
|
18736
|
-
|
|
18737
|
-
(
|
|
18738
|
-
I(r()), F(() => r().displayStyle === "chip") ?
|
|
18736
|
+
W,
|
|
18737
|
+
(Z) => {
|
|
18738
|
+
I(r()), F(() => r().displayStyle === "chip") ? Z(G) : Z(Y, !1);
|
|
18739
18739
|
},
|
|
18740
18740
|
!0
|
|
18741
18741
|
);
|
|
@@ -18749,8 +18749,8 @@ function WL(e, t) {
|
|
|
18749
18749
|
var N = pe(v, 2);
|
|
18750
18750
|
{
|
|
18751
18751
|
var L = (M) => {
|
|
18752
|
-
var R = UL(),
|
|
18753
|
-
U(
|
|
18752
|
+
var R = UL(), W = B(R), G = B(W, !0);
|
|
18753
|
+
U(W), U(R), $e(() => Ce(G, s())), z(M, R);
|
|
18754
18754
|
};
|
|
18755
18755
|
ae(N, (M) => {
|
|
18756
18756
|
s() && M(L);
|
|
@@ -18762,7 +18762,7 @@ var BL = /* @__PURE__ */ re('<span class="text-lg font-medium text-muted-foregro
|
|
|
18762
18762
|
function eN(e, t) {
|
|
18763
18763
|
Qe(t, !1);
|
|
18764
18764
|
const n = /* @__PURE__ */ te(), r = /* @__PURE__ */ te(), i = /* @__PURE__ */ te(), { removeQuestionResponse: o } = Ar();
|
|
18765
|
-
let s = w(t, "question", 8), a = w(t, "value", 8, 0), u = w(t, "onChange", 8), c = w(t, "error", 8, void 0), d = w(t, "currentMode", 8, void 0), m = w(t, "questionNumber", 8, void 0), h = w(t, "
|
|
18765
|
+
let s = w(t, "question", 8), a = w(t, "value", 8, 0), u = w(t, "onChange", 8), c = w(t, "error", 8, void 0), d = w(t, "currentMode", 8, void 0), m = w(t, "questionNumber", 8, void 0), h = w(t, "themes", 8, void 0);
|
|
18766
18766
|
w(t, "currentLanguage", 8, void 0);
|
|
18767
18767
|
let p = /* @__PURE__ */ te(a() ?? 0), g = /* @__PURE__ */ te(a() ?? 0), $ = /* @__PURE__ */ te(0);
|
|
18768
18768
|
function k(ee) {
|
|
@@ -18774,7 +18774,7 @@ function eN(e, t) {
|
|
|
18774
18774
|
representationSize: Q = "medium",
|
|
18775
18775
|
numberOfRatings: ge = 5,
|
|
18776
18776
|
color: ke
|
|
18777
|
-
} = s(), J = typeof window < "u" && window.innerWidth < 640 ? "small" : Q, de = O >= ee, Se = O === ee, ye = _ === ee, Me = _ >= ee, We = `rating-icon ${J}-size ${de ? "selected" : ""} ${l(r) ? "dark-mode" : ""}`, Ke = H === "emoji" || H === "thumbs-up", He = ke ?? l(i)?.brandColor
|
|
18777
|
+
} = s(), J = typeof window < "u" && window.innerWidth < 640 ? "small" : Q, de = O >= ee, Se = O === ee, ye = _ === ee, Me = _ >= ee, We = `rating-icon ${J}-size ${de ? "selected" : ""} ${l(r) ? "dark-mode" : ""}`, Ke = H === "emoji" || H === "thumbs-up", He = ke ?? l(i)?.brandColor;
|
|
18778
18778
|
let Ge = "";
|
|
18779
18779
|
if (Ke ? Ge = `opacity: ${(H === "thumbs-up" ? de || Me : Se || ye) ? "1" : "0.4"}; transform: scale(${H === "thumbs-up" && Se || H === "emoji" && Se ? "1.1" : "1"}); transition: opacity 0.2s ease, transform 0.2s ease;` : Ge = `color: ${de ? He : l(
|
|
18780
18780
|
r
|
|
@@ -18803,7 +18803,7 @@ function eN(e, t) {
|
|
|
18803
18803
|
}), ve(
|
|
18804
18804
|
() => (I(h()), I(d())),
|
|
18805
18805
|
() => {
|
|
18806
|
-
b(i, h()?.[d() === "dark" ? "dark" : "light"]
|
|
18806
|
+
b(i, h()?.[d() === "dark" ? "dark" : "light"]);
|
|
18807
18807
|
}
|
|
18808
18808
|
), ve(() => I(a()), () => {
|
|
18809
18809
|
a() !== void 0 && (b(p, a()), b(g, a()));
|
|
@@ -18840,9 +18840,9 @@ function eN(e, t) {
|
|
|
18840
18840
|
});
|
|
18841
18841
|
}
|
|
18842
18842
|
U(D), U(A);
|
|
18843
|
-
var R = pe(A, 2),
|
|
18843
|
+
var R = pe(A, 2), W = B(R);
|
|
18844
18844
|
bn(
|
|
18845
|
-
|
|
18845
|
+
W,
|
|
18846
18846
|
5,
|
|
18847
18847
|
() => (I(s()), F(() => Array.from({ length: s().numberOfRatings ?? 5 }, (ee, O) => O + 1))),
|
|
18848
18848
|
An,
|
|
@@ -18883,8 +18883,8 @@ function eN(e, t) {
|
|
|
18883
18883
|
}
|
|
18884
18884
|
z(ee, ke);
|
|
18885
18885
|
}
|
|
18886
|
-
), U(
|
|
18887
|
-
var G = pe(
|
|
18886
|
+
), U(W);
|
|
18887
|
+
var G = pe(W, 2);
|
|
18888
18888
|
{
|
|
18889
18889
|
var Y = (ee) => {
|
|
18890
18890
|
var O = KL(), _ = B(O);
|
|
@@ -18914,18 +18914,18 @@ function eN(e, t) {
|
|
|
18914
18914
|
});
|
|
18915
18915
|
}
|
|
18916
18916
|
U(R);
|
|
18917
|
-
var
|
|
18917
|
+
var Z = pe(R, 2);
|
|
18918
18918
|
{
|
|
18919
18919
|
var P = (ee) => {
|
|
18920
18920
|
var O = JL(), _ = B(O), H = B(_, !0);
|
|
18921
18921
|
U(_), U(O), $e(() => Ce(H, c())), z(ee, O);
|
|
18922
18922
|
};
|
|
18923
|
-
ae(
|
|
18923
|
+
ae(Z, (ee) => {
|
|
18924
18924
|
c() && ee(P);
|
|
18925
18925
|
});
|
|
18926
18926
|
}
|
|
18927
18927
|
U(j), $e(() => {
|
|
18928
|
-
Ce(S, `${I(s()), F(() => s().title) ?? ""} `), kr(
|
|
18928
|
+
Ce(S, `${I(s()), F(() => s().title) ?? ""} `), kr(W, 1, `flex ${l(n) ? "gap-0" : "gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2"} justify-center items-center w-full`);
|
|
18929
18929
|
}), z(e, j), Ve();
|
|
18930
18930
|
}
|
|
18931
18931
|
function tN(e, t) {
|
|
@@ -19131,12 +19131,12 @@ function vN(e, t) {
|
|
|
19131
19131
|
U(D), U(A);
|
|
19132
19132
|
var R = pe(A, 2);
|
|
19133
19133
|
{
|
|
19134
|
-
var
|
|
19134
|
+
var W = (O) => {
|
|
19135
19135
|
var _ = cN(), H = B(_), Q = B(H, !0);
|
|
19136
19136
|
U(H), U(_), $e(() => Ce(Q, l(h))), z(O, _);
|
|
19137
19137
|
};
|
|
19138
19138
|
ae(R, (O) => {
|
|
19139
|
-
l(h) && O(
|
|
19139
|
+
l(h) && O(W);
|
|
19140
19140
|
});
|
|
19141
19141
|
}
|
|
19142
19142
|
var G = pe(R, 2);
|
|
@@ -19149,7 +19149,7 @@ function vN(e, t) {
|
|
|
19149
19149
|
l(p) && O(Y);
|
|
19150
19150
|
});
|
|
19151
19151
|
}
|
|
19152
|
-
var
|
|
19152
|
+
var Z = pe(G, 2);
|
|
19153
19153
|
{
|
|
19154
19154
|
var P = (O) => {
|
|
19155
19155
|
var _ = dN();
|
|
@@ -19269,7 +19269,7 @@ function vN(e, t) {
|
|
|
19269
19269
|
}
|
|
19270
19270
|
z(O, _);
|
|
19271
19271
|
};
|
|
19272
|
-
ae(
|
|
19272
|
+
ae(Z, (O) => {
|
|
19273
19273
|
I(o()), F(() => o().displayStyle === "checkbox" || !o().displayStyle) ? O(P) : O(ee, !1);
|
|
19274
19274
|
});
|
|
19275
19275
|
}
|
|
@@ -19357,17 +19357,17 @@ function TN(e, t) {
|
|
|
19357
19357
|
U(D), U(A);
|
|
19358
19358
|
var R = pe(A, 2);
|
|
19359
19359
|
{
|
|
19360
|
-
var
|
|
19360
|
+
var W = (O) => {
|
|
19361
19361
|
var _ = xN(), H = pe(B(_), 2), Q = B(H, !0);
|
|
19362
19362
|
U(H), U(_), $e(() => Ce(Q, l(g))), z(O, _);
|
|
19363
19363
|
};
|
|
19364
19364
|
ae(R, (O) => {
|
|
19365
|
-
l(g) && l($) && O(
|
|
19365
|
+
l(g) && l($) && O(W);
|
|
19366
19366
|
});
|
|
19367
19367
|
}
|
|
19368
19368
|
var G = pe(R, 2), Y = B(G);
|
|
19369
19369
|
{
|
|
19370
|
-
var
|
|
19370
|
+
var Z = (O) => {
|
|
19371
19371
|
var _ = kN(), H = B(_), Q = B(H), ge = B(Q);
|
|
19372
19372
|
Oh(ge, {
|
|
19373
19373
|
size: 24,
|
|
@@ -19377,7 +19377,7 @@ function TN(e, t) {
|
|
|
19377
19377
|
U(J), In(2), U(ke), U(H), U(_), $e(() => Ce(de, (I(s()), F(() => s().noAnnotationText ?? "No Annotation")))), z(O, _);
|
|
19378
19378
|
};
|
|
19379
19379
|
ae(Y, (O) => {
|
|
19380
|
-
l(h) || O(
|
|
19380
|
+
l(h) || O(Z);
|
|
19381
19381
|
});
|
|
19382
19382
|
}
|
|
19383
19383
|
var P = pe(Y, 2);
|
|
@@ -19493,11 +19493,11 @@ function DN(e, t) {
|
|
|
19493
19493
|
Qe(t, !1);
|
|
19494
19494
|
const n = /* @__PURE__ */ te(), r = /* @__PURE__ */ te(), { storeQuestions: i, getQuestionData: o } = Ar();
|
|
19495
19495
|
let s = w(t, "questions", 8), a = w(t, "sections", 8), u = w(t, "formData", 8), c = w(t, "errors", 8), d = w(t, "onChange", 8), m = w(t, "currentMode", 8, void 0), h = w(t, "welcomeScreenProperties", 8), p = w(t, "otherConfigurationProperties", 8), g = w(t, "currentSectionIndex", 8), $ = w(t, "endScreenProperties", 8, void 0), k = w(t, "currentLanguage", 8, void 0), E = w(t, "themeSettings", 8), j = w(t, "onClose", 8, void 0), A = w(t, "isScreenVisible", 8, void 0), y = w(t, "apiKey", 8, void 0), T = w(t, "hostUrl", 8, void 0), D = w(t, "identifier", 8, void 0), v = w(t, "feedbackConfigurationId", 8, void 0);
|
|
19496
|
-
function S(
|
|
19497
|
-
return l(n).get(
|
|
19496
|
+
function S(Z) {
|
|
19497
|
+
return l(n).get(Z) ?? -1;
|
|
19498
19498
|
}
|
|
19499
|
-
function C(
|
|
19500
|
-
switch (
|
|
19499
|
+
function C(Z) {
|
|
19500
|
+
switch (Z) {
|
|
19501
19501
|
case Le.MULTIPLE_CHOICE_MULTIPLE:
|
|
19502
19502
|
return [];
|
|
19503
19503
|
case Le.NPS:
|
|
@@ -19511,43 +19511,43 @@ function DN(e, t) {
|
|
|
19511
19511
|
return;
|
|
19512
19512
|
}
|
|
19513
19513
|
}
|
|
19514
|
-
function N(
|
|
19515
|
-
return Array.isArray(
|
|
19514
|
+
function N(Z) {
|
|
19515
|
+
return Array.isArray(Z) ? Z : typeof Z == "object" && Z !== null ? Object.values(Z).filter((P) => P !== void 0) : typeof Z == "string" ? [Z] : [];
|
|
19516
19516
|
}
|
|
19517
|
-
function L(
|
|
19518
|
-
return typeof
|
|
19517
|
+
function L(Z) {
|
|
19518
|
+
return typeof Z == "number" ? Z : typeof Z == "string" ? Number(Z) : 0;
|
|
19519
19519
|
}
|
|
19520
|
-
function M(
|
|
19521
|
-
return typeof
|
|
19520
|
+
function M(Z) {
|
|
19521
|
+
return typeof Z == "string" ? Z : String(typeof Z == "object" && Z !== null ? Object.values(Z)[0] || "" : Z || "");
|
|
19522
19522
|
}
|
|
19523
|
-
function R(
|
|
19524
|
-
if (
|
|
19523
|
+
function R(Z, P) {
|
|
19524
|
+
if (Z == null) {
|
|
19525
19525
|
const ee = C(P);
|
|
19526
|
-
return ee !== void 0 ? ee :
|
|
19526
|
+
return ee !== void 0 ? ee : Z;
|
|
19527
19527
|
}
|
|
19528
19528
|
switch (P) {
|
|
19529
19529
|
case Le.MULTIPLE_CHOICE_MULTIPLE:
|
|
19530
|
-
return N(
|
|
19530
|
+
return N(Z);
|
|
19531
19531
|
case Le.NPS:
|
|
19532
19532
|
case Le.RATING:
|
|
19533
|
-
return L(
|
|
19533
|
+
return L(Z);
|
|
19534
19534
|
case Le.SINGLE_CHOICE:
|
|
19535
|
-
return M(
|
|
19535
|
+
return M(Z);
|
|
19536
19536
|
default:
|
|
19537
|
-
return
|
|
19537
|
+
return Z;
|
|
19538
19538
|
}
|
|
19539
19539
|
}
|
|
19540
19540
|
ve(() => I(s()), () => {
|
|
19541
19541
|
s() && Object.keys(s()).length > 0 && i(s());
|
|
19542
19542
|
}), ve(() => I(a()), () => {
|
|
19543
19543
|
b(n, (() => {
|
|
19544
|
-
const
|
|
19544
|
+
const Z = /* @__PURE__ */ new Map();
|
|
19545
19545
|
let P = 0;
|
|
19546
19546
|
return a().forEach((ee) => {
|
|
19547
19547
|
ee.id !== "welcome_screen" && ee.id !== "thankyou_screen" && ee.questionIds.forEach((O) => {
|
|
19548
|
-
|
|
19548
|
+
Z.set(O, P++);
|
|
19549
19549
|
});
|
|
19550
|
-
}),
|
|
19550
|
+
}), Z;
|
|
19551
19551
|
})());
|
|
19552
19552
|
}), ve(
|
|
19553
19553
|
() => (I(a()), I(g())),
|
|
@@ -19555,9 +19555,9 @@ function DN(e, t) {
|
|
|
19555
19555
|
b(r, a()[g()]);
|
|
19556
19556
|
}
|
|
19557
19557
|
), sn(), Vt();
|
|
19558
|
-
var
|
|
19558
|
+
var W = De(), G = Te(W);
|
|
19559
19559
|
{
|
|
19560
|
-
var Y = (
|
|
19560
|
+
var Y = (Z) => {
|
|
19561
19561
|
var P = De(), ee = Te(P);
|
|
19562
19562
|
bn(
|
|
19563
19563
|
ee,
|
|
@@ -19840,13 +19840,13 @@ function DN(e, t) {
|
|
|
19840
19840
|
}
|
|
19841
19841
|
U(H), z(O, H);
|
|
19842
19842
|
}
|
|
19843
|
-
), z(
|
|
19843
|
+
), z(Z, P);
|
|
19844
19844
|
};
|
|
19845
|
-
ae(G, (
|
|
19846
|
-
I(g()), I(a()), F(() => g() < a().length && a().length > 0) &&
|
|
19845
|
+
ae(G, (Z) => {
|
|
19846
|
+
I(g()), I(a()), F(() => g() < a().length && a().length > 0) && Z(Y);
|
|
19847
19847
|
});
|
|
19848
19848
|
}
|
|
19849
|
-
z(e,
|
|
19849
|
+
z(e, W), Ve();
|
|
19850
19850
|
}
|
|
19851
19851
|
var qN = /* @__PURE__ */ re('<div class="flex justify-center"><!></div>'), FN = /* @__PURE__ */ re('<div class="flex justify-center"><!></div>'), jN = /* @__PURE__ */ re('<div class="flex-1"></div>'), RN = /* @__PURE__ */ oi('<svg class="w-5 h-5 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'), UN = /* @__PURE__ */ re('<div class="flex items-center justify-between gap-3"><!> <!></div>'), ZN = /* @__PURE__ */ re('<div class="w-full py-6 px-4 bg-background"><!></div>');
|
|
19852
19852
|
function WN(e, t) {
|
|
@@ -19854,14 +19854,14 @@ function WN(e, t) {
|
|
|
19854
19854
|
const n = () => sb(h, "$formResponses", r), [r, i] = ab(), o = /* @__PURE__ */ te(), s = /* @__PURE__ */ te(), a = /* @__PURE__ */ te(), u = /* @__PURE__ */ te(), c = /* @__PURE__ */ te(), { hasValidationErrors: d, clearValidationErrors: m, formResponses: h } = Ar();
|
|
19855
19855
|
let p = w(t, "isWelcomeScreen", 8), g = w(t, "isThankYouScreen", 8), $ = w(t, "isFirstSection", 8), k = w(t, "isFirstPageAfterWelcome", 8, !1), E = w(t, "isLastSection", 8), j = w(t, "welcomeScreenProperties", 8, null), A = w(t, "endScreenProperties", 8, null), y = w(t, "otherConfigurationProperties", 8, null), T = w(t, "currentMode", 8), D = w(t, "currentLanguage", 8), v = w(t, "handlePrevious", 8), S = w(t, "handleNext", 8), C = w(t, "handleSubmit", 8), N = w(t, "onClose", 8, void 0);
|
|
19856
19856
|
w(t, "themeSettings", 8);
|
|
19857
|
-
let L = w(t, "nextButtonDisabled", 8, !1), M = w(t, "submitButtonDisabled", 8, !1), R = w(t, "isSinglePageSurvey", 8, !1),
|
|
19857
|
+
let L = w(t, "nextButtonDisabled", 8, !1), M = w(t, "submitButtonDisabled", 8, !1), R = w(t, "isSinglePageSurvey", 8, !1), W = /* @__PURE__ */ te(!1), G = /* @__PURE__ */ te(!1);
|
|
19858
19858
|
const Y = () => {
|
|
19859
19859
|
N() && N()();
|
|
19860
|
-
},
|
|
19860
|
+
}, Z = () => {
|
|
19861
19861
|
if (!g() && !A()?.isEnabled) {
|
|
19862
|
-
b(
|
|
19862
|
+
b(W, !0), window.setTimeout(
|
|
19863
19863
|
() => {
|
|
19864
|
-
b(
|
|
19864
|
+
b(W, !1), N() && N()();
|
|
19865
19865
|
},
|
|
19866
19866
|
3e3
|
|
19867
19867
|
);
|
|
@@ -19977,9 +19977,9 @@ function WN(e, t) {
|
|
|
19977
19977
|
{
|
|
19978
19978
|
var Ze = (rt) => {
|
|
19979
19979
|
{
|
|
19980
|
-
let dt = /* @__PURE__ */ Oe(() => l(G) || l(
|
|
19980
|
+
let dt = /* @__PURE__ */ Oe(() => l(G) || l(W)), xt = /* @__PURE__ */ Oe(() => R() ? "mx-auto" : "");
|
|
19981
19981
|
Ft(rt, {
|
|
19982
|
-
onclick: () =>
|
|
19982
|
+
onclick: () => Z(),
|
|
19983
19983
|
get disabled() {
|
|
19984
19984
|
return l(dt);
|
|
19985
19985
|
},
|
|
@@ -19998,7 +19998,7 @@ function WN(e, t) {
|
|
|
19998
19998
|
$e(() => Ce(K, (l(o), F(() => l(o).submitButtonLabel)))), z(Rt, K);
|
|
19999
19999
|
};
|
|
20000
20000
|
ae(mt, (Rt) => {
|
|
20001
|
-
l(
|
|
20001
|
+
l(W) ? Rt(yt) : Rt(Nt, !1);
|
|
20002
20002
|
});
|
|
20003
20003
|
}
|
|
20004
20004
|
z(Lt, kt);
|
|
@@ -20307,7 +20307,7 @@ function Wb(e, t) {
|
|
|
20307
20307
|
backgroundColor: "#fff",
|
|
20308
20308
|
theme: "{}"
|
|
20309
20309
|
}
|
|
20310
|
-
})), A = w(t, "currentMode", 12, "light"), y = w(t, "currentLanguage", 28, () => ({ value: "en", label: "en" })), T = w(t, "questions", 28, () => ({})), D = w(t, "questionLanguages", 28, () => []), v = w(t, "otherConfigurationProperties", 12, null), S = w(t, "welcomeScreenProperties", 12, null), C = w(t, "endScreenProperties", 12, null), N = w(t, "translations", 28, () => ({})), L = w(t, "sections", 24, () => []), M = w(t, "themeSettings", 12, null), R = w(t, "onClose", 12, void 0),
|
|
20310
|
+
})), A = w(t, "currentMode", 12, "light"), y = w(t, "currentLanguage", 28, () => ({ value: "en", label: "en" })), T = w(t, "questions", 28, () => ({})), D = w(t, "questionLanguages", 28, () => []), v = w(t, "otherConfigurationProperties", 12, null), S = w(t, "welcomeScreenProperties", 12, null), C = w(t, "endScreenProperties", 12, null), N = w(t, "translations", 28, () => ({})), L = w(t, "sections", 24, () => []), M = w(t, "themeSettings", 12, null), R = w(t, "onClose", 12, void 0), W = w(t, "onSectionChange", 8, void 0), G = w(t, "apiKey", 8, void 0), Y = w(t, "hostUrl", 8, void 0), Z = w(t, "feedbackConfigId", 8, void 0), P = w(t, "identifier", 8, void 0), ee = w(t, "persistMode", 8, "none"), O = w(t, "instanceId", 8, void 0), _ = /* @__PURE__ */ te(0), H = /* @__PURE__ */ te(!1), Q = /* @__PURE__ */ te(0), ge = /* @__PURE__ */ te(!1), ke = /* @__PURE__ */ te({}), J = /* @__PURE__ */ te((() => {
|
|
20311
20311
|
let q = [...L() || []];
|
|
20312
20312
|
const V = S()?.isEnabled ?? !0, qe = C()?.isEnabled ?? !0;
|
|
20313
20313
|
return V && q.unshift({ id: "welcome_screen", title: "Welcome", questionIds: [] }), qe && q.push({ id: "thankyou_screen", title: "Thank You", questionIds: [] }), q;
|
|
@@ -20364,7 +20364,7 @@ function Wb(e, t) {
|
|
|
20364
20364
|
}).length, Ae = () => Ze() / Ge() * 100, rt = (q, V, qe) => {
|
|
20365
20365
|
let he = V;
|
|
20366
20366
|
Array.isArray(V) && (he = [...V]), k(q, he, qe), b(ke, { ...l(ke), [q]: "" }), Vi.publish("form:question:answered", {
|
|
20367
|
-
feedbackConfigurationId:
|
|
20367
|
+
feedbackConfigurationId: Z() || "",
|
|
20368
20368
|
questionId: q,
|
|
20369
20369
|
questionType: qe,
|
|
20370
20370
|
answer: he,
|
|
@@ -20373,8 +20373,8 @@ function Wb(e, t) {
|
|
|
20373
20373
|
}, dt = () => {
|
|
20374
20374
|
if (l(Q) > 0) {
|
|
20375
20375
|
const q = l(Q) - 1;
|
|
20376
|
-
b(Q, q),
|
|
20377
|
-
feedbackConfigurationId:
|
|
20376
|
+
b(Q, q), W()?.(q), Vi.publish("form:section:change", {
|
|
20377
|
+
feedbackConfigurationId: Z() || "",
|
|
20378
20378
|
sectionIndex: q,
|
|
20379
20379
|
sectionId: l(J)[q]?.id || "",
|
|
20380
20380
|
timestamp: Date.now()
|
|
@@ -20383,8 +20383,8 @@ function Wb(e, t) {
|
|
|
20383
20383
|
}, xt = () => {
|
|
20384
20384
|
if (l(Q) < l(J).length - 1) {
|
|
20385
20385
|
const q = l(Q) + 1;
|
|
20386
|
-
b(Q, q),
|
|
20387
|
-
feedbackConfigurationId:
|
|
20386
|
+
b(Q, q), W()?.(q), Vi.publish("form:section:change", {
|
|
20387
|
+
feedbackConfigurationId: Z() || "",
|
|
20388
20388
|
sectionIndex: q,
|
|
20389
20389
|
sectionId: l(J)[q]?.id || "",
|
|
20390
20390
|
timestamp: Date.now()
|
|
@@ -20392,20 +20392,20 @@ function Wb(e, t) {
|
|
|
20392
20392
|
}
|
|
20393
20393
|
}, Lt = () => {
|
|
20394
20394
|
Vi.publish("form:submit", {
|
|
20395
|
-
feedbackConfigurationId:
|
|
20395
|
+
feedbackConfigurationId: Z() || "",
|
|
20396
20396
|
feedbackIdentifier: P() || "",
|
|
20397
20397
|
response: { questions: n().questions },
|
|
20398
20398
|
timestamp: Date.now()
|
|
20399
20399
|
});
|
|
20400
20400
|
const q = l(J).findIndex((V) => V.id === "thankyou_screen");
|
|
20401
|
-
if (q !== -1 && (b(Q, q),
|
|
20401
|
+
if (q !== -1 && (b(Q, q), W()?.(q)), b(ge, !0), window.encatch?._internal?.submitFeedback ? window.encatch._internal.submitFeedback({
|
|
20402
20402
|
response: { questions: n().questions },
|
|
20403
20403
|
action: "S",
|
|
20404
|
-
feedbackConfigurationId:
|
|
20404
|
+
feedbackConfigurationId: Z() || "",
|
|
20405
20405
|
feedbackIdentifier: P() || "",
|
|
20406
20406
|
duration: 0
|
|
20407
|
-
}) : console.error("window.encatch._internal.submitFeedback is not available"), ee() === "retain" &&
|
|
20408
|
-
const V = `${
|
|
20407
|
+
}) : console.error("window.encatch._internal.submitFeedback is not available"), ee() === "retain" && Z() && P()) {
|
|
20408
|
+
const V = `${Z()}_${P()}`;
|
|
20409
20409
|
Hh(V).then(() => {
|
|
20410
20410
|
}).catch((qe) => {
|
|
20411
20411
|
console.error("[App] Error clearing saved data after submission:", qe);
|
|
@@ -20420,7 +20420,7 @@ function Wb(e, t) {
|
|
|
20420
20420
|
}, kt = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik00MDQuOCwyMTAuOEMzMDkuMSwyNDEuOSwyMzQsMzE3LjYsMjAzLjIsNDEzLjRjLTYxLjMsMTkwLjEsNDcuOSwzNjguNSwyMTIuNSw0MjBjNS43LDEuOCwxMS42LTIuNSwxMS42LTguNQoJCXYtNjkuN2MwLTMuNi0yLjItNi44LTUuNi04LjJDMzMyLjQsNzEwLjcsMjY5LjMsNjIzLDI2OS4zLDUyMC44YzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45djQ3LjJjMCwxMS4xLDMuOSwyMC42LDE1LDIwLjZsNDUuNi0wLjNoNDEuN3YtMC4yaDM0LjEKCQljNC4yLDAsNy42LTMuNCw3LjYtNy42di0zMy44Qzg0MS4xLDMwNC45LDYzMS40LDEzNy4yLDQwNC44LDIxMC44eiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTI2NSw3MTYuOGwtMTUuNCwxMTYuNmMtMC40LDIuOCwyLjUsNC45LDUsMy43TDM2OCw3ODUuN2MyLjYtMS4yLDIuOC00LjcsMC41LTYuMmwtOTcuOS02NS4yCgkJQzI2OC40LDcxMi44LDI2NS40LDcxNC4xLDI2NSw3MTYuOHoiLz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik02NjYuMyw1NjMuM2gtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY3MC45LDU2MS4yLDY2OC44LDU2My4zLDY2Ni4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTQ0NC4yLDU2My4zaC03Ni41Yy0zLjEsMC01LjUtMi41LTUuNS01LjV2LTc2LjVjMC0zLjEsMi41LTUuNSw1LjUtNS41aDc2LjVjMy4xLDAsNS41LDIuNSw1LjUsNS41djc2LjUKCQlDNDQ5LjcsNTYwLjgsNDQ3LjIsNTYzLjMsNDQ0LjIsNTYzLjN6Ii8+Cgk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNNTU1LjMsNTYzLjNoLTc3LjZjLTIuOCwwLTUtMi4zLTUtNXYtNzcuNmMwLTIuOCwyLjMtNSw1LTVoNzcuNmMyLjgsMCw1LDIuMyw1LDV2NzcuNgoJCUM1NjAuMyw1NjEsNTU4LDU2My4zLDU1NS4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTY4My45LDI1NC45Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZjNjIuNS0xMDEuNiwxODcuNy0xNDEuNCwyOTUuMS0xMDAuMSIvPgo8L2c+Cjwvc3ZnPgo=", mt = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zODEuOSwxOTkuNmMtOTUuNywzMS4xLTE3MC44LDEwNi44LTIwMS43LDIwMi42Yy02MS4zLDE5MC4xLDQ3LjksMzY4LjUsMjEyLjUsNDIwYzUuNywxLjgsMTEuNi0yLjUsMTEuNi04LjUKCQlWNzQ0YzAtMy42LTIuMi02LjgtNS42LTguMmMtODkuMy0zNi4zLTE1Mi40LTEyNC4xLTE1Mi40LTIyNi4yYzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45VjUzMWMwLDExLjEsMy45LDIwLjYsMTUsMjAuNmw0NS42LTAuM2g0MS43di0wLjJoMzQuMQoJCWM0LjIsMCw3LjYtMy40LDcuNi03LjZ2LTMzLjhDODE4LjIsMjkzLjcsNjA4LjUsMTI2LDM4MS45LDE5OS42eiIvPgoJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI0Mi4xLDcwNS42bC0xNS40LDExNi42Yy0wLjQsMi44LDIuNSw0LjksNSwzLjdMMzQ1LDc3NC41YzIuNi0xLjIsMi44LTQuNywwLjUtNi4yTDI0Ny42LDcwMwoJCUMyNDUuNCw3MDEuNiwyNDIuNCw3MDIuOSwyNDIuMSw3MDUuNnoiLz4KCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02NDMuNCw1NTIuMWgtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY0Ny45LDU1MCw2NDUuOSw1NTIuMSw2NDMuNCw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik00MjEuMiw1NTIuMWgtNzYuNWMtMy4xLDAtNS41LTIuNS01LjUtNS41VjQ3MGMwLTMuMSwyLjUtNS41LDUuNS01LjVoNzYuNWMzLjEsMCw1LjUsMi41LDUuNSw1LjV2NzYuNQoJCUM0MjYuOCw1NDkuNiw0MjQuMyw1NTIuMSw0MjEuMiw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDQiIGQ9Ik01MzIuMyw1NTIuMWgtNzcuNmMtMi44LDAtNS0yLjMtNS01di03Ny42YzAtMi44LDIuMy01LDUtNWg3Ny42YzIuOCwwLDUsMi4zLDUsNVY1NDcKCQlDNTM3LjQsNTQ5LjgsNTM1LjEsNTUyLjEsNTMyLjMsNTUyLjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjYxLDI0My42Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZDMzQ1LjIsMjc5LDQ3MC40LDIzOS4yLDU3Ny45LDI4MC41Ii8+CjwvZz4KPC9zdmc+Cg==";
|
|
20421
20421
|
let yt = /* @__PURE__ */ te();
|
|
20422
20422
|
ve(
|
|
20423
|
-
() => (I(O()), I(P()), I(
|
|
20423
|
+
() => (I(O()), I(P()), I(Z()), I(ee()), I(y()), I(S()), I(C()), l(J), l(Q)),
|
|
20424
20424
|
() => {
|
|
20425
20425
|
Er(async () => {
|
|
20426
20426
|
Vi.publish("form:view", {
|
|
@@ -20428,7 +20428,7 @@ function Wb(e, t) {
|
|
|
20428
20428
|
feedbackIdentifier: P() || "",
|
|
20429
20429
|
timestamp: Date.now()
|
|
20430
20430
|
});
|
|
20431
|
-
const q = `${
|
|
20431
|
+
const q = `${Z() || "default"}_${P() || "default"}`;
|
|
20432
20432
|
if (ee() === "retain") {
|
|
20433
20433
|
b(H, !0);
|
|
20434
20434
|
try {
|
|
@@ -20615,10 +20615,10 @@ function Wb(e, t) {
|
|
|
20615
20615
|
const q = Ae();
|
|
20616
20616
|
b(_, q);
|
|
20617
20617
|
}), ve(
|
|
20618
|
-
() => (I(ee()), I(
|
|
20618
|
+
() => (I(ee()), I(Z()), I(P()), l(H), l(yt), n()),
|
|
20619
20619
|
() => {
|
|
20620
|
-
if (ee() === "retain" &&
|
|
20621
|
-
const q = `${
|
|
20620
|
+
if (ee() === "retain" && Z() && P() && !l(H)) {
|
|
20621
|
+
const q = `${Z()}_${P()}`;
|
|
20622
20622
|
l(yt) && clearTimeout(l(yt)), b(yt, setTimeout(
|
|
20623
20623
|
() => {
|
|
20624
20624
|
GN(q, n().questions).then(() => {
|
|
@@ -20733,7 +20733,7 @@ function Wb(e, t) {
|
|
|
20733
20733
|
return G();
|
|
20734
20734
|
},
|
|
20735
20735
|
get feedbackConfigurationId() {
|
|
20736
|
-
return
|
|
20736
|
+
return Z();
|
|
20737
20737
|
},
|
|
20738
20738
|
get hostUrl() {
|
|
20739
20739
|
return Y();
|
|
@@ -20838,8 +20838,8 @@ function oM(e, t) {
|
|
|
20838
20838
|
if (l(j)) {
|
|
20839
20839
|
const M = l(j).querySelector("#section-container");
|
|
20840
20840
|
if (M) {
|
|
20841
|
-
const R = window.innerHeight * 0.75,
|
|
20842
|
-
l(j).style.transition.includes("height") || yh(j, l(j).style.transition = "height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"), yh(j, l(j).style.height = `${
|
|
20841
|
+
const R = window.innerHeight * 0.75, W = M.clientHeight, G = 84, Y = 60, Z = Math.min(W + G + Y, R);
|
|
20842
|
+
l(j).style.transition.includes("height") || yh(j, l(j).style.transition = "height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"), yh(j, l(j).style.height = `${Z}px`), M.style.overflowY = W + G + Y > R ? "auto" : "hidden";
|
|
20843
20843
|
}
|
|
20844
20844
|
}
|
|
20845
20845
|
}, T = () => {
|
|
@@ -20957,7 +20957,7 @@ function oM(e, t) {
|
|
|
20957
20957
|
default:
|
|
20958
20958
|
return R;
|
|
20959
20959
|
}
|
|
20960
|
-
}, S = (M) => Object.entries(M).map(([R,
|
|
20960
|
+
}, S = (M) => Object.entries(M).map(([R, W]) => `${R}: ${W}`).join("; ");
|
|
20961
20961
|
Er(() => {
|
|
20962
20962
|
window.addEventListener("resize", T), setTimeout(
|
|
20963
20963
|
() => {
|
|
@@ -20981,17 +20981,17 @@ function oM(e, t) {
|
|
|
20981
20981
|
var C = De(), N = Te(C);
|
|
20982
20982
|
{
|
|
20983
20983
|
var L = (M) => {
|
|
20984
|
-
var R = iM(),
|
|
20984
|
+
var R = iM(), W = Te(R);
|
|
20985
20985
|
{
|
|
20986
20986
|
var G = (_) => {
|
|
20987
20987
|
var H = rM();
|
|
20988
20988
|
$e(() => xs(H, `background-color: ${I(s()), I(o()), F(() => s().appearanceProperties.themes[o()].overlayColor) ?? ""}; z-index: 1000; opacity: ${l(k) ? "0.4" : "0"};`)), z(_, H);
|
|
20989
20989
|
};
|
|
20990
|
-
ae(
|
|
20990
|
+
ae(W, (_) => {
|
|
20991
20991
|
I(s()), F(() => s()?.appearanceProperties?.featureSettings?.darkOverlay) && _(G);
|
|
20992
20992
|
});
|
|
20993
20993
|
}
|
|
20994
|
-
var Y = pe(
|
|
20994
|
+
var Y = pe(W, 2), Z = B(Y);
|
|
20995
20995
|
{
|
|
20996
20996
|
var P = (_) => {
|
|
20997
20997
|
Ft(_, {
|
|
@@ -21006,11 +21006,11 @@ function oM(e, t) {
|
|
|
21006
21006
|
$$slots: { default: !0 }
|
|
21007
21007
|
});
|
|
21008
21008
|
};
|
|
21009
|
-
ae(
|
|
21009
|
+
ae(Z, (_) => {
|
|
21010
21010
|
I(s()), F(() => s()?.appearanceProperties?.featureSettings?.closeButton) && _(P);
|
|
21011
21011
|
});
|
|
21012
21012
|
}
|
|
21013
|
-
var ee = pe(
|
|
21013
|
+
var ee = pe(Z, 2);
|
|
21014
21014
|
{
|
|
21015
21015
|
var O = (_) => {
|
|
21016
21016
|
{
|
|
@@ -21116,7 +21116,7 @@ function aM(e, t) {
|
|
|
21116
21116
|
H = H.parentNode;
|
|
21117
21117
|
}
|
|
21118
21118
|
return null;
|
|
21119
|
-
},
|
|
21119
|
+
}, W = (_) => {
|
|
21120
21120
|
const H = new CSSStyleSheet(), Q = _ / 100;
|
|
21121
21121
|
return H.replaceSync(`
|
|
21122
21122
|
.encatch-scale-wrapper {
|
|
@@ -21138,7 +21138,7 @@ function aM(e, t) {
|
|
|
21138
21138
|
const H = _.adoptedStyleSheets.indexOf(l(G));
|
|
21139
21139
|
H > -1 && _.adoptedStyleSheets.splice(H, 1);
|
|
21140
21140
|
}
|
|
21141
|
-
b(G,
|
|
21141
|
+
b(G, W(T())), _ && (_.adoptedStyleSheets = [..._.adoptedStyleSheets, l(G)]);
|
|
21142
21142
|
}
|
|
21143
21143
|
}
|
|
21144
21144
|
), ve(() => (l(M), l(N)), () => {
|
|
@@ -21173,7 +21173,7 @@ function aM(e, t) {
|
|
|
21173
21173
|
));
|
|
21174
21174
|
}
|
|
21175
21175
|
), sn();
|
|
21176
|
-
var
|
|
21176
|
+
var Z = {
|
|
21177
21177
|
get theme() {
|
|
21178
21178
|
return r();
|
|
21179
21179
|
},
|
|
@@ -21369,7 +21369,7 @@ function aM(e, t) {
|
|
|
21369
21369
|
l(C) && _(O);
|
|
21370
21370
|
});
|
|
21371
21371
|
}
|
|
21372
|
-
return U(P), yn(P, (_) => b(M, _), () => l(M)), z(e, P), Ve(
|
|
21372
|
+
return U(P), yn(P, (_) => b(M, _), () => l(M)), z(e, P), Ve(Z);
|
|
21373
21373
|
}
|
|
21374
21374
|
customElements.define("encatch-app", lb(
|
|
21375
21375
|
aM,
|
|
@@ -23534,35 +23534,35 @@ function Hz() {
|
|
|
23534
23534
|
function c(v, S = {}) {
|
|
23535
23535
|
const { encodePath: C = t } = S, N = [...v], L = [];
|
|
23536
23536
|
let M = 0, R = 0;
|
|
23537
|
-
function
|
|
23537
|
+
function W() {
|
|
23538
23538
|
let Y = "";
|
|
23539
23539
|
if (n.test(N[M]))
|
|
23540
23540
|
do
|
|
23541
23541
|
Y += N[M++];
|
|
23542
23542
|
while (r.test(N[M]));
|
|
23543
23543
|
else if (N[M] === '"') {
|
|
23544
|
-
let
|
|
23544
|
+
let Z = M;
|
|
23545
23545
|
for (; M++ < N.length; ) {
|
|
23546
23546
|
if (N[M] === '"') {
|
|
23547
|
-
M++,
|
|
23547
|
+
M++, Z = 0;
|
|
23548
23548
|
break;
|
|
23549
23549
|
}
|
|
23550
23550
|
N[M] === "\\" && M++, Y += N[M];
|
|
23551
23551
|
}
|
|
23552
|
-
if (
|
|
23553
|
-
throw new u(`Unterminated quote at index ${
|
|
23552
|
+
if (Z)
|
|
23553
|
+
throw new u(`Unterminated quote at index ${Z}`, v);
|
|
23554
23554
|
}
|
|
23555
23555
|
if (!Y)
|
|
23556
23556
|
throw new u(`Missing parameter name at index ${M}`, v);
|
|
23557
23557
|
return Y;
|
|
23558
23558
|
}
|
|
23559
23559
|
for (; M < N.length; ) {
|
|
23560
|
-
const Y = N[M],
|
|
23561
|
-
|
|
23560
|
+
const Y = N[M], Z = i[Y];
|
|
23561
|
+
Z ? L.push({ type: Z, index: M++, value: Y }) : Y === "\\" ? L.push({ type: "escape", index: M++, value: N[M++] }) : Y === ":" ? L.push({ type: "param", index: M++, value: W() }) : Y === "*" ? L.push({ type: "wildcard", index: M++, value: W() }) : L.push({ type: "char", index: M++, value: Y });
|
|
23562
23562
|
}
|
|
23563
23563
|
L.push({ type: "end", index: M, value: "" });
|
|
23564
23564
|
function G(Y) {
|
|
23565
|
-
const
|
|
23565
|
+
const Z = [];
|
|
23566
23566
|
for (; ; ) {
|
|
23567
23567
|
const P = L[R++];
|
|
23568
23568
|
if (P.type === Y)
|
|
@@ -23571,21 +23571,21 @@ function Hz() {
|
|
|
23571
23571
|
let ee = P.value, O = L[R];
|
|
23572
23572
|
for (; O.type === "char" || O.type === "escape"; )
|
|
23573
23573
|
ee += O.value, O = L[++R];
|
|
23574
|
-
|
|
23574
|
+
Z.push({
|
|
23575
23575
|
type: "text",
|
|
23576
23576
|
value: C(ee)
|
|
23577
23577
|
});
|
|
23578
23578
|
continue;
|
|
23579
23579
|
}
|
|
23580
23580
|
if (P.type === "param" || P.type === "wildcard") {
|
|
23581
|
-
|
|
23581
|
+
Z.push({
|
|
23582
23582
|
type: P.type,
|
|
23583
23583
|
name: P.value
|
|
23584
23584
|
});
|
|
23585
23585
|
continue;
|
|
23586
23586
|
}
|
|
23587
23587
|
if (P.type === "{") {
|
|
23588
|
-
|
|
23588
|
+
Z.push({
|
|
23589
23589
|
type: "group",
|
|
23590
23590
|
tokens: G("}")
|
|
23591
23591
|
});
|
|
@@ -23593,14 +23593,14 @@ function Hz() {
|
|
|
23593
23593
|
}
|
|
23594
23594
|
throw new u(`Unexpected ${P.type} at index ${P.index}, expected ${Y}`, v);
|
|
23595
23595
|
}
|
|
23596
|
-
return
|
|
23596
|
+
return Z;
|
|
23597
23597
|
}
|
|
23598
23598
|
return new a(G("end"), v);
|
|
23599
23599
|
}
|
|
23600
23600
|
function d(v, S = {}) {
|
|
23601
23601
|
const { encode: C = encodeURIComponent, delimiter: N = e } = S, L = typeof v == "object" ? v : c(v, S), M = m(L.tokens, N, C);
|
|
23602
|
-
return function(
|
|
23603
|
-
const [G, ...Y] = M(
|
|
23602
|
+
return function(W = {}) {
|
|
23603
|
+
const [G, ...Y] = M(W);
|
|
23604
23604
|
if (Y.length)
|
|
23605
23605
|
throw new TypeError(`Missing parameters: ${Y.join(", ")}`);
|
|
23606
23606
|
return G;
|
|
@@ -23611,8 +23611,8 @@ function Hz() {
|
|
|
23611
23611
|
return (L) => {
|
|
23612
23612
|
const M = [""];
|
|
23613
23613
|
for (const R of N) {
|
|
23614
|
-
const [
|
|
23615
|
-
M[0] +=
|
|
23614
|
+
const [W, ...G] = R(L);
|
|
23615
|
+
M[0] += W, M.push(...G);
|
|
23616
23616
|
}
|
|
23617
23617
|
return M;
|
|
23618
23618
|
};
|
|
@@ -23623,8 +23623,8 @@ function Hz() {
|
|
|
23623
23623
|
if (v.type === "group") {
|
|
23624
23624
|
const L = m(v.tokens, S, C);
|
|
23625
23625
|
return (M) => {
|
|
23626
|
-
const [R, ...
|
|
23627
|
-
return
|
|
23626
|
+
const [R, ...W] = L(M);
|
|
23627
|
+
return W.length ? [""] : [R];
|
|
23628
23628
|
};
|
|
23629
23629
|
}
|
|
23630
23630
|
const N = C || t;
|
|
@@ -23635,9 +23635,9 @@ function Hz() {
|
|
|
23635
23635
|
if (!Array.isArray(M) || M.length === 0)
|
|
23636
23636
|
throw new TypeError(`Expected "${v.name}" to be a non-empty array`);
|
|
23637
23637
|
return [
|
|
23638
|
-
M.map((R,
|
|
23638
|
+
M.map((R, W) => {
|
|
23639
23639
|
if (typeof R != "string")
|
|
23640
|
-
throw new TypeError(`Expected "${v.name}/${
|
|
23640
|
+
throw new TypeError(`Expected "${v.name}/${W}" to be a string`);
|
|
23641
23641
|
return N(R);
|
|
23642
23642
|
}).join(S)
|
|
23643
23643
|
];
|
|
@@ -23651,30 +23651,30 @@ function Hz() {
|
|
|
23651
23651
|
};
|
|
23652
23652
|
}
|
|
23653
23653
|
function p(v, S = {}) {
|
|
23654
|
-
const { decode: C = decodeURIComponent, delimiter: N = e } = S, { regexp: L, keys: M } = g(v, S), R = M.map((
|
|
23654
|
+
const { decode: C = decodeURIComponent, delimiter: N = e } = S, { regexp: L, keys: M } = g(v, S), R = M.map((W) => C === !1 ? t : W.type === "param" ? C : (G) => G.split(N).map(C));
|
|
23655
23655
|
return function(G) {
|
|
23656
23656
|
const Y = L.exec(G);
|
|
23657
23657
|
if (!Y)
|
|
23658
23658
|
return !1;
|
|
23659
|
-
const
|
|
23659
|
+
const Z = Y[0], P = /* @__PURE__ */ Object.create(null);
|
|
23660
23660
|
for (let ee = 1; ee < Y.length; ee++) {
|
|
23661
23661
|
if (Y[ee] === void 0)
|
|
23662
23662
|
continue;
|
|
23663
23663
|
const O = M[ee - 1], _ = R[ee - 1];
|
|
23664
23664
|
P[O.name] = _(Y[ee]);
|
|
23665
23665
|
}
|
|
23666
|
-
return { path:
|
|
23666
|
+
return { path: Z, params: P };
|
|
23667
23667
|
};
|
|
23668
23668
|
}
|
|
23669
23669
|
function g(v, S = {}) {
|
|
23670
|
-
const { delimiter: C = e, end: N = !0, sensitive: L = !1, trailing: M = !0 } = S, R = [],
|
|
23670
|
+
const { delimiter: C = e, end: N = !0, sensitive: L = !1, trailing: M = !0 } = S, R = [], W = L ? "" : "i", G = [];
|
|
23671
23671
|
for (const P of $(v, [])) {
|
|
23672
23672
|
const ee = typeof P == "object" ? P : c(P, S);
|
|
23673
23673
|
for (const O of k(ee.tokens, 0, []))
|
|
23674
23674
|
G.push(E(O, C, R, ee.originalPath));
|
|
23675
23675
|
}
|
|
23676
23676
|
let Y = `^(?:${G.join("|")})`;
|
|
23677
|
-
return M && (Y += `(?:${s(C)}$)?`), Y += N ? "$" : `(?=${s(C)}|$)`, { regexp: new RegExp(Y,
|
|
23677
|
+
return M && (Y += `(?:${s(C)}$)?`), Y += N ? "$" : `(?=${s(C)}|$)`, { regexp: new RegExp(Y, W), keys: R };
|
|
23678
23678
|
}
|
|
23679
23679
|
function $(v, S) {
|
|
23680
23680
|
if (Array.isArray(v))
|
|
@@ -23697,15 +23697,15 @@ function Hz() {
|
|
|
23697
23697
|
}
|
|
23698
23698
|
function E(v, S, C, N) {
|
|
23699
23699
|
let L = "", M = "", R = !0;
|
|
23700
|
-
for (const
|
|
23701
|
-
if (
|
|
23702
|
-
L += s(
|
|
23700
|
+
for (const W of v) {
|
|
23701
|
+
if (W.type === "text") {
|
|
23702
|
+
L += s(W.value), M += W.value, R || (R = W.value.includes(S));
|
|
23703
23703
|
continue;
|
|
23704
23704
|
}
|
|
23705
|
-
if (
|
|
23705
|
+
if (W.type === "param" || W.type === "wildcard") {
|
|
23706
23706
|
if (!R && !M)
|
|
23707
|
-
throw new u(`Missing text before "${
|
|
23708
|
-
|
|
23707
|
+
throw new u(`Missing text before "${W.name}" ${W.type}`, N);
|
|
23708
|
+
W.type === "param" ? L += `(${j(S, R ? "" : M)}+)` : L += "([\\s\\S]+)", C.push(W), M = "", R = !1;
|
|
23709
23709
|
continue;
|
|
23710
23710
|
}
|
|
23711
23711
|
}
|
|
@@ -23775,8 +23775,8 @@ const Kz = (e) => {
|
|
|
23775
23775
|
const L = N.triggerProperties;
|
|
23776
23776
|
for (const M of L.segments)
|
|
23777
23777
|
for (const R of M.when) {
|
|
23778
|
-
let
|
|
23779
|
-
if (typeof R.then.scroll == "string" ?
|
|
23778
|
+
let W = 0;
|
|
23779
|
+
if (typeof R.then.scroll == "string" ? W = parseFloat(R.then.scroll.replace("%", "")) : W = Number(R.then.scroll), R.then.triggerType === "scroll" && !isNaN(W) && S >= W) {
|
|
23780
23780
|
E.current.add(N.feedbackConfigurationId), e?.(N.feedbackConfigurationId, R.if.event);
|
|
23781
23781
|
return;
|
|
23782
23782
|
}
|
|
@@ -23787,11 +23787,11 @@ const Kz = (e) => {
|
|
|
23787
23787
|
const S = [], C = [];
|
|
23788
23788
|
v.forEach((L) => {
|
|
23789
23789
|
if (L.triggerProperties) {
|
|
23790
|
-
const M = L.triggerProperties, { isAuto: R, segments:
|
|
23791
|
-
R &&
|
|
23790
|
+
const M = L.triggerProperties, { isAuto: R, segments: W } = M;
|
|
23791
|
+
R && W && W.forEach((G) => {
|
|
23792
23792
|
G.when && G.when.forEach((Y) => {
|
|
23793
23793
|
if (Y.if) {
|
|
23794
|
-
const { event:
|
|
23794
|
+
const { event: Z, queryOutput: P } = Y.if;
|
|
23795
23795
|
let ee = P.jsonLogic;
|
|
23796
23796
|
if (typeof ee == "string")
|
|
23797
23797
|
if (ee.trim() === "")
|
|
@@ -23806,12 +23806,12 @@ const Kz = (e) => {
|
|
|
23806
23806
|
return;
|
|
23807
23807
|
const O = {
|
|
23808
23808
|
feedbackConfigurationId: L.feedbackConfigurationId,
|
|
23809
|
-
eventName:
|
|
23809
|
+
eventName: Z,
|
|
23810
23810
|
jsonLogicField: ee,
|
|
23811
23811
|
thenAction: Y.then,
|
|
23812
23812
|
isImportant: G.isImportant ?? !1
|
|
23813
23813
|
};
|
|
23814
|
-
|
|
23814
|
+
Z === "pageLoad" ? S.push(O) : C.push(O);
|
|
23815
23815
|
}
|
|
23816
23816
|
});
|
|
23817
23817
|
});
|
|
@@ -23830,13 +23830,13 @@ const Kz = (e) => {
|
|
|
23830
23830
|
N && (C = N.find((L) => {
|
|
23831
23831
|
let M = !1;
|
|
23832
23832
|
try {
|
|
23833
|
-
const
|
|
23834
|
-
M = Ma.apply(L.jsonLogicField,
|
|
23835
|
-
} catch (
|
|
23833
|
+
const W = S || {};
|
|
23834
|
+
M = Ma.apply(L.jsonLogicField, W);
|
|
23835
|
+
} catch (W) {
|
|
23836
23836
|
console.error("[swat] Error applying jsonLogic for pageLoad trigger:", {
|
|
23837
23837
|
configId: L.feedbackConfigurationId,
|
|
23838
23838
|
jsonLogicField: L.jsonLogicField,
|
|
23839
|
-
error:
|
|
23839
|
+
error: W
|
|
23840
23840
|
}), M = !1;
|
|
23841
23841
|
}
|
|
23842
23842
|
return L.eventName === v && M;
|
|
@@ -23875,14 +23875,14 @@ const Kz = (e) => {
|
|
|
23875
23875
|
if (p.current !== null && (clearTimeout(p.current), p.current = null), L === "immediately")
|
|
23876
23876
|
k(C.feedbackConfigurationId, C.eventName), h(null);
|
|
23877
23877
|
else if (L === "delay") {
|
|
23878
|
-
const
|
|
23878
|
+
const W = M * 1e3;
|
|
23879
23879
|
h({
|
|
23880
23880
|
configId: C.feedbackConfigurationId,
|
|
23881
23881
|
isImportant: C.isImportant,
|
|
23882
23882
|
eventName: C.eventName
|
|
23883
23883
|
}), p.current = window.setTimeout(() => {
|
|
23884
23884
|
k(C.feedbackConfigurationId, C.eventName), h(null), p.current = null;
|
|
23885
|
-
},
|
|
23885
|
+
}, W);
|
|
23886
23886
|
}
|
|
23887
23887
|
}
|
|
23888
23888
|
}, {
|
|
@@ -24084,7 +24084,7 @@ const lO = () => {
|
|
|
24084
24084
|
updateUserInfo: N,
|
|
24085
24085
|
sessionId: L,
|
|
24086
24086
|
setUserInfoObject: M
|
|
24087
|
-
} = eO(), [R,
|
|
24087
|
+
} = eO(), [R, W] = Fe(null), [G, Y] = Fe(!1), [Z, P] = Fe(!1), [ee, O] = Fe(!1), [_, H] = Fe(
|
|
24088
24088
|
null
|
|
24089
24089
|
);
|
|
24090
24090
|
Fe(null);
|
|
@@ -24361,9 +24361,9 @@ const lO = () => {
|
|
|
24361
24361
|
action: ie,
|
|
24362
24362
|
duration: be
|
|
24363
24363
|
}) => {
|
|
24364
|
-
ie === "V" &&
|
|
24364
|
+
ie === "V" && W(Date.now());
|
|
24365
24365
|
let we = be;
|
|
24366
|
-
ie === "S" && R !== null && (we = Math.floor((Date.now() - R) / 1e3),
|
|
24366
|
+
ie === "S" && R !== null && (we = Math.floor((Date.now() - R) / 1e3), W(null)), ie === "V" && (rp(), E || j({
|
|
24367
24367
|
customEventName: T,
|
|
24368
24368
|
currentPath: A,
|
|
24369
24369
|
eventType: T === "pageLoad" ? "pageLoad" : "customEvent"
|
|
@@ -24400,7 +24400,7 @@ const lO = () => {
|
|
|
24400
24400
|
he
|
|
24401
24401
|
), xt());
|
|
24402
24402
|
}
|
|
24403
|
-
d(null), s(null),
|
|
24403
|
+
d(null), s(null), W(null), Y(!1), P(!1), O(!1), j(null), S(null);
|
|
24404
24404
|
}
|
|
24405
24405
|
};
|
|
24406
24406
|
}, [
|
|
@@ -24450,7 +24450,7 @@ const lO = () => {
|
|
|
24450
24450
|
}, 300);
|
|
24451
24451
|
}, [o, _]), on(() => {
|
|
24452
24452
|
if (c && o && !G) {
|
|
24453
|
-
Y(!0),
|
|
24453
|
+
Y(!0), W(Date.now());
|
|
24454
24454
|
const be = E, we = $ ?? null;
|
|
24455
24455
|
kt({
|
|
24456
24456
|
formConfig: {
|
|
@@ -24482,7 +24482,7 @@ const lO = () => {
|
|
|
24482
24482
|
o,
|
|
24483
24483
|
G
|
|
24484
24484
|
]), on(() => {
|
|
24485
|
-
c && o &&
|
|
24485
|
+
c && o && Z && setTimeout(() => {
|
|
24486
24486
|
const he = document.getElementById(
|
|
24487
24487
|
"core-wrapper-popup"
|
|
24488
24488
|
);
|
|
@@ -24496,7 +24496,7 @@ const lO = () => {
|
|
|
24496
24496
|
c,
|
|
24497
24497
|
m,
|
|
24498
24498
|
o,
|
|
24499
|
-
|
|
24499
|
+
Z,
|
|
24500
24500
|
e,
|
|
24501
24501
|
ke,
|
|
24502
24502
|
L,
|
|
@@ -24504,7 +24504,7 @@ const lO = () => {
|
|
|
24504
24504
|
p
|
|
24505
24505
|
]);
|
|
24506
24506
|
const qe = [];
|
|
24507
|
-
return c && o &&
|
|
24507
|
+
return c && o && Z && (qe.push("https://app.dev.encatch.com/s/index-latest.css"), c?.appearanceProperties?.featureSettings?.customCss && qe.push(c.appearanceProperties.featureSettings.customCss), n.customCssLink && qe.push(n.customCssLink)), /* @__PURE__ */ Ds(lp, { children: [
|
|
24508
24508
|
/* @__PURE__ */ Ds(
|
|
24509
24509
|
"link",
|
|
24510
24510
|
{
|
|
@@ -24513,7 +24513,7 @@ const lO = () => {
|
|
|
24513
24513
|
href: "https://app.dev.encatch.com/s/index-latest.css"
|
|
24514
24514
|
}
|
|
24515
24515
|
),
|
|
24516
|
-
c && c !== null && o && o !== null &&
|
|
24516
|
+
c && c !== null && o && o !== null && Z && /* @__PURE__ */ Ds(
|
|
24517
24517
|
"encatch-form",
|
|
24518
24518
|
{
|
|
24519
24519
|
id: "core-wrapper-popup",
|