@cyberpunk-vue/components 1.9.11 → 1.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -149,39 +149,17 @@ var ae = {
149
149
  type: String,
150
150
  default: "circular"
151
151
  }
152
- }, ce = [
153
- "width",
154
- "height",
155
- "viewBox"
156
- ], le = [
157
- "cx",
158
- "cy",
159
- "r",
160
- "stroke-width"
161
- ], ue = [
162
- "cx",
163
- "cy",
164
- "r",
165
- "stroke-width"
166
- ], de = [
167
- "width",
168
- "height",
169
- "viewBox"
170
- ], fe = ["transform"], pe = [
152
+ }, ce = ["r", "stroke-width"], le = { transform: "translate(25, 25)" }, ue = [
171
153
  "y1",
172
154
  "y2",
173
155
  "transform",
174
156
  "stroke-width"
175
- ], me = [
176
- "width",
177
- "height",
178
- "viewBox"
179
- ], he = ["transform"], ge = [
157
+ ], de = { transform: "translate(25, 25)" }, fe = [
180
158
  "y1",
181
159
  "y2",
182
160
  "transform",
183
161
  "stroke-width"
184
- ], _e = $(/* @__PURE__ */ d({
162
+ ], pe = 44, me = 50, he = $(/* @__PURE__ */ d({
185
163
  name: `${X}Loading`,
186
164
  __name: "loading",
187
165
  props: se,
@@ -190,77 +168,65 @@ var ae = {
190
168
  sm: 24,
191
169
  md: 40,
192
170
  lg: 56
193
- }, l = r(() => q(n.size, c, c.md)), u = r(() => (l.value - n.strokeWidth) / 2), d = r(() => [
171
+ }, l = r(() => q(n.size, c, c.md)), u = r(() => n.strokeWidth * (pe / l.value)), d = r(() => (pe - u.value) / 2), f = r(() => n.strokeWidth * (me / l.value)), p = r(() => -(me / 2) + f.value / 2 + 2.5), m = r(() => -(me / 2) + f.value / 2 + me / 4 + 2.5), h = r(() => [
194
172
  i.b(),
195
173
  i.m(n.type),
174
+ i.m(n.variant),
196
175
  W(n.size) && i.m(n.size),
197
176
  i.is("custom-color", !!n.color),
198
177
  i.is("custom-size", !W(n.size))
199
- ]), f = r(() => {
178
+ ]), g = r(() => {
200
179
  let e = {};
201
- return n.color && (e["--cp-loading-color"] = n.color), W(n.size) || (e["--cp-loading-size"] = K(n.size, c)), e;
180
+ return n.color && (e["--cp-loading-color"] = n.color), e["--cp-loading-stroke-width"] = `${n.strokeWidth}px`, W(n.size) || (e["--cp-loading-size"] = K(n.size, c)), e;
202
181
  });
203
182
  return (t, n) => (S(), o("div", {
204
- class: v(d.value),
205
- style: y(f.value)
183
+ class: v(h.value),
184
+ style: y(g.value)
206
185
  }, [t.variant === "circular" ? (S(), o("svg", {
207
186
  key: 0,
208
187
  class: v([N(i).e("svg"), N(i).is("circular")]),
209
- width: l.value,
210
- height: l.value,
211
- viewBox: `0 0 ${l.value} ${l.value}`
188
+ viewBox: "22 22 44 44"
212
189
  }, [s("circle", {
213
- class: v(N(i).e("track")),
214
- cx: l.value / 2,
215
- cy: l.value / 2,
216
- r: u.value,
217
- fill: "none",
218
- "stroke-width": t.strokeWidth
219
- }, null, 10, le), s("circle", {
220
190
  class: v(N(i).e("circle")),
221
- cx: l.value / 2,
222
- cy: l.value / 2,
223
- r: u.value,
191
+ cx: "44",
192
+ cy: "44",
193
+ r: d.value,
224
194
  fill: "none",
225
- "stroke-width": t.strokeWidth,
226
- "stroke-linecap": "round",
227
- pathLength: "100"
228
- }, null, 10, ue)], 10, ce)) : t.variant === "spinner" ? (S(), o("svg", {
195
+ "stroke-width": u.value,
196
+ stroke: "currentColor",
197
+ "stroke-linecap": "round"
198
+ }, null, 10, ce)], 2)) : t.variant === "spinner" ? (S(), o("svg", {
229
199
  key: 1,
230
200
  class: v([N(i).e("svg"), N(i).is("spinner")]),
231
- width: l.value,
232
- height: l.value,
233
- viewBox: `0 0 ${l.value} ${l.value}`
234
- }, [s("g", { transform: `translate(${l.value / 2}, ${l.value / 2})` }, [(S(), o(e, null, D(12, (e) => s("line", {
201
+ viewBox: "0 0 50 50"
202
+ }, [s("g", le, [(S(), o(e, null, D(12, (e) => s("line", {
235
203
  key: e,
236
204
  x1: "0",
237
- y1: -(l.value / 2) + t.strokeWidth / 2,
205
+ y1: p.value,
238
206
  x2: "0",
239
- y2: -(l.value / 2) + t.strokeWidth / 2 + l.value / 4,
207
+ y2: m.value,
240
208
  transform: `rotate(${(e - 1) * 30})`,
241
- "stroke-width": t.strokeWidth,
209
+ "stroke-width": f.value,
242
210
  stroke: "currentColor",
243
211
  "stroke-linecap": "round",
244
212
  style: y({ opacity: e === 1 ? 1 : (e - 1) / 12 })
245
- }, null, 12, pe)), 64))], 8, fe)], 10, de)) : t.variant === "spinner-solid" ? (S(), o("svg", {
213
+ }, null, 12, ue)), 64))])], 2)) : t.variant === "spinner-solid" ? (S(), o("svg", {
246
214
  key: 2,
247
215
  class: v([N(i).e("svg"), N(i).is("spinner-solid")]),
248
- width: l.value,
249
- height: l.value,
250
- viewBox: `0 0 ${l.value} ${l.value}`
251
- }, [s("g", { transform: `translate(${l.value / 2}, ${l.value / 2})` }, [(S(), o(e, null, D(12, (e) => s("line", {
216
+ viewBox: "0 0 50 50"
217
+ }, [s("g", de, [(S(), o(e, null, D(12, (e) => s("line", {
252
218
  key: e,
253
219
  x1: "0",
254
- y1: -(l.value / 2) + t.strokeWidth / 2,
220
+ y1: p.value,
255
221
  x2: "0",
256
- y2: -(l.value / 2) + t.strokeWidth / 2 + l.value / 4,
222
+ y2: m.value,
257
223
  transform: `rotate(${(e - 1) * 30})`,
258
- "stroke-width": t.strokeWidth,
224
+ "stroke-width": f.value,
259
225
  stroke: "currentColor",
260
226
  "stroke-linecap": "round"
261
- }, null, 8, ge)), 64))], 8, he)], 10, me)) : a("", !0)], 6));
227
+ }, null, 8, fe)), 64))])], 2)) : a("", !0)], 6));
262
228
  }
263
- })), ve = {
229
+ })), ge = {
264
230
  icon: {
265
231
  type: [
266
232
  Object,
@@ -289,10 +255,10 @@ var ae = {
289
255
  type: Boolean,
290
256
  default: !1
291
257
  }
292
- }, ye = ["innerHTML"], be = /* @__PURE__ */ d({
258
+ }, _e = ["innerHTML"], ve = /* @__PURE__ */ d({
293
259
  name: `${X}Icon`,
294
260
  __name: "icon",
295
- props: ve,
261
+ props: ge,
296
262
  setup(e) {
297
263
  let t = e, n = Y("icon"), a = {
298
264
  sm: 16,
@@ -316,20 +282,20 @@ var ae = {
316
282
  key: 2,
317
283
  class: v(N(n).e("svg")),
318
284
  innerHTML: e.icon
319
- }, null, 10, ye)) : (S(), o("i", {
285
+ }, null, 10, _e)) : (S(), o("i", {
320
286
  key: 3,
321
287
  class: v(e.icon)
322
288
  }, null, 2))]),
323
289
  _: 3
324
290
  }, 8, ["class", "style"]));
325
291
  }
326
- }), xe = $(be), Se = Symbol("formContext"), Ce = ["type", "disabled"], we = /* @__PURE__ */ d({
292
+ }), ye = $(ve), be = Symbol("formContext"), xe = ["type", "disabled"], Se = /* @__PURE__ */ d({
327
293
  name: `${X}Button`,
328
294
  __name: "button",
329
295
  props: ae,
330
296
  emits: oe,
331
297
  setup(t, { emit: c }) {
332
- let l = t, d = c, f = F(), p = Y("button"), h = m(Se, void 0), g = r(() => l.disabled || h?.disabled.value || !1), _ = {
298
+ let l = t, d = c, f = F(), p = Y("button"), h = m(be, void 0), g = r(() => l.disabled || h?.disabled.value || !1), _ = {
333
299
  sm: 24,
334
300
  md: 32,
335
301
  lg: 40
@@ -383,11 +349,11 @@ var ae = {
383
349
  type: t.nativeType,
384
350
  disabled: g.value || t.loading,
385
351
  onClick: C
386
- }, [D.value ? (S(), o(e, { key: 0 }, [t.loading ? (S(), i(N(_e), {
352
+ }, [D.value ? (S(), o(e, { key: 0 }, [t.loading ? (S(), i(N(he), {
387
353
  key: 0,
388
354
  size: U.value,
389
355
  "stroke-width": 3
390
- }, null, 8, ["size"])) : (S(), i(N(xe), {
356
+ }, null, 8, ["size"])) : (S(), i(N(ye), {
391
357
  key: 1,
392
358
  icon: t.icon,
393
359
  size: R.value,
@@ -400,7 +366,7 @@ var ae = {
400
366
  t.loadingPlaceholder ? (S(), o("span", {
401
367
  key: 0,
402
368
  class: v(N(p).e("loader"))
403
- }, [u(N(_e), {
369
+ }, [u(N(he), {
404
370
  size: U.value,
405
371
  "stroke-width": 3
406
372
  }, null, 8, ["size"])], 2)) : (S(), i(n, {
@@ -410,7 +376,7 @@ var ae = {
410
376
  default: B(() => [t.loading ? (S(), o("span", {
411
377
  key: 0,
412
378
  class: v(N(p).e("loader"))
413
- }, [u(N(_e), {
379
+ }, [u(N(he), {
414
380
  size: U.value,
415
381
  "stroke-width": 3
416
382
  }, null, 8, ["size"])], 2)) : a("", !0)]),
@@ -419,7 +385,7 @@ var ae = {
419
385
  T.value && !t.loading ? (S(), o("span", {
420
386
  key: 2,
421
387
  class: v(N(p).e("prefix"))
422
- }, [O(t.$slots, "prefix", {}, () => [t.prefixIcon ? (S(), i(N(xe), {
388
+ }, [O(t.$slots, "prefix", {}, () => [t.prefixIcon ? (S(), i(N(ye), {
423
389
  key: 0,
424
390
  icon: t.prefixIcon,
425
391
  size: z.value,
@@ -433,7 +399,7 @@ var ae = {
433
399
  E.value ? (S(), o("span", {
434
400
  key: 3,
435
401
  class: v(N(p).e("suffix"))
436
- }, [O(t.$slots, "suffix", {}, () => [t.suffixIcon ? (S(), i(N(xe), {
402
+ }, [O(t.$slots, "suffix", {}, () => [t.suffixIcon ? (S(), i(N(ye), {
437
403
  key: 0,
438
404
  icon: t.suffixIcon,
439
405
  size: V.value,
@@ -443,9 +409,9 @@ var ae = {
443
409
  "size",
444
410
  "style"
445
411
  ])) : a("", !0)])], 2)) : a("", !0)
446
- ], 64))], 14, Ce));
412
+ ], 64))], 14, xe));
447
413
  }
448
- }), Te = $(we), Ee = {
414
+ }), Ce = $(Se), we = {
449
415
  defaults: {
450
416
  type: Object,
451
417
  default: () => ({})
@@ -454,17 +420,17 @@ var ae = {
454
420
  type: String,
455
421
  default: "dark"
456
422
  }
457
- }, De = $(/* @__PURE__ */ d({
423
+ }, Te = $(/* @__PURE__ */ d({
458
424
  name: `${X}ConfigProvider`,
459
425
  __name: "config-provider",
460
- props: Ee,
426
+ props: we,
461
427
  setup(e) {
462
428
  let t = e;
463
429
  return C(ee, t.defaults), C(re, M(t, "theme")), z(() => {
464
430
  typeof document < "u" && document.documentElement.setAttribute("data-theme", t.theme);
465
431
  }), (e, t) => O(e.$slots, "default");
466
432
  }
467
- })), Oe = {
433
+ })), Ee = {
468
434
  modelValue: {
469
435
  type: [String, Number],
470
436
  default: ""
@@ -537,35 +503,35 @@ var ae = {
537
503
  type: Number,
538
504
  default: 150
539
505
  }
540
- }, ke = {
506
+ }, De = {
541
507
  "update:modelValue": (e) => typeof e == "string" || typeof e == "number",
542
508
  input: (e, t) => (typeof e == "string" || typeof e == "number") && t instanceof Event,
543
509
  change: (e) => typeof e == "string" || typeof e == "number",
544
510
  focus: (e) => e instanceof FocusEvent,
545
511
  blur: (e) => e instanceof FocusEvent,
546
512
  clear: () => !0
547
- }, Ae = [
513
+ }, Oe = [
548
514
  "type",
549
515
  "value",
550
516
  "placeholder",
551
517
  "disabled",
552
518
  "readonly",
553
519
  "maxlength"
554
- ], je = {
520
+ ], ke = {
555
521
  key: 0,
556
522
  viewBox: "0 0 24 24",
557
523
  fill: "currentColor"
558
- }, Me = {
524
+ }, Ae = {
559
525
  key: 1,
560
526
  viewBox: "0 0 24 24",
561
527
  fill: "currentColor"
562
- }, Ne = $(/* @__PURE__ */ d({
528
+ }, je = $(/* @__PURE__ */ d({
563
529
  name: `${X}Input`,
564
530
  __name: "input",
565
- props: Oe,
566
- emits: ke,
531
+ props: Ee,
532
+ emits: De,
567
533
  setup(t, { expose: n, emit: i }) {
568
- let c = t, u = i, d = F(), f = Y("input"), p = m(Se, void 0), h = r(() => c.disabled || p?.disabled.value || !1), g = {
534
+ let c = t, u = i, d = F(), f = Y("input"), p = m(be, void 0), h = r(() => c.disabled || p?.disabled.value || !1), g = {
569
535
  sm: 28,
570
536
  md: 36,
571
537
  lg: 44
@@ -631,7 +597,7 @@ var ae = {
631
597
  onChange: B,
632
598
  onFocus: V,
633
599
  onBlur: H
634
- }, null, 42, Ae),
600
+ }, null, 42, Oe),
635
601
  M.value ? (S(), o("span", {
636
602
  key: 1,
637
603
  class: v(N(f).e("clear")),
@@ -644,7 +610,7 @@ var ae = {
644
610
  key: 2,
645
611
  class: v(N(f).e("password")),
646
612
  onClick: G
647
- }, [E.value ? (S(), o("svg", je, [...n[1] ||= [s("path", { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" }, null, -1)]])) : (S(), o("svg", Me, [...n[2] ||= [s("path", { d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z" }, null, -1)]]))], 2)) : a("", !0),
613
+ }, [E.value ? (S(), o("svg", ke, [...n[1] ||= [s("path", { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" }, null, -1)]])) : (S(), o("svg", Ae, [...n[2] ||= [s("path", { d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z" }, null, -1)]]))], 2)) : a("", !0),
648
614
  N(d).suffix ? (S(), o("span", {
649
615
  key: 3,
650
616
  class: v(N(f).e("suffix"))
@@ -655,7 +621,7 @@ var ae = {
655
621
  }, [l(j(I.value), 1), t.maxlength === void 0 ? a("", !0) : (S(), o(e, { key: 0 }, [l(" / " + j(t.maxlength), 1)], 64))], 2)) : a("", !0)
656
622
  ], 6));
657
623
  }
658
- })), Pe = {
624
+ })), Me = {
659
625
  modelValue: {
660
626
  type: String,
661
627
  default: ""
@@ -704,26 +670,26 @@ var ae = {
704
670
  type: String,
705
671
  default: ""
706
672
  }
707
- }, Fe = {
673
+ }, Ne = {
708
674
  "update:modelValue": (e) => typeof e == "string",
709
675
  input: (e, t) => typeof e == "string" && t instanceof Event,
710
676
  change: (e) => typeof e == "string",
711
677
  focus: (e) => e instanceof FocusEvent,
712
678
  blur: (e) => e instanceof FocusEvent
713
- }, Ie = [
679
+ }, Pe = [
714
680
  "value",
715
681
  "placeholder",
716
682
  "disabled",
717
683
  "readonly",
718
684
  "rows",
719
685
  "maxlength"
720
- ], Le = $(/* @__PURE__ */ d({
686
+ ], Fe = $(/* @__PURE__ */ d({
721
687
  name: `${X}Textarea`,
722
688
  __name: "textarea",
723
- props: Pe,
724
- emits: Fe,
689
+ props: Me,
690
+ emits: Ne,
725
691
  setup(t, { expose: n, emit: i }) {
726
- let c = t, u = i, d = Y("textarea"), f = m(Se, void 0), p = r(() => c.disabled || f?.disabled.value || !1), h = {
692
+ let c = t, u = i, d = Y("textarea"), f = m(be, void 0), p = r(() => c.disabled || f?.disabled.value || !1), h = {
727
693
  sm: 28,
728
694
  md: 36,
729
695
  lg: 44
@@ -785,12 +751,12 @@ var ae = {
785
751
  onChange: M,
786
752
  onFocus: P,
787
753
  onBlur: F
788
- }, null, 46, Ie), D.value ? (S(), o("span", {
754
+ }, null, 46, Pe), D.value ? (S(), o("span", {
789
755
  key: 0,
790
756
  class: v(N(d).e("count"))
791
757
  }, [l(j(E.value), 1), t.maxlength === void 0 ? a("", !0) : (S(), o(e, { key: 0 }, [l(" / " + j(t.maxlength), 1)], 64))], 2)) : a("", !0)], 6));
792
758
  }
793
- })), Re = {
759
+ })), Ie = {
794
760
  modelValue: {
795
761
  type: Number,
796
762
  default: 0
@@ -839,23 +805,23 @@ var ae = {
839
805
  type: String,
840
806
  default: "both"
841
807
  }
842
- }, ze = {
808
+ }, Le = {
843
809
  "update:modelValue": (e) => typeof e == "number",
844
810
  change: (e, t) => typeof e == "number" && typeof t == "number",
845
811
  focus: (e) => e instanceof FocusEvent,
846
812
  blur: (e) => e instanceof FocusEvent
847
- }, Be = ["disabled"], Ve = [
813
+ }, Re = ["disabled"], ze = [
848
814
  "value",
849
815
  "placeholder",
850
816
  "disabled",
851
817
  "readonly"
852
- ], He = ["disabled"], Ue = ["disabled"], We = ["disabled"], Ge = $(/* @__PURE__ */ d({
818
+ ], Be = ["disabled"], Ve = ["disabled"], He = ["disabled"], Ue = $(/* @__PURE__ */ d({
853
819
  name: `${X}InputNumber`,
854
820
  __name: "input-number",
855
- props: Re,
856
- emits: ze,
821
+ props: Ie,
822
+ emits: Le,
857
823
  setup(e, { expose: t, emit: n }) {
858
- let i = e, c = n, l = Y("input-number"), u = m(Se, void 0), d = r(() => i.disabled || u?.disabled.value || !1), f = {
824
+ let i = e, c = n, l = Y("input-number"), u = m(be, void 0), d = r(() => i.disabled || u?.disabled.value || !1), f = {
859
825
  sm: 28,
860
826
  md: 36,
861
827
  lg: 44
@@ -911,7 +877,7 @@ var ae = {
911
877
  }, [...t[0] ||= [s("svg", {
912
878
  viewBox: "0 0 24 24",
913
879
  fill: "currentColor"
914
- }, [s("path", { d: "M19 13H5v-2h14v2z" })], -1)]], 10, Be)) : a("", !0),
880
+ }, [s("path", { d: "M19 13H5v-2h14v2z" })], -1)]], 10, Re)) : a("", !0),
915
881
  s("input", {
916
882
  ref_key: "inputRef",
917
883
  ref: p,
@@ -926,7 +892,7 @@ var ae = {
926
892
  onChange: j,
927
893
  onFocus: M,
928
894
  onBlur: P
929
- }, null, 42, Ve),
895
+ }, null, 42, ze),
930
896
  e.controls && e.controlsPosition === "both" ? (S(), o("button", {
931
897
  key: 1,
932
898
  type: "button",
@@ -936,7 +902,7 @@ var ae = {
936
902
  }, [...t[1] ||= [s("svg", {
937
903
  viewBox: "0 0 24 24",
938
904
  fill: "currentColor"
939
- }, [s("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })], -1)]], 10, He)) : a("", !0),
905
+ }, [s("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })], -1)]], 10, Be)) : a("", !0),
940
906
  e.controls && e.controlsPosition === "right" ? (S(), o("div", {
941
907
  key: 2,
942
908
  class: v(N(l).e("controls"))
@@ -948,7 +914,7 @@ var ae = {
948
914
  }, [...t[2] ||= [s("svg", {
949
915
  viewBox: "0 0 24 24",
950
916
  fill: "currentColor"
951
- }, [s("path", { d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z" })], -1)]], 10, Ue), s("button", {
917
+ }, [s("path", { d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z" })], -1)]], 10, Ve), s("button", {
952
918
  type: "button",
953
919
  class: v([N(l).e("decrease"), { "is-disabled": C.value || d.value }]),
954
920
  disabled: C.value || d.value,
@@ -956,10 +922,10 @@ var ae = {
956
922
  }, [...t[3] ||= [s("svg", {
957
923
  viewBox: "0 0 24 24",
958
924
  fill: "currentColor"
959
- }, [s("path", { d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z" })], -1)]], 10, We)], 2)) : a("", !0)
925
+ }, [s("path", { d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z" })], -1)]], 10, He)], 2)) : a("", !0)
960
926
  ], 6));
961
927
  }
962
- })), Ke = {
928
+ })), We = {
963
929
  modelValue: {
964
930
  type: [Number, Array],
965
931
  default: 0
@@ -1020,17 +986,17 @@ var ae = {
1020
986
  type: Function,
1021
987
  default: void 0
1022
988
  }
1023
- }, qe = {
989
+ }, Ge = {
1024
990
  "update:modelValue": (e) => typeof e == "number" || Array.isArray(e),
1025
991
  change: (e) => typeof e == "number" || Array.isArray(e),
1026
992
  input: (e) => typeof e == "number" || Array.isArray(e)
1027
- }, Je = $(/* @__PURE__ */ d({
993
+ }, Ke = $(/* @__PURE__ */ d({
1028
994
  name: `${X}Slider`,
1029
995
  __name: "slider",
1030
- props: Ke,
1031
- emits: qe,
996
+ props: We,
997
+ emits: Ge,
1032
998
  setup(t, { expose: n, emit: i }) {
1033
- let c = t, l = i, u = Y("slider"), d = m(Se, void 0), f = r(() => c.disabled || d?.disabled.value || !1), p = {
999
+ let c = t, l = i, u = Y("slider"), d = m(be, void 0), f = r(() => c.disabled || d?.disabled.value || !1), p = {
1034
1000
  sm: 4,
1035
1001
  md: 6,
1036
1002
  lg: 8
@@ -1208,7 +1174,7 @@ var ae = {
1208
1174
  }, j(H(M.value[1])), 3)) : a("", !0)], 38)
1209
1175
  ], 6));
1210
1176
  }
1211
- })), Ye = {
1177
+ })), qe = {
1212
1178
  percentage: {
1213
1179
  type: Number,
1214
1180
  default: 0
@@ -1306,23 +1272,23 @@ var ae = {
1306
1272
  type: Boolean,
1307
1273
  default: void 0
1308
1274
  }
1309
- }, Xe = ["viewBox"], Ze = [
1275
+ }, Je = ["viewBox"], Ye = [
1310
1276
  "cx",
1311
1277
  "cy",
1312
1278
  "r"
1313
- ], Qe = [
1279
+ ], Xe = [
1314
1280
  "cx",
1315
1281
  "cy",
1316
1282
  "r"
1317
- ], $e = ["d"], et = [
1283
+ ], Ze = ["d"], Qe = [
1318
1284
  "cx",
1319
1285
  "cy",
1320
1286
  "r",
1321
1287
  "stroke-width"
1322
- ], tt = 126, nt = $(/* @__PURE__ */ d({
1288
+ ], $e = 126, et = $(/* @__PURE__ */ d({
1323
1289
  name: `${X}Progress`,
1324
1290
  __name: "progress",
1325
- props: Ye,
1291
+ props: qe,
1326
1292
  setup(t) {
1327
1293
  let n = t, i = Y("progress"), c = [
1328
1294
  "sm",
@@ -1344,7 +1310,7 @@ var ae = {
1344
1310
  }
1345
1311
  return n.color || void 0;
1346
1312
  }), p = (e) => {
1347
- let t = n.width / tt;
1313
+ let t = n.width / $e;
1348
1314
  return Math.round(Math.max(2, Math.min(e * t, n.width / 4)));
1349
1315
  }, m = r(() => {
1350
1316
  if (n.strokeWidth !== void 0) return n.strokeWidth;
@@ -1502,7 +1468,7 @@ var ae = {
1502
1468
  r: _.value.radius,
1503
1469
  fill: "none",
1504
1470
  style: y(b.value)
1505
- }, null, 14, Ze),
1471
+ }, null, 14, Ye),
1506
1472
  x.value ? (S(), o("circle", {
1507
1473
  key: 0,
1508
1474
  class: v(N(i).e("inner-track")),
@@ -1511,13 +1477,13 @@ var ae = {
1511
1477
  r: _.value.innerRadius,
1512
1478
  fill: "none",
1513
1479
  style: y(C.value)
1514
- }, null, 14, Qe)) : a("", !0),
1480
+ }, null, 14, Xe)) : a("", !0),
1515
1481
  E.value ? (S(), o("path", {
1516
1482
  key: 1,
1517
1483
  class: v(N(i).e("path")),
1518
1484
  d: T.value,
1519
1485
  style: y(w.value)
1520
- }, null, 14, $e)) : (S(), o("circle", {
1486
+ }, null, 14, Ze)) : (S(), o("circle", {
1521
1487
  key: 2,
1522
1488
  class: v(N(i).e("path")),
1523
1489
  cx: _.value.center,
@@ -1531,13 +1497,13 @@ var ae = {
1531
1497
  strokeDasharray: `${_.value.dashLength} ${_.value.gapLength}`,
1532
1498
  strokeDashoffset: _.value.offset
1533
1499
  })
1534
- }, null, 14, et))
1535
- ], 14, Xe)), t.showText && !t.indeterminate ? (S(), o("div", {
1500
+ }, null, 14, Qe))
1501
+ ], 14, Je)), t.showText && !t.indeterminate ? (S(), o("div", {
1536
1502
  key: 0,
1537
1503
  class: v(N(i).e("text"))
1538
1504
  }, [O(t.$slots, "default", {}, () => [l(j(M.value), 1)])], 2)) : a("", !0)], 64))], 6));
1539
1505
  }
1540
- })), rt = {
1506
+ })), tt = {
1541
1507
  modelValue: {
1542
1508
  type: Boolean,
1543
1509
  default: !1
@@ -1590,23 +1556,23 @@ var ae = {
1590
1556
  type: String,
1591
1557
  default: ""
1592
1558
  }
1593
- }, it = {
1559
+ }, nt = {
1594
1560
  "update:modelValue": (e) => typeof e == "boolean",
1595
1561
  change: (e) => typeof e == "boolean"
1596
- }, at = ["aria-checked", "aria-disabled"], ot = [
1562
+ }, rt = ["aria-checked", "aria-disabled"], it = [
1597
1563
  "name",
1598
1564
  "checked",
1599
1565
  "disabled"
1600
- ], st = { class: "wrapper-text active" }, ct = { class: "wrapper-text inactive" }, lt = { class: "text-inner" }, ut = {
1566
+ ], at = { class: "wrapper-text active" }, ot = { class: "wrapper-text inactive" }, st = { class: "text-inner" }, ct = {
1601
1567
  key: 0,
1602
1568
  class: "cp-switch__loading-core"
1603
- }, dt = { class: "text-inner" }, ft = $(/* @__PURE__ */ d({
1569
+ }, lt = { class: "text-inner" }, ut = $(/* @__PURE__ */ d({
1604
1570
  name: `${X}Switch`,
1605
1571
  __name: "switch",
1606
- props: rt,
1607
- emits: it,
1572
+ props: tt,
1573
+ emits: nt,
1608
1574
  setup(e, { expose: t, emit: n }) {
1609
- let i = e, c = n, l = Y("switch"), u = m(Se, void 0), d = {
1575
+ let i = e, c = n, l = Y("switch"), u = m(be, void 0), d = {
1610
1576
  sm: 16,
1611
1577
  md: 20,
1612
1578
  lg: 24
@@ -1661,16 +1627,16 @@ var ae = {
1661
1627
  checked: i.modelValue,
1662
1628
  disabled: h.value,
1663
1629
  onChange: t[0] ||= U(() => {}, ["stop"])
1664
- }, null, 42, ot), s("div", { class: v(N(l).e("track")) }, [
1630
+ }, null, 42, it), s("div", { class: v(N(l).e("track")) }, [
1665
1631
  i.fitText ? (S(), o("div", {
1666
1632
  key: 0,
1667
1633
  class: v(N(l).e("wrapper"))
1668
- }, [s("span", st, j(i.activeText), 1), s("span", ct, j(i.inactiveText), 1)], 2)) : a("", !0),
1634
+ }, [s("span", at, j(i.activeText), 1), s("span", ot, j(i.inactiveText), 1)], 2)) : a("", !0),
1669
1635
  i.inactiveText ? (S(), o("span", {
1670
1636
  key: 1,
1671
1637
  class: v(N(l).e("inactive-text"))
1672
- }, [s("span", lt, j(i.inactiveText), 1)], 2)) : a("", !0),
1673
- s("div", { class: v(N(l).e("thumb")) }, [i.loading ? (S(), o("div", ut, [...t[1] ||= [s("svg", {
1638
+ }, [s("span", st, j(i.inactiveText), 1)], 2)) : a("", !0),
1639
+ s("div", { class: v(N(l).e("thumb")) }, [i.loading ? (S(), o("div", ct, [...t[1] ||= [s("svg", {
1674
1640
  viewBox: "0 0 24 24",
1675
1641
  class: "loading-svg"
1676
1642
  }, [s("path", {
@@ -1691,10 +1657,10 @@ var ae = {
1691
1657
  i.activeText ? (S(), o("span", {
1692
1658
  key: 2,
1693
1659
  class: v(N(l).e("active-text"))
1694
- }, [s("span", dt, j(i.activeText), 1)], 2)) : a("", !0)
1695
- ], 2)], 14, at));
1660
+ }, [s("span", lt, j(i.activeText), 1)], 2)) : a("", !0)
1661
+ ], 2)], 14, rt));
1696
1662
  }
1697
- })), pt = {
1663
+ })), dt = {
1698
1664
  title: {
1699
1665
  type: String,
1700
1666
  default: ""
@@ -1790,7 +1756,7 @@ var ae = {
1790
1756
  },
1791
1757
  collapse: {
1792
1758
  type: Boolean,
1793
- default: !1
1759
+ default: void 0
1794
1760
  },
1795
1761
  halfCollapse: {
1796
1762
  type: Boolean,
@@ -1800,6 +1766,18 @@ var ae = {
1800
1766
  type: [Number, String],
1801
1767
  default: 80
1802
1768
  },
1769
+ showCollapseAction: {
1770
+ type: Boolean,
1771
+ default: !1
1772
+ },
1773
+ collapseActionExpandText: {
1774
+ type: String,
1775
+ default: "查看更多"
1776
+ },
1777
+ collapseActionCollapseText: {
1778
+ type: String,
1779
+ default: "收起"
1780
+ },
1803
1781
  borderColor: String,
1804
1782
  dividerColor: String,
1805
1783
  headerDividerColor: String,
@@ -1840,128 +1818,169 @@ var ae = {
1840
1818
  type: Boolean,
1841
1819
  default: !1
1842
1820
  }
1843
- }, mt = 320, ht = $(/* @__PURE__ */ d({
1821
+ }, ft = { "collapse-change": (e) => typeof e.needed == "boolean" }, pt = 320, mt = $(/* @__PURE__ */ d({
1844
1822
  name: `${X}Card`,
1845
1823
  __name: "card",
1846
- props: pt,
1847
- setup(e) {
1848
- let t = e, i = F(), c = Y("card"), d = T(!1), f = null, p = () => {
1849
- f !== null && (clearTimeout(f), f = null);
1850
- }, m = () => {
1851
- p(), f = setTimeout(() => {
1852
- d.value = !1, f = null;
1853
- }, mt);
1824
+ props: dt,
1825
+ emits: ft,
1826
+ setup(e, { emit: t }) {
1827
+ let i = e, c = t, d = F(), f = Y("card"), p = T(!1), m = null, h = () => {
1828
+ m !== null && (clearTimeout(m), m = null);
1829
+ }, g = () => {
1830
+ h(), m = setTimeout(() => {
1831
+ p.value = !1, m = null;
1832
+ }, pt);
1833
+ }, C = T(!0), w = r(() => i.collapse !== void 0), E = r(() => w.value ? i.collapse : i.showCollapseAction && i.halfCollapse ? C.value : !1), D = () => {
1834
+ w.value || (C.value = !C.value);
1854
1835
  };
1855
- R(() => t.collapse, (e, t) => {
1836
+ R(E, (e, t) => {
1856
1837
  if (e) {
1857
- d.value = !1, p();
1838
+ p.value = !1, h();
1858
1839
  return;
1859
1840
  }
1860
- t && (d.value = !0, m());
1841
+ t && (p.value = !0, g());
1861
1842
  });
1862
- let h = (e) => {
1863
- t.collapse || !d.value || e.target === e.currentTarget && e.propertyName === "grid-template-rows" && (d.value = !1, p());
1864
- };
1865
- b(() => {
1866
- p();
1843
+ let k = (e) => {
1844
+ E.value || !p.value || e.target === e.currentTarget && e.propertyName === "grid-template-rows" && (p.value = !1, h());
1845
+ }, A = T(), M = T(!0), P = null;
1846
+ function I() {
1847
+ let e = i.peekHeight;
1848
+ return typeof e == "number" ? e : parseFloat(e) || 80;
1849
+ }
1850
+ function z() {
1851
+ if (!i.halfCollapse || !A.value) return;
1852
+ let e = A.value.scrollHeight > I();
1853
+ M.value !== e && (M.value = e, c("collapse-change", { needed: e }));
1854
+ }
1855
+ function H() {
1856
+ U(), !(!i.halfCollapse || !A.value) && (P = new ResizeObserver(() => z()), P.observe(A.value));
1857
+ }
1858
+ function U() {
1859
+ P &&= (P.disconnect(), null);
1860
+ }
1861
+ R(() => i.halfCollapse, (e) => {
1862
+ e ? _(() => {
1863
+ H(), z();
1864
+ }) : (U(), M.value = !0);
1865
+ }), R(() => i.peekHeight, () => z()), x(() => {
1866
+ i.halfCollapse && _(() => {
1867
+ H(), z();
1868
+ });
1869
+ }), b(() => {
1870
+ h(), U();
1867
1871
  });
1868
- let g = r(() => [
1869
- c.b(),
1870
- c.m(t.variant),
1871
- c.m(`shape-${t.shape}`),
1872
- c.m(`shadow-${t.shadow}`),
1873
- c.m(t.type),
1874
- c.is("has-overlay", !!i.overlay),
1875
- c.is("dimmed", t.dimmed),
1876
- c.is("trigger-image-hover", t.triggerImageHover),
1877
- c.is("hover-scale", t.hoverScale),
1878
- c.is("collapse-size-locked", t.collapse || d.value),
1879
- c.is("collapsed", t.collapse),
1880
- c.is("half-collapsed", t.collapse && t.halfCollapse),
1881
- c.is("loading", t.loading),
1882
- c.is("disabled", t.disabled)
1883
- ]), _ = r(() => [c.e("container"), t.backgroundClass]), x = r(() => t.color ? t.color : t.type && t.type !== "default" ? `var(--cp-color-${t.type})` : null), C = r(() => t.color ? `color-mix(in srgb, ${t.color} 30%, transparent)` : t.type && t.type !== "default" ? `var(--cp-color-${t.type}-light)` : null), w = r(() => {
1872
+ let W = r(() => i.showCollapseAction && i.halfCollapse && M.value), K = r(() => [
1873
+ f.b(),
1874
+ f.m(i.variant),
1875
+ f.m(`shape-${i.shape}`),
1876
+ f.m(`shadow-${i.shadow}`),
1877
+ f.m(i.type),
1878
+ f.is("has-overlay", !!d.overlay),
1879
+ f.is("dimmed", i.dimmed),
1880
+ f.is("trigger-image-hover", i.triggerImageHover),
1881
+ f.is("hover-scale", i.hoverScale),
1882
+ f.is("collapse-size-locked", E.value || p.value),
1883
+ f.is("collapsed", E.value),
1884
+ f.is("half-collapsed", E.value && i.halfCollapse),
1885
+ f.is("loading", i.loading),
1886
+ f.is("disabled", i.disabled)
1887
+ ]), q = r(() => [f.e("container"), i.backgroundClass]), J = r(() => i.color ? i.color : i.type && i.type !== "default" ? `var(--cp-color-${i.type})` : null), X = r(() => i.color ? `color-mix(in srgb, ${i.color} 30%, transparent)` : i.type && i.type !== "default" ? `var(--cp-color-${i.type}-light)` : null), Z = r(() => {
1884
1888
  let e = {};
1885
- x.value && (e["--cp-card-color"] = x.value), C.value && (e["--cp-card-color-light"] = C.value), t.bgColor && (e["--cp-card-bg"] = t.bgColor), t.borderColor && (e["--cp-card-border-color"] = t.borderColor), t.dividerColor && (e["--cp-card-divider-color"] = t.dividerColor), t.headerDividerColor && (e["--cp-card-header-divider-color"] = t.headerDividerColor), t.footerDividerColor && (e["--cp-card-footer-divider-color"] = t.footerDividerColor), t.shadowColor ? e["--cp-card-shadow-color"] = t.shadowColor : x.value && (e["--cp-card-shadow-color"] = `color-mix(in srgb, ${x.value} 40%, black)`);
1886
- let n = G(t.dimmedDuration);
1887
- if (n && (e["--cp-card-dimmed-duration"] = n), t.halfCollapse) {
1888
- let n = t.peekHeight;
1889
- e["--cp-card-peek-height"] = typeof n == "number" ? `${n}px` : n;
1889
+ J.value && (e["--cp-card-color"] = J.value), X.value && (e["--cp-card-color-light"] = X.value), i.bgColor && (e["--cp-card-bg"] = i.bgColor), i.borderColor && (e["--cp-card-border-color"] = i.borderColor), i.dividerColor && (e["--cp-card-divider-color"] = i.dividerColor), i.headerDividerColor && (e["--cp-card-header-divider-color"] = i.headerDividerColor), i.footerDividerColor && (e["--cp-card-footer-divider-color"] = i.footerDividerColor), i.shadowColor ? e["--cp-card-shadow-color"] = i.shadowColor : J.value && (e["--cp-card-shadow-color"] = `color-mix(in srgb, ${J.value} 40%, black)`);
1890
+ let t = G(i.dimmedDuration);
1891
+ if (t && (e["--cp-card-dimmed-duration"] = t), i.halfCollapse) {
1892
+ let t = i.peekHeight;
1893
+ e["--cp-card-peek-height"] = typeof t == "number" ? `${t}px` : t;
1890
1894
  }
1891
1895
  return e;
1892
- }), E = r(() => {
1893
- let e = typeof t.bodyStyle == "string" ? {} : { ...t.bodyStyle };
1894
- return t.bodyPadding && (e.padding = t.bodyPadding), e;
1895
- }), D = r(() => !!(t.title || i.header || i.title || i.extra)), k = r(() => !t.collapse || D.value), A = r(() => !!i.footer), M = r(() => !!i.overlay), P = r(() => [
1896
- c.e("header"),
1897
- c.is("bordered", t.headerBorder),
1898
- t.headerClass
1899
- ]), I = r(() => [c.e("footer"), c.is("bordered", t.footerBorder)]), z = r(() => t.actionEffect ?? t.overlayEffect), H = r(() => t.actionColor ?? t.overlayColor), U = r(() => t.actionBlur ?? t.overlayBlur), W = r(() => [
1900
- c.e("overlay"),
1901
- c.bem("", "overlay", t.overlayAnimation),
1902
- c.bem("", "overlay", t.overlayPosition),
1903
- c.bem("", "overlay", `effect-${z.value}`)
1904
- ]), K = r(() => [c.e("overlay-backdrop"), c.bem("", "overlay-backdrop", `effect-${t.overlayEffect}`)]), q = (e) => e === void 0 ? "10px" : typeof e == "number" ? `${e}px` : e, J = r(() => ({
1905
- "--cp-card-overlay-duration": G(t.overlayDuration),
1906
- "--cp-card-overlay-color": t.overlayColor,
1907
- "--cp-card-overlay-blur": q(t.overlayBlur),
1908
- "--cp-card-action-color": H.value,
1909
- "--cp-card-action-blur": q(U.value)
1910
- })), X = r(() => [c.e("loading-overlay"), t.loadingClass]);
1896
+ }), ee = r(() => {
1897
+ let e = typeof i.bodyStyle == "string" ? {} : { ...i.bodyStyle };
1898
+ return i.bodyPadding && (e.padding = i.bodyPadding), e;
1899
+ }), te = r(() => !!(i.title || d.header || d.title || d.extra)), ne = r(() => !E.value || te.value), Q = r(() => !!d.footer), re = r(() => !!d.overlay), $ = r(() => [
1900
+ f.e("header"),
1901
+ f.is("bordered", i.headerBorder),
1902
+ i.headerClass
1903
+ ]), ie = r(() => [f.e("footer"), f.is("bordered", i.footerBorder)]), ae = r(() => i.actionEffect ?? i.overlayEffect), oe = r(() => i.actionColor ?? i.overlayColor), se = r(() => i.actionBlur ?? i.overlayBlur), ce = r(() => [
1904
+ f.e("overlay"),
1905
+ f.bem("", "overlay", i.overlayAnimation),
1906
+ f.bem("", "overlay", i.overlayPosition),
1907
+ f.bem("", "overlay", `effect-${ae.value}`)
1908
+ ]), le = r(() => [f.e("overlay-backdrop"), f.bem("", "overlay-backdrop", `effect-${i.overlayEffect}`)]), ue = (e) => e === void 0 ? "10px" : typeof e == "number" ? `${e}px` : e, de = r(() => ({
1909
+ "--cp-card-overlay-duration": G(i.overlayDuration),
1910
+ "--cp-card-overlay-color": i.overlayColor,
1911
+ "--cp-card-overlay-blur": ue(i.overlayBlur),
1912
+ "--cp-card-action-color": oe.value,
1913
+ "--cp-card-action-blur": ue(se.value)
1914
+ })), fe = r(() => [f.e("loading-overlay"), i.loadingClass]);
1911
1915
  return (e, t) => V((S(), o("div", {
1912
- class: v(g.value),
1913
- style: y(w.value)
1916
+ class: v(K.value),
1917
+ style: y(Z.value)
1914
1918
  }, [s("div", {
1915
- class: v(_.value),
1919
+ class: v(q.value),
1916
1920
  style: y(e.backgroundStyle)
1917
1921
  }, [
1918
1922
  e.$slots.cover ? (S(), o("div", {
1919
1923
  key: 0,
1920
- class: v(N(c).e("collapse-transition")),
1921
- onTransitionend: h
1922
- }, [s("div", { class: v(N(c).e("collapse-inner")) }, [s("div", { class: v(N(c).e("cover")) }, [O(e.$slots, "cover")], 2)], 2)], 34)) : a("", !0),
1923
- D.value ? (S(), o("div", {
1924
+ class: v(N(f).e("collapse-transition")),
1925
+ onTransitionend: k
1926
+ }, [s("div", { class: v(N(f).e("collapse-inner")) }, [s("div", { class: v(N(f).e("cover")) }, [O(e.$slots, "cover")], 2)], 2)], 34)) : a("", !0),
1927
+ te.value ? (S(), o("div", {
1924
1928
  key: 1,
1925
- class: v(P.value),
1929
+ class: v($.value),
1926
1930
  style: y(e.headerStyle)
1927
- }, [O(e.$slots, "header", {}, () => [s("div", { class: v(N(c).e("title")) }, [O(e.$slots, "title", {}, () => [l(j(e.title), 1)])], 2), N(i).extra ? (S(), o("div", {
1931
+ }, [O(e.$slots, "header", {}, () => [s("div", { class: v(N(f).e("title")) }, [O(e.$slots, "title", {}, () => [l(j(e.title), 1)])], 2), N(d).extra ? (S(), o("div", {
1928
1932
  key: 0,
1929
- class: v(N(c).e("extra"))
1933
+ class: v(N(f).e("extra"))
1930
1934
  }, [O(e.$slots, "extra")], 2)) : a("", !0)])], 6)) : a("", !0),
1931
1935
  s("div", {
1932
- class: v(N(c).e("collapse-transition")),
1933
- onTransitionend: h
1934
- }, [s("div", { class: v(N(c).e("collapse-inner")) }, [s("div", {
1935
- class: v([N(c).e("body"), e.bodyClass]),
1936
- style: y(E.value)
1937
- }, [O(e.$slots, "default")], 6), A.value ? (S(), o("div", {
1936
+ class: v(N(f).e("collapse-transition")),
1937
+ onTransitionend: k
1938
+ }, [s("div", {
1939
+ ref_key: "collapseInnerRef",
1940
+ ref: A,
1941
+ class: v(N(f).e("collapse-inner"))
1942
+ }, [s("div", {
1943
+ class: v([N(f).e("body"), e.bodyClass]),
1944
+ style: y(ee.value)
1945
+ }, [O(e.$slots, "default")], 6), Q.value ? (S(), o("div", {
1938
1946
  key: 0,
1939
- class: v(I.value)
1947
+ class: v(ie.value)
1940
1948
  }, [O(e.$slots, "footer")], 2)) : a("", !0)], 2)], 34),
1941
- M.value ? (S(), o("div", {
1949
+ W.value ? (S(), o("div", {
1942
1950
  key: 2,
1943
- class: v(K.value),
1944
- style: y(J.value)
1945
- }, null, 6)) : a("", !0),
1946
- M.value ? (S(), o("div", {
1951
+ class: v(N(f).e("collapse-action"))
1952
+ }, [O(e.$slots, "collapse-action", {
1953
+ collapsed: E.value,
1954
+ needed: M.value,
1955
+ toggle: D
1956
+ }, () => [s("div", {
1957
+ class: v(N(f).e("collapse-action-default")),
1958
+ onClick: D
1959
+ }, [s("span", { class: v(N(f).e("collapse-action-text")) }, j(E.value ? e.collapseActionExpandText : e.collapseActionCollapseText), 3), s("span", { class: v([N(f).e("collapse-action-icon"), { "is-expanded": !E.value }]) }, "▼", 2)], 2)])], 2)) : a("", !0),
1960
+ re.value ? (S(), o("div", {
1947
1961
  key: 3,
1948
- class: v(W.value),
1949
- style: y(J.value)
1962
+ class: v(le.value),
1963
+ style: y(de.value)
1964
+ }, null, 6)) : a("", !0),
1965
+ re.value ? (S(), o("div", {
1966
+ key: 4,
1967
+ class: v(ce.value),
1968
+ style: y(de.value)
1950
1969
  }, [O(e.$slots, "overlay")], 6)) : a("", !0),
1951
1970
  u(n, { name: "cp-card-loading" }, {
1952
1971
  default: B(() => [e.loading ? (S(), o("div", {
1953
1972
  key: 0,
1954
- class: v(X.value),
1973
+ class: v(fe.value),
1955
1974
  style: y(e.loadingStyle)
1956
- }, [O(e.$slots, "loading", {}, () => [u(N(_e), { color: x.value || void 0 }, null, 8, ["color"]), e.loadingText ? (S(), o("span", {
1975
+ }, [O(e.$slots, "loading", {}, () => [u(N(he), { color: J.value || void 0 }, null, 8, ["color"]), e.loadingText ? (S(), o("span", {
1957
1976
  key: 0,
1958
- class: v(N(c).e("loading-text"))
1977
+ class: v(N(f).e("loading-text"))
1959
1978
  }, j(e.loadingText), 3)) : a("", !0)])], 6)) : a("", !0)]),
1960
1979
  _: 3
1961
1980
  })
1962
- ], 6)], 6)), [[L, k.value]]);
1981
+ ], 6)], 6)), [[L, ne.value]]);
1963
1982
  }
1964
- })), gt = {
1983
+ })), ht = {
1965
1984
  type: {
1966
1985
  type: String,
1967
1986
  default: "default"
@@ -2002,15 +2021,15 @@ var ae = {
2002
2021
  type: Boolean,
2003
2022
  default: !1
2004
2023
  }
2005
- }, _t = {
2024
+ }, gt = {
2006
2025
  close: (e) => e instanceof MouseEvent,
2007
2026
  click: (e) => e instanceof MouseEvent,
2008
2027
  "update:selected": (e) => typeof e == "boolean"
2009
- }, vt = ["onKeydown"], yt = $(/* @__PURE__ */ d({
2028
+ }, _t = ["onKeydown"], vt = $(/* @__PURE__ */ d({
2010
2029
  name: `${X}Tag`,
2011
2030
  __name: "tag",
2012
- props: gt,
2013
- emits: _t,
2031
+ props: ht,
2032
+ emits: gt,
2014
2033
  setup(e, { emit: t }) {
2015
2034
  let n = e, i = t, c = Y("tag"), l = {
2016
2035
  primary: "var(--cp-color-primary)",
@@ -2073,14 +2092,14 @@ var ae = {
2073
2092
  stroke: "currentColor",
2074
2093
  "stroke-width": "2",
2075
2094
  "stroke-linecap": "round"
2076
- }, [s("path", { d: "M18 6L6 18M6 6l12 12" })], -1)]], 42, vt)) : a("", !0),
2095
+ }, [s("path", { d: "M18 6L6 18M6 6l12 12" })], -1)]], 42, _t)) : a("", !0),
2077
2096
  n.shape === "clip" ? (S(), o("span", {
2078
2097
  key: 3,
2079
2098
  class: v(N(c).e("decor"))
2080
2099
  }, null, 2)) : a("", !0)
2081
2100
  ], 6));
2082
2101
  }
2083
- })), bt = {
2102
+ })), yt = {
2084
2103
  type: {
2085
2104
  type: String,
2086
2105
  default: "default"
@@ -2173,10 +2192,10 @@ var ae = {
2173
2192
  type: Boolean,
2174
2193
  default: !1
2175
2194
  }
2176
- }, xt = ["data-text"], St = $(/* @__PURE__ */ d({
2195
+ }, bt = ["data-text"], xt = $(/* @__PURE__ */ d({
2177
2196
  name: `${X}Text`,
2178
2197
  __name: "text",
2179
- props: bt,
2198
+ props: yt,
2180
2199
  setup(e) {
2181
2200
  let t = e, n = Y("text"), i = {
2182
2201
  primary: "var(--cp-color-primary)",
@@ -2232,9 +2251,9 @@ var ae = {
2232
2251
  key: 1,
2233
2252
  class: v(N(n).e("suffix"))
2234
2253
  }, [O(e.$slots, "suffix")], 2)) : a("", !0)
2235
- ], 14, xt));
2254
+ ], 14, bt));
2236
2255
  }
2237
- })), Ct = {
2256
+ })), St = {
2238
2257
  type: {
2239
2258
  type: String,
2240
2259
  default: "default"
@@ -2271,10 +2290,10 @@ var ae = {
2271
2290
  type: String,
2272
2291
  default: ""
2273
2292
  }
2274
- }, wt = $(/* @__PURE__ */ d({
2293
+ }, Ct = $(/* @__PURE__ */ d({
2275
2294
  name: `${X}StatusIndicator`,
2276
2295
  __name: "status-indicator",
2277
- props: Ct,
2296
+ props: St,
2278
2297
  setup(e) {
2279
2298
  let t = e, n = F(), i = Y("status-indicator"), c = {
2280
2299
  sm: 8,
@@ -2308,7 +2327,7 @@ var ae = {
2308
2327
  class: v(N(i).e("label"))
2309
2328
  }, [O(e.$slots, "default", {}, () => [l(j(e.label), 1)])], 2)) : a("", !0)], 6));
2310
2329
  }
2311
- })), Tt = {
2330
+ })), wt = {
2312
2331
  src: {
2313
2332
  type: String,
2314
2333
  default: ""
@@ -2405,10 +2424,10 @@ var ae = {
2405
2424
  type: Boolean,
2406
2425
  default: !1
2407
2426
  }
2408
- }, Et = {
2427
+ }, Tt = {
2409
2428
  load: (e) => e instanceof Event,
2410
2429
  error: (e) => e instanceof Event
2411
- }, Dt = {
2430
+ }, Et = {
2412
2431
  modelValue: {
2413
2432
  type: Boolean,
2414
2433
  default: !1
@@ -2445,15 +2464,15 @@ var ae = {
2445
2464
  type: Boolean,
2446
2465
  default: !1
2447
2466
  }
2448
- }, Ot = {
2467
+ }, Dt = {
2449
2468
  "update:modelValue": (e) => typeof e == "boolean",
2450
2469
  close: () => !0,
2451
2470
  switch: (e) => typeof e == "number"
2452
- }, kt = ["src"], At = .2, jt = 7, Mt = .2, Nt = /* @__PURE__ */ d({
2471
+ }, Ot = ["src"], kt = .2, At = 7, jt = .2, Mt = /* @__PURE__ */ d({
2453
2472
  name: `${X}ImagePreview`,
2454
2473
  __name: "image-preview",
2455
- props: Dt,
2456
- emits: Ot,
2474
+ props: Et,
2475
+ emits: Dt,
2457
2476
  setup(c, { expose: l, emit: d }) {
2458
2477
  let f = c, p = d, m = Y("image-preview"), h = T(!1), g = T(0), C = T(1), w = T(0), E = T(!0), D = T(0), O = T(0), k = T(!1), A = 0, M = 0, P = 0, F = 0, I = r(() => f.urlList.length === 0 ? "" : f.urlList[g.value] || ""), z = r(() => f.urlList.length <= 1), H = r(() => f.infinite ? !0 : g.value > 0), W = r(() => f.infinite ? !0 : g.value < f.urlList.length - 1), G = r(() => ({
2459
2478
  transform: `translate(${D.value}px, ${O.value}px) scale(${C.value}) rotate(${w.value}deg)`,
@@ -2462,9 +2481,9 @@ var ae = {
2462
2481
  })), K = r(() => ({ zIndex: f.zIndex })), q = () => {
2463
2482
  C.value = 1, w.value = 0, D.value = 0, O.value = 0;
2464
2483
  }, J = () => {
2465
- C.value = Math.min(C.value + Mt, jt);
2484
+ C.value = Math.min(C.value + jt, At);
2466
2485
  }, X = () => {
2467
- C.value = Math.max(C.value - Mt, At);
2486
+ C.value = Math.max(C.value - jt, kt);
2468
2487
  }, Z = () => {
2469
2488
  w.value -= 90;
2470
2489
  }, ee = () => {
@@ -2554,7 +2573,7 @@ var ae = {
2554
2573
  onClick: ue,
2555
2574
  onWheel: U(le, ["prevent"])
2556
2575
  }, [
2557
- u(N(Te), {
2576
+ u(N(Ce), {
2558
2577
  class: v(N(m).e("close")),
2559
2578
  variant: "semi",
2560
2579
  dimmed: "",
@@ -2579,7 +2598,7 @@ var ae = {
2579
2598
  "type",
2580
2599
  "color"
2581
2600
  ]),
2582
- z.value ? a("", !0) : (S(), i(N(Te), {
2601
+ z.value ? a("", !0) : (S(), i(N(Ce), {
2583
2602
  key: 0,
2584
2603
  class: v([N(m).e("arrow"), N(m).bem(void 0, "arrow", "left")]),
2585
2604
  variant: "ghost",
@@ -2607,7 +2626,7 @@ var ae = {
2607
2626
  "color",
2608
2627
  "disabled"
2609
2628
  ])),
2610
- z.value ? a("", !0) : (S(), i(N(Te), {
2629
+ z.value ? a("", !0) : (S(), i(N(Ce), {
2611
2630
  key: 1,
2612
2631
  class: v([N(m).e("arrow"), N(m).bem(void 0, "arrow", "right")]),
2613
2632
  variant: "ghost",
@@ -2641,7 +2660,7 @@ var ae = {
2641
2660
  }, [E.value ? (S(), o("div", {
2642
2661
  key: 0,
2643
2662
  class: v(N(m).e("loading"))
2644
- }, [u(N(_e), {
2663
+ }, [u(N(he), {
2645
2664
  size: "lg",
2646
2665
  type: f.type,
2647
2666
  color: f.color
@@ -2653,19 +2672,19 @@ var ae = {
2653
2672
  onLoad: re,
2654
2673
  onError: $,
2655
2674
  onMousedown: ie
2656
- }, null, 46, kt), [[L, !E.value]])], 2),
2675
+ }, null, 46, Ot), [[L, !E.value]])], 2),
2657
2676
  s("div", {
2658
2677
  class: v(N(m).e("toolbar")),
2659
2678
  onClick: c[1] ||= U(() => {}, ["stop"])
2660
2679
  }, [
2661
- u(N(Te), {
2680
+ u(N(Ce), {
2662
2681
  variant: "ghost",
2663
2682
  dimmed: "",
2664
2683
  square: "",
2665
2684
  type: f.type,
2666
2685
  color: f.color,
2667
2686
  title: "缩小 (-)",
2668
- disabled: C.value <= At,
2687
+ disabled: C.value <= kt,
2669
2688
  onClick: X
2670
2689
  }, {
2671
2690
  default: B(() => [...c[5] ||= [s("svg", {
@@ -2686,14 +2705,14 @@ var ae = {
2686
2705
  "color",
2687
2706
  "disabled"
2688
2707
  ]),
2689
- u(N(Te), {
2708
+ u(N(Ce), {
2690
2709
  variant: "ghost",
2691
2710
  dimmed: "",
2692
2711
  square: "",
2693
2712
  type: f.type,
2694
2713
  color: f.color,
2695
2714
  title: "放大 (+)",
2696
- disabled: C.value >= jt,
2715
+ disabled: C.value >= At,
2697
2716
  onClick: J
2698
2717
  }, {
2699
2718
  default: B(() => [...c[6] ||= [s("svg", {
@@ -2715,7 +2734,7 @@ var ae = {
2715
2734
  "disabled"
2716
2735
  ]),
2717
2736
  s("span", { class: v(N(m).e("divider")) }, null, 2),
2718
- u(N(Te), {
2737
+ u(N(Ce), {
2719
2738
  variant: "ghost",
2720
2739
  dimmed: "",
2721
2740
  square: "",
@@ -2734,7 +2753,7 @@ var ae = {
2734
2753
  }, [s("path", { d: "M1 4v6h6" }), s("path", { d: "M3.51 15a9 9 0 1 0 2.13-9.36L1 10" })], -1)]]),
2735
2754
  _: 1
2736
2755
  }, 8, ["type", "color"]),
2737
- u(N(Te), {
2756
+ u(N(Ce), {
2738
2757
  variant: "ghost",
2739
2758
  dimmed: "",
2740
2759
  square: "",
@@ -2754,7 +2773,7 @@ var ae = {
2754
2773
  _: 1
2755
2774
  }, 8, ["type", "color"]),
2756
2775
  s("span", { class: v(N(m).e("divider")) }, null, 2),
2757
- u(N(Te), {
2776
+ u(N(Ce), {
2758
2777
  variant: "ghost",
2759
2778
  dimmed: "",
2760
2779
  square: "",
@@ -2779,7 +2798,7 @@ var ae = {
2779
2798
  }), s("path", { d: "M9 3v18M3 9h18" })], -1)]]),
2780
2799
  _: 1
2781
2800
  }, 8, ["type", "color"]),
2782
- f.download ? (S(), o(e, { key: 0 }, [s("span", { class: v(N(m).e("divider")) }, null, 2), u(N(Te), {
2801
+ f.download ? (S(), o(e, { key: 0 }, [s("span", { class: v(N(m).e("divider")) }, null, 2), u(N(Ce), {
2783
2802
  variant: "ghost",
2784
2803
  dimmed: "",
2785
2804
  square: "",
@@ -2816,15 +2835,15 @@ var ae = {
2816
2835
  _: 1
2817
2836
  })], 8, ["to", "disabled"]));
2818
2837
  }
2819
- }), Pt = [
2838
+ }), Nt = [
2820
2839
  "src",
2821
2840
  "alt",
2822
2841
  "draggable"
2823
- ], Ft = $(/* @__PURE__ */ d({
2842
+ ], Pt = $(/* @__PURE__ */ d({
2824
2843
  name: `${X}Image`,
2825
2844
  __name: "image",
2826
- props: Tt,
2827
- emits: Et,
2845
+ props: wt,
2846
+ emits: Tt,
2828
2847
  setup(e, { emit: t }) {
2829
2848
  let n = e, c = t, l = Y("image"), u = T(!0), d = T(!1), f = T(""), p = T(null), m = T(null), h = T(!n.lazy), g = T(!1), _ = r(() => n.preview || n.previewSrcList.length > 0), C = r(() => {
2830
2849
  if (n.previewSrcList.length > 0) return n.previewSrcList;
@@ -2945,12 +2964,12 @@ var ae = {
2945
2964
  draggable: n.draggable,
2946
2965
  onLoad: F,
2947
2966
  onError: I
2948
- }, null, 42, Pt), [[L, !u.value && !d.value]])], 2),
2967
+ }, null, 42, Nt), [[L, !u.value && !d.value]])], 2),
2949
2968
  n.shape === "clip" && n.showDecor ? (S(), o("span", {
2950
2969
  key: 0,
2951
2970
  class: v(N(l).e("decor"))
2952
2971
  }, null, 2)) : a("", !0),
2953
- _.value ? (S(), i(Nt, {
2972
+ _.value ? (S(), i(Mt, {
2954
2973
  key: 1,
2955
2974
  modelValue: g.value,
2956
2975
  "onUpdate:modelValue": t[0] ||= (e) => g.value = e,
@@ -2969,7 +2988,7 @@ var ae = {
2969
2988
  ])) : a("", !0)
2970
2989
  ], 6));
2971
2990
  }
2972
- })), It = $(Nt), Lt = {
2991
+ })), Ft = $(Mt), It = {
2973
2992
  src: {
2974
2993
  type: String,
2975
2994
  default: ""
@@ -3018,16 +3037,16 @@ var ae = {
3018
3037
  type: Boolean,
3019
3038
  default: !1
3020
3039
  }
3021
- }, Rt = {
3040
+ }, Lt = {
3022
3041
  load: (e) => e instanceof Event,
3023
3042
  error: (e) => e instanceof Event
3024
- }, zt = {
3043
+ }, Rt = {
3025
3044
  xs: 24,
3026
3045
  sm: 32,
3027
3046
  md: 40,
3028
3047
  lg: 48,
3029
3048
  xl: 64
3030
- }, Bt = {
3049
+ }, zt = {
3031
3050
  max: {
3032
3051
  type: Number,
3033
3052
  default: void 0
@@ -3064,21 +3083,21 @@ var ae = {
3064
3083
  type: String,
3065
3084
  default: void 0
3066
3085
  }
3067
- }, Vt = Symbol("avatarGroup"), Ht = [
3086
+ }, Bt = Symbol("avatarGroup"), Vt = [
3068
3087
  "src",
3069
3088
  "alt",
3070
3089
  "draggable"
3071
- ], Ut = /* @__PURE__ */ d({
3090
+ ], Ht = /* @__PURE__ */ d({
3072
3091
  name: `${X}Avatar`,
3073
3092
  __name: "avatar",
3074
- props: Lt,
3075
- emits: Rt,
3093
+ props: It,
3094
+ emits: Lt,
3076
3095
  setup(e, { emit: t }) {
3077
- let n = e, c = t, l = F(), u = Y("avatar"), d = m(Vt, null), { processedSrc: f } = J({
3096
+ let n = e, c = t, l = F(), u = Y("avatar"), d = m(Bt, null), { processedSrc: f } = J({
3078
3097
  src: M(n, "src"),
3079
3098
  processor: M(n, "srcProcessor"),
3080
3099
  params: M(n, "processorParams")
3081
- }), p = T(!0), h = T(!1), g = T(f.value), _ = r(() => n.size === "md" ? d?.size ?? n.size : n.size), b = r(() => n.shape === "circle" ? d?.shape ?? n.shape : n.shape), x = r(() => q(_.value, zt, zt.md)), C = r(() => [
3100
+ }), p = T(!0), h = T(!1), g = T(f.value), _ = r(() => n.size === "md" ? d?.size ?? n.size : n.size), b = r(() => n.shape === "circle" ? d?.shape ?? n.shape : n.shape), x = r(() => q(_.value, Rt, Rt.md)), C = r(() => [
3082
3101
  u.b(),
3083
3102
  u.m(`shape-${b.value}`),
3084
3103
  u.is("loading", p.value),
@@ -3106,7 +3125,7 @@ var ae = {
3106
3125
  draggable: n.draggable,
3107
3126
  onLoad: A,
3108
3127
  onError: j
3109
- }, null, 46, Ht)) : D.value ? (S(), i(N(xe), {
3128
+ }, null, 46, Vt)) : D.value ? (S(), i(N(ye), {
3110
3129
  key: 1,
3111
3130
  class: v(N(u).e("icon")),
3112
3131
  icon: e.icon
@@ -3124,16 +3143,16 @@ var ae = {
3124
3143
  r: "4"
3125
3144
  }, null, -1), s("path", { d: "M12 14c-4.42 0-8 1.79-8 4v2h16v-2c0-2.21-3.58-4-8-4z" }, null, -1)]], 2)) : a("", !0)], 6));
3126
3145
  }
3127
- }), Wt = ["title"], Gt = /* @__PURE__ */ d({
3146
+ }), Ut = ["title"], Wt = /* @__PURE__ */ d({
3128
3147
  name: `${X}AvatarGroup`,
3129
3148
  __name: "avatar-group",
3130
- props: Bt,
3149
+ props: zt,
3131
3150
  setup(t) {
3132
- let n = t, s = F(), c = Y("avatar-group"), l = r(() => q(n.size, zt, zt.md)), u = r(() => {
3151
+ let n = t, s = F(), c = Y("avatar-group"), l = r(() => q(n.size, Rt, Rt.md)), u = r(() => {
3133
3152
  let e = n.spacing;
3134
3153
  return typeof e == "number" ? `${e}px` : e;
3135
3154
  });
3136
- C(Vt, {
3155
+ C(Bt, {
3137
3156
  size: n.size,
3138
3157
  shape: n.shape
3139
3158
  });
@@ -3170,15 +3189,15 @@ var ae = {
3170
3189
  class: v(_.value),
3171
3190
  style: y(n.collapseStyle),
3172
3191
  title: n.collapseAvatarsTooltip
3173
- }, " +" + j(h.value), 15, Wt)) : a("", !0)], 6));
3192
+ }, " +" + j(h.value), 15, Ut)) : a("", !0)], 6));
3174
3193
  }
3175
- }), Kt = $(Ut), qt = $(Gt), Jt = { style: { "flex-grow": "1" } }, Yt = /* @__PURE__ */ d({
3194
+ }), Gt = $(Ht), Kt = $(Wt), qt = { style: { "flex-grow": "1" } }, Jt = /* @__PURE__ */ d({
3176
3195
  name: `${X}Spacer`,
3177
3196
  __name: "spacer",
3178
3197
  setup(e) {
3179
- return (e, t) => (S(), o("div", Jt));
3198
+ return (e, t) => (S(), o("div", qt));
3180
3199
  }
3181
- }), Xt = {}, Zt = $(Yt), Qt = {
3200
+ }), Yt = {}, Xt = $(Jt), Zt = {
3182
3201
  modelValue: {
3183
3202
  type: Boolean,
3184
3203
  default: void 0
@@ -3271,15 +3290,15 @@ var ae = {
3271
3290
  type: String,
3272
3291
  default: "flip"
3273
3292
  }
3274
- }, $t = {
3293
+ }, Qt = {
3275
3294
  "update:modelValue": (e) => typeof e == "boolean",
3276
3295
  open: () => !0,
3277
3296
  close: () => !0
3278
- }, en = 8, tn = $(/* @__PURE__ */ d({
3297
+ }, $t = 8, en = $(/* @__PURE__ */ d({
3279
3298
  name: `${X}Popover`,
3280
3299
  __name: "popover",
3281
- props: Qt,
3282
- emits: $t,
3300
+ props: Zt,
3301
+ emits: Qt,
3283
3302
  setup(c, { expose: d, emit: f }) {
3284
3303
  let p = c, m = f, h = Y("popover"), g = F(), C = r(() => {
3285
3304
  let e = p.trigger;
@@ -3318,10 +3337,10 @@ var ae = {
3318
3337
  if (p.fallback === "flip") {
3319
3338
  let i = window.innerWidth, a = window.innerHeight;
3320
3339
  if (o === "top" || o === "bottom") {
3321
- let n = e.top - t - en, i = a - e.bottom - t - en;
3340
+ let n = e.top - t - $t, i = a - e.bottom - t - $t;
3322
3341
  o === "top" && n < r && i > n ? o = "bottom" : o === "bottom" && i < r && n > i && (o = "top");
3323
3342
  } else {
3324
- let r = e.left - t - en, a = i - e.right - t - en;
3343
+ let r = e.left - t - $t, a = i - e.right - t - $t;
3325
3344
  o === "left" && r < n && a > r ? o = "right" : o === "right" && a < n && r > a && (o = "left");
3326
3345
  }
3327
3346
  }
@@ -3360,7 +3379,7 @@ var ae = {
3360
3379
  default: s = e.top + (e.height - r) / 2 + window.scrollY;
3361
3380
  }
3362
3381
  if (p.fallback === "shift") {
3363
- let e = window.scrollX + en, t = window.scrollX + window.innerWidth - n - en, i = window.scrollY + en, a = window.scrollY + window.innerHeight - r - en;
3382
+ let e = window.scrollX + $t, t = window.scrollX + window.innerWidth - n - $t, i = window.scrollY + $t, a = window.scrollY + window.innerHeight - r - $t;
3364
3383
  c = Math.max(e, Math.min(c, t)), s = Math.max(i, Math.min(s, a));
3365
3384
  }
3366
3385
  V.value = {
@@ -3461,7 +3480,7 @@ var ae = {
3461
3480
  _: 3
3462
3481
  }, 8, ["name"])], 8, ["to"]))], 2));
3463
3482
  }
3464
- })), nn = {
3483
+ })), tn = {
3465
3484
  pattern: {
3466
3485
  type: String,
3467
3486
  default: "grid"
@@ -3502,10 +3521,10 @@ var ae = {
3502
3521
  type: Boolean,
3503
3522
  default: !0
3504
3523
  }
3505
- }, rn = $(/* @__PURE__ */ d({
3524
+ }, nn = $(/* @__PURE__ */ d({
3506
3525
  name: `${X}PatternBackground`,
3507
3526
  __name: "pattern-background",
3508
- props: nn,
3527
+ props: tn,
3509
3528
  setup(e) {
3510
3529
  let t = e, n = Y("pattern-background"), i = (e) => typeof e == "number" ? `${e}px` : e, a = (e) => {
3511
3530
  if (typeof e == "number") return e;
@@ -3575,7 +3594,7 @@ var ae = {
3575
3594
  style: y(g.value)
3576
3595
  }, null, 6));
3577
3596
  }
3578
- })), an = {
3597
+ })), rn = {
3579
3598
  modelValue: {
3580
3599
  type: [String, Number],
3581
3600
  default: ""
@@ -3660,20 +3679,20 @@ var ae = {
3660
3679
  type: [String, Number],
3661
3680
  default: ""
3662
3681
  }
3663
- }, on = {
3682
+ }, an = {
3664
3683
  "update:modelValue": (e) => typeof e == "string" || typeof e == "number",
3665
3684
  change: (e) => typeof e == "string" || typeof e == "number",
3666
3685
  clear: () => !0,
3667
3686
  focus: () => !0,
3668
3687
  blur: () => !0,
3669
3688
  visibleChange: (e) => typeof e == "boolean"
3670
- }, sn = ["tabindex"], cn = ["placeholder", "disabled"], ln = ["placeholder"], un = ["onClick", "onMouseenter"], dn = 8, fn = /* @__PURE__ */ d({
3689
+ }, on = ["tabindex"], sn = ["placeholder", "disabled"], cn = ["placeholder"], ln = ["onClick", "onMouseenter"], un = 8, dn = /* @__PURE__ */ d({
3671
3690
  name: `${X}Dropdown`,
3672
3691
  __name: "dropdown",
3673
- props: an,
3674
- emits: on,
3692
+ props: rn,
3693
+ emits: an,
3675
3694
  setup(c, { expose: d, emit: f }) {
3676
- let p = c, h = f, g = F(), C = Y("dropdown"), w = m(Se, void 0), E = r(() => p.disabled || w?.disabled.value || !1), k = {
3695
+ let p = c, h = f, g = F(), C = Y("dropdown"), w = m(be, void 0), E = r(() => p.disabled || w?.disabled.value || !1), k = {
3677
3696
  sm: 28,
3678
3697
  md: 36,
3679
3698
  lg: 44
@@ -3720,7 +3739,7 @@ var ae = {
3720
3739
  le = !1;
3721
3740
  return;
3722
3741
  }
3723
- let e = A.value.getBoundingClientRect(), t = window.innerHeight, n = e.left + window.scrollX, r = e.width, i = t - e.bottom - 4 - dn, a = e.top - 4 - dn, o = p.placement.split("-")[0], s = o;
3742
+ let e = A.value.getBoundingClientRect(), t = window.innerHeight, n = e.left + window.scrollX, r = e.width, i = t - e.bottom - 4 - un, a = e.top - 4 - un, o = p.placement.split("-")[0], s = o;
3724
3743
  o === "bottom" ? i < p.maxHeight && a > i && (s = "top") : a < p.maxHeight && i > a && (s = "bottom");
3725
3744
  let c = s === "bottom" ? i : a;
3726
3745
  X.value = Math.min(p.maxHeight, Math.max(c, 120));
@@ -3818,7 +3837,7 @@ var ae = {
3818
3837
  onClick: c[1] ||= U(() => {}, ["stop"]),
3819
3838
  onFocus: de,
3820
3839
  onKeydown: ve
3821
- }, null, 42, cn)), [[I, ee.value]]) : (S(), o("span", {
3840
+ }, null, 42, sn)), [[I, ee.value]]) : (S(), o("span", {
3822
3841
  key: 2,
3823
3842
  class: v([N(C).e("value"), { [N(C).is("placeholder")]: !$.value }])
3824
3843
  }, j($.value ? Q.value : p.placeholder), 3)),
@@ -3834,7 +3853,7 @@ var ae = {
3834
3853
  viewBox: "0 0 24 24",
3835
3854
  fill: "currentColor"
3836
3855
  }, [s("path", { d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" })], -1)]], 2)
3837
- ], 42, sn), (S(), i(t, { to: r.teleportTo }, [u(n, { name: N(C).namespace + "-dropdown-fade" }, {
3856
+ ], 42, on), (S(), i(t, { to: r.teleportTo }, [u(n, { name: N(C).namespace + "-dropdown-fade" }, {
3838
3857
  default: B(() => [z.value ? (S(), o("div", {
3839
3858
  key: 0,
3840
3859
  ref_key: "popperRef",
@@ -3852,7 +3871,7 @@ var ae = {
3852
3871
  type: "text",
3853
3872
  placeholder: p.filterPlaceholder,
3854
3873
  onClick: c[5] ||= U(() => {}, ["stop"])
3855
- }, null, 10, ln), [[I, H.value]])], 2)) : a("", !0), s("ul", { class: v(N(C).e("options")) }, [r.options.length === 0 ? (S(), o("li", {
3874
+ }, null, 10, cn), [[I, H.value]])], 2)) : a("", !0), s("ul", { class: v(N(C).e("options")) }, [r.options.length === 0 ? (S(), o("li", {
3856
3875
  key: 0,
3857
3876
  class: v(N(C).e("empty"))
3858
3877
  }, [O(r.$slots, "empty", {}, () => [l(j(r.noDataText), 1)])], 2)) : re.value.length === 0 ? (S(), o("li", {
@@ -3874,11 +3893,11 @@ var ae = {
3874
3893
  }, [...c[8] ||= [s("svg", {
3875
3894
  viewBox: "0 0 24 24",
3876
3895
  fill: "currentColor"
3877
- }, [s("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z" })], -1)]], 2)) : a("", !0)], 42, un))), 128))], 2)], 6)) : a("", !0)]),
3896
+ }, [s("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z" })], -1)]], 2)) : a("", !0)], 42, ln))), 128))], 2)], 6)) : a("", !0)]),
3878
3897
  _: 3
3879
3898
  }, 8, ["name"])], 8, ["to"]))], 6));
3880
3899
  }
3881
- }), pn = $(fn), mn = {
3900
+ }), fn = $(dn), pn = {
3882
3901
  modelValue: {
3883
3902
  type: [
3884
3903
  String,
@@ -3948,24 +3967,24 @@ var ae = {
3948
3967
  type: String,
3949
3968
  default: ""
3950
3969
  }
3951
- }, hn = {
3970
+ }, mn = {
3952
3971
  "update:modelValue": (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || Array.isArray(e),
3953
3972
  change: (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || Array.isArray(e)
3954
- }, gn = Symbol("checkboxGroupContext"), _n = [
3973
+ }, hn = Symbol("checkboxGroupContext"), gn = [
3955
3974
  "name",
3956
3975
  "checked",
3957
3976
  "disabled"
3958
- ], vn = /* @__PURE__ */ d({
3977
+ ], _n = /* @__PURE__ */ d({
3959
3978
  name: `${X}Checkbox`,
3960
3979
  __name: "checkbox",
3961
- props: mn,
3962
- emits: hn,
3980
+ props: pn,
3981
+ emits: mn,
3963
3982
  setup(e, { expose: t, emit: n }) {
3964
3983
  let i = e, c = n, u = Y("checkbox"), d = {
3965
3984
  sm: 14,
3966
3985
  md: 18,
3967
3986
  lg: 22
3968
- }, f = m(gn, void 0), p = m(Se, void 0), h = r(() => !!f), g = r(() => i.disabled || f?.disabled?.value || p?.disabled.value || !1), _ = r(() => f?.size?.value || i.size), b = r(() => f?.type?.value || i.type), x = r(() => f?.shape?.value || i.shape), C = r(() => {
3987
+ }, f = m(hn, void 0), p = m(be, void 0), h = r(() => !!f), g = r(() => i.disabled || f?.disabled?.value || p?.disabled.value || !1), _ = r(() => f?.size?.value || i.size), b = r(() => f?.type?.value || i.type), x = r(() => f?.shape?.value || i.shape), C = r(() => {
3969
3988
  if (h.value && f) {
3970
3989
  let e = f.modelValue?.value;
3971
3990
  return Array.isArray(e) && i.label !== void 0 ? e.includes(i.label) : !1;
@@ -4018,7 +4037,7 @@ var ae = {
4018
4037
  checked: C.value,
4019
4038
  disabled: g.value,
4020
4039
  onChange: A
4021
- }, null, 42, _n),
4040
+ }, null, 42, gn),
4022
4041
  s("span", { class: v(N(u).e("indicator")) }, [C.value && !i.indeterminate ? (S(), o("svg", {
4023
4042
  key: 0,
4024
4043
  class: v(N(u).e("icon")),
@@ -4042,7 +4061,7 @@ var ae = {
4042
4061
  s("span", { class: v(N(u).e("label")) }, [O(e.$slots, "default", {}, () => [l(j(i.label), 1)])], 2)
4043
4062
  ], 6));
4044
4063
  }
4045
- }), yn = $(vn), bn = {
4064
+ }), vn = $(_n), yn = {
4046
4065
  modelValue: {
4047
4066
  type: Array,
4048
4067
  default: () => []
@@ -4075,17 +4094,17 @@ var ae = {
4075
4094
  type: String,
4076
4095
  default: "horizontal"
4077
4096
  }
4078
- }, xn = {
4097
+ }, bn = {
4079
4098
  "update:modelValue": (e) => Array.isArray(e),
4080
4099
  change: (e) => Array.isArray(e)
4081
- }, Sn = $(/* @__PURE__ */ d({
4100
+ }, xn = $(/* @__PURE__ */ d({
4082
4101
  name: `${X}CheckboxGroup`,
4083
4102
  __name: "checkbox-group",
4084
- props: bn,
4085
- emits: xn,
4103
+ props: yn,
4104
+ emits: bn,
4086
4105
  setup(e, { expose: t, emit: n }) {
4087
4106
  let i = e, a = n, s = Y("checkbox-group"), c = r(() => [s.b(), s.m(i.direction)]);
4088
- return C(gn, {
4107
+ return C(hn, {
4089
4108
  modelValue: M(i, "modelValue"),
4090
4109
  disabled: M(i, "disabled"),
4091
4110
  size: M(i, "size"),
@@ -4109,7 +4128,7 @@ var ae = {
4109
4128
  role: "group"
4110
4129
  }, [O(e.$slots, "default")], 2));
4111
4130
  }
4112
- })), Cn = {
4131
+ })), Sn = {
4113
4132
  modelValue: {
4114
4133
  type: [
4115
4134
  String,
@@ -4162,25 +4181,25 @@ var ae = {
4162
4181
  type: String,
4163
4182
  default: ""
4164
4183
  }
4165
- }, wn = {
4184
+ }, Cn = {
4166
4185
  "update:modelValue": (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean",
4167
4186
  change: (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean"
4168
- }, Tn = Symbol("radioGroupContext"), En = [
4187
+ }, wn = Symbol("radioGroupContext"), Tn = [
4169
4188
  "name",
4170
4189
  "value",
4171
4190
  "checked",
4172
4191
  "disabled"
4173
- ], Dn = $(/* @__PURE__ */ d({
4192
+ ], En = $(/* @__PURE__ */ d({
4174
4193
  name: `${X}Radio`,
4175
4194
  __name: "radio",
4176
- props: Cn,
4177
- emits: wn,
4195
+ props: Sn,
4196
+ emits: Cn,
4178
4197
  setup(e, { expose: t, emit: n }) {
4179
4198
  let i = e, c = n, u = Y("radio"), d = {
4180
4199
  sm: 14,
4181
4200
  md: 18,
4182
4201
  lg: 22
4183
- }, f = m(Tn, void 0), p = m(Se, void 0), h = r(() => !!f), g = r(() => i.disabled || f?.disabled?.value || p?.disabled.value || !1), _ = r(() => f?.size?.value || i.size), b = r(() => f?.type?.value || i.type), x = r(() => h.value && f ? f.modelValue?.value === i.value : i.modelValue === i.value), C = {
4202
+ }, f = m(wn, void 0), p = m(be, void 0), h = r(() => !!f), g = r(() => i.disabled || f?.disabled?.value || p?.disabled.value || !1), _ = r(() => f?.size?.value || i.size), b = r(() => f?.type?.value || i.type), x = r(() => h.value && f ? f.modelValue?.value === i.value : i.modelValue === i.value), C = {
4184
4203
  primary: "var(--cp-color-primary)",
4185
4204
  success: "var(--cp-color-success)",
4186
4205
  warning: "var(--cp-color-warning)",
@@ -4225,7 +4244,7 @@ var ae = {
4225
4244
  checked: x.value,
4226
4245
  disabled: g.value,
4227
4246
  onChange: k
4228
- }, null, 42, En),
4247
+ }, null, 42, Tn),
4229
4248
  s("span", { class: v(N(u).e("indicator-wrap")) }, [s("span", { class: v(N(u).e("indicator")) }, [x.value ? (S(), o("span", {
4230
4249
  key: 0,
4231
4250
  class: v(N(u).e("dot"))
@@ -4233,7 +4252,7 @@ var ae = {
4233
4252
  s("span", { class: v(N(u).e("label")) }, [O(e.$slots, "default", {}, () => [l(j(i.label), 1)])], 2)
4234
4253
  ], 6));
4235
4254
  }
4236
- })), On = {
4255
+ })), Dn = {
4237
4256
  modelValue: {
4238
4257
  type: [
4239
4258
  String,
@@ -4258,17 +4277,17 @@ var ae = {
4258
4277
  type: String,
4259
4278
  default: "horizontal"
4260
4279
  }
4261
- }, kn = {
4280
+ }, On = {
4262
4281
  "update:modelValue": (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean",
4263
4282
  change: (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean"
4264
- }, An = $(/* @__PURE__ */ d({
4283
+ }, kn = $(/* @__PURE__ */ d({
4265
4284
  name: `${X}RadioGroup`,
4266
4285
  __name: "radio-group",
4267
- props: On,
4268
- emits: kn,
4286
+ props: Dn,
4287
+ emits: On,
4269
4288
  setup(e, { expose: t, emit: n }) {
4270
4289
  let i = e, a = n, s = Y("radio-group"), c = r(() => [s.b(), s.m(i.direction)]);
4271
- return C(Tn, {
4290
+ return C(wn, {
4272
4291
  modelValue: M(i, "modelValue"),
4273
4292
  disabled: M(i, "disabled"),
4274
4293
  size: M(i, "size"),
@@ -4281,7 +4300,7 @@ var ae = {
4281
4300
  role: "radiogroup"
4282
4301
  }, [O(e.$slots, "default")], 2));
4283
4302
  }
4284
- })), jn = {
4303
+ })), An = {
4285
4304
  value: {
4286
4305
  type: [String, Number],
4287
4306
  default: ""
@@ -4330,10 +4349,10 @@ var ae = {
4330
4349
  type: [String, Number],
4331
4350
  default: "default"
4332
4351
  }
4333
- }, Mn = $(/* @__PURE__ */ d({
4352
+ }, jn = $(/* @__PURE__ */ d({
4334
4353
  name: `${X}Badge`,
4335
4354
  __name: "badge",
4336
- props: jn,
4355
+ props: An,
4337
4356
  setup(e) {
4338
4357
  let t = e, i = Y("badge"), s = {
4339
4358
  primary: "var(--cp-color-primary)",
@@ -4378,7 +4397,7 @@ var ae = {
4378
4397
  _: 1
4379
4398
  }, 8, ["name"])], 6));
4380
4399
  }
4381
- })), Nn = {
4400
+ })), Mn = {
4382
4401
  data: {
4383
4402
  type: Array,
4384
4403
  default: () => []
@@ -4471,14 +4490,14 @@ var ae = {
4471
4490
  type: Boolean,
4472
4491
  default: !0
4473
4492
  }
4474
- }, Pn = {
4493
+ }, Nn = {
4475
4494
  "node-click": (e, t) => e !== void 0 && t !== void 0,
4476
4495
  "node-expand": (e, t) => e !== void 0 && t !== void 0,
4477
4496
  "node-collapse": (e, t) => e !== void 0 && t !== void 0,
4478
4497
  "check-change": (e, t) => e !== void 0 && typeof t == "boolean",
4479
4498
  "update:checkedKeys": (e) => Array.isArray(e),
4480
4499
  "update:expandedKeys": (e) => Array.isArray(e)
4481
- }, Fn = Symbol("treeContext"), In = {
4500
+ }, Pn = Symbol("treeContext"), Fn = {
4482
4501
  node: {
4483
4502
  type: Object,
4484
4503
  required: !0
@@ -4487,19 +4506,19 @@ var ae = {
4487
4506
  type: Boolean,
4488
4507
  default: !1
4489
4508
  }
4490
- }, Ln = {
4509
+ }, In = {
4491
4510
  key: 0,
4492
4511
  viewBox: "0 0 24 24",
4493
4512
  fill: "none",
4494
4513
  stroke: "currentColor",
4495
4514
  "stroke-width": "2",
4496
4515
  "stroke-linecap": "square"
4497
- }, Rn = /* @__PURE__ */ d({
4516
+ }, Ln = /* @__PURE__ */ d({
4498
4517
  name: `${X}TreeNode`,
4499
4518
  __name: "tree-node",
4500
- props: In,
4519
+ props: Fn,
4501
4520
  setup(t) {
4502
- let n = t, c = Y("tree"), u = m(Fn);
4521
+ let n = t, c = Y("tree"), u = m(Pn);
4503
4522
  function d(e) {
4504
4523
  if (!e) return null;
4505
4524
  if (typeof e == "function") try {
@@ -4594,11 +4613,11 @@ var ae = {
4594
4613
  ])) : C.value ? (S(), i(A(C.value), { key: 1 })) : w.value ? (S(), i(A(w.value), { key: 2 })) : (S(), o(e, { key: 3 }, [t.node.isLeaf ? (S(), o("span", {
4595
4614
  key: 1,
4596
4615
  class: v(N(c).e("leaf-dot"))
4597
- }, null, 2)) : (S(), o("svg", Ln, [...n[0] ||= [s("polyline", { points: "9,6 15,12 9,18" }, null, -1)]]))], 64))], 2),
4616
+ }, null, 2)) : (S(), o("svg", In, [...n[0] ||= [s("polyline", { points: "9,6 15,12 9,18" }, null, -1)]]))], 64))], 2),
4598
4617
  M.value ? (S(), o("span", {
4599
4618
  key: 0,
4600
4619
  class: v(N(c).e("node-icon"))
4601
- }, [O.value.component ? (S(), i(A(O.value.component), { key: 0 })) : O.value.iconString ? (S(), i(be, {
4620
+ }, [O.value.component ? (S(), i(A(O.value.component), { key: 0 })) : O.value.iconString ? (S(), i(ve, {
4602
4621
  key: 1,
4603
4622
  icon: O.value.iconString,
4604
4623
  size: "sm"
@@ -4651,11 +4670,11 @@ var ae = {
4651
4670
  }, null, 8, ["node", "is-last"]))), 128))], 2)), [[L, f.value]]) : a("", !0)], 2)), [[L, _.value]]);
4652
4671
  };
4653
4672
  }
4654
- }), zn = $(/* @__PURE__ */ d({
4673
+ }), Rn = $(/* @__PURE__ */ d({
4655
4674
  name: `${X}Tree`,
4656
4675
  __name: "tree",
4657
- props: Nn,
4658
- emits: Pn,
4676
+ props: Mn,
4677
+ emits: Nn,
4659
4678
  setup(t, { expose: n, emit: a }) {
4660
4679
  let c = t, l = a, u = F(), d = Y("tree"), f = (e) => e[c.props?.label || "label"], p = (e) => e[c.props?.children || "children"], m = (e) => e[c.props?.disabled || "disabled"], h = (e) => e[c.props?.isLeaf || "isLeaf"], g = (e) => {
4661
4680
  let t = e[c.nodeKey];
@@ -4761,7 +4780,7 @@ var ae = {
4761
4780
  "--cp-tree-active-color": c.color,
4762
4781
  "--cp-tree-active-color-light": `${c.color}66`
4763
4782
  } : {});
4764
- return C(Fn, {
4783
+ return C(Pn, {
4765
4784
  expandedKeys: E,
4766
4785
  checkedKeys: A,
4767
4786
  indeterminateKeys: j,
@@ -4809,7 +4828,7 @@ var ae = {
4809
4828
  class: v(G.value),
4810
4829
  style: y(K.value),
4811
4830
  role: "tree"
4812
- }, [x.value.length > 0 ? (S(!0), o(e, { key: 0 }, D(x.value, (e, t) => (S(), i(Rn, {
4831
+ }, [x.value.length > 0 ? (S(!0), o(e, { key: 0 }, D(x.value, (e, t) => (S(), i(Ln, {
4813
4832
  key: e.key,
4814
4833
  node: e,
4815
4834
  "is-last": t === x.value.length - 1
@@ -4818,7 +4837,7 @@ var ae = {
4818
4837
  class: v(N(d).e("empty"))
4819
4838
  }, [O(t.$slots, "empty", {}, () => [s("span", { class: v(N(d).e("empty-text")) }, "NO DATA", 2)])], 2))], 6));
4820
4839
  }
4821
- })), Bn = {
4840
+ })), zn = {
4822
4841
  direction: {
4823
4842
  type: String,
4824
4843
  default: "horizontal"
@@ -4859,10 +4878,10 @@ var ae = {
4859
4878
  type: [Number, String],
4860
4879
  default: ""
4861
4880
  }
4862
- }, Vn = /* @__PURE__ */ d({
4881
+ }, Bn = /* @__PURE__ */ d({
4863
4882
  name: `${X}Divider`,
4864
4883
  __name: "divider",
4865
- props: Bn,
4884
+ props: zn,
4866
4885
  setup(e) {
4867
4886
  let t = e, n = F(), i = Y("divider"), s = {
4868
4887
  primary: "var(--cp-color-primary)",
@@ -4894,7 +4913,7 @@ var ae = {
4894
4913
  class: v(N(i).e("text"))
4895
4914
  }, [O(e.$slots, "default")], 2)) : a("", !0)], 6));
4896
4915
  }
4897
- }), Hn = $(Vn), Un = {
4916
+ }), Vn = $(Bn), Hn = {
4898
4917
  modelValue: {
4899
4918
  type: Boolean,
4900
4919
  default: !1
@@ -5103,7 +5122,7 @@ var ae = {
5103
5122
  type: String,
5104
5123
  default: "取消"
5105
5124
  }
5106
- }, Wn = {
5125
+ }, Un = {
5107
5126
  "update:modelValue": (e) => typeof e == "boolean",
5108
5127
  open: () => !0,
5109
5128
  opened: () => !0,
@@ -5111,12 +5130,12 @@ var ae = {
5111
5130
  closed: () => !0,
5112
5131
  confirm: () => !0,
5113
5132
  cancel: () => !0
5114
- }, Gn = $(/* @__PURE__ */ d({
5133
+ }, Wn = $(/* @__PURE__ */ d({
5115
5134
  name: `${X}Dialog`,
5116
5135
  inheritAttrs: !1,
5117
5136
  __name: "dialog",
5118
- props: Un,
5119
- emits: Wn,
5137
+ props: Hn,
5138
+ emits: Un,
5120
5139
  setup(e, { expose: c, emit: d }) {
5121
5140
  let f = () => p("svg", {
5122
5141
  viewBox: "0 0 24 24",
@@ -5216,9 +5235,9 @@ var ae = {
5216
5235
  h("cancel"), ve();
5217
5236
  }, Se = (e) => {
5218
5237
  e.key === "Escape" && k.value && (m.closeOnEscape ? ve() : W());
5219
- }, Ce = (e) => {
5238
+ }, we = (e) => {
5220
5239
  e.stopPropagation();
5221
- }, we = () => {
5240
+ }, Te = () => {
5222
5241
  h("opened");
5223
5242
  }, Ee = () => {
5224
5243
  h("closed"), ke(), m.destroyOnClose && (A.value = !1);
@@ -5250,7 +5269,7 @@ var ae = {
5250
5269
  disabled: !e.appendToBody
5251
5270
  }, [u(n, {
5252
5271
  name: N(D).namespace + "-dialog-fade",
5253
- onAfterEnter: we,
5272
+ onAfterEnter: Te,
5254
5273
  onAfterLeave: Ee
5255
5274
  }, {
5256
5275
  default: B(() => [(e.destroyOnClose ? k.value : A.value || k.value) ? V((S(), o("div", {
@@ -5269,7 +5288,7 @@ var ae = {
5269
5288
  style: ie.value,
5270
5289
  role: "dialog",
5271
5290
  "aria-modal": "true",
5272
- onClick: Ce,
5291
+ onClick: we,
5273
5292
  onAnimationend: G
5274
5293
  }), [
5275
5294
  s("div", { class: v(N(D).e("decor")) }, null, 2),
@@ -5284,7 +5303,7 @@ var ae = {
5284
5303
  class: v(ce.value),
5285
5304
  style: y(e.headerStyle),
5286
5305
  onMousedown: te
5287
- }, [O(e.$slots, "header", {}, () => [s("div", { class: v(N(D).e("title")) }, [O(e.$slots, "title", {}, () => [l(j(e.title), 1)])], 2), e.showClose ? (S(), i(N(Te), {
5306
+ }, [O(e.$slots, "header", {}, () => [s("div", { class: v(N(D).e("title")) }, [O(e.$slots, "title", {}, () => [l(j(e.title), 1)])], 2), e.showClose ? (S(), i(N(Ce), {
5288
5307
  key: 0,
5289
5308
  class: v(N(D).e("close")),
5290
5309
  icon: f,
@@ -5312,14 +5331,14 @@ var ae = {
5312
5331
  }, [O(e.$slots, "footer", {
5313
5332
  close: ve,
5314
5333
  confirm: be
5315
- }, () => [e.showCancelButton ? (S(), i(N(Te), {
5334
+ }, () => [e.showCancelButton ? (S(), i(N(Ce), {
5316
5335
  key: 0,
5317
5336
  class: v(N(D).e("cancel-btn")),
5318
5337
  onClick: xe
5319
5338
  }, {
5320
5339
  default: B(() => [l(j(e.cancelText || "取消"), 1)]),
5321
5340
  _: 1
5322
- }, 8, ["class"])) : a("", !0), e.showConfirmButton ? (S(), i(N(Te), {
5341
+ }, 8, ["class"])) : a("", !0), e.showConfirmButton ? (S(), i(N(Ce), {
5323
5342
  key: 1,
5324
5343
  class: v(N(D).e("confirm-btn")),
5325
5344
  type: me.value,
@@ -5337,7 +5356,7 @@ var ae = {
5337
5356
  _: 3
5338
5357
  }, 8, ["name"])], 8, ["disabled"]));
5339
5358
  }
5340
- })), Kn = {
5359
+ })), Gn = {
5341
5360
  gutter: {
5342
5361
  type: Number,
5343
5362
  default: 0
@@ -5358,13 +5377,13 @@ var ae = {
5358
5377
  type: Boolean,
5359
5378
  default: !0
5360
5379
  }
5361
- }, qn = Symbol("rowContextKey"), Jn = $(/* @__PURE__ */ d({
5380
+ }, Kn = Symbol("rowContextKey"), qn = $(/* @__PURE__ */ d({
5362
5381
  name: `${X}Row`,
5363
5382
  __name: "row",
5364
- props: Kn,
5383
+ props: Gn,
5365
5384
  setup(e) {
5366
5385
  let t = e, n = Y("row");
5367
- C(qn, { gutter: t.gutter });
5386
+ C(Kn, { gutter: t.gutter });
5368
5387
  let a = {
5369
5388
  start: "flex-start",
5370
5389
  center: "center",
@@ -5392,7 +5411,7 @@ var ae = {
5392
5411
  _: 3
5393
5412
  }, 8, ["class", "style"]));
5394
5413
  }
5395
- })), Yn = {
5414
+ })), Jn = {
5396
5415
  span: {
5397
5416
  type: Number,
5398
5417
  default: 24
@@ -5413,12 +5432,12 @@ var ae = {
5413
5432
  type: String,
5414
5433
  default: "div"
5415
5434
  }
5416
- }, Xn = $(/* @__PURE__ */ d({
5435
+ }, Yn = $(/* @__PURE__ */ d({
5417
5436
  name: `${X}Col`,
5418
5437
  __name: "col",
5419
- props: Yn,
5438
+ props: Jn,
5420
5439
  setup(e) {
5421
- let t = e, n = Y("col"), a = m(qn, { gutter: 0 }), o = r(() => {
5440
+ let t = e, n = Y("col"), a = m(Kn, { gutter: 0 }), o = r(() => {
5422
5441
  let e = [n.b()];
5423
5442
  return (t.span || t.span === 0) && e.push(n.m(`${t.span}`)), t.offset > 0 && e.push(n.m(`offset-${t.offset}`)), t.push > 0 && e.push(n.m(`push-${t.push}`)), t.pull > 0 && e.push(n.m(`pull-${t.pull}`)), e;
5424
5443
  }), s = r(() => {
@@ -5437,7 +5456,7 @@ var ae = {
5437
5456
  _: 3
5438
5457
  }, 8, ["class", "style"]));
5439
5458
  }
5440
- })), Zn = {
5459
+ })), Xn = {
5441
5460
  scrollUnderHeader: {
5442
5461
  type: Boolean,
5443
5462
  default: !1
@@ -5446,7 +5465,7 @@ var ae = {
5446
5465
  type: Boolean,
5447
5466
  default: !1
5448
5467
  }
5449
- }, Qn = {
5468
+ }, Zn = {
5450
5469
  divider: {
5451
5470
  type: Boolean,
5452
5471
  default: !0
@@ -5463,22 +5482,22 @@ var ae = {
5463
5482
  type: String,
5464
5483
  default: "solid"
5465
5484
  }
5466
- }, $n = { direction: {
5485
+ }, Qn = { direction: {
5467
5486
  type: String,
5468
5487
  default: ""
5469
- } }, er = {
5488
+ } }, $n = {
5470
5489
  height: {
5471
5490
  type: String,
5472
5491
  default: "60px"
5473
5492
  },
5474
- ...Qn
5475
- }, tr = {
5493
+ ...Zn
5494
+ }, er = {
5476
5495
  height: {
5477
5496
  type: String,
5478
5497
  default: "60px"
5479
5498
  },
5480
- ...Qn
5481
- }, nr = { ...Zn }, rr = {
5499
+ ...Zn
5500
+ }, tr = { ...Xn }, nr = {
5482
5501
  width: {
5483
5502
  type: String,
5484
5503
  default: "300px"
@@ -5487,12 +5506,12 @@ var ae = {
5487
5506
  type: String,
5488
5507
  default: "left"
5489
5508
  },
5490
- ...Zn,
5491
- ...Qn
5492
- }, ir = /* @__PURE__ */ d({
5509
+ ...Xn,
5510
+ ...Zn
5511
+ }, rr = /* @__PURE__ */ d({
5493
5512
  name: `${X}Container`,
5494
5513
  __name: "container",
5495
- props: $n,
5514
+ props: Qn,
5496
5515
  setup(e) {
5497
5516
  let t = e, n = Y("container"), i = F(), a = r(() => {
5498
5517
  if (t.direction) return t.direction === "vertical";
@@ -5504,10 +5523,10 @@ var ae = {
5504
5523
  }), s = r(() => [n.b(), n.is("vertical", a.value)]);
5505
5524
  return (e, t) => (S(), o("section", { class: v(s.value) }, [O(e.$slots, "default")], 2));
5506
5525
  }
5507
- }), ar = /* @__PURE__ */ d({
5526
+ }), ir = /* @__PURE__ */ d({
5508
5527
  name: `${X}Header`,
5509
5528
  __name: "header",
5510
- props: er,
5529
+ props: $n,
5511
5530
  setup(e, { expose: t }) {
5512
5531
  let n = e, s = Y("header"), c = T(), l = r(() => ({
5513
5532
  "--cp-header-height": n.height,
@@ -5531,12 +5550,12 @@ var ae = {
5531
5550
  ref: c,
5532
5551
  class: v([N(s).b(), N(s).is("no-divider", !n.divider)]),
5533
5552
  style: y(l.value)
5534
- }, [O(e.$slots, "default"), n.divider ? (S(), i(Vn, g({ key: 0 }, u.value, { class: N(s).e("divider") }), null, 16, ["class"])) : a("", !0)], 6));
5553
+ }, [O(e.$slots, "default"), n.divider ? (S(), i(Bn, g({ key: 0 }, u.value, { class: N(s).e("divider") }), null, 16, ["class"])) : a("", !0)], 6));
5535
5554
  }
5536
- }), or = /* @__PURE__ */ d({
5555
+ }), ar = /* @__PURE__ */ d({
5537
5556
  name: `${X}Footer`,
5538
5557
  __name: "footer",
5539
- props: tr,
5558
+ props: er,
5540
5559
  setup(e, { expose: t }) {
5541
5560
  let n = e, s = Y("footer"), c = T(), l = r(() => ({
5542
5561
  "--cp-footer-height": n.height,
@@ -5560,12 +5579,12 @@ var ae = {
5560
5579
  ref: c,
5561
5580
  class: v([N(s).b(), N(s).is("no-divider", !n.divider)]),
5562
5581
  style: y(l.value)
5563
- }, [n.divider ? (S(), i(Vn, g({ key: 0 }, u.value, { class: N(s).e("divider") }), null, 16, ["class"])) : a("", !0), O(e.$slots, "default")], 6));
5582
+ }, [n.divider ? (S(), i(Bn, g({ key: 0 }, u.value, { class: N(s).e("divider") }), null, 16, ["class"])) : a("", !0), O(e.$slots, "default")], 6));
5564
5583
  }
5565
- }), sr = /* @__PURE__ */ d({
5584
+ }), or = /* @__PURE__ */ d({
5566
5585
  name: `${X}Main`,
5567
5586
  __name: "main",
5568
- props: nr,
5587
+ props: tr,
5569
5588
  setup(e, { expose: t }) {
5570
5589
  let n = e, i = Y("main"), a = T(), s = r(() => [
5571
5590
  i.b(),
@@ -5589,10 +5608,10 @@ var ae = {
5589
5608
  class: v(s.value)
5590
5609
  }, [O(e.$slots, "default")], 2));
5591
5610
  }
5592
- }), cr = ["data-position"], lr = /* @__PURE__ */ d({
5611
+ }), sr = ["data-position"], cr = /* @__PURE__ */ d({
5593
5612
  name: `${X}Aside`,
5594
5613
  __name: "aside",
5595
- props: rr,
5614
+ props: nr,
5596
5615
  setup(e, { expose: t }) {
5597
5616
  let n = e, c = Y("aside"), l = T(), u = r(() => [
5598
5617
  c.b(),
@@ -5622,16 +5641,16 @@ var ae = {
5622
5641
  style: y(d.value),
5623
5642
  "data-position": n.position
5624
5643
  }, [
5625
- p.value && n.divider ? (S(), i(Vn, g({ key: 0 }, f.value, { class: N(c).e("divider") }), null, 16, ["class"])) : a("", !0),
5644
+ p.value && n.divider ? (S(), i(Bn, g({ key: 0 }, f.value, { class: N(c).e("divider") }), null, 16, ["class"])) : a("", !0),
5626
5645
  s("div", {
5627
5646
  ref_key: "contentRef",
5628
5647
  ref: l,
5629
5648
  class: v(N(c).e("content"))
5630
5649
  }, [s("div", { class: v(N(c).e("inner")) }, [O(e.$slots, "default")], 2)], 2),
5631
- !p.value && n.divider ? (S(), i(Vn, g({ key: 1 }, f.value, { class: N(c).e("divider") }), null, 16, ["class"])) : a("", !0)
5632
- ], 14, cr));
5650
+ !p.value && n.divider ? (S(), i(Bn, g({ key: 1 }, f.value, { class: N(c).e("divider") }), null, 16, ["class"])) : a("", !0)
5651
+ ], 14, sr));
5633
5652
  }
5634
- }), ur = $(ir), dr = $(ar), fr = $(or), pr = $(sr), mr = $(lr), hr = {
5653
+ }), lr = $(rr), ur = $(ir), dr = $(ar), fr = $(or), pr = $(cr), mr = {
5635
5654
  mode: {
5636
5655
  type: String,
5637
5656
  default: "vertical"
@@ -5672,15 +5691,15 @@ var ae = {
5672
5691
  type: Boolean,
5673
5692
  default: !1
5674
5693
  }
5675
- }, gr = {
5694
+ }, hr = {
5676
5695
  select: (e, t) => typeof e == "string" && Array.isArray(t),
5677
5696
  open: (e, t) => typeof e == "string" && Array.isArray(t),
5678
5697
  close: (e, t) => typeof e == "string" && Array.isArray(t)
5679
- }, _r = Symbol("menuContext"), vr = Symbol("subMenuContext"), yr = $(/* @__PURE__ */ d({
5698
+ }, gr = Symbol("menuContext"), _r = Symbol("subMenuContext"), vr = $(/* @__PURE__ */ d({
5680
5699
  name: "CpMenu",
5681
5700
  __name: "menu",
5682
- props: hr,
5683
- emits: gr,
5701
+ props: mr,
5702
+ emits: hr,
5684
5703
  setup(e, { emit: t }) {
5685
5704
  let n = e, i = t, a = Y("menu"), s = T(n.defaultActive), c = T([]), l = T(new Set(n.defaultOpeneds)), u = T(new Set(n.defaultOpeneds)), d = T(!1), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), h = (e, t) => {
5686
5705
  p.set(e, [...t]);
@@ -5751,7 +5770,7 @@ var ae = {
5751
5770
  let e = {};
5752
5771
  return n.color && (e["--cp-menu-active-color"] = n.color, e["--cp-menu-active-color-light"] = `color-mix(in srgb, ${n.color} 20%, transparent)`), e;
5753
5772
  });
5754
- return C(_r, {
5773
+ return C(gr, {
5755
5774
  generateIndex: F,
5756
5775
  activeIndex: s,
5757
5776
  activeIndexPath: c,
@@ -5778,7 +5797,7 @@ var ae = {
5778
5797
  role: "menubar"
5779
5798
  }, [O(e.$slots, "default")], 6));
5780
5799
  }
5781
- })), br = {
5800
+ })), yr = {
5782
5801
  index: {
5783
5802
  type: String,
5784
5803
  default: void 0
@@ -5799,13 +5818,13 @@ var ae = {
5799
5818
  type: [String, Object],
5800
5819
  default: void 0
5801
5820
  }
5802
- }, xr = { click: (e) => typeof e == "string" }, Sr = ["tabindex"], Cr = $(/* @__PURE__ */ d({
5821
+ }, br = { click: (e) => typeof e == "string" }, xr = ["tabindex"], Sr = $(/* @__PURE__ */ d({
5803
5822
  name: "CpMenuItem",
5804
5823
  __name: "menu-item",
5805
- props: br,
5806
- emits: xr,
5824
+ props: yr,
5825
+ emits: br,
5807
5826
  setup(e, { emit: t }) {
5808
- let n = e, c = t, l = Y("menu-item"), u = m(_r, void 0), d = m(vr, void 0), p = n.index ?? u?.generateIndex() ?? `__cp_auto_fallback_${Math.random().toString(36).slice(2)}`, h = r(() => u?.activeIndex.value === p), g = r(() => [...d?.indexPath ?? [], p]);
5827
+ let n = e, c = t, l = Y("menu-item"), u = m(gr, void 0), d = m(_r, void 0), p = n.index ?? u?.generateIndex() ?? `__cp_auto_fallback_${Math.random().toString(36).slice(2)}`, h = r(() => u?.activeIndex.value === p), g = r(() => [...d?.indexPath ?? [], p]);
5809
5828
  x(() => {
5810
5829
  u?.addItem(p, g.value);
5811
5830
  }), b(() => {
@@ -5836,13 +5855,13 @@ var ae = {
5836
5855
  }, [e.icon || e.$slots.icon ? (S(), o("span", {
5837
5856
  key: 0,
5838
5857
  class: v(N(l).e("icon"))
5839
- }, [e.icon ? (S(), i(N(xe), {
5858
+ }, [e.icon ? (S(), i(N(ye), {
5840
5859
  key: 0,
5841
5860
  icon: e.icon,
5842
5861
  size: "sm"
5843
- }, null, 8, ["icon"])) : O(e.$slots, "icon", { key: 1 })], 2)) : a("", !0), s("span", { class: v(N(l).e("content")) }, [O(e.$slots, "default")], 2)], 46, Sr));
5862
+ }, null, 8, ["icon"])) : O(e.$slots, "icon", { key: 1 })], 2)) : a("", !0), s("span", { class: v(N(l).e("content")) }, [O(e.$slots, "default")], 2)], 46, xr));
5844
5863
  }
5845
- })), wr = {
5864
+ })), Cr = {
5846
5865
  index: {
5847
5866
  type: String,
5848
5867
  default: void 0
@@ -5863,12 +5882,12 @@ var ae = {
5863
5882
  type: String,
5864
5883
  default: void 0
5865
5884
  }
5866
- }, Tr = ["aria-expanded", "tabindex"], Er = 200, Dr = 200, Or = $(/* @__PURE__ */ d({
5885
+ }, wr = ["aria-expanded", "tabindex"], Tr = 200, Er = 200, Dr = $(/* @__PURE__ */ d({
5867
5886
  name: "CpSubMenu",
5868
5887
  __name: "sub-menu",
5869
- props: wr,
5888
+ props: Cr,
5870
5889
  setup(e) {
5871
- let t = e, c = Y("sub-menu"), d = m(_r, void 0), f = m(vr, void 0), p = t.index ?? d?.generateIndex() ?? `__cp_sub_auto_${Math.random().toString(36).slice(2)}`, h = T(!1), g = r(() => f?.level ?? 0), _ = r(() => [...f?.indexPath ?? [], p]);
5890
+ let t = e, c = Y("sub-menu"), d = m(gr, void 0), f = m(_r, void 0), p = t.index ?? d?.generateIndex() ?? `__cp_sub_auto_${Math.random().toString(36).slice(2)}`, h = T(!1), g = r(() => f?.level ?? 0), _ = r(() => [...f?.indexPath ?? [], p]);
5872
5891
  x(() => {
5873
5892
  d?.addSubMenu(p, _.value);
5874
5893
  }), b(() => {
@@ -5886,11 +5905,11 @@ var ae = {
5886
5905
  }, R = () => {
5887
5906
  t.disabled || !D.value || d?.suppressTransition?.value || (F(), M = setTimeout(() => {
5888
5907
  d?.openMenu(p, _.value);
5889
- }, Er), f && (f.mouseInChild.value = !0));
5908
+ }, Tr), f && (f.mouseInChild.value = !0));
5890
5909
  }, z = (e = !1) => {
5891
5910
  D.value && (F(), f && (f.mouseInChild.value = !1), P = setTimeout(() => {
5892
5911
  h.value || d?.closeMenu(p, _.value);
5893
- }, Dr), e && f?.handleMouseleave && f.handleMouseleave(!0));
5912
+ }, Er), e && f?.handleMouseleave && f.handleMouseleave(!0));
5894
5913
  }, U = () => {
5895
5914
  D.value && (F(), h.value = !0);
5896
5915
  }, W = () => {
@@ -5898,7 +5917,7 @@ var ae = {
5898
5917
  };
5899
5918
  b(() => {
5900
5919
  F();
5901
- }), C(vr, {
5920
+ }), C(_r, {
5902
5921
  indexPath: _.value,
5903
5922
  level: g.value + 1,
5904
5923
  mouseInChild: h,
@@ -5946,7 +5965,7 @@ var ae = {
5946
5965
  e.icon || e.$slots.icon ? (S(), o("span", {
5947
5966
  key: 0,
5948
5967
  class: v(N(c).e("icon"))
5949
- }, [e.icon ? (S(), i(N(xe), {
5968
+ }, [e.icon ? (S(), i(N(ye), {
5950
5969
  key: 0,
5951
5970
  icon: e.icon,
5952
5971
  size: "sm"
@@ -5960,7 +5979,7 @@ var ae = {
5960
5979
  fill: "currentColor",
5961
5980
  d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 533.376a30.592 30.592 0 0 0 0-42.752L382.592 149.312a29.12 29.12 0 0 0-41.728 0z"
5962
5981
  })], -1)]], 2)
5963
- ], 46, Tr), u(n, {
5982
+ ], 46, wr), u(n, {
5964
5983
  name: N(d)?.suppressTransition?.value ? "" : D.value ? "cp-sub-menu" : "cp-collapse-transition",
5965
5984
  onBeforeEnter: G,
5966
5985
  onEnter: K,
@@ -5981,15 +6000,15 @@ var ae = {
5981
6000
  _: 3
5982
6001
  }, 8, ["name"])], 34));
5983
6002
  }
5984
- })), kr = { title: {
6003
+ })), Or = { title: {
5985
6004
  type: String,
5986
6005
  default: ""
5987
- } }, Ar = $(/* @__PURE__ */ d({
6006
+ } }, kr = $(/* @__PURE__ */ d({
5988
6007
  name: "CpMenuItemGroup",
5989
6008
  __name: "menu-item-group",
5990
- props: kr,
6009
+ props: Or,
5991
6010
  setup(e) {
5992
- let t = Y("menu-item-group"), n = m(_r, void 0), i = m(vr, void 0), a = r(() => n?.mode === "horizontal" ? {} : { paddingLeft: `${20 * ((i?.level ?? 0) + 1)}px` });
6011
+ let t = Y("menu-item-group"), n = m(gr, void 0), i = m(_r, void 0), a = r(() => n?.mode === "horizontal" ? {} : { paddingLeft: `${20 * ((i?.level ?? 0) + 1)}px` });
5993
6012
  return (e, n) => (S(), o("li", {
5994
6013
  class: v(N(t).b()),
5995
6014
  role: "none"
@@ -6001,13 +6020,13 @@ var ae = {
6001
6020
  role: "group"
6002
6021
  }, [O(e.$slots, "default")], 2)], 2));
6003
6022
  }
6004
- })), jr = [
6023
+ })), Ar = [
6005
6024
  "success",
6006
6025
  "warning",
6007
6026
  "error",
6008
6027
  "info",
6009
6028
  "primary"
6010
- ], Mr = {
6029
+ ], jr = {
6011
6030
  id: {
6012
6031
  type: String,
6013
6032
  default: ""
@@ -6104,12 +6123,12 @@ var ae = {
6104
6123
  type: Function,
6105
6124
  default: void 0
6106
6125
  }
6107
- }, Nr = {
6126
+ }, Mr = {
6108
6127
  "update:modelValue": (e) => typeof e == "boolean",
6109
6128
  close: () => !0,
6110
6129
  destroy: () => !0,
6111
6130
  click: () => !0
6112
- }, Pr = {
6131
+ }, Nr = {
6113
6132
  viewBox: "0 0 24 24",
6114
6133
  width: "24",
6115
6134
  height: "24",
@@ -6118,7 +6137,7 @@ var ae = {
6118
6137
  "stroke-width": "1.5",
6119
6138
  "stroke-linecap": "round",
6120
6139
  "stroke-linejoin": "round"
6121
- }, Fr = ["d"], Ir = ["innerHTML"], Lr = { key: 1 }, Rr = {
6140
+ }, Pr = ["d"], Fr = ["innerHTML"], Ir = { key: 1 }, Lr = {
6122
6141
  viewBox: "0 0 24 24",
6123
6142
  width: "24",
6124
6143
  height: "24",
@@ -6127,12 +6146,12 @@ var ae = {
6127
6146
  "stroke-width": "1.5",
6128
6147
  "stroke-linecap": "round",
6129
6148
  "stroke-linejoin": "round"
6130
- }, zr = ["d"], Br = ["innerHTML"], Vr = { key: 1 }, Hr = /* @__PURE__ */ d({
6149
+ }, Rr = ["d"], zr = ["innerHTML"], Br = { key: 1 }, Vr = /* @__PURE__ */ d({
6131
6150
  name: `${X}Notification`,
6132
6151
  inheritAttrs: !1,
6133
6152
  __name: "notification",
6134
- props: Mr,
6135
- emits: Nr,
6153
+ props: jr,
6154
+ emits: Mr,
6136
6155
  setup(e, { expose: c, emit: d }) {
6137
6156
  let f = e, p = d, m = F(), _ = Y("notification"), y = T(!1), C = r(() => !!f.id), w = null, E = 0, D = 0, k = () => {
6138
6157
  f.duration <= 0 || (D <= 0 && (D = f.duration), E = Date.now(), w = setTimeout(() => {
@@ -6210,7 +6229,7 @@ var ae = {
6210
6229
  ae.value || N(m).icon ? (S(), o("div", {
6211
6230
  key: 0,
6212
6231
  class: v(N(_).e("icon"))
6213
- }, [O(e.$slots, "icon", {}, () => [(S(), o("svg", Rr, [s("path", { d: ae.value }, null, 8, zr)]))])], 2)) : a("", !0),
6232
+ }, [O(e.$slots, "icon", {}, () => [(S(), o("svg", Lr, [s("path", { d: ae.value }, null, 8, Rr)]))])], 2)) : a("", !0),
6214
6233
  s("div", { class: v(N(_).e("group")) }, [
6215
6234
  e.title || N(m).title ? (S(), o("div", {
6216
6235
  key: 0,
@@ -6219,7 +6238,7 @@ var ae = {
6219
6238
  s("div", { class: v(N(_).e("content")) }, [O(e.$slots, "default", {}, () => [e.dangerouslyUseHTMLString && ee.value ? (S(), o("p", {
6220
6239
  key: 0,
6221
6240
  innerHTML: e.message
6222
- }, null, 8, Br)) : ee.value ? (S(), o("p", Vr, j(e.message), 1)) : Z.value ? (S(), i(A(() => Z.value), { key: 2 })) : a("", !0)])], 2),
6241
+ }, null, 8, zr)) : ee.value ? (S(), o("p", Br, j(e.message), 1)) : Z.value ? (S(), i(A(() => Z.value), { key: 2 })) : a("", !0)])], 2),
6223
6242
  N(m).actions ? (S(), o("div", {
6224
6243
  key: 1,
6225
6244
  class: v(N(_).e("actions")),
@@ -6265,7 +6284,7 @@ var ae = {
6265
6284
  ae.value || N(m).icon ? (S(), o("div", {
6266
6285
  key: 0,
6267
6286
  class: v(N(_).e("icon"))
6268
- }, [O(e.$slots, "icon", {}, () => [(S(), o("svg", Pr, [s("path", { d: ae.value }, null, 8, Fr)]))])], 2)) : a("", !0),
6287
+ }, [O(e.$slots, "icon", {}, () => [(S(), o("svg", Nr, [s("path", { d: ae.value }, null, 8, Pr)]))])], 2)) : a("", !0),
6269
6288
  s("div", { class: v(N(_).e("group")) }, [
6270
6289
  e.title || N(m).title ? (S(), o("div", {
6271
6290
  key: 0,
@@ -6274,7 +6293,7 @@ var ae = {
6274
6293
  s("div", { class: v(N(_).e("content")) }, [O(e.$slots, "default", {}, () => [e.dangerouslyUseHTMLString && ee.value ? (S(), o("p", {
6275
6294
  key: 0,
6276
6295
  innerHTML: e.message
6277
- }, null, 8, Ir)) : ee.value ? (S(), o("p", Lr, j(e.message), 1)) : Z.value ? (S(), i(A(() => Z.value), { key: 2 })) : a("", !0)])], 2),
6296
+ }, null, 8, Fr)) : ee.value ? (S(), o("p", Ir, j(e.message), 1)) : Z.value ? (S(), i(A(() => Z.value), { key: 2 })) : a("", !0)])], 2),
6278
6297
  N(m).actions ? (S(), o("div", {
6279
6298
  key: 1,
6280
6299
  class: v(N(_).e("actions")),
@@ -6302,40 +6321,40 @@ var ae = {
6302
6321
  _: 3
6303
6322
  }, 8, ["name"])]));
6304
6323
  }
6305
- }), Ur = {
6324
+ }), Hr = {
6306
6325
  "top-left": [],
6307
6326
  "top-right": [],
6308
6327
  "bottom-left": [],
6309
6328
  "bottom-right": []
6310
- }, Wr = 16, Gr = 32, Kr = 1, qr = (e) => typeof e == "string", Jr = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, Yr = function(e = {}, t) {
6329
+ }, Ur = 16, Wr = 32, Gr = 1, Kr = (e) => typeof e == "string", qr = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, Jr = function(e = {}, t) {
6311
6330
  if (typeof window > "u") return { close: () => void 0 };
6312
- (qr(e) || h(e)) && (e = { message: e });
6331
+ (Kr(e) || h(e)) && (e = { message: e });
6313
6332
  let n = e, r = n.position || "top-right", i = n.stacking === !0 ? "vertical" : n.stacking === "overlap" ? "overlap" : n.stacking === "vertical" ? "vertical" : !1, a;
6314
- if (i === "vertical") a = n.offset || 0, Ur[r].forEach(({ el: e }) => {
6315
- a += (e?.offsetHeight || 0) + Wr;
6316
- }), a += Wr;
6333
+ if (i === "vertical") a = n.offset || 0, Hr[r].forEach(({ el: e }) => {
6334
+ a += (e?.offsetHeight || 0) + Ur;
6335
+ }), a += Ur;
6317
6336
  else if (i === "overlap") {
6318
- let e = Ur[r].filter((e) => e.stacking === "overlap").length;
6319
- a = (n.offset || Wr) + e * Gr;
6320
- } else a = n.offset || Wr;
6321
- let o = `cp_notification_${Kr++}`, s = n.onClose, c = {
6337
+ let e = Hr[r].filter((e) => e.stacking === "overlap").length;
6338
+ a = (n.offset || Ur) + e * Wr;
6339
+ } else a = n.offset || Ur;
6340
+ let o = `cp_notification_${Gr++}`, s = n.onClose, c = {
6322
6341
  ...n,
6323
6342
  offset: n.offset || 16,
6324
6343
  _verticalOffset: a,
6325
6344
  id: o,
6326
6345
  onClose: () => {
6327
- Xr(o, r, s);
6346
+ Yr(o, r, s);
6328
6347
  }
6329
6348
  };
6330
6349
  delete c.appendTo, delete c.stacking;
6331
6350
  let l = document.body, d = n.appendTo;
6332
- Jr(d) ? l = d : qr(d) && (l = document.querySelector(d)), Jr(l) || (l = document.body);
6333
- let f = document.createElement("div"), p = c.message, m = u(Hr, c, typeof p == "function" ? p : h(p) ? () => p : null);
6334
- m.appContext = t === void 0 ? Yr._context : t, m.props.onDestroy = () => {
6351
+ qr(d) ? l = d : Kr(d) && (l = document.querySelector(d)), qr(l) || (l = document.body);
6352
+ let f = document.createElement("div"), p = c.message, m = u(Vr, c, typeof p == "function" ? p : h(p) ? () => p : null);
6353
+ m.appContext = t === void 0 ? Jr._context : t, m.props.onDestroy = () => {
6335
6354
  E(null, f);
6336
6355
  }, E(m, f);
6337
6356
  let g = f.firstElementChild;
6338
- return g ? (Ur[r].push({
6357
+ return g ? (Hr[r].push({
6339
6358
  vm: m,
6340
6359
  el: g,
6341
6360
  stacking: i
@@ -6344,14 +6363,14 @@ var ae = {
6344
6363
  e && (e.visible.value = !1);
6345
6364
  } }) : (console.warn("[CpNotification] Failed to render notification element."), { close: () => void 0 });
6346
6365
  };
6347
- jr.forEach((e) => {
6348
- Yr[e] = (t = {}, n) => ((qr(t) || h(t)) && (t = { message: t }), Yr({
6366
+ Ar.forEach((e) => {
6367
+ Jr[e] = (t = {}, n) => ((Kr(t) || h(t)) && (t = { message: t }), Jr({
6349
6368
  ...t,
6350
6369
  type: e
6351
6370
  }, n));
6352
6371
  });
6353
- function Xr(e, t, n) {
6354
- let r = Ur[t], i = r.findIndex(({ vm: t }) => t.component?.props.id === e);
6372
+ function Yr(e, t, n) {
6373
+ let r = Hr[t], i = r.findIndex(({ vm: t }) => t.component?.props.id === e);
6355
6374
  if (i === -1) return;
6356
6375
  let a = r[i];
6357
6376
  if (!a) return;
@@ -6360,24 +6379,24 @@ function Xr(e, t, n) {
6360
6379
  if (r.splice(i, 1), !a.stacking) return;
6361
6380
  let c = r.length;
6362
6381
  if (c < 1) return;
6363
- let l = a.stacking === "overlap" ? Gr : o + Wr;
6382
+ let l = a.stacking === "overlap" ? Wr : o + Ur;
6364
6383
  for (let e = i; e < c; e++) {
6365
6384
  let t = r[e];
6366
6385
  if (!t?.el || !t.vm.component || !t.stacking) continue;
6367
6386
  let n = Number.parseInt(t.el.style[s] || "0", 10) - l;
6368
- t.vm.component.props._verticalOffset = Math.max(n, Wr);
6387
+ t.vm.component.props._verticalOffset = Math.max(n, Ur);
6369
6388
  }
6370
6389
  }
6371
- function Zr() {
6372
- for (let e of Object.values(Ur)) [...e].forEach(({ vm: e }) => {
6390
+ function Xr() {
6391
+ for (let e of Object.values(Hr)) [...e].forEach(({ vm: e }) => {
6373
6392
  let t = e.component?.exposed;
6374
6393
  t && (t.visible.value = !1);
6375
6394
  });
6376
6395
  }
6377
- Yr.closeAll = Zr, Yr._context = null;
6396
+ Jr.closeAll = Xr, Jr._context = null;
6378
6397
  //#endregion
6379
6398
  //#region notification/index.ts
6380
- var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6399
+ var Zr = $(Vr), Qr = ie(Jr, "$notify"), $r = /* @__PURE__ */ d({
6381
6400
  name: "MenuNavTree",
6382
6401
  __name: "menu-nav-tree",
6383
6402
  props: { items: {} },
@@ -6385,11 +6404,11 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6385
6404
  let n = (e) => !!e.group;
6386
6405
  return (r, a) => {
6387
6406
  let s = k("menu-nav-tree", !0);
6388
- return S(!0), o(e, null, D(t.items, (t) => (S(), o(e, { key: t.index || t.group }, [n(t) ? (S(), i(N(Ar), {
6407
+ return S(!0), o(e, null, D(t.items, (t) => (S(), o(e, { key: t.index || t.group }, [n(t) ? (S(), i(N(kr), {
6389
6408
  key: 0,
6390
6409
  title: t.group
6391
6410
  }, {
6392
- default: B(() => [(S(!0), o(e, null, D(t.children, (t) => (S(), o(e, { key: t.index }, [t.children && t.children.length ? (S(), i(N(Or), {
6411
+ default: B(() => [(S(!0), o(e, null, D(t.children, (t) => (S(), o(e, { key: t.index }, [t.children && t.children.length ? (S(), i(N(Dr), {
6393
6412
  key: 0,
6394
6413
  index: t.index,
6395
6414
  icon: t.icon,
@@ -6402,7 +6421,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6402
6421
  "index",
6403
6422
  "icon",
6404
6423
  "disabled"
6405
- ])) : (S(), i(N(Cr), {
6424
+ ])) : (S(), i(N(Sr), {
6406
6425
  key: 1,
6407
6426
  index: t.index,
6408
6427
  icon: t.icon,
@@ -6418,7 +6437,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6418
6437
  "route"
6419
6438
  ]))], 64))), 128))]),
6420
6439
  _: 2
6421
- }, 1032, ["title"])) : t.children && t.children.length ? (S(), i(N(Or), {
6440
+ }, 1032, ["title"])) : t.children && t.children.length ? (S(), i(N(Dr), {
6422
6441
  key: 1,
6423
6442
  index: t.index,
6424
6443
  icon: t.icon,
@@ -6431,7 +6450,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6431
6450
  "index",
6432
6451
  "icon",
6433
6452
  "disabled"
6434
- ])) : (S(), i(N(Cr), {
6453
+ ])) : (S(), i(N(Sr), {
6435
6454
  key: 2,
6436
6455
  index: t.index,
6437
6456
  icon: t.icon,
@@ -6448,7 +6467,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6448
6467
  ]))], 64))), 128);
6449
6468
  };
6450
6469
  }
6451
- }), ti = {
6470
+ }), ei = {
6452
6471
  data: {
6453
6472
  type: Array,
6454
6473
  required: !0
@@ -6493,15 +6512,15 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6493
6512
  type: Boolean,
6494
6513
  default: !1
6495
6514
  }
6496
- }, ni = {
6515
+ }, ti = {
6497
6516
  select: (e, t) => typeof e == "string" && Array.isArray(t),
6498
6517
  open: (e, t) => typeof e == "string" && Array.isArray(t),
6499
6518
  close: (e, t) => typeof e == "string" && Array.isArray(t)
6500
- }, ri = $(/* @__PURE__ */ d({
6519
+ }, ni = $(/* @__PURE__ */ d({
6501
6520
  name: "CpMenuNav",
6502
6521
  __name: "menu-nav",
6503
- props: ti,
6504
- emits: ni,
6522
+ props: ei,
6523
+ emits: ti,
6505
6524
  setup(t, { emit: n }) {
6506
6525
  let r = n, a = (e, t) => {
6507
6526
  r("select", e, t);
@@ -6510,7 +6529,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6510
6529
  }, c = (e, t) => {
6511
6530
  r("close", e, t);
6512
6531
  }, d = (e) => !!e.group;
6513
- return (t, n) => (S(), i(N(yr), {
6532
+ return (t, n) => (S(), i(N(vr), {
6514
6533
  mode: t.mode,
6515
6534
  "default-active": t.defaultActive,
6516
6535
  "default-openeds": t.defaultOpeneds,
@@ -6525,24 +6544,24 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6525
6544
  onOpen: s,
6526
6545
  onClose: c
6527
6546
  }, {
6528
- default: B(() => [(S(!0), o(e, null, D(t.data, (t) => (S(), o(e, { key: t.index || t.group }, [d(t) ? (S(), i(N(Ar), {
6547
+ default: B(() => [(S(!0), o(e, null, D(t.data, (t) => (S(), o(e, { key: t.index || t.group }, [d(t) ? (S(), i(N(kr), {
6529
6548
  key: 0,
6530
6549
  title: t.group
6531
6550
  }, {
6532
- default: B(() => [(S(!0), o(e, null, D(t.children, (t) => (S(), o(e, { key: t.index }, [t.children && t.children.length ? (S(), i(N(Or), {
6551
+ default: B(() => [(S(!0), o(e, null, D(t.children, (t) => (S(), o(e, { key: t.index }, [t.children && t.children.length ? (S(), i(N(Dr), {
6533
6552
  key: 0,
6534
6553
  index: t.index,
6535
6554
  icon: t.icon,
6536
6555
  disabled: t.disabled
6537
6556
  }, {
6538
6557
  title: B(() => [l(j(t.label), 1)]),
6539
- default: B(() => [u(ei, { items: t.children }, null, 8, ["items"])]),
6558
+ default: B(() => [u($r, { items: t.children }, null, 8, ["items"])]),
6540
6559
  _: 2
6541
6560
  }, 1032, [
6542
6561
  "index",
6543
6562
  "icon",
6544
6563
  "disabled"
6545
- ])) : (S(), i(N(Cr), {
6564
+ ])) : (S(), i(N(Sr), {
6546
6565
  key: 1,
6547
6566
  index: t.index,
6548
6567
  icon: t.icon,
@@ -6558,20 +6577,20 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6558
6577
  "route"
6559
6578
  ]))], 64))), 128))]),
6560
6579
  _: 2
6561
- }, 1032, ["title"])) : t.children && t.children.length ? (S(), i(N(Or), {
6580
+ }, 1032, ["title"])) : t.children && t.children.length ? (S(), i(N(Dr), {
6562
6581
  key: 1,
6563
6582
  index: t.index,
6564
6583
  icon: t.icon,
6565
6584
  disabled: t.disabled
6566
6585
  }, {
6567
6586
  title: B(() => [l(j(t.label), 1)]),
6568
- default: B(() => [u(ei, { items: t.children }, null, 8, ["items"])]),
6587
+ default: B(() => [u($r, { items: t.children }, null, 8, ["items"])]),
6569
6588
  _: 2
6570
6589
  }, 1032, [
6571
6590
  "index",
6572
6591
  "icon",
6573
6592
  "disabled"
6574
- ])) : (S(), i(N(Cr), {
6593
+ ])) : (S(), i(N(Sr), {
6575
6594
  key: 2,
6576
6595
  index: t.index,
6577
6596
  icon: t.icon,
@@ -6600,7 +6619,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6600
6619
  "router"
6601
6620
  ]));
6602
6621
  }
6603
- })), ii = {
6622
+ })), ri = {
6604
6623
  currentPage: {
6605
6624
  type: Number,
6606
6625
  default: 1
@@ -6667,16 +6686,16 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6667
6686
  type: String,
6668
6687
  default: "{size} 条/页"
6669
6688
  }
6670
- }, ai = {
6689
+ }, ii = {
6671
6690
  "update:currentPage": (e) => typeof e == "number",
6672
6691
  "update:pageSize": (e) => typeof e == "number",
6673
6692
  change: (e) => typeof e == "number",
6674
6693
  sizeChange: (e) => typeof e == "number"
6675
- }, oi = ["max", "disabled"], si = $(/* @__PURE__ */ d({
6694
+ }, ai = ["max", "disabled"], oi = $(/* @__PURE__ */ d({
6676
6695
  name: `${X}Pagination`,
6677
6696
  __name: "pagination",
6678
- props: ii,
6679
- emits: ai,
6697
+ props: ri,
6698
+ emits: ii,
6680
6699
  setup(t, { emit: n }) {
6681
6700
  let i = t, c = n, d = Y("pagination"), f = T(i.currentPage), p = T(i.pageSize);
6682
6701
  R(() => i.currentPage, (e) => {
@@ -6783,7 +6802,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6783
6802
  color: t.color || P.value,
6784
6803
  shape: t.shape,
6785
6804
  size: t.size
6786
- }, () => [s("span", { class: v(N(d).e("sizes")) }, [u(fn, {
6805
+ }, () => [s("span", { class: v(N(d).e("sizes")) }, [u(dn, {
6787
6806
  "model-value": p.value,
6788
6807
  options: A.value,
6789
6808
  disabled: t.disabled,
@@ -6809,7 +6828,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6809
6828
  shape: t.shape,
6810
6829
  size: t.size,
6811
6830
  buttonVariant: t.buttonVariant
6812
- }, () => [u(we, {
6831
+ }, () => [u(Se, {
6813
6832
  class: v(N(d).e("prev")),
6814
6833
  type: "default",
6815
6834
  variant: t.buttonVariant,
@@ -6865,7 +6884,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6865
6884
  type: t.type,
6866
6885
  color: t.color,
6867
6886
  buttonVariant: t.buttonVariant
6868
- }, () => [u(we, {
6887
+ }, () => [u(Se, {
6869
6888
  variant: "ghost",
6870
6889
  type: "default",
6871
6890
  shape: C.value,
@@ -6913,7 +6932,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6913
6932
  type: t.type,
6914
6933
  color: t.color,
6915
6934
  buttonVariant: t.buttonVariant
6916
- }, () => [u(we, {
6935
+ }, () => [u(Se, {
6917
6936
  type: e === f.value ? t.type === "default" ? "primary" : t.type : "default",
6918
6937
  variant: e === f.value ? "solid" : t.buttonVariant,
6919
6938
  shape: C.value,
@@ -6943,7 +6962,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6943
6962
  shape: t.shape,
6944
6963
  size: t.size,
6945
6964
  buttonVariant: t.buttonVariant
6946
- }, () => [u(we, {
6965
+ }, () => [u(Se, {
6947
6966
  class: v(N(d).e("next")),
6948
6967
  type: "default",
6949
6968
  variant: t.buttonVariant,
@@ -6990,11 +7009,11 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
6990
7009
  max: m.value,
6991
7010
  disabled: t.disabled,
6992
7011
  onKeydown: H(ee, ["enter"])
6993
- }, null, 42, oi), [[I, Z.value]]),
7012
+ }, null, 42, ai), [[I, Z.value]]),
6994
7013
  n[5] ||= l(" 页 ", -1)
6995
7014
  ], 2)]) : a("", !0)], 64))), 128))], 6));
6996
7015
  }
6997
- })), ci = {
7016
+ })), si = {
6998
7017
  modelValue: {
6999
7018
  type: [String, Number],
7000
7019
  default: void 0
@@ -7031,20 +7050,20 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7031
7050
  type: Boolean,
7032
7051
  default: !1
7033
7052
  }
7034
- }, li = {
7053
+ }, ci = {
7035
7054
  "update:modelValue": (e) => typeof e == "string" || typeof e == "number",
7036
7055
  change: (e) => typeof e == "string" || typeof e == "number"
7037
- }, ui = [
7056
+ }, li = [
7038
7057
  "disabled",
7039
7058
  "aria-checked",
7040
7059
  "onClick"
7041
- ], di = $(/* @__PURE__ */ d({
7060
+ ], ui = $(/* @__PURE__ */ d({
7042
7061
  name: `${X}Segmented`,
7043
7062
  __name: "segmented",
7044
- props: ci,
7045
- emits: li,
7063
+ props: si,
7064
+ emits: ci,
7046
7065
  setup(t, { expose: n, emit: c }) {
7047
- let l = t, u = c, d = Y("segmented"), f = m(Se, void 0), p = r(() => l.disabled || f?.disabled.value || !1), h = {
7066
+ let l = t, u = c, d = Y("segmented"), f = m(be, void 0), p = r(() => l.disabled || f?.disabled.value || !1), h = {
7048
7067
  sm: 28,
7049
7068
  md: 36,
7050
7069
  lg: 44
@@ -7067,15 +7086,17 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7067
7086
  };
7068
7087
  };
7069
7088
  R(() => l.modelValue, () => _(k)), R(() => l.options, () => _(k), { deep: !0 });
7070
- let M = null;
7089
+ let M = null, P = null;
7071
7090
  x(() => {
7072
7091
  _(k), C.value && (M = new ResizeObserver(() => {
7073
7092
  k();
7074
- }), M.observe(C.value));
7093
+ }), M.observe(C.value), P = new IntersectionObserver((e) => {
7094
+ e[0]?.isIntersecting && (k(), P?.disconnect(), P = null);
7095
+ }), P.observe(C.value));
7075
7096
  }), b(() => {
7076
- M?.disconnect();
7097
+ M?.disconnect(), P?.disconnect();
7077
7098
  });
7078
- let P = r(() => [
7099
+ let F = r(() => [
7079
7100
  d.b(),
7080
7101
  d.m(l.variant),
7081
7102
  d.m(l.type),
@@ -7085,12 +7106,12 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7085
7106
  d.is("block", l.block),
7086
7107
  d.is("custom-color", !!l.color),
7087
7108
  d.is("custom-size", !W(l.size))
7088
- ]), F = r(() => {
7109
+ ]), I = r(() => {
7089
7110
  let e = {};
7090
7111
  return l.color && (e["--cp-segmented-color"] = l.color, e["--cp-segmented-color-light"] = `${l.color}25`), W(l.size) || (e["--cp-segmented-height"] = K(l.size, h)), e;
7091
- }), I = (e) => {
7112
+ }), L = (e) => {
7092
7113
  p.value || e.disabled || e.value !== l.modelValue && (u("update:modelValue", e.value), u("change", e.value));
7093
- }, L = (e) => [
7114
+ }, z = (e) => [
7094
7115
  d.e("item"),
7095
7116
  d.is("active", e.value === l.modelValue),
7096
7117
  d.is("disabled", !!e.disabled)
@@ -7098,8 +7119,8 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7098
7119
  return n({ updateIndicator: k }), (t, n) => (S(), o("div", {
7099
7120
  ref_key: "trackRef",
7100
7121
  ref: C,
7101
- class: v(P.value),
7102
- style: y(F.value),
7122
+ class: v(F.value),
7123
+ style: y(I.value),
7103
7124
  role: "radiogroup"
7104
7125
  }, [s("div", {
7105
7126
  class: v(N(d).e("indicator")),
@@ -7108,18 +7129,18 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7108
7129
  key: e.value,
7109
7130
  ref_for: !0,
7110
7131
  ref: (e) => O(e, n),
7111
- class: v(L(e)),
7132
+ class: v(z(e)),
7112
7133
  disabled: p.value || e.disabled,
7113
7134
  type: "button",
7114
7135
  role: "radio",
7115
7136
  "aria-checked": e.value === t.modelValue,
7116
- onClick: (t) => I(e)
7137
+ onClick: (t) => L(e)
7117
7138
  }, [e.icon ? (S(), i(A(e.icon), {
7118
7139
  key: 0,
7119
7140
  class: v(N(d).e("item-icon"))
7120
- }, null, 8, ["class"])) : a("", !0), s("span", { class: v(N(d).e("item-label")) }, j(e.label), 3)], 10, ui))), 128))], 6));
7141
+ }, null, 8, ["class"])) : a("", !0), s("span", { class: v(N(d).e("item-label")) }, j(e.label), 3)], 10, li))), 128))], 6));
7121
7142
  }
7122
- })), fi = {
7143
+ })), di = {
7123
7144
  data: {
7124
7145
  type: Array,
7125
7146
  default: () => []
@@ -7195,7 +7216,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7195
7216
  type: Function,
7196
7217
  default: void 0
7197
7218
  }
7198
- }, pi = {
7219
+ }, fi = {
7199
7220
  "sort-change": (e) => !0,
7200
7221
  "row-click": (e, t, n) => !0,
7201
7222
  "selection-change": (e) => !0,
@@ -7203,11 +7224,11 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7203
7224
  select: (e, t) => !0,
7204
7225
  "current-change": (e, t) => !0,
7205
7226
  "expand-change": (e, t) => !0
7206
- }, mi = { style: { display: "none" } }, hi = ["onClick"], gi = ["onClick"], _i = ["onClick"], vi = ["onClick"], yi = ["colspan"], bi = ["colspan"], xi = $(/* @__PURE__ */ d({
7227
+ }, pi = { style: { display: "none" } }, mi = ["onClick"], hi = ["onClick"], gi = ["onClick"], _i = ["onClick"], vi = ["colspan"], yi = ["colspan"], bi = $(/* @__PURE__ */ d({
7207
7228
  name: `${X}Table`,
7208
7229
  __name: "table",
7209
- props: fi,
7210
- emits: pi,
7230
+ props: di,
7231
+ emits: fi,
7211
7232
  setup(t, { expose: d, emit: f }) {
7212
7233
  let p = t, m = f, h = Y("table"), g = T([]), _ = 0;
7213
7234
  C(Q, {
@@ -7345,7 +7366,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7345
7366
  "--cp-table-row-hover-bg": `color-mix(in srgb, ${p.color} 6%, transparent)`,
7346
7367
  "--cp-table-row-current-bg": `color-mix(in srgb, ${p.color} 10%, transparent)`,
7347
7368
  "--cp-table-row-selected-bg": `color-mix(in srgb, ${p.color} 8%, transparent)`
7348
- } : {}), me = r(() => p.color || p.type === "default" ? void 0 : p.type), he = r(() => p.color || void 0), ge = r(() => {
7369
+ } : {}), me = r(() => p.color || p.type === "default" ? void 0 : p.type), ge = r(() => p.color || void 0), _e = r(() => {
7349
7370
  let e = {};
7350
7371
  return p.height && (e.height = typeof p.height == "number" ? `${p.height}px` : p.height, e["overflow-y"] = "auto"), p.maxHeight && (e["max-height"] = typeof p.maxHeight == "number" ? `${p.maxHeight}px` : p.maxHeight, e["overflow-y"] = "auto"), e;
7351
7372
  }), ve = (e) => {
@@ -7375,7 +7396,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7375
7396
  class: v(de.value),
7376
7397
  style: y(pe.value)
7377
7398
  }, [
7378
- s("div", mi, [O(t.$slots, "default")]),
7399
+ s("div", pi, [O(t.$slots, "default")]),
7379
7400
  s("div", { class: v(N(h).e("wrapper")) }, [s("table", { class: v(N(h).e("inner")) }, [t.showHeader ? (S(), o("thead", {
7380
7401
  key: 0,
7381
7402
  class: v(N(h).e("header"))
@@ -7389,12 +7410,12 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7389
7410
  ]),
7390
7411
  style: y(ve(t)),
7391
7412
  onClick: (e) => t.sortable ? w(t) : void 0
7392
- }, [t.columnType === "selection" ? (S(), i(vn, {
7413
+ }, [t.columnType === "selection" ? (S(), i(_n, {
7393
7414
  key: 0,
7394
7415
  "model-value": P.value,
7395
7416
  indeterminate: F.value,
7396
7417
  type: me.value,
7397
- color: he.value,
7418
+ color: ge.value,
7398
7419
  onChange: L,
7399
7420
  onClick: r[0] ||= U(() => {}, ["stop"])
7400
7421
  }, null, 8, [
@@ -7435,9 +7456,9 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7435
7456
  }, [...r[3] ||= [s("path", {
7436
7457
  d: "M4 5L0 0h8z",
7437
7458
  fill: "currentColor"
7438
- }, null, -1)]], 2))], 2)) : a("", !0)], 64))], 14, hi))), 128))], 2)], 2)) : a("", !0), s("tbody", {
7459
+ }, null, -1)]], 2))], 2)) : a("", !0)], 64))], 14, mi))), 128))], 2)], 2)) : a("", !0), s("tbody", {
7439
7460
  class: v(N(h).e("body")),
7440
- style: y(ge.value)
7461
+ style: y(_e.value)
7441
7462
  }, [$.value.length > 0 ? (S(!0), o(e, { key: 0 }, D($.value, (n, c) => (S(), o(e, { key: H(n, c) }, [s("tr", {
7442
7463
  class: v([
7443
7464
  N(h).e("row"),
@@ -7451,11 +7472,11 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7451
7472
  key: u.id,
7452
7473
  class: v([N(h).e("cell"), be(u.align)]),
7453
7474
  style: y(ve(u))
7454
- }, [u.columnType === "selection" ? (S(), i(vn, {
7475
+ }, [u.columnType === "selection" ? (S(), i(_n, {
7455
7476
  key: 0,
7456
7477
  "model-value": M.value.has(n),
7457
7478
  type: me.value,
7458
- color: he.value,
7479
+ color: ge.value,
7459
7480
  onChange: (e) => I(n),
7460
7481
  onClick: r[1] ||= U(() => {}, ["stop"])
7461
7482
  }, null, 8, [
@@ -7472,7 +7493,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7472
7493
  width: "14",
7473
7494
  height: "14",
7474
7495
  fill: "currentColor"
7475
- }, [s("path", { d: "M6 3l5 5-5 5V3z" })], -1)]], 10, _i)) : a("", !0)], 64)) : u.columnType === "index" ? (S(), o(e, { key: 2 }, [l(j(c + 1), 1)], 64)) : G.value && ae(u) ? (S(), o("div", {
7496
+ }, [s("path", { d: "M6 3l5 5-5 5V3z" })], -1)]], 10, gi)) : a("", !0)], 64)) : u.columnType === "index" ? (S(), o(e, { key: 2 }, [l(j(c + 1), 1)], 64)) : G.value && ae(u) ? (S(), o("div", {
7476
7497
  key: 3,
7477
7498
  class: v(N(h).e("tree-cell"))
7478
7499
  }, [
@@ -7490,7 +7511,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7490
7511
  width: "14",
7491
7512
  height: "14",
7492
7513
  fill: "currentColor"
7493
- }, [s("path", { d: "M6 3l5 5-5 5V3z" })], -1)]], 10, vi)) : (S(), o("span", {
7514
+ }, [s("path", { d: "M6 3l5 5-5 5V3z" })], -1)]], 10, _i)) : (S(), o("span", {
7494
7515
  key: 2,
7495
7516
  class: v(N(h).e("expand-placeholder"))
7496
7517
  }, null, 2)),
@@ -7503,7 +7524,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7503
7524
  row: n,
7504
7525
  column: u,
7505
7526
  $index: c
7506
- }) }), { key: 4 })) : (S(), o(e, { key: 5 }, [l(j(ye(n, u)), 1)], 64))], 6))), 128))], 10, gi), se.value && le(n) ? (S(), o("tr", {
7527
+ }) }), { key: 4 })) : (S(), o(e, { key: 5 }, [l(j(ye(n, u)), 1)], 64))], 6))), 128))], 10, hi), se.value && le(n) ? (S(), o("tr", {
7507
7528
  key: 0,
7508
7529
  class: v(N(h).e("expanded-row"))
7509
7530
  }, [s("td", {
@@ -7512,7 +7533,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7512
7533
  }, [s("div", { class: v(N(h).e("expanded-content")) }, [se.value?.slots.default ? (S(), i(A({ render: () => se.value.slots.default({
7513
7534
  row: n,
7514
7535
  $index: c
7515
- }) }), { key: 0 })) : a("", !0)], 2)], 10, yi)], 2)) : a("", !0)], 64))), 128)) : (S(), o("tr", {
7536
+ }) }), { key: 0 })) : a("", !0)], 2)], 10, vi)], 2)) : a("", !0)], 64))), 128)) : (S(), o("tr", {
7516
7537
  key: 1,
7517
7538
  class: v(N(h).e("empty-row"))
7518
7539
  }, [s("td", {
@@ -7526,12 +7547,12 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7526
7547
  fill: "none",
7527
7548
  stroke: "currentColor",
7528
7549
  "stroke-width": "1.5"
7529
- }, [...r[6] ||= [c("<rect x=\"8\" y=\"12\" width=\"48\" height=\"40\" rx=\"2\"></rect><line x1=\"8\" y1=\"24\" x2=\"56\" y2=\"24\"></line><line x1=\"24\" y1=\"24\" x2=\"24\" y2=\"52\"></line><line x1=\"40\" y1=\"24\" x2=\"40\" y2=\"52\"></line><line x1=\"8\" y1=\"36\" x2=\"56\" y2=\"36\"></line>", 5)]], 2)), s("span", { class: v(N(h).e("empty-text")) }, j(t.emptyText), 3)], 2)])], 10, bi)], 2))], 6)], 2)], 2),
7550
+ }, [...r[6] ||= [c("<rect x=\"8\" y=\"12\" width=\"48\" height=\"40\" rx=\"2\"></rect><line x1=\"8\" y1=\"24\" x2=\"56\" y2=\"24\"></line><line x1=\"24\" y1=\"24\" x2=\"24\" y2=\"52\"></line><line x1=\"40\" y1=\"24\" x2=\"40\" y2=\"52\"></line><line x1=\"8\" y1=\"36\" x2=\"56\" y2=\"36\"></line>", 5)]], 2)), s("span", { class: v(N(h).e("empty-text")) }, j(t.emptyText), 3)], 2)])], 10, yi)], 2))], 6)], 2)], 2),
7530
7551
  u(n, { name: "cp-table-loading" }, {
7531
7552
  default: B(() => [t.loading ? (S(), o("div", {
7532
7553
  key: 0,
7533
7554
  class: v(N(h).e("loading-overlay"))
7534
- }, [O(t.$slots, "loading", {}, () => [u(N(_e), { color: fe.value || void 0 }, null, 8, ["color"]), t.loadingText ? (S(), o("span", {
7555
+ }, [O(t.$slots, "loading", {}, () => [u(N(he), { color: fe.value || void 0 }, null, 8, ["color"]), t.loadingText ? (S(), o("span", {
7535
7556
  key: 0,
7536
7557
  class: v(N(h).e("loading-text"))
7537
7558
  }, j(t.loadingText), 3)) : a("", !0)])], 2)) : a("", !0)]),
@@ -7539,7 +7560,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7539
7560
  })
7540
7561
  ], 6));
7541
7562
  }
7542
- })), Si = {
7563
+ })), xi = {
7543
7564
  type: {
7544
7565
  type: String,
7545
7566
  default: "default"
@@ -7566,10 +7587,10 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7566
7587
  type: String,
7567
7588
  default: ""
7568
7589
  }
7569
- }, Ci = $(/* @__PURE__ */ d({
7590
+ }, Si = $(/* @__PURE__ */ d({
7570
7591
  name: `${X}TableColumn`,
7571
7592
  __name: "table-column",
7572
- props: Si,
7593
+ props: xi,
7573
7594
  setup(e) {
7574
7595
  let t = e, n = F(), r = m(Q, null), i = "";
7575
7596
  return x(() => {
@@ -7591,7 +7612,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7591
7612
  r && i && r.unregisterColumn(i);
7592
7613
  }), (e, t) => null;
7593
7614
  }
7594
- })), wi = {
7615
+ })), Ci = {
7595
7616
  model: {
7596
7617
  type: Object,
7597
7618
  default: void 0
@@ -7640,10 +7661,10 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7640
7661
  type: String,
7641
7662
  default: "center"
7642
7663
  }
7643
- }, Ti = $(/* @__PURE__ */ d({
7664
+ }, wi = $(/* @__PURE__ */ d({
7644
7665
  name: `${X}Form`,
7645
7666
  __name: "form",
7646
- props: wi,
7667
+ props: Ci,
7647
7668
  setup(e, { expose: t }) {
7648
7669
  let n = e, i = Y("form"), a = [], s = (e) => {
7649
7670
  a.push(e);
@@ -7662,7 +7683,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7662
7683
  let e = {};
7663
7684
  return l.value && (e["--cp-form-label-width"] = l.value), e;
7664
7685
  });
7665
- return C(Se, {
7686
+ return C(be, {
7666
7687
  model: M(n, "model"),
7667
7688
  rules: M(n, "rules"),
7668
7689
  labelWidth: M(n, "labelWidth"),
@@ -7694,7 +7715,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7694
7715
  onSubmit: t[0] ||= U(() => {}, ["prevent"])
7695
7716
  }, [O(e.$slots, "default")], 38));
7696
7717
  }
7697
- })), Ei = {
7718
+ })), Ti = {
7698
7719
  label: {
7699
7720
  type: String,
7700
7721
  default: ""
@@ -7735,12 +7756,12 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7735
7756
  type: String,
7736
7757
  default: void 0
7737
7758
  }
7738
- }, Di = { key: 0 }, Oi = 80, ki = $(/* @__PURE__ */ d({
7759
+ }, Ei = { key: 0 }, Di = 80, Oi = $(/* @__PURE__ */ d({
7739
7760
  name: `${X}FormItem`,
7740
7761
  __name: "form-item",
7741
- props: Ei,
7762
+ props: Ti,
7742
7763
  setup(e, { expose: t }) {
7743
- let n = e, i = Y("form-item"), c = m(Se, void 0), u = T(""), d = T(""), f;
7764
+ let n = e, i = Y("form-item"), c = m(be, void 0), u = T(""), d = T(""), f;
7744
7765
  x(() => {
7745
7766
  n.prop && c && (c.model.value && (f = p(c.model.value[n.prop])), c.addField(K)), _(() => z());
7746
7767
  }), b(() => {
@@ -7763,9 +7784,9 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7763
7784
  if (e !== "auto") return typeof e == "number" ? `${e}px` : e;
7764
7785
  }), A = r(() => n.labelVerticalAlign ?? c?.labelVerticalAlign.value ?? "center"), M = T(null), P = T(!1), F = null;
7765
7786
  function I() {
7766
- if (!M.value) return Oi;
7787
+ if (!M.value) return Di;
7767
7788
  let e = getComputedStyle(M.value).getPropertyValue("--cp-form-label-auto-threshold").trim();
7768
- return e && parseFloat(e) || Oi;
7789
+ return e && parseFloat(e) || Di;
7769
7790
  }
7770
7791
  function L() {
7771
7792
  if (A.value !== "auto" || !M.value) {
@@ -7847,9 +7868,9 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7847
7868
  ref_key: "contentRef",
7848
7869
  ref: M,
7849
7870
  class: v(N(i).e("content"))
7850
- }, [O(e.$slots, "default"), s("div", { class: v([N(i).e("error"), H.value && g.value ? "is-active" : ""]) }, [O(e.$slots, "error", { error: V.value }, () => [H.value && g.value ? (S(), o("span", Di, j(V.value), 1)) : a("", !0)])], 2)], 2)], 2));
7871
+ }, [O(e.$slots, "default"), s("div", { class: v([N(i).e("error"), H.value && g.value ? "is-active" : ""]) }, [O(e.$slots, "error", { error: V.value }, () => [H.value && g.value ? (S(), o("span", Ei, j(V.value), 1)) : a("", !0)])], 2)], 2)], 2));
7851
7872
  }
7852
- })), Ai = {
7873
+ })), ki = {
7853
7874
  separator: {
7854
7875
  type: String,
7855
7876
  default: "/"
@@ -7870,10 +7891,10 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7870
7891
  type: String,
7871
7892
  default: ""
7872
7893
  }
7873
- }, ji = Symbol("breadcrumb"), Mi = $(/* @__PURE__ */ d({
7894
+ }, Ai = Symbol("breadcrumb"), ji = $(/* @__PURE__ */ d({
7874
7895
  name: `${X}Breadcrumb`,
7875
7896
  __name: "breadcrumb",
7876
- props: Ai,
7897
+ props: ki,
7877
7898
  setup(e) {
7878
7899
  let t = e, n = Y("breadcrumb"), i = {
7879
7900
  primary: "var(--cp-color-primary)",
@@ -7882,7 +7903,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7882
7903
  error: "var(--cp-color-error)",
7883
7904
  info: "var(--cp-color-info)"
7884
7905
  };
7885
- C(ji, {
7906
+ C(Ai, {
7886
7907
  separator: t.separator,
7887
7908
  separatorIcon: t.separatorIcon
7888
7909
  });
@@ -7901,7 +7922,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7901
7922
  "aria-label": "Breadcrumb"
7902
7923
  }, [s("ol", { class: v(N(n).e("list")) }, [O(e.$slots, "default")], 2)], 6));
7903
7924
  }
7904
- })), Ni = {
7925
+ })), Mi = {
7905
7926
  to: {
7906
7927
  type: [String, Object],
7907
7928
  default: ""
@@ -7910,12 +7931,12 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7910
7931
  type: Boolean,
7911
7932
  default: !1
7912
7933
  }
7913
- }, Pi = $(/* @__PURE__ */ d({
7934
+ }, Ni = $(/* @__PURE__ */ d({
7914
7935
  name: `${X}BreadcrumbItem`,
7915
7936
  __name: "breadcrumb-item",
7916
- props: Ni,
7937
+ props: Mi,
7917
7938
  setup(t) {
7918
- let n = t, a = Y("breadcrumb"), c = m(ji, { separator: "/" }), u = r(() => !!n.to), d = f(), p = () => {
7939
+ let n = t, a = Y("breadcrumb"), c = m(Ai, { separator: "/" }), u = r(() => !!n.to), d = f(), p = () => {
7919
7940
  if (!n.to) return;
7920
7941
  let e = d?.appContext.config.globalProperties.$router;
7921
7942
  e && (n.replace ? e.replace(n.to) : e.push(n.to));
@@ -7932,7 +7953,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
7932
7953
  class: v(N(a).e("separator-icon"))
7933
7954
  }, null, 8, ["class"])) : (S(), o(e, { key: 1 }, [l(j(N(c).separator), 1)], 64))])], 2)], 2));
7934
7955
  }
7935
- })), Fi = {
7956
+ })), Pi = {
7936
7957
  modelValue: {
7937
7958
  type: Array,
7938
7959
  default: () => []
@@ -8061,24 +8082,24 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8061
8082
  type: String,
8062
8083
  default: void 0
8063
8084
  }
8064
- }, Ii = {
8085
+ }, Fi = {
8065
8086
  "update:modelValue": (e) => Array.isArray(e),
8066
8087
  change: (e, t) => e && Array.isArray(t),
8067
8088
  success: (e, t, n) => t && Array.isArray(n),
8068
8089
  error: (e, t, n) => e instanceof Error && !!t,
8069
8090
  progress: (e, t) => typeof e == "number" && !!t,
8070
8091
  remove: (e, t) => e && Array.isArray(t)
8071
- }, Li = [
8092
+ }, Ii = [
8072
8093
  "accept",
8073
8094
  "multiple",
8074
8095
  "disabled"
8075
- ], Ri = {
8096
+ ], Li = {
8076
8097
  key: 1,
8077
8098
  viewBox: "0 0 24 24",
8078
8099
  fill: "none",
8079
8100
  stroke: "currentColor",
8080
8101
  "stroke-width": "1.5"
8081
- }, zi = {
8102
+ }, Ri = {
8082
8103
  key: 1,
8083
8104
  viewBox: "0 0 24 24",
8084
8105
  fill: "none",
@@ -8089,14 +8110,14 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8089
8110
  height: "14px",
8090
8111
  "margin-right": "4px"
8091
8112
  }
8092
- }, Bi = ["onClick"], Vi = ["onClick"], Hi = $(/* @__PURE__ */ d({
8113
+ }, zi = ["onClick"], Bi = ["onClick"], Vi = $(/* @__PURE__ */ d({
8093
8114
  name: `${X}Upload`,
8094
8115
  inheritAttrs: !1,
8095
8116
  __name: "upload",
8096
- props: Fi,
8097
- emits: Ii,
8117
+ props: Pi,
8118
+ emits: Fi,
8098
8119
  setup(t, { expose: n, emit: c }) {
8099
- let d = t, f = c, p = Y("upload"), h = m(Se, void 0), _ = T(), y = T(!1), b = 0, x = r(() => d.disabled || h?.disabled.value || !1), C = {
8120
+ let d = t, f = c, p = Y("upload"), h = m(be, void 0), _ = T(), y = T(!1), b = 0, x = r(() => d.disabled || h?.disabled.value || !1), C = {
8100
8121
  default: "",
8101
8122
  primary: "var(--cp-color-primary)",
8102
8123
  success: "var(--cp-color-success)",
@@ -8289,7 +8310,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8289
8310
  accept: t.accept,
8290
8311
  multiple: t.multiple || t.directory,
8291
8312
  disabled: x.value
8292
- }, t.directory ? { webkitdirectory: "" } : {}, { onChange: J }), null, 16, Li),
8313
+ }, t.directory ? { webkitdirectory: "" } : {}, { onChange: J }), null, 16, Ii),
8293
8314
  s("div", {
8294
8315
  class: v([N(p).e("trigger"), t.drag && N(p).e("dragger")]),
8295
8316
  onClick: q,
@@ -8325,7 +8346,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8325
8346
  }, j(t.placeholder), 3)) : (S(), o("span", {
8326
8347
  key: 3,
8327
8348
  class: v(N(p).e("drag-text"))
8328
- }, [n[5] ||= l("拖拽文件到此处,或 ", -1), u(N(St), {
8349
+ }, [n[5] ||= l("拖拽文件到此处,或 ", -1), u(N(xt), {
8329
8350
  underline: "",
8330
8351
  type: d.type === "default" ? "primary" : d.type,
8331
8352
  color: d.color
@@ -8340,7 +8361,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8340
8361
  N(p).is(L.value.status, !0)
8341
8362
  ])
8342
8363
  }, [
8343
- H(L.value) ? (S(), i(N(Ft), {
8364
+ H(L.value) ? (S(), i(N(Pt), {
8344
8365
  key: 0,
8345
8366
  src: W(L.value),
8346
8367
  fit: "cover",
@@ -8352,7 +8373,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8352
8373
  L.value.status === "uploading" ? (S(), o("div", {
8353
8374
  key: 1,
8354
8375
  class: v(N(p).e("card-progress"))
8355
- }, [u(N(nt), {
8376
+ }, [u(N(et), {
8356
8377
  type: "circle",
8357
8378
  percentage: L.value.percentage,
8358
8379
  width: 60,
@@ -8371,7 +8392,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8371
8392
  handlePreview: oe,
8372
8393
  handleReplace: q
8373
8394
  }, () => [
8374
- d.preview ? (S(), i(N(Te), {
8395
+ d.preview ? (S(), i(N(Ce), {
8375
8396
  key: 0,
8376
8397
  variant: "semi",
8377
8398
  dimmed: "",
@@ -8416,7 +8437,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8416
8437
  ], -1)]]),
8417
8438
  _: 1
8418
8439
  }, 8, ["type", "color"])) : a("", !0),
8419
- u(N(Te), {
8440
+ u(N(Ce), {
8420
8441
  variant: "semi",
8421
8442
  dimmed: "",
8422
8443
  square: "",
@@ -8436,7 +8457,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8436
8457
  }, [s("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })], -1)]]),
8437
8458
  _: 1
8438
8459
  }, 8, ["type", "color"]),
8439
- u(N(Te), {
8460
+ u(N(Ce), {
8440
8461
  variant: "semi",
8441
8462
  dimmed: "",
8442
8463
  square: "",
@@ -8466,7 +8487,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8466
8487
  width: "28px",
8467
8488
  height: "28px"
8468
8489
  }
8469
- })) : (S(), o("svg", Ri, [...n[9] ||= [s("line", {
8490
+ })) : (S(), o("svg", Li, [...n[9] ||= [s("line", {
8470
8491
  x1: "12",
8471
8492
  y1: "5",
8472
8493
  x2: "12",
@@ -8479,7 +8500,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8479
8500
  }, null, -1)]])), t.placeholder ? (S(), o("span", {
8480
8501
  key: 2,
8481
8502
  class: v(N(p).e("card-trigger-text"))
8482
- }, j(t.placeholder), 3)) : a("", !0)])], 2))], 64)) : (S(), i(N(Te), {
8503
+ }, j(t.placeholder), 3)) : a("", !0)])], 2))], 64)) : (S(), i(N(Ce), {
8483
8504
  key: 2,
8484
8505
  disabled: x.value,
8485
8506
  variant: P.value,
@@ -8497,7 +8518,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8497
8518
  height: "14px",
8498
8519
  "margin-right": "4px"
8499
8520
  }
8500
- })) : (S(), o("svg", zi, [...n[10] ||= [
8521
+ })) : (S(), o("svg", Ri, [...n[10] ||= [
8501
8522
  s("polyline", { points: "16 16 12 12 8 16" }, null, -1),
8502
8523
  s("line", {
8503
8524
  x1: "12",
@@ -8522,7 +8543,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8522
8543
  key: e.uid,
8523
8544
  class: v([N(p).e("card"), N(p).is(e.status, !0)])
8524
8545
  }, [
8525
- H(e) ? (S(), i(N(Ft), {
8546
+ H(e) ? (S(), i(N(Pt), {
8526
8547
  key: 0,
8527
8548
  src: W(e),
8528
8549
  fit: "cover",
@@ -8542,7 +8563,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8542
8563
  e.status === "uploading" ? (S(), o("div", {
8543
8564
  key: 2,
8544
8565
  class: v(N(p).e("card-progress"))
8545
- }, [u(N(nt), {
8566
+ }, [u(N(et), {
8546
8567
  type: "circle",
8547
8568
  percentage: e.percentage,
8548
8569
  width: 60,
@@ -8560,7 +8581,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8560
8581
  handleRemove: Q,
8561
8582
  handlePreview: oe,
8562
8583
  handleReplace: q
8563
- }, () => [d.preview && H(e) ? (S(), i(N(Te), {
8584
+ }, () => [d.preview && H(e) ? (S(), i(N(Ce), {
8564
8585
  key: 0,
8565
8586
  variant: "semi",
8566
8587
  dimmed: "",
@@ -8608,7 +8629,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8608
8629
  "type",
8609
8630
  "color",
8610
8631
  "onClick"
8611
- ])) : a("", !0), u(N(Te), {
8632
+ ])) : a("", !0), u(N(Ce), {
8612
8633
  variant: "semi",
8613
8634
  dimmed: "",
8614
8635
  square: "",
@@ -8692,8 +8713,8 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8692
8713
  y1: "6",
8693
8714
  x2: "18",
8694
8715
  y2: "18"
8695
- })], -1)]], 10, Bi)
8696
- ], 2), e.status === "uploading" ? (S(), i(N(nt), {
8716
+ })], -1)]], 10, zi)
8717
+ ], 2), e.status === "uploading" ? (S(), i(N(et), {
8697
8718
  key: 0,
8698
8719
  percentage: e.percentage,
8699
8720
  "stroke-width": 3,
@@ -8715,7 +8736,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8715
8736
  N(p).is(e.status, !0)
8716
8737
  ])
8717
8738
  }, [
8718
- s("div", { class: v(N(p).e("thumbnail")) }, [H(e) ? (S(), i(N(Ft), {
8739
+ s("div", { class: v(N(p).e("thumbnail")) }, [H(e) ? (S(), i(N(Pt), {
8719
8740
  key: 0,
8720
8741
  src: W(e),
8721
8742
  fit: "cover",
@@ -8733,7 +8754,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8733
8754
  "stroke-width": "1.5"
8734
8755
  }, [s("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }), s("polyline", { points: "14 2 14 8 20 8" })], -1)]], 2))], 2),
8735
8756
  s("div", { class: v(N(p).e("item-info")) }, [s("span", { class: v(N(p).e("file-name")) }, j(e.name), 3), s("span", { class: v(N(p).e("file-size")) }, j(se(e.size)), 3)], 2),
8736
- e.status === "uploading" ? (S(), i(N(nt), {
8757
+ e.status === "uploading" ? (S(), i(N(et), {
8737
8758
  key: 0,
8738
8759
  percentage: e.percentage,
8739
8760
  "stroke-width": 3,
@@ -8790,9 +8811,9 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8790
8811
  y1: "6",
8791
8812
  x2: "18",
8792
8813
  y2: "18"
8793
- })], -1)]], 10, Vi)], 2)
8814
+ })], -1)]], 10, Bi)], 2)
8794
8815
  ], 2))), 128)) : a("", !0)], 2)) : a("", !0)
8795
- ], 16), d.preview ? (S(), i(N(It), {
8816
+ ], 16), d.preview ? (S(), i(N(Ft), {
8796
8817
  key: 0,
8797
8818
  modelValue: $.value,
8798
8819
  "onUpdate:modelValue": n[2] ||= (e) => $.value = e,
@@ -8810,7 +8831,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8810
8831
  "download"
8811
8832
  ])) : a("", !0)], 64));
8812
8833
  }
8813
- })), Ui = {
8834
+ })), Hi = {
8814
8835
  title: {
8815
8836
  type: String,
8816
8837
  default: "暂无数据"
@@ -8839,15 +8860,15 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8839
8860
  type: String,
8840
8861
  default: ""
8841
8862
  }
8842
- }, Wi = {
8863
+ }, Ui = {
8843
8864
  key: 1,
8844
8865
  xmlns: "http://www.w3.org/2000/svg",
8845
8866
  viewBox: "0 0 64 64",
8846
8867
  fill: "none"
8847
- }, Gi = $(/* @__PURE__ */ d({
8868
+ }, Wi = $(/* @__PURE__ */ d({
8848
8869
  name: `${X}Empty`,
8849
8870
  __name: "empty",
8850
- props: Ui,
8871
+ props: Hi,
8851
8872
  setup(e) {
8852
8873
  let t = e, n = F(), u = Y("empty"), d = r(() => [
8853
8874
  u.b(),
@@ -8861,7 +8882,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8861
8882
  class: v(d.value),
8862
8883
  style: y(f.value)
8863
8884
  }, [s("div", { class: v(N(u).e("content")) }, [
8864
- s("div", { class: v(N(u).e("image")) }, [O(e.$slots, "icon", {}, () => [e.icon ? (S(), i(N(xe), {
8885
+ s("div", { class: v(N(u).e("image")) }, [O(e.$slots, "icon", {}, () => [e.icon ? (S(), i(N(ye), {
8865
8886
  key: 0,
8866
8887
  icon: e.icon,
8867
8888
  size: e.imageSize,
@@ -8870,7 +8891,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8870
8891
  "icon",
8871
8892
  "size",
8872
8893
  "color"
8873
- ])) : (S(), o("svg", Wi, [...t[0] ||= [c("<ellipse cx=\"32\" cy=\"56\" rx=\"20\" ry=\"4\" fill=\"currentColor\" fill-opacity=\"0.1\"></ellipse><path d=\"M10 20C10 17.7909 11.7909 16 14 16H24L28 20H50C52.2091 20 54 21.7909 54 24V48C54 50.2091 52.2091 52 50 52H14C11.7909 52 10 50.2091 10 48V20Z\" fill=\"currentColor\" fill-opacity=\"0.05\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linejoin=\"round\"></path><path d=\"M28 20V12C28 10.8954 28.8954 10 30 10H42L48 16V28\" fill=\"currentColor\" fill-opacity=\"0.1\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linejoin=\"round\"></path><path d=\"M42 10V16H48\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linejoin=\"round\"></path><line x1=\"33\" y1=\"18\" x2=\"43\" y2=\"18\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line><line x1=\"33\" y1=\"24\" x2=\"39\" y2=\"24\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line><path d=\"M12 30H52L54 52H10L12 30Z\" fill=\"currentColor\" fill-opacity=\"0.2\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linejoin=\"round\"></path>", 7)]]))])], 2),
8894
+ ])) : (S(), o("svg", Ui, [...t[0] ||= [c("<ellipse cx=\"32\" cy=\"56\" rx=\"20\" ry=\"4\" fill=\"currentColor\" fill-opacity=\"0.1\"></ellipse><path d=\"M10 20C10 17.7909 11.7909 16 14 16H24L28 20H50C52.2091 20 54 21.7909 54 24V48C54 50.2091 52.2091 52 50 52H14C11.7909 52 10 50.2091 10 48V20Z\" fill=\"currentColor\" fill-opacity=\"0.05\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linejoin=\"round\"></path><path d=\"M28 20V12C28 10.8954 28.8954 10 30 10H42L48 16V28\" fill=\"currentColor\" fill-opacity=\"0.1\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linejoin=\"round\"></path><path d=\"M42 10V16H48\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linejoin=\"round\"></path><line x1=\"33\" y1=\"18\" x2=\"43\" y2=\"18\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line><line x1=\"33\" y1=\"24\" x2=\"39\" y2=\"24\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line><path d=\"M12 30H52L54 52H10L12 30Z\" fill=\"currentColor\" fill-opacity=\"0.2\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linejoin=\"round\"></path>", 7)]]))])], 2),
8874
8895
  s("div", { class: v(N(u).e("title")) }, [O(e.$slots, "title", {}, () => [l(j(e.title), 1)])], 2),
8875
8896
  p.value ? (S(), o("div", {
8876
8897
  key: 0,
@@ -8882,7 +8903,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8882
8903
  }, [O(e.$slots, "default")], 2)) : a("", !0)
8883
8904
  ], 2)], 6));
8884
8905
  }
8885
- })), Ki = Symbol("cp-timeline-context"), qi = {
8906
+ })), Gi = Symbol("cp-timeline-context"), Ki = {
8886
8907
  mode: {
8887
8908
  type: String,
8888
8909
  default: "left"
@@ -8907,13 +8928,13 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8907
8928
  type: String,
8908
8929
  default: ""
8909
8930
  }
8910
- }, Ji = $(/* @__PURE__ */ d({
8931
+ }, qi = $(/* @__PURE__ */ d({
8911
8932
  name: `${X}Timeline`,
8912
8933
  __name: "timeline",
8913
- props: qi,
8934
+ props: Ki,
8914
8935
  setup(t) {
8915
8936
  let n = t, a = F(), s = Y("timeline");
8916
- C(Ki, {
8937
+ C(Gi, {
8917
8938
  mode: n.mode,
8918
8939
  type: n.type,
8919
8940
  color: n.color,
@@ -8930,7 +8951,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8930
8951
  });
8931
8952
  return (t, n) => (S(), o("ul", { class: v(c.value) }, [(S(!0), o(e, null, D(l.value, (e, t) => (S(), i(A(e), { key: t }))), 128))], 2));
8932
8953
  }
8933
- })), Yi = {
8954
+ })), Ji = {
8934
8955
  timestamp: {
8935
8956
  type: String,
8936
8957
  default: ""
@@ -8991,12 +9012,12 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
8991
9012
  type: String,
8992
9013
  default: ""
8993
9014
  }
8994
- }, Xi = $(/* @__PURE__ */ d({
9015
+ }, Yi = $(/* @__PURE__ */ d({
8995
9016
  name: `${X}TimelineItem`,
8996
9017
  __name: "timeline-item",
8997
- props: Yi,
9018
+ props: Ji,
8998
9019
  setup(t) {
8999
- let n = t, c = F(), u = Y("timeline"), d = m(Ki, void 0), f = r(() => n.type || d?.type || "default"), p = r(() => n.lineStyle || d?.lineStyle || "solid"), h = r(() => n.lineColor || d?.lineColor || ""), g = r(() => !n.hideTimestamp && (!!n.timestamp || !!c.timestamp)), _ = r(() => !!c.dot), b = r(() => !!c.extra), x = r(() => !!c.connector), C = r(() => [
9020
+ let n = t, c = F(), u = Y("timeline"), d = m(Gi, void 0), f = r(() => n.type || d?.type || "default"), p = r(() => n.lineStyle || d?.lineStyle || "solid"), h = r(() => n.lineColor || d?.lineColor || ""), g = r(() => !n.hideTimestamp && (!!n.timestamp || !!c.timestamp)), _ = r(() => !!c.dot), b = r(() => !!c.extra), x = r(() => !!c.connector), C = r(() => [
9000
9021
  u.e("item"),
9001
9022
  u.is(f.value, !0),
9002
9023
  u.is(n.size, !0),
@@ -9026,7 +9047,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
9026
9047
  }, [x.value ? O(t.$slots, "connector", { key: 0 }) : a("", !0)], 6),
9027
9048
  s("div", { class: v(N(u).e("item-dot")) }, [_.value ? O(t.$slots, "dot", { key: 0 }) : (S(), o(e, { key: 1 }, [
9028
9049
  s("span", { class: v(N(u).e("item-mask")) }, null, 2),
9029
- t.icon ? (S(), i(N(xe), {
9050
+ t.icon ? (S(), i(N(ye), {
9030
9051
  key: 0,
9031
9052
  icon: t.icon,
9032
9053
  class: v(N(u).e("item-icon"))
@@ -9056,7 +9077,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
9056
9077
  ], 2)
9057
9078
  ], 6));
9058
9079
  }
9059
- })), Zi = {
9080
+ })), Xi = {
9060
9081
  title: {
9061
9082
  type: String,
9062
9083
  default: ""
@@ -9109,10 +9130,10 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
9109
9130
  type: String,
9110
9131
  default: "center"
9111
9132
  }
9112
- }, Qi = { style: { display: "none" } }, $i = ["colspan"], ea = ["colspan"], ta = ["colspan"], na = 80, ra = $(/* @__PURE__ */ d({
9133
+ }, Zi = { style: { display: "none" } }, Qi = ["colspan"], $i = ["colspan"], ea = ["colspan"], ta = 80, na = $(/* @__PURE__ */ d({
9113
9134
  name: `${X}Descriptions`,
9114
9135
  __name: "descriptions",
9115
- props: Zi,
9136
+ props: Xi,
9116
9137
  setup(t) {
9117
9138
  let n = t, c = Y("descriptions"), u = {
9118
9139
  primary: "var(--cp-color-primary)",
@@ -9167,7 +9188,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
9167
9188
  F.value.set(e, !1);
9168
9189
  return;
9169
9190
  }
9170
- F.value.set(e, i.scrollHeight > na);
9191
+ F.value.set(e, i.scrollHeight > ta);
9171
9192
  }
9172
9193
  function B(e) {
9173
9194
  V(e);
@@ -9240,7 +9261,7 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
9240
9261
  class: v(m.value),
9241
9262
  style: y(h.value)
9242
9263
  }, [
9243
- s("div", Qi, [O(t.$slots, "default")]),
9264
+ s("div", Zi, [O(t.$slots, "default")]),
9244
9265
  t.title || t.extra || t.$slots.title || t.$slots.extra ? (S(), o("div", {
9245
9266
  key: 0,
9246
9267
  class: v(N(c).e("header"))
@@ -9260,22 +9281,22 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
9260
9281
  class: v(J(n)),
9261
9282
  style: y(X(n)),
9262
9283
  colspan: Z(n, t.items, r)
9263
- }, [n.slots.default ? (S(), i(A({ render: () => n.slots.default() }), { key: 0 })) : a("", !0)], 14, $i)], 64))), 128))], 2))), 128)) : (S(!0), o(e, { key: 1 }, D(p.value, (t, n) => (S(), o(e, { key: n }, [s("tr", { class: v([N(c).e("row"), N(c).e("label-row")]) }, [(S(!0), o(e, null, D(t.items, (n, r) => (S(), o("td", {
9284
+ }, [n.slots.default ? (S(), i(A({ render: () => n.slots.default() }), { key: 0 })) : a("", !0)], 14, Qi)], 64))), 128))], 2))), 128)) : (S(!0), o(e, { key: 1 }, D(p.value, (t, n) => (S(), o(e, { key: n }, [s("tr", { class: v([N(c).e("row"), N(c).e("label-row")]) }, [(S(!0), o(e, null, D(t.items, (n, r) => (S(), o("td", {
9264
9285
  key: n.id,
9265
9286
  class: v(K(n)),
9266
9287
  style: y(q(n)),
9267
9288
  colspan: Z(n, t.items, r)
9268
- }, [n.slots.label ? (S(), i(A({ render: () => n.slots.label() }), { key: 0 })) : (S(), o(e, { key: 1 }, [l(j(n.label), 1)], 64))], 14, ea))), 128))], 2), s("tr", { class: v([N(c).e("row"), N(c).e("content-row")]) }, [(S(!0), o(e, null, D(t.items, (e, n) => (S(), o("td", {
9289
+ }, [n.slots.label ? (S(), i(A({ render: () => n.slots.label() }), { key: 0 })) : (S(), o(e, { key: 1 }, [l(j(n.label), 1)], 64))], 14, $i))), 128))], 2), s("tr", { class: v([N(c).e("row"), N(c).e("content-row")]) }, [(S(!0), o(e, null, D(t.items, (e, n) => (S(), o("td", {
9269
9290
  key: e.id,
9270
9291
  ref_for: !0,
9271
9292
  ref: (t) => L(t, e.id),
9272
9293
  class: v(J(e)),
9273
9294
  style: y(X(e)),
9274
9295
  colspan: Z(e, t.items, n)
9275
- }, [e.slots.default ? (S(), i(A({ render: () => e.slots.default() }), { key: 0 })) : a("", !0)], 14, ta))), 128))], 2)], 64))), 128))])], 2)], 2)
9296
+ }, [e.slots.default ? (S(), i(A({ render: () => e.slots.default() }), { key: 0 })) : a("", !0)], 14, ea))), 128))], 2)], 64))), 128))])], 2)], 2)
9276
9297
  ], 6));
9277
9298
  }
9278
- })), ia = {
9299
+ })), ra = {
9279
9300
  label: {
9280
9301
  type: String,
9281
9302
  default: ""
@@ -9328,10 +9349,10 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
9328
9349
  type: String,
9329
9350
  default: ""
9330
9351
  }
9331
- }, aa = $(/* @__PURE__ */ d({
9352
+ }, ia = $(/* @__PURE__ */ d({
9332
9353
  name: `${X}DescriptionsItem`,
9333
9354
  __name: "descriptions-item",
9334
- props: ia,
9355
+ props: ra,
9335
9356
  setup(e) {
9336
9357
  let t = e, n = F(), r = m(te, void 0), i = "";
9337
9358
  return x(() => {
@@ -9360,4 +9381,4 @@ var Qr = $(Hr), $r = ie(Yr, "$notify"), ei = /* @__PURE__ */ d({
9360
9381
  }
9361
9382
  }));
9362
9383
  //#endregion
9363
- export { Vt as AVATAR_GROUP_INJECTION_KEY, ji as BREADCRUMB_INJECTION_KEY, mr as CpAside, Kt as CpAvatar, qt as CpAvatarGroup, Mn as CpBadge, Mi as CpBreadcrumb, Pi as CpBreadcrumbItem, Te as CpButton, ht as CpCard, yn as CpCheckbox, Sn as CpCheckboxGroup, Xn as CpCol, De as CpConfigProvider, ur as CpContainer, ra as CpDescriptions, aa as CpDescriptionsItem, Gn as CpDialog, Hn as CpDivider, pn as CpDropdown, Gi as CpEmpty, fr as CpFooter, Ti as CpForm, ki as CpFormItem, dr as CpHeader, xe as CpIcon, Ft as CpImage, It as CpImagePreview, Ne as CpInput, Ge as CpInputNumber, _e as CpLoading, pr as CpMain, yr as CpMenu, Cr as CpMenuItem, Ar as CpMenuItemGroup, ri as CpMenuNav, Qr as CpNotification, $r as CpNotify, si as CpPagination, rn as CpPatternBackground, tn as CpPopover, nt as CpProgress, Dn as CpRadio, An as CpRadioGroup, Jn as CpRow, di as CpSegmented, Je as CpSlider, Zt as CpSpacer, wt as CpStatusIndicator, Or as CpSubMenu, ft as CpSwitch, xi as CpTable, Ci as CpTableColumn, yt as CpTag, St as CpText, Le as CpTextarea, Ji as CpTimeline, Xi as CpTimelineItem, zn as CpTree, Hi as CpUpload, Ki as TIMELINE_CONTEXT_KEY, rr as asideProps, Rt as avatarEmits, Bt as avatarGroupProps, Lt as avatarProps, zt as avatarSizeMap, jn as badgeProps, Ni as breadcrumbItemProps, Ai as breadcrumbProps, oe as buttonEmits, ae as buttonProps, pt as cardProps, hn as checkboxEmits, gn as checkboxGroupContextKey, xn as checkboxGroupEmits, bn as checkboxGroupProps, mn as checkboxProps, Yn as colProps, Ee as configProviderProps, $n as containerProps, ia as descriptionsItemProps, Zi as descriptionsProps, Wn as dialogEmits, Un as dialogProps, Bn as dividerProps, on as dropdownEmits, an as dropdownProps, Ui as emptyProps, tr as footerProps, Se as formContextKey, Ei as formItemProps, wi as formProps, er as headerProps, ve as iconProps, Et as imageEmits, Ot as imagePreviewEmits, Dt as imagePreviewProps, Tt as imageProps, ke as inputEmits, ze as inputNumberEmits, Re as inputNumberProps, Oe as inputProps, se as loadingProps, nr as mainProps, _r as menuContextKey, gr as menuEmits, xr as menuItemEmits, kr as menuItemGroupProps, br as menuItemProps, ni as menuNavEmits, ti as menuNavProps, hr as menuProps, Nr as notificationEmits, Mr as notificationProps, jr as notificationTypes, ai as paginationEmits, ii as paginationProps, nn as patternBackgroundProps, $t as popoverEmits, Qt as popoverProps, Ye as progressProps, wn as radioEmits, Tn as radioGroupContextKey, kn as radioGroupEmits, On as radioGroupProps, Cn as radioProps, qn as rowContextKey, Kn as rowProps, li as segmentedEmits, ci as segmentedProps, qe as sliderEmits, Ke as sliderProps, Xt as spacerProps, Ct as statusIndicatorProps, vr as subMenuContextKey, wr as subMenuProps, it as switchEmits, rt as switchProps, Si as tableColumnProps, pi as tableEmits, fi as tableProps, _t as tagEmits, gt as tagProps, bt as textProps, Fe as textareaEmits, Pe as textareaProps, Yi as timelineItemProps, qi as timelineProps, Pn as treeEmits, Nn as treeProps, Ii as uploadEmits, Fi as uploadProps };
9384
+ export { Bt as AVATAR_GROUP_INJECTION_KEY, Ai as BREADCRUMB_INJECTION_KEY, pr as CpAside, Gt as CpAvatar, Kt as CpAvatarGroup, jn as CpBadge, ji as CpBreadcrumb, Ni as CpBreadcrumbItem, Ce as CpButton, mt as CpCard, vn as CpCheckbox, xn as CpCheckboxGroup, Yn as CpCol, Te as CpConfigProvider, lr as CpContainer, na as CpDescriptions, ia as CpDescriptionsItem, Wn as CpDialog, Vn as CpDivider, fn as CpDropdown, Wi as CpEmpty, dr as CpFooter, wi as CpForm, Oi as CpFormItem, ur as CpHeader, ye as CpIcon, Pt as CpImage, Ft as CpImagePreview, je as CpInput, Ue as CpInputNumber, he as CpLoading, fr as CpMain, vr as CpMenu, Sr as CpMenuItem, kr as CpMenuItemGroup, ni as CpMenuNav, Zr as CpNotification, Qr as CpNotify, oi as CpPagination, nn as CpPatternBackground, en as CpPopover, et as CpProgress, En as CpRadio, kn as CpRadioGroup, qn as CpRow, ui as CpSegmented, Ke as CpSlider, Xt as CpSpacer, Ct as CpStatusIndicator, Dr as CpSubMenu, ut as CpSwitch, bi as CpTable, Si as CpTableColumn, vt as CpTag, xt as CpText, Fe as CpTextarea, qi as CpTimeline, Yi as CpTimelineItem, Rn as CpTree, Vi as CpUpload, Gi as TIMELINE_CONTEXT_KEY, nr as asideProps, Lt as avatarEmits, zt as avatarGroupProps, It as avatarProps, Rt as avatarSizeMap, An as badgeProps, Mi as breadcrumbItemProps, ki as breadcrumbProps, oe as buttonEmits, ae as buttonProps, ft as cardEmits, dt as cardProps, mn as checkboxEmits, hn as checkboxGroupContextKey, bn as checkboxGroupEmits, yn as checkboxGroupProps, pn as checkboxProps, Jn as colProps, we as configProviderProps, Qn as containerProps, ra as descriptionsItemProps, Xi as descriptionsProps, Un as dialogEmits, Hn as dialogProps, zn as dividerProps, an as dropdownEmits, rn as dropdownProps, Hi as emptyProps, er as footerProps, be as formContextKey, Ti as formItemProps, Ci as formProps, $n as headerProps, ge as iconProps, Tt as imageEmits, Dt as imagePreviewEmits, Et as imagePreviewProps, wt as imageProps, De as inputEmits, Le as inputNumberEmits, Ie as inputNumberProps, Ee as inputProps, se as loadingProps, tr as mainProps, gr as menuContextKey, hr as menuEmits, br as menuItemEmits, Or as menuItemGroupProps, yr as menuItemProps, ti as menuNavEmits, ei as menuNavProps, mr as menuProps, Mr as notificationEmits, jr as notificationProps, Ar as notificationTypes, ii as paginationEmits, ri as paginationProps, tn as patternBackgroundProps, Qt as popoverEmits, Zt as popoverProps, qe as progressProps, Cn as radioEmits, wn as radioGroupContextKey, On as radioGroupEmits, Dn as radioGroupProps, Sn as radioProps, Kn as rowContextKey, Gn as rowProps, ci as segmentedEmits, si as segmentedProps, Ge as sliderEmits, We as sliderProps, Yt as spacerProps, St as statusIndicatorProps, _r as subMenuContextKey, Cr as subMenuProps, nt as switchEmits, tt as switchProps, xi as tableColumnProps, fi as tableEmits, di as tableProps, gt as tagEmits, ht as tagProps, yt as textProps, Ne as textareaEmits, Me as textareaProps, Ji as timelineItemProps, Ki as timelineProps, Nn as treeEmits, Mn as treeProps, Fi as uploadEmits, Pi as uploadProps };