@cling-se/widget 0.19.7 → 0.19.9
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 +18 -0
- package/dist/{AddClientCallout-BdGevuQo.js → AddClientCallout-C400wpa7.js} +19 -19
- package/dist/{AnswerModal-DfjF-RVP.js → AnswerModal-C_vekdpA.js} +80 -80
- package/dist/{AttachmentItem-BEd3qVAo.js → AttachmentItem-CYeH1VVw.js} +14 -14
- package/dist/{BaseUpload-Zm4EX8ir.js → BaseUpload-DGLogqK4.js} +256 -256
- package/dist/{BlockMedia-ZHaA4OMV.js → BlockMedia-Hbm0GWNw.js} +33 -32
- package/dist/{CCallout-BlglVZrm.js → CCallout-BPCwr3uM.js} +15 -15
- package/dist/{CCurrencyDropdown-BzvKsm1N.js → CCurrencyDropdown-CZXWH0mA.js} +13 -13
- package/dist/{CDropdownItem-B5rgSee7.js → CDropdownItem-B9dja0RC.js} +11 -11
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js → CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js} +17 -17
- package/dist/{CPhoneFormat-DaDNMlmK.js → CPhoneFormat-C1cjsMVZ.js} +1 -1
- package/dist/{CPhoneInput-BUogm59J.js → CPhoneInput-DwcIFaqz.js} +23 -23
- package/dist/{CPriceInput-Cd5OHMJS.js → CPriceInput-C_PfAhRb.js} +12 -12
- package/dist/{CSelect-CmoAbVkP.js → CSelect-D4A_clvT.js} +15 -15
- package/dist/{CSkeleton-BF6EYj8H.js → CSkeleton-h81Vudx0.js} +16 -16
- package/dist/{ClientAutocomplete-CHfp4YiV.js → ClientAutocomplete-B_R7zgvM.js} +24 -24
- package/dist/{ClientModal-Com23Qgc.js → ClientModal-CBJgrb_y.js} +44 -44
- package/dist/{ColorPicker-BzdHtZep.js → ColorPicker-a5yTVc0q.js} +66 -66
- package/dist/{CompanyModal-CGjSgTEJ.js → CompanyModal-sRTrUPOY.js} +18 -18
- package/dist/{ContentWrapper-CS-Bh4Bk.js → ContentWrapper-Cwd6t51-.js} +16 -16
- package/dist/{CoverBlockSettings-DDHQzLdc.js → CoverBlockSettings-8tjji9f1.js} +39 -39
- package/dist/{DocAnswer-Cmdsw_CW.js → DocAnswer-D1ZIH1Hn.js} +4 -4
- package/dist/{DocDetails-C5Vzh550.js → DocDetails-B5_hBzC-.js} +56 -56
- package/dist/{DocForm-DEUVV11n.js → DocForm-BKQvY0Ie.js} +821 -829
- package/dist/{DocFormSend-Dt7N3wCz.js → DocFormSend-z0W-xRJP.js} +11 -11
- package/dist/{DocLinks-C6-Er0rk.js → DocLinks-BgbDU24h.js} +6 -6
- package/dist/{DocModalBase-DbuJwHXi.js → DocModalBase-CNo1u8TK.js} +1 -1
- package/dist/{DocPrint-D_uxg7qD.js → DocPrint--UV846r0.js} +15 -15
- package/dist/{DocReceipt-D6LP9UAa.js → DocReceipt-BAkWIKbC.js} +23 -23
- package/dist/{DocSendReminder-DopLhyjz.js → DocSendReminder-Bk6IVg0R.js} +10 -10
- package/dist/{DocTextEditor-DeZtzbgm.js → DocTextEditor-D5zDbbXV.js} +4499 -4438
- package/dist/{DocTimeline-DAWZu_KT.js → DocTimeline-KG4zJJOW.js} +16 -16
- package/dist/{DocumentClient-kxnT6k9s.js → DocumentClient-CXSxwjOt.js} +12 -12
- package/dist/DocumentLayout-C-V_5p3r.js +595 -0
- package/dist/{DocumentLogotype-G-a7gBIC.js → DocumentLogotype-H0f7bO0E.js} +18 -18
- package/dist/{DocumentVoided-SG_ShMmc.js → DocumentVoided-3F7DChD4.js} +4 -4
- package/dist/{EmbedInput-CJL5y3Zj.js → EmbedInput-iG-cDNzZ.js} +8 -8
- package/dist/{EmbedSettings-B0X6A9Uy.js → EmbedSettings-DhwFGdKH.js} +12 -12
- package/dist/{ErrorCallout-xCSfpQWV.js → ErrorCallout-CyqQ9iRV.js} +10 -10
- package/dist/{FilePreviewModal-Da_pMUoO.js → FilePreviewModal-CEUhUuh4.js} +7 -7
- package/dist/{Flag-wXawyyMO.js → Flag-Bza5Ltob.js} +4 -4
- package/dist/{HeaderSettings-CD3y6-uY.js → HeaderSettings-kEbuiv0n.js} +36 -36
- package/dist/{ImageSelectModal-DatnXHH1.js → ImageSelectModal-MDduQIdS.js} +16 -16
- package/dist/{ImageUploadWrapper-CwKe3Iq7.js → ImageUploadWrapper-CKJXUAkn.js} +72 -72
- package/dist/{Index-BbVHxVFJ.js → Index--_tbiloB.js} +33 -33
- package/dist/{Index-y_AJP61r.js → Index-437smvNJ.js} +11 -11
- package/dist/{Index-ezY0DbcB.js → Index-8CyLDQv2.js} +5 -5
- package/dist/{Index-Cjg3X74T.js → Index-B1tFrOfN.js} +7 -7
- package/dist/{Index-Ct735UtM.js → Index-BFwz1G_7.js} +2 -2
- package/dist/{Index-BlownK7_.js → Index-BXqNV8F_.js} +7 -7
- package/dist/{Index-B53eUt7Y.js → Index-Bege0Vce.js} +15 -15
- package/dist/{Index-BTDQax0X.js → Index-Bg1kzWCp.js} +60 -59
- package/dist/{Index-9ZFW8Ka7.js → Index-C46cWm4W.js} +7 -7
- package/dist/{Index-C2-s62x7.js → Index-CGhWvSf9.js} +11 -11
- package/dist/{Index-D-gJQEAD.js → Index-CHIQWumi.js} +6 -6
- package/dist/{Index-CQboLS2e.js → Index-CNQhKXtr.js} +8 -8
- package/dist/{Index-COF0evH4.js → Index-CUDi4SEx.js} +6 -6
- package/dist/{Index-Bb6JZC8l.js → Index-ClA923dR.js} +11 -11
- package/dist/{Index-1WPEpaVr.js → Index-D2A8evjo.js} +7 -7
- package/dist/{Index-BvAqglwa.js → Index-D4XDugcf.js} +27 -27
- package/dist/{Index-GPliVrhC.js → Index-DB3keB-X.js} +7 -7
- package/dist/{Index-BJf4YdYB.js → Index-DQLLCnjH.js} +29 -29
- package/dist/{Index-Dfy0PsiW.js → Index-DUM-3B1l.js} +29 -29
- package/dist/{Index-Ck-_9woY.js → Index-DdZo8evS.js} +456 -461
- package/dist/{Index-CTrX3VRa.js → Index-Doc7K3kL.js} +5 -5
- package/dist/{Index-DfuzxXzD.js → Index-Dqfwe7SG.js} +2 -2
- package/dist/{Index-NnBwJv9v.js → Index-DtCuzght.js} +9 -9
- package/dist/{Index-DOeHci16.js → Index-DtDRffCY.js} +7 -7
- package/dist/{Index-C-EUJjuk.js → Index-DzKdZg0G.js} +2 -2
- package/dist/{Index-yS5OPrJJ.js → Index-DzugmOmj.js} +2 -2
- package/dist/{Index-DjfbgA_7.js → Index-E7OzmtR_.js} +30 -27
- package/dist/{Index-DkQ8_VkX.js → Index-MmvJQvLm.js} +194 -218
- package/dist/{Index-Dxg4gEKd.js → Index-Rb5n5XoO.js} +18 -18
- package/dist/{Index-DAkq_7Ws.js → Index-dTgmxz_A.js} +18 -18
- package/dist/{Index-Ciy9lnhS.js → Index-eJiQmHhr.js} +2 -2
- package/dist/Index-jQsYOOC3.js +4 -0
- package/dist/{Index-DzdEqsZB.js → Index-rINXTjpt.js} +16 -16
- package/dist/Index-zRXdiRpy.js +49 -0
- package/dist/{Index.vue_vue_type_script_lang-B3RoDZmC.js → Index.vue_vue_type_script_lang-B9979oeS.js} +2 -2
- package/dist/{InputToggleRow-D5rvQpAw.js → InputToggleRow-CO4fZnAC.js} +15 -15
- package/dist/{ManualPopover-Bd-GsLGT.js → ManualPopover-DT4iXoSI.js} +6 -6
- package/dist/{MediaWrapper-Ci0XPCcb.js → MediaWrapper-CP_1JzGI.js} +4 -4
- package/dist/{NotBindingText-DhndGZE3.js → NotBindingText-D9Um3Agp.js} +2 -2
- package/dist/{PackageGroup-4Jt9ClVO.js → PackageGroup-BtH12jVM.js} +103 -103
- package/dist/{PdfTerms-CGeJDJpQ.js → PdfTerms-sQh93Xit.js} +9 -9
- package/dist/{PdfViewer-o2vb6Fya.js → PdfViewer-DMAcTVND.js} +71 -71
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js → PlainHtml.vue_vue_type_script_setup_true_lang-tY-SurWr.js} +2 -2
- package/dist/{PriceHeader-BsObxLHK.js → PriceHeader-CG6el7O_.js} +31 -31
- package/dist/{SearchApi-ZczKsBb7.js → SearchApi-B39mMGKy.js} +6 -6
- package/dist/{SendForm-D5jqkofo.js → SendForm-F5aQPz8w.js} +780 -778
- package/dist/{Setup-CdZzn0qW.js → Setup-DuHU2eHC.js} +4 -4
- package/dist/{SmartList-B36ffGAZ.js → SmartList-myMj6QGe.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js → Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js} +118 -118
- package/dist/{TermsSettings-CmAHVOuX.js → TermsSettings-Cb6Xms3f.js} +16 -16
- package/dist/{ThemeColorRow-CScTIcPB.js → ThemeColorRow-oW3xS1pa.js} +13 -13
- package/dist/{ToggleBinding-CVZZlpBR.js → ToggleBinding-B-F9_nAf.js} +7 -7
- package/dist/{UploadModal-2tXsmGMM.js → UploadModal-eBx4Vqyo.js} +19 -19
- package/dist/{VideoPlayerInput-BDzjZ2St.js → VideoPlayerInput-CtTe4JW4.js} +10 -10
- package/dist/{VideoPlayerSettings-BLAEZw4C.js → VideoPlayerSettings-Cvz5B4JX.js} +9 -9
- package/dist/{VideoSelectModal-iqgmg85K.js → VideoSelectModal-CXI0aN4g.js} +19 -19
- package/dist/{focusDrawerMixin-BmyahQiE.js → focusDrawerMixin-DlcYhFw8.js} +1 -1
- package/dist/{formDrawerState-B7ASfNsk.js → formDrawerState-Cf6Q5cuR.js} +1 -1
- package/dist/{helpers-BVP2Pul1.js → helpers-Cf9wqfZh.js} +4 -4
- package/dist/{index-D0Qee2OX.js → index-BSCAjn53.js} +31 -31
- package/dist/{index-Cd4S4J-L.js → index-BStFMzD9.js} +56 -56
- package/dist/{index-BDb4bM0D.js → index-BytsFarx.js} +24 -24
- package/dist/{index-DXNrJnEc.js → index-Co_PpOtI.js} +10 -10
- package/dist/{index-BH5vwOzR.js → index-DPlBYqKB.js} +9 -9
- package/dist/{index-B86TZXOh.js → index-DsvlNA3Q.js} +94 -94
- package/dist/{index-CsbYpQqP.js → index-r5v1Gv17.js} +57 -57
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +153 -158
- package/dist/{main-C2Q8_T2Y.js → main-BkjAGG46.js} +14298 -14373
- package/dist/{mapFormMixin-CjfqZnmd.js → mapFormMixin-DLFNPgNO.js} +34 -40
- package/dist/omit-CvOSNZN7.js +56 -0
- package/dist/{publicSenderState-C3ELW8Cw.js → publicSenderState-DeC1m0ps.js} +4 -4
- package/dist/{splitpanes-CuxtOZyV.js → splitpanes-CsJipBiG.js} +6 -6
- package/dist/{template-DzrGrOEa.js → template-Cvzvayl5.js} +6 -6
- package/dist/{tippy.esm-Bf86qEue.js → tippy.esm-JEjGtE5F.js} +273 -275
- package/dist/{useTermsModal-Be4HLDDm.js → useTermsModal-D2gYy-TP.js} +7 -7
- package/dist/{utils-a_Odlqb5.js → utils-DarTPA8c.js} +1 -1
- package/dist/{validation-38muBV6x.js → validation-K11g55ZB.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/DocumentLayout-DaVz9SGF.js +0 -1434
- package/dist/Index-CXjLkK_n.js +0 -49
- package/dist/Index-qFx0G3fC.js +0 -4
- package/dist/omit-DzlbtNCX.js +0 -56
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as n } from "./main-BkjAGG46.js";
|
|
2
2
|
const i = (e) => {
|
|
3
3
|
if (e = n(e), Array.isArray(e)) return !!e.length;
|
|
4
4
|
if (e == null)
|
|
@@ -90,7 +90,7 @@ function h(e) {
|
|
|
90
90
|
return u(s, r);
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function I(e) {
|
|
94
94
|
return {
|
|
95
95
|
$validator: h(e),
|
|
96
96
|
$message: "The value is required",
|
|
@@ -103,7 +103,7 @@ function S(e) {
|
|
|
103
103
|
function l(e) {
|
|
104
104
|
return (r) => n(r) === n(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function S(e) {
|
|
107
107
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "other";
|
|
108
108
|
return {
|
|
109
109
|
$validator: l(e),
|
|
@@ -120,7 +120,7 @@ a(p);
|
|
|
120
120
|
function y(e) {
|
|
121
121
|
return (r) => !i(r) || (!/\s/.test(r) || r instanceof Date) && +r >= +n(e);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function T(e) {
|
|
124
124
|
return {
|
|
125
125
|
$validator: y(e),
|
|
126
126
|
$message: (r) => {
|
|
@@ -138,12 +138,12 @@ function I(e) {
|
|
|
138
138
|
a(/(^[0-9]*$)|(^-[0-9]+$)/);
|
|
139
139
|
a(/^[-]?\d*(\.\d+)?$/);
|
|
140
140
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
I as a,
|
|
142
|
+
L as b,
|
|
143
|
+
T as c,
|
|
144
144
|
A as e,
|
|
145
|
-
|
|
145
|
+
q as m,
|
|
146
146
|
b as n,
|
|
147
147
|
V as r,
|
|
148
|
-
|
|
148
|
+
S as s
|
|
149
149
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { z as ie, A as O, B as ce, D as P, E as A, r as S, G as de, H as h, I as g, J as z, p as B, K as $e, L as ve, M } from "./main-BkjAGG46.js";
|
|
2
|
+
function H(t, a) {
|
|
3
3
|
var n = Object.keys(t);
|
|
4
4
|
if (Object.getOwnPropertySymbols) {
|
|
5
5
|
var e = Object.getOwnPropertySymbols(t);
|
|
@@ -12,15 +12,15 @@ function W(t, a) {
|
|
|
12
12
|
function w(t) {
|
|
13
13
|
for (var a = 1; a < arguments.length; a++) {
|
|
14
14
|
var n = arguments[a] != null ? arguments[a] : {};
|
|
15
|
-
a % 2 ?
|
|
16
|
-
|
|
17
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
15
|
+
a % 2 ? H(Object(n), !0).forEach(function(e) {
|
|
16
|
+
fe(t, e, n[e]);
|
|
17
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : H(Object(n)).forEach(function(e) {
|
|
18
18
|
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function fe(t, a, n) {
|
|
24
24
|
return a in t ? Object.defineProperty(t, a, {
|
|
25
25
|
value: n,
|
|
26
26
|
enumerable: !0,
|
|
@@ -28,7 +28,7 @@ function ve(t, a, n) {
|
|
|
28
28
|
writable: !0
|
|
29
29
|
}) : t[a] = n, t;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function W(t) {
|
|
32
32
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
33
33
|
return Object.keys(t).reduce((n, e) => (a.includes(e) || (n[e] = g(t[e])), n), {});
|
|
34
34
|
}
|
|
@@ -36,9 +36,9 @@ function _(t) {
|
|
|
36
36
|
return typeof t == "function";
|
|
37
37
|
}
|
|
38
38
|
function ge(t) {
|
|
39
|
-
return $e(t) ||
|
|
39
|
+
return $e(t) || ve(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Q(t, a, n) {
|
|
42
42
|
let e = t;
|
|
43
43
|
const s = a.split(".");
|
|
44
44
|
for (let u = 0; u < s.length; u++) {
|
|
@@ -48,13 +48,13 @@ function J(t, a, n) {
|
|
|
48
48
|
return e;
|
|
49
49
|
}
|
|
50
50
|
function T(t, a, n) {
|
|
51
|
-
return h(() => t.some((e) =>
|
|
51
|
+
return h(() => t.some((e) => Q(a, e, {
|
|
52
52
|
[n]: !1
|
|
53
53
|
})[n]));
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function J(t, a, n) {
|
|
56
56
|
return h(() => t.reduce((e, s) => {
|
|
57
|
-
const u =
|
|
57
|
+
const u = Q(a, s, {
|
|
58
58
|
[n]: !1
|
|
59
59
|
})[n] || [];
|
|
60
60
|
return e.concat(u);
|
|
@@ -70,29 +70,29 @@ function me(t, a, n, e, s, u, m) {
|
|
|
70
70
|
let {
|
|
71
71
|
$lazy: i,
|
|
72
72
|
$rewardEarly: d
|
|
73
|
-
} = s, l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [],
|
|
74
|
-
const
|
|
73
|
+
} = s, l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], v = arguments.length > 8 ? arguments[8] : void 0, $ = arguments.length > 9 ? arguments[9] : void 0, p = arguments.length > 10 ? arguments[10] : void 0;
|
|
74
|
+
const f = O(!!e.value), r = O(0);
|
|
75
75
|
n.value = !1;
|
|
76
|
-
const c =
|
|
76
|
+
const c = P([a, e].concat(l, p), () => {
|
|
77
77
|
if (i && !e.value || d && !$.value && !n.value)
|
|
78
78
|
return;
|
|
79
79
|
let o;
|
|
80
80
|
try {
|
|
81
|
-
o = X(t, a,
|
|
81
|
+
o = X(t, a, v, m);
|
|
82
82
|
} catch (y) {
|
|
83
83
|
o = Promise.reject(y);
|
|
84
84
|
}
|
|
85
|
-
r.value++, n.value = !!r.value,
|
|
86
|
-
r.value--, n.value = !!r.value, u.value = y,
|
|
85
|
+
r.value++, n.value = !!r.value, f.value = !1, Promise.resolve(o).then((y) => {
|
|
86
|
+
r.value--, n.value = !!r.value, u.value = y, f.value = Y(y);
|
|
87
87
|
}).catch((y) => {
|
|
88
|
-
r.value--, n.value = !!r.value, u.value = y,
|
|
88
|
+
r.value--, n.value = !!r.value, u.value = y, f.value = !0;
|
|
89
89
|
});
|
|
90
90
|
}, {
|
|
91
91
|
immediate: !0,
|
|
92
92
|
deep: typeof a == "object"
|
|
93
93
|
});
|
|
94
94
|
return {
|
|
95
|
-
$invalid:
|
|
95
|
+
$invalid: f,
|
|
96
96
|
$unwatch: c
|
|
97
97
|
};
|
|
98
98
|
}
|
|
@@ -101,41 +101,41 @@ function he(t, a, n, e, s, u, m, i) {
|
|
|
101
101
|
$lazy: d,
|
|
102
102
|
$rewardEarly: l
|
|
103
103
|
} = e;
|
|
104
|
-
const
|
|
104
|
+
const v = () => ({}), $ = h(() => {
|
|
105
105
|
if (d && !n.value || l && !i.value)
|
|
106
106
|
return !1;
|
|
107
107
|
let p = !0;
|
|
108
108
|
try {
|
|
109
|
-
const
|
|
110
|
-
s.value =
|
|
111
|
-
} catch (
|
|
112
|
-
s.value =
|
|
109
|
+
const f = X(t, a, m, u);
|
|
110
|
+
s.value = f, p = Y(f);
|
|
111
|
+
} catch (f) {
|
|
112
|
+
s.value = f;
|
|
113
113
|
}
|
|
114
114
|
return p;
|
|
115
115
|
});
|
|
116
116
|
return {
|
|
117
|
-
$unwatch:
|
|
117
|
+
$unwatch: v,
|
|
118
118
|
$invalid: $
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function pe(t, a, n, e, s, u, m, i, d, l,
|
|
122
|
-
const $ = O(!1), p = t.$params || {},
|
|
121
|
+
function pe(t, a, n, e, s, u, m, i, d, l, v) {
|
|
122
|
+
const $ = O(!1), p = t.$params || {}, f = O(null);
|
|
123
123
|
let r, c;
|
|
124
124
|
t.$async ? {
|
|
125
125
|
$invalid: r,
|
|
126
126
|
$unwatch: c
|
|
127
|
-
} = me(t.$validator, a, $, n, e,
|
|
127
|
+
} = me(t.$validator, a, $, n, e, f, s, t.$watchTargets, d, l, v) : {
|
|
128
128
|
$invalid: r,
|
|
129
129
|
$unwatch: c
|
|
130
|
-
} = he(t.$validator, a, n, e,
|
|
130
|
+
} = he(t.$validator, a, n, e, f, s, d, l);
|
|
131
131
|
const o = t.$message;
|
|
132
132
|
return {
|
|
133
|
-
$message: _(o) ? h(() => o(
|
|
133
|
+
$message: _(o) ? h(() => o(W({
|
|
134
134
|
$pending: $,
|
|
135
135
|
$invalid: r,
|
|
136
|
-
$params:
|
|
136
|
+
$params: W(p),
|
|
137
137
|
$model: a,
|
|
138
|
-
$response:
|
|
138
|
+
$response: f,
|
|
139
139
|
$validator: u,
|
|
140
140
|
$propertyPath: i,
|
|
141
141
|
$property: m
|
|
@@ -143,7 +143,7 @@ function pe(t, a, n, e, s, u, m, i, d, l, f) {
|
|
|
143
143
|
$params: p,
|
|
144
144
|
$pending: $,
|
|
145
145
|
$invalid: r,
|
|
146
|
-
$response:
|
|
146
|
+
$response: f,
|
|
147
147
|
$unwatch: c
|
|
148
148
|
};
|
|
149
149
|
}
|
|
@@ -180,10 +180,10 @@ function ye() {
|
|
|
180
180
|
}
|
|
181
181
|
const Re = "__root";
|
|
182
182
|
function Oe(t, a, n, e, s, u, m, i, d) {
|
|
183
|
-
const l = Object.keys(t),
|
|
184
|
-
if (
|
|
185
|
-
if (!
|
|
186
|
-
|
|
183
|
+
const l = Object.keys(t), v = e.get(s, t), $ = O(!1), p = O(!1), f = O(0);
|
|
184
|
+
if (v) {
|
|
185
|
+
if (!v.$partial) return v;
|
|
186
|
+
v.$unwatch(), $.value = v.$dirty.value;
|
|
187
187
|
}
|
|
188
188
|
const r = {
|
|
189
189
|
$dirty: $,
|
|
@@ -198,7 +198,7 @@ function Oe(t, a, n, e, s, u, m, i, d) {
|
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
return l.length ? (l.forEach((c) => {
|
|
201
|
-
r[c] = pe(t[c], a, r.$dirty, u, m, c, n, s, d, p,
|
|
201
|
+
r[c] = pe(t[c], a, r.$dirty, u, m, c, n, s, d, p, f);
|
|
202
202
|
}), r.$externalResults = h(() => i.value ? [].concat(i.value).map((c, o) => ({
|
|
203
203
|
$propertyPath: s,
|
|
204
204
|
$property: n,
|
|
@@ -213,7 +213,7 @@ function Oe(t, a, n, e, s, u, m, i, d) {
|
|
|
213
213
|
return p.value = c, !!r.$externalResults.value.length || c;
|
|
214
214
|
}), r.$pending = h(() => l.some((c) => g(r[c].$pending))), r.$error = h(() => r.$dirty.value ? r.$pending.value || r.$invalid.value : !1), r.$silentErrors = h(() => l.filter((c) => g(r[c].$invalid)).map((c) => {
|
|
215
215
|
const o = r[c];
|
|
216
|
-
return
|
|
216
|
+
return S({
|
|
217
217
|
$propertyPath: s,
|
|
218
218
|
$property: n,
|
|
219
219
|
$validator: c,
|
|
@@ -226,12 +226,12 @@ function Oe(t, a, n, e, s, u, m, i, d) {
|
|
|
226
226
|
}).concat(r.$externalResults.value)), r.$errors = h(() => r.$dirty.value ? r.$silentErrors.value : []), r.$unwatch = () => l.forEach((c) => {
|
|
227
227
|
r[c].$unwatch();
|
|
228
228
|
}), r.$commit = () => {
|
|
229
|
-
p.value = !0,
|
|
230
|
-
}, e.set(s, t, r), r) : (
|
|
229
|
+
p.value = !0, f.value = Date.now();
|
|
230
|
+
}, e.set(s, t, r), r) : (v && e.set(s, t, r), r);
|
|
231
231
|
}
|
|
232
232
|
function Ee(t, a, n, e, s, u, m) {
|
|
233
233
|
const i = Object.keys(t);
|
|
234
|
-
return i.length ? i.reduce((d, l) => (d[l] =
|
|
234
|
+
return i.length ? i.reduce((d, l) => (d[l] = D({
|
|
235
235
|
validations: t[l],
|
|
236
236
|
state: a,
|
|
237
237
|
key: l,
|
|
@@ -256,7 +256,7 @@ function we(t, a, n) {
|
|
|
256
256
|
}), m = h(() => {
|
|
257
257
|
const r = g(t.$errors) || [], c = e.value.filter((o) => (g(o).$errors || []).length).reduce((o, y) => o.concat(...y.$errors), []);
|
|
258
258
|
return r.concat(c);
|
|
259
|
-
}), i = h(() => e.value.some((r) => r.$invalid) || g(t.$invalid) || !1), d = h(() => e.value.some((r) => g(r.$pending)) || g(t.$pending) || !1), l = h(() => e.value.some((r) => r.$dirty) || e.value.some((r) => r.$anyDirty) || s.value),
|
|
259
|
+
}), i = h(() => e.value.some((r) => r.$invalid) || g(t.$invalid) || !1), d = h(() => e.value.some((r) => g(r.$pending)) || g(t.$pending) || !1), l = h(() => e.value.some((r) => r.$dirty) || e.value.some((r) => r.$anyDirty) || s.value), v = h(() => s.value ? d.value || i.value : !1), $ = () => {
|
|
260
260
|
t.$touch(), e.value.forEach((r) => {
|
|
261
261
|
r.$touch();
|
|
262
262
|
});
|
|
@@ -264,7 +264,7 @@ function we(t, a, n) {
|
|
|
264
264
|
t.$commit(), e.value.forEach((r) => {
|
|
265
265
|
r.$commit();
|
|
266
266
|
});
|
|
267
|
-
},
|
|
267
|
+
}, f = () => {
|
|
268
268
|
t.$reset(), e.value.forEach((r) => {
|
|
269
269
|
r.$reset();
|
|
270
270
|
});
|
|
@@ -274,15 +274,15 @@ function we(t, a, n) {
|
|
|
274
274
|
$errors: m,
|
|
275
275
|
$invalid: i,
|
|
276
276
|
$anyDirty: l,
|
|
277
|
-
$error:
|
|
277
|
+
$error: v,
|
|
278
278
|
$pending: d,
|
|
279
279
|
$touch: $,
|
|
280
|
-
$reset:
|
|
280
|
+
$reset: f,
|
|
281
281
|
$silentErrors: u,
|
|
282
282
|
$commit: p
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function D(t) {
|
|
286
286
|
let {
|
|
287
287
|
validations: a,
|
|
288
288
|
state: n,
|
|
@@ -294,26 +294,26 @@ function S(t) {
|
|
|
294
294
|
instance: d,
|
|
295
295
|
externalResults: l
|
|
296
296
|
} = t;
|
|
297
|
-
const
|
|
297
|
+
const v = s ? `${s}.${e}` : e, {
|
|
298
298
|
rules: $,
|
|
299
299
|
nestedValidators: p,
|
|
300
|
-
config:
|
|
300
|
+
config: f,
|
|
301
301
|
validationGroups: r
|
|
302
|
-
} = ye(a), c = w(w({}, i),
|
|
302
|
+
} = ye(a), c = w(w({}, i), f), o = e ? h(() => {
|
|
303
303
|
const R = g(n);
|
|
304
304
|
return R ? g(R[e]) : void 0;
|
|
305
305
|
}) : n, y = w({}, g(l) || {}), F = h(() => {
|
|
306
306
|
const R = g(l);
|
|
307
307
|
return e ? R ? g(R[e]) : void 0 : R;
|
|
308
|
-
}),
|
|
308
|
+
}), G = Oe($, o, e, m, v, c, d, F, n), b = Ee(p, o, v, m, c, d, F), N = {};
|
|
309
309
|
r && Object.entries(r).forEach((R) => {
|
|
310
|
-
let [
|
|
311
|
-
|
|
310
|
+
let [C, E] = R;
|
|
311
|
+
N[C] = {
|
|
312
312
|
$invalid: T(E, b, "$invalid"),
|
|
313
313
|
$error: T(E, b, "$error"),
|
|
314
314
|
$pending: T(E, b, "$pending"),
|
|
315
|
-
$errors:
|
|
316
|
-
$silentErrors:
|
|
315
|
+
$errors: J(E, b, "$errors"),
|
|
316
|
+
$silentErrors: J(E, b, "$silentErrors")
|
|
317
317
|
};
|
|
318
318
|
});
|
|
319
319
|
const {
|
|
@@ -326,16 +326,16 @@ function S(t) {
|
|
|
326
326
|
$touch: I,
|
|
327
327
|
$reset: re,
|
|
328
328
|
$silentErrors: ae,
|
|
329
|
-
$commit:
|
|
330
|
-
} = we(
|
|
329
|
+
$commit: k
|
|
330
|
+
} = we(G, b, u), se = e ? h({
|
|
331
331
|
get: () => g(o),
|
|
332
332
|
set: (R) => {
|
|
333
333
|
V.value = !0;
|
|
334
|
-
const
|
|
335
|
-
E && (E[e] = y[e]), A(
|
|
334
|
+
const C = g(n), E = g(l);
|
|
335
|
+
E && (E[e] = y[e]), A(C[e]) ? C[e].value = R : C[e] = R;
|
|
336
336
|
}
|
|
337
337
|
}) : null;
|
|
338
|
-
e && c.$autoDirty &&
|
|
338
|
+
e && c.$autoDirty && P(o, () => {
|
|
339
339
|
V.value || I();
|
|
340
340
|
const R = g(l);
|
|
341
341
|
R && (R[e] = y[e]);
|
|
@@ -343,10 +343,10 @@ function S(t) {
|
|
|
343
343
|
flush: "sync"
|
|
344
344
|
});
|
|
345
345
|
async function le() {
|
|
346
|
-
return I(), c.$rewardEarly && (
|
|
346
|
+
return I(), c.$rewardEarly && (k(), await M()), await M(), new Promise((R) => {
|
|
347
347
|
if (!L.value) return R(!x.value);
|
|
348
|
-
const
|
|
349
|
-
R(!x.value),
|
|
348
|
+
const C = P(L, () => {
|
|
349
|
+
R(!x.value), C();
|
|
350
350
|
});
|
|
351
351
|
});
|
|
352
352
|
}
|
|
@@ -358,7 +358,7 @@ function S(t) {
|
|
|
358
358
|
delete l[R];
|
|
359
359
|
}) : Object.assign(l, y);
|
|
360
360
|
}
|
|
361
|
-
return
|
|
361
|
+
return S(w(w(w({}, G), {}, {
|
|
362
362
|
$model: se,
|
|
363
363
|
$dirty: V,
|
|
364
364
|
$error: ne,
|
|
@@ -368,14 +368,14 @@ function S(t) {
|
|
|
368
368
|
$pending: L,
|
|
369
369
|
$touch: I,
|
|
370
370
|
$reset: re,
|
|
371
|
-
$path:
|
|
371
|
+
$path: v || Re,
|
|
372
372
|
$silentErrors: ae,
|
|
373
373
|
$validate: le,
|
|
374
|
-
$commit:
|
|
374
|
+
$commit: k
|
|
375
375
|
}, u && {
|
|
376
376
|
$getResultsForChild: ue,
|
|
377
377
|
$clearExternalResults: oe,
|
|
378
|
-
$validationGroups:
|
|
378
|
+
$validationGroups: N
|
|
379
379
|
}), b));
|
|
380
380
|
}
|
|
381
381
|
class be {
|
|
@@ -409,30 +409,30 @@ class be {
|
|
|
409
409
|
const j = {
|
|
410
410
|
COLLECT_ALL: !0,
|
|
411
411
|
COLLECT_NONE: !1
|
|
412
|
-
}, K = Symbol("vuelidate#injectChildResults"),
|
|
413
|
-
function
|
|
412
|
+
}, K = Symbol("vuelidate#injectChildResults"), U = Symbol("vuelidate#removeChildResults");
|
|
413
|
+
function Ce(t) {
|
|
414
414
|
let {
|
|
415
415
|
$scope: a,
|
|
416
416
|
instance: n
|
|
417
417
|
} = t;
|
|
418
|
-
const e = {}, s = O([]), u = h(() => s.value.reduce((
|
|
419
|
-
function m(
|
|
418
|
+
const e = {}, s = O([]), u = h(() => s.value.reduce((v, $) => (v[$] = g(e[$]), v), {}));
|
|
419
|
+
function m(v, $) {
|
|
420
420
|
let {
|
|
421
421
|
$registerAs: p,
|
|
422
|
-
$scope:
|
|
422
|
+
$scope: f,
|
|
423
423
|
$stopPropagation: r
|
|
424
424
|
} = $;
|
|
425
|
-
r || a === j.COLLECT_NONE ||
|
|
425
|
+
r || a === j.COLLECT_NONE || f === j.COLLECT_NONE || a !== j.COLLECT_ALL && a !== f || (e[p] = v, s.value.push(p));
|
|
426
426
|
}
|
|
427
427
|
n.__vuelidateInjectInstances = [].concat(n.__vuelidateInjectInstances || [], m);
|
|
428
|
-
function i(
|
|
429
|
-
s.value = s.value.filter(($) => $ !==
|
|
428
|
+
function i(v) {
|
|
429
|
+
s.value = s.value.filter(($) => $ !== v), delete e[v];
|
|
430
430
|
}
|
|
431
431
|
n.__vuelidateRemoveInstances = [].concat(n.__vuelidateRemoveInstances || [], i);
|
|
432
|
-
const d =
|
|
433
|
-
|
|
434
|
-
const l =
|
|
435
|
-
return
|
|
432
|
+
const d = z(K, []);
|
|
433
|
+
B(K, n.__vuelidateInjectInstances);
|
|
434
|
+
const l = z(U, []);
|
|
435
|
+
return B(U, n.__vuelidateRemoveInstances), {
|
|
436
436
|
childResults: u,
|
|
437
437
|
sendValidationResultsToParent: d,
|
|
438
438
|
removeValidationResultsFromParent: l
|
|
@@ -457,26 +457,26 @@ function je(t, a) {
|
|
|
457
457
|
$externalResults: i,
|
|
458
458
|
currentVueInstance: d
|
|
459
459
|
} = e;
|
|
460
|
-
const l = d || ((n = ie()) === null || n === void 0 ? void 0 : n.proxy),
|
|
460
|
+
const l = d || ((n = ie()) === null || n === void 0 ? void 0 : n.proxy), v = l ? l.$options : {};
|
|
461
461
|
s || (q += 1, s = `_vuelidate_${q}`);
|
|
462
462
|
const $ = O({}), p = new be(), {
|
|
463
|
-
childResults:
|
|
463
|
+
childResults: f,
|
|
464
464
|
sendValidationResultsToParent: r,
|
|
465
465
|
removeValidationResultsFromParent: c
|
|
466
|
-
} = l ?
|
|
466
|
+
} = l ? Ce({
|
|
467
467
|
$scope: u,
|
|
468
468
|
instance: l
|
|
469
469
|
}) : {
|
|
470
470
|
childResults: O({})
|
|
471
471
|
};
|
|
472
|
-
if (!t &&
|
|
473
|
-
const o =
|
|
472
|
+
if (!t && v.validations) {
|
|
473
|
+
const o = v.validations;
|
|
474
474
|
a = O({}), ce(() => {
|
|
475
|
-
a.value = l,
|
|
476
|
-
$.value =
|
|
475
|
+
a.value = l, P(() => _(o) ? o.call(a.value, new Z(a.value)) : o, (y) => {
|
|
476
|
+
$.value = D({
|
|
477
477
|
validations: y,
|
|
478
478
|
state: a,
|
|
479
|
-
childResults:
|
|
479
|
+
childResults: f,
|
|
480
480
|
resultsCache: p,
|
|
481
481
|
globalConfig: e,
|
|
482
482
|
instance: l,
|
|
@@ -485,14 +485,14 @@ function je(t, a) {
|
|
|
485
485
|
}, {
|
|
486
486
|
immediate: !0
|
|
487
487
|
});
|
|
488
|
-
}), e =
|
|
488
|
+
}), e = v.validationsConfig || e;
|
|
489
489
|
} else {
|
|
490
|
-
const o = A(t) || ge(t) ? t :
|
|
491
|
-
|
|
492
|
-
$.value =
|
|
490
|
+
const o = A(t) || ge(t) ? t : S(t || {});
|
|
491
|
+
P(o, (y) => {
|
|
492
|
+
$.value = D({
|
|
493
493
|
validations: y,
|
|
494
494
|
state: a,
|
|
495
|
-
childResults:
|
|
495
|
+
childResults: f,
|
|
496
496
|
resultsCache: p,
|
|
497
497
|
globalConfig: e,
|
|
498
498
|
instance: l ?? {},
|
|
@@ -506,7 +506,7 @@ function je(t, a) {
|
|
|
506
506
|
$registerAs: s,
|
|
507
507
|
$scope: u,
|
|
508
508
|
$stopPropagation: m
|
|
509
|
-
})), de(() => c.forEach((o) => o(s)))), h(() => w(w({}, g($.value)),
|
|
509
|
+
})), de(() => c.forEach((o) => o(s)))), h(() => w(w({}, g($.value)), f.value));
|
|
510
510
|
}
|
|
511
511
|
export {
|
|
512
512
|
je as u
|