@iclips/ui 1.2.15 → 1.2.17

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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as f, jsxs as b, Fragment as Ue } from "react/jsx-runtime";
2
2
  import * as Na from "@radix-ui/react-accordion";
3
- import { ChevronDownIcon as tl, Loader2 as $4, CheckIcon as nl, ChevronUpIcon as Z4, ChevronsLeft as K4, ChevronLeft as rl, ChevronRight as An, ChevronsRight as q4, X as Dr, Filter as H0, Check as U0, Clock as hi, CalendarIcon as Ko, Plus as ar, Search as F0, ArrowUpDown as X4, CircleIcon as Kc, ChevronRightIcon as il, User as al, Settings as ey, HelpCircle as ty, LogOut as ny, Pin as ry, ChevronDown as Xa, MoreHorizontal as J0, ArrowRight as V0, ArrowLeft as iy, XIcon as Y0, SearchIcon as ay, Smile as _0, Trash2 as qo, AlertCircle as ln, Paperclip as Er, Type as oy, Send as sy, Bold as Q0, Italic as G0, Underline as W0, List as $0, ListOrdered as Z0, Link as K0, Download as Xo, Printer as ly, Eye as es, ChevronUp as fy, Minus as cy, Euro as dy, DollarSign as uy, Coins as hy, Undo as py, Redo as my, Heading1 as gy, Heading2 as by, Heading3 as yy, Strikethrough as vy, AlignLeft as wy, AlignCenter as My, AlignRight as xy, Quote as Cy, Image as Ly, PanelLeftOpen as qc, PanelLeftClose as Xc, Calendar as ka, Youtube as Ny, Twitter as ky, Facebook as Sy, Linkedin as Iy, Instagram as Ty, GripVertical as jy, CheckCircle2 as q0, Circle as X0, Edit as Zf, XCircle as Dy, MinusIcon as Ey, MoreVertical as Ay, CheckSquare as zy, MessageSquare as e1, Activity as Oy, TrendingUp as Py, TrendingDown as Ry, MoreHorizontalIcon as By, ChevronLeftIcon as Hy, EyeOff as Uy, GripVerticalIcon as Fy, Star as Jy, PanelLeftIcon as Vy, Github as Yy, Link2 as _y, FileText as Qy, Pencil as Gy, RefreshCw as Wy, PlusCircle as $y, Upload as Zy } from "lucide-react";
3
+ import { ChevronDownIcon as tl, Loader2 as $4, CheckIcon as nl, ChevronUpIcon as Z4, ChevronsLeft as K4, ChevronLeft as rl, ChevronRight as An, ChevronsRight as q4, X as Dr, Filter as H0, Check as U0, Clock as hi, CalendarIcon as Ko, Plus as ar, Search as F0, ArrowUpDown as X4, CircleIcon as Kc, ChevronRightIcon as il, User as al, Settings as ey, HelpCircle as ty, LogOut as ny, Pin as ry, ChevronDown as Xa, MoreHorizontal as J0, ArrowRight as V0, ArrowLeft as iy, XIcon as Y0, SearchIcon as ay, Smile as _0, Trash2 as qo, AlertCircle as ln, Paperclip as Er, Type as oy, Send as sy, Bold as Q0, Italic as G0, Underline as W0, List as $0, ListOrdered as Z0, Link as K0, Download as Xo, Printer as ly, Eye as es, ChevronUp as fy, Minus as cy, Euro as dy, DollarSign as uy, Coins as hy, Undo as py, Redo as my, Heading1 as gy, Heading2 as by, Heading3 as yy, Strikethrough as vy, AlignLeft as wy, AlignCenter as My, AlignRight as xy, Quote as Cy, Image as Ly, PanelLeftOpen as qc, PanelLeftClose as Xc, Calendar as ka, Youtube as Ny, Twitter as ky, Facebook as Sy, Linkedin as Iy, Instagram as Ty, GripVertical as jy, CheckCircle2 as q0, Circle as X0, Edit as Zf, MinusIcon as Dy, XCircle as Ey, MoreVertical as Ay, CheckSquare as zy, MessageSquare as e1, Activity as Oy, TrendingUp as Py, TrendingDown as Ry, MoreHorizontalIcon as By, ChevronLeftIcon as Hy, EyeOff as Uy, GripVerticalIcon as Fy, Star as Jy, PanelLeftIcon as Vy, Github as Yy, Link2 as _y, FileText as Qy, Pencil as Gy, RefreshCw as Wy, PlusCircle as $y, Upload as Zy } from "lucide-react";
4
4
  import { clsx as Ky } from "clsx";
5
5
  import { twMerge as qy } from "tailwind-merge";
6
6
  import * as I from "react";
@@ -51942,69 +51942,7 @@ function gD({
51942
51942
  }
51943
51943
  const bD = I.forwardRef(gD);
51944
51944
  bD.displayName = "EditableBadge";
51945
- const yD = {
51946
- "first-use": "bg-primary/8 text-primary",
51947
- cleared: "bg-success/10 text-success",
51948
- "no-results": "bg-muted text-muted-foreground",
51949
- error: "bg-destructive/10 text-destructive"
51950
- };
51951
- function N7({
51952
- icon: t,
51953
- title: e,
51954
- description: n,
51955
- variant: r = "first-use",
51956
- primaryAction: i,
51957
- secondaryAction: a,
51958
- className: o
51959
- }) {
51960
- return /* @__PURE__ */ b(
51961
- "div",
51962
- {
51963
- className: M(
51964
- "flex flex-col items-center justify-center gap-4 py-12 px-6 text-center",
51965
- o
51966
- ),
51967
- role: "status",
51968
- "aria-live": "polite",
51969
- children: [
51970
- /* @__PURE__ */ f(
51971
- "div",
51972
- {
51973
- className: M(
51974
- "flex size-16 items-center justify-center rounded-2xl",
51975
- yD[r]
51976
- ),
51977
- "aria-hidden": "true",
51978
- children: /* @__PURE__ */ f(t, { className: "size-8" })
51979
- }
51980
- ),
51981
- /* @__PURE__ */ b("div", { className: "max-w-sm space-y-1.5", children: [
51982
- /* @__PURE__ */ f("h3", { className: "text-base font-semibold leading-snug text-foreground", children: e }),
51983
- /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground leading-relaxed", children: n })
51984
- ] }),
51985
- (i || a) && /* @__PURE__ */ b("div", { className: "flex flex-wrap items-center justify-center gap-3 pt-1", children: [
51986
- i && /* @__PURE__ */ f(
51987
- B,
51988
- {
51989
- variant: i.variant ?? "default",
51990
- onClick: i.onClick,
51991
- children: i.label
51992
- }
51993
- ),
51994
- a && /* @__PURE__ */ f(
51995
- B,
51996
- {
51997
- variant: a.variant ?? "outline",
51998
- onClick: a.onClick,
51999
- children: a.label
52000
- }
52001
- )
52002
- ] })
52003
- ]
52004
- }
52005
- );
52006
- }
52007
- function vD({
51945
+ function yD({
52008
51946
  className: t,
52009
51947
  ...e
52010
51948
  }) {
@@ -52017,7 +51955,7 @@ function vD({
52017
51955
  }
52018
51956
  );
52019
51957
  }
52020
- function wD({
51958
+ function vD({
52021
51959
  className: t,
52022
51960
  ...e
52023
51961
  }) {
@@ -52049,7 +51987,7 @@ function Ff({
52049
51987
  }
52050
51988
  );
52051
51989
  }
52052
- function k7({
51990
+ function N7({
52053
51991
  className: t,
52054
51992
  ...e
52055
51993
  }) {
@@ -52076,13 +52014,13 @@ var M0 = (function() {
52076
52014
  INIT: "@@redux/INIT" + x0(),
52077
52015
  REPLACE: "@@redux/REPLACE" + x0()
52078
52016
  };
52079
- function MD(t) {
52017
+ function wD(t) {
52080
52018
  if (typeof t != "object" || t === null) return !1;
52081
52019
  for (var e = t; Object.getPrototypeOf(e) !== null; )
52082
52020
  e = Object.getPrototypeOf(e);
52083
52021
  return Object.getPrototypeOf(t) === e;
52084
52022
  }
52085
- function xD(t) {
52023
+ function MD(t) {
52086
52024
  if (t === void 0) return "undefined";
52087
52025
  if (t === null) return "null";
52088
52026
  var e = typeof t;
@@ -52095,9 +52033,9 @@ function xD(t) {
52095
52033
  return e;
52096
52034
  }
52097
52035
  if (Array.isArray(t)) return "array";
52098
- if (ND(t)) return "date";
52099
- if (LD(t)) return "error";
52100
- var n = CD(t);
52036
+ if (LD(t)) return "date";
52037
+ if (CD(t)) return "error";
52038
+ var n = xD(t);
52101
52039
  switch (n) {
52102
52040
  case "Symbol":
52103
52041
  case "Promise":
@@ -52109,18 +52047,18 @@ function xD(t) {
52109
52047
  }
52110
52048
  return e.slice(8, -1).toLowerCase().replace(/\s/g, "");
52111
52049
  }
52112
- function CD(t) {
52050
+ function xD(t) {
52113
52051
  return typeof t.constructor == "function" ? t.constructor.name : null;
52114
52052
  }
52115
- function LD(t) {
52053
+ function CD(t) {
52116
52054
  return t instanceof Error || typeof t.message == "string" && t.constructor && typeof t.constructor.stackTraceLimit == "number";
52117
52055
  }
52118
- function ND(t) {
52056
+ function LD(t) {
52119
52057
  return t instanceof Date ? !0 : typeof t.toDateString == "function" && typeof t.getDate == "function" && typeof t.setDate == "function";
52120
52058
  }
52121
52059
  function ai(t) {
52122
52060
  var e = typeof t;
52123
- return process.env.NODE_ENV !== "production" && (e = xD(t)), e;
52061
+ return process.env.NODE_ENV !== "production" && (e = MD(t)), e;
52124
52062
  }
52125
52063
  function o4(t, e, n) {
52126
52064
  var r;
@@ -52159,7 +52097,7 @@ function o4(t, e, n) {
52159
52097
  };
52160
52098
  }
52161
52099
  function p(g) {
52162
- if (!MD(g))
52100
+ if (!wD(g))
52163
52101
  throw new Error(process.env.NODE_ENV === "production" ? Ot(7) : "Actions must be plain objects. Instead, the actual type was: '" + ai(g) + "'. 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.");
52164
52102
  if (typeof g.type > "u")
52165
52103
  throw new Error(process.env.NODE_ENV === "production" ? Ot(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
@@ -52220,7 +52158,7 @@ function o4(t, e, n) {
52220
52158
  }, r[M0] = m, r;
52221
52159
  }
52222
52160
  function te(t, e, ...n) {
52223
- if (kD() && e === void 0)
52161
+ if (ND() && e === void 0)
52224
52162
  throw new Error("invariant requires an error message argument");
52225
52163
  if (!t) {
52226
52164
  let r;
@@ -52235,16 +52173,16 @@ function te(t, e, ...n) {
52235
52173
  throw r.framesToPop = 1, r;
52236
52174
  }
52237
52175
  }
52238
- function kD() {
52176
+ function ND() {
52239
52177
  return typeof process < "u" && process.env.NODE_ENV === "production";
52240
52178
  }
52241
- function SD(t, e, n) {
52179
+ function kD(t, e, n) {
52242
52180
  return e.split(".").reduce(
52243
52181
  (r, i) => r && r[i] ? r[i] : n || null,
52244
52182
  t
52245
52183
  );
52246
52184
  }
52247
- function ID(t, e) {
52185
+ function SD(t, e) {
52248
52186
  return t.filter(
52249
52187
  (n) => n !== e
52250
52188
  );
@@ -52252,7 +52190,7 @@ function ID(t, e) {
52252
52190
  function s4(t) {
52253
52191
  return typeof t == "object";
52254
52192
  }
52255
- function TD(t, e) {
52193
+ function ID(t, e) {
52256
52194
  const n = /* @__PURE__ */ new Map(), r = (a) => {
52257
52195
  n.set(a, n.has(a) ? n.get(a) + 1 : 1);
52258
52196
  };
@@ -52262,7 +52200,7 @@ function TD(t, e) {
52262
52200
  a === 1 && i.push(o);
52263
52201
  }), i;
52264
52202
  }
52265
- function jD(t, e) {
52203
+ function TD(t, e) {
52266
52204
  return t.filter(
52267
52205
  (n) => e.indexOf(n) > -1
52268
52206
  );
@@ -52277,35 +52215,35 @@ function L0(t, e) {
52277
52215
  }
52278
52216
  };
52279
52217
  }
52280
- const DD = {
52218
+ const jD = {
52281
52219
  type: Tu,
52282
52220
  payload: {
52283
52221
  clientOffset: null,
52284
52222
  sourceClientOffset: null
52285
52223
  }
52286
52224
  };
52287
- function ED(t) {
52225
+ function DD(t) {
52288
52226
  return function(n = [], r = {
52289
52227
  publishSource: !0
52290
52228
  }) {
52291
52229
  const { publishSource: i = !0, clientOffset: a, getSourceClientOffset: o } = r, s = t.getMonitor(), l = t.getRegistry();
52292
- t.dispatch(L0(a)), AD(n, s, l);
52293
- const c = PD(n, s);
52230
+ t.dispatch(L0(a)), ED(n, s, l);
52231
+ const c = OD(n, s);
52294
52232
  if (c == null) {
52295
- t.dispatch(DD);
52233
+ t.dispatch(jD);
52296
52234
  return;
52297
52235
  }
52298
52236
  let d = null;
52299
52237
  if (a) {
52300
52238
  if (!o)
52301
52239
  throw new Error("getSourceClientOffset must be defined");
52302
- zD(o), d = o(c);
52240
+ AD(o), d = o(c);
52303
52241
  }
52304
52242
  t.dispatch(L0(a, d));
52305
52243
  const p = l.getSource(c).beginDrag(s, c);
52306
52244
  if (p == null)
52307
52245
  return;
52308
- OD(p), l.pinSource(c);
52246
+ zD(p), l.pinSource(c);
52309
52247
  const h = l.getSourceType(c);
52310
52248
  return {
52311
52249
  type: $l,
@@ -52320,18 +52258,18 @@ function ED(t) {
52320
52258
  };
52321
52259
  };
52322
52260
  }
52323
- function AD(t, e, n) {
52261
+ function ED(t, e, n) {
52324
52262
  te(!e.isDragging(), "Cannot call beginDrag while dragging."), t.forEach(function(r) {
52325
52263
  te(n.getSource(r), "Expected sourceIds to be registered.");
52326
52264
  });
52327
52265
  }
52328
- function zD(t) {
52266
+ function AD(t) {
52329
52267
  te(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
52330
52268
  }
52331
- function OD(t) {
52269
+ function zD(t) {
52332
52270
  te(s4(t), "Item must be an object.");
52333
52271
  }
52334
- function PD(t, e) {
52272
+ function OD(t, e) {
52335
52273
  let n = null;
52336
52274
  for (let r = t.length - 1; r >= 0; r--)
52337
52275
  if (e.canDragSource(t[r])) {
@@ -52340,7 +52278,7 @@ function PD(t, e) {
52340
52278
  }
52341
52279
  return n;
52342
52280
  }
52343
- function RD(t, e, n) {
52281
+ function PD(t, e, n) {
52344
52282
  return e in t ? Object.defineProperty(t, e, {
52345
52283
  value: n,
52346
52284
  enumerable: !0,
@@ -52348,57 +52286,57 @@ function RD(t, e, n) {
52348
52286
  writable: !0
52349
52287
  }) : t[e] = n, t;
52350
52288
  }
52351
- function BD(t) {
52289
+ function RD(t) {
52352
52290
  for (var e = 1; e < arguments.length; e++) {
52353
52291
  var n = arguments[e] != null ? arguments[e] : {}, r = Object.keys(n);
52354
52292
  typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
52355
52293
  return Object.getOwnPropertyDescriptor(n, i).enumerable;
52356
52294
  }))), r.forEach(function(i) {
52357
- RD(t, i, n[i]);
52295
+ PD(t, i, n[i]);
52358
52296
  });
52359
52297
  }
52360
52298
  return t;
52361
52299
  }
52362
- function HD(t) {
52300
+ function BD(t) {
52363
52301
  return function(n = {}) {
52364
52302
  const r = t.getMonitor(), i = t.getRegistry();
52365
- UD(r), VD(r).forEach((o, s) => {
52366
- const l = FD(o, s, i, r), c = {
52303
+ HD(r), JD(r).forEach((o, s) => {
52304
+ const l = UD(o, s, i, r), c = {
52367
52305
  type: Kl,
52368
52306
  payload: {
52369
- dropResult: BD({}, n, l)
52307
+ dropResult: RD({}, n, l)
52370
52308
  }
52371
52309
  };
52372
52310
  t.dispatch(c);
52373
52311
  });
52374
52312
  };
52375
52313
  }
52376
- function UD(t) {
52314
+ function HD(t) {
52377
52315
  te(t.isDragging(), "Cannot call drop while not dragging."), te(!t.didDrop(), "Cannot call drop twice during one drag operation.");
52378
52316
  }
52379
- function FD(t, e, n, r) {
52317
+ function UD(t, e, n, r) {
52380
52318
  const i = n.getTarget(t);
52381
52319
  let a = i ? i.drop(r, t) : void 0;
52382
- return JD(a), typeof a > "u" && (a = e === 0 ? {} : r.getDropResult()), a;
52320
+ return FD(a), typeof a > "u" && (a = e === 0 ? {} : r.getDropResult()), a;
52383
52321
  }
52384
- function JD(t) {
52322
+ function FD(t) {
52385
52323
  te(typeof t > "u" || s4(t), "Drop result must either be an object or undefined.");
52386
52324
  }
52387
- function VD(t) {
52325
+ function JD(t) {
52388
52326
  const e = t.getTargetIds().filter(t.canDropOnTarget, t);
52389
52327
  return e.reverse(), e;
52390
52328
  }
52391
- function YD(t) {
52329
+ function VD(t) {
52392
52330
  return function() {
52393
52331
  const n = t.getMonitor(), r = t.getRegistry();
52394
- _D(n);
52332
+ YD(n);
52395
52333
  const i = n.getSourceId();
52396
52334
  return i != null && (r.getSource(i, !0).endDrag(n, i), r.unpinSource()), {
52397
52335
  type: ql
52398
52336
  };
52399
52337
  };
52400
52338
  }
52401
- function _D(t) {
52339
+ function YD(t) {
52402
52340
  te(t.isDragging(), "Cannot call endDrag while not dragging.");
52403
52341
  }
52404
52342
  function _c(t, e) {
@@ -52406,11 +52344,11 @@ function _c(t, e) {
52406
52344
  (n) => n === e
52407
52345
  ) : t === e;
52408
52346
  }
52409
- function QD(t) {
52347
+ function _D(t) {
52410
52348
  return function(n, { clientOffset: r } = {}) {
52411
- GD(n);
52349
+ QD(n);
52412
52350
  const i = n.slice(0), a = t.getMonitor(), o = t.getRegistry(), s = a.getItemType();
52413
- return $D(i, o, s), WD(i, a, o), ZD(i, a, o), {
52351
+ return WD(i, o, s), GD(i, a, o), $D(i, a, o), {
52414
52352
  type: Zl,
52415
52353
  payload: {
52416
52354
  targetIds: i,
@@ -52419,10 +52357,10 @@ function QD(t) {
52419
52357
  };
52420
52358
  };
52421
52359
  }
52422
- function GD(t) {
52360
+ function QD(t) {
52423
52361
  te(Array.isArray(t), "Expected targetIds to be an array.");
52424
52362
  }
52425
- function WD(t, e, n) {
52363
+ function GD(t, e, n) {
52426
52364
  te(e.isDragging(), "Cannot call hover while not dragging."), te(!e.didDrop(), "Cannot call hover after drop.");
52427
52365
  for (let r = 0; r < t.length; r++) {
52428
52366
  const i = t[r];
@@ -52431,18 +52369,18 @@ function WD(t, e, n) {
52431
52369
  te(a, "Expected targetIds to be registered.");
52432
52370
  }
52433
52371
  }
52434
- function $D(t, e, n) {
52372
+ function WD(t, e, n) {
52435
52373
  for (let r = t.length - 1; r >= 0; r--) {
52436
52374
  const i = t[r], a = e.getTargetType(i);
52437
52375
  _c(a, n) || t.splice(r, 1);
52438
52376
  }
52439
52377
  }
52440
- function ZD(t, e, n) {
52378
+ function $D(t, e, n) {
52441
52379
  t.forEach(function(r) {
52442
52380
  n.getTarget(r).hover(e, r);
52443
52381
  });
52444
52382
  }
52445
- function KD(t) {
52383
+ function ZD(t) {
52446
52384
  return function() {
52447
52385
  if (t.getMonitor().isDragging())
52448
52386
  return {
@@ -52450,16 +52388,16 @@ function KD(t) {
52450
52388
  };
52451
52389
  };
52452
52390
  }
52453
- function qD(t) {
52391
+ function KD(t) {
52454
52392
  return {
52455
- beginDrag: ED(t),
52456
- publishDragSource: KD(t),
52457
- hover: QD(t),
52458
- drop: HD(t),
52459
- endDrag: YD(t)
52393
+ beginDrag: DD(t),
52394
+ publishDragSource: ZD(t),
52395
+ hover: _D(t),
52396
+ drop: BD(t),
52397
+ endDrag: VD(t)
52460
52398
  };
52461
52399
  }
52462
- class XD {
52400
+ class qD {
52463
52401
  receiveBackend(e) {
52464
52402
  this.backend = e;
52465
52403
  }
@@ -52480,7 +52418,7 @@ class XD {
52480
52418
  typeof s < "u" && n(s);
52481
52419
  };
52482
52420
  }
52483
- const i = qD(this);
52421
+ const i = KD(this);
52484
52422
  return Object.keys(i).reduce((a, o) => {
52485
52423
  const s = i[o];
52486
52424
  return a[o] = r(s), a;
@@ -52496,7 +52434,7 @@ class XD {
52496
52434
  }, this.store = e, this.monitor = n, e.subscribe(this.handleRefCountChange);
52497
52435
  }
52498
52436
  }
52499
- function eE(t, e) {
52437
+ function XD(t, e) {
52500
52438
  return {
52501
52439
  x: t.x + e.x,
52502
52440
  y: t.y + e.y
@@ -52508,21 +52446,21 @@ function l4(t, e) {
52508
52446
  y: t.y - e.y
52509
52447
  };
52510
52448
  }
52511
- function tE(t) {
52449
+ function eE(t) {
52512
52450
  const { clientOffset: e, initialClientOffset: n, initialSourceClientOffset: r } = t;
52513
- return !e || !n || !r ? null : l4(eE(e, r), n);
52451
+ return !e || !n || !r ? null : l4(XD(e, r), n);
52514
52452
  }
52515
- function nE(t) {
52453
+ function tE(t) {
52516
52454
  const { clientOffset: e, initialClientOffset: n } = t;
52517
52455
  return !e || !n ? null : l4(e, n);
52518
52456
  }
52519
52457
  const La = [], Du = [];
52520
52458
  La.__IS_NONE__ = !0;
52521
52459
  Du.__IS_ALL__ = !0;
52522
- function rE(t, e) {
52523
- return t === La ? !1 : t === Du || typeof e > "u" ? !0 : jD(e, t).length > 0;
52460
+ function nE(t, e) {
52461
+ return t === La ? !1 : t === Du || typeof e > "u" ? !0 : TD(e, t).length > 0;
52524
52462
  }
52525
- class iE {
52463
+ class rE {
52526
52464
  subscribeToStateChange(e, n = {}) {
52527
52465
  const { handlerIds: r } = n;
52528
52466
  te(typeof e == "function", "listener must be a function."), te(typeof r > "u" || Array.isArray(r), "handlerIds, when specified, must be an array of strings.");
@@ -52530,7 +52468,7 @@ class iE {
52530
52468
  const a = () => {
52531
52469
  const o = this.store.getState(), s = o.stateId;
52532
52470
  try {
52533
- s === i || s === i + 1 && !rE(o.dirtyHandlerIds, r) || e();
52471
+ s === i || s === i + 1 && !nE(o.dirtyHandlerIds, r) || e();
52534
52472
  } finally {
52535
52473
  i = s;
52536
52474
  }
@@ -52621,10 +52559,10 @@ class iE {
52621
52559
  return this.store.getState().dragOffset.clientOffset;
52622
52560
  }
52623
52561
  getSourceClientOffset() {
52624
- return tE(this.store.getState().dragOffset);
52562
+ return eE(this.store.getState().dragOffset);
52625
52563
  }
52626
52564
  getDifferenceFromInitialOffset() {
52627
- return nE(this.store.getState().dragOffset);
52565
+ return tE(this.store.getState().dragOffset);
52628
52566
  }
52629
52567
  constructor(e, n) {
52630
52568
  this.store = e, this.registry = n;
@@ -52639,7 +52577,7 @@ function c4(t) {
52639
52577
  }
52640
52578
  };
52641
52579
  }
52642
- function aE(t) {
52580
+ function iE(t) {
52643
52581
  let e = 1;
52644
52582
  const n = new f4(t), r = document.createTextNode("");
52645
52583
  return n.observe(r, {
@@ -52648,7 +52586,7 @@ function aE(t) {
52648
52586
  e = -e, r.data = e;
52649
52587
  };
52650
52588
  }
52651
- const oE = typeof f4 == "function" ? (
52589
+ const aE = typeof f4 == "function" ? (
52652
52590
  // reliably everywhere they are implemented.
52653
52591
  // They are implemented in all modern browsers.
52654
52592
  //
@@ -52659,7 +52597,7 @@ const oE = typeof f4 == "function" ? (
52659
52597
  // - iPad Safari 6-7.1
52660
52598
  // - iPhone Safari 7-7.1
52661
52599
  // - Safari 6-7
52662
- aE
52600
+ iE
52663
52601
  ) : (
52664
52602
  // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera
52665
52603
  // 11-12, and in web workers in many engines.
@@ -52687,7 +52625,7 @@ const oE = typeof f4 == "function" ? (
52687
52625
  // - Lynx 2.8.7
52688
52626
  c4
52689
52627
  );
52690
- class sE {
52628
+ class oE {
52691
52629
  // Use the fastest means possible to execute a task in its own turn, with
52692
52630
  // priority over other events including IO, animation, reflow, and redraw
52693
52631
  // events in browsers.
@@ -52716,13 +52654,13 @@ class sE {
52716
52654
  e.length = 0, this.index = 0, this.flushing = !1;
52717
52655
  }, this.registerPendingError = (e) => {
52718
52656
  this.pendingErrors.push(e), this.requestErrorThrow();
52719
- }, this.requestFlush = oE(this.flush), this.requestErrorThrow = c4(() => {
52657
+ }, this.requestFlush = aE(this.flush), this.requestErrorThrow = c4(() => {
52720
52658
  if (this.pendingErrors.length)
52721
52659
  throw this.pendingErrors.shift();
52722
52660
  });
52723
52661
  }
52724
52662
  }
52725
- class lE {
52663
+ class sE {
52726
52664
  call() {
52727
52665
  try {
52728
52666
  this.task && this.task();
@@ -52736,9 +52674,9 @@ class lE {
52736
52674
  this.onError = e, this.release = n, this.task = null;
52737
52675
  }
52738
52676
  }
52739
- class fE {
52677
+ class lE {
52740
52678
  create(e) {
52741
- const n = this.freeTasks, r = n.length ? n.pop() : new lE(
52679
+ const n = this.freeTasks, r = n.length ? n.pop() : new sE(
52742
52680
  this.onError,
52743
52681
  (i) => n[n.length] = i
52744
52682
  );
@@ -52748,12 +52686,12 @@ class fE {
52748
52686
  this.onError = e, this.freeTasks = [];
52749
52687
  }
52750
52688
  }
52751
- const d4 = new sE(), cE = new fE(d4.registerPendingError);
52752
- function dE(t) {
52753
- d4.enqueueTask(cE.create(t));
52689
+ const d4 = new oE(), fE = new lE(d4.registerPendingError);
52690
+ function cE(t) {
52691
+ d4.enqueueTask(fE.create(t));
52754
52692
  }
52755
52693
  const Eu = "dnd-core/ADD_SOURCE", Au = "dnd-core/ADD_TARGET", zu = "dnd-core/REMOVE_SOURCE", Xl = "dnd-core/REMOVE_TARGET";
52756
- function uE(t) {
52694
+ function dE(t) {
52757
52695
  return {
52758
52696
  type: Eu,
52759
52697
  payload: {
@@ -52761,7 +52699,7 @@ function uE(t) {
52761
52699
  }
52762
52700
  };
52763
52701
  }
52764
- function hE(t) {
52702
+ function uE(t) {
52765
52703
  return {
52766
52704
  type: Au,
52767
52705
  payload: {
@@ -52769,7 +52707,7 @@ function hE(t) {
52769
52707
  }
52770
52708
  };
52771
52709
  }
52772
- function pE(t) {
52710
+ function hE(t) {
52773
52711
  return {
52774
52712
  type: zu,
52775
52713
  payload: {
@@ -52777,7 +52715,7 @@ function pE(t) {
52777
52715
  }
52778
52716
  };
52779
52717
  }
52780
- function mE(t) {
52718
+ function pE(t) {
52781
52719
  return {
52782
52720
  type: Xl,
52783
52721
  payload: {
@@ -52785,10 +52723,10 @@ function mE(t) {
52785
52723
  }
52786
52724
  };
52787
52725
  }
52788
- function gE(t) {
52726
+ function mE(t) {
52789
52727
  te(typeof t.canDrag == "function", "Expected canDrag to be a function."), te(typeof t.beginDrag == "function", "Expected beginDrag to be a function."), te(typeof t.endDrag == "function", "Expected endDrag to be a function.");
52790
52728
  }
52791
- function bE(t) {
52729
+ function gE(t) {
52792
52730
  te(typeof t.canDrop == "function", "Expected canDrop to be a function."), te(typeof t.hover == "function", "Expected hover to be a function."), te(typeof t.drop == "function", "Expected beginDrag to be a function.");
52793
52731
  }
52794
52732
  function Qc(t, e) {
@@ -52804,12 +52742,12 @@ var Bt;
52804
52742
  (function(t) {
52805
52743
  t.SOURCE = "SOURCE", t.TARGET = "TARGET";
52806
52744
  })(Bt || (Bt = {}));
52807
- let yE = 0;
52808
- function vE() {
52809
- return yE++;
52745
+ let bE = 0;
52746
+ function yE() {
52747
+ return bE++;
52810
52748
  }
52811
- function wE(t) {
52812
- const e = vE().toString();
52749
+ function vE(t) {
52750
+ const e = yE().toString();
52813
52751
  switch (t) {
52814
52752
  case Bt.SOURCE:
52815
52753
  return `S${e}`;
@@ -52840,16 +52778,16 @@ function S0(t, e) {
52840
52778
  } while (!r);
52841
52779
  return !1;
52842
52780
  }
52843
- class ME {
52781
+ class wE {
52844
52782
  addSource(e, n) {
52845
- Qc(e), gE(n);
52783
+ Qc(e), mE(n);
52846
52784
  const r = this.addHandler(Bt.SOURCE, e, n);
52847
- return this.store.dispatch(uE(r)), r;
52785
+ return this.store.dispatch(dE(r)), r;
52848
52786
  }
52849
52787
  addTarget(e, n) {
52850
- Qc(e, !0), bE(n);
52788
+ Qc(e, !0), gE(n);
52851
52789
  const r = this.addHandler(Bt.TARGET, e, n);
52852
- return this.store.dispatch(hE(r)), r;
52790
+ return this.store.dispatch(uE(r)), r;
52853
52791
  }
52854
52792
  containsHandler(e) {
52855
52793
  return S0(this.dragSources, e) || S0(this.dropTargets, e);
@@ -52873,12 +52811,12 @@ class ME {
52873
52811
  return k0(e) === Bt.TARGET;
52874
52812
  }
52875
52813
  removeSource(e) {
52876
- te(this.getSource(e), "Expected an existing source."), this.store.dispatch(pE(e)), dE(() => {
52814
+ te(this.getSource(e), "Expected an existing source."), this.store.dispatch(hE(e)), cE(() => {
52877
52815
  this.dragSources.delete(e), this.types.delete(e);
52878
52816
  });
52879
52817
  }
52880
52818
  removeTarget(e) {
52881
- te(this.getTarget(e), "Expected an existing target."), this.store.dispatch(mE(e)), this.dropTargets.delete(e), this.types.delete(e);
52819
+ te(this.getTarget(e), "Expected an existing target."), this.store.dispatch(pE(e)), this.dropTargets.delete(e), this.types.delete(e);
52882
52820
  }
52883
52821
  pinSource(e) {
52884
52822
  const n = this.getSource(e);
@@ -52888,18 +52826,18 @@ class ME {
52888
52826
  te(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
52889
52827
  }
52890
52828
  addHandler(e, n, r) {
52891
- const i = wE(e);
52829
+ const i = vE(e);
52892
52830
  return this.types.set(i, n), e === Bt.SOURCE ? this.dragSources.set(i, r) : e === Bt.TARGET && this.dropTargets.set(i, r), i;
52893
52831
  }
52894
52832
  constructor(e) {
52895
52833
  this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
52896
52834
  }
52897
52835
  }
52898
- const xE = (t, e) => t === e;
52899
- function CE(t, e) {
52836
+ const ME = (t, e) => t === e;
52837
+ function xE(t, e) {
52900
52838
  return !t && !e ? !0 : !t || !e ? !1 : t.x === e.x && t.y === e.y;
52901
52839
  }
52902
- function LE(t, e, n = xE) {
52840
+ function CE(t, e, n = ME) {
52903
52841
  if (t.length !== e.length)
52904
52842
  return !1;
52905
52843
  for (let r = 0; r < t.length; ++r)
@@ -52907,7 +52845,7 @@ function LE(t, e, n = xE) {
52907
52845
  return !1;
52908
52846
  return !0;
52909
52847
  }
52910
- function NE(t = La, e) {
52848
+ function LE(t = La, e) {
52911
52849
  switch (e.type) {
52912
52850
  case Zl:
52913
52851
  break;
@@ -52923,13 +52861,13 @@ function NE(t = La, e) {
52923
52861
  default:
52924
52862
  return Du;
52925
52863
  }
52926
- const { targetIds: n = [], prevTargetIds: r = [] } = e.payload, i = TD(n, r);
52927
- if (!(i.length > 0 || !LE(n, r)))
52864
+ const { targetIds: n = [], prevTargetIds: r = [] } = e.payload, i = ID(n, r);
52865
+ if (!(i.length > 0 || !CE(n, r)))
52928
52866
  return La;
52929
52867
  const o = r[r.length - 1], s = n[n.length - 1];
52930
52868
  return o !== s && (o && i.push(o), s && i.push(s)), i;
52931
52869
  }
52932
- function kE(t, e, n) {
52870
+ function NE(t, e, n) {
52933
52871
  return e in t ? Object.defineProperty(t, e, {
52934
52872
  value: n,
52935
52873
  enumerable: !0,
@@ -52937,13 +52875,13 @@ function kE(t, e, n) {
52937
52875
  writable: !0
52938
52876
  }) : t[e] = n, t;
52939
52877
  }
52940
- function SE(t) {
52878
+ function kE(t) {
52941
52879
  for (var e = 1; e < arguments.length; e++) {
52942
52880
  var n = arguments[e] != null ? arguments[e] : {}, r = Object.keys(n);
52943
52881
  typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
52944
52882
  return Object.getOwnPropertyDescriptor(n, i).enumerable;
52945
52883
  }))), r.forEach(function(i) {
52946
- kE(t, i, n[i]);
52884
+ NE(t, i, n[i]);
52947
52885
  });
52948
52886
  }
52949
52887
  return t;
@@ -52953,7 +52891,7 @@ const I0 = {
52953
52891
  initialClientOffset: null,
52954
52892
  clientOffset: null
52955
52893
  };
52956
- function IE(t = I0, e) {
52894
+ function SE(t = I0, e) {
52957
52895
  const { payload: n } = e;
52958
52896
  switch (e.type) {
52959
52897
  case Tu:
@@ -52964,7 +52902,7 @@ function IE(t = I0, e) {
52964
52902
  clientOffset: n.clientOffset
52965
52903
  };
52966
52904
  case Zl:
52967
- return CE(t.clientOffset, n.clientOffset) ? t : SE({}, t, {
52905
+ return xE(t.clientOffset, n.clientOffset) ? t : kE({}, t, {
52968
52906
  clientOffset: n.clientOffset
52969
52907
  });
52970
52908
  case ql:
@@ -52974,7 +52912,7 @@ function IE(t = I0, e) {
52974
52912
  return t;
52975
52913
  }
52976
52914
  }
52977
- function TE(t, e, n) {
52915
+ function IE(t, e, n) {
52978
52916
  return e in t ? Object.defineProperty(t, e, {
52979
52917
  value: n,
52980
52918
  enumerable: !0,
@@ -52988,12 +52926,12 @@ function oi(t) {
52988
52926
  typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
52989
52927
  return Object.getOwnPropertyDescriptor(n, i).enumerable;
52990
52928
  }))), r.forEach(function(i) {
52991
- TE(t, i, n[i]);
52929
+ IE(t, i, n[i]);
52992
52930
  });
52993
52931
  }
52994
52932
  return t;
52995
52933
  }
52996
- const jE = {
52934
+ const TE = {
52997
52935
  itemType: null,
52998
52936
  item: null,
52999
52937
  sourceId: null,
@@ -53002,7 +52940,7 @@ const jE = {
53002
52940
  didDrop: !1,
53003
52941
  isSourcePublic: null
53004
52942
  };
53005
- function DE(t = jE, e) {
52943
+ function jE(t = TE, e) {
53006
52944
  const { payload: n } = e;
53007
52945
  switch (e.type) {
53008
52946
  case $l:
@@ -53024,7 +52962,7 @@ function DE(t = jE, e) {
53024
52962
  });
53025
52963
  case Xl:
53026
52964
  return t.targetIds.indexOf(n.targetId) === -1 ? t : oi({}, t, {
53027
- targetIds: ID(t.targetIds, n.targetId)
52965
+ targetIds: SD(t.targetIds, n.targetId)
53028
52966
  });
53029
52967
  case Kl:
53030
52968
  return oi({}, t, {
@@ -53046,7 +52984,7 @@ function DE(t = jE, e) {
53046
52984
  return t;
53047
52985
  }
53048
52986
  }
53049
- function EE(t = 0, e) {
52987
+ function DE(t = 0, e) {
53050
52988
  switch (e.type) {
53051
52989
  case Eu:
53052
52990
  case Au:
@@ -53058,10 +52996,10 @@ function EE(t = 0, e) {
53058
52996
  return t;
53059
52997
  }
53060
52998
  }
53061
- function AE(t = 0) {
52999
+ function EE(t = 0) {
53062
53000
  return t + 1;
53063
53001
  }
53064
- function zE(t, e, n) {
53002
+ function AE(t, e, n) {
53065
53003
  return e in t ? Object.defineProperty(t, e, {
53066
53004
  value: n,
53067
53005
  enumerable: !0,
@@ -53069,45 +53007,45 @@ function zE(t, e, n) {
53069
53007
  writable: !0
53070
53008
  }) : t[e] = n, t;
53071
53009
  }
53072
- function OE(t) {
53010
+ function zE(t) {
53073
53011
  for (var e = 1; e < arguments.length; e++) {
53074
53012
  var n = arguments[e] != null ? arguments[e] : {}, r = Object.keys(n);
53075
53013
  typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
53076
53014
  return Object.getOwnPropertyDescriptor(n, i).enumerable;
53077
53015
  }))), r.forEach(function(i) {
53078
- zE(t, i, n[i]);
53016
+ AE(t, i, n[i]);
53079
53017
  });
53080
53018
  }
53081
53019
  return t;
53082
53020
  }
53083
- function PE(t = {}, e) {
53021
+ function OE(t = {}, e) {
53084
53022
  return {
53085
- dirtyHandlerIds: NE(t.dirtyHandlerIds, {
53023
+ dirtyHandlerIds: LE(t.dirtyHandlerIds, {
53086
53024
  type: e.type,
53087
- payload: OE({}, e.payload, {
53088
- prevTargetIds: SD(t, "dragOperation.targetIds", [])
53025
+ payload: zE({}, e.payload, {
53026
+ prevTargetIds: kD(t, "dragOperation.targetIds", [])
53089
53027
  })
53090
53028
  }),
53091
- dragOffset: IE(t.dragOffset, e),
53092
- refCount: EE(t.refCount, e),
53093
- dragOperation: DE(t.dragOperation, e),
53094
- stateId: AE(t.stateId)
53029
+ dragOffset: SE(t.dragOffset, e),
53030
+ refCount: DE(t.refCount, e),
53031
+ dragOperation: jE(t.dragOperation, e),
53032
+ stateId: EE(t.stateId)
53095
53033
  };
53096
53034
  }
53097
- function RE(t, e = void 0, n = {}, r = !1) {
53098
- const i = BE(r), a = new iE(i, new ME(i)), o = new XD(i, a), s = t(o, e, n);
53035
+ function PE(t, e = void 0, n = {}, r = !1) {
53036
+ const i = RE(r), a = new rE(i, new wE(i)), o = new qD(i, a), s = t(o, e, n);
53099
53037
  return o.receiveBackend(s), o;
53100
53038
  }
53101
- function BE(t) {
53039
+ function RE(t) {
53102
53040
  const e = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
53103
- return o4(PE, t && e && e({
53041
+ return o4(OE, t && e && e({
53104
53042
  name: "dnd-core",
53105
53043
  instanceId: "dnd-core"
53106
53044
  }));
53107
53045
  }
53108
- function HE(t, e) {
53046
+ function BE(t, e) {
53109
53047
  if (t == null) return {};
53110
- var n = UE(t, e), r, i;
53048
+ var n = HE(t, e), r, i;
53111
53049
  if (Object.getOwnPropertySymbols) {
53112
53050
  var a = Object.getOwnPropertySymbols(t);
53113
53051
  for (i = 0; i < a.length; i++)
@@ -53115,7 +53053,7 @@ function HE(t, e) {
53115
53053
  }
53116
53054
  return n;
53117
53055
  }
53118
- function UE(t, e) {
53056
+ function HE(t, e) {
53119
53057
  if (t == null) return {};
53120
53058
  var n = {}, r = Object.keys(t), i, a;
53121
53059
  for (a = 0; a < r.length; a++)
@@ -53125,10 +53063,10 @@ function UE(t, e) {
53125
53063
  let T0 = 0;
53126
53064
  const Zo = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
53127
53065
  var u4 = /* @__PURE__ */ td(function(e) {
53128
- var { children: n } = e, r = HE(e, [
53066
+ var { children: n } = e, r = BE(e, [
53129
53067
  "children"
53130
53068
  ]);
53131
- const [i, a] = FE(r);
53069
+ const [i, a] = UE(r);
53132
53070
  return me(() => {
53133
53071
  if (a) {
53134
53072
  const o = h4();
@@ -53141,7 +53079,7 @@ var u4 = /* @__PURE__ */ td(function(e) {
53141
53079
  children: n
53142
53080
  });
53143
53081
  });
53144
- function FE(t) {
53082
+ function UE(t) {
53145
53083
  if ("manager" in t)
53146
53084
  return [
53147
53085
  {
@@ -53149,26 +53087,26 @@ function FE(t) {
53149
53087
  },
53150
53088
  !1
53151
53089
  ];
53152
- const e = JE(t.backend, t.context, t.options, t.debugMode), n = !t.context;
53090
+ const e = FE(t.backend, t.context, t.options, t.debugMode), n = !t.context;
53153
53091
  return [
53154
53092
  e,
53155
53093
  n
53156
53094
  ];
53157
53095
  }
53158
- function JE(t, e = h4(), n, r) {
53096
+ function FE(t, e = h4(), n, r) {
53159
53097
  const i = e;
53160
53098
  return i[Zo] || (i[Zo] = {
53161
- dragDropManager: RE(t, e, n, r)
53099
+ dragDropManager: PE(t, e, n, r)
53162
53100
  }), i[Zo];
53163
53101
  }
53164
53102
  function h4() {
53165
53103
  return typeof global < "u" ? global : window;
53166
53104
  }
53167
- function VE(t) {
53105
+ function JE(t) {
53168
53106
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
53169
53107
  }
53170
53108
  var Jf, j0;
53171
- function YE() {
53109
+ function VE() {
53172
53110
  return j0 || (j0 = 1, Jf = function t(e, n) {
53173
53111
  if (e === n) return !0;
53174
53112
  if (e && n && typeof e == "object" && typeof n == "object") {
@@ -53195,14 +53133,14 @@ function YE() {
53195
53133
  return e !== e && n !== n;
53196
53134
  }), Jf;
53197
53135
  }
53198
- var _E = YE();
53199
- const QE = /* @__PURE__ */ VE(_E), Hr = typeof window < "u" ? ed : me;
53200
- function GE(t, e, n) {
53136
+ var YE = VE();
53137
+ const _E = /* @__PURE__ */ JE(YE), Hr = typeof window < "u" ? ed : me;
53138
+ function QE(t, e, n) {
53201
53139
  const [r, i] = re(
53202
53140
  () => e(t)
53203
53141
  ), a = Ce(() => {
53204
53142
  const o = e(t);
53205
- QE(r, o) || (i(o), n && n());
53143
+ _E(r, o) || (i(o), n && n());
53206
53144
  }, [
53207
53145
  r,
53208
53146
  t,
@@ -53213,8 +53151,8 @@ function GE(t, e, n) {
53213
53151
  a
53214
53152
  ];
53215
53153
  }
53216
- function WE(t, e, n) {
53217
- const [r, i] = GE(t, e, n);
53154
+ function GE(t, e, n) {
53155
+ const [r, i] = QE(t, e, n);
53218
53156
  return Hr(function() {
53219
53157
  const o = t.getHandlerId();
53220
53158
  if (o != null)
@@ -53229,7 +53167,7 @@ function WE(t, e, n) {
53229
53167
  ]), r;
53230
53168
  }
53231
53169
  function p4(t, e, n) {
53232
- return WE(
53170
+ return GE(
53233
53171
  e,
53234
53172
  t || (() => ({})),
53235
53173
  () => n.reconnect()
@@ -53241,7 +53179,7 @@ function m4(t, e) {
53241
53179
  ];
53242
53180
  return e == null && typeof t != "function" && n.push(t), ye(() => typeof t == "function" ? t() : t, n);
53243
53181
  }
53244
- function $E(t) {
53182
+ function WE(t) {
53245
53183
  return ye(
53246
53184
  () => t.hooks.dragSource(),
53247
53185
  [
@@ -53249,7 +53187,7 @@ function $E(t) {
53249
53187
  ]
53250
53188
  );
53251
53189
  }
53252
- function ZE(t) {
53190
+ function $E(t) {
53253
53191
  return ye(
53254
53192
  () => t.hooks.dragPreview(),
53255
53193
  [
@@ -53258,7 +53196,7 @@ function ZE(t) {
53258
53196
  );
53259
53197
  }
53260
53198
  let Vf = !1, Yf = !1;
53261
- class KE {
53199
+ class ZE {
53262
53200
  receiveHandlerId(e) {
53263
53201
  this.sourceId = e;
53264
53202
  }
@@ -53342,7 +53280,7 @@ class KE {
53342
53280
  }
53343
53281
  }
53344
53282
  let _f = !1;
53345
- class qE {
53283
+ class KE {
53346
53284
  receiveHandlerId(e) {
53347
53285
  this.targetId = e;
53348
53286
  }
@@ -53396,14 +53334,14 @@ class qE {
53396
53334
  this.targetId = null, this.internalMonitor = e.getMonitor();
53397
53335
  }
53398
53336
  }
53399
- function XE(t, e, n) {
53337
+ function qE(t, e, n) {
53400
53338
  const r = n.getRegistry(), i = r.addTarget(t, e);
53401
53339
  return [
53402
53340
  i,
53403
53341
  () => r.removeTarget(i)
53404
53342
  ];
53405
53343
  }
53406
- function e5(t, e, n) {
53344
+ function XE(t, e, n) {
53407
53345
  const r = n.getRegistry(), i = r.addSource(t, e);
53408
53346
  return [
53409
53347
  i,
@@ -53438,20 +53376,20 @@ function Wc(t) {
53438
53376
  t !== null && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current")
53439
53377
  );
53440
53378
  }
53441
- function t5(t) {
53379
+ function e5(t) {
53442
53380
  if (typeof t.type == "string")
53443
53381
  return;
53444
53382
  const e = t.type.displayName || t.type.name || "the component";
53445
53383
  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.`);
53446
53384
  }
53447
- function n5(t) {
53385
+ function t5(t) {
53448
53386
  return (e = null, n = null) => {
53449
53387
  if (!nv(e)) {
53450
53388
  const a = e;
53451
53389
  return t(a, n), a;
53452
53390
  }
53453
53391
  const r = e;
53454
- return t5(r), r5(r, n ? (a) => t(a, n) : t);
53392
+ return e5(r), n5(r, n ? (a) => t(a, n) : t);
53455
53393
  };
53456
53394
  }
53457
53395
  function g4(t) {
@@ -53461,7 +53399,7 @@ function g4(t) {
53461
53399
  if (n.endsWith("Ref"))
53462
53400
  e[n] = t[n];
53463
53401
  else {
53464
- const i = n5(r);
53402
+ const i = t5(r);
53465
53403
  e[n] = () => i;
53466
53404
  }
53467
53405
  }), e;
@@ -53469,7 +53407,7 @@ function g4(t) {
53469
53407
  function D0(t, e) {
53470
53408
  typeof t == "function" ? t(e) : t.current = e;
53471
53409
  }
53472
- function r5(t, e) {
53410
+ function n5(t, e) {
53473
53411
  const n = t.ref;
53474
53412
  return te(typeof n != "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"), n ? Bu(t, {
53475
53413
  ref: (r) => {
@@ -53479,7 +53417,7 @@ function r5(t, e) {
53479
53417
  ref: e
53480
53418
  });
53481
53419
  }
53482
- class i5 {
53420
+ class r5 {
53483
53421
  receiveHandlerId(e) {
53484
53422
  this.handlerId !== e && (this.handlerId = e, this.reconnect());
53485
53423
  }
@@ -53560,7 +53498,7 @@ class i5 {
53560
53498
  }), 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;
53561
53499
  }
53562
53500
  }
53563
- class a5 {
53501
+ class i5 {
53564
53502
  get connectTarget() {
53565
53503
  return this.dropTarget;
53566
53504
  }
@@ -53615,9 +53553,9 @@ function Hi() {
53615
53553
  const { dragDropManager: t } = Xe(a4);
53616
53554
  return te(t != null, "Expected drag drop context"), t;
53617
53555
  }
53618
- function o5(t, e) {
53556
+ function a5(t, e) {
53619
53557
  const n = Hi(), r = ye(
53620
- () => new i5(n.getBackend()),
53558
+ () => new r5(n.getBackend()),
53621
53559
  [
53622
53560
  n
53623
53561
  ]
@@ -53630,16 +53568,16 @@ function o5(t, e) {
53630
53568
  e
53631
53569
  ]), r;
53632
53570
  }
53633
- function s5() {
53571
+ function o5() {
53634
53572
  const t = Hi();
53635
53573
  return ye(
53636
- () => new KE(t),
53574
+ () => new ZE(t),
53637
53575
  [
53638
53576
  t
53639
53577
  ]
53640
53578
  );
53641
53579
  }
53642
- class l5 {
53580
+ class s5 {
53643
53581
  beginDrag() {
53644
53582
  const e = this.spec, n = this.monitor;
53645
53583
  let r = null;
@@ -53661,9 +53599,9 @@ class l5 {
53661
53599
  this.spec = e, this.monitor = n, this.connector = r;
53662
53600
  }
53663
53601
  }
53664
- function f5(t, e, n) {
53602
+ function l5(t, e, n) {
53665
53603
  const r = ye(
53666
- () => new l5(t, e, n),
53604
+ () => new s5(t, e, n),
53667
53605
  [
53668
53606
  e,
53669
53607
  n
@@ -53675,7 +53613,7 @@ function f5(t, e, n) {
53675
53613
  t
53676
53614
  ]), r;
53677
53615
  }
53678
- function c5(t) {
53616
+ function f5(t) {
53679
53617
  return ye(() => {
53680
53618
  const e = t.type;
53681
53619
  return te(e != null, "spec.type must be defined"), e;
@@ -53683,11 +53621,11 @@ function c5(t) {
53683
53621
  t
53684
53622
  ]);
53685
53623
  }
53686
- function d5(t, e, n) {
53687
- const r = Hi(), i = f5(t, e, n), a = c5(t);
53624
+ function c5(t, e, n) {
53625
+ const r = Hi(), i = l5(t, e, n), a = f5(t);
53688
53626
  Hr(function() {
53689
53627
  if (a != null) {
53690
- const [s, l] = e5(a, i, r);
53628
+ const [s, l] = XE(a, i, r);
53691
53629
  return e.receiveHandlerId(s), n.receiveHandlerId(s), l;
53692
53630
  }
53693
53631
  }, [
@@ -53698,17 +53636,17 @@ function d5(t, e, n) {
53698
53636
  a
53699
53637
  ]);
53700
53638
  }
53701
- function u5(t, e) {
53639
+ function d5(t, e) {
53702
53640
  const n = m4(t, e);
53703
53641
  te(!n.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)");
53704
- const r = s5(), i = o5(n.options, n.previewOptions);
53705
- return d5(n, r, i), [
53642
+ const r = o5(), i = a5(n.options, n.previewOptions);
53643
+ return c5(n, r, i), [
53706
53644
  p4(n.collect, r, i),
53707
- $E(i),
53708
- ZE(i)
53645
+ WE(i),
53646
+ $E(i)
53709
53647
  ];
53710
53648
  }
53711
- function h5(t) {
53649
+ function u5(t) {
53712
53650
  return ye(
53713
53651
  () => t.hooks.dropTarget(),
53714
53652
  [
@@ -53716,9 +53654,9 @@ function h5(t) {
53716
53654
  ]
53717
53655
  );
53718
53656
  }
53719
- function p5(t) {
53657
+ function h5(t) {
53720
53658
  const e = Hi(), n = ye(
53721
- () => new a5(e.getBackend()),
53659
+ () => new i5(e.getBackend()),
53722
53660
  [
53723
53661
  e
53724
53662
  ]
@@ -53727,16 +53665,16 @@ function p5(t) {
53727
53665
  t
53728
53666
  ]), n;
53729
53667
  }
53730
- function m5() {
53668
+ function p5() {
53731
53669
  const t = Hi();
53732
53670
  return ye(
53733
- () => new qE(t),
53671
+ () => new KE(t),
53734
53672
  [
53735
53673
  t
53736
53674
  ]
53737
53675
  );
53738
53676
  }
53739
- function g5(t) {
53677
+ function m5(t) {
53740
53678
  const { accept: e } = t;
53741
53679
  return ye(() => (te(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
53742
53680
  e
@@ -53744,7 +53682,7 @@ function g5(t) {
53744
53682
  e
53745
53683
  ]);
53746
53684
  }
53747
- class b5 {
53685
+ class g5 {
53748
53686
  canDrop() {
53749
53687
  const e = this.spec, n = this.monitor;
53750
53688
  return e.canDrop ? e.canDrop(n.getItem(), n) : !0;
@@ -53762,9 +53700,9 @@ class b5 {
53762
53700
  this.spec = e, this.monitor = n;
53763
53701
  }
53764
53702
  }
53765
- function y5(t, e) {
53703
+ function b5(t, e) {
53766
53704
  const n = ye(
53767
- () => new b5(t, e),
53705
+ () => new g5(t, e),
53768
53706
  [
53769
53707
  e
53770
53708
  ]
@@ -53775,10 +53713,10 @@ function y5(t, e) {
53775
53713
  t
53776
53714
  ]), n;
53777
53715
  }
53778
- function v5(t, e, n) {
53779
- const r = Hi(), i = y5(t, e), a = g5(t);
53716
+ function y5(t, e, n) {
53717
+ const r = Hi(), i = b5(t, e), a = m5(t);
53780
53718
  Hr(function() {
53781
- const [s, l] = XE(a, i, r);
53719
+ const [s, l] = qE(a, i, r);
53782
53720
  return e.receiveHandlerId(s), n.receiveHandlerId(s), l;
53783
53721
  }, [
53784
53722
  r,
@@ -53791,22 +53729,22 @@ function v5(t, e, n) {
53791
53729
  ]);
53792
53730
  }
53793
53731
  function Ou(t, e) {
53794
- const n = m4(t, e), r = m5(), i = p5(n.options);
53795
- return v5(n, r, i), [
53732
+ const n = m4(t, e), r = p5(), i = h5(n.options);
53733
+ return y5(n, r, i), [
53796
53734
  p4(n.collect, r, i),
53797
- h5(i)
53735
+ u5(i)
53798
53736
  ];
53799
53737
  }
53800
53738
  function b4(t) {
53801
53739
  let e = null;
53802
53740
  return () => (e == null && (e = t()), e);
53803
53741
  }
53804
- function w5(t, e) {
53742
+ function v5(t, e) {
53805
53743
  return t.filter(
53806
53744
  (n) => n !== e
53807
53745
  );
53808
53746
  }
53809
- function M5(t, e) {
53747
+ function w5(t, e) {
53810
53748
  const n = /* @__PURE__ */ new Set(), r = (a) => n.add(a);
53811
53749
  t.forEach(r), e.forEach(r);
53812
53750
  const i = [];
@@ -53814,16 +53752,16 @@ function M5(t, e) {
53814
53752
  (a) => i.push(a)
53815
53753
  ), i;
53816
53754
  }
53817
- class x5 {
53755
+ class M5 {
53818
53756
  enter(e) {
53819
53757
  const n = this.entered.length, r = (i) => this.isNodeInDocument(i) && (!i.contains || i.contains(e));
53820
- return this.entered = M5(this.entered.filter(r), [
53758
+ return this.entered = w5(this.entered.filter(r), [
53821
53759
  e
53822
53760
  ]), n === 0 && this.entered.length > 0;
53823
53761
  }
53824
53762
  leave(e) {
53825
53763
  const n = this.entered.length;
53826
- return this.entered = w5(this.entered.filter(this.isNodeInDocument), e), n > 0 && this.entered.length === 0;
53764
+ return this.entered = v5(this.entered.filter(this.isNodeInDocument), e), n > 0 && this.entered.length === 0;
53827
53765
  }
53828
53766
  reset() {
53829
53767
  this.entered = [];
@@ -53832,7 +53770,7 @@ class x5 {
53832
53770
  this.entered = [], this.isNodeInDocument = e;
53833
53771
  }
53834
53772
  }
53835
- class C5 {
53773
+ class x5 {
53836
53774
  initializeExposedProperties() {
53837
53775
  Object.keys(this.config.exposeProperties).forEach((e) => {
53838
53776
  Object.defineProperty(this.item, e, {
@@ -53929,11 +53867,11 @@ const $c = {
53929
53867
  ]
53930
53868
  }
53931
53869
  };
53932
- function L5(t, e) {
53870
+ function C5(t, e) {
53933
53871
  const n = $c[t];
53934
53872
  if (!n)
53935
53873
  throw new Error(`native type ${t} has no configuration`);
53936
- const r = new C5(n);
53874
+ const r = new x5(n);
53937
53875
  return r.loadDataTransfer(e), r;
53938
53876
  }
53939
53877
  function Gf(t) {
@@ -53947,7 +53885,7 @@ function Gf(t) {
53947
53885
  ) : !1;
53948
53886
  })[0] || null;
53949
53887
  }
53950
- const N5 = b4(
53888
+ const L5 = b4(
53951
53889
  () => /firefox/i.test(navigator.userAgent)
53952
53890
  ), x4 = b4(
53953
53891
  () => !!window.safari
@@ -54008,9 +53946,9 @@ class A0 {
54008
53946
  this.xs = e, this.ys = n, this.c1s = c, this.c2s = d, this.c3s = u;
54009
53947
  }
54010
53948
  }
54011
- const k5 = 1;
53949
+ const N5 = 1;
54012
53950
  function C4(t) {
54013
- const e = t.nodeType === k5 ? t : t.parentElement;
53951
+ const e = t.nodeType === N5 ? t : t.parentElement;
54014
53952
  if (!e)
54015
53953
  return null;
54016
53954
  const { top: n, left: r } = e.getBoundingClientRect();
@@ -54025,22 +53963,22 @@ function Bo(t) {
54025
53963
  y: t.clientY
54026
53964
  };
54027
53965
  }
54028
- function S5(t) {
53966
+ function k5(t) {
54029
53967
  var e;
54030
- return t.nodeName === "IMG" && (N5() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
53968
+ return t.nodeName === "IMG" && (L5() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
54031
53969
  }
54032
- function I5(t, e, n, r) {
53970
+ function S5(t, e, n, r) {
54033
53971
  let i = t ? e.width : n, a = t ? e.height : r;
54034
53972
  return x4() && t && (a /= window.devicePixelRatio, i /= window.devicePixelRatio), {
54035
53973
  dragPreviewWidth: i,
54036
53974
  dragPreviewHeight: a
54037
53975
  };
54038
53976
  }
54039
- function T5(t, e, n, r, i) {
54040
- const a = S5(e), s = C4(a ? t : e), l = {
53977
+ function I5(t, e, n, r, i) {
53978
+ const a = k5(e), s = C4(a ? t : e), l = {
54041
53979
  x: n.x - s.x,
54042
53980
  y: n.y - s.y
54043
- }, { offsetWidth: c, offsetHeight: d } = t, { anchorX: u, anchorY: p } = r, { dragPreviewWidth: h, dragPreviewHeight: m } = I5(a, e, c, d), g = () => {
53981
+ }, { offsetWidth: c, offsetHeight: d } = t, { anchorX: u, anchorY: p } = r, { dragPreviewWidth: h, dragPreviewHeight: m } = S5(a, e, c, d), g = () => {
54044
53982
  let L = new A0([
54045
53983
  0,
54046
53984
  0.5,
@@ -54071,7 +54009,7 @@ function T5(t, e, n, r, i) {
54071
54009
  y: w ? x : g()
54072
54010
  };
54073
54011
  }
54074
- class j5 {
54012
+ class T5 {
54075
54013
  get window() {
54076
54014
  if (this.globalContext)
54077
54015
  return this.globalContext;
@@ -54090,7 +54028,7 @@ class j5 {
54090
54028
  this.ownerDocument = null, this.globalContext = e, this.optionsArgs = n;
54091
54029
  }
54092
54030
  }
54093
- function D5(t, e, n) {
54031
+ function j5(t, e, n) {
54094
54032
  return e in t ? Object.defineProperty(t, e, {
54095
54033
  value: n,
54096
54034
  enumerable: !0,
@@ -54104,12 +54042,12 @@ function z0(t) {
54104
54042
  typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
54105
54043
  return Object.getOwnPropertyDescriptor(n, i).enumerable;
54106
54044
  }))), r.forEach(function(i) {
54107
- D5(t, i, n[i]);
54045
+ j5(t, i, n[i]);
54108
54046
  });
54109
54047
  }
54110
54048
  return t;
54111
54049
  }
54112
- class E5 {
54050
+ class D5 {
54113
54051
  /**
54114
54052
  * Generate profiling statistics for the HTML5Backend.
54115
54053
  */
@@ -54202,7 +54140,7 @@ class E5 {
54202
54140
  );
54203
54141
  }
54204
54142
  beginDragNativeItem(e, n) {
54205
- this.clearCurrentDragSourceNode(), this.currentNativeSource = L5(e, n), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([
54143
+ this.clearCurrentDragSourceNode(), this.currentNativeSource = C5(e, n), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([
54206
54144
  this.currentNativeHandle
54207
54145
  ]);
54208
54146
  }
@@ -54271,7 +54209,7 @@ class E5 {
54271
54209
  if (s && typeof s.setDragImage == "function") {
54272
54210
  const d = this.monitor.getSourceId(), u = this.sourceNodes.get(d), p = this.sourcePreviewNodes.get(d) || u;
54273
54211
  if (p) {
54274
- const { anchorX: h, anchorY: m, offsetX: g, offsetY: y } = this.getCurrentSourcePreviewNodeOptions(), C = T5(u, p, o, {
54212
+ const { anchorX: h, anchorY: m, offsetX: g, offsetY: y } = this.getCurrentSourcePreviewNodeOptions(), C = I5(u, p, o, {
54275
54213
  anchorX: h,
54276
54214
  anchorY: m
54277
54215
  }, {
@@ -54353,11 +54291,11 @@ class E5 {
54353
54291
  }, this.handleSelectStart = (i) => {
54354
54292
  const a = i.target;
54355
54293
  typeof a.dragDrop == "function" && (a.tagName === "INPUT" || a.tagName === "SELECT" || a.tagName === "TEXTAREA" || a.isContentEditable || (i.preventDefault(), a.dragDrop()));
54356
- }, this.options = new j5(n, r), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new x5(this.isNodeInDocument);
54294
+ }, this.options = new T5(n, r), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new M5(this.isNodeInDocument);
54357
54295
  }
54358
54296
  }
54359
54297
  const L4 = function(e, n, r) {
54360
- return new E5(e, n, r);
54298
+ return new D5(e, n, r);
54361
54299
  }, qa = {
54362
54300
  TASK: "task"
54363
54301
  }, N4 = {
@@ -54402,7 +54340,7 @@ function ef({
54402
54340
  style: i
54403
54341
  }) {
54404
54342
  var p;
54405
- const [{ isDragging: a }, o] = u5(() => ({
54343
+ const [{ isDragging: a }, o] = d5(() => ({
54406
54344
  type: qa.TASK,
54407
54345
  item: { id: t.id, type: qa.TASK },
54408
54346
  collect: (h) => ({
@@ -54524,7 +54462,7 @@ function ef({
54524
54462
  }
54525
54463
  );
54526
54464
  }
54527
- function A5({
54465
+ function E5({
54528
54466
  days: t,
54529
54467
  tasks: e,
54530
54468
  onDropTask: n,
@@ -54538,7 +54476,7 @@ function A5({
54538
54476
  ), children: t.map((o) => {
54539
54477
  const s = e.filter((l) => l.date && sl(new Date(l.date), o)).sort((l, c) => l.date && c.date ? new Date(l.date).getTime() - new Date(c.date).getTime() : 0);
54540
54478
  return /* @__PURE__ */ f(
54541
- z5,
54479
+ A5,
54542
54480
  {
54543
54481
  day: o,
54544
54482
  tasks: s,
@@ -54551,7 +54489,7 @@ function A5({
54551
54489
  );
54552
54490
  }) });
54553
54491
  }
54554
- function z5({ day: t, tasks: e, onDropTask: n, onTaskClick: r, onAddClick: i, isToday: a }) {
54492
+ function A5({ day: t, tasks: e, onDropTask: n, onTaskClick: r, onAddClick: i, isToday: a }) {
54555
54493
  const [{ isOver: o }, s] = Ou(() => ({
54556
54494
  accept: qa.TASK,
54557
54495
  drop: (l) => n(l.id, t),
@@ -54608,7 +54546,7 @@ function z5({ day: t, tasks: e, onDropTask: n, onTaskClick: r, onAddClick: i, is
54608
54546
  }
54609
54547
  );
54610
54548
  }
54611
- function O5({
54549
+ function z5({
54612
54550
  days: t,
54613
54551
  tasks: e,
54614
54552
  onDropTask: n,
@@ -54626,7 +54564,7 @@ function O5({
54626
54564
  t.map((o, s) => {
54627
54565
  const l = e.filter((c) => c.date && sl(new Date(c.date), o));
54628
54566
  return /* @__PURE__ */ f(
54629
- P5,
54567
+ O5,
54630
54568
  {
54631
54569
  day: o,
54632
54570
  tasks: l,
@@ -54647,7 +54585,7 @@ function O5({
54647
54585
  ] })
54648
54586
  ] });
54649
54587
  }
54650
- function P5({
54588
+ function O5({
54651
54589
  day: t,
54652
54590
  tasks: e,
54653
54591
  onDropTask: n,
@@ -54734,7 +54672,7 @@ function k4({
54734
54672
  (c) => c.date && sl(new Date(c.date), s)
54735
54673
  );
54736
54674
  return /* @__PURE__ */ f(
54737
- R5,
54675
+ P5,
54738
54676
  {
54739
54677
  date: s,
54740
54678
  tasks: l,
@@ -54748,7 +54686,7 @@ function k4({
54748
54686
  );
54749
54687
  }) });
54750
54688
  }
54751
- function R5({
54689
+ function P5({
54752
54690
  date: t,
54753
54691
  tasks: e,
54754
54692
  isCurrentMonth: n,
@@ -55027,7 +54965,7 @@ function j4({ title: t, onPrev: e, onNext: n, onToday: r, onAdd: i, view: a, set
55027
54965
  /* @__PURE__ */ f("h2", { className: "text-lg font-bold text-gray-900 whitespace-nowrap", children: t })
55028
54966
  ] }),
55029
54967
  /* @__PURE__ */ b("div", { className: "flex items-center gap-3 w-full xl:w-auto overflow-x-auto pb-1 xl:pb-0 justify-end", children: [
55030
- /* @__PURE__ */ f(vD, { value: a, onValueChange: (s) => o(s), className: "flex-shrink-0", children: /* @__PURE__ */ b(wD, { className: "h-9", children: [
54968
+ /* @__PURE__ */ f(yD, { value: a, onValueChange: (s) => o(s), className: "flex-shrink-0", children: /* @__PURE__ */ b(vD, { className: "h-9", children: [
55031
54969
  /* @__PURE__ */ f(Ff, { value: "month", className: "text-xs", children: "Month" }),
55032
54970
  /* @__PURE__ */ f(Ff, { value: "week", className: "text-xs", children: "Week" }),
55033
54971
  /* @__PURE__ */ f(Ff, { value: "day", className: "text-xs", children: "Day" })
@@ -55050,7 +54988,7 @@ function j4({ title: t, onPrev: e, onNext: n, onToday: r, onAdd: i, view: a, set
55050
54988
  function D4({ days: t }) {
55051
54989
  return /* @__PURE__ */ f("div", { className: "grid grid-cols-7 border-b bg-gray-50 flex-shrink-0 divide-x", children: t.slice(0, 7).map((e, n) => /* @__PURE__ */ f("div", { className: "py-2 text-center group", children: /* @__PURE__ */ f("div", { className: M("text-xs font-semibold uppercase tracking-wider", ol(e) ? "text-[#7F26BF]" : "text-gray-500"), children: le(e, "EEE") }) }, n)) });
55052
54990
  }
55053
- function S7(t) {
54991
+ function k7(t) {
55054
54992
  const e = I4({ ...t, defaultView: "month" });
55055
54993
  return /* @__PURE__ */ f(u4, { backend: L4, children: /* @__PURE__ */ b("div", { className: M("flex h-[calc(100vh-100px)] bg-background border rounded-lg overflow-hidden shadow-sm", t.className), children: [
55056
54994
  /* @__PURE__ */ f(
@@ -55091,7 +55029,7 @@ function S7(t) {
55091
55029
  mode: "editorial"
55092
55030
  }
55093
55031
  ) : /* @__PURE__ */ f(
55094
- A5,
55032
+ E5,
55095
55033
  {
55096
55034
  days: e.calendarDays,
55097
55035
  tasks: e.scheduledTasks,
@@ -55114,7 +55052,7 @@ function S7(t) {
55114
55052
  )
55115
55053
  ] }) });
55116
55054
  }
55117
- function I7(t) {
55055
+ function S7(t) {
55118
55056
  const e = I4({ ...t, defaultView: "week" });
55119
55057
  return /* @__PURE__ */ f(u4, { backend: L4, children: /* @__PURE__ */ b("div", { className: M("flex h-[calc(100vh-100px)] bg-background border rounded-lg overflow-hidden shadow-sm", t.className), children: [
55120
55058
  /* @__PURE__ */ f(
@@ -55155,7 +55093,7 @@ function I7(t) {
55155
55093
  mode: "execution"
55156
55094
  }
55157
55095
  ) : /* @__PURE__ */ f(
55158
- O5,
55096
+ z5,
55159
55097
  {
55160
55098
  days: e.calendarDays,
55161
55099
  tasks: e.scheduledTasks,
@@ -55177,6 +55115,68 @@ function I7(t) {
55177
55115
  )
55178
55116
  ] }) });
55179
55117
  }
55118
+ const R5 = {
55119
+ "first-use": "bg-primary/8 text-primary",
55120
+ cleared: "bg-success/10 text-success",
55121
+ "no-results": "bg-muted text-muted-foreground",
55122
+ error: "bg-destructive/10 text-destructive"
55123
+ };
55124
+ function I7({
55125
+ icon: t,
55126
+ title: e,
55127
+ description: n,
55128
+ variant: r = "first-use",
55129
+ primaryAction: i,
55130
+ secondaryAction: a,
55131
+ className: o
55132
+ }) {
55133
+ return /* @__PURE__ */ b(
55134
+ "div",
55135
+ {
55136
+ className: M(
55137
+ "flex flex-col items-center justify-center gap-4 py-12 px-6 text-center",
55138
+ o
55139
+ ),
55140
+ role: "status",
55141
+ "aria-live": "polite",
55142
+ children: [
55143
+ /* @__PURE__ */ f(
55144
+ "div",
55145
+ {
55146
+ className: M(
55147
+ "flex size-16 items-center justify-center rounded-2xl",
55148
+ R5[r]
55149
+ ),
55150
+ "aria-hidden": "true",
55151
+ children: /* @__PURE__ */ f(t, { className: "size-8" })
55152
+ }
55153
+ ),
55154
+ /* @__PURE__ */ b("div", { className: "max-w-sm space-y-1.5", children: [
55155
+ /* @__PURE__ */ f("h3", { className: "text-base font-semibold leading-snug text-foreground", children: e }),
55156
+ /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground leading-relaxed", children: n })
55157
+ ] }),
55158
+ (i || a) && /* @__PURE__ */ b("div", { className: "flex flex-wrap items-center justify-center gap-3 pt-1", children: [
55159
+ i && /* @__PURE__ */ f(
55160
+ B,
55161
+ {
55162
+ variant: i.variant ?? "default",
55163
+ onClick: i.onClick,
55164
+ children: i.label
55165
+ }
55166
+ ),
55167
+ a && /* @__PURE__ */ f(
55168
+ B,
55169
+ {
55170
+ variant: a.variant ?? "outline",
55171
+ onClick: a.onClick,
55172
+ children: a.label
55173
+ }
55174
+ )
55175
+ ] })
55176
+ ]
55177
+ }
55178
+ );
55179
+ }
55180
55180
  const T7 = bv, E4 = I.createContext(
55181
55181
  {}
55182
55182
  ), j7 = ({
@@ -55730,50 +55730,6 @@ function B7({
55730
55730
  ) });
55731
55731
  }
55732
55732
  function H7({
55733
- validationState: t,
55734
- validate: e,
55735
- onChange: n,
55736
- className: r,
55737
- ...i
55738
- }) {
55739
- const [a, o] = I.useState("idle"), s = t ?? a;
55740
- function l(c) {
55741
- if (t === void 0 && e) {
55742
- const d = e(c.target.value);
55743
- o(d === null ? "idle" : d ? "valid" : "invalid");
55744
- }
55745
- n == null || n(c);
55746
- }
55747
- return /* @__PURE__ */ b("div", { className: "relative flex items-center", children: [
55748
- /* @__PURE__ */ f(
55749
- Xt,
55750
- {
55751
- className: M(
55752
- s !== "idle" && "pr-9",
55753
- r
55754
- ),
55755
- "aria-invalid": s === "invalid" || void 0,
55756
- onChange: l,
55757
- ...i
55758
- }
55759
- ),
55760
- s === "valid" && /* @__PURE__ */ f(
55761
- q0,
55762
- {
55763
- className: "absolute right-3 size-4 text-green-600 pointer-events-none",
55764
- "aria-hidden": "true"
55765
- }
55766
- ),
55767
- s === "invalid" && /* @__PURE__ */ f(
55768
- Dy,
55769
- {
55770
- className: "absolute right-3 size-4 text-destructive pointer-events-none",
55771
- "aria-hidden": "true"
55772
- }
55773
- )
55774
- ] });
55775
- }
55776
- function U7({
55777
55733
  className: t,
55778
55734
  containerClassName: e,
55779
55735
  ...n
@@ -55791,7 +55747,7 @@ function U7({
55791
55747
  }
55792
55748
  );
55793
55749
  }
55794
- function F7({ className: t, ...e }) {
55750
+ function U7({ className: t, ...e }) {
55795
55751
  return /* @__PURE__ */ f(
55796
55752
  "div",
55797
55753
  {
@@ -55801,7 +55757,7 @@ function F7({ className: t, ...e }) {
55801
55757
  }
55802
55758
  );
55803
55759
  }
55804
- function J7({
55760
+ function F7({
55805
55761
  index: t,
55806
55762
  className: e,
55807
55763
  ...n
@@ -55824,8 +55780,52 @@ function J7({
55824
55780
  }
55825
55781
  );
55826
55782
  }
55827
- function V7({ ...t }) {
55828
- return /* @__PURE__ */ f("div", { "data-slot": "input-otp-separator", role: "separator", ...t, children: /* @__PURE__ */ f(Ey, {}) });
55783
+ function J7({ ...t }) {
55784
+ return /* @__PURE__ */ f("div", { "data-slot": "input-otp-separator", role: "separator", ...t, children: /* @__PURE__ */ f(Dy, {}) });
55785
+ }
55786
+ function V7({
55787
+ validationState: t,
55788
+ validate: e,
55789
+ onChange: n,
55790
+ className: r,
55791
+ ...i
55792
+ }) {
55793
+ const [a, o] = I.useState("idle"), s = t ?? a;
55794
+ function l(c) {
55795
+ if (t === void 0 && e) {
55796
+ const d = e(c.target.value);
55797
+ o(d === null ? "idle" : d ? "valid" : "invalid");
55798
+ }
55799
+ n == null || n(c);
55800
+ }
55801
+ return /* @__PURE__ */ b("div", { className: "relative flex items-center", children: [
55802
+ /* @__PURE__ */ f(
55803
+ Xt,
55804
+ {
55805
+ className: M(
55806
+ s !== "idle" && "pr-9",
55807
+ r
55808
+ ),
55809
+ "aria-invalid": s === "invalid" || void 0,
55810
+ onChange: l,
55811
+ ...i
55812
+ }
55813
+ ),
55814
+ s === "valid" && /* @__PURE__ */ f(
55815
+ q0,
55816
+ {
55817
+ className: "absolute right-3 size-4 text-green-600 pointer-events-none",
55818
+ "aria-hidden": "true"
55819
+ }
55820
+ ),
55821
+ s === "invalid" && /* @__PURE__ */ f(
55822
+ Ey,
55823
+ {
55824
+ className: "absolute right-3 size-4 text-destructive pointer-events-none",
55825
+ "aria-hidden": "true"
55826
+ }
55827
+ )
55828
+ ] });
55829
55829
  }
55830
55830
  function P4({
55831
55831
  className: t,
@@ -58960,12 +58960,12 @@ export {
58960
58960
  N8 as DropdownMenuSubTrigger,
58961
58961
  cl as DropdownMenuTrigger,
58962
58962
  bD as EditableBadge,
58963
- S7 as EditorialCalendar,
58963
+ k7 as EditorialCalendar,
58964
58964
  jA as EmptyCalendarIllustration,
58965
58965
  SA as EmptyInboxIllustration,
58966
58966
  TA as EmptyProjectsIllustration,
58967
58967
  IA as EmptySearchIllustration,
58968
- N7 as EmptyState,
58968
+ I7 as EmptyState,
58969
58969
  DA as ErrorStateIllustration,
58970
58970
  Y7 as FileAttachmentList,
58971
58971
  sO as FileUploadZone,
@@ -58993,11 +58993,11 @@ export {
58993
58993
  v7 as InputGroupInput,
58994
58994
  y7 as InputGroupText,
58995
58995
  w7 as InputGroupTextarea,
58996
- U7 as InputOTP,
58997
- F7 as InputOTPGroup,
58998
- V7 as InputOTPSeparator,
58999
- J7 as InputOTPSlot,
59000
- H7 as InputValidation,
58996
+ H7 as InputOTP,
58997
+ U7 as InputOTPGroup,
58998
+ J7 as InputOTPSeparator,
58999
+ F7 as InputOTPSlot,
59000
+ V7 as InputValidation,
59001
59001
  Y5 as KPICard,
59002
59002
  V5 as KanbanCard,
59003
59003
  nt as Label,
@@ -59106,11 +59106,11 @@ export {
59106
59106
  h1 as TableHeader,
59107
59107
  g1 as TablePagination,
59108
59108
  ea as TableRow,
59109
- vD as Tabs,
59110
- k7 as TabsContent,
59111
- wD as TabsList,
59109
+ yD as Tabs,
59110
+ N7 as TabsContent,
59111
+ vD as TabsList,
59112
59112
  Ff as TabsTrigger,
59113
- I7 as TaskCalendar,
59113
+ S7 as TaskCalendar,
59114
59114
  qz as TaskEditDialog,
59115
59115
  n4 as Textarea,
59116
59116
  is as TimePicker,