@unizhen/ui 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/ui.js +194 -191
  2. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -2855,8 +2855,8 @@ const mt = "/apiserver/", kn = () => {
2855
2855
  return e.forEach((a) => {
2856
2856
  if (a.type === "group") {
2857
2857
  const p = [];
2858
- a.children && a.children.length > 0 && a.children.forEach(($, z) => {
2859
- delete $.tooltipText, p.push(bn($, t, n, c, l)), z < a.children.length - 1 && p.push(
2858
+ a.children && a.children.length > 0 && a.children.forEach((_, z) => {
2859
+ delete _.tooltipText, p.push(bn(_, t, n, c, l)), z < a.children.length - 1 && p.push(
2860
2860
  ee(
2861
2861
  "div",
2862
2862
  {
@@ -3072,8 +3072,8 @@ const mt = "/apiserver/", kn = () => {
3072
3072
  }
3073
3073
  });
3074
3074
  function Xf(e, t, n, c, l, i) {
3075
- const a = x("ArrowNarrowLeft"), p = x("NIcon"), $ = x("NButton");
3076
- return s(), B($, {
3075
+ const a = x("ArrowNarrowLeft"), p = x("NIcon"), _ = x("NButton");
3076
+ return s(), B(_, {
3077
3077
  quaternary: "",
3078
3078
  onClick: e.back
3079
3079
  }, {
@@ -3505,7 +3505,7 @@ const xh = /* @__PURE__ */ w(nh, [["render", bh]]), _h = re({
3505
3505
  }
3506
3506
  }), $h = { class: "uz-flex uz-flex-wrap uz-gap-2" };
3507
3507
  function Ch(e, t, n, c, l, i) {
3508
- const a = x("NInput"), p = x("NDropdown"), $ = x("NInputNumber"), z = x("NDatePicker"), D = x("NSelect"), N = x("NCascader"), v = x("NColorPicker"), o = x("NCheckbox"), h = x("NCheckboxGroup"), f = x("NTimePicker"), u = x("UzFormItemTimesPicker"), g = x("NSwitch"), S = x("UzFormItemUpload");
3508
+ const a = x("NInput"), p = x("NDropdown"), _ = x("NInputNumber"), z = x("NDatePicker"), D = x("NSelect"), N = x("NCascader"), v = x("NColorPicker"), o = x("NCheckbox"), h = x("NCheckboxGroup"), f = x("NTimePicker"), u = x("UzFormItemTimesPicker"), g = x("NSwitch"), S = x("UzFormItemUpload");
3509
3509
  return e.item.input === "input" ? (s(), B(a, {
3510
3510
  key: 0,
3511
3511
  value: e.formValue[e.item.key],
@@ -3591,7 +3591,7 @@ function Ch(e, t, n, c, l, i) {
3591
3591
  ]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])
3592
3592
  ]),
3593
3593
  _: 1
3594
- }, 8, ["show", "options", "render-label"])) : e.item.input === "number" ? (s(), B($, {
3594
+ }, 8, ["show", "options", "render-label"])) : e.item.input === "number" ? (s(), B(_, {
3595
3595
  key: 3,
3596
3596
  value: e.formValue[e.item.key],
3597
3597
  placeholder: e.showPlaceholder(e.item),
@@ -3720,10 +3720,10 @@ function Ch(e, t, n, c, l, i) {
3720
3720
  const Z = e.item;
3721
3721
  let ne = y, T = y;
3722
3722
  if (Z.params.multiple) {
3723
- let _ = y.filter((I) => I);
3724
- _.length === 0 ? (ne = [], T = []) : (ne = _, T = _);
3723
+ let $ = y.filter((I) => I);
3724
+ $.length === 0 ? (ne = [], T = []) : (ne = $, T = $);
3725
3725
  }
3726
- e.formValue[e.item.key] = ne, K && (e.formValue[`${e.item.key}Str`] = K.map((_) => _.label).join("/")), e.updateValue(e.item, T);
3726
+ e.formValue[e.item.key] = ne, K && (e.formValue[`${e.item.key}Str`] = K.map(($) => $.label).join("/")), e.updateValue(e.item, T);
3727
3727
  })
3728
3728
  }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class", "loading", "on-focus"])) : e.item.input === "color" ? (s(), B(v, {
3729
3729
  key: 8,
@@ -3870,7 +3870,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
3870
3870
  }
3871
3871
  },
3872
3872
  setup(e, { expose: t }) {
3873
- const n = De("userStore"), c = Se(() => fe.isMobile), l = M(), i = M(), a = M({}), p = M([]), $ = M([]), z = M([]), D = M();
3873
+ const n = De("userStore"), c = Se(() => fe.isMobile), l = M(), i = M(), a = M({}), p = M([]), _ = M([]), z = M([]), D = M();
3874
3874
  Tt("mainFormValue", {
3875
3875
  value: () => a.value,
3876
3876
  setValue: (T) => {
@@ -3878,8 +3878,8 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
3878
3878
  }
3879
3879
  });
3880
3880
  const N = (T) => {
3881
- const _ = T.form.display;
3882
- if (!_)
3881
+ const $ = T.form.display;
3882
+ if (!$)
3883
3883
  switch (e.status) {
3884
3884
  case 0:
3885
3885
  return T.form.create && T.form.create.show;
@@ -3888,8 +3888,8 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
3888
3888
  case 2:
3889
3889
  return T.form.show;
3890
3890
  }
3891
- if (_ && typeof _ == "string") {
3892
- const I = new Function("mainFormValue", "userStore", _);
3891
+ if ($ && typeof $ == "string") {
3892
+ const I = new Function("mainFormValue", "userStore", $);
3893
3893
  try {
3894
3894
  return I(
3895
3895
  {
@@ -3904,101 +3904,101 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
3904
3904
  return !0;
3905
3905
  }
3906
3906
  }
3907
- }, v = (T, _) => {
3907
+ }, v = (T, $) => {
3908
3908
  switch (T) {
3909
3909
  case "datetime":
3910
3910
  case "datetimerange":
3911
- return Ie(_, "yyyy-MM-dd hh:mm:ss");
3911
+ return Ie($, "yyyy-MM-dd hh:mm:ss");
3912
3912
  case "month":
3913
3913
  case "monthrange":
3914
- return Ie(_, "yyyy-MM");
3914
+ return Ie($, "yyyy-MM");
3915
3915
  case "year":
3916
3916
  case "yearrange":
3917
- return Ie(_, "yyyy");
3917
+ return Ie($, "yyyy");
3918
3918
  default:
3919
- return Ie(_);
3919
+ return Ie($);
3920
3920
  }
3921
- }, o = (T, _ = !1) => {
3921
+ }, o = (T, $ = !1) => {
3922
3922
  const I = Be(T).startOf("day").diff(Be().startOf("day"), "day");
3923
- return I >= 0 ? _ ? "success" : `剩余${I}天` : _ ? "error" : `逾期${Math.abs(I)}天`;
3924
- }, h = (T) => (z.value = [], T.forEach((_) => {
3925
- if (_.form.defaultValue && !a.value[_.key])
3926
- if (_.input === "number")
3927
- a.value[_.key] = Number(_.form.defaultValue);
3928
- else if (_.input === "select" && _.params.options?.length > 0) {
3929
- _.form.defaultValue === "userId" ? a.value[_.key] = n.userId : a.value[_.key] = _.form.defaultValue;
3930
- const I = _.params.options.find(
3931
- (U) => U.value === a.value[_.key]
3923
+ return I >= 0 ? $ ? "success" : `剩余${I}天` : $ ? "error" : `逾期${Math.abs(I)}天`;
3924
+ }, h = (T) => (z.value = [], T.forEach(($) => {
3925
+ if ($.form.defaultValue && !a.value[$.key])
3926
+ if ($.input === "number")
3927
+ a.value[$.key] = Number($.form.defaultValue);
3928
+ else if ($.input === "select" && $.params.options?.length > 0) {
3929
+ $.form.defaultValue === "userId" ? a.value[$.key] = n.userId : a.value[$.key] = $.form.defaultValue;
3930
+ const I = $.params.options.find(
3931
+ (U) => U.value === a.value[$.key]
3932
3932
  );
3933
- I && (a.value[`${_.key}Str`] = I.label);
3934
- } else if (_.input === "date")
3935
- if (_.params.type.indexOf("range") > -1)
3936
- switch (_.form.defaultValue) {
3933
+ I && (a.value[`${$.key}Str`] = I.label);
3934
+ } else if ($.input === "date")
3935
+ if ($.params.type.indexOf("range") > -1)
3936
+ switch ($.form.defaultValue) {
3937
3937
  case "now":
3938
3938
  {
3939
3939
  const U = Be().startOf("day").valueOf(), q = Be().endOf("day").valueOf();
3940
- a.value[_.key] = [U, q], a.value[`${_.key}StartStr`] = v(
3941
- _.params.type,
3940
+ a.value[$.key] = [U, q], a.value[`${$.key}StartStr`] = v(
3941
+ $.params.type,
3942
3942
  U
3943
- ), a.value[`${_.key}EndStr`] = v(
3944
- _.params.type,
3943
+ ), a.value[`${$.key}EndStr`] = v(
3944
+ $.params.type,
3945
3945
  q
3946
3946
  );
3947
3947
  }
3948
3948
  break;
3949
3949
  default:
3950
- const I = Number(_.form.defaultValue);
3951
- a.value[_.key] = Number.isNaN(I) ? null : [I, I], a.value[`${_.key}StartStr`] = v(
3952
- _.params.type,
3950
+ const I = Number($.form.defaultValue);
3951
+ a.value[$.key] = Number.isNaN(I) ? null : [I, I], a.value[`${$.key}StartStr`] = v(
3952
+ $.params.type,
3953
3953
  I
3954
- ), a.value[`${_.key}EndStr`] = v(
3955
- _.params.type,
3954
+ ), a.value[`${$.key}EndStr`] = v(
3955
+ $.params.type,
3956
3956
  I
3957
3957
  );
3958
3958
  break;
3959
3959
  }
3960
- else if (_.form.defaultValue === "now")
3961
- a.value[_.key] = Date.now(), a.value[`${_.key}Str`] = v(
3962
- _.params.type,
3960
+ else if ($.form.defaultValue === "now")
3961
+ a.value[$.key] = Date.now(), a.value[`${$.key}Str`] = v(
3962
+ $.params.type,
3963
3963
  Date.now()
3964
3964
  );
3965
3965
  else {
3966
- const I = Number(_.form.defaultValue);
3967
- a.value[_.key] = Number.isNaN(I) ? null : I, a.value[`${_.key}Str`] = v(
3968
- _.params.type,
3966
+ const I = Number($.form.defaultValue);
3967
+ a.value[$.key] = Number.isNaN(I) ? null : I, a.value[`${$.key}Str`] = v(
3968
+ $.params.type,
3969
3969
  I
3970
3970
  );
3971
3971
  }
3972
3972
  else
3973
- a.value[_.key] = _.form.defaultValue;
3974
- if ((_.input === "cascader" || _.input === "select") && _.params.multiple && z.value.push(_.key), _.input === "date" && _.params.type.indexOf("range") > -1 && z.value.push(_.key), _.input === "select" && _.params.multiple && a.value[_.key] && typeof a.value[_.key] == "string")
3973
+ a.value[$.key] = $.form.defaultValue;
3974
+ if (($.input === "cascader" || $.input === "select") && $.params.multiple && z.value.push($.key), $.input === "date" && $.params.type.indexOf("range") > -1 && z.value.push($.key), $.input === "select" && $.params.multiple && a.value[$.key] && typeof a.value[$.key] == "string")
3975
3975
  try {
3976
- a.value[_.key] = JSON.parse(a.value[_.key]);
3976
+ a.value[$.key] = JSON.parse(a.value[$.key]);
3977
3977
  } catch {
3978
- a.value[_.key] = [];
3978
+ a.value[$.key] = [];
3979
3979
  }
3980
- if (typeof a.value[_.key] == "string" && _.input === "date" && _.params.type.indexOf("range") > -1)
3980
+ if (typeof a.value[$.key] == "string" && $.input === "date" && $.params.type.indexOf("range") > -1)
3981
3981
  try {
3982
- a.value[_.key] = JSON.parse(a.value[_.key]);
3982
+ a.value[$.key] = JSON.parse(a.value[$.key]);
3983
3983
  } catch {
3984
- a.value[_.key] = [];
3984
+ a.value[$.key] = [];
3985
3985
  }
3986
3986
  }), T), f = (T) => {
3987
3987
  T || (T = G(e.items)), T && Array.isArray(T) && T.length > 0 ? p.value = h(T) : p.value = [];
3988
3988
  }, u = () => new Promise(async (T) => {
3989
- let _ = 0;
3990
- for await (const I of $.value)
3989
+ let $ = 0;
3990
+ for await (const I of _.value)
3991
3991
  await I.validate().catch(() => {
3992
- _ = _ + 1;
3992
+ $ = $ + 1;
3993
3993
  });
3994
- T(_);
3995
- }), g = () => new Promise((T, _) => {
3996
- $.value.forEach((I) => {
3994
+ T($);
3995
+ }), g = () => new Promise((T, $) => {
3996
+ _.value.forEach((I) => {
3997
3997
  I.validate().catch(() => null);
3998
3998
  }), i.value?.validate(
3999
3999
  async (I) => {
4000
4000
  if (I)
4001
- _();
4001
+ $();
4002
4002
  else if (await u() === 0) {
4003
4003
  const q = G(a.value);
4004
4004
  z.value.forEach((H) => {
@@ -4016,7 +4016,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
4016
4016
  ), R = JSON.parse(C);
4017
4017
  T(R);
4018
4018
  } else
4019
- _();
4019
+ $();
4020
4020
  }
4021
4021
  );
4022
4022
  }), S = () => {
@@ -4034,8 +4034,8 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
4034
4034
  10: "md:col-span-10 lg:col-span-10 xl:col-span-10 2xl:col-span-10",
4035
4035
  11: "md:col-span-11 lg:col-span-11 xl:col-span-11 2xl:col-span-11",
4036
4036
  12: "md:col-span-12 lg:col-span-12 xl:col-span-12 2xl:col-span-12"
4037
- })[T], F = (T, _) => {
4038
- D.value = _, l.value?.link(T.source, T.sourceFn);
4037
+ })[T], F = (T, $) => {
4038
+ D.value = $, l.value?.link(T.source, T.sourceFn);
4039
4039
  }, K = (T) => {
4040
4040
  D.value && (p.value[D.value].params.options = T);
4041
4041
  };
@@ -4043,8 +4043,8 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
4043
4043
  a.value = e.value, f(e.items);
4044
4044
  } }), ce(
4045
4045
  () => e.value,
4046
- (T, _) => {
4047
- JSON.stringify(T) !== JSON.stringify(_) && (a.value = T, p.value.length === 0 && f(e.items));
4046
+ (T, $) => {
4047
+ JSON.stringify(T) !== JSON.stringify($) && (a.value = T, p.value.length === 0 && f(e.items));
4048
4048
  },
4049
4049
  {
4050
4050
  deep: !0,
@@ -4055,7 +4055,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
4055
4055
  formRef: i,
4056
4056
  formValue: a,
4057
4057
  formItems: p,
4058
- childRef: $,
4058
+ childRef: _,
4059
4059
  isMobile: c,
4060
4060
  diffDay: o,
4061
4061
  sourceAdd: F,
@@ -4066,7 +4066,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
4066
4066
  }
4067
4067
  }), zh = ["onClick"];
4068
4068
  function Nh(e, t, n, c, l, i) {
4069
- const a = x("Plus"), p = x("NIcon"), $ = x("UzTableChild"), z = x("UzTableQuestChild"), D = x("NDivider"), N = x("UzFormItem"), v = x("NFormItem"), o = x("NForm"), h = x("UzTableDrawer"), f = Dn("media");
4069
+ const a = x("Plus"), p = x("NIcon"), _ = x("UzTableChild"), z = x("UzTableQuestChild"), D = x("NDivider"), N = x("UzFormItem"), v = x("NFormItem"), o = x("NForm"), h = x("UzTableDrawer"), f = Dn("media");
4070
4070
  return s(), d(se, null, [
4071
4071
  b(o, {
4072
4072
  ref: "formRef",
@@ -4111,7 +4111,7 @@ function Nh(e, t, n, c, l, i) {
4111
4111
  }, P(e.diffDay(e.formValue[u.key])), 3)) : Q("", !0)
4112
4112
  ]),
4113
4113
  default: m(() => [
4114
- u.input === "subTable" && !u.params.quest ? (s(), B($, {
4114
+ u.input === "subTable" && !u.params.quest ? (s(), B(_, {
4115
4115
  key: 0,
4116
4116
  ref_for: !0,
4117
4117
  ref: "childRef",
@@ -4206,7 +4206,7 @@ const Sh = /* @__PURE__ */ w(Mh, [["render", Nh]]), Dh = re({
4206
4206
  },
4207
4207
  emits: ["update:value", "on-select", "on-change"],
4208
4208
  setup(e, { expose: t, emit: n }) {
4209
- const c = De("userStore"), l = M(), i = M({}), a = M([]), p = M([-1, -1]), $ = (f, u, g) => {
4209
+ const c = De("userStore"), l = M(), i = M({}), a = M([]), p = M([-1, -1]), _ = (f, u, g) => {
4210
4210
  p.value = [u, g ?? -1], n("on-select", f);
4211
4211
  }, z = (f) => {
4212
4212
  f && (p.value[1] === -1 ? a.value.splice(p.value[0], 1, f) : a.value[p.value[0]].params.children.splice(p.value[1], 1, f), v()), o();
@@ -4265,7 +4265,7 @@ const Sh = /* @__PURE__ */ w(Mh, [["render", Nh]]), Dh = re({
4265
4265
  formItems: a,
4266
4266
  formItemIndex: p,
4267
4267
  onDragChange: v,
4268
- onModeClick: $,
4268
+ onModeClick: _,
4269
4269
  onCancel: o,
4270
4270
  onDelete: h
4271
4271
  };
@@ -4278,7 +4278,7 @@ const Sh = /* @__PURE__ */ w(Mh, [["render", Nh]]), Dh = re({
4278
4278
  class: "uz-form-item-add"
4279
4279
  };
4280
4280
  function Bh(e, t, n, c, l, i) {
4281
- const a = x("Plus"), p = x("NIcon"), $ = x("Trash"), z = x("NButton"), D = x("UzTableChild"), N = x("UzFormItem"), v = x("NFormItem"), o = x("Draggable", !0), h = x("NDivider"), f = x("NForm");
4281
+ const a = x("Plus"), p = x("NIcon"), _ = x("Trash"), z = x("NButton"), D = x("UzTableChild"), N = x("UzFormItem"), v = x("NFormItem"), o = x("Draggable", !0), h = x("NDivider"), f = x("NForm");
4282
4282
  return s(), B(f, {
4283
4283
  ref: "formRef",
4284
4284
  class: "uz-w-full uz-h-full",
@@ -4342,7 +4342,7 @@ function Bh(e, t, n, c, l, i) {
4342
4342
  icon: m(() => [
4343
4343
  b(p, { color: "#FFF" }, {
4344
4344
  default: m(() => [
4345
- b($)
4345
+ b(_)
4346
4346
  ]),
4347
4347
  _: 1
4348
4348
  })
@@ -4394,7 +4394,7 @@ function Bh(e, t, n, c, l, i) {
4394
4394
  icon: m(() => [
4395
4395
  b(p, { color: "#FFF" }, {
4396
4396
  default: m(() => [
4397
- b($)
4397
+ b(_)
4398
4398
  ]),
4399
4399
  _: 1
4400
4400
  })
@@ -4499,7 +4499,7 @@ const Ih = /* @__PURE__ */ w(Dh, [["render", Bh]]), Vh = re({
4499
4499
  return ["png", "jpg", "jpeg", "bmp", "gif", "webp", "svg"].indexOf(
4500
4500
  o.toLowerCase()
4501
4501
  ) !== -1;
4502
- }, $ = (N) => {
4502
+ }, _ = (N) => {
4503
4503
  l.value.splice(N, 1), i();
4504
4504
  }, z = () => {
4505
4505
  let N = G(e.value);
@@ -4540,13 +4540,13 @@ const Ih = /* @__PURE__ */ w(Dh, [["render", Bh]]), Vh = re({
4540
4540
  show: c,
4541
4541
  beforeUpload: a,
4542
4542
  isAssetTypeAnImage: p,
4543
- doDelete: $,
4543
+ doDelete: _,
4544
4544
  openFile: D
4545
4545
  };
4546
4546
  }
4547
4547
  }), Uh = { class: "uz-form-upload-item-inner" }, jh = ["title"], Ah = { key: 0 };
4548
4548
  function Oh(e, t, n, c, l, i) {
4549
- const a = x("CloudUpload"), p = x("NIcon"), $ = x("NUploadDragger"), z = x("NUpload"), D = x("PhotoOff"), N = x("NImage"), v = x("FileText"), o = x("Trash"), h = x("NButton"), f = x("NPopconfirm"), u = x("CloudDownload"), g = x("NSpin");
4549
+ const a = x("CloudUpload"), p = x("NIcon"), _ = x("NUploadDragger"), z = x("NUpload"), D = x("PhotoOff"), N = x("NImage"), v = x("FileText"), o = x("Trash"), h = x("NButton"), f = x("NPopconfirm"), u = x("CloudDownload"), g = x("NSpin");
4550
4550
  return s(), B(g, {
4551
4551
  "content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
4552
4552
  show: e.show
@@ -4564,7 +4564,7 @@ function Oh(e, t, n, c, l, i) {
4564
4564
  "directory-dnd": ""
4565
4565
  }, {
4566
4566
  default: m(() => [
4567
- b($, { class: "uz-flex uz-items-center uz-justify-center uz-h-20" }, {
4567
+ b(_, { class: "uz-flex uz-items-center uz-justify-center uz-h-20" }, {
4568
4568
  default: m(() => [
4569
4569
  b(p, { size: "28" }, {
4570
4570
  default: m(() => [
@@ -4702,12 +4702,12 @@ const Rh = /* @__PURE__ */ w(Vh, [["render", Oh], ["__scopeId", "data-v-d4bd872d
4702
4702
  }
4703
4703
  }), Hh = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
4704
4704
  function Eh(e, t, n, c, l, i) {
4705
- const a = x("PhotoOff"), p = x("NIcon"), $ = x("NImage"), z = x("FileText"), D = x("NPopover"), N = x("NImageGroup");
4705
+ const a = x("PhotoOff"), p = x("NIcon"), _ = x("NImage"), z = x("FileText"), D = x("NPopover"), N = x("NImageGroup");
4706
4706
  return s(), B(N, null, {
4707
4707
  default: m(() => [
4708
4708
  r("div", Hh, [
4709
4709
  (s(!0), d(se, null, we(e.imgs, (v) => (s(), d(se, null, [
4710
- e.isAssetTypeAnImage(v) ? (s(), B($, {
4710
+ e.isAssetTypeAnImage(v) ? (s(), B(_, {
4711
4711
  key: 0,
4712
4712
  width: "40",
4713
4713
  src: v
@@ -4772,7 +4772,7 @@ const da = /* @__PURE__ */ w(Ph, [["render", Eh]]), qh = re({
4772
4772
  setup(e, { emit: t, expose: n }) {
4773
4773
  const c = M([]), l = M("00"), i = M("00"), a = M("00"), p = () => {
4774
4774
  l.value = "00", i.value = "00", a.value = "00";
4775
- }, $ = () => {
4775
+ }, _ = () => {
4776
4776
  const o = [];
4777
4777
  for (let h = 0; h <= 100; h++)
4778
4778
  o.push({
@@ -4801,7 +4801,7 @@ const da = /* @__PURE__ */ w(Ph, [["render", Eh]]), qh = re({
4801
4801
  {
4802
4802
  immediate: !0
4803
4803
  }
4804
- ), $(), {
4804
+ ), _(), {
4805
4805
  times: c,
4806
4806
  h: l,
4807
4807
  m: i,
@@ -4881,7 +4881,7 @@ const Wh = /* @__PURE__ */ w(qh, [["render", Kh], ["__scopeId", "data-v-c90165b1
4881
4881
  setup(e, { emit: t }) {
4882
4882
  const n = M(), c = M(!1), l = M(!1), i = Kt();
4883
4883
  let a = null, p = null;
4884
- const $ = (f, u) => {
4884
+ const _ = (f, u) => {
4885
4885
  a.beginPath(), a.moveTo(f.x, f.y), a.lineTo(u.x, u.y), a.lineWidth = 2, a.strokeStyle = "green", a.stroke();
4886
4886
  }, z = () => {
4887
4887
  l.value && requestAnimationFrame(D);
@@ -4894,7 +4894,7 @@ const Wh = /* @__PURE__ */ w(qh, [["render", Kh], ["__scopeId", "data-v-c90165b1
4894
4894
  const S = fs(g.data, f, u);
4895
4895
  if (S) {
4896
4896
  const { location: y, data: F } = S;
4897
- F && ($(y.topLeftCorner, y.topRightCorner), $(y.topRightCorner, y.bottomRightCorner), $(y.bottomRightCorner, y.bottomLeftCorner), $(y.bottomLeftCorner, y.topLeftCorner), t("on-update:value", F));
4897
+ F && (_(y.topLeftCorner, y.topRightCorner), _(y.topRightCorner, y.bottomRightCorner), _(y.bottomRightCorner, y.bottomLeftCorner), _(y.bottomLeftCorner, y.topLeftCorner), t("on-update:value", F));
4898
4898
  }
4899
4899
  } catch {
4900
4900
  l.value = !1, i.error({
@@ -4972,7 +4972,7 @@ function Zh(e, t, n, c, l, i) {
4972
4972
  e.mode === "button" ? (s(), B(p, {
4973
4973
  key: 1,
4974
4974
  show: e.modal,
4975
- "onUpdate:show": t[0] || (t[0] = ($) => e.modal = $),
4975
+ "onUpdate:show": t[0] || (t[0] = (_) => e.modal = _),
4976
4976
  preset: "card",
4977
4977
  title: e.$t("Common.scan"),
4978
4978
  "auto-focus": !1,
@@ -5074,15 +5074,15 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
5074
5074
  },
5075
5075
  emits: ["update:loading", "on-update:value"],
5076
5076
  setup(e, { emit: t }) {
5077
- const n = ct(), c = M(), l = M([]), i = M(), a = M(!0), p = M(!1), $ = M(!1), z = M(0), D = M(0), N = M(0), v = M(1), o = M(""), h = M([]), f = M(!1), u = (T) => Array.isArray(T) && T.length > 0 || T ? T : !1, g = (T = !1) => {
5077
+ const n = ct(), c = M(), l = M([]), i = M(), a = M(!0), p = M(!1), _ = M(!1), z = M(0), D = M(0), N = M(0), v = M(1), o = M(""), h = M([]), f = M(!1), u = (T) => Array.isArray(T) && T.length > 0 || T ? T : !1, g = (T = !1) => {
5078
5078
  if (e.loading)
5079
5079
  return;
5080
- const _ = G(c.value);
5081
- !T && _.query && (_.query.page = 1);
5080
+ const $ = G(c.value);
5081
+ !T && $.query && ($.query.page = 1);
5082
5082
  const I = [];
5083
5083
  l.value.forEach((U) => {
5084
- if (_[U.key]) {
5085
- const q = u(_[U.key]);
5084
+ if ($[U.key]) {
5085
+ const q = u($[U.key]);
5086
5086
  if (q) {
5087
5087
  const C = {
5088
5088
  key: U.key,
@@ -5099,14 +5099,14 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
5099
5099
  }, y = () => {
5100
5100
  a.value = !a.value;
5101
5101
  }, F = (T) => f.value ? c.value && Array.isArray(c.value[o.value]) && c.value[o.value].includes(T.value) ? "primary" : "default" : c.value[o.value] === T.value ? "primary" : "default", K = (T) => {
5102
- const _ = {};
5102
+ const $ = {};
5103
5103
  let I = 0;
5104
5104
  const U = e.cols ? e.cols : 4;
5105
5105
  if (T.length > 0)
5106
5106
  for (let C = 0; C <= U; C++)
5107
5107
  T[C]?.search.show && (I = I + (T[C]?.search.span || 1));
5108
5108
  const q = U - I >= 0 ? U - I - 1 : -1;
5109
- D.value = q, N.value = q, z.value = I, I > U ? (p.value = !0, $.value = !0) : (p.value = !1, $.value = !1);
5109
+ D.value = q, N.value = q, z.value = I, I > U ? (p.value = !0, _.value = !0) : (p.value = !1, _.value = !1);
5110
5110
  for (const C of T)
5111
5111
  if (C.search.tab && (h.value = C.params.options, f.value = C.params.multiple, o.value = C.key, C.search.show = !1), C.input === "input" && C.params.type === "textarea" && (C.params.type = "text"), C.search.show = C.search.show ?? !0, C.defaultValue)
5112
5112
  if (C.input === "date")
@@ -5115,45 +5115,45 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
5115
5115
  case "now":
5116
5116
  {
5117
5117
  const H = Be().startOf("day").valueOf(), O = Be().endOf("day").valueOf();
5118
- _[C.key] = [H, O];
5118
+ $[C.key] = [H, O];
5119
5119
  }
5120
5120
  break;
5121
5121
  default:
5122
5122
  const R = Number(C.form.defaultValue);
5123
- _[C.key] = Number.isNaN(R) ? null : [R, R];
5123
+ $[C.key] = Number.isNaN(R) ? null : [R, R];
5124
5124
  break;
5125
5125
  }
5126
5126
  else if (C.search.defaultValue === "now")
5127
- _[C.key] = Date.now();
5127
+ $[C.key] = Date.now();
5128
5128
  else {
5129
5129
  const R = Number(C.form.defaultValue);
5130
- _[C.key] = Number.isNaN(R) ? null : R;
5130
+ $[C.key] = Number.isNaN(R) ? null : R;
5131
5131
  }
5132
5132
  else
5133
- _[C.key] = C.defaultValue;
5133
+ $[C.key] = C.defaultValue;
5134
5134
  else
5135
- _[C.key] = "", (C.input === "number" || C.input === "date" || C.input === "time") && (_[C.key] = null), (C.input === "cascader" || C.input === "select") && (C.params.multiple ? _[C.key] = [] : _[C.key] = null);
5136
- return { data: T, values: _ };
5135
+ $[C.key] = "", (C.input === "number" || C.input === "date" || C.input === "time") && ($[C.key] = null), (C.input === "cascader" || C.input === "select") && (C.params.multiple ? $[C.key] = [] : $[C.key] = null);
5136
+ return { data: T, values: $ };
5137
5137
  }, Z = (T) => {
5138
5138
  if (h.value = [], T && T.length > 0) {
5139
- const { data: _, values: I } = K(G(T)), U = {}, q = e.id || n.params.id;
5139
+ const { data: $, values: I } = K(G(T)), U = {}, q = e.id || n.params.id;
5140
5140
  if (e.cache && q) {
5141
5141
  const C = Me(`tables_${q}`, !1);
5142
5142
  C && C.params.forEach((R) => {
5143
5143
  U[R.key] = R.value;
5144
5144
  });
5145
5145
  }
5146
- l.value = _, c.value = G({ ...I, ...U }), i.value = G(I);
5146
+ l.value = $, c.value = G({ ...I, ...U }), i.value = G(I);
5147
5147
  }
5148
5148
  g(!0);
5149
5149
  }, ne = (T) => {
5150
5150
  if (f.value) {
5151
- const _ = c.value[o.value];
5152
- if (_.includes(T)) {
5153
- const I = _.findIndex((U) => U === T);
5151
+ const $ = c.value[o.value];
5152
+ if ($.includes(T)) {
5153
+ const I = $.findIndex((U) => U === T);
5154
5154
  c.value[o.value].splice(I, 1);
5155
5155
  } else
5156
- _.push(T);
5156
+ $.push(T);
5157
5157
  } else
5158
5158
  c.value[o.value] = T;
5159
5159
  g(!0);
@@ -5168,7 +5168,7 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
5168
5168
  itemData: l,
5169
5169
  defaultValue: i,
5170
5170
  more: p,
5171
- moreCache: $,
5171
+ moreCache: _,
5172
5172
  moreIndex: z,
5173
5173
  offset: D,
5174
5174
  offsetCache: N,
@@ -5191,7 +5191,7 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
5191
5191
  class: "uz-flex uz-gap-2 uz-flex-1"
5192
5192
  };
5193
5193
  function a1(e, t, n, c, l, i) {
5194
- const a = x("NButton"), p = x("NButtonGroup"), $ = x("NGridItem"), z = x("NInputGroupLabel"), D = x("NPopover"), N = x("UzFormItem"), v = x("NInputGroup"), o = x("NGrid"), h = x("CaretDown"), f = x("NIcon"), u = x("Search"), g = x("Refresh"), S = Dn("media");
5194
+ const a = x("NButton"), p = x("NButtonGroup"), _ = x("NGridItem"), z = x("NInputGroupLabel"), D = x("NPopover"), N = x("UzFormItem"), v = x("NInputGroup"), o = x("NGrid"), h = x("CaretDown"), f = x("NIcon"), u = x("Search"), g = x("Refresh"), S = Dn("media");
5195
5195
  return s(), d("div", {
5196
5196
  class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
5197
5197
  onKeyup: t[1] || (t[1] = Va((y) => e.doSearch(!1), ["enter"]))
@@ -5207,7 +5207,7 @@ function a1(e, t, n, c, l, i) {
5207
5207
  collapsed: e.collapsed
5208
5208
  }, {
5209
5209
  default: m(() => [
5210
- e.tabList && e.tabList.length > 0 ? (s(), B($, {
5210
+ e.tabList && e.tabList.length > 0 ? (s(), B(_, {
5211
5211
  key: 0,
5212
5212
  span: e.gridSpan
5213
5213
  }, {
@@ -5231,11 +5231,11 @@ function a1(e, t, n, c, l, i) {
5231
5231
  ]),
5232
5232
  _: 1
5233
5233
  }, 8, ["span"])) : Q("", !0),
5234
- e.offset > -1 ? (s(), B($, {
5234
+ e.offset > -1 ? (s(), B(_, {
5235
5235
  key: 1,
5236
5236
  offset: e.offset
5237
5237
  }, null, 8, ["offset"])) : Q("", !0),
5238
- (s(!0), d(se, null, we(e.itemData, (y, F) => (s(), B($, {
5238
+ (s(!0), d(se, null, we(e.itemData, (y, F) => (s(), B(_, {
5239
5239
  key: `${F}_${Date.now()}`,
5240
5240
  span: y.search.show ? y.search.span || e.gridSpan : 0
5241
5241
  }, {
@@ -5377,7 +5377,7 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
5377
5377
  },
5378
5378
  emits: ["update:loading", "on-update:value"],
5379
5379
  setup(e, { emit: t }) {
5380
- const n = ct(), c = M([]), l = M(!1), i = M(), a = M(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, $ = (v = !1) => {
5380
+ const n = ct(), c = M([]), l = M(!1), i = M(), a = M(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, _ = (v = !1) => {
5381
5381
  if (e.loading)
5382
5382
  return;
5383
5383
  const o = G(i.value);
@@ -5398,7 +5398,7 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
5398
5398
  }
5399
5399
  }), l.value = !1, t("update:loading", !0), t("on-update:value", h);
5400
5400
  }, z = () => {
5401
- e.loading || (i.value = G(a.value), $());
5401
+ e.loading || (i.value = G(a.value), _());
5402
5402
  }, D = (v) => {
5403
5403
  const o = {};
5404
5404
  for (const h of v)
@@ -5415,7 +5415,7 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
5415
5415
  }
5416
5416
  c.value = o, i.value = G({ ...h, ...f }), a.value = G(h);
5417
5417
  }
5418
- $(!0);
5418
+ _(!0);
5419
5419
  };
5420
5420
  return ce(
5421
5421
  () => e.data,
@@ -5426,18 +5426,18 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
5426
5426
  drawer: l,
5427
5427
  itemValue: i,
5428
5428
  itemData: c,
5429
- doSearch: $,
5429
+ doSearch: _,
5430
5430
  clearAll: z
5431
5431
  };
5432
5432
  }
5433
5433
  }), i1 = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, c1 = { class: "uz-flex uz-gap-2" }, u1 = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
5434
5434
  function d1(e, t, n, c, l, i) {
5435
- const a = x("Search"), p = x("NIcon"), $ = x("NButton"), z = x("NInputGroupLabel"), D = x("UzFormItem"), N = x("NInputGroup"), v = x("NGridItem"), o = x("NGrid"), h = x("Refresh"), f = x("NDrawerContent"), u = x("NDrawer");
5435
+ const a = x("Search"), p = x("NIcon"), _ = x("NButton"), z = x("NInputGroupLabel"), D = x("UzFormItem"), N = x("NInputGroup"), v = x("NGridItem"), o = x("NGrid"), h = x("Refresh"), f = x("NDrawerContent"), u = x("NDrawer");
5436
5436
  return s(), d(se, null, [
5437
5437
  r("div", i1, [
5438
5438
  ke(e.$slots, "header"),
5439
5439
  r("div", c1, [
5440
- e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B($, {
5440
+ e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B(_, {
5441
5441
  key: 0,
5442
5442
  secondary: "",
5443
5443
  onClick: t[0] || (t[0] = (g) => e.drawer = !0)
@@ -5474,7 +5474,7 @@ function d1(e, t, n, c, l, i) {
5474
5474
  }, {
5475
5475
  footer: m(() => [
5476
5476
  r("div", u1, [
5477
- b($, {
5477
+ b(_, {
5478
5478
  secondary: "",
5479
5479
  loading: e.loading,
5480
5480
  onClick: e.clearAll,
@@ -5493,7 +5493,7 @@ function d1(e, t, n, c, l, i) {
5493
5493
  ]),
5494
5494
  _: 1
5495
5495
  }, 8, ["loading", "onClick"]),
5496
- e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B($, {
5496
+ e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B(_, {
5497
5497
  key: 0,
5498
5498
  loading: e.loading,
5499
5499
  type: "primary",
@@ -5612,8 +5612,8 @@ const w1 = () => new Promise((e) => {
5612
5612
  if (l[0] === "modules" && n && Object.keys(n).length > 0) {
5613
5613
  const i = c[0].replace("modules:", ""), a = Object.keys(n).find((p) => p.includes(i));
5614
5614
  if (a) {
5615
- const p = n[a], $ = Ua(ja(p));
5616
- return (z) => ee($, { rowData: z }, {});
5615
+ const p = n[a], _ = Ua(ja(p));
5616
+ return (z) => ee(_, { rowData: z }, {});
5617
5617
  } else
5618
5618
  return ee("div", "Module not found");
5619
5619
  }
@@ -5629,8 +5629,8 @@ const w1 = () => new Promise((e) => {
5629
5629
  }, Re = (e, t, n) => {
5630
5630
  const c = t.map((l) => {
5631
5631
  let i = [], a = l.id;
5632
- return e.input === "select" && e.params.labelKeys ? (e.params.labelKeys.split(",").forEach(($) => {
5633
- i.push(l[$]);
5632
+ return e.input === "select" && e.params.labelKeys ? (e.params.labelKeys.split(",").forEach((_) => {
5633
+ i.push(l[_]);
5634
5634
  }), i = ds(i).join("-")) : i = l[n[1]], e.input === "select" && e.params.valueKey && (a = l[e.params.valueKey]), {
5635
5635
  label: i,
5636
5636
  value: a,
@@ -5859,7 +5859,7 @@ const v1 = (e) => e.map((t) => {
5859
5859
  };
5860
5860
  function wt(e, t, n) {
5861
5861
  return new Promise(async (c, l) => {
5862
- const i = [], a = {}, p = {}, $ = {}, z = [], D = [], N = G(e), v = [];
5862
+ const i = [], a = {}, p = {}, _ = {}, z = [], D = [], N = G(e), v = [];
5863
5863
  for (const o of N)
5864
5864
  o.input === "group" ? v.push(...o.params.children) : v.push(o);
5865
5865
  for (const o of v) {
@@ -5929,7 +5929,7 @@ function wt(e, t, n) {
5929
5929
  try {
5930
5930
  Array.isArray(t) ? t.forEach((h, f) => {
5931
5931
  D[f] || (D[f] = {}), z[f] && z[f][o.params.parentKey] && z[f][o.params.parentKey][o.key] ? (D[f][o.key] = z[f][o.params.parentKey][o.key], z[f][o.params.parentKey][`${o.key}Str`] && (D[f][`${o.key}Str`] = z[f][o.params.parentKey][`${o.key}Str`])) : (D[f][o.key] = null, D[f][`${o.key}Str`] = null);
5932
- }) : p[o.params.parentKey] && p[o.params.parentKey][o.key] ? ($[o.key] = p[o.params.parentKey][o.key], p[o.params.parentKey][`${o.key}Str`] && ($[`${o.key}Str`] = p[o.params.parentKey][`${o.key}Str`])) : ($[o.key] = null, $[`${o.key}Str`] = null);
5932
+ }) : p[o.params.parentKey] && p[o.params.parentKey][o.key] ? (_[o.key] = p[o.params.parentKey][o.key], p[o.params.parentKey][`${o.key}Str`] && (_[`${o.key}Str`] = p[o.params.parentKey][`${o.key}Str`])) : (_[o.key] = null, _[`${o.key}Str`] = null);
5933
5933
  } catch (h) {
5934
5934
  oe(h);
5935
5935
  }
@@ -6005,7 +6005,7 @@ function wt(e, t, n) {
6005
6005
  c({
6006
6006
  form: i,
6007
6007
  formDefaultValue: a,
6008
- fillingDefaultValue: $,
6008
+ fillingDefaultValue: _,
6009
6009
  fillingDefaultArray: D
6010
6010
  });
6011
6011
  });
@@ -6014,7 +6014,7 @@ async function gt(e, t = !1, n = 0, c = () => {
6014
6014
  }, l = {}) {
6015
6015
  let i = 0;
6016
6016
  const a = [], p = [];
6017
- let $ = [];
6017
+ let _ = [];
6018
6018
  const z = G(e), D = [], N = [];
6019
6019
  for (const o of z)
6020
6020
  o.input === "group" ? (D.push(...o.params.children), N.push({
@@ -6114,7 +6114,7 @@ async function gt(e, t = !1, n = 0, c = () => {
6114
6114
  );
6115
6115
  };
6116
6116
  }
6117
- if (h && o.input !== "divider" && o.input !== "subTable" && $.push(h), o.input !== "divider" && o.input !== "switch" && o.input !== "subTable" && o.input !== "upload" && o.search.show) {
6117
+ if (h && o.input !== "divider" && o.input !== "subTable" && _.push(h), o.input !== "divider" && o.input !== "switch" && o.input !== "subTable" && o.input !== "upload" && o.search.show) {
6118
6118
  if (o.search.source)
6119
6119
  if (o.input = "select", o.params.type = o.search.type, o.params.valueKey = o.search.valueKey, o.params.valueKey = o.search.valueKey, o.search.source === "from-up")
6120
6120
  o.params.options = o.params.options;
@@ -6160,22 +6160,22 @@ async function gt(e, t = !1, n = 0, c = () => {
6160
6160
  if (N.length > 0) {
6161
6161
  for (const o of N) {
6162
6162
  if (typeof o == "string") {
6163
- const h = $.find((f) => f.key === o);
6163
+ const h = _.find((f) => f.key === o);
6164
6164
  h && v.push(h);
6165
6165
  }
6166
6166
  if (typeof o == "object") {
6167
6167
  const h = o.children, f = [];
6168
6168
  for (const u of h) {
6169
- const g = $.find((S) => S.key === u);
6169
+ const g = _.find((S) => S.key === u);
6170
6170
  g && f.push(g);
6171
6171
  }
6172
6172
  o.children = f, v.push(o);
6173
6173
  }
6174
6174
  }
6175
- $ = v;
6175
+ _ = v;
6176
6176
  }
6177
6177
  return {
6178
- tableColumns: $,
6178
+ tableColumns: _,
6179
6179
  search: a,
6180
6180
  subTableIds: p,
6181
6181
  tableWidth: i
@@ -6230,8 +6230,8 @@ const b1 = re({
6230
6230
  }
6231
6231
  });
6232
6232
  function x1(e, t, n, c, l, i) {
6233
- const a = x("NEllipsis"), p = x("NButton"), $ = x("NSpin");
6234
- return s(), B($, { show: e.value }, {
6233
+ const a = x("NEllipsis"), p = x("NButton"), _ = x("NSpin");
6234
+ return s(), B(_, { show: e.value }, {
6235
6235
  description: m(() => [
6236
6236
  b(a, {
6237
6237
  "expand-trigger": "click",
@@ -6412,14 +6412,14 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6412
6412
  value: () => null,
6413
6413
  setValue: () => null
6414
6414
  });
6415
- const l = ct(), { t: i } = Qt(), a = Kt(), p = Se(() => fe.isMobile), $ = M(), z = M(), D = M(), N = M(!!c.header), v = M(!1), o = M(!1), h = M(""), f = M(), u = M([]), g = M([]), S = M([]), y = M(void 0), F = M({
6415
+ const l = ct(), { t: i } = Qt(), a = Kt(), p = Se(() => fe.isMobile), _ = M(), z = M(), D = M(), N = M(!!c.header), v = M(!1), o = M(!1), h = M(""), f = M(), u = M([]), g = M([]), S = M([]), y = M(void 0), F = M({
6416
6416
  params: [],
6417
6417
  query: {
6418
6418
  page: 1,
6419
6419
  pageMax: 1,
6420
6420
  pageSize: e.pageSize || 30
6421
6421
  }
6422
- }), K = M([]), Z = M(void 0), ne = M(void 0), T = M([]), _ = M([]), I = M([]), U = M([]), q = M({
6422
+ }), K = M([]), Z = M(void 0), ne = M(void 0), T = M([]), $ = M([]), I = M([]), U = M([]), q = M({
6423
6423
  fetch: null,
6424
6424
  when_drawer_open: "",
6425
6425
  when_before_save: ""
@@ -6468,10 +6468,10 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6468
6468
  });
6469
6469
  }
6470
6470
  }, ze = (k) => {
6471
- F.value.query.page = k, $.value && ($.value.scrollTop = 0), $t(), ae();
6471
+ F.value.query.page = k, _.value && (_.value.scrollTop = 0), $t(), ae();
6472
6472
  }, yt = () => {
6473
6473
  let k = F.value.query.page + 1;
6474
- k > F.value.query.pageMax && (k = 1), F.value.query.page = k, $.value && ($.value.scrollTop = 0), ae();
6474
+ k > F.value.query.pageMax && (k = 1), F.value.query.page = k, _.value && (_.value.scrollTop = 0), ae();
6475
6475
  }, Ca = (k) => {
6476
6476
  F.value.query.pageSize = k, F.value.query.page = 1, $t(), ae();
6477
6477
  }, Ma = (k) => {
@@ -6551,7 +6551,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6551
6551
  }
6552
6552
  ], ot = (k) => !e.ruleFetch || !T.value || T.value && T.value[0] === "*" ? !1 : !T.value?.includes(k), an = async (k) => {
6553
6553
  const { form: V, fillingDefaultValue: W, formDefaultValue: X } = await wt(
6554
- _.value,
6554
+ $.value,
6555
6555
  k,
6556
6556
  () => D.value?.getFormValues()
6557
6557
  );
@@ -6760,7 +6760,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6760
6760
  }, un = async () => {
6761
6761
  H.value = !1, pa();
6762
6762
  const { tableColumns: k, search: V, subTableIds: W, tableWidth: X } = await gt(
6763
- _.value,
6763
+ $.value,
6764
6764
  e.child,
6765
6765
  0,
6766
6766
  () => ({}),
@@ -6859,14 +6859,14 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6859
6859
  W(Y);
6860
6860
  });
6861
6861
  }, Fa = () => {
6862
- h.value = "", _.value = [], I.value = [], U.value = [], q.value = {
6862
+ h.value = "", $.value = [], I.value = [], U.value = [], q.value = {
6863
6863
  fetch: null,
6864
6864
  when_drawer_open: "",
6865
6865
  when_before_save: ""
6866
6866
  }, C.value = He();
6867
6867
  }, Ba = (k) => {
6868
6868
  const V = je.parse(k.viewJson);
6869
- h.value = k.tableTitle, _.value = Ye(V.table), I.value = Je(e.actions || V.action);
6869
+ h.value = k.tableTitle, $.value = Ye(V.table), I.value = Je(e.actions || V.action);
6870
6870
  const W = Je(V.suffix || []);
6871
6871
  U.value = W.filter((j) => j.main).map((j) => (Ia(j), j)), q.value = fa(V.trigger);
6872
6872
  const X = He(e.options ?? V.option);
@@ -6888,7 +6888,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6888
6888
  R.value = i("Notice.network"), H.value = !0;
6889
6889
  return;
6890
6890
  }
6891
- pn(), e.columns ? (_.value = e.columns || [], I.value = e.actions || [], U.value = e.suffixes || [], C.value = He(e.options), await un()) : await Xe(k).then(async (V) => {
6891
+ pn(), e.columns ? ($.value = e.columns || [], I.value = e.actions || [], U.value = e.suffixes || [], C.value = He(e.options), await un()) : await Xe(k).then(async (V) => {
6892
6892
  Ba(V), await un();
6893
6893
  }).catch((V) => {
6894
6894
  R.value = V.message, H.value = !0;
@@ -6974,7 +6974,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6974
6974
  suffixes: U,
6975
6975
  spinError: H,
6976
6976
  isMobile: p,
6977
- mRef: $,
6977
+ mRef: _,
6978
6978
  checkRowKeys: O,
6979
6979
  route: l,
6980
6980
  rowKey: $e,
@@ -7001,7 +7001,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
7001
7001
  class: "uz-transform-fade-in"
7002
7002
  }, D1 = { class: "uz-com-title" };
7003
7003
  function T1(e, t, n, c, l, i) {
7004
- const a = x("NSkeleton"), p = x("NButton"), $ = x("Plus"), z = x("NIcon"), D = x("UzActionButton"), N = x("UzSearchMobileBar"), v = x("UzTableMobile"), o = x("Filter"), h = x("NCheckbox"), f = x("GridDots"), u = x("Draggable"), g = x("NPopover"), S = x("UzSearchBar"), y = x("NDataTable"), F = x("NSpin"), K = x("UzTableDrawer");
7004
+ const a = x("NSkeleton"), p = x("NButton"), _ = x("Plus"), z = x("NIcon"), D = x("UzActionButton"), N = x("UzSearchMobileBar"), v = x("UzTableMobile"), o = x("Filter"), h = x("NCheckbox"), f = x("GridDots"), u = x("Draggable"), g = x("NPopover"), S = x("UzSearchBar"), y = x("NDataTable"), F = x("NSpin"), K = x("UzTableDrawer");
7005
7005
  return s(), d("div", {
7006
7006
  class: "uz-table",
7007
7007
  style: ye({
@@ -7089,7 +7089,7 @@ function T1(e, t, n, c, l, i) {
7089
7089
  icon: m(() => [
7090
7090
  b(z, null, {
7091
7091
  default: m(() => [
7092
- b($)
7092
+ b(_)
7093
7093
  ]),
7094
7094
  _: 1
7095
7095
  })
@@ -7228,7 +7228,7 @@ function T1(e, t, n, c, l, i) {
7228
7228
  icon: m(() => [
7229
7229
  b(z, null, {
7230
7230
  default: m(() => [
7231
- b($)
7231
+ b(_)
7232
7232
  ]),
7233
7233
  _: 1
7234
7234
  })
@@ -7317,7 +7317,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
7317
7317
  },
7318
7318
  emits: ["update:value"],
7319
7319
  setup(e, { emit: t, expose: n }) {
7320
- const c = De("emitSuffix"), l = De("modules"), i = De("mainFormValue"), { t: a } = Qt(), p = M(), $ = M(), z = M(), D = M(!1), N = M(!0), v = M([]), o = M({ child: [] }), h = M(""), f = M({}), u = M([]), g = M(void 0), S = async (C) => {
7320
+ const c = De("emitSuffix"), l = De("modules"), i = De("mainFormValue"), { t: a } = Qt(), p = M(), _ = M(), z = M(), D = M(!1), N = M(!0), v = M([]), o = M({ child: [] }), h = M(""), f = M({}), u = M([]), g = M(void 0), S = async (C) => {
7321
7321
  const { formDefaultValue: R, fillingDefaultArray: H } = await wt(
7322
7322
  e.item.params.columns,
7323
7323
  C
@@ -7482,7 +7482,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
7482
7482
  } catch (C) {
7483
7483
  oe(C);
7484
7484
  }
7485
- }, _ = () => {
7485
+ }, $ = () => {
7486
7486
  z.value?.restoreValidation();
7487
7487
  }, I = () => (h.value = "", new Promise((C, R) => {
7488
7488
  const H = o.value.child.filter(
@@ -7496,15 +7496,15 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
7496
7496
  O ? (h.value = e.item.form.rule.message, R()) : C();
7497
7497
  });
7498
7498
  })), U = () => {
7499
- if (e.item.params.draggable && e.status !== 2 && p.value && !$.value) {
7499
+ if (e.item.params.draggable && e.status !== 2 && p.value && !_.value) {
7500
7500
  const C = p.value.$el.querySelector(".n-data-table-tbody");
7501
- C && ($.value = hs.create(C, {
7501
+ C && (_.value = hs.create(C, {
7502
7502
  handle: ".uz-drag-handle",
7503
7503
  // setData(dataTransfer: any) {
7504
7504
  // dataTransfer.setData('Text', '')
7505
7505
  // },
7506
7506
  onEnd: ({ oldIndex: R, newIndex: H }) => {
7507
- $.value?.destroy(), $.value = null, N.value = !1;
7507
+ _.value?.destroy(), _.value = null, N.value = !1;
7508
7508
  let O = G(o.value.child);
7509
7509
  const L = O.splice(R, 1)[0];
7510
7510
  O.splice(H, 0, L), O = O.map((ue, $e) => ({
@@ -7529,8 +7529,8 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
7529
7529
  });
7530
7530
  };
7531
7531
  return Ot(() => {
7532
- $.value?.destroy(), $.value = null;
7533
- }), n({ validate: I, restoreValidation: _ }), ce(
7532
+ _.value?.destroy(), _.value = null;
7533
+ }), n({ validate: I, restoreValidation: $ }), ce(
7534
7534
  () => e.item.params.columns,
7535
7535
  (C, R) => {
7536
7536
  JSON.stringify(C) !== JSON.stringify(R) && K(C);
@@ -7570,7 +7570,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
7570
7570
  class: "uz-table-asterisk"
7571
7571
  }, A1 = { class: "uz-flex uz-gap-2" }, O1 = { class: "uz-flex uz-justify-end uz-gap-2" };
7572
7572
  function R1(e, t, n, c, l, i) {
7573
- const a = x("UzIcon"), p = x("NIcon"), $ = x("NButton"), z = x("Plus"), D = x("NDataTable"), N = x("NForm");
7573
+ const a = x("UzIcon"), p = x("NIcon"), _ = x("NButton"), z = x("Plus"), D = x("NDataTable"), N = x("NForm");
7574
7574
  return s(), d("div", I1, [
7575
7575
  r("div", V1, [
7576
7576
  r("div", U1, [
@@ -7578,7 +7578,7 @@ function R1(e, t, n, c, l, i) {
7578
7578
  e.item.form.rule.required ? (s(), d("span", j1, "  * ")) : Q("", !0)
7579
7579
  ]),
7580
7580
  r("div", A1, [
7581
- (s(!0), d(se, null, we(e.suffixes, (v) => (s(), B($, {
7581
+ (s(!0), d(se, null, we(e.suffixes, (v) => (s(), B(_, {
7582
7582
  key: v.key,
7583
7583
  type: v.color,
7584
7584
  secondary: "",
@@ -7604,7 +7604,7 @@ function R1(e, t, n, c, l, i) {
7604
7604
  key: "0"
7605
7605
  } : void 0
7606
7606
  ]), 1032, ["type", "onClick"]))), 128)),
7607
- e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B($, {
7607
+ e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
7608
7608
  key: 0,
7609
7609
  type: "success",
7610
7610
  secondary: "",
@@ -7623,7 +7623,7 @@ function R1(e, t, n, c, l, i) {
7623
7623
  ]),
7624
7624
  _: 1
7625
7625
  }, 8, ["onClick"])) : Q("", !0),
7626
- e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B($, {
7626
+ e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
7627
7627
  key: 1,
7628
7628
  type: "success",
7629
7629
  secondary: "",
@@ -7668,7 +7668,7 @@ function R1(e, t, n, c, l, i) {
7668
7668
  remote: ""
7669
7669
  }, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : Q("", !0),
7670
7670
  r("div", O1, [
7671
- e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B($, {
7671
+ e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
7672
7672
  key: 0,
7673
7673
  type: "success",
7674
7674
  secondary: "",
@@ -7687,7 +7687,7 @@ function R1(e, t, n, c, l, i) {
7687
7687
  ]),
7688
7688
  _: 1
7689
7689
  }, 8, ["onClick"])) : Q("", !0),
7690
- e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B($, {
7690
+ e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
7691
7691
  key: 1,
7692
7692
  type: "success",
7693
7693
  secondary: "",
@@ -7726,7 +7726,7 @@ const P1 = /* @__PURE__ */ w(B1, [["render", R1]]), H1 = re({
7726
7726
  },
7727
7727
  emits: ["update:value"],
7728
7728
  setup(e) {
7729
- const t = De("modules"), { t: n } = Qt(), c = M(), l = M(!1), i = M([]), a = M([]), p = M(void 0), $ = (N) => {
7729
+ const t = De("modules"), { t: n } = Qt(), c = M(), l = M(!1), i = M([]), a = M([]), p = M(void 0), _ = (N) => {
7730
7730
  if (l.value = !0, e.item.params.link) {
7731
7731
  const v = [];
7732
7732
  e.item.params.columns.forEach((o) => {
@@ -7823,10 +7823,10 @@ const P1 = /* @__PURE__ */ w(B1, [["render", R1]]), H1 = re({
7823
7823
  }
7824
7824
  ]
7825
7825
  });
7826
- $(N);
7826
+ _(N);
7827
7827
  }
7828
7828
  } catch {
7829
- $([]);
7829
+ _([]);
7830
7830
  }
7831
7831
  }), {
7832
7832
  drawerRef: c,
@@ -7874,7 +7874,7 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
7874
7874
  const c = Se(() => fe.isMobile), l = M(), i = M(0), a = M({}), p = M({
7875
7875
  link: "",
7876
7876
  linkFn: ""
7877
- }), $ = M(!1), z = M({
7877
+ }), _ = M(!1), z = M({
7878
7878
  index: 1,
7879
7879
  selection: 0,
7880
7880
  // 0:false | 1:multiple:true | 2:multiple:false
@@ -7895,7 +7895,7 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
7895
7895
  when_drawer_open: "",
7896
7896
  when_before_save: ""
7897
7897
  }), g = M(!1), S = M(), y = () => {
7898
- l.value?.restoreValidation(), a.value = {}, N.value = !1, D.value = !1, $.value = !1, t("update:show", !1);
7898
+ l.value?.restoreValidation(), a.value = {}, N.value = !1, D.value = !1, _.value = !1, t("update:show", !1);
7899
7899
  }, F = () => {
7900
7900
  i.value !== 2 ? Cf.info({
7901
7901
  title: "提示",
@@ -7922,11 +7922,11 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
7922
7922
  else
7923
7923
  a.value = I;
7924
7924
  }, Z = async (I, U, q, C = 0, R) => {
7925
- v.value = !0, i.value = C, z.value = U, u.value = q, $.value = !0, I().then(({ form: H, data: O }) => {
7925
+ v.value = !0, i.value = C, z.value = U, u.value = q, _.value = !0, I().then(({ form: H, data: O }) => {
7926
7926
  f.value = H, a.value = O, S.value = R, v.value = !1;
7927
7927
  }).catch(() => null);
7928
7928
  }, ne = (I, U, q, C = 0) => {
7929
- if (i.value = C, S.value = null, v.value = !0, $.value = !0, I) {
7929
+ if (i.value = C, S.value = null, v.value = !0, I) {
7930
7930
  p.value = {
7931
7931
  link: I,
7932
7932
  linkFn: U
@@ -7934,17 +7934,20 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
7934
7934
  const R = I.split(".")[0];
7935
7935
  Xe(R).then((H) => {
7936
7936
  be(async () => {
7937
- const O = je.parse(H.viewJson), { form: L } = await wt(
7937
+ const O = je.parse(H.viewJson);
7938
+ z.value = He(O.option), _.value = !0;
7939
+ const { form: L } = await wt(
7938
7940
  Ye(O.table)
7939
7941
  );
7940
7942
  u.value = O.trigger, q && K(q), be(() => {
7941
- f.value = L, z.value = He(O.option), v.value = !1;
7943
+ f.value = L, v.value = !1;
7942
7944
  });
7943
7945
  });
7944
7946
  }).catch(() => {
7945
7947
  g.value = !0, v.value = !1;
7946
7948
  });
7947
- }
7949
+ } else
7950
+ _.value = !0;
7948
7951
  }, T = () => {
7949
7952
  h.value = 0, N.value = !0, l.value?.validate().then(async (I) => {
7950
7953
  if (u.value.when_before_save) {
@@ -8001,7 +8004,7 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
8001
8004
  });
8002
8005
  };
8003
8006
  return n({ link: ne, addAndEdit: Z, getFormValues: () => l.value?.getValues() }), {
8004
- drawer: $,
8007
+ drawer: _,
8005
8008
  formRef: l,
8006
8009
  tableOption: z,
8007
8010
  ocrShow: D,
@@ -8024,7 +8027,7 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
8024
8027
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
8025
8028
  }, X1 = { class: "uz-flex uz-gap-2" };
8026
8029
  function Y1(e, t, n, c, l, i) {
8027
- const a = x("NSkeleton"), p = x("UzForm"), $ = x("UzSpin"), z = x("NSpin"), D = x("NButton"), N = x("NDrawerContent"), v = x("NDrawer");
8030
+ const a = x("NSkeleton"), p = x("UzForm"), _ = x("UzSpin"), z = x("NSpin"), D = x("NButton"), N = x("NDrawerContent"), v = x("NDrawer");
8028
8031
  return s(), B(v, {
8029
8032
  show: e.drawer,
8030
8033
  "onUpdate:show": t[1] || (t[1] = (o) => e.drawer = o),
@@ -8048,7 +8051,7 @@ function Y1(e, t, n, c, l, i) {
8048
8051
  E(P(e.$t("Notice.error")), 1)
8049
8052
  ]),
8050
8053
  default: m(() => [
8051
- b($, {
8054
+ b(_, {
8052
8055
  value: e.spinShow,
8053
8056
  "onUpdate:value": t[0] || (t[0] = (o) => e.spinShow = o),
8054
8057
  message: e.spinMsg,
@@ -8246,7 +8249,7 @@ const r0 = /* @__PURE__ */ w(e0, [["render", o0], ["__scopeId", "data-v-01b68b92
8246
8249
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
8247
8250
  };
8248
8251
  function c0(e, t, n, c, l, i) {
8249
- const a = x("UzTableMobileList"), p = x("NCheckbox"), $ = x("NPagination"), z = x("NCheckboxGroup"), D = x("NRadio"), N = x("NRadioGroup");
8252
+ const a = x("UzTableMobileList"), p = x("NCheckbox"), _ = x("NPagination"), z = x("NCheckboxGroup"), D = x("NRadio"), N = x("NRadioGroup");
8250
8253
  return e.selection === 2 ? (s(), B(z, {
8251
8254
  key: 0,
8252
8255
  value: e.rowKeys,
@@ -8276,7 +8279,7 @@ function c0(e, t, n, c, l, i) {
8276
8279
  _: 2
8277
8280
  }, 1032, ["value"]))), 128)),
8278
8281
  e.tableQueries && e.tableData && e.tableData.length > 0 ? (s(), d("div", s0, [
8279
- b($, {
8282
+ b(_, {
8280
8283
  page: e.tableQueries.query.page,
8281
8284
  "onUpdate:page": [
8282
8285
  t[0] || (t[0] = (v) => e.tableQueries.query.page = v),
@@ -8318,7 +8321,7 @@ function c0(e, t, n, c, l, i) {
8318
8321
  _: 2
8319
8322
  }, 1032, ["value"]))), 128)),
8320
8323
  e.tableQueries && e.tableData && e.tableData.length > 0 ? (s(), d("div", l0, [
8321
- b($, {
8324
+ b(_, {
8322
8325
  page: e.tableQueries.query.page,
8323
8326
  "onUpdate:page": [
8324
8327
  t[2] || (t[2] = (v) => e.tableQueries.query.page = v),
@@ -8350,7 +8353,7 @@ function c0(e, t, n, c, l, i) {
8350
8353
  }, null, 8, ["tableData", "tableIndex", "tableColumns"])
8351
8354
  ]))), 128)),
8352
8355
  e.tableQueries && e.tableData && e.tableData.length > 0 ? (s(), d("div", i0, [
8353
- b($, {
8356
+ b(_, {
8354
8357
  page: e.tableQueries.query.page,
8355
8358
  "onUpdate:page": [
8356
8359
  t[4] || (t[4] = (v) => e.tableQueries.query.page = v),
@@ -8470,7 +8473,7 @@ const p0 = re({
8470
8473
  }
8471
8474
  });
8472
8475
  function f0(e, t, n, c, l, i) {
8473
- const a = x("NTabPane"), p = x("Trash"), $ = x("NIcon"), z = x("NButton"), D = x("NPopconfirm"), N = x("NFlex"), v = x("NTabs");
8476
+ const a = x("NTabPane"), p = x("Trash"), _ = x("NIcon"), z = x("NButton"), D = x("NPopconfirm"), N = x("NFlex"), v = x("NTabs");
8474
8477
  return s(), B(v, {
8475
8478
  value: e.thumbnailStore.active,
8476
8479
  type: "card",
@@ -8487,7 +8490,7 @@ function f0(e, t, n, c, l, i) {
8487
8490
  trigger: m(() => [
8488
8491
  b(z, { class: "uz-button-glass" }, {
8489
8492
  default: m(() => [
8490
- b($, { color: "#e65444" }, {
8493
+ b(_, { color: "#e65444" }, {
8491
8494
  default: m(() => [
8492
8495
  b(p)
8493
8496
  ]),
@@ -8858,7 +8861,7 @@ function em(e, t) {
8858
8861
  }];
8859
8862
  }
8860
8863
  function tm(e, t, n) {
8861
- const c = `useQuery-${e}`, l = M(), i = M(), a = M(), p = M(!1), $ = M("idle"), z = M(), D = M(0), N = M(0), v = () => {
8864
+ const c = `useQuery-${e}`, l = M(), i = M(), a = M(), p = M(!1), _ = M("idle"), z = M(), D = M(0), N = M(0), v = () => {
8862
8865
  kn(), clearInterval(a.value), a.value = null;
8863
8866
  }, o = async () => {
8864
8867
  if (!p.value) {
@@ -8892,7 +8895,7 @@ function tm(e, t, n) {
8892
8895
  n?.formatResult && (F = n.formatResult(y)), i.value = F;
8893
8896
  }
8894
8897
  }, f = (y, F) => {
8895
- p.value = y, F && ($.value = F);
8898
+ p.value = y, F && (_.value = F);
8896
8899
  }, u = (y) => {
8897
8900
  z.value = y;
8898
8901
  }, g = () => {
@@ -8914,7 +8917,7 @@ function tm(e, t, n) {
8914
8917
  }, n?.pollingInterval)) : (n === void 0 || n.manual === void 0 || n.manual === !1) && o(), Ot(() => {
8915
8918
  v();
8916
8919
  }), {
8917
- status: $,
8920
+ status: _,
8918
8921
  data: i,
8919
8922
  loading: p,
8920
8923
  error: z,
@@ -8923,7 +8926,7 @@ function tm(e, t, n) {
8923
8926
  refetch: S
8924
8927
  };
8925
8928
  }
8926
- const x0 = "0.1.11";
8929
+ const x0 = "0.1.12";
8927
8930
  let _a;
8928
8931
  async function $a() {
8929
8932
  const e = await fetch(
@@ -8946,7 +8949,7 @@ async function $0() {
8946
8949
  }
8947
8950
  let Ut = "", jt;
8948
8951
  const te = navigator.userAgent.toLocaleUpperCase(), C0 = () => {
8949
- const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, c = /WINDOWS NT 10.[\d]+/, l = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/, a = /IPHONE/, p = /IPAD/, $ = /MAC/;
8952
+ const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, c = /WINDOWS NT 10.[\d]+/, l = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/, a = /IPHONE/, p = /IPAD/, _ = /MAC/;
8950
8953
  if (e.test(te)) return "Windows XP";
8951
8954
  if (t.test(te)) return "Windows 7";
8952
8955
  if (n.test(te)) return "Windows 8";
@@ -8966,20 +8969,20 @@ const te = navigator.userAgent.toLocaleUpperCase(), C0 = () => {
8966
8969
  const D = /OS [\d_]+/.exec(te);
8967
8970
  return `iPad${D ? D[0].split(" ")[1].replace(/_/g, ".") : ""}`;
8968
8971
  }
8969
- if ($.test(te)) {
8972
+ if (_.test(te)) {
8970
8973
  const D = / [\d_]+/.exec(te);
8971
8974
  return `MAC ${D ? D[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
8972
8975
  }
8973
8976
  return "Other Platform";
8974
8977
  }, M0 = () => {
8975
- const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, c = /CHROME\/[\d.]+/, l = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/, a = /SE \d/, p = /UCBROWSER/, $ = /ANDROID [\d.]+/;
8978
+ const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, c = /CHROME\/[\d.]+/, l = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/, a = /SE \d/, p = /UCBROWSER/, _ = /ANDROID [\d.]+/;
8976
8979
  if (e.test(te) && a.test(te))
8977
8980
  return "SogouIE";
8978
8981
  if (a.test(te))
8979
8982
  return "SogouFast";
8980
8983
  if (p.test(te))
8981
8984
  return "UC";
8982
- if ($.test(te))
8985
+ if (_.test(te))
8983
8986
  return "Android";
8984
8987
  if (i.test(te))
8985
8988
  return "Opera";
@@ -9071,19 +9074,19 @@ function S0({ components: e = [] } = {}) {
9071
9074
  }
9072
9075
  function c(l, i) {
9073
9076
  if (!t.includes(l) && (t.push(l), e.forEach((a) => {
9074
- const { name: p, alias: $ } = a;
9075
- n(l, p, a), $ && $.forEach((z) => {
9077
+ const { name: p, alias: _ } = a;
9078
+ n(l, p, a), _ && _.forEach((z) => {
9076
9079
  n(l, z, a);
9077
9080
  });
9078
9081
  }), i)) {
9079
9082
  const {
9080
9083
  monitor: a = !1,
9081
9084
  monitorFn: p,
9082
- version: $ = !0,
9085
+ version: _ = !0,
9083
9086
  language: z = !1,
9084
9087
  local: D = "zh-CN"
9085
9088
  } = i, N = Me("theme", !1), v = Me("lang", D);
9086
- jf(z), ta(v), na(N), Ne.global.locale.value = v, $ && $0(), a && N0(l, a, p);
9089
+ jf(z), ta(v), na(N), Ne.global.locale.value = v, _ && $0(), a && N0(l, a, p);
9087
9090
  }
9088
9091
  }
9089
9092
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },