@kengic/vue 0.16.2 → 0.16.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/kengic-vue.js +1316 -1268
  2. package/package.json +10 -9
  3. package/dist/src/apis/WMS/Controllers/VarContextController/Add.d.ts +0 -16
  4. package/dist/src/apis/WMS/Controllers/VarContextController/Delete.d.ts +0 -18
  5. package/dist/src/apis/WMS/Controllers/VarContextController/DeleteBatch.d.ts +0 -18
  6. package/dist/src/apis/WMS/Controllers/VarContextController/Edit.d.ts +0 -16
  7. package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +0 -24
  8. package/dist/src/apis/WMS/Controllers/VarContextController/ImportExcel.d.ts +0 -15
  9. package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +0 -31
  10. package/dist/src/apis/WMS/Controllers/VarContextController/QueryById.d.ts +0 -19
  11. package/dist/src/apis/WMS/Controllers/VarContextController/index.d.ts +0 -8
  12. package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +0 -19
  13. package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +0 -1
  14. package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -19
  15. package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -16
  16. package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +0 -2
  17. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -19
  18. package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -1
  19. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Add.d.ts +0 -16
  20. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +0 -18
  21. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +0 -18
  22. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +0 -16
  23. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +0 -30
  24. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +0 -15
  25. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/List.d.ts +0 -37
  26. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +0 -19
  27. package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/index.d.ts +0 -8
  28. package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +0 -52
  29. package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +0 -1
  30. package/dist/src/apis/WMS/Controllers/index.d.ts +0 -6
  31. package/dist/src/apis/WMS/index.d.ts +0 -2
  32. package/dist/src/apis/WMS/models.d.ts +0 -726
  33. package/dist/src/apis/api.d.ts +0 -1
  34. package/dist/src/apis/def.d.ts +0 -1
  35. package/dist/src/apis/index.d.ts +0 -2
  36. package/dist/src/assets/icons/material-symbols.save-as-outline-rounded.d.ts +0 -6
  37. package/dist/src/assets/icons/material-symbols.save-outline-rounded.d.ts +0 -6
  38. package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +0 -47
  39. package/dist/src/components/KgAppSelect/index.d.ts +0 -3
  40. package/dist/src/components/KgAppSelect/index.hooks.d.ts +0 -19
  41. package/dist/src/components/KgAppSelect/index.store.d.ts +0 -59
  42. package/dist/src/components/KgButton/KgButton.Item.d.ts +0 -41
  43. package/dist/src/components/KgButton/KgButton.Item.data.d.ts +0 -31
  44. package/dist/src/components/KgButton/KgButton.d.ts +0 -34
  45. package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +0 -39
  46. package/dist/src/components/KgButton/components/KgButton.Create.d.ts +0 -39
  47. package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +0 -40
  48. package/dist/src/components/KgButton/components/KgButton.Export.d.ts +0 -39
  49. package/dist/src/components/KgButton/components/KgButton.Import.d.ts +0 -39
  50. package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +0 -39
  51. package/dist/src/components/KgButton/components/KgButton.Other.d.ts +0 -40
  52. package/dist/src/components/KgButton/components/KgButton.Search.d.ts +0 -40
  53. package/dist/src/components/KgButton/components/KgButton.Update.d.ts +0 -39
  54. package/dist/src/components/KgButton/index.d.ts +0 -62
  55. package/dist/src/components/KgButton/index.hooks.d.ts +0 -61
  56. package/dist/src/components/KgButton/index.store.d.ts +0 -89
  57. package/dist/src/components/KgForm/KgForm.d.ts +0 -414
  58. package/dist/src/components/KgForm/index.d.ts +0 -604
  59. package/dist/src/components/KgForm/index.hooks.d.ts +0 -34
  60. package/dist/src/components/KgForm/index.store.d.ts +0 -83
  61. package/dist/src/components/KgForm/index.vm.d.ts +0 -9
  62. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +0 -95
  63. package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +0 -17
  64. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -17
  65. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -32
  66. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -94
  67. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +0 -96
  68. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -95
  69. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -95
  70. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -94
  71. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -94
  72. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -95
  73. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +0 -98
  74. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +0 -26
  75. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -94
  76. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -94
  77. package/dist/src/components/KgForm.Item/index.d.ts +0 -2
  78. package/dist/src/components/KgForm.Item/index.vm.d.ts +0 -116
  79. package/dist/src/components/KgModal/KgModal.d.ts +0 -395
  80. package/dist/src/components/KgModal/components/KgModal.Close.d.ts +0 -41
  81. package/dist/src/components/KgModal/index.d.ts +0 -2
  82. package/dist/src/components/KgModal/index.vm.d.ts +0 -194
  83. package/dist/src/components/KgProgressA/KgProgressA.d.ts +0 -85
  84. package/dist/src/components/KgProgressA/index.d.ts +0 -1
  85. package/dist/src/components/KgResizable/KgResizable.d.ts +0 -143
  86. package/dist/src/components/KgResizable/index.d.ts +0 -1
  87. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -42
  88. package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +0 -39
  89. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +0 -22
  90. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +0 -14
  91. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +0 -24
  92. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +0 -7
  93. package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -31
  94. package/dist/src/components/KgSearch/index.d.ts +0 -3
  95. package/dist/src/components/KgSearch/index.hooks.d.ts +0 -41
  96. package/dist/src/components/KgSearch/index.store.d.ts +0 -86
  97. package/dist/src/components/KgSearch/index.vm.d.ts +0 -1
  98. package/dist/src/components/KgSubmit/KgSubmit.d.ts +0 -41
  99. package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +0 -20
  100. package/dist/src/components/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +0 -28
  101. package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +0 -82
  102. package/dist/src/components/KgSubmit/index.d.ts +0 -4
  103. package/dist/src/components/KgSubmit/index.hooks.d.ts +0 -63
  104. package/dist/src/components/KgSubmit/index.store.d.ts +0 -129
  105. package/dist/src/components/KgSubmit/index.vm.d.ts +0 -10
  106. package/dist/src/components/KgTable/KgTable.d.ts +0 -39
  107. package/dist/src/components/KgTable/KgTable.hooks.d.ts +0 -43
  108. package/dist/src/components/KgTable/components/KgTable.Cell.d.ts +0 -61
  109. package/dist/src/components/KgTable/components/KgTable.Info.d.ts +0 -58
  110. package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -5
  111. package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -22
  112. package/dist/src/components/KgTable/components/setting/KgTable.Setting.hooks.d.ts +0 -14
  113. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +0 -22
  114. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +0 -26
  115. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +0 -24
  116. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts +0 -23
  117. package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -32
  118. package/dist/src/components/KgTable/index.d.ts +0 -4
  119. package/dist/src/components/KgTable/index.hooks.d.ts +0 -68
  120. package/dist/src/components/KgTable/index.store.d.ts +0 -153
  121. package/dist/src/components/KgTable/index.vm.d.ts +0 -146
  122. package/dist/src/components/KgVar/KgVar.d.ts +0 -28
  123. package/dist/src/components/KgVar/index.d.ts +0 -4
  124. package/dist/src/components/KgVar/index.hooks.d.ts +0 -88
  125. package/dist/src/components/KgVar/index.store.d.ts +0 -315
  126. package/dist/src/components/KgVar/index.store.service.d.ts +0 -21
  127. package/dist/src/components/KgVar/index.vm.d.ts +0 -43
  128. package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +0 -2
  129. package/dist/src/components/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +0 -24
  130. package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -17
  131. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -25
  132. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -29
  133. package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -22
  134. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +0 -25
  135. package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -22
  136. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -33
  137. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.d.ts +0 -3
  138. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.data.d.ts +0 -3
  139. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +0 -3
  140. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +0 -3
  141. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -3
  142. package/dist/src/components/KgVarConfig/index.d.ts +0 -2
  143. package/dist/src/components/KgVarConfig/index.store.d.ts +0 -20
  144. package/dist/src/components/KgVarConfig/index.vm.d.ts +0 -3
  145. package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +0 -38
  146. package/dist/src/components/KgWarehouse/index.d.ts +0 -4
  147. package/dist/src/components/KgWarehouse/index.guard.d.ts +0 -8
  148. package/dist/src/components/KgWarehouse/index.hooks.d.ts +0 -22
  149. package/dist/src/components/KgWarehouse/index.store.d.ts +0 -53
  150. package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +0 -60
  151. package/dist/src/components/KgYesOrNo/index.d.ts +0 -1
  152. package/dist/src/components/index.d.ts +0 -16
  153. package/dist/src/components/util.d.ts +0 -14
  154. package/dist/src/config/index.d.ts +0 -3
  155. package/dist/src/config/index.hooks.d.ts +0 -43
  156. package/dist/src/config/index.store.d.ts +0 -184
  157. package/dist/src/config/setup.d.ts +0 -43
  158. package/dist/src/consts/i18n/en.d.ts +0 -194
  159. package/dist/src/consts/i18n/index.d.ts +0 -2
  160. package/dist/src/consts/i18n/zh_CN.d.ts +0 -193
  161. package/dist/src/consts/index.d.ts +0 -244
  162. package/dist/src/consts/index.vm.d.ts +0 -45
  163. package/dist/src/consts/injection-keys.const.d.ts +0 -9
  164. package/dist/src/helpers/ant-design-vue.d.ts +0 -316
  165. package/dist/src/helpers/tsx.helper.d.ts +0 -13
  166. package/dist/src/index.d.ts +0 -8
  167. package/dist/src/services/http-client.d.ts +0 -46
  168. package/dist/src/services/index.d.ts +0 -1
  169. package/dist/src/utils/index.d.ts +0 -6
  170. package/dist/src/utils/kg-auth.util.d.ts +0 -14
  171. package/dist/src/utils/kg-dom.util.d.ts +0 -12
  172. package/dist/src/utils/kg-logger.util.d.ts +0 -67
  173. package/dist/src/utils/kg-route.util.d.ts +0 -43
  174. package/dist/src/utils/kg-var.util.d.ts +0 -36
  175. package/dist/src/utils/kg.util.d.ts +0 -113
@@ -2,7 +2,7 @@ var Pe = Object.defineProperty;
2
2
  var Le = (e, t, r) => t in e ? Pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var v = (e, t, r) => (Le(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { h, nextTick, createVNode, defineComponent, getCurrentInstance, inject, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, computed, onUnmounted, toRefs, unref, watchEffect, Fragment, isVNode, createTextVNode, onBeforeUnmount, onMounted, provide, mergeProps, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
5
- import { Spin, Tooltip, Select, SelectOption, Button, Modal, Progress, Checkbox, Input, Transfer, Table, Tabs, message, Dropdown, Menu, Tag, Row, Pagination, TableSummary, Form, Divider, Col, DatePicker, InputNumber, Radio, Switch, Textarea, Drawer, Upload, ConfigProvider, Card, TabPane } from "ant-design-vue";
5
+ import { Spin, message, Tooltip, Select, SelectOption, Button, Modal, Progress, Checkbox, Input, Transfer, Table, Tabs, Dropdown, Menu, Tag, Row, Pagination, TableSummary, Form, Divider, Col, DatePicker, InputNumber, Radio, Switch, Textarea, Drawer, Upload, ConfigProvider, Card, TabPane } from "ant-design-vue";
6
6
  const index$7 = "", en = {
7
7
  kg: {
8
8
  KgAppSelect: {
@@ -391,7 +391,7 @@ var KG_APP = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "data-manager", e.WMS
391
391
  const KG_APPS = ["data-manager", "business-manager", "wcs", "sys"];
392
392
  var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "/wms/data-manager", e.WMS_BUSINESS_MANAGER = "/wms/business-manager", e.WCS = "/wcs", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
393
393
  const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/wcs", "/sys"];
394
- var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", 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_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_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.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", 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.DESC = "DESC", 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.TABLE = "TABLE", 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 || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_DYNAMIC_QUERY = "Kg-Dynamic-Query", e.KG_QUERY_SQL = "Kg-Query-Sql", e.KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql", e.KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql", e))(KG_HTTP_HEADERS || {});
394
+ var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", 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_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_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.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", 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.DESC = "DESC", 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.TABLE = "TABLE", 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 || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_DYNAMIC_QUERY = "Kg-Dynamic-Query", e.KG_QUERY_SQL = "Kg-Query-Sql", e.KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql", e.KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql", e.KG_QUERY_OPERATOR = "Kg-Query-Operator", e))(KG_HTTP_HEADERS || {});
395
395
  const __KG__RESPONSE__ = "__KG__RESPONSE__", KG_TMP_MENU_ID__DATA_MANAGER = "KG_TMP_MENU_ID__DATA_MANAGER", KG_TMP_MENU_ID__BUSINESS_MANAGER = "KG_TMP_MENU_ID__BUSINESS_MANAGER", KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS", KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS", KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
396
396
  function bound01(e, t) {
397
397
  isOnePointZero(e) && (e = "100%");
@@ -2259,8 +2259,8 @@ function sendQuery(e, t, r, a) {
2259
2259
  if (e.random) {
2260
2260
  let C = e.resources.slice(0);
2261
2261
  for (l = []; C.length > 1; ) {
2262
- const R = Math.floor(Math.random() * C.length);
2263
- l.push(C[R]), C = C.slice(0, R).concat(C.slice(R + 1));
2262
+ const O = Math.floor(Math.random() * C.length);
2263
+ l.push(C[O]), C = C.slice(0, O).concat(C.slice(O + 1));
2264
2264
  }
2265
2265
  l = l.concat(C);
2266
2266
  } else
@@ -2276,8 +2276,8 @@ function sendQuery(e, t, r, a) {
2276
2276
  C.status === "pending" && (C.status = "aborted");
2277
2277
  }), p = [];
2278
2278
  }
2279
- function g(C, R) {
2280
- R && (E = []), typeof C == "function" && E.push(C);
2279
+ function g(C, O) {
2280
+ O && (E = []), typeof C == "function" && E.push(C);
2281
2281
  }
2282
2282
  function _() {
2283
2283
  return {
@@ -2300,23 +2300,23 @@ function sendQuery(e, t, r, a) {
2300
2300
  C.status === "pending" && (C.status = "aborted");
2301
2301
  }), p = [];
2302
2302
  }
2303
- function k(C, R, A) {
2304
- const O = R !== "success";
2303
+ function k(C, O, A) {
2304
+ const R = O !== "success";
2305
2305
  switch (p = p.filter((M) => M !== C), i) {
2306
2306
  case "pending":
2307
2307
  break;
2308
2308
  case "failed":
2309
- if (O || !e.dataAfterTimeout)
2309
+ if (R || !e.dataAfterTimeout)
2310
2310
  return;
2311
2311
  break;
2312
2312
  default:
2313
2313
  return;
2314
2314
  }
2315
- if (R === "abort") {
2315
+ if (O === "abort") {
2316
2316
  u = A, m();
2317
2317
  return;
2318
2318
  }
2319
- if (O) {
2319
+ if (R) {
2320
2320
  u = A, p.length || (l.length ? I() : m());
2321
2321
  return;
2322
2322
  }
@@ -2343,14 +2343,14 @@ function sendQuery(e, t, r, a) {
2343
2343
  m();
2344
2344
  return;
2345
2345
  }
2346
- const R = {
2346
+ const O = {
2347
2347
  status: "pending",
2348
2348
  resource: C,
2349
- callback: (A, O) => {
2350
- k(R, A, O);
2349
+ callback: (A, R) => {
2350
+ k(O, A, R);
2351
2351
  }
2352
2352
  };
2353
- p.push(R), c++, d = setTimeout(I, e.rotate), r(C, t, R.callback);
2353
+ p.push(O), c++, d = setTimeout(I, e.rotate), r(C, t, O.callback);
2354
2354
  }
2355
2355
  return setTimeout(I), _;
2356
2356
  }
@@ -2870,7 +2870,7 @@ const emptyIcon = {
2870
2870
  ...t.data
2871
2871
  }, r);
2872
2872
  }
2873
- }), name = "@kengic/vue", version = "0.16.2", data$1 = {
2873
+ }), version = "0.16.4", data$1 = {
2874
2874
  width: 24,
2875
2875
  height: 24,
2876
2876
  body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
@@ -2980,19 +2980,19 @@ function createSetupStore(e, t, r = {}, a, n) {
2980
2980
  !l && !b && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
2981
2981
  const y = ref({});
2982
2982
  function g(A) {
2983
- let O;
2984
- c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof A == "function" ? (A(a.state.value[e]), O = {
2983
+ let R;
2984
+ c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof A == "function" ? (A(a.state.value[e]), R = {
2985
2985
  type: MutationType.patchFunction,
2986
2986
  storeId: e,
2987
2987
  events: E
2988
- }) : (mergeReactiveObjects(a.state.value[e], A), O = {
2988
+ }) : (mergeReactiveObjects(a.state.value[e], A), R = {
2989
2989
  type: MutationType.patchObject,
2990
2990
  payload: A,
2991
2991
  storeId: e,
2992
2992
  events: E
2993
2993
  }), nextTick().then(() => {
2994
2994
  c = !0;
2995
- }), u = !0, triggerSubscriptions(d, O, a.state.value[e]);
2995
+ }), u = !0, triggerSubscriptions(d, R, a.state.value[e]);
2996
2996
  }
2997
2997
  const _ = process.env.NODE_ENV !== "production" ? () => {
2998
2998
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
@@ -3000,7 +3000,7 @@ function createSetupStore(e, t, r = {}, a, n) {
3000
3000
  function m() {
3001
3001
  s.stop(), d = [], p = [], a._s.delete(e);
3002
3002
  }
3003
- function T(A, O) {
3003
+ function T(A, R) {
3004
3004
  return function() {
3005
3005
  setActivePinia(a);
3006
3006
  const M = Array.from(arguments), P = [], L = [];
@@ -3019,7 +3019,7 @@ function createSetupStore(e, t, r = {}, a, n) {
3019
3019
  });
3020
3020
  let D;
3021
3021
  try {
3022
- D = O.apply(this && this.$id === e ? this : C, M);
3022
+ D = R.apply(this && this.$id === e ? this : C, M);
3023
3023
  } catch (K) {
3024
3024
  throw triggerSubscriptions(L, K), K;
3025
3025
  }
@@ -3037,14 +3037,14 @@ function createSetupStore(e, t, r = {}, a, n) {
3037
3037
  $onAction: addSubscription.bind(null, p),
3038
3038
  $patch: g,
3039
3039
  $reset: _,
3040
- $subscribe(A, O = {}) {
3041
- const M = addSubscription(d, A, O.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (L) => {
3042
- (O.flush === "sync" ? u : c) && A({
3040
+ $subscribe(A, R = {}) {
3041
+ const M = addSubscription(d, A, R.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (L) => {
3042
+ (R.flush === "sync" ? u : c) && A({
3043
3043
  storeId: e,
3044
3044
  type: MutationType.direct,
3045
3045
  events: E
3046
3046
  }, L);
3047
- }, assign$1({}, i, O)));
3047
+ }, assign$1({}, i, R)));
3048
3048
  return M;
3049
3049
  },
3050
3050
  $dispose: m
@@ -3056,74 +3056,74 @@ function createSetupStore(e, t, r = {}, a, n) {
3056
3056
  I
3057
3057
  ));
3058
3058
  a._s.set(e, C);
3059
- const R = a._e.run(() => (s = effectScope(), s.run(() => t())));
3060
- for (const A in R) {
3061
- const O = R[A];
3062
- if (isRef(O) && !isComputed(O) || isReactive(O))
3063
- process.env.NODE_ENV !== "production" && n ? set(y.value, A, toRef(R, A)) : l || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[A] : mergeReactiveObjects(O, b[A])), a.state.value[e][A] = O), process.env.NODE_ENV !== "production" && k.state.push(A);
3064
- else if (typeof O == "function") {
3065
- const M = process.env.NODE_ENV !== "production" && n ? O : T(A, O);
3066
- R[A] = M, process.env.NODE_ENV !== "production" && (k.actions[A] = O), o.actions[A] = O;
3059
+ const O = a._e.run(() => (s = effectScope(), s.run(() => t())));
3060
+ for (const A in O) {
3061
+ const R = O[A];
3062
+ if (isRef(R) && !isComputed(R) || isReactive(R))
3063
+ process.env.NODE_ENV !== "production" && n ? set(y.value, A, toRef(O, A)) : l || (b && shouldHydrate(R) && (isRef(R) ? R.value = b[A] : mergeReactiveObjects(R, b[A])), a.state.value[e][A] = R), process.env.NODE_ENV !== "production" && k.state.push(A);
3064
+ else if (typeof R == "function") {
3065
+ const M = process.env.NODE_ENV !== "production" && n ? R : T(A, R);
3066
+ O[A] = M, process.env.NODE_ENV !== "production" && (k.actions[A] = R), o.actions[A] = R;
3067
3067
  } else
3068
- process.env.NODE_ENV !== "production" && isComputed(O) && (k.getters[A] = l ? r.getters[A] : O, IS_CLIENT && (R._getters || (R._getters = markRaw([]))).push(A));
3068
+ process.env.NODE_ENV !== "production" && isComputed(R) && (k.getters[A] = l ? r.getters[A] : R, IS_CLIENT && (O._getters || (O._getters = markRaw([]))).push(A));
3069
3069
  }
3070
- if (assign$1(C, R), assign$1(toRaw(C), R), Object.defineProperty(C, "$state", {
3070
+ if (assign$1(C, O), assign$1(toRaw(C), O), Object.defineProperty(C, "$state", {
3071
3071
  get: () => process.env.NODE_ENV !== "production" && n ? y.value : a.state.value[e],
3072
3072
  set: (A) => {
3073
3073
  if (process.env.NODE_ENV !== "production" && n)
3074
3074
  throw new Error("cannot set hotState");
3075
- g((O) => {
3076
- assign$1(O, A);
3075
+ g((R) => {
3076
+ assign$1(R, A);
3077
3077
  });
3078
3078
  }
3079
3079
  }), process.env.NODE_ENV !== "production") {
3080
- C._hotUpdate = markRaw((O) => {
3081
- C._hotUpdating = !0, O._hmrPayload.state.forEach((M) => {
3080
+ C._hotUpdate = markRaw((R) => {
3081
+ C._hotUpdating = !0, R._hmrPayload.state.forEach((M) => {
3082
3082
  if (M in C.$state) {
3083
- const P = O.$state[M], L = C.$state[M];
3084
- typeof P == "object" && isPlainObject(P) && isPlainObject(L) ? patchObject(P, L) : O.$state[M] = L;
3083
+ const P = R.$state[M], L = C.$state[M];
3084
+ typeof P == "object" && isPlainObject(P) && isPlainObject(L) ? patchObject(P, L) : R.$state[M] = L;
3085
3085
  }
3086
- set(C, M, toRef(O.$state, M));
3086
+ set(C, M, toRef(R.$state, M));
3087
3087
  }), Object.keys(C.$state).forEach((M) => {
3088
- M in O.$state || del(C, M);
3089
- }), c = !1, u = !1, a.state.value[e] = toRef(O._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
3088
+ M in R.$state || del(C, M);
3089
+ }), c = !1, u = !1, a.state.value[e] = toRef(R._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
3090
3090
  c = !0;
3091
3091
  });
3092
- for (const M in O._hmrPayload.actions) {
3093
- const P = O[M];
3092
+ for (const M in R._hmrPayload.actions) {
3093
+ const P = R[M];
3094
3094
  set(C, M, T(M, P));
3095
3095
  }
3096
- for (const M in O._hmrPayload.getters) {
3097
- const P = O._hmrPayload.getters[M], L = l ? computed(() => (setActivePinia(a), P.call(C, C))) : P;
3096
+ for (const M in R._hmrPayload.getters) {
3097
+ const P = R._hmrPayload.getters[M], L = l ? computed(() => (setActivePinia(a), P.call(C, C))) : P;
3098
3098
  set(C, M, L);
3099
3099
  }
3100
3100
  Object.keys(C._hmrPayload.getters).forEach((M) => {
3101
- M in O._hmrPayload.getters || del(C, M);
3101
+ M in R._hmrPayload.getters || del(C, M);
3102
3102
  }), Object.keys(C._hmrPayload.actions).forEach((M) => {
3103
- M in O._hmrPayload.actions || del(C, M);
3104
- }), C._hmrPayload = O._hmrPayload, C._getters = O._getters, C._hotUpdating = !1;
3103
+ M in R._hmrPayload.actions || del(C, M);
3104
+ }), C._hmrPayload = R._hmrPayload, C._getters = R._getters, C._hotUpdating = !1;
3105
3105
  });
3106
3106
  const A = {
3107
3107
  writable: !0,
3108
3108
  configurable: !0,
3109
3109
  enumerable: !1
3110
3110
  };
3111
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
3112
- Object.defineProperty(C, O, {
3113
- value: C[O],
3111
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((R) => {
3112
+ Object.defineProperty(C, R, {
3113
+ value: C[R],
3114
3114
  ...A
3115
3115
  });
3116
3116
  });
3117
3117
  }
3118
3118
  return a._p.forEach((A) => {
3119
3119
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
3120
- const O = s.run(() => A({
3120
+ const R = s.run(() => A({
3121
3121
  store: C,
3122
3122
  app: a._a,
3123
3123
  pinia: a,
3124
3124
  options: o
3125
3125
  }));
3126
- Object.keys(O || {}).forEach((M) => C._customProperties.add(M)), assign$1(C, O);
3126
+ Object.keys(R || {}).forEach((M) => C._customProperties.add(M)), assign$1(C, R);
3127
3127
  } else
3128
3128
  assign$1(C, s.run(() => A({
3129
3129
  store: C,
@@ -3253,8 +3253,8 @@ function useKgDragModal(e) {
3253
3253
  const i = o.clientX, c = o.clientY, u = document.body.clientWidth, d = document.documentElement.clientHeight, p = l.offsetWidth, E = l.offsetHeight, b = l.offsetLeft, y = u - l.offsetLeft - p, g = l.offsetTop, _ = d - l.offsetTop - E, m = t(l, "left"), T = t(l, "top");
3254
3254
  let k = +m, I = +T;
3255
3255
  m.includes("%") ? (k = +document.body.clientWidth * (+m.replace(/%/g, "") / 100), I = +document.body.clientHeight * (+T.replace(/%/g, "") / 100)) : (k = +m.replace(/px/g, ""), I = +T.replace(/px/g, "")), document.onmousemove = function(C) {
3256
- let R = C.clientX - i, A = C.clientY - c;
3257
- -R > b ? R = -b : R > y && (R = y), -A > g ? A = -g : A > _ && (A = _), l.style.cssText += `;left:${R + k}px;top:${A + I}px;`;
3256
+ let O = C.clientX - i, A = C.clientY - c;
3257
+ -O > b ? O = -b : O > y && (O = y), -A > g ? A = -g : A > _ && (A = _), l.style.cssText += `;left:${O + k}px;top:${A + I}px;`;
3258
3258
  }, document.onmouseup = () => {
3259
3259
  document.body.classList.remove("kg-modal-dragging"), document.onmousemove = null, document.onmouseup = null;
3260
3260
  };
@@ -3306,596 +3306,35 @@ function setupKgStore(e) {
3306
3306
  }
3307
3307
  function setup(e) {
3308
3308
  var r;
3309
- if (console.log(`%c${name}: ${version}`, "color:#ffffff;background-color:#1B6EF3;border-radius:2px;padding:1px 3px;font-size:10px;margin-bottom:1px;"), !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
3309
+ if (KgLogger.info(`${version}`), !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
3310
3310
  throw KgLogger.error("\u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.", { options: e }), new Error("[@kengic/vue] \u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.");
3311
3311
  const t = useKg();
3312
3312
  t.store.setLocale(e.locale), t.store.setRouter(e.router), t.store.setUseUserStore(e.useUserStore), t.store.setUsePermissionStore(e.usePermissionStore), t.store.setT(e.i18n), t.store.setP(e.pFunction), t.store.setOption((r = e.option) != null ? r : {});
3313
3313
  }
3314
- class KgRouteUtil {
3315
- static addOnlineRoutesForAllApps(t) {
3316
- const r = [];
3317
- return t.forEach((a) => {
3318
- [
3319
- "/online/copyform/:code",
3320
- "/online/cgformList/:id",
3321
- "/online/cgformTreeList/:id",
3322
- "/online/cgreport/:id",
3323
- "/online/graphreport/chart/:code",
3324
- "/dda/:id"
3325
- ].includes(a.path) && KG_APP_PREFIXS.forEach((n) => {
3326
- r.push({
3327
- ...a,
3328
- path: `${n}${a.path}`,
3329
- name: `${n}/${a.name}`,
3330
- id: `${n}-${a.id}`
3331
- });
3332
- }), a.children && (a.children = this.addOnlineRoutesForAllApps(a.children));
3333
- }), [...t, ...r];
3334
- }
3335
- static getMenuByPath(t, r) {
3336
- var a;
3337
- for (let n of t.filter((s) => !s.hideMenu)) {
3338
- if (n.path === r)
3339
- return n;
3340
- if ((a = n.children) != null && a.length) {
3341
- const s = KgRouteUtil.getMenuByPath(n.children, r);
3342
- if (s)
3343
- return s;
3344
- }
3345
- }
3346
- return null;
3347
- }
3348
- static translateMenus(t, r = "title") {
3349
- if (!t)
3350
- return [];
3351
- const a = useKg();
3352
- return t.forEach((n) => {
3353
- n[r] = a.t(n[r]), KgRouteUtil.translateMenus(n.children, r);
3354
- }), t;
3355
- }
3356
- static transformMenus(t) {
3357
- var c, u, d, p, E, b, y, g, _, m, T, k, I, C, R, A, O, M, P, L, H, w, D, K;
3358
- if (!t)
3359
- return [];
3360
- const r = useKg(), a = {
3361
- parentId: "",
3362
- app: null,
3363
- perms: null,
3364
- permsType: null,
3365
- icon: "NULL",
3366
- component: "",
3367
- componentName: "",
3368
- url: "",
3369
- redirect: null,
3370
- menuType: 0,
3371
- isLeaf: !1,
3372
- route: !1,
3373
- keepAlive: !1,
3374
- description: null,
3375
- delFlag: 0,
3376
- createBy: null,
3377
- createTime: null,
3378
- updateBy: null,
3379
- updateTime: null,
3380
- alwaysShow: !1,
3381
- hidden: !1,
3382
- status: null,
3383
- internalOrExternal: !1,
3384
- leaf: !1
3385
- }, n = {
3386
- id: KG_TMP_MENU_ID__DATA_MANAGER,
3387
- key: KG_TMP_MENU_ID__DATA_MANAGER,
3388
- title: (u = (c = r.option.value.appTitle) == null ? void 0 : c[KG_APP.WMS_DATA_MANAGER]) != null ? u : "\u6570\u636E\u7BA1\u7406",
3389
- name: (p = (d = r.option.value.appTitle) == null ? void 0 : d[KG_APP.WMS_DATA_MANAGER]) != null ? p : "\u6570\u636E\u7BA1\u7406",
3390
- slotTitle: (b = (E = r.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_DATA_MANAGER]) != null ? b : "\u6570\u636E\u7BA1\u7406",
3391
- sortNo: 1,
3392
- children: [],
3393
- ...a
3394
- }, s = {
3395
- id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
3396
- key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
3397
- title: (g = (y = r.option.value.appTitle) == null ? void 0 : y[KG_APP.WMS_BUSINESS_MANAGER]) != null ? g : "\u4ED3\u5E93\u7BA1\u7406",
3398
- name: (m = (_ = r.option.value.appTitle) == null ? void 0 : _[KG_APP.WMS_BUSINESS_MANAGER]) != null ? m : "\u4ED3\u5E93\u7BA1\u7406",
3399
- slotTitle: (k = (T = r.option.value.appTitle) == null ? void 0 : T[KG_APP.WMS_BUSINESS_MANAGER]) != null ? k : "\u4ED3\u5E93\u7BA1\u7406",
3400
- sortNo: 2,
3401
- children: [],
3402
- ...a
3403
- }, l = {
3404
- id: KG_TMP_MENU_ID__WCS,
3405
- key: KG_TMP_MENU_ID__WCS,
3406
- title: (C = (I = r.option.value.appTitle) == null ? void 0 : I[KG_APP.WCS]) != null ? C : "WCS",
3407
- name: (A = (R = r.option.value.appTitle) == null ? void 0 : R[KG_APP.WCS]) != null ? A : "WCS",
3408
- slotTitle: (M = (O = r.option.value.appTitle) == null ? void 0 : O[KG_APP.WCS]) != null ? M : "WCS",
3409
- sortNo: 3,
3410
- children: [],
3411
- ...a
3412
- }, o = {
3413
- id: KG_TMP_MENU_ID__SYS,
3414
- key: KG_TMP_MENU_ID__SYS,
3415
- title: (L = (P = r.option.value.appTitle) == null ? void 0 : P[KG_APP.SYS]) != null ? L : "\u7CFB\u7EDF\u914D\u7F6E",
3416
- name: (w = (H = r.option.value.appTitle) == null ? void 0 : H[KG_APP.SYS]) != null ? w : "\u7CFB\u7EDF\u914D\u7F6E",
3417
- slotTitle: (K = (D = r.option.value.appTitle) == null ? void 0 : D[KG_APP.SYS]) != null ? K : "\u7CFB\u7EDF\u914D\u7F6E",
3418
- sortNo: 4,
3419
- children: [],
3420
- ...a
3421
- }, i = {
3422
- id: KG_TMP_MENU_ID__PDA,
3423
- key: KG_TMP_MENU_ID__PDA,
3424
- title: "PDA",
3425
- name: "PDA",
3426
- slotTitle: "PDA",
3427
- sortNo: 5,
3428
- children: [],
3429
- ...a
3430
- };
3431
- return t.forEach((V) => {
3432
- switch (!0) {
3433
- case V.app === "PDA":
3434
- V.parentId = KG_TMP_MENU_ID__PDA, i.children.push(V);
3435
- break;
3436
- case KgRouteUtil.isPathInApp(V.url, KG_APP.WMS_DATA_MANAGER):
3437
- V.parentId = KG_TMP_MENU_ID__DATA_MANAGER, n.children.push(V);
3438
- break;
3439
- case KgRouteUtil.isPathInApp(V.url, KG_APP.WMS_BUSINESS_MANAGER):
3440
- V.parentId = KG_TMP_MENU_ID__BUSINESS_MANAGER, s.children.push(V);
3441
- break;
3442
- case KgRouteUtil.isPathInApp(V.url, KG_APP.WCS):
3443
- V.parentId = KG_TMP_MENU_ID__WCS, l.children.push(V);
3444
- break;
3445
- case KgRouteUtil.isPathInApp(V.url, KG_APP.SYS):
3446
- V.parentId = KG_TMP_MENU_ID__SYS, o.children.push(V);
3447
- break;
3448
- }
3449
- }), [n, s, l, o, i];
3450
- }
3451
- static isPathInApp(t, r) {
3452
- if (!t || !r)
3453
- return !1;
3454
- const a = ["/home", "/online"];
3455
- switch (r) {
3456
- case KG_APP.WMS_DATA_MANAGER:
3457
- return t.startsWith(KG_APP_PREFIX.WMS_DATA_MANAGER);
3458
- case KG_APP.WMS_BUSINESS_MANAGER:
3459
- return t.startsWith(KG_APP_PREFIX.WMS_BUSINESS_MANAGER);
3460
- case KG_APP.WCS:
3461
- return t.startsWith(KG_APP_PREFIX.WCS);
3462
- case KG_APP.SYS:
3463
- return t.startsWith(KG_APP_PREFIX.SYS) || !a.includes(t) && !t.startsWith(KG_APP_PREFIX.WMS_DATA_MANAGER) && !t.startsWith(KG_APP_PREFIX.WMS_BUSINESS_MANAGER) && !t.startsWith(KG_APP_PREFIX.WCS);
3464
- default:
3465
- throw new Error(`\u672A\u77E5\u6A21\u5757: ${r}`);
3466
- }
3467
- }
3468
- static getAppByPath(t) {
3469
- const r = KG_APPS.find((a) => KgRouteUtil.isPathInApp(t, a));
3470
- return r || null;
3471
- }
3472
- static getAppIndexPath(t) {
3473
- var n, s, l, o;
3474
- const r = useKg();
3475
- let a = "";
3476
- switch (t) {
3477
- case KG_APP.WMS_DATA_MANAGER:
3478
- a = ((n = r.option.value.appIndex) == null ? void 0 : n[KG_APP.WMS_DATA_MANAGER]) || `${KG_APP_PREFIX.WMS_DATA_MANAGER}/index`;
3479
- break;
3480
- case KG_APP.WMS_BUSINESS_MANAGER:
3481
- a = ((s = r.option.value.appIndex) == null ? void 0 : s[KG_APP.WMS_BUSINESS_MANAGER]) || `${KG_APP_PREFIX.WMS_BUSINESS_MANAGER}/index`;
3482
- break;
3483
- case KG_APP.WCS:
3484
- a = ((l = r.option.value.appIndex) == null ? void 0 : l[KG_APP.WCS]) || `${KG_APP_PREFIX.WCS}/index`;
3485
- break;
3486
- case KG_APP.SYS:
3487
- a = ((o = r.option.value.appIndex) == null ? void 0 : o[KG_APP.SYS]) || `${KG_APP_PREFIX.SYS}/index`;
3488
- break;
3489
- default:
3490
- throw new Error(`\u672A\u77E5\u6A21\u5757: ${t}`);
3491
- }
3492
- return a;
3314
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
3315
+ const freeGlobal$1 = freeGlobal;
3316
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
3317
+ const root$1 = root;
3318
+ var Symbol$1 = root$1.Symbol;
3319
+ const Symbol$2 = Symbol$1;
3320
+ var objectProto$e = Object.prototype, hasOwnProperty$b = objectProto$e.hasOwnProperty, nativeObjectToString$1 = objectProto$e.toString, symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
3321
+ function getRawTag(e) {
3322
+ var t = hasOwnProperty$b.call(e, symToStringTag$1), r = e[symToStringTag$1];
3323
+ try {
3324
+ e[symToStringTag$1] = void 0;
3325
+ var a = !0;
3326
+ } catch {
3493
3327
  }
3328
+ var n = nativeObjectToString$1.call(e);
3329
+ return a && (t ? e[symToStringTag$1] = r : delete e[symToStringTag$1]), n;
3494
3330
  }
3495
- class KgAuthUtil {
3496
- static isAppAuthenticated(t) {
3497
- var s, l, o;
3498
- if (!t)
3499
- return !1;
3500
- const a = (l = (s = useKg().store).getUsePermissionStore) == null ? void 0 : l.call(s), n = (o = a == null ? void 0 : a.getBackMenuList) == null ? void 0 : o.map((i) => i.path);
3501
- return !!(n != null && n.some((i) => KgRouteUtil.isPathInApp(i, t)));
3502
- }
3503
- static getPermissionType(t) {
3504
- var l, o, i;
3505
- if (!t)
3506
- return null;
3507
- const a = (o = (l = useKg().store).getUsePermissionStore) == null ? void 0 : o.call(l), n = (i = a == null ? void 0 : a.authList) == null ? void 0 : i.find((c) => c.action === t), s = Number(n == null ? void 0 : n.type);
3508
- return s !== 1 && s !== 2 ? null : s;
3509
- }
3331
+ var objectProto$d = Object.prototype, nativeObjectToString = objectProto$d.toString;
3332
+ function objectToString(e) {
3333
+ return nativeObjectToString.call(e);
3510
3334
  }
3511
- class KgDomUtil {
3512
- static isNotClickable(t, r = []) {
3513
- return !t || [...r, "kg-not-clickable"].some((a) => t.classList.contains(a)) ? !0 : t.parentElement && t.parentElement.tagName !== "BODY" ? KgDomUtil.isNotClickable(t.parentElement) : !1;
3514
- }
3515
- }
3516
- var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, dayjs_min = { exports: {} };
3517
- (function(e, t) {
3518
- (function(r, a) {
3519
- e.exports = a();
3520
- })(commonjsGlobal, function() {
3521
- var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", p = "quarter", E = "year", b = "date", y = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|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, m = { 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(w) {
3522
- var D = ["th", "st", "nd", "rd"], K = w % 100;
3523
- return "[" + w + (D[(K - 20) % 10] || D[K] || D[0]) + "]";
3524
- } }, T = function(w, D, K) {
3525
- var V = String(w);
3526
- return !V || V.length >= D ? w : "" + Array(D + 1 - V.length).join(K) + w;
3527
- }, k = { s: T, z: function(w) {
3528
- var D = -w.utcOffset(), K = Math.abs(D), V = Math.floor(K / 60), N = K % 60;
3529
- return (D <= 0 ? "+" : "-") + T(V, 2, "0") + ":" + T(N, 2, "0");
3530
- }, m: function w(D, K) {
3531
- if (D.date() < K.date())
3532
- return -w(K, D);
3533
- var V = 12 * (K.year() - D.year()) + (K.month() - D.month()), N = D.clone().add(V, d), G = K - N < 0, $ = D.clone().add(V + (G ? -1 : 1), d);
3534
- return +(-(V + (K - N) / (G ? N - $ : $ - N)) || 0);
3535
- }, a: function(w) {
3536
- return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
3537
- }, p: function(w) {
3538
- return { M: d, y: E, w: u, d: c, D: b, h: i, m: o, s: l, ms: s, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
3539
- }, u: function(w) {
3540
- return w === void 0;
3541
- } }, I = "en", C = {};
3542
- C[I] = m;
3543
- var R = "$isDayjsObject", A = function(w) {
3544
- return w instanceof L || !(!w || !w[R]);
3545
- }, O = function w(D, K, V) {
3546
- var N;
3547
- if (!D)
3548
- return I;
3549
- if (typeof D == "string") {
3550
- var G = D.toLowerCase();
3551
- C[G] && (N = G), K && (C[G] = K, N = G);
3552
- var $ = D.split("-");
3553
- if (!N && $.length > 1)
3554
- return w($[0]);
3555
- } else {
3556
- var B = D.name;
3557
- C[B] = D, N = B;
3558
- }
3559
- return !V && N && (I = N), N || !V && I;
3560
- }, M = function(w, D) {
3561
- if (A(w))
3562
- return w.clone();
3563
- var K = typeof D == "object" ? D : {};
3564
- return K.date = w, K.args = arguments, new L(K);
3565
- }, P = k;
3566
- P.l = O, P.i = A, P.w = function(w, D) {
3567
- return M(w, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
3568
- };
3569
- var L = function() {
3570
- function w(K) {
3571
- this.$L = O(K.locale, null, !0), this.parse(K), this.$x = this.$x || K.x || {}, this[R] = !0;
3572
- }
3573
- var D = w.prototype;
3574
- return D.parse = function(K) {
3575
- this.$d = function(V) {
3576
- var N = V.date, G = V.utc;
3577
- if (N === null)
3578
- return new Date(NaN);
3579
- if (P.u(N))
3580
- return new Date();
3581
- if (N instanceof Date)
3582
- return new Date(N);
3583
- if (typeof N == "string" && !/Z$/i.test(N)) {
3584
- var $ = N.match(g);
3585
- if ($) {
3586
- var B = $[2] - 1 || 0, Y = ($[7] || "0").substring(0, 3);
3587
- return G ? new Date(Date.UTC($[1], B, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, Y)) : new Date($[1], B, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, Y);
3588
- }
3589
- }
3590
- return new Date(N);
3591
- }(K), this.init();
3592
- }, D.init = function() {
3593
- var K = this.$d;
3594
- this.$y = K.getFullYear(), this.$M = K.getMonth(), this.$D = K.getDate(), this.$W = K.getDay(), this.$H = K.getHours(), this.$m = K.getMinutes(), this.$s = K.getSeconds(), this.$ms = K.getMilliseconds();
3595
- }, D.$utils = function() {
3596
- return P;
3597
- }, D.isValid = function() {
3598
- return this.$d.toString() !== y;
3599
- }, D.isSame = function(K, V) {
3600
- var N = M(K);
3601
- return this.startOf(V) <= N && N <= this.endOf(V);
3602
- }, D.isAfter = function(K, V) {
3603
- return M(K) < this.startOf(V);
3604
- }, D.isBefore = function(K, V) {
3605
- return this.endOf(V) < M(K);
3606
- }, D.$g = function(K, V, N) {
3607
- return P.u(K) ? this[V] : this.set(N, K);
3608
- }, D.unix = function() {
3609
- return Math.floor(this.valueOf() / 1e3);
3610
- }, D.valueOf = function() {
3611
- return this.$d.getTime();
3612
- }, D.startOf = function(K, V) {
3613
- var N = this, G = !!P.u(V) || V, $ = P.p(K), B = function(pe, ae) {
3614
- var F = P.w(N.$u ? Date.UTC(N.$y, ae, pe) : new Date(N.$y, ae, pe), N);
3615
- return G ? F : F.endOf(c);
3616
- }, Y = function(pe, ae) {
3617
- return P.w(N.toDate()[pe].apply(N.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), N);
3618
- }, q = this.$W, J = this.$M, X = this.$D, ee = "set" + (this.$u ? "UTC" : "");
3619
- switch ($) {
3620
- case E:
3621
- return G ? B(1, 0) : B(31, 11);
3622
- case d:
3623
- return G ? B(1, J) : B(0, J + 1);
3624
- case u:
3625
- var le = this.$locale().weekStart || 0, he = (q < le ? q + 7 : q) - le;
3626
- return B(G ? X - he : X + (6 - he), J);
3627
- case c:
3628
- case b:
3629
- return Y(ee + "Hours", 0);
3630
- case i:
3631
- return Y(ee + "Minutes", 1);
3632
- case o:
3633
- return Y(ee + "Seconds", 2);
3634
- case l:
3635
- return Y(ee + "Milliseconds", 3);
3636
- default:
3637
- return this.clone();
3638
- }
3639
- }, D.endOf = function(K) {
3640
- return this.startOf(K, !1);
3641
- }, D.$set = function(K, V) {
3642
- var N, G = P.p(K), $ = "set" + (this.$u ? "UTC" : ""), B = (N = {}, N[c] = $ + "Date", N[b] = $ + "Date", N[d] = $ + "Month", N[E] = $ + "FullYear", N[i] = $ + "Hours", N[o] = $ + "Minutes", N[l] = $ + "Seconds", N[s] = $ + "Milliseconds", N)[G], Y = G === c ? this.$D + (V - this.$W) : V;
3643
- if (G === d || G === E) {
3644
- var q = this.clone().set(b, 1);
3645
- q.$d[B](Y), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
3646
- } else
3647
- B && this.$d[B](Y);
3648
- return this.init(), this;
3649
- }, D.set = function(K, V) {
3650
- return this.clone().$set(K, V);
3651
- }, D.get = function(K) {
3652
- return this[P.p(K)]();
3653
- }, D.add = function(K, V) {
3654
- var N, G = this;
3655
- K = Number(K);
3656
- var $ = P.p(V), B = function(J) {
3657
- var X = M(G);
3658
- return P.w(X.date(X.date() + Math.round(J * K)), G);
3659
- };
3660
- if ($ === d)
3661
- return this.set(d, this.$M + K);
3662
- if ($ === E)
3663
- return this.set(E, this.$y + K);
3664
- if ($ === c)
3665
- return B(1);
3666
- if ($ === u)
3667
- return B(7);
3668
- var Y = (N = {}, N[o] = a, N[i] = n, N[l] = r, N)[$] || 1, q = this.$d.getTime() + K * Y;
3669
- return P.w(q, this);
3670
- }, D.subtract = function(K, V) {
3671
- return this.add(-1 * K, V);
3672
- }, D.format = function(K) {
3673
- var V = this, N = this.$locale();
3674
- if (!this.isValid())
3675
- return N.invalidDate || y;
3676
- var G = K || "YYYY-MM-DDTHH:mm:ssZ", $ = P.z(this), B = this.$H, Y = this.$m, q = this.$M, J = N.weekdays, X = N.months, ee = N.meridiem, le = function(ae, F, U, Q) {
3677
- return ae && (ae[F] || ae(V, G)) || U[F].slice(0, Q);
3678
- }, he = function(ae) {
3679
- return P.s(B % 12 || 12, ae, "0");
3680
- }, pe = ee || function(ae, F, U) {
3681
- var Q = ae < 12 ? "AM" : "PM";
3682
- return U ? Q.toLowerCase() : Q;
3683
- };
3684
- return G.replace(_, function(ae, F) {
3685
- return F || function(U) {
3686
- switch (U) {
3687
- case "YY":
3688
- return String(V.$y).slice(-2);
3689
- case "YYYY":
3690
- return P.s(V.$y, 4, "0");
3691
- case "M":
3692
- return q + 1;
3693
- case "MM":
3694
- return P.s(q + 1, 2, "0");
3695
- case "MMM":
3696
- return le(N.monthsShort, q, X, 3);
3697
- case "MMMM":
3698
- return le(X, q);
3699
- case "D":
3700
- return V.$D;
3701
- case "DD":
3702
- return P.s(V.$D, 2, "0");
3703
- case "d":
3704
- return String(V.$W);
3705
- case "dd":
3706
- return le(N.weekdaysMin, V.$W, J, 2);
3707
- case "ddd":
3708
- return le(N.weekdaysShort, V.$W, J, 3);
3709
- case "dddd":
3710
- return J[V.$W];
3711
- case "H":
3712
- return String(B);
3713
- case "HH":
3714
- return P.s(B, 2, "0");
3715
- case "h":
3716
- return he(1);
3717
- case "hh":
3718
- return he(2);
3719
- case "a":
3720
- return pe(B, Y, !0);
3721
- case "A":
3722
- return pe(B, Y, !1);
3723
- case "m":
3724
- return String(Y);
3725
- case "mm":
3726
- return P.s(Y, 2, "0");
3727
- case "s":
3728
- return String(V.$s);
3729
- case "ss":
3730
- return P.s(V.$s, 2, "0");
3731
- case "SSS":
3732
- return P.s(V.$ms, 3, "0");
3733
- case "Z":
3734
- return $;
3735
- }
3736
- return null;
3737
- }(ae) || $.replace(":", "");
3738
- });
3739
- }, D.utcOffset = function() {
3740
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3741
- }, D.diff = function(K, V, N) {
3742
- var G, $ = this, B = P.p(V), Y = M(K), q = (Y.utcOffset() - this.utcOffset()) * a, J = this - Y, X = function() {
3743
- return P.m($, Y);
3744
- };
3745
- switch (B) {
3746
- case E:
3747
- G = X() / 12;
3748
- break;
3749
- case d:
3750
- G = X();
3751
- break;
3752
- case p:
3753
- G = X() / 3;
3754
- break;
3755
- case u:
3756
- G = (J - q) / 6048e5;
3757
- break;
3758
- case c:
3759
- G = (J - q) / 864e5;
3760
- break;
3761
- case i:
3762
- G = J / n;
3763
- break;
3764
- case o:
3765
- G = J / a;
3766
- break;
3767
- case l:
3768
- G = J / r;
3769
- break;
3770
- default:
3771
- G = J;
3772
- }
3773
- return N ? G : P.a(G);
3774
- }, D.daysInMonth = function() {
3775
- return this.endOf(d).$D;
3776
- }, D.$locale = function() {
3777
- return C[this.$L];
3778
- }, D.locale = function(K, V) {
3779
- if (!K)
3780
- return this.$L;
3781
- var N = this.clone(), G = O(K, V, !0);
3782
- return G && (N.$L = G), N;
3783
- }, D.clone = function() {
3784
- return P.w(this.$d, this);
3785
- }, D.toDate = function() {
3786
- return new Date(this.valueOf());
3787
- }, D.toJSON = function() {
3788
- return this.isValid() ? this.toISOString() : null;
3789
- }, D.toISOString = function() {
3790
- return this.$d.toISOString();
3791
- }, D.toString = function() {
3792
- return this.$d.toUTCString();
3793
- }, w;
3794
- }(), H = L.prototype;
3795
- return M.prototype = H, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", E], ["$D", b]].forEach(function(w) {
3796
- H[w[1]] = function(D) {
3797
- return this.$g(D, w[0], w[1]);
3798
- };
3799
- }), M.extend = function(w, D) {
3800
- return w.$i || (w(D, L, M), w.$i = !0), M;
3801
- }, M.locale = O, M.isDayjs = A, M.unix = function(w) {
3802
- return M(1e3 * w);
3803
- }, M.en = C[I], M.Ls = C, M.p = {}, M;
3804
- });
3805
- })(dayjs_min);
3806
- const dayjs = dayjs_min.exports;
3807
- /**
3808
- * filesize
3809
- *
3810
- * @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
3811
- * @license BSD-3-Clause
3812
- * @version 10.1.0
3813
- */
3814
- const ARRAY = "array", BIT = "bit", BITS = "bits", BYTE = "byte", BYTES = "bytes", EMPTY = "", EXPONENT = "exponent", FUNCTION = "function", IEC = "iec", INVALID_NUMBER = "Invalid number", INVALID_ROUND = "Invalid rounding method", JEDEC = "jedec", OBJECT = "object", PERIOD = ".", ROUND = "round", S = "s", SI = "si", SI_KBIT = "kbit", SI_KBYTE = "kB", SPACE = " ", STRING = "string", ZERO = "0", STRINGS = {
3815
- symbol: {
3816
- iec: {
3817
- bits: ["bit", "Kibit", "Mibit", "Gibit", "Tibit", "Pibit", "Eibit", "Zibit", "Yibit"],
3818
- bytes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]
3819
- },
3820
- jedec: {
3821
- bits: ["bit", "Kbit", "Mbit", "Gbit", "Tbit", "Pbit", "Ebit", "Zbit", "Ybit"],
3822
- bytes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]
3823
- }
3824
- },
3825
- fullform: {
3826
- iec: ["", "kibi", "mebi", "gibi", "tebi", "pebi", "exbi", "zebi", "yobi"],
3827
- jedec: ["", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta"]
3828
- }
3829
- };
3830
- function filesize(e, {
3831
- bits: t = !1,
3832
- pad: r = !1,
3833
- base: a = -1,
3834
- round: n = 2,
3835
- locale: s = EMPTY,
3836
- localeOptions: l = {},
3837
- separator: o = EMPTY,
3838
- spacer: i = SPACE,
3839
- symbols: c = {},
3840
- standard: u = EMPTY,
3841
- output: d = STRING,
3842
- fullform: p = !1,
3843
- fullforms: E = [],
3844
- exponent: b = -1,
3845
- roundingMethod: y = ROUND,
3846
- precision: g = 0
3847
- } = {}) {
3848
- let _ = b, m = Number(e), T = [], k = 0, I = EMPTY;
3849
- u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
3850
- const C = a === 10 ? 1e3 : 1024, R = p === !0, A = m < 0, O = Math[y];
3851
- if (typeof e != "bigint" && isNaN(e))
3852
- throw new TypeError(INVALID_NUMBER);
3853
- if (typeof O !== FUNCTION)
3854
- throw new TypeError(INVALID_ROUND);
3855
- if (A && (m = -m), (_ === -1 || isNaN(_)) && (_ = Math.floor(Math.log(m) / Math.log(C)), _ < 0 && (_ = 0)), _ > 8 && (g > 0 && (g += 8 - _), _ = 8), d === EXPONENT)
3856
- return _;
3857
- if (m === 0)
3858
- T[0] = 0, I = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][_];
3859
- else {
3860
- k = m / (a === 2 ? Math.pow(2, _ * 10) : Math.pow(1e3, _)), t && (k = k * 8, k >= C && _ < 8 && (k = k / C, _++));
3861
- const M = Math.pow(10, _ > 0 ? n : 0);
3862
- T[0] = O(k * M) / M, T[0] === C && _ < 8 && b === -1 && (T[0] = 1, _++), I = T[1] = a === 10 && _ === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][_];
3863
- }
3864
- if (A && (T[0] = -T[0]), g > 0 && (T[0] = T[0].toPrecision(g)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, l) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
3865
- const M = o || PERIOD, P = T[0].toString().split(M), L = P[1] || EMPTY, H = L.length, w = n - H;
3866
- T[0] = `${P[0]}${M}${L.padEnd(H + w, ZERO)}`;
3867
- }
3868
- return R && (T[1] = E[_] ? E[_] : STRINGS.fullform[u][_] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
3869
- value: T[0],
3870
- symbol: T[1],
3871
- exponent: _,
3872
- unit: I
3873
- } : T.join(i);
3874
- }
3875
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
3876
- const freeGlobal$1 = freeGlobal;
3877
- var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
3878
- const root$1 = root;
3879
- var Symbol$1 = root$1.Symbol;
3880
- const Symbol$2 = Symbol$1;
3881
- var objectProto$e = Object.prototype, hasOwnProperty$b = objectProto$e.hasOwnProperty, nativeObjectToString$1 = objectProto$e.toString, symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
3882
- function getRawTag(e) {
3883
- var t = hasOwnProperty$b.call(e, symToStringTag$1), r = e[symToStringTag$1];
3884
- try {
3885
- e[symToStringTag$1] = void 0;
3886
- var a = !0;
3887
- } catch {
3888
- }
3889
- var n = nativeObjectToString$1.call(e);
3890
- return a && (t ? e[symToStringTag$1] = r : delete e[symToStringTag$1]), n;
3891
- }
3892
- var objectProto$d = Object.prototype, nativeObjectToString = objectProto$d.toString;
3893
- function objectToString(e) {
3894
- return nativeObjectToString.call(e);
3895
- }
3896
- var nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
3897
- function baseGetTag(e) {
3898
- return e == null ? e === void 0 ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(e) ? getRawTag(e) : objectToString(e);
3335
+ var nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
3336
+ function baseGetTag(e) {
3337
+ return e == null ? e === void 0 ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(e) ? getRawTag(e) : objectToString(e);
3899
3338
  }
3900
3339
  function isObjectLike(e) {
3901
3340
  return e != null && typeof e == "object";
@@ -5070,446 +4509,1085 @@ function equalObjects(e, t, r, a, n, s) {
5070
4509
  var k = e.constructor, I = t.constructor;
5071
4510
  k != I && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof I == "function" && I instanceof I) && (y = !1);
5072
4511
  }
5073
- return s.delete(e), s.delete(t), y;
5074
- }
5075
- var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
5076
- function baseIsEqualDeep(e, t, r, a, n, s) {
5077
- var l = isArray$1(e), o = isArray$1(t), i = l ? arrayTag : getTag$1(e), c = o ? arrayTag : getTag$1(t);
5078
- i = i == argsTag ? objectTag : i, c = c == argsTag ? objectTag : c;
5079
- var u = i == objectTag, d = c == objectTag, p = i == c;
5080
- if (p && isBuffer$1(e)) {
5081
- if (!isBuffer$1(t))
5082
- return !1;
5083
- l = !0, u = !1;
4512
+ return s.delete(e), s.delete(t), y;
4513
+ }
4514
+ var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
4515
+ function baseIsEqualDeep(e, t, r, a, n, s) {
4516
+ var l = isArray$1(e), o = isArray$1(t), i = l ? arrayTag : getTag$1(e), c = o ? arrayTag : getTag$1(t);
4517
+ i = i == argsTag ? objectTag : i, c = c == argsTag ? objectTag : c;
4518
+ var u = i == objectTag, d = c == objectTag, p = i == c;
4519
+ if (p && isBuffer$1(e)) {
4520
+ if (!isBuffer$1(t))
4521
+ return !1;
4522
+ l = !0, u = !1;
4523
+ }
4524
+ if (p && !u)
4525
+ return s || (s = new Stack()), l || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, s) : equalByTag(e, t, i, r, a, n, s);
4526
+ if (!(r & COMPARE_PARTIAL_FLAG$2)) {
4527
+ var E = u && hasOwnProperty.call(e, "__wrapped__"), b = d && hasOwnProperty.call(t, "__wrapped__");
4528
+ if (E || b) {
4529
+ var y = E ? e.value() : e, g = b ? t.value() : t;
4530
+ return s || (s = new Stack()), n(y, g, r, a, s);
4531
+ }
4532
+ }
4533
+ return p ? (s || (s = new Stack()), equalObjects(e, t, r, a, n, s)) : !1;
4534
+ }
4535
+ function baseIsEqual(e, t, r, a, n) {
4536
+ return e === t ? !0 : e == null || t == null || !isObjectLike(e) && !isObjectLike(t) ? e !== e && t !== t : baseIsEqualDeep(e, t, r, a, baseIsEqual, n);
4537
+ }
4538
+ var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
4539
+ function baseIsMatch(e, t, r, a) {
4540
+ var n = r.length, s = n, l = !a;
4541
+ if (e == null)
4542
+ return !s;
4543
+ for (e = Object(e); n--; ) {
4544
+ var o = r[n];
4545
+ if (l && o[2] ? o[1] !== e[o[0]] : !(o[0] in e))
4546
+ return !1;
4547
+ }
4548
+ for (; ++n < s; ) {
4549
+ o = r[n];
4550
+ var i = o[0], c = e[i], u = o[1];
4551
+ if (l && o[2]) {
4552
+ if (c === void 0 && !(i in e))
4553
+ return !1;
4554
+ } else {
4555
+ var d = new Stack();
4556
+ if (a)
4557
+ var p = a(c, u, i, e, t, d);
4558
+ if (!(p === void 0 ? baseIsEqual(u, c, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, a, d) : p))
4559
+ return !1;
4560
+ }
4561
+ }
4562
+ return !0;
4563
+ }
4564
+ function isStrictComparable(e) {
4565
+ return e === e && !isObject$2(e);
4566
+ }
4567
+ function getMatchData(e) {
4568
+ for (var t = keys$1(e), r = t.length; r--; ) {
4569
+ var a = t[r], n = e[a];
4570
+ t[r] = [a, n, isStrictComparable(n)];
4571
+ }
4572
+ return t;
4573
+ }
4574
+ function matchesStrictComparable(e, t) {
4575
+ return function(r) {
4576
+ return r == null ? !1 : r[e] === t && (t !== void 0 || e in Object(r));
4577
+ };
4578
+ }
4579
+ function baseMatches(e) {
4580
+ var t = getMatchData(e);
4581
+ return t.length == 1 && t[0][2] ? matchesStrictComparable(t[0][0], t[0][1]) : function(r) {
4582
+ return r === e || baseIsMatch(r, e, t);
4583
+ };
4584
+ }
4585
+ function baseHasIn(e, t) {
4586
+ return e != null && t in Object(e);
4587
+ }
4588
+ function hasPath(e, t, r) {
4589
+ t = castPath(t, e);
4590
+ for (var a = -1, n = t.length, s = !1; ++a < n; ) {
4591
+ var l = toKey(t[a]);
4592
+ if (!(s = e != null && r(e, l)))
4593
+ break;
4594
+ e = e[l];
4595
+ }
4596
+ return s || ++a != n ? s : (n = e == null ? 0 : e.length, !!n && isLength(n) && isIndex(l, n) && (isArray$1(e) || isArguments$1(e)));
4597
+ }
4598
+ function hasIn(e, t) {
4599
+ return e != null && hasPath(e, t, baseHasIn);
4600
+ }
4601
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
4602
+ function baseMatchesProperty(e, t) {
4603
+ return isKey(e) && isStrictComparable(t) ? matchesStrictComparable(toKey(e), t) : function(r) {
4604
+ var a = get(r, e);
4605
+ return a === void 0 && a === t ? hasIn(r, e) : baseIsEqual(t, a, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
4606
+ };
4607
+ }
4608
+ function baseProperty(e) {
4609
+ return function(t) {
4610
+ return t == null ? void 0 : t[e];
4611
+ };
4612
+ }
4613
+ function basePropertyDeep(e) {
4614
+ return function(t) {
4615
+ return baseGet(t, e);
4616
+ };
4617
+ }
4618
+ function property(e) {
4619
+ return isKey(e) ? baseProperty(toKey(e)) : basePropertyDeep(e);
4620
+ }
4621
+ function baseIteratee(e) {
4622
+ return typeof e == "function" ? e : e == null ? identity : typeof e == "object" ? isArray$1(e) ? baseMatchesProperty(e[0], e[1]) : baseMatches(e) : property(e);
4623
+ }
4624
+ function createBaseFor(e) {
4625
+ return function(t, r, a) {
4626
+ for (var n = -1, s = Object(t), l = a(t), o = l.length; o--; ) {
4627
+ var i = l[e ? o : ++n];
4628
+ if (r(s[i], i, s) === !1)
4629
+ break;
4630
+ }
4631
+ return t;
4632
+ };
4633
+ }
4634
+ var baseFor = createBaseFor();
4635
+ const baseFor$1 = baseFor;
4636
+ function baseForOwn(e, t) {
4637
+ return e && baseFor$1(e, t, keys$1);
4638
+ }
4639
+ function createBaseEach(e, t) {
4640
+ return function(r, a) {
4641
+ if (r == null)
4642
+ return r;
4643
+ if (!isArrayLike(r))
4644
+ return e(r, a);
4645
+ for (var n = r.length, s = t ? n : -1, l = Object(r); (t ? s-- : ++s < n) && a(l[s], s, l) !== !1; )
4646
+ ;
4647
+ return r;
4648
+ };
4649
+ }
4650
+ var baseEach = createBaseEach(baseForOwn);
4651
+ const baseEach$1 = baseEach;
4652
+ var now = function() {
4653
+ return root$1.Date.now();
4654
+ };
4655
+ const now$1 = now;
4656
+ var FUNC_ERROR_TEXT = "Expected a function", nativeMax$1 = Math.max, nativeMin$1 = Math.min;
4657
+ function debounce(e, t, r) {
4658
+ var a, n, s, l, o, i, c = 0, u = !1, d = !1, p = !0;
4659
+ if (typeof e != "function")
4660
+ throw new TypeError(FUNC_ERROR_TEXT);
4661
+ t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, p = "trailing" in r ? !!r.trailing : p);
4662
+ function E(C) {
4663
+ var O = a, A = n;
4664
+ return a = n = void 0, c = C, l = e.apply(A, O), l;
4665
+ }
4666
+ function b(C) {
4667
+ return c = C, o = setTimeout(_, t), u ? E(C) : l;
4668
+ }
4669
+ function y(C) {
4670
+ var O = C - i, A = C - c, R = t - O;
4671
+ return d ? nativeMin$1(R, s - A) : R;
4672
+ }
4673
+ function g(C) {
4674
+ var O = C - i, A = C - c;
4675
+ return i === void 0 || O >= t || O < 0 || d && A >= s;
4676
+ }
4677
+ function _() {
4678
+ var C = now$1();
4679
+ if (g(C))
4680
+ return m(C);
4681
+ o = setTimeout(_, y(C));
4682
+ }
4683
+ function m(C) {
4684
+ return o = void 0, p && a ? E(C) : (a = n = void 0, l);
4685
+ }
4686
+ function T() {
4687
+ o !== void 0 && clearTimeout(o), c = 0, a = i = n = o = void 0;
5084
4688
  }
5085
- if (p && !u)
5086
- return s || (s = new Stack()), l || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, s) : equalByTag(e, t, i, r, a, n, s);
5087
- if (!(r & COMPARE_PARTIAL_FLAG$2)) {
5088
- var E = u && hasOwnProperty.call(e, "__wrapped__"), b = d && hasOwnProperty.call(t, "__wrapped__");
5089
- if (E || b) {
5090
- var y = E ? e.value() : e, g = b ? t.value() : t;
5091
- return s || (s = new Stack()), n(y, g, r, a, s);
4689
+ function k() {
4690
+ return o === void 0 ? l : m(now$1());
4691
+ }
4692
+ function I() {
4693
+ var C = now$1(), O = g(C);
4694
+ if (a = arguments, n = this, i = C, O) {
4695
+ if (o === void 0)
4696
+ return b(i);
4697
+ if (d)
4698
+ return clearTimeout(o), o = setTimeout(_, t), E(i);
5092
4699
  }
4700
+ return o === void 0 && (o = setTimeout(_, t)), l;
5093
4701
  }
5094
- return p ? (s || (s = new Stack()), equalObjects(e, t, r, a, n, s)) : !1;
4702
+ return I.cancel = T, I.flush = k, I;
5095
4703
  }
5096
- function baseIsEqual(e, t, r, a, n) {
5097
- return e === t ? !0 : e == null || t == null || !isObjectLike(e) && !isObjectLike(t) ? e !== e && t !== t : baseIsEqualDeep(e, t, r, a, baseIsEqual, n);
4704
+ function isArrayLikeObject(e) {
4705
+ return isObjectLike(e) && isArrayLike(e);
5098
4706
  }
5099
- var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
5100
- function baseIsMatch(e, t, r, a) {
5101
- var n = r.length, s = n, l = !a;
5102
- if (e == null)
5103
- return !s;
5104
- for (e = Object(e); n--; ) {
5105
- var o = r[n];
5106
- if (l && o[2] ? o[1] !== e[o[0]] : !(o[0] in e))
5107
- return !1;
5108
- }
5109
- for (; ++n < s; ) {
5110
- o = r[n];
5111
- var i = o[0], c = e[i], u = o[1];
5112
- if (l && o[2]) {
5113
- if (c === void 0 && !(i in e))
5114
- return !1;
5115
- } else {
5116
- var d = new Stack();
5117
- if (a)
5118
- var p = a(c, u, i, e, t, d);
5119
- if (!(p === void 0 ? baseIsEqual(u, c, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, a, d) : p))
5120
- return !1;
4707
+ function arrayIncludesWith(e, t, r) {
4708
+ for (var a = -1, n = e == null ? 0 : e.length; ++a < n; )
4709
+ if (r(t, e[a]))
4710
+ return !0;
4711
+ return !1;
4712
+ }
4713
+ var LARGE_ARRAY_SIZE$1 = 200;
4714
+ function baseDifference(e, t, r, a) {
4715
+ var n = -1, s = arrayIncludes, l = !0, o = e.length, i = [], c = t.length;
4716
+ if (!o)
4717
+ return i;
4718
+ r && (t = arrayMap(t, baseUnary(r))), a ? (s = arrayIncludesWith, l = !1) : t.length >= LARGE_ARRAY_SIZE$1 && (s = cacheHas, l = !1, t = new SetCache(t));
4719
+ e:
4720
+ for (; ++n < o; ) {
4721
+ var u = e[n], d = r == null ? u : r(u);
4722
+ if (u = a || u !== 0 ? u : 0, l && d === d) {
4723
+ for (var p = c; p--; )
4724
+ if (t[p] === d)
4725
+ continue e;
4726
+ i.push(u);
4727
+ } else
4728
+ s(t, d, a) || i.push(u);
5121
4729
  }
5122
- }
5123
- return !0;
4730
+ return i;
5124
4731
  }
5125
- function isStrictComparable(e) {
5126
- return e === e && !isObject$2(e);
4732
+ function last(e) {
4733
+ var t = e == null ? 0 : e.length;
4734
+ return t ? e[t - 1] : void 0;
5127
4735
  }
5128
- function getMatchData(e) {
5129
- for (var t = keys$1(e), r = t.length; r--; ) {
5130
- var a = t[r], n = e[a];
5131
- t[r] = [a, n, isStrictComparable(n)];
5132
- }
5133
- return t;
4736
+ function baseToPairs(e, t) {
4737
+ return arrayMap(t, function(r) {
4738
+ return [r, e[r]];
4739
+ });
5134
4740
  }
5135
- function matchesStrictComparable(e, t) {
5136
- return function(r) {
5137
- return r == null ? !1 : r[e] === t && (t !== void 0 || e in Object(r));
5138
- };
4741
+ function setToPairs(e) {
4742
+ var t = -1, r = Array(e.size);
4743
+ return e.forEach(function(a) {
4744
+ r[++t] = [a, a];
4745
+ }), r;
5139
4746
  }
5140
- function baseMatches(e) {
5141
- var t = getMatchData(e);
5142
- return t.length == 1 && t[0][2] ? matchesStrictComparable(t[0][0], t[0][1]) : function(r) {
5143
- return r === e || baseIsMatch(r, e, t);
4747
+ var mapTag = "[object Map]", setTag = "[object Set]";
4748
+ function createToPairs(e) {
4749
+ return function(t) {
4750
+ var r = getTag$1(t);
4751
+ return r == mapTag ? mapToArray(t) : r == setTag ? setToPairs(t) : baseToPairs(t, e(t));
5144
4752
  };
5145
4753
  }
5146
- function baseHasIn(e, t) {
5147
- return e != null && t in Object(e);
4754
+ var toPairs = createToPairs(keys$1);
4755
+ const toPairs$1 = toPairs;
4756
+ function baseFilter(e, t) {
4757
+ var r = [];
4758
+ return baseEach$1(e, function(a, n, s) {
4759
+ t(a, n, s) && r.push(a);
4760
+ }), r;
5148
4761
  }
5149
- function hasPath(e, t, r) {
5150
- t = castPath(t, e);
5151
- for (var a = -1, n = t.length, s = !1; ++a < n; ) {
5152
- var l = toKey(t[a]);
5153
- if (!(s = e != null && r(e, l)))
5154
- break;
5155
- e = e[l];
4762
+ function filter(e, t) {
4763
+ var r = isArray$1(e) ? arrayFilter : baseFilter;
4764
+ return r(e, baseIteratee(t));
4765
+ }
4766
+ function baseMap(e, t) {
4767
+ var r = -1, a = isArrayLike(e) ? Array(e.length) : [];
4768
+ return baseEach$1(e, function(n, s, l) {
4769
+ a[++r] = t(n, s, l);
4770
+ }), a;
4771
+ }
4772
+ function baseGt(e, t) {
4773
+ return e > t;
4774
+ }
4775
+ var stringTag = "[object String]";
4776
+ function isString$1(e) {
4777
+ return typeof e == "string" || !isArray$1(e) && isObjectLike(e) && baseGetTag(e) == stringTag;
4778
+ }
4779
+ var nativeMin = Math.min;
4780
+ function baseIntersection(e, t, r) {
4781
+ for (var a = r ? arrayIncludesWith : arrayIncludes, n = e[0].length, s = e.length, l = s, o = Array(s), i = 1 / 0, c = []; l--; ) {
4782
+ var u = e[l];
4783
+ l && t && (u = arrayMap(u, baseUnary(t))), i = nativeMin(u.length, i), o[l] = !r && (t || n >= 120 && u.length >= 120) ? new SetCache(l && u) : void 0;
5156
4784
  }
5157
- return s || ++a != n ? s : (n = e == null ? 0 : e.length, !!n && isLength(n) && isIndex(l, n) && (isArray$1(e) || isArguments$1(e)));
4785
+ u = e[0];
4786
+ var d = -1, p = o[0];
4787
+ e:
4788
+ for (; ++d < n && c.length < i; ) {
4789
+ var E = u[d], b = t ? t(E) : E;
4790
+ if (E = r || E !== 0 ? E : 0, !(p ? cacheHas(p, b) : a(c, b, r))) {
4791
+ for (l = s; --l; ) {
4792
+ var y = o[l];
4793
+ if (!(y ? cacheHas(y, b) : a(e[l], b, r)))
4794
+ continue e;
4795
+ }
4796
+ p && p.push(b), c.push(E);
4797
+ }
4798
+ }
4799
+ return c;
5158
4800
  }
5159
- function hasIn(e, t) {
5160
- return e != null && hasPath(e, t, baseHasIn);
4801
+ function castArrayLikeObject(e) {
4802
+ return isArrayLikeObject(e) ? e : [];
5161
4803
  }
5162
- var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
5163
- function baseMatchesProperty(e, t) {
5164
- return isKey(e) && isStrictComparable(t) ? matchesStrictComparable(toKey(e), t) : function(r) {
5165
- var a = get(r, e);
5166
- return a === void 0 && a === t ? hasIn(r, e) : baseIsEqual(t, a, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
5167
- };
4804
+ var intersection = baseRest(function(e) {
4805
+ var t = arrayMap(e, castArrayLikeObject);
4806
+ return t.length && t[0] === e[0] ? baseIntersection(t) : [];
4807
+ });
4808
+ const intersection$1 = intersection;
4809
+ var intersectionWith = baseRest(function(e) {
4810
+ var t = last(e), r = arrayMap(e, castArrayLikeObject);
4811
+ return t = typeof t == "function" ? t : void 0, t && r.pop(), r.length && r[0] === e[0] ? baseIntersection(r, void 0, t) : [];
4812
+ });
4813
+ const intersectionWith$1 = intersectionWith;
4814
+ function isNil(e) {
4815
+ return e == null;
5168
4816
  }
5169
- function baseProperty(e) {
5170
- return function(t) {
5171
- return t == null ? void 0 : t[e];
5172
- };
4817
+ function mapValues(e, t) {
4818
+ var r = {};
4819
+ return t = baseIteratee(t), baseForOwn(e, function(a, n, s) {
4820
+ baseAssignValue(r, n, t(a, n, s));
4821
+ }), r;
4822
+ }
4823
+ function baseExtremum(e, t, r) {
4824
+ for (var a = -1, n = e.length; ++a < n; ) {
4825
+ var s = e[a], l = t(s);
4826
+ if (l != null && (o === void 0 ? l === l && !isSymbol(l) : r(l, o)))
4827
+ var o = l, i = s;
4828
+ }
4829
+ return i;
4830
+ }
4831
+ function maxBy(e, t) {
4832
+ return e && e.length ? baseExtremum(e, baseIteratee(t), baseGt) : void 0;
4833
+ }
4834
+ function baseSortBy(e, t) {
4835
+ var r = e.length;
4836
+ for (e.sort(t); r--; )
4837
+ e[r] = e[r].value;
4838
+ return e;
4839
+ }
4840
+ function compareAscending(e, t) {
4841
+ if (e !== t) {
4842
+ var r = e !== void 0, a = e === null, n = e === e, s = isSymbol(e), l = t !== void 0, o = t === null, i = t === t, c = isSymbol(t);
4843
+ if (!o && !c && !s && e > t || s && l && i && !o && !c || a && l && i || !r && i || !n)
4844
+ return 1;
4845
+ if (!a && !s && !c && e < t || c && r && n && !a && !s || o && r && n || !l && n || !i)
4846
+ return -1;
4847
+ }
4848
+ return 0;
4849
+ }
4850
+ function compareMultiple(e, t, r) {
4851
+ for (var a = -1, n = e.criteria, s = t.criteria, l = n.length, o = r.length; ++a < l; ) {
4852
+ var i = compareAscending(n[a], s[a]);
4853
+ if (i) {
4854
+ if (a >= o)
4855
+ return i;
4856
+ var c = r[a];
4857
+ return i * (c == "desc" ? -1 : 1);
4858
+ }
4859
+ }
4860
+ return e.index - t.index;
4861
+ }
4862
+ function baseOrderBy(e, t, r) {
4863
+ t.length ? t = arrayMap(t, function(s) {
4864
+ return isArray$1(s) ? function(l) {
4865
+ return baseGet(l, s.length === 1 ? s[0] : s);
4866
+ } : s;
4867
+ }) : t = [identity];
4868
+ var a = -1;
4869
+ t = arrayMap(t, baseUnary(baseIteratee));
4870
+ var n = baseMap(e, function(s, l, o) {
4871
+ var i = arrayMap(t, function(c) {
4872
+ return c(s);
4873
+ });
4874
+ return { criteria: i, index: ++a, value: s };
4875
+ });
4876
+ return baseSortBy(n, function(s, l) {
4877
+ return compareMultiple(s, l, r);
4878
+ });
5173
4879
  }
5174
- function basePropertyDeep(e) {
5175
- return function(t) {
5176
- return baseGet(t, e);
4880
+ var nativeCeil = Math.ceil, nativeMax = Math.max;
4881
+ function baseRange(e, t, r, a) {
4882
+ for (var n = -1, s = nativeMax(nativeCeil((t - e) / (r || 1)), 0), l = Array(s); s--; )
4883
+ l[a ? s : ++n] = e, e += r;
4884
+ return l;
4885
+ }
4886
+ function createRange(e) {
4887
+ return function(t, r, a) {
4888
+ return a && typeof a != "number" && isIterateeCall(t, r, a) && (r = a = void 0), t = toFinite(t), r === void 0 ? (r = t, t = 0) : r = toFinite(r), a = a === void 0 ? t < r ? 1 : -1 : toFinite(a), baseRange(t, r, a, e);
5177
4889
  };
5178
4890
  }
5179
- function property(e) {
5180
- return isKey(e) ? baseProperty(toKey(e)) : basePropertyDeep(e);
4891
+ var range = createRange();
4892
+ const range$1 = range;
4893
+ function baseReduce(e, t, r, a, n) {
4894
+ return n(e, function(s, l, o) {
4895
+ r = a ? (a = !1, s) : t(r, s, l, o);
4896
+ }), r;
5181
4897
  }
5182
- function baseIteratee(e) {
5183
- return typeof e == "function" ? e : e == null ? identity : typeof e == "object" ? isArray$1(e) ? baseMatchesProperty(e[0], e[1]) : baseMatches(e) : property(e);
4898
+ function reduce(e, t, r) {
4899
+ var a = isArray$1(e) ? arrayReduce : baseReduce, n = arguments.length < 3;
4900
+ return a(e, baseIteratee(t), r, n, baseEach$1);
5184
4901
  }
5185
- function createBaseFor(e) {
5186
- return function(t, r, a) {
5187
- for (var n = -1, s = Object(t), l = a(t), o = l.length; o--; ) {
5188
- var i = l[e ? o : ++n];
5189
- if (r(s[i], i, s) === !1)
5190
- break;
4902
+ var snakeCase = createCompounder(function(e, t, r) {
4903
+ return e + (r ? "_" : "") + t.toLowerCase();
4904
+ });
4905
+ const snakeCase$1 = snakeCase;
4906
+ var sortBy = baseRest(function(e, t) {
4907
+ if (e == null)
4908
+ return [];
4909
+ var r = t.length;
4910
+ return r > 1 && isIterateeCall(e, t[0], t[1]) ? t = [] : r > 2 && isIterateeCall(t[0], t[1], t[2]) && (t = [t[0]]), baseOrderBy(e, baseFlatten(t, 1), []);
4911
+ });
4912
+ const sortBy$1 = sortBy;
4913
+ var INFINITY = 1 / 0, createSet = Set$2 && 1 / setToArray(new Set$2([, -0]))[1] == INFINITY ? function(e) {
4914
+ return new Set$2(e);
4915
+ } : noop$1;
4916
+ const createSet$1 = createSet;
4917
+ var LARGE_ARRAY_SIZE = 200;
4918
+ function baseUniq(e, t, r) {
4919
+ var a = -1, n = arrayIncludes, s = e.length, l = !0, o = [], i = o;
4920
+ if (r)
4921
+ l = !1, n = arrayIncludesWith;
4922
+ else if (s >= LARGE_ARRAY_SIZE) {
4923
+ var c = t ? null : createSet$1(e);
4924
+ if (c)
4925
+ return setToArray(c);
4926
+ l = !1, n = cacheHas, i = new SetCache();
4927
+ } else
4928
+ i = t ? [] : o;
4929
+ e:
4930
+ for (; ++a < s; ) {
4931
+ var u = e[a], d = t ? t(u) : u;
4932
+ if (u = r || u !== 0 ? u : 0, l && d === d) {
4933
+ for (var p = i.length; p--; )
4934
+ if (i[p] === d)
4935
+ continue e;
4936
+ t && i.push(d), o.push(u);
4937
+ } else
4938
+ n(i, d, r) || (i !== o && i.push(d), o.push(u));
5191
4939
  }
5192
- return t;
5193
- };
4940
+ return o;
5194
4941
  }
5195
- var baseFor = createBaseFor();
5196
- const baseFor$1 = baseFor;
5197
- function baseForOwn(e, t) {
5198
- return e && baseFor$1(e, t, keys$1);
4942
+ function uniq(e) {
4943
+ return e && e.length ? baseUniq(e) : [];
5199
4944
  }
5200
- function createBaseEach(e, t) {
5201
- return function(r, a) {
5202
- if (r == null)
5203
- return r;
5204
- if (!isArrayLike(r))
5205
- return e(r, a);
5206
- for (var n = r.length, s = t ? n : -1, l = Object(r); (t ? s-- : ++s < n) && a(l[s], s, l) !== !1; )
5207
- ;
5208
- return r;
5209
- };
4945
+ function uniqBy(e, t) {
4946
+ return e && e.length ? baseUniq(e, baseIteratee(t)) : [];
5210
4947
  }
5211
- var baseEach = createBaseEach(baseForOwn);
5212
- const baseEach$1 = baseEach;
5213
- var now = function() {
5214
- return root$1.Date.now();
5215
- };
5216
- const now$1 = now;
5217
- var FUNC_ERROR_TEXT = "Expected a function", nativeMax$1 = Math.max, nativeMin$1 = Math.min;
5218
- function debounce(e, t, r) {
5219
- var a, n, s, l, o, i, c = 0, u = !1, d = !1, p = !0;
5220
- if (typeof e != "function")
5221
- throw new TypeError(FUNC_ERROR_TEXT);
5222
- t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, p = "trailing" in r ? !!r.trailing : p);
5223
- function E(C) {
5224
- var R = a, A = n;
5225
- return a = n = void 0, c = C, l = e.apply(A, R), l;
4948
+ var without = baseRest(function(e, t) {
4949
+ return isArrayLikeObject(e) ? baseDifference(e, t) : [];
4950
+ });
4951
+ const without$1 = without;
4952
+ class KgLogger {
4953
+ static deprecated(t, r = {}, a = !0) {
4954
+ KgLogger.log("deprecated", t, r, a);
5226
4955
  }
5227
- function b(C) {
5228
- return c = C, o = setTimeout(_, t), u ? E(C) : l;
4956
+ static error(t, r = {}, a = !0) {
4957
+ KgLogger.log("error", t, r, a);
4958
+ }
4959
+ static info(t, r = {}, a = !0) {
4960
+ KgLogger.log("info", t, r, a);
4961
+ }
4962
+ static log(t = "info", r, a = {}, n = !0, s) {
4963
+ let l = r, o = "border-radius:2px;padding:3px 4px;margin-top:-3px;margin-bottom:-3px;color:#fff;";
4964
+ switch (t) {
4965
+ case "debug":
4966
+ l = `[DEBUG] ${r}`, o += "background-color:#434343;";
4967
+ break;
4968
+ case "info":
4969
+ l = `[ INFO] ${r}`, o += "background-color:#0958d9;";
4970
+ break;
4971
+ case "warn":
4972
+ l = `[ WARN] ${r}`, o += "background-color:#d48806;";
4973
+ break;
4974
+ case "error":
4975
+ l = `[ERROR] ${r}`, o += "background-color:#cf1322;";
4976
+ break;
4977
+ case "deprecated":
4978
+ l = `[DEPRECATED] ${r}`, o += "background-color:#c41d7f;";
4979
+ break;
4980
+ }
4981
+ o += s || "", n ? console.groupCollapsed(`%c[@kengic/vue] ${l}`, o) : console.group(`%c[@kengic/vue] ${l}`, o), toPairs$1(cloneDeep(a)).forEach((i) => {
4982
+ console.log(`%c${i[0]}:`, "color: #000; font-weight: bold;", i[1]);
4983
+ }), console.trace(""), console.groupEnd();
4984
+ }
4985
+ static warn(t, r = {}, a = !0) {
4986
+ KgLogger.log("warn", t, r, a);
4987
+ }
4988
+ static debug(t, r = {}, a = !0) {
4989
+ isNil(new URL(window.location.href).searchParams.get("debug")) || (window.__KG_DEBUG__ = !0), window.__KG_DEBUG__ && KgLogger.log("debug", t, r, a);
4990
+ }
4991
+ static debugDDA(t, r, a, n, s = {}, l = !0) {
4992
+ KgLogger.debug(
4993
+ `${(t != null ? t : "").padEnd(100, " ")} | ${(r != null ? r : "").padEnd(32, " ")} | ${(a != null ? a : "").padEnd(32, " ")} | ${n}.`,
4994
+ s,
4995
+ l
4996
+ );
4997
+ }
4998
+ }
4999
+ class KgRouteUtil {
5000
+ static addOnlineRoutesForAllApps(t) {
5001
+ const r = [];
5002
+ return t.forEach((a) => {
5003
+ [
5004
+ "/online/copyform/:code",
5005
+ "/online/cgformList/:id",
5006
+ "/online/cgformTreeList/:id",
5007
+ "/online/cgreport/:id",
5008
+ "/online/graphreport/chart/:code",
5009
+ "/dda/:id"
5010
+ ].includes(a.path) && KG_APP_PREFIXS.forEach((n) => {
5011
+ r.push({
5012
+ ...a,
5013
+ path: `${n}${a.path}`,
5014
+ name: `${n}/${a.name}`,
5015
+ id: `${n}-${a.id}`
5016
+ });
5017
+ }), a.children && (a.children = this.addOnlineRoutesForAllApps(a.children));
5018
+ }), [...t, ...r];
5019
+ }
5020
+ static getMenuByPath(t, r) {
5021
+ var a;
5022
+ if (!t)
5023
+ return null;
5024
+ for (let n of t.filter((s) => !s.hideMenu)) {
5025
+ if (n.path === r)
5026
+ return n;
5027
+ if ((a = n.children) != null && a.length) {
5028
+ const s = KgRouteUtil.getMenuByPath(n.children, r);
5029
+ if (s)
5030
+ return s;
5031
+ }
5032
+ }
5033
+ return null;
5034
+ }
5035
+ static getFirstLeafMenu(t) {
5036
+ var s, l, o;
5037
+ const a = (o = (l = (s = useKg().store).getUsePermissionStore) == null ? void 0 : l.call(s)) == null ? void 0 : o.getBackMenuList;
5038
+ if (!a)
5039
+ return null;
5040
+ const n = (i) => {
5041
+ var c, u;
5042
+ for (let d of i)
5043
+ if (!(t && !KgRouteUtil.isPathInApp(d.path, t)))
5044
+ return ((u = (c = d == null ? void 0 : d.children) == null ? void 0 : c.length) != null ? u : 0) > 0 ? n(d.children) : d != null ? d : null;
5045
+ return null;
5046
+ };
5047
+ return n(a);
5048
+ }
5049
+ static translateMenus(t, r = "title") {
5050
+ if (!t)
5051
+ return [];
5052
+ const a = useKg();
5053
+ return t.forEach((n) => {
5054
+ n[r] = a.t(n[r]), KgRouteUtil.translateMenus(n.children, r);
5055
+ }), t;
5056
+ }
5057
+ static transformMenus(t) {
5058
+ var c, u, d, p, E, b, y, g, _, m, T, k, I, C, O, A, R, M, P, L, H, w, D, K;
5059
+ if (!t)
5060
+ return [];
5061
+ const r = useKg(), a = {
5062
+ parentId: "",
5063
+ app: null,
5064
+ perms: null,
5065
+ permsType: null,
5066
+ icon: "NULL",
5067
+ component: "",
5068
+ componentName: "",
5069
+ url: "",
5070
+ redirect: null,
5071
+ menuType: 0,
5072
+ isLeaf: !1,
5073
+ route: !1,
5074
+ keepAlive: !1,
5075
+ description: null,
5076
+ delFlag: 0,
5077
+ createBy: null,
5078
+ createTime: null,
5079
+ updateBy: null,
5080
+ updateTime: null,
5081
+ alwaysShow: !1,
5082
+ hidden: !1,
5083
+ status: null,
5084
+ internalOrExternal: !1,
5085
+ leaf: !1
5086
+ }, n = {
5087
+ id: KG_TMP_MENU_ID__DATA_MANAGER,
5088
+ key: KG_TMP_MENU_ID__DATA_MANAGER,
5089
+ title: (u = (c = r.option.value.appTitle) == null ? void 0 : c[KG_APP.WMS_DATA_MANAGER]) != null ? u : "\u6570\u636E\u7BA1\u7406",
5090
+ name: (p = (d = r.option.value.appTitle) == null ? void 0 : d[KG_APP.WMS_DATA_MANAGER]) != null ? p : "\u6570\u636E\u7BA1\u7406",
5091
+ slotTitle: (b = (E = r.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_DATA_MANAGER]) != null ? b : "\u6570\u636E\u7BA1\u7406",
5092
+ sortNo: 1,
5093
+ children: [],
5094
+ ...a
5095
+ }, s = {
5096
+ id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
5097
+ key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
5098
+ title: (g = (y = r.option.value.appTitle) == null ? void 0 : y[KG_APP.WMS_BUSINESS_MANAGER]) != null ? g : "\u4ED3\u5E93\u7BA1\u7406",
5099
+ name: (m = (_ = r.option.value.appTitle) == null ? void 0 : _[KG_APP.WMS_BUSINESS_MANAGER]) != null ? m : "\u4ED3\u5E93\u7BA1\u7406",
5100
+ slotTitle: (k = (T = r.option.value.appTitle) == null ? void 0 : T[KG_APP.WMS_BUSINESS_MANAGER]) != null ? k : "\u4ED3\u5E93\u7BA1\u7406",
5101
+ sortNo: 2,
5102
+ children: [],
5103
+ ...a
5104
+ }, l = {
5105
+ id: KG_TMP_MENU_ID__WCS,
5106
+ key: KG_TMP_MENU_ID__WCS,
5107
+ title: (C = (I = r.option.value.appTitle) == null ? void 0 : I[KG_APP.WCS]) != null ? C : "WCS",
5108
+ name: (A = (O = r.option.value.appTitle) == null ? void 0 : O[KG_APP.WCS]) != null ? A : "WCS",
5109
+ slotTitle: (M = (R = r.option.value.appTitle) == null ? void 0 : R[KG_APP.WCS]) != null ? M : "WCS",
5110
+ sortNo: 3,
5111
+ children: [],
5112
+ ...a
5113
+ }, o = {
5114
+ id: KG_TMP_MENU_ID__SYS,
5115
+ key: KG_TMP_MENU_ID__SYS,
5116
+ title: (L = (P = r.option.value.appTitle) == null ? void 0 : P[KG_APP.SYS]) != null ? L : "\u7CFB\u7EDF\u914D\u7F6E",
5117
+ name: (w = (H = r.option.value.appTitle) == null ? void 0 : H[KG_APP.SYS]) != null ? w : "\u7CFB\u7EDF\u914D\u7F6E",
5118
+ slotTitle: (K = (D = r.option.value.appTitle) == null ? void 0 : D[KG_APP.SYS]) != null ? K : "\u7CFB\u7EDF\u914D\u7F6E",
5119
+ sortNo: 4,
5120
+ children: [],
5121
+ ...a
5122
+ }, i = {
5123
+ id: KG_TMP_MENU_ID__PDA,
5124
+ key: KG_TMP_MENU_ID__PDA,
5125
+ title: "PDA",
5126
+ name: "PDA",
5127
+ slotTitle: "PDA",
5128
+ sortNo: 5,
5129
+ children: [],
5130
+ ...a
5131
+ };
5132
+ return t.forEach((V) => {
5133
+ switch (!0) {
5134
+ case V.app === "PDA":
5135
+ V.parentId = KG_TMP_MENU_ID__PDA, i.children.push(V);
5136
+ break;
5137
+ case KgRouteUtil.isPathInApp(V.url, KG_APP.WMS_DATA_MANAGER):
5138
+ V.parentId = KG_TMP_MENU_ID__DATA_MANAGER, n.children.push(V);
5139
+ break;
5140
+ case KgRouteUtil.isPathInApp(V.url, KG_APP.WMS_BUSINESS_MANAGER):
5141
+ V.parentId = KG_TMP_MENU_ID__BUSINESS_MANAGER, s.children.push(V);
5142
+ break;
5143
+ case KgRouteUtil.isPathInApp(V.url, KG_APP.WCS):
5144
+ V.parentId = KG_TMP_MENU_ID__WCS, l.children.push(V);
5145
+ break;
5146
+ case KgRouteUtil.isPathInApp(V.url, KG_APP.SYS):
5147
+ V.parentId = KG_TMP_MENU_ID__SYS, o.children.push(V);
5148
+ break;
5149
+ }
5150
+ }), [n, s, l, o, i];
5229
5151
  }
5230
- function y(C) {
5231
- var R = C - i, A = C - c, O = t - R;
5232
- return d ? nativeMin$1(O, s - A) : O;
5152
+ static isPathInApp(t, r) {
5153
+ if (!t || !r)
5154
+ return !1;
5155
+ const a = ["/home", "/online"];
5156
+ switch (r) {
5157
+ case KG_APP.WMS_DATA_MANAGER:
5158
+ return t.startsWith(KG_APP_PREFIX.WMS_DATA_MANAGER);
5159
+ case KG_APP.WMS_BUSINESS_MANAGER:
5160
+ return t.startsWith(KG_APP_PREFIX.WMS_BUSINESS_MANAGER);
5161
+ case KG_APP.WCS:
5162
+ return t.startsWith(KG_APP_PREFIX.WCS);
5163
+ case KG_APP.SYS:
5164
+ return t.startsWith(KG_APP_PREFIX.SYS) || !a.includes(t) && !t.startsWith(KG_APP_PREFIX.WMS_DATA_MANAGER) && !t.startsWith(KG_APP_PREFIX.WMS_BUSINESS_MANAGER) && !t.startsWith(KG_APP_PREFIX.WCS);
5165
+ default:
5166
+ throw new Error(`\u672A\u77E5\u6A21\u5757: ${r}`);
5167
+ }
5233
5168
  }
5234
- function g(C) {
5235
- var R = C - i, A = C - c;
5236
- return i === void 0 || R >= t || R < 0 || d && A >= s;
5169
+ static getAppByPath(t) {
5170
+ const r = KG_APPS.find((a) => KgRouteUtil.isPathInApp(t, a));
5171
+ return r || null;
5237
5172
  }
5238
- function _() {
5239
- var C = now$1();
5240
- if (g(C))
5241
- return m(C);
5242
- o = setTimeout(_, y(C));
5173
+ static getAppIndexPath(t) {
5174
+ var n, s, l, o;
5175
+ const r = useKg();
5176
+ let a = "";
5177
+ switch (t) {
5178
+ case KG_APP.WMS_DATA_MANAGER:
5179
+ a = ((n = r.option.value.appIndex) == null ? void 0 : n[KG_APP.WMS_DATA_MANAGER]) || `${KG_APP_PREFIX.WMS_DATA_MANAGER}/index`;
5180
+ break;
5181
+ case KG_APP.WMS_BUSINESS_MANAGER:
5182
+ a = ((s = r.option.value.appIndex) == null ? void 0 : s[KG_APP.WMS_BUSINESS_MANAGER]) || `${KG_APP_PREFIX.WMS_BUSINESS_MANAGER}/index`;
5183
+ break;
5184
+ case KG_APP.WCS:
5185
+ a = ((l = r.option.value.appIndex) == null ? void 0 : l[KG_APP.WCS]) || `${KG_APP_PREFIX.WCS}/index`;
5186
+ break;
5187
+ case KG_APP.SYS:
5188
+ a = ((o = r.option.value.appIndex) == null ? void 0 : o[KG_APP.SYS]) || `${KG_APP_PREFIX.SYS}/index`;
5189
+ break;
5190
+ default:
5191
+ throw new Error(`\u672A\u77E5\u6A21\u5757: ${t}`);
5192
+ }
5193
+ return a;
5243
5194
  }
5244
- function m(C) {
5245
- return o = void 0, p && a ? E(C) : (a = n = void 0, l);
5195
+ }
5196
+ class KgAuthUtil {
5197
+ static isAdminUser() {
5198
+ var r, a, n, s;
5199
+ return ((s = (n = (a = (r = useKg().store).getUseUserStore) == null ? void 0 : a.call(r)) == null ? void 0 : n.getUserInfo) == null ? void 0 : s.username) === "admin";
5246
5200
  }
5247
- function T() {
5248
- o !== void 0 && clearTimeout(o), c = 0, a = i = n = o = void 0;
5201
+ static isAppAuthenticated(t) {
5202
+ var n, s, l, o;
5203
+ if (!t)
5204
+ return KgLogger.debug("KgAuthUtil | isAppAuthenticated() | \u6A21\u5757\u4E3A\u7A7A.", { app: t }), !1;
5205
+ if (KgAuthUtil.isAdminUser())
5206
+ return !0;
5207
+ const a = (o = (l = (s = (n = useKg().store).getUsePermissionStore) == null ? void 0 : s.call(n)) == null ? void 0 : l.getBackMenuList) == null ? void 0 : o.map((i) => i.path);
5208
+ return !!(a != null && a.some((i) => KgRouteUtil.isPathInApp(i, t)));
5249
5209
  }
5250
- function k() {
5251
- return o === void 0 ? l : m(now$1());
5210
+ static isPathAuthenticated(t) {
5211
+ var n, s, l;
5212
+ if (!t)
5213
+ return KgLogger.debug("KgAuthUtil | isPathAuthenticated() | \u5730\u5740\u4E3A\u7A7A.", { path: t }), !1;
5214
+ if (KgAuthUtil.isAdminUser())
5215
+ return !0;
5216
+ const a = (l = (s = (n = useKg().store).getUsePermissionStore) == null ? void 0 : s.call(n)) == null ? void 0 : l.getBackMenuList;
5217
+ return KgLogger.debug("KgAuthUtil | isPathAuthenticated() | \u83DC\u5355\u5217\u8868.", { path: t, menus: a }), !!KgRouteUtil.getMenuByPath(a, t);
5252
5218
  }
5253
- function I() {
5254
- var C = now$1(), R = g(C);
5255
- if (a = arguments, n = this, i = C, R) {
5256
- if (o === void 0)
5257
- return b(i);
5258
- if (d)
5259
- return clearTimeout(o), o = setTimeout(_, t), E(i);
5260
- }
5261
- return o === void 0 && (o = setTimeout(_, t)), l;
5219
+ static getPermissionType(t) {
5220
+ var l, o, i;
5221
+ if (!t)
5222
+ return null;
5223
+ const a = (o = (l = useKg().store).getUsePermissionStore) == null ? void 0 : o.call(l), n = (i = a == null ? void 0 : a.authList) == null ? void 0 : i.find((c) => c.action === t), s = Number(n == null ? void 0 : n.type);
5224
+ return s !== 1 && s !== 2 ? null : s;
5262
5225
  }
5263
- return I.cancel = T, I.flush = k, I;
5264
- }
5265
- function isArrayLikeObject(e) {
5266
- return isObjectLike(e) && isArrayLike(e);
5267
- }
5268
- function arrayIncludesWith(e, t, r) {
5269
- for (var a = -1, n = e == null ? 0 : e.length; ++a < n; )
5270
- if (r(t, e[a]))
5271
- return !0;
5272
- return !1;
5273
- }
5274
- var LARGE_ARRAY_SIZE$1 = 200;
5275
- function baseDifference(e, t, r, a) {
5276
- var n = -1, s = arrayIncludes, l = !0, o = e.length, i = [], c = t.length;
5277
- if (!o)
5278
- return i;
5279
- r && (t = arrayMap(t, baseUnary(r))), a ? (s = arrayIncludesWith, l = !1) : t.length >= LARGE_ARRAY_SIZE$1 && (s = cacheHas, l = !1, t = new SetCache(t));
5280
- e:
5281
- for (; ++n < o; ) {
5282
- var u = e[n], d = r == null ? u : r(u);
5283
- if (u = a || u !== 0 ? u : 0, l && d === d) {
5284
- for (var p = c; p--; )
5285
- if (t[p] === d)
5286
- continue e;
5287
- i.push(u);
5288
- } else
5289
- s(t, d, a) || i.push(u);
5290
- }
5291
- return i;
5292
- }
5293
- function last(e) {
5294
- var t = e == null ? 0 : e.length;
5295
- return t ? e[t - 1] : void 0;
5296
- }
5297
- function baseToPairs(e, t) {
5298
- return arrayMap(t, function(r) {
5299
- return [r, e[r]];
5300
- });
5301
- }
5302
- function setToPairs(e) {
5303
- var t = -1, r = Array(e.size);
5304
- return e.forEach(function(a) {
5305
- r[++t] = [a, a];
5306
- }), r;
5307
- }
5308
- var mapTag = "[object Map]", setTag = "[object Set]";
5309
- function createToPairs(e) {
5310
- return function(t) {
5311
- var r = getTag$1(t);
5312
- return r == mapTag ? mapToArray(t) : r == setTag ? setToPairs(t) : baseToPairs(t, e(t));
5313
- };
5314
- }
5315
- var toPairs = createToPairs(keys$1);
5316
- const toPairs$1 = toPairs;
5317
- function baseFilter(e, t) {
5318
- var r = [];
5319
- return baseEach$1(e, function(a, n, s) {
5320
- t(a, n, s) && r.push(a);
5321
- }), r;
5322
- }
5323
- function filter(e, t) {
5324
- var r = isArray$1(e) ? arrayFilter : baseFilter;
5325
- return r(e, baseIteratee(t));
5326
- }
5327
- function baseMap(e, t) {
5328
- var r = -1, a = isArrayLike(e) ? Array(e.length) : [];
5329
- return baseEach$1(e, function(n, s, l) {
5330
- a[++r] = t(n, s, l);
5331
- }), a;
5332
5226
  }
5333
- function baseGt(e, t) {
5334
- return e > t;
5335
- }
5336
- var stringTag = "[object String]";
5337
- function isString$1(e) {
5338
- return typeof e == "string" || !isArray$1(e) && isObjectLike(e) && baseGetTag(e) == stringTag;
5339
- }
5340
- var nativeMin = Math.min;
5341
- function baseIntersection(e, t, r) {
5342
- for (var a = r ? arrayIncludesWith : arrayIncludes, n = e[0].length, s = e.length, l = s, o = Array(s), i = 1 / 0, c = []; l--; ) {
5343
- var u = e[l];
5344
- l && t && (u = arrayMap(u, baseUnary(t))), i = nativeMin(u.length, i), o[l] = !r && (t || n >= 120 && u.length >= 120) ? new SetCache(l && u) : void 0;
5227
+ class KgDomUtil {
5228
+ static isNotClickable(t, r = []) {
5229
+ return !t || [...r, "kg-not-clickable"].some((a) => t.classList.contains(a)) ? !0 : t.parentElement && t.parentElement.tagName !== "BODY" ? KgDomUtil.isNotClickable(t.parentElement) : !1;
5345
5230
  }
5346
- u = e[0];
5347
- var d = -1, p = o[0];
5348
- e:
5349
- for (; ++d < n && c.length < i; ) {
5350
- var E = u[d], b = t ? t(E) : E;
5351
- if (E = r || E !== 0 ? E : 0, !(p ? cacheHas(p, b) : a(c, b, r))) {
5352
- for (l = s; --l; ) {
5353
- var y = o[l];
5354
- if (!(y ? cacheHas(y, b) : a(e[l], b, r)))
5355
- continue e;
5231
+ }
5232
+ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, dayjs_min = { exports: {} };
5233
+ (function(e, t) {
5234
+ (function(r, a) {
5235
+ e.exports = a();
5236
+ })(commonjsGlobal, function() {
5237
+ var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", p = "quarter", E = "year", b = "date", y = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|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, m = { 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(w) {
5238
+ var D = ["th", "st", "nd", "rd"], K = w % 100;
5239
+ return "[" + w + (D[(K - 20) % 10] || D[K] || D[0]) + "]";
5240
+ } }, T = function(w, D, K) {
5241
+ var V = String(w);
5242
+ return !V || V.length >= D ? w : "" + Array(D + 1 - V.length).join(K) + w;
5243
+ }, k = { s: T, z: function(w) {
5244
+ var D = -w.utcOffset(), K = Math.abs(D), V = Math.floor(K / 60), N = K % 60;
5245
+ return (D <= 0 ? "+" : "-") + T(V, 2, "0") + ":" + T(N, 2, "0");
5246
+ }, m: function w(D, K) {
5247
+ if (D.date() < K.date())
5248
+ return -w(K, D);
5249
+ var V = 12 * (K.year() - D.year()) + (K.month() - D.month()), N = D.clone().add(V, d), G = K - N < 0, $ = D.clone().add(V + (G ? -1 : 1), d);
5250
+ return +(-(V + (K - N) / (G ? N - $ : $ - N)) || 0);
5251
+ }, a: function(w) {
5252
+ return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
5253
+ }, p: function(w) {
5254
+ return { M: d, y: E, w: u, d: c, D: b, h: i, m: o, s: l, ms: s, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
5255
+ }, u: function(w) {
5256
+ return w === void 0;
5257
+ } }, I = "en", C = {};
5258
+ C[I] = m;
5259
+ var O = "$isDayjsObject", A = function(w) {
5260
+ return w instanceof L || !(!w || !w[O]);
5261
+ }, R = function w(D, K, V) {
5262
+ var N;
5263
+ if (!D)
5264
+ return I;
5265
+ if (typeof D == "string") {
5266
+ var G = D.toLowerCase();
5267
+ C[G] && (N = G), K && (C[G] = K, N = G);
5268
+ var $ = D.split("-");
5269
+ if (!N && $.length > 1)
5270
+ return w($[0]);
5271
+ } else {
5272
+ var B = D.name;
5273
+ C[B] = D, N = B;
5274
+ }
5275
+ return !V && N && (I = N), N || !V && I;
5276
+ }, M = function(w, D) {
5277
+ if (A(w))
5278
+ return w.clone();
5279
+ var K = typeof D == "object" ? D : {};
5280
+ return K.date = w, K.args = arguments, new L(K);
5281
+ }, P = k;
5282
+ P.l = R, P.i = A, P.w = function(w, D) {
5283
+ return M(w, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
5284
+ };
5285
+ var L = function() {
5286
+ function w(K) {
5287
+ this.$L = R(K.locale, null, !0), this.parse(K), this.$x = this.$x || K.x || {}, this[O] = !0;
5288
+ }
5289
+ var D = w.prototype;
5290
+ return D.parse = function(K) {
5291
+ this.$d = function(V) {
5292
+ var N = V.date, G = V.utc;
5293
+ if (N === null)
5294
+ return new Date(NaN);
5295
+ if (P.u(N))
5296
+ return new Date();
5297
+ if (N instanceof Date)
5298
+ return new Date(N);
5299
+ if (typeof N == "string" && !/Z$/i.test(N)) {
5300
+ var $ = N.match(g);
5301
+ if ($) {
5302
+ var B = $[2] - 1 || 0, Y = ($[7] || "0").substring(0, 3);
5303
+ return G ? new Date(Date.UTC($[1], B, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, Y)) : new Date($[1], B, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, Y);
5304
+ }
5305
+ }
5306
+ return new Date(N);
5307
+ }(K), this.init();
5308
+ }, D.init = function() {
5309
+ var K = this.$d;
5310
+ this.$y = K.getFullYear(), this.$M = K.getMonth(), this.$D = K.getDate(), this.$W = K.getDay(), this.$H = K.getHours(), this.$m = K.getMinutes(), this.$s = K.getSeconds(), this.$ms = K.getMilliseconds();
5311
+ }, D.$utils = function() {
5312
+ return P;
5313
+ }, D.isValid = function() {
5314
+ return this.$d.toString() !== y;
5315
+ }, D.isSame = function(K, V) {
5316
+ var N = M(K);
5317
+ return this.startOf(V) <= N && N <= this.endOf(V);
5318
+ }, D.isAfter = function(K, V) {
5319
+ return M(K) < this.startOf(V);
5320
+ }, D.isBefore = function(K, V) {
5321
+ return this.endOf(V) < M(K);
5322
+ }, D.$g = function(K, V, N) {
5323
+ return P.u(K) ? this[V] : this.set(N, K);
5324
+ }, D.unix = function() {
5325
+ return Math.floor(this.valueOf() / 1e3);
5326
+ }, D.valueOf = function() {
5327
+ return this.$d.getTime();
5328
+ }, D.startOf = function(K, V) {
5329
+ var N = this, G = !!P.u(V) || V, $ = P.p(K), B = function(pe, ae) {
5330
+ var F = P.w(N.$u ? Date.UTC(N.$y, ae, pe) : new Date(N.$y, ae, pe), N);
5331
+ return G ? F : F.endOf(c);
5332
+ }, Y = function(pe, ae) {
5333
+ return P.w(N.toDate()[pe].apply(N.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), N);
5334
+ }, q = this.$W, J = this.$M, X = this.$D, ee = "set" + (this.$u ? "UTC" : "");
5335
+ switch ($) {
5336
+ case E:
5337
+ return G ? B(1, 0) : B(31, 11);
5338
+ case d:
5339
+ return G ? B(1, J) : B(0, J + 1);
5340
+ case u:
5341
+ var le = this.$locale().weekStart || 0, he = (q < le ? q + 7 : q) - le;
5342
+ return B(G ? X - he : X + (6 - he), J);
5343
+ case c:
5344
+ case b:
5345
+ return Y(ee + "Hours", 0);
5346
+ case i:
5347
+ return Y(ee + "Minutes", 1);
5348
+ case o:
5349
+ return Y(ee + "Seconds", 2);
5350
+ case l:
5351
+ return Y(ee + "Milliseconds", 3);
5352
+ default:
5353
+ return this.clone();
5356
5354
  }
5357
- p && p.push(b), c.push(E);
5358
- }
5359
- }
5360
- return c;
5361
- }
5362
- function castArrayLikeObject(e) {
5363
- return isArrayLikeObject(e) ? e : [];
5364
- }
5365
- var intersection = baseRest(function(e) {
5366
- var t = arrayMap(e, castArrayLikeObject);
5367
- return t.length && t[0] === e[0] ? baseIntersection(t) : [];
5368
- });
5369
- const intersection$1 = intersection;
5370
- var intersectionWith = baseRest(function(e) {
5371
- var t = last(e), r = arrayMap(e, castArrayLikeObject);
5372
- return t = typeof t == "function" ? t : void 0, t && r.pop(), r.length && r[0] === e[0] ? baseIntersection(r, void 0, t) : [];
5373
- });
5374
- const intersectionWith$1 = intersectionWith;
5375
- function isNil(e) {
5376
- return e == null;
5377
- }
5378
- function mapValues(e, t) {
5379
- var r = {};
5380
- return t = baseIteratee(t), baseForOwn(e, function(a, n, s) {
5381
- baseAssignValue(r, n, t(a, n, s));
5382
- }), r;
5383
- }
5384
- function baseExtremum(e, t, r) {
5385
- for (var a = -1, n = e.length; ++a < n; ) {
5386
- var s = e[a], l = t(s);
5387
- if (l != null && (o === void 0 ? l === l && !isSymbol(l) : r(l, o)))
5388
- var o = l, i = s;
5355
+ }, D.endOf = function(K) {
5356
+ return this.startOf(K, !1);
5357
+ }, D.$set = function(K, V) {
5358
+ var N, G = P.p(K), $ = "set" + (this.$u ? "UTC" : ""), B = (N = {}, N[c] = $ + "Date", N[b] = $ + "Date", N[d] = $ + "Month", N[E] = $ + "FullYear", N[i] = $ + "Hours", N[o] = $ + "Minutes", N[l] = $ + "Seconds", N[s] = $ + "Milliseconds", N)[G], Y = G === c ? this.$D + (V - this.$W) : V;
5359
+ if (G === d || G === E) {
5360
+ var q = this.clone().set(b, 1);
5361
+ q.$d[B](Y), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
5362
+ } else
5363
+ B && this.$d[B](Y);
5364
+ return this.init(), this;
5365
+ }, D.set = function(K, V) {
5366
+ return this.clone().$set(K, V);
5367
+ }, D.get = function(K) {
5368
+ return this[P.p(K)]();
5369
+ }, D.add = function(K, V) {
5370
+ var N, G = this;
5371
+ K = Number(K);
5372
+ var $ = P.p(V), B = function(J) {
5373
+ var X = M(G);
5374
+ return P.w(X.date(X.date() + Math.round(J * K)), G);
5375
+ };
5376
+ if ($ === d)
5377
+ return this.set(d, this.$M + K);
5378
+ if ($ === E)
5379
+ return this.set(E, this.$y + K);
5380
+ if ($ === c)
5381
+ return B(1);
5382
+ if ($ === u)
5383
+ return B(7);
5384
+ var Y = (N = {}, N[o] = a, N[i] = n, N[l] = r, N)[$] || 1, q = this.$d.getTime() + K * Y;
5385
+ return P.w(q, this);
5386
+ }, D.subtract = function(K, V) {
5387
+ return this.add(-1 * K, V);
5388
+ }, D.format = function(K) {
5389
+ var V = this, N = this.$locale();
5390
+ if (!this.isValid())
5391
+ return N.invalidDate || y;
5392
+ var G = K || "YYYY-MM-DDTHH:mm:ssZ", $ = P.z(this), B = this.$H, Y = this.$m, q = this.$M, J = N.weekdays, X = N.months, ee = N.meridiem, le = function(ae, F, U, Q) {
5393
+ return ae && (ae[F] || ae(V, G)) || U[F].slice(0, Q);
5394
+ }, he = function(ae) {
5395
+ return P.s(B % 12 || 12, ae, "0");
5396
+ }, pe = ee || function(ae, F, U) {
5397
+ var Q = ae < 12 ? "AM" : "PM";
5398
+ return U ? Q.toLowerCase() : Q;
5399
+ };
5400
+ return G.replace(_, function(ae, F) {
5401
+ return F || function(U) {
5402
+ switch (U) {
5403
+ case "YY":
5404
+ return String(V.$y).slice(-2);
5405
+ case "YYYY":
5406
+ return P.s(V.$y, 4, "0");
5407
+ case "M":
5408
+ return q + 1;
5409
+ case "MM":
5410
+ return P.s(q + 1, 2, "0");
5411
+ case "MMM":
5412
+ return le(N.monthsShort, q, X, 3);
5413
+ case "MMMM":
5414
+ return le(X, q);
5415
+ case "D":
5416
+ return V.$D;
5417
+ case "DD":
5418
+ return P.s(V.$D, 2, "0");
5419
+ case "d":
5420
+ return String(V.$W);
5421
+ case "dd":
5422
+ return le(N.weekdaysMin, V.$W, J, 2);
5423
+ case "ddd":
5424
+ return le(N.weekdaysShort, V.$W, J, 3);
5425
+ case "dddd":
5426
+ return J[V.$W];
5427
+ case "H":
5428
+ return String(B);
5429
+ case "HH":
5430
+ return P.s(B, 2, "0");
5431
+ case "h":
5432
+ return he(1);
5433
+ case "hh":
5434
+ return he(2);
5435
+ case "a":
5436
+ return pe(B, Y, !0);
5437
+ case "A":
5438
+ return pe(B, Y, !1);
5439
+ case "m":
5440
+ return String(Y);
5441
+ case "mm":
5442
+ return P.s(Y, 2, "0");
5443
+ case "s":
5444
+ return String(V.$s);
5445
+ case "ss":
5446
+ return P.s(V.$s, 2, "0");
5447
+ case "SSS":
5448
+ return P.s(V.$ms, 3, "0");
5449
+ case "Z":
5450
+ return $;
5451
+ }
5452
+ return null;
5453
+ }(ae) || $.replace(":", "");
5454
+ });
5455
+ }, D.utcOffset = function() {
5456
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5457
+ }, D.diff = function(K, V, N) {
5458
+ var G, $ = this, B = P.p(V), Y = M(K), q = (Y.utcOffset() - this.utcOffset()) * a, J = this - Y, X = function() {
5459
+ return P.m($, Y);
5460
+ };
5461
+ switch (B) {
5462
+ case E:
5463
+ G = X() / 12;
5464
+ break;
5465
+ case d:
5466
+ G = X();
5467
+ break;
5468
+ case p:
5469
+ G = X() / 3;
5470
+ break;
5471
+ case u:
5472
+ G = (J - q) / 6048e5;
5473
+ break;
5474
+ case c:
5475
+ G = (J - q) / 864e5;
5476
+ break;
5477
+ case i:
5478
+ G = J / n;
5479
+ break;
5480
+ case o:
5481
+ G = J / a;
5482
+ break;
5483
+ case l:
5484
+ G = J / r;
5485
+ break;
5486
+ default:
5487
+ G = J;
5488
+ }
5489
+ return N ? G : P.a(G);
5490
+ }, D.daysInMonth = function() {
5491
+ return this.endOf(d).$D;
5492
+ }, D.$locale = function() {
5493
+ return C[this.$L];
5494
+ }, D.locale = function(K, V) {
5495
+ if (!K)
5496
+ return this.$L;
5497
+ var N = this.clone(), G = R(K, V, !0);
5498
+ return G && (N.$L = G), N;
5499
+ }, D.clone = function() {
5500
+ return P.w(this.$d, this);
5501
+ }, D.toDate = function() {
5502
+ return new Date(this.valueOf());
5503
+ }, D.toJSON = function() {
5504
+ return this.isValid() ? this.toISOString() : null;
5505
+ }, D.toISOString = function() {
5506
+ return this.$d.toISOString();
5507
+ }, D.toString = function() {
5508
+ return this.$d.toUTCString();
5509
+ }, w;
5510
+ }(), H = L.prototype;
5511
+ return M.prototype = H, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", E], ["$D", b]].forEach(function(w) {
5512
+ H[w[1]] = function(D) {
5513
+ return this.$g(D, w[0], w[1]);
5514
+ };
5515
+ }), M.extend = function(w, D) {
5516
+ return w.$i || (w(D, L, M), w.$i = !0), M;
5517
+ }, M.locale = R, M.isDayjs = A, M.unix = function(w) {
5518
+ return M(1e3 * w);
5519
+ }, M.en = C[I], M.Ls = C, M.p = {}, M;
5520
+ });
5521
+ })(dayjs_min);
5522
+ const dayjs = dayjs_min.exports;
5523
+ /**
5524
+ * filesize
5525
+ *
5526
+ * @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
5527
+ * @license BSD-3-Clause
5528
+ * @version 10.1.0
5529
+ */
5530
+ const ARRAY = "array", BIT = "bit", BITS = "bits", BYTE = "byte", BYTES = "bytes", EMPTY = "", EXPONENT = "exponent", FUNCTION = "function", IEC = "iec", INVALID_NUMBER = "Invalid number", INVALID_ROUND = "Invalid rounding method", JEDEC = "jedec", OBJECT = "object", PERIOD = ".", ROUND = "round", S = "s", SI = "si", SI_KBIT = "kbit", SI_KBYTE = "kB", SPACE = " ", STRING = "string", ZERO = "0", STRINGS = {
5531
+ symbol: {
5532
+ iec: {
5533
+ bits: ["bit", "Kibit", "Mibit", "Gibit", "Tibit", "Pibit", "Eibit", "Zibit", "Yibit"],
5534
+ bytes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]
5535
+ },
5536
+ jedec: {
5537
+ bits: ["bit", "Kbit", "Mbit", "Gbit", "Tbit", "Pbit", "Ebit", "Zbit", "Ybit"],
5538
+ bytes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]
5539
+ }
5540
+ },
5541
+ fullform: {
5542
+ iec: ["", "kibi", "mebi", "gibi", "tebi", "pebi", "exbi", "zebi", "yobi"],
5543
+ jedec: ["", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta"]
5389
5544
  }
5390
- return i;
5391
- }
5392
- function maxBy(e, t) {
5393
- return e && e.length ? baseExtremum(e, baseIteratee(t), baseGt) : void 0;
5394
- }
5395
- function baseSortBy(e, t) {
5396
- var r = e.length;
5397
- for (e.sort(t); r--; )
5398
- e[r] = e[r].value;
5399
- return e;
5400
- }
5401
- function compareAscending(e, t) {
5402
- if (e !== t) {
5403
- var r = e !== void 0, a = e === null, n = e === e, s = isSymbol(e), l = t !== void 0, o = t === null, i = t === t, c = isSymbol(t);
5404
- if (!o && !c && !s && e > t || s && l && i && !o && !c || a && l && i || !r && i || !n)
5405
- return 1;
5406
- if (!a && !s && !c && e < t || c && r && n && !a && !s || o && r && n || !l && n || !i)
5407
- return -1;
5545
+ };
5546
+ function filesize(e, {
5547
+ bits: t = !1,
5548
+ pad: r = !1,
5549
+ base: a = -1,
5550
+ round: n = 2,
5551
+ locale: s = EMPTY,
5552
+ localeOptions: l = {},
5553
+ separator: o = EMPTY,
5554
+ spacer: i = SPACE,
5555
+ symbols: c = {},
5556
+ standard: u = EMPTY,
5557
+ output: d = STRING,
5558
+ fullform: p = !1,
5559
+ fullforms: E = [],
5560
+ exponent: b = -1,
5561
+ roundingMethod: y = ROUND,
5562
+ precision: g = 0
5563
+ } = {}) {
5564
+ let _ = b, m = Number(e), T = [], k = 0, I = EMPTY;
5565
+ u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
5566
+ const C = a === 10 ? 1e3 : 1024, O = p === !0, A = m < 0, R = Math[y];
5567
+ if (typeof e != "bigint" && isNaN(e))
5568
+ throw new TypeError(INVALID_NUMBER);
5569
+ if (typeof R !== FUNCTION)
5570
+ throw new TypeError(INVALID_ROUND);
5571
+ if (A && (m = -m), (_ === -1 || isNaN(_)) && (_ = Math.floor(Math.log(m) / Math.log(C)), _ < 0 && (_ = 0)), _ > 8 && (g > 0 && (g += 8 - _), _ = 8), d === EXPONENT)
5572
+ return _;
5573
+ if (m === 0)
5574
+ T[0] = 0, I = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][_];
5575
+ else {
5576
+ k = m / (a === 2 ? Math.pow(2, _ * 10) : Math.pow(1e3, _)), t && (k = k * 8, k >= C && _ < 8 && (k = k / C, _++));
5577
+ const M = Math.pow(10, _ > 0 ? n : 0);
5578
+ T[0] = R(k * M) / M, T[0] === C && _ < 8 && b === -1 && (T[0] = 1, _++), I = T[1] = a === 10 && _ === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][_];
5408
5579
  }
5409
- return 0;
5410
- }
5411
- function compareMultiple(e, t, r) {
5412
- for (var a = -1, n = e.criteria, s = t.criteria, l = n.length, o = r.length; ++a < l; ) {
5413
- var i = compareAscending(n[a], s[a]);
5414
- if (i) {
5415
- if (a >= o)
5416
- return i;
5417
- var c = r[a];
5418
- return i * (c == "desc" ? -1 : 1);
5419
- }
5580
+ if (A && (T[0] = -T[0]), g > 0 && (T[0] = T[0].toPrecision(g)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, l) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
5581
+ const M = o || PERIOD, P = T[0].toString().split(M), L = P[1] || EMPTY, H = L.length, w = n - H;
5582
+ T[0] = `${P[0]}${M}${L.padEnd(H + w, ZERO)}`;
5420
5583
  }
5421
- return e.index - t.index;
5422
- }
5423
- function baseOrderBy(e, t, r) {
5424
- t.length ? t = arrayMap(t, function(s) {
5425
- return isArray$1(s) ? function(l) {
5426
- return baseGet(l, s.length === 1 ? s[0] : s);
5427
- } : s;
5428
- }) : t = [identity];
5429
- var a = -1;
5430
- t = arrayMap(t, baseUnary(baseIteratee));
5431
- var n = baseMap(e, function(s, l, o) {
5432
- var i = arrayMap(t, function(c) {
5433
- return c(s);
5434
- });
5435
- return { criteria: i, index: ++a, value: s };
5436
- });
5437
- return baseSortBy(n, function(s, l) {
5438
- return compareMultiple(s, l, r);
5439
- });
5440
- }
5441
- var nativeCeil = Math.ceil, nativeMax = Math.max;
5442
- function baseRange(e, t, r, a) {
5443
- for (var n = -1, s = nativeMax(nativeCeil((t - e) / (r || 1)), 0), l = Array(s); s--; )
5444
- l[a ? s : ++n] = e, e += r;
5445
- return l;
5446
- }
5447
- function createRange(e) {
5448
- return function(t, r, a) {
5449
- return a && typeof a != "number" && isIterateeCall(t, r, a) && (r = a = void 0), t = toFinite(t), r === void 0 ? (r = t, t = 0) : r = toFinite(r), a = a === void 0 ? t < r ? 1 : -1 : toFinite(a), baseRange(t, r, a, e);
5450
- };
5451
- }
5452
- var range = createRange();
5453
- const range$1 = range;
5454
- function baseReduce(e, t, r, a, n) {
5455
- return n(e, function(s, l, o) {
5456
- r = a ? (a = !1, s) : t(r, s, l, o);
5457
- }), r;
5458
- }
5459
- function reduce(e, t, r) {
5460
- var a = isArray$1(e) ? arrayReduce : baseReduce, n = arguments.length < 3;
5461
- return a(e, baseIteratee(t), r, n, baseEach$1);
5462
- }
5463
- var snakeCase = createCompounder(function(e, t, r) {
5464
- return e + (r ? "_" : "") + t.toLowerCase();
5465
- });
5466
- const snakeCase$1 = snakeCase;
5467
- var sortBy = baseRest(function(e, t) {
5468
- if (e == null)
5469
- return [];
5470
- var r = t.length;
5471
- return r > 1 && isIterateeCall(e, t[0], t[1]) ? t = [] : r > 2 && isIterateeCall(t[0], t[1], t[2]) && (t = [t[0]]), baseOrderBy(e, baseFlatten(t, 1), []);
5472
- });
5473
- const sortBy$1 = sortBy;
5474
- var INFINITY = 1 / 0, createSet = Set$2 && 1 / setToArray(new Set$2([, -0]))[1] == INFINITY ? function(e) {
5475
- return new Set$2(e);
5476
- } : noop$1;
5477
- const createSet$1 = createSet;
5478
- var LARGE_ARRAY_SIZE = 200;
5479
- function baseUniq(e, t, r) {
5480
- var a = -1, n = arrayIncludes, s = e.length, l = !0, o = [], i = o;
5481
- if (r)
5482
- l = !1, n = arrayIncludesWith;
5483
- else if (s >= LARGE_ARRAY_SIZE) {
5484
- var c = t ? null : createSet$1(e);
5485
- if (c)
5486
- return setToArray(c);
5487
- l = !1, n = cacheHas, i = new SetCache();
5488
- } else
5489
- i = t ? [] : o;
5490
- e:
5491
- for (; ++a < s; ) {
5492
- var u = e[a], d = t ? t(u) : u;
5493
- if (u = r || u !== 0 ? u : 0, l && d === d) {
5494
- for (var p = i.length; p--; )
5495
- if (i[p] === d)
5496
- continue e;
5497
- t && i.push(d), o.push(u);
5498
- } else
5499
- n(i, d, r) || (i !== o && i.push(d), o.push(u));
5500
- }
5501
- return o;
5502
- }
5503
- function uniq(e) {
5504
- return e && e.length ? baseUniq(e) : [];
5505
- }
5506
- function uniqBy(e, t) {
5507
- return e && e.length ? baseUniq(e, baseIteratee(t)) : [];
5584
+ return O && (T[1] = E[_] ? E[_] : STRINGS.fullform[u][_] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
5585
+ value: T[0],
5586
+ symbol: T[1],
5587
+ exponent: _,
5588
+ unit: I
5589
+ } : T.join(i);
5508
5590
  }
5509
- var without = baseRest(function(e, t) {
5510
- return isArrayLikeObject(e) ? baseDifference(e, t) : [];
5511
- });
5512
- const without$1 = without;
5513
5591
  function onEventFactory(e, t, r) {
5514
5592
  return (a, n) => {
5515
5593
  if (!isFunction$2(a))
@@ -5540,18 +5618,16 @@ const useKgAppSelectStore = () => (store$8 || (store$8 = defineStore("KgAppSelec
5540
5618
  actions: {
5541
5619
  addEventListener(e, t) {
5542
5620
  switch (e) {
5543
- case "gotoApp":
5544
- {
5545
- const r = this.gotoAppListenersMap.get("0");
5546
- this.gotoAppListenersMap.set("0", [...r != null ? r : [], t]);
5547
- }
5621
+ case "gotoApp": {
5622
+ const r = this.gotoAppListenersMap.get("0");
5623
+ this.gotoAppListenersMap.set("0", [...r != null ? r : [], t]);
5548
5624
  break;
5549
- case "gotoPath":
5550
- {
5551
- const r = this.gotoPathListenersMap.get("0");
5552
- this.gotoPathListenersMap.set("0", [...r != null ? r : [], t]);
5553
- }
5625
+ }
5626
+ case "gotoPath": {
5627
+ const r = this.gotoPathListenersMap.get("0");
5628
+ this.gotoPathListenersMap.set("0", [...r != null ? r : [], t]);
5554
5629
  break;
5630
+ }
5555
5631
  }
5556
5632
  },
5557
5633
  removeEventListener(e, t) {
@@ -5588,6 +5664,7 @@ const useKgAppSelectStore = () => (store$8 || (store$8 = defineStore("KgAppSelec
5588
5664
  return a;
5589
5665
  },
5590
5666
  async gotoApp(e) {
5667
+ var n;
5591
5668
  const t = useKg();
5592
5669
  if (!t.router.value) {
5593
5670
  KgLogger.error("KgAppSelect | kg.router \u4E3A\u7A7A.");
@@ -5595,8 +5672,17 @@ const useKgAppSelectStore = () => (store$8 || (store$8 = defineStore("KgAppSelec
5595
5672
  }
5596
5673
  this.currentApp = e;
5597
5674
  let r = KgRouteUtil.getAppIndexPath(e);
5675
+ if ((!r || !KgAuthUtil.isPathAuthenticated(r)) && (KgLogger.debug("KgAppSelect | gotoApp() | \u6A21\u5757\u9996\u9875\u6CA1\u6709\u8BBF\u95EE\u6743\u9650.", { app: e, path: r }), r = (n = KgRouteUtil.getFirstLeafMenu(e)) == null ? void 0 : n.path), !r || !KgAuthUtil.isPathAuthenticated(r)) {
5676
+ KgLogger.debug("KgAppSelect | gotoApp() | \u8BE5\u6A21\u5757\u4E0B\u6CA1\u6709\u53EF\u8BBF\u95EE\u7684\u83DC\u5355.", { app: e, path: r }), message.error({ content: "\u8BE5\u6A21\u5757\u4E0B\u6CA1\u6709\u53EF\u8BBF\u95EE\u7684\u83DC\u5355." });
5677
+ return;
5678
+ }
5598
5679
  const { path: a } = unref(t.router.value.currentRoute);
5599
- r !== a && (await this.emit("gotoApp", { app: e }), await t.router.value.push(r));
5680
+ if (r !== a)
5681
+ try {
5682
+ await this.emit("gotoApp", { app: e }), await t.router.value.push(r);
5683
+ } catch {
5684
+ KgLogger.error("KgAppSelect | gotoApp() | \u8FDB\u5165\u6A21\u5757\u5931\u8D25.", { app: e, path: r });
5685
+ }
5600
5686
  },
5601
5687
  async gotoPath(e) {
5602
5688
  const t = useKg();
@@ -5633,7 +5719,11 @@ function useKgAppSelect() {
5633
5719
  return {
5634
5720
  store: e,
5635
5721
  onGotoApp: onEventFactory(null, e, "gotoApp"),
5636
- onGotoPath: onEventFactory(null, e, "gotoPath")
5722
+ onGotoPath: onEventFactory(null, e, "gotoPath"),
5723
+ gotoApp: e.gotoApp,
5724
+ gotoPath: e.gotoPath,
5725
+ isMenuInCurrentApp: e.isMenuInCurrentApp,
5726
+ init: e.init
5637
5727
  };
5638
5728
  }
5639
5729
  const KgAppSelect$1 = "";
@@ -5665,7 +5755,7 @@ const getProps$B = () => ({
5665
5755
  }, {
5666
5756
  default: () => [createVNode(Select, {
5667
5757
  value: r.store.getCurrentApp,
5668
- onChange: (a) => r.store.gotoApp(a),
5758
+ onChange: (a) => r.gotoApp(a),
5669
5759
  dropdownClassName: "kg-app-select--dropdown",
5670
5760
  class: "kg-app-select",
5671
5761
  style: "width: 100%"
@@ -6028,53 +6118,6 @@ const KgModal_Close = "", getProps$A = () => ({
6028
6118
  };
6029
6119
  }
6030
6120
  });
6031
- class KgLogger {
6032
- static deprecated(t, r = {}, a = !0) {
6033
- KgLogger.log("deprecated", t, r, a);
6034
- }
6035
- static error(t, r = {}, a = !0) {
6036
- KgLogger.log("error", t, r, a);
6037
- }
6038
- static info(t, r = {}, a = !0) {
6039
- KgLogger.log("info", t, r, a);
6040
- }
6041
- static log(t = "info", r, a = {}, n = !0, s = "color:#000;") {
6042
- let l = r, o = s;
6043
- switch (t) {
6044
- case "debug":
6045
- l = `[DEBUG] ${r}`;
6046
- break;
6047
- case "info":
6048
- l = `[INFO] ${r}`;
6049
- break;
6050
- case "warn":
6051
- l = `[WARN] ${r}`, o = "color:#fa8c16;";
6052
- break;
6053
- case "error":
6054
- l = `[ERROR] ${r}`, o = "color:#f00;";
6055
- break;
6056
- case "deprecated":
6057
- l = `[DEPRECATED] ${r}`, o = "color:#f00;";
6058
- break;
6059
- }
6060
- n ? console.groupCollapsed(`%c[@kengic/vue] ${l}`, o) : console.group(`%c[@kengic/vue] ${l}`, o), toPairs$1(cloneDeep(a)).forEach((i) => {
6061
- console.log(`%c${i[0]}:`, "color: #000; font-weight: bold;", i[1]);
6062
- }), console.trace(""), console.groupEnd();
6063
- }
6064
- static warn(t, r = {}, a = !0) {
6065
- KgLogger.log("warn", t, r, a);
6066
- }
6067
- static debug(t, r = {}, a = !0) {
6068
- window.__KG_DEBUG__ && KgLogger.log("debug", t, r, a);
6069
- }
6070
- static debugDDA(t, r, a, n, s = {}, l = !0) {
6071
- KgLogger.debug(
6072
- `${(t != null ? t : "").padEnd(100, " ")} | ${(r != null ? r : "").padEnd(32, " ")} | ${(a != null ? a : "").padEnd(32, " ")} | ${n}.`,
6073
- s,
6074
- l
6075
- );
6076
- }
6077
- }
6078
6121
  function _isSlot$d(e) {
6079
6122
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
6080
6123
  }
@@ -6859,6 +6902,7 @@ class SysUserWarehouseDTO {
6859
6902
  v(this, "mod_usr_id");
6860
6903
  v(this, "moddte");
6861
6904
  v(this, "user_id");
6905
+ v(this, "wh_dsc");
6862
6906
  v(this, "wh_id");
6863
6907
  keys(t != null ? t : {}).forEach((r) => {
6864
6908
  switch (r) {
@@ -6869,6 +6913,7 @@ class SysUserWarehouseDTO {
6869
6913
  case "mod_usr_id":
6870
6914
  case "moddte":
6871
6915
  case "user_id":
6916
+ case "wh_dsc":
6872
6917
  case "wh_id":
6873
6918
  Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
6874
6919
  break;
@@ -8585,9 +8630,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8585
8630
  row: I,
8586
8631
  model: C
8587
8632
  }) => {
8588
- var A, O, M, P, L;
8589
- const R = a.store.getSystemVarGridDetails(a.formID);
8590
- switch (c.value = R ? cloneDeep(unref(toRaw(R))) : [], !0) {
8633
+ var A, R, M, P, L;
8634
+ const O = a.store.getSystemVarGridDetails(a.formID);
8635
+ switch (c.value = O ? cloneDeep(unref(toRaw(O))) : [], !0) {
8591
8636
  case m: {
8592
8637
  u.value = [];
8593
8638
  break;
@@ -8611,7 +8656,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8611
8656
  id: D.id
8612
8657
  } : D;
8613
8658
  });
8614
- const w = (O = (A = H == null ? void 0 : H.varGridDetails) == null ? void 0 : A.map((D) => D.var_nam)) != null ? O : [];
8659
+ const w = (R = (A = H == null ? void 0 : H.varGridDetails) == null ? void 0 : A.map((D) => D.var_nam)) != null ? R : [];
8615
8660
  u.value = c.value.filter((D) => w.includes(D.var_nam)).map((D) => D.id);
8616
8661
  } catch (H) {
8617
8662
  throw H;
@@ -8696,11 +8741,11 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8696
8741
  selectedKeys: k,
8697
8742
  disabled: I,
8698
8743
  onItemSelectAll: C,
8699
- onItemSelect: R
8744
+ onItemSelect: O
8700
8745
  }) => {
8701
- const A = T.sort((O, M) => {
8746
+ const A = T.sort((R, M) => {
8702
8747
  var P, L;
8703
- return ((P = O.srtseq) != null ? P : 0) - ((L = M.srtseq) != null ? L : 0);
8748
+ return ((P = R.srtseq) != null ? P : 0) - ((L = M.srtseq) != null ? L : 0);
8704
8749
  });
8705
8750
  return d.value = A, createVNode(Table, {
8706
8751
  pagination: !1,
@@ -8713,17 +8758,17 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8713
8758
  columns: m === "left" ? p() : E(),
8714
8759
  rowKey: "id",
8715
8760
  dataSource: A,
8716
- customRow: (O) => {
8761
+ customRow: (R) => {
8717
8762
  let M = {
8718
- onClick: (P) => _(P, O, m, k)
8763
+ onClick: (P) => _(P, R, m, k)
8719
8764
  };
8720
- return m === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = O.var_nam), M;
8765
+ return m === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = R.var_nam), M;
8721
8766
  },
8722
8767
  rowSelection: g({
8723
8768
  disabled: I,
8724
8769
  selectedKeys: k,
8725
8770
  onItemSelectAll: C,
8726
- onItemSelect: R
8771
+ onItemSelect: O
8727
8772
  })
8728
8773
  }, null);
8729
8774
  }
@@ -8739,16 +8784,16 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8739
8784
  getCheckboxProps: (C) => ({
8740
8785
  disabled: m || C.disabled
8741
8786
  }),
8742
- onSelectAll(C, R) {
8743
- const A = R.filter((O) => !O.disabled).map(({
8744
- key: O
8745
- }) => O);
8787
+ onSelectAll(C, O) {
8788
+ const A = O.filter((R) => !R.disabled).map(({
8789
+ key: R
8790
+ }) => R);
8746
8791
  k(A, C);
8747
8792
  },
8748
8793
  onSelect({
8749
8794
  key: C
8750
- }, R) {
8751
- I(C, R);
8795
+ }, O) {
8796
+ I(C, O);
8752
8797
  },
8753
8798
  selectedRowKeys: T,
8754
8799
  columnWidth: 32
@@ -8963,24 +9008,24 @@ const getProps$r = () => ({
8963
9008
  class: "columns"
8964
9009
  }, [createVNode(Input, {
8965
9010
  value: c.value,
8966
- "onUpdate:value": (R) => c.value = R,
9011
+ "onUpdate:value": (O) => c.value = O,
8967
9012
  allowClear: !0
8968
9013
  }, null), createVNode("ul", {
8969
9014
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
8970
- }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((R) => createVNode("li", {
9015
+ }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((O) => createVNode("li", {
8971
9016
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
8972
9017
  onClick: (A) => {
8973
- A.preventDefault(), A.stopPropagation(), b(R);
9018
+ A.preventDefault(), A.stopPropagation(), b(O);
8974
9019
  },
8975
9020
  style: {
8976
- display: l(R, c.value) ? "flex" : "none"
9021
+ display: l(O, c.value) ? "flex" : "none"
8977
9022
  },
8978
- "kg-var_nam": R.var_nam
9023
+ "kg-var_nam": O.var_nam
8979
9024
  }, [createVNode(Checkbox, {
8980
- checked: R.vis_flg === 1,
9025
+ checked: O.vis_flg === 1,
8981
9026
  disabled: !0
8982
9027
  }, {
8983
- default: () => [createVNode("pre", null, [n.t(R.var_nam).value])]
9028
+ default: () => [createVNode("pre", null, [n.t(O.var_nam).value])]
8984
9029
  }), createVNode(HolderOutlined$1, {
8985
9030
  onClick: (A) => {
8986
9031
  A.preventDefault(), A.stopPropagation();
@@ -8998,16 +9043,16 @@ const getProps$r = () => ({
8998
9043
  }, {
8999
9044
  default: () => {
9000
9045
  var A;
9001
- let C, R;
9002
- return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((O) => {
9046
+ let C, O;
9047
+ return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((R) => {
9003
9048
  var M;
9004
9049
  return createVNode(Menu.Item, {
9005
- key: O.id,
9006
- class: O.id === ((M = n.currentVarGridMaster.value) == null ? void 0 : M.id) ? "selected" : "",
9007
- "kg-var_nam": O.grd_var_nam,
9008
- onClick: () => y(O)
9050
+ key: R.id,
9051
+ class: R.id === ((M = n.currentVarGridMaster.value) == null ? void 0 : M.id) ? "selected" : "",
9052
+ "kg-var_nam": R.grd_var_nam,
9053
+ onClick: () => y(R)
9009
9054
  }, {
9010
- default: () => [n.t(O.grd_var_nam).value]
9055
+ default: () => [n.t(R.grd_var_nam).value]
9011
9056
  });
9012
9057
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
9013
9058
  key: "save-grid-view",
@@ -9026,28 +9071,28 @@ const getProps$r = () => ({
9026
9071
  fontsize: "18px"
9027
9072
  }
9028
9073
  }, null)
9029
- }, _isSlot$a(R = a.t("kg.KgTable.saveVarGridMasterAs")) ? R : {
9030
- default: () => [R]
9074
+ }, _isSlot$a(O = a.t("kg.KgTable.saveVarGridMasterAs")) ? O : {
9075
+ default: () => [O]
9031
9076
  })]);
9032
9077
  },
9033
9078
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
9034
9079
  });
9035
9080
  }
9036
9081
  function k() {
9037
- var C, R, A;
9038
- return ((A = (R = (C = a.option.value.KgTable) == null ? void 0 : C.Setting) == null ? void 0 : R.rowHeight) == null ? void 0 : A.on) !== !0 ? null : createVNode(Menu.SubMenu, {
9082
+ var C, O, A;
9083
+ return ((A = (O = (C = a.option.value.KgTable) == null ? void 0 : C.Setting) == null ? void 0 : O.rowHeight) == null ? void 0 : A.on) !== !0 ? null : createVNode(Menu.SubMenu, {
9039
9084
  key: "row-height",
9040
9085
  title: a.t("kg.KgTable.rowHeight"),
9041
9086
  popupClassName: "kg-table-setting--submenu-popup--row-height"
9042
9087
  }, {
9043
9088
  default: () => {
9044
- let O, M, P;
9089
+ let R, M, P;
9045
9090
  return createVNode(Fragment, null, [createVNode(Menu.Item, {
9046
9091
  key: "L",
9047
9092
  class: u.value === "L" ? "selected" : "",
9048
9093
  onClick: () => s.store.setRowHeight(n.formID, "L")
9049
- }, _isSlot$a(O = a.t("kg.KgTable.rowHeightL")) ? O : {
9050
- default: () => [O]
9094
+ }, _isSlot$a(R = a.t("kg.KgTable.rowHeightL")) ? R : {
9095
+ default: () => [R]
9051
9096
  }), createVNode(Menu.Item, {
9052
9097
  key: "M",
9053
9098
  class: u.value === "M" ? "selected" : "",
@@ -9154,8 +9199,8 @@ const getProps$p = () => ({
9154
9199
  return !1;
9155
9200
  });
9156
9201
  const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
9157
- var k, I, C, R, A, O;
9158
- return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((I = o.selectedRow.value) == null ? void 0 : I[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((R = c.value) == null ? void 0 : R.upt_flg) === 1 || !!n.isCopying.value && ((A = c.value) == null ? void 0 : A.cpy_flg) === 1 || !!n.isDeleting.value && ((O = c.value) == null ? void 0 : O.del_flg) === 1);
9202
+ var k, I, C, O, A, R;
9203
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((I = o.selectedRow.value) == null ? void 0 : I[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((O = c.value) == null ? void 0 : O.upt_flg) === 1 || !!n.isCopying.value && ((A = c.value) == null ? void 0 : A.cpy_flg) === 1 || !!n.isDeleting.value && ((R = c.value) == null ? void 0 : R.del_flg) === 1);
9159
9204
  }), d = computed(() => {
9160
9205
  var k, I;
9161
9206
  return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((I = o.selectedRow.value) == null ? void 0 : I[o.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
@@ -9164,7 +9209,7 @@ const getProps$p = () => ({
9164
9209
  let k = "kg-table-td";
9165
9210
  return ((I = i.value) == null ? void 0 : I.align) === "center" ? k += " kg-table-td--center" : ((C = i.value) == null ? void 0 : C.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
9166
9211
  }), E = computed(() => {
9167
- var I, C, R, A, O;
9212
+ var I, C, O, A, R;
9168
9213
  if (e.kgValue === KG_TABLE_TEMP_ID)
9169
9214
  return "";
9170
9215
  let k = e.kgValue;
@@ -9172,7 +9217,7 @@ const getProps$p = () => ({
9172
9217
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
9173
9218
  {
9174
9219
  const M = KgUtil.tryParseJSON((C = i.value) == null ? void 0 : C.display_type_properties);
9175
- M.dscFieldName ? k = ((R = e.kgRow) == null ? void 0 : R[M.dscFieldName]) || e.kgValue : k = ((A = e.kgRow) == null ? void 0 : A[`${e.kgVarName}_dsc`]) || ((O = e.kgRow) == null ? void 0 : O[`${e.kgVarName}Dsc`]) || e.kgValue;
9220
+ M.dscFieldName ? k = ((O = e.kgRow) == null ? void 0 : O[M.dscFieldName]) || e.kgValue : k = ((A = e.kgRow) == null ? void 0 : A[`${e.kgVarName}_dsc`]) || ((R = e.kgRow) == null ? void 0 : R[`${e.kgVarName}Dsc`]) || e.kgValue;
9176
9221
  }
9177
9222
  break;
9178
9223
  }
@@ -9180,7 +9225,7 @@ const getProps$p = () => ({
9180
9225
  `)), isNil(k) && (k = ""), k;
9181
9226
  }), b = ref(null);
9182
9227
  function y(k) {
9183
- var I, C, R;
9228
+ var I, C, O;
9184
9229
  if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
9185
9230
  switch (e.kgContext) {
9186
9231
  case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
@@ -9194,7 +9239,7 @@ const getProps$p = () => ({
9194
9239
  {
9195
9240
  k.stopPropagation(), k.preventDefault();
9196
9241
  const A = KgUtil.tryParseJSON((C = i.value) == null ? void 0 : C.display_type_properties);
9197
- (R = a.router.value) == null || R.push({
9242
+ (O = a.router.value) == null || O.push({
9198
9243
  path: A.path,
9199
9244
  query: e.kgRow
9200
9245
  });
@@ -9229,7 +9274,7 @@ const getProps$p = () => ({
9229
9274
  });
9230
9275
  }
9231
9276
  function m() {
9232
- var k, I, C, R, A, O, M, P, L, H, w;
9277
+ var k, I, C, O, A, R, M, P, L, H, w;
9233
9278
  if (u.value)
9234
9279
  return _();
9235
9280
  switch ((k = i.value) == null ? void 0 : k.display_type) {
@@ -9241,7 +9286,7 @@ const getProps$p = () => ({
9241
9286
  }, null);
9242
9287
  }
9243
9288
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
9244
- const D = KgUtil.tryParseJSON((R = i.value) == null ? void 0 : R.display_type_properties), K = isArrayLike(D) && D.find((V) => V.value === e.kgValue);
9289
+ const D = KgUtil.tryParseJSON((O = i.value) == null ? void 0 : O.display_type_properties), K = isArrayLike(D) && D.find((V) => V.value === e.kgValue);
9245
9290
  if (K) {
9246
9291
  const V = n.t(K.varName).value;
9247
9292
  return V ? createVNode(Tag, {
@@ -9253,7 +9298,7 @@ const getProps$p = () => ({
9253
9298
  return T();
9254
9299
  }
9255
9300
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
9256
- const D = KgUtil.tryParseJSON((O = i.value) == null ? void 0 : O.display_type_properties);
9301
+ const D = KgUtil.tryParseJSON((R = i.value) == null ? void 0 : R.display_type_properties);
9257
9302
  if (D.isTag && isArrayLike(D.tagColors)) {
9258
9303
  const K = D.tagColors.find((V) => V.value === e.kgValue);
9259
9304
  return E.value ? createVNode(Tag, {
@@ -9382,10 +9427,10 @@ function _useColumns(e) {
9382
9427
  customRender: ({
9383
9428
  index: C
9384
9429
  }) => C + 1
9385
- }, ...(I = _ == null ? void 0 : _.map((C, R) => {
9430
+ }, ...(I = _ == null ? void 0 : _.map((C, O) => {
9386
9431
  var V, N, G;
9387
9432
  const A = C.var_nam;
9388
- function O() {
9433
+ function R() {
9389
9434
  return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
9390
9435
  }
9391
9436
  function M() {
@@ -9412,7 +9457,7 @@ function _useColumns(e) {
9412
9457
  column: {
9413
9458
  dataIndex: A
9414
9459
  },
9415
- index: R,
9460
+ index: O,
9416
9461
  record: ee,
9417
9462
  value: ee == null ? void 0 : ee[A]
9418
9463
  }, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
@@ -9426,7 +9471,7 @@ function _useColumns(e) {
9426
9471
  function D() {
9427
9472
  return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
9428
9473
  }
9429
- const K = O();
9474
+ const K = R();
9430
9475
  switch (C.ord) {
9431
9476
  case 0:
9432
9477
  (!i.value.field || !i.value.order) && (i.value = {
@@ -9514,7 +9559,7 @@ function _useResizeObserver$1(e) {
9514
9559
  const o = (u = (c = l[0].borderBoxSize[0]) == null ? void 0 : c.inlineSize) != null ? u : 0, i = (p = (d = n.querySelector("th.ant-table-cell-scrollbar")) == null ? void 0 : d.clientWidth) != null ? p : 0;
9515
9560
  r.store.setTableWidth(t.formID, Math.max(0, o - i));
9516
9561
  }), a.observe(n));
9517
- }), onUnmounted(() => {
9562
+ }), onBeforeUnmount(() => {
9518
9563
  a == null || a.disconnect();
9519
9564
  }), {};
9520
9565
  }
@@ -9700,7 +9745,7 @@ const KgTable$1 = "", getProps$o = () => ({
9700
9745
  return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
9701
9746
  if (!isNil(e.kgCheckboxDisabled))
9702
9747
  return e.kgCheckboxDisabled;
9703
- }), R = computed(() => !!I.value || b.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), A = computed(() => !!I.value || b.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), O = computed(() => {
9748
+ }), O = computed(() => !!I.value || b.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), A = computed(() => !!I.value || b.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), R = computed(() => {
9704
9749
  var F;
9705
9750
  return !!((F = r == null ? void 0 : r.KgTable) != null && F.expandedRowRender);
9706
9751
  }), M = computed(() => {
@@ -9961,14 +10006,14 @@ const KgTable$1 = "", getProps$o = () => ({
9961
10006
  fixed: "bottom"
9962
10007
  }, {
9963
10008
  default: () => [createVNode(TableSummary.Row, null, {
9964
- default: () => [O.value && createVNode(TableSummary.Cell, {
10009
+ default: () => [R.value && createVNode(TableSummary.Cell, {
9965
10010
  index: 0
9966
10011
  }, null), M.value && createVNode(TableSummary.Cell, {
9967
- index: O.value ? 1 : 0
10012
+ index: R.value ? 1 : 0
9968
10013
  }, null), u.value.map((U, Q) => {
9969
10014
  const z = String(U.dataIndex), te = z ? s.store.getVarGridDetail(s.formID, z) : null, ue = (() => ["left", "center", "right"].includes((te == null ? void 0 : te.align) || "") ? te == null ? void 0 : te.align : "left")();
9970
10015
  let ie = Q;
9971
- return O.value && M.value ? ie += 2 : (O.value || M.value) && (ie += 1), createVNode(TableSummary.Cell, {
10016
+ return R.value && M.value ? ie += 2 : (R.value || M.value) && (ie += 1), createVNode(TableSummary.Cell, {
9972
10017
  index: ie,
9973
10018
  align: ue
9974
10019
  }, {
@@ -10032,7 +10077,7 @@ const KgTable$1 = "", getProps$o = () => ({
10032
10077
  kgShowClearTable: D.total > 0,
10033
10078
  kgShowLocate: w.value.length === 1,
10034
10079
  kgTotal: w.value.length,
10035
- kgDisabled: R.value
10080
+ kgDisabled: O.value
10036
10081
  }, null)]), createVNode("div", {
10037
10082
  class: "right"
10038
10083
  }, [o.isShowBottomRight.value && createVNode(Pagination, {
@@ -10082,32 +10127,32 @@ const KgTable$1 = "", getProps$o = () => ({
10082
10127
  async function y() {
10083
10128
  var g, _, m, T, k, I, C;
10084
10129
  if (p.value) {
10085
- const R = (_ = (g = u.selectedRows) == null ? void 0 : g.value) != null ? _ : [], A = (m = R.map((M) => M[E.value])) != null ? m : [];
10130
+ const O = (_ = (g = u.selectedRows) == null ? void 0 : g.value) != null ? _ : [], A = (m = O.map((M) => M[E.value])) != null ? m : [];
10086
10131
  await s.store.emit(s.formID, "lookupBeforeOk", {
10087
10132
  var_nam: l,
10088
10133
  isMultiple: !0,
10089
10134
  values: A,
10090
- rows: R
10135
+ rows: O
10091
10136
  }) || (s.store.emit(s.formID, "lookupOk", {
10092
10137
  var_nam: l,
10093
10138
  model: i,
10094
10139
  isMultiple: !0,
10095
10140
  values: A,
10096
- rows: R
10141
+ rows: O
10097
10142
  }), r("update:visible", !1));
10098
10143
  } else {
10099
- const R = (I = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? I : null, A = (C = R == null ? void 0 : R[E.value]) != null ? C : "";
10144
+ const O = (I = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? I : null, A = (C = O == null ? void 0 : O[E.value]) != null ? C : "";
10100
10145
  await s.store.emit(s.formID, "lookupBeforeOk", {
10101
10146
  var_nam: l,
10102
10147
  isMultiple: !1,
10103
10148
  value: A,
10104
- row: R
10149
+ row: O
10105
10150
  }) || (s.store.emit(s.formID, "lookupOk", {
10106
10151
  var_nam: l,
10107
10152
  model: i,
10108
10153
  isMultiple: !1,
10109
10154
  value: A,
10110
- row: R
10155
+ row: O
10111
10156
  }), r("update:visible", !1));
10112
10157
  }
10113
10158
  }
@@ -10363,9 +10408,9 @@ function useKgFormItemSelect() {
10363
10408
  }), b;
10364
10409
  });
10365
10410
  async function p() {
10366
- var k, I, C, R, A, O, M, P;
10411
+ var k, I, C, O, A, R, M, P;
10367
10412
  let b = [];
10368
- const y = (k = n.value) == null ? void 0 : k.cmd, g = (C = (I = n.value) == null ? void 0 : I.cmd_method) != null ? C : "GET", _ = (A = (R = n.value) == null ? void 0 : R.val_clm) != null ? A : "", m = (M = (O = n.value) == null ? void 0 : O.lbl_clm) != null ? M : "";
10413
+ const y = (k = n.value) == null ? void 0 : k.cmd, g = (C = (I = n.value) == null ? void 0 : I.cmd_method) != null ? C : "GET", _ = (A = (O = n.value) == null ? void 0 : O.val_clm) != null ? A : "", m = (M = (R = n.value) == null ? void 0 : R.lbl_clm) != null ? M : "";
10369
10414
  if (!y || !_ || !m) {
10370
10415
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
10371
10416
  frm_id: a.formID,
@@ -10430,22 +10475,22 @@ function useKgFormItemSelect() {
10430
10475
  break;
10431
10476
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
10432
10477
  b.forEach((C) => {
10433
- let R = Number(C[y]);
10434
- Number.isNaN(R) && (R = C[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[y]} \u8F6C\u6362\u4E3A ${g} \u7C7B\u578B`, {
10478
+ let O = Number(C[y]);
10479
+ Number.isNaN(O) && (O = C[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[y]} \u8F6C\u6362\u4E3A ${g} \u7C7B\u578B`, {
10435
10480
  frm_id: a.formID,
10436
10481
  var_nam: t,
10437
10482
  VarPossibility: n.value
10438
- })), C[y] = R;
10483
+ })), C[y] = O;
10439
10484
  });
10440
10485
  break;
10441
10486
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
10442
10487
  b.forEach((C) => {
10443
- let R;
10444
- String(C[y]).toLowerCase() === "true" ? R = !0 : String(C[y]).toLowerCase() === "false" ? R = !1 : (R = C[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[y]} \u8F6C\u6362\u4E3A ${g} \u7C7B\u578B`, {
10488
+ let O;
10489
+ String(C[y]).toLowerCase() === "true" ? O = !0 : String(C[y]).toLowerCase() === "false" ? O = !1 : (O = C[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[y]} \u8F6C\u6362\u4E3A ${g} \u7C7B\u578B`, {
10445
10490
  frm_id: a.formID,
10446
10491
  var_nam: t,
10447
10492
  VarPossibility: n.value
10448
- })), C[y] = R;
10493
+ })), C[y] = O;
10449
10494
  });
10450
10495
  break;
10451
10496
  }
@@ -10454,9 +10499,9 @@ function useKgFormItemSelect() {
10454
10499
  {
10455
10500
  const C = l;
10456
10501
  if ((I = C.value) != null && I.excludeValues)
10457
- return b.filter((R) => {
10502
+ return b.filter((O) => {
10458
10503
  var A;
10459
- return !((A = C.value.excludeValues) != null && A.includes(R[y]));
10504
+ return !((A = C.value.excludeValues) != null && A.includes(O[y]));
10460
10505
  });
10461
10506
  }
10462
10507
  break;
@@ -11062,7 +11107,7 @@ const KgFormItem = defineComponent({
11062
11107
  },
11063
11108
  kgPlaceholder: _.value,
11064
11109
  kgDisabled: g.value,
11065
- id: R.value
11110
+ id: O.value
11066
11111
  };
11067
11112
  switch (y.value) {
11068
11113
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -11094,13 +11139,13 @@ const KgFormItem = defineComponent({
11094
11139
  break;
11095
11140
  }
11096
11141
  return w;
11097
- }), R = computed(() => encodeURIComponent(`${e.kgContext}~${l.formID}~${e.kgVarName}`)), A = ref(null);
11098
- function O() {
11142
+ }), O = computed(() => encodeURIComponent(`${e.kgContext}~${l.formID}~${e.kgVarName}`)), A = ref(null);
11143
+ function R() {
11099
11144
  return b.value ? null : createVNode(Form.Item, {
11100
11145
  name: e.kgVarName,
11101
11146
  rules: E.value,
11102
11147
  validateFirst: !0,
11103
- htmlFor: R.value
11148
+ htmlFor: O.value
11104
11149
  }, {
11105
11150
  default: () => createVNode(Fragment, null, [P(), M(), H()]),
11106
11151
  label: () => L()
@@ -11205,7 +11250,7 @@ const KgFormItem = defineComponent({
11205
11250
  "kg-var_nam": e.kgVarName,
11206
11251
  "kg-lkp_id": (D = c.value) == null ? void 0 : D.lkp_id,
11207
11252
  "kg-ret_fld": (K = c.value) == null ? void 0 : K.ret_fld
11208
- }, _isSlot$6(w = O()) ? w : {
11253
+ }, _isSlot$6(w = R()) ? w : {
11209
11254
  default: () => [w]
11210
11255
  });
11211
11256
  };
@@ -12837,7 +12882,7 @@ function useKgVar(e, t, r = 0) {
12837
12882
  }), onUnmounted(() => {
12838
12883
  u.dispose(c);
12839
12884
  }));
12840
- const d = (X) => computed(() => u.t(c, X)), p = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), b = computed(() => u.isRetrievingVarGridMaster(c)), y = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), m = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), I = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), R = computed(() => u.isDeletingRequesting(c)), A = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), P = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), H = computed(() => u.getVarButtonCopy(c)), w = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), K = computed(() => u.getCurrentVarProfileMasterID(c)), V = computed(() => u.getCurrentVarProfileMaster(c)), N = computed(() => {
12885
+ const d = (X) => computed(() => u.t(c, X)), p = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), b = computed(() => u.isRetrievingVarGridMaster(c)), y = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), m = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), I = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), O = computed(() => u.isDeletingRequesting(c)), A = computed(() => u.isOtherRequesting(c)), R = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), P = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), H = computed(() => u.getVarButtonCopy(c)), w = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), K = computed(() => u.getCurrentVarProfileMasterID(c)), V = computed(() => u.getCurrentVarProfileMaster(c)), N = computed(() => {
12841
12886
  var X, ee;
12842
12887
  return (ee = (X = V.value) == null ? void 0 : X.varProfileDetails) != null ? ee : null;
12843
12888
  }), G = computed(() => u.getVarGridConfig(c)), $ = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), J = computed(() => u.getCurrentVarGridDetails(c));
@@ -12855,9 +12900,9 @@ function useKgVar(e, t, r = 0) {
12855
12900
  isCopying: k,
12856
12901
  isCopyingRequesting: I,
12857
12902
  isDeleting: C,
12858
- isDeletingRequesting: R,
12903
+ isDeletingRequesting: O,
12859
12904
  isOtherRequesting: A,
12860
- varButtons: O,
12905
+ varButtons: R,
12861
12906
  varButtonSearch: M,
12862
12907
  varButtonCreate: P,
12863
12908
  varButtonUpdate: L,
@@ -13178,8 +13223,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
13178
13223
  }) => {
13179
13224
  const u = s.store.getVarSubmitConfig(s.formID);
13180
13225
  return o = watch(c, (d) => {
13181
- var p, E, b, y, g, _, m, T, k, I, C, R;
13182
- d && (d.id = (p = u == null ? void 0 : u.id) != null ? p : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (b = u == null ? void 0 : u.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (y = u == null ? void 0 : u.dft_fullscreen_flg) != null ? y : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (_ = u == null ? void 0 : u.max_width) != null ? _ : DEFAULT_MAX_WIDTH, d.min_width = (m = u == null ? void 0 : u.min_width) != null ? m : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (I = u == null ? void 0 : u.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (R = u == null ? void 0 : u.display_type) != null ? R : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
13226
+ var p, E, b, y, g, _, m, T, k, I, C, O;
13227
+ d && (d.id = (p = u == null ? void 0 : u.id) != null ? p : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (b = u == null ? void 0 : u.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (y = u == null ? void 0 : u.dft_fullscreen_flg) != null ? y : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (_ = u == null ? void 0 : u.max_width) != null ? _ : DEFAULT_MAX_WIDTH, d.min_width = (m = u == null ? void 0 : u.min_width) != null ? m : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (I = u == null ? void 0 : u.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (O = u == null ? void 0 : u.display_type) != null ? O : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
13183
13228
  }, {
13184
13229
  immediate: !0
13185
13230
  }), KgUtil.hideLoading(), !1;
@@ -13335,7 +13380,7 @@ function _useResizeObserver(e) {
13335
13380
  }), t.observe(r));
13336
13381
  }, {
13337
13382
  immediate: !0
13338
- }), onUnmounted(() => {
13383
+ }), onBeforeUnmount(() => {
13339
13384
  t == null || t.disconnect();
13340
13385
  }), {};
13341
13386
  }
@@ -13449,7 +13494,7 @@ const getProps$h = () => ({
13449
13494
  inject(DI_KG_VAR__KG_PROPS, null);
13450
13495
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
13451
13496
  l.onSubmitSave(async () => (await ie(), !1)), l.onSubmitCancel(async () => (await ue(), !1)), _useFormModel$1();
13452
- const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), p = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), R = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
13497
+ const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), p = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), R = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
13453
13498
  var x, W, Z;
13454
13499
  switch (!0) {
13455
13500
  case s.isCreating.value:
@@ -13470,7 +13515,7 @@ const getProps$h = () => ({
13470
13515
  case s.isUpdating.value:
13471
13516
  return (W = I.value) != null ? W : [];
13472
13517
  case s.isCopying.value:
13473
- return (Z = R.value) != null ? Z : [];
13518
+ return (Z = O.value) != null ? Z : [];
13474
13519
  case s.isDeleting.value:
13475
13520
  return [];
13476
13521
  }
@@ -13485,7 +13530,7 @@ const getProps$h = () => ({
13485
13530
  case s.isCopying.value:
13486
13531
  return (Z = m.value) != null ? Z : [];
13487
13532
  case s.isDeleting.value:
13488
- return (re = O.value) != null ? re : [];
13533
+ return (re = R.value) != null ? re : [];
13489
13534
  }
13490
13535
  return [];
13491
13536
  }), H = computed(() => {
@@ -13498,7 +13543,7 @@ const getProps$h = () => ({
13498
13543
  case s.isCopying.value:
13499
13544
  return (Z = A.value) != null ? Z : [];
13500
13545
  case s.isDeleting.value:
13501
- return (re = O.value) != null ? re : [];
13546
+ return (re = R.value) != null ? re : [];
13502
13547
  }
13503
13548
  return [];
13504
13549
  }), w = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => w.value || d.value), K = computed(() => d.value), V = ref({
@@ -14286,8 +14331,8 @@ const KgButtonCreate = defineComponent({
14286
14331
  attrs: a
14287
14332
  }) {
14288
14333
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
14289
- var T, k, I, C, R, A, O, M;
14290
- return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (R = o.selectedRows.value) == null ? void 0 : R.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = c.value) == null ? void 0 : O.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14334
+ var T, k, I, C, O, A, R, M;
14335
+ return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (O = o.selectedRows.value) == null ? void 0 : O.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((R = c.value) == null ? void 0 : R.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14291
14336
  }), d = computed(() => !!s.isCreatingRequesting.value);
14292
14337
  async function p() {
14293
14338
  e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
@@ -14309,7 +14354,7 @@ const KgButtonCreate = defineComponent({
14309
14354
  return e.kgText ? e.kgText : n.t("kg.create");
14310
14355
  }
14311
14356
  function _() {
14312
- var T, k, I, C, R, A;
14357
+ var T, k, I, C, O, A;
14313
14358
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
14314
14359
  type: "primary",
14315
14360
  disabled: u.value,
@@ -14318,7 +14363,7 @@ const KgButtonCreate = defineComponent({
14318
14363
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
14319
14364
  "kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
14320
14365
  "kg-cmd": (C = c.value) == null ? void 0 : C.cmd,
14321
- "kg-permission": (A = (R = c.value) == null ? void 0 : R.permission_code) != null ? A : "",
14366
+ "kg-permission": (A = (O = c.value) == null ? void 0 : O.permission_code) != null ? A : "",
14322
14367
  class: a.class
14323
14368
  }, {
14324
14369
  default: () => [y(), g()]
@@ -14489,8 +14534,8 @@ const KgButtonCreate = defineComponent({
14489
14534
  ...KgVarUtil.parseCommandParameter((k = (T = i.value) == null ? void 0 : T.cmd_prm) != null ? k : "")
14490
14535
  }), _;
14491
14536
  }), p = computed(() => {
14492
- var _, m, T, k, I, C, R, A;
14493
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((_ = i.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((T = (m = o.selectedRows.value) == null ? void 0 : m.length) != null ? T : 0) === 0 || ((k = i.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((C = (I = o.selectedRows.value) == null ? void 0 : I.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((R = i.value) == null ? void 0 : R.permission_code) === 2 && !a.p((A = i.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14537
+ var _, m, T, k, I, C, O, A;
14538
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((_ = i.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((T = (m = o.selectedRows.value) == null ? void 0 : m.length) != null ? T : 0) === 0 || ((k = i.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((C = (I = o.selectedRows.value) == null ? void 0 : I.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((O = i.value) == null ? void 0 : O.permission_code) === 2 && !a.p((A = i.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14494
14539
  }), E = ref(!1);
14495
14540
  async function b(_) {
14496
14541
  if (!c.value)
@@ -14662,7 +14707,7 @@ const KgButtonCreate = defineComponent({
14662
14707
  }
14663
14708
  let p = null;
14664
14709
  const E = async () => {
14665
- var m, T, k, I, C, R;
14710
+ var m, T, k, I, C, O;
14666
14711
  p == null || p.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
14667
14712
  const _ = s.selectedRows.value;
14668
14713
  try {
@@ -14673,7 +14718,7 @@ const KgButtonCreate = defineComponent({
14673
14718
  data: _ != null ? _ : []
14674
14719
  });
14675
14720
  if (((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1) {
14676
- if (((R = e.kgButton) == null ? void 0 : R.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
14721
+ if (((O = e.kgButton) == null ? void 0 : O.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
14677
14722
  datas: M
14678
14723
  }) => {
14679
14724
  const P = M.value, L = intersectionWith$1(P, _ != null ? _ : [], (H, w) => (H == null ? void 0 : H[s.id.value]) === (w == null ? void 0 : w[s.id.value]));
@@ -14794,8 +14839,8 @@ const KgButtonCreate = defineComponent({
14794
14839
  }
14795
14840
  });
14796
14841
  const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
14797
- var T, k, I, C, R, A, O, M;
14798
- return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (R = l.selectedRows.value) == null ? void 0 : R.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = c.value) == null ? void 0 : O.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14842
+ var T, k, I, C, O, A, R, M;
14843
+ return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (O = l.selectedRows.value) == null ? void 0 : O.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((R = c.value) == null ? void 0 : R.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14799
14844
  }), d = computed(() => !!s.isUpdatingRequesting.value);
14800
14845
  async function p() {
14801
14846
  e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
@@ -14820,7 +14865,7 @@ const KgButtonCreate = defineComponent({
14820
14865
  return e.kgText ? e.kgText : n.t("kg.update");
14821
14866
  }
14822
14867
  function _() {
14823
- var T, k, I, C, R, A;
14868
+ var T, k, I, C, O, A;
14824
14869
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
14825
14870
  type: "primary",
14826
14871
  disabled: u.value,
@@ -14830,7 +14875,7 @@ const KgButtonCreate = defineComponent({
14830
14875
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
14831
14876
  "kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
14832
14877
  "kg-cmd": (C = c.value) == null ? void 0 : C.cmd,
14833
- "kg-permission": (A = (R = c.value) == null ? void 0 : R.permission_code) != null ? A : "",
14878
+ "kg-permission": (A = (O = c.value) == null ? void 0 : O.permission_code) != null ? A : "",
14834
14879
  class: a.class
14835
14880
  }, {
14836
14881
  default: () => [y(), g()]
@@ -15586,7 +15631,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15586
15631
  row: m,
15587
15632
  model: T
15588
15633
  }) => {
15589
- var I, C, R, A, O;
15634
+ var I, C, O, A, R;
15590
15635
  const k = r.store.getSystemVarProfileDetails(r.formID);
15591
15636
  switch (i.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
15592
15637
  case y: {
@@ -15626,7 +15671,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15626
15671
  }
15627
15672
  switch (!0) {
15628
15673
  case _: {
15629
- T.value.prf_var_nam = ((R = T.value.prf_var_nam) != null ? R : "") + "_COPY", T.value.prf_var_nam_dsc = ((O = (A = T.value.prf_var_nam_dsc) != null ? A : T.value.prf_var_nam) != null ? O : "") + "_COPY";
15674
+ T.value.prf_var_nam = ((O = T.value.prf_var_nam) != null ? O : "") + "_COPY", T.value.prf_var_nam_dsc = ((R = (A = T.value.prf_var_nam_dsc) != null ? A : T.value.prf_var_nam) != null ? R : "") + "_COPY";
15630
15675
  break;
15631
15676
  }
15632
15677
  }
@@ -15696,27 +15741,27 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15696
15741
  onItemSelectAll: T,
15697
15742
  onItemSelect: k
15698
15743
  }) => {
15699
- var C, R;
15700
- const I = g.sort((A, O) => {
15744
+ var C, O;
15745
+ const I = g.sort((A, R) => {
15701
15746
  var M, P;
15702
- return ((M = A.srtseq) != null ? M : 0) - ((P = O.srtseq) != null ? P : 0);
15747
+ return ((M = A.srtseq) != null ? M : 0) - ((P = R.srtseq) != null ? P : 0);
15703
15748
  });
15704
15749
  return u.value = I, createVNode(Table, {
15705
15750
  pagination: !1,
15706
15751
  class: "kg-flex-table",
15707
15752
  size: "small",
15708
15753
  scroll: {
15709
- x: y === "left" ? "370px" : `${(((R = (C = t.option.value.KgSearch) == null ? void 0 : C.dynamicQuery) == null ? void 0 : R.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
15754
+ x: y === "left" ? "370px" : `${(((O = (C = t.option.value.KgSearch) == null ? void 0 : C.dynamicQuery) == null ? void 0 : O.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
15710
15755
  y: "auto"
15711
15756
  },
15712
15757
  columns: y === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
15713
15758
  rowKey: "id",
15714
15759
  dataSource: I,
15715
15760
  customRow: (A) => {
15716
- let O = {
15761
+ let R = {
15717
15762
  onClick: (M) => b(M, A, y, _)
15718
15763
  };
15719
- return y === "right" && (O["kg-host-frm_id"] = r.formID, O["kg-var_nam"] = A.var_nam), O;
15764
+ return y === "right" && (R["kg-host-frm_id"] = r.formID, R["kg-var_nam"] = A.var_nam), R;
15720
15765
  },
15721
15766
  rowSelection: E({
15722
15767
  disabled: m,
@@ -15859,7 +15904,7 @@ function _useLayoutHeaderResizeObserver() {
15859
15904
  const a = t.getBoundingClientRect().left, n = (o = (l = r[0].borderBoxSize[0]) == null ? void 0 : l.inlineSize) != null ? o : 0, s = document.querySelector("#kg-search-header-teleport");
15860
15905
  s && (s.style.left = `${a}px`, s.style.width = `${n}px`);
15861
15906
  }), e.observe(t));
15862
- }), onUnmounted(() => {
15907
+ }), onBeforeUnmount(() => {
15863
15908
  e == null || e.disconnect();
15864
15909
  }), {};
15865
15910
  }
@@ -15961,7 +16006,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
15961
16006
  return !!(_.value || l.isRetrieving.value || KgAuthUtil.getPermissionType(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
15962
16007
  }), T = computed(() => !!(_.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(_.value || l.isRetrieving.value)), I = ref({
15963
16008
  visible: !1
15964
- }), C = computed(() => y.value.kgHeight === p.value), R = computed(() => {
16009
+ }), C = computed(() => y.value.kgHeight === p.value), O = computed(() => {
15965
16010
  var $, B, Y;
15966
16011
  if (n.t(($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
15967
16012
  return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
@@ -15975,7 +16020,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
15975
16020
  default:
15976
16021
  return !0;
15977
16022
  }
15978
- }), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), M = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), P = computed(() => {
16023
+ }), R = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), M = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), P = computed(() => {
15979
16024
  let $ = "kg-search";
15980
16025
  return o.value && ($ += " kg-search--visible"), c.value && ($ += " kg-search--teleport"), $;
15981
16026
  });
@@ -16076,7 +16121,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
16076
16121
  kgType: KG_BUTTON_TYPE.SEARCH,
16077
16122
  kgVarName: ($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam,
16078
16123
  kgIcon: (B = n.varButtonSearch.value) == null ? void 0 : B.icon,
16079
- kgText: R.value,
16124
+ kgText: O.value,
16080
16125
  kgColor: (Y = n.varButtonSearch.value) == null ? void 0 : Y.color,
16081
16126
  kgPrimary: A.value,
16082
16127
  kgLoading: k.value,
@@ -16136,7 +16181,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
16136
16181
  default: () => [createVNode("div", {
16137
16182
  class: "ant-collapse-header"
16138
16183
  }, [createVNode(Spin, {
16139
- spinning: O.value
16184
+ spinning: R.value
16140
16185
  }, {
16141
16186
  default: () => [D(), createVNode("div", {
16142
16187
  class: "ant-collapse-extra"
@@ -16617,7 +16662,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16617
16662
  columnWidth: 32,
16618
16663
  hideSelectAll: !0,
16619
16664
  selectedRowKeys: d,
16620
- onSelect: (L) => R(L)
16665
+ onSelect: (L) => O(L)
16621
16666
  }), E = ref({
16622
16667
  visible: !1
16623
16668
  }), b = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), y = computed(() => {
@@ -16733,7 +16778,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16733
16778
  }
16734
16779
  });
16735
16780
  }
16736
- function R(L) {
16781
+ function O(L) {
16737
16782
  var H;
16738
16783
  ((H = a.getSelectedVarCatalog) == null ? void 0 : H.id) !== L.id && (unref(u) ? KgUtil.confirm({
16739
16784
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
@@ -16745,7 +16790,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16745
16790
  function A() {
16746
16791
  E.value.visible = !0;
16747
16792
  }
16748
- function O() {
16793
+ function R() {
16749
16794
  return createVNode("div", {
16750
16795
  class: "buttons"
16751
16796
  }, [createVNode(Button, {
@@ -16811,7 +16856,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16811
16856
  }
16812
16857
  return () => createVNode("div", {
16813
16858
  class: "kg-var-config-modal-var-var-catalog"
16814
- }, [O(), createVNode(Table, {
16859
+ }, [R(), createVNode(Table, {
16815
16860
  pagination: !1,
16816
16861
  class: "kg-flex-table",
16817
16862
  size: "small",
@@ -16826,7 +16871,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16826
16871
  rowClassName: P,
16827
16872
  rowSelection: p.value,
16828
16873
  customRow: (L) => ({
16829
- onClick: () => R(L)
16874
+ onClick: () => O(L)
16830
16875
  })
16831
16876
  }, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
16832
16877
  visible: E.value.visible,
@@ -17154,9 +17199,9 @@ const KgWarehouse$1 = "", getProps = () => ({
17154
17199
  customRender: ({
17155
17200
  record: k
17156
17201
  }) => {
17157
- var C, R, A;
17202
+ var C, O, A;
17158
17203
  const I = k;
17159
- return createVNode("div", null, [createVNode("div", null, [(C = I.whDsc) != null ? C : " ", createTextVNode(" - "), (R = I.whId) != null ? R : " "]), createVNode("div", {
17204
+ return createVNode("div", null, [createVNode("div", null, [(C = I.whDsc) != null ? C : " ", createTextVNode(" - "), (O = I.whId) != null ? O : " "]), createVNode("div", {
17160
17205
  class: "address"
17161
17206
  }, [(A = I.adrnam) != null ? A : " "])]);
17162
17207
  }
@@ -17164,22 +17209,22 @@ const KgWarehouse$1 = "", getProps = () => ({
17164
17209
  var I;
17165
17210
  const k = (I = s.value) == null ? void 0 : I.toUpperCase();
17166
17211
  return c.value.filter((C) => {
17167
- var R, A, O, M, P, L;
17168
- return ((A = (R = C.whDsc) == null ? void 0 : R.toUpperCase()) == null ? void 0 : A.includes(k)) || ((M = (O = C.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : M.includes(k)) || ((L = (P = C.adrId) == null ? void 0 : P.toUpperCase()) == null ? void 0 : L.includes(k));
17212
+ var O, A, R, M, P, L;
17213
+ return ((A = (O = C.whDsc) == null ? void 0 : O.toUpperCase()) == null ? void 0 : A.includes(k)) || ((M = (R = C.whId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : M.includes(k)) || ((L = (P = C.adrId) == null ? void 0 : P.toUpperCase()) == null ? void 0 : L.includes(k));
17169
17214
  });
17170
17215
  }), d = computed(() => {
17171
17216
  var k;
17172
17217
  return ((k = r.option.value.KgWarehouse) == null ? void 0 : k.on) !== !1;
17173
17218
  }), p = computed(() => {
17174
- var k, I, C, R;
17175
- return (R = (C = (I = (k = r.store).getUseUserStore) == null ? void 0 : I.call(k)) == null ? void 0 : C.getUserWarehouses) != null ? R : [];
17219
+ var k, I, C, O;
17220
+ return (O = (C = (I = (k = r.store).getUseUserStore) == null ? void 0 : I.call(k)) == null ? void 0 : C.getUserWarehouses) != null ? O : [];
17176
17221
  });
17177
17222
  watch(a.visible, (k) => {
17178
17223
  !d.value || (k ? b() : y());
17179
17224
  }, {
17180
17225
  immediate: !0
17181
17226
  }), onMounted(() => {
17182
- a.store.emit("mounted");
17227
+ KgLogger.debug("KgWarehouse | onMounted()"), a.store.emit("mounted");
17183
17228
  });
17184
17229
  function E() {
17185
17230
  !d.value || a.store.setVisible(!0);
@@ -17216,8 +17261,8 @@ const KgWarehouse$1 = "", getProps = () => ({
17216
17261
  }
17217
17262
  });
17218
17263
  c.value = (k != null ? k : []).filter((I) => {
17219
- var C, R, A, O, M;
17220
- return ((O = (A = (R = (C = r.store).getUseUserStore) == null ? void 0 : R.call(C)) == null ? void 0 : A.getUserInfo) == null ? void 0 : O.username) === "admin" ? !0 : (M = p.value) == null ? void 0 : M.find((P) => P.wh_id === I.whId);
17264
+ var C;
17265
+ return KgAuthUtil.isAdminUser() ? !0 : (C = p.value) == null ? void 0 : C.find((O) => O.wh_id === I.whId);
17221
17266
  });
17222
17267
  } catch (k) {
17223
17268
  console.error(k);
@@ -17301,25 +17346,28 @@ const KgWarehouse$1 = "", getProps = () => ({
17301
17346
  }
17302
17347
  });
17303
17348
  function createKgWarehouseGuard(e, t) {
17304
- e.beforeEach(async () => {
17305
- var n;
17306
- if (((n = useKg(t).option.value.KgWarehouse) == null ? void 0 : n.on) === !1)
17307
- return !0;
17308
- const a = useKgWarehouse(t);
17309
- return a.onMounted(() => {
17310
- if (a.warehouse.value)
17311
- return !0;
17312
- if (e.currentRoute.value.path === "/login")
17313
- return;
17314
- a.store.setVisible(!0);
17315
- const s = watch(
17316
- a.warehouse,
17317
- (l) => {
17318
- l && setTimeout(() => s());
17319
- },
17320
- { immediate: !0 }
17321
- );
17322
- }), !0;
17349
+ e.beforeEach(async (r) => {
17350
+ var l;
17351
+ const a = r.path, n = useKg(t);
17352
+ if (((l = n.option.value.KgWarehouse) == null ? void 0 : l.on) === !1)
17353
+ return KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u6CA1\u6709\u542F\u7528\u4ED3\u5E93\u9009\u62E9\u529F\u80FD.`), !0;
17354
+ if (a === "/login") {
17355
+ KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u767B\u5F55\u9875\u9762.`);
17356
+ return;
17357
+ }
17358
+ const s = useKgWarehouse(t);
17359
+ return s.warehouse.value ? (KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u4ED3\u5E93\u5DF2\u9009 | ${s.warehouse.value.whId}`), !0) : (s.onMounted(() => {
17360
+ var i, c, u, d, p;
17361
+ const o = (c = (i = n.store).getUseUserStore) == null ? void 0 : c.call(i);
17362
+ if (((u = o == null ? void 0 : o.getUserWarehouses) == null ? void 0 : u.length) === 1) {
17363
+ KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u9009\u62E9\u552F\u4E00\u4ED3\u5E93.`);
17364
+ const E = (d = o.getUserWarehouses) == null ? void 0 : d[0];
17365
+ s.store.setWarehouse(new WhDTO({ whId: E.wh_id, whDsc: E.wh_dsc }));
17366
+ } else {
17367
+ const E = (p = o == null ? void 0 : o.getUserWarehouses) == null ? void 0 : p.find((b) => b.default_flag === 1);
17368
+ E ? (KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u9009\u62E9\u9ED8\u8BA4\u4ED3\u5E93.`), s.store.setWarehouse(new WhDTO({ whId: E.wh_id, whDsc: E.wh_dsc }))) : (KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u6253\u5F00\u4ED3\u5E93\u9009\u62E9\u5F39\u7A97.`), s.store.setVisible(!0));
17369
+ }
17370
+ }), !0);
17323
17371
  });
17324
17372
  }
17325
17373
  class KgUtil {
@@ -17426,14 +17474,14 @@ class KgUtil {
17426
17474
  return { sql: "", whereSql: "", orderBySql: "" };
17427
17475
  const l = ["pageNo", "pageSize", "column", "order"], o = useKg(), i = r ? useKgVar(r) : null, c = r ? useKgSearch(r).operatorModel.value : a, u = {};
17428
17476
  Object.keys(s).sort().forEach((b) => {
17429
- var T, k, I, C, R;
17477
+ var T, k, I, C, O;
17430
17478
  if (l.includes(b)) {
17431
17479
  u[b] = s[b];
17432
17480
  return;
17433
17481
  }
17434
17482
  const y = r ? (T = i == null ? void 0 : i.store) == null ? void 0 : T.getVarProfileDetail(r, b) : null, g = s[b];
17435
17483
  let _ = c == null ? void 0 : c[b];
17436
- (((I = (k = o.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : I.on) !== !0 || r && ((R = (C = i == null ? void 0 : i.currentVarProfileMaster) == null ? void 0 : C.value) == null ? void 0 : R.dyn_flg) !== 1) && (_ = KG_DYNAMIC_QUERY_OPERATOR.EQ);
17484
+ (((I = (k = o.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : I.on) !== !0 || r && ((O = (C = i == null ? void 0 : i.currentVarProfileMaster) == null ? void 0 : C.value) == null ? void 0 : O.dyn_flg) !== 1) && (_ = KG_DYNAMIC_QUERY_OPERATOR.EQ);
17437
17485
  let m = b;
17438
17486
  switch (r && (y == null ? void 0 : y.use_underscore_when_dynamic_query_flag) !== 0 && (m = b.split(".").map((A) => snakeCase$1(A)).join(".")), !0) {
17439
17487
  case b.endsWith("_obj"): {
@@ -17442,10 +17490,10 @@ class KgUtil {
17442
17490
  }
17443
17491
  case (!!n && n.isDayjs(g)): {
17444
17492
  const A = g;
17445
- let O = r ? this.parseParamFromDayJS(b, A, r) : A.format("YYYY-MM-DD HH:mm:ss");
17493
+ let R = r ? this.parseParamFromDayJS(b, A, r) : A.format("YYYY-MM-DD HH:mm:ss");
17446
17494
  switch (_) {
17447
17495
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
17448
- let M = O, P = "";
17496
+ let M = R, P = "";
17449
17497
  switch (!0) {
17450
17498
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17451
17499
  P = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
@@ -17462,11 +17510,11 @@ class KgUtil {
17462
17510
  default:
17463
17511
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17464
17512
  }
17465
- O = ` AND (${m} < '${M}' OR ${m} >= '${P}')`;
17513
+ R = ` AND (${m} < '${M}' OR ${m} >= '${P}')`;
17466
17514
  break;
17467
17515
  }
17468
17516
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
17469
- let M = O;
17517
+ let M = R;
17470
17518
  switch (!0) {
17471
17519
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
17472
17520
  break;
@@ -17481,11 +17529,11 @@ class KgUtil {
17481
17529
  default:
17482
17530
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17483
17531
  }
17484
- O = ` AND (${m} < '${M}')`;
17532
+ R = ` AND (${m} < '${M}')`;
17485
17533
  break;
17486
17534
  }
17487
17535
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
17488
- let M = O, P = "";
17536
+ let M = R, P = "";
17489
17537
  switch (!0) {
17490
17538
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17491
17539
  P = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
@@ -17502,11 +17550,11 @@ class KgUtil {
17502
17550
  default:
17503
17551
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17504
17552
  }
17505
- O = ` AND (${m} < '${P}')`;
17553
+ R = ` AND (${m} < '${P}')`;
17506
17554
  break;
17507
17555
  }
17508
17556
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
17509
- let M = O, P = "";
17557
+ let M = R, P = "";
17510
17558
  switch (!0) {
17511
17559
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17512
17560
  P = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
@@ -17523,11 +17571,11 @@ class KgUtil {
17523
17571
  default:
17524
17572
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17525
17573
  }
17526
- O = ` AND (${m} >= '${P}')`;
17574
+ R = ` AND (${m} >= '${P}')`;
17527
17575
  break;
17528
17576
  }
17529
17577
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
17530
- let M = O;
17578
+ let M = R;
17531
17579
  switch (!0) {
17532
17580
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
17533
17581
  break;
@@ -17542,12 +17590,12 @@ class KgUtil {
17542
17590
  default:
17543
17591
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17544
17592
  }
17545
- O = ` AND (${m} >= '${M}')`;
17593
+ R = ` AND (${m} >= '${M}')`;
17546
17594
  break;
17547
17595
  }
17548
17596
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
17549
17597
  default: {
17550
- let M = O, P = "";
17598
+ let M = R, P = "";
17551
17599
  switch (!0) {
17552
17600
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17553
17601
  P = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
@@ -17564,27 +17612,27 @@ class KgUtil {
17564
17612
  default:
17565
17613
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17566
17614
  }
17567
- O = ` AND (${m} >= '${M}' AND ${m} < '${P}')`;
17615
+ R = ` AND (${m} >= '${M}' AND ${m} < '${P}')`;
17568
17616
  break;
17569
17617
  }
17570
17618
  }
17571
- u[b] = O;
17619
+ u[b] = R;
17572
17620
  break;
17573
17621
  }
17574
17622
  case (!!n && isArray$1(g) && g.length === 2 && n.isDayjs(g[0]) && n.isDayjs(g[1])): {
17575
- const A = g[0], O = g[1];
17623
+ const A = g[0], R = g[1];
17576
17624
  let M = this.parseParamFromDayJS(b, A, r), P = "", L = "";
17577
17625
  switch (!0) {
17578
17626
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17579
- P = O.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17627
+ P = R.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17580
17628
  break;
17581
17629
  }
17582
17630
  case /\d\d-\d\d-\d\d/.test(M): {
17583
- M = `${M} 00:00:00`, P = O.add(1, "day").format("YYYY-MM-DD 00:00:00");
17631
+ M = `${M} 00:00:00`, P = R.add(1, "day").format("YYYY-MM-DD 00:00:00");
17584
17632
  break;
17585
17633
  }
17586
17634
  case /\d\d:\d\d:\d\d/.test(M): {
17587
- M = `1900-01-01 ${M}`, P = O.add(1, "second").format("1900-01-01 HH:mm:ss");
17635
+ M = `1900-01-01 ${M}`, P = R.add(1, "second").format("1900-01-01 HH:mm:ss");
17588
17636
  break;
17589
17637
  }
17590
17638
  }
@@ -17596,7 +17644,7 @@ class KgUtil {
17596
17644
  u[b] = void 0;
17597
17645
  break;
17598
17646
  }
17599
- const A = g.map((O) => `N'${String(O)}'`).join(", ");
17647
+ const A = g.map((R) => `N'${String(R)}'`).join(", ");
17600
17648
  u[b] = ` AND (${m} IN (${A}))`;
17601
17649
  break;
17602
17650
  }
@@ -17850,7 +17898,7 @@ function httpClient() {
17850
17898
  const a = r[0], n = r[1];
17851
17899
  if (n != null && n.dynamicQueryOperators) {
17852
17900
  if (!(n != null && n.dayjs))
17853
- throw new Error("\u53C2\u6570 options.dayjs \u4E3A\u7A7A. \u5F53\u524D\u53C2\u6570 options.dynamicQueryOperators \u4E0D\u4E3A\u7A7A, \u6240\u4EE5\u53C2\u6570 options.dayjs \u4E5F\u4E0D\u80FD\u4E3A\u7A7A.");
17901
+ throw new Error("\u53C2\u6570 options.dynamicQueryOperators \u4E0D\u4E3A\u7A7A, \u6240\u4EE5\u53C2\u6570 options.dayjs \u4E5F\u4E0D\u80FD\u4E3A\u7A7A.");
17854
17902
  let c = {};
17855
17903
  a.method === "GET" || a.method === "POST" && !a.data && a.params ? c = a.params : a.method === "POST" && a.data && (c = a.data);
17856
17904
  const { sql: u, whereSql: d, orderBySql: p } = KgUtil.getQuerySql(c, null, n == null ? void 0 : n.dynamicQueryOperators, n == null ? void 0 : n.dayjs);