@ck-ui/component-library 0.3.0 → 1.0.1

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 (149) hide show
  1. package/dist/DropdownFooter-Dm6aLDx8.js +89 -0
  2. package/dist/IconSlot-CPQsGPB-.js +33 -0
  3. package/dist/{OptionList-BNaH2PnX.js → OptionList-DN1xZbnV.js} +29 -29
  4. package/dist/assets/DropdownFooter-DjdPf69A.css +1 -0
  5. package/dist/assets/IconSlot-D8WWEHKb.css +1 -0
  6. package/dist/assets/index-B81zpOpq.css +1 -0
  7. package/dist/assets/index-BXwGxK7I.css +1 -0
  8. package/dist/assets/index-BZgvXFWW.css +1 -0
  9. package/dist/assets/index-BoQKDmZt.css +1 -0
  10. package/dist/assets/index-Cdmws__2.css +1 -0
  11. package/dist/assets/index-CtR-jzNi.css +1 -0
  12. package/dist/assets/index-PKpDB4Cl.css +1 -0
  13. package/dist/assets/index-UphWJR2V.css +1 -0
  14. package/dist/assets/index-i-aBFBOq.css +1 -0
  15. package/dist/assets/styles-Bj-7zn37.css +1 -0
  16. package/dist/assets/styles-CZCmGNUn.css +1 -0
  17. package/dist/assets/styles-DLJzdWsF.css +1 -0
  18. package/dist/assets/{styles-CbbBUzsN.css → styles-DngCqCGW.css} +1 -1
  19. package/dist/assets/styles-O-5pBCak.css +1 -0
  20. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  21. package/dist/components/Breadcrumb/index.js +53 -47
  22. package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
  23. package/dist/components/CKButton/_helper/IconSlot.js +1 -1
  24. package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
  25. package/dist/components/CKButton/index.js +1 -1
  26. package/dist/components/CKCheckbox/index.d.ts.map +1 -1
  27. package/dist/components/CKCheckbox/index.js +22 -21
  28. package/dist/components/CardBox/index.js +18 -18
  29. package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts +3 -1
  30. package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts.map +1 -1
  31. package/dist/components/CostComparatorTable/_helpers/CostCell.js +30 -28
  32. package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +1 -1
  33. package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts +7 -0
  34. package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts.map +1 -1
  35. package/dist/components/CostComparatorTable/index.d.ts +1 -1
  36. package/dist/components/CostComparatorTable/index.d.ts.map +1 -1
  37. package/dist/components/CostComparatorTable/index.js +93 -85
  38. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  39. package/dist/components/DateRangePicker/DateRangePicker.js +1685 -1651
  40. package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts +10 -0
  41. package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts.map +1 -1
  42. package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
  43. package/dist/components/FusionChart/_config/builders.js +141 -141
  44. package/dist/components/FusionChart/_config/helpers.js +2 -2
  45. package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts.map +1 -1
  46. package/dist/components/FusionChart/_helpers/doughnutHelper.js +56 -43
  47. package/dist/components/FusionChart/index.d.ts.map +1 -1
  48. package/dist/components/FusionChart/index.js +356 -340
  49. package/dist/components/Loader/_types/loader.types.d.ts +10 -0
  50. package/dist/components/Loader/_types/loader.types.d.ts.map +1 -0
  51. package/dist/components/Loader/_types/loader.types.js +1 -0
  52. package/dist/components/Loader/index.d.ts +6 -0
  53. package/dist/components/Loader/index.d.ts.map +1 -0
  54. package/dist/components/Loader/index.js +37 -0
  55. package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts +27 -0
  56. package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts.map +1 -0
  57. package/dist/components/MAVDropdown/_types/mavDropdown.types.js +1 -0
  58. package/dist/components/MAVDropdown/index.d.ts +6 -0
  59. package/dist/components/MAVDropdown/index.d.ts.map +1 -0
  60. package/dist/components/MAVDropdown/index.js +162 -0
  61. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +33 -33
  62. package/dist/components/MultiSelect/SimpleMultiSelect.d.ts +22 -0
  63. package/dist/components/MultiSelect/SimpleMultiSelect.d.ts.map +1 -0
  64. package/dist/components/MultiSelect/SimpleMultiSelect.js +221 -0
  65. package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
  66. package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
  67. package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
  68. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
  69. package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
  70. package/dist/components/MultiSelect/_helpers/TagContent.d.ts.map +1 -1
  71. package/dist/components/MultiSelect/_helpers/TagContent.js +20 -19
  72. package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
  73. package/dist/components/MultiSelect/_helpers/TriggerButton.js +39 -34
  74. package/dist/components/MultiSelect/_types/type.d.ts +4 -0
  75. package/dist/components/MultiSelect/_types/type.d.ts.map +1 -1
  76. package/dist/components/MultiSelect/index.d.ts +1 -1
  77. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  78. package/dist/components/MultiSelect/index.js +148 -145
  79. package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts +28 -0
  80. package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts.map +1 -0
  81. package/dist/components/ProfileDropdown/_types/profileDropdown.types.js +13 -0
  82. package/dist/components/ProfileDropdown/constants.d.ts +3 -0
  83. package/dist/components/ProfileDropdown/constants.d.ts.map +1 -0
  84. package/dist/components/ProfileDropdown/constants.js +8 -0
  85. package/dist/components/ProfileDropdown/index.d.ts +6 -0
  86. package/dist/components/ProfileDropdown/index.d.ts.map +1 -0
  87. package/dist/components/ProfileDropdown/index.js +154 -0
  88. package/dist/components/RadioButton/index.js +34 -34
  89. package/dist/components/RadioGroup/_types/radioGroup.types.d.ts +1 -0
  90. package/dist/components/RadioGroup/_types/radioGroup.types.d.ts.map +1 -1
  91. package/dist/components/RadioGroup/index.d.ts +1 -1
  92. package/dist/components/RadioGroup/index.d.ts.map +1 -1
  93. package/dist/components/RadioGroup/index.js +19 -17
  94. package/dist/components/Search/index.js +35 -35
  95. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts +2 -1
  96. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts.map +1 -1
  97. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +7 -3
  98. package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts +2 -2
  99. package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts.map +1 -1
  100. package/dist/components/SingleSelectDropdown/index.d.ts +1 -1
  101. package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -1
  102. package/dist/components/SingleSelectDropdown/index.js +61 -57
  103. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts +1 -0
  104. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -1
  105. package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +49 -47
  106. package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
  107. package/dist/components/Table/_helpers/ColumnManager/index.js +393 -385
  108. package/dist/components/Table/_helpers/ExpandableRow/index.d.ts.map +1 -1
  109. package/dist/components/Table/_helpers/ExpandableRow/index.js +30 -20
  110. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +2 -2
  111. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -1
  112. package/dist/components/Table/_helpers/GroupedHeader/index.js +79 -87
  113. package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +1 -1
  114. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
  115. package/dist/components/Table/_helpers/TableFilterModal/index.js +43 -42
  116. package/dist/components/Table/_helpers/TableRows.d.ts +1 -1
  117. package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
  118. package/dist/components/Table/_helpers/TableRows.js +288 -283
  119. package/dist/components/Table/_types/table.types.d.ts +9 -3
  120. package/dist/components/Table/_types/table.types.d.ts.map +1 -1
  121. package/dist/components/Table/_utils/table.utils.d.ts +3 -0
  122. package/dist/components/Table/_utils/table.utils.d.ts.map +1 -1
  123. package/dist/components/Table/_utils/table.utils.js +73 -23
  124. package/dist/components/Table/index.d.ts +1 -1
  125. package/dist/components/Table/index.d.ts.map +1 -1
  126. package/dist/components/Table/index.js +388 -358
  127. package/dist/components/Typography/index.js +30 -30
  128. package/dist/main.d.ts +6 -0
  129. package/dist/main.d.ts.map +1 -1
  130. package/dist/main.js +97 -85
  131. package/dist/styles.module-BXby6f8d.js +16 -0
  132. package/dist/styles.module-DakCndIP.js +42 -0
  133. package/package.json +1 -1
  134. package/dist/DropdownFooter-C20yRiDR.js +0 -84
  135. package/dist/IconSlot-CFKmSU2_.js +0 -33
  136. package/dist/assets/DropdownFooter-C7Cml53c.css +0 -1
  137. package/dist/assets/IconSlot-CLpdZgmb.css +0 -1
  138. package/dist/assets/index-BQ0m7FKV.css +0 -1
  139. package/dist/assets/index-BmQOtMhS.css +0 -1
  140. package/dist/assets/index-CaWXKQ7j.css +0 -1
  141. package/dist/assets/index-CiQd_iRw.css +0 -1
  142. package/dist/assets/index-Dudb2XKF.css +0 -1
  143. package/dist/assets/index-w7AdSPwF.css +0 -1
  144. package/dist/assets/styles-BA66-SUu.css +0 -1
  145. package/dist/assets/styles-BTZL03H2.css +0 -1
  146. package/dist/assets/styles-CflOKRvX.css +0 -1
  147. package/dist/assets/styles-D8sahtFb.css +0 -1
  148. package/dist/styles.module-CCyijXTv.js +0 -16
  149. package/dist/styles.module-CmWIIYpK.js +0 -41
@@ -1,37 +1,36 @@
1
- import { jsx as m, jsxs as E } from "react/jsx-runtime";
2
- import * as w from "react";
3
- import { createContext as Ge, memo as Ye, useEffect as k, useLayoutEffect as Xe, useState as Ee, useCallback as Ie, useMemo as b, isValidElement as We, cloneElement as ae, useContext as ze, useRef as Qe } from "react";
4
- import { CKButton as B } from "../../../CKButton/index.js";
1
+ import { jsx as m, jsxs as I } from "react/jsx-runtime";
2
+ import * as E from "react";
3
+ import { createContext as $e, memo as Ge, useEffect as k, useLayoutEffect as Ye, useState as be, useCallback as Ee, useMemo as b, isValidElement as ze, cloneElement as ae, useContext as We, useRef as Xe } from "react";
4
+ import { CKButton as F } from "../../../CKButton/index.js";
5
5
  import { Typography as _ } from "../../../Typography/index.js";
6
- import { Switch as Ke } from "../../../Switch/index.js";
7
- import { S as Je } from "../../../../reset-icon-YxMt3Ozp.js";
8
- import { S as Ze } from "../../../../search-B_cup-NN.js";
9
- import et from "./ColumnConfig.js";
6
+ import { S as Ze } from "../../../../reset-icon-YxMt3Ozp.js";
7
+ import { S as Qe } from "../../../../search-B_cup-NN.js";
8
+ import { ColumnConfig as Ke } from "./ColumnConfig.js";
10
9
  import { COLUMN_ITEM_TYPE as ce } from "../../constants.js";
11
- import '../../../../assets/styles-BTZL03H2.css';/* empty css */
12
- import { mergeClasses as ue } from "../../../../utils/mergeClasses.js";
13
- import { g as tt } from "../../../../_commonjsHelpers-C6fGbg64.js";
14
- const we = Ge({
10
+ import '../../../../assets/styles-DLJzdWsF.css';/* empty css */
11
+ import { Toggle as Je } from "../../../Toggle/index.js";
12
+ import { g as et } from "../../../../_commonjsHelpers-C6fGbg64.js";
13
+ const Ie = $e({
15
14
  dragDropManager: void 0
16
15
  });
17
16
  function O(t) {
18
17
  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. ";
19
18
  }
20
- var le = (function() {
19
+ var ue = (function() {
21
20
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
22
- })(), de = function() {
21
+ })(), le = function() {
23
22
  return Math.random().toString(36).substring(7).split("").join(".");
24
- }, ge = {
25
- INIT: "@@redux/INIT" + de(),
26
- REPLACE: "@@redux/REPLACE" + de()
23
+ }, de = {
24
+ INIT: "@@redux/INIT" + le(),
25
+ REPLACE: "@@redux/REPLACE" + le()
27
26
  };
28
- function rt(t) {
27
+ function tt(t) {
29
28
  if (typeof t != "object" || t === null) return !1;
30
29
  for (var e = t; Object.getPrototypeOf(e) !== null; )
31
30
  e = Object.getPrototypeOf(e);
32
31
  return Object.getPrototypeOf(t) === e;
33
32
  }
34
- function nt(t) {
33
+ function rt(t) {
35
34
  if (t === void 0) return "undefined";
36
35
  if (t === null) return "null";
37
36
  var e = typeof t;
@@ -44,9 +43,9 @@ function nt(t) {
44
43
  return e;
45
44
  }
46
45
  if (Array.isArray(t)) return "array";
47
- if (ot(t)) return "date";
48
- if (st(t)) return "error";
49
- var r = it(t);
46
+ if (st(t)) return "date";
47
+ if (it(t)) return "error";
48
+ var r = nt(t);
50
49
  switch (r) {
51
50
  case "Symbol":
52
51
  case "Promise":
@@ -58,18 +57,18 @@ function nt(t) {
58
57
  }
59
58
  return e.slice(8, -1).toLowerCase().replace(/\s/g, "");
60
59
  }
61
- function it(t) {
60
+ function nt(t) {
62
61
  return typeof t.constructor == "function" ? t.constructor.name : null;
63
62
  }
64
- function st(t) {
63
+ function it(t) {
65
64
  return t instanceof Error || typeof t.message == "string" && t.constructor && typeof t.constructor.stackTraceLimit == "number";
66
65
  }
67
- function ot(t) {
66
+ function st(t) {
68
67
  return t instanceof Date ? !0 : typeof t.toDateString == "function" && typeof t.getDate == "function" && typeof t.setDate == "function";
69
68
  }
70
69
  function N(t) {
71
70
  var e = typeof t;
72
- return process.env.NODE_ENV !== "production" && (e = nt(t)), e;
71
+ return process.env.NODE_ENV !== "production" && (e = rt(t)), e;
73
72
  }
74
73
  function Ce(t, e, r) {
75
74
  var n;
@@ -108,7 +107,7 @@ function Ce(t, e, r) {
108
107
  };
109
108
  }
110
109
  function g(h) {
111
- if (!rt(h))
110
+ if (!tt(h))
112
111
  throw new Error(process.env.NODE_ENV === "production" ? O(7) : "Actions must be plain objects. Instead, the actual type was: '" + N(h) + "'. 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.");
113
112
  if (typeof h.type > "u")
114
113
  throw new Error(process.env.NODE_ENV === "production" ? O(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
@@ -129,7 +128,7 @@ function Ce(t, e, r) {
129
128
  if (typeof h != "function")
130
129
  throw new Error(process.env.NODE_ENV === "production" ? O(10) : "Expected the nextReducer to be a function. Instead, received: '" + N(h));
131
130
  i = h, g({
132
- type: ge.REPLACE
131
+ type: de.REPLACE
133
132
  });
134
133
  }
135
134
  function D() {
@@ -146,30 +145,30 @@ function Ce(t, e, r) {
146
145
  subscribe: function(S) {
147
146
  if (typeof S != "object" || S === null)
148
147
  throw new Error(process.env.NODE_ENV === "production" ? O(11) : "Expected the observer to be an object. Instead, received: '" + N(S) + "'");
149
- function I() {
148
+ function C() {
150
149
  S.next && S.next(f());
151
150
  }
152
- I();
153
- var F = v(I);
151
+ C();
152
+ var V = v(C);
154
153
  return {
155
- unsubscribe: F
154
+ unsubscribe: V
156
155
  };
157
156
  }
158
- }, h[le] = function() {
157
+ }, h[ue] = function() {
159
158
  return this;
160
159
  }, h;
161
160
  }
162
161
  return g({
163
- type: ge.INIT
162
+ type: de.INIT
164
163
  }), n = {
165
164
  dispatch: g,
166
165
  subscribe: p,
167
166
  getState: f,
168
167
  replaceReducer: u
169
- }, n[le] = D, n;
168
+ }, n[ue] = D, n;
170
169
  }
171
170
  function l(t, e, ...r) {
172
- if (at() && e === void 0)
171
+ if (ot() && e === void 0)
173
172
  throw new Error("invariant requires an error message argument");
174
173
  if (!t) {
175
174
  let n;
@@ -184,24 +183,24 @@ function l(t, e, ...r) {
184
183
  throw n.framesToPop = 1, n;
185
184
  }
186
185
  }
187
- function at() {
186
+ function ot() {
188
187
  return typeof process < "u" && process.env.NODE_ENV === "production";
189
188
  }
190
- function ct(t, e, r) {
189
+ function at(t, e, r) {
191
190
  return e.split(".").reduce(
192
191
  (n, i) => n && n[i] ? n[i] : r || null,
193
192
  t
194
193
  );
195
194
  }
196
- function ut(t, e) {
195
+ function ct(t, e) {
197
196
  return t.filter(
198
197
  (r) => r !== e
199
198
  );
200
199
  }
201
- function Ne(t) {
200
+ function we(t) {
202
201
  return typeof t == "object";
203
202
  }
204
- function lt(t, e) {
203
+ function ut(t, e) {
205
204
  const r = /* @__PURE__ */ new Map(), n = (s) => {
206
205
  r.set(s, r.has(s) ? r.get(s) + 1 : 1);
207
206
  };
@@ -211,13 +210,13 @@ function lt(t, e) {
211
210
  s === 1 && i.push(o);
212
211
  }), i;
213
212
  }
214
- function dt(t, e) {
213
+ function lt(t, e) {
215
214
  return t.filter(
216
215
  (r) => e.indexOf(r) > -1
217
216
  );
218
217
  }
219
- const ee = "dnd-core/INIT_COORDS", A = "dnd-core/BEGIN_DRAG", te = "dnd-core/PUBLISH_DRAG_SOURCE", H = "dnd-core/HOVER", j = "dnd-core/DROP", U = "dnd-core/END_DRAG";
220
- function fe(t, e) {
218
+ const ee = "dnd-core/INIT_COORDS", A = "dnd-core/BEGIN_DRAG", te = "dnd-core/PUBLISH_DRAG_SOURCE", H = "dnd-core/HOVER", j = "dnd-core/DROP", B = "dnd-core/END_DRAG";
219
+ function ge(t, e) {
221
220
  return {
222
221
  type: ee,
223
222
  payload: {
@@ -226,35 +225,35 @@ function fe(t, e) {
226
225
  }
227
226
  };
228
227
  }
229
- const gt = {
228
+ const dt = {
230
229
  type: ee,
231
230
  payload: {
232
231
  clientOffset: null,
233
232
  sourceClientOffset: null
234
233
  }
235
234
  };
236
- function ft(t) {
235
+ function gt(t) {
237
236
  return function(r = [], n = {
238
237
  publishSource: !0
239
238
  }) {
240
239
  const { publishSource: i = !0, clientOffset: s, getSourceClientOffset: o } = n, a = t.getMonitor(), c = t.getRegistry();
241
- t.dispatch(fe(s)), ht(r, a, c);
242
- const d = vt(r, a);
240
+ t.dispatch(ge(s)), ft(r, a, c);
241
+ const d = mt(r, a);
243
242
  if (d == null) {
244
- t.dispatch(gt);
243
+ t.dispatch(dt);
245
244
  return;
246
245
  }
247
246
  let f = null;
248
247
  if (s) {
249
248
  if (!o)
250
249
  throw new Error("getSourceClientOffset must be defined");
251
- pt(o), f = o(d);
250
+ ht(o), f = o(d);
252
251
  }
253
- t.dispatch(fe(s, f));
252
+ t.dispatch(ge(s, f));
254
253
  const g = c.getSource(d).beginDrag(a, d);
255
254
  if (g == null)
256
255
  return;
257
- mt(g), c.pinSource(d);
256
+ pt(g), c.pinSource(d);
258
257
  const u = c.getSourceType(d);
259
258
  return {
260
259
  type: A,
@@ -269,18 +268,18 @@ function ft(t) {
269
268
  };
270
269
  };
271
270
  }
272
- function ht(t, e, r) {
271
+ function ft(t, e, r) {
273
272
  l(!e.isDragging(), "Cannot call beginDrag while dragging."), t.forEach(function(n) {
274
273
  l(r.getSource(n), "Expected sourceIds to be registered.");
275
274
  });
276
275
  }
277
- function pt(t) {
276
+ function ht(t) {
278
277
  l(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
279
278
  }
280
- function mt(t) {
281
- l(Ne(t), "Item must be an object.");
279
+ function pt(t) {
280
+ l(we(t), "Item must be an object.");
282
281
  }
283
- function vt(t, e) {
282
+ function mt(t, e) {
284
283
  let r = null;
285
284
  for (let n = t.length - 1; n >= 0; n--)
286
285
  if (e.canDragSource(t[n])) {
@@ -289,7 +288,7 @@ function vt(t, e) {
289
288
  }
290
289
  return r;
291
290
  }
292
- function Dt(t, e, r) {
291
+ function vt(t, e, r) {
293
292
  return e in t ? Object.defineProperty(t, e, {
294
293
  value: r,
295
294
  enumerable: !0,
@@ -297,69 +296,69 @@ function Dt(t, e, r) {
297
296
  writable: !0
298
297
  }) : t[e] = r, t;
299
298
  }
300
- function yt(t) {
299
+ function Dt(t) {
301
300
  for (var e = 1; e < arguments.length; e++) {
302
301
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
303
302
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
304
303
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
305
304
  }))), n.forEach(function(i) {
306
- Dt(t, i, r[i]);
305
+ vt(t, i, r[i]);
307
306
  });
308
307
  }
309
308
  return t;
310
309
  }
311
- function St(t) {
310
+ function yt(t) {
312
311
  return function(r = {}) {
313
312
  const n = t.getMonitor(), i = t.getRegistry();
314
- Ot(n), Et(n).forEach((o, a) => {
315
- const c = Tt(o, a, i, n), d = {
313
+ St(n), bt(n).forEach((o, a) => {
314
+ const c = Ot(o, a, i, n), d = {
316
315
  type: j,
317
316
  payload: {
318
- dropResult: yt({}, r, c)
317
+ dropResult: Dt({}, r, c)
319
318
  }
320
319
  };
321
320
  t.dispatch(d);
322
321
  });
323
322
  };
324
323
  }
325
- function Ot(t) {
324
+ function St(t) {
326
325
  l(t.isDragging(), "Cannot call drop while not dragging."), l(!t.didDrop(), "Cannot call drop twice during one drag operation.");
327
326
  }
328
- function Tt(t, e, r, n) {
327
+ function Ot(t, e, r, n) {
329
328
  const i = r.getTarget(t);
330
329
  let s = i ? i.drop(n, t) : void 0;
331
- return bt(s), typeof s > "u" && (s = e === 0 ? {} : n.getDropResult()), s;
330
+ return Tt(s), typeof s > "u" && (s = e === 0 ? {} : n.getDropResult()), s;
332
331
  }
333
- function bt(t) {
334
- l(typeof t > "u" || Ne(t), "Drop result must either be an object or undefined.");
332
+ function Tt(t) {
333
+ l(typeof t > "u" || we(t), "Drop result must either be an object or undefined.");
335
334
  }
336
- function Et(t) {
335
+ function bt(t) {
337
336
  const e = t.getTargetIds().filter(t.canDropOnTarget, t);
338
337
  return e.reverse(), e;
339
338
  }
340
- function It(t) {
339
+ function Et(t) {
341
340
  return function() {
342
341
  const r = t.getMonitor(), n = t.getRegistry();
343
- wt(r);
342
+ It(r);
344
343
  const i = r.getSourceId();
345
344
  return i != null && (n.getSource(i, !0).endDrag(r, i), n.unpinSource()), {
346
- type: U
345
+ type: B
347
346
  };
348
347
  };
349
348
  }
350
- function wt(t) {
349
+ function It(t) {
351
350
  l(t.isDragging(), "Cannot call endDrag while not dragging.");
352
351
  }
353
- function z(t, e) {
352
+ function X(t, e) {
354
353
  return e === null ? t === null : Array.isArray(t) ? t.some(
355
354
  (r) => r === e
356
355
  ) : t === e;
357
356
  }
358
357
  function Ct(t) {
359
358
  return function(r, { clientOffset: n } = {}) {
360
- Nt(r);
359
+ wt(r);
361
360
  const i = r.slice(0), s = t.getMonitor(), o = t.getRegistry(), a = s.getItemType();
362
- return xt(i, o, a), Pt(i, s, o), Rt(i, s, o), {
361
+ return Pt(i, o, a), Nt(i, s, o), xt(i, s, o), {
363
362
  type: H,
364
363
  payload: {
365
364
  targetIds: i,
@@ -368,10 +367,10 @@ function Ct(t) {
368
367
  };
369
368
  };
370
369
  }
371
- function Nt(t) {
370
+ function wt(t) {
372
371
  l(Array.isArray(t), "Expected targetIds to be an array.");
373
372
  }
374
- function Pt(t, e, r) {
373
+ function Nt(t, e, r) {
375
374
  l(e.isDragging(), "Cannot call hover while not dragging."), l(!e.didDrop(), "Cannot call hover after drop.");
376
375
  for (let n = 0; n < t.length; n++) {
377
376
  const i = t[n];
@@ -380,18 +379,18 @@ function Pt(t, e, r) {
380
379
  l(s, "Expected targetIds to be registered.");
381
380
  }
382
381
  }
383
- function xt(t, e, r) {
382
+ function Pt(t, e, r) {
384
383
  for (let n = t.length - 1; n >= 0; n--) {
385
384
  const i = t[n], s = e.getTargetType(i);
386
- z(s, r) || t.splice(n, 1);
385
+ X(s, r) || t.splice(n, 1);
387
386
  }
388
387
  }
389
- function Rt(t, e, r) {
388
+ function xt(t, e, r) {
390
389
  t.forEach(function(n) {
391
390
  r.getTarget(n).hover(e, n);
392
391
  });
393
392
  }
394
- function Mt(t) {
393
+ function Rt(t) {
395
394
  return function() {
396
395
  if (t.getMonitor().isDragging())
397
396
  return {
@@ -399,16 +398,16 @@ function Mt(t) {
399
398
  };
400
399
  };
401
400
  }
402
- function _t(t) {
401
+ function Mt(t) {
403
402
  return {
404
- beginDrag: ft(t),
405
- publishDragSource: Mt(t),
403
+ beginDrag: gt(t),
404
+ publishDragSource: Rt(t),
406
405
  hover: Ct(t),
407
- drop: St(t),
408
- endDrag: It(t)
406
+ drop: yt(t),
407
+ endDrag: Et(t)
409
408
  };
410
409
  }
411
- class Lt {
410
+ class _t {
412
411
  receiveBackend(e) {
413
412
  this.backend = e;
414
413
  }
@@ -429,7 +428,7 @@ class Lt {
429
428
  typeof a < "u" && r(a);
430
429
  };
431
430
  }
432
- const i = _t(this);
431
+ const i = Mt(this);
433
432
  return Object.keys(i).reduce((s, o) => {
434
433
  const a = i[o];
435
434
  return s[o] = n(a), s;
@@ -445,33 +444,33 @@ class Lt {
445
444
  }, this.store = e, this.monitor = r, e.subscribe(this.handleRefCountChange);
446
445
  }
447
446
  }
448
- function kt(t, e) {
447
+ function Lt(t, e) {
449
448
  return {
450
449
  x: t.x + e.x,
451
450
  y: t.y + e.y
452
451
  };
453
452
  }
454
- function Pe(t, e) {
453
+ function Ne(t, e) {
455
454
  return {
456
455
  x: t.x - e.x,
457
456
  y: t.y - e.y
458
457
  };
459
458
  }
460
- function At(t) {
459
+ function kt(t) {
461
460
  const { clientOffset: e, initialClientOffset: r, initialSourceClientOffset: n } = t;
462
- return !e || !r || !n ? null : Pe(kt(e, n), r);
461
+ return !e || !r || !n ? null : Ne(Lt(e, n), r);
463
462
  }
464
- function Ht(t) {
463
+ function At(t) {
465
464
  const { clientOffset: e, initialClientOffset: r } = t;
466
- return !e || !r ? null : Pe(e, r);
465
+ return !e || !r ? null : Ne(e, r);
467
466
  }
468
467
  const R = [], re = [];
469
468
  R.__IS_NONE__ = !0;
470
469
  re.__IS_ALL__ = !0;
471
- function jt(t, e) {
472
- return t === R ? !1 : t === re || typeof e > "u" ? !0 : dt(e, t).length > 0;
470
+ function Ht(t, e) {
471
+ return t === R ? !1 : t === re || typeof e > "u" ? !0 : lt(e, t).length > 0;
473
472
  }
474
- class Ut {
473
+ class jt {
475
474
  subscribeToStateChange(e, r = {}) {
476
475
  const { handlerIds: n } = r;
477
476
  l(typeof e == "function", "listener must be a function."), l(typeof n > "u" || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
@@ -479,7 +478,7 @@ class Ut {
479
478
  const s = () => {
480
479
  const o = this.store.getState(), a = o.stateId;
481
480
  try {
482
- a === i || a === i + 1 && !jt(o.dirtyHandlerIds, n) || e();
481
+ a === i || a === i + 1 && !Ht(o.dirtyHandlerIds, n) || e();
483
482
  } finally {
484
483
  i = a;
485
484
  }
@@ -508,7 +507,7 @@ class Ut {
508
507
  if (l(r, `Expected to find a valid target. targetId=${e}`), !this.isDragging() || this.didDrop())
509
508
  return !1;
510
509
  const n = this.registry.getTargetType(e), i = this.getItemType();
511
- return z(n, i) && r.canDrop(this, e);
510
+ return X(n, i) && r.canDrop(this, e);
512
511
  }
513
512
  isDragging() {
514
513
  return !!this.getItemType();
@@ -531,7 +530,7 @@ class Ut {
531
530
  if (!this.isDragging())
532
531
  return !1;
533
532
  const i = this.registry.getTargetType(e), s = this.getItemType();
534
- if (s && !z(i, s))
533
+ if (s && !X(i, s))
535
534
  return !1;
536
535
  const o = this.getTargetIds();
537
536
  if (!o.length)
@@ -570,17 +569,17 @@ class Ut {
570
569
  return this.store.getState().dragOffset.clientOffset;
571
570
  }
572
571
  getSourceClientOffset() {
573
- return At(this.store.getState().dragOffset);
572
+ return kt(this.store.getState().dragOffset);
574
573
  }
575
574
  getDifferenceFromInitialOffset() {
576
- return Ht(this.store.getState().dragOffset);
575
+ return At(this.store.getState().dragOffset);
577
576
  }
578
577
  constructor(e, r) {
579
578
  this.store = e, this.registry = r;
580
579
  }
581
580
  }
582
- const he = typeof global < "u" ? global : self, xe = he.MutationObserver || he.WebKitMutationObserver;
583
- function Re(t) {
581
+ const fe = typeof global < "u" ? global : self, Pe = fe.MutationObserver || fe.WebKitMutationObserver;
582
+ function xe(t) {
584
583
  return function() {
585
584
  const r = setTimeout(i, 0), n = setInterval(i, 50);
586
585
  function i() {
@@ -588,16 +587,16 @@ function Re(t) {
588
587
  }
589
588
  };
590
589
  }
591
- function Vt(t) {
590
+ function Bt(t) {
592
591
  let e = 1;
593
- const r = new xe(t), n = document.createTextNode("");
592
+ const r = new Pe(t), n = document.createTextNode("");
594
593
  return r.observe(n, {
595
594
  characterData: !0
596
595
  }), function() {
597
596
  e = -e, n.data = e;
598
597
  };
599
598
  }
600
- const Ft = typeof xe == "function" ? (
599
+ const Ut = typeof Pe == "function" ? (
601
600
  // reliably everywhere they are implemented.
602
601
  // They are implemented in all modern browsers.
603
602
  //
@@ -608,7 +607,7 @@ const Ft = typeof xe == "function" ? (
608
607
  // - iPad Safari 6-7.1
609
608
  // - iPhone Safari 7-7.1
610
609
  // - Safari 6-7
611
- Vt
610
+ Bt
612
611
  ) : (
613
612
  // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera
614
613
  // 11-12, and in web workers in many engines.
@@ -634,9 +633,9 @@ const Ft = typeof xe == "function" ? (
634
633
  // - Internet Explorer 6-9
635
634
  // - iPad Safari 4.3
636
635
  // - Lynx 2.8.7
637
- Re
636
+ xe
638
637
  );
639
- class Bt {
638
+ class Vt {
640
639
  // Use the fastest means possible to execute a task in its own turn, with
641
640
  // priority over other events including IO, animation, reflow, and redraw
642
641
  // events in browsers.
@@ -665,13 +664,13 @@ class Bt {
665
664
  e.length = 0, this.index = 0, this.flushing = !1;
666
665
  }, this.registerPendingError = (e) => {
667
666
  this.pendingErrors.push(e), this.requestErrorThrow();
668
- }, this.requestFlush = Ft(this.flush), this.requestErrorThrow = Re(() => {
667
+ }, this.requestFlush = Ut(this.flush), this.requestErrorThrow = xe(() => {
669
668
  if (this.pendingErrors.length)
670
669
  throw this.pendingErrors.shift();
671
670
  });
672
671
  }
673
672
  }
674
- class qt {
673
+ class Ft {
675
674
  call() {
676
675
  try {
677
676
  this.task && this.task();
@@ -685,9 +684,9 @@ class qt {
685
684
  this.onError = e, this.release = r, this.task = null;
686
685
  }
687
686
  }
688
- class $t {
687
+ class qt {
689
688
  create(e) {
690
- const r = this.freeTasks, n = r.length ? r.pop() : new qt(
689
+ const r = this.freeTasks, n = r.length ? r.pop() : new Ft(
691
690
  this.onError,
692
691
  (i) => r[r.length] = i
693
692
  );
@@ -697,12 +696,12 @@ class $t {
697
696
  this.onError = e, this.freeTasks = [];
698
697
  }
699
698
  }
700
- const Me = new Bt(), Gt = new $t(Me.registerPendingError);
701
- function Yt(t) {
702
- Me.enqueueTask(Gt.create(t));
699
+ const Re = new Vt(), $t = new qt(Re.registerPendingError);
700
+ function Gt(t) {
701
+ Re.enqueueTask($t.create(t));
703
702
  }
704
- const ne = "dnd-core/ADD_SOURCE", ie = "dnd-core/ADD_TARGET", se = "dnd-core/REMOVE_SOURCE", V = "dnd-core/REMOVE_TARGET";
705
- function Xt(t) {
703
+ const ne = "dnd-core/ADD_SOURCE", ie = "dnd-core/ADD_TARGET", se = "dnd-core/REMOVE_SOURCE", U = "dnd-core/REMOVE_TARGET";
704
+ function Yt(t) {
706
705
  return {
707
706
  type: ne,
708
707
  payload: {
@@ -710,7 +709,7 @@ function Xt(t) {
710
709
  }
711
710
  };
712
711
  }
713
- function Wt(t) {
712
+ function zt(t) {
714
713
  return {
715
714
  type: ie,
716
715
  payload: {
@@ -718,7 +717,7 @@ function Wt(t) {
718
717
  }
719
718
  };
720
719
  }
721
- function zt(t) {
720
+ function Wt(t) {
722
721
  return {
723
722
  type: se,
724
723
  payload: {
@@ -726,24 +725,24 @@ function zt(t) {
726
725
  }
727
726
  };
728
727
  }
729
- function Qt(t) {
728
+ function Xt(t) {
730
729
  return {
731
- type: V,
730
+ type: U,
732
731
  payload: {
733
732
  targetId: t
734
733
  }
735
734
  };
736
735
  }
737
- function Kt(t) {
736
+ function Zt(t) {
738
737
  l(typeof t.canDrag == "function", "Expected canDrag to be a function."), l(typeof t.beginDrag == "function", "Expected beginDrag to be a function."), l(typeof t.endDrag == "function", "Expected endDrag to be a function.");
739
738
  }
740
- function Jt(t) {
739
+ function Qt(t) {
741
740
  l(typeof t.canDrop == "function", "Expected canDrop to be a function."), l(typeof t.hover == "function", "Expected hover to be a function."), l(typeof t.drop == "function", "Expected beginDrag to be a function.");
742
741
  }
743
- function Q(t, e) {
742
+ function Z(t, e) {
744
743
  if (e && Array.isArray(t)) {
745
744
  t.forEach(
746
- (r) => Q(r, !1)
745
+ (r) => Z(r, !1)
747
746
  );
748
747
  return;
749
748
  }
@@ -753,12 +752,12 @@ var T;
753
752
  (function(t) {
754
753
  t.SOURCE = "SOURCE", t.TARGET = "TARGET";
755
754
  })(T || (T = {}));
756
- let Zt = 0;
757
- function er() {
758
- return Zt++;
755
+ let Kt = 0;
756
+ function Jt() {
757
+ return Kt++;
759
758
  }
760
- function tr(t) {
761
- const e = er().toString();
759
+ function er(t) {
760
+ const e = Jt().toString();
762
761
  switch (t) {
763
762
  case T.SOURCE:
764
763
  return `S${e}`;
@@ -768,7 +767,7 @@ function tr(t) {
768
767
  throw new Error(`Unknown Handler Role: ${t}`);
769
768
  }
770
769
  }
771
- function pe(t) {
770
+ function he(t) {
772
771
  switch (t[0]) {
773
772
  case "S":
774
773
  return T.SOURCE;
@@ -778,7 +777,7 @@ function pe(t) {
778
777
  throw new Error(`Cannot parse handler ID: ${t}`);
779
778
  }
780
779
  }
781
- function me(t, e) {
780
+ function pe(t, e) {
782
781
  const r = t.entries();
783
782
  let n = !1;
784
783
  do {
@@ -789,19 +788,19 @@ function me(t, e) {
789
788
  } while (!n);
790
789
  return !1;
791
790
  }
792
- class rr {
791
+ class tr {
793
792
  addSource(e, r) {
794
- Q(e), Kt(r);
793
+ Z(e), Zt(r);
795
794
  const n = this.addHandler(T.SOURCE, e, r);
796
- return this.store.dispatch(Xt(n)), n;
795
+ return this.store.dispatch(Yt(n)), n;
797
796
  }
798
797
  addTarget(e, r) {
799
- Q(e, !0), Jt(r);
798
+ Z(e, !0), Qt(r);
800
799
  const n = this.addHandler(T.TARGET, e, r);
801
- return this.store.dispatch(Wt(n)), n;
800
+ return this.store.dispatch(zt(n)), n;
802
801
  }
803
802
  containsHandler(e) {
804
- return me(this.dragSources, e) || me(this.dropTargets, e);
803
+ return pe(this.dragSources, e) || pe(this.dropTargets, e);
805
804
  }
806
805
  getSource(e, r = !1) {
807
806
  return l(this.isSourceId(e), "Expected a valid source ID."), r && e === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(e);
@@ -816,18 +815,18 @@ class rr {
816
815
  return l(this.isTargetId(e), "Expected a valid target ID."), this.types.get(e);
817
816
  }
818
817
  isSourceId(e) {
819
- return pe(e) === T.SOURCE;
818
+ return he(e) === T.SOURCE;
820
819
  }
821
820
  isTargetId(e) {
822
- return pe(e) === T.TARGET;
821
+ return he(e) === T.TARGET;
823
822
  }
824
823
  removeSource(e) {
825
- l(this.getSource(e), "Expected an existing source."), this.store.dispatch(zt(e)), Yt(() => {
824
+ l(this.getSource(e), "Expected an existing source."), this.store.dispatch(Wt(e)), Gt(() => {
826
825
  this.dragSources.delete(e), this.types.delete(e);
827
826
  });
828
827
  }
829
828
  removeTarget(e) {
830
- l(this.getTarget(e), "Expected an existing target."), this.store.dispatch(Qt(e)), this.dropTargets.delete(e), this.types.delete(e);
829
+ l(this.getTarget(e), "Expected an existing target."), this.store.dispatch(Xt(e)), this.dropTargets.delete(e), this.types.delete(e);
831
830
  }
832
831
  pinSource(e) {
833
832
  const r = this.getSource(e);
@@ -837,18 +836,18 @@ class rr {
837
836
  l(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
838
837
  }
839
838
  addHandler(e, r, n) {
840
- const i = tr(e);
839
+ const i = er(e);
841
840
  return this.types.set(i, r), e === T.SOURCE ? this.dragSources.set(i, n) : e === T.TARGET && this.dropTargets.set(i, n), i;
842
841
  }
843
842
  constructor(e) {
844
843
  this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
845
844
  }
846
845
  }
847
- const nr = (t, e) => t === e;
848
- function ir(t, e) {
846
+ const rr = (t, e) => t === e;
847
+ function nr(t, e) {
849
848
  return !t && !e ? !0 : !t || !e ? !1 : t.x === e.x && t.y === e.y;
850
849
  }
851
- function sr(t, e, r = nr) {
850
+ function ir(t, e, r = rr) {
852
851
  if (t.length !== e.length)
853
852
  return !1;
854
853
  for (let n = 0; n < t.length; ++n)
@@ -856,29 +855,29 @@ function sr(t, e, r = nr) {
856
855
  return !1;
857
856
  return !0;
858
857
  }
859
- function or(t = R, e) {
858
+ function sr(t = R, e) {
860
859
  switch (e.type) {
861
860
  case H:
862
861
  break;
863
862
  case ne:
864
863
  case ie:
865
- case V:
864
+ case U:
866
865
  case se:
867
866
  return R;
868
867
  case A:
869
868
  case te:
870
- case U:
869
+ case B:
871
870
  case j:
872
871
  default:
873
872
  return re;
874
873
  }
875
- const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = lt(r, n);
876
- if (!(i.length > 0 || !sr(r, n)))
874
+ const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = ut(r, n);
875
+ if (!(i.length > 0 || !ir(r, n)))
877
876
  return R;
878
877
  const o = n[n.length - 1], a = r[r.length - 1];
879
878
  return o !== a && (o && i.push(o), a && i.push(a)), i;
880
879
  }
881
- function ar(t, e, r) {
880
+ function or(t, e, r) {
882
881
  return e in t ? Object.defineProperty(t, e, {
883
882
  value: r,
884
883
  enumerable: !0,
@@ -886,23 +885,23 @@ function ar(t, e, r) {
886
885
  writable: !0
887
886
  }) : t[e] = r, t;
888
887
  }
889
- function cr(t) {
888
+ function ar(t) {
890
889
  for (var e = 1; e < arguments.length; e++) {
891
890
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
892
891
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
893
892
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
894
893
  }))), n.forEach(function(i) {
895
- ar(t, i, r[i]);
894
+ or(t, i, r[i]);
896
895
  });
897
896
  }
898
897
  return t;
899
898
  }
900
- const ve = {
899
+ const me = {
901
900
  initialSourceClientOffset: null,
902
901
  initialClientOffset: null,
903
902
  clientOffset: null
904
903
  };
905
- function ur(t = ve, e) {
904
+ function cr(t = me, e) {
906
905
  const { payload: r } = e;
907
906
  switch (e.type) {
908
907
  case ee:
@@ -913,17 +912,17 @@ function ur(t = ve, e) {
913
912
  clientOffset: r.clientOffset
914
913
  };
915
914
  case H:
916
- return ir(t.clientOffset, r.clientOffset) ? t : cr({}, t, {
915
+ return nr(t.clientOffset, r.clientOffset) ? t : ar({}, t, {
917
916
  clientOffset: r.clientOffset
918
917
  });
919
- case U:
918
+ case B:
920
919
  case j:
921
- return ve;
920
+ return me;
922
921
  default:
923
922
  return t;
924
923
  }
925
924
  }
926
- function lr(t, e, r) {
925
+ function ur(t, e, r) {
927
926
  return e in t ? Object.defineProperty(t, e, {
928
927
  value: r,
929
928
  enumerable: !0,
@@ -937,12 +936,12 @@ function P(t) {
937
936
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
938
937
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
939
938
  }))), n.forEach(function(i) {
940
- lr(t, i, r[i]);
939
+ ur(t, i, r[i]);
941
940
  });
942
941
  }
943
942
  return t;
944
943
  }
945
- const dr = {
944
+ const lr = {
946
945
  itemType: null,
947
946
  item: null,
948
947
  sourceId: null,
@@ -951,7 +950,7 @@ const dr = {
951
950
  didDrop: !1,
952
951
  isSourcePublic: null
953
952
  };
954
- function gr(t = dr, e) {
953
+ function dr(t = lr, e) {
955
954
  const { payload: r } = e;
956
955
  switch (e.type) {
957
956
  case A:
@@ -971,9 +970,9 @@ function gr(t = dr, e) {
971
970
  return P({}, t, {
972
971
  targetIds: r.targetIds
973
972
  });
974
- case V:
973
+ case U:
975
974
  return t.targetIds.indexOf(r.targetId) === -1 ? t : P({}, t, {
976
- targetIds: ut(t.targetIds, r.targetId)
975
+ targetIds: ct(t.targetIds, r.targetId)
977
976
  });
978
977
  case j:
979
978
  return P({}, t, {
@@ -981,7 +980,7 @@ function gr(t = dr, e) {
981
980
  didDrop: !0,
982
981
  targetIds: []
983
982
  });
984
- case U:
983
+ case B:
985
984
  return P({}, t, {
986
985
  itemType: null,
987
986
  item: null,
@@ -995,22 +994,22 @@ function gr(t = dr, e) {
995
994
  return t;
996
995
  }
997
996
  }
998
- function fr(t = 0, e) {
997
+ function gr(t = 0, e) {
999
998
  switch (e.type) {
1000
999
  case ne:
1001
1000
  case ie:
1002
1001
  return t + 1;
1003
1002
  case se:
1004
- case V:
1003
+ case U:
1005
1004
  return t - 1;
1006
1005
  default:
1007
1006
  return t;
1008
1007
  }
1009
1008
  }
1010
- function hr(t = 0) {
1009
+ function fr(t = 0) {
1011
1010
  return t + 1;
1012
1011
  }
1013
- function pr(t, e, r) {
1012
+ function hr(t, e, r) {
1014
1013
  return e in t ? Object.defineProperty(t, e, {
1015
1014
  value: r,
1016
1015
  enumerable: !0,
@@ -1018,45 +1017,45 @@ function pr(t, e, r) {
1018
1017
  writable: !0
1019
1018
  }) : t[e] = r, t;
1020
1019
  }
1021
- function mr(t) {
1020
+ function pr(t) {
1022
1021
  for (var e = 1; e < arguments.length; e++) {
1023
1022
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
1024
1023
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
1025
1024
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
1026
1025
  }))), n.forEach(function(i) {
1027
- pr(t, i, r[i]);
1026
+ hr(t, i, r[i]);
1028
1027
  });
1029
1028
  }
1030
1029
  return t;
1031
1030
  }
1032
- function vr(t = {}, e) {
1031
+ function mr(t = {}, e) {
1033
1032
  return {
1034
- dirtyHandlerIds: or(t.dirtyHandlerIds, {
1033
+ dirtyHandlerIds: sr(t.dirtyHandlerIds, {
1035
1034
  type: e.type,
1036
- payload: mr({}, e.payload, {
1037
- prevTargetIds: ct(t, "dragOperation.targetIds", [])
1035
+ payload: pr({}, e.payload, {
1036
+ prevTargetIds: at(t, "dragOperation.targetIds", [])
1038
1037
  })
1039
1038
  }),
1040
- dragOffset: ur(t.dragOffset, e),
1041
- refCount: fr(t.refCount, e),
1042
- dragOperation: gr(t.dragOperation, e),
1043
- stateId: hr(t.stateId)
1039
+ dragOffset: cr(t.dragOffset, e),
1040
+ refCount: gr(t.refCount, e),
1041
+ dragOperation: dr(t.dragOperation, e),
1042
+ stateId: fr(t.stateId)
1044
1043
  };
1045
1044
  }
1046
- function Dr(t, e = void 0, r = {}, n = !1) {
1047
- const i = yr(n), s = new Ut(i, new rr(i)), o = new Lt(i, s), a = t(o, e, r);
1045
+ function vr(t, e = void 0, r = {}, n = !1) {
1046
+ const i = Dr(n), s = new jt(i, new tr(i)), o = new _t(i, s), a = t(o, e, r);
1048
1047
  return o.receiveBackend(a), o;
1049
1048
  }
1050
- function yr(t) {
1049
+ function Dr(t) {
1051
1050
  const e = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
1052
- return Ce(vr, t && e && e({
1051
+ return Ce(mr, t && e && e({
1053
1052
  name: "dnd-core",
1054
1053
  instanceId: "dnd-core"
1055
1054
  }));
1056
1055
  }
1057
- function Sr(t, e) {
1056
+ function yr(t, e) {
1058
1057
  if (t == null) return {};
1059
- var r = Or(t, e), n, i;
1058
+ var r = Sr(t, e), n, i;
1060
1059
  if (Object.getOwnPropertySymbols) {
1061
1060
  var s = Object.getOwnPropertySymbols(t);
1062
1061
  for (i = 0; i < s.length; i++)
@@ -1064,33 +1063,33 @@ function Sr(t, e) {
1064
1063
  }
1065
1064
  return r;
1066
1065
  }
1067
- function Or(t, e) {
1066
+ function Sr(t, e) {
1068
1067
  if (t == null) return {};
1069
1068
  var r = {}, n = Object.keys(t), i, s;
1070
1069
  for (s = 0; s < n.length; s++)
1071
1070
  i = n[s], !(e.indexOf(i) >= 0) && (r[i] = t[i]);
1072
1071
  return r;
1073
1072
  }
1074
- let De = 0;
1073
+ let ve = 0;
1075
1074
  const L = /* @__PURE__ */ Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
1076
- var Tr = /* @__PURE__ */ Ye(function(e) {
1077
- var { children: r } = e, n = Sr(e, [
1075
+ var Or = /* @__PURE__ */ Ge(function(e) {
1076
+ var { children: r } = e, n = yr(e, [
1078
1077
  "children"
1079
1078
  ]);
1080
- const [i, s] = br(n);
1079
+ const [i, s] = Tr(n);
1081
1080
  return k(() => {
1082
1081
  if (s) {
1083
- const o = _e();
1084
- return ++De, () => {
1085
- --De === 0 && (o[L] = null);
1082
+ const o = Me();
1083
+ return ++ve, () => {
1084
+ --ve === 0 && (o[L] = null);
1086
1085
  };
1087
1086
  }
1088
- }, []), /* @__PURE__ */ m(we.Provider, {
1087
+ }, []), /* @__PURE__ */ m(Ie.Provider, {
1089
1088
  value: i,
1090
1089
  children: r
1091
1090
  });
1092
1091
  });
1093
- function br(t) {
1092
+ function Tr(t) {
1094
1093
  if ("manager" in t)
1095
1094
  return [
1096
1095
  {
@@ -1098,24 +1097,24 @@ function br(t) {
1098
1097
  },
1099
1098
  !1
1100
1099
  ];
1101
- const e = Er(t.backend, t.context, t.options, t.debugMode), r = !t.context;
1100
+ const e = br(t.backend, t.context, t.options, t.debugMode), r = !t.context;
1102
1101
  return [
1103
1102
  e,
1104
1103
  r
1105
1104
  ];
1106
1105
  }
1107
- function Er(t, e = _e(), r, n) {
1106
+ function br(t, e = Me(), r, n) {
1108
1107
  const i = e;
1109
1108
  return i[L] || (i[L] = {
1110
- dragDropManager: Dr(t, e, r, n)
1109
+ dragDropManager: vr(t, e, r, n)
1111
1110
  }), i[L];
1112
1111
  }
1113
- function _e() {
1112
+ function Me() {
1114
1113
  return typeof global < "u" ? global : window;
1115
1114
  }
1116
- var q, ye;
1117
- function Ir() {
1118
- return ye || (ye = 1, q = function t(e, r) {
1115
+ var q, De;
1116
+ function Er() {
1117
+ return De || (De = 1, q = function t(e, r) {
1119
1118
  if (e === r) return !0;
1120
1119
  if (e && r && typeof e == "object" && typeof r == "object") {
1121
1120
  if (e.constructor !== r.constructor) return !1;
@@ -1141,12 +1140,12 @@ function Ir() {
1141
1140
  return e !== e && r !== r;
1142
1141
  }), q;
1143
1142
  }
1144
- var wr = Ir();
1145
- const Cr = /* @__PURE__ */ tt(wr), C = typeof window < "u" ? Xe : k;
1146
- function Nr(t, e, r) {
1147
- const [n, i] = Ee(
1143
+ var Ir = Er();
1144
+ const Cr = /* @__PURE__ */ et(Ir), w = typeof window < "u" ? Ye : k;
1145
+ function wr(t, e, r) {
1146
+ const [n, i] = be(
1148
1147
  () => e(t)
1149
- ), s = Ie(() => {
1148
+ ), s = Ee(() => {
1150
1149
  const o = e(t);
1151
1150
  Cr(n, o) || (i(o), r && r());
1152
1151
  }, [
@@ -1154,14 +1153,14 @@ function Nr(t, e, r) {
1154
1153
  t,
1155
1154
  r
1156
1155
  ]);
1157
- return C(s), [
1156
+ return w(s), [
1158
1157
  n,
1159
1158
  s
1160
1159
  ];
1161
1160
  }
1162
- function Pr(t, e, r) {
1163
- const [n, i] = Nr(t, e, r);
1164
- return C(function() {
1161
+ function Nr(t, e, r) {
1162
+ const [n, i] = wr(t, e, r);
1163
+ return w(function() {
1165
1164
  const o = t.getHandlerId();
1166
1165
  if (o != null)
1167
1166
  return t.subscribeToStateChange(i, {
@@ -1174,18 +1173,18 @@ function Pr(t, e, r) {
1174
1173
  i
1175
1174
  ]), n;
1176
1175
  }
1177
- function Le(t, e, r) {
1178
- return Pr(
1176
+ function _e(t, e, r) {
1177
+ return Nr(
1179
1178
  e,
1180
1179
  t || (() => ({})),
1181
1180
  () => r.reconnect()
1182
1181
  );
1183
1182
  }
1184
- function ke(t, e) {
1183
+ function Le(t, e) {
1185
1184
  const r = [];
1186
1185
  return typeof t != "function" && r.push(t), b(() => typeof t == "function" ? t() : t, r);
1187
1186
  }
1188
- function xr(t) {
1187
+ function Pr(t) {
1189
1188
  return b(
1190
1189
  () => t.hooks.dragSource(),
1191
1190
  [
@@ -1193,7 +1192,7 @@ function xr(t) {
1193
1192
  ]
1194
1193
  );
1195
1194
  }
1196
- function Rr(t) {
1195
+ function xr(t) {
1197
1196
  return b(
1198
1197
  () => t.hooks.dragPreview(),
1199
1198
  [
@@ -1202,7 +1201,7 @@ function Rr(t) {
1202
1201
  );
1203
1202
  }
1204
1203
  let $ = !1, G = !1;
1205
- class Mr {
1204
+ class Rr {
1206
1205
  receiveHandlerId(e) {
1207
1206
  this.sourceId = e;
1208
1207
  }
@@ -1286,7 +1285,7 @@ class Mr {
1286
1285
  }
1287
1286
  }
1288
1287
  let Y = !1;
1289
- class _r {
1288
+ class Mr {
1290
1289
  receiveHandlerId(e) {
1291
1290
  this.targetId = e;
1292
1291
  }
@@ -1340,21 +1339,21 @@ class _r {
1340
1339
  this.targetId = null, this.internalMonitor = e.getMonitor();
1341
1340
  }
1342
1341
  }
1343
- function Lr(t, e, r) {
1342
+ function _r(t, e, r) {
1344
1343
  const n = r.getRegistry(), i = n.addTarget(t, e);
1345
1344
  return [
1346
1345
  i,
1347
1346
  () => n.removeTarget(i)
1348
1347
  ];
1349
1348
  }
1350
- function kr(t, e, r) {
1349
+ function Lr(t, e, r) {
1351
1350
  const n = r.getRegistry(), i = n.addSource(t, e);
1352
1351
  return [
1353
1352
  i,
1354
1353
  () => n.removeSource(i)
1355
1354
  ];
1356
1355
  }
1357
- function K(t, e, r, n) {
1356
+ function Q(t, e, r, n) {
1358
1357
  let i;
1359
1358
  if (i !== void 0)
1360
1359
  return !!i;
@@ -1376,54 +1375,54 @@ function K(t, e, r, n) {
1376
1375
  }
1377
1376
  return !0;
1378
1377
  }
1379
- function J(t) {
1378
+ function K(t) {
1380
1379
  return (
1381
1380
  // eslint-disable-next-line no-prototype-builtins
1382
1381
  t !== null && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current")
1383
1382
  );
1384
1383
  }
1385
- function Ar(t) {
1384
+ function kr(t) {
1386
1385
  if (typeof t.type == "string")
1387
1386
  return;
1388
1387
  const e = t.type.displayName || t.type.name || "the component";
1389
1388
  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.`);
1390
1389
  }
1391
- function Hr(t) {
1390
+ function Ar(t) {
1392
1391
  return (e = null, r = null) => {
1393
- if (!We(e)) {
1392
+ if (!ze(e)) {
1394
1393
  const s = e;
1395
1394
  return t(s, r), s;
1396
1395
  }
1397
1396
  const n = e;
1398
- return Ar(n), jr(n, r ? (s) => t(s, r) : t);
1397
+ return kr(n), Hr(n, r ? (s) => t(s, r) : t);
1399
1398
  };
1400
1399
  }
1401
- function Ae(t) {
1400
+ function ke(t) {
1402
1401
  const e = {};
1403
1402
  return Object.keys(t).forEach((r) => {
1404
1403
  const n = t[r];
1405
1404
  if (r.endsWith("Ref"))
1406
1405
  e[r] = t[r];
1407
1406
  else {
1408
- const i = Hr(n);
1407
+ const i = Ar(n);
1409
1408
  e[r] = () => i;
1410
1409
  }
1411
1410
  }), e;
1412
1411
  }
1413
- function Se(t, e) {
1412
+ function ye(t, e) {
1414
1413
  typeof t == "function" ? t(e) : t.current = e;
1415
1414
  }
1416
- function jr(t, e) {
1415
+ function Hr(t, e) {
1417
1416
  const r = t.ref;
1418
1417
  return l(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 ? ae(t, {
1419
1418
  ref: (n) => {
1420
- Se(r, n), Se(e, n);
1419
+ ye(r, n), ye(e, n);
1421
1420
  }
1422
1421
  }) : ae(t, {
1423
1422
  ref: e
1424
1423
  });
1425
1424
  }
1426
- class Ur {
1425
+ class jr {
1427
1426
  receiveHandlerId(e) {
1428
1427
  this.handlerId !== e && (this.handlerId = e, this.reconnect());
1429
1428
  }
@@ -1470,10 +1469,10 @@ class Ur {
1470
1469
  return this.lastConnectedDragPreview !== this.dragPreview;
1471
1470
  }
1472
1471
  didDragSourceOptionsChange() {
1473
- return !K(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
1472
+ return !Q(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
1474
1473
  }
1475
1474
  didDragPreviewOptionsChange() {
1476
- return !K(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
1475
+ return !Q(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
1477
1476
  }
1478
1477
  disconnectDragSource() {
1479
1478
  this.dragSourceUnsubscribe && (this.dragSourceUnsubscribe(), this.dragSourceUnsubscribe = void 0);
@@ -1494,17 +1493,17 @@ class Ur {
1494
1493
  this.dragPreviewNode = null, this.dragPreviewRef = null;
1495
1494
  }
1496
1495
  constructor(e) {
1497
- this.hooks = Ae({
1496
+ this.hooks = ke({
1498
1497
  dragSource: (r, n) => {
1499
- this.clearDragSource(), this.dragSourceOptions = n || null, J(r) ? this.dragSourceRef = r : this.dragSourceNode = r, this.reconnectDragSource();
1498
+ this.clearDragSource(), this.dragSourceOptions = n || null, K(r) ? this.dragSourceRef = r : this.dragSourceNode = r, this.reconnectDragSource();
1500
1499
  },
1501
1500
  dragPreview: (r, n) => {
1502
- this.clearDragPreview(), this.dragPreviewOptions = n || null, J(r) ? this.dragPreviewRef = r : this.dragPreviewNode = r, this.reconnectDragPreview();
1501
+ this.clearDragPreview(), this.dragPreviewOptions = n || null, K(r) ? this.dragPreviewRef = r : this.dragPreviewNode = r, this.reconnectDragPreview();
1503
1502
  }
1504
1503
  }), 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;
1505
1504
  }
1506
1505
  }
1507
- class Vr {
1506
+ class Br {
1508
1507
  get connectTarget() {
1509
1508
  return this.dropTarget;
1510
1509
  }
@@ -1536,7 +1535,7 @@ class Vr {
1536
1535
  return this.lastConnectedDropTarget !== this.dropTarget;
1537
1536
  }
1538
1537
  didOptionsChange() {
1539
- return !K(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
1538
+ return !Q(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
1540
1539
  }
1541
1540
  disconnectDropTarget() {
1542
1541
  this.unsubscribeDropTarget && (this.unsubscribeDropTarget(), this.unsubscribeDropTarget = void 0);
@@ -1548,42 +1547,42 @@ class Vr {
1548
1547
  this.dropTargetRef = null, this.dropTargetNode = null;
1549
1548
  }
1550
1549
  constructor(e) {
1551
- this.hooks = Ae({
1550
+ this.hooks = ke({
1552
1551
  dropTarget: (r, n) => {
1553
- this.clearDropTarget(), this.dropTargetOptions = n, J(r) ? this.dropTargetRef = r : this.dropTargetNode = r, this.reconnect();
1552
+ this.clearDropTarget(), this.dropTargetOptions = n, K(r) ? this.dropTargetRef = r : this.dropTargetNode = r, this.reconnect();
1554
1553
  }
1555
1554
  }), this.handlerId = null, this.dropTargetRef = null, this.dropTargetOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDropTarget = null, this.lastConnectedDropTargetOptions = null, this.backend = e;
1556
1555
  }
1557
1556
  }
1558
1557
  function x() {
1559
- const { dragDropManager: t } = ze(we);
1558
+ const { dragDropManager: t } = We(Ie);
1560
1559
  return l(t != null, "Expected drag drop context"), t;
1561
1560
  }
1562
- function Fr(t, e) {
1561
+ function Ur(t, e) {
1563
1562
  const r = x(), n = b(
1564
- () => new Ur(r.getBackend()),
1563
+ () => new jr(r.getBackend()),
1565
1564
  [
1566
1565
  r
1567
1566
  ]
1568
1567
  );
1569
- return C(() => (n.dragSourceOptions = t || null, n.reconnect(), () => n.disconnectDragSource()), [
1568
+ return w(() => (n.dragSourceOptions = t || null, n.reconnect(), () => n.disconnectDragSource()), [
1570
1569
  n,
1571
1570
  t
1572
- ]), C(() => (n.dragPreviewOptions = e || null, n.reconnect(), () => n.disconnectDragPreview()), [
1571
+ ]), w(() => (n.dragPreviewOptions = e || null, n.reconnect(), () => n.disconnectDragPreview()), [
1573
1572
  n,
1574
1573
  e
1575
1574
  ]), n;
1576
1575
  }
1577
- function Br() {
1576
+ function Vr() {
1578
1577
  const t = x();
1579
1578
  return b(
1580
- () => new Mr(t),
1579
+ () => new Rr(t),
1581
1580
  [
1582
1581
  t
1583
1582
  ]
1584
1583
  );
1585
1584
  }
1586
- class qr {
1585
+ class Fr {
1587
1586
  beginDrag() {
1588
1587
  const e = this.spec, r = this.monitor;
1589
1588
  let n = null;
@@ -1605,9 +1604,9 @@ class qr {
1605
1604
  this.spec = e, this.monitor = r, this.connector = n;
1606
1605
  }
1607
1606
  }
1608
- function $r(t, e, r) {
1607
+ function qr(t, e, r) {
1609
1608
  const n = b(
1610
- () => new qr(t, e, r),
1609
+ () => new Fr(t, e, r),
1611
1610
  [
1612
1611
  e,
1613
1612
  r
@@ -1619,7 +1618,7 @@ function $r(t, e, r) {
1619
1618
  t
1620
1619
  ]), n;
1621
1620
  }
1622
- function Gr(t) {
1621
+ function $r(t) {
1623
1622
  return b(() => {
1624
1623
  const e = t.type;
1625
1624
  return l(e != null, "spec.type must be defined"), e;
@@ -1627,11 +1626,11 @@ function Gr(t) {
1627
1626
  t
1628
1627
  ]);
1629
1628
  }
1630
- function Yr(t, e, r) {
1631
- const n = x(), i = $r(t, e, r), s = Gr(t);
1632
- C(function() {
1629
+ function Gr(t, e, r) {
1630
+ const n = x(), i = qr(t, e, r), s = $r(t);
1631
+ w(function() {
1633
1632
  if (s != null) {
1634
- const [a, c] = kr(s, i, n);
1633
+ const [a, c] = Lr(s, i, n);
1635
1634
  return e.receiveHandlerId(a), r.receiveHandlerId(a), c;
1636
1635
  }
1637
1636
  }, [
@@ -1642,17 +1641,17 @@ function Yr(t, e, r) {
1642
1641
  s
1643
1642
  ]);
1644
1643
  }
1645
- function Xr(t, e) {
1646
- const r = ke(t);
1644
+ function Yr(t, e) {
1645
+ const r = Le(t);
1647
1646
  l(!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)");
1648
- const n = Br(), i = Fr(r.options, r.previewOptions);
1649
- return Yr(r, n, i), [
1650
- Le(r.collect, n, i),
1651
- xr(i),
1652
- Rr(i)
1647
+ const n = Vr(), i = Ur(r.options, r.previewOptions);
1648
+ return Gr(r, n, i), [
1649
+ _e(r.collect, n, i),
1650
+ Pr(i),
1651
+ xr(i)
1653
1652
  ];
1654
1653
  }
1655
- function Wr(t) {
1654
+ function zr(t) {
1656
1655
  return b(
1657
1656
  () => t.hooks.dropTarget(),
1658
1657
  [
@@ -1660,27 +1659,27 @@ function Wr(t) {
1660
1659
  ]
1661
1660
  );
1662
1661
  }
1663
- function zr(t) {
1662
+ function Wr(t) {
1664
1663
  const e = x(), r = b(
1665
- () => new Vr(e.getBackend()),
1664
+ () => new Br(e.getBackend()),
1666
1665
  [
1667
1666
  e
1668
1667
  ]
1669
1668
  );
1670
- return C(() => (r.dropTargetOptions = t || null, r.reconnect(), () => r.disconnectDropTarget()), [
1669
+ return w(() => (r.dropTargetOptions = t || null, r.reconnect(), () => r.disconnectDropTarget()), [
1671
1670
  t
1672
1671
  ]), r;
1673
1672
  }
1674
- function Qr() {
1673
+ function Xr() {
1675
1674
  const t = x();
1676
1675
  return b(
1677
- () => new _r(t),
1676
+ () => new Mr(t),
1678
1677
  [
1679
1678
  t
1680
1679
  ]
1681
1680
  );
1682
1681
  }
1683
- function Kr(t) {
1682
+ function Zr(t) {
1684
1683
  const { accept: e } = t;
1685
1684
  return b(() => (l(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
1686
1685
  e
@@ -1688,7 +1687,7 @@ function Kr(t) {
1688
1687
  e
1689
1688
  ]);
1690
1689
  }
1691
- class Jr {
1690
+ class Qr {
1692
1691
  canDrop() {
1693
1692
  const e = this.spec, r = this.monitor;
1694
1693
  return e.canDrop ? e.canDrop(r.getItem(), r) : !0;
@@ -1706,9 +1705,9 @@ class Jr {
1706
1705
  this.spec = e, this.monitor = r;
1707
1706
  }
1708
1707
  }
1709
- function Zr(t, e) {
1708
+ function Kr(t, e) {
1710
1709
  const r = b(
1711
- () => new Jr(t, e),
1710
+ () => new Qr(t, e),
1712
1711
  [
1713
1712
  e
1714
1713
  ]
@@ -1719,10 +1718,10 @@ function Zr(t, e) {
1719
1718
  t
1720
1719
  ]), r;
1721
1720
  }
1722
- function en(t, e, r) {
1723
- const n = x(), i = Zr(t, e), s = Kr(t);
1724
- C(function() {
1725
- const [a, c] = Lr(s, i, n);
1721
+ function Jr(t, e, r) {
1722
+ const n = x(), i = Kr(t, e), s = Zr(t);
1723
+ w(function() {
1724
+ const [a, c] = _r(s, i, n);
1726
1725
  return e.receiveHandlerId(a), r.receiveHandlerId(a), c;
1727
1726
  }, [
1728
1727
  n,
@@ -1734,23 +1733,23 @@ function en(t, e, r) {
1734
1733
  ).join("|")
1735
1734
  ]);
1736
1735
  }
1737
- function tn(t, e) {
1738
- const r = ke(t), n = Qr(), i = zr(r.options);
1739
- return en(r, n, i), [
1740
- Le(r.collect, n, i),
1741
- Wr(i)
1736
+ function en(t, e) {
1737
+ const r = Le(t), n = Xr(), i = Wr(r.options);
1738
+ return Jr(r, n, i), [
1739
+ _e(r.collect, n, i),
1740
+ zr(i)
1742
1741
  ];
1743
1742
  }
1744
- function He(t) {
1743
+ function Ae(t) {
1745
1744
  let e = null;
1746
1745
  return () => (e == null && (e = t()), e);
1747
1746
  }
1748
- function rn(t, e) {
1747
+ function tn(t, e) {
1749
1748
  return t.filter(
1750
1749
  (r) => r !== e
1751
1750
  );
1752
1751
  }
1753
- function nn(t, e) {
1752
+ function rn(t, e) {
1754
1753
  const r = /* @__PURE__ */ new Set(), n = (s) => r.add(s);
1755
1754
  t.forEach(n), e.forEach(n);
1756
1755
  const i = [];
@@ -1758,16 +1757,16 @@ function nn(t, e) {
1758
1757
  (s) => i.push(s)
1759
1758
  ), i;
1760
1759
  }
1761
- class sn {
1760
+ class nn {
1762
1761
  enter(e) {
1763
1762
  const r = this.entered.length, n = (i) => this.isNodeInDocument(i) && (!i.contains || i.contains(e));
1764
- return this.entered = nn(this.entered.filter(n), [
1763
+ return this.entered = rn(this.entered.filter(n), [
1765
1764
  e
1766
1765
  ]), r === 0 && this.entered.length > 0;
1767
1766
  }
1768
1767
  leave(e) {
1769
1768
  const r = this.entered.length;
1770
- return this.entered = rn(this.entered.filter(this.isNodeInDocument), e), r > 0 && this.entered.length === 0;
1769
+ return this.entered = tn(this.entered.filter(this.isNodeInDocument), e), r > 0 && this.entered.length === 0;
1771
1770
  }
1772
1771
  reset() {
1773
1772
  this.entered = [];
@@ -1776,7 +1775,7 @@ class sn {
1776
1775
  this.entered = [], this.isNodeInDocument = e;
1777
1776
  }
1778
1777
  }
1779
- class on {
1778
+ class sn {
1780
1779
  initializeExposedProperties() {
1781
1780
  Object.keys(this.config.exposeProperties).forEach((e) => {
1782
1781
  Object.defineProperty(this.item, e, {
@@ -1816,22 +1815,22 @@ class on {
1816
1815
  this.config = e, this.item = {}, this.initializeExposedProperties();
1817
1816
  }
1818
1817
  }
1819
- const je = "__NATIVE_FILE__", Ue = "__NATIVE_URL__", Ve = "__NATIVE_TEXT__", Fe = "__NATIVE_HTML__", Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1818
+ const He = "__NATIVE_FILE__", je = "__NATIVE_URL__", Be = "__NATIVE_TEXT__", Ue = "__NATIVE_HTML__", Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1820
1819
  __proto__: null,
1821
- FILE: je,
1822
- HTML: Fe,
1823
- TEXT: Ve,
1824
- URL: Ue
1820
+ FILE: He,
1821
+ HTML: Ue,
1822
+ TEXT: Be,
1823
+ URL: je
1825
1824
  }, Symbol.toStringTag, { value: "Module" }));
1826
- function X(t, e, r) {
1825
+ function z(t, e, r) {
1827
1826
  const n = e.reduce(
1828
1827
  (i, s) => i || t.getData(s),
1829
1828
  ""
1830
1829
  );
1831
1830
  return n ?? r;
1832
1831
  }
1833
- const Z = {
1834
- [je]: {
1832
+ const J = {
1833
+ [He]: {
1835
1834
  exposeProperties: {
1836
1835
  files: (t) => Array.prototype.slice.call(t.files),
1837
1836
  items: (t) => t.items,
@@ -1841,9 +1840,9 @@ const Z = {
1841
1840
  "Files"
1842
1841
  ]
1843
1842
  },
1844
- [Fe]: {
1843
+ [Ue]: {
1845
1844
  exposeProperties: {
1846
- html: (t, e) => X(t, e, ""),
1845
+ html: (t, e) => z(t, e, ""),
1847
1846
  dataTransfer: (t) => t
1848
1847
  },
1849
1848
  matchesTypes: [
@@ -1851,9 +1850,9 @@ const Z = {
1851
1850
  "text/html"
1852
1851
  ]
1853
1852
  },
1854
- [Ue]: {
1853
+ [je]: {
1855
1854
  exposeProperties: {
1856
- urls: (t, e) => X(t, e, "").split(`
1855
+ urls: (t, e) => z(t, e, "").split(`
1857
1856
  `),
1858
1857
  dataTransfer: (t) => t
1859
1858
  },
@@ -1862,9 +1861,9 @@ const Z = {
1862
1861
  "text/uri-list"
1863
1862
  ]
1864
1863
  },
1865
- [Ve]: {
1864
+ [Be]: {
1866
1865
  exposeProperties: {
1867
- text: (t, e) => X(t, e, ""),
1866
+ text: (t, e) => z(t, e, ""),
1868
1867
  dataTransfer: (t) => t
1869
1868
  },
1870
1869
  matchesTypes: [
@@ -1873,30 +1872,30 @@ const Z = {
1873
1872
  ]
1874
1873
  }
1875
1874
  };
1876
- function an(t, e) {
1877
- const r = Z[t];
1875
+ function on(t, e) {
1876
+ const r = J[t];
1878
1877
  if (!r)
1879
1878
  throw new Error(`native type ${t} has no configuration`);
1880
- const n = new on(r);
1879
+ const n = new sn(r);
1881
1880
  return n.loadDataTransfer(e), n;
1882
1881
  }
1883
1882
  function W(t) {
1884
1883
  if (!t)
1885
1884
  return null;
1886
1885
  const e = Array.prototype.slice.call(t.types || []);
1887
- return Object.keys(Z).filter((r) => {
1888
- const n = Z[r];
1886
+ return Object.keys(J).filter((r) => {
1887
+ const n = J[r];
1889
1888
  return n?.matchesTypes ? n.matchesTypes.some(
1890
1889
  (i) => e.indexOf(i) > -1
1891
1890
  ) : !1;
1892
1891
  })[0] || null;
1893
1892
  }
1894
- const cn = He(
1893
+ const an = Ae(
1895
1894
  () => /firefox/i.test(navigator.userAgent)
1896
- ), Be = He(
1895
+ ), Ve = Ae(
1897
1896
  () => !!window.safari
1898
1897
  );
1899
- class Te {
1898
+ class Oe {
1900
1899
  interpolate(e) {
1901
1900
  const { xs: r, ys: n, c1s: i, c2s: s, c3s: o } = this;
1902
1901
  let a = r.length - 1;
@@ -1952,9 +1951,9 @@ class Te {
1952
1951
  this.xs = e, this.ys = r, this.c1s = d, this.c2s = f, this.c3s = p;
1953
1952
  }
1954
1953
  }
1955
- const un = 1;
1956
- function qe(t) {
1957
- const e = t.nodeType === un ? t : t.parentElement;
1954
+ const cn = 1;
1955
+ function Fe(t) {
1956
+ const e = t.nodeType === cn ? t : t.parentElement;
1958
1957
  if (!e)
1959
1958
  return null;
1960
1959
  const { top: r, left: n } = e.getBoundingClientRect();
@@ -1969,23 +1968,23 @@ function M(t) {
1969
1968
  y: t.clientY
1970
1969
  };
1971
1970
  }
1972
- function ln(t) {
1971
+ function un(t) {
1973
1972
  var e;
1974
- return t.nodeName === "IMG" && (cn() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
1973
+ return t.nodeName === "IMG" && (an() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
1975
1974
  }
1976
- function dn(t, e, r, n) {
1975
+ function ln(t, e, r, n) {
1977
1976
  let i = t ? e.width : r, s = t ? e.height : n;
1978
- return Be() && t && (s /= window.devicePixelRatio, i /= window.devicePixelRatio), {
1977
+ return Ve() && t && (s /= window.devicePixelRatio, i /= window.devicePixelRatio), {
1979
1978
  dragPreviewWidth: i,
1980
1979
  dragPreviewHeight: s
1981
1980
  };
1982
1981
  }
1983
- function gn(t, e, r, n, i) {
1984
- const s = ln(e), a = qe(s ? t : e), c = {
1982
+ function dn(t, e, r, n, i) {
1983
+ const s = un(e), a = Fe(s ? t : e), c = {
1985
1984
  x: r.x - a.x,
1986
1985
  y: r.y - a.y
1987
- }, { offsetWidth: d, offsetHeight: f } = t, { anchorX: p, anchorY: g } = n, { dragPreviewWidth: u, dragPreviewHeight: D } = dn(s, e, d, f), h = () => {
1988
- let oe = new Te([
1986
+ }, { offsetWidth: d, offsetHeight: f } = t, { anchorX: p, anchorY: g } = n, { dragPreviewWidth: u, dragPreviewHeight: D } = ln(s, e, d, f), h = () => {
1987
+ let oe = new Oe([
1989
1988
  0,
1990
1989
  0.5,
1991
1990
  1
@@ -1997,8 +1996,8 @@ function gn(t, e, r, n, i) {
1997
1996
  // Dock to the bottom
1998
1997
  c.y + D - f
1999
1998
  ]).interpolate(g);
2000
- return Be() && s && (oe += (window.devicePixelRatio - 1) * D), oe;
2001
- }, v = () => new Te([
1999
+ return Ve() && s && (oe += (window.devicePixelRatio - 1) * D), oe;
2000
+ }, v = () => new Oe([
2002
2001
  0,
2003
2002
  0.5,
2004
2003
  1
@@ -2009,13 +2008,13 @@ function gn(t, e, r, n, i) {
2009
2008
  c.x / d * u,
2010
2009
  // Dock to the right
2011
2010
  c.x + u - d
2012
- ]).interpolate(p), { offsetX: y, offsetY: S } = i, I = y === 0 || y, F = S === 0 || S;
2011
+ ]).interpolate(p), { offsetX: y, offsetY: S } = i, C = y === 0 || y, V = S === 0 || S;
2013
2012
  return {
2014
- x: I ? y : v(),
2015
- y: F ? S : h()
2013
+ x: C ? y : v(),
2014
+ y: V ? S : h()
2016
2015
  };
2017
2016
  }
2018
- class fn {
2017
+ class gn {
2019
2018
  get window() {
2020
2019
  if (this.globalContext)
2021
2020
  return this.globalContext;
@@ -2034,7 +2033,7 @@ class fn {
2034
2033
  this.ownerDocument = null, this.globalContext = e, this.optionsArgs = r;
2035
2034
  }
2036
2035
  }
2037
- function hn(t, e, r) {
2036
+ function fn(t, e, r) {
2038
2037
  return e in t ? Object.defineProperty(t, e, {
2039
2038
  value: r,
2040
2039
  enumerable: !0,
@@ -2042,18 +2041,18 @@ function hn(t, e, r) {
2042
2041
  writable: !0
2043
2042
  }) : t[e] = r, t;
2044
2043
  }
2045
- function be(t) {
2044
+ function Te(t) {
2046
2045
  for (var e = 1; e < arguments.length; e++) {
2047
2046
  var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
2048
2047
  typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
2049
2048
  return Object.getOwnPropertyDescriptor(r, i).enumerable;
2050
2049
  }))), n.forEach(function(i) {
2051
- hn(t, i, r[i]);
2050
+ fn(t, i, r[i]);
2052
2051
  });
2053
2052
  }
2054
2053
  return t;
2055
2054
  }
2056
- class pn {
2055
+ class hn {
2057
2056
  /**
2058
2057
  * Generate profiling statistics for the HTML5Backend.
2059
2058
  */
@@ -2124,7 +2123,7 @@ class pn {
2124
2123
  }
2125
2124
  getCurrentSourceNodeOptions() {
2126
2125
  const e = this.monitor.getSourceId(), r = this.sourceNodeOptions.get(e);
2127
- return be({
2126
+ return Te({
2128
2127
  dropEffect: this.altKeyPressed ? "copy" : "move"
2129
2128
  }, r || {});
2130
2129
  }
@@ -2133,7 +2132,7 @@ class pn {
2133
2132
  }
2134
2133
  getCurrentSourcePreviewNodeOptions() {
2135
2134
  const e = this.monitor.getSourceId(), r = this.sourcePreviewNodeOptions.get(e);
2136
- return be({
2135
+ return Te({
2137
2136
  anchorX: 0.5,
2138
2137
  anchorY: 0.5,
2139
2138
  captureDraggingState: !1
@@ -2141,12 +2140,12 @@ class pn {
2141
2140
  }
2142
2141
  isDraggingNativeItem() {
2143
2142
  const e = this.monitor.getItemType();
2144
- return Object.keys(Oe).some(
2145
- (r) => Oe[r] === e
2143
+ return Object.keys(Se).some(
2144
+ (r) => Se[r] === e
2146
2145
  );
2147
2146
  }
2148
2147
  beginDragNativeItem(e, r) {
2149
- this.clearCurrentDragSourceNode(), this.currentNativeSource = an(e, r), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([
2148
+ this.clearCurrentDragSourceNode(), this.currentNativeSource = on(e, r), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([
2150
2149
  this.currentNativeHandle
2151
2150
  ]);
2152
2151
  }
@@ -2183,7 +2182,7 @@ class pn {
2183
2182
  constructor(e, r, n) {
2184
2183
  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) => {
2185
2184
  const s = this.sourceNodes.get(i);
2186
- return s && qe(s) || null;
2185
+ return s && Fe(s) || null;
2187
2186
  }, this.endDragNativeItem = () => {
2188
2187
  this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
2189
2188
  }, this.isNodeInDocument = (i) => !!(i && this.document && this.document.body && this.document.body.contains(i)), this.endDragIfSourceWasRemovedFromDOM = () => {
@@ -2215,14 +2214,14 @@ class pn {
2215
2214
  if (a && typeof a.setDragImage == "function") {
2216
2215
  const f = this.monitor.getSourceId(), p = this.sourceNodes.get(f), g = this.sourcePreviewNodes.get(f) || p;
2217
2216
  if (g) {
2218
- const { anchorX: u, anchorY: D, offsetX: h, offsetY: v } = this.getCurrentSourcePreviewNodeOptions(), I = gn(p, g, o, {
2217
+ const { anchorX: u, anchorY: D, offsetX: h, offsetY: v } = this.getCurrentSourcePreviewNodeOptions(), C = dn(p, g, o, {
2219
2218
  anchorX: u,
2220
2219
  anchorY: D
2221
2220
  }, {
2222
2221
  offsetX: h,
2223
2222
  offsetY: v
2224
2223
  });
2225
- a.setDragImage(g, I.x, I.y);
2224
+ a.setDragImage(g, C.x, C.y);
2226
2225
  }
2227
2226
  }
2228
2227
  try {
@@ -2297,25 +2296,25 @@ class pn {
2297
2296
  }, this.handleSelectStart = (i) => {
2298
2297
  const s = i.target;
2299
2298
  typeof s.dragDrop == "function" && (s.tagName === "INPUT" || s.tagName === "SELECT" || s.tagName === "TEXTAREA" || s.isContentEditable || (i.preventDefault(), s.dragDrop()));
2300
- }, this.options = new fn(r, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new sn(this.isNodeInDocument);
2299
+ }, this.options = new gn(r, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new nn(this.isNodeInDocument);
2301
2300
  }
2302
2301
  }
2303
- const mn = function(e, r, n) {
2304
- return new pn(e, r, n);
2305
- }, vn = (t) => /* @__PURE__ */ w.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ w.createElement("circle", { cx: 6, cy: 4, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 10, cy: 4, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 6, cy: 8, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 10, cy: 8, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 6, cy: 12, r: 1.25, fill: "#2B2B2B" }), /* @__PURE__ */ w.createElement("circle", { cx: 10, cy: 12, r: 1.25, fill: "#2B2B2B" }));
2306
- function Dn({
2302
+ const pn = function(e, r, n) {
2303
+ return new hn(e, r, n);
2304
+ }, mn = (t) => /* @__PURE__ */ E.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ E.createElement("g", { clipPath: "url(#clip0_2638_2364)" }, /* @__PURE__ */ E.createElement("path", { d: "M5.25 2.84375C5.61244 2.84375 5.90625 3.13756 5.90625 3.5C5.90625 3.86244 5.61244 4.15625 5.25 4.15625C4.88756 4.15625 4.59375 3.86244 4.59375 3.5C4.59375 3.13756 4.88756 2.84375 5.25 2.84375Z", fill: "#2B2B2B", stroke: "#2B2B2B", strokeWidth: 0.4375 }), /* @__PURE__ */ E.createElement("path", { d: "M7.875 3.5C7.875 3.98325 8.26675 4.375 8.75 4.375C9.23325 4.375 9.625 3.98325 9.625 3.5C9.625 3.01675 9.23325 2.625 8.75 2.625C8.26675 2.625 7.875 3.01675 7.875 3.5Z", fill: "#2B2B2B" }), /* @__PURE__ */ E.createElement("path", { d: "M4.375 7C4.375 7.48325 4.76675 7.875 5.25 7.875C5.73325 7.875 6.125 7.48325 6.125 7C6.125 6.51675 5.73325 6.125 5.25 6.125C4.76675 6.125 4.375 6.51675 4.375 7Z", fill: "#2B2B2B" }), /* @__PURE__ */ E.createElement("path", { d: "M7.875 7C7.875 7.48325 8.26675 7.875 8.75 7.875C9.23325 7.875 9.625 7.48325 9.625 7C9.625 6.51675 9.23325 6.125 8.75 6.125C8.26675 6.125 7.875 6.51675 7.875 7Z", fill: "#2B2B2B" }), /* @__PURE__ */ E.createElement("path", { d: "M4.375 10.5C4.375 10.9832 4.76675 11.375 5.25 11.375C5.73325 11.375 6.125 10.9832 6.125 10.5C6.125 10.0168 5.73325 9.625 5.25 9.625C4.76675 9.625 4.375 10.0168 4.375 10.5Z", fill: "#2B2B2B" }), /* @__PURE__ */ E.createElement("path", { d: "M7.875 10.5C7.875 10.9832 8.26675 11.375 8.75 11.375C9.23325 11.375 9.625 10.9832 9.625 10.5C9.625 10.0168 9.23325 9.625 8.75 9.625C8.26675 9.625 7.875 10.0168 7.875 10.5Z", fill: "#2B2B2B" })), /* @__PURE__ */ E.createElement("defs", null, /* @__PURE__ */ E.createElement("clipPath", { id: "clip0_2638_2364" }, /* @__PURE__ */ E.createElement("rect", { width: 14, height: 14, fill: "white" }))));
2305
+ function vn({
2307
2306
  column: t,
2308
2307
  index: e,
2309
2308
  moveListItem: r,
2310
2309
  visibility: n,
2311
2310
  onToggleVisibility: i
2312
2311
  }) {
2313
- const s = t.isDraggable !== !1, o = t.toogleVisibility !== !1 && t.toggleVisibility !== !1, a = Qe(null), [, c] = tn({
2312
+ const s = t.isDraggable !== !1, o = t.toogleVisibility !== !1 && t.toggleVisibility !== !1, a = Xe(null), [, c] = en({
2314
2313
  accept: ce,
2315
2314
  hover(p) {
2316
2315
  s && p.index !== e && (r(p.index, e), p.index = e);
2317
2316
  }
2318
- }), [{ isDragging: d }, f] = Xr({
2317
+ }), [{ isDragging: d }, f] = Yr({
2319
2318
  type: ce,
2320
2319
  item: { index: e },
2321
2320
  canDrag: s,
@@ -2323,31 +2322,37 @@ function Dn({
2323
2322
  isDragging: p.isDragging()
2324
2323
  })
2325
2324
  });
2326
- return s ? f(c(a)) : c(a), /* @__PURE__ */ E(
2325
+ return s ? f(c(a)) : c(a), /* @__PURE__ */ I(
2327
2326
  "div",
2328
2327
  {
2329
2328
  ref: a,
2330
- className: ue(
2331
- "ckds-dragable-list-item flex items-center p-2 border-none rounded-md gap-1",
2332
- d ? "opacity-50" : "opacity-100"
2333
- ),
2329
+ className: "ckds-dragable-list-item",
2330
+ style: { opacity: d ? 0.5 : 1 },
2334
2331
  children: [
2335
- /* @__PURE__ */ m("div", { className: ue("ckds-drag-handle", s ? "cursor-move" : "opacity-30 cursor-not-allowed"), children: /* @__PURE__ */ m(vn, { className: "text-base-content" }) }),
2336
- /* @__PURE__ */ m(_, { variant: "body-sm", className: "text-base-content text-xs grow ml-2", children: t.header }),
2337
2332
  /* @__PURE__ */ m(
2338
- Ke,
2333
+ "div",
2334
+ {
2335
+ className: "ckds-drag-handle",
2336
+ style: { cursor: s ? "grab" : "not-allowed", opacity: s ? 1 : 0.3 },
2337
+ children: /* @__PURE__ */ m(mn, { style: { color: "var(--ckcl-black-500, #2b2b2b)", width: "14px", height: "14px" } })
2338
+ }
2339
+ ),
2340
+ /* @__PURE__ */ m(_, { variant: "body-sm", className: "ckds-dragable-list-item-label", children: t.header }),
2341
+ /* @__PURE__ */ m(
2342
+ Je,
2339
2343
  {
2340
2344
  checked: n[t.accessorKey] !== !1,
2341
2345
  onChange: () => i(t.accessorKey),
2342
2346
  disabled: !o,
2343
- className: "mr-2"
2347
+ className: "ckds-dragable-list-item-toggle",
2348
+ size: "small"
2344
2349
  }
2345
2350
  )
2346
2351
  ]
2347
2352
  }
2348
2353
  );
2349
2354
  }
2350
- function Rn({
2355
+ function Pn({
2351
2356
  draftConfig: t,
2352
2357
  setDraftConfig: e,
2353
2358
  moveDraftColumn: r,
@@ -2357,7 +2362,7 @@ function Rn({
2357
2362
  isDefault: o,
2358
2363
  isConfigChanged: a
2359
2364
  }) {
2360
- const [c, d] = Ee(""), f = Ie(
2365
+ const [c, d] = be(""), f = Ee(
2361
2366
  (g) => {
2362
2367
  e((u) => ({
2363
2368
  ...u,
@@ -2371,36 +2376,39 @@ function Rn({
2371
2376
  ), p = t.columns.filter(
2372
2377
  (g) => g.header.toLowerCase().includes(c.toLowerCase())
2373
2378
  );
2374
- return /* @__PURE__ */ E(Tr, { backend: mn, children: [
2375
- /* @__PURE__ */ E("div", { className: "ckds-column-manager-wrapper", children: [
2376
- /* @__PURE__ */ E("div", { className: "flex items-center justify-between", children: [
2379
+ return /* @__PURE__ */ I(Or, { backend: pn, children: [
2380
+ /* @__PURE__ */ I("div", { className: "ckds-column-manager-wrapper", children: [
2381
+ /* @__PURE__ */ I("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
2377
2382
  /* @__PURE__ */ m(_, { variant: "body-lg", weight: "semibold", children: "Column Manager" }),
2378
2383
  /* @__PURE__ */ m(
2379
- B,
2384
+ F,
2380
2385
  {
2381
2386
  onClick: s,
2382
2387
  variant: "hyperlink",
2383
2388
  disabled: o,
2384
- icons: { left: /* @__PURE__ */ m(Je, {}) },
2385
- label: "Reset to default"
2389
+ icons: { left: /* @__PURE__ */ m(Ze, {}) },
2390
+ label: "Reset",
2391
+ size: "medium",
2392
+ className: o ? "" : "ckds-reset-btn-active"
2386
2393
  }
2387
2394
  )
2388
2395
  ] }),
2389
- /* @__PURE__ */ E("div", { className: "flex mt-6", children: [
2390
- /* @__PURE__ */ m(et, { draftConfig: t, setDraftConfig: e }),
2391
- /* @__PURE__ */ E("div", { className: "flex-1 ml-7", children: [
2396
+ /* @__PURE__ */ I("div", { style: { display: "flex", marginTop: "24px" }, children: [
2397
+ /* @__PURE__ */ m(Ke, { draftConfig: t, setDraftConfig: e }),
2398
+ /* @__PURE__ */ I("div", { style: { flex: 1, marginLeft: "28px" }, children: [
2392
2399
  /* @__PURE__ */ m(_, { variant: "body-sm", weight: "medium", children: "Visible Columns" }),
2393
- /* @__PURE__ */ m(_, { variant: "body-xs", className: "text-base-400", children: "Toggle columns on/off and drag to reorder" }),
2400
+ /* @__PURE__ */ m(_, { variant: "body-xs", color: "secondary", children: "Toggle columns on/off and drag to reorder" }),
2394
2401
  /* @__PURE__ */ m(
2395
2402
  "div",
2396
2403
  {
2397
- className: `pb-3 mt-4 ${p.length > 9 ? "ckds-search-border-bottom" : ""}`,
2398
- children: /* @__PURE__ */ E("div", { className: "ckds-search-input-wrapper", children: [
2399
- /* @__PURE__ */ m(Ze, {}),
2404
+ className: p.length > 9 ? "ckds-search-border-bottom" : "",
2405
+ style: { paddingBottom: "12px", marginTop: "16px" },
2406
+ children: /* @__PURE__ */ I("div", { className: "ckds-search-input-wrapper", children: [
2407
+ /* @__PURE__ */ m(Qe, {}),
2400
2408
  /* @__PURE__ */ m(
2401
2409
  "input",
2402
2410
  {
2403
- placeholder: "Search here",
2411
+ placeholder: "Search",
2404
2412
  className: "ckds-table-search-input",
2405
2413
  value: c,
2406
2414
  onChange: (g) => d(g.target.value)
@@ -2409,8 +2417,8 @@ function Rn({
2409
2417
  ] })
2410
2418
  }
2411
2419
  ),
2412
- /* @__PURE__ */ m("div", { children: c && p.length === 0 ? /* @__PURE__ */ m("div", { className: "flex flex-1 items-center justify-center h-[318px]", children: /* @__PURE__ */ m("p", { className: "text-sm text-base-400", children: "No columns found" }) }) : /* @__PURE__ */ m("div", { className: "ckds-dragable-list ckds-custom-scrollbar", children: p.map((g, u) => /* @__PURE__ */ m(
2413
- Dn,
2420
+ /* @__PURE__ */ m("div", { children: c && p.length === 0 ? /* @__PURE__ */ m("div", { style: { display: "flex", flex: 1, alignItems: "center", justifyContent: "center", height: "318px" }, children: /* @__PURE__ */ m("p", { className: "text-sm", style: { color: "var(--ckcl-black-400, #737373)" }, children: "No columns found" }) }) : /* @__PURE__ */ m("div", { className: "ckds-dragable-list", children: p.map((g, u) => /* @__PURE__ */ m(
2421
+ vn,
2414
2422
  {
2415
2423
  column: g,
2416
2424
  index: u,
@@ -2423,22 +2431,22 @@ function Rn({
2423
2431
  ] })
2424
2432
  ] })
2425
2433
  ] }),
2426
- /* @__PURE__ */ E("div", { className: "ckds-column-manager-footer", children: [
2434
+ /* @__PURE__ */ I("div", { className: "ckds-column-manager-footer", children: [
2427
2435
  /* @__PURE__ */ m(
2428
- B,
2436
+ F,
2429
2437
  {
2430
2438
  onClick: () => i({ open: !1, type: "columnManager", activeOption: "" }),
2431
2439
  variant: "secondary",
2432
- size: "large",
2440
+ size: "medium",
2433
2441
  label: "Cancel"
2434
2442
  }
2435
2443
  ),
2436
2444
  /* @__PURE__ */ m(
2437
- B,
2445
+ F,
2438
2446
  {
2439
2447
  onClick: n,
2440
2448
  variant: "primary",
2441
- size: "large",
2449
+ size: "medium",
2442
2450
  disabled: !a,
2443
2451
  label: "Apply"
2444
2452
  }
@@ -2447,5 +2455,5 @@ function Rn({
2447
2455
  ] });
2448
2456
  }
2449
2457
  export {
2450
- Rn as default
2458
+ Pn as default
2451
2459
  };