@kengic/vue 0.5.23 → 0.5.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  var Te = Object.defineProperty;
2
2
  var Ee = (e, t, r) => t in e ? Te(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var d = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { h, nextTick, createVNode, defineComponent, ref, Fragment, computed, unref, createTextVNode, getCurrentInstance, inject, markRaw, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, onUnmounted, toRefs, provide, mergeProps, onMounted, isVNode, Teleport, getCurrentScope, onScopeDispose } from "vue";
5
- import { Button, Modal, Progress, Spin, DatePicker, Input, InputNumber, Select, Switch, Col, Form, Drawer, Row, Divider, message, Tag, Tabs, Dropdown, Menu, Checkbox, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane, Tooltip } from "ant-design-vue";
4
+ import { h, nextTick, createVNode, defineComponent, ref, Fragment, computed, unref, createTextVNode, getCurrentInstance, inject, markRaw, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, onUnmounted, toRefs, provide, isVNode, mergeProps, onMounted, Teleport, getCurrentScope, onScopeDispose } from "vue";
5
+ import { Button, Modal, Progress, Spin, Form, Checkbox, Divider, DatePicker, Input, InputNumber, Select, Switch, Col, Drawer, Row, message, Tag, Tabs, Dropdown, Menu, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane, Tooltip } from "ant-design-vue";
6
6
  const index$7 = "";
7
7
  let _httpClient = null;
8
8
  function setupHttpClient(e) {
@@ -2385,17 +2385,17 @@ function baseClone(e, t, r, n, a, o) {
2385
2385
  }
2386
2386
  }
2387
2387
  o || (o = new Stack());
2388
- var m = o.get(e);
2389
- if (m)
2390
- return m;
2388
+ var _ = o.get(e);
2389
+ if (_)
2390
+ return _;
2391
2391
  o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
2392
2392
  s.add(baseClone(v, t, r, v, e, o));
2393
- }) : isMap$1(e) && e.forEach(function(v, y) {
2394
- s.set(y, baseClone(v, t, r, y, e, o));
2393
+ }) : isMap$1(e) && e.forEach(function(v, b) {
2394
+ s.set(b, baseClone(v, t, r, b, e, o));
2395
2395
  });
2396
- var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = c ? void 0 : b(e);
2397
- return arrayEach(_ || e, function(v, y) {
2398
- _ && (y = v, v = e[y]), assignValue(s, y, baseClone(v, t, r, y, e, o));
2396
+ var y = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : y(e);
2397
+ return arrayEach(m || e, function(v, b) {
2398
+ m && (b = v, v = e[b]), assignValue(s, b, baseClone(v, t, r, b, e, o));
2399
2399
  }), s;
2400
2400
  }
2401
2401
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2433,26 +2433,26 @@ function equalArrays(e, t, r, n, a, o) {
2433
2433
  var u = o.get(e), c = o.get(t);
2434
2434
  if (u && c)
2435
2435
  return u == t && c == e;
2436
- var g = -1, p = !0, m = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2436
+ var g = -1, p = !0, _ = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2437
2437
  for (o.set(e, t), o.set(t, e); ++g < i; ) {
2438
- var b = e[g], _ = t[g];
2438
+ var y = e[g], m = t[g];
2439
2439
  if (n)
2440
- var v = s ? n(_, b, g, t, e, o) : n(b, _, g, e, t, o);
2440
+ var v = s ? n(m, y, g, t, e, o) : n(y, m, g, e, t, o);
2441
2441
  if (v !== void 0) {
2442
2442
  if (v)
2443
2443
  continue;
2444
2444
  p = !1;
2445
2445
  break;
2446
2446
  }
2447
- if (m) {
2448
- if (!arraySome(t, function(y, C) {
2449
- if (!cacheHas(m, C) && (b === y || a(b, y, r, n, o)))
2450
- return m.push(C);
2447
+ if (_) {
2448
+ if (!arraySome(t, function(b, C) {
2449
+ if (!cacheHas(_, C) && (y === b || a(y, b, r, n, o)))
2450
+ return _.push(C);
2451
2451
  })) {
2452
2452
  p = !1;
2453
2453
  break;
2454
2454
  }
2455
- } else if (!(b === _ || a(b, _, r, n, o))) {
2455
+ } else if (!(y === m || a(y, m, r, n, o))) {
2456
2456
  p = !1;
2457
2457
  break;
2458
2458
  }
@@ -2517,27 +2517,27 @@ function equalObjects(e, t, r, n, a, o) {
2517
2517
  if (!(s ? p in t : hasOwnProperty$1.call(t, p)))
2518
2518
  return !1;
2519
2519
  }
2520
- var m = o.get(e), b = o.get(t);
2521
- if (m && b)
2522
- return m == t && b == e;
2523
- var _ = !0;
2520
+ var _ = o.get(e), y = o.get(t);
2521
+ if (_ && y)
2522
+ return _ == t && y == e;
2523
+ var m = !0;
2524
2524
  o.set(e, t), o.set(t, e);
2525
2525
  for (var v = s; ++g < l; ) {
2526
2526
  p = i[g];
2527
- var y = e[p], C = t[p];
2527
+ var b = e[p], C = t[p];
2528
2528
  if (n)
2529
- var T = s ? n(C, y, p, t, e, o) : n(y, C, p, e, t, o);
2530
- if (!(T === void 0 ? y === C || a(y, C, r, n, o) : T)) {
2531
- _ = !1;
2529
+ var T = s ? n(C, b, p, t, e, o) : n(b, C, p, e, t, o);
2530
+ if (!(T === void 0 ? b === C || a(b, C, r, n, o) : T)) {
2531
+ m = !1;
2532
2532
  break;
2533
2533
  }
2534
2534
  v || (v = p == "constructor");
2535
2535
  }
2536
- if (_ && !v) {
2537
- var E = e.constructor, w = t.constructor;
2538
- E != w && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof w == "function" && w instanceof w) && (_ = !1);
2536
+ if (m && !v) {
2537
+ var E = e.constructor, O = t.constructor;
2538
+ E != O && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof O == "function" && O instanceof O) && (m = !1);
2539
2539
  }
2540
- return o.delete(e), o.delete(t), _;
2540
+ return o.delete(e), o.delete(t), m;
2541
2541
  }
2542
2542
  var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
2543
2543
  function baseIsEqualDeep(e, t, r, n, a, o) {
@@ -2552,10 +2552,10 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
2552
2552
  if (p && !c)
2553
2553
  return o || (o = new Stack()), s || isTypedArray$1(e) ? equalArrays(e, t, r, n, a, o) : equalByTag(e, t, l, r, n, a, o);
2554
2554
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
2555
- var m = c && hasOwnProperty.call(e, "__wrapped__"), b = g && hasOwnProperty.call(t, "__wrapped__");
2556
- if (m || b) {
2557
- var _ = m ? e.value() : e, v = b ? t.value() : t;
2558
- return o || (o = new Stack()), a(_, v, r, n, o);
2555
+ var _ = c && hasOwnProperty.call(e, "__wrapped__"), y = g && hasOwnProperty.call(t, "__wrapped__");
2556
+ if (_ || y) {
2557
+ var m = _ ? e.value() : e, v = y ? t.value() : t;
2558
+ return o || (o = new Stack()), a(m, v, r, n, o);
2559
2559
  }
2560
2560
  }
2561
2561
  return p ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
@@ -2738,6 +2738,36 @@ var stringTag = "[object String]";
2738
2738
  function isString$1(e) {
2739
2739
  return typeof e == "string" || !isArray$1(e) && isObjectLike(e) && baseGetTag(e) == stringTag;
2740
2740
  }
2741
+ var nativeMin = Math.min;
2742
+ function baseIntersection(e, t, r) {
2743
+ for (var n = r ? arrayIncludesWith : arrayIncludes, a = e[0].length, o = e.length, s = o, i = Array(o), l = 1 / 0, u = []; s--; ) {
2744
+ var c = e[s];
2745
+ s && t && (c = arrayMap(c, baseUnary(t))), l = nativeMin(c.length, l), i[s] = !r && (t || a >= 120 && c.length >= 120) ? new SetCache(s && c) : void 0;
2746
+ }
2747
+ c = e[0];
2748
+ var g = -1, p = i[0];
2749
+ e:
2750
+ for (; ++g < a && u.length < l; ) {
2751
+ var _ = c[g], y = t ? t(_) : _;
2752
+ if (_ = r || _ !== 0 ? _ : 0, !(p ? cacheHas(p, y) : n(u, y, r))) {
2753
+ for (s = o; --s; ) {
2754
+ var m = i[s];
2755
+ if (!(m ? cacheHas(m, y) : n(e[s], y, r)))
2756
+ continue e;
2757
+ }
2758
+ p && p.push(y), u.push(_);
2759
+ }
2760
+ }
2761
+ return u;
2762
+ }
2763
+ function castArrayLikeObject(e) {
2764
+ return isArrayLikeObject(e) ? e : [];
2765
+ }
2766
+ var intersection = baseRest(function(e) {
2767
+ var t = arrayMap(e, castArrayLikeObject);
2768
+ return t.length && t[0] === e[0] ? baseIntersection(t) : [];
2769
+ });
2770
+ const intersection$1 = intersection;
2741
2771
  function isNil(e) {
2742
2772
  return e == null;
2743
2773
  }
@@ -3250,8 +3280,8 @@ function generate$1(e) {
3250
3280
  r.push(u);
3251
3281
  }
3252
3282
  return t.theme === "dark" ? darkColorMap.map(function(c) {
3253
- var g = c.index, p = c.opacity, m = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3254
- return m;
3283
+ var g = c.index, p = c.opacity, _ = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3284
+ return _;
3255
3285
  }) : r;
3256
3286
  }
3257
3287
  var presetPrimaryColors = {
@@ -3607,22 +3637,22 @@ function _objectWithoutPropertiesLoose(e, t) {
3607
3637
  }
3608
3638
  setTwoToneColor("#1890ff");
3609
3639
  var Icon$1 = function(t, r) {
3610
- 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, p = _objectWithoutProperties(a, _excluded), m = (n = {
3640
+ 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, p = _objectWithoutProperties(a, _excluded), _ = (n = {
3611
3641
  anticon: !0
3612
- }, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), b = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", _ = u;
3613
- _ === void 0 && g && (_ = -1, p.tabindex = _);
3642
+ }, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), y = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", m = u;
3643
+ m === void 0 && g && (m = -1, p.tabindex = m);
3614
3644
  var v = l ? {
3615
3645
  msTransform: "rotate(".concat(l, "deg)"),
3616
3646
  transform: "rotate(".concat(l, "deg)")
3617
- } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0], E = C[1];
3647
+ } : void 0, b = normalizeTwoToneColors(c), C = _slicedToArray(b, 2), T = C[0], E = C[1];
3618
3648
  return createVNode("span", _objectSpread$i({
3619
3649
  role: "img",
3620
3650
  "aria-label": s.name
3621
3651
  }, p, {
3622
3652
  onClick: g,
3623
- class: m
3653
+ class: _
3624
3654
  }), [createVNode(VueIcon, {
3625
- class: b,
3655
+ class: y,
3626
3656
  icon: s,
3627
3657
  primaryColor: T,
3628
3658
  secondaryColor: E,
@@ -4306,15 +4336,15 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4306
4336
  KgTableSettingGridConfigModal: {
4307
4337
  title: "Config Grid"
4308
4338
  },
4309
- KgTableSettingVarGridMasterSaveAs: {
4310
- title: "Save Grid View As"
4311
- },
4312
4339
  KgTableSettingVarGridConfig: {
4313
4340
  emptyPageSizeOptions: "Can't be empty",
4314
4341
  invalidCommandParameter: `Must be a JSON string, such as: {'{'}"pageSize":10{'}'}`,
4315
4342
  invalidPageSizeOption: "Not within the options",
4316
4343
  invalidPageSizeOptions: "Must be a number array, such as: [10, 20, 30]"
4317
4344
  },
4345
+ KgTableSettingVarGridMasterSaveAs: {
4346
+ title: "Save Grid View As"
4347
+ },
4318
4348
  KgVarConfig: {
4319
4349
  action: "Action",
4320
4350
  allForm: "All Form",
@@ -4390,7 +4420,9 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4390
4420
  reset: "Reset",
4391
4421
  save: "Save",
4392
4422
  search: "Search",
4423
+ selectAll: "Select All",
4393
4424
  show: "Show",
4425
+ succeed: " Succeed.",
4394
4426
  tip: "Info",
4395
4427
  update: "Update",
4396
4428
  updateSuccess: "Update Successfully",
@@ -4523,7 +4555,9 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4523
4555
  reset: "\u91CD\u7F6E",
4524
4556
  save: "\u4FDD\u5B58",
4525
4557
  search: "\u641C\u7D22",
4558
+ selectAll: "\u5168\u9009",
4526
4559
  show: "\u663E\u793A",
4560
+ succeed: "\u6210\u529F.",
4527
4561
  tip: "\u63D0\u793A",
4528
4562
  update: "\u66F4\u65B0",
4529
4563
  updateSuccess: "\u66F4\u65B0\u6210\u529F",
@@ -4534,7 +4568,7 @@ var KG_APP = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "data-manager", e.BUSINES
4534
4568
  const KG_APPS = ["data-manager", "business-manager", "sys"];
4535
4569
  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 || {});
4536
4570
  const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/sys"];
4537
- var KG_FORM_ITEM_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.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), 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 || {});
4571
+ var KG_FORM_ITEM_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.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", 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.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), 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 || {});
4538
4572
  function isPathInApp(e, t) {
4539
4573
  var r, n;
4540
4574
  switch (t) {
@@ -4581,60 +4615,60 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4581
4615
  (function(r, n) {
4582
4616
  e.exports = n();
4583
4617
  })(commonjsGlobal, function() {
4584
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "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(M) {
4585
- var I = ["th", "st", "nd", "rd"], O = M % 100;
4586
- return "[" + M + (I[(O - 20) % 10] || I[O] || I[0]) + "]";
4587
- } }, T = function(M, I, O) {
4588
- var N = String(M);
4589
- return !N || N.length >= I ? M : "" + Array(I + 1 - N.length).join(O) + M;
4590
- }, E = { s: T, z: function(M) {
4591
- var I = -M.utcOffset(), O = Math.abs(I), N = Math.floor(O / 60), L = O % 60;
4592
- return (I <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(L, 2, "0");
4593
- }, m: function M(I, O) {
4594
- if (I.date() < O.date())
4595
- return -M(O, I);
4596
- var N = 12 * (O.year() - I.year()) + (O.month() - I.month()), L = I.clone().add(N, g), G = O - L < 0, P = I.clone().add(N + (G ? -1 : 1), g);
4597
- return +(-(N + (O - L) / (G ? L - P : P - L)) || 0);
4598
- }, a: function(M) {
4599
- return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
4600
- }, p: function(M) {
4601
- return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[M] || String(M || "").toLowerCase().replace(/s$/, "");
4602
- }, u: function(M) {
4603
- return M === void 0;
4604
- } }, w = "en", k = {};
4605
- k[w] = C;
4606
- var F = function(M) {
4607
- return M instanceof U;
4608
- }, R = function M(I, O, N) {
4618
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", y = "date", m = "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, 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(A) {
4619
+ var M = ["th", "st", "nd", "rd"], $ = A % 100;
4620
+ return "[" + A + (M[($ - 20) % 10] || M[$] || M[0]) + "]";
4621
+ } }, T = function(A, M, $) {
4622
+ var N = String(A);
4623
+ return !N || N.length >= M ? A : "" + Array(M + 1 - N.length).join($) + A;
4624
+ }, E = { s: T, z: function(A) {
4625
+ var M = -A.utcOffset(), $ = Math.abs(M), N = Math.floor($ / 60), L = $ % 60;
4626
+ return (M <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(L, 2, "0");
4627
+ }, m: function A(M, $) {
4628
+ if (M.date() < $.date())
4629
+ return -A($, M);
4630
+ var N = 12 * ($.year() - M.year()) + ($.month() - M.month()), L = M.clone().add(N, g), G = $ - L < 0, P = M.clone().add(N + (G ? -1 : 1), g);
4631
+ return +(-(N + ($ - L) / (G ? L - P : P - L)) || 0);
4632
+ }, a: function(A) {
4633
+ return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
4634
+ }, p: function(A) {
4635
+ return { M: g, y: _, w: c, d: u, D: y, h: l, m: i, s, ms: o, Q: p }[A] || String(A || "").toLowerCase().replace(/s$/, "");
4636
+ }, u: function(A) {
4637
+ return A === void 0;
4638
+ } }, O = "en", k = {};
4639
+ k[O] = C;
4640
+ var F = function(A) {
4641
+ return A instanceof U;
4642
+ }, R = function A(M, $, N) {
4609
4643
  var L;
4610
- if (!I)
4611
- return w;
4612
- if (typeof I == "string") {
4613
- var G = I.toLowerCase();
4614
- k[G] && (L = G), O && (k[G] = O, L = G);
4615
- var P = I.split("-");
4644
+ if (!M)
4645
+ return O;
4646
+ if (typeof M == "string") {
4647
+ var G = M.toLowerCase();
4648
+ k[G] && (L = G), $ && (k[G] = $, L = G);
4649
+ var P = M.split("-");
4616
4650
  if (!L && P.length > 1)
4617
- return M(P[0]);
4651
+ return A(P[0]);
4618
4652
  } else {
4619
- var B = I.name;
4620
- k[B] = I, L = B;
4621
- }
4622
- return !N && L && (w = L), L || !N && w;
4623
- }, $ = function(M, I) {
4624
- if (F(M))
4625
- return M.clone();
4626
- var O = typeof I == "object" ? I : {};
4627
- return O.date = M, O.args = arguments, new U(O);
4653
+ var B = M.name;
4654
+ k[B] = M, L = B;
4655
+ }
4656
+ return !N && L && (O = L), L || !N && O;
4657
+ }, V = function(A, M) {
4658
+ if (F(A))
4659
+ return A.clone();
4660
+ var $ = typeof M == "object" ? M : {};
4661
+ return $.date = A, $.args = arguments, new U($);
4628
4662
  }, D = E;
4629
- D.l = R, D.i = F, D.w = function(M, I) {
4630
- return $(M, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
4663
+ D.l = R, D.i = F, D.w = function(A, M) {
4664
+ return V(A, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
4631
4665
  };
4632
4666
  var U = function() {
4633
- function M(O) {
4634
- this.$L = R(O.locale, null, !0), this.parse(O);
4667
+ function A($) {
4668
+ this.$L = R($.locale, null, !0), this.parse($);
4635
4669
  }
4636
- var I = M.prototype;
4637
- return I.parse = function(O) {
4670
+ var M = A.prototype;
4671
+ return M.parse = function($) {
4638
4672
  this.$d = function(N) {
4639
4673
  var L = N.date, G = N.utc;
4640
4674
  if (L === null)
@@ -4651,36 +4685,36 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4651
4685
  }
4652
4686
  }
4653
4687
  return new Date(L);
4654
- }(O), this.$x = O.x || {}, this.init();
4655
- }, I.init = function() {
4656
- var O = this.$d;
4657
- this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
4658
- }, I.$utils = function() {
4688
+ }($), this.$x = $.x || {}, this.init();
4689
+ }, M.init = function() {
4690
+ var $ = this.$d;
4691
+ this.$y = $.getFullYear(), this.$M = $.getMonth(), this.$D = $.getDate(), this.$W = $.getDay(), this.$H = $.getHours(), this.$m = $.getMinutes(), this.$s = $.getSeconds(), this.$ms = $.getMilliseconds();
4692
+ }, M.$utils = function() {
4659
4693
  return D;
4660
- }, I.isValid = function() {
4661
- return this.$d.toString() !== _;
4662
- }, I.isSame = function(O, N) {
4663
- var L = $(O);
4694
+ }, M.isValid = function() {
4695
+ return this.$d.toString() !== m;
4696
+ }, M.isSame = function($, N) {
4697
+ var L = V($);
4664
4698
  return this.startOf(N) <= L && L <= this.endOf(N);
4665
- }, I.isAfter = function(O, N) {
4666
- return $(O) < this.startOf(N);
4667
- }, I.isBefore = function(O, N) {
4668
- return this.endOf(N) < $(O);
4669
- }, I.$g = function(O, N, L) {
4670
- return D.u(O) ? this[N] : this.set(L, O);
4671
- }, I.unix = function() {
4699
+ }, M.isAfter = function($, N) {
4700
+ return V($) < this.startOf(N);
4701
+ }, M.isBefore = function($, N) {
4702
+ return this.endOf(N) < V($);
4703
+ }, M.$g = function($, N, L) {
4704
+ return D.u($) ? this[N] : this.set(L, $);
4705
+ }, M.unix = function() {
4672
4706
  return Math.floor(this.valueOf() / 1e3);
4673
- }, I.valueOf = function() {
4707
+ }, M.valueOf = function() {
4674
4708
  return this.$d.getTime();
4675
- }, I.startOf = function(O, N) {
4676
- var L = this, G = !!D.u(N) || N, P = D.p(O), B = function(ae, V) {
4677
- var x = D.w(L.$u ? Date.UTC(L.$y, V, ae) : new Date(L.$y, V, ae), L);
4709
+ }, M.startOf = function($, N) {
4710
+ var L = this, G = !!D.u(N) || N, P = D.p($), B = function(ae, w) {
4711
+ var x = D.w(L.$u ? Date.UTC(L.$y, w, ae) : new Date(L.$y, w, ae), L);
4678
4712
  return G ? x : x.endOf(u);
4679
- }, z = function(ae, V) {
4680
- return D.w(L.toDate()[ae].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), L);
4713
+ }, z = function(ae, w) {
4714
+ return D.w(L.toDate()[ae].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(w)), L);
4681
4715
  }, Y = this.$W, X = this.$M, re = this.$D, ee = "set" + (this.$u ? "UTC" : "");
4682
4716
  switch (P) {
4683
- case m:
4717
+ case _:
4684
4718
  return G ? B(1, 0) : B(31, 11);
4685
4719
  case g:
4686
4720
  return G ? B(1, X) : B(0, X + 1);
@@ -4688,7 +4722,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4688
4722
  var ue = this.$locale().weekStart || 0, ce = (Y < ue ? Y + 7 : Y) - ue;
4689
4723
  return B(G ? re - ce : re + (6 - ce), X);
4690
4724
  case u:
4691
- case b:
4725
+ case y:
4692
4726
  return z(ee + "Hours", 0);
4693
4727
  case l:
4694
4728
  return z(ee + "Minutes", 1);
@@ -4699,89 +4733,89 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4699
4733
  default:
4700
4734
  return this.clone();
4701
4735
  }
4702
- }, I.endOf = function(O) {
4703
- return this.startOf(O, !1);
4704
- }, I.$set = function(O, N) {
4705
- var L, G = D.p(O), P = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = P + "Date", L[b] = P + "Date", L[g] = P + "Month", L[m] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], z = G === u ? this.$D + (N - this.$W) : N;
4706
- if (G === g || G === m) {
4707
- var Y = this.clone().set(b, 1);
4708
- Y.$d[B](z), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4736
+ }, M.endOf = function($) {
4737
+ return this.startOf($, !1);
4738
+ }, M.$set = function($, N) {
4739
+ var L, G = D.p($), P = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = P + "Date", L[y] = P + "Date", L[g] = P + "Month", L[_] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], z = G === u ? this.$D + (N - this.$W) : N;
4740
+ if (G === g || G === _) {
4741
+ var Y = this.clone().set(y, 1);
4742
+ Y.$d[B](z), Y.init(), this.$d = Y.set(y, Math.min(this.$D, Y.daysInMonth())).$d;
4709
4743
  } else
4710
4744
  B && this.$d[B](z);
4711
4745
  return this.init(), this;
4712
- }, I.set = function(O, N) {
4713
- return this.clone().$set(O, N);
4714
- }, I.get = function(O) {
4715
- return this[D.p(O)]();
4716
- }, I.add = function(O, N) {
4746
+ }, M.set = function($, N) {
4747
+ return this.clone().$set($, N);
4748
+ }, M.get = function($) {
4749
+ return this[D.p($)]();
4750
+ }, M.add = function($, N) {
4717
4751
  var L, G = this;
4718
- O = Number(O);
4752
+ $ = Number($);
4719
4753
  var P = D.p(N), B = function(X) {
4720
- var re = $(G);
4721
- return D.w(re.date(re.date() + Math.round(X * O)), G);
4754
+ var re = V(G);
4755
+ return D.w(re.date(re.date() + Math.round(X * $)), G);
4722
4756
  };
4723
4757
  if (P === g)
4724
- return this.set(g, this.$M + O);
4725
- if (P === m)
4726
- return this.set(m, this.$y + O);
4758
+ return this.set(g, this.$M + $);
4759
+ if (P === _)
4760
+ return this.set(_, this.$y + $);
4727
4761
  if (P === u)
4728
4762
  return B(1);
4729
4763
  if (P === c)
4730
4764
  return B(7);
4731
- var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[P] || 1, Y = this.$d.getTime() + O * z;
4765
+ var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[P] || 1, Y = this.$d.getTime() + $ * z;
4732
4766
  return D.w(Y, this);
4733
- }, I.subtract = function(O, N) {
4734
- return this.add(-1 * O, N);
4735
- }, I.format = function(O) {
4767
+ }, M.subtract = function($, N) {
4768
+ return this.add(-1 * $, N);
4769
+ }, M.format = function($) {
4736
4770
  var N = this, L = this.$locale();
4737
4771
  if (!this.isValid())
4738
- return L.invalidDate || _;
4739
- var G = O || "YYYY-MM-DDTHH:mm:ssZ", P = D.z(this), B = this.$H, z = this.$m, Y = this.$M, X = L.weekdays, re = L.months, ee = function(V, x, W, q) {
4740
- return V && (V[x] || V(N, G)) || W[x].slice(0, q);
4741
- }, ue = function(V) {
4742
- return D.s(B % 12 || 12, V, "0");
4743
- }, ce = L.meridiem || function(V, x, W) {
4744
- var q = V < 12 ? "AM" : "PM";
4772
+ return L.invalidDate || m;
4773
+ var G = $ || "YYYY-MM-DDTHH:mm:ssZ", P = D.z(this), B = this.$H, z = this.$m, Y = this.$M, X = L.weekdays, re = L.months, ee = function(w, x, W, q) {
4774
+ return w && (w[x] || w(N, G)) || W[x].slice(0, q);
4775
+ }, ue = function(w) {
4776
+ return D.s(B % 12 || 12, w, "0");
4777
+ }, ce = L.meridiem || function(w, x, W) {
4778
+ var q = w < 12 ? "AM" : "PM";
4745
4779
  return W ? q.toLowerCase() : q;
4746
4780
  }, ae = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: ee(L.monthsShort, Y, re, 3), MMMM: ee(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(L.weekdaysMin, this.$W, X, 2), ddd: ee(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ue(1), hh: ue(2), a: ce(B, z, !0), A: ce(B, z, !1), m: String(z), mm: D.s(z, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: P };
4747
- return G.replace(y, function(V, x) {
4748
- return x || ae[V] || P.replace(":", "");
4781
+ return G.replace(b, function(w, x) {
4782
+ return x || ae[w] || P.replace(":", "");
4749
4783
  });
4750
- }, I.utcOffset = function() {
4784
+ }, M.utcOffset = function() {
4751
4785
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4752
- }, I.diff = function(O, N, L) {
4753
- var G, P = D.p(N), B = $(O), z = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = D.m(this, B);
4754
- return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? X : D.a(X);
4755
- }, I.daysInMonth = function() {
4786
+ }, M.diff = function($, N, L) {
4787
+ var G, P = D.p(N), B = V($), z = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = D.m(this, B);
4788
+ return X = (G = {}, G[_] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? X : D.a(X);
4789
+ }, M.daysInMonth = function() {
4756
4790
  return this.endOf(g).$D;
4757
- }, I.$locale = function() {
4791
+ }, M.$locale = function() {
4758
4792
  return k[this.$L];
4759
- }, I.locale = function(O, N) {
4760
- if (!O)
4793
+ }, M.locale = function($, N) {
4794
+ if (!$)
4761
4795
  return this.$L;
4762
- var L = this.clone(), G = R(O, N, !0);
4796
+ var L = this.clone(), G = R($, N, !0);
4763
4797
  return G && (L.$L = G), L;
4764
- }, I.clone = function() {
4798
+ }, M.clone = function() {
4765
4799
  return D.w(this.$d, this);
4766
- }, I.toDate = function() {
4800
+ }, M.toDate = function() {
4767
4801
  return new Date(this.valueOf());
4768
- }, I.toJSON = function() {
4802
+ }, M.toJSON = function() {
4769
4803
  return this.isValid() ? this.toISOString() : null;
4770
- }, I.toISOString = function() {
4804
+ }, M.toISOString = function() {
4771
4805
  return this.$d.toISOString();
4772
- }, I.toString = function() {
4806
+ }, M.toString = function() {
4773
4807
  return this.$d.toUTCString();
4774
- }, M;
4775
- }(), A = U.prototype;
4776
- return $.prototype = A, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", b]].forEach(function(M) {
4777
- A[M[1]] = function(I) {
4778
- return this.$g(I, M[0], M[1]);
4808
+ }, A;
4809
+ }(), I = U.prototype;
4810
+ return V.prototype = I, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", y]].forEach(function(A) {
4811
+ I[A[1]] = function(M) {
4812
+ return this.$g(M, A[0], A[1]);
4779
4813
  };
4780
- }), $.extend = function(M, I) {
4781
- return M.$i || (M(I, U, $), M.$i = !0), $;
4782
- }, $.locale = R, $.isDayjs = F, $.unix = function(M) {
4783
- return $(1e3 * M);
4784
- }, $.en = k[w], $.Ls = k, $.p = {}, $;
4814
+ }), V.extend = function(A, M) {
4815
+ return A.$i || (A(M, U, V), A.$i = !0), V;
4816
+ }, V.locale = R, V.isDayjs = F, V.unix = function(A) {
4817
+ return V(1e3 * A);
4818
+ }, V.en = k[O], V.Ls = k, V.p = {}, V;
4785
4819
  });
4786
4820
  })(dayjs_min);
4787
4821
  const dayjs = dayjs_min.exports;
@@ -4821,36 +4855,36 @@ function filesize(e, {
4821
4855
  standard: c = EMPTY,
4822
4856
  output: g = STRING,
4823
4857
  fullform: p = !1,
4824
- fullforms: m = [],
4825
- exponent: b = -1,
4826
- roundingMethod: _ = ROUND,
4858
+ fullforms: _ = [],
4859
+ exponent: y = -1,
4860
+ roundingMethod: m = ROUND,
4827
4861
  precision: v = 0
4828
4862
  } = {}) {
4829
- let y = b, C = Number(e), T = [], E = 0, w = EMPTY;
4863
+ let b = y, C = Number(e), T = [], E = 0, O = EMPTY;
4830
4864
  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);
4831
- const k = n === 10 ? 1e3 : 1024, F = p === !0, R = C < 0, $ = Math[_];
4865
+ const k = n === 10 ? 1e3 : 1024, F = p === !0, R = C < 0, V = Math[m];
4832
4866
  if (typeof e != "bigint" && isNaN(e))
4833
4867
  throw new TypeError(INVALID_NUMBER);
4834
- if (typeof $ !== FUNCTION)
4868
+ if (typeof V !== FUNCTION)
4835
4869
  throw new TypeError(INVALID_ROUND);
4836
- if (R && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4837
- return y;
4870
+ if (R && (C = -C), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(C) / Math.log(k)), b < 0 && (b = 0)), b > 8 && (v > 0 && (v += 8 - b), b = 8), g === EXPONENT)
4871
+ return b;
4838
4872
  if (C === 0)
4839
- T[0] = 0, w = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4873
+ T[0] = 0, O = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][b];
4840
4874
  else {
4841
- E = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (E = E * 8, E >= k && y < 8 && (E = E / k, y++));
4842
- const D = Math.pow(10, y > 0 ? a : 0);
4843
- T[0] = $(E * D) / D, T[0] === k && y < 8 && b === -1 && (T[0] = 1, y++), w = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4875
+ E = C / (n === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (E = E * 8, E >= k && b < 8 && (E = E / k, b++));
4876
+ const D = Math.pow(10, b > 0 ? a : 0);
4877
+ T[0] = V(E * D) / D, T[0] === k && b < 8 && y === -1 && (T[0] = 1, b++), O = T[1] = n === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][b];
4844
4878
  }
4845
4879
  if (R && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
4846
- const D = i || PERIOD, U = T[0].toString().split(D), A = U[1] || EMPTY, M = A.length, I = a - M;
4847
- T[0] = `${U[0]}${D}${A.padEnd(M + I, ZERO)}`;
4880
+ const D = i || PERIOD, U = T[0].toString().split(D), I = U[1] || EMPTY, A = I.length, M = a - A;
4881
+ T[0] = `${U[0]}${D}${I.padEnd(A + M, ZERO)}`;
4848
4882
  }
4849
- return F && (T[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4883
+ return F && (T[1] = _[b] ? _[b] : STRINGS.fullform[c][b] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4850
4884
  value: T[0],
4851
4885
  symbol: T[1],
4852
- exponent: y,
4853
- unit: w
4886
+ exponent: b,
4887
+ unit: O
4854
4888
  } : T.join(l);
4855
4889
  }
4856
4890
  const data$6 = {
@@ -5132,41 +5166,41 @@ function iconToSVG(e, t) {
5132
5166
  height: r.height
5133
5167
  };
5134
5168
  let o = r.body;
5135
- [r, n].forEach((b) => {
5136
- const _ = [], v = b.hFlip, y = b.vFlip;
5137
- let C = b.rotate;
5138
- v ? y ? C += 2 : (_.push(
5169
+ [r, n].forEach((y) => {
5170
+ const m = [], v = y.hFlip, b = y.vFlip;
5171
+ let C = y.rotate;
5172
+ v ? b ? C += 2 : (m.push(
5139
5173
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
5140
- ), _.push("scale(-1 1)"), a.top = a.left = 0) : y && (_.push(
5174
+ ), m.push("scale(-1 1)"), a.top = a.left = 0) : b && (m.push(
5141
5175
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
5142
- ), _.push("scale(1 -1)"), a.top = a.left = 0);
5176
+ ), m.push("scale(1 -1)"), a.top = a.left = 0);
5143
5177
  let T;
5144
5178
  switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
5145
5179
  case 1:
5146
- T = a.height / 2 + a.top, _.unshift(
5180
+ T = a.height / 2 + a.top, m.unshift(
5147
5181
  "rotate(90 " + T.toString() + " " + T.toString() + ")"
5148
5182
  );
5149
5183
  break;
5150
5184
  case 2:
5151
- _.unshift(
5185
+ m.unshift(
5152
5186
  "rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
5153
5187
  );
5154
5188
  break;
5155
5189
  case 3:
5156
- T = a.width / 2 + a.left, _.unshift(
5190
+ T = a.width / 2 + a.left, m.unshift(
5157
5191
  "rotate(-90 " + T.toString() + " " + T.toString() + ")"
5158
5192
  );
5159
5193
  break;
5160
5194
  }
5161
- C % 2 === 1 && (a.left !== a.top && (T = a.left, a.left = a.top, a.top = T), a.width !== a.height && (T = a.width, a.width = a.height, a.height = T)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
5195
+ C % 2 === 1 && (a.left !== a.top && (T = a.left, a.left = a.top, a.top = T), a.width !== a.height && (T = a.width, a.width = a.height, a.height = T)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5162
5196
  });
5163
5197
  const s = n.width, i = n.height, l = a.width, u = a.height;
5164
5198
  let c, g;
5165
5199
  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);
5166
- const p = {}, m = (b, _) => {
5167
- isUnsetKeyword(_) || (p[b] = _.toString());
5200
+ const p = {}, _ = (y, m) => {
5201
+ isUnsetKeyword(m) || (p[y] = m.toString());
5168
5202
  };
5169
- return m("width", c), m("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5203
+ return _("width", c), _("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5170
5204
  attributes: p,
5171
5205
  body: o
5172
5206
  };
@@ -5447,20 +5481,20 @@ function sendQuery(e, t, r, n) {
5447
5481
  } else
5448
5482
  s = e.resources.slice(o).concat(e.resources.slice(0, o));
5449
5483
  const i = Date.now();
5450
- let l = "pending", u = 0, c, g = null, p = [], m = [];
5451
- typeof n == "function" && m.push(n);
5452
- function b() {
5484
+ let l = "pending", u = 0, c, g = null, p = [], _ = [];
5485
+ typeof n == "function" && _.push(n);
5486
+ function y() {
5453
5487
  g && (clearTimeout(g), g = null);
5454
5488
  }
5455
- function _() {
5456
- l === "pending" && (l = "aborted"), b(), p.forEach((k) => {
5489
+ function m() {
5490
+ l === "pending" && (l = "aborted"), y(), p.forEach((k) => {
5457
5491
  k.status === "pending" && (k.status = "aborted");
5458
5492
  }), p = [];
5459
5493
  }
5460
5494
  function v(k, F) {
5461
- F && (m = []), typeof k == "function" && m.push(k);
5495
+ F && (_ = []), typeof k == "function" && _.push(k);
5462
5496
  }
5463
- function y() {
5497
+ function b() {
5464
5498
  return {
5465
5499
  startTime: i,
5466
5500
  payload: t,
@@ -5468,11 +5502,11 @@ function sendQuery(e, t, r, n) {
5468
5502
  queriesSent: u,
5469
5503
  queriesPending: p.length,
5470
5504
  subscribe: v,
5471
- abort: _
5505
+ abort: m
5472
5506
  };
5473
5507
  }
5474
5508
  function C() {
5475
- l = "failed", m.forEach((k) => {
5509
+ l = "failed", _.forEach((k) => {
5476
5510
  k(void 0, c);
5477
5511
  });
5478
5512
  }
@@ -5482,12 +5516,12 @@ function sendQuery(e, t, r, n) {
5482
5516
  }), p = [];
5483
5517
  }
5484
5518
  function E(k, F, R) {
5485
- const $ = F !== "success";
5519
+ const V = F !== "success";
5486
5520
  switch (p = p.filter((D) => D !== k), l) {
5487
5521
  case "pending":
5488
5522
  break;
5489
5523
  case "failed":
5490
- if ($ || !e.dataAfterTimeout)
5524
+ if (V || !e.dataAfterTimeout)
5491
5525
  return;
5492
5526
  break;
5493
5527
  default:
@@ -5497,27 +5531,27 @@ function sendQuery(e, t, r, n) {
5497
5531
  c = R, C();
5498
5532
  return;
5499
5533
  }
5500
- if ($) {
5501
- c = R, p.length || (s.length ? w() : C());
5534
+ if (V) {
5535
+ c = R, p.length || (s.length ? O() : C());
5502
5536
  return;
5503
5537
  }
5504
- if (b(), T(), !e.random) {
5538
+ if (y(), T(), !e.random) {
5505
5539
  const D = e.resources.indexOf(k.resource);
5506
5540
  D !== -1 && D !== e.index && (e.index = D);
5507
5541
  }
5508
- l = "completed", m.forEach((D) => {
5542
+ l = "completed", _.forEach((D) => {
5509
5543
  D(R);
5510
5544
  });
5511
5545
  }
5512
- function w() {
5546
+ function O() {
5513
5547
  if (l !== "pending")
5514
5548
  return;
5515
- b();
5549
+ y();
5516
5550
  const k = s.shift();
5517
5551
  if (k === void 0) {
5518
5552
  if (p.length) {
5519
5553
  g = setTimeout(() => {
5520
- b(), l === "pending" && (T(), C());
5554
+ y(), l === "pending" && (T(), C());
5521
5555
  }, e.timeout);
5522
5556
  return;
5523
5557
  }
@@ -5527,13 +5561,13 @@ function sendQuery(e, t, r, n) {
5527
5561
  const F = {
5528
5562
  status: "pending",
5529
5563
  resource: k,
5530
- callback: (R, $) => {
5531
- E(F, R, $);
5564
+ callback: (R, V) => {
5565
+ E(F, R, V);
5532
5566
  }
5533
5567
  };
5534
- p.push(F), u++, g = setTimeout(w, e.rotate), r(k, t, F.callback);
5568
+ p.push(F), u++, g = setTimeout(O, e.rotate), r(k, t, F.callback);
5535
5569
  }
5536
- return setTimeout(w), y;
5570
+ return setTimeout(O), b;
5537
5571
  }
5538
5572
  function initRedundancy(e) {
5539
5573
  const t = {
@@ -5798,8 +5832,8 @@ const loadIcons = (e, t) => {
5798
5832
  const g = a[u] || (a[u] = /* @__PURE__ */ Object.create(null));
5799
5833
  g[c] || (g[c] = []);
5800
5834
  }), n.pending.forEach((l) => {
5801
- const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), m = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
5802
- m.has(g) || (m.add(g), a[u][c].push(g));
5835
+ const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), _ = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
5836
+ _.has(g) || (_.add(g), a[u][c].push(g));
5803
5837
  }), o.forEach((l) => {
5804
5838
  const { provider: u, prefix: c } = l;
5805
5839
  a[u][c].length && loadNewIcons(l, a[u][c]);
@@ -5907,10 +5941,10 @@ function fixSize(e) {
5907
5941
  }
5908
5942
  const render = (e, t) => {
5909
5943
  const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
5910
- for (let _ in t) {
5911
- const v = t[_];
5944
+ for (let m in t) {
5945
+ const v = t[m];
5912
5946
  if (v !== void 0)
5913
- switch (_) {
5947
+ switch (m) {
5914
5948
  case "icon":
5915
5949
  case "style":
5916
5950
  case "onLoad":
@@ -5919,7 +5953,7 @@ const render = (e, t) => {
5919
5953
  case "inline":
5920
5954
  case "hFlip":
5921
5955
  case "vFlip":
5922
- r[_] = v === !0 || v === "true" || v === 1;
5956
+ r[m] = v === !0 || v === "true" || v === 1;
5923
5957
  break;
5924
5958
  case "flip":
5925
5959
  typeof v == "string" && flipFromString(r, v);
@@ -5928,15 +5962,15 @@ const render = (e, t) => {
5928
5962
  o.color = v;
5929
5963
  break;
5930
5964
  case "rotate":
5931
- typeof v == "string" ? r[_] = rotateFromString(v) : typeof v == "number" && (r[_] = v);
5965
+ typeof v == "string" ? r[m] = rotateFromString(v) : typeof v == "number" && (r[m] = v);
5932
5966
  break;
5933
5967
  case "ariaHidden":
5934
5968
  case "aria-hidden":
5935
5969
  v !== !0 && v !== "true" && delete n["aria-hidden"];
5936
5970
  break;
5937
5971
  default: {
5938
- const y = customisationAliases[_];
5939
- y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[_] === void 0 && (n[_] = v);
5972
+ const b = customisationAliases[m];
5973
+ b ? (v === !0 || v === "true" || v === 1) && (r[b] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
5940
5974
  }
5941
5975
  }
5942
5976
  }
@@ -5946,21 +5980,21 @@ const render = (e, t) => {
5946
5980
  ...o,
5947
5981
  ...i
5948
5982
  }, Object.assign(n, u);
5949
- let _ = 0, v = t.id;
5950
- return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + _++ : "iconifyVue"), h("svg", n);
5983
+ let m = 0, v = t.id;
5984
+ return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + m++ : "iconifyVue"), h("svg", n);
5951
5985
  }
5952
- const { body: c, width: g, height: p } = e, m = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
5986
+ const { body: c, width: g, height: p } = e, _ = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), y = iconToHTML(c, {
5953
5987
  ...u,
5954
5988
  width: g + "",
5955
5989
  height: p + ""
5956
5990
  });
5957
5991
  return n.style = {
5958
5992
  ...o,
5959
- "--svg": svgToURL(b),
5993
+ "--svg": svgToURL(y),
5960
5994
  width: fixSize(u.width),
5961
5995
  height: fixSize(u.height),
5962
5996
  ...commonProps,
5963
- ...m ? monotoneProps : coloredProps,
5997
+ ..._ ? monotoneProps : coloredProps,
5964
5998
  ...i
5965
5999
  }, h("span", n);
5966
6000
  };
@@ -6126,8 +6160,8 @@ function createOptionsStore(e, t, r, n) {
6126
6160
  const c = process.env.NODE_ENV !== "production" && n ? toRefs(ref(a ? a() : {}).value) : toRefs(r.state.value[e]);
6127
6161
  return assign$1(c, o, Object.keys(s || {}).reduce((g, p) => (g[p] = markRaw(computed(() => {
6128
6162
  setActivePinia(r);
6129
- const m = r._s.get(e);
6130
- return s[p].call(m, m);
6163
+ const _ = r._s.get(e);
6164
+ return s[p].call(_, _);
6131
6165
  })), g), {}));
6132
6166
  }
6133
6167
  return l = createSetupStore(e, u, t, r, n), l.$reset = function() {
@@ -6146,78 +6180,78 @@ function createSetupStore(e, t, r = {}, n, a) {
6146
6180
  deep: !0
6147
6181
  };
6148
6182
  process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (R) => {
6149
- u ? m = R : u == !1 && !k._hotUpdating && (Array.isArray(m) ? m.push(R) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6183
+ u ? _ = R : u == !1 && !k._hotUpdating && (Array.isArray(_) ? _.push(R) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6150
6184
  });
6151
- let u, c, g = markRaw([]), p = markRaw([]), m;
6152
- const b = n.state.value[e];
6153
- !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6154
- const _ = ref({});
6185
+ let u, c, g = markRaw([]), p = markRaw([]), _;
6186
+ const y = n.state.value[e];
6187
+ !s && !y && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6188
+ const m = ref({});
6155
6189
  function v(R) {
6156
- let $;
6157
- u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof R == "function" ? (R(n.state.value[e]), $ = {
6190
+ let V;
6191
+ u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof R == "function" ? (R(n.state.value[e]), V = {
6158
6192
  type: MutationType.patchFunction,
6159
6193
  storeId: e,
6160
- events: m
6161
- }) : (mergeReactiveObjects(n.state.value[e], R), $ = {
6194
+ events: _
6195
+ }) : (mergeReactiveObjects(n.state.value[e], R), V = {
6162
6196
  type: MutationType.patchObject,
6163
6197
  payload: R,
6164
6198
  storeId: e,
6165
- events: m
6199
+ events: _
6166
6200
  }), nextTick().then(() => {
6167
6201
  u = !0;
6168
- }), c = !0, triggerSubscriptions(g, $, n.state.value[e]);
6202
+ }), c = !0, triggerSubscriptions(g, V, n.state.value[e]);
6169
6203
  }
6170
- const y = process.env.NODE_ENV !== "production" ? () => {
6204
+ const b = process.env.NODE_ENV !== "production" ? () => {
6171
6205
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6172
6206
  } : noop$1;
6173
6207
  function C() {
6174
6208
  o.stop(), g = [], p = [], n._s.delete(e);
6175
6209
  }
6176
- function T(R, $) {
6210
+ function T(R, V) {
6177
6211
  return function() {
6178
6212
  setActivePinia(n);
6179
- const D = Array.from(arguments), U = [], A = [];
6180
- function M(N) {
6213
+ const D = Array.from(arguments), U = [], I = [];
6214
+ function A(N) {
6181
6215
  U.push(N);
6182
6216
  }
6183
- function I(N) {
6184
- A.push(N);
6217
+ function M(N) {
6218
+ I.push(N);
6185
6219
  }
6186
6220
  triggerSubscriptions(p, {
6187
6221
  args: D,
6188
6222
  name: R,
6189
6223
  store: k,
6190
- after: M,
6191
- onError: I
6224
+ after: A,
6225
+ onError: M
6192
6226
  });
6193
- let O;
6227
+ let $;
6194
6228
  try {
6195
- O = $.apply(this && this.$id === e ? this : k, D);
6229
+ $ = V.apply(this && this.$id === e ? this : k, D);
6196
6230
  } catch (N) {
6197
- throw triggerSubscriptions(A, N), N;
6231
+ throw triggerSubscriptions(I, N), N;
6198
6232
  }
6199
- return O instanceof Promise ? O.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions(A, N), Promise.reject(N))) : (triggerSubscriptions(U, O), O);
6233
+ return $ instanceof Promise ? $.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions(I, N), Promise.reject(N))) : (triggerSubscriptions(U, $), $);
6200
6234
  };
6201
6235
  }
6202
6236
  const E = /* @__PURE__ */ markRaw({
6203
6237
  actions: {},
6204
6238
  getters: {},
6205
6239
  state: [],
6206
- hotState: _
6207
- }), w = {
6240
+ hotState: m
6241
+ }), O = {
6208
6242
  _p: n,
6209
6243
  $id: e,
6210
6244
  $onAction: addSubscription.bind(null, p),
6211
6245
  $patch: v,
6212
- $reset: y,
6213
- $subscribe(R, $ = {}) {
6214
- const D = addSubscription(g, R, $.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (A) => {
6215
- ($.flush === "sync" ? c : u) && R({
6246
+ $reset: b,
6247
+ $subscribe(R, V = {}) {
6248
+ const D = addSubscription(g, R, V.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (I) => {
6249
+ (V.flush === "sync" ? c : u) && R({
6216
6250
  storeId: e,
6217
6251
  type: MutationType.direct,
6218
- events: m
6219
- }, A);
6220
- }, assign$1({}, l, $)));
6252
+ events: _
6253
+ }, I);
6254
+ }, assign$1({}, l, V)));
6221
6255
  return D;
6222
6256
  },
6223
6257
  $dispose: C
@@ -6226,77 +6260,77 @@ function createSetupStore(e, t, r = {}, n, a) {
6226
6260
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6227
6261
  _hmrPayload: E
6228
6262
  } : {},
6229
- w
6263
+ O
6230
6264
  ));
6231
6265
  n._s.set(e, k);
6232
6266
  const F = n._e.run(() => (o = effectScope(), o.run(() => t())));
6233
6267
  for (const R in F) {
6234
- const $ = F[R];
6235
- if (isRef($) && !isComputed($) || isReactive($))
6236
- process.env.NODE_ENV !== "production" && a ? set(_.value, R, toRef(F, R)) : s || (b && shouldHydrate($) && (isRef($) ? $.value = b[R] : mergeReactiveObjects($, b[R])), n.state.value[e][R] = $), process.env.NODE_ENV !== "production" && E.state.push(R);
6237
- else if (typeof $ == "function") {
6238
- const D = process.env.NODE_ENV !== "production" && a ? $ : T(R, $);
6239
- F[R] = D, process.env.NODE_ENV !== "production" && (E.actions[R] = $), i.actions[R] = $;
6268
+ const V = F[R];
6269
+ if (isRef(V) && !isComputed(V) || isReactive(V))
6270
+ process.env.NODE_ENV !== "production" && a ? set(m.value, R, toRef(F, R)) : s || (y && shouldHydrate(V) && (isRef(V) ? V.value = y[R] : mergeReactiveObjects(V, y[R])), n.state.value[e][R] = V), process.env.NODE_ENV !== "production" && E.state.push(R);
6271
+ else if (typeof V == "function") {
6272
+ const D = process.env.NODE_ENV !== "production" && a ? V : T(R, V);
6273
+ F[R] = D, process.env.NODE_ENV !== "production" && (E.actions[R] = V), i.actions[R] = V;
6240
6274
  } else
6241
- process.env.NODE_ENV !== "production" && isComputed($) && (E.getters[R] = s ? r.getters[R] : $, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(R));
6275
+ process.env.NODE_ENV !== "production" && isComputed(V) && (E.getters[R] = s ? r.getters[R] : V, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(R));
6242
6276
  }
6243
6277
  if (assign$1(k, F), assign$1(toRaw(k), F), Object.defineProperty(k, "$state", {
6244
- get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
6278
+ get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
6245
6279
  set: (R) => {
6246
6280
  if (process.env.NODE_ENV !== "production" && a)
6247
6281
  throw new Error("cannot set hotState");
6248
- v(($) => {
6249
- assign$1($, R);
6282
+ v((V) => {
6283
+ assign$1(V, R);
6250
6284
  });
6251
6285
  }
6252
6286
  }), process.env.NODE_ENV !== "production") {
6253
- k._hotUpdate = markRaw(($) => {
6254
- k._hotUpdating = !0, $._hmrPayload.state.forEach((D) => {
6287
+ k._hotUpdate = markRaw((V) => {
6288
+ k._hotUpdating = !0, V._hmrPayload.state.forEach((D) => {
6255
6289
  if (D in k.$state) {
6256
- const U = $.$state[D], A = k.$state[D];
6257
- typeof U == "object" && isPlainObject(U) && isPlainObject(A) ? patchObject(U, A) : $.$state[D] = A;
6290
+ const U = V.$state[D], I = k.$state[D];
6291
+ typeof U == "object" && isPlainObject(U) && isPlainObject(I) ? patchObject(U, I) : V.$state[D] = I;
6258
6292
  }
6259
- set(k, D, toRef($.$state, D));
6293
+ set(k, D, toRef(V.$state, D));
6260
6294
  }), Object.keys(k.$state).forEach((D) => {
6261
- D in $.$state || del(k, D);
6262
- }), u = !1, c = !1, n.state.value[e] = toRef($._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6295
+ D in V.$state || del(k, D);
6296
+ }), u = !1, c = !1, n.state.value[e] = toRef(V._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6263
6297
  u = !0;
6264
6298
  });
6265
- for (const D in $._hmrPayload.actions) {
6266
- const U = $[D];
6299
+ for (const D in V._hmrPayload.actions) {
6300
+ const U = V[D];
6267
6301
  set(k, D, T(D, U));
6268
6302
  }
6269
- for (const D in $._hmrPayload.getters) {
6270
- const U = $._hmrPayload.getters[D], A = s ? computed(() => (setActivePinia(n), U.call(k, k))) : U;
6271
- set(k, D, A);
6303
+ for (const D in V._hmrPayload.getters) {
6304
+ const U = V._hmrPayload.getters[D], I = s ? computed(() => (setActivePinia(n), U.call(k, k))) : U;
6305
+ set(k, D, I);
6272
6306
  }
6273
6307
  Object.keys(k._hmrPayload.getters).forEach((D) => {
6274
- D in $._hmrPayload.getters || del(k, D);
6308
+ D in V._hmrPayload.getters || del(k, D);
6275
6309
  }), Object.keys(k._hmrPayload.actions).forEach((D) => {
6276
- D in $._hmrPayload.actions || del(k, D);
6277
- }), k._hmrPayload = $._hmrPayload, k._getters = $._getters, k._hotUpdating = !1;
6310
+ D in V._hmrPayload.actions || del(k, D);
6311
+ }), k._hmrPayload = V._hmrPayload, k._getters = V._getters, k._hotUpdating = !1;
6278
6312
  });
6279
6313
  const R = {
6280
6314
  writable: !0,
6281
6315
  configurable: !0,
6282
6316
  enumerable: !1
6283
6317
  };
6284
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach(($) => {
6285
- Object.defineProperty(k, $, {
6286
- value: k[$],
6318
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((V) => {
6319
+ Object.defineProperty(k, V, {
6320
+ value: k[V],
6287
6321
  ...R
6288
6322
  });
6289
6323
  });
6290
6324
  }
6291
6325
  return n._p.forEach((R) => {
6292
6326
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6293
- const $ = o.run(() => R({
6327
+ const V = o.run(() => R({
6294
6328
  store: k,
6295
6329
  app: n._a,
6296
6330
  pinia: n,
6297
6331
  options: i
6298
6332
  }));
6299
- Object.keys($ || {}).forEach((D) => k._customProperties.add(D)), assign$1(k, $);
6333
+ Object.keys(V || {}).forEach((D) => k._customProperties.add(D)), assign$1(k, V);
6300
6334
  } else
6301
6335
  assign$1(k, o.run(() => R({
6302
6336
  store: k,
@@ -6306,7 +6340,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6306
6340
  })));
6307
6341
  }), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6308
6342
  state: () => new MyClass()
6309
- Found in store "${k.$id}".`), b && s && r.hydrate && r.hydrate(k.$state, b), u = !0, c = !0, k;
6343
+ Found in store "${k.$id}".`), y && s && r.hydrate && r.hydrate(k.$state, y), u = !0, c = !0, k;
6310
6344
  }
6311
6345
  function defineStore(e, t, r) {
6312
6346
  let n, a;
@@ -6768,21 +6802,21 @@ const getProps$w = () => ({
6768
6802
  break;
6769
6803
  }
6770
6804
  };
6771
- function m(C) {
6805
+ function _(C) {
6772
6806
  p(C);
6773
6807
  }
6774
- function b(C) {
6808
+ function y(C) {
6775
6809
  p(C), g();
6776
6810
  }
6777
- function _(C) {
6778
- 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", m), l = v(document.documentElement, "mouseup", b));
6811
+ function m(C) {
6812
+ 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", _), l = v(document.documentElement, "mouseup", y));
6779
6813
  }
6780
6814
  function v(C, T, E) {
6781
6815
  return C.addEventListener(T, E), {
6782
6816
  remove: () => C.removeEventListener(T, E)
6783
6817
  };
6784
6818
  }
6785
- function y(C) {
6819
+ function b(C) {
6786
6820
  C.stopPropagation(), C.preventDefault();
6787
6821
  }
6788
6822
  return () => {
@@ -6792,8 +6826,8 @@ const getProps$w = () => ({
6792
6826
  style: u.value
6793
6827
  }, [createVNode("div", {
6794
6828
  class: "kg-resizable-handle",
6795
- onClick: y,
6796
- onMousedown: _
6829
+ onClick: b,
6830
+ onMousedown: m
6797
6831
  }, [createVNode("div", {
6798
6832
  class: "kg-resizable-handle-line"
6799
6833
  }, null)]), (C = r.default) == null ? void 0 : C.call(r)]);
@@ -6938,7 +6972,8 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6938
6972
  onKgChange: Function,
6939
6973
  onKgSelectChange: Function,
6940
6974
  onKgLookupChange: Function,
6941
- onKgSelectDatasChange: Function
6975
+ onKgSelectDatasChange: Function,
6976
+ onKgCheckboxGroupDatasChange: Function
6942
6977
  }), DI_ON_KG_LOOKUP_BEFORE_OK = Symbol("DI_ON_KG_LOOKUP_BEFORE_OK"), KgForm_Item_Addon_Lookup_Modal = "", getProps$t = () => ({
6943
6978
  visible: Boolean,
6944
6979
  "onUpdate:visible": Function,
@@ -6954,38 +6989,38 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6954
6989
  const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_ON_KG_LOOKUP_BEFORE_OK, null);
6955
6990
  useKgVar(s, !0, a.store.getFormLevel(a.formID) + 1);
6956
6991
  const l = useKgTable(s), u = computed(() => a.store.getVarLookup(n, o)), c = computed(() => {
6957
- var b;
6958
- return ((b = u == null ? void 0 : u.value) == null ? void 0 : b.mult_flg) === 1;
6992
+ var y;
6993
+ return ((y = u == null ? void 0 : u.value) == null ? void 0 : y.mult_flg) === 1;
6959
6994
  }), g = computed(() => {
6960
- var b, _;
6961
- return (_ = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? _ : "";
6995
+ var y, m;
6996
+ return (m = (y = u == null ? void 0 : u.value) == null ? void 0 : y.ret_fld) != null ? m : "";
6962
6997
  });
6963
- l.onRowDoubleClick(() => m());
6998
+ l.onRowDoubleClick(() => _());
6964
6999
  function p() {
6965
7000
  r("update:visible", !1);
6966
7001
  }
6967
- function m() {
6968
- var b, _, v, y, C, T, E;
7002
+ function _() {
7003
+ var y, m, v, b, C, T, E;
6969
7004
  if (c.value) {
6970
- const w = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], k = (v = w.map((F) => F[g.value])) != null ? v : [];
6971
- (!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
7005
+ const O = (m = (y = l.selectedRows) == null ? void 0 : y.value) != null ? m : [], k = (v = O.map((F) => F[g.value])) != null ? v : [];
7006
+ (!i || i(k, O)) && (r("kgOk", k, O), r("update:visible", !1));
6972
7007
  } else {
6973
- const w = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, k = (E = w == null ? void 0 : w[g.value]) != null ? E : "";
6974
- (!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
7008
+ const O = (T = (C = (b = l.selectedRows) == null ? void 0 : b.value) == null ? void 0 : C[0]) != null ? T : null, k = (E = O == null ? void 0 : O[g.value]) != null ? E : "";
7009
+ (!i || i(k, O)) && (r("kgOk", k, O), r("update:visible", !1));
6975
7010
  }
6976
7011
  }
6977
7012
  return () => {
6978
- var b, _;
7013
+ var y, m;
6979
7014
  return createVNode(KgModal, {
6980
7015
  visible: e.visible,
6981
7016
  title: a.t(o).value,
6982
7017
  destroyOnClose: !0,
6983
7018
  okButtonProps: {
6984
- disabled: ((_ = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0
7019
+ disabled: ((m = (y = l.selectedRows.value) == null ? void 0 : y.length) != null ? m : 0) === 0
6985
7020
  },
6986
7021
  wrapClassName: "kg-form-item-addon-lookup-modal",
6987
7022
  onCancel: p,
6988
- onOk: m
7023
+ onOk: _
6989
7024
  }, {
6990
7025
  default: () => [createVNode(KgVar, null, null)]
6991
7026
  });
@@ -7027,7 +7062,200 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
7027
7062
  "onUpdate:visible": (i) => a.value = i
7028
7063
  }, null) : null]);
7029
7064
  }
7030
- }), KgForm_Item = "", KgFormItemDate = defineComponent({
7065
+ }), KgForm_Item = "", KgFormItemCheckbox = defineComponent({
7066
+ name: "KgFormItemCheckbox",
7067
+ props: getProps$u(),
7068
+ emits: ["update:value", "kgSubmit", "kgChange"],
7069
+ setup: function(e, {
7070
+ attrs: t,
7071
+ emit: r
7072
+ }) {
7073
+ return () => null;
7074
+ }
7075
+ });
7076
+ function _useServices$2(e) {
7077
+ const t = useKgVar(), r = computed(() => t.store.getVarPossibility(t.formID, e.kgVarName));
7078
+ function n(a) {
7079
+ var i, l, u, c;
7080
+ if (!a)
7081
+ return [];
7082
+ const o = (l = (i = r.value) == null ? void 0 : i.val_clm) != null ? l : "", s = (c = (u = r.value) == null ? void 0 : u.val_data_type) != null ? c : "string";
7083
+ switch (s) {
7084
+ case KG_POSSIBILITY_DATA_TYPE.STRING:
7085
+ a.forEach((g) => {
7086
+ g[o] = String(g[o]);
7087
+ });
7088
+ break;
7089
+ case KG_POSSIBILITY_DATA_TYPE.NUMBER:
7090
+ a.forEach((g) => {
7091
+ let p = Number(g[o]);
7092
+ Number.isNaN(p) && (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${s} \u7C7B\u578B`, {
7093
+ frm_id: t.formID,
7094
+ var_nam: e.kgVarName,
7095
+ VarPossibility: r.value
7096
+ })), g[o] = p;
7097
+ });
7098
+ break;
7099
+ case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
7100
+ a.forEach((g) => {
7101
+ let p;
7102
+ String(g[o]).toLowerCase() === "true" ? p = !0 : String(g[o]).toLowerCase() === "false" ? p = !1 : (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${s} \u7C7B\u578B`, {
7103
+ frm_id: t.formID,
7104
+ var_nam: e.kgVarName,
7105
+ VarPossibility: r.value
7106
+ })), g[o] = p;
7107
+ });
7108
+ break;
7109
+ }
7110
+ return a;
7111
+ }
7112
+ return {
7113
+ transformDatas: n
7114
+ };
7115
+ }
7116
+ function _isSlot$8(e) {
7117
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
7118
+ }
7119
+ const KgFormItemCheckboxGroup = defineComponent({
7120
+ name: "KgFormItemCheckboxGroup",
7121
+ props: getProps$u(),
7122
+ emits: ["update:value", "kgSubmit", "kgChange", "kgCheckboxGroupChange", "kgCheckboxGroupDatasChange"],
7123
+ setup(e, {
7124
+ attrs: t,
7125
+ emit: r
7126
+ }) {
7127
+ const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), {
7128
+ transformDatas: s
7129
+ } = _useServices$2(e), i = ref(!1), l = ref(!1), u = ref([]), c = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), g = computed(() => {
7130
+ var v;
7131
+ let m = KgVarUtil.parseCommandParameter((v = c.value) == null ? void 0 : v.cmd_prm);
7132
+ return m = mapValues(m, (b) => {
7133
+ if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
7134
+ const C = b.slice(1, -1);
7135
+ if (o.value && C in o.value)
7136
+ return o.value[C];
7137
+ }
7138
+ return b;
7139
+ }), m;
7140
+ });
7141
+ watch(g, () => {
7142
+ var m;
7143
+ (m = c.value) != null && m.id && p();
7144
+ }, {
7145
+ immediate: !0
7146
+ }), watch([() => e.value, u], ([m, v]) => {
7147
+ var C, T;
7148
+ const b = get(m, "length", 0);
7149
+ if (b > 0 && v.length > 0) {
7150
+ const E = (T = (C = c.value) == null ? void 0 : C.val_clm) != null ? T : "", O = intersection$1(m, v == null ? void 0 : v.map((k) => k[E]));
7151
+ if (O.length < b) {
7152
+ r("update:value", O);
7153
+ return;
7154
+ }
7155
+ }
7156
+ switch (!0) {
7157
+ case (b > 0 && b === v.length):
7158
+ i.value = !0, l.value = !1;
7159
+ break;
7160
+ case (b > 0 && b !== v.length):
7161
+ i.value = !1, l.value = !0;
7162
+ break;
7163
+ default:
7164
+ i.value = !1, l.value = !1;
7165
+ break;
7166
+ }
7167
+ }, {
7168
+ immediate: !0
7169
+ });
7170
+ async function p() {
7171
+ var E, O, k, F, R, V, D, U, I;
7172
+ const m = (E = c.value) == null ? void 0 : E.cmd, v = (k = (O = c.value) == null ? void 0 : O.cmd_method) != null ? k : "GET", b = (R = (F = c.value) == null ? void 0 : F.val_clm) != null ? R : "", C = (D = (V = c.value) == null ? void 0 : V.lbl_clm) != null ? D : "";
7173
+ if (!m || !b || !C) {
7174
+ Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7175
+ frm_id: a.formID,
7176
+ var_nam: e.kgVarName,
7177
+ cmd: m,
7178
+ val_clm: b,
7179
+ lbl_clm: C
7180
+ });
7181
+ return;
7182
+ }
7183
+ let T = null;
7184
+ try {
7185
+ T = await ((U = httpClient()) == null ? void 0 : U.request({
7186
+ url: m,
7187
+ method: v,
7188
+ params: g.value,
7189
+ data: g.value
7190
+ }));
7191
+ } catch {
7192
+ }
7193
+ if (!isObjectLike(T))
7194
+ u.value = [];
7195
+ else
7196
+ switch (!0) {
7197
+ case isArrayLike(T):
7198
+ u.value = s(T);
7199
+ break;
7200
+ case (T && "total" in T && "records" in T):
7201
+ u.value = s(T.records);
7202
+ break;
7203
+ }
7204
+ if (u.value.length > 0) {
7205
+ const A = u.value[0];
7206
+ (!(b in A) || !(C in A)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7207
+ frm_id: a.formID,
7208
+ var_nam: e.kgVarName,
7209
+ cmd: m,
7210
+ val_clm: b,
7211
+ lbl_clm: C,
7212
+ \u6240\u6709\u5217: Object.keys(A)
7213
+ });
7214
+ }
7215
+ r("kgCheckboxGroupDatasChange", u.value), r("update:value", intersection$1((I = u.value) == null ? void 0 : I.map((A) => A[b]), e.value));
7216
+ }
7217
+ function _(m) {
7218
+ var v, b;
7219
+ m.target.checked ? y((b = (v = u.value) == null ? void 0 : v.map((C) => {
7220
+ var T, E;
7221
+ return C[(E = (T = c.value) == null ? void 0 : T.val_clm) != null ? E : ""];
7222
+ })) != null ? b : []) : y([]), l.value = !1;
7223
+ }
7224
+ function y(m) {
7225
+ r("update:value", m), r("kgChange", m);
7226
+ }
7227
+ return () => {
7228
+ let m, v;
7229
+ return createVNode("div", {
7230
+ class: "kg-form-item-checkbox-group"
7231
+ }, [createVNode(Form.ItemRest, null, {
7232
+ default: () => [createVNode(Checkbox, {
7233
+ checked: i.value,
7234
+ "onUpdate:checked": (b) => i.value = b,
7235
+ indeterminate: l.value,
7236
+ onChange: _
7237
+ }, _isSlot$8(m = n.t("kg.selectAll")) ? m : {
7238
+ default: () => [m]
7239
+ })]
7240
+ }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
7241
+ value: e.value,
7242
+ "onUpdate:value": y
7243
+ }, _isSlot$8(v = u.value.map((b) => {
7244
+ var C, T;
7245
+ return createVNode("div", null, [createVNode(Checkbox, {
7246
+ value: b[(T = (C = c.value) == null ? void 0 : C.val_clm) != null ? T : ""]
7247
+ }, {
7248
+ default: () => {
7249
+ var E, O;
7250
+ return [b[(O = (E = c.value) == null ? void 0 : E.lbl_clm) != null ? O : ""]];
7251
+ }
7252
+ })]);
7253
+ })) ? v : {
7254
+ default: () => [v]
7255
+ })]);
7256
+ };
7257
+ }
7258
+ }), KgFormItemDate = defineComponent({
7031
7259
  name: "KgFormItemDate",
7032
7260
  props: getProps$u(),
7033
7261
  emits: ["update:value", "kgSubmit", "kgChange"],
@@ -7151,15 +7379,15 @@ const KgFormItemSelect = defineComponent({
7151
7379
  const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), {
7152
7380
  transformDatas: o
7153
7381
  } = _useServices$1(e), s = ref([]), i = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), l = computed(() => {
7154
- var m;
7155
- let p = KgVarUtil.parseCommandParameter((m = i.value) == null ? void 0 : m.cmd_prm);
7156
- return p = mapValues(p, (b) => {
7157
- if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
7158
- const _ = b.slice(1, -1);
7159
- if (a.value && _ in a.value)
7160
- return a.value[_];
7382
+ var _;
7383
+ let p = KgVarUtil.parseCommandParameter((_ = i.value) == null ? void 0 : _.cmd_prm);
7384
+ return p = mapValues(p, (y) => {
7385
+ if (typeof y == "string" && y.startsWith("{") && y.endsWith("}")) {
7386
+ const m = y.slice(1, -1);
7387
+ if (a.value && m in a.value)
7388
+ return a.value[m];
7161
7389
  }
7162
- return b;
7390
+ return y;
7163
7391
  }), p;
7164
7392
  });
7165
7393
  watch(l, () => {
@@ -7169,15 +7397,15 @@ const KgFormItemSelect = defineComponent({
7169
7397
  immediate: !0
7170
7398
  });
7171
7399
  async function u() {
7172
- var y, C, T, E, w, k, F, R;
7173
- const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (w = (E = i.value) == null ? void 0 : E.val_clm) != null ? w : "", _ = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
7174
- if (!p || !b || !_) {
7400
+ var b, C, T, E, O, k, F, R;
7401
+ const p = (b = i.value) == null ? void 0 : b.cmd, _ = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", y = (O = (E = i.value) == null ? void 0 : E.val_clm) != null ? O : "", m = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
7402
+ if (!p || !y || !m) {
7175
7403
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7176
7404
  frm_id: n.formID,
7177
7405
  var_nam: e.kgVarName,
7178
7406
  cmd: p,
7179
- val_clm: b,
7180
- lbl_clm: _
7407
+ val_clm: y,
7408
+ lbl_clm: m
7181
7409
  });
7182
7410
  return;
7183
7411
  }
@@ -7185,7 +7413,7 @@ const KgFormItemSelect = defineComponent({
7185
7413
  try {
7186
7414
  v = await ((R = httpClient()) == null ? void 0 : R.request({
7187
7415
  url: p,
7188
- method: m,
7416
+ method: _,
7189
7417
  params: l.value
7190
7418
  }));
7191
7419
  } catch {
@@ -7202,31 +7430,31 @@ const KgFormItemSelect = defineComponent({
7202
7430
  break;
7203
7431
  }
7204
7432
  if (s.value.length > 0) {
7205
- const $ = s.value[0];
7206
- (!(b in $) || !(_ in $)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7433
+ const V = s.value[0];
7434
+ (!(y in V) || !(m in V)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7207
7435
  frm_id: n.formID,
7208
7436
  var_nam: e.kgVarName,
7209
7437
  cmd: p,
7210
- val_clm: b,
7211
- lbl_clm: _,
7212
- \u6240\u6709\u5217: Object.keys($)
7438
+ val_clm: y,
7439
+ lbl_clm: m,
7440
+ \u6240\u6709\u5217: Object.keys(V)
7213
7441
  });
7214
7442
  }
7215
- r("kgSelectDatasChange", s.value), s.value.find(($) => $[b] === e.value) || r("update:value", void 0);
7443
+ r("kgSelectDatasChange", s.value), s.value.find((V) => V[y] === e.value) || r("update:value", void 0);
7216
7444
  }
7217
7445
  function c(p) {
7218
- var b;
7219
- const m = s.value.find((_) => {
7220
- var v, y;
7221
- return _[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""] === p;
7446
+ var y;
7447
+ const _ = s.value.find((m) => {
7448
+ var v, b;
7449
+ return m[(b = (v = i.value) == null ? void 0 : v.val_clm) != null ? b : ""] === p;
7222
7450
  });
7223
- r("kgSelectChange", (b = toRaw(m)) != null ? b : null);
7451
+ r("kgSelectChange", (y = toRaw(_)) != null ? y : null);
7224
7452
  }
7225
7453
  function g(p) {
7226
7454
  r("update:value", p), r("kgChange", p);
7227
7455
  }
7228
7456
  return () => {
7229
- var p, m, b;
7457
+ var p, _, y;
7230
7458
  return createVNode(Select, {
7231
7459
  value: e.value,
7232
7460
  "onUpdate:value": g,
@@ -7239,18 +7467,18 @@ const KgFormItemSelect = defineComponent({
7239
7467
  dropdownClassName: "kg-form-item-select-dropdown",
7240
7468
  style: "width: 100%",
7241
7469
  "kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
7242
- "kg-val-clm": (m = i.value) == null ? void 0 : m.val_clm,
7243
- "kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
7470
+ "kg-val-clm": (_ = i.value) == null ? void 0 : _.val_clm,
7471
+ "kg-lbl-clm": (y = i.value) == null ? void 0 : y.lbl_clm
7244
7472
  }, {
7245
- default: () => s.value.map((_) => {
7246
- var v, y, C, T;
7473
+ default: () => s.value.map((m) => {
7474
+ var v, b, C, T;
7247
7475
  return createVNode(Select.Option, {
7248
- "kg-value": _[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""],
7249
- value: _[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
7476
+ "kg-value": m[(b = (v = i.value) == null ? void 0 : v.val_clm) != null ? b : ""],
7477
+ value: m[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
7250
7478
  }, {
7251
7479
  default: () => {
7252
- var E, w;
7253
- return [_[(w = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? w : ""]];
7480
+ var E, O;
7481
+ return [m[(O = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? O : ""]];
7254
7482
  }
7255
7483
  });
7256
7484
  }),
@@ -7283,7 +7511,7 @@ function _useRules(e) {
7283
7511
  const t = useKg(), r = useKgVar(), n = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), a = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
7284
7512
  return {
7285
7513
  rules: computed(() => {
7286
- var l, u, c, g, p, m, b, _;
7514
+ var l, u, c, g, p, _, y, m;
7287
7515
  let i = [];
7288
7516
  switch (e.kgContext) {
7289
7517
  case KG_FORM_CONTEXT.SEARCH:
@@ -7321,13 +7549,13 @@ function _useRules(e) {
7321
7549
  }
7322
7550
  break;
7323
7551
  }
7324
- switch ((m = a.value) == null ? void 0 : m.data_type) {
7552
+ switch ((_ = a.value) == null ? void 0 : _.data_type) {
7325
7553
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7326
- const v = (b = a.value) == null ? void 0 : b.min;
7327
- isNil(v) || (((_ = a.value) == null ? void 0 : _.min_include_flg) === 1 ? i.push({
7328
- validator: (y, C) => Number(C) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
7554
+ const v = (y = a.value) == null ? void 0 : y.min;
7555
+ isNil(v) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7556
+ validator: (b, C) => Number(C) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
7329
7557
  }) : i.push({
7330
- validator: (y, C) => Number(C) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
7558
+ validator: (b, C) => Number(C) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
7331
7559
  }));
7332
7560
  break;
7333
7561
  }
@@ -7344,126 +7572,126 @@ const KgFormItem = defineComponent({
7344
7572
  emit: r
7345
7573
  }) {
7346
7574
  provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk);
7347
- const n = useKg(), a = useKgVar(), o = inject(DI_FORM_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.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), m = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
7348
- rules: b
7349
- } = _useRules(e), _ = computed(() => {
7350
- var M, I, O, N, L;
7575
+ const n = useKg(), a = useKgVar(), o = inject(DI_FORM_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.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), _ = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
7576
+ rules: y
7577
+ } = _useRules(e), m = computed(() => {
7578
+ var A, M, $, N, L;
7351
7579
  if (a.isRetrievingVar.value)
7352
7580
  return !0;
7353
- let A = !1;
7581
+ let I = !1;
7354
7582
  if (e.kgDisabled !== void 0)
7355
- A = e.kgDisabled;
7583
+ I = e.kgDisabled;
7356
7584
  else
7357
7585
  switch (e.kgContext) {
7358
7586
  case KG_FORM_CONTEXT.SEARCH:
7359
- A = ((M = p.value) == null ? void 0 : M.ena_flg) === 0;
7587
+ I = ((A = p.value) == null ? void 0 : A.ena_flg) === 0;
7360
7588
  break;
7361
7589
  case KG_FORM_CONTEXT.SUBMIT:
7362
7590
  switch (!0) {
7363
7591
  case a.isCreating.value:
7364
- A = ((I = m.value) == null ? void 0 : I.crt_ena_flg) === 0;
7592
+ I = ((M = _.value) == null ? void 0 : M.crt_ena_flg) === 0;
7365
7593
  break;
7366
7594
  case a.isUpdating.value:
7367
- A = ((O = m.value) == null ? void 0 : O.upt_ena_flg) === 0;
7595
+ I = (($ = _.value) == null ? void 0 : $.upt_ena_flg) === 0;
7368
7596
  break;
7369
7597
  case a.isCopying.value:
7370
- A = ((N = m.value) == null ? void 0 : N.cpy_ena_flg) === 0;
7598
+ I = ((N = _.value) == null ? void 0 : N.cpy_ena_flg) === 0;
7371
7599
  break;
7372
7600
  case a.isDeleting.value:
7373
- A = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
7601
+ I = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
7374
7602
  break;
7375
7603
  }
7376
7604
  break;
7377
7605
  }
7378
- return A;
7606
+ return I;
7379
7607
  }), v = computed(() => {
7380
- var M, I, O, N;
7381
- let A = " ";
7608
+ var A, M, $, N;
7609
+ let I = " ";
7382
7610
  if (e.kgPlaceholder)
7383
- A = e.kgPlaceholder;
7611
+ I = e.kgPlaceholder;
7384
7612
  else
7385
7613
  switch (e.kgContext) {
7386
7614
  case KG_FORM_CONTEXT.SEARCH:
7387
- A = n.t((I = (M = p.value) == null ? void 0 : M.placeholder) != null ? I : " ");
7615
+ I = n.t((M = (A = p.value) == null ? void 0 : A.placeholder) != null ? M : " ");
7388
7616
  break;
7389
7617
  case KG_FORM_CONTEXT.SUBMIT:
7390
- A = n.t((N = (O = m.value) == null ? void 0 : O.placeholder) != null ? N : " ");
7618
+ I = n.t((N = ($ = _.value) == null ? void 0 : $.placeholder) != null ? N : " ");
7391
7619
  break;
7392
7620
  }
7393
- return A;
7394
- }), y = computed(() => {
7395
- var M, I, O, N, L, G, P, B, z, Y;
7396
- let A = 6;
7621
+ return I;
7622
+ }), b = computed(() => {
7623
+ var A, M, $, N, L, G, P, B, z, Y;
7624
+ let I = 6;
7397
7625
  if (e.kgSpan !== void 0)
7398
- A = e.kgSpan;
7626
+ I = e.kgSpan;
7399
7627
  else
7400
7628
  switch (e.kgContext) {
7401
7629
  case KG_FORM_CONTEXT.SEARCH:
7402
- A = (I = (M = p.value) == null ? void 0 : M.width) != null ? I : 6;
7630
+ I = (M = (A = p.value) == null ? void 0 : A.width) != null ? M : 6;
7403
7631
  break;
7404
7632
  case KG_FORM_CONTEXT.SUBMIT:
7405
7633
  switch (!0) {
7406
7634
  case a.isCreating.value:
7407
- A = (N = (O = m.value) == null ? void 0 : O.crt_width) != null ? N : 6;
7635
+ I = (N = ($ = _.value) == null ? void 0 : $.crt_width) != null ? N : 6;
7408
7636
  break;
7409
7637
  case a.isUpdating.value:
7410
- A = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7638
+ I = (G = (L = _.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7411
7639
  break;
7412
7640
  case a.isCopying.value:
7413
- A = (B = (P = m.value) == null ? void 0 : P.cpy_width) != null ? B : 6;
7641
+ I = (B = (P = _.value) == null ? void 0 : P.cpy_width) != null ? B : 6;
7414
7642
  break;
7415
7643
  case a.isDeleting.value:
7416
- A = (Y = (z = m.value) == null ? void 0 : z.del_width) != null ? Y : 6;
7644
+ I = (Y = (z = _.value) == null ? void 0 : z.del_width) != null ? Y : 6;
7417
7645
  break;
7418
7646
  }
7419
7647
  }
7420
- return Math.min(24, Math.max(1, A));
7648
+ return Math.min(24, Math.max(1, I));
7421
7649
  }), C = computed(() => {
7422
- var O, N;
7423
- const A = get(F.value, "$el.parentElement");
7424
- if (A && !((O = A.classList) != null && O.contains("ant-row")))
7650
+ var $, N;
7651
+ const I = get(F.value, "$el.parentElement");
7652
+ if (I && !(($ = I.classList) != null && $.contains("ant-row")))
7425
7653
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7426
- let M = {};
7427
- const I = Math.abs(Number.parseInt((N = get(F.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
7428
- return Number.isNaN(I) || (M = {
7429
- paddingLeft: `${I}px !important`,
7430
- paddingRight: `${I}px !important`
7431
- }), M;
7654
+ let A = {};
7655
+ const M = Math.abs(Number.parseInt((N = get(F.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
7656
+ return Number.isNaN(M) || (A = {
7657
+ paddingLeft: `${M}px !important`,
7658
+ paddingRight: `${M}px !important`
7659
+ }), A;
7432
7660
  }), T = computed(() => {
7433
- var M, I, O, N;
7434
- let A = "kg-form-item";
7435
- switch (c.value && (A += " kg-form-item-lookup"), e.kgContext) {
7661
+ var A, M, $, N;
7662
+ let I = "kg-form-item";
7663
+ switch (c.value && (I += " kg-form-item-lookup"), e.kgContext) {
7436
7664
  case KG_FORM_CONTEXT.SEARCH:
7437
7665
  switch (!0) {
7438
- case ((M = p.value) == null ? void 0 : M.vis_flg) === 0:
7439
- A += " kg-form-item--invisible";
7666
+ case ((A = p.value) == null ? void 0 : A.vis_flg) === 0:
7667
+ I += " kg-form-item--invisible";
7440
7668
  break;
7441
7669
  }
7442
7670
  break;
7443
7671
  case KG_FORM_CONTEXT.SUBMIT:
7444
7672
  switch (!0) {
7445
- case (i.value && ((I = m.value) == null ? void 0 : I.crt_vis_flg) === 0):
7446
- case (l.value && ((O = m.value) == null ? void 0 : O.upt_vis_flg) === 0):
7447
- case (u.value && ((N = m.value) == null ? void 0 : N.cpy_vis_flg) === 0):
7448
- A += " kg-form-item--invisible";
7673
+ case (i.value && ((M = _.value) == null ? void 0 : M.crt_vis_flg) === 0):
7674
+ case (l.value && (($ = _.value) == null ? void 0 : $.upt_vis_flg) === 0):
7675
+ case (u.value && ((N = _.value) == null ? void 0 : N.cpy_vis_flg) === 0):
7676
+ I += " kg-form-item--invisible";
7449
7677
  break;
7450
7678
  }
7451
7679
  break;
7452
7680
  }
7453
- return A;
7681
+ return I;
7454
7682
  }), E = computed(() => {
7455
- var M;
7456
- const A = {
7683
+ var A;
7684
+ const I = {
7457
7685
  ...e,
7458
- value: (M = o.value) == null ? void 0 : M[e.kgVarName],
7459
- "onUpdate:value": (I) => {
7460
- o.value && (o.value[e.kgVarName] = I);
7686
+ value: (A = o.value) == null ? void 0 : A[e.kgVarName],
7687
+ "onUpdate:value": (M) => {
7688
+ o.value && (o.value[e.kgVarName] = M);
7461
7689
  },
7462
7690
  kgPlaceholder: v.value,
7463
- kgDisabled: _.value,
7691
+ kgDisabled: m.value,
7464
7692
  id: k.value
7465
7693
  };
7466
- switch (w.value) {
7694
+ switch (O.value) {
7467
7695
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7468
7696
  break;
7469
7697
  case KG_FORM_ITEM_TYPE.SELECT:
@@ -7471,22 +7699,22 @@ const KgFormItem = defineComponent({
7471
7699
  case KG_FORM_ITEM_TYPE.SWITCH:
7472
7700
  break;
7473
7701
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7474
- A.kgShowTime = !1;
7702
+ I.kgShowTime = !1;
7475
7703
  break;
7476
7704
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7477
- A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7705
+ I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7478
7706
  break;
7479
7707
  }
7480
- return A;
7481
- }), w = computed(() => {
7482
- var A;
7483
- return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
7484
- }), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), F = ref(null);
7485
- function R(A, M) {
7708
+ return I;
7709
+ }), O = computed(() => {
7486
7710
  var I;
7487
- o.value && (o.value[e.kgVarName] = A), r("kgLookupChange", M), (I = s.value) == null || I.validate([e.kgVarName]);
7711
+ return e.kgType || ((I = g.value) == null ? void 0 : I.ctrl_typ);
7712
+ }), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), F = ref(null);
7713
+ function R(I, A) {
7714
+ var M;
7715
+ o.value && (o.value[e.kgVarName] = I), r("kgLookupChange", A), (M = s.value) == null || M.validate([e.kgVarName]);
7488
7716
  }
7489
- function $() {
7717
+ function V() {
7490
7718
  if (t.control)
7491
7719
  return t.control({
7492
7720
  varName: e.kgVarName,
@@ -7494,15 +7722,19 @@ const KgFormItem = defineComponent({
7494
7722
  model: o,
7495
7723
  varConfig: g,
7496
7724
  varProfileDetail: p,
7497
- varSubmitField: m
7725
+ varSubmitField: _
7498
7726
  });
7499
- switch (w.value) {
7727
+ switch (O.value) {
7500
7728
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7501
7729
  return createVNode(KgFormItemInputNumber, E.value, null);
7502
7730
  case KG_FORM_ITEM_TYPE.SELECT:
7503
7731
  return createVNode(KgFormItemSelect, E.value, null);
7504
7732
  case KG_FORM_ITEM_TYPE.SWITCH:
7505
7733
  return createVNode(KgFormItemSwitch, E.value, null);
7734
+ case KG_FORM_ITEM_TYPE.CHECKBOX:
7735
+ return createVNode(KgFormItemCheckbox, E.value, null);
7736
+ case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
7737
+ return createVNode(KgFormItemCheckboxGroup, E.value, null);
7506
7738
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7507
7739
  return createVNode(KgFormItemDate, E.value, null);
7508
7740
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
@@ -7517,33 +7749,33 @@ const KgFormItem = defineComponent({
7517
7749
  }, [a.t(e.kgVarName).value]) : null;
7518
7750
  }
7519
7751
  function U() {
7520
- var A;
7521
- return !c.value || !((A = c.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7752
+ var I;
7753
+ return !c.value || !((I = c.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7522
7754
  default: () => [createVNode(KgFormItemAddonLookup, {
7523
- kgDisabled: _.value,
7755
+ kgDisabled: m.value,
7524
7756
  onKgOk: R,
7525
7757
  kgLookupID: c.value.lkp_id
7526
7758
  }, null)]
7527
7759
  });
7528
7760
  }
7529
7761
  return () => {
7530
- var A, M;
7762
+ var I, A;
7531
7763
  return createVNode(Col, {
7532
7764
  ref: F,
7533
7765
  "kg-frm-id": a.formID,
7534
7766
  "kg-var-nam": e.kgVarName,
7535
- "kg-lkp-id": (A = c.value) == null ? void 0 : A.lkp_id,
7536
- "kg-lkp-ret-fld": (M = c.value) == null ? void 0 : M.ret_fld,
7537
- span: y.value,
7767
+ "kg-lkp-id": (I = c.value) == null ? void 0 : I.lkp_id,
7768
+ "kg-lkp-ret-fld": (A = c.value) == null ? void 0 : A.ret_fld,
7769
+ span: b.value,
7538
7770
  class: T.value,
7539
7771
  style: C.value
7540
7772
  }, {
7541
7773
  default: () => [createVNode(Form.Item, {
7542
7774
  name: e.kgVarName,
7543
- rules: b.value,
7775
+ rules: y.value,
7544
7776
  htmlFor: k.value
7545
7777
  }, {
7546
- default: () => createVNode(Fragment, null, [$(), U()]),
7778
+ default: () => createVNode(Fragment, null, [V(), U()]),
7547
7779
  label: () => D()
7548
7780
  })]
7549
7781
  });
@@ -7731,15 +7963,15 @@ function createStore(e, t, r) {
7731
7963
  _assignPluginFnProp: function(l, u) {
7732
7964
  var c = this[u];
7733
7965
  this[u] = function() {
7734
- var p = slice(arguments, 0), m = this;
7735
- function b() {
7966
+ var p = slice(arguments, 0), _ = this;
7967
+ function y() {
7736
7968
  if (!!c)
7737
- return each$6(arguments, function(v, y) {
7738
- p[y] = v;
7739
- }), c.apply(m, p);
7969
+ return each$6(arguments, function(v, b) {
7970
+ p[b] = v;
7971
+ }), c.apply(_, p);
7740
7972
  }
7741
- var _ = [b].concat(p);
7742
- return l.apply(m, _);
7973
+ var m = [y].concat(p);
7974
+ return l.apply(_, m);
7743
7975
  };
7744
7976
  },
7745
7977
  _serialize: function(l) {
@@ -7776,10 +8008,10 @@ function createStore(e, t, r) {
7776
8008
  var g = l.call(this);
7777
8009
  if (!isObject(g))
7778
8010
  throw new Error("Plugins must return an object of function properties");
7779
- each$6(g, function(p, m) {
8011
+ each$6(g, function(p, _) {
7780
8012
  if (!isFunction(p))
7781
- throw new Error("Bad plugin property: " + m + " from plugin " + l.name + ". Plugins should only return functions.");
7782
- u._assignPluginFnProp(p, m);
8013
+ throw new Error("Bad plugin property: " + _ + " from plugin " + l.name + ". Plugins should only return functions.");
8014
+ u._assignPluginFnProp(p, _);
7783
8015
  });
7784
8016
  }
7785
8017
  },
@@ -8727,19 +8959,19 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8727
8959
  varVariableInputs: c,
8728
8960
  varPossibilities: g,
8729
8961
  varButtons: p,
8730
- varSubmitConfig: m,
8731
- varSubmitFields: b,
8732
- varProfile: _,
8962
+ varSubmitConfig: _,
8963
+ varSubmitFields: y,
8964
+ varProfile: m,
8733
8965
  varProfileConfig: v,
8734
- varGrid: y,
8966
+ varGrid: b,
8735
8967
  varGridConfig: C
8736
8968
  } = await GetAll({ params: { frm_id: e } });
8737
- this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(b)), this.varProfileConfigMap.set(e, transformVarProfileConfig(v != null ? v : null)), this.varProfileMap.set(e, {
8738
- varProfile: _ != null ? _ : null,
8739
- 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
8969
+ this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(y)), this.varProfileConfigMap.set(e, transformVarProfileConfig(v != null ? v : null)), this.varProfileMap.set(e, {
8970
+ varProfile: m != null ? m : null,
8971
+ currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.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
8740
8972
  }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
8741
- varGrid: transformVarGridDTO(y),
8742
- currentVarGridMasterID: (s = (o = (a = y == null ? void 0 : y.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
8973
+ varGrid: transformVarGridDTO(b),
8974
+ currentVarGridMasterID: (s = (o = (a = b == null ? void 0 : b.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
8743
8975
  }), this.emit(e, "ready");
8744
8976
  } catch (i) {
8745
8977
  throw i;
@@ -8870,12 +9102,12 @@ function useKgVar(e, t, r = 0) {
8870
9102
  i.leave(s);
8871
9103
  }));
8872
9104
  const l = (U) => computed(() => {
8873
- var A, M, I;
8874
- return (I = (M = (A = i.getVarCatalog(s, U)) == null ? void 0 : A.var_text) != null ? M : U) != null ? I : "";
8875
- }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), w = computed(() => {
8876
- var U, A;
8877
- return (A = (U = T.value) == null ? void 0 : U.varProfileDetails) != null ? A : null;
8878
- }), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), $ = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
9105
+ var I, A, M;
9106
+ return (M = (A = (I = i.getVarCatalog(s, U)) == null ? void 0 : I.var_text) != null ? A : U) != null ? M : "";
9107
+ }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), y = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), b = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), O = computed(() => {
9108
+ var U, I;
9109
+ return (I = (U = T.value) == null ? void 0 : U.varProfileDetails) != null ? I : null;
9110
+ }), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), V = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
8879
9111
  return {
8880
9112
  formID: s,
8881
9113
  store: i,
@@ -8883,19 +9115,19 @@ function useKgVar(e, t, r = 0) {
8883
9115
  isRetrievingVarProfileMaster: c,
8884
9116
  isRetrievingVarGridMaster: g,
8885
9117
  isCreating: p,
8886
- isUpdating: m,
8887
- isCopying: b,
8888
- isDeleting: _,
9118
+ isUpdating: _,
9119
+ isCopying: y,
9120
+ isDeleting: m,
8889
9121
  isOtherRequesting: v,
8890
- varButtons: y,
9122
+ varButtons: b,
8891
9123
  varProfileMasters: C,
8892
9124
  currentVarProfileMaster: T,
8893
9125
  currentVarProfileMasterID: E,
8894
- currentVarProfileDetails: w,
9126
+ currentVarProfileDetails: O,
8895
9127
  varGridConfig: k,
8896
9128
  varGridMasters: F,
8897
9129
  currentVarGridMaster: R,
8898
- systemVarGridDetails: $,
9130
+ systemVarGridDetails: V,
8899
9131
  currentVarGridDetails: D,
8900
9132
  t: l,
8901
9133
  onReady: o
@@ -9089,8 +9321,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9089
9321
  }) => {
9090
9322
  const c = o.store.getVarSubmitConfig(o.formID);
9091
9323
  return i = watch(u, (g) => {
9092
- var p, m, b, _, v, y, C, T, E, w, k, F;
9093
- g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 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 = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (w = c == null ? void 0 : c.label_col) != null ? w : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9324
+ var p, _, y, m, v, b, C, T, E, O, k, F;
9325
+ g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (y = c == null ? void 0 : c.fullscreen_flg) != null ? y : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 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 = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (O = c == null ? void 0 : c.label_col) != null ? O : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9094
9326
  }, {
9095
9327
  immediate: !0
9096
9328
  }), !1;
@@ -9136,19 +9368,19 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9136
9368
  function p() {
9137
9369
  c.value = !0;
9138
9370
  }
9139
- function m() {
9371
+ function _() {
9140
9372
  r("kgCancel");
9141
9373
  }
9142
- function b() {
9143
- var y;
9144
- return e.kgShowFullscreenButton === !1 || ((y = i.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
9374
+ function y() {
9375
+ var b;
9376
+ return e.kgShowFullscreenButton === !1 || ((b = i.value) == null ? void 0 : b.fullscreen_flg) === 0 ? null : createVNode(Button, {
9145
9377
  onClick: g,
9146
9378
  class: "kg-submit--btn-fullscreen"
9147
9379
  }, {
9148
9380
  default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
9149
9381
  });
9150
9382
  }
9151
- function _() {
9383
+ function m() {
9152
9384
  return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
9153
9385
  disabled: u.value || l.value,
9154
9386
  onClick: p,
@@ -9163,52 +9395,52 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9163
9395
  return createVNode(Button, {
9164
9396
  disabled: u.value || l.value,
9165
9397
  class: "kg-submit--btn-close",
9166
- onClick: m
9398
+ onClick: _
9167
9399
  }, {
9168
9400
  default: () => [createVNode(CloseOutlined$1, null, null)]
9169
9401
  });
9170
9402
  }
9171
- return () => createVNode(Fragment, null, [_(), b(), v()]);
9403
+ return () => createVNode(Fragment, null, [m(), y(), v()]);
9172
9404
  }
9173
9405
  }), 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;
9174
9406
  function _useFormModel() {
9175
9407
  const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.isCreating(t.formID)), o = computed(() => t.store.isUpdating(t.formID)), s = computed(() => t.store.isCopying(t.formID)), i = computed(() => t.store.isDeleting(t.formID)), l = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), u = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), c = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), g = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), p = computed(() => {
9176
- var b, _, v, y;
9408
+ var y, m, v, b;
9177
9409
  switch (!0) {
9178
9410
  case a.value:
9179
- return (b = l.value) != null ? b : [];
9411
+ return (y = l.value) != null ? y : [];
9180
9412
  case o.value:
9181
- return (_ = u.value) != null ? _ : [];
9413
+ return (m = u.value) != null ? m : [];
9182
9414
  case s.value:
9183
9415
  return (v = c.value) != null ? v : [];
9184
9416
  case i.value:
9185
- return (y = g.value) != null ? y : [];
9417
+ return (b = g.value) != null ? b : [];
9186
9418
  }
9187
9419
  return [];
9188
- }), m = ref({});
9189
- return watch(p, (b) => {
9190
- m.value = {}, b != null && b.length && b.forEach((_) => {
9191
- var C, T, E, w, k, F, R;
9192
- const v = (C = _.var_nam) != null ? C : "", y = r.selectedRow.value;
9193
- switch (m.value[v] = void 0, !0) {
9420
+ }), _ = ref({});
9421
+ return watch(p, (y) => {
9422
+ _.value = {}, y != null && y.length && y.forEach((m) => {
9423
+ var C, T, E, O, k, F, R;
9424
+ const v = (C = m.var_nam) != null ? C : "", b = r.selectedRow.value;
9425
+ switch (_.value[v] = void 0, !0) {
9194
9426
  case a.value:
9195
- m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, _.crt_dft_val);
9427
+ _.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, m.crt_dft_val);
9196
9428
  break;
9197
9429
  case o.value:
9198
- m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (E = (T = _.upt_dft_val) != null ? T : y == null ? void 0 : y[v]) != null ? E : void 0);
9430
+ _.value.id = b == null ? void 0 : b.id, _.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (E = (T = m.upt_dft_val) != null ? T : b == null ? void 0 : b[v]) != null ? E : void 0);
9199
9431
  break;
9200
9432
  case s.value:
9201
- m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (w = _.cpy_dft_val) != null ? w : y == null ? void 0 : y[v]) != null ? k : void 0);
9433
+ _.value.id = b == null ? void 0 : b.id, _.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (O = m.cpy_dft_val) != null ? O : b == null ? void 0 : b[v]) != null ? k : void 0);
9202
9434
  break;
9203
9435
  case i.value:
9204
- m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (R = (F = _.del_dft_val) != null ? F : y == null ? void 0 : y[v]) != null ? R : void 0);
9436
+ _.value.id = b == null ? void 0 : b.id, _.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (R = (F = m.del_dft_val) != null ? F : b == null ? void 0 : b[v]) != null ? R : void 0);
9205
9437
  break;
9206
9438
  }
9207
- }), n.store.setModel(t.formID, m.value);
9439
+ }), n.store.setModel(t.formID, _.value);
9208
9440
  }, {
9209
9441
  immediate: !0
9210
9442
  }), {
9211
- model: m
9443
+ model: _
9212
9444
  };
9213
9445
  }
9214
9446
  function _useResizeObserver$1(e) {
@@ -9245,23 +9477,23 @@ function _useTitle() {
9245
9477
  const e = useKg(), t = useKgVar(), r = computed(() => t.store.isCreating(t.formID)), n = computed(() => t.store.isUpdating(t.formID)), a = computed(() => t.store.isCopying(t.formID)), o = computed(() => t.store.isDeleting(t.formID)), s = computed(() => t.store.getVarButtonCreate(t.formID)), i = computed(() => t.store.getVarButtonUpdate(t.formID)), l = computed(() => t.store.getVarButtonCopy(t.formID)), u = computed(() => t.store.getVarButtonDelete(t.formID));
9246
9478
  return {
9247
9479
  title: computed(() => {
9248
- var g, p, m, b;
9480
+ var g, p, _, y;
9249
9481
  switch (!0) {
9250
9482
  case r.value: {
9251
- const _ = (g = s.value) == null ? void 0 : g.var_nam, v = t.t(_).value;
9252
- return _ === v ? e.t("kg.create") : v;
9483
+ const m = (g = s.value) == null ? void 0 : g.var_nam, v = t.t(m).value;
9484
+ return m === v ? e.t("kg.create") : v;
9253
9485
  }
9254
9486
  case n.value: {
9255
- const _ = (p = i.value) == null ? void 0 : p.var_nam, v = t.t(_).value;
9256
- return _ === v ? e.t("kg.update") : v;
9487
+ const m = (p = i.value) == null ? void 0 : p.var_nam, v = t.t(m).value;
9488
+ return m === v ? e.t("kg.update") : v;
9257
9489
  }
9258
9490
  case a.value: {
9259
- const _ = (m = l.value) == null ? void 0 : m.var_nam, v = t.t(_).value;
9260
- return _ === v ? e.t("kg.copy") : v;
9491
+ const m = (_ = l.value) == null ? void 0 : _.var_nam, v = t.t(m).value;
9492
+ return m === v ? e.t("kg.copy") : v;
9261
9493
  }
9262
9494
  case o.value: {
9263
- const _ = (b = u.value) == null ? void 0 : b.var_nam, v = t.t(_).value;
9264
- return _ === v ? e.t("kg.delete") : v;
9495
+ const m = (y = u.value) == null ? void 0 : y.var_nam, v = t.t(m).value;
9496
+ return m === v ? e.t("kg.delete") : v;
9265
9497
  }
9266
9498
  }
9267
9499
  return "";
@@ -9286,7 +9518,7 @@ const getProps$p = () => ({
9286
9518
  }) {
9287
9519
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9288
9520
  _useFormModel();
9289
- const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && U.value.length === 0 && A.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), $ = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), U = computed(() => {
9521
+ const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && U.value.length === 0 && I.value.length === 0), y = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), b = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), V = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), U = computed(() => {
9290
9522
  var K, H, Q;
9291
9523
  switch (!0) {
9292
9524
  case u.value:
@@ -9299,39 +9531,39 @@ const getProps$p = () => ({
9299
9531
  return [];
9300
9532
  }
9301
9533
  return [];
9302
- }), A = computed(() => {
9534
+ }), I = computed(() => {
9303
9535
  var K, H, Q, Z;
9304
9536
  switch (!0) {
9305
9537
  case u.value:
9306
- return (K = w.value) != null ? K : [];
9538
+ return (K = O.value) != null ? K : [];
9307
9539
  case c.value:
9308
9540
  return (H = F.value) != null ? H : [];
9309
9541
  case g.value:
9310
- return (Q = $.value) != null ? Q : [];
9542
+ return (Q = V.value) != null ? Q : [];
9311
9543
  case p.value:
9312
9544
  return (Z = D.value) != null ? Z : [];
9313
9545
  }
9314
9546
  return [];
9315
- }), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => M.value || C.value), O = computed(() => C.value), N = ref({
9547
+ }), A = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), M = computed(() => A.value || C.value), $ = computed(() => C.value), N = ref({
9316
9548
  kgWidth: 0
9317
9549
  }), L = computed(() => {
9318
9550
  var K;
9319
- return !!(m.value || ae.isFullscreen || ((K = T.value) == null ? void 0 : K.resizable_flg) === 0);
9551
+ return !!(_.value || ae.isFullscreen || ((K = T.value) == null ? void 0 : K.resizable_flg) === 0);
9320
9552
  }), G = computed(() => {
9321
9553
  var K, H;
9322
- return m.value ? 398 : (H = (K = T.value) == null ? void 0 : K.min_width) != null ? H : DEFAULT_MIN_WIDTH;
9554
+ return _.value ? 398 : (H = (K = T.value) == null ? void 0 : K.min_width) != null ? H : DEFAULT_MIN_WIDTH;
9323
9555
  }), P = computed(() => {
9324
9556
  var K, H;
9325
- return m.value ? 398 : (H = (K = T.value) == null ? void 0 : K.max_width) != null ? H : DEFAULT_MAX_WIDTH;
9326
- }), B = computed(() => m.value ? 398 : N.value.kgWidth), z = ref(null), Y = ref({}), X = ref(null);
9557
+ return _.value ? 398 : (H = (K = T.value) == null ? void 0 : K.max_width) != null ? H : DEFAULT_MAX_WIDTH;
9558
+ }), B = computed(() => _.value ? 398 : N.value.kgWidth), z = ref(null), Y = ref({}), X = ref(null);
9327
9559
  _useResizeObserver$1(X);
9328
- const re = _useTitle(), ee = computed(() => m.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), ue = computed(() => ee.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ce = computed(() => {
9560
+ const re = _useTitle(), ee = computed(() => _.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), ue = computed(() => ee.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ce = computed(() => {
9329
9561
  var H, Q;
9330
9562
  let K = "kg-submit";
9331
9563
  return ae.isFullscreen && (K += " kg-submit--fullscreen"), ((H = T.value) == null ? void 0 : H.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
9332
9564
  }), ae = reactive({
9333
9565
  isFullscreen: !1
9334
- }), V = computed(() => {
9566
+ }), w = computed(() => {
9335
9567
  var K, H, Q, Z;
9336
9568
  switch ((K = T.value) == null ? void 0 : K.layout) {
9337
9569
  case "horizontal":
@@ -9384,7 +9616,7 @@ const getProps$p = () => ({
9384
9616
  isDeleting: p.value,
9385
9617
  row: o.selectedRow.value,
9386
9618
  model: s.model
9387
- }), ((K = T.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && !m.value && (ae.isFullscreen = !0);
9619
+ }), ((K = T.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && !_.value && (ae.isFullscreen = !0);
9388
9620
  }
9389
9621
  function q() {
9390
9622
  var K;
@@ -9424,7 +9656,7 @@ const getProps$p = () => ({
9424
9656
  await de();
9425
9657
  break;
9426
9658
  case c.value:
9427
- await fe();
9659
+ await ge();
9428
9660
  break;
9429
9661
  case g.value:
9430
9662
  await _e();
@@ -9439,41 +9671,41 @@ const getProps$p = () => ({
9439
9671
  }
9440
9672
  async function de() {
9441
9673
  var H, Q, Z, ne, oe, se, ie;
9442
- const K = (H = b.value) == null ? void 0 : H.cmd;
9674
+ const K = (H = y.value) == null ? void 0 : H.cmd;
9443
9675
  if (!K) {
9444
9676
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9445
- VarButton: b.value
9677
+ VarButton: y.value
9446
9678
  });
9447
9679
  return;
9448
9680
  }
9449
9681
  a.store.setIsCreatingRequesting(a.formID, !0);
9450
9682
  try {
9451
9683
  await httpClient().request({
9452
- method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9684
+ method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9453
9685
  url: K,
9454
- params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((oe = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""), a.formID, r),
9686
+ params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((oe = (ne = y.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""), a.formID, r),
9455
9687
  data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
9456
- }), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
9688
+ }), message.success(re.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
9457
9689
  } catch (le) {
9458
9690
  console.error(le);
9459
9691
  } finally {
9460
9692
  a.store.setIsCreatingRequesting(a.formID, !1);
9461
9693
  }
9462
9694
  }
9463
- async function fe() {
9695
+ async function ge() {
9464
9696
  var H, Q, Z, ne, oe, se, ie;
9465
- const K = (H = _.value) == null ? void 0 : H.cmd;
9697
+ const K = (H = m.value) == null ? void 0 : H.cmd;
9466
9698
  if (!K) {
9467
9699
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9468
- VarButton: _.value
9700
+ VarButton: m.value
9469
9701
  });
9470
9702
  return;
9471
9703
  }
9472
9704
  try {
9473
9705
  a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
9474
- method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9706
+ method: (Z = (Q = m.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9475
9707
  url: K,
9476
- params: KgVarUtil.parseCommandParameter((oe = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
9708
+ params: KgVarUtil.parseCommandParameter((oe = (ne = m.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
9477
9709
  data: toRaw(s.model.value)
9478
9710
  }), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se);
9479
9711
  } catch (le) {
@@ -9508,21 +9740,21 @@ const getProps$p = () => ({
9508
9740
  }
9509
9741
  async function ve() {
9510
9742
  var H, Q, Z, ne, oe, se, ie;
9511
- const K = (H = y.value) == null ? void 0 : H.cmd;
9743
+ const K = (H = b.value) == null ? void 0 : H.cmd;
9512
9744
  if (!K) {
9513
9745
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9514
- VarButton: y.value
9746
+ VarButton: b.value
9515
9747
  });
9516
9748
  return;
9517
9749
  }
9518
9750
  try {
9519
9751
  a.store.setIsDeletingRequesting(a.formID, !0), await httpClient().request({
9520
- method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9752
+ method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9521
9753
  url: K,
9522
9754
  params: {
9523
9755
  ids: (oe = (ne = o.selectedRows.value) == null ? void 0 : ne.map((le) => {
9524
- var ge, me, he;
9525
- return (he = le[(me = (ge = y.value) == null ? void 0 : ge.del_param_clm) != null ? me : "id"]) != null ? he : "";
9756
+ var fe, me, he;
9757
+ return (he = le[(me = (fe = b.value) == null ? void 0 : fe.del_param_clm) != null ? me : "id"]) != null ? he : "";
9526
9758
  })) != null ? oe : []
9527
9759
  }
9528
9760
  }, {
@@ -9549,14 +9781,14 @@ const getProps$p = () => ({
9549
9781
  model: se,
9550
9782
  varConfig: ie,
9551
9783
  varProfileDetail: le,
9552
- varSubmitField: ge
9784
+ varSubmitField: fe
9553
9785
  }) => H({
9554
9786
  varName: ne,
9555
9787
  props: oe,
9556
9788
  model: se,
9557
9789
  varConfig: ie,
9558
9790
  varProfileDetail: le,
9559
- varSubmitField: ge
9791
+ varSubmitField: fe
9560
9792
  })
9561
9793
  }) : createVNode(KgForm.Item, {
9562
9794
  kgVarName: K.var_nam,
@@ -9585,7 +9817,7 @@ const getProps$p = () => ({
9585
9817
  ref: z,
9586
9818
  model: s.model.value,
9587
9819
  layout: (ne = (Z = T.value) == null ? void 0 : Z.layout) != null ? ne : "vertical",
9588
- labelCol: V.value,
9820
+ labelCol: w.value,
9589
9821
  wrapperCol: x.value
9590
9822
  }, {
9591
9823
  default: () => [createVNode("div", {
@@ -9594,11 +9826,11 @@ const getProps$p = () => ({
9594
9826
  gutter: 12
9595
9827
  }, _isSlot$7(K = U.value.map(pe)) ? K : {
9596
9828
  default: () => [K]
9597
- }), U.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
9829
+ }), U.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
9598
9830
  gutter: 12
9599
- }, _isSlot$7(H = A.value.map(pe)) ? H : {
9831
+ }, _isSlot$7(H = I.value.map(pe)) ? H : {
9600
9832
  default: () => [H]
9601
- }), m.value && createVNode("div", {
9833
+ }), _.value && createVNode("div", {
9602
9834
  style: "text-align: center; padding: 6px 0 12px;"
9603
9835
  }, [n.t("kg.confirmDelete")])])]
9604
9836
  })];
@@ -9610,15 +9842,15 @@ const getProps$p = () => ({
9610
9842
  let K, H;
9611
9843
  return createVNode("div", null, [createVNode(Button, {
9612
9844
  type: "primary",
9613
- ghost: !I.value,
9614
- disabled: I.value,
9845
+ ghost: !M.value,
9846
+ disabled: M.value,
9615
9847
  onClick: te
9616
9848
  }, _isSlot$7(K = n.t("kg.cancel")) ? K : {
9617
9849
  default: () => [K]
9618
9850
  }), createVNode(Button, {
9619
9851
  type: "primary",
9620
- disabled: O.value,
9621
- loading: M.value,
9852
+ disabled: $.value,
9853
+ loading: A.value,
9622
9854
  danger: !!p.value,
9623
9855
  onClick: J
9624
9856
  }, _isSlot$7(H = n.t(p.value ? "kg.delete" : "kg.save")) ? H : {
@@ -9634,8 +9866,8 @@ const getProps$p = () => ({
9634
9866
  return createVNode(KgSubmitHeader, {
9635
9867
  isFullscreen: ae.isFullscreen,
9636
9868
  "onUpdate:isFullscreen": (K) => ae.isFullscreen = K,
9637
- kgShowFullscreenButton: !m.value,
9638
- kgShowConfigButton: !m.value && e.kgShowConfigButton,
9869
+ kgShowFullscreenButton: !_.value,
9870
+ kgShowConfigButton: !_.value && e.kgShowConfigButton,
9639
9871
  onKgCancel: te
9640
9872
  }, null);
9641
9873
  }
@@ -9670,16 +9902,16 @@ const getProps$p = () => ({
9670
9902
  }) {
9671
9903
  provide(DI_KG_SLOTS, e.kgSlots);
9672
9904
  const r = useKgVar(), n = computed(() => r.store.isCreating(r.formID)), a = computed(() => r.store.isUpdating(r.formID)), o = computed(() => r.store.isCopying(r.formID)), s = computed(() => r.store.isDeleting(r.formID)), i = computed(() => r.store.getVarSubmitConfig(r.formID)), l = computed(() => {
9673
- var p, m, b, _;
9905
+ var p, _, y, m;
9674
9906
  switch (!0) {
9675
9907
  case n.value:
9676
9908
  return ((p = i.value) == null ? void 0 : p.crt_flg) !== 0;
9677
9909
  case a.value:
9678
- return ((m = i.value) == null ? void 0 : m.upt_flg) !== 0;
9910
+ return ((_ = i.value) == null ? void 0 : _.upt_flg) !== 0;
9679
9911
  case o.value:
9680
- return ((b = i.value) == null ? void 0 : b.cpy_flg) !== 0;
9912
+ return ((y = i.value) == null ? void 0 : y.cpy_flg) !== 0;
9681
9913
  case s.value:
9682
- return ((_ = i.value) == null ? void 0 : _.del_flg) !== 0;
9914
+ return ((m = i.value) == null ? void 0 : m.del_flg) !== 0;
9683
9915
  }
9684
9916
  return !1;
9685
9917
  }), u = computed(() => !!r.isOtherRequesting.value), c = computed(() => {
@@ -9691,9 +9923,9 @@ const getProps$p = () => ({
9691
9923
  spinning: u.value
9692
9924
  }, {
9693
9925
  default: () => {
9694
- var p, m;
9926
+ var p, _;
9695
9927
  return [t.default ? t.default() : createVNode(Fragment, null, [createVNode(KgSearch, null, null), (p = t.beforeButton) == null ? void 0 : p.call(t), createVNode(KgButton, null, null), createVNode(KgTable, null, null), l.value && createVNode(KgSubmit, {
9696
- kgClass: (m = e.kgSubmitClass) != null ? m : ""
9928
+ kgClass: (_ = e.kgSubmitClass) != null ? _ : ""
9697
9929
  }, null)])];
9698
9930
  }
9699
9931
  });
@@ -9738,7 +9970,7 @@ const getProps$p = () => ({
9738
9970
  return ((g = o.value) == null ? void 0 : g.align) === "center" ? c += " kg-table-td--center" : ((p = o.value) == null ? void 0 : p.align) === "right" && (c += " kg-table-td--right"), c;
9739
9971
  });
9740
9972
  function i(c) {
9741
- var g, p, m;
9973
+ var g, p, _;
9742
9974
  if (c.detail === 1)
9743
9975
  switch ((g = o.value) == null ? void 0 : g.display_type) {
9744
9976
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
@@ -9747,9 +9979,9 @@ const getProps$p = () => ({
9747
9979
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
9748
9980
  {
9749
9981
  c.stopPropagation(), c.preventDefault();
9750
- const b = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
9751
- (m = n.router.value) == null || m.push({
9752
- path: b.path,
9982
+ const y = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
9983
+ (_ = n.router.value) == null || _.push({
9984
+ path: y.path,
9753
9985
  query: e.kgRow
9754
9986
  });
9755
9987
  }
@@ -9757,7 +9989,7 @@ const getProps$p = () => ({
9757
9989
  }
9758
9990
  }
9759
9991
  function l() {
9760
- var c, g, p, m, b, _, v, y;
9992
+ var c, g, p, _, y, m, v, b;
9761
9993
  switch ((c = o.value) == null ? void 0 : c.display_type) {
9762
9994
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
9763
9995
  const C = KgUtil.tryParseJSON((g = o.value) == null ? void 0 : g.display_type_properties);
@@ -9766,19 +9998,19 @@ const getProps$p = () => ({
9766
9998
  }, null);
9767
9999
  }
9768
10000
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
9769
- const C = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties), T = isArrayLike(C) && C.find((E) => E.value === e.kgValue);
10001
+ const C = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties), T = isArrayLike(C) && C.find((E) => E.value === e.kgValue);
9770
10002
  return T ? createVNode(Tag, {
9771
- color: (b = T.color) != null ? b : "default"
10003
+ color: (y = T.color) != null ? y : "default"
9772
10004
  }, {
9773
10005
  default: () => [a.t(T.varName).value]
9774
10006
  }) : u();
9775
10007
  }
9776
10008
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
9777
- const C = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10009
+ const C = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties);
9778
10010
  return createVNode(KgProgressA, {
9779
10011
  kgTextWidth: C.textWidth,
9780
10012
  kgLeft: (v = e.kgRow) == null ? void 0 : v[C.leftColumn],
9781
- kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
10013
+ kgRight: (b = e.kgRow) == null ? void 0 : b[C.rightColumn]
9782
10014
  }, null);
9783
10015
  }
9784
10016
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -9891,8 +10123,8 @@ const getProps$l = () => ({
9891
10123
  }) => {
9892
10124
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
9893
10125
  return s = watch(l, (c) => {
9894
- var g, p, m, b, _, v, y, C, T, E, w;
9895
- c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (w = u == null ? void 0 : u.button_display_type) != null ? w : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
10126
+ var g, p, _, y, m, v, b, C, T, E, O;
10127
+ c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (y = u == null ? void 0 : u.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (b = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? b : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (O = u == null ? void 0 : u.button_display_type) != null ? O : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9896
10128
  }, {
9897
10129
  immediate: !0
9898
10130
  }), !1;
@@ -10062,8 +10294,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
10062
10294
  return o.onOpen(async ({
10063
10295
  model: s
10064
10296
  }) => {
10065
- var i, l, u, c, g, p, m, b, _, v;
10066
- return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (b = (m = a.currentVarGridMaster.value) == null ? void 0 : m.grp_nam) != null ? b : "", s.value.varGridDetails = (v = (_ = a.currentVarGridMaster.value) == null ? void 0 : _.varGridDetails) != null ? v : [], !1;
10297
+ var i, l, u, c, g, p, _, y, m, v;
10298
+ return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (y = (_ = a.currentVarGridMaster.value) == null ? void 0 : _.grp_nam) != null ? y : "", s.value.varGridDetails = (v = (m = a.currentVarGridMaster.value) == null ? void 0 : m.varGridDetails) != null ? v : [], !1;
10067
10299
  }), o.onBeforeOk(async ({
10068
10300
  model: s
10069
10301
  }) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
@@ -10086,15 +10318,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10086
10318
  } = _useServices(), i = ref(""), l = reactive({
10087
10319
  visible: !1
10088
10320
  }), u = ref(!1);
10089
- function c(y) {
10090
- a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
10321
+ function c(b) {
10322
+ a.store.setVarGridDetailVisible(a.formID, b.var_nam, b.vis_flg === 1 ? 0 : 1);
10091
10323
  }
10092
- function g(y) {
10093
- y.includes("1") || (i.value = "");
10324
+ function g(b) {
10325
+ b.includes("1") || (i.value = "");
10094
10326
  }
10095
10327
  async function p() {
10096
- var y;
10097
- if (((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
10328
+ var b;
10329
+ if (((b = a.currentVarGridMaster.value) == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
10098
10330
  KgUtil.confirm({
10099
10331
  content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
10100
10332
  okButtonProps: {
@@ -10112,17 +10344,17 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10112
10344
  })
10113
10345
  }), message.success(n.t("kg.updateSuccess"));
10114
10346
  }
10115
- async function m() {
10347
+ async function _() {
10116
10348
  u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
10117
10349
  }
10118
- function b() {
10350
+ function y() {
10119
10351
  return createVNode(Menu.SubMenu, {
10120
10352
  key: "1",
10121
10353
  title: n.t("kg.KgTable.column"),
10122
10354
  popupClassName: "kg-table-setting-submenu-popup-columns"
10123
10355
  }, {
10124
10356
  default: () => {
10125
- var y;
10357
+ var b;
10126
10358
  return createVNode("div", {
10127
10359
  class: "columns"
10128
10360
  }, [createVNode(Input, {
@@ -10131,7 +10363,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10131
10363
  allowClear: !0
10132
10364
  }, null), createVNode("ul", {
10133
10365
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
10134
- }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
10366
+ }, [(b = a.currentVarGridDetails.value) == null ? void 0 : b.map((C) => createVNode("li", {
10135
10367
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
10136
10368
  onClick: (T) => {
10137
10369
  T.preventDefault(), T.stopPropagation(), c(C);
@@ -10154,7 +10386,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10154
10386
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10155
10387
  });
10156
10388
  }
10157
- function _() {
10389
+ function m() {
10158
10390
  return createVNode(Menu.SubMenu, {
10159
10391
  key: "2",
10160
10392
  title: n.t("kg.KgTable.varGridMasters"),
@@ -10162,12 +10394,12 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10162
10394
  }, {
10163
10395
  default: () => {
10164
10396
  var T;
10165
- let y, C;
10397
+ let b, C;
10166
10398
  return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((E) => {
10167
- var w;
10399
+ var O;
10168
10400
  return createVNode(Menu.Item, {
10169
10401
  key: E.id,
10170
- class: E.id === ((w = a.currentVarGridMaster.value) == null ? void 0 : w.id) ? "selected" : "",
10402
+ class: E.id === ((O = a.currentVarGridMaster.value) == null ? void 0 : O.id) ? "selected" : "",
10171
10403
  "kg-var-nam": E.grd_var_nam,
10172
10404
  onClick: () => a.store.setCurrentVarGridMasterID(a.formID, E.id)
10173
10405
  }, {
@@ -10176,11 +10408,11 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10176
10408
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10177
10409
  key: "save-grid-view",
10178
10410
  onClick: p
10179
- }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
10180
- default: () => [y]
10411
+ }, _isSlot$5(b = n.t("kg.KgTable.saveVarGridMaster")) ? b : {
10412
+ default: () => [b]
10181
10413
  }), createVNode(Menu.Item, {
10182
10414
  key: "save-grid-view-as",
10183
- onClick: m
10415
+ onClick: _
10184
10416
  }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10185
10417
  default: () => [C]
10186
10418
  })]);
@@ -10189,14 +10421,14 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10189
10421
  });
10190
10422
  }
10191
10423
  function v() {
10192
- let y;
10424
+ let b;
10193
10425
  return createVNode(Menu.Item, {
10194
10426
  key: "config-var-grid-master",
10195
10427
  onClick: () => {
10196
10428
  l.visible = !0;
10197
10429
  }
10198
- }, _isSlot$5(y = n.t("kg.KgTable.config")) ? y : {
10199
- default: () => [y]
10430
+ }, _isSlot$5(b = n.t("kg.KgTable.config")) ? b : {
10431
+ default: () => [b]
10200
10432
  });
10201
10433
  }
10202
10434
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -10210,11 +10442,11 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10210
10442
  onOpenChange: g,
10211
10443
  selectable: !1
10212
10444
  }, {
10213
- default: () => [b(), _(), v()]
10445
+ default: () => [y(), m(), v()]
10214
10446
  })
10215
10447
  }), l.visible && createVNode(KgTableSettingConfigModal, {
10216
10448
  visible: l.visible,
10217
- "onUpdate:visible": (y) => l.visible = y,
10449
+ "onUpdate:visible": (b) => l.visible = b,
10218
10450
  hostFormID: a.formID
10219
10451
  }, null), u.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
10220
10452
  }
@@ -10371,13 +10603,13 @@ function _useColumns() {
10371
10603
  index: p
10372
10604
  }) => p + 1
10373
10605
  }, ...(g = i == null ? void 0 : i.map((p) => {
10374
- function m() {
10606
+ function _() {
10375
10607
  return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
10376
10608
  }
10377
- function b() {
10609
+ function y() {
10378
10610
  return e.t(p.var_nam).value;
10379
10611
  }
10380
- function _() {
10612
+ function m() {
10381
10613
  return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
10382
10614
  }
10383
10615
  function v() {
@@ -10386,24 +10618,24 @@ function _useColumns() {
10386
10618
  if (p.fix_right_flg === 1)
10387
10619
  return "right";
10388
10620
  }
10389
- function y() {
10621
+ function b() {
10390
10622
  return p.ord_flg === 1;
10391
10623
  }
10392
10624
  function C() {
10393
10625
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
10394
10626
  }
10395
- const T = m();
10627
+ const T = _();
10396
10628
  return {
10397
10629
  dataIndex: p.var_nam,
10398
- title: b(),
10630
+ title: y(),
10399
10631
  width: T,
10400
10632
  resizable: typeof T == "number",
10401
10633
  minWidth: KG_TABLE_TD_MIN_WIDTH,
10402
10634
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
10403
10635
  fixed: v(),
10404
- sorter: y(),
10636
+ sorter: b(),
10405
10637
  align: C(),
10406
- defaultSortOrder: _(),
10638
+ defaultSortOrder: m(),
10407
10639
  customHeaderCell: () => ({
10408
10640
  "kg-frm-id": p.frm_id,
10409
10641
  "kg-var-nam": p.var_nam
@@ -10456,24 +10688,24 @@ const KgTable$1 = "", KgTable = defineComponent({
10456
10688
  emit: r
10457
10689
  }) {
10458
10690
  const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
10459
- i.onSearch((V) => {
10460
- G(V);
10691
+ i.onSearch((w) => {
10692
+ G(w);
10461
10693
  }), i.onReset(() => {
10462
10694
  G(!0);
10463
10695
  }), u.store.$onAction(async ({
10464
- name: V,
10696
+ name: w,
10465
10697
  args: x
10466
10698
  }) => {
10467
- switch (V) {
10699
+ switch (w) {
10468
10700
  case "setSelecte":
10469
10701
  if (x[0] === s.formID) {
10470
10702
  const W = x[1], q = x[2];
10471
10703
  switch (!0) {
10472
- case (q && !M.value.includes(W[w.value])):
10473
- P([...M.value, W[w.value]]);
10704
+ case (q && !A.value.includes(W[O.value])):
10705
+ P([...A.value, W[O.value]]);
10474
10706
  break;
10475
- case (!q && M.value.includes(W[w.value])):
10476
- P(without$1(M.value, W[w.value]));
10707
+ case (!q && A.value.includes(W[O.value])):
10708
+ P(without$1(A.value, W[O.value]));
10477
10709
  break;
10478
10710
  }
10479
10711
  }
@@ -10482,95 +10714,95 @@ const KgTable$1 = "", KgTable = defineComponent({
10482
10714
  });
10483
10715
  const c = ref(!1), g = ref([]), {
10484
10716
  columns: p,
10485
- scrollX: m
10717
+ scrollX: _
10486
10718
  } = _useColumns(), {
10487
- isLoading: b
10488
- } = _useLoading(), _ = ref(null);
10489
- _useResizeObserver(_);
10490
- const v = computed(() => s.store.getVarButtonSearch(s.formID)), y = computed(() => {
10491
- var V;
10492
- return ((V = s.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
10719
+ isLoading: y
10720
+ } = _useLoading(), m = ref(null);
10721
+ _useResizeObserver(m);
10722
+ const v = computed(() => s.store.getVarButtonSearch(s.formID)), b = computed(() => {
10723
+ var w;
10724
+ return ((w = s.varGridConfig.value) == null ? void 0 : w.mult_flg) === 1;
10493
10725
  }), C = computed(() => {
10494
- var V;
10495
- return ((V = s.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
10726
+ var w;
10727
+ return ((w = s.varGridConfig.value) == null ? void 0 : w.aut_load_flg) === 1;
10496
10728
  }), T = computed(() => {
10497
- var V;
10498
- return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
10729
+ var w;
10730
+ return ((w = s.varGridConfig.value) == null ? void 0 : w.show_bottom_left_flg) !== 0;
10499
10731
  }), E = computed(() => {
10500
- var V;
10501
- return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
10502
- }), w = computed(() => {
10503
- var V, x;
10504
- return (x = (V = s.varGridConfig.value) == null ? void 0 : V.id_clm) != null ? x : "id";
10732
+ var w;
10733
+ return ((w = s.varGridConfig.value) == null ? void 0 : w.show_bottom_right_flg) !== 0;
10734
+ }), O = computed(() => {
10735
+ var w, x;
10736
+ return (x = (w = s.varGridConfig.value) == null ? void 0 : w.id_clm) != null ? x : "id";
10505
10737
  }), k = computed(() => {
10506
- var V, x;
10507
- return JSON.parse((x = (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? x : "[]");
10738
+ var w, x;
10739
+ return JSON.parse((x = (w = s.varGridConfig.value) == null ? void 0 : w.pg_size_opts) != null ? x : "[]");
10508
10740
  }), F = computed(() => {
10509
- var V;
10510
- return (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
10741
+ var w;
10742
+ return (w = s.varGridConfig.value) == null ? void 0 : w.pg_size_opt;
10511
10743
  }), R = computed(() => {
10512
- var V, x;
10513
- return (x = (V = v.value) == null ? void 0 : V.cmd) != null ? x : null;
10514
- }), $ = computed(() => {
10515
- var x, W, q, te, J, de, fe;
10516
- let V = {
10517
- pageNo: I.pageIndex,
10518
- pageSize: I.pageSize,
10519
- ...O,
10744
+ var w, x;
10745
+ return (x = (w = v.value) == null ? void 0 : w.cmd) != null ? x : null;
10746
+ }), V = computed(() => {
10747
+ var x, W, q, te, J, de, ge;
10748
+ let w = {
10749
+ pageNo: M.pageIndex,
10750
+ pageSize: M.pageSize,
10751
+ ...$,
10520
10752
  ...(W = (x = i.model) == null ? void 0 : x.value) != null ? W : {}
10521
10753
  };
10522
- return v.value && (V = {
10523
- ...V,
10754
+ return v.value && (w = {
10755
+ ...w,
10524
10756
  ...KgVarUtil.parseCommandParameter((te = (q = v.value) == null ? void 0 : q.cmd_prm) != null ? te : "")
10525
- }), (J = s.varGridConfig.value) != null && J.cmd_prm && (V = {
10526
- ...V,
10757
+ }), (J = s.varGridConfig.value) != null && J.cmd_prm && (w = {
10758
+ ...w,
10527
10759
  ...KgVarUtil.parseCommandParameter((de = s.varGridConfig.value.cmd_prm) != null ? de : "")
10528
- }), ((fe = s.varGridConfig.value) == null ? void 0 : fe.convert_sort_field_to_under_score_flg) === 1 && V.column && (V.column = snakeCase$1(V.column)), V;
10760
+ }), ((ge = s.varGridConfig.value) == null ? void 0 : ge.convert_sort_field_to_under_score_flg) === 1 && w.column && (w.column = snakeCase$1(w.column)), w;
10529
10761
  }), D = computed(() => {
10530
- var V;
10531
- if (((V = s.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
10762
+ var w;
10763
+ if (((w = s.varGridConfig.value) == null ? void 0 : w.show_check_column_flg) === 1)
10532
10764
  return {
10533
10765
  fixed: "left",
10534
10766
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10535
- hideSelectAll: !y.value,
10536
- selectedRowKeys: M,
10767
+ hideSelectAll: !b.value,
10768
+ selectedRowKeys: A,
10537
10769
  preserveSelectedRowKeys: !1,
10538
10770
  onSelect: (x) => B(x),
10539
- onChange: (x) => y.value && P(x)
10771
+ onChange: (x) => b.value && P(x)
10540
10772
  };
10541
10773
  }), U = computed(() => {
10542
- let V = "kg-table";
10543
- return !T.value && !E.value && (V += " kg-table--no-bottom"), V;
10544
- }), A = ref([]), M = ref([]), I = reactive({
10774
+ let w = "kg-table";
10775
+ return !T.value && !E.value && (w += " kg-table--no-bottom"), w;
10776
+ }), I = ref([]), A = ref([]), M = reactive({
10545
10777
  pageIndex: 1,
10546
10778
  pageSize: 10,
10547
10779
  total: 0
10548
- }), O = reactive({
10780
+ }), $ = reactive({
10549
10781
  column: void 0,
10550
10782
  order: void 0
10551
- }), N = watch(F, (V) => {
10552
- V && (setTimeout(() => N()), I.pageSize = V), c.value = !0;
10783
+ }), N = watch(F, (w) => {
10784
+ w && (setTimeout(() => N()), M.pageSize = w), c.value = !0;
10553
10785
  });
10554
- watch(k, (V) => {
10555
- V.length > 0 && !V.includes(I.pageSize) && (I.pageSize = F.value);
10556
- }), watch([R, C, i.isReady], ([V, x, W]) => {
10557
- V && x && W && !u.store.getIsRetrieved(s.formID) && G(!0);
10786
+ watch(k, (w) => {
10787
+ w.length > 0 && !w.includes(M.pageSize) && (M.pageSize = F.value);
10788
+ }), watch([R, C, i.isReady], ([w, x, W]) => {
10789
+ w && x && W && !u.store.getIsRetrieved(s.formID) && G(!0);
10558
10790
  }, {
10559
10791
  immediate: !0
10560
10792
  }), onUnmounted(() => {
10561
10793
  u.store.dispose(s.formID);
10562
10794
  });
10563
- function L(V, x) {
10795
+ function L(w, x) {
10564
10796
  if (!!D.value) {
10565
10797
  if (!x) {
10566
- M.value = [], u.store.setSelectedRows(s.formID, []);
10798
+ A.value = [], u.store.setSelectedRows(s.formID, []);
10567
10799
  return;
10568
10800
  }
10569
- switch (V == null ? void 0 : V.detail) {
10801
+ switch (w == null ? void 0 : w.detail) {
10570
10802
  case 1:
10571
- M.value = [x[w.value]], u.store.setSelectedRows(s.formID, M.value.map((W) => {
10803
+ A.value = [x[O.value]], u.store.setSelectedRows(s.formID, A.value.map((W) => {
10572
10804
  var q;
10573
- return (q = A.value) == null ? void 0 : q.find((te) => te[w.value] === W);
10805
+ return (q = I.value) == null ? void 0 : q.find((te) => te[O.value] === W);
10574
10806
  }).filter((W) => !!W));
10575
10807
  break;
10576
10808
  case 2:
@@ -10579,7 +10811,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10579
10811
  }
10580
10812
  }
10581
10813
  }
10582
- function G(V = !1) {
10814
+ function G(w = !1) {
10583
10815
  const x = watch(c, (q) => {
10584
10816
  q && (setTimeout(() => x()), W());
10585
10817
  }, {
@@ -10593,29 +10825,29 @@ const KgTable$1 = "", KgTable = defineComponent({
10593
10825
  });
10594
10826
  return;
10595
10827
  }
10596
- V && (I.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
10828
+ w && (M.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
10597
10829
  try {
10598
10830
  const J = await httpClient().request({
10599
10831
  method: "GET",
10600
10832
  url: R.value,
10601
- params: KgUtil.parseParams($.value, s.formID, n)
10833
+ params: KgUtil.parseParams(V.value, s.formID, n)
10602
10834
  }, {
10603
10835
  successMessageMode: "none"
10604
10836
  });
10605
10837
  switch (!0) {
10606
10838
  case !J:
10607
- A.value = [], I.total = 0;
10839
+ I.value = [], M.total = 0;
10608
10840
  break;
10609
10841
  case isArrayLike(J):
10610
- A.value = J, I.total = J.length;
10842
+ I.value = J, M.total = J.length;
10611
10843
  break;
10612
10844
  case ("total" in J && "records" in J):
10613
- A.value = (q = J.records) != null ? q : [], I.total = (te = J.total) != null ? te : 0;
10845
+ I.value = (q = J.records) != null ? q : [], M.total = (te = J.total) != null ? te : 0;
10614
10846
  break;
10615
10847
  }
10616
10848
  u.store.emit(s.formID, "retrieve", {
10617
10849
  page: J,
10618
- datas: A
10850
+ datas: I
10619
10851
  }), L(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
10620
10852
  } catch (J) {
10621
10853
  throw J;
@@ -10624,83 +10856,83 @@ const KgTable$1 = "", KgTable = defineComponent({
10624
10856
  }
10625
10857
  }
10626
10858
  }
10627
- function P(V) {
10628
- M.value = V, u.store.setSelectedRows(s.formID, M.value.map((x) => {
10859
+ function P(w) {
10860
+ A.value = w, u.store.setSelectedRows(s.formID, A.value.map((x) => {
10629
10861
  var W;
10630
- return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === x);
10862
+ return (W = I.value) == null ? void 0 : W.find((q) => q[O.value] === x);
10631
10863
  }).filter((x) => !!x));
10632
10864
  }
10633
- function B(V) {
10865
+ function B(w) {
10634
10866
  var x, W;
10635
- switch (y.value) {
10867
+ switch (b.value) {
10636
10868
  case !0:
10637
10869
  {
10638
- const q = V[w.value];
10639
- M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(x = M.value) != null ? x : [], q];
10870
+ const q = w[O.value];
10871
+ A.value.includes(q) ? A.value = without$1(A.value, q) : A.value = [...(x = A.value) != null ? x : [], q];
10640
10872
  }
10641
10873
  break;
10642
10874
  case !1:
10643
10875
  {
10644
- const q = V[w.value];
10645
- (W = M.value) != null && W.includes(q) ? M.value = [] : M.value = [q];
10876
+ const q = w[O.value];
10877
+ (W = A.value) != null && W.includes(q) ? A.value = [] : A.value = [q];
10646
10878
  }
10647
10879
  break;
10648
10880
  }
10649
- u.store.setSelectedRows(s.formID, M.value.map((q) => {
10881
+ u.store.setSelectedRows(s.formID, A.value.map((q) => {
10650
10882
  var te;
10651
- return (te = A.value) == null ? void 0 : te.find((J) => J[w.value] === q);
10883
+ return (te = I.value) == null ? void 0 : te.find((J) => J[O.value] === q);
10652
10884
  }).filter((q) => !!q));
10653
10885
  }
10654
- function z(V, x) {
10655
- x.width = V, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, V);
10886
+ function z(w, x) {
10887
+ x.width = w, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, w);
10656
10888
  }
10657
- async function Y(V, x, W, q) {
10889
+ async function Y(w, x, W, q) {
10658
10890
  var te;
10659
10891
  switch (q.action) {
10660
10892
  case "sort":
10661
10893
  {
10662
10894
  await nextTick();
10663
10895
  let J = W;
10664
- J.order ? (O.column = (te = J.field) != null ? te : void 0, O.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (O.column = void 0, O.order = void 0), G(!0);
10896
+ J.order ? ($.column = (te = J.field) != null ? te : void 0, $.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : ($.column = void 0, $.order = void 0), G(!0);
10665
10897
  }
10666
10898
  break;
10667
10899
  }
10668
10900
  }
10669
- function X(V, x) {
10670
- V ? g.value = [x[w.value]] : g.value = [];
10901
+ function X(w, x) {
10902
+ w ? g.value = [x[O.value]] : g.value = [];
10671
10903
  }
10672
- function re(V, x) {
10673
- x !== I.pageSize ? (I.pageIndex = 1, I.pageSize = x) : I.pageIndex = V, G();
10904
+ function re(w, x) {
10905
+ x !== M.pageSize ? (M.pageIndex = 1, M.pageSize = x) : M.pageIndex = w, G();
10674
10906
  }
10675
- function ee(V) {
10676
- M.value = [V[w.value]], u.store.setSelectedRows(s.formID, M.value.map((x) => {
10907
+ function ee(w) {
10908
+ A.value = [w[O.value]], u.store.setSelectedRows(s.formID, A.value.map((x) => {
10677
10909
  var W;
10678
- return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === x);
10910
+ return (W = I.value) == null ? void 0 : W.find((q) => q[O.value] === x);
10679
10911
  }).filter((x) => !!x)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
10680
10912
  }
10681
10913
  function ue({
10682
- title: V,
10914
+ title: w,
10683
10915
  column: x
10684
10916
  }) {
10685
10917
  switch (x.dataIndex) {
10686
10918
  case "index":
10687
10919
  return createVNode(KgTableSetting, null, null);
10688
10920
  default:
10689
- return createVNode("pre", null, [V]);
10921
+ return createVNode("pre", null, [w]);
10690
10922
  }
10691
10923
  }
10692
10924
  function ce({
10693
- column: V,
10925
+ column: w,
10694
10926
  index: x,
10695
10927
  record: W,
10696
10928
  value: q,
10697
10929
  text: te
10698
10930
  }) {
10699
10931
  let J = "";
10700
- V.customRender ? J = V.customRender({
10932
+ w.customRender ? J = w.customRender({
10701
10933
  index: x,
10702
10934
  record: W,
10703
- column: V,
10935
+ column: w,
10704
10936
  text: te,
10705
10937
  value: q,
10706
10938
  renderIndex: x
@@ -10708,14 +10940,14 @@ const KgTable$1 = "", KgTable = defineComponent({
10708
10940
  const de = createVNode(KgTableCell, {
10709
10941
  kgRow: W,
10710
10942
  kgValue: J,
10711
- kgVarName: V.dataIndex,
10943
+ kgVarName: w.dataIndex,
10712
10944
  onKgUpdateLinkClick: () => ee(W)
10713
10945
  }, null);
10714
10946
  return t.bodyCell ? t.bodyCell({
10715
10947
  value: q,
10716
10948
  record: W,
10717
10949
  index: x,
10718
- column: V,
10950
+ column: w,
10719
10951
  defaultRender: de
10720
10952
  }) : de;
10721
10953
  }
@@ -10723,24 +10955,24 @@ const KgTable$1 = "", KgTable = defineComponent({
10723
10955
  return !C.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
10724
10956
  }
10725
10957
  return () => {
10726
- var V;
10958
+ var w;
10727
10959
  return createVNode("div", {
10728
10960
  class: U.value,
10729
10961
  "kg-frm-id": s.formID,
10730
- ref: _
10962
+ ref: m
10731
10963
  }, [createVNode(Table, {
10732
10964
  class: "kg-flex-table",
10733
10965
  size: "small",
10734
10966
  scroll: {
10735
- x: m.value,
10967
+ x: _.value,
10736
10968
  y: "auto"
10737
10969
  },
10738
10970
  pagination: !1,
10739
10971
  showSorterTooltip: !1,
10740
10972
  columns: p.value,
10741
- dataSource: A.value,
10742
- loading: b.value,
10743
- rowKey: w.value,
10973
+ dataSource: I.value,
10974
+ loading: y.value,
10975
+ rowKey: O.value,
10744
10976
  rowSelection: D.value,
10745
10977
  expandColumnWidth: 28,
10746
10978
  expandedRowKeys: g.value,
@@ -10754,29 +10986,29 @@ const KgTable$1 = "", KgTable = defineComponent({
10754
10986
  headerCell: ue,
10755
10987
  bodyCell: ce,
10756
10988
  emptyText: ae,
10757
- expandedRowRender: (V = a == null ? void 0 : a.KgTable) == null ? void 0 : V.expandedRowRender
10989
+ expandedRowRender: (w = a == null ? void 0 : a.KgTable) == null ? void 0 : w.expandedRowRender
10758
10990
  }), (T.value || E.value) && createVNode("div", {
10759
10991
  class: "kg-table-bottom"
10760
10992
  }, [createVNode("div", {
10761
10993
  class: "left"
10762
10994
  }, [T.value && createVNode(KgTableInfo, {
10763
- kgShowClearCheck: M.value.length > 0,
10764
- kgShowClearTable: I.total > 0,
10765
- kgShowLocate: M.value.length === 1,
10766
- kgTotal: M.value.length,
10767
- kgDisabled: b.value
10995
+ kgShowClearCheck: A.value.length > 0,
10996
+ kgShowClearTable: M.total > 0,
10997
+ kgShowLocate: A.value.length === 1,
10998
+ kgTotal: A.value.length,
10999
+ kgDisabled: y.value
10768
11000
  }, null)]), createVNode("div", {
10769
11001
  class: "right"
10770
11002
  }, [E.value && createVNode(Pagination, {
10771
11003
  size: "default",
10772
- current: I.pageIndex,
10773
- pageSize: I.pageSize,
11004
+ current: M.pageIndex,
11005
+ pageSize: M.pageSize,
10774
11006
  pageSizeOptions: k.value.map((x) => String(x)),
10775
- total: I.total,
11007
+ total: M.total,
10776
11008
  showSizeChanger: !0,
10777
11009
  showQuickJumper: !1,
10778
11010
  hideOnSinglePage: !1,
10779
- disabled: b.value || I.total === 0,
11011
+ disabled: y.value || M.total === 0,
10780
11012
  locale: {
10781
11013
  page: ""
10782
11014
  },
@@ -10892,26 +11124,26 @@ const KgTable$1 = "", KgTable = defineComponent({
10892
11124
  props: getProps$f(),
10893
11125
  setup(e) {
10894
11126
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
10895
- var p, m;
10896
- return a.value ? (m = (p = a.value) == null ? void 0 : p.cmd) != null ? m : "" : null;
11127
+ var p, _;
11128
+ return a.value ? (_ = (p = a.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
10897
11129
  }), s = computed(() => {
10898
- var p, m;
10899
- return (m = (p = a.value) == null ? void 0 : p.cmd_method) != null ? m : "GET";
11130
+ var p, _;
11131
+ return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
10900
11132
  }), i = computed(() => {
10901
- var m, b, _, v, y, C;
11133
+ var _, y, m, v, b, C;
10902
11134
  let p = {
10903
- ...(m = n.model.value) != null ? m : {}
11135
+ ...(_ = n.model.value) != null ? _ : {}
10904
11136
  };
10905
11137
  return a.value && (p = {
10906
11138
  ...p,
10907
- ...KgVarUtil.parseCommandParameter((_ = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? _ : "")
11139
+ ...KgVarUtil.parseCommandParameter((m = (y = a.value) == null ? void 0 : y.cmd_prm) != null ? m : "")
10908
11140
  }), (v = r.varGridConfig.value) != null && v.cmd_prm && (p = {
10909
11141
  ...p,
10910
- ...KgVarUtil.parseCommandParameter((y = r.varGridConfig.value.cmd_prm) != null ? y : "")
11142
+ ...KgVarUtil.parseCommandParameter((b = r.varGridConfig.value.cmd_prm) != null ? b : "")
10911
11143
  }), ((C = r.varGridConfig.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
10912
11144
  }), l = ref(!1);
10913
11145
  async function u() {
10914
- var p, m, b;
11146
+ var p, _, y;
10915
11147
  if (!(e.onKgClick && await e.onKgClick())) {
10916
11148
  if (!o.value) {
10917
11149
  Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -10921,7 +11153,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10921
11153
  }
10922
11154
  l.value = !0;
10923
11155
  try {
10924
- const _ = await httpClient().request({
11156
+ const m = await httpClient().request({
10925
11157
  method: s.value,
10926
11158
  url: o.value,
10927
11159
  params: i.value,
@@ -10930,9 +11162,9 @@ const KgTable$1 = "", KgTable = defineComponent({
10930
11162
  joinParamsToUrl: !0,
10931
11163
  isTransformResponse: !1
10932
11164
  });
10933
- KgUtil.downloadFile(_, `${r.t((m = (p = a.value) == null ? void 0 : p.export_excel_filename) != null ? m : "export").value}.${(b = a.value) == null ? void 0 : b.export_excel_suffix}`);
10934
- } catch (_) {
10935
- throw _;
11165
+ KgUtil.downloadFile(m, `${r.t((_ = (p = a.value) == null ? void 0 : p.export_excel_filename) != null ? _ : "export").value}.${(y = a.value) == null ? void 0 : y.export_excel_suffix}`);
11166
+ } catch (m) {
11167
+ throw m;
10936
11168
  } finally {
10937
11169
  l.value = !1;
10938
11170
  }
@@ -10966,25 +11198,25 @@ const KgTable$1 = "", KgTable = defineComponent({
10966
11198
  attrs: r
10967
11199
  }) {
10968
11200
  const n = useKg(), a = useKgVar(), o = useKgSearch(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
10969
- var m, b;
10970
- return s.value ? (b = (m = s.value) == null ? void 0 : m.cmd) != null ? b : "" : null;
11201
+ var _, y;
11202
+ return s.value ? (y = (_ = s.value) == null ? void 0 : _.cmd) != null ? y : "" : null;
10971
11203
  }), l = computed(() => {
10972
- var m, b;
10973
- return (b = (m = s.value) == null ? void 0 : m.cmd_method) != null ? b : "POST";
11204
+ var _, y;
11205
+ return (y = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? y : "POST";
10974
11206
  });
10975
11207
  computed(() => {
10976
- var b, _, v;
10977
- let m = {
10978
- ...(b = o.model.value) != null ? b : {}
11208
+ var y, m, v;
11209
+ let _ = {
11210
+ ...(y = o.model.value) != null ? y : {}
10979
11211
  };
10980
- return s.value && (m = {
10981
- ...m,
10982
- ...KgVarUtil.parseCommandParameter((v = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? v : "")
10983
- }), m;
11212
+ return s.value && (_ = {
11213
+ ..._,
11214
+ ...KgVarUtil.parseCommandParameter((v = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? v : "")
11215
+ }), _;
10984
11216
  });
10985
11217
  const u = ref(!1);
10986
- async function c(m) {
10987
- var b, _;
11218
+ async function c(_) {
11219
+ var y, m;
10988
11220
  if (!i.value)
10989
11221
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10990
11222
  VarButton: s.value
@@ -10992,7 +11224,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10992
11224
  u.value = !0;
10993
11225
  try {
10994
11226
  const v = new FormData();
10995
- v.append("file", m), await httpClient().axiosInstance.request({
11227
+ v.append("file", _), await httpClient().axiosInstance.request({
10996
11228
  method: l.value,
10997
11229
  baseURL: window._CONFIG.domianURL,
10998
11230
  url: i.value,
@@ -11001,7 +11233,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11001
11233
  "Content-Type": "multipart/form-data;charset=UTF-8",
11002
11234
  ignoreCancelToken: !0
11003
11235
  }
11004
- }), message.success(n.t("kg.importSuccess")), (_ = (b = o.search).value) == null || _.call(b, !0);
11236
+ }), message.success(n.t("kg.importSuccess")), (m = (y = o.search).value) == null || m.call(y, !0);
11005
11237
  } catch (v) {
11006
11238
  throw v;
11007
11239
  } finally {
@@ -11101,7 +11333,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11101
11333
  setup(e) {
11102
11334
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11103
11335
  async function o() {
11104
- var g, p, m;
11336
+ var g, p, _;
11105
11337
  if (e.onKgClick && await e.onKgClick())
11106
11338
  return;
11107
11339
  const l = (g = e.kgButton) == null ? void 0 : g.cmd;
@@ -11113,16 +11345,16 @@ const KgTable$1 = "", KgTable = defineComponent({
11113
11345
  }
11114
11346
  let u = null;
11115
11347
  const c = async () => {
11116
- var _, v, y, C, T, E, w;
11348
+ var m, v, b, C, T, E, O;
11117
11349
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11118
- const b = a.selectedRows.value;
11350
+ const y = a.selectedRows.value;
11119
11351
  try {
11120
11352
  await httpClient().request({
11121
- method: (v = (_ = e.kgButton) == null ? void 0 : _.cmd_method) != null ? v : "POST",
11353
+ method: (v = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? v : "POST",
11122
11354
  url: l,
11123
- params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
11124
- data: b != null ? b : []
11125
- }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((w = (E = n.search).value) == null || w.call(E, !0));
11355
+ params: KgVarUtil.parseCommandParameter((C = (b = e.kgButton) == null ? void 0 : b.cmd_prm) != null ? C : ""),
11356
+ data: y != null ? y : []
11357
+ }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((O = (E = n.search).value) == null || O.call(E, !0));
11126
11358
  } catch (k) {
11127
11359
  console.error(k);
11128
11360
  } finally {
@@ -11130,10 +11362,10 @@ const KgTable$1 = "", KgTable = defineComponent({
11130
11362
  }
11131
11363
  };
11132
11364
  if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
11133
- const b = KgUtil.tryParseJSON((m = e.kgButton) == null ? void 0 : m.modal_props);
11134
- typeof b.content == "string" && (b.content = r.t(b.content).value), u = KgUtil.confirm({
11365
+ const y = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
11366
+ typeof y.content == "string" && (y.content = r.t(y.content).value), u = KgUtil.confirm({
11135
11367
  onOk: () => c(),
11136
- ...b
11368
+ ...y
11137
11369
  });
11138
11370
  } else
11139
11371
  c();
@@ -11350,8 +11582,8 @@ const KgButtonItem = defineComponent({
11350
11582
  props: getProps$f(),
11351
11583
  setup(e) {
11352
11584
  const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
11353
- var u, c, g, p, m, b, _, v;
11354
- return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((b = (m = n.selectedRows.value) == null ? void 0 : m.length) != null ? b : 0) > 1 || ((_ = a.value) == null ? void 0 : _.permission_type) === 2 && !t.p((v = a.value) == null ? void 0 : v.permission_code));
11585
+ var u, c, g, p, _, y, m, v;
11586
+ return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((y = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? y : 0) > 1 || ((m = a.value) == null ? void 0 : m.permission_type) === 2 && !t.p((v = a.value) == null ? void 0 : v.permission_code));
11355
11587
  }), s = computed(() => {
11356
11588
  let u = "kg-button-item";
11357
11589
  switch (e.kgColor) {
@@ -11361,7 +11593,7 @@ const KgButtonItem = defineComponent({
11361
11593
  }
11362
11594
  return u;
11363
11595
  }), i = computed(() => {
11364
- var c, g, p, m;
11596
+ var c, g, p, _;
11365
11597
  return {
11366
11598
  ...e,
11367
11599
  class: s.value,
@@ -11369,7 +11601,7 @@ const KgButtonItem = defineComponent({
11369
11601
  "kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
11370
11602
  "kg-frm-id": (g = a.value) == null ? void 0 : g.frm_id,
11371
11603
  "kg-var-nam": (p = a.value) == null ? void 0 : p.var_nam,
11372
- "kg-cmd": (m = a.value) == null ? void 0 : m.cmd
11604
+ "kg-cmd": (_ = a.value) == null ? void 0 : _.cmd
11373
11605
  };
11374
11606
  });
11375
11607
  function l() {
@@ -11417,15 +11649,15 @@ const getProps$e = () => ({
11417
11649
  props: getProps$e(),
11418
11650
  setup(e) {
11419
11651
  const t = useKg(), r = useKgVar(), n = useKgButton(), a = computed(() => !1);
11420
- function o(m) {
11421
- return n.store.emit(r.formID, "click", m);
11652
+ function o(_) {
11653
+ return n.store.emit(r.formID, "click", _);
11422
11654
  }
11423
- function s(m) {
11655
+ function s(_) {
11424
11656
  if (e.kgDisabled)
11425
- return e.kgDisabled(m);
11657
+ return e.kgDisabled(_);
11426
11658
  }
11427
- function i(m) {
11428
- switch (m.primary_flg) {
11659
+ function i(_) {
11660
+ switch (_.primary_flg) {
11429
11661
  case 1:
11430
11662
  return !0;
11431
11663
  case 0:
@@ -11434,37 +11666,37 @@ const getProps$e = () => ({
11434
11666
  return;
11435
11667
  }
11436
11668
  }
11437
- function l(m) {
11438
- if (r.t(m.var_nam).value !== m.var_nam)
11439
- return r.t(m.var_nam).value;
11669
+ function l(_) {
11670
+ if (r.t(_.var_nam).value !== _.var_nam)
11671
+ return r.t(_.var_nam).value;
11440
11672
  }
11441
11673
  function u() {
11442
- var m, b;
11443
- if (!r.varButtons.value || ((m = r.varButtons.value) == null ? void 0 : m.length) === 0)
11674
+ var _, y;
11675
+ if (!r.varButtons.value || ((_ = r.varButtons.value) == null ? void 0 : _.length) === 0)
11444
11676
  return null;
11445
- switch ((b = r.varGridConfig.value) == null ? void 0 : b.button_display_type) {
11677
+ switch ((y = r.varGridConfig.value) == null ? void 0 : y.button_display_type) {
11446
11678
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
11447
11679
  return p();
11448
11680
  default:
11449
11681
  return g();
11450
11682
  }
11451
11683
  }
11452
- function c(m) {
11684
+ function c(_) {
11453
11685
  return createVNode(KgButtonItem, {
11454
- kgButton: m,
11455
- kgVarName: m.var_nam,
11456
- kgType: m.typ,
11457
- kgIcon: m.icon,
11458
- kgText: l(m),
11459
- kgColor: m.color,
11460
- kgPrimary: i(m),
11461
- kgDisabled: s(m),
11462
- onKgClick: () => o(m)
11686
+ kgButton: _,
11687
+ kgVarName: _.var_nam,
11688
+ kgType: _.typ,
11689
+ kgIcon: _.icon,
11690
+ kgText: l(_),
11691
+ kgColor: _.color,
11692
+ kgPrimary: i(_),
11693
+ kgDisabled: s(_),
11694
+ onKgClick: () => o(_)
11463
11695
  }, null);
11464
11696
  }
11465
11697
  function g() {
11466
- var m;
11467
- return (m = r.varButtons.value) == null ? void 0 : m.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
11698
+ var _;
11699
+ return (_ = r.varButtons.value) == null ? void 0 : _.filter((y) => y.typ !== KG_BUTTON_TYPE.SEARCH).map((y) => c(y));
11468
11700
  }
11469
11701
  function p() {
11470
11702
  return createVNode(Dropdown, {
@@ -11478,10 +11710,10 @@ const getProps$e = () => ({
11478
11710
  }),
11479
11711
  overlay: () => createVNode(Menu, null, {
11480
11712
  default: () => {
11481
- var m, b;
11482
- return [(b = (m = r.varButtons.value) == null ? void 0 : m.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : b.filter((_) => !(_.permission_type !== 2 && !t.p(_.permission_code))).map((_) => {
11713
+ var _, y;
11714
+ return [(y = (_ = r.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : y.filter((m) => !(m.permission_type !== 2 && !t.p(m.permission_code))).map((m) => {
11483
11715
  let v;
11484
- return createVNode(Menu.Item, null, _isSlot$3(v = c(_)) ? v : {
11716
+ return createVNode(Menu.Item, null, _isSlot$3(v = c(m)) ? v : {
11485
11717
  default: () => [v]
11486
11718
  });
11487
11719
  })];
@@ -11490,14 +11722,14 @@ const getProps$e = () => ({
11490
11722
  });
11491
11723
  }
11492
11724
  return () => {
11493
- let m;
11725
+ let _;
11494
11726
  return createVNode("div", {
11495
11727
  class: "kg-button",
11496
11728
  "kg-frm-id": r.formID
11497
11729
  }, [createVNode(Spin, {
11498
11730
  spinning: a.value
11499
- }, _isSlot$3(m = u()) ? m : {
11500
- default: () => [m]
11731
+ }, _isSlot$3(_ = u()) ? _ : {
11732
+ default: () => [_]
11501
11733
  })]);
11502
11734
  };
11503
11735
  }
@@ -11893,39 +12125,39 @@ const leftVarProfileDetailColumns = (e) => {
11893
12125
  }) {
11894
12126
  const r = useKg(), n = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), a = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER), s = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), i = useKgVar(e.hostFormID);
11895
12127
  s.onOpen(async ({
11896
- isCreating: b,
11897
- isUpdating: _,
12128
+ isCreating: y,
12129
+ isUpdating: m,
11898
12130
  isCopying: v,
11899
- row: y,
12131
+ row: b,
11900
12132
  model: C
11901
12133
  }) => {
11902
- var E, w, k;
12134
+ var E, O, k;
11903
12135
  const T = i.store.getSystemVarProfileDetails(i.formID);
11904
12136
  switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
11905
- case b:
12137
+ case y:
11906
12138
  u.value = [];
11907
12139
  break;
11908
- case _:
12140
+ case m:
11909
12141
  case v:
11910
- if (y != null && y.id)
12142
+ if (b != null && b.id)
11911
12143
  try {
11912
12144
  s.store.setIsLoading(n.formID, !0);
11913
12145
  const F = await QueryByID({
11914
12146
  params: {
11915
- id: y.id
12147
+ id: b.id
11916
12148
  }
11917
12149
  });
11918
- l.value = l.value.map(($) => {
12150
+ l.value = l.value.map((V) => {
11919
12151
  var U;
11920
- const D = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((A) => A.var_nam === $.var_nam);
12152
+ const D = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((I) => I.var_nam === V.var_nam);
11921
12153
  return D ? {
11922
- ...$,
12154
+ ...V,
11923
12155
  ...D,
11924
- id: $.id
11925
- } : $;
12156
+ id: V.id
12157
+ } : V;
11926
12158
  });
11927
- const R = (w = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map(($) => $.var_nam)) != null ? w : [];
11928
- u.value = l.value.filter(($) => R.includes($.var_nam)).map(($) => $.id);
12159
+ const R = (O = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map((V) => V.var_nam)) != null ? O : [];
12160
+ u.value = l.value.filter((V) => R.includes(V.var_nam)).map((V) => V.id);
11929
12161
  } catch (F) {
11930
12162
  throw F;
11931
12163
  } finally {
@@ -11942,24 +12174,24 @@ const leftVarProfileDetailColumns = (e) => {
11942
12174
  }
11943
12175
  return !1;
11944
12176
  }), s.onBeforeOk(async ({
11945
- model: b
12177
+ model: y
11946
12178
  }) => {
11947
- var v, y;
11948
- const _ = b.value;
11949
- return _.frm_id = i.formID, _.varProfileDetails = (y = (v = l.value) == null ? void 0 : v.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
12179
+ var v, b;
12180
+ const m = y.value;
12181
+ return m.frm_id = i.formID, m.varProfileDetails = (b = (v = l.value) == null ? void 0 : v.filter((C) => u.value.includes(C.id))) != null ? b : [], !1;
11950
12182
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
11951
- row: b
11952
- }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
12183
+ row: y
12184
+ }) => (y == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
11953
12185
  KgUtil.confirm({
11954
12186
  content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
11955
12187
  okButtonProps: {
11956
12188
  danger: !1
11957
12189
  },
11958
12190
  onOk: () => {
11959
- n.store.setIsCopying(n.formID, !0), _(!0);
12191
+ n.store.setIsCopying(n.formID, !0), m(!0);
11960
12192
  },
11961
12193
  onCancel: () => {
11962
- _(!0);
12194
+ m(!0);
11963
12195
  }
11964
12196
  });
11965
12197
  }) : Promise.resolve(!1)), o.onDeleteOk(() => (i.store.retrieve(i.formID), Promise.resolve(!1)));
@@ -11967,10 +12199,10 @@ const leftVarProfileDetailColumns = (e) => {
11967
12199
  KgSubmit: {
11968
12200
  "KgForm.Item": {
11969
12201
  varProfileDetails: ({
11970
- varName: b,
11971
- props: _,
12202
+ varName: y,
12203
+ props: m,
11972
12204
  model: v,
11973
- varConfig: y,
12205
+ varConfig: b,
11974
12206
  varProfileDetail: C,
11975
12207
  varSubmitField: T
11976
12208
  }) => createVNode(Transfer, {
@@ -11981,18 +12213,18 @@ const leftVarProfileDetailColumns = (e) => {
11981
12213
  showSearch: !0,
11982
12214
  showSelectAll: !1,
11983
12215
  searchPlaceholder: " ",
11984
- filterOption: (E, w) => {
12216
+ filterOption: (E, O) => {
11985
12217
  var k;
11986
- return !!((k = w.var_nam) != null && k.includes(E));
12218
+ return !!((k = O.var_nam) != null && k.includes(E));
11987
12219
  }
11988
12220
  }, {
11989
12221
  children: ({
11990
12222
  direction: E,
11991
- filteredItems: w,
12223
+ filteredItems: O,
11992
12224
  selectedKeys: k,
11993
12225
  disabled: F,
11994
12226
  onItemSelectAll: R,
11995
- onItemSelect: $
12227
+ onItemSelect: V
11996
12228
  }) => createVNode(Table, {
11997
12229
  pagination: !1,
11998
12230
  class: "kg-flex-table",
@@ -12003,15 +12235,15 @@ const leftVarProfileDetailColumns = (e) => {
12003
12235
  },
12004
12236
  columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
12005
12237
  rowKey: "id",
12006
- dataSource: w,
12238
+ dataSource: O,
12007
12239
  customRow: (D) => ({
12008
- onClick: (U) => m(U, D, E, k)
12240
+ onClick: (U) => _(U, D, E, k)
12009
12241
  }),
12010
12242
  rowSelection: g({
12011
12243
  disabled: F,
12012
12244
  selectedKeys: k,
12013
12245
  onItemSelectAll: R,
12014
- onItemSelect: $
12246
+ onItemSelect: V
12015
12247
  })
12016
12248
  }, null)
12017
12249
  })
@@ -12022,51 +12254,51 @@ const leftVarProfileDetailColumns = (e) => {
12022
12254
  p();
12023
12255
  });
12024
12256
  const g = ({
12025
- disabled: b,
12026
- selectedKeys: _,
12257
+ disabled: y,
12258
+ selectedKeys: m,
12027
12259
  onItemSelectAll: v,
12028
- onItemSelect: y
12260
+ onItemSelect: b
12029
12261
  }) => ({
12030
12262
  getCheckboxProps: (C) => ({
12031
- disabled: b || C.disabled
12263
+ disabled: y || C.disabled
12032
12264
  }),
12033
12265
  onSelectAll(C, T) {
12034
- const E = T.filter((w) => !w.disabled).map(({
12035
- key: w
12036
- }) => w);
12266
+ const E = T.filter((O) => !O.disabled).map(({
12267
+ key: O
12268
+ }) => O);
12037
12269
  v(E, C);
12038
12270
  },
12039
12271
  onSelect({
12040
12272
  key: C
12041
12273
  }, T) {
12042
- y(C, T);
12274
+ b(C, T);
12043
12275
  },
12044
- selectedRowKeys: _,
12276
+ selectedRowKeys: m,
12045
12277
  columnWidth: 32
12046
12278
  });
12047
12279
  async function p() {
12048
- const b = watch(a.isReady, async (_) => {
12049
- var v, y;
12050
- _ && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
12280
+ const y = watch(a.isReady, async (m) => {
12281
+ var v, b;
12282
+ m && a.model.value && (setTimeout(() => y(), 0), a.store.patchModel(n.formID, {
12051
12283
  frm_id: e.hostFormID
12052
- }), (y = (v = a.search).value) == null || y.call(v));
12284
+ }), (b = (v = a.search).value) == null || b.call(v));
12053
12285
  }, {
12054
12286
  immediate: !0
12055
12287
  });
12056
12288
  }
12057
- function m(b, _, v, y) {
12058
- if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
12059
- switch (y.length = 0, b.detail) {
12289
+ function _(y, m, v, b) {
12290
+ if (!DomUtil.isNotClickable(y.target, ["ant-input"]))
12291
+ switch (b.length = 0, y.detail) {
12060
12292
  case 1:
12061
- y[0] = _.id;
12293
+ b[0] = m.id;
12062
12294
  break;
12063
12295
  case 2:
12064
12296
  switch (v) {
12065
12297
  case "left":
12066
- u.value.push(_.id);
12298
+ u.value.push(m.id);
12067
12299
  break;
12068
12300
  case "right":
12069
- u.value = without$1(u.value, _.id);
12301
+ u.value = without$1(u.value, m.id);
12070
12302
  break;
12071
12303
  }
12072
12304
  break;
@@ -12177,13 +12409,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12177
12409
  }), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
12178
12410
  var P, B;
12179
12411
  return !!(o.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
12180
- }), m = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), _ = ref(null), v = ref({
12412
+ }), _ = computed(() => !!o.isRetrieving.value), y = computed(() => !!o.isRetrieving.value), m = ref(null), v = ref({
12181
12413
  kgHeight: g.value
12182
- }), y = ref({
12414
+ }), b = ref({
12183
12415
  visible: !1
12184
12416
  });
12185
12417
  let C;
12186
- const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), w = computed(() => {
12418
+ const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), O = computed(() => {
12187
12419
  var P, B, z;
12188
12420
  if (n.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
12189
12421
  return n.t((z = E.value) == null ? void 0 : z.var_nam).value;
@@ -12200,7 +12432,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12200
12432
  }), F = computed(() => {
12201
12433
  var P;
12202
12434
  return ((P = i.value) == null ? void 0 : P.vis_flg) === 1;
12203
- }), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), $ = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
12435
+ }), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), V = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
12204
12436
  let P = "kg-search";
12205
12437
  return F.value && (P += " kg-search--visible"), l.value && (P += " kg-search--teleport"), P;
12206
12438
  });
@@ -12209,7 +12441,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12209
12441
  const B = {};
12210
12442
  P.forEach((z) => {
12211
12443
  B[z.var_nam] = "";
12212
- }), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (C == null || C(), C = watch(_, (z) => {
12444
+ }), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (C == null || C(), C = watch(m, (z) => {
12213
12445
  z && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12214
12446
  }, {
12215
12447
  immediate: !0
@@ -12221,7 +12453,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12221
12453
  a.store.dispose(n.formID);
12222
12454
  });
12223
12455
  function U(P = !1) {
12224
- F.value ? _.value && _.value.validate().then(() => {
12456
+ F.value ? m.value && m.value.validate().then(() => {
12225
12457
  a.store.emit(n.formID, "search", {
12226
12458
  resetPageIndex: P
12227
12459
  });
@@ -12234,9 +12466,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12234
12466
  });
12235
12467
  }
12236
12468
  a.store.setSearchFn(n.formID, U);
12237
- function A() {
12469
+ function I() {
12238
12470
  var P;
12239
- (P = _.value) == null || P.resetFields(), F.value ? _.value && _.value.validate().then(() => {
12471
+ (P = m.value) == null || P.resetFields(), F.value ? m.value && m.value.validate().then(() => {
12240
12472
  a.store.emit(n.formID, "reset");
12241
12473
  }).catch((B) => {
12242
12474
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
@@ -12244,11 +12476,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12244
12476
  });
12245
12477
  }) : a.store.emit(n.formID, "reset");
12246
12478
  }
12247
- a.store.setResetFn(n.formID, A);
12248
- function M() {
12479
+ a.store.setResetFn(n.formID, I);
12480
+ function A() {
12249
12481
  return U(!0), Promise.resolve(!0);
12250
12482
  }
12251
- function I() {
12483
+ function M() {
12252
12484
  var P;
12253
12485
  return createVNode("div", {
12254
12486
  class: "title",
@@ -12260,12 +12492,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12260
12492
  }
12261
12493
  }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12262
12494
  }
12263
- function O() {
12495
+ function $() {
12264
12496
  var P, B, z, Y;
12265
12497
  return ((z = (B = (P = n.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12266
12498
  value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
12267
12499
  "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
12268
- disabled: m.value,
12500
+ disabled: _.value,
12269
12501
  class: "kg-search-profile-master-select"
12270
12502
  }, {
12271
12503
  default: () => {
@@ -12278,26 +12510,26 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12278
12510
  },
12279
12511
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
12280
12512
  }), createVNode(Button, {
12281
- disabled: m.value,
12513
+ disabled: _.value,
12282
12514
  onClick: () => {
12283
- y.value.visible = !0;
12515
+ b.value.visible = !0;
12284
12516
  },
12285
12517
  class: "kg-search-profile-master-btn"
12286
12518
  }, {
12287
12519
  default: () => [createVNode(SettingOutlined$1, null, null)]
12288
12520
  }), createVNode(KgSearchConfigModal, {
12289
- visible: y.value.visible,
12290
- "onUpdate:visible": (X) => y.value.visible = X,
12521
+ visible: b.value.visible,
12522
+ "onUpdate:visible": (X) => b.value.visible = X,
12291
12523
  hostFormID: n.formID
12292
12524
  }, null)]);
12293
12525
  }
12294
12526
  function N() {
12295
12527
  var P, B, z, Y, X;
12296
- return createVNode(Fragment, null, [O(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
12528
+ return createVNode(Fragment, null, [$(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
12297
12529
  type: "primary",
12298
12530
  ghost: !p.value,
12299
12531
  disabled: p.value,
12300
- onClick: A,
12532
+ onClick: I,
12301
12533
  class: "kg-search-btn-reset"
12302
12534
  }, {
12303
12535
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
@@ -12305,21 +12537,21 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12305
12537
  kgType: KG_BUTTON_TYPE.SEARCH,
12306
12538
  kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
12307
12539
  kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
12308
- kgText: w.value,
12540
+ kgText: O.value,
12309
12541
  kgColor: (X = E.value) == null ? void 0 : X.color,
12310
12542
  kgPrimary: k.value,
12311
- kgLoading: b.value,
12312
- onKgClick: M
12543
+ kgLoading: y.value,
12544
+ onKgClick: A
12313
12545
  }, null)]);
12314
12546
  }
12315
12547
  function L() {
12316
12548
  return createVNode(Spin, {
12317
- spinning: $.value
12549
+ spinning: V.value
12318
12550
  }, {
12319
12551
  default: () => {
12320
12552
  var P;
12321
12553
  return [createVNode(KgForm, {
12322
- ref: _,
12554
+ ref: m,
12323
12555
  model: (P = a.model.value) != null ? P : {}
12324
12556
  }, {
12325
12557
  default: () => [createVNode(Row, {
@@ -12362,7 +12594,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12362
12594
  }, [createVNode(Spin, {
12363
12595
  spinning: R.value
12364
12596
  }, {
12365
- default: () => [I(), createVNode("div", {
12597
+ default: () => [M(), createVNode("div", {
12366
12598
  class: "ant-collapse-extra"
12367
12599
  }, [N()])]
12368
12600
  })])]
@@ -12427,39 +12659,39 @@ function useMagicKeys(e = {}) {
12427
12659
  } = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
12428
12660
  return {};
12429
12661
  }, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
12430
- function g(_, v) {
12431
- _ in l && (t ? l[_] = v : l[_].value = v);
12662
+ function g(m, v) {
12663
+ m in l && (t ? l[m] = v : l[m].value = v);
12432
12664
  }
12433
12665
  function p() {
12434
- for (const _ of c)
12435
- g(_, !1);
12436
- }
12437
- function m(_, v) {
12438
- var y, C;
12439
- const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(), w = [E, T].filter(Boolean);
12440
- E && (v ? s.add(_.code) : s.delete(_.code));
12441
- for (const k of w)
12666
+ for (const m of c)
12667
+ g(m, !1);
12668
+ }
12669
+ function _(m, v) {
12670
+ var b, C;
12671
+ const T = (b = m.key) == null ? void 0 : b.toLowerCase(), E = (C = m.code) == null ? void 0 : C.toLowerCase(), O = [E, T].filter(Boolean);
12672
+ E && (v ? s.add(m.code) : s.delete(m.code));
12673
+ for (const k of O)
12442
12674
  c.add(k), g(k, v);
12443
12675
  T === "meta" && !v ? (u.forEach((k) => {
12444
12676
  s.delete(k), g(k, !1);
12445
- }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...w].forEach((k) => u.add(k));
12677
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...O].forEach((k) => u.add(k));
12446
12678
  }
12447
- r && (useEventListener(r, "keydown", (_) => (m(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (m(_, !1), o(_)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
12448
- const b = new Proxy(l, {
12449
- get(_, v, y) {
12679
+ r && (useEventListener(r, "keydown", (m) => (_(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (_(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
12680
+ const y = new Proxy(l, {
12681
+ get(m, v, b) {
12450
12682
  if (typeof v != "string")
12451
- return Reflect.get(_, v, y);
12683
+ return Reflect.get(m, v, b);
12452
12684
  if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
12453
12685
  if (/[+_-]/.test(v)) {
12454
12686
  const T = v.split(/[+_-]/g).map((E) => E.trim());
12455
- l[v] = computed(() => T.every((E) => unref(b[E])));
12687
+ l[v] = computed(() => T.every((E) => unref(y[E])));
12456
12688
  } else
12457
12689
  l[v] = ref(!1);
12458
- const C = Reflect.get(_, v, y);
12690
+ const C = Reflect.get(m, v, b);
12459
12691
  return t ? unref(C) : C;
12460
12692
  }
12461
12693
  });
12462
- return b;
12694
+ return y;
12463
12695
  }
12464
12696
  var SwipeDirection;
12465
12697
  (function(e) {
@@ -12841,23 +13073,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12841
13073
  columnWidth: 32,
12842
13074
  hideSelectAll: !0,
12843
13075
  selectedRowKeys: g,
12844
- onSelect: (A) => F(A)
12845
- }), m = ref({
13076
+ onSelect: (I) => F(I)
13077
+ }), _ = ref({
12846
13078
  visible: !1
12847
- }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
12848
- var A;
12849
- return !!c.value || ((A = n.getSelectedVarCatalog) == null ? void 0 : A.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12850
- }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12851
- watch(() => n.getSelectedVar, (A) => {
12852
- A ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
13079
+ }), y = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
13080
+ var I;
13081
+ return !!c.value || ((I = n.getSelectedVarCatalog) == null ? void 0 : I.cust_lvl) === KG_CUSTOM_LEVEL.L0;
13082
+ }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), b = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13083
+ watch(() => n.getSelectedVar, (I) => {
13084
+ I ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12853
13085
  }, {
12854
13086
  immediate: !0
12855
- }), watch(() => n.getSelectedVarCatalog, async (A) => {
12856
- var M, I;
12857
- l.value.var_text = (M = A == null ? void 0 : A.var_text) != null ? M : "", (I = i.value) == null || I.clearValidate();
13087
+ }), watch(() => n.getSelectedVarCatalog, async (I) => {
13088
+ var A, M;
13089
+ l.value.var_text = (A = I == null ? void 0 : I.var_text) != null ? A : "", (M = i.value) == null || M.clearValidate();
12858
13090
  });
12859
- async function C(A = !1) {
12860
- var M, I, O;
13091
+ async function C(I = !1) {
13092
+ var A, M, $;
12861
13093
  a.value = !0;
12862
13094
  try {
12863
13095
  const {
@@ -12867,19 +13099,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12867
13099
  pageNo: 1,
12868
13100
  pageSize: 999,
12869
13101
  frm_id: e == null ? void 0 : e.value,
12870
- var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
13102
+ var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
12871
13103
  column: "frm_id,locale_id,cust_lvl",
12872
13104
  order: "asc"
12873
13105
  }
12874
13106
  });
12875
- if (c.value = null, u.value = N != null ? N : [], A) {
13107
+ if (c.value = null, u.value = N != null ? N : [], I) {
12876
13108
  const L = u.value.find((G) => {
12877
13109
  var P;
12878
13110
  return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
12879
13111
  });
12880
13112
  n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
12881
13113
  } else
12882
- n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
13114
+ n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), g.value = ($ = u.value[0]) != null && $.id ? [u.value[0].id] : [];
12883
13115
  } catch (N) {
12884
13116
  Logger.debug(N == null ? void 0 : N.message);
12885
13117
  } finally {
@@ -12887,66 +13119,66 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12887
13119
  }
12888
13120
  }
12889
13121
  async function T() {
12890
- var A, M, I;
13122
+ var I, A, M;
12891
13123
  try {
12892
- o.value = !0, await ((A = i.value) == null ? void 0 : A.validate());
12893
- const O = new VarCatalog({
12894
- ...(M = n.getSelectedVarCatalog) != null ? M : {},
12895
- var_text: (I = l.value) == null ? void 0 : I.var_text
13124
+ o.value = !0, await ((I = i.value) == null ? void 0 : I.validate());
13125
+ const $ = new VarCatalog({
13126
+ ...(A = n.getSelectedVarCatalog) != null ? A : {},
13127
+ var_text: (M = l.value) == null ? void 0 : M.var_text
12896
13128
  });
12897
- O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
12898
- data: O
13129
+ $.id ? $.cust_lvl === KG_CUSTOM_LEVEL.L0 ? ($.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty($, "id"), await Add({
13130
+ data: $
12899
13131
  }, {
12900
13132
  successMessageMode: "none"
12901
13133
  }), message.success({
12902
13134
  content: t.t("kg.KgVarConfig.createSuccess")
12903
13135
  }), await C()) : (await Edit({
12904
- data: O
13136
+ data: $
12905
13137
  }, {
12906
13138
  successMessageMode: "none"
12907
13139
  }), message.success({
12908
13140
  content: t.t("kg.KgVarConfig.saveSuccess")
12909
13141
  }), await C(!0)) : (await Add({
12910
- data: O
13142
+ data: $
12911
13143
  }, {
12912
13144
  successMessageMode: "none"
12913
13145
  }), message.success({
12914
13146
  content: t.t("kg.KgVarConfig.createSuccess")
12915
13147
  }), await C()), r.retrieve(e == null ? void 0 : e.value);
12916
- } catch (O) {
12917
- KgUtil.throwIfNotFormError(O);
13148
+ } catch ($) {
13149
+ KgUtil.throwIfNotFormError($);
12918
13150
  } finally {
12919
13151
  o.value = !1;
12920
13152
  }
12921
13153
  }
12922
13154
  function E({
12923
- isAllForm: A,
12924
- isAllLanguage: M
13155
+ isAllForm: I,
13156
+ isAllLanguage: A
12925
13157
  }) {
12926
- var I, O, N;
13158
+ var M, $, N;
12927
13159
  c.value = new VarCatalog({
12928
13160
  id: "",
12929
13161
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12930
- grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
12931
- var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
12932
- frm_id: A || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12933
- locale_id: M ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
13162
+ grp_nam: (M = n.getSelectedVar) == null ? void 0 : M.grp_nam,
13163
+ var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
13164
+ frm_id: I || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
13165
+ locale_id: A ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
12934
13166
  var_text: ""
12935
13167
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
12936
13168
  }
12937
- function w() {
12938
- var M;
13169
+ function O() {
13170
+ var A;
12939
13171
  u.value = without$1(u.value, c.value), c.value = null;
12940
- const A = (M = u.value[0]) != null ? M : null;
12941
- n.setSelectedVarCatalog(A), g.value = A ? [A.id] : [];
13172
+ const I = (A = u.value[0]) != null ? A : null;
13173
+ n.setSelectedVarCatalog(I), g.value = I ? [I.id] : [];
12942
13174
  }
12943
13175
  function k() {
12944
13176
  KgUtil.confirm({
12945
13177
  onOk: async () => {
12946
- var A;
13178
+ var I;
12947
13179
  await Delete({
12948
13180
  params: {
12949
- id: (A = n.getSelectedVarCatalog) == null ? void 0 : A.id
13181
+ id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
12950
13182
  }
12951
13183
  }, {
12952
13184
  successMessageMode: "none",
@@ -12957,31 +13189,31 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12957
13189
  }
12958
13190
  });
12959
13191
  }
12960
- function F(A) {
12961
- var M;
12962
- ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== A.id && (unref(c) ? KgUtil.confirm({
13192
+ function F(I) {
13193
+ var A;
13194
+ ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) !== I.id && (unref(c) ? KgUtil.confirm({
12963
13195
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12964
13196
  onOk: () => {
12965
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(A)), g.value = [A.id];
13197
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
12966
13198
  }
12967
- }) : (n.setSelectedVarCatalog(unref(A)), g.value = [A.id]));
13199
+ }) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
12968
13200
  }
12969
13201
  function R() {
12970
- m.value.visible = !0;
13202
+ _.value.visible = !0;
12971
13203
  }
12972
- function $() {
13204
+ function V() {
12973
13205
  return createVNode("div", {
12974
13206
  class: "buttons"
12975
13207
  }, [createVNode(Button, {
12976
13208
  onClick: R,
12977
- disabled: b.value,
13209
+ disabled: y.value,
12978
13210
  type: "primary"
12979
13211
  }, {
12980
13212
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
12981
13213
  }), createVNode(Button, {
12982
13214
  onClick: k,
12983
- disabled: _.value,
12984
- ghost: !_.value,
13215
+ disabled: m.value,
13216
+ ghost: !m.value,
12985
13217
  type: "primary",
12986
13218
  danger: !0
12987
13219
  }, {
@@ -12989,7 +13221,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12989
13221
  })]);
12990
13222
  }
12991
13223
  function D() {
12992
- let A, M;
13224
+ let I, A;
12993
13225
  return createVNode("div", {
12994
13226
  class: "form"
12995
13227
  }, [createVNode(Form, {
@@ -13006,7 +13238,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13006
13238
  }, {
13007
13239
  default: () => [createVNode(Textarea, {
13008
13240
  value: l.value.var_text,
13009
- "onUpdate:value": (I) => l.value.var_text = I,
13241
+ "onUpdate:value": (M) => l.value.var_text = M,
13010
13242
  disabled: !n.getSelectedVarCatalog
13011
13243
  }, null), createVNode("button", {
13012
13244
  hidden: !0
@@ -13016,26 +13248,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13016
13248
  class: "buttons"
13017
13249
  }, [createVNode(Button, {
13018
13250
  disabled: v.value,
13019
- onClick: w
13020
- }, _isSlot(A = t.t("common.cancelText")) ? A : {
13021
- default: () => [A]
13251
+ onClick: O
13252
+ }, _isSlot(I = t.t("common.cancelText")) ? I : {
13253
+ default: () => [I]
13022
13254
  }), createVNode(Button, {
13023
13255
  loading: o.value,
13024
- disabled: y.value,
13256
+ disabled: b.value,
13025
13257
  onClick: T,
13026
13258
  type: "primary"
13027
- }, _isSlot(M = t.t("common.save")) ? M : {
13028
- default: () => [M]
13259
+ }, _isSlot(A = t.t("common.save")) ? A : {
13260
+ default: () => [A]
13029
13261
  })])]);
13030
13262
  }
13031
- function U(A) {
13032
- var I;
13033
- let M = "";
13034
- return A.id || (M += " ant-table-row-create"), A.id === ((I = n.getSelectedVarCatalog) == null ? void 0 : I.id) && (M += " ant-table-row-selected "), M;
13263
+ function U(I) {
13264
+ var M;
13265
+ let A = "";
13266
+ return I.id || (A += " ant-table-row-create"), I.id === ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) && (A += " ant-table-row-selected "), A;
13035
13267
  }
13036
13268
  return () => createVNode("div", {
13037
13269
  class: "kg-var-config-modal-var-var-catalog"
13038
- }, [$(), createVNode(Table, {
13270
+ }, [V(), createVNode(Table, {
13039
13271
  pagination: !1,
13040
13272
  class: "kg-flex-table",
13041
13273
  size: "small",
@@ -13049,12 +13281,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13049
13281
  loading: a.value,
13050
13282
  rowClassName: U,
13051
13283
  rowSelection: p.value,
13052
- customRow: (A) => ({
13053
- onClick: () => F(A)
13284
+ customRow: (I) => ({
13285
+ onClick: () => F(I)
13054
13286
  })
13055
13287
  }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
13056
- visible: m.value.visible,
13057
- "onUpdate:visible": (A) => m.value.visible = A,
13288
+ visible: _.value.visible,
13289
+ "onUpdate:visible": (I) => _.value.visible = I,
13058
13290
  onKgOk: E
13059
13291
  }, null)]);
13060
13292
  }
@@ -13384,36 +13616,36 @@ const KgWarehouse$1 = "", getProps = () => ({
13384
13616
  record: E
13385
13617
  }) => {
13386
13618
  var k, F, R;
13387
- const w = E;
13388
- return createVNode("div", null, [createVNode("div", null, [(k = w.whDsc) != null ? k : " ", createTextVNode(" - "), (F = w.whId) != null ? F : " "]), createVNode("div", {
13619
+ const O = E;
13620
+ return createVNode("div", null, [createVNode("div", null, [(k = O.whDsc) != null ? k : " ", createTextVNode(" - "), (F = O.whId) != null ? F : " "]), createVNode("div", {
13389
13621
  class: "address"
13390
- }, [(R = w.adrId) != null ? R : " "])]);
13622
+ }, [(R = O.adrId) != null ? R : " "])]);
13391
13623
  }
13392
13624
  }]), c = ref([]), g = computed(() => {
13393
- var w;
13394
- const E = (w = o.value) == null ? void 0 : w.toUpperCase();
13625
+ var O;
13626
+ const E = (O = o.value) == null ? void 0 : O.toUpperCase();
13395
13627
  return c.value.filter((k) => {
13396
- var F, R, $, D, U, A;
13397
- return ((R = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : R.includes(E)) || ((D = ($ = k.whId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : D.includes(E)) || ((A = (U = k.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : A.includes(E));
13628
+ var F, R, V, D, U, I;
13629
+ return ((R = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : R.includes(E)) || ((D = (V = k.whId) == null ? void 0 : V.toUpperCase()) == null ? void 0 : D.includes(E)) || ((I = (U = k.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : I.includes(E));
13398
13630
  });
13399
13631
  }), p = computed(() => {
13400
- var E, w;
13401
- return ((w = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : w.enable) !== !1;
13632
+ var E, O;
13633
+ return ((O = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : O.enable) !== !1;
13402
13634
  });
13403
13635
  watch(n.visible, (E) => {
13404
- !p.value || (E ? b() : _());
13636
+ !p.value || (E ? y() : m());
13405
13637
  }, {
13406
13638
  immediate: !0
13407
13639
  }), onMounted(() => {
13408
13640
  n.store.emit("mounted");
13409
13641
  });
13410
- function m() {
13642
+ function _() {
13411
13643
  !p.value || n.store.setVisible(!0);
13412
13644
  }
13413
- function b() {
13414
- i.value = n.warehouse.value, y();
13645
+ function y() {
13646
+ i.value = n.warehouse.value, b();
13415
13647
  }
13416
- function _() {
13648
+ function m() {
13417
13649
  o.value = "", c.value = [], i.value = null;
13418
13650
  }
13419
13651
  function v() {
@@ -13430,7 +13662,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13430
13662
  }
13431
13663
  })), n.store.setVisible(!1));
13432
13664
  }
13433
- async function y() {
13665
+ async function b() {
13434
13666
  l.value = !0;
13435
13667
  try {
13436
13668
  const {
@@ -13448,14 +13680,14 @@ const KgWarehouse$1 = "", getProps = () => ({
13448
13680
  l.value = !1;
13449
13681
  }
13450
13682
  }
13451
- function C(E, w) {
13683
+ function C(E, O) {
13452
13684
  var k;
13453
13685
  switch (E.detail) {
13454
13686
  case 1:
13455
- ((k = i.value) == null ? void 0 : k.id) === w.id ? i.value = null : i.value = w;
13687
+ ((k = i.value) == null ? void 0 : k.id) === O.id ? i.value = null : i.value = O;
13456
13688
  break;
13457
13689
  case 2:
13458
- i.value = w, v();
13690
+ i.value = O, v();
13459
13691
  break;
13460
13692
  }
13461
13693
  }
@@ -13465,8 +13697,8 @@ const KgWarehouse$1 = "", getProps = () => ({
13465
13697
  placement: "bottomRight"
13466
13698
  }, {
13467
13699
  default: () => {
13468
- var E, w;
13469
- return [((E = s.value) == null ? void 0 : E.whDsc) || ((w = s.value) == null ? void 0 : w.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13700
+ var E, O;
13701
+ return [((E = s.value) == null ? void 0 : E.whDsc) || ((O = s.value) == null ? void 0 : O.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13470
13702
  }
13471
13703
  }), createVNode(KgModal, {
13472
13704
  visible: n.visible.value,
@@ -13508,9 +13740,9 @@ const KgWarehouse$1 = "", getProps = () => ({
13508
13740
  columns: u,
13509
13741
  class: "kg-flex-table",
13510
13742
  customRow: (E) => {
13511
- var w;
13743
+ var O;
13512
13744
  return {
13513
- class: E.id === ((w = i.value) == null ? void 0 : w.id) ? "selected" : "",
13745
+ class: E.id === ((O = i.value) == null ? void 0 : O.id) ? "selected" : "",
13514
13746
  onClick: (k) => C(k, E)
13515
13747
  };
13516
13748
  }
@@ -13519,7 +13751,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13519
13751
  }
13520
13752
  return () => createVNode("div", {
13521
13753
  class: a.value,
13522
- onClick: m
13754
+ onClick: _
13523
13755
  }, [T()]);
13524
13756
  }
13525
13757
  });