@kengic/vue 0.5.4 → 0.5.6

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.
@@ -66,6 +66,8 @@ class VarButton {
66
66
  d(this, "dis_mult_select_flg");
67
67
  d(this, "dis_no_select_flg");
68
68
  d(this, "ena_flg");
69
+ d(this, "export_excel_filename");
70
+ d(this, "export_excel_suffix");
69
71
  d(this, "frm_id");
70
72
  d(this, "icon");
71
73
  d(this, "id");
@@ -84,6 +86,8 @@ class VarButton {
84
86
  case "dis_mult_select_flg":
85
87
  case "dis_no_select_flg":
86
88
  case "ena_flg":
89
+ case "export_excel_filename":
90
+ case "export_excel_suffix":
87
91
  case "frm_id":
88
92
  case "icon":
89
93
  case "id":
@@ -2242,12 +2246,12 @@ function baseClone(e, t, r, n, a, o) {
2242
2246
  return p;
2243
2247
  o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
2244
2248
  s.add(baseClone(v, t, r, v, e, o));
2245
- }) : isMap$1(e) && e.forEach(function(v, b) {
2246
- s.set(b, baseClone(v, t, r, b, e, o));
2249
+ }) : isMap$1(e) && e.forEach(function(v, y) {
2250
+ s.set(y, baseClone(v, t, r, y, e, o));
2247
2251
  });
2248
- var _ = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, y = c ? void 0 : _(e);
2249
- return arrayEach(y || e, function(v, b) {
2250
- y && (b = v, v = e[b]), assignValue(s, b, baseClone(v, t, r, b, e, o));
2252
+ var _ = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, b = c ? void 0 : _(e);
2253
+ return arrayEach(b || e, function(v, y) {
2254
+ b && (y = v, v = e[y]), assignValue(s, y, baseClone(v, t, r, y, e, o));
2251
2255
  }), s;
2252
2256
  }
2253
2257
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2287,9 +2291,9 @@ function equalArrays(e, t, r, n, a, o) {
2287
2291
  return u == t && c == e;
2288
2292
  var g = -1, m = !0, p = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2289
2293
  for (o.set(e, t), o.set(t, e); ++g < i; ) {
2290
- var _ = e[g], y = t[g];
2294
+ var _ = e[g], b = t[g];
2291
2295
  if (n)
2292
- var v = s ? n(y, _, g, t, e, o) : n(_, y, g, e, t, o);
2296
+ var v = s ? n(b, _, g, t, e, o) : n(_, b, g, e, t, o);
2293
2297
  if (v !== void 0) {
2294
2298
  if (v)
2295
2299
  continue;
@@ -2297,14 +2301,14 @@ function equalArrays(e, t, r, n, a, o) {
2297
2301
  break;
2298
2302
  }
2299
2303
  if (p) {
2300
- if (!arraySome(t, function(b, T) {
2301
- if (!cacheHas(p, T) && (_ === b || a(_, b, r, n, o)))
2302
- return p.push(T);
2304
+ if (!arraySome(t, function(y, C) {
2305
+ if (!cacheHas(p, C) && (_ === y || a(_, y, r, n, o)))
2306
+ return p.push(C);
2303
2307
  })) {
2304
2308
  m = !1;
2305
2309
  break;
2306
2310
  }
2307
- } else if (!(_ === y || a(_, y, r, n, o))) {
2311
+ } else if (!(_ === b || a(_, b, r, n, o))) {
2308
2312
  m = !1;
2309
2313
  break;
2310
2314
  }
@@ -2372,24 +2376,24 @@ function equalObjects(e, t, r, n, a, o) {
2372
2376
  var p = o.get(e), _ = o.get(t);
2373
2377
  if (p && _)
2374
2378
  return p == t && _ == e;
2375
- var y = !0;
2379
+ var b = !0;
2376
2380
  o.set(e, t), o.set(t, e);
2377
2381
  for (var v = s; ++g < l; ) {
2378
2382
  m = i[g];
2379
- var b = e[m], T = t[m];
2383
+ var y = e[m], C = t[m];
2380
2384
  if (n)
2381
- var O = s ? n(T, b, m, t, e, o) : n(b, T, m, e, t, o);
2382
- if (!(O === void 0 ? b === T || a(b, T, r, n, o) : O)) {
2383
- y = !1;
2385
+ var O = s ? n(C, y, m, t, e, o) : n(y, C, m, e, t, o);
2386
+ if (!(O === void 0 ? y === C || a(y, C, r, n, o) : O)) {
2387
+ b = !1;
2384
2388
  break;
2385
2389
  }
2386
2390
  v || (v = m == "constructor");
2387
2391
  }
2388
- if (y && !v) {
2389
- var P = e.constructor, I = t.constructor;
2390
- P != I && "constructor" in e && "constructor" in t && !(typeof P == "function" && P instanceof P && typeof I == "function" && I instanceof I) && (y = !1);
2392
+ if (b && !v) {
2393
+ var P = e.constructor, A = t.constructor;
2394
+ P != A && "constructor" in e && "constructor" in t && !(typeof P == "function" && P instanceof P && typeof A == "function" && A instanceof A) && (b = !1);
2391
2395
  }
2392
- return o.delete(e), o.delete(t), y;
2396
+ return o.delete(e), o.delete(t), b;
2393
2397
  }
2394
2398
  var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
2395
2399
  function baseIsEqualDeep(e, t, r, n, a, o) {
@@ -2406,8 +2410,8 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
2406
2410
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
2407
2411
  var p = c && hasOwnProperty.call(e, "__wrapped__"), _ = g && hasOwnProperty.call(t, "__wrapped__");
2408
2412
  if (p || _) {
2409
- var y = p ? e.value() : e, v = _ ? t.value() : t;
2410
- return o || (o = new Stack()), a(y, v, r, n, o);
2413
+ var b = p ? e.value() : e, v = _ ? t.value() : t;
2414
+ return o || (o = new Stack()), a(b, v, r, n, o);
2411
2415
  }
2412
2416
  }
2413
2417
  return m ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
@@ -3414,12 +3418,12 @@ setTwoToneColor("#1890ff");
3414
3418
  var Icon$1 = function(t, r) {
3415
3419
  var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, m = _objectWithoutProperties(a, _excluded), p = (n = {
3416
3420
  anticon: !0
3417
- }, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), _ = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", y = u;
3418
- y === void 0 && g && (y = -1, m.tabindex = y);
3421
+ }, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), _ = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", b = u;
3422
+ b === void 0 && g && (b = -1, m.tabindex = b);
3419
3423
  var v = l ? {
3420
3424
  msTransform: "rotate(".concat(l, "deg)"),
3421
3425
  transform: "rotate(".concat(l, "deg)")
3422
- } : void 0, b = normalizeTwoToneColors(c), T = _slicedToArray(b, 2), O = T[0], P = T[1];
3426
+ } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), O = C[0], P = C[1];
3423
3427
  return createVNode("span", _objectSpread$i({
3424
3428
  role: "img",
3425
3429
  "aria-label": s.name
@@ -4096,12 +4100,12 @@ const UploadOutlined$1 = UploadOutlined, getProps$p = () => ({
4096
4100
  KgTableSettingGridConfigModal: {
4097
4101
  title: "Config Grid"
4098
4102
  },
4099
- KgTableSettingVarGridMasterModal: {
4100
- title: "Config Grid Views"
4101
- },
4102
4103
  KgTableSettingSaveGridMaster: {
4103
4104
  title: "Save Grid View As"
4104
4105
  },
4106
+ KgTableSettingVarGridMasterModal: {
4107
+ title: "Config Grid Views"
4108
+ },
4105
4109
  KgVarConfig: {
4106
4110
  action: "Action",
4107
4111
  allForm: "All Form",
@@ -4149,7 +4153,9 @@ const UploadOutlined$1 = UploadOutlined, getProps$p = () => ({
4149
4153
  edit: "Edit",
4150
4154
  emptyText: "NO DATA",
4151
4155
  export: "Export",
4156
+ exportSuccess: "Export Successfully",
4152
4157
  import: "Import",
4158
+ importSuccess: "Import Successfully",
4153
4159
  lookup: "Lookup",
4154
4160
  no: "NO",
4155
4161
  query: "Query",
@@ -4201,12 +4207,12 @@ const UploadOutlined$1 = UploadOutlined, getProps$p = () => ({
4201
4207
  KgTableSettingGridConfigModal: {
4202
4208
  title: "\u914D\u7F6E\u8868\u683C"
4203
4209
  },
4204
- KgTableSettingVarGridMasterModal: {
4205
- title: "\u914D\u7F6E\u89C6\u56FE"
4206
- },
4207
4210
  KgTableSettingSaveGridMaster: {
4208
4211
  title: "\u53E6\u5B58\u89C6\u56FE"
4209
4212
  },
4213
+ KgTableSettingVarGridMasterModal: {
4214
+ title: "\u914D\u7F6E\u89C6\u56FE"
4215
+ },
4210
4216
  KgVarConfig: {
4211
4217
  action: "\u64CD\u4F5C",
4212
4218
  allForm: "\u6240\u6709\u754C\u9762",
@@ -4253,7 +4259,9 @@ const UploadOutlined$1 = UploadOutlined, getProps$p = () => ({
4253
4259
  edit: "\u7F16\u8F91",
4254
4260
  emptyText: "\u6682\u65E0\u6570\u636E",
4255
4261
  export: "\u5BFC\u51FA",
4262
+ exportSuccess: "\u5BFC\u51FA\u6210\u529F",
4256
4263
  import: "\u5BFC\u5165",
4264
+ importSuccess: "\u5BFC\u5165\u6210\u529F",
4257
4265
  lookup: "\u67E5\u627E",
4258
4266
  no: "\u5426",
4259
4267
  query: "\u67E5\u8BE2",
@@ -4273,7 +4281,7 @@ var KG_APP = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "data-manager", e.BUSINES
4273
4281
  const KG_APPS = ["data-manager", "business-manager", "sys"];
4274
4282
  var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "/wms/data-manager", e.BUSINESS_MANAGER = "/wms/business-manager", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
4275
4283
  const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/sys"];
4276
- var KG_CONTROL_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_AREA = "INPUT_AREA", e.INPUT_NUMBER = "INPUT_NUMBER", e.CHECKBOX = "CHECKBOX", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.UOM = "UOM", e.BTN_UPLOAD = "BTN_UPLOAD", e))(KG_CONTROL_TYPE || {}), KG_CONTROL_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e))(KG_CONTROL_CONTEXT || {}), KG_TD_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e))(KG_TD_DISPLAY_TYPE || {}), KG_BTN_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.CLEAR = "CLEAR", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BTN_TYPE || {}), KG_BTN_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BTN_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_SUBMIT_LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_SUBMIT_LAYOUT || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {});
4284
+ var KG_CONTROL_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_AREA = "INPUT_AREA", e.INPUT_NUMBER = "INPUT_NUMBER", e.CHECKBOX = "CHECKBOX", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.UOM = "UOM", e.BTN_UPLOAD = "BTN_UPLOAD", e))(KG_CONTROL_TYPE || {}), KG_CONTROL_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e))(KG_CONTROL_CONTEXT || {}), KG_TD_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e))(KG_TD_DISPLAY_TYPE || {}), KG_BTN_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.CLEAR = "CLEAR", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BTN_TYPE || {}), KG_BTN_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BTN_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_SUBMIT_LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_SUBMIT_LAYOUT || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {});
4277
4285
  function isPathInApp(e, t) {
4278
4286
  var r, n;
4279
4287
  switch (t) {
@@ -4320,76 +4328,76 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4320
4328
  (function(r, n) {
4321
4329
  e.exports = n();
4322
4330
  })(commonjsGlobal, function() {
4323
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", p = "year", _ = "date", y = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, T = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
4324
- var D = ["th", "st", "nd", "rd"], $ = N % 100;
4325
- return "[" + N + (D[($ - 20) % 10] || D[$] || D[0]) + "]";
4326
- } }, O = function(N, D, $) {
4327
- var x = String(N);
4328
- return !x || x.length >= D ? N : "" + Array(D + 1 - x.length).join($) + N;
4329
- }, P = { s: O, z: function(N) {
4330
- var D = -N.utcOffset(), $ = Math.abs(D), x = Math.floor($ / 60), A = $ % 60;
4331
- return (D <= 0 ? "+" : "-") + O(x, 2, "0") + ":" + O(A, 2, "0");
4332
- }, m: function N(D, $) {
4331
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", p = "year", _ = "date", b = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
4332
+ var D = ["th", "st", "nd", "rd"], $ = V % 100;
4333
+ return "[" + V + (D[($ - 20) % 10] || D[$] || D[0]) + "]";
4334
+ } }, O = function(V, D, $) {
4335
+ var x = String(V);
4336
+ return !x || x.length >= D ? V : "" + Array(D + 1 - x.length).join($) + V;
4337
+ }, P = { s: O, z: function(V) {
4338
+ var D = -V.utcOffset(), $ = Math.abs(D), x = Math.floor($ / 60), I = $ % 60;
4339
+ return (D <= 0 ? "+" : "-") + O(x, 2, "0") + ":" + O(I, 2, "0");
4340
+ }, m: function V(D, $) {
4333
4341
  if (D.date() < $.date())
4334
- return -N($, D);
4335
- var x = 12 * ($.year() - D.year()) + ($.month() - D.month()), A = D.clone().add(x, g), F = $ - A < 0, K = D.clone().add(x + (F ? -1 : 1), g);
4336
- return +(-(x + ($ - A) / (F ? A - K : K - A)) || 0);
4337
- }, a: function(N) {
4338
- return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
4339
- }, p: function(N) {
4340
- return { M: g, y: p, w: c, d: u, D: _, h: l, m: i, s, ms: o, Q: m }[N] || String(N || "").toLowerCase().replace(/s$/, "");
4341
- }, u: function(N) {
4342
- return N === void 0;
4343
- } }, I = "en", C = {};
4344
- C[I] = T;
4345
- var L = function(N) {
4346
- return N instanceof E;
4347
- }, w = function N(D, $, x) {
4348
- var A;
4342
+ return -V($, D);
4343
+ var x = 12 * ($.year() - D.year()) + ($.month() - D.month()), I = D.clone().add(x, g), F = $ - I < 0, K = D.clone().add(x + (F ? -1 : 1), g);
4344
+ return +(-(x + ($ - I) / (F ? I - K : K - I)) || 0);
4345
+ }, a: function(V) {
4346
+ return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
4347
+ }, p: function(V) {
4348
+ return { M: g, y: p, w: c, d: u, D: _, h: l, m: i, s, ms: o, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
4349
+ }, u: function(V) {
4350
+ return V === void 0;
4351
+ } }, A = "en", T = {};
4352
+ T[A] = C;
4353
+ var L = function(V) {
4354
+ return V instanceof E;
4355
+ }, w = function V(D, $, x) {
4356
+ var I;
4349
4357
  if (!D)
4350
- return I;
4358
+ return A;
4351
4359
  if (typeof D == "string") {
4352
4360
  var F = D.toLowerCase();
4353
- C[F] && (A = F), $ && (C[F] = $, A = F);
4361
+ T[F] && (I = F), $ && (T[F] = $, I = F);
4354
4362
  var K = D.split("-");
4355
- if (!A && K.length > 1)
4356
- return N(K[0]);
4363
+ if (!I && K.length > 1)
4364
+ return V(K[0]);
4357
4365
  } else {
4358
4366
  var W = D.name;
4359
- C[W] = D, A = W;
4367
+ T[W] = D, I = W;
4360
4368
  }
4361
- return !x && A && (I = A), A || !x && I;
4362
- }, k = function(N, D) {
4363
- if (L(N))
4364
- return N.clone();
4369
+ return !x && I && (A = I), I || !x && A;
4370
+ }, k = function(V, D) {
4371
+ if (L(V))
4372
+ return V.clone();
4365
4373
  var $ = typeof D == "object" ? D : {};
4366
- return $.date = N, $.args = arguments, new E($);
4374
+ return $.date = V, $.args = arguments, new E($);
4367
4375
  }, M = P;
4368
- M.l = w, M.i = L, M.w = function(N, D) {
4369
- return k(N, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
4376
+ M.l = w, M.i = L, M.w = function(V, D) {
4377
+ return k(V, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
4370
4378
  };
4371
4379
  var E = function() {
4372
- function N($) {
4380
+ function V($) {
4373
4381
  this.$L = w($.locale, null, !0), this.parse($);
4374
4382
  }
4375
- var D = N.prototype;
4383
+ var D = V.prototype;
4376
4384
  return D.parse = function($) {
4377
4385
  this.$d = function(x) {
4378
- var A = x.date, F = x.utc;
4379
- if (A === null)
4386
+ var I = x.date, F = x.utc;
4387
+ if (I === null)
4380
4388
  return new Date(NaN);
4381
- if (M.u(A))
4389
+ if (M.u(I))
4382
4390
  return new Date();
4383
- if (A instanceof Date)
4384
- return new Date(A);
4385
- if (typeof A == "string" && !/Z$/i.test(A)) {
4386
- var K = A.match(v);
4391
+ if (I instanceof Date)
4392
+ return new Date(I);
4393
+ if (typeof I == "string" && !/Z$/i.test(I)) {
4394
+ var K = I.match(v);
4387
4395
  if (K) {
4388
4396
  var W = K[2] - 1 || 0, q = (K[7] || "0").substring(0, 3);
4389
4397
  return F ? new Date(Date.UTC(K[1], W, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, q)) : new Date(K[1], W, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, q);
4390
4398
  }
4391
4399
  }
4392
- return new Date(A);
4400
+ return new Date(I);
4393
4401
  }($), this.$x = $.x || {}, this.init();
4394
4402
  }, D.init = function() {
4395
4403
  var $ = this.$d;
@@ -4397,35 +4405,35 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4397
4405
  }, D.$utils = function() {
4398
4406
  return M;
4399
4407
  }, D.isValid = function() {
4400
- return this.$d.toString() !== y;
4408
+ return this.$d.toString() !== b;
4401
4409
  }, D.isSame = function($, x) {
4402
- var A = k($);
4403
- return this.startOf(x) <= A && A <= this.endOf(x);
4410
+ var I = k($);
4411
+ return this.startOf(x) <= I && I <= this.endOf(x);
4404
4412
  }, D.isAfter = function($, x) {
4405
4413
  return k($) < this.startOf(x);
4406
4414
  }, D.isBefore = function($, x) {
4407
4415
  return this.endOf(x) < k($);
4408
- }, D.$g = function($, x, A) {
4409
- return M.u($) ? this[x] : this.set(A, $);
4416
+ }, D.$g = function($, x, I) {
4417
+ return M.u($) ? this[x] : this.set(I, $);
4410
4418
  }, D.unix = function() {
4411
4419
  return Math.floor(this.valueOf() / 1e3);
4412
4420
  }, D.valueOf = function() {
4413
4421
  return this.$d.getTime();
4414
4422
  }, D.startOf = function($, x) {
4415
- var A = this, F = !!M.u(x) || x, K = M.p($), W = function(Z, J) {
4416
- var ne = M.w(A.$u ? Date.UTC(A.$y, J, Z) : new Date(A.$y, J, Z), A);
4423
+ var I = this, F = !!M.u(x) || x, K = M.p($), W = function(Z, J) {
4424
+ var ne = M.w(I.$u ? Date.UTC(I.$y, J, Z) : new Date(I.$y, J, Z), I);
4417
4425
  return F ? ne : ne.endOf(u);
4418
4426
  }, q = function(Z, J) {
4419
- return M.w(A.toDate()[Z].apply(A.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), A);
4420
- }, Q = this.$W, V = this.$M, U = this.$D, H = "set" + (this.$u ? "UTC" : "");
4427
+ return M.w(I.toDate()[Z].apply(I.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), I);
4428
+ }, X = this.$W, N = this.$M, U = this.$D, H = "set" + (this.$u ? "UTC" : "");
4421
4429
  switch (K) {
4422
4430
  case p:
4423
4431
  return F ? W(1, 0) : W(31, 11);
4424
4432
  case g:
4425
- return F ? W(1, V) : W(0, V + 1);
4433
+ return F ? W(1, N) : W(0, N + 1);
4426
4434
  case c:
4427
- var G = this.$locale().weekStart || 0, te = (Q < G ? Q + 7 : Q) - G;
4428
- return W(F ? U - te : U + (6 - te), V);
4435
+ var G = this.$locale().weekStart || 0, te = (X < G ? X + 7 : X) - G;
4436
+ return W(F ? U - te : U + (6 - te), N);
4429
4437
  case u:
4430
4438
  case _:
4431
4439
  return q(H + "Hours", 0);
@@ -4441,10 +4449,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4441
4449
  }, D.endOf = function($) {
4442
4450
  return this.startOf($, !1);
4443
4451
  }, D.$set = function($, x) {
4444
- var A, F = M.p($), K = "set" + (this.$u ? "UTC" : ""), W = (A = {}, A[u] = K + "Date", A[_] = K + "Date", A[g] = K + "Month", A[p] = K + "FullYear", A[l] = K + "Hours", A[i] = K + "Minutes", A[s] = K + "Seconds", A[o] = K + "Milliseconds", A)[F], q = F === u ? this.$D + (x - this.$W) : x;
4452
+ var I, F = M.p($), K = "set" + (this.$u ? "UTC" : ""), W = (I = {}, I[u] = K + "Date", I[_] = K + "Date", I[g] = K + "Month", I[p] = K + "FullYear", I[l] = K + "Hours", I[i] = K + "Minutes", I[s] = K + "Seconds", I[o] = K + "Milliseconds", I)[F], q = F === u ? this.$D + (x - this.$W) : x;
4445
4453
  if (F === g || F === p) {
4446
- var Q = this.clone().set(_, 1);
4447
- Q.$d[W](q), Q.init(), this.$d = Q.set(_, Math.min(this.$D, Q.daysInMonth())).$d;
4454
+ var X = this.clone().set(_, 1);
4455
+ X.$d[W](q), X.init(), this.$d = X.set(_, Math.min(this.$D, X.daysInMonth())).$d;
4448
4456
  } else
4449
4457
  W && this.$d[W](q);
4450
4458
  return this.init(), this;
@@ -4453,11 +4461,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4453
4461
  }, D.get = function($) {
4454
4462
  return this[M.p($)]();
4455
4463
  }, D.add = function($, x) {
4456
- var A, F = this;
4464
+ var I, F = this;
4457
4465
  $ = Number($);
4458
- var K = M.p(x), W = function(V) {
4466
+ var K = M.p(x), W = function(N) {
4459
4467
  var U = k(F);
4460
- return M.w(U.date(U.date() + Math.round(V * $)), F);
4468
+ return M.w(U.date(U.date() + Math.round(N * $)), F);
4461
4469
  };
4462
4470
  if (K === g)
4463
4471
  return this.set(g, this.$M + $);
@@ -4467,39 +4475,39 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4467
4475
  return W(1);
4468
4476
  if (K === c)
4469
4477
  return W(7);
4470
- var q = (A = {}, A[i] = n, A[l] = a, A[s] = r, A)[K] || 1, Q = this.$d.getTime() + $ * q;
4471
- return M.w(Q, this);
4478
+ var q = (I = {}, I[i] = n, I[l] = a, I[s] = r, I)[K] || 1, X = this.$d.getTime() + $ * q;
4479
+ return M.w(X, this);
4472
4480
  }, D.subtract = function($, x) {
4473
4481
  return this.add(-1 * $, x);
4474
4482
  }, D.format = function($) {
4475
- var x = this, A = this.$locale();
4483
+ var x = this, I = this.$locale();
4476
4484
  if (!this.isValid())
4477
- return A.invalidDate || y;
4478
- var F = $ || "YYYY-MM-DDTHH:mm:ssZ", K = M.z(this), W = this.$H, q = this.$m, Q = this.$M, V = A.weekdays, U = A.months, H = function(J, ne, se, le) {
4485
+ return I.invalidDate || b;
4486
+ var F = $ || "YYYY-MM-DDTHH:mm:ssZ", K = M.z(this), W = this.$H, q = this.$m, X = this.$M, N = I.weekdays, U = I.months, H = function(J, ne, se, le) {
4479
4487
  return J && (J[ne] || J(x, F)) || se[ne].slice(0, le);
4480
4488
  }, G = function(J) {
4481
4489
  return M.s(W % 12 || 12, J, "0");
4482
- }, te = A.meridiem || function(J, ne, se) {
4490
+ }, te = I.meridiem || function(J, ne, se) {
4483
4491
  var le = J < 12 ? "AM" : "PM";
4484
4492
  return se ? le.toLowerCase() : le;
4485
- }, Z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: M.s(Q + 1, 2, "0"), MMM: H(A.monthsShort, Q, U, 3), MMMM: H(U, Q), D: this.$D, DD: M.s(this.$D, 2, "0"), d: String(this.$W), dd: H(A.weekdaysMin, this.$W, V, 2), ddd: H(A.weekdaysShort, this.$W, V, 3), dddd: V[this.$W], H: String(W), HH: M.s(W, 2, "0"), h: G(1), hh: G(2), a: te(W, q, !0), A: te(W, q, !1), m: String(q), mm: M.s(q, 2, "0"), s: String(this.$s), ss: M.s(this.$s, 2, "0"), SSS: M.s(this.$ms, 3, "0"), Z: K };
4486
- return F.replace(b, function(J, ne) {
4493
+ }, Z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM: M.s(X + 1, 2, "0"), MMM: H(I.monthsShort, X, U, 3), MMMM: H(U, X), D: this.$D, DD: M.s(this.$D, 2, "0"), d: String(this.$W), dd: H(I.weekdaysMin, this.$W, N, 2), ddd: H(I.weekdaysShort, this.$W, N, 3), dddd: N[this.$W], H: String(W), HH: M.s(W, 2, "0"), h: G(1), hh: G(2), a: te(W, q, !0), A: te(W, q, !1), m: String(q), mm: M.s(q, 2, "0"), s: String(this.$s), ss: M.s(this.$s, 2, "0"), SSS: M.s(this.$ms, 3, "0"), Z: K };
4494
+ return F.replace(y, function(J, ne) {
4487
4495
  return ne || Z[J] || K.replace(":", "");
4488
4496
  });
4489
4497
  }, D.utcOffset = function() {
4490
4498
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4491
- }, D.diff = function($, x, A) {
4492
- var F, K = M.p(x), W = k($), q = (W.utcOffset() - this.utcOffset()) * n, Q = this - W, V = M.m(this, W);
4493
- return V = (F = {}, F[p] = V / 12, F[g] = V, F[m] = V / 3, F[c] = (Q - q) / 6048e5, F[u] = (Q - q) / 864e5, F[l] = Q / a, F[i] = Q / n, F[s] = Q / r, F)[K] || Q, A ? V : M.a(V);
4499
+ }, D.diff = function($, x, I) {
4500
+ var F, K = M.p(x), W = k($), q = (W.utcOffset() - this.utcOffset()) * n, X = this - W, N = M.m(this, W);
4501
+ return N = (F = {}, F[p] = N / 12, F[g] = N, F[m] = N / 3, F[c] = (X - q) / 6048e5, F[u] = (X - q) / 864e5, F[l] = X / a, F[i] = X / n, F[s] = X / r, F)[K] || X, I ? N : M.a(N);
4494
4502
  }, D.daysInMonth = function() {
4495
4503
  return this.endOf(g).$D;
4496
4504
  }, D.$locale = function() {
4497
- return C[this.$L];
4505
+ return T[this.$L];
4498
4506
  }, D.locale = function($, x) {
4499
4507
  if (!$)
4500
4508
  return this.$L;
4501
- var A = this.clone(), F = w($, x, !0);
4502
- return F && (A.$L = F), A;
4509
+ var I = this.clone(), F = w($, x, !0);
4510
+ return F && (I.$L = F), I;
4503
4511
  }, D.clone = function() {
4504
4512
  return M.w(this.$d, this);
4505
4513
  }, D.toDate = function() {
@@ -4510,17 +4518,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4510
4518
  return this.$d.toISOString();
4511
4519
  }, D.toString = function() {
4512
4520
  return this.$d.toUTCString();
4513
- }, N;
4521
+ }, V;
4514
4522
  }(), R = E.prototype;
4515
- return k.prototype = R, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", p], ["$D", _]].forEach(function(N) {
4516
- R[N[1]] = function(D) {
4517
- return this.$g(D, N[0], N[1]);
4523
+ return k.prototype = R, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", p], ["$D", _]].forEach(function(V) {
4524
+ R[V[1]] = function(D) {
4525
+ return this.$g(D, V[0], V[1]);
4518
4526
  };
4519
- }), k.extend = function(N, D) {
4520
- return N.$i || (N(D, E, k), N.$i = !0), k;
4521
- }, k.locale = w, k.isDayjs = L, k.unix = function(N) {
4522
- return k(1e3 * N);
4523
- }, k.en = C[I], k.Ls = C, k.p = {}, k;
4527
+ }), k.extend = function(V, D) {
4528
+ return V.$i || (V(D, E, k), V.$i = !0), k;
4529
+ }, k.locale = w, k.isDayjs = L, k.unix = function(V) {
4530
+ return k(1e3 * V);
4531
+ }, k.en = T[A], k.Ls = T, k.p = {}, k;
4524
4532
  });
4525
4533
  })(dayjs_min);
4526
4534
  const dayjs = dayjs_min.exports;
@@ -4562,34 +4570,34 @@ function filesize(e, {
4562
4570
  fullform: m = !1,
4563
4571
  fullforms: p = [],
4564
4572
  exponent: _ = -1,
4565
- roundingMethod: y = ROUND,
4573
+ roundingMethod: b = ROUND,
4566
4574
  precision: v = 0
4567
4575
  } = {}) {
4568
- let b = _, T = Number(e), O = [], P = 0, I = EMPTY;
4576
+ let y = _, C = Number(e), O = [], P = 0, A = EMPTY;
4569
4577
  n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
4570
- const C = n === 10 ? 1e3 : 1024, L = m === !0, w = T < 0, k = Math[y];
4578
+ const T = n === 10 ? 1e3 : 1024, L = m === !0, w = C < 0, k = Math[b];
4571
4579
  if (typeof e != "bigint" && isNaN(e))
4572
4580
  throw new TypeError(INVALID_NUMBER);
4573
4581
  if (typeof k !== FUNCTION)
4574
4582
  throw new TypeError(INVALID_ROUND);
4575
- if (w && (T = -T), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(T) / Math.log(C)), b < 0 && (b = 0)), b > 8 && (v > 0 && (v += 8 - b), b = 8), g === EXPONENT)
4576
- return b;
4577
- if (T === 0)
4578
- O[0] = 0, I = O[1] = STRINGS.symbol[c][t ? BITS : BYTES][b];
4583
+ if (w && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(T)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4584
+ return y;
4585
+ if (C === 0)
4586
+ O[0] = 0, A = O[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4579
4587
  else {
4580
- P = T / (n === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (P = P * 8, P >= C && b < 8 && (P = P / C, b++));
4581
- const M = Math.pow(10, b > 0 ? a : 0);
4582
- O[0] = k(P * M) / M, O[0] === C && b < 8 && _ === -1 && (O[0] = 1, b++), I = O[1] = n === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][b];
4588
+ P = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (P = P * 8, P >= T && y < 8 && (P = P / T, y++));
4589
+ const M = Math.pow(10, y > 0 ? a : 0);
4590
+ O[0] = k(P * M) / M, O[0] === T && y < 8 && _ === -1 && (O[0] = 1, y++), A = O[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4583
4591
  }
4584
4592
  if (w && (O[0] = -O[0]), v > 0 && (O[0] = O[0].toPrecision(v)), O[1] = u[O[1]] || O[1], o === !0 ? O[0] = O[0].toLocaleString() : o.length > 0 ? O[0] = O[0].toLocaleString(o, s) : i.length > 0 && (O[0] = O[0].toString().replace(PERIOD, i)), r && Number.isInteger(O[0]) === !1 && a > 0) {
4585
- const M = i || PERIOD, E = O[0].toString().split(M), R = E[1] || EMPTY, N = R.length, D = a - N;
4586
- O[0] = `${E[0]}${M}${R.padEnd(N + D, ZERO)}`;
4593
+ const M = i || PERIOD, E = O[0].toString().split(M), R = E[1] || EMPTY, V = R.length, D = a - V;
4594
+ O[0] = `${E[0]}${M}${R.padEnd(V + D, ZERO)}`;
4587
4595
  }
4588
- return L && (O[1] = p[b] ? p[b] : STRINGS.fullform[c][b] + (t ? BIT : BYTE) + (O[0] === 1 ? EMPTY : S)), g === ARRAY ? O : g === OBJECT ? {
4596
+ return L && (O[1] = p[y] ? p[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (O[0] === 1 ? EMPTY : S)), g === ARRAY ? O : g === OBJECT ? {
4589
4597
  value: O[0],
4590
4598
  symbol: O[1],
4591
- exponent: b,
4592
- unit: I
4599
+ exponent: y,
4600
+ unit: A
4593
4601
  } : O.join(l);
4594
4602
  }
4595
4603
  const data$5 = {
@@ -4868,38 +4876,38 @@ function iconToSVG(e, t) {
4868
4876
  };
4869
4877
  let o = r.body;
4870
4878
  [r, n].forEach((_) => {
4871
- const y = [], v = _.hFlip, b = _.vFlip;
4872
- let T = _.rotate;
4873
- v ? b ? T += 2 : (y.push(
4879
+ const b = [], v = _.hFlip, y = _.vFlip;
4880
+ let C = _.rotate;
4881
+ v ? y ? C += 2 : (b.push(
4874
4882
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
4875
- ), y.push("scale(-1 1)"), a.top = a.left = 0) : b && (y.push(
4883
+ ), b.push("scale(-1 1)"), a.top = a.left = 0) : y && (b.push(
4876
4884
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
4877
- ), y.push("scale(1 -1)"), a.top = a.left = 0);
4885
+ ), b.push("scale(1 -1)"), a.top = a.left = 0);
4878
4886
  let O;
4879
- switch (T < 0 && (T -= Math.floor(T / 4) * 4), T = T % 4, T) {
4887
+ switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
4880
4888
  case 1:
4881
- O = a.height / 2 + a.top, y.unshift(
4889
+ O = a.height / 2 + a.top, b.unshift(
4882
4890
  "rotate(90 " + O.toString() + " " + O.toString() + ")"
4883
4891
  );
4884
4892
  break;
4885
4893
  case 2:
4886
- y.unshift(
4894
+ b.unshift(
4887
4895
  "rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
4888
4896
  );
4889
4897
  break;
4890
4898
  case 3:
4891
- O = a.width / 2 + a.left, y.unshift(
4899
+ O = a.width / 2 + a.left, b.unshift(
4892
4900
  "rotate(-90 " + O.toString() + " " + O.toString() + ")"
4893
4901
  );
4894
4902
  break;
4895
4903
  }
4896
- T % 2 === 1 && (a.left !== a.top && (O = a.left, a.left = a.top, a.top = O), a.width !== a.height && (O = a.width, a.width = a.height, a.height = O)), y.length && (o = '<g transform="' + y.join(" ") + '">' + o + "</g>");
4904
+ C % 2 === 1 && (a.left !== a.top && (O = a.left, a.left = a.top, a.top = O), a.width !== a.height && (O = a.width, a.width = a.height, a.height = O)), b.length && (o = '<g transform="' + b.join(" ") + '">' + o + "</g>");
4897
4905
  });
4898
4906
  const s = n.width, i = n.height, l = a.width, u = a.height;
4899
4907
  let c, g;
4900
4908
  s === null ? (g = i === null ? "1em" : i === "auto" ? u : i, c = calculateSize(g, l / u)) : (c = s === "auto" ? l : s, g = i === null ? calculateSize(c, u / l) : i === "auto" ? u : i);
4901
- const m = {}, p = (_, y) => {
4902
- isUnsetKeyword(y) || (m[_] = y.toString());
4909
+ const m = {}, p = (_, b) => {
4910
+ isUnsetKeyword(b) || (m[_] = b.toString());
4903
4911
  };
4904
4912
  return p("width", c), p("height", g), m.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
4905
4913
  attributes: m,
@@ -5173,12 +5181,12 @@ function sendQuery(e, t, r, n) {
5173
5181
  const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
5174
5182
  let s;
5175
5183
  if (e.random) {
5176
- let C = e.resources.slice(0);
5177
- for (s = []; C.length > 1; ) {
5178
- const L = Math.floor(Math.random() * C.length);
5179
- s.push(C[L]), C = C.slice(0, L).concat(C.slice(L + 1));
5184
+ let T = e.resources.slice(0);
5185
+ for (s = []; T.length > 1; ) {
5186
+ const L = Math.floor(Math.random() * T.length);
5187
+ s.push(T[L]), T = T.slice(0, L).concat(T.slice(L + 1));
5180
5188
  }
5181
- s = s.concat(C);
5189
+ s = s.concat(T);
5182
5190
  } else
5183
5191
  s = e.resources.slice(o).concat(e.resources.slice(0, o));
5184
5192
  const i = Date.now();
@@ -5187,15 +5195,15 @@ function sendQuery(e, t, r, n) {
5187
5195
  function _() {
5188
5196
  g && (clearTimeout(g), g = null);
5189
5197
  }
5190
- function y() {
5191
- l === "pending" && (l = "aborted"), _(), m.forEach((C) => {
5192
- C.status === "pending" && (C.status = "aborted");
5198
+ function b() {
5199
+ l === "pending" && (l = "aborted"), _(), m.forEach((T) => {
5200
+ T.status === "pending" && (T.status = "aborted");
5193
5201
  }), m = [];
5194
5202
  }
5195
- function v(C, L) {
5196
- L && (p = []), typeof C == "function" && p.push(C);
5203
+ function v(T, L) {
5204
+ L && (p = []), typeof T == "function" && p.push(T);
5197
5205
  }
5198
- function b() {
5206
+ function y() {
5199
5207
  return {
5200
5208
  startTime: i,
5201
5209
  payload: t,
@@ -5203,22 +5211,22 @@ function sendQuery(e, t, r, n) {
5203
5211
  queriesSent: u,
5204
5212
  queriesPending: m.length,
5205
5213
  subscribe: v,
5206
- abort: y
5214
+ abort: b
5207
5215
  };
5208
5216
  }
5209
- function T() {
5210
- l = "failed", p.forEach((C) => {
5211
- C(void 0, c);
5217
+ function C() {
5218
+ l = "failed", p.forEach((T) => {
5219
+ T(void 0, c);
5212
5220
  });
5213
5221
  }
5214
5222
  function O() {
5215
- m.forEach((C) => {
5216
- C.status === "pending" && (C.status = "aborted");
5223
+ m.forEach((T) => {
5224
+ T.status === "pending" && (T.status = "aborted");
5217
5225
  }), m = [];
5218
5226
  }
5219
- function P(C, L, w) {
5227
+ function P(T, L, w) {
5220
5228
  const k = L !== "success";
5221
- switch (m = m.filter((M) => M !== C), l) {
5229
+ switch (m = m.filter((M) => M !== T), l) {
5222
5230
  case "pending":
5223
5231
  break;
5224
5232
  case "failed":
@@ -5229,46 +5237,46 @@ function sendQuery(e, t, r, n) {
5229
5237
  return;
5230
5238
  }
5231
5239
  if (L === "abort") {
5232
- c = w, T();
5240
+ c = w, C();
5233
5241
  return;
5234
5242
  }
5235
5243
  if (k) {
5236
- c = w, m.length || (s.length ? I() : T());
5244
+ c = w, m.length || (s.length ? A() : C());
5237
5245
  return;
5238
5246
  }
5239
5247
  if (_(), O(), !e.random) {
5240
- const M = e.resources.indexOf(C.resource);
5248
+ const M = e.resources.indexOf(T.resource);
5241
5249
  M !== -1 && M !== e.index && (e.index = M);
5242
5250
  }
5243
5251
  l = "completed", p.forEach((M) => {
5244
5252
  M(w);
5245
5253
  });
5246
5254
  }
5247
- function I() {
5255
+ function A() {
5248
5256
  if (l !== "pending")
5249
5257
  return;
5250
5258
  _();
5251
- const C = s.shift();
5252
- if (C === void 0) {
5259
+ const T = s.shift();
5260
+ if (T === void 0) {
5253
5261
  if (m.length) {
5254
5262
  g = setTimeout(() => {
5255
- _(), l === "pending" && (O(), T());
5263
+ _(), l === "pending" && (O(), C());
5256
5264
  }, e.timeout);
5257
5265
  return;
5258
5266
  }
5259
- T();
5267
+ C();
5260
5268
  return;
5261
5269
  }
5262
5270
  const L = {
5263
5271
  status: "pending",
5264
- resource: C,
5272
+ resource: T,
5265
5273
  callback: (w, k) => {
5266
5274
  P(L, w, k);
5267
5275
  }
5268
5276
  };
5269
- m.push(L), u++, g = setTimeout(I, e.rotate), r(C, t, L.callback);
5277
+ m.push(L), u++, g = setTimeout(A, e.rotate), r(T, t, L.callback);
5270
5278
  }
5271
- return setTimeout(I), b;
5279
+ return setTimeout(A), y;
5272
5280
  }
5273
5281
  function initRedundancy(e) {
5274
5282
  const t = {
@@ -5642,10 +5650,10 @@ function fixSize(e) {
5642
5650
  }
5643
5651
  const render = (e, t) => {
5644
5652
  const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
5645
- for (let y in t) {
5646
- const v = t[y];
5653
+ for (let b in t) {
5654
+ const v = t[b];
5647
5655
  if (v !== void 0)
5648
- switch (y) {
5656
+ switch (b) {
5649
5657
  case "icon":
5650
5658
  case "style":
5651
5659
  case "onLoad":
@@ -5654,7 +5662,7 @@ const render = (e, t) => {
5654
5662
  case "inline":
5655
5663
  case "hFlip":
5656
5664
  case "vFlip":
5657
- r[y] = v === !0 || v === "true" || v === 1;
5665
+ r[b] = v === !0 || v === "true" || v === 1;
5658
5666
  break;
5659
5667
  case "flip":
5660
5668
  typeof v == "string" && flipFromString(r, v);
@@ -5663,15 +5671,15 @@ const render = (e, t) => {
5663
5671
  o.color = v;
5664
5672
  break;
5665
5673
  case "rotate":
5666
- typeof v == "string" ? r[y] = rotateFromString(v) : typeof v == "number" && (r[y] = v);
5674
+ typeof v == "string" ? r[b] = rotateFromString(v) : typeof v == "number" && (r[b] = v);
5667
5675
  break;
5668
5676
  case "ariaHidden":
5669
5677
  case "aria-hidden":
5670
5678
  v !== !0 && v !== "true" && delete n["aria-hidden"];
5671
5679
  break;
5672
5680
  default: {
5673
- const b = customisationAliases[y];
5674
- b ? (v === !0 || v === "true" || v === 1) && (r[b] = !0) : defaultExtendedIconCustomisations[y] === void 0 && (n[y] = v);
5681
+ const y = customisationAliases[b];
5682
+ y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[b] === void 0 && (n[b] = v);
5675
5683
  }
5676
5684
  }
5677
5685
  }
@@ -5681,8 +5689,8 @@ const render = (e, t) => {
5681
5689
  ...o,
5682
5690
  ...i
5683
5691
  }, Object.assign(n, u);
5684
- let y = 0, v = t.id;
5685
- return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + y++ : "iconifyVue"), h("svg", n);
5692
+ let b = 0, v = t.id;
5693
+ return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + b++ : "iconifyVue"), h("svg", n);
5686
5694
  }
5687
5695
  const { body: c, width: g, height: m } = e, p = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), _ = iconToHTML(c, {
5688
5696
  ...u,
@@ -5881,12 +5889,12 @@ function createSetupStore(e, t, r = {}, n, a) {
5881
5889
  deep: !0
5882
5890
  };
5883
5891
  process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (w) => {
5884
- u ? p = w : u == !1 && !C._hotUpdating && (Array.isArray(p) ? p.push(w) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
5892
+ u ? p = w : u == !1 && !T._hotUpdating && (Array.isArray(p) ? p.push(w) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
5885
5893
  });
5886
5894
  let u, c, g = markRaw([]), m = markRaw([]), p;
5887
5895
  const _ = n.state.value[e];
5888
5896
  !s && !_ && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
5889
- const y = ref({});
5897
+ const b = ref({});
5890
5898
  function v(w) {
5891
5899
  let k;
5892
5900
  u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof w == "function" ? (w(n.state.value[e]), k = {
@@ -5902,17 +5910,17 @@ function createSetupStore(e, t, r = {}, n, a) {
5902
5910
  u = !0;
5903
5911
  }), c = !0, triggerSubscriptions(g, k, n.state.value[e]);
5904
5912
  }
5905
- const b = process.env.NODE_ENV !== "production" ? () => {
5913
+ const y = process.env.NODE_ENV !== "production" ? () => {
5906
5914
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
5907
5915
  } : noop$1;
5908
- function T() {
5916
+ function C() {
5909
5917
  o.stop(), g = [], m = [], n._s.delete(e);
5910
5918
  }
5911
5919
  function O(w, k) {
5912
5920
  return function() {
5913
5921
  setActivePinia(n);
5914
5922
  const M = Array.from(arguments), E = [], R = [];
5915
- function N(x) {
5923
+ function V(x) {
5916
5924
  E.push(x);
5917
5925
  }
5918
5926
  function D(x) {
@@ -5921,13 +5929,13 @@ function createSetupStore(e, t, r = {}, n, a) {
5921
5929
  triggerSubscriptions(m, {
5922
5930
  args: M,
5923
5931
  name: w,
5924
- store: C,
5925
- after: N,
5932
+ store: T,
5933
+ after: V,
5926
5934
  onError: D
5927
5935
  });
5928
5936
  let $;
5929
5937
  try {
5930
- $ = k.apply(this && this.$id === e ? this : C, M);
5938
+ $ = k.apply(this && this.$id === e ? this : T, M);
5931
5939
  } catch (x) {
5932
5940
  throw triggerSubscriptions(R, x), x;
5933
5941
  }
@@ -5938,13 +5946,13 @@ function createSetupStore(e, t, r = {}, n, a) {
5938
5946
  actions: {},
5939
5947
  getters: {},
5940
5948
  state: [],
5941
- hotState: y
5942
- }), I = {
5949
+ hotState: b
5950
+ }), A = {
5943
5951
  _p: n,
5944
5952
  $id: e,
5945
5953
  $onAction: addSubscription.bind(null, m),
5946
5954
  $patch: v,
5947
- $reset: b,
5955
+ $reset: y,
5948
5956
  $subscribe(w, k = {}) {
5949
5957
  const M = addSubscription(g, w, k.detached, () => E()), E = o.run(() => watch(() => n.state.value[e], (R) => {
5950
5958
  (k.flush === "sync" ? c : u) && w({
@@ -5955,28 +5963,28 @@ function createSetupStore(e, t, r = {}, n, a) {
5955
5963
  }, assign$1({}, l, k)));
5956
5964
  return M;
5957
5965
  },
5958
- $dispose: T
5959
- }, C = reactive(assign$1(
5966
+ $dispose: C
5967
+ }, T = reactive(assign$1(
5960
5968
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
5961
5969
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
5962
5970
  _hmrPayload: P
5963
5971
  } : {},
5964
- I
5972
+ A
5965
5973
  ));
5966
- n._s.set(e, C);
5974
+ n._s.set(e, T);
5967
5975
  const L = n._e.run(() => (o = effectScope(), o.run(() => t())));
5968
5976
  for (const w in L) {
5969
5977
  const k = L[w];
5970
5978
  if (isRef(k) && !isComputed(k) || isReactive(k))
5971
- process.env.NODE_ENV !== "production" && a ? set(y.value, w, toRef(L, w)) : s || (_ && shouldHydrate(k) && (isRef(k) ? k.value = _[w] : mergeReactiveObjects(k, _[w])), n.state.value[e][w] = k), process.env.NODE_ENV !== "production" && P.state.push(w);
5979
+ process.env.NODE_ENV !== "production" && a ? set(b.value, w, toRef(L, w)) : s || (_ && shouldHydrate(k) && (isRef(k) ? k.value = _[w] : mergeReactiveObjects(k, _[w])), n.state.value[e][w] = k), process.env.NODE_ENV !== "production" && P.state.push(w);
5972
5980
  else if (typeof k == "function") {
5973
5981
  const M = process.env.NODE_ENV !== "production" && a ? k : O(w, k);
5974
5982
  L[w] = M, process.env.NODE_ENV !== "production" && (P.actions[w] = k), i.actions[w] = k;
5975
5983
  } else
5976
5984
  process.env.NODE_ENV !== "production" && isComputed(k) && (P.getters[w] = s ? r.getters[w] : k, IS_CLIENT && (L._getters || (L._getters = markRaw([]))).push(w));
5977
5985
  }
5978
- if (assign$1(C, L), assign$1(toRaw(C), L), Object.defineProperty(C, "$state", {
5979
- get: () => process.env.NODE_ENV !== "production" && a ? y.value : n.state.value[e],
5986
+ if (assign$1(T, L), assign$1(toRaw(T), L), Object.defineProperty(T, "$state", {
5987
+ get: () => process.env.NODE_ENV !== "production" && a ? b.value : n.state.value[e],
5980
5988
  set: (w) => {
5981
5989
  if (process.env.NODE_ENV !== "production" && a)
5982
5990
  throw new Error("cannot set hotState");
@@ -5985,31 +5993,31 @@ function createSetupStore(e, t, r = {}, n, a) {
5985
5993
  });
5986
5994
  }
5987
5995
  }), process.env.NODE_ENV !== "production") {
5988
- C._hotUpdate = markRaw((k) => {
5989
- C._hotUpdating = !0, k._hmrPayload.state.forEach((M) => {
5990
- if (M in C.$state) {
5991
- const E = k.$state[M], R = C.$state[M];
5996
+ T._hotUpdate = markRaw((k) => {
5997
+ T._hotUpdating = !0, k._hmrPayload.state.forEach((M) => {
5998
+ if (M in T.$state) {
5999
+ const E = k.$state[M], R = T.$state[M];
5992
6000
  typeof E == "object" && isPlainObject(E) && isPlainObject(R) ? patchObject(E, R) : k.$state[M] = R;
5993
6001
  }
5994
- set(C, M, toRef(k.$state, M));
5995
- }), Object.keys(C.$state).forEach((M) => {
5996
- M in k.$state || del(C, M);
6002
+ set(T, M, toRef(k.$state, M));
6003
+ }), Object.keys(T.$state).forEach((M) => {
6004
+ M in k.$state || del(T, M);
5997
6005
  }), u = !1, c = !1, n.state.value[e] = toRef(k._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
5998
6006
  u = !0;
5999
6007
  });
6000
6008
  for (const M in k._hmrPayload.actions) {
6001
6009
  const E = k[M];
6002
- set(C, M, O(M, E));
6010
+ set(T, M, O(M, E));
6003
6011
  }
6004
6012
  for (const M in k._hmrPayload.getters) {
6005
- const E = k._hmrPayload.getters[M], R = s ? computed(() => (setActivePinia(n), E.call(C, C))) : E;
6006
- set(C, M, R);
6007
- }
6008
- Object.keys(C._hmrPayload.getters).forEach((M) => {
6009
- M in k._hmrPayload.getters || del(C, M);
6010
- }), Object.keys(C._hmrPayload.actions).forEach((M) => {
6011
- M in k._hmrPayload.actions || del(C, M);
6012
- }), C._hmrPayload = k._hmrPayload, C._getters = k._getters, C._hotUpdating = !1;
6013
+ const E = k._hmrPayload.getters[M], R = s ? computed(() => (setActivePinia(n), E.call(T, T))) : E;
6014
+ set(T, M, R);
6015
+ }
6016
+ Object.keys(T._hmrPayload.getters).forEach((M) => {
6017
+ M in k._hmrPayload.getters || del(T, M);
6018
+ }), Object.keys(T._hmrPayload.actions).forEach((M) => {
6019
+ M in k._hmrPayload.actions || del(T, M);
6020
+ }), T._hmrPayload = k._hmrPayload, T._getters = k._getters, T._hotUpdating = !1;
6013
6021
  });
6014
6022
  const w = {
6015
6023
  writable: !0,
@@ -6017,8 +6025,8 @@ function createSetupStore(e, t, r = {}, n, a) {
6017
6025
  enumerable: !1
6018
6026
  };
6019
6027
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((k) => {
6020
- Object.defineProperty(C, k, {
6021
- value: C[k],
6028
+ Object.defineProperty(T, k, {
6029
+ value: T[k],
6022
6030
  ...w
6023
6031
  });
6024
6032
  });
@@ -6026,22 +6034,22 @@ function createSetupStore(e, t, r = {}, n, a) {
6026
6034
  return n._p.forEach((w) => {
6027
6035
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6028
6036
  const k = o.run(() => w({
6029
- store: C,
6037
+ store: T,
6030
6038
  app: n._a,
6031
6039
  pinia: n,
6032
6040
  options: i
6033
6041
  }));
6034
- Object.keys(k || {}).forEach((M) => C._customProperties.add(M)), assign$1(C, k);
6042
+ Object.keys(k || {}).forEach((M) => T._customProperties.add(M)), assign$1(T, k);
6035
6043
  } else
6036
- assign$1(C, o.run(() => w({
6037
- store: C,
6044
+ assign$1(T, o.run(() => w({
6045
+ store: T,
6038
6046
  app: n._a,
6039
6047
  pinia: n,
6040
6048
  options: i
6041
6049
  })));
6042
- }), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6050
+ }), process.env.NODE_ENV !== "production" && T.$state && typeof T.$state == "object" && typeof T.$state.constructor == "function" && !T.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6043
6051
  state: () => new MyClass()
6044
- Found in store "${C.$id}".`), _ && s && r.hydrate && r.hydrate(C.$state, _), u = !0, c = !0, C;
6052
+ Found in store "${T.$id}".`), _ && s && r.hydrate && r.hydrate(T.$state, _), u = !0, c = !0, T;
6045
6053
  }
6046
6054
  function defineStore(e, t, r) {
6047
6055
  let n, a;
@@ -6195,10 +6203,27 @@ class KgUtil {
6195
6203
  return new Blob(s, { type: r });
6196
6204
  }
6197
6205
  static downloadFile(t, r, n) {
6198
- let a;
6199
- typeof t == "string" ? a = new Blob([this.base64toBlob(t, n)], { type: n }) : a = new Blob([t], { type: n });
6200
- const o = URL.createObjectURL(a), s = document.createElement("a");
6201
- document.body.appendChild(s), s.setAttribute("style", "display:none"), s.setAttribute("href", o), s.setAttribute("download", r), s.click(), URL.revokeObjectURL(o);
6206
+ const a = r.split(".")[1];
6207
+ if (!a)
6208
+ throw new Error(`\u6587\u4EF6\u540D ${r} \u4E0D\u5408\u6CD5.`);
6209
+ let o = n;
6210
+ if (!o)
6211
+ switch (a) {
6212
+ case "xls":
6213
+ o = "application/vnd.ms-excel";
6214
+ break;
6215
+ case "xlsx":
6216
+ o = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
6217
+ break;
6218
+ }
6219
+ if (!o) {
6220
+ Logger.error("\u53C2\u6570 _contentType \u4E3A\u7A7A.");
6221
+ return;
6222
+ }
6223
+ let s;
6224
+ typeof t == "string" ? s = new Blob([this.base64toBlob(t, n)], { type: n }) : s = new Blob([t], { type: n });
6225
+ const i = URL.createObjectURL(s), l = document.createElement("a");
6226
+ l.setAttribute("style", "display:none"), l.setAttribute("href", i), l.setAttribute("download", r), document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(i);
6202
6227
  }
6203
6228
  static parseParams(t) {
6204
6229
  return !t || !isObjectLike(t) || Object.keys(t).forEach((r) => {
@@ -6359,18 +6384,18 @@ const getProps$m = () => ({
6359
6384
  slots: r
6360
6385
  }) {
6361
6386
  if (e.kgMaxHeight < e.kgMinHeight) {
6362
- const T = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
6363
- throw Logger.error(T, {
6387
+ const C = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
6388
+ throw Logger.error(C, {
6364
6389
  kgMaxHeight: e.kgMaxHeight,
6365
6390
  kgMinHeight: e.kgMinHeight
6366
- }), new Error(T);
6391
+ }), new Error(C);
6367
6392
  }
6368
6393
  if (e.kgMaxWidth < e.kgMinWidth) {
6369
- const T = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
6370
- throw Logger.error(T, {
6394
+ const C = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
6395
+ throw Logger.error(C, {
6371
6396
  kgMaxWidth: e.kgMaxWidth,
6372
6397
  kgMinWidth: e.kgMinWidth
6373
- }), new Error(T);
6398
+ }), new Error(C);
6374
6399
  }
6375
6400
  let n = 0, a = 0, o = 0, s = 0, i = {
6376
6401
  remove: () => {
@@ -6393,22 +6418,22 @@ const getProps$m = () => ({
6393
6418
  };
6394
6419
  }
6395
6420
  }), c = computed(() => {
6396
- let T = "kg-resizable";
6397
- switch (e.kgDisabled && (T += " kg-resizable--disabled"), e.kgType) {
6421
+ let C = "kg-resizable";
6422
+ switch (e.kgDisabled && (C += " kg-resizable--disabled"), e.kgType) {
6398
6423
  case "left":
6399
- T += " kg-resizable--left";
6424
+ C += " kg-resizable--left";
6400
6425
  break;
6401
6426
  case "right":
6402
- T += " kg-resizable--right";
6427
+ C += " kg-resizable--right";
6403
6428
  break;
6404
6429
  case "top":
6405
- T += " kg-resizable--top";
6430
+ C += " kg-resizable--top";
6406
6431
  break;
6407
6432
  case "bottom":
6408
- T += " kg-resizable--bottom";
6433
+ C += " kg-resizable--bottom";
6409
6434
  break;
6410
6435
  }
6411
- return T;
6436
+ return C;
6412
6437
  });
6413
6438
  function g() {
6414
6439
  i.remove(), l.remove();
@@ -6416,51 +6441,51 @@ const getProps$m = () => ({
6416
6441
  onUnmounted(() => {
6417
6442
  g();
6418
6443
  });
6419
- const m = (T) => {
6444
+ const m = (C) => {
6420
6445
  switch (e.kgType) {
6421
6446
  case "top":
6422
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (T.pageY - s))));
6447
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (C.pageY - s))));
6423
6448
  break;
6424
6449
  case "bottom":
6425
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (T.pageY - s))));
6450
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (C.pageY - s))));
6426
6451
  break;
6427
6452
  case "left":
6428
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (T.pageX - o))));
6453
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (C.pageX - o))));
6429
6454
  break;
6430
6455
  case "right":
6431
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n + (T.pageX - o))));
6456
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n + (C.pageX - o))));
6432
6457
  break;
6433
6458
  }
6434
6459
  };
6435
- function p(T) {
6436
- m(T);
6460
+ function p(C) {
6461
+ m(C);
6437
6462
  }
6438
- function _(T) {
6439
- m(T), g();
6463
+ function _(C) {
6464
+ m(C), g();
6440
6465
  }
6441
- function y(T) {
6442
- T.stopPropagation(), T.preventDefault(), g(), !(T instanceof MouseEvent && T.which !== 1) && (o = T.pageX, s = T.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", p), l = v(document.documentElement, "mouseup", _));
6466
+ function b(C) {
6467
+ C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", p), l = v(document.documentElement, "mouseup", _));
6443
6468
  }
6444
- function v(T, O, P) {
6445
- return T.addEventListener(O, P), {
6446
- remove: () => T.removeEventListener(O, P)
6469
+ function v(C, O, P) {
6470
+ return C.addEventListener(O, P), {
6471
+ remove: () => C.removeEventListener(O, P)
6447
6472
  };
6448
6473
  }
6449
- function b(T) {
6450
- T.stopPropagation(), T.preventDefault();
6474
+ function y(C) {
6475
+ C.stopPropagation(), C.preventDefault();
6451
6476
  }
6452
6477
  return () => {
6453
- var T;
6478
+ var C;
6454
6479
  return createVNode("div", {
6455
6480
  class: c.value,
6456
6481
  style: u.value
6457
6482
  }, [createVNode("div", {
6458
6483
  class: "kg-resizable-handle",
6459
- onClick: b,
6460
- onMousedown: y
6484
+ onClick: y,
6485
+ onMousedown: b
6461
6486
  }, [createVNode("div", {
6462
6487
  class: "kg-resizable-handle-line"
6463
- }, null)]), (T = r.default) == null ? void 0 : T.call(r)]);
6488
+ }, null)]), (C = r.default) == null ? void 0 : C.call(r)]);
6464
6489
  };
6465
6490
  }
6466
6491
  }), KgButton_Item = "";
@@ -6536,36 +6561,36 @@ function useMagicKeys(e = {}) {
6536
6561
  } = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
6537
6562
  return {};
6538
6563
  }, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
6539
- function g(y, v) {
6540
- y in l && (t ? l[y] = v : l[y].value = v);
6564
+ function g(b, v) {
6565
+ b in l && (t ? l[b] = v : l[b].value = v);
6541
6566
  }
6542
6567
  function m() {
6543
- for (const y of c)
6544
- g(y, !1);
6545
- }
6546
- function p(y, v) {
6547
- var b, T;
6548
- const O = (b = y.key) == null ? void 0 : b.toLowerCase(), P = (T = y.code) == null ? void 0 : T.toLowerCase(), I = [P, O].filter(Boolean);
6549
- P && (v ? s.add(y.code) : s.delete(y.code));
6550
- for (const C of I)
6551
- c.add(C), g(C, v);
6552
- O === "meta" && !v ? (u.forEach((C) => {
6553
- s.delete(C), g(C, !1);
6554
- }), u.clear()) : typeof y.getModifierState == "function" && y.getModifierState("Meta") && v && [...s, ...I].forEach((C) => u.add(C));
6555
- }
6556
- r && (useEventListener(r, "keydown", (y) => (p(y, !0), o(y)), { passive: a }), useEventListener(r, "keyup", (y) => (p(y, !1), o(y)), { passive: a }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
6568
+ for (const b of c)
6569
+ g(b, !1);
6570
+ }
6571
+ function p(b, v) {
6572
+ var y, C;
6573
+ const O = (y = b.key) == null ? void 0 : y.toLowerCase(), P = (C = b.code) == null ? void 0 : C.toLowerCase(), A = [P, O].filter(Boolean);
6574
+ P && (v ? s.add(b.code) : s.delete(b.code));
6575
+ for (const T of A)
6576
+ c.add(T), g(T, v);
6577
+ O === "meta" && !v ? (u.forEach((T) => {
6578
+ s.delete(T), g(T, !1);
6579
+ }), u.clear()) : typeof b.getModifierState == "function" && b.getModifierState("Meta") && v && [...s, ...A].forEach((T) => u.add(T));
6580
+ }
6581
+ r && (useEventListener(r, "keydown", (b) => (p(b, !0), o(b)), { passive: a }), useEventListener(r, "keyup", (b) => (p(b, !1), o(b)), { passive: a }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
6557
6582
  const _ = new Proxy(l, {
6558
- get(y, v, b) {
6583
+ get(b, v, y) {
6559
6584
  if (typeof v != "string")
6560
- return Reflect.get(y, v, b);
6585
+ return Reflect.get(b, v, y);
6561
6586
  if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
6562
6587
  if (/[+_-]/.test(v)) {
6563
6588
  const O = v.split(/[+_-]/g).map((P) => P.trim());
6564
6589
  l[v] = computed(() => O.every((P) => unref(_[P])));
6565
6590
  } else
6566
6591
  l[v] = ref(!1);
6567
- const T = Reflect.get(y, v, b);
6568
- return t ? unref(T) : T;
6592
+ const C = Reflect.get(b, v, y);
6593
+ return t ? unref(C) : C;
6569
6594
  }
6570
6595
  });
6571
6596
  return _;
@@ -6690,31 +6715,31 @@ const getProps$l = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
6690
6715
  var _;
6691
6716
  return ((_ = u == null ? void 0 : u.value) == null ? void 0 : _.mult_flg) === 1;
6692
6717
  }), g = computed(() => {
6693
- var _, y;
6694
- return (y = (_ = u == null ? void 0 : u.value) == null ? void 0 : _.ret_fld) != null ? y : "";
6718
+ var _, b;
6719
+ return (b = (_ = u == null ? void 0 : u.value) == null ? void 0 : _.ret_fld) != null ? b : "";
6695
6720
  });
6696
6721
  l.onRowDoubleClick(() => p());
6697
6722
  function m() {
6698
6723
  r("update:visible", !1);
6699
6724
  }
6700
6725
  function p() {
6701
- var _, y, v, b, T, O, P;
6726
+ var _, b, v, y, C, O, P;
6702
6727
  if (c.value) {
6703
- const I = (y = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? y : [], C = (v = I.map((L) => L[g.value])) != null ? v : [];
6704
- (!s || s(C, I)) && (r("kgOk", C, I), r("update:visible", !1));
6728
+ const A = (b = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? b : [], T = (v = A.map((L) => L[g.value])) != null ? v : [];
6729
+ (!s || s(T, A)) && (r("kgOk", T, A), r("update:visible", !1));
6705
6730
  } else {
6706
- const I = (O = (T = (b = l.selectedRows) == null ? void 0 : b.value) == null ? void 0 : T[0]) != null ? O : null, C = (P = I == null ? void 0 : I[g.value]) != null ? P : "";
6707
- (!s || s(C, I)) && (r("kgOk", C, I), r("update:visible", !1));
6731
+ const A = (O = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? O : null, T = (P = A == null ? void 0 : A[g.value]) != null ? P : "";
6732
+ (!s || s(T, A)) && (r("kgOk", T, A), r("update:visible", !1));
6708
6733
  }
6709
6734
  }
6710
6735
  return () => {
6711
- var _, y;
6736
+ var _, b;
6712
6737
  return createVNode(KgModal, {
6713
6738
  visible: e.visible,
6714
6739
  title: i.t(a).value,
6715
6740
  destroyOnClose: !0,
6716
6741
  okButtonProps: {
6717
- disabled: ((y = (_ = l.selectedRows.value) == null ? void 0 : _.length) != null ? y : 0) === 0
6742
+ disabled: ((b = (_ = l.selectedRows.value) == null ? void 0 : _.length) != null ? b : 0) === 0
6718
6743
  },
6719
6744
  wrapClassName: "kg-form-item-addon-lookup-modal",
6720
6745
  onCancel: m,
@@ -6908,8 +6933,8 @@ const KgFormItemSelect = defineComponent({
6908
6933
  immediate: !0
6909
6934
  });
6910
6935
  async function i() {
6911
- var b, T, O, P, I, C, L, w, k;
6912
- const c = (b = s.value) == null ? void 0 : b.cmd, g = (T = s.value) == null ? void 0 : T.cmd_prm, m = (P = (O = s.value) == null ? void 0 : O.cmd_method) != null ? P : "GET", p = (C = (I = s.value) == null ? void 0 : I.val_clm) != null ? C : "", _ = (w = (L = s.value) == null ? void 0 : L.lbl_clm) != null ? w : "";
6936
+ var y, C, O, P, A, T, L, w, k;
6937
+ const c = (y = s.value) == null ? void 0 : y.cmd, g = (C = s.value) == null ? void 0 : C.cmd_prm, m = (P = (O = s.value) == null ? void 0 : O.cmd_method) != null ? P : "GET", p = (T = (A = s.value) == null ? void 0 : A.val_clm) != null ? T : "", _ = (w = (L = s.value) == null ? void 0 : L.lbl_clm) != null ? w : "";
6913
6938
  if (!c || !p || !_) {
6914
6939
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
6915
6940
  formID: n.formID,
@@ -6920,13 +6945,13 @@ const KgFormItemSelect = defineComponent({
6920
6945
  });
6921
6946
  return;
6922
6947
  }
6923
- const y = KgVarUtil.parseCommandParameter(g);
6948
+ const b = KgVarUtil.parseCommandParameter(g);
6924
6949
  let v = null;
6925
6950
  try {
6926
6951
  v = await ((k = httpClient()) == null ? void 0 : k.request({
6927
6952
  url: c,
6928
6953
  method: m,
6929
- params: y
6954
+ params: b
6930
6955
  }));
6931
6956
  } catch {
6932
6957
  }
@@ -6946,8 +6971,8 @@ const KgFormItemSelect = defineComponent({
6946
6971
  function l(c) {
6947
6972
  var m;
6948
6973
  const g = o.value.find((p) => {
6949
- var _, y;
6950
- return p[(y = (_ = s.value) == null ? void 0 : _.val_clm) != null ? y : ""] === c;
6974
+ var _, b;
6975
+ return p[(b = (_ = s.value) == null ? void 0 : _.val_clm) != null ? b : ""] === c;
6951
6976
  });
6952
6977
  r("kgChange", (m = toRaw(g)) != null ? m : null);
6953
6978
  }
@@ -6972,8 +6997,8 @@ const KgFormItemSelect = defineComponent({
6972
6997
  value: c[(_ = (p = s.value) == null ? void 0 : p.val_clm) != null ? _ : ""]
6973
6998
  }, {
6974
6999
  default: () => {
6975
- var y, v;
6976
- return [c[(v = (y = s.value) == null ? void 0 : y.lbl_clm) != null ? v : ""]];
7000
+ var b, v;
7001
+ return [c[(v = (b = s.value) == null ? void 0 : b.lbl_clm) != null ? v : ""]];
6977
7002
  }
6978
7003
  });
6979
7004
  }),
@@ -7014,7 +7039,7 @@ const KgFormItemSelect = defineComponent({
7014
7039
  }) {
7015
7040
  provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
7016
7041
  const n = useKg(), a = useKgVar(), o = inject(DI_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVarConfig(a.formID, e.kgVarName)), m = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), p = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), _ = computed(() => {
7017
- var R, N, D, $, x;
7042
+ var R, V, D, $, x;
7018
7043
  let E = [];
7019
7044
  switch (e.kgContext) {
7020
7045
  case KG_CONTROL_CONTEXT.SEARCH:
@@ -7026,7 +7051,7 @@ const KgFormItemSelect = defineComponent({
7026
7051
  case KG_CONTROL_CONTEXT.SUBMIT:
7027
7052
  switch (!0) {
7028
7053
  case a.isCreating.value:
7029
- ((N = p.value) == null ? void 0 : N.crt_rqr_flg) === 1 && (E = [{
7054
+ ((V = p.value) == null ? void 0 : V.crt_rqr_flg) === 1 && (E = [{
7030
7055
  required: !0,
7031
7056
  message: n.t("kg.required")
7032
7057
  }]);
@@ -7053,8 +7078,8 @@ const KgFormItemSelect = defineComponent({
7053
7078
  break;
7054
7079
  }
7055
7080
  return E;
7056
- }), y = computed(() => {
7057
- var R, N, D, $, x;
7081
+ }), b = computed(() => {
7082
+ var R, V, D, $, x;
7058
7083
  if (a.isRetrievingVar.value)
7059
7084
  return !0;
7060
7085
  let E = !1;
@@ -7068,7 +7093,7 @@ const KgFormItemSelect = defineComponent({
7068
7093
  case KG_CONTROL_CONTEXT.SUBMIT:
7069
7094
  switch (!0) {
7070
7095
  case a.isCreating.value:
7071
- E = ((N = p.value) == null ? void 0 : N.crt_ena_flg) === 0;
7096
+ E = ((V = p.value) == null ? void 0 : V.crt_ena_flg) === 0;
7072
7097
  break;
7073
7098
  case a.isUpdating.value:
7074
7099
  E = ((D = p.value) == null ? void 0 : D.upt_ena_flg) === 0;
@@ -7084,29 +7109,29 @@ const KgFormItemSelect = defineComponent({
7084
7109
  }
7085
7110
  return E;
7086
7111
  }), v = computed(() => {
7087
- var R, N, D, $;
7112
+ var R, V, D, $;
7088
7113
  let E = " ";
7089
7114
  if (e.kgPlaceholder)
7090
7115
  E = e.kgPlaceholder;
7091
7116
  else
7092
7117
  switch (e.kgContext) {
7093
7118
  case KG_CONTROL_CONTEXT.SEARCH:
7094
- E = n.t((N = (R = m.value) == null ? void 0 : R.placeholder) != null ? N : " ");
7119
+ E = n.t((V = (R = m.value) == null ? void 0 : R.placeholder) != null ? V : " ");
7095
7120
  break;
7096
7121
  case KG_CONTROL_CONTEXT.SUBMIT:
7097
7122
  E = n.t(($ = (D = p.value) == null ? void 0 : D.placeholder) != null ? $ : " ");
7098
7123
  break;
7099
7124
  }
7100
7125
  return E;
7101
- }), b = computed(() => {
7102
- var R, N, D, $, x, A, F, K, W, q;
7126
+ }), y = computed(() => {
7127
+ var R, V, D, $, x, I, F, K, W, q;
7103
7128
  let E = 6;
7104
7129
  if (e.kgSpan !== void 0)
7105
7130
  E = e.kgSpan;
7106
7131
  else
7107
7132
  switch (e.kgContext) {
7108
7133
  case KG_CONTROL_CONTEXT.SEARCH:
7109
- E = (N = (R = m.value) == null ? void 0 : R.width) != null ? N : 6;
7134
+ E = (V = (R = m.value) == null ? void 0 : R.width) != null ? V : 6;
7110
7135
  break;
7111
7136
  case KG_CONTROL_CONTEXT.SUBMIT:
7112
7137
  switch (!0) {
@@ -7114,7 +7139,7 @@ const KgFormItemSelect = defineComponent({
7114
7139
  E = ($ = (D = p.value) == null ? void 0 : D.crt_width) != null ? $ : 6;
7115
7140
  break;
7116
7141
  case a.isUpdating.value:
7117
- E = (A = (x = p.value) == null ? void 0 : x.upt_width) != null ? A : 6;
7142
+ E = (I = (x = p.value) == null ? void 0 : x.upt_width) != null ? I : 6;
7118
7143
  break;
7119
7144
  case a.isCopying.value:
7120
7145
  E = (K = (F = p.value) == null ? void 0 : F.cpy_width) != null ? K : 6;
@@ -7125,11 +7150,11 @@ const KgFormItemSelect = defineComponent({
7125
7150
  }
7126
7151
  }
7127
7152
  return Math.min(24, Math.max(1, E));
7128
- }), T = computed(() => ({
7153
+ }), C = computed(() => ({
7129
7154
  paddingLeft: `${e.kgGutter / 2}px !important`,
7130
7155
  paddingRight: `${e.kgGutter / 2}px !important`
7131
7156
  })), O = computed(() => {
7132
- var R, N, D, $;
7157
+ var R, V, D, $;
7133
7158
  let E = "kg-form-item";
7134
7159
  switch (c.value && (E += " kg-form-item-lookup"), e.kgContext) {
7135
7160
  case KG_CONTROL_CONTEXT.SEARCH:
@@ -7141,7 +7166,7 @@ const KgFormItemSelect = defineComponent({
7141
7166
  break;
7142
7167
  case KG_CONTROL_CONTEXT.SUBMIT:
7143
7168
  switch (!0) {
7144
- case (i.value && ((N = p.value) == null ? void 0 : N.crt_vis_flg) === 0):
7169
+ case (i.value && ((V = p.value) == null ? void 0 : V.crt_vis_flg) === 0):
7145
7170
  case (l.value && ((D = p.value) == null ? void 0 : D.upt_vis_flg) === 0):
7146
7171
  case (u.value && (($ = p.value) == null ? void 0 : $.cpy_vis_flg) === 0):
7147
7172
  E += " kg-form-item--invisible";
@@ -7155,14 +7180,14 @@ const KgFormItemSelect = defineComponent({
7155
7180
  const E = {
7156
7181
  ...e,
7157
7182
  value: (R = o.value) == null ? void 0 : R[e.kgVarName],
7158
- "onUpdate:value": (N) => {
7159
- o.value && (o.value[e.kgVarName] = N);
7183
+ "onUpdate:value": (V) => {
7184
+ o.value && (o.value[e.kgVarName] = V);
7160
7185
  },
7161
7186
  kgPlaceholder: v.value,
7162
- kgDisabled: y.value,
7163
- id: C.value
7187
+ kgDisabled: b.value,
7188
+ id: T.value
7164
7189
  };
7165
- switch (I.value) {
7190
+ switch (A.value) {
7166
7191
  case KG_CONTROL_TYPE.INPUT_NUMBER:
7167
7192
  break;
7168
7193
  case KG_CONTROL_TYPE.SELECT:
@@ -7177,10 +7202,10 @@ const KgFormItemSelect = defineComponent({
7177
7202
  break;
7178
7203
  }
7179
7204
  return E;
7180
- }), I = computed(() => {
7205
+ }), A = computed(() => {
7181
7206
  var E;
7182
7207
  return e.kgType || ((E = g.value) == null ? void 0 : E.ctrl_typ);
7183
- }), C = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
7208
+ }), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
7184
7209
  watch(() => {
7185
7210
  var E;
7186
7211
  return (E = o.value) == null ? void 0 : E[e.kgVarName];
@@ -7189,8 +7214,8 @@ const KgFormItemSelect = defineComponent({
7189
7214
  (E = s.value) == null || E.validate([e.kgVarName]);
7190
7215
  });
7191
7216
  function L(E, R) {
7192
- var N;
7193
- o.value && (o.value[e.kgVarName] = E), r("kgChange", R), (N = s.value) == null || N.validate([e.kgVarName]);
7217
+ var V;
7218
+ o.value && (o.value[e.kgVarName] = E), r("kgChange", R), (V = s.value) == null || V.validate([e.kgVarName]);
7194
7219
  }
7195
7220
  function w() {
7196
7221
  if (t.control)
@@ -7202,7 +7227,7 @@ const KgFormItemSelect = defineComponent({
7202
7227
  varProfileDetail: m,
7203
7228
  varSubmitField: p
7204
7229
  });
7205
- switch (I.value) {
7230
+ switch (A.value) {
7206
7231
  case KG_CONTROL_TYPE.INPUT_NUMBER:
7207
7232
  return createVNode(KgFormItemInputNumber, P.value, null);
7208
7233
  case KG_CONTROL_TYPE.SELECT:
@@ -7226,7 +7251,7 @@ const KgFormItemSelect = defineComponent({
7226
7251
  var E;
7227
7252
  return !c.value || !((E = c.value) != null && E.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7228
7253
  default: () => [createVNode(KgFormItemAddonLookup, {
7229
- kgDisabled: y.value,
7254
+ kgDisabled: b.value,
7230
7255
  onKgOk: L,
7231
7256
  kgLookupID: c.value.lkp_id
7232
7257
  }, null)]
@@ -7235,14 +7260,14 @@ const KgFormItemSelect = defineComponent({
7235
7260
  return () => createVNode(Col, {
7236
7261
  "kg-frm-id": a.formID,
7237
7262
  "kg-var-nam": e.kgVarName,
7238
- span: b.value,
7263
+ span: y.value,
7239
7264
  class: O.value,
7240
- style: T.value
7265
+ style: C.value
7241
7266
  }, {
7242
7267
  default: () => [createVNode(Form.Item, {
7243
7268
  name: e.kgVarName,
7244
7269
  rules: _.value,
7245
- htmlFor: C.value
7270
+ htmlFor: T.value
7246
7271
  }, {
7247
7272
  default: () => createVNode(Fragment, null, [w(), M()]),
7248
7273
  label: () => k()
@@ -7349,16 +7374,18 @@ function transformVarButtons(e) {
7349
7374
  return e ? e.sort((t, r) => {
7350
7375
  var n, a;
7351
7376
  return ((n = t.srtseq) != null ? n : 0) - ((a = r.srtseq) != null ? a : 0);
7352
- }).map((t) => t) : [];
7377
+ }).map((t) => (t.export_excel_suffix || (t.export_excel_suffix = KG_EXCEL_SUFFIX.XLS), [KG_EXCEL_SUFFIX.XLS, KG_EXCEL_SUFFIX.XLSX].includes(t.export_excel_suffix) || (Logger.error(`| \u6570\u636E\u6709\u8BEF | VarButton.export_excel_suffix \u7684\u503C\u5FC5\u987B\u4E3A ${KG_EXCEL_SUFFIX.XLS} \u6216 ${KG_EXCEL_SUFFIX.XLS}.`, {
7378
+ VarButton: t
7379
+ }), t.export_excel_suffix = KG_EXCEL_SUFFIX.XLS), t)) : [];
7353
7380
  }
7354
7381
  function transformVarGridDetails(e) {
7355
7382
  return e ? e.sort((t, r) => {
7356
7383
  var n, a;
7357
7384
  return ((n = t.srtseq) != null ? n : 0) - ((a = r.srtseq) != null ? a : 0);
7358
7385
  }).map((t) => (t.fix_left_flg === 1 && t.fix_right_flg === 1 && (Logger.error("| \u6570\u636E\u6709\u8BEF | VarGridDetail.fix_left_flg \u548C VarGridDetail.fix_right_flg \u4E0D\u80FD\u540C\u65F6\u4E3A 1, VarGridDetail.fix_right_flg \u5C06\u88AB\u8BBE\u4E3A 0.", {
7359
- gridViewDetail: t
7386
+ VarGridDetail: t
7360
7387
  }), t.fix_right_flg = 0), t.width !== null && t.width !== void 0 && t.width !== "auto" && (Number.isNaN(Number(t.width)) || Number(t.width) < 0) && (Logger.error(`| \u6570\u636E\u6709\u8BEF | VarGridDetail.width \u53EA\u80FD\u662F\u5927\u4E8E 0 \u7684\u6570\u503C\u6216\u8005 'auto', \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${KG_TABLE_TD_DEFAULT_WIDTH}.`, {
7361
- gridViewDetail: t
7388
+ VarGridDetail: t
7362
7389
  }), t.width = String(KG_TABLE_TD_DEFAULT_WIDTH)), t)) : [];
7363
7390
  }
7364
7391
  let store$6 = null;
@@ -7797,16 +7824,16 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
7797
7824
  varSubmitConfig: m,
7798
7825
  varSubmitFields: p,
7799
7826
  varProfile: _,
7800
- varProfileConfig: y,
7827
+ varProfileConfig: b,
7801
7828
  varGrid: v,
7802
- varGridConfig: b
7829
+ varGridConfig: y
7803
7830
  } = await GetAll({ params: { frm_id: e } });
7804
- this.varCatalogsMap.set(e, i != null ? i : []), this.varLookupsMap.set(e, l != null ? l : []), this.varPossibilitiesMap.set(e, c != null ? c : []), this.varConfigsMap.set(e, u != null ? u : []), this.varButtonsMap.set(e, transformVarButtons(g)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldsMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, y != null ? y : null), this.varProfileMap.set(e, {
7831
+ this.varCatalogsMap.set(e, i != null ? i : []), this.varLookupsMap.set(e, l != null ? l : []), this.varPossibilitiesMap.set(e, c != null ? c : []), this.varConfigsMap.set(e, u != null ? u : []), this.varButtonsMap.set(e, transformVarButtons(g)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldsMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, b != null ? b : null), this.varProfileMap.set(e, {
7805
7832
  varProfile: _ != null ? _ : null,
7806
- currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
7807
- }), this.varGridConfigMap.set(e, b != null ? b : null), this.varGridMap.set(e, {
7833
+ currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
7834
+ }), this.varGridConfigMap.set(e, y != null ? y : null), this.varGridMap.set(e, {
7808
7835
  varGrid: transformVarGridDTO(v),
7809
- currentVarGridMasterID: (s = (o = (a = v == null ? void 0 : v.varGridMasters) == null ? void 0 : a.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
7836
+ currentVarGridMasterID: (s = (o = (a = v == null ? void 0 : v.varGridMasters) == null ? void 0 : a.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
7810
7837
  });
7811
7838
  } catch (i) {
7812
7839
  throw i;
@@ -7891,10 +7918,10 @@ function useKgVar(e, t) {
7891
7918
  const s = (L) => computed(() => {
7892
7919
  var w, k, M;
7893
7920
  return (M = (k = (w = o.getVarCatalog(a, L)) == null ? void 0 : w.var_text) != null ? k : L) != null ? M : "";
7894
- }), i = computed(() => o.isRetrievingVar(a)), l = computed(() => o.isRetrievingVarProfileMaster(a)), u = computed(() => o.isCreating(a)), c = computed(() => o.isUpdating(a)), g = computed(() => o.isCopying(a)), m = computed(() => o.isDeleting(a)), p = computed(() => o.isOtherRequesting(a)), _ = computed(() => o.getVarButtons(a)), y = computed(() => o.getVarProfileMasters(a)), v = computed(() => o.getCurrentVarProfileMaster(a)), b = computed(() => o.getCurrentVarProfileMasterID(a)), T = computed(() => {
7921
+ }), i = computed(() => o.isRetrievingVar(a)), l = computed(() => o.isRetrievingVarProfileMaster(a)), u = computed(() => o.isCreating(a)), c = computed(() => o.isUpdating(a)), g = computed(() => o.isCopying(a)), m = computed(() => o.isDeleting(a)), p = computed(() => o.isOtherRequesting(a)), _ = computed(() => o.getVarButtons(a)), b = computed(() => o.getVarProfileMasters(a)), v = computed(() => o.getCurrentVarProfileMaster(a)), y = computed(() => o.getCurrentVarProfileMasterID(a)), C = computed(() => {
7895
7922
  var L, w;
7896
7923
  return (w = (L = v.value) == null ? void 0 : L.varProfileDetails) != null ? w : null;
7897
- }), O = computed(() => o.getVarGridConfig(a)), P = computed(() => o.getVarGridMasters(a)), I = computed(() => o.getCurrentVarGridMaster(a)), C = computed(() => o.getSystemVarGridDetails(a));
7924
+ }), O = computed(() => o.getVarGridConfig(a)), P = computed(() => o.getVarGridMasters(a)), A = computed(() => o.getCurrentVarGridMaster(a)), T = computed(() => o.getSystemVarGridDetails(a));
7898
7925
  return {
7899
7926
  formID: a,
7900
7927
  store: o,
@@ -7906,14 +7933,14 @@ function useKgVar(e, t) {
7906
7933
  isDeleting: m,
7907
7934
  isOtherRequesting: p,
7908
7935
  varButtons: _,
7909
- varProfileMasters: y,
7936
+ varProfileMasters: b,
7910
7937
  currentVarProfileMaster: v,
7911
- currentVarProfileMasterID: b,
7912
- currentVarProfileDetails: T,
7938
+ currentVarProfileMasterID: y,
7939
+ currentVarProfileDetails: C,
7913
7940
  varGridConfig: O,
7914
7941
  varGridMasters: P,
7915
- currentVarGridMaster: I,
7916
- systemVarGridDetails: C,
7942
+ currentVarGridMaster: A,
7943
+ systemVarGridDetails: T,
7917
7944
  t: s
7918
7945
  };
7919
7946
  } catch (a) {
@@ -8078,8 +8105,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit-config", KgS
8078
8105
  }) => {
8079
8106
  const c = s.store.getVarSubmitConfig(s.formID);
8080
8107
  return i = watch(u, (g) => {
8081
- var m, p, _, y, v, b, T, O, P, I, C;
8082
- g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = a, g.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (y = c == null ? void 0 : c.dft_fullscreen_flg) != null ? y : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (b = c == null ? void 0 : c.max_width) != null ? b : DEFAULT_MAX_WIDTH, g.min_width = (T = c == null ? void 0 : c.min_width) != null ? T : DEFAULT_MIN_WIDTH, g.dft_width = (O = c == null ? void 0 : c.dft_width) != null ? O : DEFAULT_WIDTH, g.layout = (P = c == null ? void 0 : c.layout) != null ? P : KG_SUBMIT_LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (C = c == null ? void 0 : c.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN);
8108
+ var m, p, _, b, v, y, C, O, P, A, T;
8109
+ g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = a, g.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (b = c == null ? void 0 : c.dft_fullscreen_flg) != null ? b : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (O = c == null ? void 0 : c.dft_width) != null ? O : DEFAULT_WIDTH, g.layout = (P = c == null ? void 0 : c.layout) != null ? P : KG_SUBMIT_LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN);
8083
8110
  }), !1;
8084
8111
  }), l.onClose(async () => (i == null || i(), !1)), l.onBeforeOk(async (u) => u.value && u.value.label_col_unit === KG_WIDTH_UNIT.SPAN && !range$1(1, 25).includes(u.value.label_col) ? (message.error(o.t("kg.KgSubmitHeaderVarSubmitConfig.labelColValidateMessage")), !0) : !1), l.onOk(async () => (s.store.retrieve(s.formID), !1)), () => createVNode(KgSubmit, {
8085
8112
  kgShowConfigButton: !1
@@ -8118,15 +8145,15 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit-config", KgS
8118
8145
  r("kgCancel");
8119
8146
  }
8120
8147
  function _() {
8121
- var b;
8122
- return ((b = i.value) == null ? void 0 : b.fullscreen_flg) === 0 ? null : createVNode(Button, {
8148
+ var y;
8149
+ return ((y = i.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
8123
8150
  onClick: g,
8124
8151
  class: "kg-submit--btn-fullscreen"
8125
8152
  }, {
8126
8153
  default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
8127
8154
  });
8128
8155
  }
8129
- function y() {
8156
+ function b() {
8130
8157
  return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
8131
8158
  disabled: u.value || l.value,
8132
8159
  onClick: m,
@@ -8144,7 +8171,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit-config", KgS
8144
8171
  default: () => [createVNode(CloseOutlined$1, null, null)]
8145
8172
  });
8146
8173
  }
8147
- return () => createVNode(Fragment, null, [y(), _(), v()]);
8174
+ return () => createVNode(Fragment, null, [b(), _(), v()]);
8148
8175
  }
8149
8176
  }), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
8150
8177
  function _useFormModel() {
@@ -8162,14 +8189,14 @@ function _useFormModel() {
8162
8189
  }), u = ref({});
8163
8190
  return watch(l, (c) => {
8164
8191
  u.value = {}, c != null && c.length && c.forEach((g) => {
8165
- var _, y, v;
8192
+ var _, b, v;
8166
8193
  const m = (_ = g.var_nam) != null ? _ : "", p = t.selectedRow.value;
8167
8194
  switch (u.value[m] = void 0, !0) {
8168
8195
  case r.value:
8169
8196
  isNil(g.crt_dft_val) || (u.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, g.crt_dft_val));
8170
8197
  break;
8171
8198
  case n.value:
8172
- u.value.id = p == null ? void 0 : p.id, isNil(g.upt_dft_val) ? u.value[m] = (y = p == null ? void 0 : p[m]) != null ? y : void 0 : u.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, g.upt_dft_val);
8199
+ u.value.id = p == null ? void 0 : p.id, isNil(g.upt_dft_val) ? u.value[m] = (b = p == null ? void 0 : p[m]) != null ? b : void 0 : u.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, g.upt_dft_val);
8173
8200
  break;
8174
8201
  case a.value:
8175
8202
  u.value.id = p == null ? void 0 : p.id, isNil(g.cpy_dft_val) ? u.value[m] = (v = p == null ? void 0 : p[m]) != null ? v : void 0 : u.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, g.cpy_dft_val);
@@ -8229,31 +8256,31 @@ const getProps$g = () => ({
8229
8256
  }) {
8230
8257
  const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS), {
8231
8258
  model: l
8232
- } = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), g = computed(() => n.store.isCopying(n.formID)), m = computed(() => o.store.isLoading(n.formID)), p = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)), y = computed(() => n.store.getVarButtonCopy(n.formID)), v = computed(() => n.store.getVarSubmitConfig(n.formID)), b = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), O = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), P = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), L = computed(() => {
8259
+ } = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), g = computed(() => n.store.isCopying(n.formID)), m = computed(() => o.store.isLoading(n.formID)), p = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)), b = computed(() => n.store.getVarButtonCopy(n.formID)), v = computed(() => n.store.getVarSubmitConfig(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), O = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), P = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), A = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), L = computed(() => {
8233
8260
  var B, z, Y;
8234
8261
  switch (!0) {
8235
8262
  case u.value:
8236
- return (B = b.value) != null ? B : [];
8263
+ return (B = y.value) != null ? B : [];
8237
8264
  case c.value:
8238
8265
  return (z = O.value) != null ? z : [];
8239
8266
  case g.value:
8240
- return (Y = I.value) != null ? Y : [];
8267
+ return (Y = A.value) != null ? Y : [];
8241
8268
  }
8242
8269
  return [];
8243
8270
  }), w = computed(() => {
8244
8271
  var B, z, Y;
8245
8272
  switch (!0) {
8246
8273
  case u.value:
8247
- return (B = T.value) != null ? B : [];
8274
+ return (B = C.value) != null ? B : [];
8248
8275
  case c.value:
8249
8276
  return (z = P.value) != null ? z : [];
8250
8277
  case g.value:
8251
- return (Y = C.value) != null ? Y : [];
8278
+ return (Y = T.value) != null ? Y : [];
8252
8279
  }
8253
8280
  return [];
8254
8281
  }), k = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID)), M = computed(() => k.value || m.value), E = computed(() => m.value), R = ref({
8255
8282
  kgWidth: DEFAULT_WIDTH
8256
- }), N = computed(() => {
8283
+ }), V = computed(() => {
8257
8284
  var B;
8258
8285
  return !!(K.isFullscreen || ((B = v.value) == null ? void 0 : B.resizable_flg) === 0);
8259
8286
  }), D = ref(null), $ = ref(null);
@@ -8262,27 +8289,27 @@ const getProps$g = () => ({
8262
8289
  var B, z, Y;
8263
8290
  switch (!0) {
8264
8291
  case u.value: {
8265
- const X = (B = p.value) == null ? void 0 : B.var_nam, ee = n.t(X).value;
8266
- return X === ee ? r.t("kg.create") : ee;
8292
+ const Q = (B = p.value) == null ? void 0 : B.var_nam, ee = n.t(Q).value;
8293
+ return Q === ee ? r.t("kg.create") : ee;
8267
8294
  }
8268
8295
  case c.value: {
8269
- const X = (z = _.value) == null ? void 0 : z.var_nam, ee = n.t(X).value;
8270
- return X === ee ? r.t("kg.update") : ee;
8296
+ const Q = (z = _.value) == null ? void 0 : z.var_nam, ee = n.t(Q).value;
8297
+ return Q === ee ? r.t("kg.update") : ee;
8271
8298
  }
8272
8299
  case g.value: {
8273
- const X = (Y = y.value) == null ? void 0 : Y.var_nam, ee = n.t(X).value;
8274
- return X === ee ? r.t("kg.copy") : ee;
8300
+ const Q = (Y = b.value) == null ? void 0 : Y.var_nam, ee = n.t(Q).value;
8301
+ return Q === ee ? r.t("kg.copy") : ee;
8275
8302
  }
8276
8303
  }
8277
8304
  return "";
8278
- }), A = computed(() => !!(u.value || c.value || g.value)), F = computed(() => {
8305
+ }), I = computed(() => !!(u.value || c.value || g.value)), F = computed(() => {
8279
8306
  var z;
8280
8307
  let B = "kg-submit";
8281
8308
  return K.isFullscreen && (B += " kg-submit--fullscreen"), ((z = v.value) == null ? void 0 : z.responsive_flg) !== 0 && (B += " kg-submit--responsive"), B;
8282
8309
  }), K = reactive({
8283
8310
  isFullscreen: !1
8284
8311
  }), W = computed(() => {
8285
- var B, z, Y, X;
8312
+ var B, z, Y, Q;
8286
8313
  switch ((B = v.value) == null ? void 0 : B.layout) {
8287
8314
  case "horizontal":
8288
8315
  switch ((z = v.value) == null ? void 0 : z.label_col_unit) {
@@ -8293,7 +8320,7 @@ const getProps$g = () => ({
8293
8320
  default:
8294
8321
  return {
8295
8322
  style: {
8296
- width: `${(X = v.value) == null ? void 0 : X.label_col}px`
8323
+ width: `${(Q = v.value) == null ? void 0 : Q.label_col}px`
8297
8324
  }
8298
8325
  };
8299
8326
  }
@@ -8316,14 +8343,14 @@ const getProps$g = () => ({
8316
8343
  return;
8317
8344
  }
8318
8345
  });
8319
- watch(A, (B) => {
8320
- B ? Q() : V();
8346
+ watch(I, (B) => {
8347
+ B ? X() : N();
8321
8348
  }), watch(v, (B) => {
8322
8349
  B != null && B.dft_width && (R.value.kgWidth = B.dft_width);
8323
8350
  }, {
8324
8351
  immediate: !0
8325
8352
  });
8326
- function Q() {
8353
+ function X() {
8327
8354
  var B;
8328
8355
  o.store.emit(n.formID, "open", {
8329
8356
  isCreating: u.value,
@@ -8333,7 +8360,7 @@ const getProps$g = () => ({
8333
8360
  model: l
8334
8361
  }), ((B = v.value) == null ? void 0 : B.dft_fullscreen_flg) === 1 && (K.isFullscreen = !0);
8335
8362
  }
8336
- function V() {
8363
+ function N() {
8337
8364
  var B;
8338
8365
  R.value.kgWidth = ((B = v.value) == null ? void 0 : B.dft_width) || DEFAULT_WIDTH, K.isFullscreen = !1, o.store.emit(n.formID, "close");
8339
8366
  }
@@ -8357,8 +8384,8 @@ const getProps$g = () => ({
8357
8384
  return;
8358
8385
  try {
8359
8386
  await ((B = D.value) == null ? void 0 : B.validate());
8360
- } catch (X) {
8361
- KgUtil.throwIfNotFormError(X);
8387
+ } catch (Q) {
8388
+ KgUtil.throwIfNotFormError(Q);
8362
8389
  }
8363
8390
  switch (await ((z = D.value) == null ? void 0 : z.validate()), !0) {
8364
8391
  case u.value:
@@ -8376,7 +8403,7 @@ const getProps$g = () => ({
8376
8403
  }
8377
8404
  }
8378
8405
  async function G() {
8379
- var z, Y, X, ee, ae, re, oe;
8406
+ var z, Y, Q, ee, ae, re, oe;
8380
8407
  const B = (z = p.value) == null ? void 0 : z.cmd;
8381
8408
  if (!B) {
8382
8409
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -8387,7 +8414,7 @@ const getProps$g = () => ({
8387
8414
  n.store.setIsCreatingRequesting(n.formID, !0);
8388
8415
  try {
8389
8416
  await httpClient().request({
8390
- method: (X = (Y = p.value) == null ? void 0 : Y.cmd_method) != null ? X : "POST",
8417
+ method: (Q = (Y = p.value) == null ? void 0 : Y.cmd_method) != null ? Q : "POST",
8391
8418
  url: B,
8392
8419
  params: KgVarUtil.parseCommandParameter((ae = (ee = p.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""),
8393
8420
  data: toRaw(l.value)
@@ -8399,7 +8426,7 @@ const getProps$g = () => ({
8399
8426
  }
8400
8427
  }
8401
8428
  async function te() {
8402
- var z, Y, X, ee, ae, re, oe;
8429
+ var z, Y, Q, ee, ae, re, oe;
8403
8430
  const B = (z = _.value) == null ? void 0 : z.cmd;
8404
8431
  if (!B) {
8405
8432
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -8409,7 +8436,7 @@ const getProps$g = () => ({
8409
8436
  }
8410
8437
  try {
8411
8438
  n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
8412
- method: (X = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? X : "POST",
8439
+ method: (Q = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? Q : "POST",
8413
8440
  url: B,
8414
8441
  params: KgVarUtil.parseCommandParameter((ae = (ee = _.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""),
8415
8442
  data: toRaw(l.value)
@@ -8421,19 +8448,19 @@ const getProps$g = () => ({
8421
8448
  }
8422
8449
  }
8423
8450
  async function Z() {
8424
- var z, Y, X, ee, ae, re, oe;
8425
- const B = (z = y.value) == null ? void 0 : z.cmd;
8451
+ var z, Y, Q, ee, ae, re, oe;
8452
+ const B = (z = b.value) == null ? void 0 : z.cmd;
8426
8453
  if (!B) {
8427
8454
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
8428
- button: y.value
8455
+ button: b.value
8429
8456
  });
8430
8457
  return;
8431
8458
  }
8432
8459
  try {
8433
8460
  n.store.setIsCopyingRequesting(n.formID, !0), await httpClient().request({
8434
- method: (X = (Y = y.value) == null ? void 0 : Y.cmd_method) != null ? X : "POST",
8461
+ method: (Q = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? Q : "POST",
8435
8462
  url: B,
8436
- params: KgVarUtil.parseCommandParameter((ae = (ee = y.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""),
8463
+ params: KgVarUtil.parseCommandParameter((ae = (ee = b.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""),
8437
8464
  data: toRaw(l.value)
8438
8465
  }), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (oe = (re = s.search).value) == null || oe.call(re, !0);
8439
8466
  } catch (ie) {
@@ -8443,8 +8470,8 @@ const getProps$g = () => ({
8443
8470
  }
8444
8471
  }
8445
8472
  function J(B) {
8446
- var Y, X;
8447
- const z = (X = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : X[B.var_nam];
8473
+ var Y, Q;
8474
+ const z = (Q = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : Q[B.var_nam];
8448
8475
  return isFunction$2(z) ? createVNode(KgForm.Item, {
8449
8476
  kgVarName: B.var_nam,
8450
8477
  kgContext: KG_CONTROL_CONTEXT.SUBMIT,
@@ -8472,13 +8499,13 @@ const getProps$g = () => ({
8472
8499
  }, null);
8473
8500
  }
8474
8501
  function ne() {
8475
- var Y, X, ee, ae;
8502
+ var Y, Q, ee, ae;
8476
8503
  let B, z;
8477
8504
  return createVNode(KgResizable, {
8478
8505
  kgType: "left",
8479
- kgMinWidth: (X = (Y = v.value) == null ? void 0 : Y.min_width) != null ? X : DEFAULT_MIN_WIDTH,
8506
+ kgMinWidth: (Q = (Y = v.value) == null ? void 0 : Y.min_width) != null ? Q : DEFAULT_MIN_WIDTH,
8480
8507
  kgMaxWidth: (ae = (ee = v.value) == null ? void 0 : ee.max_width) != null ? ae : DEFAULT_MAX_WIDTH,
8481
- kgDisabled: N.value,
8508
+ kgDisabled: V.value,
8482
8509
  kgWidth: R.value.kgWidth,
8483
8510
  "onUpdate:kgWidth": (re) => R.value.kgWidth = re
8484
8511
  }, {
@@ -8542,7 +8569,7 @@ const getProps$g = () => ({
8542
8569
  }, null);
8543
8570
  }
8544
8571
  return () => createVNode(Drawer, {
8545
- visible: A.value,
8572
+ visible: I.value,
8546
8573
  placement: "right",
8547
8574
  closable: !1,
8548
8575
  maskClosable: !1,
@@ -8623,7 +8650,7 @@ const getProps$g = () => ({
8623
8650
  return ((u = a.value) == null ? void 0 : u.align) === "center" ? l += " kg-table-td--center" : ((c = a.value) == null ? void 0 : c.align) === "right" && (l += " kg-table-td--right"), l;
8624
8651
  });
8625
8652
  function s() {
8626
- var l, u, c, g, m, p, _, y;
8653
+ var l, u, c, g, m, p, _, b;
8627
8654
  switch ((l = a.value) == null ? void 0 : l.display_type) {
8628
8655
  case KG_TD_DISPLAY_TYPE.YN: {
8629
8656
  const v = KgUtil.tryParseJSON((u = a.value) == null ? void 0 : u.display_type_properties);
@@ -8632,7 +8659,7 @@ const getProps$g = () => ({
8632
8659
  }, null);
8633
8660
  }
8634
8661
  case KG_TD_DISPLAY_TYPE.ENUM: {
8635
- const v = KgUtil.tryParseJSON((g = a.value) == null ? void 0 : g.display_type_properties).find((b) => b.value === e.kgValue);
8662
+ const v = KgUtil.tryParseJSON((g = a.value) == null ? void 0 : g.display_type_properties).find((y) => y.value === e.kgValue);
8636
8663
  return v ? createVNode(Tag, {
8637
8664
  color: (m = v.color) != null ? m : "default"
8638
8665
  }, {
@@ -8644,7 +8671,7 @@ const getProps$g = () => ({
8644
8671
  return createVNode(KgProgressA, {
8645
8672
  kgTextWidth: v.textWidth,
8646
8673
  kgLeft: (_ = e.kgRow) == null ? void 0 : _[v.leftColumn],
8647
- kgRight: (y = e.kgRow) == null ? void 0 : y[v.rightColumn]
8674
+ kgRight: (b = e.kgRow) == null ? void 0 : b[v.rightColumn]
8648
8675
  }, null);
8649
8676
  }
8650
8677
  case KG_TD_DISPLAY_TYPE.FILE_SIZE:
@@ -8758,8 +8785,8 @@ const getProps$c = () => ({
8758
8785
  }) => {
8759
8786
  const l = a.store.getVarGridConfig(a.formID);
8760
8787
  return o = watch(i, (u) => {
8761
- var c, g, m, p, _, y, v, b, T, O, P;
8762
- u && (u.id = (c = l == null ? void 0 : l.id) != null ? c : null, u.frm_id = n, u.aut_load_flg = (g = l == null ? void 0 : l.aut_load_flg) != null ? g : 0, u.mult_flg = (m = l == null ? void 0 : l.mult_flg) != null ? m : 0, u.show_check_column_flg = (p = l == null ? void 0 : l.show_check_column_flg) != null ? p : 0, u.show_bottom_left_flg = (_ = l == null ? void 0 : l.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (y = l == null ? void 0 : l.show_bottom_right_flg) != null ? y : 1, u.convert_sort_field_to_under_score_flg = (v = l == null ? void 0 : l.convert_sort_field_to_under_score_flg) != null ? v : 0, u.pg_size_opts = (b = l == null ? void 0 : l.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (T = l == null ? void 0 : l.pg_size_opt) != null ? T : 10, u.cmd_prm = (O = l == null ? void 0 : l.cmd_prm) != null ? O : void 0, u.button_display_type = (P = l == null ? void 0 : l.button_display_type) != null ? P : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
8788
+ var c, g, m, p, _, b, v, y, C, O, P;
8789
+ u && (u.id = (c = l == null ? void 0 : l.id) != null ? c : null, u.frm_id = n, u.aut_load_flg = (g = l == null ? void 0 : l.aut_load_flg) != null ? g : 0, u.mult_flg = (m = l == null ? void 0 : l.mult_flg) != null ? m : 0, u.show_check_column_flg = (p = l == null ? void 0 : l.show_check_column_flg) != null ? p : 0, u.show_bottom_left_flg = (_ = l == null ? void 0 : l.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (b = l == null ? void 0 : l.show_bottom_right_flg) != null ? b : 1, u.convert_sort_field_to_under_score_flg = (v = l == null ? void 0 : l.convert_sort_field_to_under_score_flg) != null ? v : 0, u.pg_size_opts = (y = l == null ? void 0 : l.pg_size_opts) != null ? y : "[10, 20, 50, 100]", u.pg_size_opt = (C = l == null ? void 0 : l.pg_size_opt) != null ? C : 10, u.cmd_prm = (O = l == null ? void 0 : l.cmd_prm) != null ? O : void 0, u.button_display_type = (P = l == null ? void 0 : l.button_display_type) != null ? P : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
8763
8790
  }, {
8764
8791
  immediate: !0
8765
8792
  }), !1;
@@ -8799,15 +8826,15 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
8799
8826
  const s = ref(""), i = reactive({
8800
8827
  visible: !1
8801
8828
  }), l = ref(!1);
8802
- function u(b) {
8803
- a.store.setVarGridDetailVisible(a.formID, b.var_nam, b.vis_flg === 1 ? 0 : 1);
8829
+ function u(y) {
8830
+ a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
8804
8831
  }
8805
- function c(b) {
8806
- b.includes("1") || (s.value = "");
8832
+ function c(y) {
8833
+ y.includes("1") || (s.value = "");
8807
8834
  }
8808
8835
  function g() {
8809
- var b;
8810
- ((b = a.currentVarGridMaster.value) == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 && KgUtil.confirm({
8836
+ var y;
8837
+ ((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0 && KgUtil.confirm({
8811
8838
  content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
8812
8839
  okButtonProps: {
8813
8840
  danger: !1
@@ -8827,30 +8854,30 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
8827
8854
  popupClassName: "kg-table-setting-submenu-popup-columns"
8828
8855
  }, {
8829
8856
  default: () => {
8830
- var b;
8857
+ var y;
8831
8858
  return createVNode("div", {
8832
8859
  class: "columns"
8833
8860
  }, [createVNode(Input, {
8834
8861
  value: s.value,
8835
- "onUpdate:value": (T) => s.value = T,
8862
+ "onUpdate:value": (C) => s.value = C,
8836
8863
  allowClear: !0
8837
8864
  }, null), createVNode("ul", {
8838
8865
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
8839
- }, [(b = a.systemVarGridDetails.value) == null ? void 0 : b.map((T) => {
8866
+ }, [(y = a.systemVarGridDetails.value) == null ? void 0 : y.map((C) => {
8840
8867
  var O;
8841
8868
  return createVNode("li", {
8842
8869
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
8843
8870
  onClick: (P) => {
8844
- P.preventDefault(), P.stopPropagation(), u(T);
8871
+ P.preventDefault(), P.stopPropagation(), u(C);
8845
8872
  },
8846
8873
  style: {
8847
- display: (O = a.t(T.var_nam).value) != null && O.includes(s.value) ? "flex" : "none"
8874
+ display: (O = a.t(C.var_nam).value) != null && O.includes(s.value) ? "flex" : "none"
8848
8875
  }
8849
8876
  }, [createVNode(Checkbox, {
8850
- checked: T.vis_flg === 1,
8877
+ checked: C.vis_flg === 1,
8851
8878
  disabled: !0
8852
8879
  }, {
8853
- default: () => [createVNode("pre", null, [a.t(T.var_nam).value])]
8880
+ default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
8854
8881
  }), createVNode(HolderOutlined$1, {
8855
8882
  onClick: (P) => {
8856
8883
  P.preventDefault(), P.stopPropagation();
@@ -8869,12 +8896,12 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
8869
8896
  }, {
8870
8897
  default: () => {
8871
8898
  var O;
8872
- let b, T;
8899
+ let y, C;
8873
8900
  return createVNode(Fragment, null, [(O = a.varGridMasters.value) == null ? void 0 : O.map((P) => {
8874
- var I;
8901
+ var A;
8875
8902
  return createVNode(Menu.Item, {
8876
8903
  key: P.id,
8877
- class: P.id === ((I = a.currentVarGridMaster.value) == null ? void 0 : I.id) ? "selected" : "",
8904
+ class: P.id === ((A = a.currentVarGridMaster.value) == null ? void 0 : A.id) ? "selected" : "",
8878
8905
  "kg-var-nam": P.grd_var_nam
8879
8906
  }, {
8880
8907
  default: () => [a.t(P.grd_var_nam).value]
@@ -8882,38 +8909,38 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
8882
8909
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
8883
8910
  key: "save-grid-view",
8884
8911
  onClick: g
8885
- }, _isSlot$5(b = n.t("kg.KgTable.saveVarGridMaster")) ? b : {
8886
- default: () => [b]
8912
+ }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
8913
+ default: () => [y]
8887
8914
  }), createVNode(Menu.Item, {
8888
8915
  key: "save-grid-view-as",
8889
8916
  onClick: m
8890
- }, _isSlot$5(T = n.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
8891
- default: () => [T]
8917
+ }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
8918
+ default: () => [C]
8892
8919
  })]);
8893
8920
  },
8894
8921
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
8895
8922
  });
8896
8923
  }
8897
- function y() {
8898
- let b;
8924
+ function b() {
8925
+ let y;
8899
8926
  return createVNode(Menu.Item, {
8900
8927
  key: "config-var-grid-master",
8901
8928
  onClick: () => {
8902
8929
  i.visible = !0;
8903
8930
  }
8904
- }, _isSlot$5(b = n.t("kg.KgTable.configVarGridMasters")) ? b : {
8905
- default: () => [b]
8931
+ }, _isSlot$5(y = n.t("kg.KgTable.configVarGridMasters")) ? y : {
8932
+ default: () => [y]
8906
8933
  });
8907
8934
  }
8908
8935
  function v() {
8909
- let b;
8936
+ let y;
8910
8937
  return createVNode(Menu.Item, {
8911
8938
  key: "config-var-grid-config",
8912
8939
  onClick: async () => {
8913
8940
  l.value = !0, await nextTick(), a.store.setIsUpdating(FORM_ID__VAR_GRID_CONFIG, !0, !0);
8914
8941
  }
8915
- }, _isSlot$5(b = n.t("kg.KgTable.configVarGridConfig")) ? b : {
8916
- default: () => [b]
8942
+ }, _isSlot$5(y = n.t("kg.KgTable.configVarGridConfig")) ? y : {
8943
+ default: () => [y]
8917
8944
  });
8918
8945
  }
8919
8946
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -8927,11 +8954,11 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
8927
8954
  onOpenChange: c,
8928
8955
  selectable: !1
8929
8956
  }, {
8930
- default: () => [p(), _(), y(), v()]
8957
+ default: () => [p(), _(), b(), v()]
8931
8958
  })
8932
8959
  }), l.value && createVNode(KgTableSettingVarGridConfig, null, null), createVNode(KgTableSettingVarGridMasterModal, {
8933
8960
  visible: i.visible,
8934
- "onUpdate:visible": (b) => i.visible = b
8961
+ "onUpdate:visible": (y) => i.visible = y
8935
8962
  }, null), createVNode(KgTableSettingSaveGridMaster, null, null)]);
8936
8963
  }
8937
8964
  });
@@ -9094,7 +9121,7 @@ function _useColumns() {
9094
9121
  function _() {
9095
9122
  return e.t(m.var_nam).value;
9096
9123
  }
9097
- function y() {
9124
+ function b() {
9098
9125
  return m.ord === -1 ? null : m.ord === 0 ? "ascend" : m.ord === 1 ? "descend" : null;
9099
9126
  }
9100
9127
  function v() {
@@ -9103,10 +9130,10 @@ function _useColumns() {
9103
9130
  if (m.fix_right_flg === 1)
9104
9131
  return "right";
9105
9132
  }
9106
- function b() {
9133
+ function y() {
9107
9134
  return m.ord_flg === 1;
9108
9135
  }
9109
- function T() {
9136
+ function C() {
9110
9137
  return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
9111
9138
  }
9112
9139
  const O = p();
@@ -9118,9 +9145,9 @@ function _useColumns() {
9118
9145
  minWidth: KG_TABLE_TD_MIN_WIDTH,
9119
9146
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
9120
9147
  fixed: v(),
9121
- sorter: b(),
9122
- align: T(),
9123
- defaultSortOrder: y(),
9148
+ sorter: y(),
9149
+ align: C(),
9150
+ defaultSortOrder: b(),
9124
9151
  customHeaderCell: () => ({
9125
9152
  "kg-frm-id": m.frm_id,
9126
9153
  "kg-var-nam": m.var_nam
@@ -9182,54 +9209,54 @@ const KgTable$1 = "", getProps$9 = () => ({
9182
9209
  isLoading: g
9183
9210
  } = _useLoading(), m = ref(null);
9184
9211
  _useResizeObserver(m);
9185
- const p = computed(() => s.store.getVarLookup(n, a)), _ = computed(() => s.store.getVarButtonSearch(e.kgSearchFormID || s.formID)), y = computed(() => {
9186
- var V;
9187
- return ((V = s.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
9212
+ const p = computed(() => s.store.getVarLookup(n, a)), _ = computed(() => s.store.getVarButtonSearch(e.kgSearchFormID || s.formID)), b = computed(() => {
9213
+ var N;
9214
+ return ((N = s.varGridConfig.value) == null ? void 0 : N.mult_flg) === 1;
9188
9215
  }), v = computed(() => {
9189
- var V;
9190
- return ((V = s.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
9191
- }), b = computed(() => {
9192
- var V;
9193
- return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
9194
- }), T = computed(() => {
9195
- var V;
9196
- return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
9216
+ var N;
9217
+ return ((N = s.varGridConfig.value) == null ? void 0 : N.aut_load_flg) === 1;
9218
+ }), y = computed(() => {
9219
+ var N;
9220
+ return ((N = s.varGridConfig.value) == null ? void 0 : N.show_bottom_left_flg) !== 0;
9221
+ }), C = computed(() => {
9222
+ var N;
9223
+ return ((N = s.varGridConfig.value) == null ? void 0 : N.show_bottom_right_flg) !== 0;
9197
9224
  }), O = computed(() => {
9198
- var V, U, H, G;
9199
- return p.value ? (U = (V = p.value) == null ? void 0 : V.cmd) != null ? U : "" : _.value ? (G = (H = _.value) == null ? void 0 : H.cmd) != null ? G : "" : null;
9225
+ var N, U, H, G;
9226
+ return p.value ? (U = (N = p.value) == null ? void 0 : N.cmd) != null ? U : "" : _.value ? (G = (H = _.value) == null ? void 0 : H.cmd) != null ? G : "" : null;
9200
9227
  }), P = computed(() => {
9201
9228
  var U, H, G, te, Z, J, ne, se;
9202
- let V = {
9229
+ let N = {
9203
9230
  pageNo: k.pageIndex,
9204
9231
  pageSize: k.pageSize,
9205
9232
  ...M,
9206
9233
  ...(U = l.model.value) != null ? U : {}
9207
9234
  };
9208
- return _.value && (V = {
9209
- ...V,
9235
+ return _.value && (N = {
9236
+ ...N,
9210
9237
  ...KgVarUtil.parseCommandParameter((G = (H = _.value) == null ? void 0 : H.cmd_prm) != null ? G : "")
9211
- }), p.value && (V = {
9212
- ...V,
9238
+ }), p.value && (N = {
9239
+ ...N,
9213
9240
  ...KgVarUtil.parseCommandParameter((Z = (te = p.value) == null ? void 0 : te.cmd_prm) != null ? Z : "")
9214
- }), (J = s.varGridConfig.value) != null && J.cmd_prm && (V = {
9215
- ...V,
9241
+ }), (J = s.varGridConfig.value) != null && J.cmd_prm && (N = {
9242
+ ...N,
9216
9243
  ...KgVarUtil.parseCommandParameter((ne = s.varGridConfig.value.cmd_prm) != null ? ne : "")
9217
- }), ((se = s.varGridConfig.value) == null ? void 0 : se.convert_sort_field_to_under_score_flg) === 1 && V.column && (V.column = snakeCase$1(V.column)), V;
9218
- }), I = computed(() => {
9219
- var V;
9220
- if (((V = s.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
9244
+ }), ((se = s.varGridConfig.value) == null ? void 0 : se.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
9245
+ }), A = computed(() => {
9246
+ var N;
9247
+ if (((N = s.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1)
9221
9248
  return {
9222
9249
  fixed: "left",
9223
9250
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
9224
- hideSelectAll: !y.value,
9251
+ hideSelectAll: !b.value,
9225
9252
  selectedRowKeys: w,
9226
9253
  preserveSelectedRowKeys: !1,
9227
9254
  onSelect: (U) => $(U),
9228
- onChange: (U) => y.value && D(U)
9255
+ onChange: (U) => b.value && D(U)
9229
9256
  };
9230
- }), C = computed(() => {
9231
- let V = "kg-table";
9232
- return !b.value && !T.value && (V += " kg-table--no-bottom"), V;
9257
+ }), T = computed(() => {
9258
+ let N = "kg-table";
9259
+ return !y.value && !C.value && (N += " kg-table--no-bottom"), N;
9233
9260
  }), L = ref([]), w = ref([]), k = reactive({
9234
9261
  pageIndex: 1,
9235
9262
  pageSize: 10,
@@ -9239,28 +9266,28 @@ const KgTable$1 = "", getProps$9 = () => ({
9239
9266
  order: void 0
9240
9267
  });
9241
9268
  let E = null;
9242
- l.onSearch((V) => {
9243
- N(V);
9269
+ l.onSearch((N) => {
9270
+ V(N);
9244
9271
  }), l.onReset(() => {
9245
- N(!0);
9246
- }), watch([O, v, l.isReady], ([V, U, H]) => {
9247
- V && U && !i.store.getIsRetrieved(s.formID) && H && N(!0);
9272
+ V(!0);
9273
+ }), watch([O, v, l.isReady], ([N, U, H]) => {
9274
+ N && U && !i.store.getIsRetrieved(s.formID) && H && V(!0);
9248
9275
  }, {
9249
9276
  immediate: !0
9250
9277
  }), onUnmounted(() => {
9251
9278
  i.store.dispose(s.formID);
9252
9279
  });
9253
- const R = useDebounceFn((V) => {
9280
+ const R = useDebounceFn((N) => {
9254
9281
  var U;
9255
- if (!!I.value) {
9282
+ if (!!A.value) {
9256
9283
  if (E) {
9257
9284
  E = null;
9258
9285
  return;
9259
9286
  }
9260
- if (!V)
9287
+ if (!N)
9261
9288
  w.value = [];
9262
9289
  else {
9263
- const H = V.id;
9290
+ const H = N.id;
9264
9291
  (U = w.value) != null && U.includes(H) ? w.value = [] : w.value = [H];
9265
9292
  }
9266
9293
  i.store.setSelectedRows(s.formID, w.value.map((H) => {
@@ -9269,7 +9296,7 @@ const KgTable$1 = "", getProps$9 = () => ({
9269
9296
  }).filter((H) => !!H));
9270
9297
  }
9271
9298
  });
9272
- async function N(V = !1) {
9299
+ async function V(N = !1) {
9273
9300
  var U, H;
9274
9301
  if (!O.value) {
9275
9302
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -9277,7 +9304,7 @@ const KgTable$1 = "", getProps$9 = () => ({
9277
9304
  });
9278
9305
  return;
9279
9306
  }
9280
- V && (k.pageIndex = 1), i.store.setIsRetrieving(s.formID, !0);
9307
+ N && (k.pageIndex = 1), i.store.setIsRetrieving(s.formID, !0);
9281
9308
  try {
9282
9309
  const G = await httpClient().request({
9283
9310
  method: "GET",
@@ -9291,24 +9318,24 @@ const KgTable$1 = "", getProps$9 = () => ({
9291
9318
  i.store.setIsRetrieving(s.formID, !1);
9292
9319
  }
9293
9320
  }
9294
- function D(V) {
9295
- w.value = V, i.store.setSelectedRows(s.formID, w.value.map((U) => {
9321
+ function D(N) {
9322
+ w.value = N, i.store.setSelectedRows(s.formID, w.value.map((U) => {
9296
9323
  var H;
9297
9324
  return (H = L.value) == null ? void 0 : H.find((G) => G.id === U);
9298
9325
  }).filter((U) => !!U));
9299
9326
  }
9300
- function $(V) {
9327
+ function $(N) {
9301
9328
  var U, H;
9302
- switch (y.value) {
9329
+ switch (b.value) {
9303
9330
  case !0:
9304
9331
  {
9305
- const G = V.id;
9332
+ const G = N.id;
9306
9333
  w.value.includes(G) ? w.value = without$1(w.value, G) : w.value = [...(U = w.value) != null ? U : [], G];
9307
9334
  }
9308
9335
  break;
9309
9336
  case !1:
9310
9337
  {
9311
- const G = V.id;
9338
+ const G = N.id;
9312
9339
  (H = w.value) != null && H.includes(G) ? w.value = [] : w.value = [G];
9313
9340
  }
9314
9341
  break;
@@ -9318,53 +9345,53 @@ const KgTable$1 = "", getProps$9 = () => ({
9318
9345
  return (te = L.value) == null ? void 0 : te.find((Z) => Z.id === G);
9319
9346
  }).filter((G) => !!G));
9320
9347
  }
9321
- function x(V) {
9322
- !I.value || (E = V, w.value = [V.id], i.store.setSelectedRows(s.formID, w.value.map((U) => {
9348
+ function x(N) {
9349
+ !A.value || (E = N, w.value = [N.id], i.store.setSelectedRows(s.formID, w.value.map((U) => {
9323
9350
  var H;
9324
9351
  return (H = L.value) == null ? void 0 : H.find((G) => G.id === U);
9325
- }).filter((U) => !!U)), i.store.emit(s.formID, "rowDoubleClick", V));
9352
+ }).filter((U) => !!U)), i.store.emit(s.formID, "rowDoubleClick", N));
9326
9353
  }
9327
- function A(V, U) {
9328
- U.width = V, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, V);
9354
+ function I(N, U) {
9355
+ U.width = N, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, N);
9329
9356
  }
9330
- async function F(V, U, H, G) {
9357
+ async function F(N, U, H, G) {
9331
9358
  var te;
9332
9359
  switch (G.action) {
9333
9360
  case "sort":
9334
9361
  {
9335
9362
  await nextTick();
9336
9363
  let Z = H;
9337
- Z.order ? (M.column = (te = Z.field) != null ? te : void 0, M.order = Z.order === "ascend" ? "asc" : Z.order === "descend" ? "desc" : void 0) : (M.column = void 0, M.order = void 0), N(!0);
9364
+ Z.order ? (M.column = (te = Z.field) != null ? te : void 0, M.order = Z.order === "ascend" ? "asc" : Z.order === "descend" ? "desc" : void 0) : (M.column = void 0, M.order = void 0), V(!0);
9338
9365
  }
9339
9366
  break;
9340
9367
  }
9341
9368
  }
9342
- function K(V, U) {
9343
- U !== k.pageSize ? (k.pageIndex = 1, k.pageSize = U) : k.pageIndex = V, N();
9369
+ function K(N, U) {
9370
+ U !== k.pageSize ? (k.pageIndex = 1, k.pageSize = U) : k.pageIndex = N, V();
9344
9371
  }
9345
9372
  function W({
9346
- title: V,
9373
+ title: N,
9347
9374
  column: U
9348
9375
  }) {
9349
9376
  switch (U.dataIndex) {
9350
9377
  case "index":
9351
9378
  return createVNode(KgTableSetting, null, null);
9352
9379
  default:
9353
- return createVNode("pre", null, [V]);
9380
+ return createVNode("pre", null, [N]);
9354
9381
  }
9355
9382
  }
9356
9383
  function q({
9357
- column: V,
9384
+ column: N,
9358
9385
  index: U,
9359
9386
  record: H,
9360
9387
  value: G,
9361
9388
  text: te
9362
9389
  }) {
9363
9390
  let Z = "";
9364
- V.customRender ? Z = V.customRender({
9391
+ N.customRender ? Z = N.customRender({
9365
9392
  index: U,
9366
9393
  record: H,
9367
- column: V,
9394
+ column: N,
9368
9395
  text: te,
9369
9396
  value: G,
9370
9397
  renderIndex: U
@@ -9372,22 +9399,22 @@ const KgTable$1 = "", getProps$9 = () => ({
9372
9399
  const J = createVNode(KgTableCell, {
9373
9400
  kgRow: H,
9374
9401
  kgValue: Z,
9375
- kgVarName: V.dataIndex
9402
+ kgVarName: N.dataIndex
9376
9403
  }, null);
9377
9404
  return t.bodyCell ? t.bodyCell({
9378
9405
  value: G,
9379
9406
  record: H,
9380
9407
  index: U,
9381
- column: V,
9408
+ column: N,
9382
9409
  defaultRender: J
9383
9410
  }) : J;
9384
9411
  }
9385
- function Q() {
9412
+ function X() {
9386
9413
  return !v.value && !i.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
9387
9414
  }
9388
9415
  return () => createVNode("div", {
9389
9416
  "kg-frm-id": s.formID,
9390
- class: C.value,
9417
+ class: T.value,
9391
9418
  ref: m
9392
9419
  }, [createVNode(Table, {
9393
9420
  class: "kg-flex-table",
@@ -9402,22 +9429,22 @@ const KgTable$1 = "", getProps$9 = () => ({
9402
9429
  dataSource: L.value,
9403
9430
  loading: g.value,
9404
9431
  rowKey: "id",
9405
- rowSelection: I.value,
9406
- customRow: (V) => ({
9407
- onClick: () => R(V),
9408
- onDblclick: () => x(V)
9432
+ rowSelection: A.value,
9433
+ customRow: (N) => ({
9434
+ onClick: () => R(N),
9435
+ onDblclick: () => x(N)
9409
9436
  }),
9410
- onResizeColumn: A,
9437
+ onResizeColumn: I,
9411
9438
  onChange: F
9412
9439
  }, {
9413
9440
  headerCell: W,
9414
9441
  bodyCell: q,
9415
- emptyText: Q
9416
- }), (b.value || T.value) && createVNode("div", {
9442
+ emptyText: X
9443
+ }), (y.value || C.value) && createVNode("div", {
9417
9444
  class: "kg-table-bottom"
9418
9445
  }, [createVNode("div", {
9419
9446
  class: "left"
9420
- }, [b.value && createVNode(KgTableInfo, {
9447
+ }, [y.value && createVNode(KgTableInfo, {
9421
9448
  kgShowClearCheck: w.value.length > 0,
9422
9449
  kgShowClearTable: k.total > 0,
9423
9450
  kgShowLocate: w.value.length === 1,
@@ -9425,7 +9452,7 @@ const KgTable$1 = "", getProps$9 = () => ({
9425
9452
  kgDisabled: g.value
9426
9453
  }, null)]), createVNode("div", {
9427
9454
  class: "right"
9428
- }, [T.value && createVNode(Pagination, {
9455
+ }, [C.value && createVNode(Pagination, {
9429
9456
  size: "default",
9430
9457
  current: k.pageIndex,
9431
9458
  pageSize: k.pageSize,
@@ -9437,12 +9464,12 @@ const KgTable$1 = "", getProps$9 = () => ({
9437
9464
  locale: {
9438
9465
  page: ""
9439
9466
  },
9440
- showTotal: (V, U) => o.t("kg.KgTable.totalText", {
9467
+ showTotal: (N, U) => o.t("kg.KgTable.totalText", {
9441
9468
  from: U[0],
9442
9469
  to: U[1],
9443
- total: V
9470
+ total: N
9444
9471
  }),
9445
- onChange: (V, U) => K(V, U)
9472
+ onChange: (N, U) => K(N, U)
9446
9473
  }, null)])])]);
9447
9474
  }
9448
9475
  });
@@ -9580,9 +9607,9 @@ const getProps$8 = () => ({
9580
9607
  }), u = computed(() => {
9581
9608
  var p, _;
9582
9609
  return {
9583
- ids: (_ = (p = n.selectedRows.value) == null ? void 0 : p.map((y) => {
9610
+ ids: (_ = (p = n.selectedRows.value) == null ? void 0 : p.map((b) => {
9584
9611
  var v;
9585
- return (v = y.id) != null ? v : "";
9612
+ return (v = b.id) != null ? v : "";
9586
9613
  })) != null ? _ : []
9587
9614
  };
9588
9615
  });
@@ -9597,7 +9624,7 @@ const getProps$8 = () => ({
9597
9624
  }
9598
9625
  const p = KgUtil.confirm({
9599
9626
  onOk: async () => {
9600
- var _, y;
9627
+ var _, b;
9601
9628
  p.showLoading();
9602
9629
  try {
9603
9630
  await httpClient().request({
@@ -9606,7 +9633,7 @@ const getProps$8 = () => ({
9606
9633
  params: u.value
9607
9634
  }, {
9608
9635
  joinParamsToUrl: !0
9609
- }), message.success(t.t("kg.deleteSuccess")), (y = (_ = a.search).value) == null || y.call(_, !0), o.store.emit(r.formID, "deleteOk");
9636
+ }), message.success(t.t("kg.deleteSuccess")), (b = (_ = a.search).value) == null || b.call(_, !0), o.store.emit(r.formID, "deleteOk");
9610
9637
  } finally {
9611
9638
  p.hideLoading();
9612
9639
  }
@@ -9726,27 +9753,71 @@ const getProps$8 = () => ({
9726
9753
  name: "KgButtonExport",
9727
9754
  props: getProps$8(),
9728
9755
  setup(e) {
9729
- const t = useKg();
9730
- async function r() {
9731
- e.onKgClick && await e.onKgClick();
9756
+ const t = useKg(), r = useKgVar(), n = useKgSearch(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
9757
+ var m, p;
9758
+ return a.value ? (p = (m = a.value) == null ? void 0 : m.cmd) != null ? p : "" : null;
9759
+ }), s = computed(() => {
9760
+ var m, p;
9761
+ return (p = (m = a.value) == null ? void 0 : m.cmd_method) != null ? p : "GET";
9762
+ }), i = computed(() => {
9763
+ var p, _, b, v, y, C;
9764
+ let m = {
9765
+ ...(p = n.model.value) != null ? p : {}
9766
+ };
9767
+ return a.value && (m = {
9768
+ ...m,
9769
+ ...KgVarUtil.parseCommandParameter((b = (_ = a.value) == null ? void 0 : _.cmd_prm) != null ? b : "")
9770
+ }), (v = r.varGridConfig.value) != null && v.cmd_prm && (m = {
9771
+ ...m,
9772
+ ...KgVarUtil.parseCommandParameter((y = r.varGridConfig.value.cmd_prm) != null ? y : "")
9773
+ }), ((C = r.varGridConfig.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) === 1 && m.column && (m.column = snakeCase$1(m.column)), m;
9774
+ }), l = ref(!1);
9775
+ async function u() {
9776
+ var m, p, _;
9777
+ if (!(e.onKgClick && await e.onKgClick())) {
9778
+ if (!o.value) {
9779
+ Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
9780
+ button: a.value
9781
+ });
9782
+ return;
9783
+ }
9784
+ l.value = !0;
9785
+ try {
9786
+ const b = await httpClient().request({
9787
+ method: s.value,
9788
+ url: o.value,
9789
+ params: i.value,
9790
+ responseType: "blob"
9791
+ }, {
9792
+ joinParamsToUrl: !0,
9793
+ isTransformResponse: !1
9794
+ });
9795
+ KgUtil.downloadFile(b, `${r.t((p = (m = a.value) == null ? void 0 : m.export_excel_filename) != null ? p : "export").value}.${(_ = a.value) == null ? void 0 : _.export_excel_suffix}`), message.success(t.t("kg.exportSuccess"));
9796
+ } catch (b) {
9797
+ throw b;
9798
+ } finally {
9799
+ l.value = !1;
9800
+ }
9801
+ }
9732
9802
  }
9733
- function n() {
9734
- return e.kgIcon ? createVNode("span", {
9803
+ function c() {
9804
+ return l.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
9735
9805
  class: "anticon"
9736
9806
  }, [createVNode(Icon, {
9737
9807
  icon: e.kgIcon
9738
9808
  }, null)]) : createVNode(UploadOutlined$1, null, null);
9739
9809
  }
9740
- function a() {
9810
+ function g() {
9741
9811
  return e.kgText ? e.kgText : t.t("kg.export");
9742
9812
  }
9743
9813
  return () => createVNode(Button, {
9744
9814
  type: "primary",
9745
9815
  disabled: !!e.kgDisabled,
9746
9816
  ghost: !e.kgPrimary && !e.kgDisabled,
9747
- onClick: r
9817
+ loading: l.value,
9818
+ onClick: u
9748
9819
  }, {
9749
- default: () => [n(), a()]
9820
+ default: () => [c(), g()]
9750
9821
  });
9751
9822
  }
9752
9823
  }), KgButtonOther = defineComponent({
@@ -9767,18 +9838,18 @@ const getProps$8 = () => ({
9767
9838
  }
9768
9839
  let l = null;
9769
9840
  const u = async () => {
9770
- var y, v, b, T, O, P;
9841
+ var b, v, y, C, O, P;
9771
9842
  l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
9772
- const p = ((y = r.varGridConfig.value) == null ? void 0 : y.mult_flg) === 1, _ = n.selectedRows.value;
9843
+ const p = ((b = r.varGridConfig.value) == null ? void 0 : b.mult_flg) === 1, _ = n.selectedRows.value;
9773
9844
  try {
9774
9845
  await httpClient().request({
9775
- method: (b = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? b : "POST",
9846
+ method: (y = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? y : "POST",
9776
9847
  url: i,
9777
- params: KgVarUtil.parseCommandParameter((O = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? O : ""),
9848
+ params: KgVarUtil.parseCommandParameter((O = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? O : ""),
9778
9849
  data: p ? _ != null ? _ : [] : (P = _ == null ? void 0 : _[0]) != null ? P : {}
9779
9850
  });
9780
- } catch (I) {
9781
- console.error(I);
9851
+ } catch (A) {
9852
+ console.error(A);
9782
9853
  } finally {
9783
9854
  r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
9784
9855
  }
@@ -9815,36 +9886,78 @@ const getProps$8 = () => ({
9815
9886
  }), KgButtonImport = defineComponent({
9816
9887
  name: "KgButtonImport",
9817
9888
  props: getProps$8(),
9818
- emits: ["kgClick"],
9819
9889
  setup(e, {
9820
9890
  slots: t,
9821
- emit: r
9891
+ attrs: r
9822
9892
  }) {
9823
- const n = useKg();
9824
- async function a(i) {
9825
- e.onKgClick && await e.onKgClick();
9893
+ const n = useKg(), a = useKgVar(), o = useKgSearch(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
9894
+ var p, _;
9895
+ return s.value ? (_ = (p = s.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
9896
+ }), l = computed(() => {
9897
+ var p, _;
9898
+ return (_ = (p = s.value) == null ? void 0 : p.cmd_method) != null ? _ : "POST";
9899
+ });
9900
+ computed(() => {
9901
+ var _, b, v;
9902
+ let p = {
9903
+ ...(_ = o.model.value) != null ? _ : {}
9904
+ };
9905
+ return s.value && (p = {
9906
+ ...p,
9907
+ ...KgVarUtil.parseCommandParameter((v = (b = s.value) == null ? void 0 : b.cmd_prm) != null ? v : "")
9908
+ }), p;
9909
+ });
9910
+ const u = ref(!1);
9911
+ async function c(p) {
9912
+ var _, b;
9913
+ if (!i.value)
9914
+ return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
9915
+ button: s.value
9916
+ }), !1;
9917
+ u.value = !0;
9918
+ try {
9919
+ const v = new FormData();
9920
+ v.append("file", p), await httpClient().axiosInstance.request({
9921
+ method: l.value,
9922
+ baseURL: window._CONFIG.domianURL,
9923
+ url: i.value,
9924
+ data: v,
9925
+ headers: {
9926
+ "Content-Type": "multipart/form-data;charset=UTF-8",
9927
+ ignoreCancelToken: !0
9928
+ }
9929
+ }), message.success(n.t("kg.importSuccess")), (b = (_ = o.search).value) == null || b.call(_, !0);
9930
+ } catch (v) {
9931
+ throw v;
9932
+ } finally {
9933
+ u.value = !1;
9934
+ }
9935
+ return !1;
9826
9936
  }
9827
- function o() {
9828
- return e.kgIcon ? createVNode("span", {
9937
+ function g() {
9938
+ return u.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
9829
9939
  class: "anticon"
9830
9940
  }, [createVNode(Icon, {
9831
9941
  icon: e.kgIcon
9832
9942
  }, null)]) : createVNode(DownloadOutlined$1, null, null);
9833
9943
  }
9834
- function s() {
9944
+ function m() {
9835
9945
  return e.kgText ? e.kgText : n.t("kg.import");
9836
9946
  }
9837
9947
  return () => createVNode(Upload, {
9838
9948
  name: "file",
9839
9949
  showUploadList: !1,
9840
- customRequest: a
9950
+ beforeUpload: c,
9951
+ disabled: u.value
9841
9952
  }, {
9842
9953
  default: () => [createVNode(Button, {
9954
+ class: r.class,
9843
9955
  type: "primary",
9844
9956
  disabled: !!e.kgDisabled,
9845
- ghost: !e.kgPrimary && !e.kgDisabled
9957
+ ghost: !e.kgPrimary && !e.kgDisabled,
9958
+ loading: u.value
9846
9959
  }, {
9847
- default: () => [o(), s()]
9960
+ default: () => [g(), m()]
9848
9961
  })]
9849
9962
  });
9850
9963
  }
@@ -9857,7 +9970,7 @@ const getProps$8 = () => ({
9857
9970
  e.onKgClick && await e.onKgClick();
9858
9971
  }
9859
9972
  function n() {
9860
- return e.kgLoading ? null : e.kgIcon ? createVNode("span", {
9973
+ return e.kgLoading ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
9861
9974
  class: "anticon"
9862
9975
  }, [createVNode(Icon, {
9863
9976
  icon: e.kgIcon
@@ -10009,9 +10122,9 @@ const getProps$7 = () => ({
10009
10122
  default: () => {
10010
10123
  var p;
10011
10124
  return [(p = r.varButtons.value) == null ? void 0 : p.filter((_) => _.typ !== KG_BTN_TYPE.SEARCH).map((_) => {
10012
- let y;
10013
- return createVNode(Menu.Item, null, _isSlot$3(y = c(_)) ? y : {
10014
- default: () => [y]
10125
+ let b;
10126
+ return createVNode(Menu.Item, null, _isSlot$3(b = c(_)) ? b : {
10127
+ default: () => [b]
10015
10128
  });
10016
10129
  })];
10017
10130
  }
@@ -10408,21 +10521,21 @@ const leftVarProfileDetailColumns = (e) => {
10408
10521
  }) {
10409
10522
  const r = useKg(), n = useKgVar(FORM_ID, !0), a = useKgSearch(FORM_ID), o = useKgButton(FORM_ID), s = useKgSubmit(FORM_ID), i = useKgVar(e.hostFormID);
10410
10523
  s.onOpen(m), s.onBeforeOk(async (v) => {
10411
- var b, T;
10412
- return v.value.frm_id = i.formID, v.value.varProfileDetails = (T = (b = l.value) == null ? void 0 : b.filter((O) => u.value.includes(O.id))) != null ? T : [], !1;
10524
+ var y, C;
10525
+ return v.value.frm_id = i.formID, v.value.varProfileDetails = (C = (y = l.value) == null ? void 0 : y.filter((O) => u.value.includes(O.id))) != null ? C : [], !1;
10413
10526
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
10414
10527
  row: v
10415
- }) => (v == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((b) => {
10528
+ }) => (v == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((y) => {
10416
10529
  KgUtil.confirm({
10417
10530
  content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
10418
10531
  okButtonProps: {
10419
10532
  danger: !1
10420
10533
  },
10421
10534
  onOk: () => {
10422
- n.store.setIsCopying(n.formID, !0), b(!0);
10535
+ n.store.setIsCopying(n.formID, !0), y(!0);
10423
10536
  },
10424
10537
  onCancel: () => {
10425
- b(!0);
10538
+ y(!0);
10426
10539
  }
10427
10540
  });
10428
10541
  }) : Promise.resolve(!1)), o.onDeleteOk(() => (i.store.retrieve(i.formID), Promise.resolve(!1)));
@@ -10431,26 +10544,26 @@ const leftVarProfileDetailColumns = (e) => {
10431
10544
  "KgForm.Item": {
10432
10545
  varProfileDetails: ({
10433
10546
  varName: v,
10434
- props: b,
10435
- model: T,
10547
+ props: y,
10548
+ model: C,
10436
10549
  varConfig: O,
10437
10550
  varProfileDetail: P,
10438
- varSubmitField: I
10551
+ varSubmitField: A
10439
10552
  }) => createVNode(Transfer, {
10440
10553
  dataSource: l.value,
10441
10554
  targetKeys: u.value,
10442
- "onUpdate:targetKeys": (C) => u.value = C,
10443
- rowKey: (C) => C.id,
10555
+ "onUpdate:targetKeys": (T) => u.value = T,
10556
+ rowKey: (T) => T.id,
10444
10557
  showSearch: !0,
10445
10558
  showSelectAll: !1,
10446
10559
  searchPlaceholder: " ",
10447
- filterOption: (C, L) => {
10560
+ filterOption: (T, L) => {
10448
10561
  var w;
10449
- return !!((w = L.var_nam) != null && w.includes(C));
10562
+ return !!((w = L.var_nam) != null && w.includes(T));
10450
10563
  }
10451
10564
  }, {
10452
10565
  children: ({
10453
- direction: C,
10566
+ direction: T,
10454
10567
  filteredItems: L,
10455
10568
  selectedKeys: w,
10456
10569
  disabled: k,
@@ -10461,15 +10574,15 @@ const leftVarProfileDetailColumns = (e) => {
10461
10574
  class: "kg-flex-table",
10462
10575
  size: "small",
10463
10576
  scroll: {
10464
- x: C === "left" ? "370px" : "1244px",
10577
+ x: T === "left" ? "370px" : "1244px",
10465
10578
  y: "auto"
10466
10579
  },
10467
- columns: C === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
10580
+ columns: T === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
10468
10581
  rowKey: "id",
10469
10582
  dataSource: L,
10470
10583
  customRow: (R) => ({
10471
- onClick: (N) => _(N, R, w),
10472
- onDblclick: (N) => y(N, R, C, w)
10584
+ onClick: (V) => _(V, R, w),
10585
+ onDblclick: (V) => b(V, R, T, w)
10473
10586
  }),
10474
10587
  rowSelection: g({
10475
10588
  disabled: k,
@@ -10487,41 +10600,41 @@ const leftVarProfileDetailColumns = (e) => {
10487
10600
  });
10488
10601
  const g = ({
10489
10602
  disabled: v,
10490
- selectedKeys: b,
10491
- onItemSelectAll: T,
10603
+ selectedKeys: y,
10604
+ onItemSelectAll: C,
10492
10605
  onItemSelect: O
10493
10606
  }) => ({
10494
10607
  getCheckboxProps: (P) => ({
10495
10608
  disabled: v || P.disabled
10496
10609
  }),
10497
- onSelectAll(P, I) {
10498
- const C = I.filter((L) => !L.disabled).map(({
10610
+ onSelectAll(P, A) {
10611
+ const T = A.filter((L) => !L.disabled).map(({
10499
10612
  key: L
10500
10613
  }) => L);
10501
- T(C, P);
10614
+ C(T, P);
10502
10615
  },
10503
10616
  onSelect({
10504
10617
  key: P
10505
- }, I) {
10506
- O(P, I);
10618
+ }, A) {
10619
+ O(P, A);
10507
10620
  },
10508
- selectedRowKeys: b,
10621
+ selectedRowKeys: y,
10509
10622
  columnWidth: 32
10510
10623
  });
10511
10624
  async function m({
10512
10625
  isCreating: v,
10513
- isUpdating: b,
10514
- isCopying: T,
10626
+ isUpdating: y,
10627
+ isCopying: C,
10515
10628
  row: O
10516
10629
  }) {
10517
- var I, C;
10630
+ var A, T;
10518
10631
  const P = i.store.getSystemVarProfileDetails(i.formID);
10519
10632
  switch (l.value = P ? cloneDeep(unref(toRaw(P))) : [], !0) {
10520
10633
  case v:
10521
10634
  u.value = [];
10522
10635
  break;
10523
- case b:
10524
- case T:
10636
+ case y:
10637
+ case C:
10525
10638
  if (O != null && O.id)
10526
10639
  try {
10527
10640
  s.store.setIsLoading(n.formID, !0);
@@ -10539,7 +10652,7 @@ const leftVarProfileDetailColumns = (e) => {
10539
10652
  id: k.id
10540
10653
  } : k;
10541
10654
  });
10542
- const w = (C = (I = L == null ? void 0 : L.varProfileDetails) == null ? void 0 : I.map((k) => k.var_nam)) != null ? C : [];
10655
+ const w = (T = (A = L == null ? void 0 : L.varProfileDetails) == null ? void 0 : A.map((k) => k.var_nam)) != null ? T : [];
10543
10656
  u.value = l.value.filter((k) => w.includes(k.var_nam)).map((k) => k.id);
10544
10657
  } catch (L) {
10545
10658
  throw L;
@@ -10553,26 +10666,26 @@ const leftVarProfileDetailColumns = (e) => {
10553
10666
  return !1;
10554
10667
  }
10555
10668
  async function p() {
10556
- const v = watch(a.isReady, async (b) => {
10557
- var T, O;
10558
- b && a.model.value && (setTimeout(() => v(), 0), a.store.patchModel(n.formID, {
10669
+ const v = watch(a.isReady, async (y) => {
10670
+ var C, O;
10671
+ y && a.model.value && (setTimeout(() => v(), 0), a.store.patchModel(n.formID, {
10559
10672
  frm_id: e.hostFormID
10560
- }), (O = (T = a.search).value) == null || O.call(T));
10673
+ }), (O = (C = a.search).value) == null || O.call(C));
10561
10674
  }, {
10562
10675
  immediate: !0
10563
10676
  });
10564
10677
  }
10565
- function _(v, b, T) {
10566
- DomUtil.isNotClickable(v.target, ["ant-input"]) || (T.length = 0, T[0] = b.id);
10678
+ function _(v, y, C) {
10679
+ DomUtil.isNotClickable(v.target, ["ant-input"]) || (C.length = 0, C[0] = y.id);
10567
10680
  }
10568
- function y(v, b, T, O) {
10681
+ function b(v, y, C, O) {
10569
10682
  if (!DomUtil.isNotClickable(v.target, ["ant-input"]))
10570
- switch (O.length = 0, T) {
10683
+ switch (O.length = 0, C) {
10571
10684
  case "left":
10572
- u.value.push(b.id);
10685
+ u.value.push(y.id);
10573
10686
  break;
10574
10687
  case "right":
10575
- u.value = without$1(u.value, b.id);
10688
+ u.value = without$1(u.value, y.id);
10576
10689
  break;
10577
10690
  }
10578
10691
  }
@@ -10658,21 +10771,21 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10658
10771
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
10659
10772
  _useLayoutHeaderResizeObserver();
10660
10773
  const o = computed(() => r.store.getVarProfileConfig(r.formID)), s = computed(() => {
10661
- var A;
10662
- return ((A = o.value) == null ? void 0 : A.header_teleport_flg) !== 0;
10774
+ var I;
10775
+ return ((I = o.value) == null ? void 0 : I.header_teleport_flg) !== 0;
10663
10776
  }), i = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, s.value)), l = computed(() => getMaxHeight(r.currentVarProfileDetails.value, s.value)), u = computed(() => s.value ? 1 : HEADER_HEIGHT), c = computed(() => !!a.isRetrieving.value), g = computed(() => !!a.isRetrieving.value), m = ref(null), p = ref({
10664
10777
  kgHeight: u.value
10665
10778
  }), _ = ref({
10666
10779
  visible: !1
10667
10780
  });
10668
- let y;
10669
- const v = computed(() => p.value.kgHeight === u.value), b = computed(() => r.store.getVarButtonSearch(r.formID)), T = computed(() => {
10670
- var A, F, K;
10671
- if (r.t((A = b.value) == null ? void 0 : A.var_nam).value !== ((F = b.value) == null ? void 0 : F.var_nam))
10672
- return r.t((K = b.value) == null ? void 0 : K.var_nam).value;
10781
+ let b;
10782
+ const v = computed(() => p.value.kgHeight === u.value), y = computed(() => r.store.getVarButtonSearch(r.formID)), C = computed(() => {
10783
+ var I, F, K;
10784
+ if (r.t((I = y.value) == null ? void 0 : I.var_nam).value !== ((F = y.value) == null ? void 0 : F.var_nam))
10785
+ return r.t((K = y.value) == null ? void 0 : K.var_nam).value;
10673
10786
  }), O = computed(() => {
10674
- var A;
10675
- switch ((A = b.value) == null ? void 0 : A.primary_flg) {
10787
+ var I;
10788
+ switch ((I = y.value) == null ? void 0 : I.primary_flg) {
10676
10789
  case 1:
10677
10790
  return !0;
10678
10791
  case 0:
@@ -10681,18 +10794,18 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10681
10794
  return !0;
10682
10795
  }
10683
10796
  }), P = computed(() => {
10684
- var A;
10685
- return ((A = o.value) == null ? void 0 : A.vis_flg) !== 0;
10686
- }), I = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || s.value && !!r.isOtherRequesting.value)), C = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), L = computed(() => {
10687
- let A = "kg-search";
10688
- return P.value || (A += " kg-search--invisible"), s.value && (A += " kg-search--teleport"), A;
10797
+ var I;
10798
+ return ((I = o.value) == null ? void 0 : I.vis_flg) !== 0;
10799
+ }), A = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || s.value && !!r.isOtherRequesting.value)), T = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), L = computed(() => {
10800
+ let I = "kg-search";
10801
+ return P.value || (I += " kg-search--invisible"), s.value && (I += " kg-search--teleport"), I;
10689
10802
  });
10690
- watch(r.currentVarProfileDetails, (A) => {
10691
- if (A) {
10803
+ watch(r.currentVarProfileDetails, (I) => {
10804
+ if (I) {
10692
10805
  const F = {};
10693
- A.forEach((K) => {
10806
+ I.forEach((K) => {
10694
10807
  F[K.var_nam] = "";
10695
- }), p.value.kgHeight = i.value, n.store.setModel(r.formID, reactive(F)), P.value ? (y == null || y(), y = watch(m, (K) => {
10808
+ }), p.value.kgHeight = i.value, n.store.setModel(r.formID, reactive(F)), P.value ? (b == null || b(), b = watch(m, (K) => {
10696
10809
  K && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
10697
10810
  }, {
10698
10811
  immediate: !0
@@ -10703,23 +10816,23 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10703
10816
  }), onUnmounted(() => {
10704
10817
  n.store.dispose(r.formID);
10705
10818
  });
10706
- function w(A = !1) {
10819
+ function w(I = !1) {
10707
10820
  P.value ? m.value && m.value.validate().then(() => {
10708
10821
  n.store.emit(r.formID, "search", {
10709
- resetPageIndex: A
10822
+ resetPageIndex: I
10710
10823
  });
10711
10824
  }).catch((F) => {
10712
10825
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
10713
10826
  e: F
10714
10827
  });
10715
10828
  }) : n.store.emit(r.formID, "search", {
10716
- resetPageIndex: A
10829
+ resetPageIndex: I
10717
10830
  });
10718
10831
  }
10719
10832
  n.store.setSearchFn(r.formID, w);
10720
10833
  function k() {
10721
- var A;
10722
- (A = m.value) == null || A.resetFields(), P.value ? m.value && m.value.validate().then(() => {
10834
+ var I;
10835
+ (I = m.value) == null || I.resetFields(), P.value ? m.value && m.value.validate().then(() => {
10723
10836
  n.store.emit(r.formID, "reset");
10724
10837
  }).catch((F) => {
10725
10838
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
@@ -10738,8 +10851,8 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10738
10851
  }, [v.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
10739
10852
  }
10740
10853
  function R() {
10741
- var A, F, K, W;
10742
- return ((K = (F = (A = r.varProfileMasters) == null ? void 0 : A.value) == null ? void 0 : F.length) != null ? K : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
10854
+ var I, F, K, W;
10855
+ return ((K = (F = (I = r.varProfileMasters) == null ? void 0 : I.value) == null ? void 0 : F.length) != null ? K : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
10743
10856
  value: (W = r.currentVarProfileMasterID.value) != null ? W : void 0,
10744
10857
  "onUpdate:value": (q) => r.store.setCurrentVarProfileMasterID(r.formID, q),
10745
10858
  disabled: c.value,
@@ -10747,11 +10860,11 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10747
10860
  class: "kg-search-profile-master-select"
10748
10861
  }, {
10749
10862
  default: () => {
10750
- var q, Q;
10751
- return (Q = (q = r.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : Q.map((V) => createVNode(Select.Option, {
10752
- value: V.id
10863
+ var q, X;
10864
+ return (X = (q = r.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : X.map((N) => createVNode(Select.Option, {
10865
+ value: N.id
10753
10866
  }, {
10754
- default: () => [r.t(V == null ? void 0 : V.prf_var_nam).value]
10867
+ default: () => [r.t(N == null ? void 0 : N.prf_var_nam).value]
10755
10868
  }));
10756
10869
  },
10757
10870
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -10769,8 +10882,8 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10769
10882
  hostFormID: r.formID
10770
10883
  }, null)]);
10771
10884
  }
10772
- function N() {
10773
- var A, F, K, W, q;
10885
+ function V() {
10886
+ var I, F, K, W, q;
10774
10887
  return createVNode(Fragment, null, [R(), createVNode(Button, {
10775
10888
  type: "primary",
10776
10889
  ghost: !c.value,
@@ -10781,27 +10894,27 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10781
10894
  default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
10782
10895
  }), createVNode(KgButton.Item, {
10783
10896
  kgType: KG_BTN_TYPE.SEARCH,
10784
- kgVarName: (A = b.value) == null ? void 0 : A.var_nam,
10785
- kgIcon: (F = b.value) == null ? void 0 : F.icon,
10786
- kgText: T.value,
10787
- kgColor: (K = b.value) == null ? void 0 : K.color,
10897
+ kgVarName: (I = y.value) == null ? void 0 : I.var_nam,
10898
+ kgIcon: (F = y.value) == null ? void 0 : F.icon,
10899
+ kgText: C.value,
10900
+ kgColor: (K = y.value) == null ? void 0 : K.color,
10788
10901
  kgPrimary: O.value,
10789
10902
  kgLoading: g.value,
10790
10903
  onKgClick: M,
10791
10904
  class: "kg-search-btn-search",
10792
- "kg-var-btn-id": (W = b.value) == null ? void 0 : W.id,
10793
- "kg-var-nam": (q = b.value) == null ? void 0 : q.var_nam
10905
+ "kg-var-btn-id": (W = y.value) == null ? void 0 : W.id,
10906
+ "kg-var-nam": (q = y.value) == null ? void 0 : q.var_nam
10794
10907
  }, null)]);
10795
10908
  }
10796
10909
  function D() {
10797
10910
  return createVNode(Spin, {
10798
- spinning: C.value
10911
+ spinning: T.value
10799
10912
  }, {
10800
10913
  default: () => {
10801
- var A;
10914
+ var I;
10802
10915
  return [createVNode(KgForm, {
10803
10916
  ref: m,
10804
- model: (A = n.model.value) != null ? A : {}
10917
+ model: (I = n.model.value) != null ? I : {}
10805
10918
  }, {
10806
10919
  default: () => [createVNode(Row, null, {
10807
10920
  default: () => {
@@ -10817,8 +10930,8 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10817
10930
  }
10818
10931
  });
10819
10932
  }
10820
- function $(A) {
10821
- console.log("333:value", A);
10933
+ function $(I) {
10934
+ console.log("333:value", I);
10822
10935
  }
10823
10936
  function x() {
10824
10937
  v.value ? p.value.kgHeight = i.value : p.value.kgHeight = u.value;
@@ -10827,7 +10940,7 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10827
10940
  "kg-frm-id": r.formID,
10828
10941
  class: L.value,
10829
10942
  kgHeight: p.value.kgHeight,
10830
- "onUpdate:kgHeight": (A) => p.value.kgHeight = A,
10943
+ "onUpdate:kgHeight": (I) => p.value.kgHeight = I,
10831
10944
  kgMinHeight: u.value,
10832
10945
  kgMaxHeight: l.value
10833
10946
  }, {
@@ -10842,11 +10955,11 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
10842
10955
  default: () => [createVNode("div", {
10843
10956
  class: "ant-collapse-header"
10844
10957
  }, [createVNode(Spin, {
10845
- spinning: I.value
10958
+ spinning: A.value
10846
10959
  }, {
10847
10960
  default: () => [E(), createVNode("div", {
10848
10961
  class: "ant-collapse-extra"
10849
- }, [N()])]
10962
+ }, [V()])]
10850
10963
  })])]
10851
10964
  }), createVNode("div", {
10852
10965
  class: "ant-collapse-content ant-collapse-content-active"
@@ -11021,23 +11134,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11021
11134
  columnWidth: 32,
11022
11135
  hideSelectAll: !0,
11023
11136
  selectedRowKeys: c,
11024
- onSelect: (E) => C(E)
11137
+ onSelect: (E) => T(E)
11025
11138
  }), m = ref({
11026
11139
  visible: !1
11027
11140
  }), p = computed(() => !!(unref(u) || unref(n) || unref(a) || unref(o))), _ = computed(() => {
11028
11141
  var E;
11029
11142
  return !!u.value || ((E = r.getSelectedVarCatalog) == null ? void 0 : E.cust_lvl) === KG_CUSTOM_LEVEL.L0;
11030
- }), y = computed(() => !!(!unref(u) || unref(n) || unref(a))), v = computed(() => !!(!unref(r.getSelectedVarCatalog) || unref(n)));
11143
+ }), b = computed(() => !!(!unref(u) || unref(n) || unref(a))), v = computed(() => !!(!unref(r.getSelectedVarCatalog) || unref(n)));
11031
11144
  watch(() => r.getSelectedVar, (E) => {
11032
- E ? b() : (u.value = null, l.value = [], r.setSelectedVarCatalog(null));
11145
+ E ? y() : (u.value = null, l.value = [], r.setSelectedVarCatalog(null));
11033
11146
  }, {
11034
11147
  immediate: !0
11035
11148
  }), watch(() => r.getSelectedVarCatalog, async (E) => {
11036
- var R, N;
11037
- i.value.var_text = (R = E == null ? void 0 : E.var_text) != null ? R : "", (N = s.value) == null || N.clearValidate();
11149
+ var R, V;
11150
+ i.value.var_text = (R = E == null ? void 0 : E.var_text) != null ? R : "", (V = s.value) == null || V.clearValidate();
11038
11151
  });
11039
- async function b(E = !1) {
11040
- var R, N, D;
11152
+ async function y(E = !1) {
11153
+ var R, V, D;
11041
11154
  n.value = !0;
11042
11155
  try {
11043
11156
  const {
@@ -11053,26 +11166,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11053
11166
  }
11054
11167
  });
11055
11168
  if (u.value = null, l.value = $ != null ? $ : [], E) {
11056
- const x = l.value.find((A) => {
11169
+ const x = l.value.find((I) => {
11057
11170
  var F;
11058
- return A.id === ((F = r.getSelectedVarCatalog) == null ? void 0 : F.id);
11171
+ return I.id === ((F = r.getSelectedVarCatalog) == null ? void 0 : F.id);
11059
11172
  });
11060
11173
  r.setSelectedVarCatalog(x != null ? x : null), c.value = x != null && x.id ? [x.id] : [];
11061
11174
  } else
11062
- r.setSelectedVarCatalog((N = l.value[0]) != null ? N : null), c.value = (D = l.value[0]) != null && D.id ? [l.value[0].id] : [];
11175
+ r.setSelectedVarCatalog((V = l.value[0]) != null ? V : null), c.value = (D = l.value[0]) != null && D.id ? [l.value[0].id] : [];
11063
11176
  } catch ($) {
11064
11177
  Logger.debug($ == null ? void 0 : $.message);
11065
11178
  } finally {
11066
11179
  n.value = !1;
11067
11180
  }
11068
11181
  }
11069
- async function T() {
11070
- var E, R, N;
11182
+ async function C() {
11183
+ var E, R, V;
11071
11184
  try {
11072
11185
  a.value = !0, await ((E = s.value) == null ? void 0 : E.validate());
11073
11186
  const D = new VarCatalog({
11074
11187
  ...(R = r.getSelectedVarCatalog) != null ? R : {},
11075
- var_text: (N = i.value) == null ? void 0 : N.var_text
11188
+ var_text: (V = i.value) == null ? void 0 : V.var_text
11076
11189
  });
11077
11190
  D.id ? D.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (D.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(D, "id"), await Add$1({
11078
11191
  data: D
@@ -11080,19 +11193,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11080
11193
  successMessageMode: "none"
11081
11194
  }), message.success({
11082
11195
  content: e.t("kg.KgVarConfig.createSuccess")
11083
- }), await b()) : (await Edit$1({
11196
+ }), await y()) : (await Edit$1({
11084
11197
  data: D
11085
11198
  }, {
11086
11199
  successMessageMode: "none"
11087
11200
  }), message.success({
11088
11201
  content: e.t("kg.KgVarConfig.saveSuccess")
11089
- }), await b(!0)) : (await Add$1({
11202
+ }), await y(!0)) : (await Add$1({
11090
11203
  data: D
11091
11204
  }, {
11092
11205
  successMessageMode: "none"
11093
11206
  }), message.success({
11094
11207
  content: e.t("kg.KgVarConfig.createSuccess")
11095
- }), await b()), t.retrieve(t.getCurrentFormID);
11208
+ }), await y()), t.retrieve(t.getCurrentFormID);
11096
11209
  } catch (D) {
11097
11210
  KgUtil.throwIfNotFormError(D);
11098
11211
  } finally {
@@ -11104,13 +11217,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11104
11217
  isAllLanguage: R
11105
11218
  }) {
11106
11219
  var D, $, x;
11107
- const N = t.getCurrentFormID;
11220
+ const V = t.getCurrentFormID;
11108
11221
  u.value = new VarCatalog({
11109
11222
  id: "",
11110
11223
  cust_lvl: KG_CUSTOM_LEVEL.L10,
11111
11224
  grp_nam: (D = r.getSelectedVar) == null ? void 0 : D.grp_nam,
11112
11225
  var_nam: ($ = r.getSelectedVar) == null ? void 0 : $.var_nam,
11113
- frm_id: E || !N ? "ALL" : N,
11226
+ frm_id: E || !V ? "ALL" : V,
11114
11227
  locale_id: R ? "ALL" : (x = e.locale) == null ? void 0 : x.value,
11115
11228
  var_text: ""
11116
11229
  }), l.value = [...l.value, u.value], r.setSelectedVarCatalog(unref(u)), c.value = [""];
@@ -11121,7 +11234,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11121
11234
  const E = (R = l.value[0]) != null ? R : null;
11122
11235
  r.setSelectedVarCatalog(E), c.value = E ? [E.id] : [];
11123
11236
  }
11124
- function I() {
11237
+ function A() {
11125
11238
  KgUtil.confirm({
11126
11239
  onOk: async () => {
11127
11240
  var E;
@@ -11134,11 +11247,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11134
11247
  joinParamsToUrl: !0
11135
11248
  }), message.success({
11136
11249
  content: e.t("kg.KgVarConfig.deleteSuccess")
11137
- }), t.retrieve(t.getCurrentFormID), await b();
11250
+ }), t.retrieve(t.getCurrentFormID), await y();
11138
11251
  }
11139
11252
  });
11140
11253
  }
11141
- function C(E) {
11254
+ function T(E) {
11142
11255
  var R;
11143
11256
  ((R = r.getSelectedVarCatalog) == null ? void 0 : R.id) !== E.id && (unref(u) ? KgUtil.confirm({
11144
11257
  content: e.t("kg.KgVarConfig.discardConfirmMessage"),
@@ -11160,7 +11273,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11160
11273
  }, {
11161
11274
  default: () => [createVNode(PlusOutlined$1, null, null), e.t("common.create")]
11162
11275
  }), createVNode(Button, {
11163
- onClick: I,
11276
+ onClick: A,
11164
11277
  disabled: _.value,
11165
11278
  ghost: !_.value,
11166
11279
  type: "primary",
@@ -11176,7 +11289,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11176
11289
  }, [createVNode(Form, {
11177
11290
  ref: s,
11178
11291
  model: i.value,
11179
- onSubmit: T
11292
+ onSubmit: C
11180
11293
  }, {
11181
11294
  default: () => [createVNode(Form.Item, {
11182
11295
  name: "var_text",
@@ -11187,7 +11300,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11187
11300
  }, {
11188
11301
  default: () => [createVNode(Textarea, {
11189
11302
  value: i.value.var_text,
11190
- "onUpdate:value": (N) => i.value.var_text = N,
11303
+ "onUpdate:value": (V) => i.value.var_text = V,
11191
11304
  disabled: !r.getSelectedVarCatalog
11192
11305
  }, null), createVNode("button", {
11193
11306
  hidden: !0
@@ -11196,23 +11309,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11196
11309
  }), createVNode("div", {
11197
11310
  class: "buttons"
11198
11311
  }, [createVNode(Button, {
11199
- disabled: y.value,
11312
+ disabled: b.value,
11200
11313
  onClick: P
11201
11314
  }, _isSlot(E = e.t("common.cancelText")) ? E : {
11202
11315
  default: () => [E]
11203
11316
  }), createVNode(Button, {
11204
11317
  loading: a.value,
11205
11318
  disabled: v.value,
11206
- onClick: T,
11319
+ onClick: C,
11207
11320
  type: "primary"
11208
11321
  }, _isSlot(R = e.t("common.save")) ? R : {
11209
11322
  default: () => [R]
11210
11323
  })])]);
11211
11324
  }
11212
11325
  function M(E) {
11213
- var N;
11326
+ var V;
11214
11327
  let R = "";
11215
- return E.id || (R += " ant-table-row-create"), E.id === ((N = r.getSelectedVarCatalog) == null ? void 0 : N.id) && (R += " ant-table-row-selected "), R;
11328
+ return E.id || (R += " ant-table-row-create"), E.id === ((V = r.getSelectedVarCatalog) == null ? void 0 : V.id) && (R += " ant-table-row-selected "), R;
11216
11329
  }
11217
11330
  return () => createVNode("div", {
11218
11331
  class: "kg-var-config-modal-var-var-catalog"
@@ -11231,7 +11344,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
11231
11344
  rowClassName: M,
11232
11345
  rowSelection: g.value,
11233
11346
  customRow: (E) => ({
11234
- onClick: () => C(E)
11347
+ onClick: () => T(E)
11235
11348
  })
11236
11349
  }, null), k(), createVNode(KgVarConfigModalVarCreateModal, {
11237
11350
  visible: m.value.visible,
@@ -11542,12 +11655,12 @@ function createStore(e, t, r) {
11542
11655
  var m = slice(arguments, 0), p = this;
11543
11656
  function _() {
11544
11657
  if (!!c)
11545
- return each$6(arguments, function(v, b) {
11546
- m[b] = v;
11658
+ return each$6(arguments, function(v, y) {
11659
+ m[y] = v;
11547
11660
  }), c.apply(p, m);
11548
11661
  }
11549
- var y = [_].concat(m);
11550
- return l.apply(p, y);
11662
+ var b = [_].concat(m);
11663
+ return l.apply(p, b);
11551
11664
  };
11552
11665
  },
11553
11666
  _serialize: function(l) {
@@ -12007,16 +12120,16 @@ const KgWarehouse$1 = "", getProps = () => ({
12007
12120
  emit: t
12008
12121
  }) {
12009
12122
  const r = useKg(), n = useKgWarehouse(), a = computed(() => {
12010
- let I = "jeecg-layout-header-action__item kg-warehouse";
12011
- return (!m.value || e.kgInvisible) && (I += " kg-warehouse--invisible"), I;
12123
+ let A = "jeecg-layout-header-action__item kg-warehouse";
12124
+ return (!m.value || e.kgInvisible) && (A += " kg-warehouse--invisible"), A;
12012
12125
  }), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
12013
12126
  width: 80,
12014
12127
  align: "center",
12015
12128
  customRender: ({
12016
- record: I
12129
+ record: A
12017
12130
  }) => {
12018
12131
  var L;
12019
- return I.id === ((L = i.value) == null ? void 0 : L.id) ? createVNode("img", {
12132
+ return A.id === ((L = i.value) == null ? void 0 : L.id) ? createVNode("img", {
12020
12133
  src: WAREHOUSE_1890ff
12021
12134
  }, null) : createVNode("img", {
12022
12135
  src: WAREHOUSE_000000
@@ -12024,27 +12137,27 @@ const KgWarehouse$1 = "", getProps = () => ({
12024
12137
  }
12025
12138
  }, {
12026
12139
  customRender: ({
12027
- record: I
12140
+ record: A
12028
12141
  }) => {
12029
12142
  var L, w, k;
12030
- const C = I;
12031
- return createVNode("div", null, [createVNode("div", null, [(L = C.whDsc) != null ? L : " ", createTextVNode(" - "), (w = C.whId) != null ? w : " "]), createVNode("div", {
12143
+ const T = A;
12144
+ return createVNode("div", null, [createVNode("div", null, [(L = T.whDsc) != null ? L : " ", createTextVNode(" - "), (w = T.whId) != null ? w : " "]), createVNode("div", {
12032
12145
  class: "address"
12033
- }, [(k = C.adrId) != null ? k : " "])]);
12146
+ }, [(k = T.adrId) != null ? k : " "])]);
12034
12147
  }
12035
12148
  }]), c = ref([]), g = computed(() => {
12036
- var C;
12037
- const I = (C = o.value) == null ? void 0 : C.toUpperCase();
12149
+ var T;
12150
+ const A = (T = o.value) == null ? void 0 : T.toUpperCase();
12038
12151
  return c.value.filter((L) => {
12039
- var w, k, M, E, R, N;
12040
- return ((k = (w = L.whDsc) == null ? void 0 : w.toUpperCase()) == null ? void 0 : k.includes(I)) || ((E = (M = L.whId) == null ? void 0 : M.toUpperCase()) == null ? void 0 : E.includes(I)) || ((N = (R = L.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : N.includes(I));
12152
+ var w, k, M, E, R, V;
12153
+ return ((k = (w = L.whDsc) == null ? void 0 : w.toUpperCase()) == null ? void 0 : k.includes(A)) || ((E = (M = L.whId) == null ? void 0 : M.toUpperCase()) == null ? void 0 : E.includes(A)) || ((V = (R = L.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : V.includes(A));
12041
12154
  });
12042
12155
  }), m = computed(() => {
12043
- var I, C;
12044
- return ((C = (I = r.option.value) == null ? void 0 : I.KgWarehouse) == null ? void 0 : C.enable) !== !1;
12156
+ var A, T;
12157
+ return ((T = (A = r.option.value) == null ? void 0 : A.KgWarehouse) == null ? void 0 : T.enable) !== !1;
12045
12158
  });
12046
- watch(n.visible, (I) => {
12047
- !m.value || (I ? _() : y());
12159
+ watch(n.visible, (A) => {
12160
+ !m.value || (A ? _() : b());
12048
12161
  }, {
12049
12162
  immediate: !0
12050
12163
  }), onMounted(() => {
@@ -12054,14 +12167,14 @@ const KgWarehouse$1 = "", getProps = () => ({
12054
12167
  !m.value || n.store.setVisible(!0);
12055
12168
  }
12056
12169
  function _() {
12057
- i.value = n.warehouse.value, b();
12170
+ i.value = n.warehouse.value, y();
12058
12171
  }
12059
- function y() {
12172
+ function b() {
12060
12173
  o.value = "", c.value = [], i.value = null;
12061
12174
  }
12062
12175
  function v() {
12063
- var I;
12064
- !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((I = n.warehouse.value) == null ? void 0 : I.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
12176
+ var A;
12177
+ !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((A = n.warehouse.value) == null ? void 0 : A.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
12065
12178
  content: r.t("kg.KgWarehouse.reloadMessage"),
12066
12179
  kgHideCancelButton: !0,
12067
12180
  okButtonProps: {
@@ -12073,30 +12186,30 @@ const KgWarehouse$1 = "", getProps = () => ({
12073
12186
  }
12074
12187
  })), n.store.setVisible(!1));
12075
12188
  }
12076
- async function b() {
12189
+ async function y() {
12077
12190
  l.value = !0;
12078
12191
  try {
12079
12192
  const {
12080
- records: I
12193
+ records: A
12081
12194
  } = await ListVO({
12082
12195
  params: {
12083
12196
  pageNo: 1,
12084
12197
  pageSize: 999
12085
12198
  }
12086
12199
  });
12087
- c.value = I != null ? I : [];
12088
- } catch (I) {
12089
- console.error(I);
12200
+ c.value = A != null ? A : [];
12201
+ } catch (A) {
12202
+ console.error(A);
12090
12203
  } finally {
12091
12204
  l.value = !1;
12092
12205
  }
12093
12206
  }
12094
- function T(I) {
12095
- var C;
12096
- ((C = i.value) == null ? void 0 : C.id) === I.id ? i.value = null : i.value = I;
12207
+ function C(A) {
12208
+ var T;
12209
+ ((T = i.value) == null ? void 0 : T.id) === A.id ? i.value = null : i.value = A;
12097
12210
  }
12098
- function O(I) {
12099
- i.value = I, v();
12211
+ function O(A) {
12212
+ i.value = A, v();
12100
12213
  }
12101
12214
  function P() {
12102
12215
  return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
@@ -12104,12 +12217,12 @@ const KgWarehouse$1 = "", getProps = () => ({
12104
12217
  placement: "bottomRight"
12105
12218
  }, {
12106
12219
  default: () => {
12107
- var I, C;
12108
- return [((I = s.value) == null ? void 0 : I.whDsc) || ((C = s.value) == null ? void 0 : C.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
12220
+ var A, T;
12221
+ return [((A = s.value) == null ? void 0 : A.whDsc) || ((T = s.value) == null ? void 0 : T.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
12109
12222
  }
12110
12223
  }), createVNode(KgModal, {
12111
12224
  visible: n.visible.value,
12112
- "onUpdate:visible": (I) => n.store.setVisible(I),
12225
+ "onUpdate:visible": (A) => n.store.setVisible(A),
12113
12226
  title: r.t("kg.KgWarehouse.title"),
12114
12227
  width: "500px",
12115
12228
  kgFullHeight: !1,
@@ -12126,7 +12239,7 @@ const KgWarehouse$1 = "", getProps = () => ({
12126
12239
  }, {
12127
12240
  default: () => [createVNode(Input, {
12128
12241
  value: o.value,
12129
- "onUpdate:value": (I) => o.value = I,
12242
+ "onUpdate:value": (A) => o.value = A,
12130
12243
  allowClear: !0,
12131
12244
  disabled: l.value,
12132
12245
  placeholder: r.t("kg.search")
@@ -12146,12 +12259,12 @@ const KgWarehouse$1 = "", getProps = () => ({
12146
12259
  dataSource: g.value,
12147
12260
  columns: u,
12148
12261
  class: "kg-flex-table",
12149
- customRow: (I) => {
12150
- var C;
12262
+ customRow: (A) => {
12263
+ var T;
12151
12264
  return {
12152
- class: I.id === ((C = i.value) == null ? void 0 : C.id) ? "selected" : "",
12153
- onClick: () => T(I),
12154
- onDblclick: () => O(I)
12265
+ class: A.id === ((T = i.value) == null ? void 0 : T.id) ? "selected" : "",
12266
+ onClick: () => C(A),
12267
+ onDblclick: () => O(A)
12155
12268
  };
12156
12269
  }
12157
12270
  }, null)]
@@ -12212,6 +12325,7 @@ export {
12212
12325
  KG_DI_HOST_FORM_ID,
12213
12326
  KG_DI_LOOKUP_ID,
12214
12327
  KG_DI_VAR_NAME,
12328
+ KG_EXCEL_SUFFIX,
12215
12329
  KG_POSSIBILITY_DATA_TYPE,
12216
12330
  KG_SUBMIT_LAYOUT,
12217
12331
  KG_TABLE_TD_CHECK_WIDTH,