@bwg-ui/core 1.1.24 → 1.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/chunks/AuthContext-BQ3gHLbr.cjs +2 -0
  2. package/dist/chunks/AuthContext-BQ3gHLbr.cjs.map +1 -0
  3. package/dist/chunks/{AuthContext-Ei2P-z4d.js → AuthContext-CVizgYxY.js} +14 -10
  4. package/dist/chunks/AuthContext-CVizgYxY.js.map +1 -0
  5. package/dist/chunks/{BwgSpace-CnLM4qcg.js → BwgSpace-BPJARdOc.js} +4 -4
  6. package/dist/chunks/{BwgSpace-CnLM4qcg.js.map → BwgSpace-BPJARdOc.js.map} +1 -1
  7. package/dist/chunks/BwgSpace-Cw27d-XU.cjs +2 -0
  8. package/dist/chunks/{BwgSpace-b0hmM1Ht.cjs.map → BwgSpace-Cw27d-XU.cjs.map} +1 -1
  9. package/dist/chunks/BwgSwitch-BLtVdW44.cjs +2 -0
  10. package/dist/chunks/BwgSwitch-BLtVdW44.cjs.map +1 -0
  11. package/dist/chunks/{BwgSwitch-B79pseQM.js → BwgSwitch-DdHo4gYR.js} +66 -66
  12. package/dist/chunks/BwgSwitch-DdHo4gYR.js.map +1 -0
  13. package/dist/chunks/{BwgUploader-BcVlE61B.js → BwgUploader-BUmFmeuS.js} +639 -639
  14. package/dist/chunks/BwgUploader-BUmFmeuS.js.map +1 -0
  15. package/dist/chunks/BwgUploader-Djhl4lIt.cjs +3 -0
  16. package/dist/chunks/BwgUploader-Djhl4lIt.cjs.map +1 -0
  17. package/dist/chunks/LoadingOverlay-Uf6xy04v.js +19 -0
  18. package/dist/chunks/LoadingOverlay-Uf6xy04v.js.map +1 -0
  19. package/dist/chunks/LoadingOverlay-jdMzdB-z.cjs +2 -0
  20. package/dist/chunks/LoadingOverlay-jdMzdB-z.cjs.map +1 -0
  21. package/dist/chunks/{SSOHandler-CkPcSHIm.js → SSOHandler-CR0nR3rJ.js} +8132 -8085
  22. package/dist/chunks/SSOHandler-CR0nR3rJ.js.map +1 -0
  23. package/dist/chunks/{SSOHandler-DiW4Ft9i.cjs → SSOHandler-DQG0Jp4V.cjs} +53 -53
  24. package/dist/chunks/SSOHandler-DQG0Jp4V.cjs.map +1 -0
  25. package/dist/chunks/ScreenProtectContext-BMsPPcTX.js +154 -0
  26. package/dist/chunks/ScreenProtectContext-BMsPPcTX.js.map +1 -0
  27. package/dist/chunks/ScreenProtectContext-DrCGlcTs.cjs +2 -0
  28. package/dist/chunks/ScreenProtectContext-DrCGlcTs.cjs.map +1 -0
  29. package/dist/chunks/SearchBoxContext-DY6lES-W.cjs +2 -0
  30. package/dist/chunks/SearchBoxContext-DY6lES-W.cjs.map +1 -0
  31. package/dist/chunks/{SearchBoxContext-BCvEYyFk.js → SearchBoxContext-Dtzo_rJd.js} +25 -27
  32. package/dist/chunks/SearchBoxContext-Dtzo_rJd.js.map +1 -0
  33. package/dist/chunks/ViewContainer-BfiTFvLP.cjs +36 -0
  34. package/dist/chunks/ViewContainer-BfiTFvLP.cjs.map +1 -0
  35. package/dist/chunks/{ViewContainer-CjpJqoGG.js → ViewContainer-CTl3_56W.js} +128 -116
  36. package/dist/chunks/ViewContainer-CTl3_56W.js.map +1 -0
  37. package/dist/chunks/apiUtils-D9Vn1gwZ.cjs +3 -0
  38. package/dist/chunks/apiUtils-D9Vn1gwZ.cjs.map +1 -0
  39. package/dist/chunks/{apiUtils-DxzLqPhU.js → apiUtils-DPUgfmKk.js} +57 -48
  40. package/dist/chunks/apiUtils-DPUgfmKk.js.map +1 -0
  41. package/dist/chunks/{codeStore-CfI4Wh5M.js → codeStore-BrCfe9K3.js} +2 -2
  42. package/dist/chunks/{codeStore-CfI4Wh5M.js.map → codeStore-BrCfe9K3.js.map} +1 -1
  43. package/dist/chunks/{codeStore-il4-kZPe.cjs → codeStore-_b2fDZtD.cjs} +2 -2
  44. package/dist/chunks/{codeStore-il4-kZPe.cjs.map → codeStore-_b2fDZtD.cjs.map} +1 -1
  45. package/dist/chunks/{core-bHd8azE6.js → core-BBMCFpHx.js} +2 -2
  46. package/dist/chunks/{core-bHd8azE6.js.map → core-BBMCFpHx.js.map} +1 -1
  47. package/dist/chunks/{core-BHejg5iS.cjs → core-CM9MsJRf.cjs} +2 -2
  48. package/dist/chunks/{core-BHejg5iS.cjs.map → core-CM9MsJRf.cjs.map} +1 -1
  49. package/dist/chunks/{enc-base64-BQYwLKgk.js → enc-base64-DAsYWbA2.js} +3 -3
  50. package/dist/chunks/{enc-base64-BQYwLKgk.js.map → enc-base64-DAsYWbA2.js.map} +1 -1
  51. package/dist/chunks/{enc-base64-BkBtNBQV.cjs → enc-base64-DbK5VBfD.cjs} +2 -2
  52. package/dist/chunks/{enc-base64-BkBtNBQV.cjs.map → enc-base64-DbK5VBfD.cjs.map} +1 -1
  53. package/dist/chunks/{favoriteStore-CcKg_nEH.cjs → favoriteStore-BnQ2u-sa.cjs} +2 -2
  54. package/dist/chunks/{favoriteStore-CcKg_nEH.cjs.map → favoriteStore-BnQ2u-sa.cjs.map} +1 -1
  55. package/dist/chunks/{favoriteStore-Cemc-26t.js → favoriteStore-SyAjqLG8.js} +2 -2
  56. package/dist/chunks/{favoriteStore-Cemc-26t.js.map → favoriteStore-SyAjqLG8.js.map} +1 -1
  57. package/dist/chunks/{popupStore-Bi6o78lP.js → popupStore-BrKcPw7K.js} +2 -2
  58. package/dist/chunks/{popupStore-Bi6o78lP.js.map → popupStore-BrKcPw7K.js.map} +1 -1
  59. package/dist/chunks/{popupStore-DUApUBF2.cjs → popupStore-ChbYTqy1.cjs} +2 -2
  60. package/dist/chunks/{popupStore-DUApUBF2.cjs.map → popupStore-ChbYTqy1.cjs.map} +1 -1
  61. package/dist/chunks/{sha256-DiIRoCQ8.cjs → sha256-BnWVPP1K.cjs} +2 -2
  62. package/dist/chunks/{sha256-DiIRoCQ8.cjs.map → sha256-BnWVPP1K.cjs.map} +1 -1
  63. package/dist/chunks/{sha256-BZfJs28k.js → sha256-D80RpYO2.js} +3 -3
  64. package/dist/chunks/{sha256-BZfJs28k.js.map → sha256-D80RpYO2.js.map} +1 -1
  65. package/dist/chunks/{usePopup-BSqsnSz7.js → usePopup-DnfKRiYs.js} +27 -27
  66. package/dist/chunks/usePopup-DnfKRiYs.js.map +1 -0
  67. package/dist/chunks/usePopup-Domnpg55.cjs +2 -0
  68. package/dist/chunks/usePopup-Domnpg55.cjs.map +1 -0
  69. package/dist/components/common/BookmarkMngModal.d.ts +1 -1
  70. package/dist/components/common/BookmarkMngModal.d.ts.map +1 -1
  71. package/dist/components/common/BookmarkPopver.d.ts +2 -2
  72. package/dist/components/common/BookmarkPopver.d.ts.map +1 -1
  73. package/dist/components/common/BwgButtonGroup.d.ts +5 -5
  74. package/dist/components/common/BwgButtonGroup.d.ts.map +1 -1
  75. package/dist/components/common/BwgCmptArea.d.ts +7 -7
  76. package/dist/components/common/BwgCmptArea.d.ts.map +1 -1
  77. package/dist/components/common/BwgCol.d.ts +2 -1
  78. package/dist/components/common/BwgCol.d.ts.map +1 -1
  79. package/dist/components/common/BwgConfigProvider.d.ts +2 -2
  80. package/dist/components/common/BwgConfigProvider.d.ts.map +1 -1
  81. package/dist/components/common/BwgDetail.d.ts +2 -1
  82. package/dist/components/common/BwgDetail.d.ts.map +1 -1
  83. package/dist/components/common/BwgDraggable.d.ts +5 -5
  84. package/dist/components/common/BwgDraggable.d.ts.map +1 -1
  85. package/dist/components/common/BwgDrawer.d.ts +2 -1
  86. package/dist/components/common/BwgDrawer.d.ts.map +1 -1
  87. package/dist/components/common/BwgEditor.d.ts +5 -5
  88. package/dist/components/common/BwgEditor.d.ts.map +1 -1
  89. package/dist/components/common/BwgGrid.d.ts +8 -8
  90. package/dist/components/common/BwgGrid.d.ts.map +1 -1
  91. package/dist/components/common/BwgInfoArea.d.ts +4 -4
  92. package/dist/components/common/BwgInfoArea.d.ts.map +1 -1
  93. package/dist/components/common/BwgPopup.d.ts +3 -3
  94. package/dist/components/common/BwgPopup.d.ts.map +1 -1
  95. package/dist/components/common/BwgRow.d.ts +2 -1
  96. package/dist/components/common/BwgRow.d.ts.map +1 -1
  97. package/dist/components/common/BwgTitleBox.d.ts +5 -4
  98. package/dist/components/common/BwgTitleBox.d.ts.map +1 -1
  99. package/dist/components/common/BwgView.d.ts +4 -4
  100. package/dist/components/common/BwgView.d.ts.map +1 -1
  101. package/dist/components/common/ContentBox.d.ts +3 -3
  102. package/dist/components/common/ContentBox.d.ts.map +1 -1
  103. package/dist/components/common/ContentLayOut.d.ts +6 -5
  104. package/dist/components/common/ContentLayOut.d.ts.map +1 -1
  105. package/dist/components/common/GlobalConfigProvider.d.ts +2 -2
  106. package/dist/components/common/GlobalConfigProvider.d.ts.map +1 -1
  107. package/dist/components/common/QuickServiceToggle.d.ts +4 -4
  108. package/dist/components/common/QuickServiceToggle.d.ts.map +1 -1
  109. package/dist/components/common/SSOHandler.d.ts +2 -1
  110. package/dist/components/common/SSOHandler.d.ts.map +1 -1
  111. package/dist/components/common/SearchBox.d.ts +5 -4
  112. package/dist/components/common/SearchBox.d.ts.map +1 -1
  113. package/dist/components/common/index.cjs +1 -1
  114. package/dist/components/common/index.js +2 -2
  115. package/dist/components/core/BwgButton.d.ts +3 -2
  116. package/dist/components/core/BwgButton.d.ts.map +1 -1
  117. package/dist/components/core/BwgDatePicker.d.ts +3 -3
  118. package/dist/components/core/BwgDatePicker.d.ts.map +1 -1
  119. package/dist/components/core/BwgDownload.d.ts +2 -2
  120. package/dist/components/core/BwgDownload.d.ts.map +1 -1
  121. package/dist/components/core/BwgForm.d.ts +2 -1
  122. package/dist/components/core/BwgForm.d.ts.map +1 -1
  123. package/dist/components/core/BwgFormItem.d.ts +4 -4
  124. package/dist/components/core/BwgFormItem.d.ts.map +1 -1
  125. package/dist/components/core/BwgInput.d.ts +2 -2
  126. package/dist/components/core/BwgInput.d.ts.map +1 -1
  127. package/dist/components/core/BwgLargeUploader.d.ts +2 -2
  128. package/dist/components/core/BwgLargeUploader.d.ts.map +1 -1
  129. package/dist/components/core/BwgMaskedInput.d.ts +2 -2
  130. package/dist/components/core/BwgMaskedInput.d.ts.map +1 -1
  131. package/dist/components/core/BwgMaskedPicker.d.ts +2 -2
  132. package/dist/components/core/BwgMaskedPicker.d.ts.map +1 -1
  133. package/dist/components/core/BwgRangePicker.d.ts +3 -3
  134. package/dist/components/core/BwgRangePicker.d.ts.map +1 -1
  135. package/dist/components/core/BwgSearch.d.ts +1 -1
  136. package/dist/components/core/BwgSearch.d.ts.map +1 -1
  137. package/dist/components/core/BwgUploader.d.ts +2 -2
  138. package/dist/components/core/BwgUploader.d.ts.map +1 -1
  139. package/dist/components/core/index.cjs +1 -1
  140. package/dist/components/core/index.js +2 -2
  141. package/dist/components/guide/index.cjs +1 -1
  142. package/dist/components/guide/index.cjs.map +1 -1
  143. package/dist/components/guide/index.js +3 -3
  144. package/dist/components/guide/index.js.map +1 -1
  145. package/dist/components/layout/ErrorBound.d.ts +3 -3
  146. package/dist/components/layout/ErrorBound.d.ts.map +1 -1
  147. package/dist/components/layout/LoadingOverlay.d.ts +3 -2
  148. package/dist/components/layout/LoadingOverlay.d.ts.map +1 -1
  149. package/dist/components/layout/PrivateProtectedOverlay.d.ts +3 -2
  150. package/dist/components/layout/PrivateProtectedOverlay.d.ts.map +1 -1
  151. package/dist/components/layout/ProgressOverlay.d.ts +2 -2
  152. package/dist/components/layout/ProgressOverlay.d.ts.map +1 -1
  153. package/dist/components/layout/ViewContainer.d.ts +3 -3
  154. package/dist/components/layout/ViewContainer.d.ts.map +1 -1
  155. package/dist/components/layout/index.cjs +1 -1
  156. package/dist/components/layout/index.js +2 -2
  157. package/dist/components/popup/MenuReport.d.ts +2 -2
  158. package/dist/components/popup/MenuReport.d.ts.map +1 -1
  159. package/dist/index.cjs +1 -1
  160. package/dist/index.js +14 -14
  161. package/dist/provider/contexts/AuthContext.d.ts +3 -2
  162. package/dist/provider/contexts/AuthContext.d.ts.map +1 -1
  163. package/dist/provider/contexts/CommonCodeContext.d.ts +2 -2
  164. package/dist/provider/contexts/CommonCodeContext.d.ts.map +1 -1
  165. package/dist/provider/contexts/ScreenProtectContext.d.ts +5 -5
  166. package/dist/provider/contexts/ScreenProtectContext.d.ts.map +1 -1
  167. package/dist/provider/contexts/SearchBoxContext.d.ts +3 -3
  168. package/dist/provider/contexts/SearchBoxContext.d.ts.map +1 -1
  169. package/dist/provider/contexts/ServiceCodeContext.d.ts +2 -2
  170. package/dist/provider/contexts/ServiceCodeContext.d.ts.map +1 -1
  171. package/dist/provider/index.cjs +1 -1
  172. package/dist/provider/index.js +4 -4
  173. package/dist/stores/index.cjs +1 -1
  174. package/dist/stores/index.d.ts.map +1 -1
  175. package/dist/stores/index.js +6 -6
  176. package/dist/stores/menuViewStore.d.ts +6 -5
  177. package/dist/stores/menuViewStore.d.ts.map +1 -1
  178. package/dist/utils/index.cjs +1 -1
  179. package/dist/utils/index.js +2 -2
  180. package/package.json +2 -3
  181. package/dist/chunks/AuthContext-CXng9fj0.cjs +0 -2
  182. package/dist/chunks/AuthContext-CXng9fj0.cjs.map +0 -1
  183. package/dist/chunks/AuthContext-Ei2P-z4d.js.map +0 -1
  184. package/dist/chunks/BwgSpace-b0hmM1Ht.cjs +0 -2
  185. package/dist/chunks/BwgSwitch-B79pseQM.js.map +0 -1
  186. package/dist/chunks/BwgSwitch-CAI-kEaM.cjs +0 -2
  187. package/dist/chunks/BwgSwitch-CAI-kEaM.cjs.map +0 -1
  188. package/dist/chunks/BwgUploader-BcVlE61B.js.map +0 -1
  189. package/dist/chunks/BwgUploader-DaNV2URT.cjs +0 -3
  190. package/dist/chunks/BwgUploader-DaNV2URT.cjs.map +0 -1
  191. package/dist/chunks/LoadingOverlay-DAZJF5wg.js +0 -19
  192. package/dist/chunks/LoadingOverlay-DAZJF5wg.js.map +0 -1
  193. package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs +0 -2
  194. package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs.map +0 -1
  195. package/dist/chunks/SSOHandler-CkPcSHIm.js.map +0 -1
  196. package/dist/chunks/SSOHandler-DiW4Ft9i.cjs.map +0 -1
  197. package/dist/chunks/ScreenProtectContext-3my4PHFa.js +0 -154
  198. package/dist/chunks/ScreenProtectContext-3my4PHFa.js.map +0 -1
  199. package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs +0 -2
  200. package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs.map +0 -1
  201. package/dist/chunks/SearchBoxContext-BCvEYyFk.js.map +0 -1
  202. package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs +0 -2
  203. package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs.map +0 -1
  204. package/dist/chunks/ViewContainer-Bhq22_B3.cjs +0 -36
  205. package/dist/chunks/ViewContainer-Bhq22_B3.cjs.map +0 -1
  206. package/dist/chunks/ViewContainer-CjpJqoGG.js.map +0 -1
  207. package/dist/chunks/apiUtils-BZ6s0_NI.cjs +0 -3
  208. package/dist/chunks/apiUtils-BZ6s0_NI.cjs.map +0 -1
  209. package/dist/chunks/apiUtils-DxzLqPhU.js.map +0 -1
  210. package/dist/chunks/jsx-runtime-CeSfJrVB.cjs +0 -31
  211. package/dist/chunks/jsx-runtime-CeSfJrVB.cjs.map +0 -1
  212. package/dist/chunks/jsx-runtime-Dpn_P65e.js +0 -634
  213. package/dist/chunks/jsx-runtime-Dpn_P65e.js.map +0 -1
  214. package/dist/chunks/usePopup-BSqsnSz7.js.map +0 -1
  215. package/dist/chunks/usePopup-D2JEuDrO.cjs +0 -2
  216. package/dist/chunks/usePopup-D2JEuDrO.cjs.map +0 -1
@@ -1,18 +1,18 @@
1
- import { j as c } from "./jsx-runtime-Dpn_P65e.js";
2
- import { Button as Y, Form as B, ConfigProvider as pt, Checkbox as we, message as P, Card as Ge, List as W, Spin as mt, Upload as H, Tooltip as vt, Typography as Dt, Flex as xe, Progress as yt, notification as St, Input as Q, DatePicker as Ot, Select as Xe, Space as pe, InputNumber as Tt, Radio as bt } from "antd";
3
- import { c as k } from "./BwgSwitch-B79pseQM.js";
4
- import It, { useState as L, useEffect as R, useRef as $, useMemo as j, createContext as Et, memo as Ct, useLayoutEffect as wt, useCallback as xt, isValidElement as Nt, cloneElement as Ne, useContext as Pt } from "react";
5
- import { PaperClipOutlined as _t, DownloadOutlined as Rt, CloseCircleOutlined as Lt, DeleteOutlined as jt, InboxOutlined as Mt, UploadOutlined as We, CloudUploadOutlined as Ft, CheckCircleOutlined as kt, FileTextOutlined as At, SearchOutlined as Ht } from "@ant-design/icons";
6
- import { a as Ut, aA as A, c as U, aQ as Yt } from "./apiUtils-DxzLqPhU.js";
7
- import { isEmpty as Bt, debounce as $t, findIndex as J } from "lodash";
1
+ import { jsx as c, jsxs as W } from "react/jsx-runtime";
2
+ import { Button as Y, Form as B, ConfigProvider as mt, Checkbox as Pe, message as _, Card as Xe, List as K, Spin as vt, Upload as j, Tooltip as Dt, Typography as yt, Flex as _e, Progress as St, notification as Ot, Input as ee, DatePicker as Tt, Select as We, Space as me, InputNumber as bt, Radio as It } from "antd";
3
+ import { c as A } from "./BwgSwitch-DdHo4gYR.js";
4
+ import { useState as L, useEffect as R, useRef as $, useMemo as M, createContext as Et, memo as Ct, useLayoutEffect as wt, useCallback as Nt, isValidElement as Pt, cloneElement as ve, useContext as _t } from "react";
5
+ import { PaperClipOutlined as xt, DownloadOutlined as Rt, CloseCircleOutlined as Lt, DeleteOutlined as Mt, InboxOutlined as Ft, UploadOutlined as Ke, CloudUploadOutlined as kt, CheckCircleOutlined as At, FileTextOutlined as Ht, SearchOutlined as jt } from "@ant-design/icons";
6
+ import { isEmpty as Ut, debounce as Yt, findIndex as Z } from "lodash";
7
+ import { a as Bt, aA as H, c as U, aQ as $t } from "./apiUtils-DPUgfmKk.js";
8
8
  import Vt from "jszip";
9
- import Ke from "imask";
10
- import ee from "dayjs";
11
- import { u as zt } from "./popupStore-Bi6o78lP.js";
12
- const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi = ({ itemProps: t, inputProps: e }) => {
9
+ import Je from "imask";
10
+ import te from "dayjs";
11
+ import { u as zt } from "./popupStore-BrKcPw7K.js";
12
+ const Ci = (t) => /* @__PURE__ */ c(Y, { ...t, className: "bwg-btn" }), wi = ({ itemProps: t, inputProps: e }) => {
13
13
  const r = B.useFormInstance(), [n, i] = L(
14
14
  t?.initialValue ?? []
15
- ), [s, a] = L([]), o = s.length > 0 && s.length == n?.length, u = n?.length > 0 && n.length < s.length;
15
+ ), [o, a] = L([]), s = o.length > 0 && o.length == n?.length, u = n?.length > 0 && n.length < o.length;
16
16
  R(() => {
17
17
  a(l(e?.options));
18
18
  }, [e?.options]), R(() => {
@@ -24,11 +24,11 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
24
24
  d.push(b.value);
25
25
  }), d;
26
26
  }, p = (g) => {
27
- i(g.target.checked ? s : []), r.setFieldValue(t?.name, g.target.checked ? s : []);
27
+ i(g.target.checked ? o : []), r.setFieldValue(t?.name, g.target.checked ? o : []);
28
28
  }, m = (g) => {
29
29
  i(g), r.setFieldValue(t?.name, g), e?.onChange && typeof e?.onChange == "function" && e?.onChange(g);
30
30
  };
31
- return /* @__PURE__ */ c.jsx(k, { ...t, children: /* @__PURE__ */ c.jsxs(pt, { theme: {
31
+ return /* @__PURE__ */ c(A, { ...t, children: /* @__PURE__ */ W(mt, { theme: {
32
32
  components: {
33
33
  Checkbox: {
34
34
  colorPrimary: "var(--check-primary)",
@@ -37,17 +37,17 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
37
37
  }
38
38
  }
39
39
  }, children: [
40
- e?.allCheck && /* @__PURE__ */ c.jsx(
41
- we,
40
+ e?.allCheck && /* @__PURE__ */ c(
41
+ Pe,
42
42
  {
43
43
  indeterminate: u,
44
- checked: o,
44
+ checked: s,
45
45
  onChange: p,
46
46
  children: "전체선택"
47
47
  }
48
48
  ),
49
- /* @__PURE__ */ c.jsx(
50
- we.Group,
49
+ /* @__PURE__ */ c(
50
+ Pe.Group,
51
51
  {
52
52
  options: e?.options,
53
53
  value: n,
@@ -55,47 +55,47 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
55
55
  }
56
56
  )
57
57
  ] }) });
58
- }, xi = ({
58
+ }, Ni = ({
59
59
  fileGrpKey: t,
60
60
  onFetchFilesTrxCd: e = "SCMFILE00101",
61
61
  readOnly: r = !1,
62
62
  sysCd: n = __SYS_CD__
63
63
  }) => {
64
- const [i, s] = L([]);
64
+ const [i, o] = L([]);
65
65
  R(() => {
66
- t && e ? n != __SYS_CD__ ? Ut(n, e, {
67
- crprCd: A()?.crprCd,
66
+ t && e ? n != __SYS_CD__ ? Bt(n, e, {
67
+ crprCd: H()?.crprCd,
68
68
  sysCd: n,
69
69
  fileGrpKey: t
70
- }).then((o) => {
71
- if (o?.sub) {
72
- const u = o.sub.map((l) => ({
70
+ }).then((s) => {
71
+ if (s?.sub) {
72
+ const u = s.sub.map((l) => ({
73
73
  uid: l.fileKey,
74
74
  name: l.lgclFileNm,
75
75
  filePath: l.filePath
76
76
  }));
77
- s(u);
77
+ o(u);
78
78
  }
79
- }).catch((o) => {
80
- console.error("파일 목록 조회 서비스 호출에 실패했습니다.", o), P.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
79
+ }).catch((s) => {
80
+ console.error("파일 목록 조회 서비스 호출에 실패했습니다.", s), _.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
81
81
  }) : U(e, {
82
- crprCd: A()?.crprCd,
82
+ crprCd: H()?.crprCd,
83
83
  sysCd: n,
84
84
  fileGrpKey: t
85
- }).then((o) => {
86
- if (o?.sub) {
87
- const u = o.sub.map((l) => ({
85
+ }).then((s) => {
86
+ if (s?.sub) {
87
+ const u = s.sub.map((l) => ({
88
88
  uid: l.fileKey,
89
89
  name: l.lgclFileNm,
90
90
  filePath: l.filePath
91
91
  }));
92
- s(u);
92
+ o(u);
93
93
  }
94
- }).catch((o) => {
95
- console.error("파일 목록 조회 서비스 호출에 실패했습니다.", o), P.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
96
- }) : s([]);
94
+ }).catch((s) => {
95
+ console.error("파일 목록 조회 서비스 호출에 실패했습니다.", s), _.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
96
+ }) : o([]);
97
97
  }, [t, e]);
98
- const a = async (o) => {
98
+ const a = async (s) => {
99
99
  try {
100
100
  let u;
101
101
  n != __SYS_CD__ ? u = "/api/download/" + n : u = "/api/download";
@@ -107,9 +107,9 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
107
107
  // 여기에 필요한 다른 헤더(예: 인증 토큰)를 추가할 수 있습니다.
108
108
  },
109
109
  body: JSON.stringify({
110
- filePath: o.filePath,
111
- logicalName: o.name,
112
- fileKey: o.uid
110
+ filePath: s.filePath,
111
+ logicalName: s.name,
112
+ fileKey: s.uid
113
113
  })
114
114
  });
115
115
  if (!l.ok) {
@@ -117,37 +117,37 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
117
117
  throw new Error(b);
118
118
  }
119
119
  const p = await l.blob(), m = window.URL.createObjectURL(p), g = document.createElement("a");
120
- g.href = m, g.setAttribute("download", o.name), document.body.appendChild(g), g.click(), document.body.removeChild(g), window.URL.revokeObjectURL(m);
120
+ g.href = m, g.setAttribute("download", s.name), document.body.appendChild(g), g.click(), document.body.removeChild(g), window.URL.revokeObjectURL(m);
121
121
  } catch (u) {
122
- console.error(u), P.error(
122
+ console.error(u), _.error(
123
123
  u.message || "파일을 다운로드하는 중 오류가 발생했습니다."
124
124
  );
125
125
  }
126
126
  };
127
- return Bt(i) ? null : /* @__PURE__ */ c.jsx(Ge, { title: "파일 목록", children: /* @__PURE__ */ c.jsx(
128
- W,
127
+ return Ut(i) ? null : /* @__PURE__ */ c(Xe, { title: "파일 목록", children: /* @__PURE__ */ c(
128
+ K,
129
129
  {
130
130
  dataSource: i,
131
- renderItem: (o) => /* @__PURE__ */ c.jsx(
132
- W.Item,
131
+ renderItem: (s) => /* @__PURE__ */ c(
132
+ K.Item,
133
133
  {
134
134
  actions: r ? [] : [
135
- /* @__PURE__ */ c.jsx(
135
+ /* @__PURE__ */ c(
136
136
  Y,
137
137
  {
138
138
  type: "text",
139
- icon: /* @__PURE__ */ c.jsx(Rt, {}),
140
- onClick: () => a(o)
139
+ icon: /* @__PURE__ */ c(Rt, {}),
140
+ onClick: () => a(s)
141
141
  },
142
142
  "download"
143
143
  )
144
144
  ],
145
- children: /* @__PURE__ */ c.jsx(W.Item.Meta, { avatar: /* @__PURE__ */ c.jsx(_t, {}), title: o.name })
145
+ children: /* @__PURE__ */ c(K.Item.Meta, { avatar: /* @__PURE__ */ c(xt, {}), title: s.name })
146
146
  }
147
147
  )
148
148
  }
149
149
  ) });
150
- }, { Text: te, Link: Ni } = Dt, { Dragger: qt } = H, Gt = [
150
+ }, { Text: re, Link: Pi } = yt, { Dragger: qt } = j, Gt = [
151
151
  ".pdf",
152
152
  ".xlsx",
153
153
  ".xls",
@@ -167,47 +167,47 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
167
167
  ".zip"
168
168
  ], Xt = (t, e = 2) => {
169
169
  if (t === 0) return "0 Bytes";
170
- const r = 1024, n = e < 0 ? 0 : e, i = ["Bytes", "KB", "MB", "GB", "TB"], s = Math.floor(Math.log(t) / Math.log(r));
171
- return parseFloat((t / Math.pow(r, s)).toFixed(n)) + " " + i[s];
172
- }, Pi = ({
170
+ const r = 1024, n = e < 0 ? 0 : e, i = ["Bytes", "KB", "MB", "GB", "TB"], o = Math.floor(Math.log(t) / Math.log(r));
171
+ return parseFloat((t / Math.pow(r, o)).toFixed(n)) + " " + i[o];
172
+ }, _i = ({
173
173
  title: t = "첨부파일",
174
174
  fileGrpKey: e,
175
175
  onUploadComplete: r,
176
176
  onSuccessTrxCd: n = "SCMFILE00102",
177
177
  // BwgUploader와 동일한 기본 trxCd 설정
178
178
  anotherServiceTrxCd: i = "SCMFILE00105",
179
- allowedExtensions: s = Gt,
179
+ allowedExtensions: o = Gt,
180
180
  maxFileSize: a = 2048
181
181
  // 기본값 2GB
182
182
  }) => {
183
- const [o, u] = L([]), [l, p] = L(!1), [m, g] = L(!1), [d, b] = L(0), D = (h) => {
184
- if (s && s.length > 0) {
183
+ const [s, u] = L([]), [l, p] = L(!1), [m, g] = L(!1), [d, b] = L(0), D = (h) => {
184
+ if (o && o.length > 0) {
185
185
  const f = ((T) => {
186
186
  const S = T.lastIndexOf(".");
187
187
  return S === -1 ? "" : T.substring(S).toLowerCase();
188
188
  })(h.name);
189
- if (!s.includes(f))
190
- return P.error(
191
- `${h.name} 파일은 허용되지 않는 확장자입니다. (${s.join(
189
+ if (!o.includes(f))
190
+ return _.error(
191
+ `${h.name} 파일은 허용되지 않는 확장자입니다. (${o.join(
192
192
  ", "
193
193
  )}만 가능)`
194
194
  ), !1;
195
195
  }
196
196
  return !0;
197
197
  }, E = async () => {
198
- const h = o.filter((O) => O.status !== "done"), I = h.reduce(
199
- (O, x) => O + (x.size || 0),
198
+ const h = s.filter((O) => O.status !== "done"), I = h.reduce(
199
+ (O, N) => O + (N.size || 0),
200
200
  0
201
201
  ), f = 2 * 1024 * 1024 * 1024;
202
202
  if (I > f) {
203
- St.error({
203
+ Ot.error({
204
204
  message: "업로드 용량 초과",
205
205
  description: "한 번에 업로드할 수 있는 총 파일 용량은 2GB를 초과할 수 없습니다."
206
206
  });
207
207
  return;
208
208
  }
209
209
  if (h.length === 0) {
210
- P.warning(
210
+ _.warning(
211
211
  "업로드할 파일이 없거나 모든 파일이 이미 업로드되었습니다."
212
212
  );
213
213
  return;
@@ -216,8 +216,8 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
216
216
  let T;
217
217
  try {
218
218
  const O = new Vt();
219
- h.forEach((x) => {
220
- x.originFileObj && O.file(x.name, x.originFileObj);
219
+ h.forEach((N) => {
220
+ N.originFileObj && O.file(N.name, N.originFileObj);
221
221
  }), T = await O.generateAsync({
222
222
  type: "blob",
223
223
  compression: "DEFLATE",
@@ -227,53 +227,53 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
227
227
  }
228
228
  });
229
229
  } catch (O) {
230
- g(!1), P.error("파일을 압축하는 중 오류가 발생했습니다."), console.error("Zipping error:", O);
230
+ g(!1), _.error("파일을 압축하는 중 오류가 발생했습니다."), console.error("Zipping error:", O);
231
231
  return;
232
232
  }
233
233
  g(!1);
234
234
  const S = new FormData();
235
235
  S.append("file", T, "upload.zip"), p(!0), b(0);
236
236
  try {
237
- const O = await new Promise((C, N) => {
238
- const _ = new XMLHttpRequest();
239
- _.open("POST", "/api/upload-large", !0), _.upload.onprogress = (w) => {
237
+ const O = await new Promise((C, P) => {
238
+ const x = new XMLHttpRequest();
239
+ x.open("POST", "/api/upload-large", !0), x.upload.onprogress = (w) => {
240
240
  if (w.lengthComputable) {
241
241
  const z = Math.round(
242
242
  w.loaded / w.total * 100
243
243
  );
244
244
  b(z);
245
245
  }
246
- }, _.onload = () => {
247
- if (_.status >= 200 && _.status < 300)
246
+ }, x.onload = () => {
247
+ if (x.status >= 200 && x.status < 300)
248
248
  try {
249
- const w = JSON.parse(_.responseText);
250
- w.success ? C(w) : N(
249
+ const w = JSON.parse(x.responseText);
250
+ w.success ? C(w) : P(
251
251
  new Error(w.message || "파일 업로드에 실패했습니다.")
252
252
  );
253
253
  } catch {
254
- N(new Error("잘못된 서버 응답입니다."));
254
+ P(new Error("잘못된 서버 응답입니다."));
255
255
  }
256
256
  else
257
257
  try {
258
- const w = JSON.parse(_.responseText);
259
- N(new Error(w.message || `서버 오류: ${_.status}`));
258
+ const w = JSON.parse(x.responseText);
259
+ P(new Error(w.message || `서버 오류: ${x.status}`));
260
260
  } catch {
261
- N(new Error(`서버 오류: ${_.status}`));
261
+ P(new Error(`서버 오류: ${x.status}`));
262
262
  }
263
- }, _.onerror = () => {
264
- N(new Error("네트워크 오류가 발생했습니다."));
265
- }, _.send(S);
263
+ }, x.onerror = () => {
264
+ P(new Error("네트워크 오류가 발생했습니다."));
265
+ }, x.send(S);
266
266
  });
267
- P.success(
267
+ _.success(
268
268
  O.message || "압축 파일이 성공적으로 업로드되었습니다."
269
269
  );
270
- const x = o.map(
271
- (C) => h.find((N) => N.uid === C.uid) ? { ...C, status: "done" } : C
270
+ const N = s.map(
271
+ (C) => h.find((P) => P.uid === C.uid) ? { ...C, status: "done" } : C
272
272
  );
273
- if (u(x), n && O.uploadedFiles && Array.isArray(O.uploadedFiles)) {
274
- const C = A();
275
- O.uploadedFiles.forEach((N) => {
276
- const _ = {
273
+ if (u(N), n && O.uploadedFiles && Array.isArray(O.uploadedFiles)) {
274
+ const C = H();
275
+ O.uploadedFiles.forEach((P) => {
276
+ const x = {
277
277
  crprCd: C?.crprCd,
278
278
  sysCd: __SYS_CD__,
279
279
  fileGrpKey: e,
@@ -282,17 +282,17 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
282
282
  crprCd: C?.crprCd,
283
283
  sysCd: __SYS_CD__,
284
284
  fileGrpKey: e,
285
- physFileNm: N.fileNameP,
286
- lgclFileNm: N.fileNameL,
287
- filePath: N.filePath,
288
- fileExtn: N.fileExt,
289
- fileSize: N.fileSize,
285
+ physFileNm: P.fileNameP,
286
+ lgclFileNm: P.fileNameL,
287
+ filePath: P.filePath,
288
+ fileExtn: P.fileExt,
289
+ fileSize: P.fileSize,
290
290
  mltpYn: "Y"
291
291
  }
292
292
  ]
293
293
  };
294
- U(n, _).then((w) => {
295
- const z = o.map((q) => ({
294
+ U(n, x).then((w) => {
295
+ const z = s.map((q) => ({
296
296
  crprCd: C?.crprCd,
297
297
  sysCd: __SYS_CD__,
298
298
  fileGrpKey: w.sub[0].fileGrpKey,
@@ -307,62 +307,62 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
307
307
  sub: z
308
308
  });
309
309
  }).catch((w) => {
310
- console.error("후처리 서비스 호출 실패:", w), P.error(
311
- `${N.fileNameL} 파일의 후처리 작업에 실패했습니다.`
310
+ console.error("후처리 서비스 호출 실패:", w), _.error(
311
+ `${P.fileNameL} 파일의 후처리 작업에 실패했습니다.`
312
312
  );
313
313
  }), r && r({
314
- fileNameP: N.fileNameP,
315
- fileNameL: N.fileNameL
314
+ fileNameP: P.fileNameP,
315
+ fileNameL: P.fileNameL
316
316
  });
317
317
  });
318
318
  }
319
319
  } catch (O) {
320
- P.error(O.message || "파일 업로드 중 오류가 발생했습니다.");
321
- const x = o.map(
322
- (C) => h.find((N) => N.uid === C.uid) ? {
320
+ _.error(O.message || "파일 업로드 중 오류가 발생했습니다.");
321
+ const N = s.map(
322
+ (C) => h.find((P) => P.uid === C.uid) ? {
323
323
  ...C,
324
324
  status: "error",
325
325
  response: O.message || "파일 업로드 중 오류가 발생했습니다."
326
326
  } : C
327
327
  );
328
- u(x);
328
+ u(N);
329
329
  } finally {
330
330
  p(!1);
331
331
  }
332
332
  }, v = {
333
333
  multiple: !0,
334
- fileList: o,
335
- beforeUpload: (h) => D(h) ? a && h.size >= a * 1024 * 1024 ? (P.error(
334
+ fileList: s,
335
+ beforeUpload: (h) => D(h) ? a && h.size >= a * 1024 * 1024 ? (_.error(
336
336
  `대용량 첨부 파일 최대 크기는 ${(a / 1024).toFixed(
337
337
  1
338
338
  )}GB입니다.`
339
- ), H.LIST_IGNORE) : !1 : H.LIST_IGNORE,
339
+ ), j.LIST_IGNORE) : !1 : j.LIST_IGNORE,
340
340
  onChange: ({ fileList: h }) => {
341
- const I = new Map(o.map((f) => [f.uid, f]));
341
+ const I = new Map(s.map((f) => [f.uid, f]));
342
342
  h.forEach((f) => {
343
343
  I.set(f.uid, f);
344
344
  }), u(Array.from(I.values()));
345
345
  },
346
346
  onRemove: (h) => {
347
- const I = o.filter((f) => f.uid !== h.uid);
347
+ const I = s.filter((f) => f.uid !== h.uid);
348
348
  u(I);
349
349
  },
350
350
  showUploadList: !1
351
351
  // 수동으로 목록을 렌더링하므로 antd의 기본 목록은 숨깁니다.
352
352
  };
353
- return /* @__PURE__ */ c.jsx(
354
- mt,
353
+ return /* @__PURE__ */ c(
354
+ vt,
355
355
  {
356
356
  spinning: l || m,
357
357
  tip: m ? "파일 압축 중..." : `파일 업로드 중... ${d}%`,
358
- children: /* @__PURE__ */ c.jsxs("div", { className: "bwg-large-uploader-container", children: [
359
- /* @__PURE__ */ c.jsx(
360
- Ge,
358
+ children: /* @__PURE__ */ W("div", { className: "bwg-large-uploader-container", children: [
359
+ /* @__PURE__ */ c(
360
+ Xe,
361
361
  {
362
- title: /* @__PURE__ */ c.jsx(te, { strong: !0, children: t }),
363
- extra: /* @__PURE__ */ c.jsx(H, { ...v, children: /* @__PURE__ */ c.jsx(Y, { icon: /* @__PURE__ */ c.jsx(We, {}), children: "파일 선택" }) }),
362
+ title: /* @__PURE__ */ c(re, { strong: !0, children: t }),
363
+ extra: /* @__PURE__ */ c(j, { ...v, children: /* @__PURE__ */ c(Y, { icon: /* @__PURE__ */ c(Ke, {}), children: "파일 선택" }) }),
364
364
  bodyStyle: { padding: 0 },
365
- children: /* @__PURE__ */ c.jsx(
365
+ children: /* @__PURE__ */ c(
366
366
  qt,
367
367
  {
368
368
  ...v,
@@ -371,40 +371,40 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
371
371
  background: "transparent",
372
372
  padding: 0
373
373
  },
374
- children: /* @__PURE__ */ c.jsx("div", { className: "upload-list-container", children: o.length > 0 ? /* @__PURE__ */ c.jsx(
375
- W,
374
+ children: /* @__PURE__ */ c("div", { className: "upload-list-container", children: s.length > 0 ? /* @__PURE__ */ c(
375
+ K,
376
376
  {
377
377
  style: { textAlign: "left" },
378
- dataSource: o,
378
+ dataSource: s,
379
379
  renderItem: (h) => {
380
380
  const I = h.status === "done", f = h.status === "error";
381
381
  let T;
382
- return I ? T = /* @__PURE__ */ c.jsx(
383
- kt,
382
+ return I ? T = /* @__PURE__ */ c(
383
+ At,
384
384
  {
385
385
  style: { color: "#52c41a", fontSize: 14 }
386
386
  }
387
- ) : f ? T = /* @__PURE__ */ c.jsx(
388
- vt,
387
+ ) : f ? T = /* @__PURE__ */ c(
388
+ Dt,
389
389
  {
390
390
  title: typeof h.response == "string" ? h.response : "업로드 실패",
391
- children: /* @__PURE__ */ c.jsx(
391
+ children: /* @__PURE__ */ c(
392
392
  Lt,
393
393
  {
394
394
  style: { color: "#ff4d4f", fontSize: 14 }
395
395
  }
396
396
  )
397
397
  }
398
- ) : T = /* @__PURE__ */ c.jsx(At, { style: { fontSize: 14 } }), /* @__PURE__ */ c.jsx(
399
- W.Item,
398
+ ) : T = /* @__PURE__ */ c(Ht, { style: { fontSize: 14 } }), /* @__PURE__ */ c(
399
+ K.Item,
400
400
  {
401
401
  actions: [
402
- /* @__PURE__ */ c.jsx(te, { type: "secondary", children: Xt(h.size || 0) }, "size"),
403
- /* @__PURE__ */ c.jsx(
402
+ /* @__PURE__ */ c(re, { type: "secondary", children: Xt(h.size || 0) }, "size"),
403
+ /* @__PURE__ */ c(
404
404
  Y,
405
405
  {
406
406
  type: "text",
407
- icon: /* @__PURE__ */ c.jsx(jt, {}),
407
+ icon: /* @__PURE__ */ c(Mt, {}),
408
408
  onClick: (S) => {
409
409
  S.stopPropagation(), v.onRemove?.(h);
410
410
  },
@@ -413,11 +413,11 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
413
413
  "delete"
414
414
  )
415
415
  ],
416
- children: /* @__PURE__ */ c.jsx(
417
- W.Item.Meta,
416
+ children: /* @__PURE__ */ c(
417
+ K.Item.Meta,
418
418
  {
419
419
  avatar: T,
420
- title: /* @__PURE__ */ c.jsx(te, { type: f ? "danger" : void 0, children: h.name })
420
+ title: /* @__PURE__ */ c(re, { type: f ? "danger" : void 0, children: h.name })
421
421
  }
422
422
  )
423
423
  },
@@ -425,8 +425,8 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
425
425
  );
426
426
  }
427
427
  }
428
- ) : /* @__PURE__ */ c.jsxs(
429
- xe,
428
+ ) : /* @__PURE__ */ W(
429
+ _e,
430
430
  {
431
431
  gap: "middle",
432
432
  align: "center",
@@ -434,8 +434,8 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
434
434
  vertical: !0,
435
435
  style: { padding: "20px 0", minHeight: "120px" },
436
436
  children: [
437
- /* @__PURE__ */ c.jsx(Mt, { style: { fontSize: "32px", color: "#999" } }),
438
- /* @__PURE__ */ c.jsx(te, { type: "secondary", children: "업로드할 파일을 선택하거나 이 영역으로 드래그하세요." })
437
+ /* @__PURE__ */ c(Ft, { style: { fontSize: "32px", color: "#999" } }),
438
+ /* @__PURE__ */ c(re, { type: "secondary", children: "업로드할 파일을 선택하거나 이 영역으로 드래그하세요." })
439
439
  ]
440
440
  }
441
441
  ) })
@@ -443,22 +443,22 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
443
443
  )
444
444
  }
445
445
  ),
446
- o.length > 0 && /* @__PURE__ */ c.jsxs(
447
- xe,
446
+ s.length > 0 && /* @__PURE__ */ W(
447
+ _e,
448
448
  {
449
449
  justify: "flex-end",
450
450
  align: "center",
451
451
  gap: "large",
452
452
  style: { marginTop: 16 },
453
453
  children: [
454
- l && /* @__PURE__ */ c.jsx("div", { style: { width: "250px" }, children: /* @__PURE__ */ c.jsx(yt, { percent: d, size: "small" }) }),
455
- /* @__PURE__ */ c.jsx(
454
+ l && /* @__PURE__ */ c("div", { style: { width: "250px" }, children: /* @__PURE__ */ c(St, { percent: d, size: "small" }) }),
455
+ /* @__PURE__ */ c(
456
456
  Y,
457
457
  {
458
458
  type: "primary",
459
459
  onClick: E,
460
- disabled: l || m || o.filter((h) => h.status !== "done").length === 0,
461
- icon: /* @__PURE__ */ c.jsx(Ft, {}),
460
+ disabled: l || m || s.filter((h) => h.status !== "done").length === 0,
461
+ icon: /* @__PURE__ */ c(kt, {}),
462
462
  children: "일괄 업로드"
463
463
  }
464
464
  )
@@ -476,26 +476,26 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
476
476
  if (typeof t == "object" && "mask" in t && "blocks" in t) {
477
477
  const { mask: e, blocks: r } = t;
478
478
  return e.split(".").map((n) => {
479
- const s = r?.[n]?.maxLength ?? 3;
480
- return "_".repeat(s);
479
+ const o = r?.[n]?.maxLength ?? 3;
480
+ return "_".repeat(o);
481
481
  }).join(".");
482
482
  }
483
483
  return "";
484
- }, _i = ({
484
+ }, xi = ({
485
485
  itemProps: t,
486
486
  inputProps: e,
487
487
  mask: r
488
488
  }) => {
489
- const n = $(null), i = B.useFormInstance(), s = j(() => Wt(r), [r]);
489
+ const n = $(null), i = B.useFormInstance(), o = M(() => Wt(r), [r]);
490
490
  return R(() => {
491
491
  if (!n.current?.input) return;
492
- const a = typeof r == "string" || Array.isArray(r) ? { mask: r } : r, o = Ke(n.current.input, a);
493
- return o.on("accept", () => {
494
- i && t?.name && i.setFieldValue(t.name, o.value);
492
+ const a = typeof r == "string" || Array.isArray(r) ? { mask: r } : r, s = Je(n.current.input, a);
493
+ return s.on("accept", () => {
494
+ i && t?.name && i.setFieldValue(t.name, s.value);
495
495
  }), () => {
496
- o.destroy();
496
+ s.destroy();
497
497
  };
498
- }, [r, i, t?.name]), /* @__PURE__ */ c.jsx(k, { ...t, children: /* @__PURE__ */ c.jsx(Q, { ...e, ref: n, placeholder: s }) });
498
+ }, [r, i, t?.name]), /* @__PURE__ */ c(A, { ...t, children: /* @__PURE__ */ c(ee, { ...e, ref: n, placeholder: o }) });
499
499
  }, Kt = (t) => {
500
500
  switch (t) {
501
501
  case "year":
@@ -515,55 +515,55 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
515
515
  itemProps: e = { name: "calendar" },
516
516
  inputProps: r
517
517
  }) => {
518
- const { format: n, mask: i, outputFormat: s } = Kt(t), a = $(null), o = $(null), u = B.useFormInstance(), [l, p] = L(!1), [m, g] = L(!1), d = e?.name, [b, D] = L(null);
518
+ const { format: n, mask: i, outputFormat: o } = Kt(t), a = $(null), s = $(null), u = B.useFormInstance(), [l, p] = L(!1), [m, g] = L(!1), d = e?.name, [b, D] = L(null);
519
519
  R(() => {
520
520
  if (!a.current?.input) return;
521
- const v = Ke(a.current.input, {
521
+ const v = Je(a.current.input, {
522
522
  mask: i,
523
523
  lazy: !1
524
524
  });
525
- return o.current = v, v.on("accept", () => {
525
+ return s.current = v, v.on("accept", () => {
526
526
  console.log("input :: ", v.value);
527
- const h = v.value, I = ee(h, n, !0);
528
- console.log("input :: ", I), h.length === n.length && I.isValid() && (console.log("parsed :: ", I.format(s)), u.setFieldValue(d, I.format(s)), o.current?.updateValue(), p(!1));
527
+ const h = v.value, I = te(h, n, !0);
528
+ console.log("input :: ", I), h.length === n.length && I.isValid() && (console.log("parsed :: ", I.format(o)), u.setFieldValue(d, I.format(o)), s.current?.updateValue(), p(!1));
529
529
  }), () => {
530
530
  v.destroy();
531
531
  };
532
532
  }, [n, i]), R(() => {
533
- D(ee(u.getFieldValue(d)));
533
+ D(te(u.getFieldValue(d)));
534
534
  }, [u.getFieldValue(d)]);
535
535
  const E = (v) => {
536
536
  if (!v) {
537
- o.current?.updateValue();
537
+ s.current?.updateValue();
538
538
  return;
539
539
  }
540
- const h = v.format(s);
541
- console.log("formatted :: ", h), o.current && (o.current.value = h, o.current.updateValue()), g(!1);
540
+ const h = v.format(o);
541
+ console.log("formatted :: ", h), s.current && (s.current.value = h, s.current.updateValue()), g(!1);
542
542
  };
543
- return /* @__PURE__ */ c.jsx(
544
- k,
543
+ return /* @__PURE__ */ c(
544
+ A,
545
545
  {
546
546
  ...e,
547
547
  name: void 0,
548
548
  validateStatus: m ? "warning" : void 0,
549
549
  help: m ? "유효하지 않은 날짜입니다" : void 0,
550
- children: /* @__PURE__ */ c.jsxs("div", { style: { position: "relative" }, children: [
551
- /* @__PURE__ */ c.jsx(
550
+ children: /* @__PURE__ */ W("div", { style: { position: "relative" }, children: [
551
+ /* @__PURE__ */ c(
552
552
  B.Item,
553
553
  {
554
554
  name: d,
555
555
  getValueProps: (v) => ({
556
- value: v ? ee(v).format(n) : void 0
556
+ value: v ? te(v).format(n) : void 0
557
557
  }),
558
- normalize: (v) => v ? ee(v).format(s) : void 0,
558
+ normalize: (v) => v ? te(v).format(o) : void 0,
559
559
  noStyle: !0,
560
- children: /* @__PURE__ */ c.jsx(
561
- Q,
560
+ children: /* @__PURE__ */ c(
561
+ ee,
562
562
  {
563
563
  ...r,
564
564
  ref: a,
565
565
  onFocus: () => {
566
- p(!l), o.current?.updateValue();
566
+ p(!l), s.current?.updateValue();
567
567
  },
568
568
  onKeyDown: (v) => {
569
569
  v.key === "Backspace" && p(!0), v.key === "Tab" && p(!1);
@@ -575,8 +575,8 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
575
575
  )
576
576
  }
577
577
  ),
578
- /* @__PURE__ */ c.jsx(
579
- Ot,
578
+ /* @__PURE__ */ c(
579
+ Tt,
580
580
  {
581
581
  open: l,
582
582
  picker: t,
@@ -597,15 +597,15 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
597
597
  ] })
598
598
  }
599
599
  );
600
- }, { Option: Pe } = Xe, Li = ({ itemProps: t, inputProps: e }) => {
600
+ }, { Option: xe } = We, Li = ({ itemProps: t, inputProps: e }) => {
601
601
  const [r, n] = L([]);
602
602
  return R(() => {
603
603
  e?.addField === "ALL" ? n([
604
604
  { label: "전체", value: "" },
605
605
  ...e?.list || []
606
606
  ]) : e?.addField === "NULL" ? n([{ label: "", value: "" }, ...e?.list || []]) : n(e?.list || []);
607
- }, [e?.list]), /* @__PURE__ */ c.jsx(
608
- k,
607
+ }, [e?.list]), /* @__PURE__ */ c(
608
+ A,
609
609
  {
610
610
  ...t,
611
611
  getValueProps: (i) => i ? {
@@ -614,34 +614,34 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
614
614
  value: []
615
615
  },
616
616
  normalize: (i) => i != null && i != null && i.length > 0 ? i.toString() : "",
617
- children: /* @__PURE__ */ c.jsx(Xe, { ...e, mode: "multiple", children: r.map((i) => {
618
- const { value: s, label: a } = i;
619
- return e?.printCode ? /* @__PURE__ */ c.jsx(Pe, { value: s, label: a, children: /* @__PURE__ */ c.jsx(pe, { children: `[${s}] ${a}` }) }, s) : /* @__PURE__ */ c.jsx(Pe, { value: s, label: a, children: /* @__PURE__ */ c.jsx(pe, { children: `${a}` }) }, s);
617
+ children: /* @__PURE__ */ c(We, { ...e, mode: "multiple", children: r.map((i) => {
618
+ const { value: o, label: a } = i;
619
+ return e?.printCode ? /* @__PURE__ */ c(xe, { value: o, label: a, children: /* @__PURE__ */ c(me, { children: `[${o}] ${a}` }) }, o) : /* @__PURE__ */ c(xe, { value: o, label: a, children: /* @__PURE__ */ c(me, { children: `${a}` }) }, o);
620
620
  }) })
621
621
  }
622
622
  );
623
- }, ji = ({ itemProps: t, inputProps: e }) => {
623
+ }, Mi = ({ itemProps: t, inputProps: e }) => {
624
624
  const r = (i) => {
625
- let s = i.toString().split(".");
626
- return e?.decimalPoint != null && s[1] != null && e?.decimalPoint > 0 ? s[1].length > e?.decimalPoint ? s[1] = "." + s[1].substring(0, e?.decimalPoint) : s[1] = "." + s[1] : s[1] = "", s[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",") + s[1];
625
+ let o = i.toString().split(".");
626
+ return e?.decimalPoint != null && o[1] != null && e?.decimalPoint > 0 ? o[1].length > e?.decimalPoint ? o[1] = "." + o[1].substring(0, e?.decimalPoint) : o[1] = "." + o[1] : o[1] = "", o[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",") + o[1];
627
627
  }, n = (i) => {
628
- let s = i.toString().split(".");
629
- return e?.decimalPoint != null && s[1] != null && e?.decimalPoint > 0 ? s[1].length > e?.decimalPoint ? s[1] = "." + s[1].substring(0, e?.decimalPoint) : s[1] = "." + s[1] : s[1] = "", s[0].replace(/\$\s?|(,*)/g, "") + s[1];
628
+ let o = i.toString().split(".");
629
+ return e?.decimalPoint != null && o[1] != null && e?.decimalPoint > 0 ? o[1].length > e?.decimalPoint ? o[1] = "." + o[1].substring(0, e?.decimalPoint) : o[1] = "." + o[1] : o[1] = "", o[0].replace(/\$\s?|(,*)/g, "") + o[1];
630
630
  };
631
- return /* @__PURE__ */ c.jsx(k, { ...t, children: /* @__PURE__ */ c.jsx(
632
- Tt,
631
+ return /* @__PURE__ */ c(A, { ...t, children: /* @__PURE__ */ c(
632
+ bt,
633
633
  {
634
634
  ...e,
635
635
  formatter: (i) => r(i),
636
636
  parser: (i) => n(i)
637
637
  }
638
638
  ) });
639
- }, Mi = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(k, { ...t, children: /* @__PURE__ */ c.jsx(bt.Group, { ...e }) }), _e = Q.Search, Fi = (t) => {
639
+ }, Fi = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c(A, { ...t, children: /* @__PURE__ */ c(It.Group, { ...e }) }), Re = ee.Search, ki = (t) => {
640
640
  const e = B.useFormInstance(), { openPopup: r } = zt(), n = t.itemProps?.name || [], i = t.popupConfig || {
641
641
  callback(a) {
642
642
  console.log("callback data :: ", a), n.length > 1 ? (e.setFieldValue(n[0], a.code), e.setFieldValue(n[1], a.name)) : e.setFieldValue(n, a.code);
643
643
  }
644
- }, s = {
644
+ }, o = {
645
645
  ...t,
646
646
  placeholder: typeof t.placeholder == "string" ? t.placeholder : t.placeholder?.[0] || "",
647
647
  onChange: (a) => {
@@ -651,8 +651,8 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
651
651
  t.popuCd ? r(t.popuCd, t.popupParams, i) : t.onSearch?.(a);
652
652
  }
653
653
  };
654
- return n.length > 1 ? /* @__PURE__ */ c.jsx(k, { ...t.itemProps, name: void 0, children: /* @__PURE__ */ c.jsxs(pe.Compact, { block: !0, children: [
655
- /* @__PURE__ */ c.jsx(
654
+ return n.length > 1 ? /* @__PURE__ */ c(A, { ...t.itemProps, name: void 0, children: /* @__PURE__ */ W(me.Compact, { block: !0, children: [
655
+ /* @__PURE__ */ c(
656
656
  B.Item,
657
657
  {
658
658
  name: n[0],
@@ -660,8 +660,8 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
660
660
  style: { width: "40%", marginBottom: 0, marginInlineEnd: 0 },
661
661
  validateStatus: "",
662
662
  help: "",
663
- children: /* @__PURE__ */ c.jsx(
664
- Q,
663
+ children: /* @__PURE__ */ c(
664
+ ee,
665
665
  {
666
666
  style: { color: "#999", backgroundColor: "#f5f5f5" },
667
667
  placeholder: t.placeholder?.[0] || "",
@@ -670,34 +670,34 @@ const Ci = (t) => /* @__PURE__ */ c.jsx(Y, { ...t, className: "bwg-btn" }), wi =
670
670
  )
671
671
  }
672
672
  ),
673
- /* @__PURE__ */ c.jsx(B.Item, { name: n[1], style: { width: "60%", marginBottom: 0 }, children: /* @__PURE__ */ c.jsx(
674
- _e,
673
+ /* @__PURE__ */ c(B.Item, { name: n[1], style: { width: "60%", marginBottom: 0 }, children: /* @__PURE__ */ c(
674
+ Re,
675
675
  {
676
676
  readOnly: t.readOnly,
677
- enterButton: /* @__PURE__ */ c.jsx(
677
+ enterButton: /* @__PURE__ */ c(
678
678
  Y,
679
679
  {
680
- icon: /* @__PURE__ */ c.jsx(Ht, {}),
680
+ icon: /* @__PURE__ */ c(jt, {}),
681
681
  disabled: t.readOnly
682
682
  }
683
683
  ),
684
- ...s
684
+ ...o
685
685
  }
686
686
  ) })
687
- ] }) }) : /* @__PURE__ */ c.jsx(k, { ...t.itemProps, children: /* @__PURE__ */ c.jsx(_e, { ...s }) });
688
- }, { TextArea: Jt } = Q, ki = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(k, { ...t, children: /* @__PURE__ */ c.jsx(Jt, { ...e }) }), Je = Et({
687
+ ] }) }) : /* @__PURE__ */ c(A, { ...t.itemProps, children: /* @__PURE__ */ c(Re, { ...o }) });
688
+ }, { TextArea: Jt } = ee, Ai = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c(A, { ...t, children: /* @__PURE__ */ c(Jt, { ...e }) }), Ze = Et({
689
689
  dragDropManager: void 0
690
690
  });
691
- function M(t) {
691
+ function F(t) {
692
692
  return "Minified Redux error #" + t + "; visit https://redux.js.org/Errors?code=" + t + " for the full message or use the non-minified dev environment for full errors. ";
693
693
  }
694
- var Re = (function() {
694
+ var Le = (function() {
695
695
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
696
- })(), Le = function() {
696
+ })(), Me = function() {
697
697
  return Math.random().toString(36).substring(7).split("").join(".");
698
- }, je = {
699
- INIT: "@@redux/INIT" + Le(),
700
- REPLACE: "@@redux/REPLACE" + Le()
698
+ }, Fe = {
699
+ INIT: "@@redux/INIT" + Me(),
700
+ REPLACE: "@@redux/REPLACE" + Me()
701
701
  };
702
702
  function Zt(t) {
703
703
  if (typeof t != "object" || t === null) return !1;
@@ -745,55 +745,55 @@ function G(t) {
745
745
  var e = typeof t;
746
746
  return process.env.NODE_ENV !== "production" && (e = Qt(t)), e;
747
747
  }
748
- function Ze(t, e, r) {
748
+ function Qe(t, e, r) {
749
749
  var n;
750
750
  if (typeof e == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
751
- throw new Error(process.env.NODE_ENV === "production" ? M(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
751
+ throw new Error(process.env.NODE_ENV === "production" ? F(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
752
752
  if (typeof e == "function" && typeof r > "u" && (r = e, e = void 0), typeof r < "u") {
753
753
  if (typeof r != "function")
754
- throw new Error(process.env.NODE_ENV === "production" ? M(1) : "Expected the enhancer to be a function. Instead, received: '" + G(r) + "'");
755
- return r(Ze)(t, e);
754
+ throw new Error(process.env.NODE_ENV === "production" ? F(1) : "Expected the enhancer to be a function. Instead, received: '" + G(r) + "'");
755
+ return r(Qe)(t, e);
756
756
  }
757
757
  if (typeof t != "function")
758
- throw new Error(process.env.NODE_ENV === "production" ? M(2) : "Expected the root reducer to be a function. Instead, received: '" + G(t) + "'");
759
- var i = t, s = e, a = [], o = a, u = !1;
758
+ throw new Error(process.env.NODE_ENV === "production" ? F(2) : "Expected the root reducer to be a function. Instead, received: '" + G(t) + "'");
759
+ var i = t, o = e, a = [], s = a, u = !1;
760
760
  function l() {
761
- o === a && (o = a.slice());
761
+ s === a && (s = a.slice());
762
762
  }
763
763
  function p() {
764
764
  if (u)
765
- throw new Error(process.env.NODE_ENV === "production" ? M(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
766
- return s;
765
+ throw new Error(process.env.NODE_ENV === "production" ? F(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
766
+ return o;
767
767
  }
768
768
  function m(D) {
769
769
  if (typeof D != "function")
770
- throw new Error(process.env.NODE_ENV === "production" ? M(4) : "Expected the listener to be a function. Instead, received: '" + G(D) + "'");
770
+ throw new Error(process.env.NODE_ENV === "production" ? F(4) : "Expected the listener to be a function. Instead, received: '" + G(D) + "'");
771
771
  if (u)
772
- throw new Error(process.env.NODE_ENV === "production" ? M(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
772
+ throw new Error(process.env.NODE_ENV === "production" ? F(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
773
773
  var E = !0;
774
- return l(), o.push(D), function() {
774
+ return l(), s.push(D), function() {
775
775
  if (E) {
776
776
  if (u)
777
- throw new Error(process.env.NODE_ENV === "production" ? M(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
777
+ throw new Error(process.env.NODE_ENV === "production" ? F(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
778
778
  E = !1, l();
779
- var h = o.indexOf(D);
780
- o.splice(h, 1), a = null;
779
+ var h = s.indexOf(D);
780
+ s.splice(h, 1), a = null;
781
781
  }
782
782
  };
783
783
  }
784
784
  function g(D) {
785
785
  if (!Zt(D))
786
- throw new Error(process.env.NODE_ENV === "production" ? M(7) : "Actions must be plain objects. Instead, the actual type was: '" + G(D) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
786
+ throw new Error(process.env.NODE_ENV === "production" ? F(7) : "Actions must be plain objects. Instead, the actual type was: '" + G(D) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
787
787
  if (typeof D.type > "u")
788
- throw new Error(process.env.NODE_ENV === "production" ? M(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
788
+ throw new Error(process.env.NODE_ENV === "production" ? F(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
789
789
  if (u)
790
- throw new Error(process.env.NODE_ENV === "production" ? M(9) : "Reducers may not dispatch actions.");
790
+ throw new Error(process.env.NODE_ENV === "production" ? F(9) : "Reducers may not dispatch actions.");
791
791
  try {
792
- u = !0, s = i(s, D);
792
+ u = !0, o = i(o, D);
793
793
  } finally {
794
794
  u = !1;
795
795
  }
796
- for (var E = a = o, v = 0; v < E.length; v++) {
796
+ for (var E = a = s, v = 0; v < E.length; v++) {
797
797
  var h = E[v];
798
798
  h();
799
799
  }
@@ -801,9 +801,9 @@ function Ze(t, e, r) {
801
801
  }
802
802
  function d(D) {
803
803
  if (typeof D != "function")
804
- throw new Error(process.env.NODE_ENV === "production" ? M(10) : "Expected the nextReducer to be a function. Instead, received: '" + G(D));
804
+ throw new Error(process.env.NODE_ENV === "production" ? F(10) : "Expected the nextReducer to be a function. Instead, received: '" + G(D));
805
805
  i = D, g({
806
- type: je.REPLACE
806
+ type: Fe.REPLACE
807
807
  });
808
808
  }
809
809
  function b() {
@@ -819,7 +819,7 @@ function Ze(t, e, r) {
819
819
  */
820
820
  subscribe: function(h) {
821
821
  if (typeof h != "object" || h === null)
822
- throw new Error(process.env.NODE_ENV === "production" ? M(11) : "Expected the observer to be an object. Instead, received: '" + G(h) + "'");
822
+ throw new Error(process.env.NODE_ENV === "production" ? F(11) : "Expected the observer to be an object. Instead, received: '" + G(h) + "'");
823
823
  function I() {
824
824
  h.next && h.next(p());
825
825
  }
@@ -829,18 +829,18 @@ function Ze(t, e, r) {
829
829
  unsubscribe: f
830
830
  };
831
831
  }
832
- }, D[Re] = function() {
832
+ }, D[Le] = function() {
833
833
  return this;
834
834
  }, D;
835
835
  }
836
836
  return g({
837
- type: je.INIT
837
+ type: Fe.INIT
838
838
  }), n = {
839
839
  dispatch: g,
840
840
  subscribe: m,
841
841
  getState: p,
842
842
  replaceReducer: d
843
- }, n[Re] = b, n;
843
+ }, n[Le] = b, n;
844
844
  }
845
845
  function y(t, e, ...r) {
846
846
  if (nr() && e === void 0)
@@ -867,22 +867,22 @@ function ir(t, e, r) {
867
867
  t
868
868
  );
869
869
  }
870
- function sr(t, e) {
870
+ function or(t, e) {
871
871
  return t.filter(
872
872
  (r) => r !== e
873
873
  );
874
874
  }
875
- function Qe(t) {
875
+ function et(t) {
876
876
  return typeof t == "object";
877
877
  }
878
- function or(t, e) {
879
- const r = /* @__PURE__ */ new Map(), n = (s) => {
880
- r.set(s, r.has(s) ? r.get(s) + 1 : 1);
878
+ function sr(t, e) {
879
+ const r = /* @__PURE__ */ new Map(), n = (o) => {
880
+ r.set(o, r.has(o) ? r.get(o) + 1 : 1);
881
881
  };
882
882
  t.forEach(n), e.forEach(n);
883
883
  const i = [];
884
- return r.forEach((s, a) => {
885
- s === 1 && i.push(a);
884
+ return r.forEach((o, a) => {
885
+ o === 1 && i.push(a);
886
886
  }), i;
887
887
  }
888
888
  function ar(t, e) {
@@ -890,10 +890,10 @@ function ar(t, e) {
890
890
  (r) => e.indexOf(r) > -1
891
891
  );
892
892
  }
893
- const Oe = "dnd-core/INIT_COORDS", ie = "dnd-core/BEGIN_DRAG", Te = "dnd-core/PUBLISH_DRAG_SOURCE", se = "dnd-core/HOVER", oe = "dnd-core/DROP", ae = "dnd-core/END_DRAG";
894
- function Me(t, e) {
893
+ const be = "dnd-core/INIT_COORDS", oe = "dnd-core/BEGIN_DRAG", Ie = "dnd-core/PUBLISH_DRAG_SOURCE", se = "dnd-core/HOVER", ae = "dnd-core/DROP", ce = "dnd-core/END_DRAG";
894
+ function ke(t, e) {
895
895
  return {
896
- type: Oe,
896
+ type: be,
897
897
  payload: {
898
898
  sourceClientOffset: e || null,
899
899
  clientOffset: t || null
@@ -901,7 +901,7 @@ function Me(t, e) {
901
901
  };
902
902
  }
903
903
  const cr = {
904
- type: Oe,
904
+ type: be,
905
905
  payload: {
906
906
  clientOffset: null,
907
907
  sourceClientOffset: null
@@ -911,32 +911,32 @@ function ur(t) {
911
911
  return function(r = [], n = {
912
912
  publishSource: !0
913
913
  }) {
914
- const { publishSource: i = !0, clientOffset: s, getSourceClientOffset: a } = n, o = t.getMonitor(), u = t.getRegistry();
915
- t.dispatch(Me(s)), lr(r, o, u);
916
- const l = gr(r, o);
914
+ const { publishSource: i = !0, clientOffset: o, getSourceClientOffset: a } = n, s = t.getMonitor(), u = t.getRegistry();
915
+ t.dispatch(ke(o)), lr(r, s, u);
916
+ const l = gr(r, s);
917
917
  if (l == null) {
918
918
  t.dispatch(cr);
919
919
  return;
920
920
  }
921
921
  let p = null;
922
- if (s) {
922
+ if (o) {
923
923
  if (!a)
924
924
  throw new Error("getSourceClientOffset must be defined");
925
925
  dr(a), p = a(l);
926
926
  }
927
- t.dispatch(Me(s, p));
928
- const g = u.getSource(l).beginDrag(o, l);
927
+ t.dispatch(ke(o, p));
928
+ const g = u.getSource(l).beginDrag(s, l);
929
929
  if (g == null)
930
930
  return;
931
931
  fr(g), u.pinSource(l);
932
932
  const d = u.getSourceType(l);
933
933
  return {
934
- type: ie,
934
+ type: oe,
935
935
  payload: {
936
936
  itemType: d,
937
937
  item: g,
938
938
  sourceId: l,
939
- clientOffset: s || null,
939
+ clientOffset: o || null,
940
940
  sourceClientOffset: p || null,
941
941
  isSourcePublic: !!i
942
942
  }
@@ -952,7 +952,7 @@ function dr(t) {
952
952
  y(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
953
953
  }
954
954
  function fr(t) {
955
- y(Qe(t), "Item must be an object.");
955
+ y(et(t), "Item must be an object.");
956
956
  }
957
957
  function gr(t, e) {
958
958
  let r = null;
@@ -985,9 +985,9 @@ function pr(t) {
985
985
  function mr(t) {
986
986
  return function(r = {}) {
987
987
  const n = t.getMonitor(), i = t.getRegistry();
988
- vr(n), Sr(n).forEach((a, o) => {
989
- const u = Dr(a, o, i, n), l = {
990
- type: oe,
988
+ vr(n), Sr(n).forEach((a, s) => {
989
+ const u = Dr(a, s, i, n), l = {
990
+ type: ae,
991
991
  payload: {
992
992
  dropResult: pr({}, r, u)
993
993
  }
@@ -1001,11 +1001,11 @@ function vr(t) {
1001
1001
  }
1002
1002
  function Dr(t, e, r, n) {
1003
1003
  const i = r.getTarget(t);
1004
- let s = i ? i.drop(n, t) : void 0;
1005
- return yr(s), typeof s > "u" && (s = e === 0 ? {} : n.getDropResult()), s;
1004
+ let o = i ? i.drop(n, t) : void 0;
1005
+ return yr(o), typeof o > "u" && (o = e === 0 ? {} : n.getDropResult()), o;
1006
1006
  }
1007
1007
  function yr(t) {
1008
- y(typeof t > "u" || Qe(t), "Drop result must either be an object or undefined.");
1008
+ y(typeof t > "u" || et(t), "Drop result must either be an object or undefined.");
1009
1009
  }
1010
1010
  function Sr(t) {
1011
1011
  const e = t.getTargetIds().filter(t.canDropOnTarget, t);
@@ -1017,14 +1017,14 @@ function Or(t) {
1017
1017
  Tr(r);
1018
1018
  const i = r.getSourceId();
1019
1019
  return i != null && (n.getSource(i, !0).endDrag(r, i), n.unpinSource()), {
1020
- type: ae
1020
+ type: ce
1021
1021
  };
1022
1022
  };
1023
1023
  }
1024
1024
  function Tr(t) {
1025
1025
  y(t.isDragging(), "Cannot call endDrag while not dragging.");
1026
1026
  }
1027
- function me(t, e) {
1027
+ function De(t, e) {
1028
1028
  return e === null ? t === null : Array.isArray(t) ? t.some(
1029
1029
  (r) => r === e
1030
1030
  ) : t === e;
@@ -1032,8 +1032,8 @@ function me(t, e) {
1032
1032
  function br(t) {
1033
1033
  return function(r, { clientOffset: n } = {}) {
1034
1034
  Ir(r);
1035
- const i = r.slice(0), s = t.getMonitor(), a = t.getRegistry(), o = s.getItemType();
1036
- return Cr(i, a, o), Er(i, s, a), wr(i, s, a), {
1035
+ const i = r.slice(0), o = t.getMonitor(), a = t.getRegistry(), s = o.getItemType();
1036
+ return Cr(i, a, s), Er(i, o, a), wr(i, o, a), {
1037
1037
  type: se,
1038
1038
  payload: {
1039
1039
  targetIds: i,
@@ -1050,14 +1050,14 @@ function Er(t, e, r) {
1050
1050
  for (let n = 0; n < t.length; n++) {
1051
1051
  const i = t[n];
1052
1052
  y(t.lastIndexOf(i) === n, "Expected targetIds to be unique in the passed array.");
1053
- const s = r.getTarget(i);
1054
- y(s, "Expected targetIds to be registered.");
1053
+ const o = r.getTarget(i);
1054
+ y(o, "Expected targetIds to be registered.");
1055
1055
  }
1056
1056
  }
1057
1057
  function Cr(t, e, r) {
1058
1058
  for (let n = t.length - 1; n >= 0; n--) {
1059
- const i = t[n], s = e.getTargetType(i);
1060
- me(s, r) || t.splice(n, 1);
1059
+ const i = t[n], o = e.getTargetType(i);
1060
+ De(o, r) || t.splice(n, 1);
1061
1061
  }
1062
1062
  }
1063
1063
  function wr(t, e, r) {
@@ -1065,24 +1065,24 @@ function wr(t, e, r) {
1065
1065
  r.getTarget(n).hover(e, n);
1066
1066
  });
1067
1067
  }
1068
- function xr(t) {
1068
+ function Nr(t) {
1069
1069
  return function() {
1070
1070
  if (t.getMonitor().isDragging())
1071
1071
  return {
1072
- type: Te
1072
+ type: Ie
1073
1073
  };
1074
1074
  };
1075
1075
  }
1076
- function Nr(t) {
1076
+ function Pr(t) {
1077
1077
  return {
1078
1078
  beginDrag: ur(t),
1079
- publishDragSource: xr(t),
1079
+ publishDragSource: Nr(t),
1080
1080
  hover: br(t),
1081
1081
  drop: mr(t),
1082
1082
  endDrag: Or(t)
1083
1083
  };
1084
1084
  }
1085
- class Pr {
1085
+ class _r {
1086
1086
  receiveBackend(e) {
1087
1087
  this.backend = e;
1088
1088
  }
@@ -1097,16 +1097,16 @@ class Pr {
1097
1097
  }
1098
1098
  getActions() {
1099
1099
  const e = this, { dispatch: r } = this.store;
1100
- function n(s) {
1100
+ function n(o) {
1101
1101
  return (...a) => {
1102
- const o = s.apply(e, a);
1103
- typeof o < "u" && r(o);
1102
+ const s = o.apply(e, a);
1103
+ typeof s < "u" && r(s);
1104
1104
  };
1105
1105
  }
1106
- const i = Nr(this);
1107
- return Object.keys(i).reduce((s, a) => {
1108
- const o = i[a];
1109
- return s[a] = n(o), s;
1106
+ const i = Pr(this);
1107
+ return Object.keys(i).reduce((o, a) => {
1108
+ const s = i[a];
1109
+ return o[a] = n(s), o;
1110
1110
  }, {});
1111
1111
  }
1112
1112
  dispatch(e) {
@@ -1119,13 +1119,13 @@ class Pr {
1119
1119
  }, this.store = e, this.monitor = r, e.subscribe(this.handleRefCountChange);
1120
1120
  }
1121
1121
  }
1122
- function _r(t, e) {
1122
+ function xr(t, e) {
1123
1123
  return {
1124
1124
  x: t.x + e.x,
1125
1125
  y: t.y + e.y
1126
1126
  };
1127
1127
  }
1128
- function et(t, e) {
1128
+ function tt(t, e) {
1129
1129
  return {
1130
1130
  x: t.x - e.x,
1131
1131
  y: t.y - e.y
@@ -1133,32 +1133,32 @@ function et(t, e) {
1133
1133
  }
1134
1134
  function Rr(t) {
1135
1135
  const { clientOffset: e, initialClientOffset: r, initialSourceClientOffset: n } = t;
1136
- return !e || !r || !n ? null : et(_r(e, n), r);
1136
+ return !e || !r || !n ? null : tt(xr(e, n), r);
1137
1137
  }
1138
1138
  function Lr(t) {
1139
1139
  const { clientOffset: e, initialClientOffset: r } = t;
1140
- return !e || !r ? null : et(e, r);
1140
+ return !e || !r ? null : tt(e, r);
1141
1141
  }
1142
- const Z = [], be = [];
1143
- Z.__IS_NONE__ = !0;
1144
- be.__IS_ALL__ = !0;
1145
- function jr(t, e) {
1146
- return t === Z ? !1 : t === be || typeof e > "u" ? !0 : ar(e, t).length > 0;
1142
+ const Q = [], Ee = [];
1143
+ Q.__IS_NONE__ = !0;
1144
+ Ee.__IS_ALL__ = !0;
1145
+ function Mr(t, e) {
1146
+ return t === Q ? !1 : t === Ee || typeof e > "u" ? !0 : ar(e, t).length > 0;
1147
1147
  }
1148
- class Mr {
1148
+ class Fr {
1149
1149
  subscribeToStateChange(e, r = {}) {
1150
1150
  const { handlerIds: n } = r;
1151
1151
  y(typeof e == "function", "listener must be a function."), y(typeof n > "u" || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
1152
1152
  let i = this.store.getState().stateId;
1153
- const s = () => {
1154
- const a = this.store.getState(), o = a.stateId;
1153
+ const o = () => {
1154
+ const a = this.store.getState(), s = a.stateId;
1155
1155
  try {
1156
- o === i || o === i + 1 && !jr(a.dirtyHandlerIds, n) || e();
1156
+ s === i || s === i + 1 && !Mr(a.dirtyHandlerIds, n) || e();
1157
1157
  } finally {
1158
- i = o;
1158
+ i = s;
1159
1159
  }
1160
1160
  };
1161
- return this.store.subscribe(s);
1161
+ return this.store.subscribe(o);
1162
1162
  }
1163
1163
  subscribeToOffsetChange(e) {
1164
1164
  y(typeof e == "function", "listener must be a function.");
@@ -1182,7 +1182,7 @@ class Mr {
1182
1182
  if (y(r, `Expected to find a valid target. targetId=${e}`), !this.isDragging() || this.didDrop())
1183
1183
  return !1;
1184
1184
  const n = this.registry.getTargetType(e), i = this.getItemType();
1185
- return me(n, i) && r.canDrop(this, e);
1185
+ return De(n, i) && r.canDrop(this, e);
1186
1186
  }
1187
1187
  isDragging() {
1188
1188
  return !!this.getItemType();
@@ -1204,14 +1204,14 @@ class Mr {
1204
1204
  const { shallow: n } = r;
1205
1205
  if (!this.isDragging())
1206
1206
  return !1;
1207
- const i = this.registry.getTargetType(e), s = this.getItemType();
1208
- if (s && !me(i, s))
1207
+ const i = this.registry.getTargetType(e), o = this.getItemType();
1208
+ if (o && !De(i, o))
1209
1209
  return !1;
1210
1210
  const a = this.getTargetIds();
1211
1211
  if (!a.length)
1212
1212
  return !1;
1213
- const o = a.indexOf(e);
1214
- return n ? o === a.length - 1 : o > -1;
1213
+ const s = a.indexOf(e);
1214
+ return n ? s === a.length - 1 : s > -1;
1215
1215
  }
1216
1216
  getItemType() {
1217
1217
  return this.store.getState().dragOperation.itemType;
@@ -1253,8 +1253,8 @@ class Mr {
1253
1253
  this.store = e, this.registry = r;
1254
1254
  }
1255
1255
  }
1256
- const Fe = typeof global < "u" ? global : self, tt = Fe.MutationObserver || Fe.WebKitMutationObserver;
1257
- function rt(t) {
1256
+ const Ae = typeof global < "u" ? global : self, rt = Ae.MutationObserver || Ae.WebKitMutationObserver;
1257
+ function nt(t) {
1258
1258
  return function() {
1259
1259
  const r = setTimeout(i, 0), n = setInterval(i, 50);
1260
1260
  function i() {
@@ -1262,16 +1262,16 @@ function rt(t) {
1262
1262
  }
1263
1263
  };
1264
1264
  }
1265
- function Fr(t) {
1265
+ function kr(t) {
1266
1266
  let e = 1;
1267
- const r = new tt(t), n = document.createTextNode("");
1267
+ const r = new rt(t), n = document.createTextNode("");
1268
1268
  return r.observe(n, {
1269
1269
  characterData: !0
1270
1270
  }), function() {
1271
1271
  e = -e, n.data = e;
1272
1272
  };
1273
1273
  }
1274
- const kr = typeof tt == "function" ? (
1274
+ const Ar = typeof rt == "function" ? (
1275
1275
  // reliably everywhere they are implemented.
1276
1276
  // They are implemented in all modern browsers.
1277
1277
  //
@@ -1282,7 +1282,7 @@ const kr = typeof tt == "function" ? (
1282
1282
  // - iPad Safari 6-7.1
1283
1283
  // - iPhone Safari 7-7.1
1284
1284
  // - Safari 6-7
1285
- Fr
1285
+ kr
1286
1286
  ) : (
1287
1287
  // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera
1288
1288
  // 11-12, and in web workers in many engines.
@@ -1308,9 +1308,9 @@ const kr = typeof tt == "function" ? (
1308
1308
  // - Internet Explorer 6-9
1309
1309
  // - iPad Safari 4.3
1310
1310
  // - Lynx 2.8.7
1311
- rt
1311
+ nt
1312
1312
  );
1313
- class Ar {
1313
+ class Hr {
1314
1314
  // Use the fastest means possible to execute a task in its own turn, with
1315
1315
  // priority over other events including IO, animation, reflow, and redraw
1316
1316
  // events in browsers.
@@ -1339,13 +1339,13 @@ class Ar {
1339
1339
  e.length = 0, this.index = 0, this.flushing = !1;
1340
1340
  }, this.registerPendingError = (e) => {
1341
1341
  this.pendingErrors.push(e), this.requestErrorThrow();
1342
- }, this.requestFlush = kr(this.flush), this.requestErrorThrow = rt(() => {
1342
+ }, this.requestFlush = Ar(this.flush), this.requestErrorThrow = nt(() => {
1343
1343
  if (this.pendingErrors.length)
1344
1344
  throw this.pendingErrors.shift();
1345
1345
  });
1346
1346
  }
1347
1347
  }
1348
- class Hr {
1348
+ class jr {
1349
1349
  call() {
1350
1350
  try {
1351
1351
  this.task && this.task();
@@ -1361,7 +1361,7 @@ class Hr {
1361
1361
  }
1362
1362
  class Ur {
1363
1363
  create(e) {
1364
- const r = this.freeTasks, n = r.length ? r.pop() : new Hr(
1364
+ const r = this.freeTasks, n = r.length ? r.pop() : new jr(
1365
1365
  this.onError,
1366
1366
  (i) => r[r.length] = i
1367
1367
  );
@@ -1371,14 +1371,14 @@ class Ur {
1371
1371
  this.onError = e, this.freeTasks = [];
1372
1372
  }
1373
1373
  }
1374
- const nt = new Ar(), Yr = new Ur(nt.registerPendingError);
1374
+ const it = new Hr(), Yr = new Ur(it.registerPendingError);
1375
1375
  function Br(t) {
1376
- nt.enqueueTask(Yr.create(t));
1376
+ it.enqueueTask(Yr.create(t));
1377
1377
  }
1378
- const Ie = "dnd-core/ADD_SOURCE", Ee = "dnd-core/ADD_TARGET", Ce = "dnd-core/REMOVE_SOURCE", ce = "dnd-core/REMOVE_TARGET";
1378
+ const Ce = "dnd-core/ADD_SOURCE", we = "dnd-core/ADD_TARGET", Ne = "dnd-core/REMOVE_SOURCE", ue = "dnd-core/REMOVE_TARGET";
1379
1379
  function $r(t) {
1380
1380
  return {
1381
- type: Ie,
1381
+ type: Ce,
1382
1382
  payload: {
1383
1383
  sourceId: t
1384
1384
  }
@@ -1386,7 +1386,7 @@ function $r(t) {
1386
1386
  }
1387
1387
  function Vr(t) {
1388
1388
  return {
1389
- type: Ee,
1389
+ type: we,
1390
1390
  payload: {
1391
1391
  targetId: t
1392
1392
  }
@@ -1394,7 +1394,7 @@ function Vr(t) {
1394
1394
  }
1395
1395
  function zr(t) {
1396
1396
  return {
1397
- type: Ce,
1397
+ type: Ne,
1398
1398
  payload: {
1399
1399
  sourceId: t
1400
1400
  }
@@ -1402,7 +1402,7 @@ function zr(t) {
1402
1402
  }
1403
1403
  function qr(t) {
1404
1404
  return {
1405
- type: ce,
1405
+ type: ue,
1406
1406
  payload: {
1407
1407
  targetId: t
1408
1408
  }
@@ -1414,19 +1414,19 @@ function Gr(t) {
1414
1414
  function Xr(t) {
1415
1415
  y(typeof t.canDrop == "function", "Expected canDrop to be a function."), y(typeof t.hover == "function", "Expected hover to be a function."), y(typeof t.drop == "function", "Expected beginDrag to be a function.");
1416
1416
  }
1417
- function ve(t, e) {
1417
+ function ye(t, e) {
1418
1418
  if (e && Array.isArray(t)) {
1419
1419
  t.forEach(
1420
- (r) => ve(r, !1)
1420
+ (r) => ye(r, !1)
1421
1421
  );
1422
1422
  return;
1423
1423
  }
1424
1424
  y(typeof t == "string" || typeof t == "symbol", e ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
1425
1425
  }
1426
- var F;
1426
+ var k;
1427
1427
  (function(t) {
1428
1428
  t.SOURCE = "SOURCE", t.TARGET = "TARGET";
1429
- })(F || (F = {}));
1429
+ })(k || (k = {}));
1430
1430
  let Wr = 0;
1431
1431
  function Kr() {
1432
1432
  return Wr++;
@@ -1434,30 +1434,30 @@ function Kr() {
1434
1434
  function Jr(t) {
1435
1435
  const e = Kr().toString();
1436
1436
  switch (t) {
1437
- case F.SOURCE:
1437
+ case k.SOURCE:
1438
1438
  return `S${e}`;
1439
- case F.TARGET:
1439
+ case k.TARGET:
1440
1440
  return `T${e}`;
1441
1441
  default:
1442
1442
  throw new Error(`Unknown Handler Role: ${t}`);
1443
1443
  }
1444
1444
  }
1445
- function ke(t) {
1445
+ function He(t) {
1446
1446
  switch (t[0]) {
1447
1447
  case "S":
1448
- return F.SOURCE;
1448
+ return k.SOURCE;
1449
1449
  case "T":
1450
- return F.TARGET;
1450
+ return k.TARGET;
1451
1451
  default:
1452
1452
  throw new Error(`Cannot parse handler ID: ${t}`);
1453
1453
  }
1454
1454
  }
1455
- function Ae(t, e) {
1455
+ function je(t, e) {
1456
1456
  const r = t.entries();
1457
1457
  let n = !1;
1458
1458
  do {
1459
- const { done: i, value: [, s] } = r.next();
1460
- if (s === e)
1459
+ const { done: i, value: [, o] } = r.next();
1460
+ if (o === e)
1461
1461
  return !0;
1462
1462
  n = !!i;
1463
1463
  } while (!n);
@@ -1465,17 +1465,17 @@ function Ae(t, e) {
1465
1465
  }
1466
1466
  class Zr {
1467
1467
  addSource(e, r) {
1468
- ve(e), Gr(r);
1469
- const n = this.addHandler(F.SOURCE, e, r);
1468
+ ye(e), Gr(r);
1469
+ const n = this.addHandler(k.SOURCE, e, r);
1470
1470
  return this.store.dispatch($r(n)), n;
1471
1471
  }
1472
1472
  addTarget(e, r) {
1473
- ve(e, !0), Xr(r);
1474
- const n = this.addHandler(F.TARGET, e, r);
1473
+ ye(e, !0), Xr(r);
1474
+ const n = this.addHandler(k.TARGET, e, r);
1475
1475
  return this.store.dispatch(Vr(n)), n;
1476
1476
  }
1477
1477
  containsHandler(e) {
1478
- return Ae(this.dragSources, e) || Ae(this.dropTargets, e);
1478
+ return je(this.dragSources, e) || je(this.dropTargets, e);
1479
1479
  }
1480
1480
  getSource(e, r = !1) {
1481
1481
  return y(this.isSourceId(e), "Expected a valid source ID."), r && e === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(e);
@@ -1490,10 +1490,10 @@ class Zr {
1490
1490
  return y(this.isTargetId(e), "Expected a valid target ID."), this.types.get(e);
1491
1491
  }
1492
1492
  isSourceId(e) {
1493
- return ke(e) === F.SOURCE;
1493
+ return He(e) === k.SOURCE;
1494
1494
  }
1495
1495
  isTargetId(e) {
1496
- return ke(e) === F.TARGET;
1496
+ return He(e) === k.TARGET;
1497
1497
  }
1498
1498
  removeSource(e) {
1499
1499
  y(this.getSource(e), "Expected an existing source."), this.store.dispatch(zr(e)), Br(() => {
@@ -1512,7 +1512,7 @@ class Zr {
1512
1512
  }
1513
1513
  addHandler(e, r, n) {
1514
1514
  const i = Jr(e);
1515
- return this.types.set(i, r), e === F.SOURCE ? this.dragSources.set(i, n) : e === F.TARGET && this.dropTargets.set(i, n), i;
1515
+ return this.types.set(i, r), e === k.SOURCE ? this.dragSources.set(i, n) : e === k.TARGET && this.dropTargets.set(i, n), i;
1516
1516
  }
1517
1517
  constructor(e) {
1518
1518
  this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
@@ -1530,27 +1530,27 @@ function tn(t, e, r = Qr) {
1530
1530
  return !1;
1531
1531
  return !0;
1532
1532
  }
1533
- function rn(t = Z, e) {
1533
+ function rn(t = Q, e) {
1534
1534
  switch (e.type) {
1535
1535
  case se:
1536
1536
  break;
1537
+ case Ce:
1538
+ case we:
1539
+ case ue:
1540
+ case Ne:
1541
+ return Q;
1542
+ case oe:
1537
1543
  case Ie:
1538
- case Ee:
1539
1544
  case ce:
1540
- case Ce:
1541
- return Z;
1542
- case ie:
1543
- case Te:
1544
1545
  case ae:
1545
- case oe:
1546
1546
  default:
1547
- return be;
1547
+ return Ee;
1548
1548
  }
1549
- const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = or(r, n);
1549
+ const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = sr(r, n);
1550
1550
  if (!(i.length > 0 || !tn(r, n)))
1551
- return Z;
1552
- const a = n[n.length - 1], o = r[r.length - 1];
1553
- return a !== o && (a && i.push(a), o && i.push(o)), i;
1551
+ return Q;
1552
+ const a = n[n.length - 1], s = r[r.length - 1];
1553
+ return a !== s && (a && i.push(a), s && i.push(s)), i;
1554
1554
  }
1555
1555
  function nn(t, e, r) {
1556
1556
  return e in t ? Object.defineProperty(t, e, {
@@ -1560,7 +1560,7 @@ function nn(t, e, r) {
1560
1560
  writable: !0
1561
1561
  }) : t[e] = r, t;
1562
1562
  }
1563
- function sn(t) {
1563
+ function on(t) {
1564
1564
  for (var e = 1; e < arguments.length; e++) {
1565
1565
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
1566
1566
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
@@ -1571,28 +1571,28 @@ function sn(t) {
1571
1571
  }
1572
1572
  return t;
1573
1573
  }
1574
- const He = {
1574
+ const Ue = {
1575
1575
  initialSourceClientOffset: null,
1576
1576
  initialClientOffset: null,
1577
1577
  clientOffset: null
1578
1578
  };
1579
- function on(t = He, e) {
1579
+ function sn(t = Ue, e) {
1580
1580
  const { payload: r } = e;
1581
1581
  switch (e.type) {
1582
- case Oe:
1583
- case ie:
1582
+ case be:
1583
+ case oe:
1584
1584
  return {
1585
1585
  initialSourceClientOffset: r.sourceClientOffset,
1586
1586
  initialClientOffset: r.clientOffset,
1587
1587
  clientOffset: r.clientOffset
1588
1588
  };
1589
1589
  case se:
1590
- return en(t.clientOffset, r.clientOffset) ? t : sn({}, t, {
1590
+ return en(t.clientOffset, r.clientOffset) ? t : on({}, t, {
1591
1591
  clientOffset: r.clientOffset
1592
1592
  });
1593
+ case ce:
1593
1594
  case ae:
1594
- case oe:
1595
- return He;
1595
+ return Ue;
1596
1596
  default:
1597
1597
  return t;
1598
1598
  }
@@ -1628,7 +1628,7 @@ const cn = {
1628
1628
  function un(t = cn, e) {
1629
1629
  const { payload: r } = e;
1630
1630
  switch (e.type) {
1631
- case ie:
1631
+ case oe:
1632
1632
  return X({}, t, {
1633
1633
  itemType: r.itemType,
1634
1634
  item: r.item,
@@ -1637,7 +1637,7 @@ function un(t = cn, e) {
1637
1637
  dropResult: null,
1638
1638
  didDrop: !1
1639
1639
  });
1640
- case Te:
1640
+ case Ie:
1641
1641
  return X({}, t, {
1642
1642
  isSourcePublic: !0
1643
1643
  });
@@ -1645,17 +1645,17 @@ function un(t = cn, e) {
1645
1645
  return X({}, t, {
1646
1646
  targetIds: r.targetIds
1647
1647
  });
1648
- case ce:
1648
+ case ue:
1649
1649
  return t.targetIds.indexOf(r.targetId) === -1 ? t : X({}, t, {
1650
- targetIds: sr(t.targetIds, r.targetId)
1650
+ targetIds: or(t.targetIds, r.targetId)
1651
1651
  });
1652
- case oe:
1652
+ case ae:
1653
1653
  return X({}, t, {
1654
1654
  dropResult: r.dropResult,
1655
1655
  didDrop: !0,
1656
1656
  targetIds: []
1657
1657
  });
1658
- case ae:
1658
+ case ce:
1659
1659
  return X({}, t, {
1660
1660
  itemType: null,
1661
1661
  item: null,
@@ -1671,11 +1671,11 @@ function un(t = cn, e) {
1671
1671
  }
1672
1672
  function ln(t = 0, e) {
1673
1673
  switch (e.type) {
1674
- case Ie:
1675
- case Ee:
1676
- return t + 1;
1677
1674
  case Ce:
1678
- case ce:
1675
+ case we:
1676
+ return t + 1;
1677
+ case Ne:
1678
+ case ue:
1679
1679
  return t - 1;
1680
1680
  default:
1681
1681
  return t;
@@ -1711,19 +1711,19 @@ function hn(t = {}, e) {
1711
1711
  prevTargetIds: ir(t, "dragOperation.targetIds", [])
1712
1712
  })
1713
1713
  }),
1714
- dragOffset: on(t.dragOffset, e),
1714
+ dragOffset: sn(t.dragOffset, e),
1715
1715
  refCount: ln(t.refCount, e),
1716
1716
  dragOperation: un(t.dragOperation, e),
1717
1717
  stateId: dn(t.stateId)
1718
1718
  };
1719
1719
  }
1720
1720
  function pn(t, e = void 0, r = {}, n = !1) {
1721
- const i = mn(n), s = new Mr(i, new Zr(i)), a = new Pr(i, s), o = t(a, e, r);
1722
- return a.receiveBackend(o), a;
1721
+ const i = mn(n), o = new Fr(i, new Zr(i)), a = new _r(i, o), s = t(a, e, r);
1722
+ return a.receiveBackend(s), a;
1723
1723
  }
1724
1724
  function mn(t) {
1725
1725
  const e = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
1726
- return Ze(hn, t && e && e({
1726
+ return Qe(hn, t && e && e({
1727
1727
  name: "dnd-core",
1728
1728
  instanceId: "dnd-core"
1729
1729
  }));
@@ -1732,34 +1732,34 @@ function vn(t, e) {
1732
1732
  if (t == null) return {};
1733
1733
  var r = Dn(t, e), n, i;
1734
1734
  if (Object.getOwnPropertySymbols) {
1735
- var s = Object.getOwnPropertySymbols(t);
1736
- for (i = 0; i < s.length; i++)
1737
- n = s[i], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (r[n] = t[n]);
1735
+ var o = Object.getOwnPropertySymbols(t);
1736
+ for (i = 0; i < o.length; i++)
1737
+ n = o[i], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (r[n] = t[n]);
1738
1738
  }
1739
1739
  return r;
1740
1740
  }
1741
1741
  function Dn(t, e) {
1742
1742
  if (t == null) return {};
1743
- var r = {}, n = Object.keys(t), i, s;
1744
- for (s = 0; s < n.length; s++)
1745
- i = n[s], !(e.indexOf(i) >= 0) && (r[i] = t[i]);
1743
+ var r = {}, n = Object.keys(t), i, o;
1744
+ for (o = 0; o < n.length; o++)
1745
+ i = n[o], !(e.indexOf(i) >= 0) && (r[i] = t[i]);
1746
1746
  return r;
1747
1747
  }
1748
- let Ue = 0;
1749
- const ne = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
1748
+ let Ye = 0;
1749
+ const ie = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
1750
1750
  var yn = /* @__PURE__ */ Ct(function(e) {
1751
1751
  var { children: r } = e, n = vn(e, [
1752
1752
  "children"
1753
1753
  ]);
1754
- const [i, s] = Sn(n);
1754
+ const [i, o] = Sn(n);
1755
1755
  return R(() => {
1756
- if (s) {
1757
- const a = it();
1758
- return ++Ue, () => {
1759
- --Ue === 0 && (a[ne] = null);
1756
+ if (o) {
1757
+ const a = ot();
1758
+ return ++Ye, () => {
1759
+ --Ye === 0 && (a[ie] = null);
1760
1760
  };
1761
1761
  }
1762
- }, []), /* @__PURE__ */ c.jsx(Je.Provider, {
1762
+ }, []), /* @__PURE__ */ c(Ze.Provider, {
1763
1763
  value: i,
1764
1764
  children: r
1765
1765
  });
@@ -1778,22 +1778,22 @@ function Sn(t) {
1778
1778
  r
1779
1779
  ];
1780
1780
  }
1781
- function On(t, e = it(), r, n) {
1781
+ function On(t, e = ot(), r, n) {
1782
1782
  const i = e;
1783
- return i[ne] || (i[ne] = {
1783
+ return i[ie] || (i[ie] = {
1784
1784
  dragDropManager: pn(t, e, r, n)
1785
- }), i[ne];
1785
+ }), i[ie];
1786
1786
  }
1787
- function it() {
1787
+ function ot() {
1788
1788
  return typeof global < "u" ? global : window;
1789
1789
  }
1790
- var ue, Ye;
1790
+ var le, Be;
1791
1791
  function Tn() {
1792
- return Ye || (Ye = 1, ue = function t(e, r) {
1792
+ return Be || (Be = 1, le = function t(e, r) {
1793
1793
  if (e === r) return !0;
1794
1794
  if (e && r && typeof e == "object" && typeof r == "object") {
1795
1795
  if (e.constructor !== r.constructor) return !1;
1796
- var n, i, s;
1796
+ var n, i, o;
1797
1797
  if (Array.isArray(e)) {
1798
1798
  if (n = e.length, n != r.length) return !1;
1799
1799
  for (i = n; i-- !== 0; )
@@ -1803,24 +1803,24 @@ function Tn() {
1803
1803
  if (e.constructor === RegExp) return e.source === r.source && e.flags === r.flags;
1804
1804
  if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === r.valueOf();
1805
1805
  if (e.toString !== Object.prototype.toString) return e.toString() === r.toString();
1806
- if (s = Object.keys(e), n = s.length, n !== Object.keys(r).length) return !1;
1806
+ if (o = Object.keys(e), n = o.length, n !== Object.keys(r).length) return !1;
1807
1807
  for (i = n; i-- !== 0; )
1808
- if (!Object.prototype.hasOwnProperty.call(r, s[i])) return !1;
1808
+ if (!Object.prototype.hasOwnProperty.call(r, o[i])) return !1;
1809
1809
  for (i = n; i-- !== 0; ) {
1810
- var a = s[i];
1810
+ var a = o[i];
1811
1811
  if (!t(e[a], r[a])) return !1;
1812
1812
  }
1813
1813
  return !0;
1814
1814
  }
1815
1815
  return e !== e && r !== r;
1816
- }), ue;
1816
+ }), le;
1817
1817
  }
1818
1818
  var bn = Tn();
1819
- const In = /* @__PURE__ */ Yt(bn), V = typeof window < "u" ? wt : R;
1819
+ const In = /* @__PURE__ */ $t(bn), V = typeof window < "u" ? wt : R;
1820
1820
  function En(t, e, r) {
1821
1821
  const [n, i] = L(
1822
1822
  () => e(t)
1823
- ), s = xt(() => {
1823
+ ), o = Nt(() => {
1824
1824
  const a = e(t);
1825
1825
  In(n, a) || (i(a), r && r());
1826
1826
  }, [
@@ -1828,9 +1828,9 @@ function En(t, e, r) {
1828
1828
  t,
1829
1829
  r
1830
1830
  ]);
1831
- return V(s), [
1831
+ return V(o), [
1832
1832
  n,
1833
- s
1833
+ o
1834
1834
  ];
1835
1835
  }
1836
1836
  function Cn(t, e, r) {
@@ -1855,28 +1855,28 @@ function st(t, e, r) {
1855
1855
  () => r.reconnect()
1856
1856
  );
1857
1857
  }
1858
- function ot(t, e) {
1858
+ function at(t, e) {
1859
1859
  const r = [];
1860
- return typeof t != "function" && r.push(t), j(() => typeof t == "function" ? t() : t, r);
1860
+ return typeof t != "function" && r.push(t), M(() => typeof t == "function" ? t() : t, r);
1861
1861
  }
1862
1862
  function wn(t) {
1863
- return j(
1863
+ return M(
1864
1864
  () => t.hooks.dragSource(),
1865
1865
  [
1866
1866
  t
1867
1867
  ]
1868
1868
  );
1869
1869
  }
1870
- function xn(t) {
1871
- return j(
1870
+ function Nn(t) {
1871
+ return M(
1872
1872
  () => t.hooks.dragPreview(),
1873
1873
  [
1874
1874
  t
1875
1875
  ]
1876
1876
  );
1877
1877
  }
1878
- let le = !1, de = !1;
1879
- class Nn {
1878
+ let de = !1, fe = !1;
1879
+ class Pn {
1880
1880
  receiveHandlerId(e) {
1881
1881
  this.sourceId = e;
1882
1882
  }
@@ -1884,21 +1884,21 @@ class Nn {
1884
1884
  return this.sourceId;
1885
1885
  }
1886
1886
  canDrag() {
1887
- y(!le, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
1887
+ y(!de, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
1888
1888
  try {
1889
- return le = !0, this.internalMonitor.canDragSource(this.sourceId);
1889
+ return de = !0, this.internalMonitor.canDragSource(this.sourceId);
1890
1890
  } finally {
1891
- le = !1;
1891
+ de = !1;
1892
1892
  }
1893
1893
  }
1894
1894
  isDragging() {
1895
1895
  if (!this.sourceId)
1896
1896
  return !1;
1897
- y(!de, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
1897
+ y(!fe, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
1898
1898
  try {
1899
- return de = !0, this.internalMonitor.isDraggingSource(this.sourceId);
1899
+ return fe = !0, this.internalMonitor.isDraggingSource(this.sourceId);
1900
1900
  } finally {
1901
- de = !1;
1901
+ fe = !1;
1902
1902
  }
1903
1903
  }
1904
1904
  subscribeToStateChange(e, r) {
@@ -1959,8 +1959,8 @@ class Nn {
1959
1959
  this.sourceId = null, this.internalMonitor = e.getMonitor();
1960
1960
  }
1961
1961
  }
1962
- let fe = !1;
1963
- class Pn {
1962
+ let ge = !1;
1963
+ class _n {
1964
1964
  receiveHandlerId(e) {
1965
1965
  this.targetId = e;
1966
1966
  }
@@ -1973,11 +1973,11 @@ class Pn {
1973
1973
  canDrop() {
1974
1974
  if (!this.targetId)
1975
1975
  return !1;
1976
- y(!fe, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
1976
+ y(!ge, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
1977
1977
  try {
1978
- return fe = !0, this.internalMonitor.canDropOnTarget(this.targetId);
1978
+ return ge = !0, this.internalMonitor.canDropOnTarget(this.targetId);
1979
1979
  } finally {
1980
- fe = !1;
1980
+ ge = !1;
1981
1981
  }
1982
1982
  }
1983
1983
  isOver(e) {
@@ -2014,7 +2014,7 @@ class Pn {
2014
2014
  this.targetId = null, this.internalMonitor = e.getMonitor();
2015
2015
  }
2016
2016
  }
2017
- function _n(t, e, r) {
2017
+ function xn(t, e, r) {
2018
2018
  const n = r.getRegistry(), i = n.addTarget(t, e);
2019
2019
  return [
2020
2020
  i,
@@ -2028,7 +2028,7 @@ function Rn(t, e, r) {
2028
2028
  () => n.removeSource(i)
2029
2029
  ];
2030
2030
  }
2031
- function De(t, e, r, n) {
2031
+ function Se(t, e, r, n) {
2032
2032
  let i;
2033
2033
  if (i !== void 0)
2034
2034
  return !!i;
@@ -2036,13 +2036,13 @@ function De(t, e, r, n) {
2036
2036
  return !0;
2037
2037
  if (typeof t != "object" || !t || typeof e != "object" || !e)
2038
2038
  return !1;
2039
- const s = Object.keys(t), a = Object.keys(e);
2040
- if (s.length !== a.length)
2039
+ const o = Object.keys(t), a = Object.keys(e);
2040
+ if (o.length !== a.length)
2041
2041
  return !1;
2042
- const o = Object.prototype.hasOwnProperty.bind(e);
2043
- for (let u = 0; u < s.length; u++) {
2044
- const l = s[u];
2045
- if (!o(l))
2042
+ const s = Object.prototype.hasOwnProperty.bind(e);
2043
+ for (let u = 0; u < o.length; u++) {
2044
+ const l = o[u];
2045
+ if (!s(l))
2046
2046
  return !1;
2047
2047
  const p = t[l], m = e[l];
2048
2048
  if (i = void 0, i === !1 || i === void 0 && p !== m)
@@ -2050,7 +2050,7 @@ function De(t, e, r, n) {
2050
2050
  }
2051
2051
  return !0;
2052
2052
  }
2053
- function ye(t) {
2053
+ function Oe(t) {
2054
2054
  return (
2055
2055
  // eslint-disable-next-line no-prototype-builtins
2056
2056
  t !== null && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current")
@@ -2062,42 +2062,42 @@ function Ln(t) {
2062
2062
  const e = t.type.displayName || t.type.name || "the component";
2063
2063
  throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`);
2064
2064
  }
2065
- function jn(t) {
2065
+ function Mn(t) {
2066
2066
  return (e = null, r = null) => {
2067
- if (!Nt(e)) {
2068
- const s = e;
2069
- return t(s, r), s;
2067
+ if (!Pt(e)) {
2068
+ const o = e;
2069
+ return t(o, r), o;
2070
2070
  }
2071
2071
  const n = e;
2072
- return Ln(n), Mn(n, r ? (s) => t(s, r) : t);
2072
+ return Ln(n), Fn(n, r ? (o) => t(o, r) : t);
2073
2073
  };
2074
2074
  }
2075
- function at(t) {
2075
+ function ct(t) {
2076
2076
  const e = {};
2077
2077
  return Object.keys(t).forEach((r) => {
2078
2078
  const n = t[r];
2079
2079
  if (r.endsWith("Ref"))
2080
2080
  e[r] = t[r];
2081
2081
  else {
2082
- const i = jn(n);
2082
+ const i = Mn(n);
2083
2083
  e[r] = () => i;
2084
2084
  }
2085
2085
  }), e;
2086
2086
  }
2087
- function Be(t, e) {
2087
+ function $e(t, e) {
2088
2088
  typeof t == "function" ? t(e) : t.current = e;
2089
2089
  }
2090
- function Mn(t, e) {
2090
+ function Fn(t, e) {
2091
2091
  const r = t.ref;
2092
- return y(typeof r != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), r ? Ne(t, {
2092
+ return y(typeof r != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), r ? ve(t, {
2093
2093
  ref: (n) => {
2094
- Be(r, n), Be(e, n);
2094
+ $e(r, n), $e(e, n);
2095
2095
  }
2096
- }) : Ne(t, {
2096
+ }) : ve(t, {
2097
2097
  ref: e
2098
2098
  });
2099
2099
  }
2100
- class Fn {
2100
+ class kn {
2101
2101
  receiveHandlerId(e) {
2102
2102
  this.handlerId !== e && (this.handlerId = e, this.reconnect());
2103
2103
  }
@@ -2144,10 +2144,10 @@ class Fn {
2144
2144
  return this.lastConnectedDragPreview !== this.dragPreview;
2145
2145
  }
2146
2146
  didDragSourceOptionsChange() {
2147
- return !De(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
2147
+ return !Se(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
2148
2148
  }
2149
2149
  didDragPreviewOptionsChange() {
2150
- return !De(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
2150
+ return !Se(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
2151
2151
  }
2152
2152
  disconnectDragSource() {
2153
2153
  this.dragSourceUnsubscribe && (this.dragSourceUnsubscribe(), this.dragSourceUnsubscribe = void 0);
@@ -2168,17 +2168,17 @@ class Fn {
2168
2168
  this.dragPreviewNode = null, this.dragPreviewRef = null;
2169
2169
  }
2170
2170
  constructor(e) {
2171
- this.hooks = at({
2171
+ this.hooks = ct({
2172
2172
  dragSource: (r, n) => {
2173
- this.clearDragSource(), this.dragSourceOptions = n || null, ye(r) ? this.dragSourceRef = r : this.dragSourceNode = r, this.reconnectDragSource();
2173
+ this.clearDragSource(), this.dragSourceOptions = n || null, Oe(r) ? this.dragSourceRef = r : this.dragSourceNode = r, this.reconnectDragSource();
2174
2174
  },
2175
2175
  dragPreview: (r, n) => {
2176
- this.clearDragPreview(), this.dragPreviewOptions = n || null, ye(r) ? this.dragPreviewRef = r : this.dragPreviewNode = r, this.reconnectDragPreview();
2176
+ this.clearDragPreview(), this.dragPreviewOptions = n || null, Oe(r) ? this.dragPreviewRef = r : this.dragPreviewNode = r, this.reconnectDragPreview();
2177
2177
  }
2178
2178
  }), this.handlerId = null, this.dragSourceRef = null, this.dragSourceOptionsInternal = null, this.dragPreviewRef = null, this.dragPreviewOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDragSource = null, this.lastConnectedDragSourceOptions = null, this.lastConnectedDragPreview = null, this.lastConnectedDragPreviewOptions = null, this.backend = e;
2179
2179
  }
2180
2180
  }
2181
- class kn {
2181
+ class An {
2182
2182
  get connectTarget() {
2183
2183
  return this.dropTarget;
2184
2184
  }
@@ -2210,7 +2210,7 @@ class kn {
2210
2210
  return this.lastConnectedDropTarget !== this.dropTarget;
2211
2211
  }
2212
2212
  didOptionsChange() {
2213
- return !De(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
2213
+ return !Se(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
2214
2214
  }
2215
2215
  disconnectDropTarget() {
2216
2216
  this.unsubscribeDropTarget && (this.unsubscribeDropTarget(), this.unsubscribeDropTarget = void 0);
@@ -2222,20 +2222,20 @@ class kn {
2222
2222
  this.dropTargetRef = null, this.dropTargetNode = null;
2223
2223
  }
2224
2224
  constructor(e) {
2225
- this.hooks = at({
2225
+ this.hooks = ct({
2226
2226
  dropTarget: (r, n) => {
2227
- this.clearDropTarget(), this.dropTargetOptions = n, ye(r) ? this.dropTargetRef = r : this.dropTargetNode = r, this.reconnect();
2227
+ this.clearDropTarget(), this.dropTargetOptions = n, Oe(r) ? this.dropTargetRef = r : this.dropTargetNode = r, this.reconnect();
2228
2228
  }
2229
2229
  }), this.handlerId = null, this.dropTargetRef = null, this.dropTargetOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDropTarget = null, this.lastConnectedDropTargetOptions = null, this.backend = e;
2230
2230
  }
2231
2231
  }
2232
- function K() {
2233
- const { dragDropManager: t } = Pt(Je);
2232
+ function J() {
2233
+ const { dragDropManager: t } = _t(Ze);
2234
2234
  return y(t != null, "Expected drag drop context"), t;
2235
2235
  }
2236
- function An(t, e) {
2237
- const r = K(), n = j(
2238
- () => new Fn(r.getBackend()),
2236
+ function Hn(t, e) {
2237
+ const r = J(), n = M(
2238
+ () => new kn(r.getBackend()),
2239
2239
  [
2240
2240
  r
2241
2241
  ]
@@ -2248,10 +2248,10 @@ function An(t, e) {
2248
2248
  e
2249
2249
  ]), n;
2250
2250
  }
2251
- function Hn() {
2252
- const t = K();
2253
- return j(
2254
- () => new Nn(t),
2251
+ function jn() {
2252
+ const t = J();
2253
+ return M(
2254
+ () => new Pn(t),
2255
2255
  [
2256
2256
  t
2257
2257
  ]
@@ -2268,8 +2268,8 @@ class Un {
2268
2268
  return typeof e.canDrag == "boolean" ? e.canDrag : typeof e.canDrag == "function" ? e.canDrag(r) : !0;
2269
2269
  }
2270
2270
  isDragging(e, r) {
2271
- const n = this.spec, i = this.monitor, { isDragging: s } = n;
2272
- return s ? s(i) : r === e.getSourceId();
2271
+ const n = this.spec, i = this.monitor, { isDragging: o } = n;
2272
+ return o ? o(i) : r === e.getSourceId();
2273
2273
  }
2274
2274
  endDrag() {
2275
2275
  const e = this.spec, r = this.monitor, n = this.connector, { end: i } = e;
@@ -2280,7 +2280,7 @@ class Un {
2280
2280
  }
2281
2281
  }
2282
2282
  function Yn(t, e, r) {
2283
- const n = j(
2283
+ const n = M(
2284
2284
  () => new Un(t, e, r),
2285
2285
  [
2286
2286
  e,
@@ -2294,7 +2294,7 @@ function Yn(t, e, r) {
2294
2294
  ]), n;
2295
2295
  }
2296
2296
  function Bn(t) {
2297
- return j(() => {
2297
+ return M(() => {
2298
2298
  const e = t.type;
2299
2299
  return y(e != null, "spec.type must be defined"), e;
2300
2300
  }, [
@@ -2302,32 +2302,32 @@ function Bn(t) {
2302
2302
  ]);
2303
2303
  }
2304
2304
  function $n(t, e, r) {
2305
- const n = K(), i = Yn(t, e, r), s = Bn(t);
2305
+ const n = J(), i = Yn(t, e, r), o = Bn(t);
2306
2306
  V(function() {
2307
- if (s != null) {
2308
- const [o, u] = Rn(s, i, n);
2309
- return e.receiveHandlerId(o), r.receiveHandlerId(o), u;
2307
+ if (o != null) {
2308
+ const [s, u] = Rn(o, i, n);
2309
+ return e.receiveHandlerId(s), r.receiveHandlerId(s), u;
2310
2310
  }
2311
2311
  }, [
2312
2312
  n,
2313
2313
  e,
2314
2314
  r,
2315
2315
  i,
2316
- s
2316
+ o
2317
2317
  ]);
2318
2318
  }
2319
2319
  function Vn(t, e) {
2320
- const r = ot(t);
2320
+ const r = at(t);
2321
2321
  y(!r.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
2322
- const n = Hn(), i = An(r.options, r.previewOptions);
2322
+ const n = jn(), i = Hn(r.options, r.previewOptions);
2323
2323
  return $n(r, n, i), [
2324
2324
  st(r.collect, n, i),
2325
2325
  wn(i),
2326
- xn(i)
2326
+ Nn(i)
2327
2327
  ];
2328
2328
  }
2329
2329
  function zn(t) {
2330
- return j(
2330
+ return M(
2331
2331
  () => t.hooks.dropTarget(),
2332
2332
  [
2333
2333
  t
@@ -2335,8 +2335,8 @@ function zn(t) {
2335
2335
  );
2336
2336
  }
2337
2337
  function qn(t) {
2338
- const e = K(), r = j(
2339
- () => new kn(e.getBackend()),
2338
+ const e = J(), r = M(
2339
+ () => new An(e.getBackend()),
2340
2340
  [
2341
2341
  e
2342
2342
  ]
@@ -2346,9 +2346,9 @@ function qn(t) {
2346
2346
  ]), r;
2347
2347
  }
2348
2348
  function Gn() {
2349
- const t = K();
2350
- return j(
2351
- () => new Pn(t),
2349
+ const t = J();
2350
+ return M(
2351
+ () => new _n(t),
2352
2352
  [
2353
2353
  t
2354
2354
  ]
@@ -2356,7 +2356,7 @@ function Gn() {
2356
2356
  }
2357
2357
  function Xn(t) {
2358
2358
  const { accept: e } = t;
2359
- return j(() => (y(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
2359
+ return M(() => (y(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
2360
2360
  e
2361
2361
  ]), [
2362
2362
  e
@@ -2381,7 +2381,7 @@ class Wn {
2381
2381
  }
2382
2382
  }
2383
2383
  function Kn(t, e) {
2384
- const r = j(
2384
+ const r = M(
2385
2385
  () => new Wn(t, e),
2386
2386
  [
2387
2387
  e
@@ -2394,28 +2394,28 @@ function Kn(t, e) {
2394
2394
  ]), r;
2395
2395
  }
2396
2396
  function Jn(t, e, r) {
2397
- const n = K(), i = Kn(t, e), s = Xn(t);
2397
+ const n = J(), i = Kn(t, e), o = Xn(t);
2398
2398
  V(function() {
2399
- const [o, u] = _n(s, i, n);
2400
- return e.receiveHandlerId(o), r.receiveHandlerId(o), u;
2399
+ const [s, u] = xn(o, i, n);
2400
+ return e.receiveHandlerId(s), r.receiveHandlerId(s), u;
2401
2401
  }, [
2402
2402
  n,
2403
2403
  e,
2404
2404
  i,
2405
2405
  r,
2406
- s.map(
2406
+ o.map(
2407
2407
  (a) => a.toString()
2408
2408
  ).join("|")
2409
2409
  ]);
2410
2410
  }
2411
2411
  function Zn(t, e) {
2412
- const r = ot(t), n = Gn(), i = qn(r.options);
2412
+ const r = at(t), n = Gn(), i = qn(r.options);
2413
2413
  return Jn(r, n, i), [
2414
2414
  st(r.collect, n, i),
2415
2415
  zn(i)
2416
2416
  ];
2417
2417
  }
2418
- function ct(t) {
2418
+ function ut(t) {
2419
2419
  let e = null;
2420
2420
  return () => (e == null && (e = t()), e);
2421
2421
  }
@@ -2425,11 +2425,11 @@ function Qn(t, e) {
2425
2425
  );
2426
2426
  }
2427
2427
  function ei(t, e) {
2428
- const r = /* @__PURE__ */ new Set(), n = (s) => r.add(s);
2428
+ const r = /* @__PURE__ */ new Set(), n = (o) => r.add(o);
2429
2429
  t.forEach(n), e.forEach(n);
2430
2430
  const i = [];
2431
2431
  return r.forEach(
2432
- (s) => i.push(s)
2432
+ (o) => i.push(o)
2433
2433
  ), i;
2434
2434
  }
2435
2435
  class ti {
@@ -2490,22 +2490,22 @@ class ri {
2490
2490
  this.config = e, this.item = {}, this.initializeExposedProperties();
2491
2491
  }
2492
2492
  }
2493
- const ut = "__NATIVE_FILE__", lt = "__NATIVE_URL__", dt = "__NATIVE_TEXT__", ft = "__NATIVE_HTML__", $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2493
+ const lt = "__NATIVE_FILE__", dt = "__NATIVE_URL__", ft = "__NATIVE_TEXT__", gt = "__NATIVE_HTML__", Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2494
2494
  __proto__: null,
2495
- FILE: ut,
2496
- HTML: ft,
2497
- TEXT: dt,
2498
- URL: lt
2495
+ FILE: lt,
2496
+ HTML: gt,
2497
+ TEXT: ft,
2498
+ URL: dt
2499
2499
  }, Symbol.toStringTag, { value: "Module" }));
2500
- function ge(t, e, r) {
2500
+ function he(t, e, r) {
2501
2501
  const n = e.reduce(
2502
- (i, s) => i || t.getData(s),
2502
+ (i, o) => i || t.getData(o),
2503
2503
  ""
2504
2504
  );
2505
2505
  return n ?? r;
2506
2506
  }
2507
- const Se = {
2508
- [ut]: {
2507
+ const Te = {
2508
+ [lt]: {
2509
2509
  exposeProperties: {
2510
2510
  files: (t) => Array.prototype.slice.call(t.files),
2511
2511
  items: (t) => t.items,
@@ -2515,9 +2515,9 @@ const Se = {
2515
2515
  "Files"
2516
2516
  ]
2517
2517
  },
2518
- [ft]: {
2518
+ [gt]: {
2519
2519
  exposeProperties: {
2520
- html: (t, e) => ge(t, e, ""),
2520
+ html: (t, e) => he(t, e, ""),
2521
2521
  dataTransfer: (t) => t
2522
2522
  },
2523
2523
  matchesTypes: [
@@ -2525,9 +2525,9 @@ const Se = {
2525
2525
  "text/html"
2526
2526
  ]
2527
2527
  },
2528
- [lt]: {
2528
+ [dt]: {
2529
2529
  exposeProperties: {
2530
- urls: (t, e) => ge(t, e, "").split(`
2530
+ urls: (t, e) => he(t, e, "").split(`
2531
2531
  `),
2532
2532
  dataTransfer: (t) => t
2533
2533
  },
@@ -2536,9 +2536,9 @@ const Se = {
2536
2536
  "text/uri-list"
2537
2537
  ]
2538
2538
  },
2539
- [dt]: {
2539
+ [ft]: {
2540
2540
  exposeProperties: {
2541
- text: (t, e) => ge(t, e, ""),
2541
+ text: (t, e) => he(t, e, ""),
2542
2542
  dataTransfer: (t) => t
2543
2543
  },
2544
2544
  matchesTypes: [
@@ -2548,34 +2548,34 @@ const Se = {
2548
2548
  }
2549
2549
  };
2550
2550
  function ni(t, e) {
2551
- const r = Se[t];
2551
+ const r = Te[t];
2552
2552
  if (!r)
2553
2553
  throw new Error(`native type ${t} has no configuration`);
2554
2554
  const n = new ri(r);
2555
2555
  return n.loadDataTransfer(e), n;
2556
2556
  }
2557
- function he(t) {
2557
+ function pe(t) {
2558
2558
  if (!t)
2559
2559
  return null;
2560
2560
  const e = Array.prototype.slice.call(t.types || []);
2561
- return Object.keys(Se).filter((r) => {
2562
- const n = Se[r];
2561
+ return Object.keys(Te).filter((r) => {
2562
+ const n = Te[r];
2563
2563
  return n?.matchesTypes ? n.matchesTypes.some(
2564
2564
  (i) => e.indexOf(i) > -1
2565
2565
  ) : !1;
2566
2566
  })[0] || null;
2567
2567
  }
2568
- const ii = ct(
2568
+ const ii = ut(
2569
2569
  () => /firefox/i.test(navigator.userAgent)
2570
- ), gt = ct(
2570
+ ), ht = ut(
2571
2571
  () => !!window.safari
2572
2572
  );
2573
- class Ve {
2573
+ class ze {
2574
2574
  interpolate(e) {
2575
- const { xs: r, ys: n, c1s: i, c2s: s, c3s: a } = this;
2576
- let o = r.length - 1;
2577
- if (e === r[o])
2578
- return n[o];
2575
+ const { xs: r, ys: n, c1s: i, c2s: o, c3s: a } = this;
2576
+ let s = r.length - 1;
2577
+ if (e === r[s])
2578
+ return n[s];
2579
2579
  let u = 0, l = a.length - 1, p;
2580
2580
  for (; u <= l; ) {
2581
2581
  p = Math.floor(0.5 * (u + l));
@@ -2587,9 +2587,9 @@ class Ve {
2587
2587
  else
2588
2588
  return n[p];
2589
2589
  }
2590
- o = Math.max(0, l);
2591
- const m = e - r[o], g = m * m;
2592
- return n[o] + i[o] * m + s[o] * g + a[o] * m * g;
2590
+ s = Math.max(0, l);
2591
+ const m = e - r[s], g = m * m;
2592
+ return n[s] + i[s] * m + o[s] * g + a[s] * m * g;
2593
2593
  }
2594
2594
  constructor(e, r) {
2595
2595
  const { length: n } = e, i = [];
@@ -2598,21 +2598,21 @@ class Ve {
2598
2598
  i.sort(
2599
2599
  (d, b) => e[d] < e[b] ? -1 : 1
2600
2600
  );
2601
- const s = [], a = [];
2602
- let o, u;
2601
+ const o = [], a = [];
2602
+ let s, u;
2603
2603
  for (let d = 0; d < n - 1; d++)
2604
- o = e[d + 1] - e[d], u = r[d + 1] - r[d], s.push(o), a.push(u / o);
2604
+ s = e[d + 1] - e[d], u = r[d + 1] - r[d], o.push(s), a.push(u / s);
2605
2605
  const l = [
2606
2606
  a[0]
2607
2607
  ];
2608
- for (let d = 0; d < s.length - 1; d++) {
2608
+ for (let d = 0; d < o.length - 1; d++) {
2609
2609
  const b = a[d], D = a[d + 1];
2610
2610
  if (b * D <= 0)
2611
2611
  l.push(0);
2612
2612
  else {
2613
- o = s[d];
2614
- const E = s[d + 1], v = o + E;
2615
- l.push(3 * v / ((v + E) / b + (v + o) / D));
2613
+ s = o[d];
2614
+ const E = o[d + 1], v = s + E;
2615
+ l.push(3 * v / ((v + E) / b + (v + s) / D));
2616
2616
  }
2617
2617
  }
2618
2618
  l.push(a[a.length - 1]);
@@ -2620,15 +2620,15 @@ class Ve {
2620
2620
  let g;
2621
2621
  for (let d = 0; d < l.length - 1; d++) {
2622
2622
  g = a[d];
2623
- const b = l[d], D = 1 / s[d], E = b + l[d + 1] - g - g;
2623
+ const b = l[d], D = 1 / o[d], E = b + l[d + 1] - g - g;
2624
2624
  p.push((g - b - E) * D), m.push(E * D * D);
2625
2625
  }
2626
2626
  this.xs = e, this.ys = r, this.c1s = l, this.c2s = p, this.c3s = m;
2627
2627
  }
2628
2628
  }
2629
- const si = 1;
2630
- function ht(t) {
2631
- const e = t.nodeType === si ? t : t.parentElement;
2629
+ const oi = 1;
2630
+ function pt(t) {
2631
+ const e = t.nodeType === oi ? t : t.parentElement;
2632
2632
  if (!e)
2633
2633
  return null;
2634
2634
  const { top: r, left: n } = e.getBoundingClientRect();
@@ -2637,29 +2637,29 @@ function ht(t) {
2637
2637
  y: r
2638
2638
  };
2639
2639
  }
2640
- function re(t) {
2640
+ function ne(t) {
2641
2641
  return {
2642
2642
  x: t.clientX,
2643
2643
  y: t.clientY
2644
2644
  };
2645
2645
  }
2646
- function oi(t) {
2646
+ function si(t) {
2647
2647
  var e;
2648
2648
  return t.nodeName === "IMG" && (ii() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
2649
2649
  }
2650
2650
  function ai(t, e, r, n) {
2651
- let i = t ? e.width : r, s = t ? e.height : n;
2652
- return gt() && t && (s /= window.devicePixelRatio, i /= window.devicePixelRatio), {
2651
+ let i = t ? e.width : r, o = t ? e.height : n;
2652
+ return ht() && t && (o /= window.devicePixelRatio, i /= window.devicePixelRatio), {
2653
2653
  dragPreviewWidth: i,
2654
- dragPreviewHeight: s
2654
+ dragPreviewHeight: o
2655
2655
  };
2656
2656
  }
2657
2657
  function ci(t, e, r, n, i) {
2658
- const s = oi(e), o = ht(s ? t : e), u = {
2659
- x: r.x - o.x,
2660
- y: r.y - o.y
2661
- }, { offsetWidth: l, offsetHeight: p } = t, { anchorX: m, anchorY: g } = n, { dragPreviewWidth: d, dragPreviewHeight: b } = ai(s, e, l, p), D = () => {
2662
- let S = new Ve([
2658
+ const o = si(e), s = pt(o ? t : e), u = {
2659
+ x: r.x - s.x,
2660
+ y: r.y - s.y
2661
+ }, { offsetWidth: l, offsetHeight: p } = t, { anchorX: m, anchorY: g } = n, { dragPreviewWidth: d, dragPreviewHeight: b } = ai(o, e, l, p), D = () => {
2662
+ let S = new ze([
2663
2663
  0,
2664
2664
  0.5,
2665
2665
  1
@@ -2671,8 +2671,8 @@ function ci(t, e, r, n, i) {
2671
2671
  // Dock to the bottom
2672
2672
  u.y + b - p
2673
2673
  ]).interpolate(g);
2674
- return gt() && s && (S += (window.devicePixelRatio - 1) * b), S;
2675
- }, E = () => new Ve([
2674
+ return ht() && o && (S += (window.devicePixelRatio - 1) * b), S;
2675
+ }, E = () => new ze([
2676
2676
  0,
2677
2677
  0.5,
2678
2678
  1
@@ -2716,7 +2716,7 @@ function li(t, e, r) {
2716
2716
  writable: !0
2717
2717
  }) : t[e] = r, t;
2718
2718
  }
2719
- function ze(t) {
2719
+ function qe(t) {
2720
2720
  for (var e = 1; e < arguments.length; e++) {
2721
2721
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
2722
2722
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
@@ -2779,15 +2779,15 @@ class di {
2779
2779
  }
2780
2780
  connectDragSource(e, r, n) {
2781
2781
  this.sourceNodes.set(e, r), this.sourceNodeOptions.set(e, n);
2782
- const i = (a) => this.handleDragStart(a, e), s = (a) => this.handleSelectStart(a);
2783
- return r.setAttribute("draggable", "true"), r.addEventListener("dragstart", i), r.addEventListener("selectstart", s), () => {
2784
- this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart", i), r.removeEventListener("selectstart", s), r.setAttribute("draggable", "false");
2782
+ const i = (a) => this.handleDragStart(a, e), o = (a) => this.handleSelectStart(a);
2783
+ return r.setAttribute("draggable", "true"), r.addEventListener("dragstart", i), r.addEventListener("selectstart", o), () => {
2784
+ this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart", i), r.removeEventListener("selectstart", o), r.setAttribute("draggable", "false");
2785
2785
  };
2786
2786
  }
2787
2787
  connectDropTarget(e, r) {
2788
- const n = (a) => this.handleDragEnter(a, e), i = (a) => this.handleDragOver(a, e), s = (a) => this.handleDrop(a, e);
2789
- return r.addEventListener("dragenter", n), r.addEventListener("dragover", i), r.addEventListener("drop", s), () => {
2790
- r.removeEventListener("dragenter", n), r.removeEventListener("dragover", i), r.removeEventListener("drop", s);
2788
+ const n = (a) => this.handleDragEnter(a, e), i = (a) => this.handleDragOver(a, e), o = (a) => this.handleDrop(a, e);
2789
+ return r.addEventListener("dragenter", n), r.addEventListener("dragover", i), r.addEventListener("drop", o), () => {
2790
+ r.removeEventListener("dragenter", n), r.removeEventListener("dragover", i), r.removeEventListener("drop", o);
2791
2791
  };
2792
2792
  }
2793
2793
  addEventListeners(e) {
@@ -2798,7 +2798,7 @@ class di {
2798
2798
  }
2799
2799
  getCurrentSourceNodeOptions() {
2800
2800
  const e = this.monitor.getSourceId(), r = this.sourceNodeOptions.get(e);
2801
- return ze({
2801
+ return qe({
2802
2802
  dropEffect: this.altKeyPressed ? "copy" : "move"
2803
2803
  }, r || {});
2804
2804
  }
@@ -2807,7 +2807,7 @@ class di {
2807
2807
  }
2808
2808
  getCurrentSourcePreviewNodeOptions() {
2809
2809
  const e = this.monitor.getSourceId(), r = this.sourcePreviewNodeOptions.get(e);
2810
- return ze({
2810
+ return qe({
2811
2811
  anchorX: 0.5,
2812
2812
  anchorY: 0.5,
2813
2813
  captureDraggingState: !1
@@ -2815,8 +2815,8 @@ class di {
2815
2815
  }
2816
2816
  isDraggingNativeItem() {
2817
2817
  const e = this.monitor.getItemType();
2818
- return Object.keys($e).some(
2819
- (r) => $e[r] === e
2818
+ return Object.keys(Ve).some(
2819
+ (r) => Ve[r] === e
2820
2820
  );
2821
2821
  }
2822
2822
  beginDragNativeItem(e, r) {
@@ -2856,8 +2856,8 @@ class di {
2856
2856
  }
2857
2857
  constructor(e, r, n) {
2858
2858
  this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourceNodeOptions = /* @__PURE__ */ new Map(), this.dragStartSourceIds = null, this.dropTargetIds = [], this.dragEnterTargetIds = [], this.currentNativeSource = null, this.currentNativeHandle = null, this.currentDragSourceNode = null, this.altKeyPressed = !1, this.mouseMoveTimeoutTimer = null, this.asyncEndDragFrameId = null, this.dragOverTargetIds = null, this.lastClientOffset = null, this.hoverRafId = null, this.getSourceClientOffset = (i) => {
2859
- const s = this.sourceNodes.get(i);
2860
- return s && ht(s) || null;
2859
+ const o = this.sourceNodes.get(i);
2860
+ return o && pt(o) || null;
2861
2861
  }, this.endDragNativeItem = () => {
2862
2862
  this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
2863
2863
  }, this.isNodeInDocument = (i) => !!(i && this.document && this.document.body && this.document.body.contains(i)), this.endDragIfSourceWasRemovedFromDOM = () => {
@@ -2876,17 +2876,17 @@ class di {
2876
2876
  }, this.handleTopDragStart = (i) => {
2877
2877
  if (i.defaultPrevented)
2878
2878
  return;
2879
- const { dragStartSourceIds: s } = this;
2879
+ const { dragStartSourceIds: o } = this;
2880
2880
  this.dragStartSourceIds = null;
2881
- const a = re(i);
2882
- this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(s || [], {
2881
+ const a = ne(i);
2882
+ this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(o || [], {
2883
2883
  publishSource: !1,
2884
2884
  getSourceClientOffset: this.getSourceClientOffset,
2885
2885
  clientOffset: a
2886
2886
  });
2887
- const { dataTransfer: o } = i, u = he(o);
2887
+ const { dataTransfer: s } = i, u = pe(s);
2888
2888
  if (this.monitor.isDragging()) {
2889
- if (o && typeof o.setDragImage == "function") {
2889
+ if (s && typeof s.setDragImage == "function") {
2890
2890
  const p = this.monitor.getSourceId(), m = this.sourceNodes.get(p), g = this.sourcePreviewNodes.get(p) || m;
2891
2891
  if (g) {
2892
2892
  const { anchorX: d, anchorY: b, offsetX: D, offsetY: E } = this.getCurrentSourcePreviewNodeOptions(), I = ci(m, g, a, {
@@ -2896,11 +2896,11 @@ class di {
2896
2896
  offsetX: D,
2897
2897
  offsetY: E
2898
2898
  });
2899
- o.setDragImage(g, I.x, I.y);
2899
+ s.setDragImage(g, I.x, I.y);
2900
2900
  }
2901
2901
  }
2902
2902
  try {
2903
- o?.setData("application/json", {});
2903
+ s?.setData("application/json", {});
2904
2904
  } catch {
2905
2905
  }
2906
2906
  this.setCurrentDragSourceNode(i.target);
@@ -2912,7 +2912,7 @@ class di {
2912
2912
  } else if (u)
2913
2913
  this.beginDragNativeItem(u);
2914
2914
  else {
2915
- if (o && !o.types && (i.target && !i.target.hasAttribute || !i.target.hasAttribute("draggable")))
2915
+ if (s && !s.types && (i.target && !i.target.hasAttribute || !i.target.hasAttribute("draggable")))
2916
2916
  return;
2917
2917
  i.preventDefault();
2918
2918
  }
@@ -2920,35 +2920,35 @@ class di {
2920
2920
  this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
2921
2921
  }, this.handleTopDragEnterCapture = (i) => {
2922
2922
  if (this.dragEnterTargetIds = [], this.isDraggingNativeItem()) {
2923
- var s;
2924
- (s = this.currentNativeSource) === null || s === void 0 || s.loadDataTransfer(i.dataTransfer);
2923
+ var o;
2924
+ (o = this.currentNativeSource) === null || o === void 0 || o.loadDataTransfer(i.dataTransfer);
2925
2925
  }
2926
2926
  if (!this.enterLeaveCounter.enter(i.target) || this.monitor.isDragging())
2927
2927
  return;
2928
- const { dataTransfer: o } = i, u = he(o);
2929
- u && this.beginDragNativeItem(u, o);
2928
+ const { dataTransfer: s } = i, u = pe(s);
2929
+ u && this.beginDragNativeItem(u, s);
2930
2930
  }, this.handleTopDragEnter = (i) => {
2931
- const { dragEnterTargetIds: s } = this;
2931
+ const { dragEnterTargetIds: o } = this;
2932
2932
  if (this.dragEnterTargetIds = [], !this.monitor.isDragging())
2933
2933
  return;
2934
- this.altKeyPressed = i.altKey, s.length > 0 && this.actions.hover(s, {
2935
- clientOffset: re(i)
2936
- }), s.some(
2937
- (o) => this.monitor.canDropOnTarget(o)
2934
+ this.altKeyPressed = i.altKey, o.length > 0 && this.actions.hover(o, {
2935
+ clientOffset: ne(i)
2936
+ }), o.some(
2937
+ (s) => this.monitor.canDropOnTarget(s)
2938
2938
  ) && (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect()));
2939
2939
  }, this.handleTopDragOverCapture = (i) => {
2940
2940
  if (this.dragOverTargetIds = [], this.isDraggingNativeItem()) {
2941
- var s;
2942
- (s = this.currentNativeSource) === null || s === void 0 || s.loadDataTransfer(i.dataTransfer);
2941
+ var o;
2942
+ (o = this.currentNativeSource) === null || o === void 0 || o.loadDataTransfer(i.dataTransfer);
2943
2943
  }
2944
2944
  }, this.handleTopDragOver = (i) => {
2945
- const { dragOverTargetIds: s } = this;
2945
+ const { dragOverTargetIds: o } = this;
2946
2946
  if (this.dragOverTargetIds = [], !this.monitor.isDragging()) {
2947
2947
  i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none");
2948
2948
  return;
2949
2949
  }
2950
- this.altKeyPressed = i.altKey, this.lastClientOffset = re(i), this.scheduleHover(s), (s || []).some(
2951
- (o) => this.monitor.canDropOnTarget(o)
2950
+ this.altKeyPressed = i.altKey, this.lastClientOffset = ne(i), this.scheduleHover(o), (o || []).some(
2951
+ (s) => this.monitor.canDropOnTarget(s)
2952
2952
  ) ? (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect())) : this.isDraggingNativeItem() ? i.preventDefault() : (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none"));
2953
2953
  }, this.handleTopDragLeaveCapture = (i) => {
2954
2954
  this.isDraggingNativeItem() && i.preventDefault(), this.enterLeaveCounter.leave(i.target) && (this.isDraggingNativeItem() && setTimeout(
@@ -2957,20 +2957,20 @@ class di {
2957
2957
  ), this.cancelHover());
2958
2958
  }, this.handleTopDropCapture = (i) => {
2959
2959
  if (this.dropTargetIds = [], this.isDraggingNativeItem()) {
2960
- var s;
2961
- i.preventDefault(), (s = this.currentNativeSource) === null || s === void 0 || s.loadDataTransfer(i.dataTransfer);
2962
- } else he(i.dataTransfer) && i.preventDefault();
2960
+ var o;
2961
+ i.preventDefault(), (o = this.currentNativeSource) === null || o === void 0 || o.loadDataTransfer(i.dataTransfer);
2962
+ } else pe(i.dataTransfer) && i.preventDefault();
2963
2963
  this.enterLeaveCounter.reset();
2964
2964
  }, this.handleTopDrop = (i) => {
2965
- const { dropTargetIds: s } = this;
2966
- this.dropTargetIds = [], this.actions.hover(s, {
2967
- clientOffset: re(i)
2965
+ const { dropTargetIds: o } = this;
2966
+ this.dropTargetIds = [], this.actions.hover(o, {
2967
+ clientOffset: ne(i)
2968
2968
  }), this.actions.drop({
2969
2969
  dropEffect: this.getCurrentDropEffect()
2970
2970
  }), this.isDraggingNativeItem() ? this.endDragNativeItem() : this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
2971
2971
  }, this.handleSelectStart = (i) => {
2972
- const s = i.target;
2973
- typeof s.dragDrop == "function" && (s.tagName === "INPUT" || s.tagName === "SELECT" || s.tagName === "TEXTAREA" || s.isContentEditable || (i.preventDefault(), s.dragDrop()));
2972
+ const o = i.target;
2973
+ typeof o.dragDrop == "function" && (o.tagName === "INPUT" || o.tagName === "SELECT" || o.tagName === "TEXTAREA" || o.isContentEditable || (i.preventDefault(), o.dragDrop()));
2974
2974
  }, this.options = new ui(r, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new ti(this.isNodeInDocument);
2975
2975
  }
2976
2976
  }
@@ -2994,7 +2994,7 @@ const fi = function(e, r, n) {
2994
2994
  ".gif",
2995
2995
  // 압축
2996
2996
  ".zip"
2997
- ], qe = {
2997
+ ], Ge = {
2998
2998
  FILE: "file"
2999
2999
  }, hi = ({
3000
3000
  originNode: t,
@@ -3003,21 +3003,21 @@ const fi = function(e, r, n) {
3003
3003
  moveFile: n,
3004
3004
  onDrop: i
3005
3005
  }) => {
3006
- const s = $(null), [{ handlerId: a }, o] = Zn({
3007
- accept: qe.FILE,
3006
+ const o = $(null), [{ handlerId: a }, s] = Zn({
3007
+ accept: Ge.FILE,
3008
3008
  collect: (m) => ({
3009
3009
  handlerId: m.getHandlerId()
3010
3010
  }),
3011
3011
  hover(m, g) {
3012
- if (!s.current)
3012
+ if (!o.current)
3013
3013
  return;
3014
3014
  const d = m.uid, b = e.uid;
3015
3015
  if (d === b)
3016
3016
  return;
3017
- const D = J(r, { uid: b }), E = J(r, { uid: d });
3017
+ const D = Z(r, { uid: b }), E = Z(r, { uid: d });
3018
3018
  if (E === -1 || D === -1)
3019
3019
  return;
3020
- const v = s.current.getBoundingClientRect(), h = g.getClientOffset();
3020
+ const v = o.current.getBoundingClientRect(), h = g.getClientOffset();
3021
3021
  if (!h)
3022
3022
  return;
3023
3023
  const I = (v.bottom - v.top) / 2, f = h.y - v.top;
@@ -3027,37 +3027,37 @@ const fi = function(e, r, n) {
3027
3027
  i();
3028
3028
  }
3029
3029
  }), [{ isDragging: u }, l] = Vn({
3030
- type: qe.FILE,
3030
+ type: Ge.FILE,
3031
3031
  item: () => ({
3032
3032
  uid: e.uid,
3033
- index: J(r, { uid: e.uid })
3033
+ index: Z(r, { uid: e.uid })
3034
3034
  }),
3035
3035
  collect: (m) => ({
3036
3036
  isDragging: m.isDragging()
3037
3037
  })
3038
3038
  }), p = u ? 0 : 1;
3039
- return l(o(s)), /* @__PURE__ */ c.jsx("div", { ref: s, style: { opacity: p }, "data-handler-id": a, children: t });
3040
- }, Ai = ({
3039
+ return l(s(o)), /* @__PURE__ */ c("div", { ref: o, style: { opacity: p }, "data-handler-id": a, children: t });
3040
+ }, Hi = ({
3041
3041
  fileGrpKey: t,
3042
3042
  onUploadComplete: e,
3043
3043
  onFetchFilesTrxCd: r = "SCMFILE00101",
3044
3044
  onSuccessTrxCd: n = "SCMFILE00102",
3045
3045
  onDeleteFileTrxCd: i = "SCMFILE00103",
3046
- onReorderFilesTrxCd: s = "SCMFILE00104",
3046
+ onReorderFilesTrxCd: o = "SCMFILE00104",
3047
3047
  allowedExtensions: a = gi,
3048
- maxFileSize: o = 200,
3048
+ maxFileSize: s = 200,
3049
3049
  showButton: u = !0,
3050
3050
  // 기본값으로 true 설정
3051
3051
  multiple: l = !1
3052
3052
  }) => {
3053
3053
  const [p, m] = L([]), g = $(t), d = $([]), D = $(
3054
- $t(() => {
3054
+ Yt(() => {
3055
3055
  if (d.current.length === 0)
3056
3056
  return;
3057
3057
  const f = [...d.current];
3058
3058
  if (d.current = [], n) {
3059
3059
  const T = f.map((S) => ({
3060
- crprCd: A()?.crprCd,
3060
+ crprCd: H()?.crprCd,
3061
3061
  sysCd: __SYS_CD__,
3062
3062
  fileGrpKey: g.current,
3063
3063
  physFileNm: S.fileNameP,
@@ -3068,7 +3068,7 @@ const fi = function(e, r, n) {
3068
3068
  mltpYn: "N"
3069
3069
  }));
3070
3070
  U(n, {
3071
- crprCd: A()?.crprCd,
3071
+ crprCd: H()?.crprCd,
3072
3072
  sysCd: __SYS_CD__,
3073
3073
  fileGrpKey: g.current,
3074
3074
  sub: T
@@ -3076,24 +3076,24 @@ const fi = function(e, r, n) {
3076
3076
  if (S?.sub && S.sub.length > 0) {
3077
3077
  const O = S.sub[0].fileGrpKey;
3078
3078
  g.current || (g.current = O);
3079
- const x = /* @__PURE__ */ new Map();
3079
+ const N = /* @__PURE__ */ new Map();
3080
3080
  S.sub.forEach((C) => {
3081
- const N = f.find(
3082
- (_) => _.fileNameL === C.lgclFileNm
3081
+ const P = f.find(
3082
+ (x) => x.fileNameL === C.lgclFileNm
3083
3083
  );
3084
- N && x.set(N.tempId, C);
3085
- }), m((C) => C.map((_) => {
3086
- const w = x.get(_.uid);
3084
+ P && N.set(P.tempId, C);
3085
+ }), m((C) => C.map((x) => {
3086
+ const w = N.get(x.uid);
3087
3087
  if (w) {
3088
3088
  const z = f.find(
3089
- (q) => q.tempId === _.uid
3089
+ (q) => q.tempId === x.uid
3090
3090
  );
3091
3091
  return e && z && e({
3092
3092
  ...z,
3093
3093
  fileGrpKey: O,
3094
3094
  fileKey: w.fileKey
3095
3095
  }), {
3096
- ..._,
3096
+ ...x,
3097
3097
  name: w.lgclFileNm,
3098
3098
  fileGrpKey: O,
3099
3099
  fileKey: w.fileKey,
@@ -3102,14 +3102,14 @@ const fi = function(e, r, n) {
3102
3102
  url: `/api/download?filePath=${w.filePath}&logicalName=${w.lgclFileNm}`
3103
3103
  };
3104
3104
  }
3105
- return _;
3105
+ return x;
3106
3106
  }));
3107
3107
  }
3108
3108
  }).catch((S) => {
3109
- console.error("업로드 후처리 서비스 호출 실패:", S), P.error("파일 후처리 중 오류가 발생했습니다.");
3110
- const O = new Set(f.map((x) => x.tempId));
3109
+ console.error("업로드 후처리 서비스 호출 실패:", S), _.error("파일 후처리 중 오류가 발생했습니다.");
3110
+ const O = new Set(f.map((N) => N.tempId));
3111
3111
  m(
3112
- (x) => x.map(
3112
+ (N) => N.map(
3113
3113
  (C) => O.has(C.uid) ? { ...C, status: "error", error: "후처리 실패" } : C
3114
3114
  )
3115
3115
  );
@@ -3123,7 +3123,7 @@ const fi = function(e, r, n) {
3123
3123
  g.current = t;
3124
3124
  }, [t]), R(() => {
3125
3125
  t && r && U(r, {
3126
- crprCd: A()?.crprCd,
3126
+ crprCd: H()?.crprCd,
3127
3127
  sysCd: __SYS_CD__,
3128
3128
  fileGrpKey: t
3129
3129
  }).then((f) => {
@@ -3137,26 +3137,26 @@ const fi = function(e, r, n) {
3137
3137
  m(T);
3138
3138
  }
3139
3139
  }).catch((f) => {
3140
- console.error("파일 목록 조회 서비스 호출에 실패했습니다.", f), P.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
3140
+ console.error("파일 목록 조회 서비스 호출에 실패했습니다.", f), _.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
3141
3141
  });
3142
3142
  }, [t, r]);
3143
3143
  const E = (f, T) => {
3144
- const S = J(p, { uid: f }), O = J(p, { uid: T });
3144
+ const S = Z(p, { uid: f }), O = Z(p, { uid: T });
3145
3145
  if (S < 0 || O < 0) return;
3146
- const x = [...p], [C] = x.splice(S, 1);
3147
- x.splice(O, 0, C), m(x);
3146
+ const N = [...p], [C] = N.splice(S, 1);
3147
+ N.splice(O, 0, C), m(N);
3148
3148
  }, v = () => {
3149
- if (t && s) {
3149
+ if (t && o) {
3150
3150
  const f = p.map((T) => T.uid);
3151
- U(s, {
3152
- crprCd: A()?.crprCd,
3151
+ U(o, {
3152
+ crprCd: H()?.crprCd,
3153
3153
  sysCd: __SYS_CD__,
3154
3154
  fileGrpKey: t,
3155
3155
  reorderedFileKeys: f
3156
3156
  }).then(() => {
3157
- P.success("파일 순서가 성공적으로 저장되었습니다.");
3157
+ _.success("파일 순서가 성공적으로 저장되었습니다.");
3158
3158
  }).catch((T) => {
3159
- console.error("파일 순서 저장 서비스 호출 실패:", T), P.error("파일 순서 저장 중 오류가 발생했습니다.");
3159
+ console.error("파일 순서 저장 서비스 호출 실패:", T), _.error("파일 순서 저장 중 오류가 발생했습니다.");
3160
3160
  });
3161
3161
  }
3162
3162
  }, I = {
@@ -3166,17 +3166,17 @@ const fi = function(e, r, n) {
3166
3166
  fileList: p,
3167
3167
  beforeUpload: (f) => {
3168
3168
  if (!l && p.length > 0)
3169
- return P.error("하나의 파일만 업로드할 수 있습니다."), H.LIST_IGNORE;
3169
+ return _.error("하나의 파일만 업로드할 수 있습니다."), j.LIST_IGNORE;
3170
3170
  if (a && a.length > 0) {
3171
3171
  const T = `.${f.name.split(".").pop()?.toLowerCase()}`;
3172
3172
  if (!a.includes(T))
3173
- return P.error(
3173
+ return _.error(
3174
3174
  `${f.name} 파일은 허용되지 않는 확장자입니다. (${a.join(
3175
3175
  ", "
3176
3176
  )})`
3177
- ), H.LIST_IGNORE;
3177
+ ), j.LIST_IGNORE;
3178
3178
  }
3179
- return o && !(f.size / 1024 / 1024 < o) ? (P.error(`일반업로드의 최대용량은 ${o}MB입니다.`), H.LIST_IGNORE) : !0;
3179
+ return s && !(f.size / 1024 / 1024 < s) ? (_.error(`일반업로드의 최대용량은 ${s}MB입니다.`), j.LIST_IGNORE) : !0;
3180
3180
  },
3181
3181
  showUploadList: {
3182
3182
  showRemoveIcon: u
@@ -3186,39 +3186,39 @@ const fi = function(e, r, n) {
3186
3186
  const { status: T, uid: S } = f.file;
3187
3187
  if (T === "removed") {
3188
3188
  i ? U(i, {
3189
- crprCd: A()?.crprCd,
3189
+ crprCd: H()?.crprCd,
3190
3190
  sysCd: __SYS_CD__,
3191
3191
  fileGrpKey: g.current,
3192
3192
  fileKey: S
3193
3193
  }).then(() => {
3194
- P.success("파일이 성공적으로 삭제되었습니다."), m(f.fileList);
3194
+ _.success("파일이 성공적으로 삭제되었습니다."), m(f.fileList);
3195
3195
  }).catch((O) => {
3196
- console.error("파일 삭제 서비스 호출에 실패했습니다.", O), P.error("파일 삭제 중 오류가 발생했습니다.");
3196
+ console.error("파일 삭제 서비스 호출에 실패했습니다.", O), _.error("파일 삭제 중 오류가 발생했습니다.");
3197
3197
  }) : m(f.fileList);
3198
3198
  return;
3199
3199
  }
3200
3200
  if (m(f.fileList), T === "done")
3201
3201
  if (f.file.response?.success) {
3202
3202
  const { uploadedFiles: O } = f.file.response;
3203
- O && Array.isArray(O) && O.length > 0 && (O.forEach((x) => {
3204
- x.tempId = f.file.uid, d.current.push(x);
3205
- }), D()), P.success(
3203
+ O && Array.isArray(O) && O.length > 0 && (O.forEach((N) => {
3204
+ N.tempId = f.file.uid, d.current.push(N);
3205
+ }), D()), _.success(
3206
3206
  f.file.response.message || `${f.file.name} 파일이 성공적으로 업로드되었습니다.`
3207
3207
  );
3208
3208
  } else
3209
- P.error(
3209
+ _.error(
3210
3210
  f.file.response?.message || `${f.file.name} 파일 업로드에 실패했습니다.`
3211
3211
  );
3212
- else T === "error" && P.error(
3212
+ else T === "error" && _.error(
3213
3213
  f.file.response?.message || `${f.file.name} 파일 업로드 중 오류가 발생했습니다.`
3214
3214
  );
3215
3215
  },
3216
3216
  itemRender(f, T, S) {
3217
- const O = It.cloneElement(f, {
3217
+ const O = ve(f, {
3218
3218
  href: T.url || void 0,
3219
3219
  title: void 0
3220
3220
  });
3221
- return /* @__PURE__ */ c.jsx(
3221
+ return /* @__PURE__ */ c(
3222
3222
  hi,
3223
3223
  {
3224
3224
  originNode: O,
@@ -3231,20 +3231,20 @@ const fi = function(e, r, n) {
3231
3231
  );
3232
3232
  }
3233
3233
  };
3234
- return /* @__PURE__ */ c.jsx(yn, { backend: fi, children: /* @__PURE__ */ c.jsx(H, { headers: { SYSCD: __SYS_CD__ }, ...I, listType: "picture", children: u && (l || p.length === 0) && /* @__PURE__ */ c.jsx(Y, { icon: /* @__PURE__ */ c.jsx(We, {}), children: "파일 선택" }) }) });
3234
+ return /* @__PURE__ */ c(yn, { backend: fi, children: /* @__PURE__ */ c(j, { headers: { SYSCD: __SYS_CD__ }, ...I, listType: "picture", children: u && (l || p.length === 0) && /* @__PURE__ */ c(Y, { icon: /* @__PURE__ */ c(Ke, {}), children: "파일 선택" }) }) });
3235
3235
  };
3236
3236
  export {
3237
3237
  Ci as B,
3238
3238
  wi as a,
3239
- xi as b,
3240
- Pi as c,
3241
- _i as d,
3239
+ Ni as b,
3240
+ _i as c,
3241
+ xi as d,
3242
3242
  Ri as e,
3243
3243
  Li as f,
3244
- ji as g,
3245
- Mi as h,
3246
- Fi as i,
3247
- ki as j,
3248
- Ai as k
3244
+ Mi as g,
3245
+ Fi as h,
3246
+ ki as i,
3247
+ Ai as j,
3248
+ Hi as k
3249
3249
  };
3250
- //# sourceMappingURL=BwgUploader-BcVlE61B.js.map
3250
+ //# sourceMappingURL=BwgUploader-BUmFmeuS.js.map