@mobileaction/action-kit 1.1.19 → 1.1.21

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,4 +1,4 @@
1
- import { defineComponent as y, computed as c, defineAsyncComponent as oo, openBlock as a, createBlock as m, resolveDynamicComponent as Y, unref as n, normalizeClass as R, mergeProps as w, createSlots as j, renderList as A, withCtx as u, renderSlot as h, createVNode as x, createTextVNode as q, toDisplayString as z, createElementBlock as d, isRef as O, createCommentVNode as v, createElementVNode as N, ref as D, Fragment as G, useSlots as K, useAttrs as so, watch as U, Transition as X, onMounted as eo, onBeforeUnmount as to, normalizeStyle as no, h as io, createApp as ao, reactive as lo, readonly as ro, toRefs as co } from "vue";
1
+ import { defineComponent as y, computed as c, defineAsyncComponent as oo, openBlock as a, createBlock as u, resolveDynamicComponent as Y, unref as n, normalizeClass as R, mergeProps as $, createSlots as j, renderList as V, withCtx as m, renderSlot as _, createVNode as C, createTextVNode as O, toDisplayString as z, createElementBlock as d, isRef as L, createCommentVNode as f, createElementVNode as A, ref as D, Fragment as G, useSlots as K, useAttrs as so, watch as U, Transition as X, onMounted as eo, onBeforeUnmount as to, normalizeStyle as no, h as io, createApp as ao, reactive as lo, readonly as ro, toRefs as co } from "vue";
2
2
  import { Button as Q, Switch as po, Tooltip as go, Form as mo, FormItem as uo, Avatar as vo, Select as fo, InputPassword as _o, Input as ho, Textarea as yo, SelectOption as bo, Checkbox as ko, CheckboxGroup as $o, Radio as wo, RadioGroup as Co, Alert as xo, Modal as Io } from "ant-design-vue";
3
3
  const H = (t, s) => {
4
4
  const o = t[s];
@@ -35,7 +35,7 @@ const H = (t, s) => {
35
35
  Bo[s.size],
36
36
  { "animate-spin": s.spin }
37
37
  ]);
38
- return (l, r) => (a(), m(Y(n(e)), {
38
+ return (l, r) => (a(), u(Y(n(e)), {
39
39
  class: R(n(i))
40
40
  }, null, 8, ["class"]));
41
41
  }
@@ -74,7 +74,7 @@ const H = (t, s) => {
74
74
  "ak-button--disabled": l.value
75
75
  }
76
76
  ]), i = c(() => s?.loading || s?.icon), l = c(() => s?.disabled || s?.loading);
77
- return (r, p) => (a(), m(n(Q), w({
77
+ return (r, p) => (a(), u(n(Q), $({
78
78
  class: n(e),
79
79
  href: s.href,
80
80
  target: s.target,
@@ -82,21 +82,21 @@ const H = (t, s) => {
82
82
  type: n(o),
83
83
  role: "button"
84
84
  }, r.$attrs, { "prefix-cls": "antd-btn" }), j({ _: 2 }, [
85
- A(r.$slots, (_, I) => ({
86
- name: I,
87
- fn: u(() => [
88
- h(r.$slots, I)
85
+ V(r.$slots, (h, x) => ({
86
+ name: x,
87
+ fn: m(() => [
88
+ _(r.$slots, x)
89
89
  ])
90
90
  })),
91
91
  n(i) ? {
92
92
  name: "icon",
93
- fn: u(() => [
94
- s?.loading ? (a(), m(b, {
93
+ fn: m(() => [
94
+ s?.loading ? (a(), u(b, {
95
95
  key: 0,
96
96
  class: "ak-button__loader",
97
97
  spin: "",
98
98
  name: "loader"
99
- })) : (a(), m(b, {
99
+ })) : (a(), u(b, {
100
100
  key: 1,
101
101
  name: s?.icon
102
102
  }, null, 8, ["name"]))
@@ -139,37 +139,37 @@ const So = {
139
139
  ]), e = c(
140
140
  () => s.loading ? "loader" : s?.showClose ? "close-circle" : s?.tracked ? "tick-circle-bold" : "add"
141
141
  ), i = c(() => s.size === "lg" ? "sm" : "xs");
142
- return (l, r) => (a(), m(n(Q), w(l.$attrs, {
142
+ return (l, r) => (a(), u(n(Q), $(l.$attrs, {
143
143
  class: n(o),
144
144
  disabled: s?.disabled || s?.loading,
145
145
  role: "button",
146
146
  "prefix-cls": "antd-btn"
147
147
  }), j({
148
- icon: u(() => [
149
- x(b, {
148
+ icon: m(() => [
149
+ C(b, {
150
150
  spin: s?.loading,
151
151
  name: n(e),
152
152
  size: n(i)
153
153
  }, null, 8, ["spin", "name", "size"])
154
154
  ]),
155
- default: u(() => [
156
- q(" " + z(t.keyword) + " ", 1)
155
+ default: m(() => [
156
+ O(" " + z(t.keyword) + " ", 1)
157
157
  ]),
158
158
  _: 2
159
159
  }, [
160
- A(l.$slots, (p, _) => ({
161
- name: _,
162
- fn: u(() => [
163
- h(l.$slots, _)
160
+ V(l.$slots, (p, h) => ({
161
+ name: h,
162
+ fn: m(() => [
163
+ _(l.$slots, h)
164
164
  ])
165
165
  }))
166
166
  ]), 1040, ["class", "disabled"]));
167
167
  }
168
168
  });
169
- const No = {
169
+ const Ao = {
170
170
  key: 0,
171
171
  class: "ma-toggle__titles"
172
- }, Ao = {
172
+ }, No = {
173
173
  key: 0,
174
174
  class: "ma-toggle__titles__title"
175
175
  }, Vo = {
@@ -208,10 +208,10 @@ const No = {
208
208
  return (l, r) => (a(), d("div", {
209
209
  class: R(n(i))
210
210
  }, [
211
- x(n(po), w({
211
+ C(n(po), $({
212
212
  class: "ma-toggle__switch",
213
213
  checked: n(e),
214
- "onUpdate:checked": r[0] || (r[0] = (p) => O(e) ? e.value = p : null)
214
+ "onUpdate:checked": r[0] || (r[0] = (p) => L(e) ? e.value = p : null)
215
215
  }, l.$attrs, {
216
216
  onClick: r[1] || (r[1] = (p) => l.$emit("click", p)),
217
217
  disabled: o.disabled,
@@ -220,10 +220,10 @@ const No = {
220
220
  unCheckedChildren: o.unCheckedChildren,
221
221
  "prefix-cls": "antd-switch"
222
222
  }), null, 16, ["checked", "disabled", "loading", "checkedChildren", "unCheckedChildren"]),
223
- o.title || o.subTitle ? (a(), d("div", No, [
224
- o.title ? (a(), d("span", Ao, z(o.title), 1)) : v("", !0),
225
- o.subTitle ? (a(), d("span", Vo, z(o.subTitle), 1)) : v("", !0)
226
- ])) : v("", !0)
223
+ o.title || o.subTitle ? (a(), d("div", Ao, [
224
+ o.title ? (a(), d("span", No, z(o.title), 1)) : f("", !0),
225
+ o.subTitle ? (a(), d("span", Vo, z(o.subTitle), 1)) : f("", !0)
226
+ ])) : f("", !0)
227
227
  ], 2));
228
228
  }
229
229
  });
@@ -262,26 +262,26 @@ const jo = ["aria-checked", "disabled"], Do = {
262
262
  ]), l = (r) => {
263
263
  o.disabled || (e.value = r);
264
264
  };
265
- return (r, p) => (a(), d("button", w(r.$attrs, {
265
+ return (r, p) => (a(), d("button", $(r.$attrs, {
266
266
  class: n(i),
267
267
  type: "button",
268
268
  role: "switch",
269
269
  "aria-checked": n(e) === o.rightValue,
270
270
  disabled: o.disabled
271
271
  }), [
272
- N("span", {
272
+ A("span", {
273
273
  class: R({ active: o.active === o.leftValue }),
274
- onClick: p[0] || (p[0] = (_) => l(o.leftValue))
274
+ onClick: p[0] || (p[0] = (h) => l(o.leftValue))
275
275
  }, [
276
- x(b, {
276
+ C(b, {
277
277
  name: o.leftIcon
278
278
  }, null, 8, ["name"])
279
279
  ], 2),
280
- N("span", {
280
+ A("span", {
281
281
  class: R({ active: o.active === o.rightValue }),
282
- onClick: p[1] || (p[1] = (_) => l(o.rightValue))
282
+ onClick: p[1] || (p[1] = (h) => l(o.rightValue))
283
283
  }, [
284
- x(b, {
284
+ C(b, {
285
285
  name: o.rightIcon
286
286
  }, null, 8, ["name"])
287
287
  ], 2)
@@ -318,42 +318,42 @@ const Ro = { class: "ak-tooltip-overlay__content" }, To = { class: "ak-tooltip-o
318
318
  ].join(" ")), i = D(s.defaultVisible), l = () => {
319
319
  i.value = !1;
320
320
  };
321
- return (r, p) => (a(), m(n(go), w(r.$attrs, {
321
+ return (r, p) => (a(), u(n(go), $(r.$attrs, {
322
322
  visible: i.value,
323
- "onUpdate:visible": p[0] || (p[0] = (_) => i.value = _),
323
+ "onUpdate:visible": p[0] || (p[0] = (h) => i.value = h),
324
324
  class: n(o),
325
325
  placement: s.placement,
326
326
  trigger: s.trigger,
327
327
  overlayClassName: n(e),
328
328
  "prefix-cls": "antd-tooltip"
329
329
  }), {
330
- title: u(() => [
331
- s.icon ? (a(), m(b, {
330
+ title: m(() => [
331
+ s.icon ? (a(), u(b, {
332
332
  key: 0,
333
333
  size: "xs",
334
334
  name: s.icon
335
- }, null, 8, ["name"])) : v("", !0),
336
- h(r.$slots, "icon"),
337
- N("div", Ro, [
338
- N("span", To, [
339
- q(z(s.title) + " ", 1),
340
- h(r.$slots, "title")
335
+ }, null, 8, ["name"])) : f("", !0),
336
+ _(r.$slots, "icon"),
337
+ A("div", Ro, [
338
+ A("span", To, [
339
+ O(z(s.title) + " ", 1),
340
+ _(r.$slots, "title")
341
341
  ]),
342
342
  s?.description || r.$slots.description ? (a(), d("span", qo, [
343
- q(z(s.description) + " ", 1),
344
- h(r.$slots, "description")
345
- ])) : v("", !0)
343
+ O(z(s.description) + " ", 1),
344
+ _(r.$slots, "description")
345
+ ])) : f("", !0)
346
346
  ]),
347
- s.closable ? (a(), m(b, {
347
+ s.closable ? (a(), u(b, {
348
348
  key: 1,
349
349
  onClick: l,
350
350
  class: "ak-tooltip-overlay__close",
351
351
  size: "xs",
352
352
  name: "close"
353
- })) : v("", !0)
353
+ })) : f("", !0)
354
354
  ]),
355
- default: u(() => [
356
- h(r.$slots, "default")
355
+ default: m(() => [
356
+ _(r.$slots, "default")
357
357
  ]),
358
358
  _: 3
359
359
  }, 16, ["visible", "class", "placement", "trigger", "overlayClassName"]));
@@ -366,10 +366,10 @@ const Oo = {
366
366
  for (const [e, i] of s)
367
367
  o[e] = i;
368
368
  return o;
369
- }, Uo = /* @__PURE__ */ N("label", {
369
+ }, Uo = /* @__PURE__ */ A("label", {
370
370
  for: "cc-num",
371
371
  class: "hidden"
372
- }, "HubspotCollectedFormsWorkaround", -1), Ho = /* @__PURE__ */ N("input", {
372
+ }, "HubspotCollectedFormsWorkaround", -1), Ho = /* @__PURE__ */ A("input", {
373
373
  id: "cc-num",
374
374
  name: "cc-num",
375
375
  class: "hidden",
@@ -397,15 +397,15 @@ const Go = /* @__PURE__ */ Lo(Oo, [["render", Eo]]), Ko = {
397
397
  resetFields: () => e.value.resetFields(),
398
398
  scrollToField: () => e.value.scrollToField(),
399
399
  validateFields: () => e.value.validateFields()
400
- }), (I, M) => (a(), m(n(mo), w(I.$attrs, {
400
+ }), (x, M) => (a(), u(n(mo), $(x.$attrs, {
401
401
  class: "ma-form",
402
402
  "prefix-cls": "antd-form",
403
403
  ref_key: "form",
404
404
  ref: e
405
405
  }), {
406
- default: u(() => [
407
- o.nonHubspotFormsIgnore ? (a(), m(Go, { key: 0 })) : v("", !0),
408
- h(I.$slots, "default")
406
+ default: m(() => [
407
+ o.nonHubspotFormsIgnore ? (a(), u(Go, { key: 0 })) : f("", !0),
408
+ _(x.$slots, "default")
409
409
  ]),
410
410
  _: 3
411
411
  }, 16));
@@ -416,20 +416,20 @@ const Wo = {
416
416
  }, ie = /* @__PURE__ */ y({
417
417
  ...Wo,
418
418
  setup(t) {
419
- return (s, o) => (a(), m(n(uo), w(s.$attrs, {
419
+ return (s, o) => (a(), u(n(uo), $(s.$attrs, {
420
420
  class: "ma-form-item",
421
421
  "prefix-cls": "antd-form"
422
422
  }), j({ _: 2 }, [
423
- A(s.$slots, (e, i) => ({
423
+ V(s.$slots, (e, i) => ({
424
424
  name: i,
425
- fn: u(() => [
426
- h(s.$slots, i)
425
+ fn: m(() => [
426
+ _(s.$slots, i)
427
427
  ])
428
428
  }))
429
429
  ]), 1040));
430
430
  }
431
431
  });
432
- var T = /* @__PURE__ */ ((t) => (t.text = "text", t.password = "password", t.textarea = "textarea", t.number = "number", t.email = "email", t.url = "url", t.tel = "tel", t.amount = "amount", t.creditCard = "creditCard", t.userInfo = "userInfo", t))(T || {}), Z = /* @__PURE__ */ ((t) => (t.small = "small", t.medium = "medium", t.large = "large", t))(Z || {});
432
+ var q = /* @__PURE__ */ ((t) => (t.text = "text", t.password = "password", t.textarea = "textarea", t.number = "number", t.email = "email", t.url = "url", t.tel = "tel", t.amount = "amount", t.creditCard = "creditCard", t.userInfo = "userInfo", t))(q || {}), Z = /* @__PURE__ */ ((t) => (t.small = "small", t.medium = "medium", t.large = "large", t))(Z || {});
433
433
  const Jo = {
434
434
  usd: "$",
435
435
  eur: "€",
@@ -445,9 +445,9 @@ const Jo = {
445
445
  }, Qo = /* @__PURE__ */ y({
446
446
  ...Xo,
447
447
  setup(t) {
448
- return (s, o) => (a(), m(n(vo), w(s.$attrs, { "prefix-cls": "antd-avatar" }), null, 16));
448
+ return (s, o) => (a(), u(n(vo), $(s.$attrs, { "prefix-cls": "antd-avatar" }), null, 16));
449
449
  }
450
- }), Zo = { class: "dropdown-wrapper" }, os = { class: "mobile-header" }, ss = /* @__PURE__ */ N("label", null, "Select", -1), es = {
450
+ }), Zo = { class: "dropdown-wrapper" }, os = { class: "mobile-header" }, ss = /* @__PURE__ */ A("label", null, "Select", -1), es = {
451
451
  name: "MaDropdownRender"
452
452
  }, ts = /* @__PURE__ */ y({
453
453
  ...es,
@@ -474,31 +474,31 @@ const Jo = {
474
474
  s("closeDropdown");
475
475
  };
476
476
  return (r, p) => (a(), d("div", Zo, [
477
- N("div", os, [
478
- x(b, {
477
+ A("div", os, [
478
+ C(b, {
479
479
  size: "lg",
480
480
  name: "close-circle",
481
481
  onClick: l
482
482
  }),
483
483
  ss,
484
- x(E, {
484
+ C(E, {
485
485
  type: "grey-link",
486
486
  onClick: l
487
487
  }, {
488
- default: u(() => [
489
- q("Done")
488
+ default: m(() => [
489
+ O("Done")
490
490
  ]),
491
491
  _: 1
492
492
  })
493
493
  ]),
494
- x(ms, {
494
+ C(ms, {
495
495
  value: n(i),
496
- "onUpdate:value": p[0] || (p[0] = (_) => O(i) ? i.value = _ : null),
496
+ "onUpdate:value": p[0] || (p[0] = (h) => L(i) ? i.value = h : null),
497
497
  autofocus: "",
498
498
  placeholder: "Search",
499
499
  "prefix-icon": "search-normal"
500
500
  }, null, 8, ["value"]),
501
- x(e, { vnodes: t.menu }, null, 8, ["vnodes"])
501
+ C(e, { vnodes: t.menu }, null, 8, ["vnodes"])
502
502
  ]));
503
503
  }
504
504
  }), ns = {
@@ -528,6 +528,7 @@ const Jo = {
528
528
  showSearch: { type: Boolean },
529
529
  size: { default: "default" },
530
530
  suffixIcon: null,
531
+ showArrow: { type: Boolean },
531
532
  prefixIcon: null,
532
533
  open: { type: Boolean, default: !1 },
533
534
  value: { default: "" },
@@ -541,10 +542,10 @@ const Jo = {
541
542
  get() {
542
543
  return o.value;
543
544
  },
544
- set(f) {
545
- s("update:value", f);
545
+ set(v) {
546
+ s("update:value", v);
546
547
  }
547
- }), _ = c(() => [
548
+ }), h = c(() => [
548
549
  "ma-select",
549
550
  `ma-select--${o.size}`,
550
551
  {
@@ -556,113 +557,124 @@ const Jo = {
556
557
  {
557
558
  "ma-select--custom-render": r
558
559
  }
559
- ]), I = c(() => [
560
+ ]), x = c(() => [
560
561
  o?.dropdownClassName,
561
562
  "ma-select-dropdown",
562
563
  !o?.mode && (e?.prefixIcon || o?.prefixIcon) ? "ma-select-dropdown--has-prefix" : null
563
- ].join(" ")), M = c(() => o?.loading ? "loader" : o?.suffixIcon), S = () => {
564
+ ].join(" ")), M = c(() => o?.loading ? "loader" : o?.suffixIcon), S = c(() => Object.keys(e).filter((v) => !["option"].includes(v))), k = c(() => o?.showArrow || !o?.mode), I = () => {
564
565
  l.value = !0;
565
- }, k = (f) => {
566
- l.value = f, i.value = "";
567
- }, B = c(() => !r.value && o?.showSearch), g = () => typeof window.orientation < "u" || navigator.userAgent.indexOf("Mobile") !== -1 ? window.innerHeight : o?.listHeight, C = () => {
566
+ }, g = (v) => {
567
+ l.value = v, i.value = "";
568
+ }, w = c(() => !r.value && o?.showSearch), B = () => typeof window.orientation < "u" || navigator.userAgent.indexOf("Mobile") !== -1 ? window.innerHeight : o?.listHeight, P = () => {
568
569
  l.value = !1;
569
570
  };
570
- return (f, V) => (a(), m(n(fo), w({
571
+ return (v, F) => (a(), u(n(fo), $({
571
572
  value: n(p),
572
- "onUpdate:value": V[1] || (V[1] = ($) => O(p) ? p.value = $ : null)
573
- }, f.$attrs, {
574
- class: n(_),
573
+ "onUpdate:value": F[1] || (F[1] = (N) => L(p) ? p.value = N : null)
574
+ }, v.$attrs, {
575
+ class: n(h),
575
576
  allowClear: o?.allowClear,
576
577
  autoClearSearchValue: o?.autoClearSearchValue,
577
578
  autofocus: o?.autofocus,
578
579
  defaultOpen: o?.defaultOpen,
579
580
  disabled: o?.disabled || o?.loading,
580
- dropdownClassName: n(I),
581
+ dropdownClassName: n(x),
581
582
  loading: o?.loading,
582
583
  optionFilterProp: o?.optionFilterProp,
583
584
  optionLabelProp: o?.optionLabelProp,
584
585
  options: o?.options,
585
586
  placeholder: o?.placeholder,
586
587
  searchValue: i.value || void 0,
587
- showSearch: n(B),
588
+ showSearch: n(w),
589
+ showArrow: n(k),
588
590
  mode: o?.mode,
589
- "list-height": g(),
591
+ "list-height": B(),
590
592
  size: o?.size,
591
593
  open: l.value,
592
- onClick: S,
593
- onDropdownVisibleChange: k,
594
+ onClick: I,
595
+ onDropdownVisibleChange: g,
594
596
  "prefix-cls": "antd-select"
595
597
  }), j({
596
- suffixIcon: u(() => [
597
- x(b, {
598
+ suffixIcon: m(() => [
599
+ C(b, {
598
600
  spin: o?.loading,
599
601
  name: n(M) || "chevron-down"
600
602
  }, null, 8, ["spin", "name"]),
601
- f.$slots?.prefixIcon || o?.prefixIcon ? (a(), d("div", ns, [
602
- h(f.$slots, "prefixIcon", {}, () => [
603
- o?.prefixIcon ? (a(), m(b, {
603
+ v.$slots?.prefixIcon || o?.prefixIcon ? (a(), d("div", ns, [
604
+ _(v.$slots, "prefixIcon", {}, () => [
605
+ o?.prefixIcon ? (a(), u(b, {
604
606
  key: 0,
605
607
  name: o?.prefixIcon
606
- }, null, 8, ["name"])) : v("", !0)
608
+ }, null, 8, ["name"])) : f("", !0)
607
609
  ])
608
- ])) : v("", !0)
610
+ ])) : f("", !0)
609
611
  ]),
610
- removeIcon: u(() => [
611
- x(b, {
612
+ removeIcon: m(() => [
613
+ C(b, {
612
614
  name: o?.removeIcon || "close"
613
615
  }, null, 8, ["name"])
614
616
  ]),
615
617
  _: 2
616
618
  }, [
617
- A(f.$slots, ($, F) => ({
618
- name: F,
619
- fn: u(() => [
620
- h(f.$slots, F)
619
+ V(n(S), (N) => ({
620
+ name: N,
621
+ fn: m(() => [
622
+ _(v.$slots, N)
621
623
  ])
622
624
  })),
625
+ v.$slots.option ? {
626
+ name: "option",
627
+ fn: m(({ label: N, value: T }) => [
628
+ _(v.$slots, "option", {
629
+ label: N,
630
+ value: T
631
+ })
632
+ ]),
633
+ key: "0"
634
+ } : void 0,
623
635
  o?.clearIcon ? {
624
636
  name: "clearIcon",
625
- fn: u(() => [
626
- o?.clearIcon ? (a(), m(b, {
637
+ fn: m(() => [
638
+ o?.clearIcon ? (a(), u(b, {
627
639
  key: 0,
628
640
  name: o?.clearIcon
629
- }, null, 8, ["name"])) : v("", !0)
641
+ }, null, 8, ["name"])) : f("", !0)
630
642
  ]),
631
- key: "0"
643
+ key: "1"
632
644
  } : void 0,
633
645
  o?.menuItemSelectedIcon ? {
634
646
  name: "menuItemSelectedIcon",
635
- fn: u(() => [
636
- x(b, {
647
+ fn: m(() => [
648
+ C(b, {
637
649
  name: o?.menuItemSelectedIcon
638
650
  }, null, 8, ["name"])
639
651
  ]),
640
- key: "1"
652
+ key: "2"
641
653
  } : void 0,
642
- f.$slots.notFoundContent ? void 0 : {
654
+ v.$slots.notFoundContent ? void 0 : {
643
655
  name: "notFoundContent",
644
- fn: u(() => [
645
- x(b, {
656
+ fn: m(() => [
657
+ C(b, {
646
658
  size: "sm",
647
659
  name: "warning"
648
660
  }),
649
- q(" No result found! ")
661
+ O(" No result found! ")
650
662
  ]),
651
- key: "2"
663
+ key: "3"
652
664
  },
653
665
  n(r) && l.value ? {
654
666
  name: "dropdownRender",
655
- fn: u(({ menuNode: $ }) => [
656
- x(ts, {
667
+ fn: m(({ menuNode: N }) => [
668
+ C(ts, {
657
669
  filter: i.value,
658
- "onUpdate:filter": V[0] || (V[0] = (F) => i.value = F),
659
- menu: $,
660
- onCloseDropdown: C
670
+ "onUpdate:filter": F[0] || (F[0] = (T) => i.value = T),
671
+ menu: N,
672
+ onCloseDropdown: P
661
673
  }, null, 8, ["filter", "menu"])
662
674
  ]),
663
- key: "3"
675
+ key: "4"
664
676
  } : void 0
665
- ]), 1040, ["value", "class", "allowClear", "autoClearSearchValue", "autofocus", "defaultOpen", "disabled", "dropdownClassName", "loading", "optionFilterProp", "optionLabelProp", "options", "placeholder", "searchValue", "showSearch", "mode", "list-height", "size", "open"]));
677
+ ]), 1040, ["value", "class", "allowClear", "autoClearSearchValue", "autofocus", "defaultOpen", "disabled", "dropdownClassName", "loading", "optionFilterProp", "optionLabelProp", "options", "placeholder", "searchValue", "showSearch", "showArrow", "mode", "list-height", "size", "open"]));
666
678
  }
667
679
  });
668
680
  const ls = ["for"], rs = {
@@ -681,7 +693,7 @@ const ls = ["for"], rs = {
681
693
  ...gs,
682
694
  props: {
683
695
  allowClear: { type: Boolean },
684
- type: { default: T.text },
696
+ type: { default: q.text },
685
697
  size: { default: Z.small },
686
698
  title: null,
687
699
  hintText: null,
@@ -705,7 +717,7 @@ const ls = ["for"], rs = {
705
717
  "update:amountCurrency"
706
718
  ],
707
719
  setup(t, { emit: s }) {
708
- const o = t, e = so(), i = D(null), l = c(() => [T.amount, T.creditCard].includes(o.type) ? "number" : o.type === T.userInfo ? "text" : o.type), r = c(() => [
720
+ const o = t, e = so(), i = D(null), l = c(() => [q.amount, q.creditCard].includes(o.type) ? "number" : o.type === q.userInfo ? "text" : o.type), r = c(() => [
709
721
  `ma-input ak-input ak-input--${o.type} ak-input--${o.size} ${e?.class}`,
710
722
  {
711
723
  "ak-input--has-error": o.hasError
@@ -716,115 +728,115 @@ const ls = ["for"], rs = {
716
728
  {
717
729
  "ak-input--filled": o?.value
718
730
  }
719
- ]), p = c(() => ["ak-input__input", o?.inputClass]), _ = c({
731
+ ]), p = c(() => ["ak-input__input", o?.inputClass]), h = c({
720
732
  get() {
721
733
  return o.value;
722
734
  },
723
- set($) {
724
- s("update:value", $);
735
+ set(v) {
736
+ s("update:value", v);
725
737
  }
726
- }), I = c(() => o.amountCurrency ? Jo[o.amountCurrency.toLowerCase()] : null), M = c({
738
+ }), x = c(() => o.amountCurrency ? Jo[o.amountCurrency.toLowerCase()] : null), M = c({
727
739
  get() {
728
740
  return o.amountCurrency;
729
741
  },
730
- set($) {
731
- s("update:amountCurrency", $);
742
+ set(v) {
743
+ s("update:amountCurrency", v);
732
744
  }
733
- }), S = c(() => o.type === T.password ? _o : ho), k = c(() => o.type === T.password ? { "input-prefix-cls": "antd-input" } : { "prefix-cls": "antd-input" }), B = c(() => o.type === T.url ? "https" : o?.addonBefore), g = c(() => {
734
- let $ = { ...e, ...k.value };
735
- return e?.class && delete $?.class, $;
736
- }), C = ($) => {
737
- s("change", $);
738
- }, f = ($) => {
739
- s("currency-change", $);
740
- }, V = () => {
745
+ }), S = c(() => o.type === q.password ? _o : ho), k = c(() => o.type === q.password ? { "input-prefix-cls": "antd-input" } : { "prefix-cls": "antd-input" }), I = c(() => o.type === q.url ? "https" : o?.addonBefore), g = c(() => {
746
+ let v = { ...e, ...k.value };
747
+ return e?.class && delete v?.class, v;
748
+ }), w = (v) => {
749
+ s("change", v);
750
+ }, B = (v) => {
751
+ s("currency-change", v);
752
+ }, P = () => {
741
753
  i.value.focus();
742
754
  };
743
- return ($, F) => (a(), d("div", {
755
+ return (v, F) => (a(), d("div", {
744
756
  class: R(n(r))
745
757
  }, [
746
- h($.$slots, "title"),
758
+ _(v.$slots, "title"),
747
759
  o.title ? (a(), d("label", {
748
760
  key: 0,
749
- onClick: V,
761
+ onClick: P,
750
762
  class: "ak-input__title",
751
- for: $.$attrs?.id
752
- }, z(o.title), 9, ls)) : v("", !0),
763
+ for: v.$attrs?.id
764
+ }, z(o.title), 9, ls)) : f("", !0),
753
765
  o.type !== "textarea" ? (a(), d("div", rs, [
754
- (a(), m(Y(n(S)), w({
755
- value: n(_),
756
- "onUpdate:value": F[1] || (F[1] = (P) => O(_) ? _.value = P : null)
766
+ (a(), u(Y(n(S)), $({
767
+ value: n(h),
768
+ "onUpdate:value": F[1] || (F[1] = (N) => L(h) ? h.value = N : null)
757
769
  }, n(g), {
758
770
  allowClear: o?.allowClear,
759
771
  type: n(l),
760
772
  disabled: o?.disabled,
761
773
  placeholder: o?.placeholder,
762
- addonBefore: n(B),
774
+ addonBefore: n(I),
763
775
  addonAfter: t.addonAfter,
764
776
  class: n(p),
765
- onChange: C,
777
+ onChange: w,
766
778
  ref_key: "inputRef",
767
779
  ref: i
768
780
  }), j({
769
- prefix: u(() => [
770
- o.prefixIcon ? (a(), m(b, {
781
+ prefix: m(() => [
782
+ o.prefixIcon ? (a(), u(b, {
771
783
  key: 0,
772
784
  size: "xs",
773
785
  name: o.prefixIcon
774
- }, null, 8, ["name"])) : n(I) ? (a(), d("span", cs, z(n(I)), 1)) : o.type === n(T).userInfo ? (a(), m(Qo, {
786
+ }, null, 8, ["name"])) : n(x) ? (a(), d("span", cs, z(n(x)), 1)) : o.type === n(q).userInfo ? (a(), u(Qo, {
775
787
  key: 2,
776
788
  src: o.avatarUrl,
777
789
  disabled: o.disabled
778
- }, null, 8, ["src", "disabled"])) : v("", !0)
790
+ }, null, 8, ["src", "disabled"])) : f("", !0)
779
791
  ]),
780
- suffix: u(() => [
781
- o.type === "amount" ? (a(), m(as, {
792
+ suffix: m(() => [
793
+ o.type === "amount" ? (a(), u(as, {
782
794
  key: 0,
783
795
  value: n(M),
784
- "onUpdate:value": F[0] || (F[0] = (P) => O(M) ? M.value = P : null),
785
- onChange: f,
796
+ "onUpdate:value": F[0] || (F[0] = (N) => L(M) ? M.value = N : null),
797
+ onChange: B,
786
798
  dropdownClassName: "ak-input__input__ma-select__dropdown",
787
799
  options: n(Yo),
788
800
  disabled: o.disabled,
789
801
  size: "small"
790
- }, null, 8, ["value", "options", "disabled"])) : v("", !0),
791
- o.suffixIcon ? (a(), m(b, {
802
+ }, null, 8, ["value", "options", "disabled"])) : f("", !0),
803
+ o.suffixIcon ? (a(), u(b, {
792
804
  key: 1,
793
805
  size: "xs",
794
806
  name: o.suffixIcon
795
- }, null, 8, ["name"])) : v("", !0)
807
+ }, null, 8, ["name"])) : f("", !0)
796
808
  ]),
797
809
  _: 2
798
810
  }, [
799
- A($.$slots, (P, L) => ({
800
- name: L,
801
- fn: u(() => [
802
- h($.$slots, L)
811
+ V(v.$slots, (N, T) => ({
812
+ name: T,
813
+ fn: m(() => [
814
+ _(v.$slots, T)
803
815
  ])
804
816
  }))
805
817
  ]), 1040, ["value", "allowClear", "type", "disabled", "placeholder", "addonBefore", "addonAfter", "class"]))
806
- ])) : (a(), m(n(yo), w({
818
+ ])) : (a(), u(n(yo), $({
807
819
  key: 2,
808
- value: n(_),
809
- "onUpdate:value": F[2] || (F[2] = (P) => O(_) ? _.value = P : null)
820
+ value: n(h),
821
+ "onUpdate:value": F[2] || (F[2] = (N) => L(h) ? h.value = N : null)
810
822
  }, n(g), {
811
823
  class: n(p),
812
824
  disabled: o?.disabled,
813
825
  placeholder: o?.placeholder,
814
- onChange: C,
826
+ onChange: w,
815
827
  rows: 5,
816
828
  ref_key: "inputRef",
817
829
  ref: i
818
830
  }), j({ _: 2 }, [
819
- A($.$slots, (P, L) => ({
820
- name: L,
821
- fn: u(() => [
822
- h($.$slots, L)
831
+ V(v.$slots, (N, T) => ({
832
+ name: T,
833
+ fn: m(() => [
834
+ _(v.$slots, T)
823
835
  ])
824
836
  }))
825
837
  ]), 1040, ["value", "class", "disabled", "placeholder"])),
826
- h($.$slots, "hint"),
827
- o.hintText ? (a(), d("div", ps, z(o.hintText), 1)) : v("", !0)
838
+ _(v.$slots, "hint"),
839
+ o.hintText ? (a(), d("div", ps, z(o.hintText), 1)) : f("", !0)
828
840
  ], 2));
829
841
  }
830
842
  });
@@ -833,14 +845,14 @@ const us = {
833
845
  }, ae = /* @__PURE__ */ y({
834
846
  ...us,
835
847
  setup(t) {
836
- return (s, o) => (a(), m(n(bo), w(s.$attrs, {
848
+ return (s, o) => (a(), u(n(bo), $(s.$attrs, {
837
849
  class: "ma-select-option",
838
850
  "prefix-cls": "antd-select"
839
851
  }), j({ _: 2 }, [
840
- A(s.$slots, (e, i) => ({
852
+ V(s.$slots, (e, i) => ({
841
853
  name: i,
842
- fn: u(() => [
843
- h(s.$slots, i)
854
+ fn: m(() => [
855
+ _(s.$slots, i)
844
856
  ])
845
857
  }))
846
858
  ]), 1040));
@@ -862,20 +874,20 @@ const us = {
862
874
  "ak-checkbox--intermediate": typeof s?.indeterminate == "boolean"
863
875
  }
864
876
  ]);
865
- return (e, i) => (a(), m(n(ko), w(e.$attrs, {
877
+ return (e, i) => (a(), u(n(ko), $(e.$attrs, {
866
878
  class: n(o),
867
879
  disabled: s?.disabled,
868
880
  indeterminate: s?.indeterminate,
869
881
  "prefix-cls": "antd-checkbox"
870
882
  }), j({ _: 2 }, [
871
- A(e.$slots, (l, r) => ({
883
+ V(e.$slots, (l, r) => ({
872
884
  name: r,
873
- fn: u(() => [
874
- h(e.$slots, r),
885
+ fn: m(() => [
886
+ _(e.$slots, r),
875
887
  s.hint ? (a(), d("div", {
876
888
  key: r,
877
889
  class: "ak-checkbox__hint-text"
878
- }, z(s.hint), 1)) : v("", !0)
890
+ }, z(s.hint), 1)) : f("", !0)
879
891
  ])
880
892
  }))
881
893
  ]), 1040, ["class", "disabled", "indeterminate"]));
@@ -891,18 +903,18 @@ const vs = {
891
903
  },
892
904
  setup(t) {
893
905
  const s = t;
894
- return (o, e) => (a(), m(n($o), w(o.$attrs, {
906
+ return (o, e) => (a(), u(n($o), $(o.$attrs, {
895
907
  class: "ak-checkbox-group ma-checkbox-group",
896
908
  "prefix-cls": "antd-checkbox"
897
909
  }), j({ _: 2 }, [
898
- A(o.$slots, (i, l) => ({
910
+ V(o.$slots, (i, l) => ({
899
911
  name: l,
900
- fn: u(() => [
901
- h(o.$slots, l),
912
+ fn: m(() => [
913
+ _(o.$slots, l),
902
914
  s.hint ? (a(), d("div", {
903
915
  key: l,
904
916
  class: "ak-checkbox__hint-text"
905
- }, z(s.hint), 1)) : v("", !0)
917
+ }, z(s.hint), 1)) : f("", !0)
906
918
  ])
907
919
  }))
908
920
  ]), 1040));
@@ -925,7 +937,7 @@ const vs = {
925
937
  const i = (l) => {
926
938
  s("update:value", l.target.value);
927
939
  };
928
- return (l, r) => (a(), d("input", w(l.$attrs, {
940
+ return (l, r) => (a(), d("input", $(l.$attrs, {
929
941
  value: o.value,
930
942
  onInput: i,
931
943
  ref_key: "input",
@@ -952,7 +964,7 @@ const vs = {
952
964
  },
953
965
  emits: ["update:value"],
954
966
  setup(t, { emit: s }) {
955
- const o = t, e = D(null), i = D(Array.from({ length: o.length }, (g, C) => o.value[C] || null)), l = c(() => [
967
+ const o = t, e = D(null), i = D(Array.from({ length: o.length }, (g, w) => o.value[w] || null)), l = c(() => [
956
968
  "ma-numeric-input",
957
969
  `ma-numeric-input--${o.size}`,
958
970
  {
@@ -961,11 +973,11 @@ const vs = {
961
973
  {
962
974
  "ma-numeric-input--disabled": o?.disabled
963
975
  }
964
- ]), r = c(() => o?.placeholderStatus ? "0" : null), p = (g) => /^Digit[0-9]$/.test(g), _ = (g) => e.value = g, I = (g, C) => {
976
+ ]), r = c(() => o?.placeholderStatus ? "0" : null), p = (g) => /^Digit[0-9]$/.test(g), h = (g) => e.value = g, x = (g, w) => {
965
977
  switch (g.code) {
966
978
  case "Backspace":
967
979
  case "Delete":
968
- k("", C), S();
980
+ k("", w), S();
969
981
  break;
970
982
  case "ArrowLeft":
971
983
  g.preventDefault(), S();
@@ -974,25 +986,25 @@ const vs = {
974
986
  g.preventDefault(), M();
975
987
  break;
976
988
  default:
977
- p(g.code) && (g.preventDefault(), k(g.key, C), M());
989
+ p(g.code) && (g.preventDefault(), k(g.key, w), M());
978
990
  break;
979
991
  }
980
992
  }, M = () => {
981
993
  e.value < o.length && e.value++;
982
994
  }, S = () => {
983
995
  o.length >= e.value && e.value > 0 && e.value--;
984
- }, k = (g, C) => {
985
- i.value[C] = g;
986
- }, B = (g, C) => {
996
+ }, k = (g, w) => {
997
+ i.value[w] = g;
998
+ }, I = (g, w) => {
987
999
  g.preventDefault();
988
- const f = g.clipboardData.getData("text/plain").replaceAll(" ", "").replaceAll("-", "").slice(0, o.length);
989
- f.length === 1 && f.match(/^\d+$/) ? i.value[C] = f : f.match(/^\d+$/) && (i.value = f.split(""));
1000
+ const B = g.clipboardData.getData("text/plain").replaceAll(" ", "").replaceAll("-", "").slice(0, o.length);
1001
+ B.length === 1 && B.match(/^\d+$/) ? i.value[w] = B : B.match(/^\d+$/) && (i.value = B.split(""));
990
1002
  };
991
1003
  return U(
992
1004
  () => i.value,
993
1005
  (g) => {
994
- const C = g.join("");
995
- s("update:value", C);
1006
+ const w = g.join("");
1007
+ s("update:value", w);
996
1008
  },
997
1009
  { deep: !0 }
998
1010
  ), U(
@@ -1000,16 +1012,16 @@ const vs = {
1000
1012
  (g) => {
1001
1013
  g !== i.value.join("") && g && g.match(/^\d+$/) && (i.value = g.split("").slice(0, o.length));
1002
1014
  }
1003
- ), (g, C) => (a(), d("div", w({ class: n(l) }, g.$attrs), [
1004
- (a(!0), d(G, null, A(o.length, (f) => (a(), m(_s, {
1005
- focus: e.value === f - 1,
1006
- key: f,
1015
+ ), (g, w) => (a(), d("div", $({ class: n(l) }, g.$attrs), [
1016
+ (a(!0), d(G, null, V(o.length, (B) => (a(), u(_s, {
1017
+ focus: e.value === B - 1,
1018
+ key: B,
1007
1019
  placeholder: n(r),
1008
- value: i.value[f - 1],
1020
+ value: i.value[B - 1],
1009
1021
  disabled: o.disabled,
1010
- onFocus: (V) => _(f - 1),
1011
- onKeydown: (V) => I(V, f - 1),
1012
- onPaste: (V) => B(V, f - 1),
1022
+ onFocus: (P) => h(B - 1),
1023
+ onKeydown: (P) => x(P, B - 1),
1024
+ onPaste: (P) => I(P, B - 1),
1013
1025
  class: "ma-numeric-input__input"
1014
1026
  }, null, 8, ["focus", "placeholder", "value", "disabled", "onFocus", "onKeydown", "onPaste"]))), 128))
1015
1027
  ], 16));
@@ -1026,18 +1038,18 @@ const ys = {
1026
1038
  },
1027
1039
  setup(t) {
1028
1040
  const s = t, o = c(() => [`ma-radio ma-radio--${s.type}`]);
1029
- return (e, i) => (a(), m(n(wo), w(e.$attrs, {
1041
+ return (e, i) => (a(), u(n(wo), $(e.$attrs, {
1030
1042
  class: n(o),
1031
1043
  "prefix-cls": "antd-radio"
1032
1044
  }), j({ _: 2 }, [
1033
- A(e.$slots, (l, r) => ({
1045
+ V(e.$slots, (l, r) => ({
1034
1046
  name: r,
1035
- fn: u(() => [
1036
- h(e.$slots, r),
1047
+ fn: m(() => [
1048
+ _(e.$slots, r),
1037
1049
  s.hint ? (a(), d("div", {
1038
1050
  key: r,
1039
1051
  class: "ma-radio__hint-text"
1040
- }, z(s.hint), 1)) : v("", !0)
1052
+ }, z(s.hint), 1)) : f("", !0)
1041
1053
  ])
1042
1054
  }))
1043
1055
  ]), 1040, ["class"]));
@@ -1075,38 +1087,38 @@ const ks = ["aria-checked", "disabled"], $s = ["src", "alt"], ws = { class: "ma-
1075
1087
  "ma-app-track-button--loading": o.loading
1076
1088
  }
1077
1089
  ]);
1078
- return (l, r) => (a(), d("button", w({
1090
+ return (l, r) => (a(), d("button", $({
1079
1091
  class: n(i),
1080
1092
  role: "switch",
1081
1093
  "aria-checked": o.checked,
1082
1094
  disabled: o.disabled
1083
1095
  }, l.$attrs, { onClick: e }), [
1084
- N("img", {
1096
+ A("img", {
1085
1097
  src: o.appIcon,
1086
1098
  alt: o.appName,
1087
1099
  width: "40",
1088
1100
  height: "40"
1089
1101
  }, null, 8, $s),
1090
- N("span", ws, [
1091
- N("span", Cs, z(o.appName), 1),
1092
- o.appCategory ? (a(), d("span", xs, z(o?.appCategory), 1)) : v("", !0)
1102
+ A("span", ws, [
1103
+ A("span", Cs, z(o.appName), 1),
1104
+ o.appCategory ? (a(), d("span", xs, z(o?.appCategory), 1)) : f("", !0)
1093
1105
  ]),
1094
- N("span", Is, [
1095
- x(X, {
1106
+ A("span", Is, [
1107
+ C(X, {
1096
1108
  name: "fade",
1097
1109
  mode: "out-in"
1098
1110
  }, {
1099
- default: u(() => [
1100
- o.loading ? (a(), m(b, {
1111
+ default: m(() => [
1112
+ o.loading ? (a(), u(b, {
1101
1113
  key: 0,
1102
1114
  name: "loader",
1103
1115
  size: "xs",
1104
1116
  spin: ""
1105
- })) : !o.multiple || o.checked ? (a(), m(bs, {
1117
+ })) : !o.multiple || o.checked ? (a(), u(bs, {
1106
1118
  key: 1,
1107
1119
  checked: o.checked,
1108
1120
  type: "check"
1109
- }, null, 8, ["checked"])) : (a(), m(b, {
1121
+ }, null, 8, ["checked"])) : (a(), u(b, {
1110
1122
  key: 2,
1111
1123
  name: "add-circle",
1112
1124
  size: "xs"
@@ -1121,7 +1133,7 @@ const ks = ["aria-checked", "disabled"], $s = ["src", "alt"], ws = { class: "ma-
1121
1133
  const zs = { class: "ak-app-icon__logo" }, Ms = ["src"], Ss = {
1122
1134
  key: 1,
1123
1135
  class: "ak-app-icon-platform"
1124
- }, Ns = { class: "ak-app-icon__text" }, As = {
1136
+ }, As = { class: "ak-app-icon__text" }, Ns = {
1125
1137
  key: 0,
1126
1138
  class: "ak-app-name"
1127
1139
  }, Vs = {
@@ -1154,31 +1166,31 @@ const zs = { class: "ak-app-icon__logo" }, Ms = ["src"], Ss = {
1154
1166
  return (r, p) => (a(), d("div", {
1155
1167
  class: R(n(i))
1156
1168
  }, [
1157
- N("div", zs, [
1169
+ A("div", zs, [
1158
1170
  o.closable ? (a(), d("span", {
1159
1171
  key: 0,
1160
1172
  onClick: l,
1161
1173
  class: "ak-app-icon-closable"
1162
1174
  }, [
1163
- x(b, {
1175
+ C(b, {
1164
1176
  size: "xs",
1165
1177
  name: "close-circle"
1166
1178
  })
1167
- ])) : v("", !0),
1168
- N("img", {
1179
+ ])) : f("", !0),
1180
+ A("img", {
1169
1181
  class: "ak-app-icon-img",
1170
1182
  src: o.appIcon
1171
1183
  }, null, 8, Ms),
1172
1184
  o?.platform ? (a(), d("span", Ss, [
1173
- x(b, {
1185
+ C(b, {
1174
1186
  size: "xs",
1175
1187
  name: n(e)
1176
1188
  }, null, 8, ["name"])
1177
- ])) : v("", !0)
1189
+ ])) : f("", !0)
1178
1190
  ]),
1179
- N("div", Ns, [
1180
- o?.appName ? (a(), d("span", As, z(o.appName), 1)) : v("", !0),
1181
- o?.appDescription ? (a(), d("span", Vs, z(o.appDescription), 1)) : v("", !0)
1191
+ A("div", As, [
1192
+ o?.appName ? (a(), d("span", Ns, z(o.appName), 1)) : f("", !0),
1193
+ o?.appDescription ? (a(), d("span", Vs, z(o.appDescription), 1)) : f("", !0)
1182
1194
  ])
1183
1195
  ], 2));
1184
1196
  }
@@ -1188,11 +1200,11 @@ const js = {
1188
1200
  }, me = /* @__PURE__ */ y({
1189
1201
  ...js,
1190
1202
  setup(t) {
1191
- return (s, o) => (a(), m(n(Co), w(s.$attrs, { "prefix-cls": "antd-radio" }), j({ _: 2 }, [
1192
- A(s.$slots, (e, i) => ({
1203
+ return (s, o) => (a(), u(n(Co), $(s.$attrs, { "prefix-cls": "antd-radio" }), j({ _: 2 }, [
1204
+ V(s.$slots, (e, i) => ({
1193
1205
  name: i,
1194
- fn: u(() => [
1195
- h(s.$slots, i)
1206
+ fn: m(() => [
1207
+ _(s.$slots, i)
1196
1208
  ])
1197
1209
  }))
1198
1210
  ]), 1040));
@@ -1221,11 +1233,11 @@ const js = {
1221
1233
  return (e, i) => (a(), d("div", {
1222
1234
  class: R(n(o))
1223
1235
  }, [
1224
- s?.icon ? (a(), m(b, {
1236
+ s?.icon ? (a(), u(b, {
1225
1237
  key: 0,
1226
1238
  name: s?.icon
1227
- }, null, 8, ["name"])) : v("", !0),
1228
- h(e.$slots, "default")
1239
+ }, null, 8, ["name"])) : f("", !0),
1240
+ _(e.$slots, "default")
1229
1241
  ], 2));
1230
1242
  }
1231
1243
  });
@@ -1243,7 +1255,7 @@ const Rs = {
1243
1255
  },
1244
1256
  setup(t) {
1245
1257
  const s = t, o = K(), e = c(() => [`ma-alert ak-alert ak-alert--${s.variant}--${s.type}`]), i = c(() => !!s?.icon || !!o?.icon);
1246
- return (l, r) => (a(), m(n(xo), w(l.$attrs, {
1258
+ return (l, r) => (a(), u(n(xo), $(l.$attrs, {
1247
1259
  class: n(e),
1248
1260
  description: t.description,
1249
1261
  message: t.message,
@@ -1251,25 +1263,25 @@ const Rs = {
1251
1263
  showIcon: n(i),
1252
1264
  "prefix-cls": "antd-alert"
1253
1265
  }), {
1254
- closeIcon: u(() => [
1255
- x(b, {
1266
+ closeIcon: m(() => [
1267
+ C(b, {
1256
1268
  name: "close",
1257
1269
  size: "xs"
1258
1270
  })
1259
1271
  ]),
1260
- icon: u(() => [
1261
- s?.icon ? (a(), m(b, {
1272
+ icon: m(() => [
1273
+ s?.icon ? (a(), u(b, {
1262
1274
  key: 0,
1263
1275
  name: t.icon,
1264
1276
  size: "lg"
1265
- }, null, 8, ["name"])) : v("", !0),
1266
- h(l.$slots, "icon")
1277
+ }, null, 8, ["name"])) : f("", !0),
1278
+ _(l.$slots, "icon")
1267
1279
  ]),
1268
- message: u(() => [
1269
- h(l.$slots, "message")
1280
+ message: m(() => [
1281
+ _(l.$slots, "message")
1270
1282
  ]),
1271
- description: u(() => [
1272
- h(l.$slots, "description")
1283
+ description: m(() => [
1284
+ _(l.$slots, "description")
1273
1285
  ]),
1274
1286
  _: 3
1275
1287
  }, 16, ["class", "description", "message", "closable", "showIcon"]));
@@ -1302,13 +1314,13 @@ const Ts = {
1302
1314
  U(
1303
1315
  () => e.name,
1304
1316
  () => {
1305
- M(), I();
1317
+ M(), x();
1306
1318
  }
1307
1319
  );
1308
- const _ = async () => {
1320
+ const h = async () => {
1309
1321
  const { default: S } = await import("./lottie_light-b08f9446.mjs").then((k) => k.l);
1310
1322
  i = S;
1311
- }, I = async () => {
1323
+ }, x = async () => {
1312
1324
  try {
1313
1325
  const { default: S } = await H(/* @__PURE__ */ Object.assign({ "./files/fly-waiting.json": () => import("./fly-waiting-bc221374.mjs"), "./files/no-data-found.json": () => import("./no-data-found-98af8e80.mjs"), "./files/rocket.json": () => import("./rocket-21431704.mjs"), "./files/rounded-loading.json": () => import("./rounded-loading-d3184421.mjs"), "./files/sad-not-found.json": () => import("./sad-not-found-44e231b1.mjs"), "./files/success-confetti.json": () => import("./success-confetti-b9594f98.mjs") }), `./files/${e.name}.json`);
1314
1326
  r.value = i.loadAnimation({
@@ -1327,7 +1339,7 @@ const Ts = {
1327
1339
  r.value && r.value.destroy();
1328
1340
  };
1329
1341
  return eo(async () => {
1330
- await _(), I();
1342
+ await h(), x();
1331
1343
  }), to(() => {
1332
1344
  M();
1333
1345
  }), (S, k) => (a(), d("div", {
@@ -1390,17 +1402,17 @@ const Ts = {
1390
1402
  "ma-modal",
1391
1403
  "ak-modal",
1392
1404
  { [`ak-modal--${o.type}`]: !!o.type }
1393
- ]), _ = c(() => [
1405
+ ]), h = c(() => [
1394
1406
  "ak-modal__header-icon",
1395
1407
  { [`ak-modal__header-icon--${o.type}`]: !!o.type }
1396
- ]), I = () => {
1408
+ ]), x = () => {
1397
1409
  e.value = !1, s("cancel");
1398
1410
  }, M = () => {
1399
1411
  s("ok");
1400
1412
  }, S = K();
1401
- return (k, B) => (a(), m(n(Io), w(k.$attrs, {
1413
+ return (k, I) => (a(), u(n(Io), $(k.$attrs, {
1402
1414
  visible: n(e),
1403
- "onUpdate:visible": B[0] || (B[0] = (g) => O(e) ? e.value = g : null),
1415
+ "onUpdate:visible": I[0] || (I[0] = (g) => L(e) ? e.value = g : null),
1404
1416
  "prefix-cls": "antd-modal",
1405
1417
  class: n(p),
1406
1418
  closable: o.closable,
@@ -1409,55 +1421,55 @@ const Ts = {
1409
1421
  width: o.width,
1410
1422
  footer: null,
1411
1423
  onOk: M,
1412
- onCancel: I
1424
+ onCancel: x
1413
1425
  }), {
1414
- closeIcon: u(() => [
1415
- x(b, {
1426
+ closeIcon: m(() => [
1427
+ C(b, {
1416
1428
  name: "close-circle",
1417
1429
  size: "sm"
1418
1430
  })
1419
1431
  ]),
1420
- default: u(() => [
1432
+ default: m(() => [
1421
1433
  n(i) ? (a(), d("div", {
1422
1434
  key: 0,
1423
- class: R(n(_))
1435
+ class: R(n(h))
1424
1436
  }, [
1425
- x(b, { name: n(i) }, null, 8, ["name"])
1426
- ], 2)) : v("", !0),
1437
+ C(b, { name: n(i) }, null, 8, ["name"])
1438
+ ], 2)) : f("", !0),
1427
1439
  o.title || k.$slots.title ? (a(), d("h1", qs, [
1428
- h(k.$slots, "title"),
1429
- q(" " + z(o.title), 1)
1430
- ])) : v("", !0),
1431
- N("div", Ps, [
1432
- o.content ? (a(), d("div", Os, z(o.content), 1)) : v("", !0),
1433
- h(k.$slots, "content"),
1434
- h(k.$slots, "default")
1440
+ _(k.$slots, "title"),
1441
+ O(" " + z(o.title), 1)
1442
+ ])) : f("", !0),
1443
+ A("div", Ps, [
1444
+ o.content ? (a(), d("div", Os, z(o.content), 1)) : f("", !0),
1445
+ _(k.$slots, "content"),
1446
+ _(k.$slots, "default")
1435
1447
  ]),
1436
1448
  n(r) ? (a(), d("div", Ls, [
1437
- o.okText ? (a(), m(E, w({
1449
+ o.okText ? (a(), u(E, $({
1438
1450
  key: 0,
1439
1451
  onClick: M,
1440
1452
  class: "ak-modal__ok-button",
1441
1453
  variant: n(l),
1442
1454
  loading: o.confirmLoading
1443
1455
  }, o.okButtonProps), {
1444
- default: u(() => [
1445
- q(z(o.okText), 1)
1456
+ default: m(() => [
1457
+ O(z(o.okText), 1)
1446
1458
  ]),
1447
1459
  _: 1
1448
- }, 16, ["variant", "loading"])) : v("", !0),
1449
- o.cancelText ? (a(), m(E, w({
1460
+ }, 16, ["variant", "loading"])) : f("", !0),
1461
+ o.cancelText ? (a(), u(E, $({
1450
1462
  key: 1,
1451
- onClick: I,
1463
+ onClick: x,
1452
1464
  type: "grey-link"
1453
1465
  }, o.cancelButtonProps), {
1454
- default: u(() => [
1455
- q(z(o.cancelText), 1)
1466
+ default: m(() => [
1467
+ O(z(o.cancelText), 1)
1456
1468
  ]),
1457
1469
  _: 1
1458
- }, 16)) : v("", !0),
1459
- h(k.$slots, "footer")
1460
- ])) : v("", !0)
1470
+ }, 16)) : f("", !0),
1471
+ _(k.$slots, "footer")
1472
+ ])) : f("", !0)
1461
1473
  ]),
1462
1474
  _: 3
1463
1475
  }, 16, ["visible", "class", "closable", "mask", "mask-closable", "width"]));
@@ -1494,9 +1506,9 @@ const Es = {
1494
1506
  "ak-rate__item__icon--filled": s.value + 0.5 >= s.starRate
1495
1507
  }
1496
1508
  ]), e = c(() => s.starRate - 0.5 === s.value), i = c(() => e.value ? "star-half-colored" : "star-bold");
1497
- return (l, r) => (a(), m(X, { name: "fade" }, {
1498
- default: u(() => [
1499
- x(b, {
1509
+ return (l, r) => (a(), u(X, { name: "fade" }, {
1510
+ default: m(() => [
1511
+ C(b, {
1500
1512
  class: R(n(o)),
1501
1513
  name: n(i),
1502
1514
  size: t.iconSize
@@ -1542,32 +1554,32 @@ const Es = {
1542
1554
  }
1543
1555
  k(e.value);
1544
1556
  }
1545
- }, _ = (B) => {
1546
- o?.disabled || (e.value = B);
1547
- }, I = () => {
1557
+ }, h = (I) => {
1558
+ o?.disabled || (e.value = I);
1559
+ }, x = () => {
1548
1560
  e.value = 0;
1549
- }, M = (B, g) => {
1550
- o?.allowHalf && (B.offsetX < B.target.clientWidth / 2 ? e.value = g - 0.5 : e.value = g);
1551
- }, S = (B) => {
1552
- o?.disabled || (B.key === "ArrowRight" && o.value < 5 ? k(o.value + (o.allowHalf ? 0.5 : 1)) : B.key === "ArrowLeft" && o.value > 0 && k(o.value - (o.allowHalf ? 0.5 : 1)));
1553
- }, k = (B) => {
1554
- s("update:value", B), s("change", B);
1561
+ }, M = (I, g) => {
1562
+ !o?.allowHalf || o.disabled || (I.offsetX < I.target.clientWidth / 2 ? e.value = g - 0.5 : e.value = g);
1563
+ }, S = (I) => {
1564
+ o?.disabled || (I.key === "ArrowRight" && o.value < 5 ? k(o.value + (o.allowHalf ? 0.5 : 1)) : I.key === "ArrowLeft" && o.value > 0 && k(o.value - (o.allowHalf ? 0.5 : 1)));
1565
+ }, k = (I) => {
1566
+ s("update:value", I), s("change", I);
1555
1567
  };
1556
- return (B, g) => (a(), d("ul", {
1568
+ return (I, g) => (a(), d("ul", {
1557
1569
  class: R(n(i)),
1558
- onMouseleave: I,
1570
+ onMouseleave: x,
1559
1571
  onKeydown: S,
1560
1572
  tabindex: n(r)
1561
1573
  }, [
1562
- (a(), d(G, null, A(5, (C) => N("li", {
1574
+ (a(), d(G, null, V(5, (w) => A("li", {
1563
1575
  class: "ak-rate__item",
1564
- key: C,
1565
- onMousemove: (f) => M(f, C),
1566
- onMouseover: (f) => _(C),
1567
- onClick: g[0] || (g[0] = (f) => p())
1576
+ key: w,
1577
+ onMousemove: (B) => M(B, w),
1578
+ onMouseover: (B) => h(w),
1579
+ onClick: g[0] || (g[0] = (B) => p())
1568
1580
  }, [
1569
- x(Gs, {
1570
- "star-rate": C,
1581
+ C(Gs, {
1582
+ "star-rate": w,
1571
1583
  value: e.value || o.value,
1572
1584
  "icon-size": n(l)
1573
1585
  }, null, 8, ["star-rate", "value", "icon-size"])