@xiaohaih/json-form-vant 0.0.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.
Files changed (213) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +807 -0
  3. package/TODO.md +36 -0
  4. package/components/area/index.ts +6 -0
  5. package/components/area/index.vue +120 -0
  6. package/components/area/types.ts +84 -0
  7. package/components/cascader/index.ts +6 -0
  8. package/components/cascader/index.vue +146 -0
  9. package/components/cascader/types.ts +75 -0
  10. package/components/checkbox/index.ts +6 -0
  11. package/components/checkbox/index.vue +59 -0
  12. package/components/checkbox/types.ts +54 -0
  13. package/components/checkbox-group/index.ts +6 -0
  14. package/components/checkbox-group/index.vue +67 -0
  15. package/components/checkbox-group/types.ts +63 -0
  16. package/components/component-definition/components.ts +29 -0
  17. package/components/component-definition/definition.ts +25 -0
  18. package/components/component-definition/index.ts +4 -0
  19. package/components/custom-render/index.ts +6 -0
  20. package/components/custom-render/index.vue +66 -0
  21. package/components/custom-render/types.ts +43 -0
  22. package/components/date-picker/index.ts +6 -0
  23. package/components/date-picker/index.vue +130 -0
  24. package/components/date-picker/types.ts +91 -0
  25. package/components/date-time-picker-group/index.ts +6 -0
  26. package/components/date-time-picker-group/index.vue +158 -0
  27. package/components/date-time-picker-group/types.ts +115 -0
  28. package/components/datetime-picker/index.ts +6 -0
  29. package/components/datetime-picker/index.vue +128 -0
  30. package/components/datetime-picker/types.ts +78 -0
  31. package/components/dynamic-group/index.ts +10 -0
  32. package/components/dynamic-group/index.vue +140 -0
  33. package/components/dynamic-group/types.ts +68 -0
  34. package/components/group/assist.ts +99 -0
  35. package/components/group/index.ts +7 -0
  36. package/components/group/index.vue +117 -0
  37. package/components/group/types.ts +57 -0
  38. package/components/group/virtual-group.vue +38 -0
  39. package/components/index.ts +10 -0
  40. package/components/input/index.ts +6 -0
  41. package/components/input/index.vue +83 -0
  42. package/components/input/types.ts +43 -0
  43. package/components/input-slot/index.ts +6 -0
  44. package/components/input-slot/index.vue +148 -0
  45. package/components/input-slot/types.ts +34 -0
  46. package/components/number-keyboard/index.ts +6 -0
  47. package/components/number-keyboard/index.vue +81 -0
  48. package/components/number-keyboard/types.ts +57 -0
  49. package/components/password-input/index.ts +6 -0
  50. package/components/password-input/index.vue +103 -0
  51. package/components/password-input/types.ts +64 -0
  52. package/components/picker/index.ts +6 -0
  53. package/components/picker/index.vue +136 -0
  54. package/components/picker/types.ts +94 -0
  55. package/components/radio/index.ts +6 -0
  56. package/components/radio/index.vue +68 -0
  57. package/components/radio/types.ts +58 -0
  58. package/components/radio-group/index.ts +6 -0
  59. package/components/radio-group/index.vue +74 -0
  60. package/components/radio-group/types.ts +65 -0
  61. package/components/rate/index.ts +6 -0
  62. package/components/rate/index.vue +63 -0
  63. package/components/rate/types.ts +47 -0
  64. package/components/share.ts +78 -0
  65. package/components/signature/index.ts +6 -0
  66. package/components/signature/index.vue +65 -0
  67. package/components/signature/instance.vue +161 -0
  68. package/components/signature/types.ts +79 -0
  69. package/components/slider/index.ts +6 -0
  70. package/components/slider/index.vue +63 -0
  71. package/components/slider/types.ts +53 -0
  72. package/components/stepper/index.ts +6 -0
  73. package/components/stepper/index.vue +62 -0
  74. package/components/stepper/types.ts +47 -0
  75. package/components/switch/index.ts +6 -0
  76. package/components/switch/index.vue +61 -0
  77. package/components/switch/types.ts +51 -0
  78. package/components/time-picker/index.ts +6 -0
  79. package/components/time-picker/index.vue +130 -0
  80. package/components/time-picker/types.ts +91 -0
  81. package/components/tree-select/index.ts +6 -0
  82. package/components/tree-select/index.vue +160 -0
  83. package/components/tree-select/types.ts +77 -0
  84. package/components/upload/index.ts +6 -0
  85. package/components/upload/index.vue +109 -0
  86. package/components/upload/types.ts +85 -0
  87. package/components/use.ts +45 -0
  88. package/components/utils.ts +52 -0
  89. package/components/wrapper/index.ts +6 -0
  90. package/components/wrapper/index.vue +117 -0
  91. package/components/wrapper/types.ts +94 -0
  92. package/dist/components/area/index.d.ts +5 -0
  93. package/dist/components/area/index.vue.d.ts +1843 -0
  94. package/dist/components/area/types.d.ts +1434 -0
  95. package/dist/components/cascader/index.d.ts +5 -0
  96. package/dist/components/cascader/index.vue.d.ts +2467 -0
  97. package/dist/components/cascader/types.d.ts +1419 -0
  98. package/dist/components/checkbox/index.d.ts +5 -0
  99. package/dist/components/checkbox/index.vue.d.ts +1550 -0
  100. package/dist/components/checkbox/types.d.ts +1313 -0
  101. package/dist/components/checkbox-group/index.d.ts +5 -0
  102. package/dist/components/checkbox-group/index.vue.d.ts +1643 -0
  103. package/dist/components/checkbox-group/types.d.ts +1372 -0
  104. package/dist/components/component-definition/components.d.ts +30 -0
  105. package/dist/components/component-definition/index.d.ts +4 -0
  106. package/dist/components/custom-render/index.d.ts +5 -0
  107. package/dist/components/custom-render/index.vue.d.ts +1473 -0
  108. package/dist/components/custom-render/types.d.ts +1175 -0
  109. package/dist/components/date-picker/index.d.ts +5 -0
  110. package/dist/components/date-picker/index.vue.d.ts +1888 -0
  111. package/dist/components/date-picker/types.d.ts +1458 -0
  112. package/dist/components/date-time-picker-group/index.d.ts +5 -0
  113. package/dist/components/date-time-picker-group/index.vue.d.ts +2181 -0
  114. package/dist/components/date-time-picker-group/types.d.ts +1549 -0
  115. package/dist/components/dynamic-group/index.d.ts +5 -0
  116. package/dist/components/dynamic-group/index.vue.d.ts +457 -0
  117. package/dist/components/dynamic-group/types.d.ts +403 -0
  118. package/dist/components/group/assist.d.ts +58 -0
  119. package/dist/components/group/index.d.ts +6 -0
  120. package/dist/components/group/index.vue.d.ts +139 -0
  121. package/dist/components/group/types.d.ts +189 -0
  122. package/dist/components/group/virtual-group.vue.d.ts +42 -0
  123. package/dist/components/index.d.ts +3 -0
  124. package/dist/components/input/index.d.ts +5 -0
  125. package/dist/components/input/index.vue.d.ts +2229 -0
  126. package/dist/components/input/types.d.ts +1258 -0
  127. package/dist/components/input-slot/index.d.ts +5 -0
  128. package/dist/components/input-slot/index.vue.d.ts +626 -0
  129. package/dist/components/input-slot/types.d.ts +311 -0
  130. package/dist/components/number-keyboard/index.d.ts +5 -0
  131. package/dist/components/number-keyboard/index.vue.d.ts +1643 -0
  132. package/dist/components/number-keyboard/types.d.ts +1324 -0
  133. package/dist/components/password-input/index.d.ts +5 -0
  134. package/dist/components/password-input/index.vue.d.ts +1715 -0
  135. package/dist/components/password-input/types.d.ts +1357 -0
  136. package/dist/components/picker/index.d.ts +5 -0
  137. package/dist/components/picker/index.vue.d.ts +1868 -0
  138. package/dist/components/picker/types.d.ts +1466 -0
  139. package/dist/components/radio/index.d.ts +5 -0
  140. package/dist/components/radio/index.vue.d.ts +1563 -0
  141. package/dist/components/radio/types.d.ts +1327 -0
  142. package/dist/components/radio-group/index.d.ts +5 -0
  143. package/dist/components/radio-group/index.vue.d.ts +1617 -0
  144. package/dist/components/radio-group/types.d.ts +1383 -0
  145. package/dist/components/rate/index.d.ts +5 -0
  146. package/dist/components/rate/index.vue.d.ts +1557 -0
  147. package/dist/components/rate/types.d.ts +1281 -0
  148. package/dist/components/share.d.ts +679 -0
  149. package/dist/components/signature/index.d.ts +5 -0
  150. package/dist/components/signature/index.vue.d.ts +3017 -0
  151. package/dist/components/signature/instance.vue.d.ts +1614 -0
  152. package/dist/components/signature/types.d.ts +1369 -0
  153. package/dist/components/slider/index.d.ts +5 -0
  154. package/dist/components/slider/index.vue.d.ts +1563 -0
  155. package/dist/components/slider/types.d.ts +1302 -0
  156. package/dist/components/stepper/index.d.ts +5 -0
  157. package/dist/components/stepper/index.vue.d.ts +1620 -0
  158. package/dist/components/stepper/types.d.ts +1281 -0
  159. package/dist/components/switch/index.d.ts +5 -0
  160. package/dist/components/switch/index.vue.d.ts +1529 -0
  161. package/dist/components/switch/types.d.ts +1296 -0
  162. package/dist/components/time-picker/index.d.ts +5 -0
  163. package/dist/components/time-picker/index.vue.d.ts +1936 -0
  164. package/dist/components/time-picker/types.d.ts +1458 -0
  165. package/dist/components/tree-select/index.d.ts +5 -0
  166. package/dist/components/tree-select/index.vue.d.ts +1802 -0
  167. package/dist/components/tree-select/types.d.ts +1411 -0
  168. package/dist/components/upload/index.d.ts +5 -0
  169. package/dist/components/upload/index.vue.d.ts +1697 -0
  170. package/dist/components/upload/types.d.ts +1376 -0
  171. package/dist/components/use.d.ts +53 -0
  172. package/dist/components/utils.d.ts +15 -0
  173. package/dist/components/wrapper/index.d.ts +5 -0
  174. package/dist/components/wrapper/index.vue.d.ts +1085 -0
  175. package/dist/components/wrapper/types.d.ts +541 -0
  176. package/dist/docs/.vitepress/config.d.ts +3 -0
  177. package/dist/docs/.vitepress/theme/index.d.ts +2 -0
  178. package/dist/index.cjs.js +5459 -0
  179. package/dist/index.cjs.js.map +1 -0
  180. package/dist/index.cjs.min.js +3568 -0
  181. package/dist/index.cjs.min.js.map +1 -0
  182. package/dist/index.esm.js +5264 -0
  183. package/dist/index.esm.js.map +1 -0
  184. package/dist/index.esm.min.js +3559 -0
  185. package/dist/index.esm.min.js.map +1 -0
  186. package/dist/index.umd.js +5465 -0
  187. package/dist/index.umd.js.map +1 -0
  188. package/dist/index.umd.min.js +3573 -0
  189. package/dist/index.umd.min.js.map +1 -0
  190. package/dist/src/assist.d.ts +32 -0
  191. package/dist/src/index.d.ts +5 -0
  192. package/dist/src/interface.d.ts +129 -0
  193. package/dist/src/utils.d.ts +9 -0
  194. package/dist/src/version.d.ts +2 -0
  195. package/docs/.vitepress/config.ts +99 -0
  196. package/docs/.vitepress/theme/index.ts +5 -0
  197. package/docs/README.md +20 -0
  198. package/docs/index.md +25 -0
  199. package/env.d.ts +8 -0
  200. package/package.json +71 -0
  201. package/scripts/generate-version.mjs +26 -0
  202. package/scripts/postinstall.cjs +13 -0
  203. package/scripts/utils.cjs +67 -0
  204. package/src/assist.ts +40 -0
  205. package/src/index.ts +5 -0
  206. package/src/interface.ts +293 -0
  207. package/src/utils.ts +22 -0
  208. package/src/version.ts +2 -0
  209. package/tsconfig.app.json +41 -0
  210. package/tsconfig.json +7 -0
  211. package/tsconfig.node.json +24 -0
  212. package/tsdown.config.ts +12 -0
  213. package/vite.config.ts +93 -0
@@ -0,0 +1,3568 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ var e = Object.create, t = Object.defineProperty, o = Object.getOwnPropertyDescriptor, n = Object.getOwnPropertyNames, r = Object.getPrototypeOf, l = Object.prototype.hasOwnProperty, a = (e, o) => {
3
+ let n = {};
4
+ for (var r in e) t(n, r, {
5
+ get: e[r],
6
+ enumerable: !0
7
+ });
8
+ return o || t(n, Symbol.toStringTag, { value: "Module" }), n;
9
+ }, s = (e, r, a, s) => {
10
+ if (r && "object" == typeof r || "function" == typeof r) for (var i, p = n(r), c = 0, d = p.length; c < d; c++) i = p[c], l.call(e, i) || i === a || t(e, i, {
11
+ get: ((e) => r[e]).bind(null, i),
12
+ enumerable: !(s = o(r, i)) || s.enumerable
13
+ });
14
+ return e;
15
+ };
16
+ let i = require("vue");
17
+ var p, c = 1, d = null != (p = i) ? e(r(p)) : {};
18
+ i = s(!c && p && p.__esModule ? d : t(d, "default", {
19
+ value: p,
20
+ enumerable: !0
21
+ }), p);
22
+ let u = require("vant");
23
+ var m = a({
24
+ Vue: () => i,
25
+ Vue2: () => {},
26
+ del: () => h,
27
+ install: () => f,
28
+ isVue2: () => !1,
29
+ isVue3: () => !0,
30
+ set: () => y
31
+ });
32
+ ((e, t, o) => {
33
+ s(e, t, "default"), o && s(o, t, "default");
34
+ })(m, require("vue"));
35
+ function f() {}
36
+ function y(e, t, o) {
37
+ return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, o), o) : (e[t] = o, o);
38
+ }
39
+ function h(e, t) {
40
+ Array.isArray(e) ? e.splice(t, 1) : delete e[t];
41
+ }
42
+ function v() {}
43
+ function b(e) {
44
+ return Object.prototype.toString.call(e).slice(8, -1);
45
+ }
46
+ function g(e) {
47
+ return "Array" === b(e);
48
+ }
49
+ function k(e) {
50
+ return "Object" === b(e);
51
+ }
52
+ function P(e) {
53
+ return !C(e);
54
+ }
55
+ function C(e) {
56
+ return void 0 === e || "" === e || null === e;
57
+ }
58
+ function x(e) {
59
+ return e || 0 === e ? "function" == typeof e || "object" == typeof e ? e : () => e : null;
60
+ }
61
+ var w = /\B([A-Z])/g, V = function(e) {
62
+ const t = {};
63
+ return (o) => t[o] || (t[o] = e(o));
64
+ }((e) => e.replace(w, "-$1").toLowerCase()), O = /[.[\]]/, B = /^\d+$/, S = /['"]/g;
65
+ function F(e, t, o) {
66
+ if (!e || !t) return o;
67
+ const n = t.split(O);
68
+ let r = e;
69
+ for (const e of n) {
70
+ if (null === r) return o;
71
+ if (void 0 === r) return o;
72
+ const t = e.replace(S, "");
73
+ "" !== t.trim() && (r = r[t]);
74
+ }
75
+ return void 0 === r ? o : r;
76
+ }
77
+ function R(e, t, o) {
78
+ (function(e, t, o, n) {
79
+ if (!e || !t) return;
80
+ const r = t.split(O).filter((e) => !!e.trim());
81
+ if (!r.length) return;
82
+ const l = (e) => {
83
+ if (r.length > 1) {
84
+ const t = r.shift();
85
+ void 0 === e[t] && (n ? n(e, t, B.test(r[0]) ? [] : {}) : e[t] = B.test(r[0]) ? [] : {}), l(e[t]);
86
+ } else n ? n(e, r[0], o) : e[r[0]] = o;
87
+ };
88
+ l(e);
89
+ })(e, t, o, y);
90
+ }
91
+ function j(e) {
92
+ const t = (0, m.getCurrentInstance)();
93
+ return function(...o) {
94
+ return e(t, ...o);
95
+ };
96
+ }
97
+ function H(e) {
98
+ const t = {
99
+ on: j(e?.emitterWithInstance.on || N),
100
+ off: j(e?.emitterWithInstance.off || v),
101
+ clear: j(e?.emitterWithInstance.clear || v)
102
+ };
103
+ return (0, m.onBeforeUnmount)(t.clear), t;
104
+ }
105
+ function N() {
106
+ return v;
107
+ }
108
+ var D = "2.7" === m.version.slice(0, 3), E = "json-form-wrapper";
109
+ function G() {
110
+ return (0, m.inject)(E);
111
+ }
112
+ function A(e) {
113
+ const t = (0, m.unref)(e), o = (0, m.computed)(() => {
114
+ const { fields: t, field: o } = (0, m.unref)(e), n = t || o, r = (t && t[0] || o).includes(".");
115
+ return {
116
+ field: n,
117
+ isFieldPath: r,
118
+ getValueFunc: r ? F : (e, t) => e[t],
119
+ setValueFunc: r ? R : (e, t, o) => y(e, t, o)
120
+ };
121
+ });
122
+ function n(t) {
123
+ const { fields: n } = (0, m.unref)(e), { field: r, getValueFunc: l } = o.value;
124
+ return n ? n.map((e) => l(t, e)).filter(P) : l(t, r);
125
+ }
126
+ function r(t, n) {
127
+ const { fields: r } = (0, m.unref)(e), { field: l, setValueFunc: a } = o.value;
128
+ return r ? r.forEach((e, o) => a(n, e, t?.[o])) : a(n, l, t), !0;
129
+ }
130
+ function l(t) {
131
+ const o = c.value;
132
+ let n;
133
+ const l = (C(t) || g(t) && !t.length) && !C(n = p("defaultValue")) ? n : t;
134
+ return l === o ? (0, m.unref)(e).defaultValueConflictCallback(l, c) : r(l, (0, m.unref)(e).query), !0;
135
+ }
136
+ const a = [], s = G(), i = (0, m.ref)({});
137
+ (0, m.watch)(() => (0, m.unref)(e).initialValue, (e) => i.value.initialValue = e, { immediate: !0 }), (0, m.watch)(() => (0, m.unref)(e).defaultValue, (e) => i.value.defaultValue = e, { immediate: !0 });
138
+ const p = (t) => {
139
+ const o = i.value[t], { query: n } = (0, m.unref)(e);
140
+ return "function" == typeof o ? o({ query: n }) : o;
141
+ }, c = (0, m.computed)({
142
+ get: function() {
143
+ return n((0, m.unref)(e).query);
144
+ },
145
+ set: l
146
+ }), d = t.fields?.length ? (u = n(t.query)).length ? u : void 0 : n(t.query);
147
+ var u;
148
+ null == d && (void 0 !== t.defaultValue || void 0 !== t.initialValue) && l(p("initialValue"));
149
+ const f = (0, m.ref)([]), h = (0, m.ref)(!1), b = (0, m.computed)(() => f.value.length ? f.value : (0, m.unref)(e).options);
150
+ a.push((0, m.watch)(b, (t) => s && (s.options[(0, m.unref)(e).field] = t), { immediate: !0 }));
151
+ const k = {
152
+ get field() {
153
+ return (0, m.unref)(e).field;
154
+ },
155
+ reset(e) {
156
+ const t = p("initialValue");
157
+ e ? r(void 0 === t ? p("defaultValue") : t, e) : c.value = t, V();
158
+ },
159
+ get validator() {
160
+ return (0, m.unref)(e).validator;
161
+ },
162
+ onBackfillChange: (t, o, n) => {
163
+ n && (0, m.unref)(e).hooks?.backfillChange?.(t, o, {
164
+ plain: j,
165
+ props: (0, m.unref)(e)
166
+ });
167
+ },
168
+ onModelChange: (e, t) => {
169
+ V();
170
+ },
171
+ trySetDefaultValue(e) {
172
+ let t;
173
+ const o = n(e);
174
+ return !(!(C(o) || g(o) && !o.length) || C(t = p("defaultValue"))) && (r(t, e), !0);
175
+ }
176
+ };
177
+ function x(e, t, o) {
178
+ if (!e.includes(".")) return void delete t[e];
179
+ if (!o) return;
180
+ const n = e.split(".");
181
+ F(t, n.slice(0, -1).join(".")) === o && delete o[n[n.length - 1]];
182
+ }
183
+ s?.register(k), (0, m.onBeforeUnmount)(() => {
184
+ a.forEach((e) => e());
185
+ const { field: t } = o.value, { query: n, parentQuery: r } = (0, m.unref)(e);
186
+ "string" == typeof t ? x(t, n, r) : t.forEach((e) => x(e, n, r));
187
+ });
188
+ const { flag: w, updateFlag: V } = function(e = !0) {
189
+ const t = (0, m.ref)(e);
190
+ return {
191
+ flag: t,
192
+ updateFlag: () => {
193
+ t.value = !e, (0, m.nextTick)(() => {
194
+ t.value = e;
195
+ });
196
+ }
197
+ };
198
+ }(!0);
199
+ async function O(t, o) {
200
+ const n = (0, m.unref)(e);
201
+ if (!n.getOptions) return;
202
+ h.value = !0;
203
+ const r = n.getOptions((e) => {
204
+ o?.callback?.(e), f.value = e || [], h.value = !1;
205
+ }, n.query || {}, {
206
+ trigger: t,
207
+ ...o,
208
+ options: (0, m.toRaw)(s?.options) || {},
209
+ changeInitialValue(e) {
210
+ return i.value.initialValue = e, this;
211
+ },
212
+ changeDefaultValue(e) {
213
+ return i.value.defaultValue = e, this;
214
+ },
215
+ change(e, t) {
216
+ return t?.updateDefaultValue && (i.value.defaultValue = e), t?.updateInitialValue && (i.value.initialValue = e), V(), B(e), this;
217
+ },
218
+ search(e, t) {
219
+ return t?.updateDefaultValue && (i.value.defaultValue = e), t?.updateInitialValue && (i.value.initialValue = e), V(), B(e), !s?.realtime.value && s?.search(), this;
220
+ }
221
+ });
222
+ r && (await r, h.value = !1);
223
+ }
224
+ function B(e) {
225
+ c.value = e;
226
+ }
227
+ V(), a.push((0, m.watch)(() => {
228
+ const t = (0, m.unref)(e);
229
+ if (!t.depend) return [!1];
230
+ const o = t.dependFields;
231
+ if (!o?.length) return [!1];
232
+ const n = t.query, r = "string" == typeof o ? o : 1 === o.length ? o[0] : null;
233
+ return [
234
+ !0,
235
+ t.uniqueValue,
236
+ r ? F(n, r) : o.map((e) => F(n, e)),
237
+ r || o
238
+ ];
239
+ }, ([t, o, n, r], l) => {
240
+ const [a, s, i] = l || [];
241
+ if (o !== s) return;
242
+ if (!t) return;
243
+ const p = (0, m.unref)(e);
244
+ ("string" == typeof r ? n === i : n.every((e, t) => e === i[t])) || (w.value && ("boolean" == typeof p.resetByDependValueChange ? p.resetByDependValueChange : p.resetByDependValueChange(p.query)) && B(void 0), (0, m.nextTick)(O.bind(null, "depend")), p.hooks?.dependChange?.({
245
+ plain: j,
246
+ props: p
247
+ }));
248
+ }, t.dependWatchOption)), a.push((0, m.watch)(() => {
249
+ const t = (0, m.unref)(e);
250
+ if (!t.optionsDepend || !s) return [!1, t.uniqueValue];
251
+ let o = t.optionsDependFields || t.dependFields;
252
+ return "object" == typeof o && 1 === o.length && (o = o[0]), o?.length ? [
253
+ !0,
254
+ t.uniqueValue,
255
+ "string" == typeof o ? s.options[o] : o.map((e) => s.options[e]),
256
+ o
257
+ ] : [!1, t.uniqueValue];
258
+ }, ([o, n, r, l], [a, s, i]) => {
259
+ n === s && o && ("string" == typeof l && r === i || r.length === i?.length && r.every((e, t) => e === i[t]) || ((0, m.nextTick)(O.bind(null, "depend")), t.hooks?.optionsDependChange?.({
260
+ plain: j,
261
+ props: (0, m.unref)(e)
262
+ })));
263
+ })), a.push((0, m.watch)(() => (0, m.unref)(e).getOptions, async () => O("initial"))), (0, m.nextTick)(O.bind(null, "initial"));
264
+ const S = H(s), j = {
265
+ coverProps: i,
266
+ wrapper: s,
267
+ option: k,
268
+ loading: h,
269
+ getOptions: O,
270
+ checked: c,
271
+ remoteOption: f,
272
+ finalOption: b,
273
+ change: B,
274
+ search: s?.search || v,
275
+ reset: k.reset,
276
+ globalReadonly: s?.readonly || (0, m.ref)(!1),
277
+ globalDisabled: s?.disabled || (0, m.ref)(!1),
278
+ ...S
279
+ };
280
+ return t.hooks?.created?.({
281
+ plain: j,
282
+ props: (0, m.unref)(e),
283
+ wrapper: s,
284
+ ...S
285
+ }), j;
286
+ }
287
+ var I = {
288
+ field: {
289
+ type: String,
290
+ required: !0
291
+ },
292
+ fields: { type: [Array] },
293
+ query: {
294
+ type: Object,
295
+ required: !0
296
+ },
297
+ parentQuery: { type: Object },
298
+ depend: {
299
+ type: Boolean,
300
+ default: void 0
301
+ },
302
+ resetByDependValueChange: {
303
+ type: [Boolean, Function],
304
+ default: !0
305
+ },
306
+ dependFields: { type: [String, Array] },
307
+ dependWatchOption: { type: [Object] },
308
+ optionsDepend: { type: Boolean },
309
+ optionsDependFields: { type: [String, Array] },
310
+ validator: { type: [Function] },
311
+ initialValue: {
312
+ type: [
313
+ String,
314
+ Number,
315
+ Boolean,
316
+ Function,
317
+ Array,
318
+ Object
319
+ ],
320
+ default: void 0
321
+ },
322
+ defaultValue: {
323
+ type: [
324
+ String,
325
+ Number,
326
+ Boolean,
327
+ Function,
328
+ Array,
329
+ Object
330
+ ],
331
+ default: void 0
332
+ },
333
+ defaultValueConflictCallback: {
334
+ type: Function,
335
+ default: v
336
+ },
337
+ options: {
338
+ type: Array,
339
+ default: () => []
340
+ },
341
+ getOptions: { type: Function },
342
+ uniqueValue: { type: [String, Number] },
343
+ hooks: {
344
+ type: [Object],
345
+ default: void 0
346
+ }
347
+ };
348
+ function _(e, t) {
349
+ const o = t?.modelField || "model", n = function() {
350
+ let e = {};
351
+ function t(t, o, n) {
352
+ e[o] && (n ? e[o] = e[o].filter(([e, o]) => e !== t && o !== n) : t ? e[o] = e[o].filter(([e]) => e !== t) : delete e[o]);
353
+ }
354
+ function o(o) {
355
+ o ? Object.keys(e).forEach((e) => t(o, e)) : e = {};
356
+ }
357
+ return (0, m.onBeforeUnmount)(o), {
358
+ on: function(o, n, r) {
359
+ return e[n] || (e[n] = []), e[n].push([o, r]), () => t(o, n, r);
360
+ },
361
+ off: t,
362
+ emit: function(t, ...o) {
363
+ return e[t]?.map(([e, t]) => t(...o)) || [];
364
+ },
365
+ clear: o
366
+ };
367
+ }(), r = H({ emitterWithInstance: n }), l = [];
368
+ (0, m.onBeforeUnmount)(() => l.splice(0));
369
+ const a = /* @__PURE__ */ new Set(), s = (0, m.reactive)({}), i = {
370
+ readonly: (0, m.toRef)(e, "readonly", !1),
371
+ disabled: (0, m.toRef)(e, "disabled", !1),
372
+ realtime: (0, m.toRef)(e, "realtime", !1),
373
+ formRef: t?.formRef,
374
+ reset: v,
375
+ register(e) {
376
+ e.field && a.add(e.field), l.push(e);
377
+ const t = () => {
378
+ e.field && a.delete(e.field);
379
+ const t = l.indexOf(e);
380
+ -1 !== t && l.splice(t, 1);
381
+ }, o = (0, m.getCurrentInstance)();
382
+ return o && (0, m.onBeforeUnmount)(t, D ? o.proxy : o), t;
383
+ },
384
+ beforeUpdateQueryValue() {
385
+ c = !1;
386
+ },
387
+ afterUpdateQueryValue() {
388
+ (0, m.nextTick)(() => {
389
+ c = !0;
390
+ });
391
+ },
392
+ search: h,
393
+ options: s,
394
+ emitterWithInstance: n,
395
+ emitter: r
396
+ };
397
+ (0, m.provide)(E, i);
398
+ const p = (0, m.ref)(e[o] || { ...e.backfill });
399
+ let c = !0;
400
+ (0, m.onMounted)(() => {
401
+ (0, m.watch)(() => e.realtime && !e[o] && { ...p.value }, (e) => {
402
+ e && c && i.search();
403
+ });
404
+ });
405
+ const d = () => ({ ...u = { ...p.value } });
406
+ let u = null, f = {};
407
+ (0, m.watch)(() => {
408
+ const { backfill: t } = e;
409
+ if (!t) return [f = {}, !1];
410
+ const o = Object.entries(t);
411
+ let n = !!f && Object.keys(f).length === o.length && !!o.length, r = !!u && Object.keys(u).length === o.length;
412
+ return [
413
+ f = o.reduce((e, [t, o]) => (e[t] = o, n &&= e[t] === f[t], r &&= e[t] === u[t], e), {}),
414
+ n || r,
415
+ u = null
416
+ ];
417
+ }, ([o, n], [r]) => {
418
+ if (n) return;
419
+ const a = Object.keys(o), s = Object.keys(p.value);
420
+ let c = s.length === a.length;
421
+ if (s.forEach((e) => {
422
+ var t, n;
423
+ c &&= p.value[e] === o[e], t = o, n = e, (Object.hasOwn ? Object.hasOwn(t, n) : t.hasOwnProperty(n)) || delete p.value[e];
424
+ }), !a.length) return v();
425
+ if (c) return;
426
+ const d = {};
427
+ let u = !1;
428
+ a.forEach((e) => {
429
+ o[e] !== p.value[e] && (d[e] = o[e], u = !0);
430
+ }), u && Object.assign(p.value, d);
431
+ let m, f = !1;
432
+ l.forEach((e) => {
433
+ e.onBackfillChange?.(o, r, u), m = e.trySetDefaultValue(p.value), f ||= m;
434
+ }), u && (e.onBackfillChange || t?.onBackfillChange) && T(e.onBackfillChange || t.onBackfillChange, o, r, k), f || (i.beforeUpdateQueryValue(), i.afterUpdateQueryValue());
435
+ }), (0, m.watch)(() => e[o], (e, t) => {
436
+ if (e) {
437
+ if (p.value = e, !Object.keys(e).length) return v(p.value);
438
+ l.forEach((o) => {
439
+ o.onModelChange?.(e, t), o.trySetDefaultValue(p.value);
440
+ });
441
+ }
442
+ }), (0, m.watch)([() => e.shallowWatchModel && e[o] && { ...e[o] }, () => e.shallowWatchModel && e[o]], ([e, t], [o, n]) => {
443
+ if (!e || !o || t !== n) return;
444
+ let r = 0, s = 0;
445
+ Object.keys(e).forEach((t) => {
446
+ e[t] !== o[t] && (a.has(t) ? ++r : s || (s = ++r));
447
+ }), r > 1 && l.forEach((t) => t.onModelChange?.(e, o));
448
+ });
449
+ let y = 0;
450
+ async function h() {
451
+ const o = ++y, n = b(), r = await ("function" == typeof n?.then ? n : Promise.resolve(n));
452
+ o === y && (r ? e.toast?.(r) : (e.onSearch || t?.onSearch) && T(e.onSearch || t.onSearch, d()));
453
+ }
454
+ function v(e) {
455
+ const t = n.emit("reset");
456
+ l.forEach((t, o, n) => n[n.length - 1 - o].reset(e)), t.forEach((e) => "function" == typeof e && e());
457
+ }
458
+ function b() {
459
+ let e, t = !1, o = l.map((o) => (e = o.validator?.(p.value), t || (t = "function" == typeof e?.then), e));
460
+ return t ? Promise.all(o).then(g) : g(o);
461
+ }
462
+ function g(t) {
463
+ return t.find((e) => e && "string" == typeof e) || e.validator?.(p.value);
464
+ }
465
+ const k = {
466
+ child: l,
467
+ wrapperInstance: i,
468
+ query: p,
469
+ getQuery: d,
470
+ search: h,
471
+ reset: v,
472
+ validateToast: b
473
+ };
474
+ return k;
475
+ }
476
+ function T(e, ...t) {
477
+ if (e) return "function" == typeof e ? e(...t) : e.forEach((e) => e(...t));
478
+ }
479
+ var L = {
480
+ realtime: {
481
+ type: Boolean,
482
+ default: void 0
483
+ },
484
+ backfill: { type: Object },
485
+ onBackfillChange: { type: [Function, Array] },
486
+ model: { type: Object },
487
+ shallowWatchModel: {
488
+ type: Boolean,
489
+ default: void 0
490
+ },
491
+ validator: {
492
+ type: Function,
493
+ default: void 0
494
+ },
495
+ toast: {
496
+ type: Function,
497
+ default: void 0
498
+ },
499
+ readonly: {
500
+ type: Boolean,
501
+ default: void 0
502
+ },
503
+ disabled: {
504
+ type: Boolean,
505
+ default: void 0
506
+ },
507
+ onSearch: { type: [Function, Array] }
508
+ }, q = /-\w/g;
509
+ function U(e, t, o) {
510
+ return { slotProps: (0, i.computed)(() => ({
511
+ props: e,
512
+ plain: o
513
+ })) };
514
+ }
515
+ function K() {
516
+ return {
517
+ disabled: {
518
+ type: Boolean,
519
+ default: void 0
520
+ },
521
+ readonly: {
522
+ type: Boolean,
523
+ default: void 0
524
+ },
525
+ hide: {
526
+ type: Boolean,
527
+ default: void 0
528
+ },
529
+ slots: { type: Object }
530
+ };
531
+ }
532
+ u.Field.props;
533
+ var $ = K();
534
+ function M() {
535
+ return {
536
+ ...$,
537
+ ...I,
538
+ options: { type: [Object, Array] },
539
+ areaProps: { type: Object },
540
+ areaOn: {
541
+ type: Object,
542
+ default: () => ({})
543
+ },
544
+ areaSlots: { type: Object },
545
+ isLink: {
546
+ type: Boolean,
547
+ default: !0
548
+ },
549
+ onRowClick: { type: Function },
550
+ separator: {
551
+ type: String,
552
+ default: "/"
553
+ },
554
+ showAllLevels: {
555
+ type: Boolean,
556
+ default: !0
557
+ },
558
+ format: { type: Function },
559
+ valueTrigger: {
560
+ type: String,
561
+ default: "confirm"
562
+ },
563
+ popupProps: { type: Object },
564
+ popupOn: {
565
+ type: Object,
566
+ default: () => ({})
567
+ }
568
+ };
569
+ }
570
+ var W = M(), Q = {
571
+ ...u.Field.props,
572
+ ...W
573
+ };
574
+ function z() {
575
+ return {};
576
+ }
577
+ var Y = {}, J = {
578
+ ...u.Field.emits,
579
+ ...Y
580
+ }, X = (e, t) => {
581
+ const o = e.__vccOpts || e;
582
+ for (const [e, n] of t) o[e] = n;
583
+ return o;
584
+ };
585
+ var Z = X((0, i.defineComponent)({
586
+ name: "HArea",
587
+ components: {
588
+ VanArea: u.Area,
589
+ VanField: u.Field,
590
+ VanPopup: u.Popup
591
+ },
592
+ inheritAttrs: !1,
593
+ props: W,
594
+ emits: Y,
595
+ slots: Object,
596
+ setup(e, t) {
597
+ const o = A(e), { slotProps: n } = U(e, 0, o), r = (0, i.computed)(() => {
598
+ const t = o.checked.value;
599
+ if (!t) return "";
600
+ const { format: n, showAllLevels: r, separator: l } = e, a = e.areaProps?.areaList || o.finalOption.value;
601
+ if (n) return n({
602
+ source: a,
603
+ value: t,
604
+ showAllLevels: r,
605
+ separator: l
606
+ });
607
+ const s = [];
608
+ return a.province_list && s.push(a.province_list[`${t.slice(0, 2)}0000`]), t.length >= 4 && a.city_list && s.push(a.city_list[`${t.slice(0, 4)}00`]), t.length >= 6 && a.county_list && s.push(a.county_list[t]), s.filter(Boolean).join(l);
609
+ });
610
+ function l(t, n) {
611
+ switch ((e.valueTrigger === t || !1 === e.areaProps?.showToolbar) && o.change(n.selectedValues.slice(-1)[0]), t) {
612
+ case "confirm":
613
+ case "cancel": a.value.close();
614
+ }
615
+ }
616
+ const a = (0, i.ref)({
617
+ visible: !1,
618
+ open() {
619
+ a.value.visible = !0;
620
+ },
621
+ close() {
622
+ a.value.visible = !1;
623
+ }
624
+ });
625
+ return {
626
+ hyphenate: V,
627
+ getNode: x,
628
+ ...o,
629
+ slotProps: n,
630
+ showText: r,
631
+ clickHandle: function(t) {
632
+ o.globalDisabled.value || e.disabled || o.globalReadonly.value || e.readonly || (e.onRowClick ? e.onRowClick(a.value, t) : a.value.open());
633
+ },
634
+ changeHandle: l.bind(null, "change"),
635
+ confirmHandle: l.bind(null, "confirm"),
636
+ cancelHandle: l.bind(null, "cancel"),
637
+ popupInfo: a
638
+ };
639
+ }
640
+ }), [["render", function(e, t, o, n, r, l) {
641
+ const a = (0, i.resolveComponent)("VanArea"), s = (0, i.resolveComponent)("VanPopup"), p = (0, i.resolveComponent)("VanField");
642
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(p, (0, i.mergeProps)({
643
+ key: 0,
644
+ name: e.field,
645
+ disabled: e.globalDisabled || e.disabled,
646
+ readonly: !0,
647
+ "is-link": e.isLink,
648
+ "model-value": e.showText
649
+ }, e.$attrs, { onClick: e.clickHandle }), (0, i.createSlots)({
650
+ extra: (0, i.withCtx)(() => [(0, i.createVNode)(s, (0, i.mergeProps)({
651
+ show: e.popupInfo.visible,
652
+ "onUpdate:show": t[0] || (t[0] = (t) => e.popupInfo.visible = t),
653
+ teleport: "body",
654
+ round: "",
655
+ position: "bottom"
656
+ }, e.popupProps, (0, i.toHandlers)(e.popupOn), { onClose: e.popupInfo.close }), {
657
+ default: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
658
+ "model-value": e.checked,
659
+ "area-list": e.finalOption
660
+ }, e.areaProps, (0, i.toHandlers)(e.areaOn), {
661
+ onChange: e.changeHandle,
662
+ onConfirm: e.confirmHandle,
663
+ onCancel: e.cancelHandle
664
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.areaSlots, (t, o) => ({
665
+ name: e.hyphenate(o),
666
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
667
+ }))]), 1040, [
668
+ "model-value",
669
+ "area-list",
670
+ "onChange",
671
+ "onConfirm",
672
+ "onCancel"
673
+ ])]),
674
+ _: 1
675
+ }, 16, ["show", "onClose"])]),
676
+ _: 2
677
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
678
+ name: e.hyphenate(o),
679
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
680
+ }))]), 1040, [
681
+ "name",
682
+ "disabled",
683
+ "is-link",
684
+ "model-value",
685
+ "onClick"
686
+ ]));
687
+ }]]), ee = {
688
+ t: { type: String },
689
+ rules: { type: [Array, Object] },
690
+ name: { type: [String] },
691
+ type: { type: String },
692
+ rows: { type: [Number, String] },
693
+ disabled: { type: [Boolean] },
694
+ readonly: { type: [Boolean] },
695
+ label: { type: [String] }
696
+ }, te = {};
697
+ var oe = X((0, i.defineComponent)({
698
+ name: "HInputSlot",
699
+ components: {},
700
+ inheritAttrs: !1,
701
+ props: ee,
702
+ emits: te,
703
+ setup(e, t) {
704
+ const o = (0, i.ref)(), n = (0, i.computed)(() => {
705
+ const { rows: o, label: n, disabled: r, readonly: l } = e;
706
+ return {
707
+ ...t.attrs,
708
+ rows: void 0 !== o ? +o : void 0,
709
+ "aria-labelledby": n ? "-label" : void 0,
710
+ "data-allow-mismatch": "attribute",
711
+ class: "van-field__control",
712
+ disabled: r,
713
+ readonly: l
714
+ };
715
+ });
716
+ const r = () => {
717
+ const t = o.value;
718
+ "textarea" === e.type && e.autosize && t && function(e, t) {
719
+ const o = s();
720
+ e.style.height = "auto";
721
+ let n = e.scrollHeight;
722
+ if (r = t, null !== r && "object" == typeof r) {
723
+ const { maxHeight: e, minHeight: o } = t;
724
+ void 0 !== e && (n = Math.min(n, e)), void 0 !== o && (n = Math.max(n, o));
725
+ }
726
+ var r;
727
+ n && (e.style.height = `${n}px`, p(o));
728
+ }(t, e.autosize);
729
+ };
730
+ const l = !!("undefined" != typeof window) && /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());
731
+ function a(e, t) {
732
+ "scrollTop" in e ? e.scrollTop = t : e.scrollTo(e.scrollX, t);
733
+ }
734
+ function s() {
735
+ return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
736
+ }
737
+ function p(e) {
738
+ a(window, e), a(document.body, e);
739
+ }
740
+ return {
741
+ inputRef: o,
742
+ inputAttrs: n,
743
+ focusHandle: function(t) {
744
+ (0, i.nextTick)(r), e.readonly && o.value?.blur();
745
+ },
746
+ blurHandle: function() {
747
+ e.readonly || ((0, i.nextTick)(r), l && p(s()));
748
+ },
749
+ keypressHandle: function(e) {}
750
+ };
751
+ }
752
+ }), [["render", function(e, t, o, n, r, l) {
753
+ return "textarea" === e.type ? ((0, i.openBlock)(), (0, i.createElementBlock)("textarea", (0, i.mergeProps)({
754
+ key: 0,
755
+ ref: "inputRef"
756
+ }, e.inputAttrs, {
757
+ onFocus: t[0] || (t[0] = (...t) => e.focusHandle && e.focusHandle(...t)),
758
+ onBlur: t[1] || (t[1] = (...t) => e.blurHandle && e.blurHandle(...t)),
759
+ onKeypress: t[2] || (t[2] = (...t) => e.keypressHandle && e.keypressHandle(...t))
760
+ }), null, 16)) : ((0, i.openBlock)(), (0, i.createElementBlock)("input", (0, i.mergeProps)({
761
+ key: 1,
762
+ ref: "inputRef"
763
+ }, e.inputAttrs, {
764
+ onFocus: t[3] || (t[3] = (...t) => e.focusHandle && e.focusHandle(...t)),
765
+ onBlur: t[4] || (t[4] = (...t) => e.blurHandle && e.blurHandle(...t)),
766
+ onKeypress: t[5] || (t[5] = (...t) => e.keypressHandle && e.keypressHandle(...t))
767
+ }), null, 16));
768
+ }]]);
769
+ function ne(e, t, o = "children") {
770
+ const n = [];
771
+ return re(e, t, (e) => {
772
+ n.unshift(e);
773
+ }, o), n;
774
+ }
775
+ function re(e, t, o, n = "children") {
776
+ const r = Object.entries(t);
777
+ for (const l of e) {
778
+ if (r.every(([e, t]) => t === l[e])) return o(l, !0), !0;
779
+ if (l[n] && l[n].length && re(l[n], t, o, n)) return o(l), !0;
780
+ }
781
+ }
782
+ function le() {
783
+ return {
784
+ ...$,
785
+ ...I,
786
+ label: { type: String },
787
+ placeholder: { type: String },
788
+ isLink: {
789
+ type: Boolean,
790
+ default: !0
791
+ },
792
+ checkStrictly: {
793
+ type: Boolean,
794
+ default: void 0
795
+ },
796
+ showAllLevels: {
797
+ type: Boolean,
798
+ default: void 0
799
+ },
800
+ emitPath: {
801
+ type: Boolean,
802
+ default: void 0
803
+ },
804
+ onRowClick: { type: Function },
805
+ cascaderProps: {
806
+ type: Object,
807
+ default: () => ({})
808
+ },
809
+ cascaderOn: {
810
+ type: Object,
811
+ default: () => ({})
812
+ },
813
+ cascaderSlots: { type: Object },
814
+ popupProps: { type: Object },
815
+ popupOn: {
816
+ type: Object,
817
+ default: () => ({})
818
+ }
819
+ };
820
+ }
821
+ var ae = le(), se = {
822
+ ...u.Field.props,
823
+ ...ae
824
+ };
825
+ function ie() {
826
+ return {};
827
+ }
828
+ var pe = {}, ce = {
829
+ ...u.Field.emits,
830
+ ...pe
831
+ };
832
+ var de = X((0, i.defineComponent)({
833
+ name: "HCascader",
834
+ components: {
835
+ VanCascader: u.Cascader,
836
+ VanField: u.Field,
837
+ VanPopup: u.Popup,
838
+ HInputSlot: oe
839
+ },
840
+ inheritAttrs: !1,
841
+ props: ae,
842
+ emits: pe,
843
+ slots: Object,
844
+ setup(e, t) {
845
+ const o = A(e), n = (0, i.computed)(() => {
846
+ const e = o.checked.value;
847
+ return Array.isArray(e) ? e[e.length - 1] : e;
848
+ }), r = (0, i.computed)(() => {
849
+ const t = n.value, r = o.finalOption.value;
850
+ if (!t || !r.length) return "";
851
+ const { labelKey: l, valueKey: s, children: i } = a.value, p = ne(r, { [s]: t }, i);
852
+ return p.length ? e.showAllLevels ? p.map((e) => e[l]).join("/") : p[p.length - 1][l] : "";
853
+ }), { slotProps: l } = U(e, 0, o), a = (0, i.computed)(() => {
854
+ const t = e.cascaderProps?.fieldNames || {};
855
+ return {
856
+ labelKey: t.text || "text",
857
+ valueKey: t.value || "value",
858
+ children: t.children || "children"
859
+ };
860
+ });
861
+ function s(t) {
862
+ const { valueKey: n } = a.value;
863
+ e.emitPath ? o.change(t.selectedOptions.map((e) => e[n])) : o.change(t.value);
864
+ }
865
+ const p = (0, i.ref)({
866
+ visible: !1,
867
+ open() {
868
+ p.value.visible = !0;
869
+ },
870
+ close() {
871
+ p.value.visible = !1;
872
+ }
873
+ });
874
+ return {
875
+ hyphenate: V,
876
+ getNode: x,
877
+ ...o,
878
+ slotProps: l,
879
+ fieldInfo: a,
880
+ lastCheckedValue: n,
881
+ showText: r,
882
+ clickHandle: function(t) {
883
+ o.globalDisabled.value || e.disabled || o.globalReadonly.value || e.readonly || (e.onRowClick ? e.onRowClick(p.value, t) : p.value.open());
884
+ },
885
+ change: function(t) {
886
+ e.checkStrictly && s(t);
887
+ },
888
+ finish: function(t) {
889
+ e.checkStrictly || s(t);
890
+ },
891
+ setValue: s,
892
+ popupInfo: p
893
+ };
894
+ }
895
+ }), [["render", function(e, t, o, n, r, l) {
896
+ const a = (0, i.resolveComponent)("HInputSlot"), s = (0, i.resolveComponent)("VanCascader"), p = (0, i.resolveComponent)("VanPopup"), c = (0, i.resolveComponent)("VanField");
897
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(c, (0, i.mergeProps)({
898
+ key: 0,
899
+ name: e.field,
900
+ label: e.label,
901
+ disabled: e.globalDisabled || e.disabled,
902
+ readonly: !0,
903
+ placeholder: e.placeholder,
904
+ "model-value": e.lastCheckedValue,
905
+ "is-link": e.isLink
906
+ }, e.$attrs, { onClick: e.clickHandle }), (0, i.createSlots)({
907
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
908
+ value: e.showText,
909
+ placeholder: e.placeholder,
910
+ disabled: e.globalDisabled || e.disabled,
911
+ readonly: e.globalReadonly || e.readonly
912
+ }, e.$attrs), null, 16, [
913
+ "value",
914
+ "placeholder",
915
+ "disabled",
916
+ "readonly"
917
+ ])]),
918
+ extra: (0, i.withCtx)(() => [(0, i.createVNode)(p, (0, i.mergeProps)({
919
+ show: e.popupInfo.visible,
920
+ "onUpdate:show": t[0] || (t[0] = (t) => e.popupInfo.visible = t),
921
+ teleport: "body",
922
+ round: "",
923
+ position: "bottom"
924
+ }, e.popupProps, (0, i.toHandlers)(e.popupOn), { onClose: e.popupInfo.close }), {
925
+ default: (0, i.withCtx)(() => [(0, i.createVNode)(s, (0, i.mergeProps)({
926
+ title: e.cascaderProps.title || e.label,
927
+ placeholder: e.cascaderProps.placeholder || e.placeholder,
928
+ "model-value": e.lastCheckedValue,
929
+ options: e.finalOption
930
+ }, e.cascaderProps, (0, i.toHandlers)(e.cascaderOn), {
931
+ onChange: e.change,
932
+ onFinish: e.finish,
933
+ onClose: e.popupInfo.close
934
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.cascaderSlots, (t, o) => ({
935
+ name: e.hyphenate(o),
936
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
937
+ }))]), 1040, [
938
+ "title",
939
+ "placeholder",
940
+ "model-value",
941
+ "options",
942
+ "onChange",
943
+ "onFinish",
944
+ "onClose"
945
+ ])]),
946
+ _: 1
947
+ }, 16, ["show", "onClose"])]),
948
+ _: 2
949
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
950
+ name: e.hyphenate(o),
951
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
952
+ }))]), 1040, [
953
+ "name",
954
+ "label",
955
+ "disabled",
956
+ "placeholder",
957
+ "model-value",
958
+ "is-link",
959
+ "onClick"
960
+ ]));
961
+ }]]);
962
+ function ue() {
963
+ return {
964
+ ...$,
965
+ ...I,
966
+ label: { type: String },
967
+ checkboxGroupProps: { type: Object },
968
+ checkboxGroupOn: {
969
+ type: Object,
970
+ default: () => ({})
971
+ },
972
+ labelKey: {
973
+ type: String,
974
+ default: "label"
975
+ },
976
+ valueKey: {
977
+ type: String,
978
+ default: "value"
979
+ },
980
+ checkboxProps: { type: Object },
981
+ checkboxOn: {
982
+ type: Object,
983
+ default: () => ({})
984
+ },
985
+ checkboxSlots: { type: Object }
986
+ };
987
+ }
988
+ var me = ue(), fe = {
989
+ ...u.Field.props,
990
+ ...me
991
+ };
992
+ function ye() {
993
+ return {};
994
+ }
995
+ var he = {}, ve = {
996
+ ...u.Field.emits,
997
+ ...he
998
+ };
999
+ var be = X((0, i.defineComponent)({
1000
+ name: "HCheckboxGroup",
1001
+ components: {
1002
+ VanCheckbox: u.Checkbox,
1003
+ VanCheckboxGroup: u.CheckboxGroup,
1004
+ VanField: u.Field
1005
+ },
1006
+ inheritAttrs: !1,
1007
+ props: me,
1008
+ emits: he,
1009
+ slots: Object,
1010
+ setup(e, t) {
1011
+ const o = A(e), { slotProps: n } = U(e, 0, o);
1012
+ return {
1013
+ hyphenate: V,
1014
+ getNode: x,
1015
+ ...o,
1016
+ slotProps: n
1017
+ };
1018
+ }
1019
+ }), [["render", function(e, t, o, n, r, l) {
1020
+ const a = (0, i.resolveComponent)("VanCheckbox"), s = (0, i.resolveComponent)("VanCheckboxGroup"), p = (0, i.resolveComponent)("VanField");
1021
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(p, (0, i.mergeProps)({
1022
+ key: 0,
1023
+ name: e.field,
1024
+ label: e.label,
1025
+ disabled: e.globalDisabled || e.disabled,
1026
+ readonly: e.globalReadonly || e.readonly
1027
+ }, e.$attrs), (0, i.createSlots)({
1028
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(s, (0, i.mergeProps)({
1029
+ name: e.field,
1030
+ "model-value": e.checked,
1031
+ disabled: e.globalDisabled || e.disabled || e.globalReadonly || e.readonly
1032
+ }, e.checkboxGroupProps, (0, i.toHandlers)(e.checkboxGroupOn), { "onUpdate:modelValue": e.change }), {
1033
+ default: (0, i.withCtx)(() => [((0, i.openBlock)(!0), (0, i.createElementBlock)(i.Fragment, null, (0, i.renderList)(e.finalOption, (t) => ((0, i.openBlock)(), (0, i.createBlock)(a, (0, i.mergeProps)({
1034
+ key: t[e.valueKey],
1035
+ name: t[e.valueKey]
1036
+ }, { ref_for: !0 }, e.checkboxProps, (0, i.toHandlers)(e.checkboxOn)), (0, i.createSlots)({
1037
+ default: (0, i.withCtx)(() => [(0, i.createTextVNode)((0, i.toDisplayString)(t[e.labelKey]) + " ", 1)]),
1038
+ _: 2
1039
+ }, [(0, i.renderList)(e.checkboxSlots, (o, n) => ({
1040
+ name: e.hyphenate(n),
1041
+ fn: (0, i.withCtx)((n) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(o)), (0, i.mergeProps)({ ref_for: !0 }, e.slotProps, { item: t }, { ref_for: !0 }, n), null, 16, ["item"]))])
1042
+ }))]), 1040, ["name"]))), 128))]),
1043
+ _: 1
1044
+ }, 16, [
1045
+ "name",
1046
+ "model-value",
1047
+ "disabled",
1048
+ "onUpdate:modelValue"
1049
+ ])]),
1050
+ _: 2
1051
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
1052
+ name: e.hyphenate(o),
1053
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1054
+ }))]), 1040, [
1055
+ "name",
1056
+ "label",
1057
+ "disabled",
1058
+ "readonly"
1059
+ ]));
1060
+ }]]);
1061
+ function ge() {
1062
+ return {
1063
+ ...$,
1064
+ ...I,
1065
+ label: { type: String },
1066
+ checkboxProps: { type: Object },
1067
+ checkboxOn: {
1068
+ type: Object,
1069
+ default: () => ({})
1070
+ },
1071
+ checkboxSlots: { type: Object }
1072
+ };
1073
+ }
1074
+ var ke = ge(), Pe = {
1075
+ ...u.Field.props,
1076
+ ...ke
1077
+ };
1078
+ function Ce() {
1079
+ return {};
1080
+ }
1081
+ var xe = {}, we = {
1082
+ ...u.Field.emits,
1083
+ ...xe
1084
+ };
1085
+ var Ve = X((0, i.defineComponent)({
1086
+ name: "HCheckbox",
1087
+ components: {
1088
+ VanCheckbox: u.Checkbox,
1089
+ VanField: u.Field
1090
+ },
1091
+ inheritAttrs: !1,
1092
+ props: ke,
1093
+ emits: xe,
1094
+ slots: Object,
1095
+ setup(e, t) {
1096
+ const o = A(e), { slotProps: n } = U(e, 0, o);
1097
+ return {
1098
+ hyphenate: V,
1099
+ getNode: x,
1100
+ ...o,
1101
+ slotProps: n
1102
+ };
1103
+ }
1104
+ }), [["render", function(e, t, o, n, r, l) {
1105
+ const a = (0, i.resolveComponent)("VanCheckbox"), s = (0, i.resolveComponent)("VanField");
1106
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(s, (0, i.mergeProps)({
1107
+ key: 0,
1108
+ name: e.field,
1109
+ label: e.label,
1110
+ disabled: e.globalDisabled || e.disabled,
1111
+ readonly: e.globalReadonly || e.readonly
1112
+ }, e.$attrs), {
1113
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
1114
+ name: e.field,
1115
+ "model-value": e.checked,
1116
+ disabled: e.globalDisabled || e.disabled || e.globalReadonly || e.readonly
1117
+ }, e.checkboxProps, (0, i.toHandlers)(e.checkboxOn), { "onUpdate:modelValue": e.change }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.checkboxSlots, (t, o) => ({
1118
+ name: e.hyphenate(o),
1119
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1120
+ }))]), 1040, [
1121
+ "name",
1122
+ "model-value",
1123
+ "disabled",
1124
+ "onUpdate:modelValue"
1125
+ ])]),
1126
+ _: 1
1127
+ }, 16, [
1128
+ "name",
1129
+ "label",
1130
+ "disabled",
1131
+ "readonly"
1132
+ ]));
1133
+ }]]);
1134
+ function Oe() {
1135
+ return {
1136
+ ...$,
1137
+ ...I,
1138
+ renderField: {
1139
+ type: Boolean,
1140
+ default: !0
1141
+ },
1142
+ render: {
1143
+ type: [Function, Object],
1144
+ required: !0
1145
+ }
1146
+ };
1147
+ }
1148
+ var Be = Oe(), Se = Be;
1149
+ function Fe() {
1150
+ return {};
1151
+ }
1152
+ var Re = {}, je = Re;
1153
+ var He = X((0, i.defineComponent)({
1154
+ name: "HCustomRender",
1155
+ components: { VanField: u.Field },
1156
+ inheritAttrs: !1,
1157
+ props: Be,
1158
+ emits: Re,
1159
+ slots: Object,
1160
+ setup(e, t) {
1161
+ const o = A(e), { slotProps: n } = U(e, 0, o), r = (0, i.computed)(() => "object" == typeof o.checked.value ? "" : o.checked.value), l = (0, i.ref)();
1162
+ return (0, i.watch)(() => e.render, (e) => {
1163
+ l.value = "function" == typeof e ? x(e(n.value)) : e;
1164
+ }, { immediate: !0 }), {
1165
+ hyphenate: V,
1166
+ getNode: x,
1167
+ ...o,
1168
+ slotProps: n,
1169
+ fieldModelValue: r,
1170
+ customRender: l
1171
+ };
1172
+ }
1173
+ }), [["render", function(e, t, o, n, r, l) {
1174
+ const a = (0, i.resolveComponent)("VanField");
1175
+ return e.renderField ? ((0, i.openBlock)(), (0, i.createElementBlock)(i.Fragment, { key: 0 }, [e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(a, (0, i.mergeProps)({
1176
+ key: 0,
1177
+ "model-value": e.fieldModelValue
1178
+ }, e.$attrs), (0, i.createSlots)({
1179
+ input: (0, i.withCtx)(() => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.customRender), (0, i.normalizeProps)((0, i.guardReactiveProps)(e.slotProps)), null, 16))]),
1180
+ _: 2
1181
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
1182
+ name: e.hyphenate(o),
1183
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1184
+ }))]), 1040, ["model-value"]))], 64)) : ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.customRender), (0, i.normalizeProps)((0, i.mergeProps)({ key: 1 }, e.slotProps)), null, 16));
1185
+ }]]);
1186
+ function Ne() {
1187
+ return {
1188
+ ...$,
1189
+ ...I,
1190
+ datePickerProps: { type: Object },
1191
+ datePickerOn: {
1192
+ type: Object,
1193
+ default: () => ({})
1194
+ },
1195
+ datePickerSlots: { type: Object },
1196
+ isLink: {
1197
+ type: Boolean,
1198
+ default: !0
1199
+ },
1200
+ onRowClick: { type: Function },
1201
+ separator: {
1202
+ type: String,
1203
+ default: "-"
1204
+ },
1205
+ format: {
1206
+ type: Function,
1207
+ default: _e
1208
+ },
1209
+ valueFormat: {
1210
+ type: Function,
1211
+ default: _e
1212
+ },
1213
+ valueUnformat: {
1214
+ type: Function,
1215
+ default: Te
1216
+ },
1217
+ valueTrigger: {
1218
+ type: String,
1219
+ default: "confirm"
1220
+ },
1221
+ popupProps: { type: Object },
1222
+ popupOn: {
1223
+ type: Object,
1224
+ default: () => ({})
1225
+ }
1226
+ };
1227
+ }
1228
+ var De = Ne(), Ee = {
1229
+ ...u.Field.props,
1230
+ ...De
1231
+ };
1232
+ function Ge() {
1233
+ return {};
1234
+ }
1235
+ var Ae = {}, Ie = {
1236
+ ...u.Field.emits,
1237
+ ...Ae
1238
+ };
1239
+ function _e(e, t) {
1240
+ return e.join(t);
1241
+ }
1242
+ function Te(e, t) {
1243
+ return e ? Array.isArray(e) ? e : e.split(t) : [];
1244
+ }
1245
+ var Le = X((0, i.defineComponent)({
1246
+ name: "HDatePicker",
1247
+ components: {
1248
+ VanDatePicker: u.DatePicker,
1249
+ VanField: u.Field,
1250
+ VanPopup: u.Popup
1251
+ },
1252
+ inheritAttrs: !1,
1253
+ props: De,
1254
+ emits: Ae,
1255
+ slots: Object,
1256
+ setup(e, t) {
1257
+ const o = A(e), { slotProps: n } = U(e, 0, o), r = (0, i.ref)(""), l = (0, i.ref)([]);
1258
+ let a;
1259
+ function s(t, n) {
1260
+ switch (e.valueTrigger !== t && !1 !== e.datePickerProps?.showToolbar || (l.value = n.selectedValues, o.change(e.valueFormat(n.selectedValues, e.separator)), r.value = e.format(n.selectedValues, e.separator), a = o.checked.value, (0, i.nextTick)(() => a = null)), t) {
1261
+ case "confirm":
1262
+ case "cancel": p.value.close();
1263
+ }
1264
+ }
1265
+ (0, i.watch)(o.checked, (t) => {
1266
+ if (t === a) return a = null;
1267
+ a = null, l.value = t ? e.valueUnformat(t, e.separator) : [], r.value = l.value.length ? e.format(l.value, e.separator) : "";
1268
+ }, { immediate: !0 });
1269
+ const p = (0, i.ref)({
1270
+ visible: !1,
1271
+ open() {
1272
+ p.value.visible = !0;
1273
+ },
1274
+ close() {
1275
+ p.value.visible = !1;
1276
+ }
1277
+ });
1278
+ return {
1279
+ hyphenate: V,
1280
+ getNode: x,
1281
+ ...o,
1282
+ slotProps: n,
1283
+ showText: r,
1284
+ checkedArr: l,
1285
+ clickHandle: function(t) {
1286
+ o.globalDisabled.value || e.disabled || o.globalReadonly.value || e.readonly || (e.onRowClick ? e.onRowClick(p.value, t) : p.value.open());
1287
+ },
1288
+ changeHandle: s.bind(null, "change"),
1289
+ confirmHandle: s.bind(null, "confirm"),
1290
+ cancelHandle: s.bind(null, "cancel"),
1291
+ popupInfo: p
1292
+ };
1293
+ }
1294
+ }), [["render", function(e, t, o, n, r, l) {
1295
+ const a = (0, i.resolveComponent)("VanDatePicker"), s = (0, i.resolveComponent)("VanPopup"), p = (0, i.resolveComponent)("VanField");
1296
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(p, (0, i.mergeProps)({
1297
+ key: 0,
1298
+ name: e.field,
1299
+ disabled: e.globalDisabled || e.disabled,
1300
+ readonly: !0,
1301
+ "is-link": e.isLink,
1302
+ "model-value": e.showText
1303
+ }, e.$attrs, { onClick: e.clickHandle }), (0, i.createSlots)({
1304
+ extra: (0, i.withCtx)(() => [(0, i.createVNode)(s, (0, i.mergeProps)({
1305
+ show: e.popupInfo.visible,
1306
+ "onUpdate:show": t[0] || (t[0] = (t) => e.popupInfo.visible = t),
1307
+ teleport: "body",
1308
+ round: "",
1309
+ position: "bottom"
1310
+ }, e.popupProps, (0, i.toHandlers)(e.popupOn), { onClose: e.popupInfo.close }), {
1311
+ default: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({ "model-value": e.checkedArr }, e.datePickerProps, (0, i.toHandlers)(e.datePickerOn), {
1312
+ onChange: e.changeHandle,
1313
+ onConfirm: e.confirmHandle,
1314
+ onCancel: e.cancelHandle
1315
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.datePickerSlots, (t, o) => ({
1316
+ name: e.hyphenate(o),
1317
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1318
+ }))]), 1040, [
1319
+ "model-value",
1320
+ "onChange",
1321
+ "onConfirm",
1322
+ "onCancel"
1323
+ ])]),
1324
+ _: 1
1325
+ }, 16, ["show", "onClose"])]),
1326
+ _: 2
1327
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
1328
+ name: e.hyphenate(o),
1329
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1330
+ }))]), 1040, [
1331
+ "name",
1332
+ "disabled",
1333
+ "is-link",
1334
+ "model-value",
1335
+ "onClick"
1336
+ ]));
1337
+ }]]);
1338
+ function qe() {
1339
+ return {
1340
+ ...$,
1341
+ ...I,
1342
+ pickerGroupProps: { type: Object },
1343
+ pickerGroupOn: {
1344
+ type: Object,
1345
+ default: () => ({})
1346
+ },
1347
+ pickerGroupSlots: { type: Object },
1348
+ isLink: {
1349
+ type: Boolean,
1350
+ default: !0
1351
+ },
1352
+ onRowClick: { type: Function },
1353
+ format: {
1354
+ type: Function,
1355
+ default: Qe
1356
+ },
1357
+ valueFormat: {
1358
+ type: Function,
1359
+ default: Qe
1360
+ },
1361
+ valueUnformat: {
1362
+ type: Function,
1363
+ default: ze
1364
+ },
1365
+ valueTrigger: {
1366
+ type: String,
1367
+ default: "confirm"
1368
+ },
1369
+ datePickerProps: { type: Object },
1370
+ datePickerOn: {
1371
+ type: Object,
1372
+ default: () => ({})
1373
+ },
1374
+ datePickerSlots: { type: Object },
1375
+ timePickerProps: { type: Object },
1376
+ timePickerOn: {
1377
+ type: Object,
1378
+ default: () => ({})
1379
+ },
1380
+ timePickerSlots: { type: Object },
1381
+ popupProps: { type: Object },
1382
+ popupOn: {
1383
+ type: Object,
1384
+ default: () => ({})
1385
+ }
1386
+ };
1387
+ }
1388
+ var Ue = qe(), Ke = {
1389
+ ...u.Field.props,
1390
+ ...Ue
1391
+ };
1392
+ function $e() {
1393
+ return {};
1394
+ }
1395
+ var Me = {}, We = {
1396
+ ...u.Field.emits,
1397
+ ...Me
1398
+ };
1399
+ function Qe(e) {
1400
+ const t = [];
1401
+ return e[0] && t.push(e[0].join("-")), e[1] && t.push(e[1].join(":")), t.join(" ");
1402
+ }
1403
+ function ze(e) {
1404
+ if (!e) return [];
1405
+ const [t, o] = e.split(" ");
1406
+ return [t?.split("-"), o?.split(":")].filter(Boolean);
1407
+ }
1408
+ var Ye = X((0, i.defineComponent)({
1409
+ name: "HDateTimePickerGroup",
1410
+ components: {
1411
+ VanPickerGroup: u.PickerGroup,
1412
+ VanField: u.Field,
1413
+ VanPopup: u.Popup,
1414
+ VanDatePicker: u.DatePicker,
1415
+ VanTimePicker: u.TimePicker
1416
+ },
1417
+ inheritAttrs: !1,
1418
+ props: Ue,
1419
+ emits: Me,
1420
+ slots: Object,
1421
+ setup(e, t) {
1422
+ const o = A(e), { slotProps: n } = U(e, 0, o), r = (0, i.ref)(""), l = (0, i.ref)([]), a = (0, i.ref)(), s = (0, i.ref)();
1423
+ let p;
1424
+ function c(t, n) {
1425
+ switch ("change" !== t && n && (l.value = n.map((e) => e.selectedValues)), (e.valueTrigger === t || !1 === e.pickerGroupProps?.showToolbar) && l.value.length >= 2 && (o.change(e.valueFormat(l.value)), r.value = e.format(l.value), p = o.checked.value, (0, i.nextTick)(() => p = null)), t) {
1426
+ case "confirm":
1427
+ case "cancel": d.value.close();
1428
+ }
1429
+ }
1430
+ (0, i.watch)(o.checked, (t) => {
1431
+ if (t === p) return p = null;
1432
+ p = null, l.value = t ? e.valueUnformat(t) : [], r.value = l.value.length ? e.format(l.value) : "";
1433
+ }, { immediate: !0 });
1434
+ const d = (0, i.ref)({
1435
+ visible: !1,
1436
+ open() {
1437
+ d.value.visible = !0;
1438
+ },
1439
+ close() {
1440
+ d.value.visible = !1;
1441
+ }
1442
+ });
1443
+ return {
1444
+ hyphenate: V,
1445
+ getNode: x,
1446
+ ...o,
1447
+ slotProps: n,
1448
+ showText: r,
1449
+ checkedArr: l,
1450
+ datePickerRef: a,
1451
+ timePickerRef: s,
1452
+ clickHandle: function(t) {
1453
+ o.globalDisabled.value || e.disabled || o.globalReadonly.value || e.readonly || (e.onRowClick ? e.onRowClick(d.value, t) : d.value.open());
1454
+ },
1455
+ changeHandle: function(e, t) {
1456
+ l.value[t] = e.selectedValues, c("change");
1457
+ },
1458
+ pickerGroupHandle: c,
1459
+ popupInfo: d
1460
+ };
1461
+ }
1462
+ }), [["render", function(e, t, o, n, r, l) {
1463
+ const a = (0, i.resolveComponent)("VanDatePicker"), s = (0, i.resolveComponent)("VanTimePicker"), p = (0, i.resolveComponent)("VanPickerGroup"), c = (0, i.resolveComponent)("VanPopup"), d = (0, i.resolveComponent)("VanField");
1464
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(d, (0, i.mergeProps)({
1465
+ key: 0,
1466
+ name: e.field,
1467
+ disabled: e.globalDisabled || e.disabled,
1468
+ readonly: !0,
1469
+ "is-link": e.isLink,
1470
+ "model-value": e.showText
1471
+ }, e.$attrs, { onClick: e.clickHandle }), (0, i.createSlots)({
1472
+ extra: (0, i.withCtx)(() => [(0, i.createVNode)(c, (0, i.mergeProps)({
1473
+ show: e.popupInfo.visible,
1474
+ "onUpdate:show": t[4] || (t[4] = (t) => e.popupInfo.visible = t),
1475
+ teleport: "body",
1476
+ round: "",
1477
+ position: "bottom"
1478
+ }, e.popupProps, (0, i.toHandlers)(e.popupOn), { onClose: e.popupInfo.close }), {
1479
+ default: (0, i.withCtx)(() => [(0, i.createVNode)(p, (0, i.mergeProps)(e.pickerGroupProps, (0, i.toHandlers)(e.pickerGroupOn), {
1480
+ onConfirm: t[2] || (t[2] = (t) => e.pickerGroupHandle("confirm", t)),
1481
+ onCancel: t[3] || (t[3] = (t) => e.pickerGroupHandle("cancel", t))
1482
+ }), (0, i.createSlots)({
1483
+ default: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
1484
+ ref: "datePickerRef",
1485
+ "model-value": e.checkedArr[0]
1486
+ }, e.datePickerProps, (0, i.toHandlers)(e.datePickerOn), { onChange: t[0] || (t[0] = (t) => e.changeHandle(t, 0)) }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.datePickerSlots, (t, o) => ({
1487
+ name: e.hyphenate(o),
1488
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1489
+ }))]), 1040, ["model-value"]), (0, i.createVNode)(s, (0, i.mergeProps)({
1490
+ ref: "timePickerRef",
1491
+ "model-value": e.checkedArr[1]
1492
+ }, e.timePickerProps, (0, i.toHandlers)(e.timePickerOn), { onChange: t[1] || (t[1] = (t) => e.changeHandle(t, 1)) }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.timePickerSlots, (t, o) => ({
1493
+ name: e.hyphenate(o),
1494
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1495
+ }))]), 1040, ["model-value"])]),
1496
+ _: 2
1497
+ }, [(0, i.renderList)(e.pickerGroupSlots, (t, o) => ({
1498
+ name: e.hyphenate(o),
1499
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1500
+ }))]), 1040)]),
1501
+ _: 1
1502
+ }, 16, ["show", "onClose"])]),
1503
+ _: 2
1504
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
1505
+ name: e.hyphenate(o),
1506
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1507
+ }))]), 1040, [
1508
+ "name",
1509
+ "disabled",
1510
+ "is-link",
1511
+ "model-value",
1512
+ "onClick"
1513
+ ]));
1514
+ }]]);
1515
+ function Je() {
1516
+ return {
1517
+ ...$,
1518
+ ...I,
1519
+ clearable: {
1520
+ type: Boolean,
1521
+ default: !0
1522
+ },
1523
+ debounceTime: {
1524
+ type: Number,
1525
+ default: 300
1526
+ }
1527
+ };
1528
+ }
1529
+ var Xe = Je(), Ze = {
1530
+ ...u.Field.props,
1531
+ ...Xe
1532
+ };
1533
+ function et() {
1534
+ return {};
1535
+ }
1536
+ var tt = {}, ot = {
1537
+ ...u.Field.emits,
1538
+ ...tt
1539
+ };
1540
+ var nt = X((0, i.defineComponent)({
1541
+ name: "HInput",
1542
+ components: { VanField: u.Field },
1543
+ inheritAttrs: !1,
1544
+ props: Xe,
1545
+ emits: tt,
1546
+ slots: Object,
1547
+ setup(e, t) {
1548
+ const o = A(e), { slotProps: n } = U(e, 0, o), { tempChecked: r, changeSync: l } = function(e) {
1549
+ const t = (0, i.ref)(e.value);
1550
+ return (0, i.watch)(e, (e) => t.value = e), {
1551
+ tempChecked: t,
1552
+ change: function(o) {
1553
+ e.value = t.value = o, t.value !== e.value && (0, i.nextTick)(() => t.value = e.value);
1554
+ },
1555
+ changeSync: function(o) {
1556
+ e.value = o, t.value = e.value;
1557
+ }
1558
+ };
1559
+ }(o.checked), a = (0, i.ref)();
1560
+ let s = 0;
1561
+ return {
1562
+ hyphenate: V,
1563
+ getNode: x,
1564
+ fieldRef: a,
1565
+ ...o,
1566
+ slotProps: n,
1567
+ tempChecked: r,
1568
+ change: function(t) {
1569
+ if (t === r.value) return;
1570
+ const { debounceTime: o } = e;
1571
+ s && clearTimeout(s), r.value = t, o ? s = setTimeout(() => l(r.value), o) : l(t);
1572
+ },
1573
+ enterHandle: function(e) {
1574
+ s && clearTimeout(s), o.checked.value !== r.value && (o.checked.value = r.value), o.wrapper?.search();
1575
+ }
1576
+ };
1577
+ }
1578
+ }), [["render", function(e, t, o, n, r, l) {
1579
+ const a = (0, i.resolveComponent)("VanField");
1580
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(a, (0, i.mergeProps)({ key: 0 }, e.$attrs, {
1581
+ ref: "fieldRef",
1582
+ name: e.field,
1583
+ disabled: e.globalDisabled || e.disabled,
1584
+ readonly: e.globalDisabled || e.readonly,
1585
+ clearable: e.clearable,
1586
+ "model-value": e.tempChecked,
1587
+ "onUpdate:modelValue": e.change,
1588
+ onKeydown: (0, i.withKeys)(e.enterHandle, ["enter"])
1589
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.slots, (t, o) => ({
1590
+ name: e.hyphenate(o),
1591
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1592
+ }))]), 1040, [
1593
+ "name",
1594
+ "disabled",
1595
+ "readonly",
1596
+ "clearable",
1597
+ "model-value",
1598
+ "onUpdate:modelValue",
1599
+ "onKeydown"
1600
+ ]));
1601
+ }]]);
1602
+ function rt() {
1603
+ return {
1604
+ ...$,
1605
+ ...I,
1606
+ numberKeyboardProps: { type: Object },
1607
+ numberKeyboardOn: {
1608
+ type: Object,
1609
+ default: () => ({})
1610
+ },
1611
+ numberKeyboardSlots: { type: Object },
1612
+ isLink: {
1613
+ type: Boolean,
1614
+ default: !0
1615
+ },
1616
+ onRowClick: { type: Function }
1617
+ };
1618
+ }
1619
+ var lt = rt(), at = {
1620
+ ...u.Field.props,
1621
+ ...lt
1622
+ };
1623
+ function st() {
1624
+ return {};
1625
+ }
1626
+ var it = {}, pt = {
1627
+ ...u.Field.emits,
1628
+ ...it
1629
+ };
1630
+ var ct = X((0, i.defineComponent)({
1631
+ name: "HNumberKeyboard",
1632
+ components: {
1633
+ VanField: u.Field,
1634
+ VanNumberKeyboard: u.NumberKeyboard
1635
+ },
1636
+ inheritAttrs: !1,
1637
+ props: lt,
1638
+ emits: it,
1639
+ slots: Object,
1640
+ setup(e, t) {
1641
+ const o = A(e), { slotProps: n } = U(e, 0, o);
1642
+ const r = (0, i.ref)({
1643
+ visible: !1,
1644
+ open() {
1645
+ r.value.visible = !0;
1646
+ },
1647
+ close() {
1648
+ r.value.visible = !1;
1649
+ }
1650
+ });
1651
+ return {
1652
+ hyphenate: V,
1653
+ getNode: x,
1654
+ ...o,
1655
+ slotProps: n,
1656
+ clickHandle: function(t) {
1657
+ o.globalDisabled.value || e.disabled || o.globalReadonly.value || e.readonly || (e.onRowClick ? e.onRowClick(r.value, t) : r.value.open());
1658
+ },
1659
+ popupInfo: r
1660
+ };
1661
+ }
1662
+ }), [["render", function(e, t, o, n, r, l) {
1663
+ const a = (0, i.resolveComponent)("VanNumberKeyboard"), s = (0, i.resolveComponent)("VanField");
1664
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(s, (0, i.mergeProps)({
1665
+ key: 0,
1666
+ name: e.field,
1667
+ "model-value": e.checked,
1668
+ disabled: e.globalDisabled || e.disabled,
1669
+ readonly: !0,
1670
+ "is-link": e.isLink
1671
+ }, e.$attrs, { onClick: (0, i.withModifiers)(e.clickHandle, ["stop"]) }), (0, i.createSlots)({
1672
+ extra: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
1673
+ "model-value": e.checked,
1674
+ show: e.popupInfo.visible
1675
+ }, e.numberKeyboardProps, (0, i.toHandlers)(e.numberKeyboardOn), {
1676
+ "onUpdate:modelValue": e.change,
1677
+ onBlur: e.popupInfo.close
1678
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.numberKeyboardSlots, (t, o) => ({
1679
+ name: e.hyphenate(o),
1680
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1681
+ }))]), 1040, [
1682
+ "model-value",
1683
+ "show",
1684
+ "onUpdate:modelValue",
1685
+ "onBlur"
1686
+ ])]),
1687
+ _: 2
1688
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
1689
+ name: e.hyphenate(o),
1690
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1691
+ }))]), 1040, [
1692
+ "name",
1693
+ "model-value",
1694
+ "disabled",
1695
+ "is-link",
1696
+ "onClick"
1697
+ ]));
1698
+ }]]);
1699
+ function dt() {
1700
+ return {
1701
+ ...$,
1702
+ ...I,
1703
+ label: { type: String },
1704
+ passwordInputProps: { type: Object },
1705
+ passwordInputOn: {
1706
+ type: Object,
1707
+ default: () => ({})
1708
+ },
1709
+ passwordInputSlots: { type: Object },
1710
+ onRowClick: { type: Function },
1711
+ numberKeyboardProps: { type: Object },
1712
+ numberKeyboardOn: {
1713
+ type: Object,
1714
+ default: () => ({})
1715
+ },
1716
+ numberKeyboardSlots: { type: Object }
1717
+ };
1718
+ }
1719
+ var ut = dt(), mt = {
1720
+ ...u.Field.props,
1721
+ ...ut
1722
+ };
1723
+ function ft() {
1724
+ return {};
1725
+ }
1726
+ var yt = {}, ht = {
1727
+ ...u.Field.emits,
1728
+ ...yt
1729
+ };
1730
+ var vt = X((0, i.defineComponent)({
1731
+ name: "HPasswordInput",
1732
+ components: {
1733
+ VanField: u.Field,
1734
+ VanNumberKeyboard: u.NumberKeyboard,
1735
+ VanPasswordInput: u.PasswordInput
1736
+ },
1737
+ inheritAttrs: !1,
1738
+ props: ut,
1739
+ emits: yt,
1740
+ slots: Object,
1741
+ setup(e, t) {
1742
+ const o = A(e), { slotProps: n } = U(e, 0, o);
1743
+ const r = (0, i.ref)({
1744
+ visible: !1,
1745
+ open() {
1746
+ r.value.visible = !0;
1747
+ },
1748
+ close() {
1749
+ r.value.visible = !1;
1750
+ }
1751
+ });
1752
+ return {
1753
+ hyphenate: V,
1754
+ getNode: x,
1755
+ ...o,
1756
+ slotProps: n,
1757
+ clickHandle: function(t) {
1758
+ o.globalDisabled.value || e.disabled || o.globalReadonly.value || e.readonly || (e.onRowClick ? e.onRowClick(r.value, t) : r.value.open());
1759
+ },
1760
+ customChange: function(t) {
1761
+ const n = Number(e.passwordInputProps?.length) || 6;
1762
+ t.length === n && r.value.close(), o.change(t);
1763
+ },
1764
+ popupInfo: r
1765
+ };
1766
+ }
1767
+ }), [["render", function(e, t, o, n, r, l) {
1768
+ const a = (0, i.resolveComponent)("VanPasswordInput"), s = (0, i.resolveComponent)("VanNumberKeyboard"), p = (0, i.resolveComponent)("VanField");
1769
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(p, (0, i.mergeProps)({
1770
+ key: 0,
1771
+ name: e.field,
1772
+ label: e.label,
1773
+ "model-value": e.checked,
1774
+ disabled: e.globalDisabled || e.disabled,
1775
+ readonly: e.globalReadonly || e.readonly
1776
+ }, e.$attrs, { onClick: (0, i.withModifiers)(e.clickHandle, ["stop"]) }), (0, i.createSlots)({
1777
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
1778
+ style: { width: "100%" },
1779
+ value: e.checked,
1780
+ focused: e.popupInfo.visible
1781
+ }, e.passwordInputProps, (0, i.toHandlers)(e.passwordInputOn), { onFocus: e.clickHandle }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.passwordInputSlots, (t, o) => ({
1782
+ name: e.hyphenate(o),
1783
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1784
+ }))]), 1040, [
1785
+ "value",
1786
+ "focused",
1787
+ "onFocus"
1788
+ ])]),
1789
+ extra: (0, i.withCtx)(() => [(0, i.createVNode)(s, (0, i.mergeProps)({
1790
+ "model-value": e.checked,
1791
+ show: e.popupInfo.visible
1792
+ }, e.numberKeyboardProps, (0, i.toHandlers)(e.numberKeyboardOn), {
1793
+ "onUpdate:modelValue": e.customChange,
1794
+ onBlur: e.popupInfo.close
1795
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.numberKeyboardSlots, (t, o) => ({
1796
+ name: e.hyphenate(o),
1797
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1798
+ }))]), 1040, [
1799
+ "model-value",
1800
+ "show",
1801
+ "onUpdate:modelValue",
1802
+ "onBlur"
1803
+ ])]),
1804
+ _: 2
1805
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
1806
+ name: e.hyphenate(o),
1807
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1808
+ }))]), 1040, [
1809
+ "name",
1810
+ "label",
1811
+ "model-value",
1812
+ "disabled",
1813
+ "readonly",
1814
+ "onClick"
1815
+ ]));
1816
+ }]]);
1817
+ function bt() {
1818
+ return {
1819
+ ...$,
1820
+ ...I,
1821
+ pickerProps: { type: Object },
1822
+ pickerOn: {
1823
+ type: Object,
1824
+ default: () => ({})
1825
+ },
1826
+ pickerSlots: { type: Object },
1827
+ isLink: {
1828
+ type: Boolean,
1829
+ default: !0
1830
+ },
1831
+ onRowClick: { type: Function },
1832
+ separator: {
1833
+ type: String,
1834
+ default: "/"
1835
+ },
1836
+ showAllLevels: {
1837
+ type: Boolean,
1838
+ default: !0
1839
+ },
1840
+ format: { type: Function },
1841
+ valueTrigger: {
1842
+ type: String,
1843
+ default: "confirm"
1844
+ },
1845
+ popupProps: { type: Object },
1846
+ popupOn: {
1847
+ type: Object,
1848
+ default: () => ({})
1849
+ }
1850
+ };
1851
+ }
1852
+ var gt = bt(), kt = {
1853
+ ...u.Field.props,
1854
+ ...gt
1855
+ };
1856
+ function Pt() {
1857
+ return {};
1858
+ }
1859
+ var Ct = {}, xt = {
1860
+ ...u.Field.emits,
1861
+ ...Ct
1862
+ };
1863
+ var wt = X((0, i.defineComponent)({
1864
+ name: "HPicker",
1865
+ components: {
1866
+ VanPicker: u.Picker,
1867
+ VanField: u.Field,
1868
+ VanPopup: u.Popup
1869
+ },
1870
+ inheritAttrs: !1,
1871
+ props: gt,
1872
+ emits: Ct,
1873
+ slots: Object,
1874
+ setup(e, t) {
1875
+ const o = A(e), { slotProps: n } = U(e, 0, o), r = (0, i.computed)(() => {
1876
+ const t = o.checked.value;
1877
+ if (!t || !t.length) return "";
1878
+ const { format: n, showAllLevels: r, separator: l } = e, a = e.pickerProps?.columns || o.finalOption.value, s = (e.pickerProps || {}).columnsFieldNames || {}, i = {
1879
+ text: s.text || "text",
1880
+ value: s.value || "value",
1881
+ children: s.children || "children"
1882
+ };
1883
+ if (n) return n({
1884
+ source: a,
1885
+ value: t,
1886
+ columnsFieldNames: i,
1887
+ showAllLevels: r,
1888
+ separator: l
1889
+ });
1890
+ if (a.length > 0 && Array.isArray(a[0])) return t.map((e, t) => {
1891
+ const o = (a[t] || []).find((t) => t[i.value] === e);
1892
+ return o ? o[i.text] : "";
1893
+ }).filter(Boolean).join(l);
1894
+ const p = [];
1895
+ let c = a;
1896
+ for (const e of t) {
1897
+ const t = c.find((t) => t[i.value] === e);
1898
+ if (!t) break;
1899
+ p.push(t[i.text]), c = t[i.children] || [];
1900
+ }
1901
+ return r ? p.join(l) : p[p.length - 1];
1902
+ });
1903
+ const l = (0, i.ref)({
1904
+ visible: !1,
1905
+ open() {
1906
+ l.value.visible = !0;
1907
+ },
1908
+ close() {
1909
+ l.value.visible = !1;
1910
+ }
1911
+ });
1912
+ return {
1913
+ hyphenate: V,
1914
+ getNode: x,
1915
+ ...o,
1916
+ slotProps: n,
1917
+ showText: r,
1918
+ clickHandle: function(t) {
1919
+ o.globalDisabled.value || e.disabled || o.globalReadonly.value || e.readonly || (e.onRowClick ? e.onRowClick(l.value, t) : l.value.open());
1920
+ },
1921
+ pickerHandle: function(t, n) {
1922
+ switch ((e.valueTrigger === t || !1 === e.pickerProps?.showToolbar) && o.change(n.selectedValues), t) {
1923
+ case "confirm":
1924
+ case "cancel": l.value.close();
1925
+ }
1926
+ },
1927
+ popupInfo: l
1928
+ };
1929
+ }
1930
+ }), [["render", function(e, t, o, n, r, l) {
1931
+ const a = (0, i.resolveComponent)("VanPicker"), s = (0, i.resolveComponent)("VanPopup"), p = (0, i.resolveComponent)("VanField");
1932
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(p, (0, i.mergeProps)({
1933
+ key: 0,
1934
+ name: e.field,
1935
+ disabled: e.globalDisabled || e.disabled,
1936
+ readonly: !0,
1937
+ "is-link": e.isLink,
1938
+ "model-value": e.showText
1939
+ }, e.$attrs, { onClick: e.clickHandle }), (0, i.createSlots)({
1940
+ extra: (0, i.withCtx)(() => [(0, i.createVNode)(s, (0, i.mergeProps)({
1941
+ show: e.popupInfo.visible,
1942
+ "onUpdate:show": t[3] || (t[3] = (t) => e.popupInfo.visible = t),
1943
+ teleport: "body",
1944
+ round: "",
1945
+ position: "bottom"
1946
+ }, e.popupProps, (0, i.toHandlers)(e.popupOn), { onClose: e.popupInfo.close }), {
1947
+ default: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
1948
+ "model-value": e.checked,
1949
+ columns: e.finalOption
1950
+ }, e.pickerProps, (0, i.toHandlers)(e.pickerOn), {
1951
+ onChange: t[0] || (t[0] = (t) => e.pickerHandle("change", t)),
1952
+ onConfirm: t[1] || (t[1] = (t) => e.pickerHandle("confirm", t)),
1953
+ onCancel: t[2] || (t[2] = (t) => e.pickerHandle("cancel", t))
1954
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.pickerSlots, (t, o) => ({
1955
+ name: e.hyphenate(o),
1956
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1957
+ }))]), 1040, ["model-value", "columns"])]),
1958
+ _: 1
1959
+ }, 16, ["show", "onClose"])]),
1960
+ _: 2
1961
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
1962
+ name: e.hyphenate(o),
1963
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
1964
+ }))]), 1040, [
1965
+ "name",
1966
+ "disabled",
1967
+ "is-link",
1968
+ "model-value",
1969
+ "onClick"
1970
+ ]));
1971
+ }]]);
1972
+ function Vt() {
1973
+ return {
1974
+ ...$,
1975
+ ...I,
1976
+ label: { type: String },
1977
+ radioGroupProps: { type: Object },
1978
+ radioGroupOn: {
1979
+ type: Object,
1980
+ default: () => ({})
1981
+ },
1982
+ labelKey: {
1983
+ type: String,
1984
+ default: "label"
1985
+ },
1986
+ valueKey: {
1987
+ type: String,
1988
+ default: "value"
1989
+ },
1990
+ cancelable: { type: Boolean },
1991
+ radioProps: { type: Object },
1992
+ radioOn: {
1993
+ type: Object,
1994
+ default: () => ({})
1995
+ },
1996
+ radioSlots: { type: Object }
1997
+ };
1998
+ }
1999
+ var Ot = Vt(), Bt = {
2000
+ ...u.Field.props,
2001
+ ...Ot
2002
+ };
2003
+ function St() {
2004
+ return {};
2005
+ }
2006
+ var Ft = {}, Rt = {
2007
+ ...u.Field.emits,
2008
+ ...Ft
2009
+ };
2010
+ var jt = X((0, i.defineComponent)({
2011
+ name: "HRadioGroup",
2012
+ components: {
2013
+ VanField: u.Field,
2014
+ VanRadio: u.Radio,
2015
+ VanRadioGroup: u.RadioGroup
2016
+ },
2017
+ inheritAttrs: !1,
2018
+ props: Ot,
2019
+ emits: Ft,
2020
+ slots: Object,
2021
+ setup(e, t) {
2022
+ const o = A(e), { slotProps: n } = U(e, 0, o);
2023
+ return {
2024
+ hyphenate: V,
2025
+ getNode: x,
2026
+ ...o,
2027
+ slotProps: n,
2028
+ change: function(t) {
2029
+ e.cancelable ? o.change(o.checked.value === t ? void 0 : t) : o.change(t);
2030
+ }
2031
+ };
2032
+ }
2033
+ }), [["render", function(e, t, o, n, r, l) {
2034
+ const a = (0, i.resolveComponent)("VanRadio"), s = (0, i.resolveComponent)("VanRadioGroup"), p = (0, i.resolveComponent)("VanField");
2035
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(p, (0, i.mergeProps)({
2036
+ key: 0,
2037
+ name: e.field,
2038
+ label: e.label,
2039
+ "model-value": e.checked,
2040
+ disabled: e.globalDisabled || e.disabled,
2041
+ readonly: e.globalReadonly || e.readonly
2042
+ }, e.$attrs), (0, i.createSlots)({
2043
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(s, (0, i.mergeProps)({
2044
+ name: e.field,
2045
+ "model-value": e.checked,
2046
+ disabled: e.globalDisabled || e.disabled || e.globalReadonly || e.readonly
2047
+ }, e.radioGroupProps, (0, i.toHandlers)(e.radioGroupOn), { "onUpdate:modelValue": e.change }), {
2048
+ default: (0, i.withCtx)(() => [((0, i.openBlock)(!0), (0, i.createElementBlock)(i.Fragment, null, (0, i.renderList)(e.finalOption, (t) => ((0, i.openBlock)(), (0, i.createBlock)(a, (0, i.mergeProps)({
2049
+ key: t[e.valueKey],
2050
+ name: t[e.valueKey]
2051
+ }, { ref_for: !0 }, e.radioProps, (0, i.toHandlers)(e.radioOn)), (0, i.createSlots)({
2052
+ default: (0, i.withCtx)(() => [(0, i.createTextVNode)((0, i.toDisplayString)(t[e.labelKey]) + " ", 1)]),
2053
+ _: 2
2054
+ }, [(0, i.renderList)(e.radioSlots, (o, n) => ({
2055
+ name: e.hyphenate(n),
2056
+ fn: (0, i.withCtx)((n) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(o)), (0, i.mergeProps)({ ref_for: !0 }, e.slotProps, { item: t }, { ref_for: !0 }, n), null, 16, ["item"]))])
2057
+ }))]), 1040, ["name"]))), 128))]),
2058
+ _: 1
2059
+ }, 16, [
2060
+ "name",
2061
+ "model-value",
2062
+ "disabled",
2063
+ "onUpdate:modelValue"
2064
+ ])]),
2065
+ _: 2
2066
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
2067
+ name: e.hyphenate(o),
2068
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2069
+ }))]), 1040, [
2070
+ "name",
2071
+ "label",
2072
+ "model-value",
2073
+ "disabled",
2074
+ "readonly"
2075
+ ]));
2076
+ }]]);
2077
+ function Ht() {
2078
+ return {
2079
+ ...$,
2080
+ ...I,
2081
+ label: { type: String },
2082
+ radioProps: { type: Object },
2083
+ radioOn: {
2084
+ type: Object,
2085
+ default: () => ({})
2086
+ },
2087
+ radioSlots: { type: Object },
2088
+ cancelable: {
2089
+ type: Boolean,
2090
+ default: !0
2091
+ }
2092
+ };
2093
+ }
2094
+ var Nt = Ht(), Dt = {
2095
+ ...u.Field.props,
2096
+ ...Nt
2097
+ };
2098
+ function Et() {
2099
+ return {};
2100
+ }
2101
+ var Gt = {}, At = {
2102
+ ...u.Field.emits,
2103
+ ...Gt
2104
+ };
2105
+ var It = X((0, i.defineComponent)({
2106
+ name: "HRadio",
2107
+ components: {
2108
+ VanField: u.Field,
2109
+ VanRadio: u.Radio,
2110
+ VanRadioGroup: u.RadioGroup
2111
+ },
2112
+ inheritAttrs: !1,
2113
+ props: Nt,
2114
+ emits: Gt,
2115
+ slots: Object,
2116
+ setup(e, t) {
2117
+ const o = A(e), { slotProps: n } = U(e, 0, o);
2118
+ return {
2119
+ hyphenate: V,
2120
+ getNode: x,
2121
+ ...o,
2122
+ slotProps: n,
2123
+ change: function(t) {
2124
+ e.cancelable ? o.change(o.checked.value === t ? void 0 : t) : o.change(t);
2125
+ }
2126
+ };
2127
+ }
2128
+ }), [["render", function(e, t, o, n, r, l) {
2129
+ const a = (0, i.resolveComponent)("VanRadio"), s = (0, i.resolveComponent)("VanField");
2130
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(s, (0, i.mergeProps)({
2131
+ key: 0,
2132
+ name: e.field,
2133
+ label: e.label,
2134
+ disabled: e.globalDisabled || e.disabled,
2135
+ readonly: e.globalReadonly || e.readonly
2136
+ }, e.$attrs), (0, i.createSlots)({
2137
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
2138
+ name: e.field,
2139
+ "model-value": e.checked,
2140
+ disabled: e.globalDisabled || e.disabled || e.globalReadonly || e.readonly
2141
+ }, e.radioProps, (0, i.toHandlers)(e.radioOn), { "onUpdate:modelValue": e.change }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.radioSlots, (t, o) => ({
2142
+ name: e.hyphenate(o),
2143
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2144
+ }))]), 1040, [
2145
+ "name",
2146
+ "model-value",
2147
+ "disabled",
2148
+ "onUpdate:modelValue"
2149
+ ])]),
2150
+ _: 2
2151
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
2152
+ name: e.hyphenate(o),
2153
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2154
+ }))]), 1040, [
2155
+ "name",
2156
+ "label",
2157
+ "disabled",
2158
+ "readonly"
2159
+ ]));
2160
+ }]]);
2161
+ function _t() {
2162
+ return {
2163
+ ...$,
2164
+ ...I,
2165
+ rateProps: { type: Object },
2166
+ rateOn: {
2167
+ type: Object,
2168
+ default: () => ({})
2169
+ },
2170
+ rateSlots: { type: Object }
2171
+ };
2172
+ }
2173
+ var Tt = _t(), Lt = {
2174
+ ...u.Field.props,
2175
+ ...Tt
2176
+ };
2177
+ function qt() {
2178
+ return {};
2179
+ }
2180
+ var Ut = {}, Kt = {
2181
+ ...u.Field.emits,
2182
+ ...Ut
2183
+ };
2184
+ var $t = X((0, i.defineComponent)({
2185
+ name: "HRate",
2186
+ components: {
2187
+ VanField: u.Field,
2188
+ VanRate: u.Rate
2189
+ },
2190
+ inheritAttrs: !1,
2191
+ props: Tt,
2192
+ emits: Ut,
2193
+ slots: Object,
2194
+ setup(e, t) {
2195
+ const o = A(e), { slotProps: n } = U(e, 0, o);
2196
+ return {
2197
+ hyphenate: V,
2198
+ getNode: x,
2199
+ ...o,
2200
+ slotProps: n
2201
+ };
2202
+ }
2203
+ }), [["render", function(e, t, o, n, r, l) {
2204
+ const a = (0, i.resolveComponent)("VanRate"), s = (0, i.resolveComponent)("VanField");
2205
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(s, (0, i.mergeProps)({
2206
+ key: 0,
2207
+ name: e.field,
2208
+ "model-value": e.checked,
2209
+ disabled: e.globalDisabled || e.disabled,
2210
+ readonly: e.globalReadonly || e.readonly
2211
+ }, e.$attrs), (0, i.createSlots)({
2212
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
2213
+ disabled: e.globalDisabled || e.disabled,
2214
+ readonly: e.globalReadonly || e.readonly,
2215
+ "model-value": e.checked
2216
+ }, e.rateProps, (0, i.toHandlers)(e.rateOn), { "onUpdate:modelValue": e.change }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.rateSlots, (t, o) => ({
2217
+ name: e.hyphenate(o),
2218
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2219
+ }))]), 1040, [
2220
+ "disabled",
2221
+ "readonly",
2222
+ "model-value",
2223
+ "onUpdate:modelValue"
2224
+ ])]),
2225
+ _: 2
2226
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
2227
+ name: e.hyphenate(o),
2228
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2229
+ }))]), 1040, [
2230
+ "name",
2231
+ "model-value",
2232
+ "disabled",
2233
+ "readonly"
2234
+ ]));
2235
+ }]]);
2236
+ function Mt() {
2237
+ return {
2238
+ ...$,
2239
+ ...I,
2240
+ renderField: {
2241
+ type: Boolean,
2242
+ default: !0
2243
+ },
2244
+ signatureProps: { type: Object },
2245
+ signatureOn: {
2246
+ type: Object,
2247
+ default: () => ({})
2248
+ },
2249
+ signatureSlots: { type: Object },
2250
+ submitAtEnd: {
2251
+ type: Boolean,
2252
+ default: !0
2253
+ },
2254
+ valueFormat: {
2255
+ type: Function,
2256
+ default: (e) => e
2257
+ },
2258
+ format: {
2259
+ type: Function,
2260
+ default: Xt
2261
+ }
2262
+ };
2263
+ }
2264
+ var Wt = Mt(), Qt = {
2265
+ ...u.Field.props,
2266
+ ...Wt
2267
+ };
2268
+ function zt() {
2269
+ return { load: (e) => !0 };
2270
+ }
2271
+ var Yt = { load: (e) => !0 }, Jt = {
2272
+ ...u.Field.emits,
2273
+ ...Yt
2274
+ };
2275
+ function Xt(e) {
2276
+ return e ? "string" == typeof e ? e : e instanceof Blob ? URL.createObjectURL(e) : e.image : "";
2277
+ }
2278
+ var Zt = "undefined" != typeof window ? window.devicePixelRatio : 1;
2279
+ function eo(e) {
2280
+ return {
2281
+ width: e.offsetWidth * Zt,
2282
+ height: e.offsetHeight * Zt
2283
+ };
2284
+ }
2285
+ function to(e) {
2286
+ "string" == typeof e && "blob:" === e.slice(0, 5) && URL.revokeObjectURL(e);
2287
+ }
2288
+ var oo = (0, i.defineComponent)({
2289
+ name: "HSignaturePure",
2290
+ components: {
2291
+ VanField: u.Field,
2292
+ VanSignature: u.Signature
2293
+ },
2294
+ inheritAttrs: !1,
2295
+ props: Wt,
2296
+ emits: Yt,
2297
+ slots: Object,
2298
+ setup(e, t) {
2299
+ const o = (0, i.useTemplateRef)("signatureRef"), n = A(e);
2300
+ n.on("reset", () => c);
2301
+ const r = (0, i.computed)(() => e.format(n.checked.value));
2302
+ (0, i.watch)(r, (e, t) => t && to(t)), (0, i.onBeforeUnmount)(() => r.value && to(r.value));
2303
+ const l = (0, i.ref)(!1);
2304
+ function a(e) {
2305
+ l.value || function(e) {
2306
+ const t = e.canvas;
2307
+ if (!t || !e.src) return;
2308
+ const o = e.ctx || t.getContext("2d");
2309
+ if (!o) return;
2310
+ const n = new Image();
2311
+ n.onload = () => {
2312
+ if (!1 === e.allowPaint?.()) return;
2313
+ const { width: r, height: l } = eo(t);
2314
+ o.clearRect(0, 0, r, l), o.drawImage(n, 0, 0, r / Zt, l / Zt);
2315
+ }, n.src = e.src;
2316
+ }({
2317
+ ...d(),
2318
+ src: e,
2319
+ allowPaint: () => e === r.value
2320
+ });
2321
+ }
2322
+ (0, i.onMounted)(() => a(r.value)), (0, i.watch)(r, a);
2323
+ const { slotProps: s } = U(e, 0, n), p = (0, i.ref)(!1);
2324
+ function c() {
2325
+ if (!o.value) return;
2326
+ let t = r.value;
2327
+ if (o.value.clear) p.value = !0, (0, i.nextTick)(() => p.value = !1), o.value.clear();
2328
+ else {
2329
+ const { canvas: t, ctx: o } = d();
2330
+ if (!t || !o) return;
2331
+ const { width: n, height: r } = eo(t);
2332
+ o.clearRect(0, 0, n, r), o.closePath();
2333
+ const l = e.signatureProps?.backgroundColor;
2334
+ l && (o.fillStyle = l, o.fillRect(0, 0, n, r));
2335
+ }
2336
+ (0, i.nextTick)(() => t === r.value && a(t));
2337
+ }
2338
+ function d() {
2339
+ const e = o.value?.$el?.getElementsByTagName("canvas")[0];
2340
+ return {
2341
+ canvas: e,
2342
+ ctx: e?.getContext("2d")
2343
+ };
2344
+ }
2345
+ return t.emit("load", n), {
2346
+ hyphenate: V,
2347
+ getNode: x,
2348
+ ...n,
2349
+ change: function(t) {
2350
+ l.value = !0, n.change(e.valueFormat(t)), (0, i.nextTick)(() => l.value = !1);
2351
+ },
2352
+ slotProps: s,
2353
+ signatureRef: o,
2354
+ imgSrc: r,
2355
+ clear: function() {
2356
+ p.value || n.change(void 0);
2357
+ },
2358
+ end: function() {
2359
+ e.submitAtEnd && o.value?.submit?.();
2360
+ }
2361
+ };
2362
+ }
2363
+ }), no = ["src"], ro = { key: 2 };
2364
+ var lo = X(oo, [["render", function(e, t, o, n, r, l) {
2365
+ const a = (0, i.resolveComponent)("VanSignature");
2366
+ return e.globalDisabled || e.disabled || e.globalReadonly || e.readonly ? e.imgSrc ? ((0, i.openBlock)(), (0, i.createElementBlock)("img", {
2367
+ key: 1,
2368
+ src: e.imgSrc,
2369
+ style: { padding: "var(--van-signature-padding)" }
2370
+ }, null, 8, no)) : ((0, i.openBlock)(), (0, i.createElementBlock)("i", ro)) : ((0, i.openBlock)(), (0, i.createBlock)(a, (0, i.mergeProps)({
2371
+ key: 0,
2372
+ ref: "signatureRef"
2373
+ }, e.signatureProps, (0, i.toHandlers)(e.signatureOn), {
2374
+ onEnd: e.end,
2375
+ onSubmit: e.change,
2376
+ onClear: e.clear
2377
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.signatureSlots, (t, o) => ({
2378
+ name: e.hyphenate(o),
2379
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2380
+ }))]), 1040, [
2381
+ "onEnd",
2382
+ "onSubmit",
2383
+ "onClear"
2384
+ ]));
2385
+ }]]);
2386
+ var ao = X((0, i.defineComponent)({
2387
+ name: "HSignature",
2388
+ components: {
2389
+ VanField: u.Field,
2390
+ VanSignature: u.Signature,
2391
+ HSignaturePure: lo
2392
+ },
2393
+ inheritAttrs: !1,
2394
+ props: Wt,
2395
+ emits: Yt,
2396
+ setup(e, t) {
2397
+ const o = (0, i.computed)(() => ({
2398
+ ...e,
2399
+ ...t.attrs
2400
+ })), n = G(), r = (0, i.computed)(() => e.disabled || n?.disabled?.value), l = (0, i.computed)(() => e.readonly || n?.readonly?.value), a = (0, i.ref)(null);
2401
+ return {
2402
+ hyphenate: V,
2403
+ getNode: x,
2404
+ allAttrs: o,
2405
+ finalDisabled: r,
2406
+ finalReadonly: l,
2407
+ plain: a,
2408
+ load: function(e) {
2409
+ a.value = e;
2410
+ }
2411
+ };
2412
+ }
2413
+ }), [["render", function(e, t, o, n, r, l) {
2414
+ const a = (0, i.resolveComponent)("HSignaturePure"), s = (0, i.resolveComponent)("VanField");
2415
+ return e.renderField && !e.hide ? ((0, i.openBlock)(), (0, i.createBlock)(s, (0, i.mergeProps)({
2416
+ key: 0,
2417
+ name: e.field,
2418
+ disabled: e.finalDisabled,
2419
+ readonly: e.finalReadonly
2420
+ }, e.$attrs), (0, i.createSlots)({
2421
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)(e.allAttrs, { onLoad: e.load }), null, 16, ["onLoad"])]),
2422
+ _: 2
2423
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
2424
+ name: e.hyphenate(o),
2425
+ fn: (0, i.withCtx)((o) => [e.plain ? ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)({
2426
+ key: 0,
2427
+ plain: e.plain,
2428
+ props: e.$props
2429
+ }, o), null, 16, ["plain", "props"])) : (0, i.createCommentVNode)("", !0)])
2430
+ }))]), 1040, [
2431
+ "name",
2432
+ "disabled",
2433
+ "readonly"
2434
+ ])) : e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(a, (0, i.normalizeProps)((0, i.mergeProps)({ key: 1 }, e.allAttrs)), null, 16));
2435
+ }]]);
2436
+ function so() {
2437
+ return {
2438
+ ...$,
2439
+ ...I,
2440
+ sliderProps: { type: Object },
2441
+ sliderOn: {
2442
+ type: Object,
2443
+ default: () => ({})
2444
+ },
2445
+ sliderSlots: { type: Object }
2446
+ };
2447
+ }
2448
+ var io = so(), po = {
2449
+ ...u.Field.props,
2450
+ ...io
2451
+ };
2452
+ function co() {
2453
+ return {};
2454
+ }
2455
+ var uo = {}, mo = {
2456
+ ...u.Field.emits,
2457
+ ...uo
2458
+ };
2459
+ var fo = X((0, i.defineComponent)({
2460
+ name: "HSlider",
2461
+ components: {
2462
+ VanField: u.Field,
2463
+ VanSlider: u.Slider
2464
+ },
2465
+ inheritAttrs: !1,
2466
+ props: io,
2467
+ emits: uo,
2468
+ slots: Object,
2469
+ setup(e, t) {
2470
+ const o = A(e), { slotProps: n } = U(e, 0, o);
2471
+ return {
2472
+ hyphenate: V,
2473
+ getNode: x,
2474
+ ...o,
2475
+ slotProps: n
2476
+ };
2477
+ }
2478
+ }), [["render", function(e, t, o, n, r, l) {
2479
+ const a = (0, i.resolveComponent)("VanSlider"), s = (0, i.resolveComponent)("VanField");
2480
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(s, (0, i.mergeProps)({
2481
+ key: 0,
2482
+ name: e.field,
2483
+ "model-value": e.checked,
2484
+ disabled: e.globalDisabled || e.disabled,
2485
+ readonly: e.globalReadonly || e.readonly
2486
+ }, e.$attrs), (0, i.createSlots)({
2487
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
2488
+ disabled: e.globalDisabled || e.disabled,
2489
+ readonly: e.globalReadonly || e.readonly,
2490
+ "model-value": e.checked
2491
+ }, e.sliderProps, (0, i.toHandlers)(e.sliderOn), { "onUpdate:modelValue": e.change }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.sliderSlots, (t, o) => ({
2492
+ name: e.hyphenate(o),
2493
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2494
+ }))]), 1040, [
2495
+ "disabled",
2496
+ "readonly",
2497
+ "model-value",
2498
+ "onUpdate:modelValue"
2499
+ ])]),
2500
+ _: 2
2501
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
2502
+ name: e.hyphenate(o),
2503
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2504
+ }))]), 1040, [
2505
+ "name",
2506
+ "model-value",
2507
+ "disabled",
2508
+ "readonly"
2509
+ ]));
2510
+ }]]);
2511
+ function yo() {
2512
+ return {
2513
+ ...$,
2514
+ ...I,
2515
+ stepperProps: { type: Object },
2516
+ stepperOn: {
2517
+ type: Object,
2518
+ default: () => ({})
2519
+ },
2520
+ stepperSlots: { type: Object }
2521
+ };
2522
+ }
2523
+ var ho = yo(), vo = {
2524
+ ...u.Field.props,
2525
+ ...ho
2526
+ };
2527
+ function bo() {
2528
+ return {};
2529
+ }
2530
+ var go = {}, ko = {
2531
+ ...u.Field.emits,
2532
+ ...go
2533
+ };
2534
+ var Po = X((0, i.defineComponent)({
2535
+ name: "HStepper",
2536
+ components: {
2537
+ VanField: u.Field,
2538
+ VanStepper: u.Stepper
2539
+ },
2540
+ inheritAttrs: !1,
2541
+ props: ho,
2542
+ emits: go,
2543
+ slots: Object,
2544
+ setup(e, t) {
2545
+ const o = A(e), { slotProps: n } = U(e, 0, o);
2546
+ return {
2547
+ hyphenate: V,
2548
+ getNode: x,
2549
+ ...o,
2550
+ slotProps: n
2551
+ };
2552
+ }
2553
+ }), [["render", function(e, t, o, n, r, l) {
2554
+ const a = (0, i.resolveComponent)("VanStepper"), s = (0, i.resolveComponent)("VanField");
2555
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(s, (0, i.mergeProps)({
2556
+ key: 0,
2557
+ name: e.field,
2558
+ "model-value": e.checked,
2559
+ disabled: e.globalDisabled || e.disabled,
2560
+ readonly: e.globalReadonly || e.readonly
2561
+ }, e.$attrs), (0, i.createSlots)({
2562
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
2563
+ disabled: e.globalDisabled || e.disabled || e.globalReadonly || e.readonly,
2564
+ "model-value": e.checked
2565
+ }, e.stepperProps, (0, i.toHandlers)(e.stepperOn), { "onUpdate:modelValue": e.change }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.stepperSlots, (t, o) => ({
2566
+ name: e.hyphenate(o),
2567
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2568
+ }))]), 1040, [
2569
+ "disabled",
2570
+ "model-value",
2571
+ "onUpdate:modelValue"
2572
+ ])]),
2573
+ _: 2
2574
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
2575
+ name: e.hyphenate(o),
2576
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2577
+ }))]), 1040, [
2578
+ "name",
2579
+ "model-value",
2580
+ "disabled",
2581
+ "readonly"
2582
+ ]));
2583
+ }]]);
2584
+ function Co() {
2585
+ return {
2586
+ ...$,
2587
+ ...I,
2588
+ switchProps: { type: Object },
2589
+ switchOn: {
2590
+ type: Object,
2591
+ default: () => ({})
2592
+ },
2593
+ switchSlots: { type: Object }
2594
+ };
2595
+ }
2596
+ var xo = Co(), wo = {
2597
+ ...u.Field.props,
2598
+ ...xo
2599
+ };
2600
+ function Vo() {
2601
+ return {};
2602
+ }
2603
+ var Oo = {}, Bo = {
2604
+ ...u.Field.emits,
2605
+ ...Oo
2606
+ };
2607
+ var So = X((0, i.defineComponent)({
2608
+ name: "HSwitch",
2609
+ components: {
2610
+ VanField: u.Field,
2611
+ VanSwitch: u.Switch
2612
+ },
2613
+ inheritAttrs: !1,
2614
+ props: xo,
2615
+ emits: Oo,
2616
+ slots: Object,
2617
+ setup(e, t) {
2618
+ const o = A(e), { slotProps: n } = U(e, 0, o);
2619
+ return {
2620
+ hyphenate: V,
2621
+ getNode: x,
2622
+ ...o,
2623
+ slotProps: n
2624
+ };
2625
+ }
2626
+ }), [["render", function(e, t, o, n, r, l) {
2627
+ const a = (0, i.resolveComponent)("VanSwitch"), s = (0, i.resolveComponent)("VanField");
2628
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(s, (0, i.mergeProps)({
2629
+ key: 0,
2630
+ name: e.field,
2631
+ disabled: e.globalDisabled || e.disabled,
2632
+ readonly: e.globalReadonly || e.readonly
2633
+ }, e.$attrs), (0, i.createSlots)({
2634
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
2635
+ disabled: e.globalDisabled || e.disabled || e.globalReadonly || e.readonly,
2636
+ "model-value": e.checked
2637
+ }, e.switchProps, (0, i.toHandlers)(e.switchOn), { "onUpdate:modelValue": e.change }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.switchSlots, (t, o) => ({
2638
+ name: e.hyphenate(o),
2639
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2640
+ }))]), 1040, [
2641
+ "disabled",
2642
+ "model-value",
2643
+ "onUpdate:modelValue"
2644
+ ])]),
2645
+ _: 2
2646
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
2647
+ name: e.hyphenate(o),
2648
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2649
+ }))]), 1040, [
2650
+ "name",
2651
+ "disabled",
2652
+ "readonly"
2653
+ ]));
2654
+ }]]);
2655
+ function Fo() {
2656
+ return {
2657
+ ...$,
2658
+ ...I,
2659
+ timePickerProps: { type: Object },
2660
+ timePickerOn: {
2661
+ type: Object,
2662
+ default: () => ({})
2663
+ },
2664
+ timePickerSlots: { type: Object },
2665
+ isLink: {
2666
+ type: Boolean,
2667
+ default: !0
2668
+ },
2669
+ onRowClick: { type: Function },
2670
+ separator: {
2671
+ type: String,
2672
+ default: ":"
2673
+ },
2674
+ format: {
2675
+ type: Function,
2676
+ default: Eo
2677
+ },
2678
+ valueFormat: {
2679
+ type: Function,
2680
+ default: Eo
2681
+ },
2682
+ valueUnformat: {
2683
+ type: Function,
2684
+ default: Go
2685
+ },
2686
+ valueTrigger: {
2687
+ type: String,
2688
+ default: "confirm"
2689
+ },
2690
+ popupProps: { type: Object },
2691
+ popupOn: {
2692
+ type: Object,
2693
+ default: () => ({})
2694
+ }
2695
+ };
2696
+ }
2697
+ var Ro = Fo(), jo = {
2698
+ ...u.Field.props,
2699
+ ...Ro
2700
+ };
2701
+ function Ho() {
2702
+ return {};
2703
+ }
2704
+ var No = {}, Do = {
2705
+ ...u.Field.emits,
2706
+ ...No
2707
+ };
2708
+ function Eo(e, t) {
2709
+ return e.join(t);
2710
+ }
2711
+ function Go(e, t) {
2712
+ return e ? Array.isArray(e) ? e : e.split(t) : [];
2713
+ }
2714
+ var Ao = X((0, i.defineComponent)({
2715
+ name: "HTimePicker",
2716
+ components: {
2717
+ VanField: u.Field,
2718
+ VanPopup: u.Popup,
2719
+ VanTimePicker: u.TimePicker
2720
+ },
2721
+ inheritAttrs: !1,
2722
+ props: Ro,
2723
+ emits: No,
2724
+ slots: Object,
2725
+ setup(e, t) {
2726
+ const o = A(e), { slotProps: n } = U(e, 0, o), r = (0, i.ref)(""), l = (0, i.ref)([]);
2727
+ let a;
2728
+ function s(t, n) {
2729
+ switch (e.valueTrigger !== t && !1 !== e.timePickerProps?.showToolbar || (l.value = n.selectedValues, o.change(e.valueFormat(n.selectedValues, e.separator)), r.value = e.format(n.selectedValues, e.separator), a = o.checked.value, (0, i.nextTick)(() => a = null)), t) {
2730
+ case "confirm":
2731
+ case "cancel": p.value.close();
2732
+ }
2733
+ }
2734
+ (0, i.watch)(o.checked, (t) => {
2735
+ if (t === a) return a = null;
2736
+ a = null, l.value = t ? e.valueUnformat(t, e.separator) : [], r.value = l.value.length ? e.format(l.value, e.separator) : "";
2737
+ }, { immediate: !0 });
2738
+ const p = (0, i.ref)({
2739
+ visible: !1,
2740
+ open() {
2741
+ p.value.visible = !0;
2742
+ },
2743
+ close() {
2744
+ p.value.visible = !1;
2745
+ }
2746
+ });
2747
+ return {
2748
+ hyphenate: V,
2749
+ getNode: x,
2750
+ ...o,
2751
+ slotProps: n,
2752
+ showText: r,
2753
+ checkedArr: l,
2754
+ clickHandle: function(t) {
2755
+ o.globalDisabled.value || e.disabled || o.globalReadonly.value || e.readonly || (e.onRowClick ? e.onRowClick(p.value, t) : p.value.open());
2756
+ },
2757
+ changeHandle: s.bind(null, "change"),
2758
+ confirmHandle: s.bind(null, "confirm"),
2759
+ cancelHandle: s.bind(null, "cancel"),
2760
+ popupInfo: p
2761
+ };
2762
+ }
2763
+ }), [["render", function(e, t, o, n, r, l) {
2764
+ const a = (0, i.resolveComponent)("VanTimePicker"), s = (0, i.resolveComponent)("VanPopup"), p = (0, i.resolveComponent)("VanField");
2765
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(p, (0, i.mergeProps)({
2766
+ key: 0,
2767
+ name: e.field,
2768
+ disabled: e.globalDisabled || e.disabled,
2769
+ readonly: !0,
2770
+ "is-link": e.isLink,
2771
+ "model-value": e.showText
2772
+ }, e.$attrs, { onClick: e.clickHandle }), (0, i.createSlots)({
2773
+ extra: (0, i.withCtx)(() => [(0, i.createVNode)(s, (0, i.mergeProps)({
2774
+ show: e.popupInfo.visible,
2775
+ "onUpdate:show": t[0] || (t[0] = (t) => e.popupInfo.visible = t),
2776
+ teleport: "body",
2777
+ round: "",
2778
+ position: "bottom"
2779
+ }, e.popupProps, (0, i.toHandlers)(e.popupOn), { onClose: e.popupInfo.close }), {
2780
+ default: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({ "model-value": e.checkedArr }, e.timePickerProps, (0, i.toHandlers)(e.timePickerOn), {
2781
+ onChange: e.changeHandle,
2782
+ onConfirm: e.confirmHandle,
2783
+ onCancel: e.cancelHandle
2784
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.timePickerSlots, (t, o) => ({
2785
+ name: e.hyphenate(o),
2786
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2787
+ }))]), 1040, [
2788
+ "model-value",
2789
+ "onChange",
2790
+ "onConfirm",
2791
+ "onCancel"
2792
+ ])]),
2793
+ _: 1
2794
+ }, 16, ["show", "onClose"])]),
2795
+ _: 2
2796
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
2797
+ name: e.hyphenate(o),
2798
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2799
+ }))]), 1040, [
2800
+ "name",
2801
+ "disabled",
2802
+ "is-link",
2803
+ "model-value",
2804
+ "onClick"
2805
+ ]));
2806
+ }]]);
2807
+ function Io() {
2808
+ return {
2809
+ ...$,
2810
+ ...I,
2811
+ treeSelectProps: { type: Object },
2812
+ treeSelectOn: {
2813
+ type: Object,
2814
+ default: () => ({})
2815
+ },
2816
+ treeSelectSlots: { type: Object },
2817
+ isLink: {
2818
+ type: Boolean,
2819
+ default: !0
2820
+ },
2821
+ onRowClick: { type: Function },
2822
+ separator: {
2823
+ type: String,
2824
+ default: ","
2825
+ },
2826
+ format: { type: Function },
2827
+ valueTrigger: {
2828
+ type: String,
2829
+ default: "confirm"
2830
+ },
2831
+ popupProps: { type: Object },
2832
+ popupOn: {
2833
+ type: Object,
2834
+ default: () => ({})
2835
+ }
2836
+ };
2837
+ }
2838
+ var _o = Io(), To = {
2839
+ ...u.Field.props,
2840
+ ..._o
2841
+ };
2842
+ function Lo() {
2843
+ return {};
2844
+ }
2845
+ var qo = {}, Uo = {
2846
+ ...u.Field.emits,
2847
+ ...qo
2848
+ };
2849
+ var Ko = X((0, i.defineComponent)({
2850
+ name: "HTreeSelect",
2851
+ components: {
2852
+ VanTreeSelect: u.TreeSelect,
2853
+ VanField: u.Field,
2854
+ VanPopup: u.Popup
2855
+ },
2856
+ inheritAttrs: !1,
2857
+ props: _o,
2858
+ emits: qo,
2859
+ slots: Object,
2860
+ setup(e, t) {
2861
+ const o = A(e), { slotProps: n } = U(e, 0, o), r = (0, i.computed)(() => {
2862
+ const t = o.checked.value;
2863
+ if (!t) return "";
2864
+ const { format: n, separator: r } = e, l = e.treeSelectProps?.items || o.finalOption.value;
2865
+ if (n) return n({
2866
+ source: l,
2867
+ value: t,
2868
+ separator: r
2869
+ });
2870
+ const a = [];
2871
+ let s;
2872
+ return "string" == typeof t ? l.some((e) => (s = e.children.find((e) => e.id === t), s && a.push(s.text), !!s)) : t.forEach((e) => l.some((t) => (s = t.children.find((t) => t.id === e), s && a.push(s.text), !!s))), a.filter(Boolean).join(r);
2873
+ });
2874
+ const l = (0, i.ref)(0);
2875
+ let a;
2876
+ (0, i.watch)([o.checked, o.finalOption], ([e, t]) => {
2877
+ if (t?.length) if (a !== e) {
2878
+ if (a = null, l.value = 0, e && e.length) if ("string" == typeof e) {
2879
+ let o;
2880
+ t.some((t, n) => (o = t.children.some((t) => t.id === e), o && (l.value = n), o));
2881
+ } else {
2882
+ const o = e.map((e) => t.findIndex((t) => t.children.some((t) => t.id === e)));
2883
+ l.value = Math.max(0, Math.min(...o));
2884
+ }
2885
+ } else a = null;
2886
+ }, { immediate: !0 });
2887
+ const s = (0, i.ref)({
2888
+ visible: !1,
2889
+ open() {
2890
+ s.value.visible = !0;
2891
+ },
2892
+ close() {
2893
+ s.value.visible = !1;
2894
+ }
2895
+ });
2896
+ return {
2897
+ hyphenate: V,
2898
+ getNode: x,
2899
+ ...o,
2900
+ slotProps: n,
2901
+ showText: r,
2902
+ clickHandle: function(t) {
2903
+ o.globalDisabled.value || e.disabled || o.globalReadonly.value || e.readonly || (e.onRowClick ? e.onRowClick(s.value, t) : s.value.open());
2904
+ },
2905
+ mainActiveIndex: l,
2906
+ mainActiveIndexChange: function(e) {
2907
+ l.value = e;
2908
+ },
2909
+ activeIdChange: function(e) {
2910
+ o.change(e), a = o.checked.value, (0, i.nextTick)(() => a = null);
2911
+ },
2912
+ popupInfo: s
2913
+ };
2914
+ }
2915
+ }), [["render", function(e, t, o, n, r, l) {
2916
+ const a = (0, i.resolveComponent)("VanTreeSelect"), s = (0, i.resolveComponent)("VanPopup"), p = (0, i.resolveComponent)("VanField");
2917
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(p, (0, i.mergeProps)({
2918
+ key: 0,
2919
+ name: e.field,
2920
+ disabled: e.globalDisabled || e.disabled,
2921
+ readonly: !0,
2922
+ "is-link": e.isLink,
2923
+ "model-value": e.showText
2924
+ }, e.$attrs, { onClick: e.clickHandle }), (0, i.createSlots)({
2925
+ extra: (0, i.withCtx)(() => [(0, i.createVNode)(s, (0, i.mergeProps)({
2926
+ show: e.popupInfo.visible,
2927
+ "onUpdate:show": t[0] || (t[0] = (t) => e.popupInfo.visible = t),
2928
+ teleport: "body",
2929
+ round: "",
2930
+ position: "bottom"
2931
+ }, e.popupProps, (0, i.toHandlers)(e.popupOn), { onClose: e.popupInfo.close }), {
2932
+ default: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
2933
+ "main-active-index": e.mainActiveIndex,
2934
+ "active-id": e.checked,
2935
+ items: e.finalOption
2936
+ }, e.treeSelectProps, (0, i.toHandlers)(e.treeSelectOn), {
2937
+ "onUpdate:mainActiveIndex": e.mainActiveIndexChange,
2938
+ "onUpdate:activeId": e.activeIdChange
2939
+ }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.treeSelectSlots, (t, o) => ({
2940
+ name: e.hyphenate(o),
2941
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o, { options: e.finalOption }), null, 16, ["options"]))])
2942
+ }))]), 1040, [
2943
+ "main-active-index",
2944
+ "active-id",
2945
+ "items",
2946
+ "onUpdate:mainActiveIndex",
2947
+ "onUpdate:activeId"
2948
+ ])]),
2949
+ _: 1
2950
+ }, 16, ["show", "onClose"])]),
2951
+ _: 2
2952
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
2953
+ name: e.hyphenate(o),
2954
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
2955
+ }))]), 1040, [
2956
+ "name",
2957
+ "disabled",
2958
+ "is-link",
2959
+ "model-value",
2960
+ "onClick"
2961
+ ]));
2962
+ }]]);
2963
+ function $o() {
2964
+ return {
2965
+ ...$,
2966
+ ...I,
2967
+ uploadProps: { type: Object },
2968
+ uploadOn: {
2969
+ type: Object,
2970
+ default: () => ({})
2971
+ },
2972
+ uploadSlots: { type: Object },
2973
+ afterRead: { type: Function },
2974
+ uploadRequest: { type: Function },
2975
+ uploadingMessage: {
2976
+ type: [String, Function],
2977
+ default: "上传中"
2978
+ },
2979
+ failedMessage: { type: [String, Function] }
2980
+ };
2981
+ }
2982
+ var Mo = $o(), Wo = {
2983
+ ...u.Field.props,
2984
+ ...Mo
2985
+ };
2986
+ function Qo() {
2987
+ return {};
2988
+ }
2989
+ var zo = {}, Yo = {
2990
+ ...u.Field.emits,
2991
+ ...zo
2992
+ };
2993
+ var Jo = X((0, i.defineComponent)({
2994
+ name: "HUploader",
2995
+ components: {
2996
+ VanField: u.Field,
2997
+ VanUploader: u.Uploader
2998
+ },
2999
+ inheritAttrs: !1,
3000
+ props: Mo,
3001
+ emits: zo,
3002
+ slots: Object,
3003
+ setup(e, t) {
3004
+ const o = A(e), { slotProps: n } = U(e, 0, o);
3005
+ function r(e, t) {
3006
+ return {
3007
+ file: Array.isArray(e) ? e[0] : e,
3008
+ files: Array.isArray(e) ? e : [e],
3009
+ success: l,
3010
+ fail: a
3011
+ };
3012
+ }
3013
+ function l(e, t) {
3014
+ (Array.isArray(e) ? e : [e]).some((e) => ("uploading" !== e.status || (e.status = "done", e.message = "", e.response = t), !1));
3015
+ }
3016
+ function a(t, o) {
3017
+ (Array.isArray(t) ? t : [t]).some((t) => ("uploading" !== t.status || (t.status = "failed", t.message = "function" == typeof e.failedMessage ? e.failedMessage(t, o) : e.failedMessage, t.response = o), !1));
3018
+ }
3019
+ return {
3020
+ hyphenate: V,
3021
+ getNode: x,
3022
+ ...o,
3023
+ slotProps: n,
3024
+ rewriteAfterRead: function(t, o) {
3025
+ const n = r(t, o);
3026
+ if (e.afterRead) return e.afterRead(t, o, n);
3027
+ if (!e.uploadRequest) return;
3028
+ n.files.forEach((t) => {
3029
+ t.status = "uploading", t.message = "function" == typeof e.uploadingMessage ? e.uploadingMessage(t) : e.uploadingMessage;
3030
+ });
3031
+ const l = e.uploadRequest(n);
3032
+ "object" == typeof l && (l.then ? l.then(n.success.bind(null, n.files)) : l.catch(n.fail.bind(null, n.files)));
3033
+ },
3034
+ getUploadOption: r,
3035
+ successCallback: l,
3036
+ failCallback: a
3037
+ };
3038
+ }
3039
+ }), [["render", function(e, t, o, n, r, l) {
3040
+ const a = (0, i.resolveComponent)("VanUploader"), s = (0, i.resolveComponent)("VanField");
3041
+ return e.hide ? (0, i.createCommentVNode)("", !0) : ((0, i.openBlock)(), (0, i.createBlock)(s, (0, i.mergeProps)({
3042
+ key: 0,
3043
+ name: e.field,
3044
+ disabled: e.globalDisabled || e.disabled,
3045
+ readonly: e.globalReadonly || e.readonly
3046
+ }, e.$attrs), (0, i.createSlots)({
3047
+ input: (0, i.withCtx)(() => [(0, i.createVNode)(a, (0, i.mergeProps)({
3048
+ disabled: e.globalDisabled || e.disabled,
3049
+ readonly: e.globalReadonly || e.readonly,
3050
+ afterRead: e.rewriteAfterRead,
3051
+ "model-value": e.checked
3052
+ }, e.uploadProps, (0, i.toHandlers)(e.uploadOn), { "onUpdate:modelValue": e.change }), (0, i.createSlots)({ _: 2 }, [(0, i.renderList)(e.uploadSlots, (t, o) => ({
3053
+ name: e.hyphenate(o),
3054
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
3055
+ }))]), 1040, [
3056
+ "disabled",
3057
+ "readonly",
3058
+ "afterRead",
3059
+ "model-value",
3060
+ "onUpdate:modelValue"
3061
+ ])]),
3062
+ _: 2
3063
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
3064
+ name: e.hyphenate(o),
3065
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(e.slotProps, o), null, 16))])
3066
+ }))]), 1040, [
3067
+ "name",
3068
+ "disabled",
3069
+ "readonly"
3070
+ ]));
3071
+ }]]), Xo = { render: () => null }, Zo = {
3072
+ area: (0, i.markRaw)(Z),
3073
+ cascader: (0, i.markRaw)(de),
3074
+ checkbox: (0, i.markRaw)(Ve),
3075
+ "checkbox-group": (0, i.markRaw)(be),
3076
+ "custom-render": (0, i.markRaw)(He),
3077
+ datepicker: (0, i.markRaw)(Le),
3078
+ "date-picker": (0, i.markRaw)(Le),
3079
+ "date-time-picker-group": (0, i.markRaw)(Ye),
3080
+ "datetime-picker": (0, i.markRaw)(Xo),
3081
+ input: (0, i.markRaw)(nt),
3082
+ "number-keyboard": (0, i.markRaw)(ct),
3083
+ "password-input": (0, i.markRaw)(vt),
3084
+ picker: (0, i.markRaw)(wt),
3085
+ select: (0, i.markRaw)(wt),
3086
+ radio: (0, i.markRaw)(It),
3087
+ "radio-group": (0, i.markRaw)(jt),
3088
+ rate: (0, i.markRaw)($t),
3089
+ signature: (0, i.markRaw)(ao),
3090
+ slider: (0, i.markRaw)(fo),
3091
+ stepper: (0, i.markRaw)(Po),
3092
+ switch: (0, i.markRaw)(So),
3093
+ "time-picker": (0, i.markRaw)(Ao),
3094
+ timepicker: (0, i.markRaw)(Ao),
3095
+ "tree-select": (0, i.markRaw)(Ko),
3096
+ upload: (0, i.markRaw)(Jo)
3097
+ }, en = {};
3098
+ function tn(e, t) {
3099
+ en[e] = (0, i.markRaw)(t);
3100
+ }
3101
+ function on(e) {
3102
+ return en[e] || Zo[e] || (console.warn("未找到该组件类型: ", e), null);
3103
+ }
3104
+ function nn() {
3105
+ return {
3106
+ t: { type: String },
3107
+ field: { type: String },
3108
+ query: {
3109
+ type: Object,
3110
+ required: !0
3111
+ },
3112
+ tag: {
3113
+ type: [
3114
+ Object,
3115
+ String,
3116
+ Array,
3117
+ Function
3118
+ ],
3119
+ default: "div"
3120
+ },
3121
+ tagSlots: { type: Object },
3122
+ config: { type: [
3123
+ Object,
3124
+ Array,
3125
+ Function
3126
+ ] },
3127
+ slots: { type: Object },
3128
+ hooks: {
3129
+ type: [Object],
3130
+ default: void 0
3131
+ },
3132
+ getFormRef: { type: Function }
3133
+ };
3134
+ }
3135
+ var rn = nn(), ln = rn;
3136
+ function an() {
3137
+ return {};
3138
+ }
3139
+ var sn = {}, pn = sn;
3140
+ var cn = X((0, i.defineComponent)({
3141
+ name: "VirtualGroup",
3142
+ inheritAttrs: !1,
3143
+ props: {
3144
+ tag: {
3145
+ type: [
3146
+ Object,
3147
+ String,
3148
+ Array,
3149
+ Function
3150
+ ],
3151
+ default: "div"
3152
+ },
3153
+ slots: { type: [Object] },
3154
+ wrapper: { type: [Object] },
3155
+ query: { type: [Object] }
3156
+ },
3157
+ setup(e, t) {
3158
+ const o = (0, i.computed)(() => t.listeners || {});
3159
+ return {
3160
+ getNode: x,
3161
+ tagRef: (0, i.ref)(),
3162
+ events: o
3163
+ };
3164
+ }
3165
+ }), [["render", function(e, t, o, n, r, l) {
3166
+ return e.tag ? ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.tag), (0, i.mergeProps)({ key: 0 }, e.$attrs, { ref: "tagRef" }, (0, i.toHandlers)(e.events)), (0, i.createSlots)({
3167
+ default: (0, i.withCtx)(() => [(0, i.renderSlot)(e.$slots, "default")]),
3168
+ _: 2
3169
+ }, [(0, i.renderList)(e.slots, (t, o) => ({
3170
+ name: o,
3171
+ fn: (0, i.withCtx)((o) => [((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(t)), (0, i.mergeProps)(o, {
3172
+ wrapper: e.wrapper,
3173
+ query: e.query
3174
+ }), null, 16, ["wrapper", "query"]))])
3175
+ }))]), 1040)) : (0, i.renderSlot)(e.$slots, "default", { key: 1 });
3176
+ }]]), dn = "__field__", un = { "cell-group": {
3177
+ tag: (0, i.markRaw)(u.CellGroup),
3178
+ slots: (e) => e?.title ? { title: e.title } : void 0
3179
+ } };
3180
+ var mn = X((0, i.defineComponent)({
3181
+ name: "HGroup",
3182
+ components: { VirtualGroup: cn },
3183
+ inheritAttrs: !1,
3184
+ props: rn,
3185
+ emits: sn,
3186
+ slots: Object,
3187
+ setup(e, t) {
3188
+ const o = (0, i.ref)(), n = (0, i.computed)(() => {
3189
+ const { tag: t, t: o } = e;
3190
+ return un[o]?.tag || t;
3191
+ }), r = (0, i.computed)(() => {
3192
+ const { t, slots: o } = e;
3193
+ return un[t]?.slots?.(o);
3194
+ }), l = (0, i.computed)(() => o.value?.tagRef), a = G(), s = (0, i.computed)(() => {
3195
+ const { config: t } = e;
3196
+ return "function" == typeof t && e.getFormRef && !e.getFormRef?.() ? [] : p("function" == typeof t ? t({
3197
+ query: e.query,
3198
+ wrapper: a,
3199
+ formRef: e.getFormRef?.()
3200
+ }) : t);
3201
+ });
3202
+ function p(e) {
3203
+ if (k(e)) {
3204
+ const t = [];
3205
+ return Object.entries(e).forEach(([e, o]) => {
3206
+ o.field = e, t.push(o);
3207
+ }), t;
3208
+ }
3209
+ return e.forEach((e) => !e.field && e.fields && (e[dn] = e.fields.join(","))), e;
3210
+ }
3211
+ const c = H(a);
3212
+ return e.hooks?.created?.({
3213
+ props: e,
3214
+ wrapper: a,
3215
+ ...c
3216
+ }), {
3217
+ hyphenate: V,
3218
+ getNode: x,
3219
+ REWRITE_FIELD_KEY: dn,
3220
+ virtualGroupRef: o,
3221
+ virtualTag: n,
3222
+ virtualSlots: r,
3223
+ tagRef: l,
3224
+ wrapper: a,
3225
+ finalConfig: s,
3226
+ getComponent2: function(e) {
3227
+ return "group" === e || un[e] ? "HGroup" : on(e);
3228
+ }
3229
+ };
3230
+ }
3231
+ }), [["render", function(e, t, o, n, r, l) {
3232
+ const a = (0, i.resolveComponent)("VirtualGroup");
3233
+ return (0, i.openBlock)(), (0, i.createBlock)(a, (0, i.mergeProps)({ ref: "virtualGroupRef" }, e.$attrs, {
3234
+ tag: e.virtualTag,
3235
+ slots: e.virtualSlots || e.tagSlots,
3236
+ query: e.query,
3237
+ wrapper: e.wrapper
3238
+ }), {
3239
+ default: (0, i.withCtx)(() => [
3240
+ e.slots?.prepend || e.$slots.prepend ? ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(e.slots?.prepend || e.$slots.prepend)), {
3241
+ key: 0,
3242
+ query: e.query,
3243
+ wrapper: e.wrapper
3244
+ }, null, 8, ["query", "wrapper"])) : (0, i.createCommentVNode)("", !0),
3245
+ e.slots?.default ? ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.slots.default), {
3246
+ key: 1,
3247
+ config: e.finalConfig,
3248
+ query: e.query,
3249
+ wrapper: e.wrapper
3250
+ }, null, 8, [
3251
+ "config",
3252
+ "query",
3253
+ "wrapper"
3254
+ ])) : e.$slots.default ? (0, i.renderSlot)(e.$slots, "default", {
3255
+ key: 2,
3256
+ config: e.finalConfig,
3257
+ query: e.query
3258
+ }) : ((0, i.openBlock)(!0), (0, i.createElementBlock)(i.Fragment, { key: 3 }, (0, i.renderList)(e.finalConfig, (t, o) => ((0, i.openBlock)(), (0, i.createElementBlock)(i.Fragment, { key: t.as || t.field || t[e.REWRITE_FIELD_KEY] || o }, [t ? ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getComponent2(t.t)), (0, i.mergeProps)({
3259
+ key: 0,
3260
+ ref_for: !0
3261
+ }, t, {
3262
+ field: t.as || t.field || t[e.REWRITE_FIELD_KEY] || o,
3263
+ query: e.query
3264
+ }), null, 16, ["field", "query"])) : (0, i.createCommentVNode)("", !0)], 64))), 128)),
3265
+ e.slots?.append || e.$slots.append ? ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(e.slots?.append || e.$slots.append)), {
3266
+ key: 4,
3267
+ query: e.query,
3268
+ wrapper: e.wrapper
3269
+ }, null, 8, ["query", "wrapper"])) : (0, i.createCommentVNode)("", !0)
3270
+ ]),
3271
+ _: 3
3272
+ }, 16, [
3273
+ "tag",
3274
+ "slots",
3275
+ "query",
3276
+ "wrapper"
3277
+ ]);
3278
+ }]]);
3279
+ function fn() {
3280
+ return {
3281
+ ...I,
3282
+ t: { type: String },
3283
+ tag: {
3284
+ type: [
3285
+ Object,
3286
+ String,
3287
+ Array,
3288
+ Function
3289
+ ],
3290
+ default: "div"
3291
+ },
3292
+ config: { type: [
3293
+ Object,
3294
+ Array,
3295
+ Function
3296
+ ] },
3297
+ uniqueKey: { type: String },
3298
+ contentProps: { type: Object },
3299
+ slots: { type: Object },
3300
+ itemSlots: {
3301
+ type: Object,
3302
+ default: () => ({})
3303
+ }
3304
+ };
3305
+ }
3306
+ var yn = fn(), hn = yn;
3307
+ function vn() {
3308
+ return {};
3309
+ }
3310
+ var bn = {}, gn = bn, kn = 0, Pn = "__field__";
3311
+ var Cn = X((0, i.defineComponent)({
3312
+ name: "HDynamicGroup",
3313
+ components: { VirtualGroup: cn },
3314
+ props: yn,
3315
+ emits: bn,
3316
+ slots: Object,
3317
+ setup(e, t) {
3318
+ const o = (0, i.ref)(), n = (0, i.computed)(() => o.value?.tagRef), r = A(e), l = r.checked;
3319
+ let a = {
3320
+ configUniqueValue: [],
3321
+ checkedValue: []
3322
+ };
3323
+ const s = (0, i.computed)(() => {
3324
+ const { config: t } = e;
3325
+ if (!t) return [];
3326
+ const o = l.value;
3327
+ if (!o?.length) return [];
3328
+ const n = "function" == typeof t, s = !n && p(t), { uniqueKey: i } = e, c = o.map((l, c) => {
3329
+ return {
3330
+ uniqueValue: i ? l[i] : (d = l, u = c, a.checkedValue[u] === d ? a.configUniqueValue[u] : ++kn),
3331
+ options: n ? p(t({
3332
+ item: l,
3333
+ index: c,
3334
+ checked: o,
3335
+ query: e.query,
3336
+ plain: r
3337
+ })) : s
3338
+ };
3339
+ var d, u;
3340
+ });
3341
+ return a.configUniqueValue = c.map((e) => e.uniqueValue), a.checkedValue = [...o], c;
3342
+ });
3343
+ function p(e) {
3344
+ if (k(e)) {
3345
+ const t = [];
3346
+ return Object.entries(e).forEach(([e, o]) => {
3347
+ o.field = e, t.push(o);
3348
+ }), t;
3349
+ }
3350
+ return e.forEach((e) => !e.field && e.fields && (e[Pn] = e.fields.join(","))), e;
3351
+ }
3352
+ return {
3353
+ hyphenate: V,
3354
+ getNode: x,
3355
+ REWRITE_FIELD_KEY: Pn,
3356
+ virtualGroupRef: o,
3357
+ tagRef: n,
3358
+ plain: r,
3359
+ finalConfig: s,
3360
+ getComponent2: function(e) {
3361
+ return "dynamic-group" === e ? "HDynamicGroup" : "group" === e ? mn : on(e);
3362
+ }
3363
+ };
3364
+ }
3365
+ }), [["render", function(e, t, o, n, r, l) {
3366
+ const a = (0, i.resolveComponent)("VirtualGroup");
3367
+ return (0, i.openBlock)(), (0, i.createBlock)(a, {
3368
+ ref: "virtualGroupRef",
3369
+ tag: e.tag
3370
+ }, {
3371
+ default: (0, i.withCtx)(() => [
3372
+ e.slots?.prepend || e.$slots.prepend ? ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(e.slots?.prepend || e.$slots.prepend)), {
3373
+ key: 0,
3374
+ query: e.query,
3375
+ checked: e.plain.checked.value,
3376
+ plain: e.plain
3377
+ }, null, 8, [
3378
+ "query",
3379
+ "checked",
3380
+ "plain"
3381
+ ])) : (0, i.createCommentVNode)("", !0),
3382
+ ((0, i.openBlock)(!0), (0, i.createElementBlock)(i.Fragment, null, (0, i.renderList)(e.finalConfig, (t, o) => ((0, i.openBlock)(), (0, i.createElementBlock)("div", (0, i.mergeProps)({
3383
+ key: t.uniqueValue,
3384
+ ref_for: !0
3385
+ }, e.contentProps), [
3386
+ ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.itemSlots.prepend), {
3387
+ query: e.query,
3388
+ checked: e.plain.checked.value,
3389
+ index: o,
3390
+ plain: e.plain
3391
+ }, null, 8, [
3392
+ "query",
3393
+ "checked",
3394
+ "index",
3395
+ "plain"
3396
+ ])),
3397
+ ((0, i.openBlock)(!0), (0, i.createElementBlock)(i.Fragment, null, (0, i.renderList)(t.options, (n) => ((0, i.openBlock)(), (0, i.createElementBlock)(i.Fragment, { key: `${e.field}.${o}.${n.field || n[e.REWRITE_FIELD_KEY]}` }, [n ? ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getComponent2(n.t)), (0, i.mergeProps)({
3398
+ key: 0,
3399
+ ref_for: !0
3400
+ }, n, {
3401
+ "unique-value": t.uniqueValue,
3402
+ field: `${e.field}.${o}.${n.field || n[e.REWRITE_FIELD_KEY]}`,
3403
+ query: e.query,
3404
+ "parent-query": e.plain.checked.value[o]
3405
+ }), null, 16, [
3406
+ "unique-value",
3407
+ "field",
3408
+ "query",
3409
+ "parent-query"
3410
+ ])) : (0, i.createCommentVNode)("", !0)], 64))), 128)),
3411
+ ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.itemSlots.append), {
3412
+ query: e.query,
3413
+ checked: e.plain.checked.value,
3414
+ index: o,
3415
+ plain: e.plain
3416
+ }, null, 8, [
3417
+ "query",
3418
+ "checked",
3419
+ "index",
3420
+ "plain"
3421
+ ]))
3422
+ ], 16))), 128)),
3423
+ e.slots?.append || e.$slots.append ? ((0, i.openBlock)(), (0, i.createBlock)((0, i.resolveDynamicComponent)(e.getNode(e.slots?.append || e.$slots.append)), {
3424
+ key: 1,
3425
+ query: e.query,
3426
+ checked: e.plain.checked.value,
3427
+ plain: e.plain
3428
+ }, null, 8, [
3429
+ "query",
3430
+ "checked",
3431
+ "plain"
3432
+ ])) : (0, i.createCommentVNode)("", !0)
3433
+ ]),
3434
+ _: 1
3435
+ }, 8, ["tag"]);
3436
+ }]]);
3437
+ tn("dynamic-group", Cn);
3438
+ var xn = u.Form.props, wn = function(e) {
3439
+ if (!Array.isArray(e)) return e || {};
3440
+ const t = {}, o = () => !0;
3441
+ return e.forEach((e) => {
3442
+ return t[n = e, n.replace(q, (e) => e.slice(1).toUpperCase())] = o;
3443
+ var n;
3444
+ }), t;
3445
+ }(u.Form.emits);
3446
+ function Vn() {
3447
+ return {
3448
+ ...L,
3449
+ config: { type: [
3450
+ Object,
3451
+ Array,
3452
+ Function
3453
+ ] }
3454
+ };
3455
+ }
3456
+ var On = Vn(), Bn = {
3457
+ ...xn,
3458
+ ...On
3459
+ };
3460
+ function Sn() {
3461
+ return { submit: (e) => !0 };
3462
+ }
3463
+ var Fn = { submit: (e) => !0 }, Rn = {
3464
+ ...wn,
3465
+ ...Fn
3466
+ };
3467
+ var jn = X((0, i.defineComponent)({
3468
+ name: "HForm",
3469
+ components: { HGroup: mn },
3470
+ inheritAttrs: !1,
3471
+ props: On,
3472
+ emits: Fn,
3473
+ slots: Object,
3474
+ setup(e, t) {
3475
+ const o = (0, i.ref)(), n = (0, i.computed)(() => o.value?.tagRef), r = (0, i.computed)(() => t.listeners || {});
3476
+ function l(...e) {
3477
+ return n.value.resetValidation(...e);
3478
+ }
3479
+ const a = _(e, { formRef: n });
3480
+ const s = (0, i.computed)(() => ({
3481
+ props: e,
3482
+ wrapper: a
3483
+ }));
3484
+ return {
3485
+ groupRef: o,
3486
+ VanForm: (0, i.markRaw)(u.Form),
3487
+ formRef: n,
3488
+ events: r,
3489
+ submitHandle: function(e) {
3490
+ t.emit("submit", a.getQuery());
3491
+ },
3492
+ ...a,
3493
+ validate: function(...e) {
3494
+ return n.value.validate(...e);
3495
+ },
3496
+ validateField: function(...e) {
3497
+ return n.value.validate(...e);
3498
+ },
3499
+ clearValidate: l,
3500
+ resetValidation: function(...e) {
3501
+ return n.value.resetValidation(...e);
3502
+ },
3503
+ submit: function() {
3504
+ n.value?.submit();
3505
+ },
3506
+ reset: function() {
3507
+ a.reset(), setTimeout(l);
3508
+ },
3509
+ getValues: function(...e) {
3510
+ return n.value.getValues(...e);
3511
+ },
3512
+ getValidationStatus: function(...e) {
3513
+ return n.value.getValidationStatus(...e);
3514
+ },
3515
+ scrollToField: function(...e) {
3516
+ return n.value.scrollToField(...e);
3517
+ },
3518
+ getFormRef: function() {
3519
+ return n.value;
3520
+ },
3521
+ slotProps: s
3522
+ };
3523
+ }
3524
+ }), [["render", function(e, t, o, n, r, l) {
3525
+ const a = (0, i.resolveComponent)("HGroup");
3526
+ return (0, i.openBlock)(), (0, i.createBlock)(a, (0, i.mergeProps)(e.$attrs, {
3527
+ ref: "groupRef",
3528
+ disabled: e.disabled,
3529
+ config: e.config,
3530
+ model: e.query,
3531
+ query: e.query,
3532
+ "get-form-ref": e.getFormRef,
3533
+ tag: e.VanForm
3534
+ }, (0, i.toHandlers)(e.events), { onSubmit: e.submitHandle }), (0, i.createSlots)({
3535
+ append: (0, i.withCtx)(() => [(0, i.renderSlot)(e.$slots, "default", (0, i.normalizeProps)((0, i.guardReactiveProps)(e.slotProps)))]),
3536
+ _: 2
3537
+ }, [e.$slots.prepend ? {
3538
+ name: "prepend",
3539
+ fn: (0, i.withCtx)(() => [(0, i.renderSlot)(e.$slots, "prepend", (0, i.normalizeProps)((0, i.guardReactiveProps)(e.slotProps)))]),
3540
+ key: "0"
3541
+ } : void 0]), 1040, [
3542
+ "disabled",
3543
+ "config",
3544
+ "model",
3545
+ "query",
3546
+ "get-form-ref",
3547
+ "tag",
3548
+ "onSubmit"
3549
+ ]);
3550
+ }]]);
3551
+ var Hn = a({});
3552
+ exports.HArea = Z, exports.HCascader = de, exports.HCheckbox = Ve, exports.HCheckboxGroup = be, exports.HCustomRender = He, exports.HDatePicker = Le, exports.HDateTimePickerGroup = Ye, exports.HDatetimePicker = Xo, exports.HDynamicGroup = Cn, exports.HForm = jn, exports.HGroup = mn, exports.HInput = nt, exports.HInputSlot = oe, exports.HNumberKeyboard = ct, exports.HPasswordInput = vt, exports.HPicker = wt, exports.HRadio = It, exports.HRadioGroup = jt, exports.HRate = $t, exports.HSignature = ao, exports.HSlider = fo, exports.HStepper = Po, exports.HSwitch = So, exports.HTimePicker = Ao, exports.HTreeSelect = Ko, exports.HUpload = Jo, Object.defineProperty(exports, "JSONFormTs", {
3553
+ enumerable: !0,
3554
+ get: function() {
3555
+ return Hn;
3556
+ }
3557
+ }), exports.areaEmits = J, exports.areaEmitsGeneric = z, exports.areaEmitsPrivate = Y, exports.areaProps = Q, exports.areaPropsGeneric = M, exports.areaPropsPrivate = W, exports.cascaderEmits = ce, exports.cascaderEmitsGeneric = ie, exports.cascaderEmitsPrivate = pe, exports.cascaderProps = se, exports.cascaderPropsGeneric = le, exports.cascaderPropsPrivate = ae, exports.checkboxEmits = we, exports.checkboxEmitsGeneric = Ce, exports.checkboxEmitsPrivate = xe, exports.checkboxGroupEmits = ve, exports.checkboxGroupEmitsGeneric = ye, exports.checkboxGroupEmitsPrivate = he, exports.checkboxGroupProps = fe, exports.checkboxGroupPropsGeneric = ue, exports.checkboxGroupPropsPrivate = me, exports.checkboxProps = Pe, exports.checkboxPropsGeneric = ge, exports.checkboxPropsPrivate = ke, exports.commonProps = $, exports.commonPropsGeneric = K, exports.coreVersion = "0.2.8", exports.customRenderEmits = je, exports.customRenderEmitsGeneric = Fe, exports.customRenderEmitsPrivate = Re, exports.customRenderProps = Se, exports.customRenderPropsGeneric = Oe, exports.customRenderPropsPrivate = Be, exports.datePickerEmits = Ie, exports.datePickerEmitsGeneric = Ge, exports.datePickerEmitsPrivate = Ae, exports.datePickerProps = Ee, exports.datePickerPropsGeneric = Ne, exports.datePickerPropsPrivate = De, exports.dateTimePickerGroupEmits = We, exports.dateTimePickerGroupEmitsGeneric = $e, exports.dateTimePickerGroupEmitsPrivate = Me, exports.dateTimePickerGroupProps = Ke, exports.dateTimePickerGroupPropsGeneric = qe, exports.dateTimePickerGroupPropsPrivate = Ue, exports.defineOption = function(e) {
3558
+ return e;
3559
+ }, exports.dynamicGroupEmits = gn, exports.dynamicGroupEmitsGeneric = vn, exports.dynamicGroupEmitsPrivate = bn, exports.dynamicGroupProps = hn, exports.dynamicGroupPropsGeneric = fn, exports.dynamicGroupPropsPrivate = yn, exports.formEmits = Rn, exports.formEmitsGeneric = Sn, exports.formEmitsPrivate = Fn, exports.formProps = Bn, exports.formPropsGeneric = Vn, exports.formPropsPrivate = On, exports.getAllComponent = function(e) {
3560
+ return e ? "user" === e ? { ...en } : { ...Zo } : {
3561
+ ...Zo,
3562
+ ...en
3563
+ };
3564
+ }, exports.getComponent = on, exports.groupEmits = pn, exports.groupEmitsGeneric = an, exports.groupEmitsPrivate = sn, exports.groupProps = ln, exports.groupPropsGeneric = nn, exports.groupPropsPrivate = rn, exports.inputEmits = ot, exports.inputEmitsGeneric = et, exports.inputEmitsPrivate = tt, exports.inputProps = Ze, exports.inputPropsGeneric = Je, exports.inputPropsPrivate = Xe, exports.inputSlotEmits = te, exports.inputSlotProps = ee, exports.numberKeyboardEmits = pt, exports.numberKeyboardEmitsGeneric = st, exports.numberKeyboardEmitsPrivate = it, exports.numberKeyboardProps = at, exports.numberKeyboardPropsGeneric = rt, exports.numberKeyboardPropsPrivate = lt, exports.passwordInputEmits = ht, exports.passwordInputEmitsGeneric = ft, exports.passwordInputEmitsPrivate = yt, exports.passwordInputProps = mt, exports.passwordInputPropsGeneric = dt, exports.passwordInputPropsPrivate = ut, exports.pickerEmits = xt, exports.pickerEmitsGeneric = Pt, exports.pickerEmitsPrivate = Ct, exports.pickerProps = kt, exports.pickerPropsGeneric = bt, exports.pickerPropsPrivate = gt, exports.provideKey = E, exports.radioEmits = At, exports.radioEmitsGeneric = Et, exports.radioEmitsPrivate = Gt, exports.radioGroupEmits = Rt, exports.radioGroupEmitsGeneric = St, exports.radioGroupEmitsPrivate = Ft, exports.radioGroupProps = Bt, exports.radioGroupPropsGeneric = Vt, exports.radioGroupPropsPrivate = Ot, exports.radioProps = Dt, exports.radioPropsGeneric = Ht, exports.radioPropsPrivate = Nt, exports.rateEmits = Kt, exports.rateEmitsGeneric = qt, exports.rateEmitsPrivate = Ut, exports.rateProps = Lt, exports.ratePropsGeneric = _t, exports.ratePropsPrivate = Tt, exports.registerComponent = tn, exports.signatureEmits = Jt, exports.signatureEmitsGeneric = zt, exports.signatureEmitsPrivate = Yt, exports.signatureFormat = Xt, exports.signatureProps = Qt, exports.signaturePropsGeneric = Mt, exports.signaturePropsPrivate = Wt, exports.sliderEmits = mo, exports.sliderEmitsGeneric = co, exports.sliderEmitsPrivate = uo, exports.sliderProps = po, exports.sliderPropsGeneric = so, exports.sliderPropsPrivate = io, exports.stepperEmits = ko, exports.stepperEmitsGeneric = bo, exports.stepperEmitsPrivate = go, exports.stepperProps = vo, exports.stepperPropsGeneric = yo, exports.stepperPropsPrivate = ho, exports.switchEmits = Bo, exports.switchEmitsGeneric = Vo, exports.switchEmitsPrivate = Oo, exports.switchProps = wo, exports.switchPropsGeneric = Co, exports.switchPropsPrivate = xo, exports.timePickerEmits = Do, exports.timePickerEmitsGeneric = Ho, exports.timePickerEmitsPrivate = No, exports.timePickerProps = jo, exports.timePickerPropsGeneric = Fo, exports.timePickerPropsPrivate = Ro, exports.treeSelectEmits = Uo, exports.treeSelectEmitsGeneric = Lo, exports.treeSelectEmitsPrivate = qo, exports.treeSelectProps = To, exports.treeSelectPropsGeneric = Io, exports.treeSelectPropsPrivate = _o, exports.unregisterComponent = function(e) {
3565
+ delete en[e];
3566
+ }, exports.uploadEmits = Yo, exports.uploadEmitsGeneric = Qo, exports.uploadEmitsPrivate = zo, exports.uploadProps = Wo, exports.uploadPropsGeneric = $o, exports.uploadPropsPrivate = Mo, exports.version = "0.0.1";
3567
+
3568
+ //# sourceMappingURL=index.cjs.min.js.map