@unizhen/ui 0.1.131 → 0.1.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/ui.js CHANGED
@@ -1930,7 +1930,7 @@ function Or(t, n, s, u, d, f) {
1930
1930
  path: n.key,
1931
1931
  rule: n.input === "subTable" ? void 0 : n.form.rule?.required ? n.form.rule : void 0,
1932
1932
  style: _(`grid-column: span ${n.form.span || 6} / span ${n.form.span || 6};`),
1933
- "show-label": n.input !== "divider" && n.input !== "subTable",
1933
+ "show-label": n.input !== "divider" && n.input !== "subTable" && n.input !== "bom",
1934
1934
  "show-feedback": t.showFeedback && n.input !== "divider"
1935
1935
  }, {
1936
1936
  label: P(() => [
@@ -2788,7 +2788,18 @@ var Xr = (e, t) => e.map((e, n) => {
2788
2788
  ...e,
2789
2789
  children: ai(e.children, t, n)
2790
2790
  } : e);
2791
- }, oi = /(?<=\[)(.+?)(?=\])/g, si = {
2791
+ }, oi = (e, t) => {
2792
+ for (let n of e ?? []) {
2793
+ if (n.value === t) return n;
2794
+ let e = oi(n.children, t);
2795
+ if (e) return e;
2796
+ }
2797
+ }, si = (e, t) => {
2798
+ let n = oi(e, t);
2799
+ if (!n) return;
2800
+ let r = n.operation_no ?? n.params?.operation_no ?? n.product_no ?? n.params?.product_no;
2801
+ return r != null && r !== "" ? String(r) : typeof n.label == "string" ? n.label.split("-")[0].trim() : "";
2802
+ }, ci = /(?<=\[)(.+?)(?=\])/g, li = {
2792
2803
  index: 1,
2793
2804
  selection: 0,
2794
2805
  pagination: 1,
@@ -2806,10 +2817,10 @@ var Xr = (e, t) => e.map((e, n) => {
2806
2817
  placement: "right",
2807
2818
  summary: ""
2808
2819
  };
2809
- function ci(e) {
2820
+ function ui(e) {
2810
2821
  return Function("return " + e)();
2811
2822
  }
2812
- var li = () => new Promise((e) => {
2823
+ var di = () => new Promise((e) => {
2813
2824
  let t = window.localStorage.getItem("city");
2814
2825
  if (t) e(JSON.parse(t));
2815
2826
  else {
@@ -2822,9 +2833,9 @@ var li = () => new Promise((e) => {
2822
2833
  t && (clearInterval(i), e(JSON.parse(t)));
2823
2834
  }, 500);
2824
2835
  }
2825
- }), ui = async (e, t, n) => {
2836
+ }), fi = async (e, t, n) => {
2826
2837
  if (t && typeof t == "string") {
2827
- let r = t.match(oi);
2838
+ let r = t.match(ci);
2828
2839
  if (r && t.indexOf("return") === -1) {
2829
2840
  let t = r[0].split(":");
2830
2841
  if (t[0] === "date") return (t) => jt(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
@@ -2845,7 +2856,7 @@ var li = () => new Promise((e) => {
2845
2856
  }
2846
2857
  }
2847
2858
  return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
2848
- }, di = (e, t, n) => {
2859
+ }, pi = (e, t, n) => {
2849
2860
  let r = t.map((t) => {
2850
2861
  let r = [], i = t.id;
2851
2862
  return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
@@ -2858,35 +2869,35 @@ var li = () => new Promise((e) => {
2858
2869
  };
2859
2870
  });
2860
2871
  return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
2861
- }, fi = /* @__PURE__ */ new Map();
2862
- function pi() {
2863
- fi.clear();
2872
+ }, mi = /* @__PURE__ */ new Map();
2873
+ function hi() {
2874
+ mi.clear();
2864
2875
  }
2865
- async function mi(e, t = !1) {
2876
+ async function gi(e, t = !1) {
2866
2877
  let n = e.split("."), r = !1;
2867
- return n.length > 1 && (fi.has(n[0]) && !t ? r = W(fi.get(n[0])) : (r = await Xn({ tableId: n[0] }), fi.set(n[0], r))), {
2878
+ return n.length > 1 && (mi.has(n[0]) && !t ? r = W(mi.get(n[0])) : (r = await Xn({ tableId: n[0] }), mi.set(n[0], r))), {
2868
2879
  sourceData: r,
2869
2880
  n
2870
2881
  };
2871
2882
  }
2872
- async function hi(e) {
2883
+ async function _i(e) {
2873
2884
  return new Promise((t, n) => {
2874
2885
  let r = J(`dynamicTable_${e}`, !1);
2875
- r && fi.has(`dynamicTable_${e}`) ? t(r) : Yn(e, r ? r.createTime : null).then((n) => {
2886
+ r && mi.has(`dynamicTable_${e}`) ? t(r) : Yn(e, r ? r.createTime : null).then((n) => {
2876
2887
  if (n) {
2877
2888
  let r = {
2878
2889
  createTime: n.createTime,
2879
2890
  tableTitle: n.tableTitle,
2880
2891
  viewJson: n.viewJson
2881
2892
  };
2882
- q(`dynamicTable_${e}`, r, 0), fi.set(`dynamicTable_${e}`, !0), Dt("tables_"), t(n);
2883
- } else fi.set(`dynamicTable_${e}`, !0), t(r);
2893
+ q(`dynamicTable_${e}`, r, 0), mi.set(`dynamicTable_${e}`, !0), Dt("tables_"), t(n);
2894
+ } else mi.set(`dynamicTable_${e}`, !0), t(r);
2884
2895
  }).catch(() => {
2885
2896
  n();
2886
2897
  });
2887
2898
  });
2888
2899
  }
2889
- var gi = (e) => e.map((e) => {
2900
+ var vi = (e) => e.map((e) => {
2890
2901
  let t = {};
2891
2902
  return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
2892
2903
  i: e.input,
@@ -2961,7 +2972,7 @@ var gi = (e) => e.map((e) => {
2961
2972
  p: { s: +!!e.form.expand.show }
2962
2973
  }
2963
2974
  };
2964
- }), _i = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
2975
+ }), yi = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
2965
2976
  let t = {};
2966
2977
  return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
2967
2978
  input: e.i,
@@ -3036,12 +3047,12 @@ var gi = (e) => e.map((e) => {
3036
3047
  expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
3037
3048
  }
3038
3049
  };
3039
- }), vi = (e) => ({
3050
+ }), bi = (e) => ({
3040
3051
  f: e.fetch,
3041
3052
  n: e.fetchFn,
3042
3053
  o: e.when_drawer_open,
3043
3054
  b: e.when_before_save
3044
- }), yi = (e) => e ? e.fetch ? e : {
3055
+ }), xi = (e) => e ? e.fetch ? e : {
3045
3056
  fetch: e.f,
3046
3057
  fetchFn: e.n,
3047
3058
  when_drawer_open: e.o,
@@ -3051,7 +3062,7 @@ var gi = (e) => e.map((e) => {
3051
3062
  fetchFn: "",
3052
3063
  when_drawer_open: "",
3053
3064
  when_before_save: ""
3054
- }, bi = (e) => ({
3065
+ }, Si = (e) => ({
3055
3066
  i: e.index,
3056
3067
  s: e.selection,
3057
3068
  p: e.pagination,
@@ -3067,7 +3078,7 @@ var gi = (e) => e.map((e) => {
3067
3078
  h: e.drawerHeight,
3068
3079
  l: e.placement,
3069
3080
  r: e.summary
3070
- }), xi = (e) => {
3081
+ }), Ci = (e) => {
3071
3082
  let t = {};
3072
3083
  return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.asynchronous !== void 0 || e.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
3073
3084
  index: e.i,
@@ -3085,9 +3096,9 @@ var gi = (e) => e.map((e) => {
3085
3096
  drawerHeight: e.h,
3086
3097
  placement: e.l,
3087
3098
  summary: e.r
3088
- }), Object.assign({}, si, W(t));
3099
+ }), Object.assign({}, li, W(t));
3089
3100
  };
3090
- function Si(e, t, n, r) {
3101
+ function wi(e, t, n, r) {
3091
3102
  let i = async (i, a) => {
3092
3103
  let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = W(e), p = [];
3093
3104
  for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
@@ -3122,21 +3133,21 @@ function Si(e, t, n, r) {
3122
3133
  disabled: !0
3123
3134
  }];
3124
3135
  if (e.params.immediately || r) {
3125
- let { sourceData: t, n: r } = await mi(e.source);
3136
+ let { sourceData: t, n: r } = await gi(e.source);
3126
3137
  if (t && Array.isArray(t)) {
3127
3138
  if (e.sourceFn) {
3128
3139
  let r = e.sourceFn;
3129
3140
  n = await Function("sourceData", "POST", r)(t, Z);
3130
- } else n = di(e, t, r);
3141
+ } else n = pi(e, t, r);
3131
3142
  }
3132
3143
  } else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
3133
- let { sourceData: t, n } = await mi(e.source);
3144
+ let { sourceData: t, n } = await gi(e.source);
3134
3145
  if (t && Array.isArray(t)) {
3135
3146
  if (e.sourceFn) {
3136
3147
  let n = e.sourceFn;
3137
3148
  return await Function("sourceData", "POST", n)(t, Z);
3138
3149
  }
3139
- return di(e, t, n);
3150
+ return pi(e, t, n);
3140
3151
  }
3141
3152
  };
3142
3153
  if (e.params.options = n, e.form.backfill && t) {
@@ -3170,27 +3181,27 @@ function Si(e, t, n, r) {
3170
3181
  K(e);
3171
3182
  }
3172
3183
  if (e.input === "cascader" && e.table.render === "[city]") {
3173
- let t = await li();
3184
+ let t = await di();
3174
3185
  e.params.options = t;
3175
3186
  }
3176
3187
  if (e.input === "subTable" && e.params.link) {
3177
- let t = await hi(e.params.link).catch(() => {
3188
+ let t = await _i(e.params.link).catch(() => {
3178
3189
  a();
3179
3190
  });
3180
3191
  if (t) try {
3181
3192
  let n = tt.parse(t.viewJson);
3182
3193
  n.suffix && (e._suffix = vr(n.suffix));
3183
- let r = _i(n.table);
3194
+ let r = yi(n.table);
3184
3195
  r.forEach((e) => {
3185
3196
  e.table.sorter = !1;
3186
3197
  });
3187
3198
  let i = r.filter((e) => e.input === "subTable");
3188
3199
  if (i) for await (let e of i) {
3189
- let t = await hi(e.params.link).catch(() => {
3200
+ let t = await _i(e.params.link).catch(() => {
3190
3201
  a();
3191
3202
  });
3192
3203
  if (t) try {
3193
- let n = tt.parse(t.viewJson), r = _i(n.table);
3204
+ let n = tt.parse(t.viewJson), r = yi(n.table);
3194
3205
  r.forEach((e) => {
3195
3206
  e.table.sorter = !1;
3196
3207
  }), e.params.columns = r, e.params.actions = n.action;
@@ -3227,7 +3238,7 @@ function Si(e, t, n, r) {
3227
3238
  i(e, t).catch(t);
3228
3239
  });
3229
3240
  }
3230
- async function Ci(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3241
+ async function Ti(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3231
3242
  let s = 0, c = [], l = [], u = {
3232
3243
  key: "",
3233
3244
  link: "",
@@ -3242,25 +3253,25 @@ async function Ci(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3242
3253
  for await (let [e, s] of m.entries()) {
3243
3254
  if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
3244
3255
  if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
3245
- let { sourceData: t, n } = await mi(s.source, a && e === 0);
3256
+ let { sourceData: t, n } = await gi(s.source, a && e === 0);
3246
3257
  if (t && Array.isArray(t)) {
3247
3258
  if (s.sourceFn) {
3248
3259
  let e = s.sourceFn, n = Function("sourceData", "POST", e);
3249
3260
  s.params.options = await n(t, Z);
3250
- } else s.params.options = di(s, t, n);
3261
+ } else s.params.options = pi(s, t, n);
3251
3262
  }
3252
3263
  } else s.params.options = [{
3253
3264
  label: G.global.t("Common.loading"),
3254
3265
  value: "loading",
3255
3266
  disabled: !0
3256
3267
  }], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
3257
- let { sourceData: e, n: t } = await mi(s.source);
3268
+ let { sourceData: e, n: t } = await gi(s.source);
3258
3269
  if (e && Array.isArray(e)) {
3259
3270
  if (s.sourceFn) {
3260
3271
  let t = s.sourceFn;
3261
3272
  return await Function("sourceData", "POST", t)(e, Z);
3262
3273
  }
3263
- return di(s, e, t);
3274
+ return pi(s, e, t);
3264
3275
  }
3265
3276
  };
3266
3277
  }
@@ -3283,7 +3294,7 @@ async function Ci(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3283
3294
  tooltip: !0,
3284
3295
  "line-clamp": s.table.clamp ?? 0
3285
3296
  } : !1,
3286
- render: s.table.render ? await ui(s.key, s.table.render, i) : void 0,
3297
+ render: s.table.render ? await fi(s.key, s.table.render, i) : void 0,
3287
3298
  show: Y.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
3288
3299
  pin: !!s.table.fixed,
3289
3300
  fixTemp: s.table.fixed
@@ -3318,34 +3329,34 @@ async function Ci(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3318
3329
  if (s.search.title && (s.label = s.search.title), s.search.source) {
3319
3330
  if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
3320
3331
  else if (s.params.immediately || s.search.defaultValue) {
3321
- let { sourceData: e, n: t } = await mi(s.search.source);
3332
+ let { sourceData: e, n: t } = await gi(s.search.source);
3322
3333
  if (e && Array.isArray(e)) {
3323
3334
  if (s.sourceFn) {
3324
3335
  let t = s.sourceFn, n = Function("sourceData", "POST", t);
3325
3336
  s.params.options = await n(e, Z);
3326
- } else s.params.options = di(s, e, t);
3337
+ } else s.params.options = pi(s, e, t);
3327
3338
  }
3328
3339
  } else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
3329
- let { sourceData: e, n: t } = await mi(s.search.source);
3340
+ let { sourceData: e, n: t } = await gi(s.search.source);
3330
3341
  if (e && Array.isArray(e)) {
3331
3342
  if (s.sourceFn) {
3332
3343
  let t = s.sourceFn;
3333
3344
  return await Function("sourceData", "POST", t)(e, Z);
3334
3345
  }
3335
- return di(s, e, t);
3346
+ return pi(s, e, t);
3336
3347
  }
3337
3348
  };
3338
3349
  }
3339
- if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = ci(s.search.defaultValue))), s.search.show) {
3350
+ if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = ui(s.search.defaultValue))), s.search.show) {
3340
3351
  let e = W(s);
3341
3352
  e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
3342
- let { sourceData: t, n } = await mi(e.source || e.search.source);
3353
+ let { sourceData: t, n } = await gi(e.source || e.search.source);
3343
3354
  if (t && Array.isArray(t)) {
3344
3355
  if (e.sourceFn) {
3345
3356
  let n = e.sourceFn;
3346
3357
  return await Function("sourceData", "POST", n)(t, Z);
3347
3358
  }
3348
- return di(e, t, n);
3359
+ return pi(e, t, n);
3349
3360
  }
3350
3361
  }), c.push({
3351
3362
  input: e.input,
@@ -3399,12 +3410,12 @@ async function Ci(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3399
3410
  }
3400
3411
  //#endregion
3401
3412
  //#region components/bom/index.vue?vue&type=script&lang.ts
3402
- var wi = [
3413
+ var Ei = [
3403
3414
  "var(--primary)",
3404
3415
  "var(--green)",
3405
3416
  "var(--yellow)",
3406
3417
  "var(--purple)"
3407
- ], Ti = d({
3418
+ ], Di = d({
3408
3419
  name: "UzBom",
3409
3420
  components: {
3410
3421
  NDataTable: oe,
@@ -3431,7 +3442,7 @@ var wi = [
3431
3442
  },
3432
3443
  emits: ["update:value"],
3433
3444
  setup(e, { emit: t, expose: r }) {
3434
- let i = p("mainFormValue"), { t: a } = U(), o = w(null), s = w([]), c = (e) => i?.value ? i.value()?.ticket_counts : e.counts, l = (e, t, n) => n ? `${n}-${t + 1}` : String(e.code || e.product_no || t + 1), u = (e, t = 1, n, r) => (e ?? []).map((e, t) => ({
3445
+ let i = p("mainFormValue"), { t: a } = U(), o = w(null), s = w([]), c = (e) => i?.value ? i.value()?.ticket_counts : e.counts, l = (e, t, n) => n ? `${n}-${t + 1}` : String(e.operation_no || e.product_no || e.code || t + 1), u = (e, t = 1, n, r) => (e ?? []).map((e, t) => ({
3435
3446
  row: e,
3436
3447
  index: t
3437
3448
  })).sort((e, t) => (typeof e.row.sort_index == "number" && Number.isFinite(e.row.sort_index) ? e.row.sort_index : Number.isFinite(e.row.sort) ? e.row.sort : e.index) - (typeof t.row.sort_index == "number" && Number.isFinite(t.row.sort_index) ? t.row.sort_index : Number.isFinite(t.row.sort) ? t.row.sort : t.index)).map(({ row: e }, i) => {
@@ -3471,19 +3482,25 @@ var wi = [
3471
3482
  (n.length !== m.value.length || n.some((e, t) => e !== m.value[t])) && (m.value = n);
3472
3483
  }, { run: T, flush: E, cancel: D } = Yr(() => {
3473
3484
  b(d.value), C();
3474
- }, 200), O = /* @__PURE__ */ new WeakMap(), k = (e) => {
3475
- let t = O.get(e);
3476
- if (t) return t;
3477
- let n = new Proxy(e, {
3485
+ }, 200), O = /* @__PURE__ */ new WeakMap(), k = (e, t) => {
3486
+ let n = O.get(e);
3487
+ n || (n = /* @__PURE__ */ new Map(), O.set(e, n));
3488
+ let r = n.get(t.key);
3489
+ if (r) return r;
3490
+ let i = new Proxy(e, {
3478
3491
  get(e, t, n) {
3479
3492
  return t === "required_quantity" ? ti(e) : Reflect.get(e, t, n);
3480
3493
  },
3481
- set(e, t, n) {
3482
- let r = Reflect.get(e, t) !== n, i = Reflect.set(e, t, n);
3483
- return r && (t === "quantity" || t === "lossRate") && Reflect.set(e, "required_quantity", ti(e)), r && (t === "quantity" || t === "lossRate" || t === "counts") && d.value.forEach((e) => ri(Array.isArray(e.children) ? e.children : [], e.counts)), r && t === "product_no" && T(), i;
3494
+ set(e, n, r) {
3495
+ let i = Reflect.get(e, n) !== r, a = Reflect.set(e, n, r);
3496
+ if (i && (n === "quantity" || n === "lossRate") && Reflect.set(e, "required_quantity", ti(e)), i && (n === "quantity" || n === "lossRate" || n === "counts") && d.value.forEach((e) => ri(Array.isArray(e.children) ? e.children : [], e.counts)), i && n === t.key) {
3497
+ let i = si(t.params?.options, r);
3498
+ i !== void 0 && (Reflect.set(e, "operation_no", i), Number(e.level) === 1 && Reflect.set(e, "code", i)), (i !== void 0 || n === "product_no") && (T(), i !== void 0 && E());
3499
+ }
3500
+ return a;
3484
3501
  }
3485
3502
  });
3486
- return O.set(e, n), n;
3503
+ return n.set(t.key, i), i;
3487
3504
  }, A = () => {
3488
3505
  let e = /* @__PURE__ */ new Set(), t = (n) => {
3489
3506
  n.forEach((n) => {
@@ -3618,7 +3635,7 @@ var wi = [
3618
3635
  if (!Number.isFinite(t) || t < 1) return null;
3619
3636
  let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
3620
3637
  return {
3621
- color: wi[n - 1],
3638
+ color: Ei[n - 1],
3622
3639
  strength: `${Math.min(10 + r * 5, 40)}%`
3623
3640
  };
3624
3641
  };
@@ -3631,8 +3648,8 @@ var wi = [
3631
3648
  }), M(d, () => C(), { immediate: !0 }), y(async () => {
3632
3649
  e.value?.length || t("update:value", d.value);
3633
3650
  let n = await Jn("bom_col");
3634
- n = tt.parse(n.viewJson), n = _i(n.table);
3635
- let { tableColumns: r } = await Ci(n), i = r.filter((e) => e.show).map((t) => ({
3651
+ n = tt.parse(n.viewJson), n = yi(n.table);
3652
+ let { tableColumns: r } = await Ti(n), i = r.filter((e) => e.show).map((t) => ({
3636
3653
  title: t.title,
3637
3654
  key: t.key,
3638
3655
  width: t.width ?? 120,
@@ -3640,14 +3657,14 @@ var wi = [
3640
3657
  showLabel: !1,
3641
3658
  showFeedback: !1,
3642
3659
  path: `child[${r}].${t.key}`,
3643
- rule: t.form.rule?.required ? {
3644
- ...t.form.rule,
3645
- validator: typeof t.form.rule.validator == "function" ? t.form.rule.validator : void 0,
3660
+ rule: t.form?.rule?.required ? {
3661
+ ...t.form?.rule,
3662
+ validator: typeof t.form?.rule.validator == "function" ? t.form?.rule.validator : void 0,
3646
3663
  index: r
3647
3664
  } : void 0
3648
3665
  }, { default: () => f(Tr, {
3649
3666
  item: t,
3650
- formValue: k(n),
3667
+ formValue: k(n, t),
3651
3668
  status: e.status,
3652
3669
  itemIndex: r
3653
3670
  }) })
@@ -3678,14 +3695,14 @@ var wi = [
3678
3695
  handleExpandedRowKeysChange: oe
3679
3696
  };
3680
3697
  }
3681
- }), Ei = { class: "uz-bom uz-flex-1 uz-w-full" }, Di = { class: "uz-flex uz-justify-between" }, Oi = { class: "uz-com-title" }, ki = {
3698
+ }), Oi = { class: "uz-bom uz-flex-1 uz-w-full" }, ki = { class: "uz-flex uz-flex-col uz-justify-between" }, Ai = { class: "uz-com-title" }, ji = {
3682
3699
  key: 0,
3683
3700
  class: "uz-table-asterisk"
3684
3701
  };
3685
- function Ai(e, t, n, s, u, d) {
3702
+ function Mi(e, t, n, s, u, d) {
3686
3703
  let f = D("NDataTable"), p = D("NForm");
3687
- return x(), a("div", Ei, [o("div", Di, [
3688
- o("div", Oi, [c(A(e.item.label) + " ", 1), e.item.form.rule.required ? (x(), a("span", ki, " \xA0* ")) : i("", !0)]),
3704
+ return x(), a("div", Oi, [o("div", ki, [
3705
+ o("div", Ai, [c(A(e.item.label) + " ", 1), e.item.form?.rule.required ? (x(), a("span", ji, " \xA0* ")) : i("", !0)]),
3689
3706
  t[0] ||= o("div", { class: "uz-br" }, null, -1),
3690
3707
  l(p, {
3691
3708
  ref: "formRef",
@@ -3727,13 +3744,13 @@ function Ai(e, t, n, s, u, d) {
3727
3744
  }, 8, ["model"])
3728
3745
  ])]);
3729
3746
  }
3730
- var ji = /*#__PURE__*/ Q(Ti, [["render", Ai]]), Mi = 46, Ni = 8, Pi = 2 * Math.PI * Mi, Fi = Ni, Ii = 19, Li = 69, Ri = 52, zi = 8, Bi = 135, Vi = 270, Hi = 2 * Math.PI * Ri, Ui = Vi / 360 * Hi, Wi = 11, Gi = `rotate(${Bi} 60 ${Li})`, Ki = (e, t, n, r) => {
3747
+ var Ni = /*#__PURE__*/ Q(Di, [["render", Mi]]), Pi = 46, Fi = 8, Ii = 2 * Math.PI * Pi, Li = Fi, Ri = 19, zi = 69, Bi = 52, Vi = 8, Hi = 135, Ui = 270, Wi = 2 * Math.PI * Bi, Gi = Ui / 360 * Wi, Ki = 11, qi = `rotate(${Hi} 60 ${zi})`, Ji = (e, t, n, r) => {
3731
3748
  let i = r * Math.PI / 180;
3732
3749
  return {
3733
3750
  x: e + n * Math.cos(i),
3734
3751
  y: t + n * Math.sin(i)
3735
3752
  };
3736
- }, qi = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Ji = (e, t, n, r, i, a) => {
3753
+ }, Yi = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Xi = (e, t, n, r, i, a) => {
3737
3754
  if (a <= 0) return "";
3738
3755
  let o = n + r / 2, s = n - r / 2;
3739
3756
  if (a >= 359.999) {
@@ -3745,16 +3762,16 @@ var ji = /*#__PURE__*/ Q(Ti, [["render", Ai]]), Mi = 46, Ni = 8, Pi = 2 * Math.P
3745
3762
  `A ${s} ${s} 0 1 0 ${i}`
3746
3763
  ].join(" ");
3747
3764
  }
3748
- let c = i + a, l = Ki(e, t, o, i), u = Ki(e, t, o, c), d = Ki(e, t, s, c), f = Ki(e, t, s, i), p = r / 2, m = +(a > 180);
3765
+ let c = i + a, l = Ji(e, t, o, i), u = Ji(e, t, o, c), d = Ji(e, t, s, c), f = Ji(e, t, s, i), p = r / 2, m = +(a > 180);
3749
3766
  return [
3750
- `M ${qi(l)}`,
3751
- `A ${o} ${o} 0 ${m} 1 ${qi(u)}`,
3752
- `A ${p} ${p} 0 0 1 ${qi(d)}`,
3753
- `A ${s} ${s} 0 ${m} 0 ${qi(f)}`,
3754
- `A ${p} ${p} 0 0 1 ${qi(l)}`,
3767
+ `M ${Yi(l)}`,
3768
+ `A ${o} ${o} 0 ${m} 1 ${Yi(u)}`,
3769
+ `A ${p} ${p} 0 0 1 ${Yi(d)}`,
3770
+ `A ${s} ${s} 0 ${m} 0 ${Yi(f)}`,
3771
+ `A ${p} ${p} 0 0 1 ${Yi(l)}`,
3755
3772
  "Z"
3756
3773
  ].join(" ");
3757
- }, Yi = (e) => {
3774
+ }, Zi = (e) => {
3758
3775
  if (!e) return "";
3759
3776
  let t = e.toLowerCase();
3760
3777
  if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
@@ -3768,7 +3785,7 @@ var ji = /*#__PURE__*/ Q(Ti, [["render", Ai]]), Mi = 46, Ni = 8, Pi = 2 * Math.P
3768
3785
  return e.join(",");
3769
3786
  }
3770
3787
  return "0,0,0";
3771
- }, Xi = d({
3788
+ }, Qi = d({
3772
3789
  name: "UzCircle",
3773
3790
  components: { UzNumberFlow: rt },
3774
3791
  props: {
@@ -3791,10 +3808,10 @@ var ji = /*#__PURE__*/ Q(Ti, [["render", Ai]]), Mi = 46, Ni = 8, Pi = 2 * Math.P
3791
3808
  }
3792
3809
  },
3793
3810
  setup(e) {
3794
- let t = ee(), r = `uz-blurs-${t}`, i = n(() => `rgba(${Yi(e.color).split(",").map((e) => {
3811
+ let t = ee(), r = `uz-blurs-${t}`, i = n(() => `rgba(${Zi(e.color).split(",").map((e) => {
3795
3812
  let t = Number(e) - 50;
3796
3813
  return t < 0 && (t = 0), t;
3797
- })},1)`), a = n(() => `rgba(${Yi(e.color)},1)`), o = n(() => {
3814
+ })},1)`), a = n(() => `rgba(${Zi(e.color)},1)`), o = n(() => {
3798
3815
  let t = Number(e.circle);
3799
3816
  return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
3800
3817
  }), s = w(o.value), c;
@@ -3813,62 +3830,62 @@ var ji = /*#__PURE__*/ Q(Ti, [["render", Ai]]), Mi = 46, Ni = 8, Pi = 2 * Math.P
3813
3830
  c !== void 0 && cancelAnimationFrame(c);
3814
3831
  });
3815
3832
  let l = n(() => {
3816
- let e = Pi * (s.value / 100), t = Pi - e;
3833
+ let e = Ii * (s.value / 100), t = Ii - e;
3817
3834
  if (e === 0) return {
3818
3835
  activeLength: 0,
3819
3836
  activeStart: 0,
3820
- remainingLength: Pi,
3837
+ remainingLength: Ii,
3821
3838
  remainingStart: 0
3822
3839
  };
3823
3840
  if (t === 0) return {
3824
- activeLength: Pi,
3841
+ activeLength: Ii,
3825
3842
  activeStart: 0,
3826
3843
  remainingLength: 0,
3827
3844
  remainingStart: 0
3828
3845
  };
3829
- let n = Math.min(1, Math.min(e, t) / Ii), r = Fi + 3 * n, i = Ni * n, a = e < Ii ? i : Pi - (t < Ii ? i : t - r) - r * 2, o = Pi - a - r * 2;
3846
+ let n = Math.min(1, Math.min(e, t) / Ri), r = Li + 3 * n, i = Fi * n, a = e < Ri ? i : Ii - (t < Ri ? i : t - r) - r * 2, o = Ii - a - r * 2;
3830
3847
  return {
3831
3848
  activeLength: a,
3832
3849
  activeStart: r / 2,
3833
3850
  remainingLength: o,
3834
3851
  remainingStart: r / 2 + a + r
3835
3852
  };
3836
- }), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => Ji(60, 60, Mi, Ni, -90 + p.value / Pi * 360, f.value / Pi * 360)), h = n(() => {
3837
- let e = Ui * (s.value / 100), t = Ui - e;
3853
+ }), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => Xi(60, 60, Pi, Fi, -90 + p.value / Ii * 360, f.value / Ii * 360)), h = n(() => {
3854
+ let e = Gi * (s.value / 100), t = Gi - e;
3838
3855
  if (e === 0) return {
3839
3856
  activeLength: 0,
3840
- remainingLength: Ui,
3857
+ remainingLength: Gi,
3841
3858
  remainingStart: 0
3842
3859
  };
3843
3860
  if (t === 0) return {
3844
- activeLength: Ui,
3861
+ activeLength: Gi,
3845
3862
  remainingLength: 0,
3846
3863
  remainingStart: 0
3847
3864
  };
3848
- let n = Math.min(Wi, e, t);
3865
+ let n = Math.min(Ki, e, t);
3849
3866
  return {
3850
3867
  activeLength: e - n / 2,
3851
3868
  remainingLength: t - n / 2,
3852
3869
  remainingStart: e + n / 2
3853
3870
  };
3854
- }), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), y = n(() => h.value.remainingStart), b = n(() => Ji(60, Li, Ri, zi, Bi + y.value / Hi * 360, _.value / Hi * 360));
3871
+ }), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), y = n(() => h.value.remainingStart), b = n(() => Xi(60, zi, Bi, Vi, Hi + y.value / Wi * 360, _.value / Wi * 360));
3855
3872
  return {
3856
3873
  color: n(() => e.color),
3857
3874
  colorA: i,
3858
3875
  colorB: a,
3859
- fullRadius: Mi,
3860
- fullStrokeWidth: Ni,
3861
- fullCircumference: Pi,
3876
+ fullRadius: Pi,
3877
+ fullStrokeWidth: Fi,
3878
+ fullCircumference: Ii,
3862
3879
  fullActiveLength: u,
3863
3880
  fullActiveStart: d,
3864
3881
  fullRemainingLength: f,
3865
3882
  fullRemainingStart: p,
3866
3883
  fullRemainingPath: m,
3867
- gaugeCenterY: Li,
3868
- gaugeRadius: Ri,
3869
- gaugeStrokeWidth: zi,
3870
- gaugeCircumference: Hi,
3871
- gaugeTransform: Gi,
3884
+ gaugeCenterY: zi,
3885
+ gaugeRadius: Bi,
3886
+ gaugeStrokeWidth: Vi,
3887
+ gaugeCircumference: Wi,
3888
+ gaugeTransform: qi,
3872
3889
  gaugeActiveLength: g,
3873
3890
  gaugeRemainingLength: _,
3874
3891
  gaugeRemainingStart: y,
@@ -3877,31 +3894,31 @@ var ji = /*#__PURE__*/ Q(Ti, [["render", Ai]]), Mi = 46, Ni = 8, Pi = 2 * Math.P
3877
3894
  blurFilterId: r
3878
3895
  };
3879
3896
  }
3880
- }), Zi = { class: "uz-circle" }, Qi = {
3897
+ }), $i = { class: "uz-circle" }, ea = {
3881
3898
  key: 0,
3882
3899
  viewBox: "0 0 120 120",
3883
3900
  "aria-hidden": "true"
3884
- }, $i = ["id"], ea = ["stop-color"], ta = ["stop-color"], na = ["id"], ra = [
3901
+ }, ta = ["id"], na = ["stop-color"], ra = ["stop-color"], ia = ["id"], aa = [
3885
3902
  "r",
3886
3903
  "stroke-width",
3887
3904
  "stroke-dasharray",
3888
3905
  "stroke-dashoffset",
3889
3906
  "filter",
3890
3907
  "stroke"
3891
- ], ia = [
3908
+ ], oa = [
3892
3909
  "d",
3893
3910
  "fill",
3894
3911
  "filter"
3895
- ], aa = {
3912
+ ], sa = {
3896
3913
  class: "uz-circle__unit",
3897
3914
  x: "60",
3898
3915
  y: "82",
3899
3916
  "text-anchor": "middle"
3900
- }, oa = {
3917
+ }, ca = {
3901
3918
  key: 1,
3902
3919
  viewBox: "0 0 120 120",
3903
3920
  "aria-hidden": "true"
3904
- }, sa = ["id"], ca = ["stop-color"], la = ["stop-color"], ua = ["id"], da = [
3921
+ }, la = ["id"], ua = ["stop-color"], da = ["stop-color"], fa = ["id"], pa = [
3905
3922
  "cy",
3906
3923
  "r",
3907
3924
  "stroke-width",
@@ -3909,19 +3926,19 @@ var ji = /*#__PURE__*/ Q(Ti, [["render", Ai]]), Mi = 46, Ni = 8, Pi = 2 * Math.P
3909
3926
  "transform",
3910
3927
  "filter",
3911
3928
  "stroke"
3912
- ], fa = [
3929
+ ], ma = [
3913
3930
  "d",
3914
3931
  "fill",
3915
3932
  "filter"
3916
- ], pa = {
3933
+ ], ha = {
3917
3934
  class: "uz-circle__unit uz-circle__unit--gauge",
3918
3935
  x: "60",
3919
3936
  y: "90",
3920
3937
  "text-anchor": "middle"
3921
3938
  };
3922
- function ma(e, t, n, r, s, c) {
3939
+ function ga(e, t, n, r, s, c) {
3923
3940
  let u = D("UzNumberFlow");
3924
- return x(), a("div", Zi, [e.mode === 0 ? (x(), a("svg", Qi, [
3941
+ return x(), a("div", $i, [e.mode === 0 ? (x(), a("svg", ea, [
3925
3942
  o("defs", null, [o("linearGradient", {
3926
3943
  id: `uz-progress-grad-${e.uniqueId}`,
3927
3944
  x1: "1",
@@ -3931,10 +3948,10 @@ function ma(e, t, n, r, s, c) {
3931
3948
  }, [o("stop", {
3932
3949
  offset: "0%",
3933
3950
  "stop-color": e.colorA
3934
- }, null, 8, ea), o("stop", {
3951
+ }, null, 8, na), o("stop", {
3935
3952
  offset: "50%",
3936
3953
  "stop-color": e.colorB
3937
- }, null, 8, ta)], 8, $i), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
3954
+ }, null, 8, ra)], 8, ta), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
3938
3955
  o("feOffset", {
3939
3956
  result: "offOut",
3940
3957
  in: "SourceGraphic",
@@ -3951,7 +3968,7 @@ function ma(e, t, n, r, s, c) {
3951
3968
  in2: "blurOut",
3952
3969
  mode: "normal"
3953
3970
  }, null, -1)
3954
- ]], 8, na)]),
3971
+ ]], 8, ia)]),
3955
3972
  e.fullActiveLength > 0 ? (x(), a("circle", {
3956
3973
  key: 0,
3957
3974
  class: "uz-circle__progress",
@@ -3966,7 +3983,7 @@ function ma(e, t, n, r, s, c) {
3966
3983
  transform: "rotate(-90 60 60)",
3967
3984
  filter: `url(#${e.blurFilterId})`,
3968
3985
  stroke: `url(#uz-progress-grad-${e.uniqueId})`
3969
- }, null, 8, ra)) : i("", !0),
3986
+ }, null, 8, aa)) : i("", !0),
3970
3987
  e.fullRemainingPath ? (x(), a("path", {
3971
3988
  key: 1,
3972
3989
  class: "uz-circle__progress",
@@ -3974,9 +3991,9 @@ function ma(e, t, n, r, s, c) {
3974
3991
  fill: e.color,
3975
3992
  "fill-opacity": "0.1",
3976
3993
  filter: `url(#${e.blurFilterId})`
3977
- }, null, 8, ia)) : i("", !0),
3978
- o("text", aa, A(e.circleUnit), 1)
3979
- ])) : (x(), a("svg", oa, [
3994
+ }, null, 8, oa)) : i("", !0),
3995
+ o("text", sa, A(e.circleUnit), 1)
3996
+ ])) : (x(), a("svg", ca, [
3980
3997
  o("defs", null, [o("linearGradient", {
3981
3998
  id: `uz-progress-grad-1-${e.uniqueId}`,
3982
3999
  x1: "1",
@@ -3986,10 +4003,10 @@ function ma(e, t, n, r, s, c) {
3986
4003
  }, [o("stop", {
3987
4004
  offset: "0%",
3988
4005
  "stop-color": e.colorA
3989
- }, null, 8, ca), o("stop", {
4006
+ }, null, 8, ua), o("stop", {
3990
4007
  offset: "50%",
3991
4008
  "stop-color": e.colorB
3992
- }, null, 8, la)], 8, sa), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
4009
+ }, null, 8, da)], 8, la), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
3993
4010
  o("feOffset", {
3994
4011
  result: "offOut",
3995
4012
  in: "SourceGraphic",
@@ -4006,7 +4023,7 @@ function ma(e, t, n, r, s, c) {
4006
4023
  in2: "blurOut",
4007
4024
  mode: "normal"
4008
4025
  }, null, -1)
4009
- ]], 8, ua)]),
4026
+ ]], 8, fa)]),
4010
4027
  e.gaugeActiveLength > 0 ? (x(), a("circle", {
4011
4028
  key: 0,
4012
4029
  class: "uz-circle__progress",
@@ -4020,7 +4037,7 @@ function ma(e, t, n, r, s, c) {
4020
4037
  transform: e.gaugeTransform,
4021
4038
  filter: `url(#${e.blurFilterId})`,
4022
4039
  stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
4023
- }, null, 8, da)) : i("", !0),
4040
+ }, null, 8, pa)) : i("", !0),
4024
4041
  e.gaugeRemainingPath ? (x(), a("path", {
4025
4042
  key: 1,
4026
4043
  class: "uz-circle__progress",
@@ -4028,11 +4045,11 @@ function ma(e, t, n, r, s, c) {
4028
4045
  fill: e.color,
4029
4046
  "fill-opacity": "0.1",
4030
4047
  filter: `url(#${e.blurFilterId})`
4031
- }, null, 8, fa)) : i("", !0),
4032
- o("text", pa, A(e.circleUnit), 1)
4048
+ }, null, 8, ma)) : i("", !0),
4049
+ o("text", ha, A(e.circleUnit), 1)
4033
4050
  ])), o("div", { class: g(["uz-circle__value uz-circle__value--gauge uz-circle__number", { "uz-circle__number--gauge": e.mode !== 0 }]) }, [l(u, { value: e.circle }, null, 8, ["value"])], 2)]);
4034
4051
  }
4035
- var ha = /*#__PURE__*/ Q(Xi, [["render", ma]]), ga = d({
4052
+ var _a = /*#__PURE__*/ Q(Qi, [["render", ga]]), va = d({
4036
4053
  name: "UzCamera",
4037
4054
  components: {
4038
4055
  NButton: L,
@@ -4125,11 +4142,11 @@ var ha = /*#__PURE__*/ Q(Xi, [["render", ma]]), ga = d({
4125
4142
  closeAll: f
4126
4143
  };
4127
4144
  }
4128
- }), _a = ["width", "height"], va = ["width", "height"], ya = { class: "uz-scan-video" }, ba = {
4145
+ }), ya = ["width", "height"], ba = ["width", "height"], xa = { class: "uz-scan-video" }, Sa = {
4129
4146
  ref: "videoRef",
4130
4147
  playsInline: ""
4131
4148
  };
4132
- function xa(t, n, s, l, u, d) {
4149
+ function Ca(t, n, s, l, u, d) {
4133
4150
  let f = D("NButton"), p = D("NModal");
4134
4151
  return x(), a(e, null, [
4135
4152
  t.mode === "button" ? (x(), r(f, {
@@ -4161,7 +4178,7 @@ function xa(t, n, s, l, u, d) {
4161
4178
  id: "uz-scan-canvas",
4162
4179
  width: t.width,
4163
4180
  height: t.height
4164
- }, null, 8, _a)], 4)]),
4181
+ }, null, 8, ya)], 4)]),
4165
4182
  _: 1
4166
4183
  }, 8, [
4167
4184
  "show",
@@ -4179,11 +4196,11 @@ function xa(t, n, s, l, u, d) {
4179
4196
  id: "uz-scan-canvas",
4180
4197
  width: t.width,
4181
4198
  height: t.height
4182
- }, null, 8, va)], 4)) : i("", !0),
4183
- o("div", ya, [o("video", ba, null, 512)])
4199
+ }, null, 8, ba)], 4)) : i("", !0),
4200
+ o("div", xa, [o("video", Sa, null, 512)])
4184
4201
  ], 64);
4185
4202
  }
4186
- var Sa = /*#__PURE__*/ Q(ga, [["render", xa]]), Ca = /* @__PURE__ */ new WeakMap(), wa = d({
4203
+ var wa = /*#__PURE__*/ Q(va, [["render", Ca]]), Ta = /* @__PURE__ */ new WeakMap(), Ea = d({
4187
4204
  name: "UzSearchBar",
4188
4205
  components: {
4189
4206
  NIcon: V,
@@ -4232,10 +4249,10 @@ var Sa = /*#__PURE__*/ Q(ga, [["render", xa]]), Ca = /* @__PURE__ */ new WeakMap
4232
4249
  e.offsetWidth > 1100 ? (t.instance.gridSpan = 1, t.instance.more = t.instance.moreCache, t.instance.offset = t.instance.offsetCache) : e.offsetWidth <= 1100 && e.offsetWidth > 550 ? (t.instance.gridSpan = 2, t.instance.more = t.instance.moreIndex > 2, t.instance.offset = t.instance.moreIndex === 1 ? 1 : -1) : (t.instance.gridSpan = 4, t.instance.more = t.instance.moreIndex > 1, t.instance.offset = -1);
4233
4250
  }
4234
4251
  });
4235
- n.observe(e), Ca.set(e, n);
4252
+ n.observe(e), Ta.set(e, n);
4236
4253
  },
4237
4254
  unmounted: (e) => {
4238
- Ca.get(e)?.disconnect(), Ca.delete(e);
4255
+ Ta.get(e)?.disconnect(), Ta.delete(e);
4239
4256
  }
4240
4257
  } },
4241
4258
  emits: ["update:loading", "on-update:value"],
@@ -4351,24 +4368,24 @@ var Sa = /*#__PURE__*/ Q(ga, [["render", xa]]), Ca = /* @__PURE__ */ new WeakMap
4351
4368
  tabButtonType: x
4352
4369
  };
4353
4370
  }
4354
- }), Ta = { class: "uz-flex uz-justify-between uz-gap-2" }, Ea = {
4371
+ }), Da = { class: "uz-flex uz-justify-between uz-gap-2" }, Oa = {
4355
4372
  key: 0,
4356
4373
  class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
4357
- }, Da = { key: 0 }, Oa = { class: "uz-flex-1" }, ka = {
4374
+ }, ka = { key: 0 }, Aa = { class: "uz-flex-1" }, ja = {
4358
4375
  key: 1,
4359
4376
  class: "uz-flex uz-gap-2 uz-flex-1"
4360
- }, Aa = {
4377
+ }, Ma = {
4361
4378
  key: 0,
4362
4379
  class: "uz-search-fields-collapse"
4363
4380
  };
4364
- function ja(n, s, u, d, f, p) {
4381
+ function Na(n, s, u, d, f, p) {
4365
4382
  let m = D("NButton"), h = D("NButtonGroup"), _ = D("NGridItem"), v = D("NInputGroupLabel"), y = D("NPopover"), b = D("UzFormItem"), S = D("NInputGroup"), C = D("NGrid"), w = D("UzIcon"), k = D("NIcon"), ee = O("media");
4366
4383
  return x(), a("div", {
4367
4384
  class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
4368
4385
  onKeyup: s[1] ||= te((e) => n.doSearch(!1), ["enter"])
4369
- }, [o("div", Ta, [n.enableHeader ? (x(), a("div", Ea, [
4386
+ }, [o("div", Da, [n.enableHeader ? (x(), a("div", Oa, [
4370
4387
  E(n.$slots, "header"),
4371
- n.tabList && n.tabList.length > 0 ? (x(), a("div", Da, [l(h, null, {
4388
+ n.tabList && n.tabList.length > 0 ? (x(), a("div", ka, [l(h, null, {
4372
4389
  default: P(() => [(x(!0), a(e, null, T(n.tabList, (e) => (x(), r(m, {
4373
4390
  key: e.value,
4374
4391
  type: n.tabButtonType(e),
@@ -4380,7 +4397,7 @@ function ja(n, s, u, d, f, p) {
4380
4397
  }, 1032, ["type", "onClick"]))), 128))]),
4381
4398
  _: 1
4382
4399
  })])) : i("", !0),
4383
- F((x(), a("div", Oa, [l(C, {
4400
+ F((x(), a("div", Aa, [l(C, {
4384
4401
  "x-gap": "8",
4385
4402
  "y-gap": "8",
4386
4403
  cols: n.cols,
@@ -4417,7 +4434,7 @@ function ja(n, s, u, d, f, p) {
4417
4434
  }, 1032, ["span"]))), 128)) : i("", !0)]),
4418
4435
  _: 1
4419
4436
  }, 8, ["cols"])])), [[ee]])
4420
- ])) : i("", !0), n.enableHeader ? (x(), a("div", ka, [
4437
+ ])) : i("", !0), n.enableHeader ? (x(), a("div", ja, [
4421
4438
  n.more ? (x(), r(m, {
4422
4439
  key: 0,
4423
4440
  secondary: "",
@@ -4467,7 +4484,7 @@ function ja(n, s, u, d, f, p) {
4467
4484
  })) : i("", !0),
4468
4485
  E(n.$slots, "action")
4469
4486
  ])) : i("", !0)]), l(t, { name: "uz-search-fields" }, {
4470
- default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", Aa, [l(C, {
4487
+ default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", Ma, [l(C, {
4471
4488
  "x-gap": "8",
4472
4489
  "y-gap": "8",
4473
4490
  cols: 4
@@ -4502,7 +4519,7 @@ function ja(n, s, u, d, f, p) {
4502
4519
  _: 1
4503
4520
  })], 32);
4504
4521
  }
4505
- var Ma = /*#__PURE__*/ Q(wa, [["render", ja]]), Na = d({
4522
+ var Pa = /*#__PURE__*/ Q(Ea, [["render", Na]]), Fa = d({
4506
4523
  name: "UzSearchMobileBar",
4507
4524
  components: {
4508
4525
  NIcon: V,
@@ -4592,10 +4609,10 @@ var Ma = /*#__PURE__*/ Q(wa, [["render", ja]]), Na = d({
4592
4609
  clearAll: u
4593
4610
  };
4594
4611
  }
4595
- }), Pa = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, Fa = { class: "uz-flex uz-gap-2" }, Ia = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
4596
- function La(t, n, s, u, d, f) {
4612
+ }), Ia = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, La = { class: "uz-flex uz-gap-2" }, Ra = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
4613
+ function za(t, n, s, u, d, f) {
4597
4614
  let p = D("UzIcon"), m = D("NIcon"), h = D("NButton"), g = D("NInputGroupLabel"), _ = D("UzFormItem"), v = D("NInputGroup"), y = D("NGridItem"), b = D("NGrid"), S = D("NDrawerContent"), C = D("NDrawer");
4598
- return x(), a(e, null, [o("div", Pa, [E(t.$slots, "header"), o("div", Fa, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
4615
+ return x(), a(e, null, [o("div", Ia, [E(t.$slots, "header"), o("div", La, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
4599
4616
  key: 0,
4600
4617
  secondary: "",
4601
4618
  onClick: n[0] ||= (e) => t.drawer = !0
@@ -4620,7 +4637,7 @@ function La(t, n, s, u, d, f) {
4620
4637
  title: t.t("Common.search"),
4621
4638
  closable: ""
4622
4639
  }, {
4623
- footer: P(() => [o("div", Ia, [l(h, {
4640
+ footer: P(() => [o("div", Ra, [l(h, {
4624
4641
  secondary: "",
4625
4642
  loading: t.loading,
4626
4643
  onClick: t.clearAll,
@@ -4675,7 +4692,7 @@ function La(t, n, s, u, d, f) {
4675
4692
  _: 1
4676
4693
  }, 8, ["show"])], 64);
4677
4694
  }
4678
- var Ra = /*#__PURE__*/ Q(Na, [["render", La]]), za = d({
4695
+ var Ba = /*#__PURE__*/ Q(Fa, [["render", za]]), Va = d({
4679
4696
  name: "UzSpin",
4680
4697
  components: {
4681
4698
  NButton: L,
@@ -4722,7 +4739,7 @@ var Ra = /*#__PURE__*/ Q(Na, [["render", La]]), za = d({
4722
4739
  });
4723
4740
  //#endregion
4724
4741
  //#region components/spin/index.vue
4725
- function Ba(e, t, n, i, a, s) {
4742
+ function Ha(e, t, n, i, a, s) {
4726
4743
  let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
4727
4744
  return x(), r(f, { show: e.value }, {
4728
4745
  description: P(() => [
@@ -4750,7 +4767,7 @@ function Ba(e, t, n, i, a, s) {
4750
4767
  _: 3
4751
4768
  }, 8, ["show"]);
4752
4769
  }
4753
- var Va = /*#__PURE__*/ Q(za, [["render", Ba]]), Ha = d({
4770
+ var Ua = /*#__PURE__*/ Q(Va, [["render", Ha]]), Wa = d({
4754
4771
  name: "UzTableExpand",
4755
4772
  components: {
4756
4773
  NDataTable: oe,
@@ -4776,8 +4793,8 @@ var Va = /*#__PURE__*/ Q(za, [["render", Ba]]), Ha = d({
4776
4793
  } catch (e) {
4777
4794
  K(e);
4778
4795
  }
4779
- hi(e.data.link).then(async (e) => {
4780
- let { tableColumns: r } = await Ci(_i(tt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
4796
+ _i(e.data.link).then(async (e) => {
4797
+ let { tableColumns: r } = await Ti(yi(tt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
4781
4798
  ...e,
4782
4799
  sorter: !1,
4783
4800
  resizable: !1
@@ -4798,7 +4815,7 @@ var Va = /*#__PURE__*/ Q(za, [["render", Ba]]), Ha = d({
4798
4815
  });
4799
4816
  //#endregion
4800
4817
  //#region components/table/components/expand.vue
4801
- function Ua(e, t, n, i, a, o) {
4818
+ function Ga(e, t, n, i, a, o) {
4802
4819
  let s = D("NDataTable");
4803
4820
  return x(), r(s, {
4804
4821
  columns: e.columns,
@@ -4817,18 +4834,18 @@ function Ua(e, t, n, i, a, o) {
4817
4834
  "scroll-x"
4818
4835
  ]);
4819
4836
  }
4820
- var Wa = /*#__PURE__*/ Q(Ha, [["render", Ua]]), Ga = d({
4837
+ var Ka = /*#__PURE__*/ Q(Wa, [["render", Ga]]), qa = d({
4821
4838
  components: { NSkeleton: Ae },
4822
4839
  setup() {
4823
4840
  return {};
4824
4841
  }
4825
- }), Ka = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, qa = { class: "uz-flex uz-justify-between" }, Ja = { class: "uz-flex uz-gap-1" };
4826
- function Ya(e, t, n, r, i, s) {
4842
+ }), Ja = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Ya = { class: "uz-flex uz-justify-between" }, Xa = { class: "uz-flex uz-gap-1" };
4843
+ function Za(e, t, n, r, i, s) {
4827
4844
  let c = D("NSkeleton");
4828
- return x(), a("div", Ka, [o("div", qa, [l(c, {
4845
+ return x(), a("div", Ja, [o("div", Ya, [l(c, {
4829
4846
  width: 120,
4830
4847
  size: "medium"
4831
- }), o("div", Ja, [
4848
+ }), o("div", Xa, [
4832
4849
  l(c, {
4833
4850
  width: 180,
4834
4851
  size: "medium"
@@ -4861,7 +4878,7 @@ function Ya(e, t, n, r, i, s) {
4861
4878
  }
4862
4879
  //#endregion
4863
4880
  //#region components/table/index.vue?vue&type=script&lang.ts
4864
- var Xa = d({
4881
+ var Qa = d({
4865
4882
  name: "UzTable",
4866
4883
  components: {
4867
4884
  NDataTable: oe,
@@ -4871,9 +4888,9 @@ var Xa = d({
4871
4888
  NCheckbox: re,
4872
4889
  NSpin: Me,
4873
4890
  VueDraggable: et,
4874
- UzSpin: Va,
4875
- TableExpand: Wa,
4876
- SkeletonLoading: /* @__PURE__ */ Q(Ga, [["render", Ya]])
4891
+ UzSpin: Ua,
4892
+ TableExpand: Ka,
4893
+ SkeletonLoading: /* @__PURE__ */ Q(qa, [["render", Za]])
4877
4894
  },
4878
4895
  props: {
4879
4896
  id: {
@@ -5013,7 +5030,7 @@ var Xa = d({
5013
5030
  fetchFn: "",
5014
5031
  when_drawer_open: "",
5015
5032
  when_before_save: ""
5016
- }), R = w(xi()), ne = w(""), re = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, n) => {
5033
+ }), R = w(Ci()), ne = w(""), re = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, n) => {
5017
5034
  t("update:rowKeys", {
5018
5035
  keys: e,
5019
5036
  rows: W(n)
@@ -5122,7 +5139,7 @@ var Xa = d({
5122
5139
  width: 180,
5123
5140
  render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => jt(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
5124
5141
  }], be = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !N.value || N.value && N.value[0] === "*" ? !1 : !N.value?.includes(t), xe = async (e) => {
5125
- let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Si(P.value, e, () => m.value?.getFormValues());
5142
+ let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await wi(P.value, e, () => m.value?.getFormValues());
5126
5143
  return x.value = t, {
5127
5144
  form: t,
5128
5145
  fillingDefaultValue: n,
@@ -5283,8 +5300,8 @@ var Xa = d({
5283
5300
  };
5284
5301
  }
5285
5302
  }, Te = async () => {
5286
- re.value = !1, pi();
5287
- let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Ci(P.value, e.child, 0, () => ({}), ae);
5303
+ re.value = !1, hi();
5304
+ let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Ti(P.value, e.child, 0, () => ({}), ae);
5288
5305
  !l.value && R.value.index && n.unshift({
5289
5306
  title: "#",
5290
5307
  key: "index",
@@ -5353,7 +5370,7 @@ var Xa = d({
5353
5370
  filter: "default",
5354
5371
  filterOptionValue: null,
5355
5372
  renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: ze }, { default: () => s("Common.expand") }), f(L, { onClick: Be }, { default: () => s("Common.contract") })]),
5356
- renderExpand: (e) => f(Wa, {
5373
+ renderExpand: (e) => f(Ka, {
5357
5374
  data: a,
5358
5375
  value: e
5359
5376
  })
@@ -5419,13 +5436,13 @@ var Xa = d({
5419
5436
  fetchFn: "",
5420
5437
  when_drawer_open: "",
5421
5438
  when_before_save: ""
5422
- }, R.value = xi();
5439
+ }, R.value = Ci();
5423
5440
  }, Pe = (t) => {
5424
5441
  let n = tt.parse(t.viewJson);
5425
- b.value = t.tableTitle, P.value = _i(n.table), F.value = vr(e.actions || n.action);
5442
+ b.value = t.tableTitle, P.value = yi(n.table), F.value = vr(e.actions || n.action);
5426
5443
  let r = vr(n.suffix || []);
5427
- te.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value = yi(n.trigger);
5428
- let i = xi(e.options ?? n.option);
5444
+ te.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), I.value = xi(n.trigger);
5445
+ let i = Ci(e.options ?? n.option);
5429
5446
  t.tableTitle && i.title && Mt(t.tableTitle), R.value = i;
5430
5447
  }, Fe = async () => {
5431
5448
  v.value = !1, Ne();
@@ -5443,7 +5460,7 @@ var Xa = d({
5443
5460
  ne.value = s("Notice.network"), re.value = !0;
5444
5461
  return;
5445
5462
  }
5446
- De(), e.columns ? (P.value = e.columns || [], F.value = e.actions || [], te.value = e.suffixes || [], R.value = xi(e.options), await Te()) : await hi(t).then(async (e) => {
5463
+ De(), e.columns ? (P.value = e.columns || [], F.value = e.actions || [], te.value = e.suffixes || [], R.value = Ci(e.options), await Te()) : await _i(t).then(async (e) => {
5447
5464
  Pe(e), await Te();
5448
5465
  }).catch((e) => {
5449
5466
  ne.value = e?.message || s("Notice.network"), re.value = !0;
@@ -5560,14 +5577,14 @@ var Xa = d({
5560
5577
  }
5561
5578
  };
5562
5579
  }
5563
- }), Za = { class: "uz-com-title" }, Qa = {
5580
+ }), $a = { class: "uz-com-title" }, eo = {
5564
5581
  ref: "mRef",
5565
5582
  class: "uz-table-m-content"
5566
- }, $a = {
5583
+ }, to = {
5567
5584
  key: 1,
5568
5585
  class: "uz-transform-fade-in"
5569
- }, eo = { class: "uz-com-title" }, to = ["data-index"];
5570
- function no(t, n, u, d, f, p) {
5586
+ }, no = { class: "uz-com-title" }, ro = ["data-index"];
5587
+ function io(t, n, u, d, f, p) {
5571
5588
  let m = D("SkeletonLoading"), h = D("NButton"), v = D("UzIcon"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("NCheckbox"), O = D("VueDraggable"), k = D("NPopover"), ee = D("UzTableFile"), M = D("UzSearchBar"), N = D("NDataTable"), te = D("NSpin"), I = D("UzTableDrawer");
5572
5589
  return x(), a("div", {
5573
5590
  class: "uz-table",
@@ -5632,7 +5649,7 @@ function no(t, n, u, d, f, p) {
5632
5649
  key: "0"
5633
5650
  } : {
5634
5651
  name: "header",
5635
- fn: P(() => [o("div", Za, A(t.title), 1)]),
5652
+ fn: P(() => [o("div", $a, A(t.title), 1)]),
5636
5653
  key: "1"
5637
5654
  }]), 1032, [
5638
5655
  "data",
@@ -5640,7 +5657,7 @@ function no(t, n, u, d, f, p) {
5640
5657
  "cache",
5641
5658
  "loading",
5642
5659
  "onOnUpdate:value"
5643
- ]), o("div", Qa, [l(C, {
5660
+ ]), o("div", eo, [l(C, {
5644
5661
  tableColumns: t.tableCols,
5645
5662
  tableData: t.tableData,
5646
5663
  tableQueries: t.tableQueries,
@@ -5658,7 +5675,7 @@ function no(t, n, u, d, f, p) {
5658
5675
  "minH",
5659
5676
  "maxH",
5660
5677
  "onUpdate:rowKeys"
5661
- ])], 512)], 2)) : (x(), a("div", $a, [l(M, {
5678
+ ])], 512)], 2)) : (x(), a("div", to, [l(M, {
5662
5679
  data: t.searchData,
5663
5680
  id: t.id || t.route.params.id,
5664
5681
  cache: t.tableOption.cache,
@@ -5713,7 +5730,7 @@ function no(t, n, u, d, f, p) {
5713
5730
  _: 1
5714
5731
  })]),
5715
5732
  _: 1
5716
- })], 8, to)), [[j, !e.hide]])), 128)), l(h, {
5733
+ })], 8, ro)), [[j, !e.hide]])), 128)), l(h, {
5717
5734
  block: "",
5718
5735
  tertiary: "",
5719
5736
  loading: t.loading,
@@ -5767,7 +5784,7 @@ function no(t, n, u, d, f, p) {
5767
5784
  key: "0"
5768
5785
  } : {
5769
5786
  name: "header",
5770
- fn: P(() => [o("div", eo, A(t.title), 1)]),
5787
+ fn: P(() => [o("div", no, A(t.title), 1)]),
5771
5788
  key: "1"
5772
5789
  }]), 1032, [
5773
5790
  "data",
@@ -5828,7 +5845,7 @@ function no(t, n, u, d, f, p) {
5828
5845
  l(I, { ref: "drawerRef" }, null, 512)
5829
5846
  ], 4);
5830
5847
  }
5831
- var ro = /*#__PURE__*/ Q(Xa, [["render", no]]), io = d({
5848
+ var ao = /*#__PURE__*/ Q(Qa, [["render", io]]), oo = d({
5832
5849
  name: "UzTableChild",
5833
5850
  components: {
5834
5851
  UzIcon: qt,
@@ -5857,7 +5874,7 @@ var ro = /*#__PURE__*/ Q(Xa, [["render", no]]), io = d({
5857
5874
  emits: ["update:value"],
5858
5875
  setup(e, { emit: t, expose: r }) {
5859
5876
  let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = n(() => s ? s() : 0), { t: l } = U(), u = w(), d = w(), m = w(), g = w(!1), _ = w(!0), y = w([]), b = w({ child: [] }), x = w(""), S = w({}), C = w([]), T = w(void 0), E = async (t, n) => {
5860
- let { formDefaultValue: r, fillingDefaultArray: i } = await Si(W(n ?? e.item.params.columns), t, void 0, !0);
5877
+ let { formDefaultValue: r, fillingDefaultArray: i } = await wi(W(n ?? e.item.params.columns), t, void 0, !0);
5861
5878
  return S.value = r, i;
5862
5879
  }, D = async (t) => {
5863
5880
  if (g.value) return;
@@ -5888,7 +5905,7 @@ var ro = /*#__PURE__*/ Q(Xa, [["render", no]]), io = d({
5888
5905
  });
5889
5906
  }, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
5890
5907
  e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
5891
- let { tableColumns: r, tableWidth: i } = await Ci(W(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
5908
+ let { tableColumns: r, tableWidth: i } = await Ti(W(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
5892
5909
  r.unshift({
5893
5910
  title: " ",
5894
5911
  key: "index",
@@ -6061,14 +6078,14 @@ var ro = /*#__PURE__*/ Q(Xa, [["render", no]]), io = d({
6061
6078
  }
6062
6079
  };
6063
6080
  }
6064
- }), ao = { class: "uz-flex-1 uz-w-full" }, oo = { class: "uz-flex uz-justify-between" }, so = { class: "uz-com-title" }, co = {
6081
+ }), so = { class: "uz-flex-1 uz-w-full" }, co = { class: "uz-flex uz-justify-between" }, lo = { class: "uz-com-title" }, uo = {
6065
6082
  key: 0,
6066
6083
  class: "uz-table-asterisk"
6067
- }, lo = { class: "uz-flex uz-gap-2" }, uo = { class: "uz-flex uz-justify-end uz-gap-2" };
6068
- function fo(t, n, u, d, f, p) {
6084
+ }, fo = { class: "uz-flex uz-gap-2" }, po = { class: "uz-flex uz-justify-end uz-gap-2" };
6085
+ function mo(t, n, u, d, f, p) {
6069
6086
  let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("NDataTable"), y = D("NForm");
6070
- return x(), a("div", ao, [
6071
- o("div", oo, [o("div", so, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), a("span", co, " \xA0* ")) : i("", !0)]), o("div", lo, [
6087
+ return x(), a("div", so, [
6088
+ o("div", co, [o("div", lo, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), a("span", uo, " \xA0* ")) : i("", !0)]), o("div", fo, [
6072
6089
  t.status === 2 ? i("", !0) : (x(!0), a(e, { key: 0 }, T(t.suffixes, (e) => (x(), r(_, {
6073
6090
  key: e.key,
6074
6091
  type: e.color,
@@ -6141,7 +6158,7 @@ function fo(t, n, u, d, f, p) {
6141
6158
  "scroll-x",
6142
6159
  "class",
6143
6160
  "row-class-name"
6144
- ])) : i("", !0), o("div", uo, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
6161
+ ])) : i("", !0), o("div", po, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
6145
6162
  key: 0,
6146
6163
  type: "success",
6147
6164
  secondary: "",
@@ -6170,7 +6187,7 @@ function fo(t, n, u, d, f, p) {
6170
6187
  }, 8, ["model"])
6171
6188
  ]);
6172
6189
  }
6173
- var po = /*#__PURE__*/ Q(io, [["render", fo]]), mo = d({
6190
+ var ho = /*#__PURE__*/ Q(oo, [["render", mo]]), go = d({
6174
6191
  name: "UzTableQuestChild",
6175
6192
  components: { NDataTable: oe },
6176
6193
  props: {
@@ -6198,7 +6215,7 @@ var po = /*#__PURE__*/ Q(io, [["render", fo]]), mo = d({
6198
6215
  }), o.value = t, i.value = !1;
6199
6216
  }
6200
6217
  }, l = async (i) => {
6201
- let { tableColumns: c, tableWidth: l } = await Ci(W(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
6218
+ let { tableColumns: c, tableWidth: l } = await Ti(W(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
6202
6219
  c.unshift({
6203
6220
  title: " ",
6204
6221
  key: "index",
@@ -6272,11 +6289,11 @@ var po = /*#__PURE__*/ Q(io, [["render", fo]]), mo = d({
6272
6289
  tableScrollX: s
6273
6290
  };
6274
6291
  }
6275
- }), ho = { class: "uz-flex-1 uz-w-full" }, go = { class: "uz-flex uz-justify-between" }, _o = { class: "uz-com-title" };
6276
- function vo(e, t, n, r, i, s) {
6292
+ }), _o = { class: "uz-flex-1 uz-w-full" }, vo = { class: "uz-flex uz-justify-between" }, yo = { class: "uz-com-title" };
6293
+ function bo(e, t, n, r, i, s) {
6277
6294
  let c = D("NDataTable"), u = D("UzTableDrawer");
6278
- return x(), a("div", ho, [
6279
- o("div", go, [o("div", _o, A(e.item.label), 1)]),
6295
+ return x(), a("div", _o, [
6296
+ o("div", vo, [o("div", yo, A(e.item.label), 1)]),
6280
6297
  t[0] ||= o("div", { class: "uz-br" }, null, -1),
6281
6298
  l(c, {
6282
6299
  columns: e.columns,
@@ -6298,7 +6315,7 @@ function vo(e, t, n, r, i, s) {
6298
6315
  l(u, { ref: "drawerRef" }, null, 512)
6299
6316
  ]);
6300
6317
  }
6301
- var yo = /*#__PURE__*/ Q(mo, [["render", vo]]), bo = d({
6318
+ var xo = /*#__PURE__*/ Q(go, [["render", bo]]), So = d({
6302
6319
  name: "UzTableDrawer",
6303
6320
  components: {
6304
6321
  NButton: L,
@@ -6370,11 +6387,11 @@ var yo = /*#__PURE__*/ Q(mo, [["render", vo]]), bo = d({
6370
6387
  linkFn: t
6371
6388
  };
6372
6389
  let r = e.split(".")[0];
6373
- hi(r).then((e) => {
6390
+ _i(r).then((e) => {
6374
6391
  h(async () => {
6375
6392
  let t = tt.parse(e.viewJson);
6376
- f.value = xi(t.option), d.value = !0;
6377
- let { form: i } = await Si(_i(t.table), n);
6393
+ f.value = Ci(t.option), d.value = !0;
6394
+ let { form: i } = await wi(yi(t.table), n);
6378
6395
  b.value = t.trigger, n && E(n);
6379
6396
  let a = J(`tables_cache_link_${r}`, !1);
6380
6397
  a && (l.value = a), h(() => {
@@ -6433,7 +6450,7 @@ var yo = /*#__PURE__*/ Q(mo, [["render", vo]]), bo = d({
6433
6450
  tableId: n,
6434
6451
  ...e
6435
6452
  }).then(() => {
6436
- pi(), Xn({ tableId: n }).then((e) => {
6453
+ hi(), Xn({ tableId: n }).then((e) => {
6437
6454
  let r = u.value.link.split("."), i;
6438
6455
  if (u.value.linkFn) {
6439
6456
  let t = u.value.linkFn;
@@ -6466,11 +6483,11 @@ var yo = /*#__PURE__*/ Q(mo, [["render", vo]]), bo = d({
6466
6483
  }
6467
6484
  };
6468
6485
  }
6469
- }), xo = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, So = {
6486
+ }), Co = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, wo = {
6470
6487
  key: 0,
6471
6488
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
6472
- }, Co = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, wo = { class: "uz-flex uz-gap-2" };
6473
- function To(t, n, u, d, f, p) {
6489
+ }, To = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, Eo = { class: "uz-flex uz-gap-2" };
6490
+ function Do(t, n, u, d, f, p) {
6474
6491
  let m = D("NSkeleton"), h = D("UzForm"), g = D("UzSpin"), _ = D("NSpin"), v = D("NButton"), y = D("NPopover"), b = D("NDrawerContent"), S = D("NDrawer"), C = D("UzOcr"), w = D("NModal");
6475
6492
  return x(), a(e, null, [l(S, {
6476
6493
  show: t.drawer,
@@ -6496,7 +6513,7 @@ function To(t, n, u, d, f, p) {
6496
6513
  message: t.spinMsg,
6497
6514
  status: t.spinStatus
6498
6515
  }, {
6499
- default: P(() => [o("div", xo, [t.skeletonShow ? (x(), a("div", So, [
6516
+ default: P(() => [o("div", Co, [t.skeletonShow ? (x(), a("div", wo, [
6500
6517
  l(m, {
6501
6518
  size: "large",
6502
6519
  style: { height: "156px" }
@@ -6559,7 +6576,7 @@ function To(t, n, u, d, f, p) {
6559
6576
  _: 2
6560
6577
  }, [t.formStatus === 2 ? void 0 : {
6561
6578
  name: "footer",
6562
- fn: P(() => [o("div", Co, [t.isMobile ? i("", !0) : (x(), r(v, {
6579
+ fn: P(() => [o("div", To, [t.isMobile ? i("", !0) : (x(), r(v, {
6563
6580
  key: 0,
6564
6581
  loading: t.spinShow,
6565
6582
  type: "success",
@@ -6568,7 +6585,7 @@ function To(t, n, u, d, f, p) {
6568
6585
  }, {
6569
6586
  default: P(() => [c(A(t.t("OCR.ocr")), 1)]),
6570
6587
  _: 1
6571
- }, 8, ["loading"])), o("div", wo, [
6588
+ }, 8, ["loading"])), o("div", Eo, [
6572
6589
  l(v, {
6573
6590
  loading: t.spinShow,
6574
6591
  class: "uz-drawer-button",
@@ -6636,7 +6653,7 @@ function To(t, n, u, d, f, p) {
6636
6653
  _: 1
6637
6654
  }, 8, ["show", "title"])], 64);
6638
6655
  }
6639
- var Eo = /*#__PURE__*/ Q(bo, [["render", To]]), Do = d({
6656
+ var Oo = /*#__PURE__*/ Q(So, [["render", Do]]), ko = d({
6640
6657
  name: "UzTableMobileList",
6641
6658
  props: {
6642
6659
  tableData: {
@@ -6654,12 +6671,12 @@ var Eo = /*#__PURE__*/ Q(bo, [["render", To]]), Do = d({
6654
6671
  },
6655
6672
  emits: ["update:row-keys"],
6656
6673
  setup() {}
6657
- }), Oo = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, ko = {
6674
+ }), Ao = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, jo = {
6658
6675
  key: 1,
6659
6676
  class: "uz-table-mobile-group-txt"
6660
6677
  };
6661
- function Ao(t, n, s, c, l, u) {
6662
- return x(), a("div", Oo, [(x(!0), a(e, null, T(t.tableColumns, (n) => (x(), a("div", {
6678
+ function Mo(t, n, s, c, l, u) {
6679
+ return x(), a("div", Ao, [(x(!0), a(e, null, T(t.tableColumns, (n) => (x(), a("div", {
6663
6680
  key: n.key,
6664
6681
  class: g(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
6665
6682
  style: _(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
@@ -6670,11 +6687,11 @@ function Ao(t, n, s, c, l, u) {
6670
6687
  class: "mobile"
6671
6688
  })) : i("", !0)], 64)) : (x(), a(e, { key: 1 }, [o("div", { class: g(["uz-table-mobile-group-title", n.lineBreak ? "line-break" : ""]) }, [o("div", null, A(typeof n.title == "string" ? n.title : n.title()), 1)], 2), o("div", { class: g(["uz-table-mobile-group-content", n.lineBreak ? "line-break" : ""]) }, [n.render ? (x(), r(k(() => {
6672
6689
  if (t.tableData) return n.render(t.tableData, t.tableIndex);
6673
- }), { key: 0 })) : (x(), a("div", ko, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
6690
+ }), { key: 0 })) : (x(), a("div", jo, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
6674
6691
  }
6675
6692
  //#endregion
6676
6693
  //#region components/table/mobile.vue?vue&type=script&lang.ts
6677
- var jo = d({
6694
+ var No = d({
6678
6695
  name: "UzTableMobile",
6679
6696
  components: {
6680
6697
  NCheckbox: re,
@@ -6682,7 +6699,7 @@ var jo = d({
6682
6699
  NPagination: we,
6683
6700
  NCheckboxGroup: ie,
6684
6701
  NRadioGroup: Oe,
6685
- UzTableMobileList: /* @__PURE__ */ Q(Do, [["render", Ao], ["__scopeId", "data-v-84c394fe"]])
6702
+ UzTableMobileList: /* @__PURE__ */ Q(ko, [["render", Mo], ["__scopeId", "data-v-84c394fe"]])
6686
6703
  },
6687
6704
  props: {
6688
6705
  tableData: {
@@ -6729,17 +6746,17 @@ var jo = d({
6729
6746
  }
6730
6747
  };
6731
6748
  }
6732
- }), Mo = {
6749
+ }), Po = {
6733
6750
  key: 0,
6734
6751
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
6735
- }, No = {
6752
+ }, Fo = {
6736
6753
  key: 0,
6737
6754
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
6738
- }, Po = {
6755
+ }, Io = {
6739
6756
  key: 0,
6740
6757
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
6741
6758
  };
6742
- function Fo(t, n, o, s, c, u) {
6759
+ function Lo(t, n, o, s, c, u) {
6743
6760
  let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
6744
6761
  return t.selection === 2 ? (x(), r(m, {
6745
6762
  key: 0,
@@ -6766,7 +6783,7 @@ function Fo(t, n, o, s, c, u) {
6766
6783
  "tableColumns"
6767
6784
  ])]),
6768
6785
  _: 2
6769
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Mo, [l(p, {
6786
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Po, [l(p, {
6770
6787
  page: t.tableQueries.query.page,
6771
6788
  "onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
6772
6789
  "item-count": t.tableQueries.query.itemCount,
@@ -6808,7 +6825,7 @@ function Fo(t, n, o, s, c, u) {
6808
6825
  "tableColumns"
6809
6826
  ])]),
6810
6827
  _: 2
6811
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", No, [l(p, {
6828
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Fo, [l(p, {
6812
6829
  page: t.tableQueries.query.page,
6813
6830
  "onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
6814
6831
  "item-count": t.tableQueries.query.itemCount,
@@ -6843,7 +6860,7 @@ function Fo(t, n, o, s, c, u) {
6843
6860
  "tableData",
6844
6861
  "tableIndex",
6845
6862
  "tableColumns"
6846
- ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Po, [l(p, {
6863
+ ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Io, [l(p, {
6847
6864
  page: t.tableQueries.query.page,
6848
6865
  "onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
6849
6866
  "item-count": t.tableQueries.query.itemCount,
@@ -6856,7 +6873,7 @@ function Fo(t, n, o, s, c, u) {
6856
6873
  "onUpdate:page"
6857
6874
  ])])) : i("", !0)], 4));
6858
6875
  }
6859
- var Io = /*#__PURE__*/ Q(jo, [["render", Fo], ["__scopeId", "data-v-70b54e3b"]]), Lo = d({
6876
+ var Ro = /*#__PURE__*/ Q(No, [["render", Lo], ["__scopeId", "data-v-70b54e3b"]]), zo = d({
6860
6877
  name: "UzTableFile",
6861
6878
  components: {
6862
6879
  UzIcon: qt,
@@ -6995,11 +7012,11 @@ var Io = /*#__PURE__*/ Q(jo, [["render", Fo], ["__scopeId", "data-v-70b54e3b"]])
6995
7012
  }
6996
7013
  };
6997
7014
  }
6998
- }), Ro = { class: "uz-file-port-modal" }, zo = { class: "uz-file-port-card" }, Bo = { class: "uz-file-port-subtitle" }, Vo = {
7015
+ }), Bo = { class: "uz-file-port-modal" }, Vo = { class: "uz-file-port-card" }, Ho = { class: "uz-file-port-subtitle" }, Uo = {
6999
7016
  key: 1,
7000
7017
  class: "uz-file-port-panel"
7001
- }, Ho = { class: "uz-file-port-subtitle" }, Uo = { class: "uz-flex uz-justify-between" }, Wo = { class: "uz-com-title" };
7002
- function Go(t, n, i, s, u, d) {
7018
+ }, Wo = { class: "uz-file-port-subtitle" }, Go = { class: "uz-flex uz-justify-between" }, Ko = { class: "uz-com-title" };
7019
+ function qo(t, n, i, s, u, d) {
7003
7020
  let f = D("UzIcon"), p = D("NIcon"), m = D("NButton"), h = D("NDropdown"), g = D("NUpload"), _ = D("NSpace"), v = D("NDataTable"), y = D("NModal");
7004
7021
  return x(), a(e, null, [l(h, {
7005
7022
  trigger: "hover",
@@ -7034,8 +7051,8 @@ function Go(t, n, i, s, u, d) {
7034
7051
  default: P(() => [c(A(t.t("File.downloadTemplate")), 1)]),
7035
7052
  _: 1
7036
7053
  }, 8, ["onClick"])]),
7037
- default: P(() => [o("div", Ro, [
7038
- t.rawFile ? (x(), a("div", Vo, [
7054
+ default: P(() => [o("div", Bo, [
7055
+ t.rawFile ? (x(), a("div", Uo, [
7039
7056
  n[2] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
7040
7057
  xmlns: "http://www.w3.org/2000/svg",
7041
7058
  viewBox: "0 0 24 24",
@@ -7044,7 +7061,7 @@ function Go(t, n, i, s, u, d) {
7044
7061
  fill: "currentColor"
7045
7062
  }, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
7046
7063
  o("div", null, A(t.rawFileName.join(",")), 1),
7047
- o("div", Ho, A(t.t("File.importWaitTip")), 1),
7064
+ o("div", Wo, A(t.t("File.importWaitTip")), 1),
7048
7065
  l(_, { justify: "space-between" }, {
7049
7066
  default: P(() => [l(m, {
7050
7067
  size: "small",
@@ -7074,16 +7091,16 @@ function Go(t, n, i, s, u, d) {
7074
7091
  multiple: "",
7075
7092
  class: "uz-w-full"
7076
7093
  }, {
7077
- default: P(() => [o("div", zo, [n[1] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
7094
+ default: P(() => [o("div", Vo, [n[1] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
7078
7095
  xmlns: "http://www.w3.org/2000/svg",
7079
7096
  viewBox: "0 0 24 24",
7080
7097
  width: "40",
7081
7098
  height: "40",
7082
7099
  fill: "currentColor"
7083
- }, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1), o("div", Bo, A(t.t("File.uploadExcelTip")), 1)])]),
7100
+ }, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1), o("div", Ho, A(t.t("File.uploadExcelTip")), 1)])]),
7084
7101
  _: 1
7085
7102
  }, 8, ["on-before-upload"])),
7086
- o("div", Uo, [o("div", Wo, A(t.t("File.importHistory")), 1), l(m, {
7103
+ o("div", Go, [o("div", Ko, A(t.t("File.importHistory")), 1), l(m, {
7087
7104
  onClick: t.init,
7088
7105
  loading: t.loading,
7089
7106
  secondary: ""
@@ -7110,7 +7127,7 @@ function Go(t, n, i, s, u, d) {
7110
7127
  "on-after-leave"
7111
7128
  ])], 64);
7112
7129
  }
7113
- var Ko = /*#__PURE__*/ Q(Lo, [["render", Go], ["__scopeId", "data-v-d8e581ec"]]), $ = C({
7130
+ var Jo = /*#__PURE__*/ Q(zo, [["render", qo], ["__scopeId", "data-v-d8e581ec"]]), $ = C({
7114
7131
  page: {
7115
7132
  label: G.global.t("Common.home"),
7116
7133
  key: "/",
@@ -7121,7 +7138,7 @@ var Ko = /*#__PURE__*/ Q(Lo, [["render", Go], ["__scopeId", "data-v-d8e581ec"]])
7121
7138
  active: "/",
7122
7139
  thumbnail: []
7123
7140
  });
7124
- function qo(e) {
7141
+ function Yo(e) {
7125
7142
  $.cache = e.cache, $.page = {
7126
7143
  label: e.label,
7127
7144
  key: e.key,
@@ -7136,14 +7153,14 @@ function qo(e) {
7136
7153
  closable: !1
7137
7154
  }];
7138
7155
  }
7139
- function Jo(e) {
7156
+ function Xo(e) {
7140
7157
  $.active = e, Jt.push(e), q($.cache, $, 0);
7141
7158
  }
7142
- function Yo(e, t) {
7159
+ function Zo(e, t) {
7143
7160
  let n = $.thumbnail.find((t) => t.key === e);
7144
7161
  n && (n.key = t, $.active = t, q($.cache, $, 0));
7145
7162
  }
7146
- function Xo(e) {
7163
+ function Qo(e) {
7147
7164
  let t = $.thumbnail.find((t) => t.path === e.key);
7148
7165
  t ? ($.active = t.key, q($.cache, $, 0), Jt.push(t.key)) : ($.active = e.key, $.thumbnail.push({
7149
7166
  ...e,
@@ -7151,7 +7168,7 @@ function Xo(e) {
7151
7168
  closable: !0
7152
7169
  }), Jt.push(e.key));
7153
7170
  }
7154
- function Zo(e) {
7171
+ function $o(e) {
7155
7172
  let t = $.thumbnail.findIndex((t) => t.key === e);
7156
7173
  if ($.thumbnail.splice(t, 1), $.active === e) {
7157
7174
  let e = $.thumbnail[t - 1]?.key || "";
@@ -7159,12 +7176,12 @@ function Zo(e) {
7159
7176
  }
7160
7177
  q($.cache, $, 0);
7161
7178
  }
7162
- function Qo() {
7179
+ function es() {
7163
7180
  $.active = $.page.path, $.thumbnail = [$.page], Jt.push($.page.path), q($.cache, $, 0);
7164
7181
  }
7165
7182
  //#endregion
7166
7183
  //#region components/thumbnail/index.vue?vue&type=script&lang.ts
7167
- var $o = d({
7184
+ var ts = d({
7168
7185
  name: "UzThumbnail",
7169
7186
  components: {
7170
7187
  NTabs: Fe,
@@ -7185,30 +7202,30 @@ var $o = d({
7185
7202
  setup(e, { slots: t }) {
7186
7203
  let { t: n } = U(), r = w(!!t.prefix), i = Je();
7187
7204
  return y(() => {
7188
- qo(e.option), $.active !== i.path && Yo(i.path, i.fullPath);
7205
+ Yo(e.option), $.active !== i.path && Zo(i.path, i.fullPath);
7189
7206
  }), M(() => i, (e) => {
7190
- $.active === i.path && Yo(e.path, e.fullPath);
7207
+ $.active === i.path && Zo(e.path, e.fullPath);
7191
7208
  }, { deep: !0 }), M(() => e.option, (e) => {
7192
- qo(e);
7209
+ Yo(e);
7193
7210
  }, { deep: !0 }), {
7194
7211
  t: n,
7195
7212
  thumbnailStore: $,
7196
7213
  isSlotPrefix: r,
7197
7214
  handleClose: (e) => {
7198
- Zo(e);
7215
+ $o(e);
7199
7216
  },
7200
7217
  handleChange: (e) => {
7201
- Jo(e);
7218
+ Xo(e);
7202
7219
  },
7203
7220
  handleClear: () => {
7204
- Qo();
7221
+ es();
7205
7222
  }
7206
7223
  };
7207
7224
  }
7208
7225
  });
7209
7226
  //#endregion
7210
7227
  //#region components/thumbnail/index.vue
7211
- function es(t, n, i, o, u, d) {
7228
+ function ns(t, n, i, o, u, d) {
7212
7229
  let f = D("NTabPane"), p = D("UzIcon"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
7213
7230
  return x(), r(v, {
7214
7231
  value: t.thumbnailStore.active,
@@ -7257,33 +7274,33 @@ function es(t, n, i, o, u, d) {
7257
7274
  "on-update:value"
7258
7275
  ]);
7259
7276
  }
7260
- var ts = /*#__PURE__*/ Q($o, [["render", es]]), ns = "#007AFF", rs = "#0A84FF", is = "#FF9500", as = "#FF9F0A", os = "#28CD41", ss = "#32D74B", cs = "#FFCC00", ls = "#FFD60A", us = "#FF3B30", ds = "#FF453A";
7261
- H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = rs, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = as, H.common.successColor = "#32D74B", H.common.successColorHover = ss, H.common.warningColor = "#FFD60A", H.common.successColorHover = ls, H.common.errorColor = "#FF453A", H.common.errorColorHover = ds, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31", H.Scrollbar.width = "8px", H.Scrollbar.height = "8px", H.Scrollbar.borderRadius = "8px", H.Scrollbar.color = "#686873";
7262
- var fs = {
7277
+ var rs = /*#__PURE__*/ Q(ts, [["render", ns]]), is = "#007AFF", as = "#0A84FF", os = "#FF9500", ss = "#FF9F0A", cs = "#28CD41", ls = "#32D74B", us = "#FFCC00", ds = "#FFD60A", fs = "#FF3B30", ps = "#FF453A";
7278
+ H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = as, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = ss, H.common.successColor = "#32D74B", H.common.successColorHover = ls, H.common.warningColor = "#FFD60A", H.common.successColorHover = ds, H.common.errorColor = "#FF453A", H.common.errorColorHover = ps, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31", H.Scrollbar.width = "8px", H.Scrollbar.height = "8px", H.Scrollbar.borderRadius = "8px", H.Scrollbar.color = "#686873";
7279
+ var ms = {
7263
7280
  common: {
7264
7281
  inputColor: "rgba(var(--input))",
7265
7282
  borderColor: "rgba(var(--border), 0.7)",
7266
7283
  borderRadius: "var(--borderRadius)",
7267
- primaryColor: ns,
7268
- primaryColorHover: rs,
7269
- primaryColorPressed: ns,
7270
- primaryColorSuppl: ns,
7271
- infoColor: is,
7272
- infoColorHover: as,
7273
- infoColorPressed: is,
7274
- infoColorSuppl: is,
7275
- successColor: os,
7276
- successColorHover: ss,
7277
- successColorPressed: os,
7278
- successColorSuppl: os,
7279
- warningColor: cs,
7280
- warningColorHover: ls,
7281
- warningColorPressed: cs,
7282
- warningColorSuppl: cs,
7283
- errorColor: us,
7284
- errorColorHover: ds,
7285
- errorColorPressed: us,
7286
- errorColorSuppl: us,
7284
+ primaryColor: is,
7285
+ primaryColorHover: as,
7286
+ primaryColorPressed: is,
7287
+ primaryColorSuppl: is,
7288
+ infoColor: os,
7289
+ infoColorHover: ss,
7290
+ infoColorPressed: os,
7291
+ infoColorSuppl: os,
7292
+ successColor: cs,
7293
+ successColorHover: ls,
7294
+ successColorPressed: cs,
7295
+ successColorSuppl: cs,
7296
+ warningColor: us,
7297
+ warningColorHover: ds,
7298
+ warningColorPressed: us,
7299
+ warningColorSuppl: us,
7300
+ errorColor: fs,
7301
+ errorColorHover: ps,
7302
+ errorColorPressed: fs,
7303
+ errorColorSuppl: fs,
7287
7304
  cardColor: "#fff"
7288
7305
  },
7289
7306
  Button: { textColor: "rgb(var(--font))" },
@@ -7297,7 +7314,7 @@ var fs = {
7297
7314
  borderRadius: "8px",
7298
7315
  color: "#c0c0c0"
7299
7316
  }
7300
- }, ps = H, ms = d({
7317
+ }, hs = H, gs = d({
7301
7318
  name: "UzWrap",
7302
7319
  components: { NConfigProvider: ae },
7303
7320
  setup() {
@@ -7305,14 +7322,14 @@ var fs = {
7305
7322
  zhCN: Ue,
7306
7323
  dateZhCN: Ve,
7307
7324
  commonStore: Y,
7308
- lightTheme: fs,
7309
- darkTheme: ps
7325
+ lightTheme: ms,
7326
+ darkTheme: hs
7310
7327
  };
7311
7328
  }
7312
7329
  });
7313
7330
  //#endregion
7314
7331
  //#region components/wrap/index.vue
7315
- function hs(e, t, n, i, a, o) {
7332
+ function _s(e, t, n, i, a, o) {
7316
7333
  let s = D("NConfigProvider");
7317
7334
  return x(), r(s, {
7318
7335
  theme: e.commonStore.theme ? { name: "darkTheme" } : null,
@@ -7331,10 +7348,10 @@ function hs(e, t, n, i, a, o) {
7331
7348
  "date-locale"
7332
7349
  ]);
7333
7350
  }
7334
- var gs = /*#__PURE__*/ Q(ms, [["render", hs]]);
7351
+ var vs = /*#__PURE__*/ Q(gs, [["render", _s]]);
7335
7352
  //#endregion
7336
7353
  //#region components/ocr/preprocess.ts
7337
- function _s(e) {
7354
+ function ys(e) {
7338
7355
  let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
7339
7356
  for (let r = 0; r < n; r++) t[e[r]]++;
7340
7357
  let r = 0;
@@ -7349,7 +7366,7 @@ function _s(e) {
7349
7366
  }
7350
7367
  return c;
7351
7368
  }
7352
- function vs(e, t) {
7369
+ function bs(e, t) {
7353
7370
  return new Promise((n, r) => {
7354
7371
  let i = new Image();
7355
7372
  i.crossOrigin = "anonymous", i.onload = () => {
@@ -7382,7 +7399,7 @@ function vs(e, t) {
7382
7399
  }
7383
7400
  let u = t.threshold;
7384
7401
  if (t.binarize) {
7385
- t.autoThreshold && (u = _s(l));
7402
+ t.autoThreshold && (u = ys(l));
7386
7403
  for (let e = 0, t = 0; e < s.length; e += 4, t++) {
7387
7404
  let n = l[t] < u ? 0 : 255;
7388
7405
  s[e] = n, s[e + 1] = n, s[e + 2] = n;
@@ -7405,7 +7422,7 @@ function vs(e, t) {
7405
7422
  }
7406
7423
  //#endregion
7407
7424
  //#region components/ocr/index.vue?vue&type=script&lang.ts
7408
- var ys = d({
7425
+ var xs = d({
7409
7426
  name: "UzOcr",
7410
7427
  components: {
7411
7428
  NButton: L,
@@ -7442,7 +7459,7 @@ var ys = d({
7442
7459
  tessedit_char_blacklist: "|"
7443
7460
  }), a.value), v = async () => {
7444
7461
  if (f.value) try {
7445
- let e = await vs(f.value, {
7462
+ let e = await bs(f.value, {
7446
7463
  enabled: o.value,
7447
7464
  scale: s.value,
7448
7465
  grayscale: !0,
@@ -7479,7 +7496,7 @@ var ys = d({
7479
7496
  t.value = !0, r.value = e("OCR.analysis");
7480
7497
  let a = n;
7481
7498
  if (o.value || s.value > 1) try {
7482
- let e = await vs(n, {
7499
+ let e = await bs(n, {
7483
7500
  enabled: o.value,
7484
7501
  scale: s.value,
7485
7502
  grayscale: !0,
@@ -7541,25 +7558,25 @@ var ys = d({
7541
7558
  t: e
7542
7559
  };
7543
7560
  }
7544
- }), bs = { class: "uz-ocr" }, xs = { class: "uz-ocr-left-col" }, Ss = { class: "uz-ocr-upload-card" }, Cs = { class: "uz-ocr-upload-title" }, ws = { class: "uz-ocr-upload-subtitle" }, Ts = {
7561
+ }), Ss = { class: "uz-ocr" }, Cs = { class: "uz-ocr-left-col" }, ws = { class: "uz-ocr-upload-card" }, Ts = { class: "uz-ocr-upload-title" }, Es = { class: "uz-ocr-upload-subtitle" }, Ds = {
7545
7562
  key: 1,
7546
7563
  class: "uz-ocr-preview-panel"
7547
- }, Es = { class: "uz-ocr-preview-box" }, Ds = ["src"], Os = {
7564
+ }, Os = { class: "uz-ocr-preview-box" }, ks = ["src"], As = {
7548
7565
  key: 0,
7549
7566
  class: "uz-ocr-threshold-badge"
7550
- }, ks = { class: "uz-ocr-preview-box" }, As = ["src"], js = { class: "uz-ocr-settings-form" }, Ms = { class: "uz-settings-row" }, Ns = { class: "uz-settings-label" }, Ps = {
7567
+ }, js = { class: "uz-ocr-preview-box" }, Ms = ["src"], Ns = { class: "uz-ocr-settings-form" }, Ps = { class: "uz-settings-row" }, Fs = { class: "uz-settings-label" }, Is = {
7551
7568
  key: 0,
7552
7569
  class: "uz-ocr-nested-settings animate-fade-in"
7553
- }, Fs = { class: "uz-settings-row" }, Is = { class: "uz-settings-label" }, Ls = { class: "uz-settings-row" }, Rs = { class: "uz-settings-label" }, zs = { class: "uz-ocr-right-col" }, Bs = { class: "uz-ocr-result-header" }, Vs = { class: "uz-result-title" }, Hs = {
7570
+ }, Ls = { class: "uz-settings-row" }, Rs = { class: "uz-settings-label" }, zs = { class: "uz-settings-row" }, Bs = { class: "uz-settings-label" }, Vs = { class: "uz-ocr-right-col" }, Hs = { class: "uz-ocr-result-header" }, Us = { class: "uz-result-title" }, Ws = {
7554
7571
  key: 0,
7555
7572
  class: "uz-ocr-empty-state"
7556
- }, Us = { class: "uz-empty-text" }, Ws = {
7573
+ }, Gs = { class: "uz-empty-text" }, Ks = {
7557
7574
  key: 1,
7558
7575
  class: "uz-ocr-result-tabs"
7559
7576
  };
7560
- function Gs(e, t, n, s, u, d) {
7577
+ function qs(e, t, n, s, u, d) {
7561
7578
  let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
7562
- return x(), a("div", bs, [o("div", xs, [e.rawImage ? (x(), a("div", Ts, [l(m, {
7579
+ return x(), a("div", Ss, [o("div", Cs, [e.rawImage ? (x(), a("div", Ds, [l(m, {
7563
7580
  value: e.imagePreviewTab,
7564
7581
  "onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
7565
7582
  type: "segment",
@@ -7569,21 +7586,21 @@ function Gs(e, t, n, s, u, d) {
7569
7586
  name: "processed",
7570
7587
  tab: e.t("OCR.previewProcessed")
7571
7588
  }, {
7572
- default: P(() => [o("div", Es, [o("img", {
7589
+ default: P(() => [o("div", Os, [o("img", {
7573
7590
  src: e.processedImage,
7574
7591
  alt: "Processed Preview",
7575
7592
  class: "uz-ocr-preview-img"
7576
- }, null, 8, Ds), e.preEnabled && e.preBinarize ? (x(), a("div", Os, A(e.preAutoThreshold ? e.t("OCR.autoThreshold") : e.t("OCR.manualThreshold")) + A(e.t("OCR.threshold")) + ": " + A(e.thresholdUsed), 1)) : i("", !0)])]),
7593
+ }, null, 8, ks), e.preEnabled && e.preBinarize ? (x(), a("div", As, A(e.preAutoThreshold ? e.t("OCR.autoThreshold") : e.t("OCR.manualThreshold")) + A(e.t("OCR.threshold")) + ": " + A(e.thresholdUsed), 1)) : i("", !0)])]),
7577
7594
  _: 1
7578
7595
  }, 8, ["tab"]), l(p, {
7579
7596
  name: "raw",
7580
7597
  tab: e.t("OCR.previewRaw")
7581
7598
  }, {
7582
- default: P(() => [o("div", ks, [o("img", {
7599
+ default: P(() => [o("div", js, [o("img", {
7583
7600
  src: e.rawImage,
7584
7601
  alt: "Raw Preview",
7585
7602
  class: "uz-ocr-preview-img"
7586
- }, null, 8, As)])]),
7603
+ }, null, 8, Ms)])]),
7587
7604
  _: 1
7588
7605
  }, 8, ["tab"])]),
7589
7606
  _: 1
@@ -7617,7 +7634,7 @@ function Gs(e, t, n, s, u, d) {
7617
7634
  "directory-dnd": "",
7618
7635
  class: "uz-w-full"
7619
7636
  }, {
7620
- default: P(() => [o("div", Ss, [
7637
+ default: P(() => [o("div", ws, [
7621
7638
  t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
7622
7639
  xmlns: "http://www.w3.org/2000/svg",
7623
7640
  viewBox: "0 0 24 24",
@@ -7625,32 +7642,32 @@ function Gs(e, t, n, s, u, d) {
7625
7642
  height: "40",
7626
7643
  fill: "currentColor"
7627
7644
  }, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
7628
- o("div", Cs, A(e.t("OCR.scan")), 1),
7629
- o("div", ws, A(e.t("OCR.uploadTip")), 1)
7645
+ o("div", Ts, A(e.t("OCR.scan")), 1),
7646
+ o("div", Es, A(e.t("OCR.uploadTip")), 1)
7630
7647
  ])]),
7631
7648
  _: 1
7632
- }, 8, ["on-before-upload"])), o("div", js, [o("div", Ms, [o("span", Ns, A(e.t("OCR.preprocess")), 1), l(_, {
7649
+ }, 8, ["on-before-upload"])), o("div", Ns, [o("div", Ps, [o("span", Fs, A(e.t("OCR.preprocess")), 1), l(_, {
7633
7650
  value: e.preEnabled,
7634
7651
  "onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
7635
7652
  size: "small"
7636
- }, null, 8, ["value"])]), e.preEnabled ? (x(), a("div", Ps, [o("div", Fs, [o("span", Is, A(e.t("OCR.scale")), 1), l(v, {
7653
+ }, null, 8, ["value"])]), e.preEnabled ? (x(), a("div", Is, [o("div", Ls, [o("span", Rs, A(e.t("OCR.scale")), 1), l(v, {
7637
7654
  value: e.preScale,
7638
7655
  "onUpdate:value": t[2] ||= (t) => e.preScale = t,
7639
7656
  options: e.scaleOptions,
7640
7657
  size: "small",
7641
7658
  class: "uz-settings-select"
7642
- }, null, 8, ["value", "options"])]), o("div", Ls, [o("span", Rs, A(e.t("OCR.contrast")), 1), l(_, {
7659
+ }, null, 8, ["value", "options"])]), o("div", zs, [o("span", Bs, A(e.t("OCR.contrast")), 1), l(_, {
7643
7660
  value: e.preContrast,
7644
7661
  "onUpdate:value": t[3] ||= (t) => e.preContrast = t,
7645
7662
  size: "small"
7646
- }, null, 8, ["value"])])])) : i("", !0)])]), o("div", zs, [o("div", Bs, [o("span", Vs, A(e.t("OCR.result", { count: e.text.length })), 1)]), e.text.length ? (x(), a("div", Ws, A(e.fullText), 1)) : (x(), a("div", Hs, [t[5] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Us, A(e.ocrLoading ? e.t("OCR.reading") : e.t("OCR.empty")), 1)]))])]);
7663
+ }, null, 8, ["value"])])])) : i("", !0)])]), o("div", Vs, [o("div", Hs, [o("span", Us, A(e.t("OCR.result", { count: e.text.length })), 1)]), e.text.length ? (x(), a("div", Ks, A(e.fullText), 1)) : (x(), a("div", Ws, [t[5] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Gs, A(e.ocrLoading ? e.t("OCR.reading") : e.t("OCR.empty")), 1)]))])]);
7647
7664
  }
7648
- var Ks = /*#__PURE__*/ Q(ys, [["render", Gs], ["__scopeId", "data-v-1e757396"]]), qs = /* @__PURE__ */ lt({
7665
+ var Js = /*#__PURE__*/ Q(xs, [["render", qs], ["__scopeId", "data-v-1e757396"]]), Ys = /* @__PURE__ */ lt({
7649
7666
  UzActionButton: () => ut,
7650
7667
  UzBack: () => xr,
7651
- UzBom: () => ji,
7652
- UzCamera: () => Sa,
7653
- UzCircle: () => ha,
7668
+ UzBom: () => Ni,
7669
+ UzCamera: () => wa,
7670
+ UzCircle: () => _a,
7654
7671
  UzDraggableForm: () => Pr,
7655
7672
  UzForm: () => kr,
7656
7673
  UzFormItem: () => Tr,
@@ -7658,44 +7675,44 @@ var Ks = /*#__PURE__*/ Q(ys, [["render", Gs], ["__scopeId", "data-v-1e757396"]])
7658
7675
  UzFormItemTimesPicker: () => Jr,
7659
7676
  UzFormItemUpload: () => Br,
7660
7677
  UzIcon: () => qt,
7661
- UzOcr: () => Ks,
7662
- UzSearchBar: () => Ma,
7663
- UzSearchMobileBar: () => Ra,
7664
- UzSpin: () => Va,
7665
- UzTable: () => ro,
7666
- UzTableChild: () => po,
7667
- UzTableDrawer: () => Eo,
7668
- UzTableFile: () => Ko,
7669
- UzTableMobile: () => Io,
7670
- UzTableQuestChild: () => yo,
7671
- UzThumbnail: () => ts,
7672
- UzWrap: () => gs,
7678
+ UzOcr: () => Js,
7679
+ UzSearchBar: () => Pa,
7680
+ UzSearchMobileBar: () => Ba,
7681
+ UzSpin: () => Ua,
7682
+ UzTable: () => ao,
7683
+ UzTableChild: () => ho,
7684
+ UzTableDrawer: () => Oo,
7685
+ UzTableFile: () => Jo,
7686
+ UzTableMobile: () => Ro,
7687
+ UzTableQuestChild: () => xo,
7688
+ UzThumbnail: () => rs,
7689
+ UzWrap: () => vs,
7673
7690
  commonStore: () => Y,
7674
7691
  fnActionReduction: () => vr,
7675
7692
  fnActionSimplify: () => _r,
7676
- fnAddThumbnail: () => Xo,
7677
- fnClearAllThumbnail: () => Qo,
7678
- fnDeleteThumbnail: () => Zo,
7679
- fnGetTableData: () => hi,
7680
- fnOptionReduction: () => xi,
7681
- fnOptionSimplify: () => bi,
7682
- fnPrepareFormData: () => Si,
7683
- fnPrepareTableData: () => Ci,
7693
+ fnAddThumbnail: () => Qo,
7694
+ fnClearAllThumbnail: () => es,
7695
+ fnDeleteThumbnail: () => $o,
7696
+ fnGetTableData: () => _i,
7697
+ fnOptionReduction: () => Ci,
7698
+ fnOptionSimplify: () => Si,
7699
+ fnPrepareFormData: () => wi,
7700
+ fnPrepareTableData: () => Ti,
7684
7701
  fnRenderAction: () => ur,
7685
7702
  fnSetLang: () => Ht,
7686
7703
  fnSetTheme: () => Ut,
7687
- fnSetThumbnail: () => Jo,
7688
- fnTableReduction: () => _i,
7689
- fnTableSimplify: () => gi,
7690
- fnTriggersReduction: () => yi,
7691
- fnTriggersSimplify: () => vi,
7704
+ fnSetThumbnail: () => Xo,
7705
+ fnTableReduction: () => yi,
7706
+ fnTableSimplify: () => vi,
7707
+ fnTriggersReduction: () => xi,
7708
+ fnTriggersSimplify: () => bi,
7692
7709
  i18n: () => G
7693
- }), Js = 3840, Ys = 2160, Xs = C({ scale: 1 });
7694
- function Zs(e, t) {
7695
- Js = e, Ys = t;
7710
+ }), Xs = 3840, Zs = 2160, Qs = C({ scale: 1 });
7711
+ function $s(e, t) {
7712
+ Xs = e, Zs = t;
7696
7713
  }
7697
- function Qs() {
7698
- let e = 1, t = window.innerWidth, n = window.innerHeight, r = Js, i = Ys, a = parseFloat((r / i).toFixed(5));
7714
+ function ec() {
7715
+ let e = 1, t = window.innerWidth, n = window.innerHeight, r = Xs, i = Zs, a = parseFloat((r / i).toFixed(5));
7699
7716
  if (parseFloat((t / n).toFixed(5)) > a) {
7700
7717
  let t = parseFloat((n * a / r).toFixed(5));
7701
7718
  e = t > 1 ? 1 : t;
@@ -7703,17 +7720,17 @@ function Qs() {
7703
7720
  let n = parseFloat((t / a / i).toFixed(5));
7704
7721
  e = n > 1 ? 1 : n;
7705
7722
  }
7706
- Xs.scale = e;
7723
+ Qs.scale = e;
7707
7724
  }
7708
- function $s() {
7709
- let e = Ze(Qs, 200);
7725
+ function tc() {
7726
+ let e = Ze(ec, 200);
7710
7727
  return e(), window.addEventListener("resize", e), () => {
7711
- Js = 3840, Ys = 2160, window.removeEventListener("resize", e);
7728
+ Xs = 3840, Zs = 2160, window.removeEventListener("resize", e);
7712
7729
  };
7713
7730
  }
7714
7731
  //#endregion
7715
7732
  //#region components/hooks/useThrottleFn.ts
7716
- function ec(e, t = 1e3) {
7733
+ function nc(e, t = 1e3) {
7717
7734
  let r = w(e), i = n(() => Qe((...e) => r.value([...e]), t));
7718
7735
  return b(() => {
7719
7736
  i.value.cancel();
@@ -7725,14 +7742,14 @@ function ec(e, t = 1e3) {
7725
7742
  }
7726
7743
  //#endregion
7727
7744
  //#region components/hooks/useLocalStorage.ts
7728
- function tc(e, t) {
7745
+ function rc(e, t) {
7729
7746
  return [w(J(e, t?.defaultValue)), (n) => {
7730
7747
  n === void 0 ? Et(e) : q(e, n, t?.expired || "1 Day");
7731
7748
  }];
7732
7749
  }
7733
7750
  //#endregion
7734
7751
  //#region components/hooks/useQuery.ts
7735
- function nc(e, t, n) {
7752
+ function ic(e, t, n) {
7736
7753
  let r = `useQuery-${e}`, i = w(), a = w(), o = w(), s = w(!1), c = w("idle"), l = w(), u = w(0), d = w(0), f = () => {
7737
7754
  Un(), clearInterval(o.value), o.value = null;
7738
7755
  }, p = async () => {
@@ -7798,26 +7815,26 @@ function nc(e, t, n) {
7798
7815
  }
7799
7816
  //#endregion
7800
7817
  //#region package.json
7801
- var rc = "0.1.131", ic;
7802
- async function ac() {
7818
+ var ac = "0.1.133", oc;
7819
+ async function sc() {
7803
7820
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
7804
7821
  method: "HEAD",
7805
7822
  cache: "no-cache"
7806
7823
  });
7807
7824
  return e.headers.get("etag") || e.headers.get("last-modified");
7808
7825
  }
7809
- async function oc() {
7810
- let e = await ac();
7811
- ic !== e && Wt(!0);
7826
+ async function cc() {
7827
+ let e = await sc();
7828
+ oc !== e && Wt(!0);
7812
7829
  }
7813
- async function sc() {
7814
- ic = await ac(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
7815
- oc();
7830
+ async function lc() {
7831
+ oc = await sc(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
7832
+ cc();
7816
7833
  }, 6e4);
7817
7834
  }
7818
7835
  //#endregion
7819
7836
  //#region components/create.ts
7820
- function cc({ components: e = [] } = {}) {
7837
+ function uc({ components: e = [] } = {}) {
7821
7838
  let t = [];
7822
7839
  function n(e, t, n) {
7823
7840
  e.component(t) || e.component(t, n);
@@ -7833,16 +7850,16 @@ function cc({ components: e = [] } = {}) {
7833
7850
  Vt(o), Ht(d), Gt(e || G.global.t("App.title")), Ut(u), Bt({
7834
7851
  icons: c,
7835
7852
  iconDefault: l
7836
- }), G.global.locale.value = d, a && sc(), t && Nn(r, t, n);
7853
+ }), G.global.locale.value = d, a && lc(), t && Nn(r, t, n);
7837
7854
  }
7838
7855
  }
7839
7856
  return {
7840
- version: rc,
7857
+ version: ac,
7841
7858
  install: r
7842
7859
  };
7843
7860
  }
7844
7861
  //#endregion
7845
7862
  //#region components/preset.ts
7846
- var lc = cc({ components: Object.keys(qs).map((e) => qs[e]) }), uc = lc.install;
7863
+ var dc = uc({ components: Object.keys(Ys).map((e) => Ys[e]) }), fc = dc.install;
7847
7864
  //#endregion
7848
- export { Gn as BLOB, Kn as CUSTOM, qn as FILE, Wn as GET, Z as POST, ut as UzActionButton, xr as UzBack, ji as UzBom, Sa as UzCamera, ha as UzCircle, Pr as UzDraggableForm, kr as UzForm, Tr as UzFormItem, Wr as UzFormItemImage, Jr as UzFormItemTimesPicker, Br as UzFormItemUpload, qt as UzIcon, Ks as UzOcr, Ma as UzSearchBar, Ra as UzSearchMobileBar, Va as UzSpin, ro as UzTable, po as UzTableChild, Eo as UzTableDrawer, Ko as UzTableFile, Io as UzTableMobile, yo as UzTableQuestChild, ts as UzThumbnail, gs as UzWrap, Y as commonStore, cc as create, ps as darkTheme, lc as default, vr as fnActionReduction, _r as fnActionSimplify, Xo as fnAddThumbnail, Un as fnCancelFetch, Qo as fnClearAllThumbnail, Qs as fnComputedScale, Yt as fnCreateRouter, Et as fnDelStorage, Ot as fnDelStorageAll, Dt as fnDelStorageByPrefix, Zo as fnDeleteThumbnail, Tt as fnDialog, K as fnErrorLog, Rt as fnFilterByPinyinInitials, jt as fnFormatTime, Ft as fnFormatUnits, Pt as fnFullScreen, J as fnGetStorage, hi as fnGetTableData, $s as fnListenerScale, wt as fnNotification, xi as fnOptionReduction, bi as fnOptionSimplify, At as fnPageModel2Naive, Si as fnPrepareFormData, Ci as fnPrepareTableData, ur as fnRenderAction, kt as fnScrollTop, Ht as fnSetLang, Zs as fnSetNormalWidthAndHeight, q as fnSetStorage, Ut as fnSetTheme, Jo as fnSetThumbnail, _i as fnTableReduction, gi as fnTableSimplify, Nt as fnThrottle, Mt as fnTitle, yi as fnTriggersReduction, vi as fnTriggersSimplify, G as i18n, uc as install, fs as lightTheme, zt as mergeColumns, Jt as router, Xs as scaleStore, Yr as useDebounceFn, tc as useLocalStorage, nc as useQuery, ec as useThrottleFn };
7865
+ export { Gn as BLOB, Kn as CUSTOM, qn as FILE, Wn as GET, Z as POST, ut as UzActionButton, xr as UzBack, Ni as UzBom, wa as UzCamera, _a as UzCircle, Pr as UzDraggableForm, kr as UzForm, Tr as UzFormItem, Wr as UzFormItemImage, Jr as UzFormItemTimesPicker, Br as UzFormItemUpload, qt as UzIcon, Js as UzOcr, Pa as UzSearchBar, Ba as UzSearchMobileBar, Ua as UzSpin, ao as UzTable, ho as UzTableChild, Oo as UzTableDrawer, Jo as UzTableFile, Ro as UzTableMobile, xo as UzTableQuestChild, rs as UzThumbnail, vs as UzWrap, Y as commonStore, uc as create, hs as darkTheme, dc as default, vr as fnActionReduction, _r as fnActionSimplify, Qo as fnAddThumbnail, Un as fnCancelFetch, es as fnClearAllThumbnail, ec as fnComputedScale, Yt as fnCreateRouter, Et as fnDelStorage, Ot as fnDelStorageAll, Dt as fnDelStorageByPrefix, $o as fnDeleteThumbnail, Tt as fnDialog, K as fnErrorLog, Rt as fnFilterByPinyinInitials, jt as fnFormatTime, Ft as fnFormatUnits, Pt as fnFullScreen, J as fnGetStorage, _i as fnGetTableData, tc as fnListenerScale, wt as fnNotification, Ci as fnOptionReduction, Si as fnOptionSimplify, At as fnPageModel2Naive, wi as fnPrepareFormData, Ti as fnPrepareTableData, ur as fnRenderAction, kt as fnScrollTop, Ht as fnSetLang, $s as fnSetNormalWidthAndHeight, q as fnSetStorage, Ut as fnSetTheme, Xo as fnSetThumbnail, yi as fnTableReduction, vi as fnTableSimplify, Nt as fnThrottle, Mt as fnTitle, xi as fnTriggersReduction, bi as fnTriggersSimplify, G as i18n, fc as install, ms as lightTheme, zt as mergeColumns, Jt as router, Qs as scaleStore, Yr as useDebounceFn, rc as useLocalStorage, ic as useQuery, nc as useThrottleFn };