@bwg-ui/core 1.1.11 → 1.1.12

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 (137) hide show
  1. package/dist/chunks/BwgLargeUploader-CgrJUwFW.cjs +3 -0
  2. package/dist/chunks/BwgLargeUploader-CgrJUwFW.cjs.map +1 -0
  3. package/dist/chunks/{BwgLargeUploader-B5EtYKUz.js → BwgLargeUploader-Nx2-wiD8.js} +802 -776
  4. package/dist/chunks/BwgLargeUploader-Nx2-wiD8.js.map +1 -0
  5. package/dist/chunks/{FileUtils-CaU9Bzu2.js → FileUtils-Bbz3AvQn.js} +2 -2
  6. package/dist/chunks/{FileUtils-CaU9Bzu2.js.map → FileUtils-Bbz3AvQn.js.map} +1 -1
  7. package/dist/chunks/FileUtils-D73GVmB8.cjs +2 -0
  8. package/dist/chunks/{FileUtils-BweAWoJt.cjs.map → FileUtils-D73GVmB8.cjs.map} +1 -1
  9. package/dist/chunks/SSOHandler-CZHPiuEh.js +25397 -0
  10. package/dist/chunks/SSOHandler-CZHPiuEh.js.map +1 -0
  11. package/dist/chunks/SSOHandler-rq0OGrpX.cjs +236 -0
  12. package/dist/chunks/SSOHandler-rq0OGrpX.cjs.map +1 -0
  13. package/dist/chunks/{SearchBoxContext-CY4tAQcg.js → SearchBoxContext-BxtHF9BO.js} +2 -2
  14. package/dist/chunks/{SearchBoxContext-CY4tAQcg.js.map → SearchBoxContext-BxtHF9BO.js.map} +1 -1
  15. package/dist/chunks/SearchBoxContext-Cpr9xa1S.cjs +2 -0
  16. package/dist/chunks/{SearchBoxContext-DDBY44Wr.cjs.map → SearchBoxContext-Cpr9xa1S.cjs.map} +1 -1
  17. package/dist/chunks/TabContainer-B7-6AQXV.js +254 -0
  18. package/dist/chunks/TabContainer-B7-6AQXV.js.map +1 -0
  19. package/dist/chunks/TabContainer-Dx2PVShz.cjs +36 -0
  20. package/dist/chunks/TabContainer-Dx2PVShz.cjs.map +1 -0
  21. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs +2 -0
  22. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.map +1 -0
  23. package/dist/chunks/_commonjsHelpers-DaMA6jEr.js +9 -0
  24. package/dist/chunks/_commonjsHelpers-DaMA6jEr.js.map +1 -0
  25. package/dist/chunks/apiUtils-C45AWfu-.js +957 -0
  26. package/dist/chunks/apiUtils-C45AWfu-.js.map +1 -0
  27. package/dist/chunks/apiUtils-Cbg6NQLv.cjs +4 -0
  28. package/dist/chunks/apiUtils-Cbg6NQLv.cjs.map +1 -0
  29. package/dist/chunks/codeStore-BGLhSpAM.cjs +2 -0
  30. package/dist/chunks/{codeStore-KPL92rcv.cjs.map → codeStore-BGLhSpAM.cjs.map} +1 -1
  31. package/dist/chunks/{codeStore-IIp25egq.js → codeStore-BzT5wSd9.js} +2 -2
  32. package/dist/chunks/{codeStore-IIp25egq.js.map → codeStore-BzT5wSd9.js.map} +1 -1
  33. package/dist/chunks/commonUtils-BH6QwGUb.cjs +2 -0
  34. package/dist/chunks/commonUtils-BH6QwGUb.cjs.map +1 -0
  35. package/dist/chunks/{commonUtils-Cvx6_eK2.js → commonUtils-Bb16Yqjk.js} +24 -25
  36. package/dist/chunks/commonUtils-Bb16Yqjk.js.map +1 -0
  37. package/dist/chunks/envUtils-C9Gf5aek.js.map +1 -1
  38. package/dist/chunks/envUtils-CduTHoHu.cjs.map +1 -1
  39. package/dist/chunks/favoriteStore-3YceyayF.cjs +2 -0
  40. package/dist/chunks/favoriteStore-3YceyayF.cjs.map +1 -0
  41. package/dist/chunks/favoriteStore-C9utQ6sm.js +112 -0
  42. package/dist/chunks/favoriteStore-C9utQ6sm.js.map +1 -0
  43. package/dist/chunks/{popupStore-D8RI04bU.js → popupStore-DmFbkkjd.js} +19 -18
  44. package/dist/chunks/popupStore-DmFbkkjd.js.map +1 -0
  45. package/dist/chunks/popupStore-DnWLaQ70.cjs +2 -0
  46. package/dist/chunks/popupStore-DnWLaQ70.cjs.map +1 -0
  47. package/dist/chunks/usePopup-C8FrbrDD.cjs +2 -0
  48. package/dist/chunks/{UtilsContext-JSHHfnWl.js.map → usePopup-C8FrbrDD.cjs.map} +1 -1
  49. package/dist/chunks/{UtilsContext-JSHHfnWl.js → usePopup-pfh-ajfP.js} +82 -82
  50. package/dist/chunks/usePopup-pfh-ajfP.js.map +1 -0
  51. package/dist/components/common/BwgDetail.d.ts +5 -0
  52. package/dist/components/common/BwgDetail.d.ts.map +1 -0
  53. package/dist/components/common/BwgDrawer.d.ts.map +1 -1
  54. package/dist/components/common/BwgEditor.d.ts +7 -0
  55. package/dist/components/common/BwgEditor.d.ts.map +1 -0
  56. package/dist/components/common/BwgView.d.ts.map +1 -1
  57. package/dist/components/common/index.cjs +1 -1
  58. package/dist/components/common/index.d.ts +3 -1
  59. package/dist/components/common/index.d.ts.map +1 -1
  60. package/dist/components/common/index.js +27 -25
  61. package/dist/components/core/BwgDatePicker.d.ts +1 -1
  62. package/dist/components/core/BwgDatePicker.d.ts.map +1 -1
  63. package/dist/components/core/BwgRangePicker.d.ts +1 -1
  64. package/dist/components/core/BwgRangePicker.d.ts.map +1 -1
  65. package/dist/components/core/BwgUploader.d.ts.map +1 -1
  66. package/dist/components/core/index.cjs +1 -1
  67. package/dist/components/core/index.js +1 -1
  68. package/dist/components/layout/ErrorBound.d.ts +29 -0
  69. package/dist/components/layout/ErrorBound.d.ts.map +1 -0
  70. package/dist/components/layout/TabContainer.d.ts +9 -0
  71. package/dist/components/layout/TabContainer.d.ts.map +1 -0
  72. package/dist/components/layout/index.cjs +1 -1
  73. package/dist/components/layout/index.d.ts +3 -1
  74. package/dist/components/layout/index.d.ts.map +1 -1
  75. package/dist/components/layout/index.js +6 -4
  76. package/dist/index.cjs +1 -1
  77. package/dist/index.js +304 -299
  78. package/dist/provider/index.cjs +1 -1
  79. package/dist/provider/index.js +2 -2
  80. package/dist/stores/favoriteStore.d.ts.map +1 -1
  81. package/dist/stores/index.cjs +1 -1
  82. package/dist/stores/index.cjs.map +1 -1
  83. package/dist/stores/index.d.ts +3 -1
  84. package/dist/stores/index.d.ts.map +1 -1
  85. package/dist/stores/index.js +18 -16
  86. package/dist/stores/index.js.map +1 -1
  87. package/dist/stores/loadingStore.d.ts +9 -0
  88. package/dist/stores/loadingStore.d.ts.map +1 -0
  89. package/dist/stores/menuViewStore.d.ts +28 -3
  90. package/dist/stores/menuViewStore.d.ts.map +1 -1
  91. package/dist/stores/popupStore.d.ts.map +1 -1
  92. package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
  93. package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
  94. package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
  95. package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
  96. package/dist/utils/apiUtils.d.ts +3 -2
  97. package/dist/utils/apiUtils.d.ts.map +1 -1
  98. package/dist/utils/index.cjs +1 -1
  99. package/dist/utils/index.js +3 -3
  100. package/dist/utils/notificationUtils.d.ts +0 -1
  101. package/dist/utils/notificationUtils.d.ts.map +1 -1
  102. package/package.json +6 -7
  103. package/dist/chunks/BwgLargeUploader-B5EtYKUz.js.map +0 -1
  104. package/dist/chunks/BwgLargeUploader-BPJcShgF.cjs +0 -3
  105. package/dist/chunks/BwgLargeUploader-BPJcShgF.cjs.map +0 -1
  106. package/dist/chunks/FileUtils-BweAWoJt.cjs +0 -2
  107. package/dist/chunks/PublicLayout-3v46YZdi.cjs +0 -36
  108. package/dist/chunks/PublicLayout-3v46YZdi.cjs.map +0 -1
  109. package/dist/chunks/PublicLayout-B4wGo0ut.js +0 -139
  110. package/dist/chunks/PublicLayout-B4wGo0ut.js.map +0 -1
  111. package/dist/chunks/SSOHandler-C72Do3RD.js +0 -15717
  112. package/dist/chunks/SSOHandler-C72Do3RD.js.map +0 -1
  113. package/dist/chunks/SSOHandler-ColywAGZ.cjs +0 -184
  114. package/dist/chunks/SSOHandler-ColywAGZ.cjs.map +0 -1
  115. package/dist/chunks/SearchBoxContext-DDBY44Wr.cjs +0 -2
  116. package/dist/chunks/UtilsContext-C4tlOndT.cjs +0 -2
  117. package/dist/chunks/UtilsContext-C4tlOndT.cjs.map +0 -1
  118. package/dist/chunks/_commonjsHelpers-C6fGbg64.js +0 -7
  119. package/dist/chunks/_commonjsHelpers-C6fGbg64.js.map +0 -1
  120. package/dist/chunks/_commonjsHelpers-DwGv2jUC.cjs +0 -2
  121. package/dist/chunks/_commonjsHelpers-DwGv2jUC.cjs.map +0 -1
  122. package/dist/chunks/codeStore-KPL92rcv.cjs +0 -2
  123. package/dist/chunks/commonUtils-Cvx6_eK2.js.map +0 -1
  124. package/dist/chunks/commonUtils-DaFg0y7C.cjs +0 -2
  125. package/dist/chunks/commonUtils-DaFg0y7C.cjs.map +0 -1
  126. package/dist/chunks/menuViewStore-DuS0VmkB.cjs +0 -3
  127. package/dist/chunks/menuViewStore-DuS0VmkB.cjs.map +0 -1
  128. package/dist/chunks/menuViewStore-OKcSQq-s.js +0 -343
  129. package/dist/chunks/menuViewStore-OKcSQq-s.js.map +0 -1
  130. package/dist/chunks/popupStore-BEoWGajT.cjs +0 -2
  131. package/dist/chunks/popupStore-BEoWGajT.cjs.map +0 -1
  132. package/dist/chunks/popupStore-D8RI04bU.js.map +0 -1
  133. package/dist/chunks/serviceConfig-9dHegQIK.cjs +0 -3
  134. package/dist/chunks/serviceConfig-9dHegQIK.cjs.map +0 -1
  135. package/dist/chunks/serviceConfig-Dhe7neaj.js +0 -709
  136. package/dist/chunks/serviceConfig-Dhe7neaj.js.map +0 -1
  137. package/scripts/gen-component-registry.js +0 -138
@@ -1,15 +1,15 @@
1
1
  import { j as c } from "./jsx-runtime-Dpn_P65e.js";
2
- import { Form as A, ConfigProvider as We, Select as be, Space as ne, Typography as Ke, Input as K, Button as W, DatePicker as Te, Radio as yt, Checkbox as me, InputNumber as Dt, message as M, Upload as H, Spin as St, Card as Ot, List as ue, Tooltip as bt, Flex as Pe, Progress as Tt, notification as It } from "antd";
3
- import Ze, { forwardRef as Ct, useMemo as L, useRef as B, useEffect as j, useState as Y, createContext as Et, memo as wt, useLayoutEffect as xt, useCallback as Nt, isValidElement as Pt, cloneElement as Me, useContext as Mt } from "react";
4
- import { u as Rt } from "./popupStore-D8RI04bU.js";
5
- import { SearchOutlined as _t, UploadOutlined as Je, CloseCircleOutlined as Lt, DeleteOutlined as jt, InboxOutlined as Ft, CloudUploadOutlined as kt, CheckCircleOutlined as Yt, FileTextOutlined as At } from "@ant-design/icons";
6
- import Qe from "imask";
7
- import _ from "dayjs";
8
- import { V as X, a7 as G } from "./serviceConfig-Dhe7neaj.js";
9
- import { debounce as Ht, findIndex as J } from "lodash";
10
- import { g as Bt } from "./_commonjsHelpers-C6fGbg64.js";
11
- import Ut from "jszip";
12
- const R = Ze.memo(
2
+ import { Form as k, ConfigProvider as Ze, Select as be, Space as ne, Typography as Je, Input as K, Button as W, DatePicker as Te, Radio as St, Checkbox as me, InputNumber as Ot, message as M, Upload as H, Spin as bt, Card as Tt, List as ue, Tooltip as It, Flex as Pe, Progress as Ct, notification as Et } from "antd";
3
+ import Qe, { forwardRef as wt, useMemo as R, useRef as U, useEffect as _, useState as Y, createContext as xt, memo as Nt, useLayoutEffect as Pt, useCallback as Mt, isValidElement as Rt, cloneElement as Me, useContext as jt } from "react";
4
+ import { u as _t } from "./popupStore-DmFbkkjd.js";
5
+ import { SearchOutlined as Lt, UploadOutlined as et, CloseCircleOutlined as Ft, DeleteOutlined as Yt, InboxOutlined as kt, CloudUploadOutlined as At, CheckCircleOutlined as Ht, FileTextOutlined as Ut } from "@ant-design/icons";
6
+ import tt from "imask";
7
+ import A from "dayjs";
8
+ import { V as X, a7 as G } from "./apiUtils-C45AWfu-.js";
9
+ import { debounce as Bt, findIndex as J } from "lodash";
10
+ import { g as Vt } from "./_commonjsHelpers-DaMA6jEr.js";
11
+ import $t from "jszip";
12
+ const j = Qe.memo(
13
13
  ({
14
14
  children: t,
15
15
  label: e,
@@ -17,40 +17,40 @@ const R = Ze.memo(
17
17
  rules: n,
18
18
  initialValue: i,
19
19
  style: o,
20
- ...s
20
+ ...a
21
21
  }) => {
22
- const a = {
22
+ const s = {
23
23
  fontWeight: "bold"
24
- }, u = Array.isArray(n) && n.some((l) => l.required === !0), f = () => typeof e == "string" ? /* @__PURE__ */ c.jsxs("span", { style: a, children: [
24
+ }, l = Array.isArray(n) && n.some((g) => g.required === !0), u = () => typeof e == "string" ? /* @__PURE__ */ c.jsxs("span", { style: s, children: [
25
25
  e,
26
- u && /* @__PURE__ */ c.jsx("span", { style: { color: "#ff4d4f", marginLeft: "4px" }, children: "*" })
27
- ] }) : /* @__PURE__ */ c.jsx("span", { style: a, children: e });
26
+ l && /* @__PURE__ */ c.jsx("span", { style: { color: "#ff4d4f", marginLeft: "4px" }, children: "*" })
27
+ ] }) : /* @__PURE__ */ c.jsx("span", { style: s, children: e });
28
28
  return /* @__PURE__ */ c.jsx(
29
- A.Item,
29
+ k.Item,
30
30
  {
31
31
  className: "bwg-form-item",
32
- label: e ? f() : void 0,
32
+ label: e ? u() : void 0,
33
33
  labelAlign: "left",
34
34
  name: r,
35
35
  rules: n,
36
36
  colon: !1,
37
37
  initialValue: i,
38
38
  style: o,
39
- ...s,
39
+ ...a,
40
40
  children: t
41
41
  }
42
42
  );
43
43
  }
44
- ), Vt = Ct(
44
+ ), zt = wt(
45
45
  ({ children: t, labelCol: e, style: r, className: n, ...i }, o) => /* @__PURE__ */ c.jsx(
46
- We,
46
+ Ze,
47
47
  {
48
48
  form: {
49
49
  //기존 rule.message의 default message인 $name을를 입력해주세요를 변경
50
50
  validateMessages: { required: "'${label}을(를) 입력해주세요.'" }
51
51
  },
52
52
  children: /* @__PURE__ */ c.jsx(
53
- A,
53
+ k,
54
54
  {
55
55
  ref: o,
56
56
  ...i,
@@ -64,39 +64,39 @@ const R = Ze.memo(
64
64
  }
65
65
  )
66
66
  );
67
- Vt.displayName = "BwgForm";
68
- const Ci = ({
67
+ zt.displayName = "BwgForm";
68
+ const wi = ({
69
69
  itemProps: t,
70
70
  selectProps: e = {
71
71
  options: [],
72
72
  allowClear: !0
73
73
  }
74
74
  }) => {
75
- const r = A.useFormInstance(), n = !!r, i = L(() => e?.addField === "ALL" ? [{ label: "전체", value: "" }, ...e?.options || []] : e?.addField === "NULL" ? [{ label: "", value: "" }, ...e?.options || []] : e?.options || [], [e.options, e.addField]), o = (u) => {
76
- e.onChange?.(u);
77
- }, s = {
75
+ const r = k.useFormInstance(), n = !!r, i = R(() => e?.addField === "ALL" ? [{ label: "전체", value: "" }, ...e?.options || []] : e?.addField === "NULL" ? [{ label: "", value: "" }, ...e?.options || []] : e?.options || [], [e.options, e.addField]), o = (l) => {
76
+ e.onChange?.(l);
77
+ }, a = {
78
78
  ...e,
79
79
  allowClear: e.allowClear ?? !0,
80
80
  options: i,
81
81
  onChange: o,
82
82
  variant: e.variant
83
- }, a = /* @__PURE__ */ c.jsx(be, { ...s, disabled: e.disabled });
83
+ }, s = /* @__PURE__ */ c.jsx(be, { ...a, disabled: e.disabled });
84
84
  return e.copyable && !n && console.warn(
85
85
  "BwgSelect: copyable 기능은 Form 컨텍스트 내에서만 사용 가능합니다."
86
- ), e.copyable ? /* @__PURE__ */ c.jsx(R, { ...t, children: /* @__PURE__ */ c.jsxs(ne.Compact, { block: !0, children: [
86
+ ), e.copyable ? /* @__PURE__ */ c.jsx(j, { ...t, children: /* @__PURE__ */ c.jsxs(ne.Compact, { block: !0, children: [
87
87
  /* @__PURE__ */ c.jsx(
88
- A.Item,
88
+ k.Item,
89
89
  {
90
90
  name: t?.name,
91
91
  rules: t?.rules,
92
92
  style: { width: "100%", marginBottom: 0 },
93
93
  validateStatus: "",
94
94
  help: "",
95
- children: a
95
+ children: s
96
96
  }
97
97
  ),
98
98
  /* @__PURE__ */ c.jsx(
99
- Ke.Paragraph,
99
+ Je.Paragraph,
100
100
  {
101
101
  copyable: {
102
102
  text: n && r?.getFieldValue(t?.name)?.toString() || "",
@@ -116,25 +116,25 @@ const Ci = ({
116
116
  }
117
117
  }
118
118
  )
119
- ] }) }) : /* @__PURE__ */ c.jsx(R, { ...t, children: a });
120
- }, Re = K.Search, Ei = (t) => {
121
- const e = A.useFormInstance(), { openPopup: r } = Rt(), n = t.itemProps?.name || [], i = t.popupConfig || {
122
- callback(s) {
123
- console.log("callback data :: ", s), n.length > 1 ? (e.setFieldValue(n[0], s.code), e.setFieldValue(n[1], s.name)) : e.setFieldValue(n, s.code);
119
+ ] }) }) : /* @__PURE__ */ c.jsx(j, { ...t, children: s });
120
+ }, Re = K.Search, xi = (t) => {
121
+ const e = k.useFormInstance(), { openPopup: r } = _t(), n = t.itemProps?.name || [], i = t.popupConfig || {
122
+ callback(a) {
123
+ 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);
124
124
  }
125
125
  }, o = {
126
126
  ...t,
127
127
  placeholder: typeof t.placeholder == "string" ? t.placeholder : t.placeholder?.[0] || "",
128
- onChange: (s) => {
129
- n.length > 1 && e.setFieldValue(n[0], ""), t.onChange?.(s);
128
+ onChange: (a) => {
129
+ n.length > 1 && e.setFieldValue(n[0], ""), t.onChange?.(a);
130
130
  },
131
- onSearch: (s) => {
132
- t.popuCd ? r(t.popuCd, t.popupParams, i) : t.onSearch?.(s);
131
+ onSearch: (a) => {
132
+ t.popuCd ? r(t.popuCd, t.popupParams, i) : t.onSearch?.(a);
133
133
  }
134
134
  };
135
- return n.length > 1 ? /* @__PURE__ */ c.jsx(R, { ...t.itemProps, name: void 0, children: /* @__PURE__ */ c.jsxs(ne.Compact, { block: !0, children: [
135
+ return n.length > 1 ? /* @__PURE__ */ c.jsx(j, { ...t.itemProps, name: void 0, children: /* @__PURE__ */ c.jsxs(ne.Compact, { block: !0, children: [
136
136
  /* @__PURE__ */ c.jsx(
137
- A.Item,
137
+ k.Item,
138
138
  {
139
139
  name: n[0],
140
140
  rules: t.itemProps?.rules,
@@ -151,22 +151,22 @@ const Ci = ({
151
151
  )
152
152
  }
153
153
  ),
154
- /* @__PURE__ */ c.jsx(A.Item, { name: n[1], style: { width: "60%", marginBottom: 0 }, children: /* @__PURE__ */ c.jsx(
154
+ /* @__PURE__ */ c.jsx(k.Item, { name: n[1], style: { width: "60%", marginBottom: 0 }, children: /* @__PURE__ */ c.jsx(
155
155
  Re,
156
156
  {
157
157
  readOnly: t.readOnly,
158
158
  enterButton: /* @__PURE__ */ c.jsx(
159
159
  W,
160
160
  {
161
- icon: /* @__PURE__ */ c.jsx(_t, {}),
161
+ icon: /* @__PURE__ */ c.jsx(Lt, {}),
162
162
  disabled: t.readOnly
163
163
  }
164
164
  ),
165
165
  ...o
166
166
  }
167
167
  ) })
168
- ] }) }) : /* @__PURE__ */ c.jsx(R, { ...t.itemProps, children: /* @__PURE__ */ c.jsx(Re, { ...o }) });
169
- }, $t = (t) => {
168
+ ] }) }) : /* @__PURE__ */ c.jsx(j, { ...t.itemProps, children: /* @__PURE__ */ c.jsx(Re, { ...o }) });
169
+ }, qt = (t) => {
170
170
  if (typeof t == "string")
171
171
  return t.replace(/0/g, "_");
172
172
  if (Array.isArray(t))
@@ -179,22 +179,22 @@ const Ci = ({
179
179
  }).join(".");
180
180
  }
181
181
  return "";
182
- }, wi = ({
182
+ }, Ni = ({
183
183
  itemProps: t,
184
184
  inputProps: e,
185
185
  mask: r
186
186
  }) => {
187
- const n = B(null), i = A.useFormInstance(), o = L(() => $t(r), [r]);
188
- return j(() => {
187
+ const n = U(null), i = k.useFormInstance(), o = R(() => qt(r), [r]);
188
+ return _(() => {
189
189
  if (!n.current?.input) return;
190
- const s = typeof r == "string" || Array.isArray(r) ? { mask: r } : r, a = Qe(n.current.input, s);
191
- return a.on("accept", () => {
192
- i && t?.name && i.setFieldValue(t.name, a.value);
190
+ const a = typeof r == "string" || Array.isArray(r) ? { mask: r } : r, s = tt(n.current.input, a);
191
+ return s.on("accept", () => {
192
+ i && t?.name && i.setFieldValue(t.name, s.value);
193
193
  }), () => {
194
- a.destroy();
194
+ s.destroy();
195
195
  };
196
- }, [r, i, t?.name]), /* @__PURE__ */ c.jsx(R, { ...t, children: /* @__PURE__ */ c.jsx(K, { ...e, ref: n, placeholder: o }) });
197
- }, zt = (t) => {
196
+ }, [r, i, t?.name]), /* @__PURE__ */ c.jsx(j, { ...t, children: /* @__PURE__ */ c.jsx(K, { ...e, ref: n, placeholder: o }) });
197
+ }, Gt = (t) => {
198
198
  switch (t) {
199
199
  case "year":
200
200
  return { format: "YYYY", mask: "0000", outputFormat: "YYYY" };
@@ -208,63 +208,63 @@ const Ci = ({
208
208
  outputFormat: "YYYYMMDD"
209
209
  };
210
210
  }
211
- }, xi = ({
211
+ }, Pi = ({
212
212
  type: t = "date",
213
213
  itemProps: e = { name: "calendar" },
214
214
  inputProps: r
215
215
  }) => {
216
- const { format: n, mask: i, outputFormat: o } = zt(t), s = B(null), a = B(null), u = A.useFormInstance(), [f, l] = Y(!1), [m, p] = Y(!1), d = e?.name, [I, y] = Y(null);
217
- j(() => {
218
- if (!s.current?.input) return;
219
- const v = Qe(s.current.input, {
216
+ const { format: n, mask: i, outputFormat: o } = Gt(t), a = U(null), s = U(null), l = k.useFormInstance(), [u, g] = Y(!1), [v, p] = Y(!1), d = e?.name, [I, y] = Y(null);
217
+ _(() => {
218
+ if (!a.current?.input) return;
219
+ const m = tt(a.current.input, {
220
220
  mask: i,
221
221
  lazy: !1
222
222
  });
223
- return a.current = v, v.on("accept", () => {
224
- console.log("input :: ", v.value);
225
- const h = v.value, T = _(h, n, !0);
226
- console.log("input :: ", T), h.length === n.length && T.isValid() && (console.log("parsed :: ", T.format(o)), u.setFieldValue(d, T.format(o)), a.current.updateValue(), l(!1));
223
+ return s.current = m, m.on("accept", () => {
224
+ console.log("input :: ", m.value);
225
+ const h = m.value, T = A(h, n, !0);
226
+ console.log("input :: ", T), h.length === n.length && T.isValid() && (console.log("parsed :: ", T.format(o)), l.setFieldValue(d, T.format(o)), s.current.updateValue(), g(!1));
227
227
  }), () => {
228
- v.destroy();
228
+ m.destroy();
229
229
  };
230
- }, [n, i]), j(() => {
231
- y(_(u.getFieldValue(d)));
232
- }, [u.getFieldValue(d)]);
233
- const C = (v) => {
234
- if (!v) {
235
- a.current?.updateValue();
230
+ }, [n, i]), _(() => {
231
+ y(A(l.getFieldValue(d)));
232
+ }, [l.getFieldValue(d)]);
233
+ const C = (m) => {
234
+ if (!m) {
235
+ s.current?.updateValue();
236
236
  return;
237
237
  }
238
- const h = v.format(o);
239
- console.log("formatted :: ", h), a.current && (a.current.value = h, a.current.updateValue()), p(!1);
238
+ const h = m.format(o);
239
+ console.log("formatted :: ", h), s.current && (s.current.value = h, s.current.updateValue()), p(!1);
240
240
  };
241
241
  return /* @__PURE__ */ c.jsx(
242
- R,
242
+ j,
243
243
  {
244
244
  ...e,
245
245
  name: void 0,
246
- validateStatus: m ? "warning" : void 0,
247
- help: m ? "유효하지 않은 날짜입니다" : void 0,
246
+ validateStatus: v ? "warning" : void 0,
247
+ help: v ? "유효하지 않은 날짜입니다" : void 0,
248
248
  children: /* @__PURE__ */ c.jsxs("div", { style: { position: "relative" }, children: [
249
249
  /* @__PURE__ */ c.jsx(
250
- A.Item,
250
+ k.Item,
251
251
  {
252
252
  name: d,
253
- getValueProps: (v) => ({
254
- value: v ? _(v).format(n) : void 0
253
+ getValueProps: (m) => ({
254
+ value: m ? A(m).format(n) : void 0
255
255
  }),
256
- normalize: (v) => v ? _(v).format(o) : void 0,
256
+ normalize: (m) => m ? A(m).format(o) : void 0,
257
257
  noStyle: !0,
258
258
  children: /* @__PURE__ */ c.jsx(
259
259
  K,
260
260
  {
261
261
  ...r,
262
- ref: s,
262
+ ref: a,
263
263
  onFocus: () => {
264
- l(!f), a.current?.updateValue();
264
+ g(!u), s.current?.updateValue();
265
265
  },
266
- onKeyDown: (v) => {
267
- v.key === "Backspace" && l(!0), v.key === "Tab" && l(!1);
266
+ onKeyDown: (m) => {
267
+ m.key === "Backspace" && g(!0), m.key === "Tab" && g(!1);
268
268
  },
269
269
  allowClear: !0,
270
270
  placeholder: i.replace(/0/g, "_"),
@@ -276,12 +276,12 @@ const Ci = ({
276
276
  /* @__PURE__ */ c.jsx(
277
277
  Te,
278
278
  {
279
- open: f,
279
+ open: u,
280
280
  picker: t,
281
281
  format: n,
282
282
  value: I,
283
283
  onChange: C,
284
- getPopupContainer: (v) => v.parentElement,
284
+ getPopupContainer: (m) => m.parentElement,
285
285
  style: {
286
286
  position: "absolute",
287
287
  top: 0,
@@ -295,43 +295,65 @@ const Ci = ({
295
295
  ] })
296
296
  }
297
297
  );
298
- }, Ni = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(R, { ...t, children: /* @__PURE__ */ c.jsx(K, { ...e }) }), Pi = ({
298
+ }, Mi = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(j, { ...t, children: /* @__PURE__ */ c.jsx(K, { ...e }) }), je = {
299
+ year: { displayFormat: "YYYY", outputFormat: "YYYY" },
300
+ month: { displayFormat: "YYYY-MM", outputFormat: "YYYYMM" },
301
+ date: { displayFormat: "YYYY-MM-DD", outputFormat: "YYYYMMDD" },
302
+ time: { displayFormat: "HH:mm", outputFormat: "HHmm" },
303
+ datetime: {
304
+ displayFormat: "YYYY-MM-DD HH:mm",
305
+ outputFormat: "YYYYMMDDHHmm"
306
+ }
307
+ }, Ri = ({
299
308
  itemProps: t,
300
309
  inputProps: e,
301
310
  type: r = "date",
302
311
  useMask: n = !1
303
312
  }) => {
304
- const i = {
305
- year: { displayFormat: "YYYY", outputFormat: "YYYY" },
306
- month: { displayFormat: "YYYY-MM", outputFormat: "YYYYMM" },
307
- date: { displayFormat: "YYYY-MM-DD", outputFormat: "YYYYMMDD" }
308
- }, { displayFormat: o, outputFormat: s } = i[r], a = (u, f) => {
309
- if (e?.onChange && typeof e.onChange == "function") {
310
- let l;
311
- u instanceof _ ? l = u.format(s) : (l = [], u && u.map((m) => {
312
- l.push(m.format(s));
313
- })), e.onChange(l, f);
314
- }
315
- };
313
+ const { displayFormat: i, outputFormat: o } = R(
314
+ () => je[r],
315
+ [r]
316
+ ), a = R(
317
+ () => Object.values(je).map((s) => s.outputFormat).sort((s, l) => {
318
+ if (s.length === l.length) {
319
+ if (s === o) return -1;
320
+ if (l === o) return 1;
321
+ }
322
+ return l.length - s.length;
323
+ }),
324
+ [o]
325
+ // type(outputFormat)이 바뀔 때마다 재정렬
326
+ );
316
327
  return /* @__PURE__ */ c.jsx(
317
- R,
328
+ j,
318
329
  {
319
330
  ...t,
320
- getValueProps: (u) => ({
321
- value: u && _(u)
331
+ getValueProps: (s) => ({
332
+ // value 있을 경우, 모든 가능한 outputFormat으로 파싱을 시도합니다.
333
+ value: s ? A(s, a) : null
322
334
  }),
323
- normalize: (u) => u && `${_(u).format(s)}`,
335
+ normalize: (s) => s ? s.format(o) : null,
324
336
  children: /* @__PURE__ */ c.jsx(
325
337
  Te,
326
338
  {
327
339
  ...e,
328
- format: n ? { format: o, type: "mask" } : void 0,
329
- onChange: a
340
+ picker: r === "datetime" ? "date" : r,
341
+ showTime: r === "datetime" || r === "time",
342
+ format: i
330
343
  }
331
344
  )
332
345
  }
333
346
  );
334
- }, { RangePicker: qt } = Te, Mi = ({
347
+ }, { RangePicker: Xt } = Te, _e = {
348
+ year: { displayFormat: "YYYY", outputFormat: "YYYY" },
349
+ month: { displayFormat: "YYYY-MM", outputFormat: "YYYYMM" },
350
+ date: { displayFormat: "YYYY-MM-DD", outputFormat: "YYYYMMDD" },
351
+ time: { displayFormat: "HH:mm", outputFormat: "HHmm" },
352
+ datetime: {
353
+ displayFormat: "YYYY-MM-DD HH:mm",
354
+ outputFormat: "YYYYMMDDHHmm"
355
+ }
356
+ }, ji = ({
335
357
  itemProps: t,
336
358
  inputProps: e,
337
359
  type: r = "date",
@@ -339,60 +361,60 @@ const Ci = ({
339
361
  maxDate: i,
340
362
  useMask: o = !1
341
363
  }) => {
342
- const s = {
343
- year: { displayFormat: "YYYY", outputFormat: "YYYY" },
344
- month: { displayFormat: "YYYY-MM", outputFormat: "YYYYMM" },
345
- date: { displayFormat: "YYYY-MM-DD", outputFormat: "YYYYMMDD" }
346
- }, { displayFormat: a, outputFormat: u } = s[r], f = (l, m) => {
347
- if (e.onChange && typeof e.onChange == "function") {
348
- let p;
349
- l instanceof _ ? p = l.format(u) : (p = [], l && l.map((d) => {
350
- p.push(d.format(u));
351
- })), e.onChange(p, m);
352
- }
353
- };
364
+ const { displayFormat: a, outputFormat: s } = R(
365
+ () => _e[r],
366
+ [r]
367
+ ), l = R(
368
+ () => Object.values(_e).map((u) => u.outputFormat).sort((u, g) => {
369
+ if (u.length === g.length) {
370
+ if (u === s) return -1;
371
+ if (g === s) return 1;
372
+ }
373
+ return g.length - u.length;
374
+ }),
375
+ [s]
376
+ // type(outputFormat)이 바뀔 때마다 재정렬
377
+ );
354
378
  return /* @__PURE__ */ c.jsx(
355
- R,
379
+ j,
356
380
  {
357
381
  ...t,
358
- getValueProps: (l) => ({
359
- value: l && [
360
- l[0] ? _(l[0]) : null,
361
- l[1] ? _(l[1]) : null
362
- ]
382
+ getValueProps: (u) => ({
383
+ // value 있을 경우, 모든 가능한 outputFormat으로 파싱을 시도합니다.
384
+ value: u && u.length > 0 ? [
385
+ u[0] ? A(u[0], l) : null,
386
+ u[1] ? A(u[1], l) : null
387
+ ] : null
363
388
  }),
364
- normalize: (l) => [
365
- l?.[0] ? _(l[0]).format(u) : void 0,
366
- l?.[1] ? _(l[1]).format(u) : void 0
367
- ],
389
+ normalize: (u) => u ? [
390
+ u[0] ? u[0].format(s) : void 0,
391
+ u[1] ? u[1].format(s) : void 0
392
+ ] : [void 0, void 0],
368
393
  children: /* @__PURE__ */ c.jsx(
369
- qt,
394
+ Xt,
370
395
  {
371
396
  ...e,
372
- format: o ? {
373
- format: a,
374
- type: "mask"
375
- } : void 0,
376
- picker: r,
377
397
  order: !0,
378
- minDate: n ? _(n, u) : void 0,
379
- maxDate: i ? _(i, u) : void 0,
380
- onChange: f
398
+ minDate: n ? A(n, l) : void 0,
399
+ maxDate: i ? A(i, l) : void 0,
400
+ picker: r === "datetime" ? "date" : r,
401
+ showTime: r === "datetime" || r === "time",
402
+ format: a
381
403
  }
382
404
  )
383
405
  }
384
406
  );
385
- }, Ri = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(R, { ...t, children: /* @__PURE__ */ c.jsx(yt.Group, { ...e }) }), _i = ({
407
+ }, _i = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(j, { ...t, children: /* @__PURE__ */ c.jsx(St.Group, { ...e }) }), Li = ({
386
408
  itemProps: t,
387
409
  inputProps: e = {
388
410
  format: "YN"
389
411
  }
390
412
  }) => {
391
- const r = A.useFormInstance(), n = (i) => {
413
+ const r = k.useFormInstance(), n = (i) => {
392
414
  e.format === "boolean" ? r.setFieldValue(t?.name, i.target.checked) : r.setFieldValue(t?.name, i.target.checked ? "Y" : "N"), e.onChange && e.onChange(i);
393
415
  };
394
416
  return /* @__PURE__ */ c.jsx(
395
- R,
417
+ j,
396
418
  {
397
419
  ...t,
398
420
  getValueProps: (i) => (console.log("getValueProps :: ", i), { checked: e.format === "boolean" ? !!i : i === "Y" }),
@@ -400,26 +422,26 @@ const Ci = ({
400
422
  children: /* @__PURE__ */ c.jsx(me, { ...e, onChange: n, children: e?.title })
401
423
  }
402
424
  );
403
- }, Li = ({ itemProps: t, inputProps: e }) => {
404
- const r = A.useFormInstance(), [n, i] = Y(
425
+ }, Fi = ({ itemProps: t, inputProps: e }) => {
426
+ const r = k.useFormInstance(), [n, i] = Y(
405
427
  t?.initialValue ?? []
406
- ), [o, s] = Y([]), a = o.length > 0 && o.length == n?.length, u = n?.length > 0 && n.length < o.length;
407
- j(() => {
408
- s(f(e?.options));
409
- }, [e?.options]), j(() => {
428
+ ), [o, a] = Y([]), s = o.length > 0 && o.length == n?.length, l = n?.length > 0 && n.length < o.length;
429
+ _(() => {
430
+ a(u(e?.options));
431
+ }, [e?.options]), _(() => {
410
432
  i(n);
411
433
  }, [n]);
412
- const f = (p) => {
434
+ const u = (p) => {
413
435
  const d = [];
414
436
  return (p || []).map((I, y) => {
415
437
  d.push(I.value);
416
438
  }), d;
417
- }, l = (p) => {
439
+ }, g = (p) => {
418
440
  i(p.target.checked ? o : []), r.setFieldValue(t?.name, p.target.checked ? o : []);
419
- }, m = (p) => {
441
+ }, v = (p) => {
420
442
  i(p), r.setFieldValue(t?.name, p), e?.onChange && typeof e?.onChange == "function" && e?.onChange(p);
421
443
  };
422
- return /* @__PURE__ */ c.jsx(R, { ...t, children: /* @__PURE__ */ c.jsxs(We, { theme: {
444
+ return /* @__PURE__ */ c.jsx(j, { ...t, children: /* @__PURE__ */ c.jsxs(Ze, { theme: {
423
445
  components: {
424
446
  Checkbox: {
425
447
  colorPrimary: "var(--check-primary)",
@@ -431,9 +453,9 @@ const Ci = ({
431
453
  e?.allCheck && /* @__PURE__ */ c.jsx(
432
454
  me,
433
455
  {
434
- indeterminate: u,
435
- checked: a,
436
- onChange: l,
456
+ indeterminate: l,
457
+ checked: s,
458
+ onChange: g,
437
459
  children: "전체선택"
438
460
  }
439
461
  ),
@@ -442,11 +464,11 @@ const Ci = ({
442
464
  {
443
465
  options: e?.options,
444
466
  value: n,
445
- onChange: m
467
+ onChange: v
446
468
  }
447
469
  )
448
470
  ] }) });
449
- }, { TextArea: Gt } = K, ji = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(R, { ...t, children: /* @__PURE__ */ c.jsx(Gt, { ...e }) }), Fi = ({ itemProps: t, inputProps: e }) => {
471
+ }, { TextArea: Wt } = K, Yi = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(j, { ...t, children: /* @__PURE__ */ c.jsx(Wt, { ...e }) }), ki = ({ itemProps: t, inputProps: e }) => {
450
472
  const r = (i) => {
451
473
  let o = i.toString().split(".");
452
474
  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];
@@ -454,23 +476,23 @@ const Ci = ({
454
476
  let o = i.toString().split(".");
455
477
  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];
456
478
  };
457
- return /* @__PURE__ */ c.jsx(R, { ...t, children: /* @__PURE__ */ c.jsx(
458
- Dt,
479
+ return /* @__PURE__ */ c.jsx(j, { ...t, children: /* @__PURE__ */ c.jsx(
480
+ Ot,
459
481
  {
460
482
  ...e,
461
483
  formatter: (i) => r(i),
462
484
  parser: (i) => n(i)
463
485
  }
464
486
  ) });
465
- }, { Option: _e } = be, ki = ({ itemProps: t, inputProps: e }) => {
487
+ }, { Option: Le } = be, Ai = ({ itemProps: t, inputProps: e }) => {
466
488
  const [r, n] = Y([]);
467
- return j(() => {
489
+ return _(() => {
468
490
  e?.addField === "ALL" ? n([
469
491
  { label: "전체", value: "" },
470
492
  ...e?.list || []
471
493
  ]) : e?.addField === "NULL" ? n([{ label: "", value: "" }, ...e?.list || []]) : n(e?.list || []);
472
494
  }, [e?.list]), /* @__PURE__ */ c.jsx(
473
- R,
495
+ j,
474
496
  {
475
497
  ...t,
476
498
  getValueProps: (i) => i ? {
@@ -480,32 +502,32 @@ const Ci = ({
480
502
  },
481
503
  normalize: (i) => i != null && i != null && i.length > 0 ? i.toString() : "",
482
504
  children: /* @__PURE__ */ c.jsx(be, { ...e, mode: "multiple", children: r.map((i) => {
483
- const { value: o, label: s } = i;
484
- return e?.printCode ? /* @__PURE__ */ c.jsx(_e, { value: o, label: s, children: /* @__PURE__ */ c.jsx(ne, { children: `[${o}] ${s}` }) }, o) : /* @__PURE__ */ c.jsx(_e, { value: o, label: s, children: /* @__PURE__ */ c.jsx(ne, { children: `${s}` }) }, o);
505
+ const { value: o, label: a } = i;
506
+ return e?.printCode ? /* @__PURE__ */ c.jsx(Le, { value: o, label: a, children: /* @__PURE__ */ c.jsx(ne, { children: `[${o}] ${a}` }) }, o) : /* @__PURE__ */ c.jsx(Le, { value: o, label: a, children: /* @__PURE__ */ c.jsx(ne, { children: `${a}` }) }, o);
485
507
  }) })
486
508
  }
487
509
  );
488
- }, Yi = (t) => /* @__PURE__ */ c.jsx(W, { ...t, className: "bwg-btn" }), et = Et({
510
+ }, Hi = (t) => /* @__PURE__ */ c.jsx(W, { ...t, className: "bwg-btn" }), rt = xt({
489
511
  dragDropManager: void 0
490
512
  });
491
- function F(t) {
513
+ function L(t) {
492
514
  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. ";
493
515
  }
494
- var Le = (function() {
516
+ var Fe = (function() {
495
517
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
496
- })(), je = function() {
518
+ })(), Ye = function() {
497
519
  return Math.random().toString(36).substring(7).split("").join(".");
498
- }, Fe = {
499
- INIT: "@@redux/INIT" + je(),
500
- REPLACE: "@@redux/REPLACE" + je()
520
+ }, ke = {
521
+ INIT: "@@redux/INIT" + Ye(),
522
+ REPLACE: "@@redux/REPLACE" + Ye()
501
523
  };
502
- function Xt(t) {
524
+ function Kt(t) {
503
525
  if (typeof t != "object" || t === null) return !1;
504
526
  for (var e = t; Object.getPrototypeOf(e) !== null; )
505
527
  e = Object.getPrototypeOf(e);
506
528
  return Object.getPrototypeOf(t) === e;
507
529
  }
508
- function Wt(t) {
530
+ function Zt(t) {
509
531
  if (t === void 0) return "undefined";
510
532
  if (t === null) return "null";
511
533
  var e = typeof t;
@@ -518,9 +540,9 @@ function Wt(t) {
518
540
  return e;
519
541
  }
520
542
  if (Array.isArray(t)) return "array";
521
- if (Jt(t)) return "date";
522
- if (Zt(t)) return "error";
523
- var r = Kt(t);
543
+ if (er(t)) return "date";
544
+ if (Qt(t)) return "error";
545
+ var r = Jt(t);
524
546
  switch (r) {
525
547
  case "Symbol":
526
548
  case "Promise":
@@ -532,82 +554,82 @@ function Wt(t) {
532
554
  }
533
555
  return e.slice(8, -1).toLowerCase().replace(/\s/g, "");
534
556
  }
535
- function Kt(t) {
557
+ function Jt(t) {
536
558
  return typeof t.constructor == "function" ? t.constructor.name : null;
537
559
  }
538
- function Zt(t) {
560
+ function Qt(t) {
539
561
  return t instanceof Error || typeof t.message == "string" && t.constructor && typeof t.constructor.stackTraceLimit == "number";
540
562
  }
541
- function Jt(t) {
563
+ function er(t) {
542
564
  return t instanceof Date ? !0 : typeof t.toDateString == "function" && typeof t.getDate == "function" && typeof t.setDate == "function";
543
565
  }
544
566
  function z(t) {
545
567
  var e = typeof t;
546
- return process.env.NODE_ENV !== "production" && (e = Wt(t)), e;
568
+ return process.env.NODE_ENV !== "production" && (e = Zt(t)), e;
547
569
  }
548
- function tt(t, e, r) {
570
+ function nt(t, e, r) {
549
571
  var n;
550
572
  if (typeof e == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
551
- 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.");
573
+ throw new Error(process.env.NODE_ENV === "production" ? L(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.");
552
574
  if (typeof e == "function" && typeof r > "u" && (r = e, e = void 0), typeof r < "u") {
553
575
  if (typeof r != "function")
554
- throw new Error(process.env.NODE_ENV === "production" ? F(1) : "Expected the enhancer to be a function. Instead, received: '" + z(r) + "'");
555
- return r(tt)(t, e);
576
+ throw new Error(process.env.NODE_ENV === "production" ? L(1) : "Expected the enhancer to be a function. Instead, received: '" + z(r) + "'");
577
+ return r(nt)(t, e);
556
578
  }
557
579
  if (typeof t != "function")
558
- throw new Error(process.env.NODE_ENV === "production" ? F(2) : "Expected the root reducer to be a function. Instead, received: '" + z(t) + "'");
559
- var i = t, o = e, s = [], a = s, u = !1;
560
- function f() {
561
- a === s && (a = s.slice());
562
- }
563
- function l() {
564
- if (u)
565
- 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.");
580
+ throw new Error(process.env.NODE_ENV === "production" ? L(2) : "Expected the root reducer to be a function. Instead, received: '" + z(t) + "'");
581
+ var i = t, o = e, a = [], s = a, l = !1;
582
+ function u() {
583
+ s === a && (s = a.slice());
584
+ }
585
+ function g() {
586
+ if (l)
587
+ throw new Error(process.env.NODE_ENV === "production" ? L(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.");
566
588
  return o;
567
589
  }
568
- function m(y) {
590
+ function v(y) {
569
591
  if (typeof y != "function")
570
- throw new Error(process.env.NODE_ENV === "production" ? F(4) : "Expected the listener to be a function. Instead, received: '" + z(y) + "'");
571
- if (u)
572
- 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.");
592
+ throw new Error(process.env.NODE_ENV === "production" ? L(4) : "Expected the listener to be a function. Instead, received: '" + z(y) + "'");
593
+ if (l)
594
+ throw new Error(process.env.NODE_ENV === "production" ? L(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.");
573
595
  var C = !0;
574
- return f(), a.push(y), function() {
596
+ return u(), s.push(y), function() {
575
597
  if (C) {
576
- if (u)
577
- 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.");
578
- C = !1, f();
579
- var h = a.indexOf(y);
580
- a.splice(h, 1), s = null;
598
+ if (l)
599
+ throw new Error(process.env.NODE_ENV === "production" ? L(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.");
600
+ C = !1, u();
601
+ var h = s.indexOf(y);
602
+ s.splice(h, 1), a = null;
581
603
  }
582
604
  };
583
605
  }
584
606
  function p(y) {
585
- if (!Xt(y))
586
- throw new Error(process.env.NODE_ENV === "production" ? F(7) : "Actions must be plain objects. Instead, the actual type was: '" + z(y) + "'. 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.");
607
+ if (!Kt(y))
608
+ throw new Error(process.env.NODE_ENV === "production" ? L(7) : "Actions must be plain objects. Instead, the actual type was: '" + z(y) + "'. 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.");
587
609
  if (typeof y.type > "u")
588
- 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.');
589
- if (u)
590
- throw new Error(process.env.NODE_ENV === "production" ? F(9) : "Reducers may not dispatch actions.");
610
+ throw new Error(process.env.NODE_ENV === "production" ? L(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
611
+ if (l)
612
+ throw new Error(process.env.NODE_ENV === "production" ? L(9) : "Reducers may not dispatch actions.");
591
613
  try {
592
- u = !0, o = i(o, y);
614
+ l = !0, o = i(o, y);
593
615
  } finally {
594
- u = !1;
616
+ l = !1;
595
617
  }
596
- for (var C = s = a, v = 0; v < C.length; v++) {
597
- var h = C[v];
618
+ for (var C = a = s, m = 0; m < C.length; m++) {
619
+ var h = C[m];
598
620
  h();
599
621
  }
600
622
  return y;
601
623
  }
602
624
  function d(y) {
603
625
  if (typeof y != "function")
604
- throw new Error(process.env.NODE_ENV === "production" ? F(10) : "Expected the nextReducer to be a function. Instead, received: '" + z(y));
626
+ throw new Error(process.env.NODE_ENV === "production" ? L(10) : "Expected the nextReducer to be a function. Instead, received: '" + z(y));
605
627
  i = y, p({
606
- type: Fe.REPLACE
628
+ type: ke.REPLACE
607
629
  });
608
630
  }
609
631
  function I() {
610
- var y, C = m;
632
+ var y, C = v;
611
633
  return y = {
612
634
  /**
613
635
  * The minimal observable subscription method.
@@ -619,31 +641,31 @@ function tt(t, e, r) {
619
641
  */
620
642
  subscribe: function(h) {
621
643
  if (typeof h != "object" || h === null)
622
- throw new Error(process.env.NODE_ENV === "production" ? F(11) : "Expected the observer to be an object. Instead, received: '" + z(h) + "'");
644
+ throw new Error(process.env.NODE_ENV === "production" ? L(11) : "Expected the observer to be an object. Instead, received: '" + z(h) + "'");
623
645
  function T() {
624
- h.next && h.next(l());
646
+ h.next && h.next(g());
625
647
  }
626
648
  T();
627
- var g = C(T);
649
+ var f = C(T);
628
650
  return {
629
- unsubscribe: g
651
+ unsubscribe: f
630
652
  };
631
653
  }
632
- }, y[Le] = function() {
654
+ }, y[Fe] = function() {
633
655
  return this;
634
656
  }, y;
635
657
  }
636
658
  return p({
637
- type: Fe.INIT
659
+ type: ke.INIT
638
660
  }), n = {
639
661
  dispatch: p,
640
- subscribe: m,
641
- getState: l,
662
+ subscribe: v,
663
+ getState: g,
642
664
  replaceReducer: d
643
- }, n[Le] = I, n;
665
+ }, n[Fe] = I, n;
644
666
  }
645
667
  function D(t, e, ...r) {
646
- if (Qt() && e === void 0)
668
+ if (tr() && e === void 0)
647
669
  throw new Error("invariant requires an error message argument");
648
670
  if (!t) {
649
671
  let n;
@@ -658,40 +680,40 @@ function D(t, e, ...r) {
658
680
  throw n.framesToPop = 1, n;
659
681
  }
660
682
  }
661
- function Qt() {
683
+ function tr() {
662
684
  return typeof process < "u" && process.env.NODE_ENV === "production";
663
685
  }
664
- function er(t, e, r) {
686
+ function rr(t, e, r) {
665
687
  return e.split(".").reduce(
666
688
  (n, i) => n && n[i] ? n[i] : r || null,
667
689
  t
668
690
  );
669
691
  }
670
- function tr(t, e) {
692
+ function nr(t, e) {
671
693
  return t.filter(
672
694
  (r) => r !== e
673
695
  );
674
696
  }
675
- function rt(t) {
697
+ function it(t) {
676
698
  return typeof t == "object";
677
699
  }
678
- function rr(t, e) {
700
+ function ir(t, e) {
679
701
  const r = /* @__PURE__ */ new Map(), n = (o) => {
680
702
  r.set(o, r.has(o) ? r.get(o) + 1 : 1);
681
703
  };
682
704
  t.forEach(n), e.forEach(n);
683
705
  const i = [];
684
- return r.forEach((o, s) => {
685
- o === 1 && i.push(s);
706
+ return r.forEach((o, a) => {
707
+ o === 1 && i.push(a);
686
708
  }), i;
687
709
  }
688
- function nr(t, e) {
710
+ function or(t, e) {
689
711
  return t.filter(
690
712
  (r) => e.indexOf(r) > -1
691
713
  );
692
714
  }
693
715
  const Ie = "dnd-core/INIT_COORDS", ie = "dnd-core/BEGIN_DRAG", Ce = "dnd-core/PUBLISH_DRAG_SOURCE", oe = "dnd-core/HOVER", se = "dnd-core/DROP", ae = "dnd-core/END_DRAG";
694
- function ke(t, e) {
716
+ function Ae(t, e) {
695
717
  return {
696
718
  type: Ie,
697
719
  payload: {
@@ -700,61 +722,61 @@ function ke(t, e) {
700
722
  }
701
723
  };
702
724
  }
703
- const ir = {
725
+ const sr = {
704
726
  type: Ie,
705
727
  payload: {
706
728
  clientOffset: null,
707
729
  sourceClientOffset: null
708
730
  }
709
731
  };
710
- function or(t) {
732
+ function ar(t) {
711
733
  return function(r = [], n = {
712
734
  publishSource: !0
713
735
  }) {
714
- const { publishSource: i = !0, clientOffset: o, getSourceClientOffset: s } = n, a = t.getMonitor(), u = t.getRegistry();
715
- t.dispatch(ke(o)), sr(r, a, u);
716
- const f = ur(r, a);
717
- if (f == null) {
718
- t.dispatch(ir);
736
+ const { publishSource: i = !0, clientOffset: o, getSourceClientOffset: a } = n, s = t.getMonitor(), l = t.getRegistry();
737
+ t.dispatch(Ae(o)), cr(r, s, l);
738
+ const u = dr(r, s);
739
+ if (u == null) {
740
+ t.dispatch(sr);
719
741
  return;
720
742
  }
721
- let l = null;
743
+ let g = null;
722
744
  if (o) {
723
- if (!s)
745
+ if (!a)
724
746
  throw new Error("getSourceClientOffset must be defined");
725
- ar(s), l = s(f);
747
+ ur(a), g = a(u);
726
748
  }
727
- t.dispatch(ke(o, l));
728
- const p = u.getSource(f).beginDrag(a, f);
749
+ t.dispatch(Ae(o, g));
750
+ const p = l.getSource(u).beginDrag(s, u);
729
751
  if (p == null)
730
752
  return;
731
- cr(p), u.pinSource(f);
732
- const d = u.getSourceType(f);
753
+ lr(p), l.pinSource(u);
754
+ const d = l.getSourceType(u);
733
755
  return {
734
756
  type: ie,
735
757
  payload: {
736
758
  itemType: d,
737
759
  item: p,
738
- sourceId: f,
760
+ sourceId: u,
739
761
  clientOffset: o || null,
740
- sourceClientOffset: l || null,
762
+ sourceClientOffset: g || null,
741
763
  isSourcePublic: !!i
742
764
  }
743
765
  };
744
766
  };
745
767
  }
746
- function sr(t, e, r) {
768
+ function cr(t, e, r) {
747
769
  D(!e.isDragging(), "Cannot call beginDrag while dragging."), t.forEach(function(n) {
748
770
  D(r.getSource(n), "Expected sourceIds to be registered.");
749
771
  });
750
772
  }
751
- function ar(t) {
773
+ function ur(t) {
752
774
  D(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
753
775
  }
754
- function cr(t) {
755
- D(rt(t), "Item must be an object.");
776
+ function lr(t) {
777
+ D(it(t), "Item must be an object.");
756
778
  }
757
- function ur(t, e) {
779
+ function dr(t, e) {
758
780
  let r = null;
759
781
  for (let n = t.length - 1; n >= 0; n--)
760
782
  if (e.canDragSource(t[n])) {
@@ -763,7 +785,7 @@ function ur(t, e) {
763
785
  }
764
786
  return r;
765
787
  }
766
- function lr(t, e, r) {
788
+ function fr(t, e, r) {
767
789
  return e in t ? Object.defineProperty(t, e, {
768
790
  value: r,
769
791
  enumerable: !0,
@@ -771,57 +793,57 @@ function lr(t, e, r) {
771
793
  writable: !0
772
794
  }) : t[e] = r, t;
773
795
  }
774
- function dr(t) {
796
+ function gr(t) {
775
797
  for (var e = 1; e < arguments.length; e++) {
776
798
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
777
799
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
778
800
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
779
801
  }))), n.forEach(function(i) {
780
- lr(t, i, r[i]);
802
+ fr(t, i, r[i]);
781
803
  });
782
804
  }
783
805
  return t;
784
806
  }
785
- function fr(t) {
807
+ function hr(t) {
786
808
  return function(r = {}) {
787
809
  const n = t.getMonitor(), i = t.getRegistry();
788
- gr(n), mr(n).forEach((s, a) => {
789
- const u = hr(s, a, i, n), f = {
810
+ pr(n), yr(n).forEach((a, s) => {
811
+ const l = mr(a, s, i, n), u = {
790
812
  type: se,
791
813
  payload: {
792
- dropResult: dr({}, r, u)
814
+ dropResult: gr({}, r, l)
793
815
  }
794
816
  };
795
- t.dispatch(f);
817
+ t.dispatch(u);
796
818
  });
797
819
  };
798
820
  }
799
- function gr(t) {
821
+ function pr(t) {
800
822
  D(t.isDragging(), "Cannot call drop while not dragging."), D(!t.didDrop(), "Cannot call drop twice during one drag operation.");
801
823
  }
802
- function hr(t, e, r, n) {
824
+ function mr(t, e, r, n) {
803
825
  const i = r.getTarget(t);
804
826
  let o = i ? i.drop(n, t) : void 0;
805
- return pr(o), typeof o > "u" && (o = e === 0 ? {} : n.getDropResult()), o;
827
+ return vr(o), typeof o > "u" && (o = e === 0 ? {} : n.getDropResult()), o;
806
828
  }
807
- function pr(t) {
808
- D(typeof t > "u" || rt(t), "Drop result must either be an object or undefined.");
829
+ function vr(t) {
830
+ D(typeof t > "u" || it(t), "Drop result must either be an object or undefined.");
809
831
  }
810
- function mr(t) {
832
+ function yr(t) {
811
833
  const e = t.getTargetIds().filter(t.canDropOnTarget, t);
812
834
  return e.reverse(), e;
813
835
  }
814
- function vr(t) {
836
+ function Dr(t) {
815
837
  return function() {
816
838
  const r = t.getMonitor(), n = t.getRegistry();
817
- yr(r);
839
+ Sr(r);
818
840
  const i = r.getSourceId();
819
841
  return i != null && (n.getSource(i, !0).endDrag(r, i), n.unpinSource()), {
820
842
  type: ae
821
843
  };
822
844
  };
823
845
  }
824
- function yr(t) {
846
+ function Sr(t) {
825
847
  D(t.isDragging(), "Cannot call endDrag while not dragging.");
826
848
  }
827
849
  function ve(t, e) {
@@ -829,11 +851,11 @@ function ve(t, e) {
829
851
  (r) => r === e
830
852
  ) : t === e;
831
853
  }
832
- function Dr(t) {
854
+ function Or(t) {
833
855
  return function(r, { clientOffset: n } = {}) {
834
- Sr(r);
835
- const i = r.slice(0), o = t.getMonitor(), s = t.getRegistry(), a = o.getItemType();
836
- return br(i, s, a), Or(i, o, s), Tr(i, o, s), {
856
+ br(r);
857
+ const i = r.slice(0), o = t.getMonitor(), a = t.getRegistry(), s = o.getItemType();
858
+ return Ir(i, a, s), Tr(i, o, a), Cr(i, o, a), {
837
859
  type: oe,
838
860
  payload: {
839
861
  targetIds: i,
@@ -842,10 +864,10 @@ function Dr(t) {
842
864
  };
843
865
  };
844
866
  }
845
- function Sr(t) {
867
+ function br(t) {
846
868
  D(Array.isArray(t), "Expected targetIds to be an array.");
847
869
  }
848
- function Or(t, e, r) {
870
+ function Tr(t, e, r) {
849
871
  D(e.isDragging(), "Cannot call hover while not dragging."), D(!e.didDrop(), "Cannot call hover after drop.");
850
872
  for (let n = 0; n < t.length; n++) {
851
873
  const i = t[n];
@@ -854,18 +876,18 @@ function Or(t, e, r) {
854
876
  D(o, "Expected targetIds to be registered.");
855
877
  }
856
878
  }
857
- function br(t, e, r) {
879
+ function Ir(t, e, r) {
858
880
  for (let n = t.length - 1; n >= 0; n--) {
859
881
  const i = t[n], o = e.getTargetType(i);
860
882
  ve(o, r) || t.splice(n, 1);
861
883
  }
862
884
  }
863
- function Tr(t, e, r) {
885
+ function Cr(t, e, r) {
864
886
  t.forEach(function(n) {
865
887
  r.getTarget(n).hover(e, n);
866
888
  });
867
889
  }
868
- function Ir(t) {
890
+ function Er(t) {
869
891
  return function() {
870
892
  if (t.getMonitor().isDragging())
871
893
  return {
@@ -873,16 +895,16 @@ function Ir(t) {
873
895
  };
874
896
  };
875
897
  }
876
- function Cr(t) {
898
+ function wr(t) {
877
899
  return {
878
- beginDrag: or(t),
879
- publishDragSource: Ir(t),
880
- hover: Dr(t),
881
- drop: fr(t),
882
- endDrag: vr(t)
900
+ beginDrag: ar(t),
901
+ publishDragSource: Er(t),
902
+ hover: Or(t),
903
+ drop: hr(t),
904
+ endDrag: Dr(t)
883
905
  };
884
906
  }
885
- class Er {
907
+ class xr {
886
908
  receiveBackend(e) {
887
909
  this.backend = e;
888
910
  }
@@ -898,15 +920,15 @@ class Er {
898
920
  getActions() {
899
921
  const e = this, { dispatch: r } = this.store;
900
922
  function n(o) {
901
- return (...s) => {
902
- const a = o.apply(e, s);
903
- typeof a < "u" && r(a);
923
+ return (...a) => {
924
+ const s = o.apply(e, a);
925
+ typeof s < "u" && r(s);
904
926
  };
905
927
  }
906
- const i = Cr(this);
907
- return Object.keys(i).reduce((o, s) => {
908
- const a = i[s];
909
- return o[s] = n(a), o;
928
+ const i = wr(this);
929
+ return Object.keys(i).reduce((o, a) => {
930
+ const s = i[a];
931
+ return o[a] = n(s), o;
910
932
  }, {});
911
933
  }
912
934
  dispatch(e) {
@@ -919,43 +941,43 @@ class Er {
919
941
  }, this.store = e, this.monitor = r, e.subscribe(this.handleRefCountChange);
920
942
  }
921
943
  }
922
- function wr(t, e) {
944
+ function Nr(t, e) {
923
945
  return {
924
946
  x: t.x + e.x,
925
947
  y: t.y + e.y
926
948
  };
927
949
  }
928
- function nt(t, e) {
950
+ function ot(t, e) {
929
951
  return {
930
952
  x: t.x - e.x,
931
953
  y: t.y - e.y
932
954
  };
933
955
  }
934
- function xr(t) {
956
+ function Pr(t) {
935
957
  const { clientOffset: e, initialClientOffset: r, initialSourceClientOffset: n } = t;
936
- return !e || !r || !n ? null : nt(wr(e, n), r);
958
+ return !e || !r || !n ? null : ot(Nr(e, n), r);
937
959
  }
938
- function Nr(t) {
960
+ function Mr(t) {
939
961
  const { clientOffset: e, initialClientOffset: r } = t;
940
- return !e || !r ? null : nt(e, r);
962
+ return !e || !r ? null : ot(e, r);
941
963
  }
942
964
  const Q = [], Ee = [];
943
965
  Q.__IS_NONE__ = !0;
944
966
  Ee.__IS_ALL__ = !0;
945
- function Pr(t, e) {
946
- return t === Q ? !1 : t === Ee || typeof e > "u" ? !0 : nr(e, t).length > 0;
967
+ function Rr(t, e) {
968
+ return t === Q ? !1 : t === Ee || typeof e > "u" ? !0 : or(e, t).length > 0;
947
969
  }
948
- class Mr {
970
+ class jr {
949
971
  subscribeToStateChange(e, r = {}) {
950
972
  const { handlerIds: n } = r;
951
973
  D(typeof e == "function", "listener must be a function."), D(typeof n > "u" || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
952
974
  let i = this.store.getState().stateId;
953
975
  const o = () => {
954
- const s = this.store.getState(), a = s.stateId;
976
+ const a = this.store.getState(), s = a.stateId;
955
977
  try {
956
- a === i || a === i + 1 && !Pr(s.dirtyHandlerIds, n) || e();
978
+ s === i || s === i + 1 && !Rr(a.dirtyHandlerIds, n) || e();
957
979
  } finally {
958
- i = a;
980
+ i = s;
959
981
  }
960
982
  };
961
983
  return this.store.subscribe(o);
@@ -1007,11 +1029,11 @@ class Mr {
1007
1029
  const i = this.registry.getTargetType(e), o = this.getItemType();
1008
1030
  if (o && !ve(i, o))
1009
1031
  return !1;
1010
- const s = this.getTargetIds();
1011
- if (!s.length)
1032
+ const a = this.getTargetIds();
1033
+ if (!a.length)
1012
1034
  return !1;
1013
- const a = s.indexOf(e);
1014
- return n ? a === s.length - 1 : a > -1;
1035
+ const s = a.indexOf(e);
1036
+ return n ? s === a.length - 1 : s > -1;
1015
1037
  }
1016
1038
  getItemType() {
1017
1039
  return this.store.getState().dragOperation.itemType;
@@ -1044,17 +1066,17 @@ class Mr {
1044
1066
  return this.store.getState().dragOffset.clientOffset;
1045
1067
  }
1046
1068
  getSourceClientOffset() {
1047
- return xr(this.store.getState().dragOffset);
1069
+ return Pr(this.store.getState().dragOffset);
1048
1070
  }
1049
1071
  getDifferenceFromInitialOffset() {
1050
- return Nr(this.store.getState().dragOffset);
1072
+ return Mr(this.store.getState().dragOffset);
1051
1073
  }
1052
1074
  constructor(e, r) {
1053
1075
  this.store = e, this.registry = r;
1054
1076
  }
1055
1077
  }
1056
- const Ye = typeof global < "u" ? global : self, it = Ye.MutationObserver || Ye.WebKitMutationObserver;
1057
- function ot(t) {
1078
+ const He = typeof global < "u" ? global : self, st = He.MutationObserver || He.WebKitMutationObserver;
1079
+ function at(t) {
1058
1080
  return function() {
1059
1081
  const r = setTimeout(i, 0), n = setInterval(i, 50);
1060
1082
  function i() {
@@ -1062,16 +1084,16 @@ function ot(t) {
1062
1084
  }
1063
1085
  };
1064
1086
  }
1065
- function Rr(t) {
1087
+ function _r(t) {
1066
1088
  let e = 1;
1067
- const r = new it(t), n = document.createTextNode("");
1089
+ const r = new st(t), n = document.createTextNode("");
1068
1090
  return r.observe(n, {
1069
1091
  characterData: !0
1070
1092
  }), function() {
1071
1093
  e = -e, n.data = e;
1072
1094
  };
1073
1095
  }
1074
- const _r = typeof it == "function" ? (
1096
+ const Lr = typeof st == "function" ? (
1075
1097
  // reliably everywhere they are implemented.
1076
1098
  // They are implemented in all modern browsers.
1077
1099
  //
@@ -1082,7 +1104,7 @@ const _r = typeof it == "function" ? (
1082
1104
  // - iPad Safari 6-7.1
1083
1105
  // - iPhone Safari 7-7.1
1084
1106
  // - Safari 6-7
1085
- Rr
1107
+ _r
1086
1108
  ) : (
1087
1109
  // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera
1088
1110
  // 11-12, and in web workers in many engines.
@@ -1108,9 +1130,9 @@ const _r = typeof it == "function" ? (
1108
1130
  // - Internet Explorer 6-9
1109
1131
  // - iPad Safari 4.3
1110
1132
  // - Lynx 2.8.7
1111
- ot
1133
+ at
1112
1134
  );
1113
- class Lr {
1135
+ class Fr {
1114
1136
  // Use the fastest means possible to execute a task in its own turn, with
1115
1137
  // priority over other events including IO, animation, reflow, and redraw
1116
1138
  // events in browsers.
@@ -1139,13 +1161,13 @@ class Lr {
1139
1161
  e.length = 0, this.index = 0, this.flushing = !1;
1140
1162
  }, this.registerPendingError = (e) => {
1141
1163
  this.pendingErrors.push(e), this.requestErrorThrow();
1142
- }, this.requestFlush = _r(this.flush), this.requestErrorThrow = ot(() => {
1164
+ }, this.requestFlush = Lr(this.flush), this.requestErrorThrow = at(() => {
1143
1165
  if (this.pendingErrors.length)
1144
1166
  throw this.pendingErrors.shift();
1145
1167
  });
1146
1168
  }
1147
1169
  }
1148
- class jr {
1170
+ class Yr {
1149
1171
  call() {
1150
1172
  try {
1151
1173
  this.task && this.task();
@@ -1159,9 +1181,9 @@ class jr {
1159
1181
  this.onError = e, this.release = r, this.task = null;
1160
1182
  }
1161
1183
  }
1162
- class Fr {
1184
+ class kr {
1163
1185
  create(e) {
1164
- const r = this.freeTasks, n = r.length ? r.pop() : new jr(
1186
+ const r = this.freeTasks, n = r.length ? r.pop() : new Yr(
1165
1187
  this.onError,
1166
1188
  (i) => r[r.length] = i
1167
1189
  );
@@ -1171,12 +1193,12 @@ class Fr {
1171
1193
  this.onError = e, this.freeTasks = [];
1172
1194
  }
1173
1195
  }
1174
- const st = new Lr(), kr = new Fr(st.registerPendingError);
1175
- function Yr(t) {
1176
- st.enqueueTask(kr.create(t));
1196
+ const ct = new Fr(), Ar = new kr(ct.registerPendingError);
1197
+ function Hr(t) {
1198
+ ct.enqueueTask(Ar.create(t));
1177
1199
  }
1178
1200
  const we = "dnd-core/ADD_SOURCE", xe = "dnd-core/ADD_TARGET", Ne = "dnd-core/REMOVE_SOURCE", ce = "dnd-core/REMOVE_TARGET";
1179
- function Ar(t) {
1201
+ function Ur(t) {
1180
1202
  return {
1181
1203
  type: we,
1182
1204
  payload: {
@@ -1184,7 +1206,7 @@ function Ar(t) {
1184
1206
  }
1185
1207
  };
1186
1208
  }
1187
- function Hr(t) {
1209
+ function Br(t) {
1188
1210
  return {
1189
1211
  type: xe,
1190
1212
  payload: {
@@ -1192,7 +1214,7 @@ function Hr(t) {
1192
1214
  }
1193
1215
  };
1194
1216
  }
1195
- function Br(t) {
1217
+ function Vr(t) {
1196
1218
  return {
1197
1219
  type: Ne,
1198
1220
  payload: {
@@ -1200,7 +1222,7 @@ function Br(t) {
1200
1222
  }
1201
1223
  };
1202
1224
  }
1203
- function Ur(t) {
1225
+ function $r(t) {
1204
1226
  return {
1205
1227
  type: ce,
1206
1228
  payload: {
@@ -1208,10 +1230,10 @@ function Ur(t) {
1208
1230
  }
1209
1231
  };
1210
1232
  }
1211
- function Vr(t) {
1233
+ function zr(t) {
1212
1234
  D(typeof t.canDrag == "function", "Expected canDrag to be a function."), D(typeof t.beginDrag == "function", "Expected beginDrag to be a function."), D(typeof t.endDrag == "function", "Expected endDrag to be a function.");
1213
1235
  }
1214
- function $r(t) {
1236
+ function qr(t) {
1215
1237
  D(typeof t.canDrop == "function", "Expected canDrop to be a function."), D(typeof t.hover == "function", "Expected hover to be a function."), D(typeof t.drop == "function", "Expected beginDrag to be a function.");
1216
1238
  }
1217
1239
  function ye(t, e) {
@@ -1223,36 +1245,36 @@ function ye(t, e) {
1223
1245
  }
1224
1246
  D(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.");
1225
1247
  }
1226
- var k;
1248
+ var F;
1227
1249
  (function(t) {
1228
1250
  t.SOURCE = "SOURCE", t.TARGET = "TARGET";
1229
- })(k || (k = {}));
1230
- let zr = 0;
1231
- function qr() {
1232
- return zr++;
1251
+ })(F || (F = {}));
1252
+ let Gr = 0;
1253
+ function Xr() {
1254
+ return Gr++;
1233
1255
  }
1234
- function Gr(t) {
1235
- const e = qr().toString();
1256
+ function Wr(t) {
1257
+ const e = Xr().toString();
1236
1258
  switch (t) {
1237
- case k.SOURCE:
1259
+ case F.SOURCE:
1238
1260
  return `S${e}`;
1239
- case k.TARGET:
1261
+ case F.TARGET:
1240
1262
  return `T${e}`;
1241
1263
  default:
1242
1264
  throw new Error(`Unknown Handler Role: ${t}`);
1243
1265
  }
1244
1266
  }
1245
- function Ae(t) {
1267
+ function Ue(t) {
1246
1268
  switch (t[0]) {
1247
1269
  case "S":
1248
- return k.SOURCE;
1270
+ return F.SOURCE;
1249
1271
  case "T":
1250
- return k.TARGET;
1272
+ return F.TARGET;
1251
1273
  default:
1252
1274
  throw new Error(`Cannot parse handler ID: ${t}`);
1253
1275
  }
1254
1276
  }
1255
- function He(t, e) {
1277
+ function Be(t, e) {
1256
1278
  const r = t.entries();
1257
1279
  let n = !1;
1258
1280
  do {
@@ -1263,19 +1285,19 @@ function He(t, e) {
1263
1285
  } while (!n);
1264
1286
  return !1;
1265
1287
  }
1266
- class Xr {
1288
+ class Kr {
1267
1289
  addSource(e, r) {
1268
- ye(e), Vr(r);
1269
- const n = this.addHandler(k.SOURCE, e, r);
1270
- return this.store.dispatch(Ar(n)), n;
1290
+ ye(e), zr(r);
1291
+ const n = this.addHandler(F.SOURCE, e, r);
1292
+ return this.store.dispatch(Ur(n)), n;
1271
1293
  }
1272
1294
  addTarget(e, r) {
1273
- ye(e, !0), $r(r);
1274
- const n = this.addHandler(k.TARGET, e, r);
1275
- return this.store.dispatch(Hr(n)), n;
1295
+ ye(e, !0), qr(r);
1296
+ const n = this.addHandler(F.TARGET, e, r);
1297
+ return this.store.dispatch(Br(n)), n;
1276
1298
  }
1277
1299
  containsHandler(e) {
1278
- return He(this.dragSources, e) || He(this.dropTargets, e);
1300
+ return Be(this.dragSources, e) || Be(this.dropTargets, e);
1279
1301
  }
1280
1302
  getSource(e, r = !1) {
1281
1303
  return D(this.isSourceId(e), "Expected a valid source ID."), r && e === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(e);
@@ -1290,18 +1312,18 @@ class Xr {
1290
1312
  return D(this.isTargetId(e), "Expected a valid target ID."), this.types.get(e);
1291
1313
  }
1292
1314
  isSourceId(e) {
1293
- return Ae(e) === k.SOURCE;
1315
+ return Ue(e) === F.SOURCE;
1294
1316
  }
1295
1317
  isTargetId(e) {
1296
- return Ae(e) === k.TARGET;
1318
+ return Ue(e) === F.TARGET;
1297
1319
  }
1298
1320
  removeSource(e) {
1299
- D(this.getSource(e), "Expected an existing source."), this.store.dispatch(Br(e)), Yr(() => {
1321
+ D(this.getSource(e), "Expected an existing source."), this.store.dispatch(Vr(e)), Hr(() => {
1300
1322
  this.dragSources.delete(e), this.types.delete(e);
1301
1323
  });
1302
1324
  }
1303
1325
  removeTarget(e) {
1304
- D(this.getTarget(e), "Expected an existing target."), this.store.dispatch(Ur(e)), this.dropTargets.delete(e), this.types.delete(e);
1326
+ D(this.getTarget(e), "Expected an existing target."), this.store.dispatch($r(e)), this.dropTargets.delete(e), this.types.delete(e);
1305
1327
  }
1306
1328
  pinSource(e) {
1307
1329
  const r = this.getSource(e);
@@ -1311,18 +1333,18 @@ class Xr {
1311
1333
  D(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
1312
1334
  }
1313
1335
  addHandler(e, r, n) {
1314
- const i = Gr(e);
1315
- return this.types.set(i, r), e === k.SOURCE ? this.dragSources.set(i, n) : e === k.TARGET && this.dropTargets.set(i, n), i;
1336
+ const i = Wr(e);
1337
+ return this.types.set(i, r), e === F.SOURCE ? this.dragSources.set(i, n) : e === F.TARGET && this.dropTargets.set(i, n), i;
1316
1338
  }
1317
1339
  constructor(e) {
1318
1340
  this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
1319
1341
  }
1320
1342
  }
1321
- const Wr = (t, e) => t === e;
1322
- function Kr(t, e) {
1343
+ const Zr = (t, e) => t === e;
1344
+ function Jr(t, e) {
1323
1345
  return !t && !e ? !0 : !t || !e ? !1 : t.x === e.x && t.y === e.y;
1324
1346
  }
1325
- function Zr(t, e, r = Wr) {
1347
+ function Qr(t, e, r = Zr) {
1326
1348
  if (t.length !== e.length)
1327
1349
  return !1;
1328
1350
  for (let n = 0; n < t.length; ++n)
@@ -1330,7 +1352,7 @@ function Zr(t, e, r = Wr) {
1330
1352
  return !1;
1331
1353
  return !0;
1332
1354
  }
1333
- function Jr(t = Q, e) {
1355
+ function en(t = Q, e) {
1334
1356
  switch (e.type) {
1335
1357
  case oe:
1336
1358
  break;
@@ -1346,13 +1368,13 @@ function Jr(t = Q, e) {
1346
1368
  default:
1347
1369
  return Ee;
1348
1370
  }
1349
- const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = rr(r, n);
1350
- if (!(i.length > 0 || !Zr(r, n)))
1371
+ const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = ir(r, n);
1372
+ if (!(i.length > 0 || !Qr(r, n)))
1351
1373
  return Q;
1352
- const s = n[n.length - 1], a = r[r.length - 1];
1353
- return s !== a && (s && i.push(s), a && i.push(a)), i;
1374
+ const a = n[n.length - 1], s = r[r.length - 1];
1375
+ return a !== s && (a && i.push(a), s && i.push(s)), i;
1354
1376
  }
1355
- function Qr(t, e, r) {
1377
+ function tn(t, e, r) {
1356
1378
  return e in t ? Object.defineProperty(t, e, {
1357
1379
  value: r,
1358
1380
  enumerable: !0,
@@ -1360,23 +1382,23 @@ function Qr(t, e, r) {
1360
1382
  writable: !0
1361
1383
  }) : t[e] = r, t;
1362
1384
  }
1363
- function en(t) {
1385
+ function rn(t) {
1364
1386
  for (var e = 1; e < arguments.length; e++) {
1365
1387
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
1366
1388
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
1367
1389
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
1368
1390
  }))), n.forEach(function(i) {
1369
- Qr(t, i, r[i]);
1391
+ tn(t, i, r[i]);
1370
1392
  });
1371
1393
  }
1372
1394
  return t;
1373
1395
  }
1374
- const Be = {
1396
+ const Ve = {
1375
1397
  initialSourceClientOffset: null,
1376
1398
  initialClientOffset: null,
1377
1399
  clientOffset: null
1378
1400
  };
1379
- function tn(t = Be, e) {
1401
+ function nn(t = Ve, e) {
1380
1402
  const { payload: r } = e;
1381
1403
  switch (e.type) {
1382
1404
  case Ie:
@@ -1387,17 +1409,17 @@ function tn(t = Be, e) {
1387
1409
  clientOffset: r.clientOffset
1388
1410
  };
1389
1411
  case oe:
1390
- return Kr(t.clientOffset, r.clientOffset) ? t : en({}, t, {
1412
+ return Jr(t.clientOffset, r.clientOffset) ? t : rn({}, t, {
1391
1413
  clientOffset: r.clientOffset
1392
1414
  });
1393
1415
  case ae:
1394
1416
  case se:
1395
- return Be;
1417
+ return Ve;
1396
1418
  default:
1397
1419
  return t;
1398
1420
  }
1399
1421
  }
1400
- function rn(t, e, r) {
1422
+ function on(t, e, r) {
1401
1423
  return e in t ? Object.defineProperty(t, e, {
1402
1424
  value: r,
1403
1425
  enumerable: !0,
@@ -1411,12 +1433,12 @@ function q(t) {
1411
1433
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
1412
1434
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
1413
1435
  }))), n.forEach(function(i) {
1414
- rn(t, i, r[i]);
1436
+ on(t, i, r[i]);
1415
1437
  });
1416
1438
  }
1417
1439
  return t;
1418
1440
  }
1419
- const nn = {
1441
+ const sn = {
1420
1442
  itemType: null,
1421
1443
  item: null,
1422
1444
  sourceId: null,
@@ -1425,7 +1447,7 @@ const nn = {
1425
1447
  didDrop: !1,
1426
1448
  isSourcePublic: null
1427
1449
  };
1428
- function on(t = nn, e) {
1450
+ function an(t = sn, e) {
1429
1451
  const { payload: r } = e;
1430
1452
  switch (e.type) {
1431
1453
  case ie:
@@ -1447,7 +1469,7 @@ function on(t = nn, e) {
1447
1469
  });
1448
1470
  case ce:
1449
1471
  return t.targetIds.indexOf(r.targetId) === -1 ? t : q({}, t, {
1450
- targetIds: tr(t.targetIds, r.targetId)
1472
+ targetIds: nr(t.targetIds, r.targetId)
1451
1473
  });
1452
1474
  case se:
1453
1475
  return q({}, t, {
@@ -1469,7 +1491,7 @@ function on(t = nn, e) {
1469
1491
  return t;
1470
1492
  }
1471
1493
  }
1472
- function sn(t = 0, e) {
1494
+ function cn(t = 0, e) {
1473
1495
  switch (e.type) {
1474
1496
  case we:
1475
1497
  case xe:
@@ -1481,10 +1503,10 @@ function sn(t = 0, e) {
1481
1503
  return t;
1482
1504
  }
1483
1505
  }
1484
- function an(t = 0) {
1506
+ function un(t = 0) {
1485
1507
  return t + 1;
1486
1508
  }
1487
- function cn(t, e, r) {
1509
+ function ln(t, e, r) {
1488
1510
  return e in t ? Object.defineProperty(t, e, {
1489
1511
  value: r,
1490
1512
  enumerable: !0,
@@ -1492,45 +1514,45 @@ function cn(t, e, r) {
1492
1514
  writable: !0
1493
1515
  }) : t[e] = r, t;
1494
1516
  }
1495
- function un(t) {
1517
+ function dn(t) {
1496
1518
  for (var e = 1; e < arguments.length; e++) {
1497
1519
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
1498
1520
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
1499
1521
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
1500
1522
  }))), n.forEach(function(i) {
1501
- cn(t, i, r[i]);
1523
+ ln(t, i, r[i]);
1502
1524
  });
1503
1525
  }
1504
1526
  return t;
1505
1527
  }
1506
- function ln(t = {}, e) {
1528
+ function fn(t = {}, e) {
1507
1529
  return {
1508
- dirtyHandlerIds: Jr(t.dirtyHandlerIds, {
1530
+ dirtyHandlerIds: en(t.dirtyHandlerIds, {
1509
1531
  type: e.type,
1510
- payload: un({}, e.payload, {
1511
- prevTargetIds: er(t, "dragOperation.targetIds", [])
1532
+ payload: dn({}, e.payload, {
1533
+ prevTargetIds: rr(t, "dragOperation.targetIds", [])
1512
1534
  })
1513
1535
  }),
1514
- dragOffset: tn(t.dragOffset, e),
1515
- refCount: sn(t.refCount, e),
1516
- dragOperation: on(t.dragOperation, e),
1517
- stateId: an(t.stateId)
1536
+ dragOffset: nn(t.dragOffset, e),
1537
+ refCount: cn(t.refCount, e),
1538
+ dragOperation: an(t.dragOperation, e),
1539
+ stateId: un(t.stateId)
1518
1540
  };
1519
1541
  }
1520
- function dn(t, e = void 0, r = {}, n = !1) {
1521
- const i = fn(n), o = new Mr(i, new Xr(i)), s = new Er(i, o), a = t(s, e, r);
1522
- return s.receiveBackend(a), s;
1542
+ function gn(t, e = void 0, r = {}, n = !1) {
1543
+ const i = hn(n), o = new jr(i, new Kr(i)), a = new xr(i, o), s = t(a, e, r);
1544
+ return a.receiveBackend(s), a;
1523
1545
  }
1524
- function fn(t) {
1546
+ function hn(t) {
1525
1547
  const e = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
1526
- return tt(ln, t && e && e({
1548
+ return nt(fn, t && e && e({
1527
1549
  name: "dnd-core",
1528
1550
  instanceId: "dnd-core"
1529
1551
  }));
1530
1552
  }
1531
- function gn(t, e) {
1553
+ function pn(t, e) {
1532
1554
  if (t == null) return {};
1533
- var r = hn(t, e), n, i;
1555
+ var r = mn(t, e), n, i;
1534
1556
  if (Object.getOwnPropertySymbols) {
1535
1557
  var o = Object.getOwnPropertySymbols(t);
1536
1558
  for (i = 0; i < o.length; i++)
@@ -1538,33 +1560,33 @@ function gn(t, e) {
1538
1560
  }
1539
1561
  return r;
1540
1562
  }
1541
- function hn(t, e) {
1563
+ function mn(t, e) {
1542
1564
  if (t == null) return {};
1543
1565
  var r = {}, n = Object.keys(t), i, o;
1544
1566
  for (o = 0; o < n.length; o++)
1545
1567
  i = n[o], !(e.indexOf(i) >= 0) && (r[i] = t[i]);
1546
1568
  return r;
1547
1569
  }
1548
- let Ue = 0;
1570
+ let $e = 0;
1549
1571
  const re = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
1550
- var pn = /* @__PURE__ */ wt(function(e) {
1551
- var { children: r } = e, n = gn(e, [
1572
+ var vn = /* @__PURE__ */ Nt(function(e) {
1573
+ var { children: r } = e, n = pn(e, [
1552
1574
  "children"
1553
1575
  ]);
1554
- const [i, o] = mn(n);
1555
- return j(() => {
1576
+ const [i, o] = yn(n);
1577
+ return _(() => {
1556
1578
  if (o) {
1557
- const s = at();
1558
- return ++Ue, () => {
1559
- --Ue === 0 && (s[re] = null);
1579
+ const a = ut();
1580
+ return ++$e, () => {
1581
+ --$e === 0 && (a[re] = null);
1560
1582
  };
1561
1583
  }
1562
- }, []), /* @__PURE__ */ c.jsx(et.Provider, {
1584
+ }, []), /* @__PURE__ */ c.jsx(rt.Provider, {
1563
1585
  value: i,
1564
1586
  children: r
1565
1587
  });
1566
1588
  });
1567
- function mn(t) {
1589
+ function yn(t) {
1568
1590
  if ("manager" in t)
1569
1591
  return [
1570
1592
  {
@@ -1572,24 +1594,24 @@ function mn(t) {
1572
1594
  },
1573
1595
  !1
1574
1596
  ];
1575
- const e = vn(t.backend, t.context, t.options, t.debugMode), r = !t.context;
1597
+ const e = Dn(t.backend, t.context, t.options, t.debugMode), r = !t.context;
1576
1598
  return [
1577
1599
  e,
1578
1600
  r
1579
1601
  ];
1580
1602
  }
1581
- function vn(t, e = at(), r, n) {
1603
+ function Dn(t, e = ut(), r, n) {
1582
1604
  const i = e;
1583
1605
  return i[re] || (i[re] = {
1584
- dragDropManager: dn(t, e, r, n)
1606
+ dragDropManager: gn(t, e, r, n)
1585
1607
  }), i[re];
1586
1608
  }
1587
- function at() {
1609
+ function ut() {
1588
1610
  return typeof global < "u" ? global : window;
1589
1611
  }
1590
- var le, Ve;
1591
- function yn() {
1592
- return Ve || (Ve = 1, le = function t(e, r) {
1612
+ var le, ze;
1613
+ function Sn() {
1614
+ return ze || (ze = 1, le = function t(e, r) {
1593
1615
  if (e === r) return !0;
1594
1616
  if (e && r && typeof e == "object" && typeof r == "object") {
1595
1617
  if (e.constructor !== r.constructor) return !1;
@@ -1607,40 +1629,40 @@ function yn() {
1607
1629
  for (i = n; i-- !== 0; )
1608
1630
  if (!Object.prototype.hasOwnProperty.call(r, o[i])) return !1;
1609
1631
  for (i = n; i-- !== 0; ) {
1610
- var s = o[i];
1611
- if (!t(e[s], r[s])) return !1;
1632
+ var a = o[i];
1633
+ if (!t(e[a], r[a])) return !1;
1612
1634
  }
1613
1635
  return !0;
1614
1636
  }
1615
1637
  return e !== e && r !== r;
1616
1638
  }), le;
1617
1639
  }
1618
- var Dn = yn();
1619
- const Sn = /* @__PURE__ */ Bt(Dn), U = typeof window < "u" ? xt : j;
1620
- function On(t, e, r) {
1640
+ var On = Sn();
1641
+ const bn = /* @__PURE__ */ Vt(On), B = typeof window < "u" ? Pt : _;
1642
+ function Tn(t, e, r) {
1621
1643
  const [n, i] = Y(
1622
1644
  () => e(t)
1623
- ), o = Nt(() => {
1624
- const s = e(t);
1625
- Sn(n, s) || (i(s), r && r());
1645
+ ), o = Mt(() => {
1646
+ const a = e(t);
1647
+ bn(n, a) || (i(a), r && r());
1626
1648
  }, [
1627
1649
  n,
1628
1650
  t,
1629
1651
  r
1630
1652
  ]);
1631
- return U(o), [
1653
+ return B(o), [
1632
1654
  n,
1633
1655
  o
1634
1656
  ];
1635
1657
  }
1636
- function bn(t, e, r) {
1637
- const [n, i] = On(t, e, r);
1638
- return U(function() {
1639
- const s = t.getHandlerId();
1640
- if (s != null)
1658
+ function In(t, e, r) {
1659
+ const [n, i] = Tn(t, e, r);
1660
+ return B(function() {
1661
+ const a = t.getHandlerId();
1662
+ if (a != null)
1641
1663
  return t.subscribeToStateChange(i, {
1642
1664
  handlerIds: [
1643
- s
1665
+ a
1644
1666
  ]
1645
1667
  });
1646
1668
  }, [
@@ -1648,27 +1670,27 @@ function bn(t, e, r) {
1648
1670
  i
1649
1671
  ]), n;
1650
1672
  }
1651
- function ct(t, e, r) {
1652
- return bn(
1673
+ function lt(t, e, r) {
1674
+ return In(
1653
1675
  e,
1654
1676
  t || (() => ({})),
1655
1677
  () => r.reconnect()
1656
1678
  );
1657
1679
  }
1658
- function ut(t, e) {
1680
+ function dt(t, e) {
1659
1681
  const r = [];
1660
- return typeof t != "function" && r.push(t), L(() => typeof t == "function" ? t() : t, r);
1682
+ return typeof t != "function" && r.push(t), R(() => typeof t == "function" ? t() : t, r);
1661
1683
  }
1662
- function Tn(t) {
1663
- return L(
1684
+ function Cn(t) {
1685
+ return R(
1664
1686
  () => t.hooks.dragSource(),
1665
1687
  [
1666
1688
  t
1667
1689
  ]
1668
1690
  );
1669
1691
  }
1670
- function In(t) {
1671
- return L(
1692
+ function En(t) {
1693
+ return R(
1672
1694
  () => t.hooks.dragPreview(),
1673
1695
  [
1674
1696
  t
@@ -1676,7 +1698,7 @@ function In(t) {
1676
1698
  );
1677
1699
  }
1678
1700
  let de = !1, fe = !1;
1679
- class Cn {
1701
+ class wn {
1680
1702
  receiveHandlerId(e) {
1681
1703
  this.sourceId = e;
1682
1704
  }
@@ -1760,7 +1782,7 @@ class Cn {
1760
1782
  }
1761
1783
  }
1762
1784
  let ge = !1;
1763
- class En {
1785
+ class xn {
1764
1786
  receiveHandlerId(e) {
1765
1787
  this.targetId = e;
1766
1788
  }
@@ -1814,14 +1836,14 @@ class En {
1814
1836
  this.targetId = null, this.internalMonitor = e.getMonitor();
1815
1837
  }
1816
1838
  }
1817
- function wn(t, e, r) {
1839
+ function Nn(t, e, r) {
1818
1840
  const n = r.getRegistry(), i = n.addTarget(t, e);
1819
1841
  return [
1820
1842
  i,
1821
1843
  () => n.removeTarget(i)
1822
1844
  ];
1823
1845
  }
1824
- function xn(t, e, r) {
1846
+ function Pn(t, e, r) {
1825
1847
  const n = r.getRegistry(), i = n.addSource(t, e);
1826
1848
  return [
1827
1849
  i,
@@ -1836,16 +1858,16 @@ function De(t, e, r, n) {
1836
1858
  return !0;
1837
1859
  if (typeof t != "object" || !t || typeof e != "object" || !e)
1838
1860
  return !1;
1839
- const o = Object.keys(t), s = Object.keys(e);
1840
- if (o.length !== s.length)
1861
+ const o = Object.keys(t), a = Object.keys(e);
1862
+ if (o.length !== a.length)
1841
1863
  return !1;
1842
- const a = Object.prototype.hasOwnProperty.bind(e);
1843
- for (let u = 0; u < o.length; u++) {
1844
- const f = o[u];
1845
- if (!a(f))
1864
+ const s = Object.prototype.hasOwnProperty.bind(e);
1865
+ for (let l = 0; l < o.length; l++) {
1866
+ const u = o[l];
1867
+ if (!s(u))
1846
1868
  return !1;
1847
- const l = t[f], m = e[f];
1848
- if (i = void 0, i === !1 || i === void 0 && l !== m)
1869
+ const g = t[u], v = e[u];
1870
+ if (i = void 0, i === !1 || i === void 0 && g !== v)
1849
1871
  return !1;
1850
1872
  }
1851
1873
  return !0;
@@ -1856,48 +1878,48 @@ function Se(t) {
1856
1878
  t !== null && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current")
1857
1879
  );
1858
1880
  }
1859
- function Nn(t) {
1881
+ function Mn(t) {
1860
1882
  if (typeof t.type == "string")
1861
1883
  return;
1862
1884
  const e = t.type.displayName || t.type.name || "the component";
1863
1885
  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.`);
1864
1886
  }
1865
- function Pn(t) {
1887
+ function Rn(t) {
1866
1888
  return (e = null, r = null) => {
1867
- if (!Pt(e)) {
1889
+ if (!Rt(e)) {
1868
1890
  const o = e;
1869
1891
  return t(o, r), o;
1870
1892
  }
1871
1893
  const n = e;
1872
- return Nn(n), Mn(n, r ? (o) => t(o, r) : t);
1894
+ return Mn(n), jn(n, r ? (o) => t(o, r) : t);
1873
1895
  };
1874
1896
  }
1875
- function lt(t) {
1897
+ function ft(t) {
1876
1898
  const e = {};
1877
1899
  return Object.keys(t).forEach((r) => {
1878
1900
  const n = t[r];
1879
1901
  if (r.endsWith("Ref"))
1880
1902
  e[r] = t[r];
1881
1903
  else {
1882
- const i = Pn(n);
1904
+ const i = Rn(n);
1883
1905
  e[r] = () => i;
1884
1906
  }
1885
1907
  }), e;
1886
1908
  }
1887
- function $e(t, e) {
1909
+ function qe(t, e) {
1888
1910
  typeof t == "function" ? t(e) : t.current = e;
1889
1911
  }
1890
- function Mn(t, e) {
1912
+ function jn(t, e) {
1891
1913
  const r = t.ref;
1892
1914
  return D(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 ? Me(t, {
1893
1915
  ref: (n) => {
1894
- $e(r, n), $e(e, n);
1916
+ qe(r, n), qe(e, n);
1895
1917
  }
1896
1918
  }) : Me(t, {
1897
1919
  ref: e
1898
1920
  });
1899
1921
  }
1900
- class Rn {
1922
+ class _n {
1901
1923
  receiveHandlerId(e) {
1902
1924
  this.handlerId !== e && (this.handlerId = e, this.reconnect());
1903
1925
  }
@@ -1968,7 +1990,7 @@ class Rn {
1968
1990
  this.dragPreviewNode = null, this.dragPreviewRef = null;
1969
1991
  }
1970
1992
  constructor(e) {
1971
- this.hooks = lt({
1993
+ this.hooks = ft({
1972
1994
  dragSource: (r, n) => {
1973
1995
  this.clearDragSource(), this.dragSourceOptions = n || null, Se(r) ? this.dragSourceRef = r : this.dragSourceNode = r, this.reconnectDragSource();
1974
1996
  },
@@ -1978,7 +2000,7 @@ class Rn {
1978
2000
  }), 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;
1979
2001
  }
1980
2002
  }
1981
- class _n {
2003
+ class Ln {
1982
2004
  get connectTarget() {
1983
2005
  return this.dropTarget;
1984
2006
  }
@@ -2022,7 +2044,7 @@ class _n {
2022
2044
  this.dropTargetRef = null, this.dropTargetNode = null;
2023
2045
  }
2024
2046
  constructor(e) {
2025
- this.hooks = lt({
2047
+ this.hooks = ft({
2026
2048
  dropTarget: (r, n) => {
2027
2049
  this.clearDropTarget(), this.dropTargetOptions = n, Se(r) ? this.dropTargetRef = r : this.dropTargetNode = r, this.reconnect();
2028
2050
  }
@@ -2030,34 +2052,34 @@ class _n {
2030
2052
  }
2031
2053
  }
2032
2054
  function Z() {
2033
- const { dragDropManager: t } = Mt(et);
2055
+ const { dragDropManager: t } = jt(rt);
2034
2056
  return D(t != null, "Expected drag drop context"), t;
2035
2057
  }
2036
- function Ln(t, e) {
2037
- const r = Z(), n = L(
2038
- () => new Rn(r.getBackend()),
2058
+ function Fn(t, e) {
2059
+ const r = Z(), n = R(
2060
+ () => new _n(r.getBackend()),
2039
2061
  [
2040
2062
  r
2041
2063
  ]
2042
2064
  );
2043
- return U(() => (n.dragSourceOptions = t || null, n.reconnect(), () => n.disconnectDragSource()), [
2065
+ return B(() => (n.dragSourceOptions = t || null, n.reconnect(), () => n.disconnectDragSource()), [
2044
2066
  n,
2045
2067
  t
2046
- ]), U(() => (n.dragPreviewOptions = e || null, n.reconnect(), () => n.disconnectDragPreview()), [
2068
+ ]), B(() => (n.dragPreviewOptions = e || null, n.reconnect(), () => n.disconnectDragPreview()), [
2047
2069
  n,
2048
2070
  e
2049
2071
  ]), n;
2050
2072
  }
2051
- function jn() {
2073
+ function Yn() {
2052
2074
  const t = Z();
2053
- return L(
2054
- () => new Cn(t),
2075
+ return R(
2076
+ () => new wn(t),
2055
2077
  [
2056
2078
  t
2057
2079
  ]
2058
2080
  );
2059
2081
  }
2060
- class Fn {
2082
+ class kn {
2061
2083
  beginDrag() {
2062
2084
  const e = this.spec, r = this.monitor;
2063
2085
  let n = null;
@@ -2079,34 +2101,34 @@ class Fn {
2079
2101
  this.spec = e, this.monitor = r, this.connector = n;
2080
2102
  }
2081
2103
  }
2082
- function kn(t, e, r) {
2083
- const n = L(
2084
- () => new Fn(t, e, r),
2104
+ function An(t, e, r) {
2105
+ const n = R(
2106
+ () => new kn(t, e, r),
2085
2107
  [
2086
2108
  e,
2087
2109
  r
2088
2110
  ]
2089
2111
  );
2090
- return j(() => {
2112
+ return _(() => {
2091
2113
  n.spec = t;
2092
2114
  }, [
2093
2115
  t
2094
2116
  ]), n;
2095
2117
  }
2096
- function Yn(t) {
2097
- return L(() => {
2118
+ function Hn(t) {
2119
+ return R(() => {
2098
2120
  const e = t.type;
2099
2121
  return D(e != null, "spec.type must be defined"), e;
2100
2122
  }, [
2101
2123
  t
2102
2124
  ]);
2103
2125
  }
2104
- function An(t, e, r) {
2105
- const n = Z(), i = kn(t, e, r), o = Yn(t);
2106
- U(function() {
2126
+ function Un(t, e, r) {
2127
+ const n = Z(), i = An(t, e, r), o = Hn(t);
2128
+ B(function() {
2107
2129
  if (o != null) {
2108
- const [a, u] = xn(o, i, n);
2109
- return e.receiveHandlerId(a), r.receiveHandlerId(a), u;
2130
+ const [s, l] = Pn(o, i, n);
2131
+ return e.receiveHandlerId(s), r.receiveHandlerId(s), l;
2110
2132
  }
2111
2133
  }, [
2112
2134
  n,
@@ -2116,53 +2138,53 @@ function An(t, e, r) {
2116
2138
  o
2117
2139
  ]);
2118
2140
  }
2119
- function Hn(t, e) {
2120
- const r = ut(t);
2141
+ function Bn(t, e) {
2142
+ const r = dt(t);
2121
2143
  D(!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)");
2122
- const n = jn(), i = Ln(r.options, r.previewOptions);
2123
- return An(r, n, i), [
2124
- ct(r.collect, n, i),
2125
- Tn(i),
2126
- In(i)
2144
+ const n = Yn(), i = Fn(r.options, r.previewOptions);
2145
+ return Un(r, n, i), [
2146
+ lt(r.collect, n, i),
2147
+ Cn(i),
2148
+ En(i)
2127
2149
  ];
2128
2150
  }
2129
- function Bn(t) {
2130
- return L(
2151
+ function Vn(t) {
2152
+ return R(
2131
2153
  () => t.hooks.dropTarget(),
2132
2154
  [
2133
2155
  t
2134
2156
  ]
2135
2157
  );
2136
2158
  }
2137
- function Un(t) {
2138
- const e = Z(), r = L(
2139
- () => new _n(e.getBackend()),
2159
+ function $n(t) {
2160
+ const e = Z(), r = R(
2161
+ () => new Ln(e.getBackend()),
2140
2162
  [
2141
2163
  e
2142
2164
  ]
2143
2165
  );
2144
- return U(() => (r.dropTargetOptions = t || null, r.reconnect(), () => r.disconnectDropTarget()), [
2166
+ return B(() => (r.dropTargetOptions = t || null, r.reconnect(), () => r.disconnectDropTarget()), [
2145
2167
  t
2146
2168
  ]), r;
2147
2169
  }
2148
- function Vn() {
2170
+ function zn() {
2149
2171
  const t = Z();
2150
- return L(
2151
- () => new En(t),
2172
+ return R(
2173
+ () => new xn(t),
2152
2174
  [
2153
2175
  t
2154
2176
  ]
2155
2177
  );
2156
2178
  }
2157
- function $n(t) {
2179
+ function qn(t) {
2158
2180
  const { accept: e } = t;
2159
- return L(() => (D(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
2181
+ return R(() => (D(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
2160
2182
  e
2161
2183
  ]), [
2162
2184
  e
2163
2185
  ]);
2164
2186
  }
2165
- class zn {
2187
+ class Gn {
2166
2188
  canDrop() {
2167
2189
  const e = this.spec, r = this.monitor;
2168
2190
  return e.canDrop ? e.canDrop(r.getItem(), r) : !0;
@@ -2180,51 +2202,51 @@ class zn {
2180
2202
  this.spec = e, this.monitor = r;
2181
2203
  }
2182
2204
  }
2183
- function qn(t, e) {
2184
- const r = L(
2185
- () => new zn(t, e),
2205
+ function Xn(t, e) {
2206
+ const r = R(
2207
+ () => new Gn(t, e),
2186
2208
  [
2187
2209
  e
2188
2210
  ]
2189
2211
  );
2190
- return j(() => {
2212
+ return _(() => {
2191
2213
  r.spec = t;
2192
2214
  }, [
2193
2215
  t
2194
2216
  ]), r;
2195
2217
  }
2196
- function Gn(t, e, r) {
2197
- const n = Z(), i = qn(t, e), o = $n(t);
2198
- U(function() {
2199
- const [a, u] = wn(o, i, n);
2200
- return e.receiveHandlerId(a), r.receiveHandlerId(a), u;
2218
+ function Wn(t, e, r) {
2219
+ const n = Z(), i = Xn(t, e), o = qn(t);
2220
+ B(function() {
2221
+ const [s, l] = Nn(o, i, n);
2222
+ return e.receiveHandlerId(s), r.receiveHandlerId(s), l;
2201
2223
  }, [
2202
2224
  n,
2203
2225
  e,
2204
2226
  i,
2205
2227
  r,
2206
2228
  o.map(
2207
- (s) => s.toString()
2229
+ (a) => a.toString()
2208
2230
  ).join("|")
2209
2231
  ]);
2210
2232
  }
2211
- function Xn(t, e) {
2212
- const r = ut(t), n = Vn(), i = Un(r.options);
2213
- return Gn(r, n, i), [
2214
- ct(r.collect, n, i),
2215
- Bn(i)
2233
+ function Kn(t, e) {
2234
+ const r = dt(t), n = zn(), i = $n(r.options);
2235
+ return Wn(r, n, i), [
2236
+ lt(r.collect, n, i),
2237
+ Vn(i)
2216
2238
  ];
2217
2239
  }
2218
- function dt(t) {
2240
+ function gt(t) {
2219
2241
  let e = null;
2220
2242
  return () => (e == null && (e = t()), e);
2221
2243
  }
2222
- function Wn(t, e) {
2244
+ function Zn(t, e) {
2223
2245
  return t.filter(
2224
2246
  (r) => r !== e
2225
2247
  );
2226
2248
  }
2227
- function Kn(t, e) {
2249
+ function Jn(t, e) {
2228
2250
  const r = /* @__PURE__ */ new Set(), n = (o) => r.add(o);
2229
2251
  t.forEach(n), e.forEach(n);
2230
2252
  const i = [];
@@ -2232,16 +2254,16 @@ function Kn(t, e) {
2232
2254
  (o) => i.push(o)
2233
2255
  ), i;
2234
2256
  }
2235
- class Zn {
2257
+ class Qn {
2236
2258
  enter(e) {
2237
2259
  const r = this.entered.length, n = (i) => this.isNodeInDocument(i) && (!i.contains || i.contains(e));
2238
- return this.entered = Kn(this.entered.filter(n), [
2260
+ return this.entered = Jn(this.entered.filter(n), [
2239
2261
  e
2240
2262
  ]), r === 0 && this.entered.length > 0;
2241
2263
  }
2242
2264
  leave(e) {
2243
2265
  const r = this.entered.length;
2244
- return this.entered = Wn(this.entered.filter(this.isNodeInDocument), e), r > 0 && this.entered.length === 0;
2266
+ return this.entered = Zn(this.entered.filter(this.isNodeInDocument), e), r > 0 && this.entered.length === 0;
2245
2267
  }
2246
2268
  reset() {
2247
2269
  this.entered = [];
@@ -2250,7 +2272,7 @@ class Zn {
2250
2272
  this.entered = [], this.isNodeInDocument = e;
2251
2273
  }
2252
2274
  }
2253
- class Jn {
2275
+ class ei {
2254
2276
  initializeExposedProperties() {
2255
2277
  Object.keys(this.config.exposeProperties).forEach((e) => {
2256
2278
  Object.defineProperty(this.item, e, {
@@ -2290,12 +2312,12 @@ class Jn {
2290
2312
  this.config = e, this.item = {}, this.initializeExposedProperties();
2291
2313
  }
2292
2314
  }
2293
- const ft = "__NATIVE_FILE__", gt = "__NATIVE_URL__", ht = "__NATIVE_TEXT__", pt = "__NATIVE_HTML__", ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2315
+ const ht = "__NATIVE_FILE__", pt = "__NATIVE_URL__", mt = "__NATIVE_TEXT__", vt = "__NATIVE_HTML__", Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2294
2316
  __proto__: null,
2295
- FILE: ft,
2296
- HTML: pt,
2297
- TEXT: ht,
2298
- URL: gt
2317
+ FILE: ht,
2318
+ HTML: vt,
2319
+ TEXT: mt,
2320
+ URL: pt
2299
2321
  }, Symbol.toStringTag, { value: "Module" }));
2300
2322
  function he(t, e, r) {
2301
2323
  const n = e.reduce(
@@ -2305,7 +2327,7 @@ function he(t, e, r) {
2305
2327
  return n ?? r;
2306
2328
  }
2307
2329
  const Oe = {
2308
- [ft]: {
2330
+ [ht]: {
2309
2331
  exposeProperties: {
2310
2332
  files: (t) => Array.prototype.slice.call(t.files),
2311
2333
  items: (t) => t.items,
@@ -2315,7 +2337,7 @@ const Oe = {
2315
2337
  "Files"
2316
2338
  ]
2317
2339
  },
2318
- [pt]: {
2340
+ [vt]: {
2319
2341
  exposeProperties: {
2320
2342
  html: (t, e) => he(t, e, ""),
2321
2343
  dataTransfer: (t) => t
@@ -2325,7 +2347,7 @@ const Oe = {
2325
2347
  "text/html"
2326
2348
  ]
2327
2349
  },
2328
- [gt]: {
2350
+ [pt]: {
2329
2351
  exposeProperties: {
2330
2352
  urls: (t, e) => he(t, e, "").split(`
2331
2353
  `),
@@ -2336,7 +2358,7 @@ const Oe = {
2336
2358
  "text/uri-list"
2337
2359
  ]
2338
2360
  },
2339
- [ht]: {
2361
+ [mt]: {
2340
2362
  exposeProperties: {
2341
2363
  text: (t, e) => he(t, e, ""),
2342
2364
  dataTransfer: (t) => t
@@ -2347,11 +2369,11 @@ const Oe = {
2347
2369
  ]
2348
2370
  }
2349
2371
  };
2350
- function Qn(t, e) {
2372
+ function ti(t, e) {
2351
2373
  const r = Oe[t];
2352
2374
  if (!r)
2353
2375
  throw new Error(`native type ${t} has no configuration`);
2354
- const n = new Jn(r);
2376
+ const n = new ei(r);
2355
2377
  return n.loadDataTransfer(e), n;
2356
2378
  }
2357
2379
  function pe(t) {
@@ -2365,31 +2387,31 @@ function pe(t) {
2365
2387
  ) : !1;
2366
2388
  })[0] || null;
2367
2389
  }
2368
- const ei = dt(
2390
+ const ri = gt(
2369
2391
  () => /firefox/i.test(navigator.userAgent)
2370
- ), mt = dt(
2392
+ ), yt = gt(
2371
2393
  () => !!window.safari
2372
2394
  );
2373
- class qe {
2395
+ class Xe {
2374
2396
  interpolate(e) {
2375
- const { xs: r, ys: n, c1s: i, c2s: o, c3s: s } = this;
2376
- let a = r.length - 1;
2377
- if (e === r[a])
2378
- return n[a];
2379
- let u = 0, f = s.length - 1, l;
2380
- for (; u <= f; ) {
2381
- l = Math.floor(0.5 * (u + f));
2382
- const d = r[l];
2397
+ const { xs: r, ys: n, c1s: i, c2s: o, c3s: a } = this;
2398
+ let s = r.length - 1;
2399
+ if (e === r[s])
2400
+ return n[s];
2401
+ let l = 0, u = a.length - 1, g;
2402
+ for (; l <= u; ) {
2403
+ g = Math.floor(0.5 * (l + u));
2404
+ const d = r[g];
2383
2405
  if (d < e)
2384
- u = l + 1;
2406
+ l = g + 1;
2385
2407
  else if (d > e)
2386
- f = l - 1;
2408
+ u = g - 1;
2387
2409
  else
2388
- return n[l];
2410
+ return n[g];
2389
2411
  }
2390
- a = Math.max(0, f);
2391
- const m = e - r[a], p = m * m;
2392
- return n[a] + i[a] * m + o[a] * p + s[a] * m * p;
2412
+ s = Math.max(0, u);
2413
+ const v = e - r[s], p = v * v;
2414
+ return n[s] + i[s] * v + o[s] * p + a[s] * v * p;
2393
2415
  }
2394
2416
  constructor(e, r) {
2395
2417
  const { length: n } = e, i = [];
@@ -2398,37 +2420,37 @@ class qe {
2398
2420
  i.sort(
2399
2421
  (d, I) => e[d] < e[I] ? -1 : 1
2400
2422
  );
2401
- const o = [], s = [];
2402
- let a, u;
2423
+ const o = [], a = [];
2424
+ let s, l;
2403
2425
  for (let d = 0; d < n - 1; d++)
2404
- a = e[d + 1] - e[d], u = r[d + 1] - r[d], o.push(a), s.push(u / a);
2405
- const f = [
2406
- s[0]
2426
+ s = e[d + 1] - e[d], l = r[d + 1] - r[d], o.push(s), a.push(l / s);
2427
+ const u = [
2428
+ a[0]
2407
2429
  ];
2408
2430
  for (let d = 0; d < o.length - 1; d++) {
2409
- const I = s[d], y = s[d + 1];
2431
+ const I = a[d], y = a[d + 1];
2410
2432
  if (I * y <= 0)
2411
- f.push(0);
2433
+ u.push(0);
2412
2434
  else {
2413
- a = o[d];
2414
- const C = o[d + 1], v = a + C;
2415
- f.push(3 * v / ((v + C) / I + (v + a) / y));
2435
+ s = o[d];
2436
+ const C = o[d + 1], m = s + C;
2437
+ u.push(3 * m / ((m + C) / I + (m + s) / y));
2416
2438
  }
2417
2439
  }
2418
- f.push(s[s.length - 1]);
2419
- const l = [], m = [];
2440
+ u.push(a[a.length - 1]);
2441
+ const g = [], v = [];
2420
2442
  let p;
2421
- for (let d = 0; d < f.length - 1; d++) {
2422
- p = s[d];
2423
- const I = f[d], y = 1 / o[d], C = I + f[d + 1] - p - p;
2424
- l.push((p - I - C) * y), m.push(C * y * y);
2443
+ for (let d = 0; d < u.length - 1; d++) {
2444
+ p = a[d];
2445
+ const I = u[d], y = 1 / o[d], C = I + u[d + 1] - p - p;
2446
+ g.push((p - I - C) * y), v.push(C * y * y);
2425
2447
  }
2426
- this.xs = e, this.ys = r, this.c1s = f, this.c2s = l, this.c3s = m;
2448
+ this.xs = e, this.ys = r, this.c1s = u, this.c2s = g, this.c3s = v;
2427
2449
  }
2428
2450
  }
2429
- const ti = 1;
2430
- function vt(t) {
2431
- const e = t.nodeType === ti ? t : t.parentElement;
2451
+ const ni = 1;
2452
+ function Dt(t) {
2453
+ const e = t.nodeType === ni ? t : t.parentElement;
2432
2454
  if (!e)
2433
2455
  return null;
2434
2456
  const { top: r, left: n } = e.getBoundingClientRect();
@@ -2443,53 +2465,53 @@ function ee(t) {
2443
2465
  y: t.clientY
2444
2466
  };
2445
2467
  }
2446
- function ri(t) {
2468
+ function ii(t) {
2447
2469
  var e;
2448
- return t.nodeName === "IMG" && (ei() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
2470
+ return t.nodeName === "IMG" && (ri() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
2449
2471
  }
2450
- function ni(t, e, r, n) {
2472
+ function oi(t, e, r, n) {
2451
2473
  let i = t ? e.width : r, o = t ? e.height : n;
2452
- return mt() && t && (o /= window.devicePixelRatio, i /= window.devicePixelRatio), {
2474
+ return yt() && t && (o /= window.devicePixelRatio, i /= window.devicePixelRatio), {
2453
2475
  dragPreviewWidth: i,
2454
2476
  dragPreviewHeight: o
2455
2477
  };
2456
2478
  }
2457
- function ii(t, e, r, n, i) {
2458
- const o = ri(e), a = vt(o ? t : e), u = {
2459
- x: r.x - a.x,
2460
- y: r.y - a.y
2461
- }, { offsetWidth: f, offsetHeight: l } = t, { anchorX: m, anchorY: p } = n, { dragPreviewWidth: d, dragPreviewHeight: I } = ni(o, e, f, l), y = () => {
2462
- let S = new qe([
2479
+ function si(t, e, r, n, i) {
2480
+ const o = ii(e), s = Dt(o ? t : e), l = {
2481
+ x: r.x - s.x,
2482
+ y: r.y - s.y
2483
+ }, { offsetWidth: u, offsetHeight: g } = t, { anchorX: v, anchorY: p } = n, { dragPreviewWidth: d, dragPreviewHeight: I } = oi(o, e, u, g), y = () => {
2484
+ let S = new Xe([
2463
2485
  0,
2464
2486
  0.5,
2465
2487
  1
2466
2488
  ], [
2467
2489
  // Dock to the top
2468
- u.y,
2490
+ l.y,
2469
2491
  // Align at the center
2470
- u.y / l * I,
2492
+ l.y / g * I,
2471
2493
  // Dock to the bottom
2472
- u.y + I - l
2494
+ l.y + I - g
2473
2495
  ]).interpolate(p);
2474
- return mt() && o && (S += (window.devicePixelRatio - 1) * I), S;
2475
- }, C = () => new qe([
2496
+ return yt() && o && (S += (window.devicePixelRatio - 1) * I), S;
2497
+ }, C = () => new Xe([
2476
2498
  0,
2477
2499
  0.5,
2478
2500
  1
2479
2501
  ], [
2480
2502
  // Dock to the left
2481
- u.x,
2503
+ l.x,
2482
2504
  // Align at the center
2483
- u.x / f * d,
2505
+ l.x / u * d,
2484
2506
  // Dock to the right
2485
- u.x + d - f
2486
- ]).interpolate(m), { offsetX: v, offsetY: h } = i, T = v === 0 || v, g = h === 0 || h;
2507
+ l.x + d - u
2508
+ ]).interpolate(v), { offsetX: m, offsetY: h } = i, T = m === 0 || m, f = h === 0 || h;
2487
2509
  return {
2488
- x: T ? v : C(),
2489
- y: g ? h : y()
2510
+ x: T ? m : C(),
2511
+ y: f ? h : y()
2490
2512
  };
2491
2513
  }
2492
- class oi {
2514
+ class ai {
2493
2515
  get window() {
2494
2516
  if (this.globalContext)
2495
2517
  return this.globalContext;
@@ -2508,7 +2530,7 @@ class oi {
2508
2530
  this.ownerDocument = null, this.globalContext = e, this.optionsArgs = r;
2509
2531
  }
2510
2532
  }
2511
- function si(t, e, r) {
2533
+ function ci(t, e, r) {
2512
2534
  return e in t ? Object.defineProperty(t, e, {
2513
2535
  value: r,
2514
2536
  enumerable: !0,
@@ -2516,18 +2538,18 @@ function si(t, e, r) {
2516
2538
  writable: !0
2517
2539
  }) : t[e] = r, t;
2518
2540
  }
2519
- function Ge(t) {
2541
+ function We(t) {
2520
2542
  for (var e = 1; e < arguments.length; e++) {
2521
2543
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
2522
2544
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
2523
2545
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
2524
2546
  }))), n.forEach(function(i) {
2525
- si(t, i, r[i]);
2547
+ ci(t, i, r[i]);
2526
2548
  });
2527
2549
  }
2528
2550
  return t;
2529
2551
  }
2530
- class ai {
2552
+ class ui {
2531
2553
  /**
2532
2554
  * Generate profiling statistics for the HTML5Backend.
2533
2555
  */
@@ -2579,13 +2601,13 @@ class ai {
2579
2601
  }
2580
2602
  connectDragSource(e, r, n) {
2581
2603
  this.sourceNodes.set(e, r), this.sourceNodeOptions.set(e, n);
2582
- const i = (s) => this.handleDragStart(s, e), o = (s) => this.handleSelectStart(s);
2604
+ const i = (a) => this.handleDragStart(a, e), o = (a) => this.handleSelectStart(a);
2583
2605
  return r.setAttribute("draggable", "true"), r.addEventListener("dragstart", i), r.addEventListener("selectstart", o), () => {
2584
2606
  this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart", i), r.removeEventListener("selectstart", o), r.setAttribute("draggable", "false");
2585
2607
  };
2586
2608
  }
2587
2609
  connectDropTarget(e, r) {
2588
- const n = (s) => this.handleDragEnter(s, e), i = (s) => this.handleDragOver(s, e), o = (s) => this.handleDrop(s, e);
2610
+ const n = (a) => this.handleDragEnter(a, e), i = (a) => this.handleDragOver(a, e), o = (a) => this.handleDrop(a, e);
2589
2611
  return r.addEventListener("dragenter", n), r.addEventListener("dragover", i), r.addEventListener("drop", o), () => {
2590
2612
  r.removeEventListener("dragenter", n), r.removeEventListener("dragover", i), r.removeEventListener("drop", o);
2591
2613
  };
@@ -2598,7 +2620,7 @@ class ai {
2598
2620
  }
2599
2621
  getCurrentSourceNodeOptions() {
2600
2622
  const e = this.monitor.getSourceId(), r = this.sourceNodeOptions.get(e);
2601
- return Ge({
2623
+ return We({
2602
2624
  dropEffect: this.altKeyPressed ? "copy" : "move"
2603
2625
  }, r || {});
2604
2626
  }
@@ -2607,7 +2629,7 @@ class ai {
2607
2629
  }
2608
2630
  getCurrentSourcePreviewNodeOptions() {
2609
2631
  const e = this.monitor.getSourceId(), r = this.sourcePreviewNodeOptions.get(e);
2610
- return Ge({
2632
+ return We({
2611
2633
  anchorX: 0.5,
2612
2634
  anchorY: 0.5,
2613
2635
  captureDraggingState: !1
@@ -2615,12 +2637,12 @@ class ai {
2615
2637
  }
2616
2638
  isDraggingNativeItem() {
2617
2639
  const e = this.monitor.getItemType();
2618
- return Object.keys(ze).some(
2619
- (r) => ze[r] === e
2640
+ return Object.keys(Ge).some(
2641
+ (r) => Ge[r] === e
2620
2642
  );
2621
2643
  }
2622
2644
  beginDragNativeItem(e, r) {
2623
- this.clearCurrentDragSourceNode(), this.currentNativeSource = Qn(e, r), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([
2645
+ this.clearCurrentDragSourceNode(), this.currentNativeSource = ti(e, r), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([
2624
2646
  this.currentNativeHandle
2625
2647
  ]);
2626
2648
  }
@@ -2657,7 +2679,7 @@ class ai {
2657
2679
  constructor(e, r, n) {
2658
2680
  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) => {
2659
2681
  const o = this.sourceNodes.get(i);
2660
- return o && vt(o) || null;
2682
+ return o && Dt(o) || null;
2661
2683
  }, this.endDragNativeItem = () => {
2662
2684
  this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
2663
2685
  }, this.isNodeInDocument = (i) => !!(i && this.document && this.document.body && this.document.body.contains(i)), this.endDragIfSourceWasRemovedFromDOM = () => {
@@ -2678,41 +2700,41 @@ class ai {
2678
2700
  return;
2679
2701
  const { dragStartSourceIds: o } = this;
2680
2702
  this.dragStartSourceIds = null;
2681
- const s = ee(i);
2703
+ const a = ee(i);
2682
2704
  this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(o || [], {
2683
2705
  publishSource: !1,
2684
2706
  getSourceClientOffset: this.getSourceClientOffset,
2685
- clientOffset: s
2707
+ clientOffset: a
2686
2708
  });
2687
- const { dataTransfer: a } = i, u = pe(a);
2709
+ const { dataTransfer: s } = i, l = pe(s);
2688
2710
  if (this.monitor.isDragging()) {
2689
- if (a && typeof a.setDragImage == "function") {
2690
- const l = this.monitor.getSourceId(), m = this.sourceNodes.get(l), p = this.sourcePreviewNodes.get(l) || m;
2711
+ if (s && typeof s.setDragImage == "function") {
2712
+ const g = this.monitor.getSourceId(), v = this.sourceNodes.get(g), p = this.sourcePreviewNodes.get(g) || v;
2691
2713
  if (p) {
2692
- const { anchorX: d, anchorY: I, offsetX: y, offsetY: C } = this.getCurrentSourcePreviewNodeOptions(), T = ii(m, p, s, {
2714
+ const { anchorX: d, anchorY: I, offsetX: y, offsetY: C } = this.getCurrentSourcePreviewNodeOptions(), T = si(v, p, a, {
2693
2715
  anchorX: d,
2694
2716
  anchorY: I
2695
2717
  }, {
2696
2718
  offsetX: y,
2697
2719
  offsetY: C
2698
2720
  });
2699
- a.setDragImage(p, T.x, T.y);
2721
+ s.setDragImage(p, T.x, T.y);
2700
2722
  }
2701
2723
  }
2702
2724
  try {
2703
- a?.setData("application/json", {});
2725
+ s?.setData("application/json", {});
2704
2726
  } catch {
2705
2727
  }
2706
2728
  this.setCurrentDragSourceNode(i.target);
2707
- const { captureDraggingState: f } = this.getCurrentSourcePreviewNodeOptions();
2708
- f ? this.actions.publishDragSource() : setTimeout(
2729
+ const { captureDraggingState: u } = this.getCurrentSourcePreviewNodeOptions();
2730
+ u ? this.actions.publishDragSource() : setTimeout(
2709
2731
  () => this.actions.publishDragSource(),
2710
2732
  0
2711
2733
  );
2712
- } else if (u)
2713
- this.beginDragNativeItem(u);
2734
+ } else if (l)
2735
+ this.beginDragNativeItem(l);
2714
2736
  else {
2715
- if (a && !a.types && (i.target && !i.target.hasAttribute || !i.target.hasAttribute("draggable")))
2737
+ if (s && !s.types && (i.target && !i.target.hasAttribute || !i.target.hasAttribute("draggable")))
2716
2738
  return;
2717
2739
  i.preventDefault();
2718
2740
  }
@@ -2725,8 +2747,8 @@ class ai {
2725
2747
  }
2726
2748
  if (!this.enterLeaveCounter.enter(i.target) || this.monitor.isDragging())
2727
2749
  return;
2728
- const { dataTransfer: a } = i, u = pe(a);
2729
- u && this.beginDragNativeItem(u, a);
2750
+ const { dataTransfer: s } = i, l = pe(s);
2751
+ l && this.beginDragNativeItem(l, s);
2730
2752
  }, this.handleTopDragEnter = (i) => {
2731
2753
  const { dragEnterTargetIds: o } = this;
2732
2754
  if (this.dragEnterTargetIds = [], !this.monitor.isDragging())
@@ -2734,7 +2756,7 @@ class ai {
2734
2756
  this.altKeyPressed = i.altKey, o.length > 0 && this.actions.hover(o, {
2735
2757
  clientOffset: ee(i)
2736
2758
  }), o.some(
2737
- (a) => this.monitor.canDropOnTarget(a)
2759
+ (s) => this.monitor.canDropOnTarget(s)
2738
2760
  ) && (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect()));
2739
2761
  }, this.handleTopDragOverCapture = (i) => {
2740
2762
  if (this.dragOverTargetIds = [], this.isDraggingNativeItem()) {
@@ -2748,7 +2770,7 @@ class ai {
2748
2770
  return;
2749
2771
  }
2750
2772
  this.altKeyPressed = i.altKey, this.lastClientOffset = ee(i), this.scheduleHover(o), (o || []).some(
2751
- (a) => this.monitor.canDropOnTarget(a)
2773
+ (s) => this.monitor.canDropOnTarget(s)
2752
2774
  ) ? (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect())) : this.isDraggingNativeItem() ? i.preventDefault() : (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none"));
2753
2775
  }, this.handleTopDragLeaveCapture = (i) => {
2754
2776
  this.isDraggingNativeItem() && i.preventDefault(), this.enterLeaveCounter.leave(i.target) && (this.isDraggingNativeItem() && setTimeout(
@@ -2771,12 +2793,12 @@ class ai {
2771
2793
  }, this.handleSelectStart = (i) => {
2772
2794
  const o = i.target;
2773
2795
  typeof o.dragDrop == "function" && (o.tagName === "INPUT" || o.tagName === "SELECT" || o.tagName === "TEXTAREA" || o.isContentEditable || (i.preventDefault(), o.dragDrop()));
2774
- }, this.options = new oi(r, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new Zn(this.isNodeInDocument);
2796
+ }, this.options = new ai(r, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new Qn(this.isNodeInDocument);
2775
2797
  }
2776
2798
  }
2777
- const ci = function(e, r, n) {
2778
- return new ai(e, r, n);
2779
- }, ui = [
2799
+ const li = function(e, r, n) {
2800
+ return new ui(e, r, n);
2801
+ }, di = [
2780
2802
  ".pdf",
2781
2803
  ".xlsx",
2782
2804
  ".xls",
@@ -2794,69 +2816,69 @@ const ci = function(e, r, n) {
2794
2816
  ".gif",
2795
2817
  // 압축
2796
2818
  ".zip"
2797
- ], Xe = {
2819
+ ], Ke = {
2798
2820
  FILE: "file"
2799
- }, li = ({
2821
+ }, fi = ({
2800
2822
  originNode: t,
2801
2823
  file: e,
2802
2824
  fileList: r,
2803
2825
  moveFile: n,
2804
2826
  onDrop: i
2805
2827
  }) => {
2806
- const o = B(null), [{ handlerId: s }, a] = Xn({
2807
- accept: Xe.FILE,
2808
- collect: (m) => ({
2809
- handlerId: m.getHandlerId()
2828
+ const o = U(null), [{ handlerId: a }, s] = Kn({
2829
+ accept: Ke.FILE,
2830
+ collect: (v) => ({
2831
+ handlerId: v.getHandlerId()
2810
2832
  }),
2811
- hover(m, p) {
2833
+ hover(v, p) {
2812
2834
  if (!o.current)
2813
2835
  return;
2814
- const d = m.uid, I = e.uid;
2836
+ const d = v.uid, I = e.uid;
2815
2837
  if (d === I)
2816
2838
  return;
2817
2839
  const y = J(r, { uid: I }), C = J(r, { uid: d });
2818
2840
  if (C === -1 || y === -1)
2819
2841
  return;
2820
- const v = o.current.getBoundingClientRect(), h = p.getClientOffset();
2842
+ const m = o.current.getBoundingClientRect(), h = p.getClientOffset();
2821
2843
  if (!h)
2822
2844
  return;
2823
- const T = (v.bottom - v.top) / 2, g = h.y - v.top;
2824
- C < y && g < T || C > y && g > T || n(d, I);
2845
+ const T = (m.bottom - m.top) / 2, f = h.y - m.top;
2846
+ C < y && f < T || C > y && f > T || n(d, I);
2825
2847
  },
2826
2848
  drop() {
2827
2849
  i();
2828
2850
  }
2829
- }), [{ isDragging: u }, f] = Hn({
2830
- type: Xe.FILE,
2851
+ }), [{ isDragging: l }, u] = Bn({
2852
+ type: Ke.FILE,
2831
2853
  item: () => ({
2832
2854
  uid: e.uid,
2833
2855
  index: J(r, { uid: e.uid })
2834
2856
  }),
2835
- collect: (m) => ({
2836
- isDragging: m.isDragging()
2857
+ collect: (v) => ({
2858
+ isDragging: v.isDragging()
2837
2859
  })
2838
- }), l = u ? 0 : 1;
2839
- return f(a(o)), /* @__PURE__ */ c.jsx("div", { ref: o, style: { opacity: l }, "data-handler-id": s, children: t });
2840
- }, Ai = ({
2860
+ }), g = l ? 0 : 1;
2861
+ return u(s(o)), /* @__PURE__ */ c.jsx("div", { ref: o, style: { opacity: g }, "data-handler-id": a, children: t });
2862
+ }, Ui = ({
2841
2863
  fileGrpKey: t,
2842
2864
  onUploadComplete: e,
2843
2865
  onFetchFilesTrxCd: r = "SCMFILE00101",
2844
2866
  onSuccessTrxCd: n = "SCMFILE00102",
2845
2867
  onDeleteFileTrxCd: i = "SCMFILE00103",
2846
2868
  onReorderFilesTrxCd: o = "SCMFILE00104",
2847
- allowedExtensions: s = ui,
2848
- maxFileSize: a = 200,
2849
- showButton: u = !0,
2869
+ allowedExtensions: a = di,
2870
+ maxFileSize: s = 200,
2871
+ showButton: l = !0,
2850
2872
  // 기본값으로 true 설정
2851
- multiple: f = !1
2873
+ multiple: u = !1
2852
2874
  }) => {
2853
- const [l, m] = Y([]), p = B(t), d = B([]), y = B(
2854
- Ht(() => {
2875
+ const [g, v] = Y([]), p = U(t), d = U([]), y = U(
2876
+ Bt(() => {
2855
2877
  if (d.current.length === 0)
2856
2878
  return;
2857
- const g = [...d.current];
2879
+ const f = [...d.current];
2858
2880
  if (d.current = [], n) {
2859
- const b = g.map((S) => ({
2881
+ const b = f.map((S) => ({
2860
2882
  crprCd: G()?.crprCd,
2861
2883
  sysCd: __SYS_CD__,
2862
2884
  fileGrpKey: p.current,
@@ -2878,14 +2900,14 @@ const ci = function(e, r, n) {
2878
2900
  p.current || (p.current = O);
2879
2901
  const x = /* @__PURE__ */ new Map();
2880
2902
  S.sub.forEach((E) => {
2881
- const N = g.find(
2903
+ const N = f.find(
2882
2904
  (P) => P.fileNameL === E.lgclFileNm
2883
2905
  );
2884
2906
  N && x.set(N.tempId, E);
2885
- }), m((E) => E.map((P) => {
2907
+ }), v((E) => E.map((P) => {
2886
2908
  const w = x.get(P.uid);
2887
2909
  if (w) {
2888
- const V = g.find(
2910
+ const V = f.find(
2889
2911
  ($) => $.tempId === P.uid
2890
2912
  );
2891
2913
  return e && V && e({
@@ -2907,8 +2929,8 @@ const ci = function(e, r, n) {
2907
2929
  }
2908
2930
  }).catch((S) => {
2909
2931
  console.error("업로드 후처리 서비스 호출 실패:", S), M.error("파일 후처리 중 오류가 발생했습니다.");
2910
- const O = new Set(g.map((x) => x.tempId));
2911
- m(
2932
+ const O = new Set(f.map((x) => x.tempId));
2933
+ v(
2912
2934
  (x) => x.map(
2913
2935
  (E) => O.has(E.uid) ? { ...E, status: "error", error: "후처리 실패" } : E
2914
2936
  )
@@ -2917,42 +2939,42 @@ const ci = function(e, r, n) {
2917
2939
  }
2918
2940
  }, 500)
2919
2941
  ).current;
2920
- j(() => () => {
2942
+ _(() => () => {
2921
2943
  y.cancel();
2922
- }, [y]), j(() => {
2944
+ }, [y]), _(() => {
2923
2945
  p.current = t;
2924
- }, [t]), j(() => {
2946
+ }, [t]), _(() => {
2925
2947
  t && r && X(r, {
2926
2948
  crprCd: G()?.crprCd,
2927
2949
  sysCd: __SYS_CD__,
2928
2950
  fileGrpKey: t
2929
- }).then((g) => {
2930
- if (g?.sub) {
2931
- const b = g.sub.map((S) => ({
2951
+ }).then((f) => {
2952
+ if (f?.sub) {
2953
+ const b = f.sub.map((S) => ({
2932
2954
  uid: S.fileKey,
2933
2955
  name: S.lgclFileNm,
2934
2956
  status: "done",
2935
2957
  url: `/api/download?filePath=${S.filePath}&logicalName=${S.lgclFileNm}`
2936
2958
  }));
2937
- m(b);
2959
+ v(b);
2938
2960
  }
2939
- }).catch((g) => {
2940
- console.error("파일 목록 조회 서비스 호출에 실패했습니다.", g), M.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
2961
+ }).catch((f) => {
2962
+ console.error("파일 목록 조회 서비스 호출에 실패했습니다.", f), M.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
2941
2963
  });
2942
2964
  }, [t, r]);
2943
- const C = (g, b) => {
2944
- const S = J(l, { uid: g }), O = J(l, { uid: b });
2965
+ const C = (f, b) => {
2966
+ const S = J(g, { uid: f }), O = J(g, { uid: b });
2945
2967
  if (S < 0 || O < 0) return;
2946
- const x = [...l], [E] = x.splice(S, 1);
2947
- x.splice(O, 0, E), m(x);
2948
- }, v = () => {
2968
+ const x = [...g], [E] = x.splice(S, 1);
2969
+ x.splice(O, 0, E), v(x);
2970
+ }, m = () => {
2949
2971
  if (t && o) {
2950
- const g = l.map((b) => b.uid);
2972
+ const f = g.map((b) => b.uid);
2951
2973
  X(o, {
2952
2974
  crprCd: G()?.crprCd,
2953
2975
  sysCd: __SYS_CD__,
2954
2976
  fileGrpKey: t,
2955
- reorderedFileKeys: g
2977
+ reorderedFileKeys: f
2956
2978
  }).then(() => {
2957
2979
  M.success("파일 순서가 성공적으로 저장되었습니다.");
2958
2980
  }).catch((b) => {
@@ -2961,25 +2983,29 @@ const ci = function(e, r, n) {
2961
2983
  }
2962
2984
  }, T = {
2963
2985
  name: "file",
2964
- multiple: f,
2986
+ multiple: u,
2965
2987
  action: "/api/upload",
2966
- fileList: l,
2967
- beforeUpload: (g) => {
2968
- if (!f && l.length > 0)
2988
+ fileList: g,
2989
+ beforeUpload: (f) => {
2990
+ if (!u && g.length > 0)
2969
2991
  return M.error("하나의 파일만 업로드할 수 있습니다."), H.LIST_IGNORE;
2970
- if (s && s.length > 0) {
2971
- const b = `.${g.name.split(".").pop()?.toLowerCase()}`;
2972
- if (!s.includes(b))
2992
+ if (a && a.length > 0) {
2993
+ const b = `.${f.name.split(".").pop()?.toLowerCase()}`;
2994
+ if (!a.includes(b))
2973
2995
  return M.error(
2974
- `${g.name} 파일은 허용되지 않는 확장자입니다. (${s.join(
2996
+ `${f.name} 파일은 허용되지 않는 확장자입니다. (${a.join(
2975
2997
  ", "
2976
2998
  )})`
2977
2999
  ), H.LIST_IGNORE;
2978
3000
  }
2979
- return a && !(g.size / 1024 / 1024 < a) ? (M.error(`일반업로드의 최대용량은 ${a}MB입니다.`), H.LIST_IGNORE) : !0;
3001
+ return s && !(f.size / 1024 / 1024 < s) ? (M.error(`일반업로드의 최대용량은 ${s}MB입니다.`), H.LIST_IGNORE) : !0;
3002
+ },
3003
+ showUploadList: {
3004
+ showRemoveIcon: l
3005
+ // showButton 값에 따라 삭제 버튼 표시/숨김
2980
3006
  },
2981
- onChange(g) {
2982
- const { status: b, uid: S } = g.file;
3007
+ onChange(f) {
3008
+ const { status: b, uid: S } = f.file;
2983
3009
  if (b === "removed") {
2984
3010
  i ? X(i, {
2985
3011
  crprCd: G()?.crprCd,
@@ -2987,48 +3013,48 @@ const ci = function(e, r, n) {
2987
3013
  fileGrpKey: p.current,
2988
3014
  fileKey: S
2989
3015
  }).then(() => {
2990
- M.success("파일이 성공적으로 삭제되었습니다."), m(g.fileList);
3016
+ M.success("파일이 성공적으로 삭제되었습니다."), v(f.fileList);
2991
3017
  }).catch((O) => {
2992
3018
  console.error("파일 삭제 서비스 호출에 실패했습니다.", O), M.error("파일 삭제 중 오류가 발생했습니다.");
2993
- }) : m(g.fileList);
3019
+ }) : v(f.fileList);
2994
3020
  return;
2995
3021
  }
2996
- if (m(g.fileList), b === "done")
2997
- if (g.file.response?.success) {
2998
- const { uploadedFiles: O } = g.file.response;
3022
+ if (v(f.fileList), b === "done")
3023
+ if (f.file.response?.success) {
3024
+ const { uploadedFiles: O } = f.file.response;
2999
3025
  O && Array.isArray(O) && O.length > 0 && (O.forEach((x) => {
3000
- x.tempId = g.file.uid, d.current.push(x);
3026
+ x.tempId = f.file.uid, d.current.push(x);
3001
3027
  }), y()), M.success(
3002
- g.file.response.message || `${g.file.name} 파일이 성공적으로 업로드되었습니다.`
3028
+ f.file.response.message || `${f.file.name} 파일이 성공적으로 업로드되었습니다.`
3003
3029
  );
3004
3030
  } else
3005
3031
  M.error(
3006
- g.file.response?.message || `${g.file.name} 파일 업로드에 실패했습니다.`
3032
+ f.file.response?.message || `${f.file.name} 파일 업로드에 실패했습니다.`
3007
3033
  );
3008
3034
  else b === "error" && M.error(
3009
- g.file.response?.message || `${g.file.name} 파일 업로드 중 오류가 발생했습니다.`
3035
+ f.file.response?.message || `${f.file.name} 파일 업로드 중 오류가 발생했습니다.`
3010
3036
  );
3011
3037
  },
3012
- itemRender(g, b, S) {
3013
- const O = Ze.cloneElement(g, {
3038
+ itemRender(f, b, S) {
3039
+ const O = Qe.cloneElement(f, {
3014
3040
  href: b.url || void 0,
3015
3041
  title: void 0
3016
3042
  });
3017
3043
  return /* @__PURE__ */ c.jsx(
3018
- li,
3044
+ fi,
3019
3045
  {
3020
3046
  originNode: O,
3021
3047
  file: b,
3022
3048
  fileList: S,
3023
3049
  moveFile: C,
3024
- onDrop: v
3050
+ onDrop: m
3025
3051
  },
3026
3052
  b.uid
3027
3053
  );
3028
3054
  }
3029
3055
  };
3030
- return /* @__PURE__ */ c.jsx(pn, { backend: ci, children: /* @__PURE__ */ c.jsx(H, { ...T, listType: "picture", children: u && (f || l.length === 0) && /* @__PURE__ */ c.jsx(W, { icon: /* @__PURE__ */ c.jsx(Je, {}), children: "파일 선택" }) }) });
3031
- }, { Text: te, Link: Hi } = Ke, { Dragger: di } = H, fi = [
3056
+ return /* @__PURE__ */ c.jsx(vn, { backend: li, children: /* @__PURE__ */ c.jsx(H, { ...T, listType: "picture", children: l && (u || g.length === 0) && /* @__PURE__ */ c.jsx(W, { icon: /* @__PURE__ */ c.jsx(et, {}), children: "파일 선택" }) }) });
3057
+ }, { Text: te, Link: Bi } = Je, { Dragger: gi } = H, hi = [
3032
3058
  ".pdf",
3033
3059
  ".xlsx",
3034
3060
  ".xls",
@@ -3046,28 +3072,28 @@ const ci = function(e, r, n) {
3046
3072
  ".gif",
3047
3073
  // 압축
3048
3074
  ".zip"
3049
- ], gi = (t, e = 2) => {
3075
+ ], pi = (t, e = 2) => {
3050
3076
  if (t === 0) return "0 Bytes";
3051
3077
  const r = 1024, n = e < 0 ? 0 : e, i = ["Bytes", "KB", "MB", "GB", "TB"], o = Math.floor(Math.log(t) / Math.log(r));
3052
3078
  return parseFloat((t / Math.pow(r, o)).toFixed(n)) + " " + i[o];
3053
- }, Bi = ({
3079
+ }, Vi = ({
3054
3080
  title: t = "첨부파일",
3055
3081
  fileGrpKey: e,
3056
3082
  onUploadComplete: r,
3057
3083
  onSuccessTrxCd: n = "SCMFILE00102",
3058
3084
  // BwgUploader와 동일한 기본 trxCd 설정
3059
3085
  anotherServiceTrxCd: i = "SCMFILE00105",
3060
- allowedExtensions: o = fi,
3061
- maxFileSize: s = 2048
3086
+ allowedExtensions: o = hi,
3087
+ maxFileSize: a = 2048
3062
3088
  // 기본값 2GB
3063
3089
  }) => {
3064
- const [a, u] = Y([]), [f, l] = Y(!1), [m, p] = Y(!1), [d, I] = Y(0), y = (h) => {
3090
+ const [s, l] = Y([]), [u, g] = Y(!1), [v, p] = Y(!1), [d, I] = Y(0), y = (h) => {
3065
3091
  if (o && o.length > 0) {
3066
- const g = ((b) => {
3092
+ const f = ((b) => {
3067
3093
  const S = b.lastIndexOf(".");
3068
3094
  return S === -1 ? "" : b.substring(S).toLowerCase();
3069
3095
  })(h.name);
3070
- if (!o.includes(g))
3096
+ if (!o.includes(f))
3071
3097
  return M.error(
3072
3098
  `${h.name} 파일은 허용되지 않는 확장자입니다. (${o.join(
3073
3099
  ", "
@@ -3076,12 +3102,12 @@ const ci = function(e, r, n) {
3076
3102
  }
3077
3103
  return !0;
3078
3104
  }, C = async () => {
3079
- const h = a.filter((O) => O.status !== "done"), T = h.reduce(
3105
+ const h = s.filter((O) => O.status !== "done"), T = h.reduce(
3080
3106
  (O, x) => O + (x.size || 0),
3081
3107
  0
3082
- ), g = 2 * 1024 * 1024 * 1024;
3083
- if (T > g) {
3084
- It.error({
3108
+ ), f = 2 * 1024 * 1024 * 1024;
3109
+ if (T > f) {
3110
+ Et.error({
3085
3111
  message: "업로드 용량 초과",
3086
3112
  description: "한 번에 업로드할 수 있는 총 파일 용량은 2GB를 초과할 수 없습니다."
3087
3113
  });
@@ -3096,7 +3122,7 @@ const ci = function(e, r, n) {
3096
3122
  p(!0);
3097
3123
  let b;
3098
3124
  try {
3099
- const O = new Ut();
3125
+ const O = new $t();
3100
3126
  h.forEach((x) => {
3101
3127
  x.originFileObj && O.file(x.name, x.originFileObj);
3102
3128
  }), b = await O.generateAsync({
@@ -3113,7 +3139,7 @@ const ci = function(e, r, n) {
3113
3139
  }
3114
3140
  p(!1);
3115
3141
  const S = new FormData();
3116
- S.append("file", b, "upload.zip"), l(!0), I(0);
3142
+ S.append("file", b, "upload.zip"), g(!0), I(0);
3117
3143
  try {
3118
3144
  const O = await new Promise((E, N) => {
3119
3145
  const P = new XMLHttpRequest();
@@ -3148,10 +3174,10 @@ const ci = function(e, r, n) {
3148
3174
  M.success(
3149
3175
  O.message || "압축 파일이 성공적으로 업로드되었습니다."
3150
3176
  );
3151
- const x = a.map(
3177
+ const x = s.map(
3152
3178
  (E) => h.find((N) => N.uid === E.uid) ? { ...E, status: "done" } : E
3153
3179
  );
3154
- if (u(x), n && O.uploadedFiles && Array.isArray(O.uploadedFiles)) {
3180
+ if (l(x), n && O.uploadedFiles && Array.isArray(O.uploadedFiles)) {
3155
3181
  const E = G();
3156
3182
  O.uploadedFiles.forEach((N) => {
3157
3183
  const P = {
@@ -3173,7 +3199,7 @@ const ci = function(e, r, n) {
3173
3199
  ]
3174
3200
  };
3175
3201
  X(n, P).then((w) => {
3176
- const V = a.map(($) => ({
3202
+ const V = s.map(($) => ({
3177
3203
  crprCd: E.crprCd,
3178
3204
  sysCd: __SYS_CD__,
3179
3205
  fileGrpKey: w.sub[0].fileGrpKey,
@@ -3199,97 +3225,97 @@ const ci = function(e, r, n) {
3199
3225
  }
3200
3226
  } catch (O) {
3201
3227
  M.error(O.message || "파일 업로드 중 오류가 발생했습니다.");
3202
- const x = a.map(
3228
+ const x = s.map(
3203
3229
  (E) => h.find((N) => N.uid === E.uid) ? {
3204
3230
  ...E,
3205
3231
  status: "error",
3206
3232
  response: O.message || "파일 업로드 중 오류가 발생했습니다."
3207
3233
  } : E
3208
3234
  );
3209
- u(x);
3235
+ l(x);
3210
3236
  } finally {
3211
- l(!1);
3237
+ g(!1);
3212
3238
  }
3213
- }, v = {
3239
+ }, m = {
3214
3240
  multiple: !0,
3215
- fileList: a,
3216
- beforeUpload: (h) => y(h) ? s && h.size >= s * 1024 * 1024 ? (M.error(
3217
- `대용량 첨부 파일 최대 크기는 ${(s / 1024).toFixed(
3241
+ fileList: s,
3242
+ beforeUpload: (h) => y(h) ? a && h.size >= a * 1024 * 1024 ? (M.error(
3243
+ `대용량 첨부 파일 최대 크기는 ${(a / 1024).toFixed(
3218
3244
  1
3219
3245
  )}GB입니다.`
3220
3246
  ), H.LIST_IGNORE) : !1 : H.LIST_IGNORE,
3221
3247
  onChange: ({ fileList: h }) => {
3222
- const T = new Map(a.map((g) => [g.uid, g]));
3223
- h.forEach((g) => {
3224
- T.set(g.uid, g);
3225
- }), u(Array.from(T.values()));
3248
+ const T = new Map(s.map((f) => [f.uid, f]));
3249
+ h.forEach((f) => {
3250
+ T.set(f.uid, f);
3251
+ }), l(Array.from(T.values()));
3226
3252
  },
3227
3253
  onRemove: (h) => {
3228
- const T = a.filter((g) => g.uid !== h.uid);
3229
- u(T);
3254
+ const T = s.filter((f) => f.uid !== h.uid);
3255
+ l(T);
3230
3256
  },
3231
3257
  showUploadList: !1
3232
3258
  // 수동으로 목록을 렌더링하므로 antd의 기본 목록은 숨깁니다.
3233
3259
  };
3234
3260
  return /* @__PURE__ */ c.jsx(
3235
- St,
3261
+ bt,
3236
3262
  {
3237
- spinning: f || m,
3238
- tip: m ? "파일 압축 중..." : `파일 업로드 중... ${d}%`,
3263
+ spinning: u || v,
3264
+ tip: v ? "파일 압축 중..." : `파일 업로드 중... ${d}%`,
3239
3265
  children: /* @__PURE__ */ c.jsxs("div", { className: "bwg-large-uploader-container", children: [
3240
3266
  /* @__PURE__ */ c.jsx(
3241
- Ot,
3267
+ Tt,
3242
3268
  {
3243
3269
  title: /* @__PURE__ */ c.jsx(te, { strong: !0, children: t }),
3244
- extra: /* @__PURE__ */ c.jsx(H, { ...v, children: /* @__PURE__ */ c.jsx(W, { icon: /* @__PURE__ */ c.jsx(Je, {}), children: "파일 선택" }) }),
3270
+ extra: /* @__PURE__ */ c.jsx(H, { ...m, children: /* @__PURE__ */ c.jsx(W, { icon: /* @__PURE__ */ c.jsx(et, {}), children: "파일 선택" }) }),
3245
3271
  bodyStyle: { padding: 0 },
3246
3272
  children: /* @__PURE__ */ c.jsx(
3247
- di,
3273
+ gi,
3248
3274
  {
3249
- ...v,
3275
+ ...m,
3250
3276
  style: {
3251
3277
  border: "none",
3252
3278
  background: "transparent",
3253
3279
  padding: 0
3254
3280
  },
3255
- children: /* @__PURE__ */ c.jsx("div", { className: "upload-list-container", children: a.length > 0 ? /* @__PURE__ */ c.jsx(
3281
+ children: /* @__PURE__ */ c.jsx("div", { className: "upload-list-container", children: s.length > 0 ? /* @__PURE__ */ c.jsx(
3256
3282
  ue,
3257
3283
  {
3258
3284
  style: { textAlign: "left" },
3259
- dataSource: a,
3285
+ dataSource: s,
3260
3286
  renderItem: (h) => {
3261
- const T = h.status === "done", g = h.status === "error";
3287
+ const T = h.status === "done", f = h.status === "error";
3262
3288
  let b;
3263
3289
  return T ? b = /* @__PURE__ */ c.jsx(
3264
- Yt,
3290
+ Ht,
3265
3291
  {
3266
3292
  style: { color: "#52c41a", fontSize: 14 }
3267
3293
  }
3268
- ) : g ? b = /* @__PURE__ */ c.jsx(
3269
- bt,
3294
+ ) : f ? b = /* @__PURE__ */ c.jsx(
3295
+ It,
3270
3296
  {
3271
3297
  title: typeof h.response == "string" ? h.response : "업로드 실패",
3272
3298
  children: /* @__PURE__ */ c.jsx(
3273
- Lt,
3299
+ Ft,
3274
3300
  {
3275
3301
  style: { color: "#ff4d4f", fontSize: 14 }
3276
3302
  }
3277
3303
  )
3278
3304
  }
3279
- ) : b = /* @__PURE__ */ c.jsx(At, { style: { fontSize: 14 } }), /* @__PURE__ */ c.jsx(
3305
+ ) : b = /* @__PURE__ */ c.jsx(Ut, { style: { fontSize: 14 } }), /* @__PURE__ */ c.jsx(
3280
3306
  ue.Item,
3281
3307
  {
3282
3308
  actions: [
3283
- /* @__PURE__ */ c.jsx(te, { type: "secondary", children: gi(h.size || 0) }, "size"),
3309
+ /* @__PURE__ */ c.jsx(te, { type: "secondary", children: pi(h.size || 0) }, "size"),
3284
3310
  /* @__PURE__ */ c.jsx(
3285
3311
  W,
3286
3312
  {
3287
3313
  type: "text",
3288
- icon: /* @__PURE__ */ c.jsx(jt, {}),
3314
+ icon: /* @__PURE__ */ c.jsx(Yt, {}),
3289
3315
  onClick: (S) => {
3290
- S.stopPropagation(), v.onRemove?.(h);
3316
+ S.stopPropagation(), m.onRemove?.(h);
3291
3317
  },
3292
- disabled: f || m
3318
+ disabled: u || v
3293
3319
  },
3294
3320
  "delete"
3295
3321
  )
@@ -3298,7 +3324,7 @@ const ci = function(e, r, n) {
3298
3324
  ue.Item.Meta,
3299
3325
  {
3300
3326
  avatar: b,
3301
- title: /* @__PURE__ */ c.jsx(te, { type: g ? "danger" : void 0, children: h.name })
3327
+ title: /* @__PURE__ */ c.jsx(te, { type: f ? "danger" : void 0, children: h.name })
3302
3328
  }
3303
3329
  )
3304
3330
  },
@@ -3315,7 +3341,7 @@ const ci = function(e, r, n) {
3315
3341
  vertical: !0,
3316
3342
  style: { padding: "20px 0", minHeight: "120px" },
3317
3343
  children: [
3318
- /* @__PURE__ */ c.jsx(Ft, { style: { fontSize: "32px", color: "#999" } }),
3344
+ /* @__PURE__ */ c.jsx(kt, { style: { fontSize: "32px", color: "#999" } }),
3319
3345
  /* @__PURE__ */ c.jsx(te, { type: "secondary", children: "업로드할 파일을 선택하거나 이 영역으로 드래그하세요." })
3320
3346
  ]
3321
3347
  }
@@ -3324,7 +3350,7 @@ const ci = function(e, r, n) {
3324
3350
  )
3325
3351
  }
3326
3352
  ),
3327
- a.length > 0 && /* @__PURE__ */ c.jsxs(
3353
+ s.length > 0 && /* @__PURE__ */ c.jsxs(
3328
3354
  Pe,
3329
3355
  {
3330
3356
  justify: "flex-end",
@@ -3332,14 +3358,14 @@ const ci = function(e, r, n) {
3332
3358
  gap: "large",
3333
3359
  style: { marginTop: 16 },
3334
3360
  children: [
3335
- f && /* @__PURE__ */ c.jsx("div", { style: { width: "250px" }, children: /* @__PURE__ */ c.jsx(Tt, { percent: d, size: "small" }) }),
3361
+ u && /* @__PURE__ */ c.jsx("div", { style: { width: "250px" }, children: /* @__PURE__ */ c.jsx(Ct, { percent: d, size: "small" }) }),
3336
3362
  /* @__PURE__ */ c.jsx(
3337
3363
  W,
3338
3364
  {
3339
3365
  type: "primary",
3340
3366
  onClick: C,
3341
- disabled: f || m || a.filter((h) => h.status !== "done").length === 0,
3342
- icon: /* @__PURE__ */ c.jsx(kt, {}),
3367
+ disabled: u || v || s.filter((h) => h.status !== "done").length === 0,
3368
+ icon: /* @__PURE__ */ c.jsx(At, {}),
3343
3369
  children: "일괄 업로드"
3344
3370
  }
3345
3371
  )
@@ -3351,23 +3377,23 @@ const ci = function(e, r, n) {
3351
3377
  );
3352
3378
  };
3353
3379
  export {
3354
- R as B,
3355
- Vt as a,
3356
- Ci as b,
3357
- Ei as c,
3358
- wi as d,
3359
- xi as e,
3360
- Ni as f,
3361
- Pi as g,
3362
- Mi as h,
3363
- Ri as i,
3364
- _i as j,
3365
- Li as k,
3366
- ji as l,
3367
- Fi as m,
3368
- ki as n,
3369
- Yi as o,
3370
- Ai as p,
3371
- Bi as q
3380
+ j as B,
3381
+ zt as a,
3382
+ wi as b,
3383
+ xi as c,
3384
+ Ni as d,
3385
+ Pi as e,
3386
+ Mi as f,
3387
+ Ri as g,
3388
+ ji as h,
3389
+ _i as i,
3390
+ Li as j,
3391
+ Fi as k,
3392
+ Yi as l,
3393
+ ki as m,
3394
+ Ai as n,
3395
+ Hi as o,
3396
+ Ui as p,
3397
+ Vi as q
3372
3398
  };
3373
- //# sourceMappingURL=BwgLargeUploader-B5EtYKUz.js.map
3399
+ //# sourceMappingURL=BwgLargeUploader-Nx2-wiD8.js.map