@witlink/usercenter 1.0.0

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 (49) hide show
  1. package/README.md +155 -0
  2. package/dist/404.e6ab6ba0.mjs +10 -0
  3. package/dist/Card.71482621.mjs +1078 -0
  4. package/dist/DictEx.754c617b.mjs +156 -0
  5. package/dist/FooterToolBar.2546fb1f.mjs +33 -0
  6. package/dist/RegionSelect.5272534b.mjs +71 -0
  7. package/dist/Standard.64ae6a8d.mjs +113 -0
  8. package/dist/WebClient.0ac67ce0.mjs +153 -0
  9. package/dist/assets/FooterToolBar.d4297046.css +1 -0
  10. package/dist/assets/Standard.badeec91.css +1 -0
  11. package/dist/assets/WebClient.2a3e464e.css +1 -0
  12. package/dist/assets/index.01a0fb63.css +1 -0
  13. package/dist/assets/index.19e5ba4c.css +1 -0
  14. package/dist/assets/index.2164de3b.css +1 -0
  15. package/dist/assets/index.269f5360.css +1 -0
  16. package/dist/assets/index.28bdbdc3.css +1 -0
  17. package/dist/assets/index.3150518d.css +1 -0
  18. package/dist/assets/index.3a0797c4.css +1 -0
  19. package/dist/assets/index.53c37fa8.css +1 -0
  20. package/dist/assets/index.7c8e2d8f.css +1 -0
  21. package/dist/assets/index.b965b94b.css +1 -0
  22. package/dist/assets/index.fb7724ee.css +1 -0
  23. package/dist/index.003313e6.mjs +69436 -0
  24. package/dist/index.05ef920d.mjs +1129 -0
  25. package/dist/index.1953dbda.mjs +498 -0
  26. package/dist/index.1af0e30d.mjs +10 -0
  27. package/dist/index.2242d1a7.mjs +125 -0
  28. package/dist/index.2291c8e2.mjs +125 -0
  29. package/dist/index.3c2af165.mjs +761 -0
  30. package/dist/index.919ac6b4.mjs +7431 -0
  31. package/dist/index.941a34c0.mjs +874 -0
  32. package/dist/index.96479524.mjs +754 -0
  33. package/dist/index.9803c44f.mjs +125 -0
  34. package/dist/index.a000e9cf.mjs +1445 -0
  35. package/dist/index.b3eb7c5d.mjs +10 -0
  36. package/dist/index.c9138cba.mjs +1104 -0
  37. package/dist/index.ceea88a4.mjs +1073 -0
  38. package/dist/index.da7dd593.mjs +10 -0
  39. package/dist/index.e271ee9d.mjs +643 -0
  40. package/dist/index.e7802e27.mjs +786 -0
  41. package/dist/index.ef2e93a1.mjs +386 -0
  42. package/dist/index.f701b909.mjs +142 -0
  43. package/dist/index.f9becca6.mjs +6 -0
  44. package/dist/index.fa4bb855.mjs +7645 -0
  45. package/dist/index.html +1 -0
  46. package/dist/use-dict-by-type.c90c1d31.mjs +24 -0
  47. package/dist/usercenter.umd.js +6237 -0
  48. package/package.json +26 -0
  49. package/version.md +2 -0
@@ -0,0 +1,761 @@
1
+ import { i as re, d as m, e as M, f as D, P as N, j as ne, m as ae, K as ie, r as K, k as q, u as X, n as le, o as U, p as V, q as de, t as j, v as P, w as H, x as se } from "./index.003313e6.mjs";
2
+ import { defineComponent as A, ref as _, watch as J, createVNode as O, provide as Q, inject as Y, computed as G, nextTick as ce } from "vue";
3
+ var ue = globalThis && globalThis.__rest || function(e, r) {
4
+ var n = {};
5
+ for (var o in e)
6
+ Object.prototype.hasOwnProperty.call(e, o) && r.indexOf(o) < 0 && (n[o] = e[o]);
7
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
8
+ for (var t = 0, o = Object.getOwnPropertySymbols(e); t < o.length; t++)
9
+ r.indexOf(o[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[t]) && (n[o[t]] = e[o[t]]);
10
+ return n;
11
+ };
12
+ const be = {
13
+ prefixCls: String,
14
+ name: String,
15
+ id: String,
16
+ type: String,
17
+ defaultChecked: {
18
+ type: [Boolean, Number],
19
+ default: void 0
20
+ },
21
+ checked: {
22
+ type: [Boolean, Number],
23
+ default: void 0
24
+ },
25
+ disabled: Boolean,
26
+ tabindex: {
27
+ type: [Number, String]
28
+ },
29
+ readonly: Boolean,
30
+ autofocus: Boolean,
31
+ value: N.any,
32
+ required: Boolean
33
+ }, pe = A({
34
+ compatConfig: {
35
+ MODE: 3
36
+ },
37
+ name: "Checkbox",
38
+ inheritAttrs: !1,
39
+ props: re(be, {
40
+ prefixCls: "rc-checkbox",
41
+ type: "checkbox",
42
+ defaultChecked: !1
43
+ }),
44
+ emits: ["click", "change"],
45
+ setup(e, r) {
46
+ let {
47
+ attrs: n,
48
+ emit: o,
49
+ expose: t
50
+ } = r;
51
+ const l = _(e.checked === void 0 ? e.defaultChecked : e.checked), s = _();
52
+ J(() => e.checked, () => {
53
+ l.value = e.checked;
54
+ }), t({
55
+ focus() {
56
+ var a;
57
+ (a = s.value) === null || a === void 0 || a.focus();
58
+ },
59
+ blur() {
60
+ var a;
61
+ (a = s.value) === null || a === void 0 || a.blur();
62
+ }
63
+ });
64
+ const $ = _(), v = (a) => {
65
+ if (e.disabled)
66
+ return;
67
+ e.checked === void 0 && (l.value = a.target.checked), a.shiftKey = $.value;
68
+ const b = {
69
+ target: m(m({}, e), {
70
+ checked: a.target.checked
71
+ }),
72
+ stopPropagation() {
73
+ a.stopPropagation();
74
+ },
75
+ preventDefault() {
76
+ a.preventDefault();
77
+ },
78
+ nativeEvent: a
79
+ };
80
+ e.checked !== void 0 && (s.value.checked = !!e.checked), o("change", b), $.value = !1;
81
+ }, g = (a) => {
82
+ o("click", a), $.value = a.shiftKey;
83
+ };
84
+ return () => {
85
+ const {
86
+ prefixCls: a,
87
+ name: b,
88
+ id: C,
89
+ type: B,
90
+ disabled: u,
91
+ readonly: f,
92
+ tabindex: i,
93
+ autofocus: k,
94
+ value: p,
95
+ required: h
96
+ } = e, w = ue(e, ["prefixCls", "name", "id", "type", "disabled", "readonly", "tabindex", "autofocus", "value", "required"]), {
97
+ class: d,
98
+ onFocus: S,
99
+ onBlur: R,
100
+ onKeydown: c,
101
+ onKeypress: y,
102
+ onKeyup: T
103
+ } = n, E = m(m({}, w), n), W = Object.keys(E).reduce((L, z) => ((z.startsWith("data-") || z.startsWith("aria-") || z === "role") && (L[z] = E[z]), L), {}), x = M(a, d, {
104
+ [`${a}-checked`]: l.value,
105
+ [`${a}-disabled`]: u
106
+ }), F = m(m({
107
+ name: b,
108
+ id: C,
109
+ type: B,
110
+ readonly: f,
111
+ disabled: u,
112
+ tabindex: i,
113
+ class: `${a}-input`,
114
+ checked: !!l.value,
115
+ autofocus: k,
116
+ value: p
117
+ }, W), {
118
+ onChange: v,
119
+ onClick: g,
120
+ onFocus: S,
121
+ onBlur: R,
122
+ onKeydown: c,
123
+ onKeypress: y,
124
+ onKeyup: T,
125
+ required: h
126
+ });
127
+ return O("span", {
128
+ class: x
129
+ }, [O("input", D({
130
+ ref: s
131
+ }, F), null), O("span", {
132
+ class: `${a}-inner`
133
+ }, null)]);
134
+ };
135
+ }
136
+ }), Z = Symbol("radioGroupContextKey"), he = (e) => {
137
+ Q(Z, e);
138
+ }, ge = () => Y(Z, void 0), ee = Symbol("radioOptionTypeContextKey"), fe = (e) => {
139
+ Q(ee, e);
140
+ }, ve = () => Y(ee, void 0), Ce = new ie("antRadioEffect", {
141
+ "0%": {
142
+ transform: "scale(1)",
143
+ opacity: 0.5
144
+ },
145
+ "100%": {
146
+ transform: "scale(1.6)",
147
+ opacity: 0
148
+ }
149
+ }), me = (e) => {
150
+ const {
151
+ componentCls: r,
152
+ antCls: n
153
+ } = e, o = `${r}-group`;
154
+ return {
155
+ [o]: m(m({}, K(e)), {
156
+ display: "inline-block",
157
+ fontSize: 0,
158
+ [`&${o}-rtl`]: {
159
+ direction: "rtl"
160
+ },
161
+ [`${n}-badge ${n}-badge-count`]: {
162
+ zIndex: 1
163
+ },
164
+ [`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]: {
165
+ borderInlineStart: "none"
166
+ }
167
+ })
168
+ };
169
+ }, Se = (e) => {
170
+ const {
171
+ componentCls: r,
172
+ radioWrapperMarginRight: n,
173
+ radioCheckedColor: o,
174
+ radioSize: t,
175
+ motionDurationSlow: l,
176
+ motionDurationMid: s,
177
+ motionEaseInOut: $,
178
+ motionEaseInOutCirc: v,
179
+ radioButtonBg: g,
180
+ colorBorder: a,
181
+ lineWidth: b,
182
+ radioDotSize: C,
183
+ colorBgContainerDisabled: B,
184
+ colorTextDisabled: u,
185
+ paddingXS: f,
186
+ radioDotDisabledColor: i,
187
+ lineType: k,
188
+ radioDotDisabledSize: p,
189
+ wireframe: h,
190
+ colorWhite: w
191
+ } = e, d = `${r}-inner`;
192
+ return {
193
+ [`${r}-wrapper`]: m(m({}, K(e)), {
194
+ position: "relative",
195
+ display: "inline-flex",
196
+ alignItems: "baseline",
197
+ marginInlineStart: 0,
198
+ marginInlineEnd: n,
199
+ cursor: "pointer",
200
+ [`&${r}-wrapper-rtl`]: {
201
+ direction: "rtl"
202
+ },
203
+ "&-disabled": {
204
+ cursor: "not-allowed",
205
+ color: e.colorTextDisabled
206
+ },
207
+ "&::after": {
208
+ display: "inline-block",
209
+ width: 0,
210
+ overflow: "hidden",
211
+ content: '"\\a0"'
212
+ },
213
+ [`${r}-checked::after`]: {
214
+ position: "absolute",
215
+ insetBlockStart: 0,
216
+ insetInlineStart: 0,
217
+ width: "100%",
218
+ height: "100%",
219
+ border: `${b}px ${k} ${o}`,
220
+ borderRadius: "50%",
221
+ visibility: "hidden",
222
+ animationName: Ce,
223
+ animationDuration: l,
224
+ animationTimingFunction: $,
225
+ animationFillMode: "both",
226
+ content: '""'
227
+ },
228
+ [r]: m(m({}, K(e)), {
229
+ position: "relative",
230
+ display: "inline-block",
231
+ outline: "none",
232
+ cursor: "pointer",
233
+ alignSelf: "center"
234
+ }),
235
+ [`${r}-wrapper:hover &,
236
+ &:hover ${d}`]: {
237
+ borderColor: o
238
+ },
239
+ [`${r}-input:focus-visible + ${d}`]: m({}, q(e)),
240
+ [`${r}:hover::after, ${r}-wrapper:hover &::after`]: {
241
+ visibility: "visible"
242
+ },
243
+ [`${r}-inner`]: {
244
+ "&::after": {
245
+ boxSizing: "border-box",
246
+ position: "absolute",
247
+ insetBlockStart: "50%",
248
+ insetInlineStart: "50%",
249
+ display: "block",
250
+ width: t,
251
+ height: t,
252
+ marginBlockStart: t / -2,
253
+ marginInlineStart: t / -2,
254
+ backgroundColor: h ? o : w,
255
+ borderBlockStart: 0,
256
+ borderInlineStart: 0,
257
+ borderRadius: t,
258
+ transform: "scale(0)",
259
+ opacity: 0,
260
+ transition: `all ${l} ${v}`,
261
+ content: '""'
262
+ },
263
+ boxSizing: "border-box",
264
+ position: "relative",
265
+ insetBlockStart: 0,
266
+ insetInlineStart: 0,
267
+ display: "block",
268
+ width: t,
269
+ height: t,
270
+ backgroundColor: g,
271
+ borderColor: a,
272
+ borderStyle: "solid",
273
+ borderWidth: b,
274
+ borderRadius: "50%",
275
+ transition: `all ${s}`
276
+ },
277
+ [`${r}-input`]: {
278
+ position: "absolute",
279
+ insetBlockStart: 0,
280
+ insetInlineEnd: 0,
281
+ insetBlockEnd: 0,
282
+ insetInlineStart: 0,
283
+ zIndex: 1,
284
+ cursor: "pointer",
285
+ opacity: 0
286
+ },
287
+ [`${r}-checked`]: {
288
+ [d]: {
289
+ borderColor: o,
290
+ backgroundColor: h ? g : o,
291
+ "&::after": {
292
+ transform: `scale(${C / t})`,
293
+ opacity: 1,
294
+ transition: `all ${l} ${v}`
295
+ }
296
+ }
297
+ },
298
+ [`${r}-disabled`]: {
299
+ cursor: "not-allowed",
300
+ [d]: {
301
+ backgroundColor: B,
302
+ borderColor: a,
303
+ cursor: "not-allowed",
304
+ "&::after": {
305
+ backgroundColor: i
306
+ }
307
+ },
308
+ [`${r}-input`]: {
309
+ cursor: "not-allowed"
310
+ },
311
+ [`${r}-disabled + span`]: {
312
+ color: u,
313
+ cursor: "not-allowed"
314
+ },
315
+ [`&${r}-checked`]: {
316
+ [d]: {
317
+ "&::after": {
318
+ transform: `scale(${p / t})`
319
+ }
320
+ }
321
+ }
322
+ },
323
+ [`span${r} + *`]: {
324
+ paddingInlineStart: f,
325
+ paddingInlineEnd: f
326
+ }
327
+ })
328
+ };
329
+ }, ke = (e) => {
330
+ const {
331
+ radioButtonColor: r,
332
+ controlHeight: n,
333
+ componentCls: o,
334
+ lineWidth: t,
335
+ lineType: l,
336
+ colorBorder: s,
337
+ motionDurationSlow: $,
338
+ motionDurationMid: v,
339
+ radioButtonPaddingHorizontal: g,
340
+ fontSize: a,
341
+ radioButtonBg: b,
342
+ fontSizeLG: C,
343
+ controlHeightLG: B,
344
+ controlHeightSM: u,
345
+ paddingXS: f,
346
+ borderRadius: i,
347
+ borderRadiusSM: k,
348
+ borderRadiusLG: p,
349
+ radioCheckedColor: h,
350
+ radioButtonCheckedBg: w,
351
+ radioButtonHoverColor: d,
352
+ radioButtonActiveColor: S,
353
+ radioSolidCheckedColor: R,
354
+ colorTextDisabled: c,
355
+ colorBgContainerDisabled: y,
356
+ radioDisabledButtonCheckedColor: T,
357
+ radioDisabledButtonCheckedBg: E
358
+ } = e;
359
+ return {
360
+ [`${o}-button-wrapper`]: {
361
+ position: "relative",
362
+ display: "inline-block",
363
+ height: n,
364
+ margin: 0,
365
+ paddingInline: g,
366
+ paddingBlock: 0,
367
+ color: r,
368
+ fontSize: a,
369
+ lineHeight: `${n - t * 2}px`,
370
+ background: b,
371
+ border: `${t}px ${l} ${s}`,
372
+ borderBlockStartWidth: t + 0.02,
373
+ borderInlineStartWidth: 0,
374
+ borderInlineEndWidth: t,
375
+ cursor: "pointer",
376
+ transition: [`color ${v}`, `background ${v}`, `border-color ${v}`, `box-shadow ${v}`].join(","),
377
+ a: {
378
+ color: r
379
+ },
380
+ [`> ${o}-button`]: {
381
+ position: "absolute",
382
+ insetBlockStart: 0,
383
+ insetInlineStart: 0,
384
+ zIndex: -1,
385
+ width: "100%",
386
+ height: "100%"
387
+ },
388
+ "&:not(:first-child)": {
389
+ "&::before": {
390
+ position: "absolute",
391
+ insetBlockStart: -t,
392
+ insetInlineStart: -t,
393
+ display: "block",
394
+ boxSizing: "content-box",
395
+ width: 1,
396
+ height: "100%",
397
+ paddingBlock: t,
398
+ paddingInline: 0,
399
+ backgroundColor: s,
400
+ transition: `background-color ${$}`,
401
+ content: '""'
402
+ }
403
+ },
404
+ "&:first-child": {
405
+ borderInlineStart: `${t}px ${l} ${s}`,
406
+ borderStartStartRadius: i,
407
+ borderEndStartRadius: i
408
+ },
409
+ "&:last-child": {
410
+ borderStartEndRadius: i,
411
+ borderEndEndRadius: i
412
+ },
413
+ "&:first-child:last-child": {
414
+ borderRadius: i
415
+ },
416
+ [`${o}-group-large &`]: {
417
+ height: B,
418
+ fontSize: C,
419
+ lineHeight: `${B - t * 2}px`,
420
+ "&:first-child": {
421
+ borderStartStartRadius: p,
422
+ borderEndStartRadius: p
423
+ },
424
+ "&:last-child": {
425
+ borderStartEndRadius: p,
426
+ borderEndEndRadius: p
427
+ }
428
+ },
429
+ [`${o}-group-small &`]: {
430
+ height: u,
431
+ paddingInline: f - t,
432
+ paddingBlock: 0,
433
+ lineHeight: `${u - t * 2}px`,
434
+ "&:first-child": {
435
+ borderStartStartRadius: k,
436
+ borderEndStartRadius: k
437
+ },
438
+ "&:last-child": {
439
+ borderStartEndRadius: k,
440
+ borderEndEndRadius: k
441
+ }
442
+ },
443
+ "&:hover": {
444
+ position: "relative",
445
+ color: h
446
+ },
447
+ "&:has(:focus-visible)": m({}, q(e)),
448
+ [`${o}-inner, input[type='checkbox'], input[type='radio']`]: {
449
+ width: 0,
450
+ height: 0,
451
+ opacity: 0,
452
+ pointerEvents: "none"
453
+ },
454
+ [`&-checked:not(${o}-button-wrapper-disabled)`]: {
455
+ zIndex: 1,
456
+ color: h,
457
+ background: w,
458
+ borderColor: h,
459
+ "&::before": {
460
+ backgroundColor: h
461
+ },
462
+ "&:first-child": {
463
+ borderColor: h
464
+ },
465
+ "&:hover": {
466
+ color: d,
467
+ borderColor: d,
468
+ "&::before": {
469
+ backgroundColor: d
470
+ }
471
+ },
472
+ "&:active": {
473
+ color: S,
474
+ borderColor: S,
475
+ "&::before": {
476
+ backgroundColor: S
477
+ }
478
+ }
479
+ },
480
+ [`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]: {
481
+ color: R,
482
+ background: h,
483
+ borderColor: h,
484
+ "&:hover": {
485
+ color: R,
486
+ background: d,
487
+ borderColor: d
488
+ },
489
+ "&:active": {
490
+ color: R,
491
+ background: S,
492
+ borderColor: S
493
+ }
494
+ },
495
+ "&-disabled": {
496
+ color: c,
497
+ backgroundColor: y,
498
+ borderColor: s,
499
+ cursor: "not-allowed",
500
+ "&:first-child, &:hover": {
501
+ color: c,
502
+ backgroundColor: y,
503
+ borderColor: s
504
+ }
505
+ },
506
+ [`&-disabled${o}-button-wrapper-checked`]: {
507
+ color: T,
508
+ backgroundColor: E,
509
+ borderColor: s,
510
+ boxShadow: "none"
511
+ }
512
+ }
513
+ };
514
+ }, oe = ne("Radio", (e) => {
515
+ const {
516
+ padding: r,
517
+ lineWidth: n,
518
+ controlItemBgActiveDisabled: o,
519
+ colorTextDisabled: t,
520
+ colorBgContainer: l,
521
+ fontSizeLG: s,
522
+ controlOutline: $,
523
+ colorPrimaryHover: v,
524
+ colorPrimaryActive: g,
525
+ colorText: a,
526
+ colorPrimary: b,
527
+ marginXS: C,
528
+ controlOutlineWidth: B,
529
+ colorTextLightSolid: u,
530
+ wireframe: f
531
+ } = e, i = `0 0 0 ${B}px ${$}`, k = i, p = s, h = 4, w = p - h * 2, d = f ? w : p - (h + n) * 2, S = b, R = a, c = v, y = g, T = r - n, x = ae(e, {
532
+ radioFocusShadow: i,
533
+ radioButtonFocusShadow: k,
534
+ radioSize: p,
535
+ radioDotSize: d,
536
+ radioDotDisabledSize: w,
537
+ radioCheckedColor: S,
538
+ radioDotDisabledColor: t,
539
+ radioSolidCheckedColor: u,
540
+ radioButtonBg: l,
541
+ radioButtonCheckedBg: l,
542
+ radioButtonColor: R,
543
+ radioButtonHoverColor: c,
544
+ radioButtonActiveColor: y,
545
+ radioButtonPaddingHorizontal: T,
546
+ radioDisabledButtonCheckedBg: o,
547
+ radioDisabledButtonCheckedColor: t,
548
+ radioWrapperMarginRight: C
549
+ });
550
+ return [me(x), Se(x), ke(x)];
551
+ });
552
+ var ye = globalThis && globalThis.__rest || function(e, r) {
553
+ var n = {};
554
+ for (var o in e)
555
+ Object.prototype.hasOwnProperty.call(e, o) && r.indexOf(o) < 0 && (n[o] = e[o]);
556
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
557
+ for (var t = 0, o = Object.getOwnPropertySymbols(e); t < o.length; t++)
558
+ r.indexOf(o[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[t]) && (n[o[t]] = e[o[t]]);
559
+ return n;
560
+ };
561
+ const te = () => ({
562
+ prefixCls: String,
563
+ checked: j(),
564
+ disabled: j(),
565
+ isGroup: j(),
566
+ value: N.any,
567
+ name: String,
568
+ id: String,
569
+ autofocus: j(),
570
+ onChange: P(),
571
+ onFocus: P(),
572
+ onBlur: P(),
573
+ onClick: P(),
574
+ "onUpdate:checked": P(),
575
+ "onUpdate:value": P()
576
+ }), I = A({
577
+ compatConfig: {
578
+ MODE: 3
579
+ },
580
+ name: "ARadio",
581
+ inheritAttrs: !1,
582
+ props: te(),
583
+ setup(e, r) {
584
+ let {
585
+ emit: n,
586
+ expose: o,
587
+ slots: t,
588
+ attrs: l
589
+ } = r;
590
+ const s = X(), $ = le.useInject(), v = ve(), g = ge(), a = U(), b = G(() => {
591
+ var c;
592
+ return (c = f.value) !== null && c !== void 0 ? c : a.value;
593
+ }), C = _(), {
594
+ prefixCls: B,
595
+ direction: u,
596
+ disabled: f
597
+ } = V("radio", e), i = G(() => (g == null ? void 0 : g.optionType.value) === "button" || v === "button" ? `${B.value}-button` : B.value), k = U(), [p, h] = oe(B);
598
+ o({
599
+ focus: () => {
600
+ C.value.focus();
601
+ },
602
+ blur: () => {
603
+ C.value.blur();
604
+ }
605
+ });
606
+ const S = (c) => {
607
+ const y = c.target.checked;
608
+ n("update:checked", y), n("update:value", y), n("change", c), s.onFieldChange();
609
+ }, R = (c) => {
610
+ n("change", c), g && g.onChange && g.onChange(c);
611
+ };
612
+ return () => {
613
+ var c;
614
+ const y = g, {
615
+ prefixCls: T,
616
+ id: E = s.id.value
617
+ } = e, W = ye(e, ["prefixCls", "id"]), x = m(m({
618
+ prefixCls: i.value,
619
+ id: E
620
+ }, de(W, ["onUpdate:checked", "onUpdate:value"])), {
621
+ disabled: (c = f.value) !== null && c !== void 0 ? c : k.value
622
+ });
623
+ y ? (x.name = y.name.value, x.onChange = R, x.checked = e.value === y.value.value, x.disabled = b.value || y.disabled.value) : x.onChange = S;
624
+ const F = M({
625
+ [`${i.value}-wrapper`]: !0,
626
+ [`${i.value}-wrapper-checked`]: x.checked,
627
+ [`${i.value}-wrapper-disabled`]: x.disabled,
628
+ [`${i.value}-wrapper-rtl`]: u.value === "rtl",
629
+ [`${i.value}-wrapper-in-form-item`]: $.isFormItemInput
630
+ }, l.class, h.value);
631
+ return p(O("label", D(D({}, l), {}, {
632
+ class: F
633
+ }), [O(pe, D(D({}, x), {}, {
634
+ type: "radio",
635
+ ref: C
636
+ }), null), t.default && O("span", null, [t.default()])]));
637
+ };
638
+ }
639
+ }), xe = () => ({
640
+ prefixCls: String,
641
+ value: N.any,
642
+ size: H(),
643
+ options: se(),
644
+ disabled: j(),
645
+ name: String,
646
+ buttonStyle: H("outline"),
647
+ id: String,
648
+ optionType: H("default"),
649
+ onChange: P(),
650
+ "onUpdate:value": P()
651
+ }), $e = A({
652
+ compatConfig: {
653
+ MODE: 3
654
+ },
655
+ name: "ARadioGroup",
656
+ inheritAttrs: !1,
657
+ props: xe(),
658
+ setup(e, r) {
659
+ let {
660
+ slots: n,
661
+ emit: o,
662
+ attrs: t
663
+ } = r;
664
+ const l = X(), {
665
+ prefixCls: s,
666
+ direction: $,
667
+ size: v
668
+ } = V("radio", e), [g, a] = oe(s), b = _(e.value), C = _(!1);
669
+ return J(() => e.value, (u) => {
670
+ b.value = u, C.value = !1;
671
+ }), he({
672
+ onChange: (u) => {
673
+ const f = b.value, {
674
+ value: i
675
+ } = u.target;
676
+ "value" in e || (b.value = i), !C.value && i !== f && (C.value = !0, o("update:value", i), o("change", u), l.onFieldChange()), ce(() => {
677
+ C.value = !1;
678
+ });
679
+ },
680
+ value: b,
681
+ disabled: G(() => e.disabled),
682
+ name: G(() => e.name),
683
+ optionType: G(() => e.optionType)
684
+ }), () => {
685
+ var u;
686
+ const {
687
+ options: f,
688
+ buttonStyle: i,
689
+ id: k = l.id.value
690
+ } = e, p = `${s.value}-group`, h = M(p, `${p}-${i}`, {
691
+ [`${p}-${v.value}`]: v.value,
692
+ [`${p}-rtl`]: $.value === "rtl"
693
+ }, t.class, a.value);
694
+ let w = null;
695
+ return f && f.length > 0 ? w = f.map((d) => {
696
+ if (typeof d == "string" || typeof d == "number")
697
+ return O(I, {
698
+ key: d,
699
+ prefixCls: s.value,
700
+ disabled: e.disabled,
701
+ value: d,
702
+ checked: b.value === d
703
+ }, {
704
+ default: () => [d]
705
+ });
706
+ const {
707
+ value: S,
708
+ disabled: R,
709
+ label: c
710
+ } = d;
711
+ return O(I, {
712
+ key: `radio-group-value-options-${S}`,
713
+ prefixCls: s.value,
714
+ disabled: R || e.disabled,
715
+ value: S,
716
+ checked: b.value === S
717
+ }, {
718
+ default: () => [c]
719
+ });
720
+ }) : w = (u = n.default) === null || u === void 0 ? void 0 : u.call(n), g(O("div", D(D({}, t), {}, {
721
+ class: h,
722
+ id: k
723
+ }), [w]));
724
+ };
725
+ }
726
+ }), Be = A({
727
+ compatConfig: {
728
+ MODE: 3
729
+ },
730
+ name: "ARadioButton",
731
+ inheritAttrs: !1,
732
+ props: te(),
733
+ setup(e, r) {
734
+ let {
735
+ slots: n,
736
+ attrs: o
737
+ } = r;
738
+ const {
739
+ prefixCls: t
740
+ } = V("radio", e);
741
+ return fe("button"), () => {
742
+ var l;
743
+ return O(I, D(D(D({}, o), e), {}, {
744
+ prefixCls: t.value
745
+ }), {
746
+ default: () => [(l = n.default) === null || l === void 0 ? void 0 : l.call(n)]
747
+ });
748
+ };
749
+ }
750
+ });
751
+ I.Group = $e;
752
+ I.Button = Be;
753
+ I.install = function(e) {
754
+ return e.component(I.name, I), e.component(I.Group.name, I.Group), e.component(I.Button.name, I.Button), e;
755
+ };
756
+ export {
757
+ I as R,
758
+ pe as V,
759
+ Be as _,
760
+ $e as a
761
+ };