@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.2

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.
Files changed (241) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.internal.md +82 -0
  3. package/README.md +14 -40
  4. package/README.public.md +14 -0
  5. package/dist/AddClientCallout-e8d19R3f.js +101 -0
  6. package/dist/AnswerModal-BGvB8IVV.js +3291 -0
  7. package/dist/AttachmentItem-CkHbAm4l.js +171 -0
  8. package/dist/BaseUpload-BiJBcWRu.js +2472 -0
  9. package/dist/BlockMedia-CW5wgipC.js +103 -0
  10. package/dist/CCallout-Cy2eeIYd.js +104 -0
  11. package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-DE_3CTjm.js} +91 -49
  12. package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
  13. package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
  14. package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BS2nP9kc.js} +13 -21
  15. package/dist/CPhoneInput-Bf6329PO.js +207 -0
  16. package/dist/CPriceInput-d1yjuMQr.js +140 -0
  17. package/dist/CSelect-DgnT07Hk.js +98 -0
  18. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
  19. package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
  20. package/dist/ClientModal-BzWQtWSZ.js +1181 -0
  21. package/dist/ColorPicker-BvoFN8nu.js +1408 -0
  22. package/dist/CompanyModal-Bp4V_az9.js +250 -0
  23. package/dist/ContentWrapper-CuH6xKmo.js +265 -0
  24. package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
  25. package/dist/DocAnswer-BcNA_KEg.js +33 -0
  26. package/dist/DocDetails-CStEwWnU.js +448 -0
  27. package/dist/DocForm-BOoILf5E.js +6748 -0
  28. package/dist/DocFormSend-CQIf-HJY.js +171 -0
  29. package/dist/DocLinks-BRX5QzNe.js +36 -0
  30. package/dist/DocModalBase-D72yWj-x.js +29 -0
  31. package/dist/DocPrint-BI1LXUPE.js +399 -0
  32. package/dist/DocReceipt-DaZ4V76p.js +341 -0
  33. package/dist/DocSendReminder-DKGZlo7s.js +181 -0
  34. package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
  35. package/dist/DocTimeline-DCwofzuk.js +537 -0
  36. package/dist/DocumentClient-vJdxCB53.js +90 -0
  37. package/dist/DocumentLayout-CKSi42ev.js +1368 -0
  38. package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
  39. package/dist/DocumentVoided-CRX2WxWO.js +33 -0
  40. package/dist/EmbedInput-B-oeC4Wy.js +157 -0
  41. package/dist/EmbedSettings-B9Yka2yB.js +103 -0
  42. package/dist/ErrorCallout-B_ygH33E.js +34 -0
  43. package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
  44. package/dist/Flag-BwTgCNHO.js +41 -0
  45. package/dist/HeaderSettings-DvC7nlyY.js +720 -0
  46. package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
  47. package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
  48. package/dist/Index-0_3ULrWX.js +126 -0
  49. package/dist/Index-4NPe0sfX.js +629 -0
  50. package/dist/Index-B1uA0FF6.js +4 -0
  51. package/dist/Index-BBkCYm2q.js +201 -0
  52. package/dist/{Index-DIOiMm9f.js → Index-BBwvo7S9.js} +10 -18
  53. package/dist/Index-BEMlsYwJ.js +68 -0
  54. package/dist/Index-BRBhJ6kz.js +21 -0
  55. package/dist/{Index--qPMWUMT.js → Index-BTFmHjUt.js} +48 -61
  56. package/dist/Index-BcUNnxLC.js +1098 -0
  57. package/dist/Index-Bo6ExBUL.js +93 -0
  58. package/dist/Index-BvMPCgdH.js +102 -0
  59. package/dist/Index-Bx5TOI9k.js +74 -0
  60. package/dist/Index-C7GZS8EI.js +16 -0
  61. package/dist/Index-CNWhm07R.js +25 -0
  62. package/dist/{Index-DcQbh-z2.js → Index-CQpznMKV.js} +9 -17
  63. package/dist/Index-CRzsnIij.js +159 -0
  64. package/dist/Index-CeSG1C41.js +140 -0
  65. package/dist/Index-CjfjdZj5.js +52 -0
  66. package/dist/Index-CskKmZpd.js +363 -0
  67. package/dist/Index-D5qwbCo1.js +28 -0
  68. package/dist/Index-D8Ae1Txt.js +228 -0
  69. package/dist/Index-DE8aenDB.js +3452 -0
  70. package/dist/Index-DI5EB5Rt.js +39 -0
  71. package/dist/Index-DaV57YPP.js +163 -0
  72. package/dist/Index-DbwkmoyM.js +38 -0
  73. package/dist/Index-Df9skok6.js +70 -0
  74. package/dist/{Index-Bu0MGrj6.js → Index-DfLLA0ij.js} +313 -206
  75. package/dist/Index-Dw1CO5F9.js +76 -0
  76. package/dist/Index-PZXyOoVb.js +87 -0
  77. package/dist/{Index-D4XgxmbD.js → Index-ZUnH-BHj.js} +10 -18
  78. package/dist/Index-cjKGSiDi.js +136 -0
  79. package/dist/Index-m-goRuKD.js +49 -0
  80. package/dist/Index-rGeWbLcB.js +47 -0
  81. package/dist/Index-vrljNp6G.js +28 -0
  82. package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
  83. package/dist/InputToggleRow-v6qAWPg6.js +99 -0
  84. package/dist/ManualPopover-BONBJIUA.js +57 -0
  85. package/dist/MediaWrapper-CXb2UGd9.js +18 -0
  86. package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-BqESO13N.js} +13 -17
  87. package/dist/PackageGroup-AIysVmyh.js +1058 -0
  88. package/dist/PdfTerms-BlhHdTu3.js +34 -0
  89. package/dist/PdfViewer-DwZ1rwlN.js +392 -0
  90. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
  91. package/dist/PriceHeader-C4XhnoA3.js +488 -0
  92. package/dist/SearchApi-B7lXgUY6.js +137 -0
  93. package/dist/SendForm-BcD0xSvB.js +7031 -0
  94. package/dist/Setup-C2qaYDei.js +47 -0
  95. package/dist/{SmartList-Qgu0rMrI.js → SmartList-DqG7Q5t7.js} +16 -24
  96. package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
  97. package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-BOCONyM4.js} +169 -49
  98. package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
  99. package/dist/ToggleBinding-7oq_oXPt.js +44 -0
  100. package/dist/UploadModal-C_X2NjVY.js +134 -0
  101. package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
  102. package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
  103. package/dist/VideoSelectModal-CW0OweCw.js +217 -0
  104. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  105. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  106. package/dist/{debounce-C1AuSpOZ.js → debounce-DNl99Gyo.js} +7 -7
  107. package/dist/dom-CkTGWrfu.js +69 -0
  108. package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-BwcErMDY.js} +1 -1
  109. package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-DaurePnd.js} +2 -2
  110. package/dist/helpers-CPW--XIz.js +44 -0
  111. package/dist/index-BjiGCJPI.js +149 -0
  112. package/dist/index-CFNv6OvX.js +188 -0
  113. package/dist/index-Cx71On5Z.js +508 -0
  114. package/dist/index-DKMxIBz_.js +270 -0
  115. package/dist/index-DKf5SGLD.js +125 -0
  116. package/dist/index-E32WgUp9.js +3525 -0
  117. package/dist/index-kp-GC5I0.js +513 -0
  118. package/dist/index.es.js +2 -5
  119. package/dist/index.umd.js +306 -1505
  120. package/dist/{main-WKzC-Dnu.js → main-Cb-nyil1.js} +33252 -33755
  121. package/dist/mapFormMixin-D3BihYWW.js +1544 -0
  122. package/dist/omit--YYr41Xp.js +31 -0
  123. package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-CdRW_Wwp.js} +4 -4
  124. package/dist/regions-BdZt9Srn.js +1250 -0
  125. package/dist/splitpanes-D-ThFkeR.js +342 -0
  126. package/dist/style.css +1 -4
  127. package/dist/template-BvaNnq-g.js +1493 -0
  128. package/dist/{throttle-CWPJmFid.js → throttle-D-bUGaVh.js} +2 -2
  129. package/dist/tippy.esm-BmKNqohP.js +1994 -0
  130. package/dist/useTermsModal-Dhf6_eYb.js +87 -0
  131. package/dist/{utils-CA_Zy6u1.js → utils-CBPcYdLv.js} +8 -11
  132. package/dist/validation-DOcUOoMe.js +40 -0
  133. package/package.json +25 -31
  134. package/.eslintrc.cjs +0 -4
  135. package/dist/AddClientCallout-BWnvyBcK.js +0 -46
  136. package/dist/AnswerModal-CLGRdSnK.js +0 -3874
  137. package/dist/AttachmentItem-BPS0-wyc.js +0 -78
  138. package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
  139. package/dist/BaseUpload-9gPgI7r6.js +0 -1977
  140. package/dist/BlockMedia-DkPFWiYL.js +0 -76
  141. package/dist/CCallout-T26jwUby.js +0 -59
  142. package/dist/CDropdownItem-BE8BAMD1.js +0 -636
  143. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  144. package/dist/CFormField-DECEfoVq.js +0 -241
  145. package/dist/CPriceInput-C4SOB-P5.js +0 -112
  146. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  147. package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
  148. package/dist/ClientModal-BXFYvYCF.js +0 -625
  149. package/dist/ColorPicker-CZ_bJabP.js +0 -2879
  150. package/dist/CompanyModal-CDr3t28n.js +0 -141
  151. package/dist/ContentWrapper-BwmMoe4W.js +0 -183
  152. package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
  153. package/dist/DocAnswer-BR59xzkT.js +0 -36
  154. package/dist/DocDetails-D1qbCbps.js +0 -259
  155. package/dist/DocForm-DBc2a7z5.js +0 -7272
  156. package/dist/DocFormSend-Casix-yG.js +0 -144
  157. package/dist/DocLinks-DGTaewyX.js +0 -38
  158. package/dist/DocModalBase-BbS_qvSv.js +0 -28
  159. package/dist/DocPrint-0PqX3mbJ.js +0 -240
  160. package/dist/DocReceipt-CU3VD5pt.js +0 -210
  161. package/dist/DocSendReminder-CuycBspr.js +0 -137
  162. package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
  163. package/dist/DocTimeline-DJuv3yBe.js +0 -481
  164. package/dist/DocumentClient-C25XXzz6.js +0 -136
  165. package/dist/DocumentLayout-B7afHRMr.js +0 -4909
  166. package/dist/DocumentLogotype-sqI51wvM.js +0 -87
  167. package/dist/DocumentVoided-TahdTSMn.js +0 -25
  168. package/dist/EmbedInput-BY-wHSfc.js +0 -113
  169. package/dist/EmbedSettings-8pfjk4NP.js +0 -72
  170. package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
  171. package/dist/FilePreviewModal-CcEinEFg.js +0 -81
  172. package/dist/Flag-PJKrghi9.js +0 -114
  173. package/dist/HeaderSettings-BqczIOsG.js +0 -392
  174. package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
  175. package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
  176. package/dist/Index-6b5VBKE-.js +0 -107
  177. package/dist/Index-B4pRJnbw.js +0 -84
  178. package/dist/Index-B69f8qgZ.js +0 -62
  179. package/dist/Index-B79YN9RO.js +0 -25
  180. package/dist/Index-BBrlPoe8.js +0 -58
  181. package/dist/Index-BXfWJCuq.js +0 -52
  182. package/dist/Index-Bd76vb37.js +0 -55
  183. package/dist/Index-BmbtQO5F.js +0 -150
  184. package/dist/Index-ByV_kJaH.js +0 -77
  185. package/dist/Index-CDV5rhWS.js +0 -49
  186. package/dist/Index-CIx4OOK-.js +0 -144
  187. package/dist/Index-CL1OWLt6.js +0 -223
  188. package/dist/Index-Caow0eZu.js +0 -31
  189. package/dist/Index-Cd3-3PEK.js +0 -2402
  190. package/dist/Index-CdpZBEKU.js +0 -98
  191. package/dist/Index-CmU3Sys-.js +0 -754
  192. package/dist/Index-CtRtgnpm.js +0 -32
  193. package/dist/Index-Cukkr33D.js +0 -140
  194. package/dist/Index-Cuqw0ios.js +0 -57
  195. package/dist/Index-Czm_WdqC.js +0 -25
  196. package/dist/Index-DNdYXHgr.js +0 -33
  197. package/dist/Index-DcuBxutp.js +0 -642
  198. package/dist/Index-DpWNWiyY.js +0 -291
  199. package/dist/Index-DzS1rZdF.js +0 -24
  200. package/dist/Index-N6s5pZxv.js +0 -26
  201. package/dist/Index-g_DNu4mt.js +0 -69
  202. package/dist/Index-mJ8F41GY.js +0 -154
  203. package/dist/Index-q7W9KA8m.js +0 -21
  204. package/dist/Index-rtzblZp4.js +0 -70
  205. package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
  206. package/dist/ManualPopover-CZrWiT-P.js +0 -58
  207. package/dist/MediaWrapper-D37qK4KR.js +0 -23
  208. package/dist/PackageGroup-Heo_s8ct.js +0 -699
  209. package/dist/PdfTerms-AB9tXAtU.js +0 -36
  210. package/dist/PdfViewer-CIVkvOBr.js +0 -373
  211. package/dist/PlainHtml-CPmIebjY.js +0 -20
  212. package/dist/PriceHeader-DhDAruwX.js +0 -339
  213. package/dist/SearchApi-BMgdaI4s.js +0 -161
  214. package/dist/Setup-VIaIV9uT.js +0 -50
  215. package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
  216. package/dist/ToggleBinding-CuwCeYpO.js +0 -38
  217. package/dist/UploadModal-BITcxG-J.js +0 -95
  218. package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
  219. package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
  220. package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
  221. package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
  222. package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
  223. package/dist/formValidationMixin-COkY8COk.js +0 -49
  224. package/dist/index-BFvjENMH.js +0 -81
  225. package/dist/index-BV2nGWay.js +0 -492
  226. package/dist/index-BgJ05dYc.js +0 -165
  227. package/dist/index-CMPAXxzs.js +0 -347
  228. package/dist/index-DNDjI5uI.js +0 -3916
  229. package/dist/index-aoff9oUi.js +0 -102
  230. package/dist/mapFormMixin-QbevCwJK.js +0 -72
  231. package/dist/omit-CTp9CXoU.js +0 -31
  232. package/dist/splitpanes-BHUVsCZF.js +0 -382
  233. package/dist/tinycolor-kTl0yxzz.js +0 -633
  234. package/dist/tippy.esm-sS5koDSU.js +0 -1799
  235. package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
  236. package/dist/vuex.esm-DKGl8mcw.js +0 -467
  237. package/public/favicon.ico +0 -0
  238. package/tsconfig.json +0 -26
  239. package/tsconfig.node.json +0 -10
  240. package/tsconfig.paths.json +0 -17
  241. package/vite.config.ts +0 -60
@@ -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, j as g, N as $e, O as ve, P as M, x as z, Q as B } from "./main-Cb-nyil1.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
+ fe(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 fe(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) || ve(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] : [], 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
+ 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, v, m);
82
+ } catch (y) {
83
+ o = Promise.reject(y);
84
+ }
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
+ }).catch((y) => {
88
+ r.value--, n.value = !!r.value, u.value = y, f.value = !0;
89
+ });
90
+ }, {
91
+ immediate: !0,
92
+ deep: typeof a == "object"
93
+ });
94
+ return {
95
+ $invalid: f,
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 v = () => ({}), $ = h(() => {
105
+ if (d && !n.value || l && !i.value)
106
+ return !1;
107
+ let p = !0;
108
+ try {
109
+ const f = X(t, a, m, u);
110
+ s.value = f, p = Y(f);
111
+ } catch (f) {
112
+ s.value = f;
113
+ }
114
+ return p;
115
+ });
116
+ return {
117
+ $unwatch: v,
118
+ $invalid: $
119
+ };
120
+ }
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
+ let r, c;
124
+ t.$async ? {
125
+ $invalid: r,
126
+ $unwatch: c
127
+ } = me(t.$validator, a, $, n, e, f, s, t.$watchTargets, d, l, v) : {
128
+ $invalid: r,
129
+ $unwatch: c
130
+ } = he(t.$validator, a, n, e, f, 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: f,
139
+ $validator: u,
140
+ $propertyPath: i,
141
+ $property: m
142
+ }))) : o || "",
143
+ $params: p,
144
+ $pending: $,
145
+ $invalid: r,
146
+ $response: f,
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), 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
+ }
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, f);
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, f.value = Date.now();
230
+ }, e.set(s, t, r), r) : (v && 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), v = 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
+ }, f = () => {
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: v,
278
+ $pending: d,
279
+ $touch: $,
280
+ $reset: f,
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 v = s ? `${s}.${e}` : e, {
298
+ rules: $,
299
+ nestedValidators: p,
300
+ config: f,
301
+ validationGroups: r
302
+ } = ye(a), c = w(w({}, i), f), 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, v, c, d, F, n), b = Ee(p, o, v, 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: v || 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((v, $) => (v[$] = g(e[$]), v), {}));
419
+ function m(v, $) {
420
+ let {
421
+ $registerAs: p,
422
+ $scope: f,
423
+ $stopPropagation: r
424
+ } = $;
425
+ r || a === j.COLLECT_NONE || f === j.COLLECT_NONE || a !== j.COLLECT_ALL && a !== f || (e[p] = v, s.value.push(p));
426
+ }
427
+ n.__vuelidateInjectInstances = [].concat(n.__vuelidateInjectInstances || [], m);
428
+ function i(v) {
429
+ s.value = s.value.filter(($) => $ !== v), delete e[v];
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), v = l ? l.$options : {};
461
+ s || (U += 1, s = `_vuelidate_${U}`);
462
+ const $ = O({}), p = new be(), {
463
+ childResults: f,
464
+ sendValidationResultsToParent: r,
465
+ removeValidationResultsFromParent: c
466
+ } = l ? Pe({
467
+ $scope: u,
468
+ instance: l
469
+ }) : {
470
+ childResults: O({})
471
+ };
472
+ if (!t && v.validations) {
473
+ const o = v.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: f,
480
+ resultsCache: p,
481
+ globalConfig: e,
482
+ instance: l,
483
+ externalResults: i || l.vuelidateExternalResults
484
+ });
485
+ }, {
486
+ immediate: !0
487
+ });
488
+ }), e = v.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: f,
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)), f.value));
510
+ }
511
+ export {
512
+ je as u
513
+ };