@cregis/ui 0.2.6 → 0.2.7

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.
@@ -1,9 +1,6 @@
1
- import { defineComponent as G, useSlots as ur, computed as h, createElementBlock as O, openBlock as y, createElementVNode as D, createCommentVNode as q, mergeProps as xe, createBlock as Me, resolveDynamicComponent as Ft, normalizeStyle as ie, renderSlot as Y, normalizeClass as L, toDisplayString as j, unref as ae, ref as I, watch as J, withDirectives as Le, vModelDynamic as dr, withModifiers as fr, vModelText as pr, createVNode as X, withCtx as Z, createTextVNode as $e, nextTick as Ke, reactive as je, provide as Ht, toRef as vr, Fragment as lt, renderList as ct, inject as qt, onMounted as et, onUnmounted as Ve, onBeforeUnmount as Ut, Transition as vt, render as Qe, h as Yt, toHandlers as Vt, vShow as mt } from "vue";
1
+ import { defineComponent as G, useSlots as ur, ref as I, computed as h, createElementBlock as O, openBlock as y, normalizeClass as L, createElementVNode as R, createCommentVNode as q, mergeProps as we, createBlock as Me, resolveDynamicComponent as Ft, normalizeStyle as ie, renderSlot as Y, toDisplayString as j, unref as ae, watch as J, withDirectives as Le, vModelDynamic as dr, withModifiers as fr, vModelText as pr, createVNode as X, withCtx as Z, createTextVNode as ke, nextTick as Ke, reactive as je, provide as Ht, toRef as vr, Fragment as lt, renderList as ct, inject as qt, onMounted as et, onUnmounted as Ve, onBeforeUnmount as Ut, Transition as vt, render as Qe, h as Yt, toHandlers as Vt, vShow as mt } from "vue";
2
2
  import { EdsLoad as mr, EdsCloseCircleFill as gr, EdsWarningFill as hr, EdsSearch as Xt, EdsArrowDownMiniIos as Kt, EdsArrowRightMiniIos as br } from "@cregis/icon";
3
- const yr = {
4
- key: 0,
5
- class: "cregis-button__icon-wrapper"
6
- }, wr = ["disabled"], xr = ["disabled"], Or = ["disabled"], Ye = /* @__PURE__ */ G({
3
+ const yr = ["disabled"], xr = ["disabled"], wr = ["disabled"], Ye = /* @__PURE__ */ G({
7
4
  name: "Button",
8
5
  inheritAttrs: !1,
9
6
  __name: "Button",
@@ -24,10 +21,14 @@ const yr = {
24
21
  isActive: { type: Boolean }
25
22
  },
26
23
  setup(e) {
27
- const t = e, r = ur(), n = h(() => {
28
- const s = t, u = r.icon;
29
- return !s.icon && typeof u == "function";
30
- }), a = h(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), i = h(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), l = h(() => t.width ? { width: t.width } : void 0), o = h(() => {
24
+ const t = e, r = ur(), n = I(null);
25
+ function a() {
26
+ t.disabled || t.loading || n.value?.click();
27
+ }
28
+ const i = h(() => {
29
+ const c = t, x = r.icon;
30
+ return !c.icon && typeof x == "function";
31
+ }), l = h(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), o = h(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), s = h(() => t.width ? { width: t.width } : void 0), u = h(() => {
31
32
  if (t.plain || t.text)
32
33
  switch (t.type) {
33
34
  case "primary":
@@ -44,12 +45,18 @@ const yr = {
44
45
  else
45
46
  return t.type === "secondary" ? "var(--material-foreground-base-secondary)" : t.type === "foreground" ? "var(--text-face-primary)" : t.type === "sameWhite" ? "var(--text-same-black)" : "var(--material-same-white)";
46
47
  });
47
- return (s, u) => e.icon || s.$slots.icon ? (y(), O("div", yr, [
48
- D("button", xe(s.$attrs, {
48
+ return (c, x) => e.icon || c.$slots.icon ? (y(), O("div", {
49
+ key: 0,
50
+ class: L(["cregis-button__icon-wrapper", { "cregis-button__icon-wrapper--professional": e.iconType === "professional" }])
51
+ }, [
52
+ R("button", we({
53
+ ref_key: "iconButtonRef",
54
+ ref: n
55
+ }, c.$attrs, {
49
56
  class: ["cregis-button__icon", {
50
57
  [`cregis-button__icon--${e.iconType}`]: e.iconType,
51
58
  [`cregis-button__icon--${e.size}`]: e.size,
52
- "cregis-button__icon--slot": n.value,
59
+ "cregis-button__icon--slot": i.value,
53
60
  "is-disabled": e.disabled,
54
61
  "is-active": e.isActive
55
62
  }],
@@ -57,20 +64,21 @@ const yr = {
57
64
  }), [
58
65
  e.icon ? (y(), Me(Ft(e.icon), {
59
66
  key: 0,
60
- size: a.value
67
+ size: l.value
61
68
  }, null, 8, ["size"])) : (y(), O("span", {
62
69
  key: 1,
63
70
  class: "cregis-button__icon-slot-inner",
64
- style: ie({ "--cregis-btn-icon-slot-size": a.value })
71
+ style: ie({ "--cregis-btn-icon-slot-size": l.value })
65
72
  }, [
66
- Y(s.$slots, "icon")
73
+ Y(c.$slots, "icon")
67
74
  ], 4))
68
- ], 16, wr),
75
+ ], 16, yr),
69
76
  e.iconText ? (y(), O("span", {
70
77
  key: 0,
71
- class: L(["cregis-button__icon-text", { "is-disabled": e.disabled }])
78
+ class: L(["cregis-button__icon-text", { "is-disabled": e.disabled }]),
79
+ onClick: a
72
80
  }, j(e.iconText), 3)) : q("", !0)
73
- ])) : e.link ? (y(), O("button", xe({ key: 1 }, s.$attrs, {
81
+ ], 2)) : e.link ? (y(), O("button", we({ key: 1 }, c.$attrs, {
74
82
  class: ["cregis-button__link", {
75
83
  [`cregis-button__link--${e.type}`]: e.type,
76
84
  [`cregis-button__link--${e.size}`]: e.size,
@@ -79,12 +87,12 @@ const yr = {
79
87
  }],
80
88
  disabled: e.disabled || e.loading
81
89
  }), [
82
- Y(s.$slots, "default")
83
- ], 16, xr)) : (y(), O("button", xe({
90
+ Y(c.$slots, "default")
91
+ ], 16, xr)) : (y(), O("button", we({
84
92
  key: 2,
85
93
  ref: "buttonRef"
86
- }, s.$attrs, {
87
- style: l.value,
94
+ }, c.$attrs, {
95
+ style: s.value,
88
96
  class: ["cregis-button", {
89
97
  [`cregis-button--${e.type}`]: e.type,
90
98
  [`cregis-button--${e.size}`]: e.size,
@@ -101,18 +109,18 @@ const yr = {
101
109
  e.loading ? (y(), Me(ae(mr), {
102
110
  key: 0,
103
111
  class: "loading",
104
- size: i.value,
105
- color: o.value
106
- }, null, 8, ["size", "color"])) : Y(s.$slots, "default", { key: 1 })
107
- ], 16, Or));
112
+ size: o.value,
113
+ color: u.value
114
+ }, null, 8, ["size", "color"])) : Y(c.$slots, "default", { key: 1 })
115
+ ], 16, wr));
108
116
  }
109
- }), $r = {
117
+ }), Or = {
110
118
  key: 0,
111
119
  class: "cregis-input__prefix"
112
- }, kr = ["type", "placeholder", "min", "disabled"], Tr = {
120
+ }, kr = ["type", "placeholder", "min", "disabled"], $r = {
113
121
  key: 2,
114
122
  class: "cregis-input__suffix"
115
- }, Sr = ["disabled", "placeholder", "rows"], Cr = {
123
+ }, Tr = ["disabled", "placeholder", "rows"], Sr = {
116
124
  key: 0,
117
125
  class: "cregis-textarea__buttons"
118
126
  }, Qt = /* @__PURE__ */ G({
@@ -175,11 +183,11 @@ const yr = {
175
183
  u.value = n.type === "number" ? s(d) : d;
176
184
  }
177
185
  );
178
- const c = I(), x = I(0), k = I(!1);
186
+ const c = I(), x = I(0), $ = I(!1);
179
187
  let m = null;
180
188
  const V = async () => {
181
189
  await Ke(), c.value?.focus();
182
- }, $ = async () => {
190
+ }, k = async () => {
183
191
  if (n.type === "number") {
184
192
  const d = s(u.value);
185
193
  d !== u.value && (u.value = d);
@@ -188,10 +196,10 @@ const yr = {
188
196
  }, T = () => {
189
197
  a("change", u.value);
190
198
  }, E = (d) => {
191
- k.value = !0, a("focus", d);
192
- }, A = (d) => {
193
- k.value = !1, a("blur", d);
194
- }, W = h(() => n.clearable && !n.disabled && !!u.value && k.value), w = () => {
199
+ $.value = !0, a("focus", d);
200
+ }, D = (d) => {
201
+ $.value = !1, a("blur", d);
202
+ }, W = h(() => n.clearable && !n.disabled && !!u.value && $.value), w = () => {
195
203
  u.value = "", a("update:modelValue", ""), a("clear"), a("input", ""), a("change", "");
196
204
  }, S = () => {
197
205
  m && cancelAnimationFrame(m), m = requestAnimationFrame(() => {
@@ -208,7 +216,7 @@ const yr = {
208
216
  } catch (d) {
209
217
  console.error("paste error:", d);
210
218
  }
211
- }, R = h(
219
+ }, A = h(
212
220
  () => n.type === "number" && n.nonNegative ? 0 : void 0
213
221
  ), z = (d) => {
214
222
  if (n.type !== "number" || d.isComposing) return;
@@ -243,13 +251,13 @@ const yr = {
243
251
  }]),
244
252
  style: ie([{ width: e.width }, e.inputStyle])
245
253
  }, [
246
- D("div", {
247
- class: L(["cregis-input__wrapper", { "is-focus": k.value }])
254
+ R("div", {
255
+ class: L(["cregis-input__wrapper", { "is-focus": $.value }])
248
256
  }, [
249
- d.$slots.prefix ? (y(), O("span", $r, [
257
+ d.$slots.prefix ? (y(), O("span", Or, [
250
258
  Y(d.$slots, "prefix")
251
259
  ])) : q("", !0),
252
- Le(D("input", xe({
260
+ Le(R("input", we({
253
261
  class: "cregis-input__inner",
254
262
  "onUpdate:modelValue": f[0] || (f[0] = (g) => u.value = g),
255
263
  ref_key: "inputRef",
@@ -257,13 +265,13 @@ const yr = {
257
265
  type: e.type,
258
266
  placeholder: e.placeholder
259
267
  }, d.$attrs, {
260
- min: R.value,
268
+ min: A.value,
261
269
  spellcheck: "false",
262
270
  disabled: e.disabled,
263
- onInput: $,
271
+ onInput: k,
264
272
  onChange: T,
265
273
  onFocus: E,
266
- onBlur: A,
274
+ onBlur: D,
267
275
  onKeydown: z
268
276
  }), null, 16, kr), [
269
277
  [dr, u.value]
@@ -273,7 +281,7 @@ const yr = {
273
281
  style: ie(p.value),
274
282
  class: "cregis-input__unit"
275
283
  }, j(e.unit), 5)) : q("", !0),
276
- d.$slots.suffix || W.value ? (y(), O("span", Tr, [
284
+ d.$slots.suffix || W.value ? (y(), O("span", $r, [
277
285
  Y(d.$slots, "suffix"),
278
286
  W.value ? (y(), Me(Ye, {
279
287
  key: 0,
@@ -290,7 +298,7 @@ const yr = {
290
298
  class: L(["cregis-textarea", { "is-disabled": e.disabled }]),
291
299
  style: ie([{ width: e.width }, e.inputStyle])
292
300
  }, [
293
- Le(D("textarea", xe({ class: "cregis-textarea__wrapper" }, d.$attrs, {
301
+ Le(R("textarea", we({ class: "cregis-textarea__wrapper" }, d.$attrs, {
294
302
  spellcheck: "false",
295
303
  ref_key: "inputRef",
296
304
  ref: c,
@@ -298,14 +306,14 @@ const yr = {
298
306
  placeholder: e.placeholder,
299
307
  rows: e.rows,
300
308
  "onUpdate:modelValue": f[2] || (f[2] = (g) => u.value = g),
301
- onInput: $,
309
+ onInput: k,
302
310
  onChange: T,
303
311
  onFocus: E,
304
- onBlur: A
305
- }), null, 16, Sr), [
312
+ onBlur: D
313
+ }), null, 16, Tr), [
306
314
  [pr, u.value]
307
315
  ]),
308
- e.disabled ? q("", !0) : (y(), O("div", Cr, [
316
+ e.disabled ? q("", !0) : (y(), O("div", Sr, [
309
317
  X(Ye, {
310
318
  class: "cregis-textarea__button",
311
319
  link: "",
@@ -313,7 +321,7 @@ const yr = {
313
321
  onClick: C
314
322
  }, {
315
323
  default: Z(() => [
316
- $e(j(e.pasteText), 1)
324
+ ke(j(e.pasteText), 1)
317
325
  ]),
318
326
  _: 1
319
327
  }),
@@ -325,19 +333,19 @@ const yr = {
325
333
  onClick: w
326
334
  }, {
327
335
  default: Z(() => [
328
- $e(j(e.clearText), 1)
336
+ ke(j(e.clearText), 1)
329
337
  ]),
330
338
  _: 1
331
339
  }, 8, ["disabled"])
332
340
  ]))
333
341
  ], 6));
334
342
  }
335
- }), Pr = ["width", "height"], Er = {
343
+ }), Cr = ["width", "height"], Pr = {
336
344
  stroke: "none",
337
345
  "stroke-width": "1",
338
346
  fill: "none",
339
347
  "fill-rule": "evenodd"
340
- }, Vr = { transform: "translate(-394.000000, -457.000000)" }, Br = { transform: "translate(394.000000, 457.000000)" }, Dr = ["width", "height"], Ar = /* @__PURE__ */ G({
348
+ }, Er = { transform: "translate(-394.000000, -457.000000)" }, Vr = { transform: "translate(394.000000, 457.000000)" }, Br = ["width", "height"], Rr = /* @__PURE__ */ G({
341
349
  __name: "checked-basis",
342
350
  props: {
343
351
  size: { default: "16px" }
@@ -351,16 +359,16 @@ const yr = {
351
359
  xmlns: "http://www.w3.org/2000/svg",
352
360
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
353
361
  }, [
354
- D("g", Er, [
355
- D("g", Vr, [
356
- D("g", Br, [
357
- D("rect", {
362
+ R("g", Pr, [
363
+ R("g", Er, [
364
+ R("g", Vr, [
365
+ R("rect", {
358
366
  x: "0",
359
367
  y: "0",
360
368
  width: e.size,
361
369
  height: e.size
362
- }, null, 8, Dr),
363
- r[0] || (r[0] = D("path", {
370
+ }, null, 8, Br),
371
+ r[0] || (r[0] = R("path", {
364
372
  d: "M6.67713976,13.5709642 C7.12567714,13.5709642 7.468039,13.3943662 7.70422535,13.0411701 L13.7562297,3.77789816 C13.8407367,3.65005417 13.9024919,3.52546046 13.9414951,3.40411701 C13.9804984,3.28277356 14,3.16468039 14,3.04983749 C14,2.74647887 13.8976165,2.49566631 13.6928494,2.29739978 C13.4880823,2.09913326 13.2307692,2 12.9209101,2 C12.7063922,2 12.5265439,2.04225352 12.3813651,2.12676056 C12.2361863,2.21126761 12.0975081,2.35536295 11.9653304,2.55904659 L6.65113759,10.9512459 L3.95016251,7.60346696 C3.71830986,7.32177681 3.43011918,7.18093174 3.08559047,7.18093174 C2.77139762,7.18093174 2.51191766,7.28169014 2.3071506,7.48320693 C2.10238353,7.68472373 2,7.93824485 2,8.24377031 C2,8.38028169 2.02329361,8.51083424 2.06988082,8.63542795 C2.11646804,8.76002167 2.19826652,8.88949079 2.31527627,9.02383532 L5.67280607,13.0899242 C5.94149512,13.4106176 6.27627302,13.5709642 6.67713976,13.5709642 Z",
365
373
  fill: "currentColor",
366
374
  "fill-rule": "nonzero"
@@ -368,12 +376,12 @@ const yr = {
368
376
  ])
369
377
  ])
370
378
  ])
371
- ], 8, Pr));
379
+ ], 8, Cr));
372
380
  }
373
- }), Rr = {
381
+ }), Dr = {
374
382
  key: 0,
375
383
  class: "cregis-checkbox--indeterminate"
376
- }, ei = /* @__PURE__ */ G({
384
+ }, Ja = /* @__PURE__ */ G({
377
385
  name: "Checkbox",
378
386
  __name: "Checkbox",
379
387
  props: {
@@ -397,7 +405,7 @@ const yr = {
397
405
  class: "cregis-checkbox__wrapper",
398
406
  onClick: i
399
407
  }, [
400
- D("div", {
408
+ R("div", {
401
409
  class: L(["cregis-checkbox", {
402
410
  "is-disabled": e.disabled,
403
411
  "is-checked": a.value,
@@ -405,7 +413,7 @@ const yr = {
405
413
  "is-indeterminate": e.indeterminate
406
414
  }])
407
415
  }, [
408
- e.indeterminate ? (y(), O("div", Rr)) : (y(), Me(Ar, {
416
+ e.indeterminate ? (y(), O("div", Dr)) : (y(), Me(Rr, {
409
417
  key: 1,
410
418
  size: "10px"
411
419
  }))
@@ -415,12 +423,12 @@ const yr = {
415
423
  class: L(["cregis-checkbox__label", { "is-disabled": e.disabled }])
416
424
  }, [
417
425
  Y(l.$slots, "default", {}, () => [
418
- $e(j(e.label), 1)
426
+ ke(j(e.label), 1)
419
427
  ])
420
428
  ], 2)) : q("", !0)
421
429
  ]));
422
430
  }
423
- }), ti = /* @__PURE__ */ G({
431
+ }), ei = /* @__PURE__ */ G({
424
432
  name: "Radio",
425
433
  __name: "Radio",
426
434
  props: {
@@ -438,25 +446,25 @@ const yr = {
438
446
  class: "cregis-radio__wrapper",
439
447
  onClick: i
440
448
  }, [
441
- D("div", {
449
+ R("div", {
442
450
  class: L(["cregis-radio", {
443
451
  "is-disabled": e.disabled,
444
452
  "is-checked": a.value
445
453
  }])
446
454
  }, [...o[0] || (o[0] = [
447
- D("div", { class: "cregis-radio__inner" }, null, -1)
455
+ R("div", { class: "cregis-radio__inner" }, null, -1)
448
456
  ])], 2),
449
457
  l.$slots.default || e.label ? (y(), O("span", {
450
458
  key: 0,
451
459
  class: L(["cregis-radio__label", { "is-disabled": e.disabled }])
452
460
  }, [
453
461
  Y(l.$slots, "default", {}, () => [
454
- $e(j(e.label), 1)
462
+ ke(j(e.label), 1)
455
463
  ])
456
464
  ], 2)) : q("", !0)
457
465
  ]));
458
466
  }
459
- }), ri = /* @__PURE__ */ G({
467
+ }), ti = /* @__PURE__ */ G({
460
468
  name: "Divider",
461
469
  __name: "Divider",
462
470
  props: {
@@ -494,7 +502,7 @@ const yr = {
494
502
  style: ie(n.value)
495
503
  }, null, 6));
496
504
  }
497
- }), Gt = Symbol("TABS_KEY"), zr = ["onClick"], Wr = { style: { display: "none" } }, ni = /* @__PURE__ */ G({
505
+ }), Gt = Symbol("TABS_KEY"), Ar = ["onClick"], zr = { style: { display: "none" } }, ri = /* @__PURE__ */ G({
498
506
  name: "Tabs",
499
507
  __name: "Tabs",
500
508
  props: {
@@ -534,14 +542,14 @@ const yr = {
534
542
  style: ie(i.value),
535
543
  onClick: (u) => l.$emit("update:modelValue", s.name)
536
544
  }, [
537
- D("span", null, j(s.label), 1)
538
- ], 14, zr))), 128)),
539
- D("div", Wr, [
545
+ R("span", null, j(s.label), 1)
546
+ ], 14, Ar))), 128)),
547
+ R("div", zr, [
540
548
  Y(l.$slots, "default")
541
549
  ])
542
550
  ], 2));
543
551
  }
544
- }), ai = /* @__PURE__ */ G({
552
+ }), ni = /* @__PURE__ */ G({
545
553
  name: "TabPane",
546
554
  __name: "TabPane",
547
555
  props: {
@@ -562,12 +570,12 @@ const yr = {
562
570
  r.unregisterTab(t.name);
563
571
  }), (n, a) => null;
564
572
  }
565
- }), Mr = { class: "cregis-message__wrapper" }, Lr = {
573
+ }), Wr = { class: "cregis-message__wrapper" }, Mr = {
566
574
  key: 0,
567
575
  class: "cregis-message",
568
576
  role: "status",
569
577
  "aria-live": "polite"
570
- }, jr = /* @__PURE__ */ G({
578
+ }, Lr = /* @__PURE__ */ G({
571
579
  name: "Message",
572
580
  __name: "Message",
573
581
  props: {
@@ -589,14 +597,14 @@ const yr = {
589
597
  n !== void 0 && clearTimeout(n);
590
598
  }), Ke(() => {
591
599
  r.value = !0;
592
- }), (l, o) => (y(), O("div", Mr, [
600
+ }), (l, o) => (y(), O("div", Wr, [
593
601
  X(vt, {
594
602
  name: "cregis-message",
595
603
  onAfterEnter: a,
596
604
  onAfterLeave: i
597
605
  }, {
598
606
  default: Z(() => [
599
- r.value ? (y(), O("div", Lr, j(e.message), 1)) : q("", !0)
607
+ r.value ? (y(), O("div", Mr, j(e.message), 1)) : q("", !0)
600
608
  ]),
601
609
  _: 1
602
610
  })
@@ -604,19 +612,19 @@ const yr = {
604
612
  }
605
613
  });
606
614
  let it = !1;
607
- function Nr(e) {
615
+ function jr(e) {
608
616
  return typeof e == "string" ? { message: e, duration: 1e3 } : {
609
617
  message: e.message,
610
618
  duration: e.duration ?? 1e3
611
619
  };
612
620
  }
613
- function ii(e) {
621
+ function ai(e) {
614
622
  if (it) return;
615
- const { message: t, duration: r } = Nr(e);
623
+ const { message: t, duration: r } = jr(e);
616
624
  it = !0;
617
625
  const n = document.createElement("div");
618
626
  document.body.appendChild(n), Qe(
619
- Yt(jr, {
627
+ Yt(Lr, {
620
628
  message: t,
621
629
  duration: r,
622
630
  onVanish: () => {
@@ -626,12 +634,12 @@ function ii(e) {
626
634
  n
627
635
  );
628
636
  }
629
- const _r = { class: "cregis-notification__wrapper" }, Ir = {
637
+ const Nr = { class: "cregis-notification__wrapper" }, _r = {
630
638
  key: 0,
631
639
  class: "cregis-notification",
632
640
  role: "status",
633
641
  "aria-live": "polite"
634
- }, Fr = { class: "cregis-notification__content" }, Hr = { class: "cregis-notification__title" }, qr = { class: "cregis-notification__message" }, Ur = /* @__PURE__ */ G({
642
+ }, Ir = { class: "cregis-notification__content" }, Fr = { class: "cregis-notification__title" }, Hr = { class: "cregis-notification__message" }, qr = /* @__PURE__ */ G({
635
643
  name: "Notification",
636
644
  __name: "Notification",
637
645
  props: {
@@ -650,27 +658,27 @@ const _r = { class: "cregis-notification__wrapper" }, Ir = {
650
658
  return Ut(() => {
651
659
  }), Ke(() => {
652
660
  r.value = !0;
653
- }), (i, l) => (y(), O("div", _r, [
661
+ }), (i, l) => (y(), O("div", Nr, [
654
662
  X(vt, {
655
663
  name: "cregis-notification",
656
664
  onAfterLeave: a
657
665
  }, {
658
666
  default: Z(() => [
659
- r.value ? (y(), O("div", Ir, [
667
+ r.value ? (y(), O("div", _r, [
660
668
  (y(), Me(Ft(ae(hr)), {
661
669
  size: "18px",
662
670
  color: "var(--material-vibrant-error-primary)"
663
671
  })),
664
- D("div", Fr, [
665
- D("div", Hr, j(e.title), 1),
666
- D("div", qr, j(e.message), 1)
672
+ R("div", Ir, [
673
+ R("div", Fr, j(e.title), 1),
674
+ R("div", Hr, j(e.message), 1)
667
675
  ]),
668
676
  X(Ye, {
669
677
  type: "sameWhite",
670
678
  onClick: n
671
679
  }, {
672
680
  default: Z(() => [
673
- $e(j(e.btnText), 1)
681
+ ke(j(e.btnText), 1)
674
682
  ]),
675
683
  _: 1
676
684
  })
@@ -682,13 +690,13 @@ const _r = { class: "cregis-notification__wrapper" }, Ir = {
682
690
  }
683
691
  });
684
692
  let ot = !1;
685
- function oi(e) {
693
+ function ii(e) {
686
694
  if (ot) return;
687
695
  const { title: t, message: r, type: n, btnText: a } = e;
688
696
  ot = !0;
689
697
  const i = document.createElement("div");
690
698
  document.body.appendChild(i), Qe(
691
- Yt(Ur, {
699
+ Yt(qr, {
692
700
  title: t,
693
701
  message: r,
694
702
  type: n,
@@ -700,10 +708,10 @@ function oi(e) {
700
708
  i
701
709
  );
702
710
  }
703
- const Yr = { class: "cregis-progress__wrapper" }, Xr = { class: "cregis-progress__track-wrap" }, Kr = { class: "cregis-progress cregis-progress--striped active" }, Qr = {
711
+ const Ur = { class: "cregis-progress__wrapper" }, Yr = { class: "cregis-progress__track-wrap" }, Xr = { class: "cregis-progress cregis-progress--striped active" }, Kr = {
704
712
  key: 0,
705
713
  class: "cregis-progress__sliding-block"
706
- }, si = /* @__PURE__ */ G({
714
+ }, oi = /* @__PURE__ */ G({
707
715
  name: "Progress",
708
716
  __name: "Progress",
709
717
  props: {
@@ -718,30 +726,30 @@ const Yr = { class: "cregis-progress__wrapper" }, Xr = { class: "cregis-progress
718
726
  })), a = h(() => ({
719
727
  "--cregis-progress-tip-left": `${r.value}%`
720
728
  })), i = h(() => `${Math.round(t.percentage)}%`);
721
- return (l, o) => (y(), O("div", Yr, [
722
- D("div", Xr, [
729
+ return (l, o) => (y(), O("div", Ur, [
730
+ R("div", Yr, [
723
731
  e.showPercentage && t.percentage > 0 ? (y(), O("div", {
724
732
  key: 0,
725
733
  class: "cregis-progress__tip",
726
734
  style: ie(a.value),
727
735
  "aria-live": "polite"
728
736
  }, j(i.value), 5)) : q("", !0),
729
- D("div", Kr, [
730
- D("div", {
737
+ R("div", Xr, [
738
+ R("div", {
731
739
  class: "cregis-progress__bar",
732
740
  style: ie(n.value)
733
741
  }, null, 4),
734
- t.percentage === 0 ? (y(), O("div", Qr)) : q("", !0)
742
+ t.percentage === 0 ? (y(), O("div", Kr)) : q("", !0)
735
743
  ])
736
744
  ])
737
745
  ]));
738
746
  }
739
747
  });
740
- var ee = "top", se = "bottom", le = "right", te = "left", gt = "auto", Ie = [ee, se, le, te], Se = "start", Ne = "end", Gr = "clippingParents", Zt = "viewport", Ae = "popper", Zr = "reference", Bt = /* @__PURE__ */ Ie.reduce(function(e, t) {
748
+ var ee = "top", se = "bottom", le = "right", te = "left", gt = "auto", Ie = [ee, se, le, te], Se = "start", Ne = "end", Qr = "clippingParents", Zt = "viewport", De = "popper", Gr = "reference", Bt = /* @__PURE__ */ Ie.reduce(function(e, t) {
741
749
  return e.concat([t + "-" + Se, t + "-" + Ne]);
742
750
  }, []), Jt = /* @__PURE__ */ [].concat(Ie, [gt]).reduce(function(e, t) {
743
751
  return e.concat([t, t + "-" + Se, t + "-" + Ne]);
744
- }, []), Jr = "beforeRead", en = "read", tn = "afterRead", rn = "beforeMain", nn = "main", an = "afterMain", on = "beforeWrite", sn = "write", ln = "afterWrite", cn = [Jr, en, tn, rn, nn, an, on, sn, ln];
752
+ }, []), Zr = "beforeRead", Jr = "read", en = "afterRead", tn = "beforeMain", rn = "main", nn = "afterMain", an = "beforeWrite", on = "write", sn = "afterWrite", ln = [Zr, Jr, en, tn, rn, nn, an, on, sn];
745
753
  function ve(e) {
746
754
  return e ? (e.nodeName || "").toLowerCase() : null;
747
755
  }
@@ -754,7 +762,7 @@ function re(e) {
754
762
  }
755
763
  return e;
756
764
  }
757
- function ke(e) {
765
+ function $e(e) {
758
766
  var t = re(e).Element;
759
767
  return e instanceof t || e instanceof Element;
760
768
  }
@@ -768,7 +776,7 @@ function ht(e) {
768
776
  var t = re(e).ShadowRoot;
769
777
  return e instanceof t || e instanceof ShadowRoot;
770
778
  }
771
- function un(e) {
779
+ function cn(e) {
772
780
  var t = e.state;
773
781
  Object.keys(t.elements).forEach(function(r) {
774
782
  var n = t.styles[r] || {}, a = t.attributes[r] || {}, i = t.elements[r];
@@ -778,7 +786,7 @@ function un(e) {
778
786
  }));
779
787
  });
780
788
  }
781
- function dn(e) {
789
+ function un(e) {
782
790
  var t = e.state, r = {
783
791
  popper: {
784
792
  position: t.options.strategy,
@@ -802,12 +810,12 @@ function dn(e) {
802
810
  });
803
811
  };
804
812
  }
805
- const fn = {
813
+ const dn = {
806
814
  name: "applyStyles",
807
815
  enabled: !0,
808
816
  phase: "write",
809
- fn: un,
810
- effect: dn,
817
+ fn: cn,
818
+ effect: un,
811
819
  requires: ["computeStyles"]
812
820
  };
813
821
  function pe(e) {
@@ -827,13 +835,13 @@ function Pe(e, t, r) {
827
835
  t === void 0 && (t = !1), r === void 0 && (r = !1);
828
836
  var n = e.getBoundingClientRect(), a = 1, i = 1;
829
837
  t && oe(e) && (a = e.offsetWidth > 0 && Ce(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Ce(n.height) / e.offsetHeight || 1);
830
- var l = ke(e) ? re(e) : window, o = l.visualViewport, s = !er() && r, u = (n.left + (s && o ? o.offsetLeft : 0)) / a, c = (n.top + (s && o ? o.offsetTop : 0)) / i, x = n.width / a, k = n.height / i;
838
+ var l = $e(e) ? re(e) : window, o = l.visualViewport, s = !er() && r, u = (n.left + (s && o ? o.offsetLeft : 0)) / a, c = (n.top + (s && o ? o.offsetTop : 0)) / i, x = n.width / a, $ = n.height / i;
831
839
  return {
832
840
  width: x,
833
- height: k,
841
+ height: $,
834
842
  top: c,
835
843
  right: u + x,
836
- bottom: c + k,
844
+ bottom: c + $,
837
845
  left: u,
838
846
  x: u,
839
847
  y: c
@@ -865,11 +873,11 @@ function tr(e, t) {
865
873
  function ge(e) {
866
874
  return re(e).getComputedStyle(e);
867
875
  }
868
- function pn(e) {
876
+ function fn(e) {
869
877
  return ["table", "td", "th"].indexOf(ve(e)) >= 0;
870
878
  }
871
879
  function be(e) {
872
- return ((ke(e) ? e.ownerDocument : (
880
+ return (($e(e) ? e.ownerDocument : (
873
881
  // $FlowFixMe[prop-missing]
874
882
  e.document
875
883
  )) || window.document).documentElement;
@@ -886,11 +894,11 @@ function tt(e) {
886
894
  be(e)
887
895
  );
888
896
  }
889
- function Dt(e) {
897
+ function Rt(e) {
890
898
  return !oe(e) || // https://github.com/popperjs/popper-core/issues/837
891
899
  ge(e).position === "fixed" ? null : e.offsetParent;
892
900
  }
893
- function vn(e) {
901
+ function pn(e) {
894
902
  var t = /firefox/i.test(ut()), r = /Trident/i.test(ut());
895
903
  if (r && oe(e)) {
896
904
  var n = ge(e);
@@ -907,9 +915,9 @@ function vn(e) {
907
915
  return null;
908
916
  }
909
917
  function Fe(e) {
910
- for (var t = re(e), r = Dt(e); r && pn(r) && ge(r).position === "static"; )
911
- r = Dt(r);
912
- return r && (ve(r) === "html" || ve(r) === "body" && ge(r).position === "static") ? t : r || vn(e) || t;
918
+ for (var t = re(e), r = Rt(e); r && fn(r) && ge(r).position === "static"; )
919
+ r = Rt(r);
920
+ return r && (ve(r) === "html" || ve(r) === "body" && ge(r).position === "static") ? t : r || pn(e) || t;
913
921
  }
914
922
  function yt(e) {
915
923
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
@@ -917,7 +925,7 @@ function yt(e) {
917
925
  function ze(e, t, r) {
918
926
  return Oe(e, Ge(t, r));
919
927
  }
920
- function mn(e, t, r) {
928
+ function vn(e, t, r) {
921
929
  var n = ze(e, t, r);
922
930
  return n > r ? r : n;
923
931
  }
@@ -937,35 +945,35 @@ function ar(e, t) {
937
945
  return r[n] = e, r;
938
946
  }, {});
939
947
  }
940
- var gn = function(t, r) {
948
+ var mn = function(t, r) {
941
949
  return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
942
950
  placement: r.placement
943
951
  })) : t, nr(typeof t != "number" ? t : ar(t, Ie));
944
952
  };
945
- function hn(e) {
953
+ function gn(e) {
946
954
  var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, l = r.modifiersData.popperOffsets, o = pe(r.placement), s = yt(o), u = [te, le].indexOf(o) >= 0, c = u ? "height" : "width";
947
955
  if (!(!i || !l)) {
948
- var x = gn(a.padding, r), k = bt(i), m = s === "y" ? ee : te, V = s === "y" ? se : le, $ = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], T = l[s] - r.rects.reference[s], E = Fe(i), A = E ? s === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, W = $ / 2 - T / 2, w = x[m], S = A - k[c] - x[V], p = A / 2 - k[c] / 2 + W, C = ze(w, p, S), R = s;
949
- r.modifiersData[n] = (t = {}, t[R] = C, t.centerOffset = C - p, t);
956
+ var x = mn(a.padding, r), $ = bt(i), m = s === "y" ? ee : te, V = s === "y" ? se : le, k = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], T = l[s] - r.rects.reference[s], E = Fe(i), D = E ? s === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, W = k / 2 - T / 2, w = x[m], S = D - $[c] - x[V], p = D / 2 - $[c] / 2 + W, C = ze(w, p, S), A = s;
957
+ r.modifiersData[n] = (t = {}, t[A] = C, t.centerOffset = C - p, t);
950
958
  }
951
959
  }
952
- function bn(e) {
960
+ function hn(e) {
953
961
  var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
954
962
  a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || tr(t.elements.popper, a) && (t.elements.arrow = a));
955
963
  }
956
- const yn = {
964
+ const bn = {
957
965
  name: "arrow",
958
966
  enabled: !0,
959
967
  phase: "main",
960
- fn: hn,
961
- effect: bn,
968
+ fn: gn,
969
+ effect: hn,
962
970
  requires: ["popperOffsets"],
963
971
  requiresIfExists: ["preventOverflow"]
964
972
  };
965
973
  function Ee(e) {
966
974
  return e.split("-")[1];
967
975
  }
968
- var wn = {
976
+ var yn = {
969
977
  top: "auto",
970
978
  right: "auto",
971
979
  bottom: "auto",
@@ -978,51 +986,51 @@ function xn(e, t) {
978
986
  y: Ce(n * a) / a || 0
979
987
  };
980
988
  }
981
- function At(e) {
982
- var t, r = e.popper, n = e.popperRect, a = e.placement, i = e.variation, l = e.offsets, o = e.position, s = e.gpuAcceleration, u = e.adaptive, c = e.roundOffsets, x = e.isFixed, k = l.x, m = k === void 0 ? 0 : k, V = l.y, $ = V === void 0 ? 0 : V, T = typeof c == "function" ? c({
989
+ function Dt(e) {
990
+ var t, r = e.popper, n = e.popperRect, a = e.placement, i = e.variation, l = e.offsets, o = e.position, s = e.gpuAcceleration, u = e.adaptive, c = e.roundOffsets, x = e.isFixed, $ = l.x, m = $ === void 0 ? 0 : $, V = l.y, k = V === void 0 ? 0 : V, T = typeof c == "function" ? c({
983
991
  x: m,
984
- y: $
992
+ y: k
985
993
  }) : {
986
994
  x: m,
987
- y: $
995
+ y: k
988
996
  };
989
- m = T.x, $ = T.y;
990
- var E = l.hasOwnProperty("x"), A = l.hasOwnProperty("y"), W = te, w = ee, S = window;
997
+ m = T.x, k = T.y;
998
+ var E = l.hasOwnProperty("x"), D = l.hasOwnProperty("y"), W = te, w = ee, S = window;
991
999
  if (u) {
992
- var p = Fe(r), C = "clientHeight", R = "clientWidth";
993
- if (p === re(r) && (p = be(r), ge(p).position !== "static" && o === "absolute" && (C = "scrollHeight", R = "scrollWidth")), p = p, a === ee || (a === te || a === le) && i === Ne) {
1000
+ var p = Fe(r), C = "clientHeight", A = "clientWidth";
1001
+ if (p === re(r) && (p = be(r), ge(p).position !== "static" && o === "absolute" && (C = "scrollHeight", A = "scrollWidth")), p = p, a === ee || (a === te || a === le) && i === Ne) {
994
1002
  w = se;
995
1003
  var z = x && p === S && S.visualViewport ? S.visualViewport.height : (
996
1004
  // $FlowFixMe[prop-missing]
997
1005
  p[C]
998
1006
  );
999
- $ -= z - n.height, $ *= s ? 1 : -1;
1007
+ k -= z - n.height, k *= s ? 1 : -1;
1000
1008
  }
1001
1009
  if (a === te || (a === ee || a === se) && i === Ne) {
1002
1010
  W = le;
1003
1011
  var d = x && p === S && S.visualViewport ? S.visualViewport.width : (
1004
1012
  // $FlowFixMe[prop-missing]
1005
- p[R]
1013
+ p[A]
1006
1014
  );
1007
1015
  m -= d - n.width, m *= s ? 1 : -1;
1008
1016
  }
1009
1017
  }
1010
1018
  var f = Object.assign({
1011
1019
  position: o
1012
- }, u && wn), g = c === !0 ? xn({
1020
+ }, u && yn), g = c === !0 ? xn({
1013
1021
  x: m,
1014
- y: $
1022
+ y: k
1015
1023
  }, re(r)) : {
1016
1024
  x: m,
1017
- y: $
1025
+ y: k
1018
1026
  };
1019
- if (m = g.x, $ = g.y, s) {
1027
+ if (m = g.x, k = g.y, s) {
1020
1028
  var P;
1021
- return Object.assign({}, f, (P = {}, P[w] = A ? "0" : "", P[W] = E ? "0" : "", P.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + $ + "px)" : "translate3d(" + m + "px, " + $ + "px, 0)", P));
1029
+ return Object.assign({}, f, (P = {}, P[w] = D ? "0" : "", P[W] = E ? "0" : "", P.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + k + "px)" : "translate3d(" + m + "px, " + k + "px, 0)", P));
1022
1030
  }
1023
- return Object.assign({}, f, (t = {}, t[w] = A ? $ + "px" : "", t[W] = E ? m + "px" : "", t.transform = "", t));
1031
+ return Object.assign({}, f, (t = {}, t[w] = D ? k + "px" : "", t[W] = E ? m + "px" : "", t.transform = "", t));
1024
1032
  }
1025
- function On(e) {
1033
+ function wn(e) {
1026
1034
  var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, l = i === void 0 ? !0 : i, o = r.roundOffsets, s = o === void 0 ? !0 : o, u = {
1027
1035
  placement: pe(t.placement),
1028
1036
  variation: Ee(t.placement),
@@ -1031,12 +1039,12 @@ function On(e) {
1031
1039
  gpuAcceleration: a,
1032
1040
  isFixed: t.options.strategy === "fixed"
1033
1041
  };
1034
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, At(Object.assign({}, u, {
1042
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Dt(Object.assign({}, u, {
1035
1043
  offsets: t.modifiersData.popperOffsets,
1036
1044
  position: t.options.strategy,
1037
1045
  adaptive: l,
1038
1046
  roundOffsets: s
1039
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, At(Object.assign({}, u, {
1047
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Dt(Object.assign({}, u, {
1040
1048
  offsets: t.modifiersData.arrow,
1041
1049
  position: "absolute",
1042
1050
  adaptive: !1,
@@ -1045,11 +1053,11 @@ function On(e) {
1045
1053
  "data-popper-placement": t.placement
1046
1054
  });
1047
1055
  }
1048
- const $n = {
1056
+ const On = {
1049
1057
  name: "computeStyles",
1050
1058
  enabled: !0,
1051
1059
  phase: "beforeWrite",
1052
- fn: On,
1060
+ fn: wn,
1053
1061
  data: {}
1054
1062
  };
1055
1063
  var Ue = {
@@ -1065,7 +1073,7 @@ function kn(e) {
1065
1073
  }), o && s.removeEventListener("resize", r.update, Ue);
1066
1074
  };
1067
1075
  }
1068
- const Tn = {
1076
+ const $n = {
1069
1077
  name: "eventListeners",
1070
1078
  enabled: !0,
1071
1079
  phase: "write",
@@ -1074,7 +1082,7 @@ const Tn = {
1074
1082
  effect: kn,
1075
1083
  data: {}
1076
1084
  };
1077
- var Sn = {
1085
+ var Tn = {
1078
1086
  left: "right",
1079
1087
  right: "left",
1080
1088
  bottom: "top",
@@ -1082,29 +1090,29 @@ var Sn = {
1082
1090
  };
1083
1091
  function Xe(e) {
1084
1092
  return e.replace(/left|right|bottom|top/g, function(t) {
1085
- return Sn[t];
1093
+ return Tn[t];
1086
1094
  });
1087
1095
  }
1088
- var Cn = {
1096
+ var Sn = {
1089
1097
  start: "end",
1090
1098
  end: "start"
1091
1099
  };
1092
- function Rt(e) {
1100
+ function At(e) {
1093
1101
  return e.replace(/start|end/g, function(t) {
1094
- return Cn[t];
1102
+ return Sn[t];
1095
1103
  });
1096
1104
  }
1097
- function wt(e) {
1105
+ function xt(e) {
1098
1106
  var t = re(e), r = t.pageXOffset, n = t.pageYOffset;
1099
1107
  return {
1100
1108
  scrollLeft: r,
1101
1109
  scrollTop: n
1102
1110
  };
1103
1111
  }
1104
- function xt(e) {
1105
- return Pe(be(e)).left + wt(e).scrollLeft;
1112
+ function wt(e) {
1113
+ return Pe(be(e)).left + xt(e).scrollLeft;
1106
1114
  }
1107
- function Pn(e, t) {
1115
+ function Cn(e, t) {
1108
1116
  var r = re(e), n = be(e), a = r.visualViewport, i = n.clientWidth, l = n.clientHeight, o = 0, s = 0;
1109
1117
  if (a) {
1110
1118
  i = a.width, l = a.height;
@@ -1114,12 +1122,12 @@ function Pn(e, t) {
1114
1122
  return {
1115
1123
  width: i,
1116
1124
  height: l,
1117
- x: o + xt(e),
1125
+ x: o + wt(e),
1118
1126
  y: s
1119
1127
  };
1120
1128
  }
1121
- function En(e) {
1122
- var t, r = be(e), n = wt(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = Oe(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), l = Oe(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), o = -n.scrollLeft + xt(e), s = -n.scrollTop;
1129
+ function Pn(e) {
1130
+ var t, r = be(e), n = xt(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = Oe(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), l = Oe(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), o = -n.scrollLeft + wt(e), s = -n.scrollTop;
1123
1131
  return ge(a || r).direction === "rtl" && (o += Oe(r.clientWidth, a ? a.clientWidth : 0) - i), {
1124
1132
  width: i,
1125
1133
  height: l,
@@ -1151,21 +1159,21 @@ function dt(e) {
1151
1159
  bottom: e.y + e.height
1152
1160
  });
1153
1161
  }
1154
- function Vn(e, t) {
1162
+ function En(e, t) {
1155
1163
  var r = Pe(e, !1, t === "fixed");
1156
1164
  return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
1157
1165
  }
1158
1166
  function zt(e, t, r) {
1159
- return t === Zt ? dt(Pn(e, r)) : ke(t) ? Vn(t, r) : dt(En(be(e)));
1167
+ return t === Zt ? dt(Cn(e, r)) : $e(t) ? En(t, r) : dt(Pn(be(e)));
1160
1168
  }
1161
- function Bn(e) {
1169
+ function Vn(e) {
1162
1170
  var t = We(tt(e)), r = ["absolute", "fixed"].indexOf(ge(e).position) >= 0, n = r && oe(e) ? Fe(e) : e;
1163
- return ke(n) ? t.filter(function(a) {
1164
- return ke(a) && tr(a, n) && ve(a) !== "body";
1171
+ return $e(n) ? t.filter(function(a) {
1172
+ return $e(a) && tr(a, n) && ve(a) !== "body";
1165
1173
  }) : [];
1166
1174
  }
1167
- function Dn(e, t, r, n) {
1168
- var a = t === "clippingParents" ? Bn(e) : [].concat(t), i = [].concat(a, [r]), l = i[0], o = i.reduce(function(s, u) {
1175
+ function Bn(e, t, r, n) {
1176
+ var a = t === "clippingParents" ? Vn(e) : [].concat(t), i = [].concat(a, [r]), l = i[0], o = i.reduce(function(s, u) {
1169
1177
  var c = zt(e, u, n);
1170
1178
  return s.top = Oe(c.top, s.top), s.right = Ge(c.right, s.right), s.bottom = Ge(c.bottom, s.bottom), s.left = Oe(c.left, s.left), s;
1171
1179
  }, zt(e, l, n));
@@ -1220,17 +1228,17 @@ function or(e) {
1220
1228
  }
1221
1229
  function _e(e, t) {
1222
1230
  t === void 0 && (t = {});
1223
- var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, l = i === void 0 ? e.strategy : i, o = r.boundary, s = o === void 0 ? Gr : o, u = r.rootBoundary, c = u === void 0 ? Zt : u, x = r.elementContext, k = x === void 0 ? Ae : x, m = r.altBoundary, V = m === void 0 ? !1 : m, $ = r.padding, T = $ === void 0 ? 0 : $, E = nr(typeof T != "number" ? T : ar(T, Ie)), A = k === Ae ? Zr : Ae, W = e.rects.popper, w = e.elements[V ? A : k], S = Dn(ke(w) ? w : w.contextElement || be(e.elements.popper), s, c, l), p = Pe(e.elements.reference), C = or({
1231
+ var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, l = i === void 0 ? e.strategy : i, o = r.boundary, s = o === void 0 ? Qr : o, u = r.rootBoundary, c = u === void 0 ? Zt : u, x = r.elementContext, $ = x === void 0 ? De : x, m = r.altBoundary, V = m === void 0 ? !1 : m, k = r.padding, T = k === void 0 ? 0 : k, E = nr(typeof T != "number" ? T : ar(T, Ie)), D = $ === De ? Gr : De, W = e.rects.popper, w = e.elements[V ? D : $], S = Bn($e(w) ? w : w.contextElement || be(e.elements.popper), s, c, l), p = Pe(e.elements.reference), C = or({
1224
1232
  reference: p,
1225
1233
  element: W,
1226
1234
  placement: a
1227
- }), R = dt(Object.assign({}, W, C)), z = k === Ae ? R : p, d = {
1235
+ }), A = dt(Object.assign({}, W, C)), z = $ === De ? A : p, d = {
1228
1236
  top: S.top - z.top + E.top,
1229
1237
  bottom: z.bottom - S.bottom + E.bottom,
1230
1238
  left: S.left - z.left + E.left,
1231
1239
  right: z.right - S.right + E.right
1232
1240
  }, f = e.modifiersData.offset;
1233
- if (k === Ae && f) {
1241
+ if ($ === De && f) {
1234
1242
  var g = f[a];
1235
1243
  Object.keys(d).forEach(function(P) {
1236
1244
  var F = [le, se].indexOf(P) >= 0 ? 1 : -1, H = [ee, se].indexOf(P) >= 0 ? "y" : "x";
@@ -1239,50 +1247,50 @@ function _e(e, t) {
1239
1247
  }
1240
1248
  return d;
1241
1249
  }
1242
- function An(e, t) {
1250
+ function Rn(e, t) {
1243
1251
  t === void 0 && (t = {});
1244
1252
  var r = t, n = r.placement, a = r.boundary, i = r.rootBoundary, l = r.padding, o = r.flipVariations, s = r.allowedAutoPlacements, u = s === void 0 ? Jt : s, c = Ee(n), x = c ? o ? Bt : Bt.filter(function(V) {
1245
1253
  return Ee(V) === c;
1246
- }) : Ie, k = x.filter(function(V) {
1254
+ }) : Ie, $ = x.filter(function(V) {
1247
1255
  return u.indexOf(V) >= 0;
1248
1256
  });
1249
- k.length === 0 && (k = x);
1250
- var m = k.reduce(function(V, $) {
1251
- return V[$] = _e(e, {
1252
- placement: $,
1257
+ $.length === 0 && ($ = x);
1258
+ var m = $.reduce(function(V, k) {
1259
+ return V[k] = _e(e, {
1260
+ placement: k,
1253
1261
  boundary: a,
1254
1262
  rootBoundary: i,
1255
1263
  padding: l
1256
- })[pe($)], V;
1264
+ })[pe(k)], V;
1257
1265
  }, {});
1258
- return Object.keys(m).sort(function(V, $) {
1259
- return m[V] - m[$];
1266
+ return Object.keys(m).sort(function(V, k) {
1267
+ return m[V] - m[k];
1260
1268
  });
1261
1269
  }
1262
- function Rn(e) {
1270
+ function Dn(e) {
1263
1271
  if (pe(e) === gt)
1264
1272
  return [];
1265
1273
  var t = Xe(e);
1266
- return [Rt(e), t, Rt(t)];
1274
+ return [At(e), t, At(t)];
1267
1275
  }
1268
- function zn(e) {
1276
+ function An(e) {
1269
1277
  var t = e.state, r = e.options, n = e.name;
1270
1278
  if (!t.modifiersData[n]._skip) {
1271
- for (var a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !0 : l, s = r.fallbackPlacements, u = r.padding, c = r.boundary, x = r.rootBoundary, k = r.altBoundary, m = r.flipVariations, V = m === void 0 ? !0 : m, $ = r.allowedAutoPlacements, T = t.options.placement, E = pe(T), A = E === T, W = s || (A || !V ? [Xe(T)] : Rn(T)), w = [T].concat(W).reduce(function(he, fe) {
1272
- return he.concat(pe(fe) === gt ? An(t, {
1279
+ for (var a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !0 : l, s = r.fallbackPlacements, u = r.padding, c = r.boundary, x = r.rootBoundary, $ = r.altBoundary, m = r.flipVariations, V = m === void 0 ? !0 : m, k = r.allowedAutoPlacements, T = t.options.placement, E = pe(T), D = E === T, W = s || (D || !V ? [Xe(T)] : Dn(T)), w = [T].concat(W).reduce(function(he, fe) {
1280
+ return he.concat(pe(fe) === gt ? Rn(t, {
1273
1281
  placement: fe,
1274
1282
  boundary: c,
1275
1283
  rootBoundary: x,
1276
1284
  padding: u,
1277
1285
  flipVariations: V,
1278
- allowedAutoPlacements: $
1286
+ allowedAutoPlacements: k
1279
1287
  }) : fe);
1280
- }, []), S = t.rects.reference, p = t.rects.popper, C = /* @__PURE__ */ new Map(), R = !0, z = w[0], d = 0; d < w.length; d++) {
1288
+ }, []), S = t.rects.reference, p = t.rects.popper, C = /* @__PURE__ */ new Map(), A = !0, z = w[0], d = 0; d < w.length; d++) {
1281
1289
  var f = w[d], g = pe(f), P = Ee(f) === Se, F = [ee, se].indexOf(g) >= 0, H = F ? "width" : "height", N = _e(t, {
1282
1290
  placement: f,
1283
1291
  boundary: c,
1284
1292
  rootBoundary: x,
1285
- altBoundary: k,
1293
+ altBoundary: $,
1286
1294
  padding: u
1287
1295
  }), _ = F ? P ? le : te : P ? se : ee;
1288
1296
  S[H] > p[H] && (_ = Xe(_));
@@ -1290,12 +1298,12 @@ function zn(e) {
1290
1298
  if (i && ce.push(N[g] <= 0), o && ce.push(N[_] <= 0, N[de] <= 0), ce.every(function(he) {
1291
1299
  return he;
1292
1300
  })) {
1293
- z = f, R = !1;
1301
+ z = f, A = !1;
1294
1302
  break;
1295
1303
  }
1296
1304
  C.set(f, ce);
1297
1305
  }
1298
- if (R)
1306
+ if (A)
1299
1307
  for (var b = V ? 3 : 1, U = function(fe) {
1300
1308
  var ye = w.find(function(Te) {
1301
1309
  var me = C.get(Te);
@@ -1313,11 +1321,11 @@ function zn(e) {
1313
1321
  t.placement !== z && (t.modifiersData[n]._skip = !0, t.placement = z, t.reset = !0);
1314
1322
  }
1315
1323
  }
1316
- const Wn = {
1324
+ const zn = {
1317
1325
  name: "flip",
1318
1326
  enabled: !0,
1319
1327
  phase: "main",
1320
- fn: zn,
1328
+ fn: An,
1321
1329
  requiresIfExists: ["offset"],
1322
1330
  data: {
1323
1331
  _skip: !1
@@ -1339,7 +1347,7 @@ function Mt(e) {
1339
1347
  return e[t] >= 0;
1340
1348
  });
1341
1349
  }
1342
- function Mn(e) {
1350
+ function Wn(e) {
1343
1351
  var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, l = _e(t, {
1344
1352
  elementContext: "reference"
1345
1353
  }), o = _e(t, {
@@ -1355,14 +1363,14 @@ function Mn(e) {
1355
1363
  "data-popper-escaped": x
1356
1364
  });
1357
1365
  }
1358
- const Ln = {
1366
+ const Mn = {
1359
1367
  name: "hide",
1360
1368
  enabled: !0,
1361
1369
  phase: "main",
1362
1370
  requiresIfExists: ["preventOverflow"],
1363
- fn: Mn
1371
+ fn: Wn
1364
1372
  };
1365
- function jn(e, t, r) {
1373
+ function Ln(e, t, r) {
1366
1374
  var n = pe(e), a = [te, ee].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
1367
1375
  placement: e
1368
1376
  })) : r, l = i[0], o = i[1];
@@ -1374,20 +1382,20 @@ function jn(e, t, r) {
1374
1382
  y: o
1375
1383
  };
1376
1384
  }
1377
- function Nn(e) {
1385
+ function jn(e) {
1378
1386
  var t = e.state, r = e.options, n = e.name, a = r.offset, i = a === void 0 ? [0, 0] : a, l = Jt.reduce(function(c, x) {
1379
- return c[x] = jn(x, t.rects, i), c;
1387
+ return c[x] = Ln(x, t.rects, i), c;
1380
1388
  }, {}), o = l[t.placement], s = o.x, u = o.y;
1381
1389
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += u), t.modifiersData[n] = l;
1382
1390
  }
1383
- const _n = {
1391
+ const Nn = {
1384
1392
  name: "offset",
1385
1393
  enabled: !0,
1386
1394
  phase: "main",
1387
1395
  requires: ["popperOffsets"],
1388
- fn: Nn
1396
+ fn: jn
1389
1397
  };
1390
- function In(e) {
1398
+ function _n(e) {
1391
1399
  var t = e.state, r = e.name;
1392
1400
  t.modifiersData[r] = or({
1393
1401
  reference: t.rects.reference,
@@ -1395,25 +1403,25 @@ function In(e) {
1395
1403
  placement: t.placement
1396
1404
  });
1397
1405
  }
1398
- const Fn = {
1406
+ const In = {
1399
1407
  name: "popperOffsets",
1400
1408
  enabled: !0,
1401
1409
  phase: "read",
1402
- fn: In,
1410
+ fn: _n,
1403
1411
  data: {}
1404
1412
  };
1405
- function Hn(e) {
1413
+ function Fn(e) {
1406
1414
  return e === "x" ? "y" : "x";
1407
1415
  }
1408
- function qn(e) {
1409
- var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !1 : l, s = r.boundary, u = r.rootBoundary, c = r.altBoundary, x = r.padding, k = r.tether, m = k === void 0 ? !0 : k, V = r.tetherOffset, $ = V === void 0 ? 0 : V, T = _e(t, {
1416
+ function Hn(e) {
1417
+ var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !1 : l, s = r.boundary, u = r.rootBoundary, c = r.altBoundary, x = r.padding, $ = r.tether, m = $ === void 0 ? !0 : $, V = r.tetherOffset, k = V === void 0 ? 0 : V, T = _e(t, {
1410
1418
  boundary: s,
1411
1419
  rootBoundary: u,
1412
1420
  padding: x,
1413
1421
  altBoundary: c
1414
- }), E = pe(t.placement), A = Ee(t.placement), W = !A, w = yt(E), S = Hn(w), p = t.modifiersData.popperOffsets, C = t.rects.reference, R = t.rects.popper, z = typeof $ == "function" ? $(Object.assign({}, t.rects, {
1422
+ }), E = pe(t.placement), D = Ee(t.placement), W = !D, w = yt(E), S = Fn(w), p = t.modifiersData.popperOffsets, C = t.rects.reference, A = t.rects.popper, z = typeof k == "function" ? k(Object.assign({}, t.rects, {
1415
1423
  placement: t.placement
1416
- })) : $, d = typeof z == "number" ? {
1424
+ })) : k, d = typeof z == "number" ? {
1417
1425
  mainAxis: z,
1418
1426
  altAxis: z
1419
1427
  } : Object.assign({
@@ -1425,42 +1433,42 @@ function qn(e) {
1425
1433
  };
1426
1434
  if (p) {
1427
1435
  if (i) {
1428
- var P, F = w === "y" ? ee : te, H = w === "y" ? se : le, N = w === "y" ? "height" : "width", _ = p[w], de = _ + T[F], ce = _ - T[H], b = m ? -R[N] / 2 : 0, U = A === Se ? C[N] : R[N], K = A === Se ? -R[N] : -C[N], ue = t.elements.arrow, he = m && ue ? bt(ue) : {
1436
+ var P, F = w === "y" ? ee : te, H = w === "y" ? se : le, N = w === "y" ? "height" : "width", _ = p[w], de = _ + T[F], ce = _ - T[H], b = m ? -A[N] / 2 : 0, U = D === Se ? C[N] : A[N], K = D === Se ? -A[N] : -C[N], ue = t.elements.arrow, he = m && ue ? bt(ue) : {
1429
1437
  width: 0,
1430
1438
  height: 0
1431
- }, fe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : rr(), ye = fe[F], Te = fe[H], me = ze(0, C[N], he[N]), Be = W ? C[N] / 2 - b - me - ye - d.mainAxis : U - me - ye - d.mainAxis, He = W ? -C[N] / 2 + b + me + Te + d.mainAxis : K + me + Te + d.mainAxis, De = t.elements.arrow && Fe(t.elements.arrow), rt = De ? w === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, v = (P = f?.[w]) != null ? P : 0, M = _ + Be - v - rt, B = _ + He - v, ne = ze(m ? Ge(de, M) : de, _, m ? Oe(ce, B) : ce);
1439
+ }, fe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : rr(), ye = fe[F], Te = fe[H], me = ze(0, C[N], he[N]), Be = W ? C[N] / 2 - b - me - ye - d.mainAxis : U - me - ye - d.mainAxis, He = W ? -C[N] / 2 + b + me + Te + d.mainAxis : K + me + Te + d.mainAxis, Re = t.elements.arrow && Fe(t.elements.arrow), rt = Re ? w === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, v = (P = f?.[w]) != null ? P : 0, M = _ + Be - v - rt, B = _ + He - v, ne = ze(m ? Ge(de, M) : de, _, m ? Oe(ce, B) : ce);
1432
1440
  p[w] = ne, g[w] = ne - _;
1433
1441
  }
1434
1442
  if (o) {
1435
- var Q, nt = w === "x" ? ee : te, $t = w === "x" ? se : le, we = p[S], qe = S === "y" ? "height" : "width", kt = we + T[nt], Tt = we - T[$t], at = [ee, te].indexOf(E) !== -1, St = (Q = f?.[S]) != null ? Q : 0, Ct = at ? kt : we - C[qe] - R[qe] - St + d.altAxis, Pt = at ? we + C[qe] + R[qe] - St - d.altAxis : Tt, Et = m && at ? mn(Ct, we, Pt) : ze(m ? Ct : kt, we, m ? Pt : Tt);
1436
- p[S] = Et, g[S] = Et - we;
1443
+ var Q, nt = w === "x" ? ee : te, kt = w === "x" ? se : le, xe = p[S], qe = S === "y" ? "height" : "width", $t = xe + T[nt], Tt = xe - T[kt], at = [ee, te].indexOf(E) !== -1, St = (Q = f?.[S]) != null ? Q : 0, Ct = at ? $t : xe - C[qe] - A[qe] - St + d.altAxis, Pt = at ? xe + C[qe] + A[qe] - St - d.altAxis : Tt, Et = m && at ? vn(Ct, xe, Pt) : ze(m ? Ct : $t, xe, m ? Pt : Tt);
1444
+ p[S] = Et, g[S] = Et - xe;
1437
1445
  }
1438
1446
  t.modifiersData[n] = g;
1439
1447
  }
1440
1448
  }
1441
- const Un = {
1449
+ const qn = {
1442
1450
  name: "preventOverflow",
1443
1451
  enabled: !0,
1444
1452
  phase: "main",
1445
- fn: qn,
1453
+ fn: Hn,
1446
1454
  requiresIfExists: ["offset"]
1447
1455
  };
1448
- function Yn(e) {
1456
+ function Un(e) {
1449
1457
  return {
1450
1458
  scrollLeft: e.scrollLeft,
1451
1459
  scrollTop: e.scrollTop
1452
1460
  };
1453
1461
  }
1454
- function Xn(e) {
1455
- return e === re(e) || !oe(e) ? wt(e) : Yn(e);
1462
+ function Yn(e) {
1463
+ return e === re(e) || !oe(e) ? xt(e) : Un(e);
1456
1464
  }
1457
- function Kn(e) {
1465
+ function Xn(e) {
1458
1466
  var t = e.getBoundingClientRect(), r = Ce(t.width) / e.offsetWidth || 1, n = Ce(t.height) / e.offsetHeight || 1;
1459
1467
  return r !== 1 || n !== 1;
1460
1468
  }
1461
- function Qn(e, t, r) {
1469
+ function Kn(e, t, r) {
1462
1470
  r === void 0 && (r = !1);
1463
- var n = oe(t), a = oe(t) && Kn(t), i = be(t), l = Pe(e, a, r), o = {
1471
+ var n = oe(t), a = oe(t) && Xn(t), i = be(t), l = Pe(e, a, r), o = {
1464
1472
  scrollLeft: 0,
1465
1473
  scrollTop: 0
1466
1474
  }, s = {
@@ -1468,14 +1476,14 @@ function Qn(e, t, r) {
1468
1476
  y: 0
1469
1477
  };
1470
1478
  return (n || !n && !r) && ((ve(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1471
- Ot(i)) && (o = Xn(t)), oe(t) ? (s = Pe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = xt(i))), {
1479
+ Ot(i)) && (o = Yn(t)), oe(t) ? (s = Pe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = wt(i))), {
1472
1480
  x: l.left + o.scrollLeft - s.x,
1473
1481
  y: l.top + o.scrollTop - s.y,
1474
1482
  width: l.width,
1475
1483
  height: l.height
1476
1484
  };
1477
1485
  }
1478
- function Gn(e) {
1486
+ function Qn(e) {
1479
1487
  var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
1480
1488
  e.forEach(function(i) {
1481
1489
  t.set(i.name, i);
@@ -1494,15 +1502,15 @@ function Gn(e) {
1494
1502
  r.has(i.name) || a(i);
1495
1503
  }), n;
1496
1504
  }
1497
- function Zn(e) {
1498
- var t = Gn(e);
1499
- return cn.reduce(function(r, n) {
1505
+ function Gn(e) {
1506
+ var t = Qn(e);
1507
+ return ln.reduce(function(r, n) {
1500
1508
  return r.concat(t.filter(function(a) {
1501
1509
  return a.phase === n;
1502
1510
  }));
1503
1511
  }, []);
1504
1512
  }
1505
- function Jn(e) {
1513
+ function Zn(e) {
1506
1514
  var t;
1507
1515
  return function() {
1508
1516
  return t || (t = new Promise(function(r) {
@@ -1512,7 +1520,7 @@ function Jn(e) {
1512
1520
  })), t;
1513
1521
  };
1514
1522
  }
1515
- function ea(e) {
1523
+ function Jn(e) {
1516
1524
  var t = e.reduce(function(r, n) {
1517
1525
  var a = r[n.name];
1518
1526
  return r[n.name] = a ? Object.assign({}, a, n, {
@@ -1536,7 +1544,7 @@ function jt() {
1536
1544
  return !(n && typeof n.getBoundingClientRect == "function");
1537
1545
  });
1538
1546
  }
1539
- function ta(e) {
1547
+ function ea(e) {
1540
1548
  e === void 0 && (e = {});
1541
1549
  var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, i = a === void 0 ? Lt : a;
1542
1550
  return function(o, s, u) {
@@ -1552,15 +1560,15 @@ function ta(e) {
1552
1560
  },
1553
1561
  attributes: {},
1554
1562
  styles: {}
1555
- }, x = [], k = !1, m = {
1563
+ }, x = [], $ = !1, m = {
1556
1564
  state: c,
1557
1565
  setOptions: function(E) {
1558
- var A = typeof E == "function" ? E(c.options) : E;
1559
- $(), c.options = Object.assign({}, i, c.options, A), c.scrollParents = {
1560
- reference: ke(o) ? We(o) : o.contextElement ? We(o.contextElement) : [],
1566
+ var D = typeof E == "function" ? E(c.options) : E;
1567
+ k(), c.options = Object.assign({}, i, c.options, D), c.scrollParents = {
1568
+ reference: $e(o) ? We(o) : o.contextElement ? We(o.contextElement) : [],
1561
1569
  popper: We(s)
1562
1570
  };
1563
- var W = Zn(ea([].concat(n, c.options.modifiers)));
1571
+ var W = Gn(Jn([].concat(n, c.options.modifiers)));
1564
1572
  return c.orderedModifiers = W.filter(function(w) {
1565
1573
  return w.enabled;
1566
1574
  }), V(), m.update();
@@ -1571,11 +1579,11 @@ function ta(e) {
1571
1579
  // For high frequency updates (e.g. `resize` and `scroll` events), always
1572
1580
  // prefer the async Popper#update method
1573
1581
  forceUpdate: function() {
1574
- if (!k) {
1575
- var E = c.elements, A = E.reference, W = E.popper;
1576
- if (jt(A, W)) {
1582
+ if (!$) {
1583
+ var E = c.elements, D = E.reference, W = E.popper;
1584
+ if (jt(D, W)) {
1577
1585
  c.rects = {
1578
- reference: Qn(A, Fe(W), c.options.strategy === "fixed"),
1586
+ reference: Kn(D, Fe(W), c.options.strategy === "fixed"),
1579
1587
  popper: bt(W)
1580
1588
  }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(d) {
1581
1589
  return c.modifiersData[d.name] = Object.assign({}, d.data);
@@ -1585,10 +1593,10 @@ function ta(e) {
1585
1593
  c.reset = !1, w = -1;
1586
1594
  continue;
1587
1595
  }
1588
- var S = c.orderedModifiers[w], p = S.fn, C = S.options, R = C === void 0 ? {} : C, z = S.name;
1596
+ var S = c.orderedModifiers[w], p = S.fn, C = S.options, A = C === void 0 ? {} : C, z = S.name;
1589
1597
  typeof p == "function" && (c = p({
1590
1598
  state: c,
1591
- options: R,
1599
+ options: A,
1592
1600
  name: z,
1593
1601
  instance: m
1594
1602
  }) || c);
@@ -1598,23 +1606,23 @@ function ta(e) {
1598
1606
  },
1599
1607
  // Async and optimistically optimized update – it will not be executed if
1600
1608
  // not necessary (debounced to run at most once-per-tick)
1601
- update: Jn(function() {
1609
+ update: Zn(function() {
1602
1610
  return new Promise(function(T) {
1603
1611
  m.forceUpdate(), T(c);
1604
1612
  });
1605
1613
  }),
1606
1614
  destroy: function() {
1607
- $(), k = !0;
1615
+ k(), $ = !0;
1608
1616
  }
1609
1617
  };
1610
1618
  if (!jt(o, s))
1611
1619
  return m;
1612
1620
  m.setOptions(u).then(function(T) {
1613
- !k && u.onFirstUpdate && u.onFirstUpdate(T);
1621
+ !$ && u.onFirstUpdate && u.onFirstUpdate(T);
1614
1622
  });
1615
1623
  function V() {
1616
1624
  c.orderedModifiers.forEach(function(T) {
1617
- var E = T.name, A = T.options, W = A === void 0 ? {} : A, w = T.effect;
1625
+ var E = T.name, D = T.options, W = D === void 0 ? {} : D, w = T.effect;
1618
1626
  if (typeof w == "function") {
1619
1627
  var S = w({
1620
1628
  state: c,
@@ -1627,7 +1635,7 @@ function ta(e) {
1627
1635
  }
1628
1636
  });
1629
1637
  }
1630
- function $() {
1638
+ function k() {
1631
1639
  x.forEach(function(T) {
1632
1640
  return T();
1633
1641
  }), x = [];
@@ -1635,53 +1643,53 @@ function ta(e) {
1635
1643
  return m;
1636
1644
  };
1637
1645
  }
1638
- var ra = [Tn, Fn, $n, fn, _n, Wn, Un, yn, Ln], na = /* @__PURE__ */ ta({
1639
- defaultModifiers: ra
1640
- }), aa = typeof global == "object" && global && global.Object === Object && global, ia = typeof self == "object" && self && self.Object === Object && self, sr = aa || ia || Function("return this")(), Ze = sr.Symbol, lr = Object.prototype, oa = lr.hasOwnProperty, sa = lr.toString, Re = Ze ? Ze.toStringTag : void 0;
1641
- function la(e) {
1642
- var t = oa.call(e, Re), r = e[Re];
1646
+ var ta = [$n, In, On, dn, Nn, zn, qn, bn, Mn], ra = /* @__PURE__ */ ea({
1647
+ defaultModifiers: ta
1648
+ }), na = typeof global == "object" && global && global.Object === Object && global, aa = typeof self == "object" && self && self.Object === Object && self, sr = na || aa || Function("return this")(), Ze = sr.Symbol, lr = Object.prototype, ia = lr.hasOwnProperty, oa = lr.toString, Ae = Ze ? Ze.toStringTag : void 0;
1649
+ function sa(e) {
1650
+ var t = ia.call(e, Ae), r = e[Ae];
1643
1651
  try {
1644
- e[Re] = void 0;
1652
+ e[Ae] = void 0;
1645
1653
  var n = !0;
1646
1654
  } catch {
1647
1655
  }
1648
- var a = sa.call(e);
1649
- return n && (t ? e[Re] = r : delete e[Re]), a;
1656
+ var a = oa.call(e);
1657
+ return n && (t ? e[Ae] = r : delete e[Ae]), a;
1650
1658
  }
1651
- var ca = Object.prototype, ua = ca.toString;
1652
- function da(e) {
1653
- return ua.call(e);
1659
+ var la = Object.prototype, ca = la.toString;
1660
+ function ua(e) {
1661
+ return ca.call(e);
1654
1662
  }
1655
- var fa = "[object Null]", pa = "[object Undefined]", Nt = Ze ? Ze.toStringTag : void 0;
1656
- function va(e) {
1657
- return e == null ? e === void 0 ? pa : fa : Nt && Nt in Object(e) ? la(e) : da(e);
1663
+ var da = "[object Null]", fa = "[object Undefined]", Nt = Ze ? Ze.toStringTag : void 0;
1664
+ function pa(e) {
1665
+ return e == null ? e === void 0 ? fa : da : Nt && Nt in Object(e) ? sa(e) : ua(e);
1658
1666
  }
1659
- function ma(e) {
1667
+ function va(e) {
1660
1668
  return e != null && typeof e == "object";
1661
1669
  }
1662
- var ga = "[object Symbol]";
1663
- function ha(e) {
1664
- return typeof e == "symbol" || ma(e) && va(e) == ga;
1670
+ var ma = "[object Symbol]";
1671
+ function ga(e) {
1672
+ return typeof e == "symbol" || va(e) && pa(e) == ma;
1665
1673
  }
1666
- var ba = /\s/;
1667
- function ya(e) {
1668
- for (var t = e.length; t-- && ba.test(e.charAt(t)); )
1674
+ var ha = /\s/;
1675
+ function ba(e) {
1676
+ for (var t = e.length; t-- && ha.test(e.charAt(t)); )
1669
1677
  ;
1670
1678
  return t;
1671
1679
  }
1672
- var wa = /^\s+/;
1680
+ var ya = /^\s+/;
1673
1681
  function xa(e) {
1674
- return e && e.slice(0, ya(e) + 1).replace(wa, "");
1682
+ return e && e.slice(0, ba(e) + 1).replace(ya, "");
1675
1683
  }
1676
1684
  function Je(e) {
1677
1685
  var t = typeof e;
1678
1686
  return e != null && (t == "object" || t == "function");
1679
1687
  }
1680
- var _t = NaN, Oa = /^[-+]0x[0-9a-f]+$/i, $a = /^0b[01]+$/i, ka = /^0o[0-7]+$/i, Ta = parseInt;
1688
+ var _t = NaN, wa = /^[-+]0x[0-9a-f]+$/i, Oa = /^0b[01]+$/i, ka = /^0o[0-7]+$/i, $a = parseInt;
1681
1689
  function It(e) {
1682
1690
  if (typeof e == "number")
1683
1691
  return e;
1684
- if (ha(e))
1692
+ if (ga(e))
1685
1693
  return _t;
1686
1694
  if (Je(e)) {
1687
1695
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -1690,46 +1698,46 @@ function It(e) {
1690
1698
  if (typeof e != "string")
1691
1699
  return e === 0 ? e : +e;
1692
1700
  e = xa(e);
1693
- var r = $a.test(e);
1694
- return r || ka.test(e) ? Ta(e.slice(2), r ? 2 : 8) : Oa.test(e) ? _t : +e;
1701
+ var r = Oa.test(e);
1702
+ return r || ka.test(e) ? $a(e.slice(2), r ? 2 : 8) : wa.test(e) ? _t : +e;
1695
1703
  }
1696
1704
  var st = function() {
1697
1705
  return sr.Date.now();
1698
- }, Sa = "Expected a function", Ca = Math.max, Pa = Math.min;
1706
+ }, Ta = "Expected a function", Sa = Math.max, Ca = Math.min;
1699
1707
  function ft(e, t, r) {
1700
- var n, a, i, l, o, s, u = 0, c = !1, x = !1, k = !0;
1708
+ var n, a, i, l, o, s, u = 0, c = !1, x = !1, $ = !0;
1701
1709
  if (typeof e != "function")
1702
- throw new TypeError(Sa);
1703
- t = It(t) || 0, Je(r) && (c = !!r.leading, x = "maxWait" in r, i = x ? Ca(It(r.maxWait) || 0, t) : i, k = "trailing" in r ? !!r.trailing : k);
1710
+ throw new TypeError(Ta);
1711
+ t = It(t) || 0, Je(r) && (c = !!r.leading, x = "maxWait" in r, i = x ? Sa(It(r.maxWait) || 0, t) : i, $ = "trailing" in r ? !!r.trailing : $);
1704
1712
  function m(p) {
1705
- var C = n, R = a;
1706
- return n = a = void 0, u = p, l = e.apply(R, C), l;
1713
+ var C = n, A = a;
1714
+ return n = a = void 0, u = p, l = e.apply(A, C), l;
1707
1715
  }
1708
1716
  function V(p) {
1709
1717
  return u = p, o = setTimeout(E, t), c ? m(p) : l;
1710
1718
  }
1711
- function $(p) {
1712
- var C = p - s, R = p - u, z = t - C;
1713
- return x ? Pa(z, i - R) : z;
1719
+ function k(p) {
1720
+ var C = p - s, A = p - u, z = t - C;
1721
+ return x ? Ca(z, i - A) : z;
1714
1722
  }
1715
1723
  function T(p) {
1716
- var C = p - s, R = p - u;
1717
- return s === void 0 || C >= t || C < 0 || x && R >= i;
1724
+ var C = p - s, A = p - u;
1725
+ return s === void 0 || C >= t || C < 0 || x && A >= i;
1718
1726
  }
1719
1727
  function E() {
1720
1728
  var p = st();
1721
1729
  if (T(p))
1722
- return A(p);
1723
- o = setTimeout(E, $(p));
1730
+ return D(p);
1731
+ o = setTimeout(E, k(p));
1724
1732
  }
1725
- function A(p) {
1726
- return o = void 0, k && n ? m(p) : (n = a = void 0, l);
1733
+ function D(p) {
1734
+ return o = void 0, $ && n ? m(p) : (n = a = void 0, l);
1727
1735
  }
1728
1736
  function W() {
1729
1737
  o !== void 0 && clearTimeout(o), u = 0, n = s = a = o = void 0;
1730
1738
  }
1731
1739
  function w() {
1732
- return o === void 0 ? l : A(st());
1740
+ return o === void 0 ? l : D(st());
1733
1741
  }
1734
1742
  function S() {
1735
1743
  var p = st(), C = T(p);
@@ -1743,18 +1751,18 @@ function ft(e, t, r) {
1743
1751
  }
1744
1752
  return S.cancel = W, S.flush = w, S;
1745
1753
  }
1746
- var Ea = "Expected a function";
1747
- function Va(e, t, r) {
1754
+ var Pa = "Expected a function";
1755
+ function Ea(e, t, r) {
1748
1756
  var n = !0, a = !0;
1749
1757
  if (typeof e != "function")
1750
- throw new TypeError(Ea);
1758
+ throw new TypeError(Pa);
1751
1759
  return Je(r) && (n = "leading" in r ? !!r.leading : n, a = "trailing" in r ? !!r.trailing : a), ft(e, t, {
1752
1760
  leading: n,
1753
1761
  maxWait: t,
1754
1762
  trailing: a
1755
1763
  });
1756
1764
  }
1757
- const Ba = (e, t) => {
1765
+ const Va = (e, t) => {
1758
1766
  const r = (n) => {
1759
1767
  const a = e.value, i = n.target;
1760
1768
  !a || !i || !(i instanceof Node) || a.contains(i) || t(n);
@@ -1764,7 +1772,7 @@ const Ba = (e, t) => {
1764
1772
  }), Ve(() => {
1765
1773
  document.removeEventListener("click", r, !0);
1766
1774
  });
1767
- }, Da = 80, pt = /* @__PURE__ */ G({
1775
+ }, Ba = 80, pt = /* @__PURE__ */ G({
1768
1776
  name: "Popover",
1769
1777
  __name: "Popover",
1770
1778
  props: {
@@ -1784,13 +1792,13 @@ const Ba = (e, t) => {
1784
1792
  emits: ["visible-change", "click-outside", "scroll"],
1785
1793
  setup(e, { expose: t, emit: r }) {
1786
1794
  const n = I(!1), a = e, i = h(() => a.preserveContentMount || n.value), l = h(() => !a.preserveContentMount || n.value), o = r, s = I(), u = I(), c = I();
1787
- let x = null, k = je({}), m = je({});
1788
- const V = (f) => typeof f == "number" ? `${f}px` : f, $ = h(() => {
1795
+ let x = null, $ = je({}), m = je({});
1796
+ const V = (f) => typeof f == "number" ? `${f}px` : f, k = h(() => {
1789
1797
  const f = a.maxPopperHeight;
1790
1798
  return f != null && f !== "";
1791
1799
  }), T = h(() => {
1792
1800
  const f = {}, g = a.popperWidth;
1793
- if (g != null && g !== "" && (f.width = V(g)), $.value) {
1801
+ if (g != null && g !== "" && (f.width = V(g)), k.value) {
1794
1802
  const P = a.maxPopperHeight;
1795
1803
  f.maxHeight = V(P), f.overflowY = "auto", f.scrollbarWidth = "none", f.msOverflowStyle = "none";
1796
1804
  }
@@ -1806,38 +1814,38 @@ const Ba = (e, t) => {
1806
1814
  }
1807
1815
  ],
1808
1816
  ...a.popoverOptions
1809
- })), A = () => {
1817
+ })), D = () => {
1810
1818
  a.disabled || (n.value = !0, o("visible-change", !0));
1811
1819
  }, W = () => {
1812
1820
  n.value = !1, o("visible-change", !1);
1813
- }, w = ft(A, a.openDelay), S = ft(W, a.closeDelay), p = () => {
1821
+ }, w = ft(D, a.openDelay), S = ft(W, a.closeDelay), p = () => {
1814
1822
  a.disabled || (S.cancel(), w());
1815
1823
  }, C = () => {
1816
1824
  w.cancel(), S();
1817
1825
  };
1818
- Ba(s, () => {
1826
+ Va(s, () => {
1819
1827
  a.trigger === "click" && n.value && !a.manual && C(), n.value && o("click-outside", !0);
1820
1828
  });
1821
- const R = () => {
1829
+ const A = () => {
1822
1830
  a.disabled || (n.value ? C() : p());
1823
1831
  }, z = () => {
1824
- a.trigger === "hover" ? (m.mouseenter = p, k.mouseleave = C) : a.trigger === "click" && (m.click = R);
1832
+ a.trigger === "hover" ? (m.mouseenter = p, $.mouseleave = C) : a.trigger === "click" && (m.click = A);
1825
1833
  };
1826
1834
  J(
1827
1835
  () => n.value,
1828
1836
  (f) => {
1829
- f && (u.value && c.value ? x = na(u.value, c.value, E.value) : x?.destroy());
1837
+ f && (u.value && c.value ? x = ra(u.value, c.value, E.value) : x?.destroy());
1830
1838
  },
1831
1839
  { flush: "post" }
1832
1840
  ), J(
1833
1841
  () => a.manual,
1834
1842
  (f) => {
1835
- f ? (m = {}, k = {}) : z();
1843
+ f ? (m = {}, $ = {}) : z();
1836
1844
  }
1837
1845
  ), J(
1838
1846
  () => a.trigger,
1839
1847
  (f, g) => {
1840
- f !== g && (m = {}, k = {}, z());
1848
+ f !== g && (m = {}, $ = {}, z());
1841
1849
  }
1842
1850
  ), J(
1843
1851
  () => a.disabled,
@@ -1847,22 +1855,22 @@ const Ba = (e, t) => {
1847
1855
  ), et(() => {
1848
1856
  a.manual || z();
1849
1857
  });
1850
- const d = Va((f) => {
1858
+ const d = Ea((f) => {
1851
1859
  const g = f.target;
1852
1860
  o("scroll", { scrollTop: g.scrollTop, scrollLeft: g.scrollLeft });
1853
- }, Da);
1861
+ }, Ba);
1854
1862
  return Ve(() => {
1855
1863
  d.cancel(), x?.destroy();
1856
1864
  }), t({
1857
1865
  isOpen: n,
1858
1866
  open: p,
1859
1867
  close: C
1860
- }), (f, g) => (y(), O("div", xe({
1868
+ }), (f, g) => (y(), O("div", we({
1861
1869
  class: "cregis-popover",
1862
1870
  ref_key: "popoverRef",
1863
1871
  ref: s
1864
- }, Vt(ae(k), !0)), [
1865
- D("div", xe({
1872
+ }, Vt(ae($), !0)), [
1873
+ R("div", we({
1866
1874
  class: ["cregis-popover__trigger", { "cregis-popover__trigger--disabled": e.disabled }],
1867
1875
  ref_key: "popoverTriggerRef",
1868
1876
  ref: u
@@ -1873,7 +1881,7 @@ const Ba = (e, t) => {
1873
1881
  default: Z(() => [
1874
1882
  i.value ? Le((y(), O("div", {
1875
1883
  key: 0,
1876
- class: L(["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": $.value }]),
1884
+ class: L(["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": k.value }]),
1877
1885
  ref_key: "popoverContentRef",
1878
1886
  ref: c,
1879
1887
  style: ie(T.value),
@@ -1889,16 +1897,16 @@ const Ba = (e, t) => {
1889
1897
  })
1890
1898
  ], 16));
1891
1899
  }
1892
- }), cr = Symbol("CregisSelect"), Aa = { class: "cregis-select__trigger-label" }, Ra = { class: "cregis-select__selected" }, za = {
1900
+ }), cr = Symbol("CregisSelect"), Ra = { class: "cregis-select__trigger-label" }, Da = { class: "cregis-select__selected" }, Aa = {
1893
1901
  key: 1,
1894
1902
  class: "cregis-select__placeholder"
1895
- }, Wa = {
1903
+ }, za = {
1896
1904
  key: 0,
1897
1905
  class: "cregis-select__dropdown-empty"
1898
- }, Ma = {
1906
+ }, Wa = {
1899
1907
  key: 2,
1900
1908
  class: "cregis-select__dropdown-filter-empty"
1901
- }, La = { class: "cregis-select__dropdown-content" }, li = /* @__PURE__ */ G({
1909
+ }, Ma = { class: "cregis-select__dropdown-content" }, si = /* @__PURE__ */ G({
1902
1910
  name: "Select",
1903
1911
  __name: "Select",
1904
1912
  props: {
@@ -1914,7 +1922,8 @@ const Ba = (e, t) => {
1914
1922
  noMatchText: { default: "No matching data" },
1915
1923
  triggerWidth: { default: "296px" },
1916
1924
  popperWidth: {},
1917
- maxPopperHeight: {}
1925
+ maxPopperHeight: {},
1926
+ searchText: { default: "search" }
1918
1927
  },
1919
1928
  emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
1920
1929
  setup(e, { emit: t }) {
@@ -1924,12 +1933,12 @@ const Ba = (e, t) => {
1924
1933
  l !== null && (clearTimeout(l), l = null);
1925
1934
  }, s = (b) => {
1926
1935
  i.value = b, n("visible-change", b), !b && r.filterable && (w.value = "", S.value = "", o());
1927
- }, u = (b) => typeof b == "number" ? `n:${b}` : `s:${b}`, c = je({}), x = je({}), k = I(0), m = I(null), V = (b, U, K) => {
1936
+ }, u = (b) => typeof b == "number" ? `n:${b}` : `s:${b}`, c = je({}), x = je({}), $ = I(0), m = I(null), V = (b, U, K) => {
1928
1937
  const ue = u(b);
1929
- return k.value++, c[ue] = U, x[ue] = K ?? U, () => {
1930
- k.value--, delete c[ue], delete x[ue];
1938
+ return $.value++, c[ue] = U, x[ue] = K ?? U, () => {
1939
+ $.value--, delete c[ue], delete x[ue];
1931
1940
  };
1932
- }, $ = h(() => k.value === 0);
1941
+ }, k = h(() => $.value === 0);
1933
1942
  J(
1934
1943
  () => r.modelValue,
1935
1944
  (b) => {
@@ -1947,13 +1956,13 @@ const Ba = (e, t) => {
1947
1956
  if (!T.value) return "";
1948
1957
  const b = r.modelValue;
1949
1958
  return m.value?.value === b ? m.value.label : c[u(b)] ?? String(b);
1950
- }), A = (b) => r.modelValue === b, W = (b, U) => {
1959
+ }), D = (b) => r.modelValue === b, W = (b, U) => {
1951
1960
  r.disabled || (m.value = { value: b, label: U }, n("update:modelValue", b), n("change", b), a.value?.close());
1952
1961
  }, w = I(""), S = I(""), p = h(() => S.value.trim().toLowerCase()), C = h(() => {
1953
1962
  const b = p.value;
1954
1963
  return !r.filterable || !b ? !0 : Object.keys(c).some((U) => (x[U] ?? c[U]).toLowerCase().includes(b));
1955
- }), R = h(
1956
- () => r.filterable && !!p.value && !C.value && !$.value
1964
+ }), A = h(
1965
+ () => r.filterable && !!p.value && !C.value && !k.value
1957
1966
  ), z = () => {
1958
1967
  r.filterable && (o(), l = setTimeout(() => {
1959
1968
  S.value = w.value.trim(), l = null;
@@ -1976,7 +1985,7 @@ const Ba = (e, t) => {
1976
1985
  modelValue: h(() => r.modelValue),
1977
1986
  disabled: h(() => !!r.disabled),
1978
1987
  selectOption: W,
1979
- isOptionSelected: A,
1988
+ isOptionSelected: D,
1980
1989
  registerOption: V,
1981
1990
  filterQuery: p
1982
1991
  });
@@ -2005,11 +2014,11 @@ const Ba = (e, t) => {
2005
2014
  onScroll: ce
2006
2015
  }, {
2007
2016
  reference: Z(() => [
2008
- D("div", {
2017
+ R("div", {
2009
2018
  class: L(["cregis-select__trigger", { [`cregis-select__trigger--${e.size}`]: e.size, [`cregis-select__trigger--${e.type}`]: e.type }]),
2010
2019
  style: ie(N.value)
2011
2020
  }, [
2012
- D("div", Aa, [
2021
+ R("div", Ra, [
2013
2022
  T.value ? Y(b.$slots, "label", {
2014
2023
  key: 0,
2015
2024
  modelValue: e.modelValue,
@@ -2017,10 +2026,10 @@ const Ba = (e, t) => {
2017
2026
  placeholder: e.placeholder,
2018
2027
  hasSelection: T.value
2019
2028
  }, () => [
2020
- D("p", Ra, j(E.value), 1)
2021
- ]) : (y(), O("p", za, j(e.placeholder), 1))
2029
+ R("p", Da, j(E.value), 1)
2030
+ ]) : (y(), O("p", Aa, j(e.placeholder), 1))
2022
2031
  ]),
2023
- D("span", {
2032
+ R("span", {
2024
2033
  class: L(["cregis-select__icon", { "is-open": i.value }])
2025
2034
  }, [
2026
2035
  X(ae(Kt), {
@@ -2031,18 +2040,18 @@ const Ba = (e, t) => {
2031
2040
  ], 6)
2032
2041
  ]),
2033
2042
  default: Z(() => [
2034
- D("div", {
2035
- class: L(["cregis-select__dropdown", { "is-empty": $.value }])
2043
+ R("div", {
2044
+ class: L(["cregis-select__dropdown", { "is-empty": k.value }])
2036
2045
  }, [
2037
- $.value ? (y(), O("p", Wa, j(e.noDataText), 1)) : q("", !0),
2038
- e.filterable && !$.value ? (y(), O("div", {
2046
+ k.value ? (y(), O("p", za, j(e.noDataText), 1)) : q("", !0),
2047
+ e.filterable && !k.value ? (y(), O("div", {
2039
2048
  key: 1,
2040
2049
  class: L(["cregis-select__dropdown-filter", { "backdrop-fixed-header": de.value > 10 }])
2041
2050
  }, [
2042
2051
  X(Qt, {
2043
2052
  modelValue: w.value,
2044
2053
  "onUpdate:modelValue": U[0] || (U[0] = (K) => w.value = K),
2045
- placeholder: "search",
2054
+ placeholder: e.searchText,
2046
2055
  width: F.value,
2047
2056
  size: "small",
2048
2057
  clearable: "",
@@ -2053,10 +2062,10 @@ const Ba = (e, t) => {
2053
2062
  X(ae(Xt), { size: "14px" })
2054
2063
  ]),
2055
2064
  _: 1
2056
- }, 8, ["modelValue", "width"])
2065
+ }, 8, ["modelValue", "placeholder", "width"])
2057
2066
  ], 2)) : q("", !0),
2058
- R.value ? (y(), O("p", Ma, j(e.noMatchText), 1)) : q("", !0),
2059
- D("div", La, [
2067
+ A.value ? (y(), O("p", Wa, j(e.noMatchText), 1)) : q("", !0),
2068
+ R("div", Ma, [
2060
2069
  Y(b.$slots, "default")
2061
2070
  ])
2062
2071
  ], 2)
@@ -2065,7 +2074,7 @@ const Ba = (e, t) => {
2065
2074
  }, 8, ["popper-width", "placement", "disabled", "max-popper-height"])
2066
2075
  ], 2));
2067
2076
  }
2068
- }), ja = ["aria-selected"], ci = /* @__PURE__ */ G({
2077
+ }), La = ["aria-selected"], li = /* @__PURE__ */ G({
2069
2078
  name: "Option",
2070
2079
  __name: "Option",
2071
2080
  props: {
@@ -2099,28 +2108,28 @@ const Ba = (e, t) => {
2099
2108
  disabled: !!e.disabled,
2100
2109
  selected: l.value
2101
2110
  }, () => [
2102
- $e(j(e.label), 1)
2111
+ ke(j(e.label), 1)
2103
2112
  ])
2104
- ], 10, ja)), [
2113
+ ], 10, La)), [
2105
2114
  [mt, u.value]
2106
2115
  ]);
2107
2116
  }
2108
- }), Na = { class: "cregis-cascader__trigger-label" }, _a = { class: "cregis-cascader__selected" }, Ia = {
2117
+ }), ja = { class: "cregis-cascader__trigger-label" }, Na = { class: "cregis-cascader__selected" }, _a = {
2109
2118
  key: 1,
2110
2119
  class: "cregis-cascader__placeholder"
2111
- }, Fa = {
2120
+ }, Ia = {
2112
2121
  key: 0,
2113
2122
  class: "cregis-cascader__dropdown-empty"
2114
- }, Ha = {
2123
+ }, Fa = {
2115
2124
  key: 2,
2116
2125
  class: "cregis-cascader__dropdown-filter-empty"
2117
- }, qa = { class: "cregis-cascader__dropdown-content" }, Ua = {
2126
+ }, Ha = { class: "cregis-cascader__dropdown-content" }, qa = {
2118
2127
  key: 0,
2119
2128
  class: "cregis-cascader__dropdown-item-popover"
2120
- }, Ya = { class: "cregis-cascader__suboption-amount-container" }, Xa = {
2129
+ }, Ua = { class: "cregis-cascader__suboption-amount-container" }, Ya = {
2121
2130
  key: 0,
2122
2131
  class: "cregis-cascader__suboption-amount"
2123
- }, Ka = { class: "cregis-cascader__suboption-panel" }, Qa = ["onClick"], Ga = ["onClick"], ui = /* @__PURE__ */ G({
2132
+ }, Xa = { class: "cregis-cascader__suboption-panel" }, Ka = ["onClick"], Qa = ["onClick"], ci = /* @__PURE__ */ G({
2124
2133
  name: "Cascader",
2125
2134
  __name: "Cascader",
2126
2135
  props: {
@@ -2140,7 +2149,8 @@ const Ba = (e, t) => {
2140
2149
  subPopperWidth: { default: "200px" },
2141
2150
  maxPopperHeight: { default: 300 },
2142
2151
  offset: { default: () => [0, 0] },
2143
- showSubOptionAmount: { type: Boolean, default: !0 }
2152
+ showSubOptionAmount: { type: Boolean, default: !0 },
2153
+ searchText: { default: "search" }
2144
2154
  },
2145
2155
  emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
2146
2156
  setup(e, { emit: t }) {
@@ -2161,18 +2171,18 @@ const Ba = (e, t) => {
2161
2171
  v || (s.value = "", u.value = "", o());
2162
2172
  }
2163
2173
  ), Ve(() => o());
2164
- const k = (v) => {
2174
+ const $ = (v) => {
2165
2175
  n("filter-input", String(v ?? ""));
2166
2176
  }, m = () => {
2167
2177
  u.value = "", o(), n("filter-clear");
2168
- }, V = (v) => (v.filterText ?? v.label).toLowerCase(), $ = (v) => {
2178
+ }, V = (v) => (v.filterText ?? v.label).toLowerCase(), k = (v) => {
2169
2179
  const M = c.value;
2170
2180
  return !M || V(v).includes(M) ? !0 : (v.children ?? []).some((ne) => V(ne).includes(M));
2171
2181
  }, T = (v, M) => {
2172
2182
  const B = c.value;
2173
2183
  return !B || V(v).includes(B) ? !0 : V(M).includes(B);
2174
- }, E = h(() => r.options.filter((v) => $(v))), A = h(() => r.options.length === 0), W = h(() => (c.value, r.options.some((v) => $(v)))), w = h(
2175
- () => r.filterable && !!u.value.trim() && !W.value && !A.value
2184
+ }, E = h(() => r.options.filter((v) => k(v))), D = h(() => r.options.length === 0), W = h(() => (c.value, r.options.some((v) => k(v)))), w = h(
2185
+ () => r.filterable && !!u.value.trim() && !W.value && !D.value
2176
2186
  ), S = (v) => {
2177
2187
  i.value = v, n("visible-change", v), !v && r.filterable && (s.value = "", u.value = "", o());
2178
2188
  }, p = I(null), C = (v) => {
@@ -2200,7 +2210,7 @@ const Ba = (e, t) => {
2200
2210
  primary: void 0,
2201
2211
  sub: void 0
2202
2212
  };
2203
- }, R = h(() => {
2213
+ }, A = h(() => {
2204
2214
  const v = r.modelValue;
2205
2215
  return v == null || v === "" ? {
2206
2216
  level: 0,
@@ -2224,7 +2234,7 @@ const Ba = (e, t) => {
2224
2234
  p.value !== null && p.value.value !== v && (p.value = null);
2225
2235
  }
2226
2236
  );
2227
- const z = h(() => R.value.level > 0), d = h(() => R.value.label), f = h(() => r.modelValue), g = h(() => d.value), P = h(() => R.value.level), F = h(() => R.value.primary), H = h(() => R.value.sub), N = (v) => (v.children?.length ?? 0) > 0, _ = (v) => r.modelValue === v, de = (v) => {
2237
+ const z = h(() => A.value.level > 0), d = h(() => A.value.label), f = h(() => r.modelValue), g = h(() => d.value), P = h(() => A.value.level), F = h(() => A.value.primary), H = h(() => A.value.sub), N = (v) => (v.children?.length ?? 0) > 0, _ = (v) => r.modelValue === v, de = (v) => {
2228
2238
  const M = r.modelValue;
2229
2239
  return M == null || M === "" ? !1 : (v.children ?? []).some((B) => B.value === M);
2230
2240
  }, ce = (v, M) => {
@@ -2241,7 +2251,7 @@ const Ba = (e, t) => {
2241
2251
  overflowY: "auto"
2242
2252
  })), ye = { strategy: "fixed" }, Te = h(() => r.align === "center" ? "bottom" : r.align === "left" ? "bottom-start" : "bottom-end"), me = h(() => ({
2243
2253
  width: U(r.triggerWidth)
2244
- })), Be = h(() => r.size === "large" ? "20px" : r.size === "medium" ? "14px" : "12px"), He = I(0), De = (v) => {
2254
+ })), Be = h(() => r.size === "large" ? "20px" : r.size === "medium" ? "14px" : "12px"), He = I(0), Re = (v) => {
2245
2255
  const M = v.target;
2246
2256
  He.value = M.scrollTop;
2247
2257
  }, rt = [-16, -8];
@@ -2276,7 +2286,7 @@ const Ba = (e, t) => {
2276
2286
  class: L(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
2277
2287
  style: ie(me.value)
2278
2288
  }, [
2279
- D("div", Na, [
2289
+ R("div", ja, [
2280
2290
  z.value ? Y(v.$slots, "label", {
2281
2291
  key: 0,
2282
2292
  modelValue: f.value,
@@ -2287,10 +2297,10 @@ const Ba = (e, t) => {
2287
2297
  placeholder: e.placeholder,
2288
2298
  hasSelection: z.value
2289
2299
  }, () => [
2290
- D("p", _a, j(d.value), 1)
2291
- ]) : (y(), O("p", Ia, j(e.placeholder), 1))
2300
+ R("p", Na, j(d.value), 1)
2301
+ ]) : (y(), O("p", _a, j(e.placeholder), 1))
2292
2302
  ]),
2293
- D("span", {
2303
+ R("span", {
2294
2304
  class: L(["cregis-cascader__icon", { "is-open": i.value }])
2295
2305
  }, [
2296
2306
  X(ae(Kt), {
@@ -2301,39 +2311,39 @@ const Ba = (e, t) => {
2301
2311
  ], 6))
2302
2312
  ]),
2303
2313
  default: Z(() => [
2304
- D("div", {
2305
- class: L(["cregis-cascader__dropdown", { "is-empty": A.value }]),
2314
+ R("div", {
2315
+ class: L(["cregis-cascader__dropdown", { "is-empty": D.value }]),
2306
2316
  style: ie(fe.value),
2307
- onScroll: De
2317
+ onScroll: Re
2308
2318
  }, [
2309
- A.value ? (y(), O("p", Fa, j(e.noDataText), 1)) : q("", !0),
2310
- e.filterable && !A.value ? (y(), O("div", {
2319
+ D.value ? (y(), O("p", Ia, j(e.noDataText), 1)) : q("", !0),
2320
+ e.filterable && !D.value ? (y(), O("div", {
2311
2321
  key: 1,
2312
2322
  class: L(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": He.value > 10 }])
2313
2323
  }, [
2314
2324
  X(Qt, {
2315
2325
  modelValue: s.value,
2316
2326
  "onUpdate:modelValue": M[0] || (M[0] = (B) => s.value = B),
2317
- placeholder: "search",
2327
+ placeholder: e.searchText,
2318
2328
  width: he.value,
2319
2329
  size: "small",
2320
2330
  clearable: "",
2321
- onInput: k,
2331
+ onInput: $,
2322
2332
  onClear: m
2323
2333
  }, {
2324
2334
  prefix: Z(() => [
2325
2335
  X(ae(Xt), { size: "14px" })
2326
2336
  ]),
2327
2337
  _: 1
2328
- }, 8, ["modelValue", "width"])
2338
+ }, 8, ["modelValue", "placeholder", "width"])
2329
2339
  ], 2)) : q("", !0),
2330
- w.value ? (y(), O("p", Ha, j(e.noMatchText), 1)) : q("", !0),
2331
- D("ul", qa, [
2340
+ w.value ? (y(), O("p", Fa, j(e.noMatchText), 1)) : q("", !0),
2341
+ R("ul", Ha, [
2332
2342
  (y(!0), O(lt, null, ct(E.value, (B, ne) => (y(), O("li", {
2333
2343
  key: B.value,
2334
2344
  class: L(["cregis-cascader__dropdown-item", { "is-disabled": B.disabled }])
2335
2345
  }, [
2336
- N(B) ? (y(), O("div", Ua, [
2346
+ N(B) ? (y(), O("div", qa, [
2337
2347
  X(pt, {
2338
2348
  trigger: "hover",
2339
2349
  placement: "right-start",
@@ -2344,7 +2354,7 @@ const Ba = (e, t) => {
2344
2354
  disabled: !!B.disabled || !!e.disabled
2345
2355
  }, {
2346
2356
  reference: Z(() => [
2347
- D("div", {
2357
+ R("div", {
2348
2358
  class: L(["cregis-cascader__suboption-trigger", {
2349
2359
  "is-disabled": B.disabled,
2350
2360
  "is-parent-active": de(B)
@@ -2362,10 +2372,10 @@ const Ba = (e, t) => {
2362
2372
  selected: _(B.value),
2363
2373
  isParentOfSelected: de(B)
2364
2374
  }, () => [
2365
- D("p", null, j(B.label), 1)
2375
+ R("p", null, j(B.label), 1)
2366
2376
  ]),
2367
- D("div", Ya, [
2368
- e.showSubOptionAmount ? (y(), O("div", Xa, j(B.children.length), 1)) : q("", !0),
2377
+ R("div", Ua, [
2378
+ e.showSubOptionAmount ? (y(), O("div", Ya, j(B.children.length), 1)) : q("", !0),
2369
2379
  X(ae(br), {
2370
2380
  size: "14px",
2371
2381
  color: "currentColor"
@@ -2374,7 +2384,7 @@ const Ba = (e, t) => {
2374
2384
  ], 2)
2375
2385
  ]),
2376
2386
  default: Z(() => [
2377
- D("div", Ka, [
2387
+ R("div", Xa, [
2378
2388
  (y(!0), O(lt, null, ct(B.children, (Q, nt) => Le((y(), O("div", {
2379
2389
  key: Q.value,
2380
2390
  class: L(["cregis-cascader__suboption-row", {
@@ -2382,7 +2392,7 @@ const Ba = (e, t) => {
2382
2392
  "is-disabled": Q.disabled
2383
2393
  }]),
2384
2394
  role: "menuitem",
2385
- onClick: ($t) => ce(B, Q)
2395
+ onClick: (kt) => ce(B, Q)
2386
2396
  }, [
2387
2397
  Y(v.$slots, "subOption", {
2388
2398
  modelValue: f.value,
@@ -2397,9 +2407,9 @@ const Ba = (e, t) => {
2397
2407
  selected: _(Q.value),
2398
2408
  disabled: !!Q.disabled
2399
2409
  }, () => [
2400
- $e(j(Q.label), 1)
2410
+ ke(j(Q.label), 1)
2401
2411
  ])
2402
- ], 10, Qa)), [
2412
+ ], 10, Ka)), [
2403
2413
  [mt, T(B, Q)]
2404
2414
  ])), 128))
2405
2415
  ])
@@ -2423,9 +2433,9 @@ const Ba = (e, t) => {
2423
2433
  selected: _(B.value),
2424
2434
  isParentOfSelected: !1
2425
2435
  }, () => [
2426
- D("p", null, j(B.label), 1)
2436
+ R("p", null, j(B.label), 1)
2427
2437
  ])
2428
- ], 8, Ga))
2438
+ ], 8, Qa))
2429
2439
  ], 2))), 128))
2430
2440
  ])
2431
2441
  ], 38)
@@ -2437,19 +2447,19 @@ const Ba = (e, t) => {
2437
2447
  });
2438
2448
  export {
2439
2449
  Ye as Button,
2440
- ui as Cascader,
2441
- ei as Checkbox,
2442
- ri as Divider,
2450
+ ci as Cascader,
2451
+ Ja as Checkbox,
2452
+ ti as Divider,
2443
2453
  Qt as Input,
2444
- ii as Message,
2445
- oi as Notification,
2446
- ci as Option,
2454
+ ai as Message,
2455
+ ii as Notification,
2456
+ li as Option,
2447
2457
  pt as Popover,
2448
- si as Progress,
2449
- ti as Radio,
2450
- li as Select,
2458
+ oi as Progress,
2459
+ ei as Radio,
2460
+ si as Select,
2451
2461
  Gt as TABS_KEY,
2452
- ai as TabPane,
2453
- ni as Tabs,
2462
+ ni as TabPane,
2463
+ ri as Tabs,
2454
2464
  cr as selectInjectKey
2455
2465
  };