@cling-se/widget 0.17.3 → 0.18.1
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 +24 -0
- package/dist/AddClientCallout-CCt78VvH.js +101 -0
- package/dist/AnswerModal-B4LwVv2N.js +3371 -0
- package/dist/AttachmentItem-DnvYffKP.js +171 -0
- package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
- package/dist/BlockMedia-Amo_kdHo.js +103 -0
- package/dist/CCallout-Gd06ds6O.js +104 -0
- package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
- package/dist/CDropdownItem-BUNVCpSR.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
- package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
- package/dist/CPhoneInput-B6iyhsOG.js +207 -0
- package/dist/CPriceInput-BLQaNu1d.js +142 -0
- package/dist/CSelect-BVO9iO9L.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
- package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
- package/dist/ClientModal-B9cbuEiC.js +1188 -0
- package/dist/ColorPicker-G2kkxL7_.js +1408 -0
- package/dist/CompanyModal-por9AG4P.js +250 -0
- package/dist/ContentWrapper-CQtaGA2u.js +265 -0
- package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
- package/dist/DocAnswer-BrKctwrY.js +33 -0
- package/dist/DocDetails-B_LWVHGt.js +452 -0
- package/dist/DocForm-D6T7NmfO.js +6772 -0
- package/dist/DocFormSend-COYPrhl7.js +171 -0
- package/dist/DocLinks-B0LjxXIk.js +36 -0
- package/dist/DocModalBase-DObZHuYr.js +29 -0
- package/dist/DocPrint-CkDq78fB.js +399 -0
- package/dist/DocReceipt-CYBPyePC.js +341 -0
- package/dist/DocSendReminder-Dau6s43e.js +181 -0
- package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
- package/dist/DocTimeline-ChBDPOfd.js +537 -0
- package/dist/DocumentClient-MLXzzXLb.js +90 -0
- package/dist/DocumentLayout-BMHOt380.js +1434 -0
- package/dist/DocumentLogotype-Clj3fopX.js +162 -0
- package/dist/DocumentVoided-B5_MSBbC.js +33 -0
- package/dist/EmbedInput-CzkOa02p.js +156 -0
- package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
- package/dist/ErrorCallout-CJn6NCse.js +34 -0
- package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
- package/dist/Flag-C4_G5IY1.js +41 -0
- package/dist/HeaderSettings-DWN0TjVD.js +720 -0
- package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
- package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
- package/dist/Index-B06eCuBA.js +76 -0
- package/dist/Index-B8Zj0-MX.js +87 -0
- package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
- package/dist/Index-BCHLxp7B.js +21 -0
- package/dist/Index-BDAp1CwZ.js +363 -0
- package/dist/Index-BFbcjFo4.js +16 -0
- package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
- package/dist/Index-BOx_9tTM.js +136 -0
- package/dist/Index-BgZNiD7A.js +47 -0
- package/dist/Index-Bt97lEsI.js +228 -0
- package/dist/Index-C9aBeBBk.js +70 -0
- package/dist/Index-CE3pWPzp.js +49 -0
- package/dist/Index-CMdPSsp4.js +38 -0
- package/dist/Index-CNhBDG2e.js +126 -0
- package/dist/Index-CdsOdgG2.js +28 -0
- package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
- package/dist/Index-CpxzwwQS.js +52 -0
- package/dist/Index-CxTwWRD9.js +93 -0
- package/dist/Index-D9WFWlE6.js +140 -0
- package/dist/Index-D9bulLeI.js +39 -0
- package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
- package/dist/Index-DR-sGE3Y.js +25 -0
- package/dist/Index-DRoOW5Pn.js +163 -0
- package/dist/Index-DTn47-hP.js +74 -0
- package/dist/Index-DeGDlj0B.js +68 -0
- package/dist/Index-DhYYK4bK.js +28 -0
- package/dist/Index-Dssdb-0Z.js +629 -0
- package/dist/Index-OcBnU480.js +200 -0
- package/dist/Index-Qh_8JqAv.js +3477 -0
- package/dist/Index-W10PQb8i.js +102 -0
- package/dist/Index-lbWFEELM.js +4 -0
- package/dist/Index-qFAg7VVU.js +1098 -0
- package/dist/Index-rDndJKo1.js +160 -0
- package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
- package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
- package/dist/InputToggleRow-DJarYsVL.js +99 -0
- package/dist/ManualPopover-BMrkEHtV.js +65 -0
- package/dist/MediaWrapper-BYdVpmov.js +18 -0
- package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
- package/dist/PackageGroup-q7_oBOqw.js +1060 -0
- package/dist/PdfTerms-DBEClYQ5.js +34 -0
- package/dist/PdfViewer-C_y5sqXB.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
- package/dist/PriceHeader-BSwv3mzc.js +488 -0
- package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
- package/dist/SendForm-DfmBbhp9.js +6689 -0
- package/dist/Setup-BC1feKr_.js +47 -0
- package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
- package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
- package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
- package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
- package/dist/UploadModal-1OWPRxA5.js +134 -0
- package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
- package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
- package/dist/VideoSelectModal-CSv67eA8.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
- package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-r-OZchfV.js} +1 -1
- package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
- package/dist/helpers-ChwW54Ex.js +46 -0
- package/dist/index-BMZle8Ew.js +513 -0
- package/dist/index-Bf-fiKJf.js +268 -0
- package/dist/index-Bg4JRi5S.js +125 -0
- package/dist/index-C7chK2UD.js +3525 -0
- package/dist/index-CR52qIBO.js +149 -0
- package/dist/index-D1x9O_nJ.js +188 -0
- package/dist/index-YFcPqc9m.js +508 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +303 -1486
- package/dist/main-DI0diChK.js +57570 -0
- package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
- package/dist/omit-DpjD7Dj9.js +56 -0
- package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
- package/dist/splitpanes-BypKTSRL.js +342 -0
- package/dist/template-Dzexob5I.js +1572 -0
- package/dist/tippy.esm-0UMN6kWf.js +1994 -0
- package/dist/useTermsModal-DzH_PDFP.js +87 -0
- package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
- package/dist/validation-B-omH73u.js +40 -0
- package/dist/widget.css +1 -0
- package/package.json +20 -25
- package/dist/AddClientCallout-Br6IhwGH.js +0 -48
- package/dist/AnswerModal-CsWltR6j.js +0 -3879
- package/dist/AttachmentItem-BG7FuSCD.js +0 -85
- package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
- package/dist/BaseUpload-BfEurAAV.js +0 -1977
- package/dist/BlockMedia-Bo3OfNSU.js +0 -76
- package/dist/CCallout-CAjM8-1X.js +0 -58
- package/dist/CDropdownItem-CN7gSfgY.js +0 -640
- package/dist/CFormField-Clvcf2Jh.js +0 -240
- package/dist/CPhoneInput-CEHXh5jM.js +0 -138
- package/dist/CPriceInput-D2c07SXp.js +0 -116
- package/dist/CSelect-Cz2IPzxS.js +0 -91
- package/dist/CSkeleton-AsnvnD-m.js +0 -55
- package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
- package/dist/ClientModal-CgUhWZ5L.js +0 -666
- package/dist/ColorPicker-IFGHqH-u.js +0 -2879
- package/dist/CompanyModal-TLSBFo3U.js +0 -147
- package/dist/ContentWrapper-HClxKPuT.js +0 -190
- package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
- package/dist/DocAnswer-CTV_Bpt7.js +0 -36
- package/dist/DocDetails-CQe5htXj.js +0 -263
- package/dist/DocForm-6Efv5_oz.js +0 -5017
- package/dist/DocFormSend-DbXcklxU.js +0 -146
- package/dist/DocLinks-BO545zbL.js +0 -38
- package/dist/DocModalBase-DXHNJ-6i.js +0 -28
- package/dist/DocPrint-Bf2U4FQN.js +0 -240
- package/dist/DocReceipt-CWXvC7bY.js +0 -217
- package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
- package/dist/DocTimeline-DGVOk8-2.js +0 -485
- package/dist/DocumentClient-Das9BaJ7.js +0 -136
- package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
- package/dist/DocumentLogotype-DLncJJAB.js +0 -92
- package/dist/DocumentVoided-CcI9lX27.js +0 -25
- package/dist/EmbedInput-BPdy0lGS.js +0 -117
- package/dist/EmbedSettings-L2iwYLQK.js +0 -74
- package/dist/ErrorCallout-Ds_tBT02.js +0 -27
- package/dist/FilePreviewModal-hxUu330p.js +0 -81
- package/dist/Flag-1-HcT5Dz.js +0 -46
- package/dist/HeaderSettings-C27fMugK.js +0 -440
- package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
- package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
- package/dist/Index-5BOWxcPG.js +0 -26
- package/dist/Index-B1Odktov.js +0 -754
- package/dist/Index-B3d5BjEn.js +0 -25
- package/dist/Index-B3sSU_4X.js +0 -54
- package/dist/Index-B5Dqsh3K.js +0 -150
- package/dist/Index-B6aO1c_w.js +0 -62
- package/dist/Index-BGfICxJQ.js +0 -643
- package/dist/Index-BHopC0hv.js +0 -24
- package/dist/Index-BJXcSmp_.js +0 -55
- package/dist/Index-BQe6QjQZ.js +0 -25
- package/dist/Index-BmXx_x6t.js +0 -77
- package/dist/Index-C692qMTG.js +0 -294
- package/dist/Index-CEvbw-3i.js +0 -41
- package/dist/Index-CYSULnpn.js +0 -32
- package/dist/Index-CdtYzwAM.js +0 -107
- package/dist/Index-CetF2FW0.js +0 -230
- package/dist/Index-Cv6XLM20.js +0 -73
- package/dist/Index-Cwy8ff76.js +0 -154
- package/dist/Index-D34z4UEY.js +0 -84
- package/dist/Index-DNCei-lp.js +0 -56
- package/dist/Index-DUbxgIYB.js +0 -2445
- package/dist/Index-DVwn_LLf.js +0 -28
- package/dist/Index-Dla-mesV.js +0 -146
- package/dist/Index-KtUkOPI2.js +0 -58
- package/dist/Index-LjnOTVJk.js +0 -66
- package/dist/Index-ky1SRtfY.js +0 -94
- package/dist/Index-mceZW2NX.js +0 -41
- package/dist/Index-tD3hZjh8.js +0 -144
- package/dist/Index-vM5kDtC2.js +0 -33
- package/dist/InputToggleRow-BmDuSbE2.js +0 -57
- package/dist/ManualPopover-CQfjPvFe.js +0 -60
- package/dist/MediaWrapper-DDzcjR6V.js +0 -23
- package/dist/PackageGroup-mAGXfZDv.js +0 -704
- package/dist/PdfTerms-BH_Nwf2h.js +0 -31
- package/dist/PdfViewer-mBLxI8bA.js +0 -383
- package/dist/PlainHtml-B7gUNNZd.js +0 -27
- package/dist/PriceHeader-DClYMPcq.js +0 -338
- package/dist/SendForm-Cxv_m8Rq.js +0 -1023
- package/dist/Setup-B90VDZTG.js +0 -50
- package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
- package/dist/ToggleBinding-DOeTcWzi.js +0 -42
- package/dist/UploadModal-DOPLVEpV.js +0 -95
- package/dist/VideoPlayerInput-1zG06elO.js +0 -97
- package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
- package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
- package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
- package/dist/debounce-Ch1d3526.js +0 -84
- package/dist/formValidationMixin-D_MzsHsR.js +0 -49
- package/dist/index-BNdbPq4J.js +0 -492
- package/dist/index-BXzugeJ6.js +0 -81
- package/dist/index-C5wcxrC6.js +0 -167
- package/dist/index-CgDOs7t4.js +0 -2700
- package/dist/index-Cj-_2coz.js +0 -351
- package/dist/index-DpqV5y0K.js +0 -102
- package/dist/main-BL_yzf2r.js +0 -57357
- package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
- package/dist/omit-Dfe_H1Ft.js +0 -31
- package/dist/simplebar.min-CRlLD1Oz.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-BX_w77tW.js +0 -18
- package/dist/tippy.esm-n4arfVzA.js +0 -1805
- package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -8,8 +8,7 @@ const l = ({
|
|
|
8
8
|
t += `${a} ${h}%`, i !== e.length - 1 && (t += ",");
|
|
9
9
|
}), t += ")"), t;
|
|
10
10
|
}, s = (n) => {
|
|
11
|
-
if (!n)
|
|
12
|
-
return "";
|
|
11
|
+
if (!n) return "";
|
|
13
12
|
const r = Math.round(n.h * 100) / 100, e = Math.round(n.s * 100 * 100) / 100, t = Math.round(n.l * 100 * 100) / 100, a = Math.round(n.a * 100 * 100) / 100 / 100;
|
|
14
13
|
return `hsla(${r},${e}%,${t}%,${a})`;
|
|
15
14
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
const l = {}, f = {};
|
|
2
2
|
function p(t) {
|
|
3
|
-
if (f[t])
|
|
4
|
-
|
|
5
|
-
if (l[t])
|
|
6
|
-
return l[t];
|
|
3
|
+
if (f[t]) return;
|
|
4
|
+
if (l[t]) return l[t];
|
|
7
5
|
const o = new Promise((e, s) => {
|
|
8
6
|
const n = document.createElement("script");
|
|
9
7
|
t.endsWith(".mjs") && (n.type = "module");
|
|
@@ -41,8 +39,7 @@ const u = (t) => {
|
|
|
41
39
|
};
|
|
42
40
|
function h(t, o) {
|
|
43
41
|
let e = t;
|
|
44
|
-
if (typeof e == "string" && (e = document.querySelector(e)), !u(e))
|
|
45
|
-
return;
|
|
42
|
+
if (typeof e == "string" && (e = document.querySelector(e)), !u(e)) return;
|
|
46
43
|
const n = {
|
|
47
44
|
offset: 0,
|
|
48
45
|
behavior: "smooth",
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { aI as d, aJ as c, aK as p, aL as f, F as m } from "./main-DI0diChK.js";
|
|
2
|
+
var i = { exports: {} }, s;
|
|
3
|
+
function l() {
|
|
4
|
+
return s || (s = 1, function(e, t) {
|
|
5
|
+
Object.defineProperty(t, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), t.default = o;
|
|
8
|
+
function o() {
|
|
9
|
+
return !!(typeof window < "u" && ("ontouchstart" in window || window.DocumentTouch && typeof document < "u" && document instanceof window.DocumentTouch)) || !!(typeof navigator < "u" && (navigator.maxTouchPoints || navigator.msMaxTouchPoints));
|
|
10
|
+
}
|
|
11
|
+
e.exports = t.default;
|
|
12
|
+
}(i, i.exports)), i.exports;
|
|
13
|
+
}
|
|
14
|
+
var h = l();
|
|
15
|
+
const v = /* @__PURE__ */ d(h), w = v();
|
|
16
|
+
function x(e, t) {
|
|
17
|
+
return t.split(".").reduce((a, n) => a ? a[n] : null, e);
|
|
18
|
+
}
|
|
19
|
+
function g(e) {
|
|
20
|
+
typeof e.remove < "u" ? e.remove() : typeof e.parentNode < "u" && e.parentNode !== null && e.parentNode.removeChild(e);
|
|
21
|
+
}
|
|
22
|
+
function T(e) {
|
|
23
|
+
var r;
|
|
24
|
+
const t = (r = e.getRootNode) == null ? void 0 : r.call(e), a = (t == null ? void 0 : t.toString()) === "[object ShadowRoot]" ? t : document.body, n = document.createElement("div");
|
|
25
|
+
n.style.position = "absolute", n.style.left = "0px", n.style.top = "0px";
|
|
26
|
+
const u = document.createElement("div");
|
|
27
|
+
return n.appendChild(u), u.appendChild(e), a.appendChild(n), n;
|
|
28
|
+
}
|
|
29
|
+
function b(e, t, o) {
|
|
30
|
+
return Math.max(t, Math.min(o, e));
|
|
31
|
+
}
|
|
32
|
+
function C(e) {
|
|
33
|
+
return e.type !== c && e.type !== p && e.type !== f;
|
|
34
|
+
}
|
|
35
|
+
function D(e) {
|
|
36
|
+
return e.type === m;
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
C as a,
|
|
40
|
+
b,
|
|
41
|
+
T as c,
|
|
42
|
+
w as d,
|
|
43
|
+
x as g,
|
|
44
|
+
D as i,
|
|
45
|
+
g as r
|
|
46
|
+
};
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
import { H as ie, I as O, J as ce, K as C, L as A, r as D, M as de, i as h, N as $e, O as fe, j as g, P as M, x as z, Q as B } from "./main-DI0diChK.js";
|
|
2
|
+
function H(t, a) {
|
|
3
|
+
var n = Object.keys(t);
|
|
4
|
+
if (Object.getOwnPropertySymbols) {
|
|
5
|
+
var e = Object.getOwnPropertySymbols(t);
|
|
6
|
+
a && (e = e.filter(function(s) {
|
|
7
|
+
return Object.getOwnPropertyDescriptor(t, s).enumerable;
|
|
8
|
+
})), n.push.apply(n, e);
|
|
9
|
+
}
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
function w(t) {
|
|
13
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
14
|
+
var n = arguments[a] != null ? arguments[a] : {};
|
|
15
|
+
a % 2 ? H(Object(n), !0).forEach(function(e) {
|
|
16
|
+
ve(t, e, n[e]);
|
|
17
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : H(Object(n)).forEach(function(e) {
|
|
18
|
+
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
}
|
|
23
|
+
function ve(t, a, n) {
|
|
24
|
+
return a in t ? Object.defineProperty(t, a, {
|
|
25
|
+
value: n,
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
configurable: !0,
|
|
28
|
+
writable: !0
|
|
29
|
+
}) : t[a] = n, t;
|
|
30
|
+
}
|
|
31
|
+
function W(t) {
|
|
32
|
+
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
33
|
+
return Object.keys(t).reduce((n, e) => (a.includes(e) || (n[e] = g(t[e])), n), {});
|
|
34
|
+
}
|
|
35
|
+
function _(t) {
|
|
36
|
+
return typeof t == "function";
|
|
37
|
+
}
|
|
38
|
+
function ge(t) {
|
|
39
|
+
return $e(t) || fe(t);
|
|
40
|
+
}
|
|
41
|
+
function q(t, a, n) {
|
|
42
|
+
let e = t;
|
|
43
|
+
const s = a.split(".");
|
|
44
|
+
for (let u = 0; u < s.length; u++) {
|
|
45
|
+
if (!e[s[u]]) return n;
|
|
46
|
+
e = e[s[u]];
|
|
47
|
+
}
|
|
48
|
+
return e;
|
|
49
|
+
}
|
|
50
|
+
function T(t, a, n) {
|
|
51
|
+
return h(() => t.some((e) => q(a, e, {
|
|
52
|
+
[n]: !1
|
|
53
|
+
})[n]));
|
|
54
|
+
}
|
|
55
|
+
function J(t, a, n) {
|
|
56
|
+
return h(() => t.reduce((e, s) => {
|
|
57
|
+
const u = q(a, s, {
|
|
58
|
+
[n]: !1
|
|
59
|
+
})[n] || [];
|
|
60
|
+
return e.concat(u);
|
|
61
|
+
}, []));
|
|
62
|
+
}
|
|
63
|
+
function X(t, a, n, e) {
|
|
64
|
+
return t.call(e, g(a), g(n), e);
|
|
65
|
+
}
|
|
66
|
+
function Y(t) {
|
|
67
|
+
return t.$valid !== void 0 ? !t.$valid : !t;
|
|
68
|
+
}
|
|
69
|
+
function me(t, a, n, e, s, u, m) {
|
|
70
|
+
let {
|
|
71
|
+
$lazy: i,
|
|
72
|
+
$rewardEarly: d
|
|
73
|
+
} = s, l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : [], f = arguments.length > 8 ? arguments[8] : void 0, $ = arguments.length > 9 ? arguments[9] : void 0, p = arguments.length > 10 ? arguments[10] : void 0;
|
|
74
|
+
const v = O(!!e.value), r = O(0);
|
|
75
|
+
n.value = !1;
|
|
76
|
+
const c = C([a, e].concat(l, p), () => {
|
|
77
|
+
if (i && !e.value || d && !$.value && !n.value)
|
|
78
|
+
return;
|
|
79
|
+
let o;
|
|
80
|
+
try {
|
|
81
|
+
o = X(t, a, f, m);
|
|
82
|
+
} catch (y) {
|
|
83
|
+
o = Promise.reject(y);
|
|
84
|
+
}
|
|
85
|
+
r.value++, n.value = !!r.value, v.value = !1, Promise.resolve(o).then((y) => {
|
|
86
|
+
r.value--, n.value = !!r.value, u.value = y, v.value = Y(y);
|
|
87
|
+
}).catch((y) => {
|
|
88
|
+
r.value--, n.value = !!r.value, u.value = y, v.value = !0;
|
|
89
|
+
});
|
|
90
|
+
}, {
|
|
91
|
+
immediate: !0,
|
|
92
|
+
deep: typeof a == "object"
|
|
93
|
+
});
|
|
94
|
+
return {
|
|
95
|
+
$invalid: v,
|
|
96
|
+
$unwatch: c
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function he(t, a, n, e, s, u, m, i) {
|
|
100
|
+
let {
|
|
101
|
+
$lazy: d,
|
|
102
|
+
$rewardEarly: l
|
|
103
|
+
} = e;
|
|
104
|
+
const f = () => ({}), $ = h(() => {
|
|
105
|
+
if (d && !n.value || l && !i.value)
|
|
106
|
+
return !1;
|
|
107
|
+
let p = !0;
|
|
108
|
+
try {
|
|
109
|
+
const v = X(t, a, m, u);
|
|
110
|
+
s.value = v, p = Y(v);
|
|
111
|
+
} catch (v) {
|
|
112
|
+
s.value = v;
|
|
113
|
+
}
|
|
114
|
+
return p;
|
|
115
|
+
});
|
|
116
|
+
return {
|
|
117
|
+
$unwatch: f,
|
|
118
|
+
$invalid: $
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function pe(t, a, n, e, s, u, m, i, d, l, f) {
|
|
122
|
+
const $ = O(!1), p = t.$params || {}, v = O(null);
|
|
123
|
+
let r, c;
|
|
124
|
+
t.$async ? {
|
|
125
|
+
$invalid: r,
|
|
126
|
+
$unwatch: c
|
|
127
|
+
} = me(t.$validator, a, $, n, e, v, s, t.$watchTargets, d, l, f) : {
|
|
128
|
+
$invalid: r,
|
|
129
|
+
$unwatch: c
|
|
130
|
+
} = he(t.$validator, a, n, e, v, s, d, l);
|
|
131
|
+
const o = t.$message;
|
|
132
|
+
return {
|
|
133
|
+
$message: _(o) ? h(() => o(W({
|
|
134
|
+
$pending: $,
|
|
135
|
+
$invalid: r,
|
|
136
|
+
$params: W(p),
|
|
137
|
+
$model: a,
|
|
138
|
+
$response: v,
|
|
139
|
+
$validator: u,
|
|
140
|
+
$propertyPath: i,
|
|
141
|
+
$property: m
|
|
142
|
+
}))) : o || "",
|
|
143
|
+
$params: p,
|
|
144
|
+
$pending: $,
|
|
145
|
+
$invalid: r,
|
|
146
|
+
$response: v,
|
|
147
|
+
$unwatch: c
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function ye() {
|
|
151
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
152
|
+
const a = g(t), n = Object.keys(a), e = {}, s = {}, u = {};
|
|
153
|
+
let m = null;
|
|
154
|
+
return n.forEach((i) => {
|
|
155
|
+
const d = a[i];
|
|
156
|
+
switch (!0) {
|
|
157
|
+
case _(d.$validator):
|
|
158
|
+
e[i] = d;
|
|
159
|
+
break;
|
|
160
|
+
case _(d):
|
|
161
|
+
e[i] = {
|
|
162
|
+
$validator: d
|
|
163
|
+
};
|
|
164
|
+
break;
|
|
165
|
+
case i === "$validationGroups":
|
|
166
|
+
m = d;
|
|
167
|
+
break;
|
|
168
|
+
case i.startsWith("$"):
|
|
169
|
+
u[i] = d;
|
|
170
|
+
break;
|
|
171
|
+
default:
|
|
172
|
+
s[i] = d;
|
|
173
|
+
}
|
|
174
|
+
}), {
|
|
175
|
+
rules: e,
|
|
176
|
+
nestedValidators: s,
|
|
177
|
+
config: u,
|
|
178
|
+
validationGroups: m
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
const Re = "__root";
|
|
182
|
+
function Oe(t, a, n, e, s, u, m, i, d) {
|
|
183
|
+
const l = Object.keys(t), f = e.get(s, t), $ = O(!1), p = O(!1), v = O(0);
|
|
184
|
+
if (f) {
|
|
185
|
+
if (!f.$partial) return f;
|
|
186
|
+
f.$unwatch(), $.value = f.$dirty.value;
|
|
187
|
+
}
|
|
188
|
+
const r = {
|
|
189
|
+
$dirty: $,
|
|
190
|
+
$path: s,
|
|
191
|
+
$touch: () => {
|
|
192
|
+
$.value || ($.value = !0);
|
|
193
|
+
},
|
|
194
|
+
$reset: () => {
|
|
195
|
+
$.value && ($.value = !1);
|
|
196
|
+
},
|
|
197
|
+
$commit: () => {
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
return l.length ? (l.forEach((c) => {
|
|
201
|
+
r[c] = pe(t[c], a, r.$dirty, u, m, c, n, s, d, p, v);
|
|
202
|
+
}), r.$externalResults = h(() => i.value ? [].concat(i.value).map((c, o) => ({
|
|
203
|
+
$propertyPath: s,
|
|
204
|
+
$property: n,
|
|
205
|
+
$validator: "$externalResults",
|
|
206
|
+
$uid: `${s}-externalResult-${o}`,
|
|
207
|
+
$message: c,
|
|
208
|
+
$params: {},
|
|
209
|
+
$response: null,
|
|
210
|
+
$pending: !1
|
|
211
|
+
})) : []), r.$invalid = h(() => {
|
|
212
|
+
const c = l.some((o) => g(r[o].$invalid));
|
|
213
|
+
return p.value = c, !!r.$externalResults.value.length || c;
|
|
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
|
+
const o = r[c];
|
|
216
|
+
return D({
|
|
217
|
+
$propertyPath: s,
|
|
218
|
+
$property: n,
|
|
219
|
+
$validator: c,
|
|
220
|
+
$uid: `${s}-${c}`,
|
|
221
|
+
$message: o.$message,
|
|
222
|
+
$params: o.$params,
|
|
223
|
+
$response: o.$response,
|
|
224
|
+
$pending: o.$pending
|
|
225
|
+
});
|
|
226
|
+
}).concat(r.$externalResults.value)), r.$errors = h(() => r.$dirty.value ? r.$silentErrors.value : []), r.$unwatch = () => l.forEach((c) => {
|
|
227
|
+
r[c].$unwatch();
|
|
228
|
+
}), r.$commit = () => {
|
|
229
|
+
p.value = !0, v.value = Date.now();
|
|
230
|
+
}, e.set(s, t, r), r) : (f && e.set(s, t, r), r);
|
|
231
|
+
}
|
|
232
|
+
function Ee(t, a, n, e, s, u, m) {
|
|
233
|
+
const i = Object.keys(t);
|
|
234
|
+
return i.length ? i.reduce((d, l) => (d[l] = S({
|
|
235
|
+
validations: t[l],
|
|
236
|
+
state: a,
|
|
237
|
+
key: l,
|
|
238
|
+
parentKey: n,
|
|
239
|
+
resultsCache: e,
|
|
240
|
+
globalConfig: s,
|
|
241
|
+
instance: u,
|
|
242
|
+
externalResults: m
|
|
243
|
+
}), d), {}) : {};
|
|
244
|
+
}
|
|
245
|
+
function we(t, a, n) {
|
|
246
|
+
const e = h(() => [a, n].filter((r) => r).reduce((r, c) => r.concat(Object.values(g(c))), [])), s = h({
|
|
247
|
+
get() {
|
|
248
|
+
return t.$dirty.value || (e.value.length ? e.value.every((r) => r.$dirty) : !1);
|
|
249
|
+
},
|
|
250
|
+
set(r) {
|
|
251
|
+
t.$dirty.value = r;
|
|
252
|
+
}
|
|
253
|
+
}), u = h(() => {
|
|
254
|
+
const r = g(t.$silentErrors) || [], c = e.value.filter((o) => (g(o).$silentErrors || []).length).reduce((o, y) => o.concat(...y.$silentErrors), []);
|
|
255
|
+
return r.concat(c);
|
|
256
|
+
}), m = h(() => {
|
|
257
|
+
const r = g(t.$errors) || [], c = e.value.filter((o) => (g(o).$errors || []).length).reduce((o, y) => o.concat(...y.$errors), []);
|
|
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), f = h(() => s.value ? d.value || i.value : !1), $ = () => {
|
|
260
|
+
t.$touch(), e.value.forEach((r) => {
|
|
261
|
+
r.$touch();
|
|
262
|
+
});
|
|
263
|
+
}, p = () => {
|
|
264
|
+
t.$commit(), e.value.forEach((r) => {
|
|
265
|
+
r.$commit();
|
|
266
|
+
});
|
|
267
|
+
}, v = () => {
|
|
268
|
+
t.$reset(), e.value.forEach((r) => {
|
|
269
|
+
r.$reset();
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
return e.value.length && e.value.every((r) => r.$dirty) && $(), {
|
|
273
|
+
$dirty: s,
|
|
274
|
+
$errors: m,
|
|
275
|
+
$invalid: i,
|
|
276
|
+
$anyDirty: l,
|
|
277
|
+
$error: f,
|
|
278
|
+
$pending: d,
|
|
279
|
+
$touch: $,
|
|
280
|
+
$reset: v,
|
|
281
|
+
$silentErrors: u,
|
|
282
|
+
$commit: p
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
function S(t) {
|
|
286
|
+
let {
|
|
287
|
+
validations: a,
|
|
288
|
+
state: n,
|
|
289
|
+
key: e,
|
|
290
|
+
parentKey: s,
|
|
291
|
+
childResults: u,
|
|
292
|
+
resultsCache: m,
|
|
293
|
+
globalConfig: i = {},
|
|
294
|
+
instance: d,
|
|
295
|
+
externalResults: l
|
|
296
|
+
} = t;
|
|
297
|
+
const f = s ? `${s}.${e}` : e, {
|
|
298
|
+
rules: $,
|
|
299
|
+
nestedValidators: p,
|
|
300
|
+
config: v,
|
|
301
|
+
validationGroups: r
|
|
302
|
+
} = ye(a), c = w(w({}, i), v), o = e ? h(() => {
|
|
303
|
+
const R = g(n);
|
|
304
|
+
return R ? g(R[e]) : void 0;
|
|
305
|
+
}) : n, y = w({}, g(l) || {}), F = h(() => {
|
|
306
|
+
const R = g(l);
|
|
307
|
+
return e ? R ? g(R[e]) : void 0 : R;
|
|
308
|
+
}), N = Oe($, o, e, m, f, c, d, F, n), b = Ee(p, o, f, m, c, d, F), k = {};
|
|
309
|
+
r && Object.entries(r).forEach((R) => {
|
|
310
|
+
let [P, E] = R;
|
|
311
|
+
k[P] = {
|
|
312
|
+
$invalid: T(E, b, "$invalid"),
|
|
313
|
+
$error: T(E, b, "$error"),
|
|
314
|
+
$pending: T(E, b, "$pending"),
|
|
315
|
+
$errors: J(E, b, "$errors"),
|
|
316
|
+
$silentErrors: J(E, b, "$silentErrors")
|
|
317
|
+
};
|
|
318
|
+
});
|
|
319
|
+
const {
|
|
320
|
+
$dirty: V,
|
|
321
|
+
$errors: ee,
|
|
322
|
+
$invalid: x,
|
|
323
|
+
$anyDirty: te,
|
|
324
|
+
$error: ne,
|
|
325
|
+
$pending: L,
|
|
326
|
+
$touch: I,
|
|
327
|
+
$reset: re,
|
|
328
|
+
$silentErrors: ae,
|
|
329
|
+
$commit: G
|
|
330
|
+
} = we(N, b, u), se = e ? h({
|
|
331
|
+
get: () => g(o),
|
|
332
|
+
set: (R) => {
|
|
333
|
+
V.value = !0;
|
|
334
|
+
const P = g(n), E = g(l);
|
|
335
|
+
E && (E[e] = y[e]), A(P[e]) ? P[e].value = R : P[e] = R;
|
|
336
|
+
}
|
|
337
|
+
}) : null;
|
|
338
|
+
e && c.$autoDirty && C(o, () => {
|
|
339
|
+
V.value || I();
|
|
340
|
+
const R = g(l);
|
|
341
|
+
R && (R[e] = y[e]);
|
|
342
|
+
}, {
|
|
343
|
+
flush: "sync"
|
|
344
|
+
});
|
|
345
|
+
async function le() {
|
|
346
|
+
return I(), c.$rewardEarly && (G(), await B()), await B(), new Promise((R) => {
|
|
347
|
+
if (!L.value) return R(!x.value);
|
|
348
|
+
const P = C(L, () => {
|
|
349
|
+
R(!x.value), P();
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
function ue(R) {
|
|
354
|
+
return (u.value || {})[R];
|
|
355
|
+
}
|
|
356
|
+
function oe() {
|
|
357
|
+
A(l) ? l.value = y : Object.keys(y).length === 0 ? Object.keys(l).forEach((R) => {
|
|
358
|
+
delete l[R];
|
|
359
|
+
}) : Object.assign(l, y);
|
|
360
|
+
}
|
|
361
|
+
return D(w(w(w({}, N), {}, {
|
|
362
|
+
$model: se,
|
|
363
|
+
$dirty: V,
|
|
364
|
+
$error: ne,
|
|
365
|
+
$errors: ee,
|
|
366
|
+
$invalid: x,
|
|
367
|
+
$anyDirty: te,
|
|
368
|
+
$pending: L,
|
|
369
|
+
$touch: I,
|
|
370
|
+
$reset: re,
|
|
371
|
+
$path: f || Re,
|
|
372
|
+
$silentErrors: ae,
|
|
373
|
+
$validate: le,
|
|
374
|
+
$commit: G
|
|
375
|
+
}, u && {
|
|
376
|
+
$getResultsForChild: ue,
|
|
377
|
+
$clearExternalResults: oe,
|
|
378
|
+
$validationGroups: k
|
|
379
|
+
}), b));
|
|
380
|
+
}
|
|
381
|
+
class be {
|
|
382
|
+
constructor() {
|
|
383
|
+
this.storage = /* @__PURE__ */ new Map();
|
|
384
|
+
}
|
|
385
|
+
set(a, n, e) {
|
|
386
|
+
this.storage.set(a, {
|
|
387
|
+
rules: n,
|
|
388
|
+
result: e
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
checkRulesValidity(a, n, e) {
|
|
392
|
+
const s = Object.keys(e), u = Object.keys(n);
|
|
393
|
+
return u.length !== s.length || !u.every((i) => s.includes(i)) ? !1 : u.every((i) => n[i].$params ? Object.keys(n[i].$params).every((d) => g(e[i].$params[d]) === g(n[i].$params[d])) : !0);
|
|
394
|
+
}
|
|
395
|
+
get(a, n) {
|
|
396
|
+
const e = this.storage.get(a);
|
|
397
|
+
if (!e) return;
|
|
398
|
+
const {
|
|
399
|
+
rules: s,
|
|
400
|
+
result: u
|
|
401
|
+
} = e, m = this.checkRulesValidity(a, n, s), i = u.$unwatch ? u.$unwatch : () => ({});
|
|
402
|
+
return m ? u : {
|
|
403
|
+
$dirty: u.$dirty,
|
|
404
|
+
$partial: !0,
|
|
405
|
+
$unwatch: i
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
const j = {
|
|
410
|
+
COLLECT_ALL: !0,
|
|
411
|
+
COLLECT_NONE: !1
|
|
412
|
+
}, K = Symbol("vuelidate#injectChildResults"), Q = Symbol("vuelidate#removeChildResults");
|
|
413
|
+
function Pe(t) {
|
|
414
|
+
let {
|
|
415
|
+
$scope: a,
|
|
416
|
+
instance: n
|
|
417
|
+
} = t;
|
|
418
|
+
const e = {}, s = O([]), u = h(() => s.value.reduce((f, $) => (f[$] = g(e[$]), f), {}));
|
|
419
|
+
function m(f, $) {
|
|
420
|
+
let {
|
|
421
|
+
$registerAs: p,
|
|
422
|
+
$scope: v,
|
|
423
|
+
$stopPropagation: r
|
|
424
|
+
} = $;
|
|
425
|
+
r || a === j.COLLECT_NONE || v === j.COLLECT_NONE || a !== j.COLLECT_ALL && a !== v || (e[p] = f, s.value.push(p));
|
|
426
|
+
}
|
|
427
|
+
n.__vuelidateInjectInstances = [].concat(n.__vuelidateInjectInstances || [], m);
|
|
428
|
+
function i(f) {
|
|
429
|
+
s.value = s.value.filter(($) => $ !== f), delete e[f];
|
|
430
|
+
}
|
|
431
|
+
n.__vuelidateRemoveInstances = [].concat(n.__vuelidateRemoveInstances || [], i);
|
|
432
|
+
const d = M(K, []);
|
|
433
|
+
z(K, n.__vuelidateInjectInstances);
|
|
434
|
+
const l = M(Q, []);
|
|
435
|
+
return z(Q, n.__vuelidateRemoveInstances), {
|
|
436
|
+
childResults: u,
|
|
437
|
+
sendValidationResultsToParent: d,
|
|
438
|
+
removeValidationResultsFromParent: l
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
function Z(t) {
|
|
442
|
+
return new Proxy(t, {
|
|
443
|
+
get(a, n) {
|
|
444
|
+
return typeof a[n] == "object" ? Z(a[n]) : h(() => a[n]);
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
let U = 0;
|
|
449
|
+
function je(t, a) {
|
|
450
|
+
var n;
|
|
451
|
+
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
452
|
+
arguments.length === 1 && (e = t, t = void 0, a = void 0);
|
|
453
|
+
let {
|
|
454
|
+
$registerAs: s,
|
|
455
|
+
$scope: u = j.COLLECT_ALL,
|
|
456
|
+
$stopPropagation: m,
|
|
457
|
+
$externalResults: i,
|
|
458
|
+
currentVueInstance: d
|
|
459
|
+
} = e;
|
|
460
|
+
const l = d || ((n = ie()) === null || n === void 0 ? void 0 : n.proxy), f = l ? l.$options : {};
|
|
461
|
+
s || (U += 1, s = `_vuelidate_${U}`);
|
|
462
|
+
const $ = O({}), p = new be(), {
|
|
463
|
+
childResults: v,
|
|
464
|
+
sendValidationResultsToParent: r,
|
|
465
|
+
removeValidationResultsFromParent: c
|
|
466
|
+
} = l ? Pe({
|
|
467
|
+
$scope: u,
|
|
468
|
+
instance: l
|
|
469
|
+
}) : {
|
|
470
|
+
childResults: O({})
|
|
471
|
+
};
|
|
472
|
+
if (!t && f.validations) {
|
|
473
|
+
const o = f.validations;
|
|
474
|
+
a = O({}), ce(() => {
|
|
475
|
+
a.value = l, C(() => _(o) ? o.call(a.value, new Z(a.value)) : o, (y) => {
|
|
476
|
+
$.value = S({
|
|
477
|
+
validations: y,
|
|
478
|
+
state: a,
|
|
479
|
+
childResults: v,
|
|
480
|
+
resultsCache: p,
|
|
481
|
+
globalConfig: e,
|
|
482
|
+
instance: l,
|
|
483
|
+
externalResults: i || l.vuelidateExternalResults
|
|
484
|
+
});
|
|
485
|
+
}, {
|
|
486
|
+
immediate: !0
|
|
487
|
+
});
|
|
488
|
+
}), e = f.validationsConfig || e;
|
|
489
|
+
} else {
|
|
490
|
+
const o = A(t) || ge(t) ? t : D(t || {});
|
|
491
|
+
C(o, (y) => {
|
|
492
|
+
$.value = S({
|
|
493
|
+
validations: y,
|
|
494
|
+
state: a,
|
|
495
|
+
childResults: v,
|
|
496
|
+
resultsCache: p,
|
|
497
|
+
globalConfig: e,
|
|
498
|
+
instance: l ?? {},
|
|
499
|
+
externalResults: i
|
|
500
|
+
});
|
|
501
|
+
}, {
|
|
502
|
+
immediate: !0
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
return l && (r.forEach((o) => o($, {
|
|
506
|
+
$registerAs: s,
|
|
507
|
+
$scope: u,
|
|
508
|
+
$stopPropagation: m
|
|
509
|
+
})), de(() => c.forEach((o) => o(s)))), h(() => w(w({}, g($.value)), v.value));
|
|
510
|
+
}
|
|
511
|
+
export {
|
|
512
|
+
je as u
|
|
513
|
+
};
|