unifyedx-storybook-new 0.1.46 → 0.1.48

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.
@@ -1,6 +1,6 @@
1
1
  import require$$1, { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import React__default, { forwardRef, createElement, useState, useMemo, useId as useId$1, createContext, useContext, useCallback, useRef, useLayoutEffect, useEffect, Fragment as Fragment$1, useImperativeHandle, memo, useReducer, useSyncExternalStore, isValidElement, cloneElement } from 'react';
3
+ import React__default, { forwardRef, createElement, useState, useMemo, useId as useId$1, createContext, useContext, useCallback, useRef, useLayoutEffect, useEffect, Fragment as Fragment$1, useImperativeHandle, memo, useReducer, isValidElement, useSyncExternalStore, cloneElement } from 'react';
4
4
  import { Popover as Popover$1, PopoverButton, PopoverPanel, Transition, Dialog, TransitionChild, DialogPanel, DialogTitle, TabGroup, TabList, Tab, TabPanels, RadioGroup as RadioGroup$1, Listbox, ListboxButton, ListboxOptions, ListboxOption, SwitchGroup, Switch, Menu as Menu$1, MenuButton, Portal, MenuItems, MenuItem, DialogBackdrop } from '@headlessui/react';
5
5
  import { motion, AnimatePresence } from 'framer-motion';
6
6
  import { useFloating, offset as offset$2, flip as flip$2, shift as shift$2, autoUpdate as autoUpdate$1, useClick, useDismiss, useInteractions, FloatingPortal } from '@floating-ui/react';
@@ -123,11 +123,11 @@ const createLucideIcon = (iconName, iconNode) => {
123
123
  */
124
124
 
125
125
 
126
- const __iconNode$w = [
126
+ const __iconNode$x = [
127
127
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
128
128
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
129
129
  ];
130
- const ArrowLeft = createLucideIcon("arrow-left", __iconNode$w);
130
+ const ArrowLeft = createLucideIcon("arrow-left", __iconNode$x);
131
131
 
132
132
  /**
133
133
  * @license lucide-react v0.525.0 - ISC
@@ -137,13 +137,13 @@ const ArrowLeft = createLucideIcon("arrow-left", __iconNode$w);
137
137
  */
138
138
 
139
139
 
140
- const __iconNode$v = [
140
+ const __iconNode$w = [
141
141
  ["path", { d: "M8 2v4", key: "1cmpym" }],
142
142
  ["path", { d: "M16 2v4", key: "4m81vk" }],
143
143
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
144
144
  ["path", { d: "M3 10h18", key: "8toen8" }]
145
145
  ];
146
- const Calendar$1 = createLucideIcon("calendar", __iconNode$v);
146
+ const Calendar$1 = createLucideIcon("calendar", __iconNode$w);
147
147
 
148
148
  /**
149
149
  * @license lucide-react v0.525.0 - ISC
@@ -153,8 +153,8 @@ const Calendar$1 = createLucideIcon("calendar", __iconNode$v);
153
153
  */
154
154
 
155
155
 
156
- const __iconNode$u = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
157
- const Check = createLucideIcon("check", __iconNode$u);
156
+ const __iconNode$v = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
157
+ const Check = createLucideIcon("check", __iconNode$v);
158
158
 
159
159
  /**
160
160
  * @license lucide-react v0.525.0 - ISC
@@ -164,8 +164,8 @@ const Check = createLucideIcon("check", __iconNode$u);
164
164
  */
165
165
 
166
166
 
167
- const __iconNode$t = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
168
- const ChevronDown = createLucideIcon("chevron-down", __iconNode$t);
167
+ const __iconNode$u = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
168
+ const ChevronDown = createLucideIcon("chevron-down", __iconNode$u);
169
169
 
170
170
  /**
171
171
  * @license lucide-react v0.525.0 - ISC
@@ -175,11 +175,11 @@ const ChevronDown = createLucideIcon("chevron-down", __iconNode$t);
175
175
  */
176
176
 
177
177
 
178
- const __iconNode$s = [
178
+ const __iconNode$t = [
179
179
  ["path", { d: "m17 18-6-6 6-6", key: "1yerx2" }],
180
180
  ["path", { d: "M7 6v12", key: "1p53r6" }]
181
181
  ];
182
- const ChevronFirst = createLucideIcon("chevron-first", __iconNode$s);
182
+ const ChevronFirst = createLucideIcon("chevron-first", __iconNode$t);
183
183
 
184
184
  /**
185
185
  * @license lucide-react v0.525.0 - ISC
@@ -189,11 +189,11 @@ const ChevronFirst = createLucideIcon("chevron-first", __iconNode$s);
189
189
  */
190
190
 
191
191
 
192
- const __iconNode$r = [
192
+ const __iconNode$s = [
193
193
  ["path", { d: "m7 18 6-6-6-6", key: "lwmzdw" }],
194
194
  ["path", { d: "M17 6v12", key: "1o0aio" }]
195
195
  ];
196
- const ChevronLast = createLucideIcon("chevron-last", __iconNode$r);
196
+ const ChevronLast = createLucideIcon("chevron-last", __iconNode$s);
197
197
 
198
198
  /**
199
199
  * @license lucide-react v0.525.0 - ISC
@@ -203,8 +203,8 @@ const ChevronLast = createLucideIcon("chevron-last", __iconNode$r);
203
203
  */
204
204
 
205
205
 
206
- const __iconNode$q = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
207
- const ChevronLeft = createLucideIcon("chevron-left", __iconNode$q);
206
+ const __iconNode$r = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
207
+ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$r);
208
208
 
209
209
  /**
210
210
  * @license lucide-react v0.525.0 - ISC
@@ -214,8 +214,8 @@ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$q);
214
214
  */
215
215
 
216
216
 
217
- const __iconNode$p = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
218
- const ChevronRight = createLucideIcon("chevron-right", __iconNode$p);
217
+ const __iconNode$q = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
218
+ const ChevronRight = createLucideIcon("chevron-right", __iconNode$q);
219
219
 
220
220
  /**
221
221
  * @license lucide-react v0.525.0 - ISC
@@ -225,11 +225,11 @@ const ChevronRight = createLucideIcon("chevron-right", __iconNode$p);
225
225
  */
226
226
 
227
227
 
228
- const __iconNode$o = [
228
+ const __iconNode$p = [
229
229
  ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
230
230
  ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
231
231
  ];
232
- const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$o);
232
+ const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$p);
233
233
 
234
234
  /**
235
235
  * @license lucide-react v0.525.0 - ISC
@@ -239,11 +239,11 @@ const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$o);
239
239
  */
240
240
 
241
241
 
242
- const __iconNode$n = [
242
+ const __iconNode$o = [
243
243
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
244
244
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
245
245
  ];
246
- const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$n);
246
+ const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$o);
247
247
 
248
248
  /**
249
249
  * @license lucide-react v0.525.0 - ISC
@@ -253,12 +253,12 @@ const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$n);
253
253
  */
254
254
 
255
255
 
256
- const __iconNode$m = [
256
+ const __iconNode$n = [
257
257
  ["path", { d: "M12 13v8", key: "1l5pq0" }],
258
258
  ["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
259
259
  ["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
260
260
  ];
261
- const CloudUpload = createLucideIcon("cloud-upload", __iconNode$m);
261
+ const CloudUpload = createLucideIcon("cloud-upload", __iconNode$n);
262
262
 
263
263
  /**
264
264
  * @license lucide-react v0.525.0 - ISC
@@ -268,7 +268,7 @@ const CloudUpload = createLucideIcon("cloud-upload", __iconNode$m);
268
268
  */
269
269
 
270
270
 
271
- const __iconNode$l = [
271
+ const __iconNode$m = [
272
272
  ["path", { d: "M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5", key: "1g2yzs" }],
273
273
  ["path", { d: "m14.3 19.6 1-.4", key: "11sv9r" }],
274
274
  ["path", { d: "M15 3v7.5", key: "7lm50a" }],
@@ -282,7 +282,7 @@ const __iconNode$l = [
282
282
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
283
283
  ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
284
284
  ];
285
- const Columns3Cog = createLucideIcon("columns-3-cog", __iconNode$l);
285
+ const Columns3Cog = createLucideIcon("columns-3-cog", __iconNode$m);
286
286
 
287
287
  /**
288
288
  * @license lucide-react v0.525.0 - ISC
@@ -292,12 +292,12 @@ const Columns3Cog = createLucideIcon("columns-3-cog", __iconNode$l);
292
292
  */
293
293
 
294
294
 
295
- const __iconNode$k = [
295
+ const __iconNode$l = [
296
296
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
297
297
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
298
298
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
299
299
  ];
300
- const EllipsisVertical = createLucideIcon("ellipsis-vertical", __iconNode$k);
300
+ const EllipsisVertical = createLucideIcon("ellipsis-vertical", __iconNode$l);
301
301
 
302
302
  /**
303
303
  * @license lucide-react v0.525.0 - ISC
@@ -307,12 +307,12 @@ const EllipsisVertical = createLucideIcon("ellipsis-vertical", __iconNode$k);
307
307
  */
308
308
 
309
309
 
310
- const __iconNode$j = [
310
+ const __iconNode$k = [
311
311
  ["path", { d: "M12 17h.01", key: "p32p05" }],
312
312
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }],
313
313
  ["path", { d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3", key: "mhlwft" }]
314
314
  ];
315
- const FileQuestionMark = createLucideIcon("file-question-mark", __iconNode$j);
315
+ const FileQuestionMark = createLucideIcon("file-question-mark", __iconNode$k);
316
316
 
317
317
  /**
318
318
  * @license lucide-react v0.525.0 - ISC
@@ -322,7 +322,7 @@ const FileQuestionMark = createLucideIcon("file-question-mark", __iconNode$j);
322
322
  */
323
323
 
324
324
 
325
- const __iconNode$i = [
325
+ const __iconNode$j = [
326
326
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
327
327
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
328
328
  ["path", { d: "M8 13h2", key: "yr2amv" }],
@@ -330,7 +330,7 @@ const __iconNode$i = [
330
330
  ["path", { d: "M8 17h2", key: "2yhykz" }],
331
331
  ["path", { d: "M14 17h2", key: "10kma7" }]
332
332
  ];
333
- const FileSpreadsheet = createLucideIcon("file-spreadsheet", __iconNode$i);
333
+ const FileSpreadsheet = createLucideIcon("file-spreadsheet", __iconNode$j);
334
334
 
335
335
  /**
336
336
  * @license lucide-react v0.525.0 - ISC
@@ -340,14 +340,14 @@ const FileSpreadsheet = createLucideIcon("file-spreadsheet", __iconNode$i);
340
340
  */
341
341
 
342
342
 
343
- const __iconNode$h = [
343
+ const __iconNode$i = [
344
344
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
345
345
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
346
346
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
347
347
  ["path", { d: "M16 13H8", key: "t4e002" }],
348
348
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
349
349
  ];
350
- const FileText = createLucideIcon("file-text", __iconNode$h);
350
+ const FileText = createLucideIcon("file-text", __iconNode$i);
351
351
 
352
352
  /**
353
353
  * @license lucide-react v0.525.0 - ISC
@@ -357,7 +357,7 @@ const FileText = createLucideIcon("file-text", __iconNode$h);
357
357
  */
358
358
 
359
359
 
360
- const __iconNode$g = [
360
+ const __iconNode$h = [
361
361
  [
362
362
  "path",
363
363
  {
@@ -366,7 +366,7 @@ const __iconNode$g = [
366
366
  }
367
367
  ]
368
368
  ];
369
- const Folder = createLucideIcon("folder", __iconNode$g);
369
+ const Folder = createLucideIcon("folder", __iconNode$h);
370
370
 
371
371
  /**
372
372
  * @license lucide-react v0.525.0 - ISC
@@ -376,7 +376,7 @@ const Folder = createLucideIcon("folder", __iconNode$g);
376
376
  */
377
377
 
378
378
 
379
- const __iconNode$f = [
379
+ const __iconNode$g = [
380
380
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
381
381
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
382
382
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
@@ -384,7 +384,7 @@ const __iconNode$f = [
384
384
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
385
385
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
386
386
  ];
387
- const GripVertical = createLucideIcon("grip-vertical", __iconNode$f);
387
+ const GripVertical = createLucideIcon("grip-vertical", __iconNode$g);
388
388
 
389
389
  /**
390
390
  * @license lucide-react v0.525.0 - ISC
@@ -394,12 +394,12 @@ const GripVertical = createLucideIcon("grip-vertical", __iconNode$f);
394
394
  */
395
395
 
396
396
 
397
- const __iconNode$e = [
397
+ const __iconNode$f = [
398
398
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
399
399
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
400
400
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
401
401
  ];
402
- const Info = createLucideIcon("info", __iconNode$e);
402
+ const Info = createLucideIcon("info", __iconNode$f);
403
403
 
404
404
  /**
405
405
  * @license lucide-react v0.525.0 - ISC
@@ -409,12 +409,12 @@ const Info = createLucideIcon("info", __iconNode$e);
409
409
  */
410
410
 
411
411
 
412
- const __iconNode$d = [
412
+ const __iconNode$e = [
413
413
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
414
414
  ["path", { d: "M7 12h10", key: "b7w52i" }],
415
415
  ["path", { d: "M10 18h4", key: "1ulq68" }]
416
416
  ];
417
- const ListFilter = createLucideIcon("list-filter", __iconNode$d);
417
+ const ListFilter = createLucideIcon("list-filter", __iconNode$e);
418
418
 
419
419
  /**
420
420
  * @license lucide-react v0.525.0 - ISC
@@ -424,8 +424,8 @@ const ListFilter = createLucideIcon("list-filter", __iconNode$d);
424
424
  */
425
425
 
426
426
 
427
- const __iconNode$c = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
428
- const LoaderCircle = createLucideIcon("loader-circle", __iconNode$c);
427
+ const __iconNode$d = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
428
+ const LoaderCircle = createLucideIcon("loader-circle", __iconNode$d);
429
429
 
430
430
  /**
431
431
  * @license lucide-react v0.525.0 - ISC
@@ -435,12 +435,12 @@ const LoaderCircle = createLucideIcon("loader-circle", __iconNode$c);
435
435
  */
436
436
 
437
437
 
438
- const __iconNode$b = [
438
+ const __iconNode$c = [
439
439
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
440
440
  ["path", { d: "M21 12H9", key: "dn1m92" }],
441
441
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
442
442
  ];
443
- const LogOut = createLucideIcon("log-out", __iconNode$b);
443
+ const LogOut = createLucideIcon("log-out", __iconNode$c);
444
444
 
445
445
  /**
446
446
  * @license lucide-react v0.525.0 - ISC
@@ -450,12 +450,12 @@ const LogOut = createLucideIcon("log-out", __iconNode$b);
450
450
  */
451
451
 
452
452
 
453
- const __iconNode$a = [
453
+ const __iconNode$b = [
454
454
  ["path", { d: "M4 12h16", key: "1lakjw" }],
455
455
  ["path", { d: "M4 18h16", key: "19g7jn" }],
456
456
  ["path", { d: "M4 6h16", key: "1o0s65" }]
457
457
  ];
458
- const Menu = createLucideIcon("menu", __iconNode$a);
458
+ const Menu = createLucideIcon("menu", __iconNode$b);
459
459
 
460
460
  /**
461
461
  * @license lucide-react v0.525.0 - ISC
@@ -465,11 +465,11 @@ const Menu = createLucideIcon("menu", __iconNode$a);
465
465
  */
466
466
 
467
467
 
468
- const __iconNode$9 = [
468
+ const __iconNode$a = [
469
469
  ["path", { d: "M6 8L2 12L6 16", key: "kyvwex" }],
470
470
  ["path", { d: "M2 12H22", key: "1m8cig" }]
471
471
  ];
472
- const MoveLeft = createLucideIcon("move-left", __iconNode$9);
472
+ const MoveLeft = createLucideIcon("move-left", __iconNode$a);
473
473
 
474
474
  /**
475
475
  * @license lucide-react v0.525.0 - ISC
@@ -479,11 +479,11 @@ const MoveLeft = createLucideIcon("move-left", __iconNode$9);
479
479
  */
480
480
 
481
481
 
482
- const __iconNode$8 = [
482
+ const __iconNode$9 = [
483
483
  ["path", { d: "M5 12h14", key: "1ays0h" }],
484
484
  ["path", { d: "M12 5v14", key: "s699le" }]
485
485
  ];
486
- const Plus = createLucideIcon("plus", __iconNode$8);
486
+ const Plus = createLucideIcon("plus", __iconNode$9);
487
487
 
488
488
  /**
489
489
  * @license lucide-react v0.525.0 - ISC
@@ -493,7 +493,7 @@ const Plus = createLucideIcon("plus", __iconNode$8);
493
493
  */
494
494
 
495
495
 
496
- const __iconNode$7 = [
496
+ const __iconNode$8 = [
497
497
  [
498
498
  "path",
499
499
  {
@@ -504,7 +504,7 @@ const __iconNode$7 = [
504
504
  ["path", { d: "M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6", key: "1itne7" }],
505
505
  ["rect", { x: "6", y: "14", width: "12", height: "8", rx: "1", key: "1ue0tg" }]
506
506
  ];
507
- const Printer = createLucideIcon("printer", __iconNode$7);
507
+ const Printer = createLucideIcon("printer", __iconNode$8);
508
508
 
509
509
  /**
510
510
  * @license lucide-react v0.525.0 - ISC
@@ -514,13 +514,13 @@ const Printer = createLucideIcon("printer", __iconNode$7);
514
514
  */
515
515
 
516
516
 
517
- const __iconNode$6 = [
517
+ const __iconNode$7 = [
518
518
  ["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
519
519
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
520
520
  ["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
521
521
  ["path", { d: "M16 16h5v5", key: "ccwih5" }]
522
522
  ];
523
- const RefreshCcw = createLucideIcon("refresh-ccw", __iconNode$6);
523
+ const RefreshCcw = createLucideIcon("refresh-ccw", __iconNode$7);
524
524
 
525
525
  /**
526
526
  * @license lucide-react v0.525.0 - ISC
@@ -530,11 +530,31 @@ const RefreshCcw = createLucideIcon("refresh-ccw", __iconNode$6);
530
530
  */
531
531
 
532
532
 
533
- const __iconNode$5 = [
533
+ const __iconNode$6 = [
534
534
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
535
535
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
536
536
  ];
537
- const Search = createLucideIcon("search", __iconNode$5);
537
+ const Search = createLucideIcon("search", __iconNode$6);
538
+
539
+ /**
540
+ * @license lucide-react v0.525.0 - ISC
541
+ *
542
+ * This source code is licensed under the ISC license.
543
+ * See the LICENSE file in the root directory of this source tree.
544
+ */
545
+
546
+
547
+ const __iconNode$5 = [
548
+ ["path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7", key: "1m0v6g" }],
549
+ [
550
+ "path",
551
+ {
552
+ d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",
553
+ key: "ohrbg2"
554
+ }
555
+ ]
556
+ ];
557
+ const SquarePen = createLucideIcon("square-pen", __iconNode$5);
538
558
 
539
559
  /**
540
560
  * @license lucide-react v0.525.0 - ISC
@@ -75240,6 +75260,31 @@ function SectionRenderer({ item, data: initialData, updateHandler, validationErr
75240
75260
  updateHandler(section.key, data);
75241
75261
  }
75242
75262
  }, [section.key, data, updateHandler]);
75263
+ const shouldShowField = (field) => {
75264
+ if (!field.dependsOn) return true;
75265
+ const { field: dependentField, value: requiredValue, operator = "equals" } = field.dependsOn;
75266
+ const dependentValue = data[dependentField];
75267
+ switch (operator) {
75268
+ case "equals":
75269
+ return dependentValue === requiredValue;
75270
+ case "notEquals":
75271
+ return dependentValue !== requiredValue;
75272
+ case "contains":
75273
+ return Array.isArray(dependentValue) && dependentValue.includes(requiredValue);
75274
+ case "notContains":
75275
+ return !Array.isArray(dependentValue) || !dependentValue.includes(requiredValue);
75276
+ case "greaterThan":
75277
+ return Number(dependentValue) > Number(requiredValue);
75278
+ case "lessThan":
75279
+ return Number(dependentValue) < Number(requiredValue);
75280
+ case "isEmpty":
75281
+ return !dependentValue || Array.isArray(dependentValue) && dependentValue.length === 0;
75282
+ case "isNotEmpty":
75283
+ return dependentValue && (!Array.isArray(dependentValue) || dependentValue.length > 0);
75284
+ default:
75285
+ return true;
75286
+ }
75287
+ };
75243
75288
  return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { style: { marginBottom: "20px" }, children: [
75244
75289
  /* @__PURE__ */ jsx(
75245
75290
  "h2",
@@ -75253,7 +75298,7 @@ function SectionRenderer({ item, data: initialData, updateHandler, validationErr
75253
75298
  }
75254
75299
  ),
75255
75300
  /* @__PURE__ */ jsx("p", { style: { fontSize: "14px", marginBottom: "10px" }, children: section.description }),
75256
- /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: section.fields.map((field, idx) => /* @__PURE__ */ jsxs("div", { style: { marginBottom: "10px" }, children: [
75301
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: section.fields.map((field, idx) => shouldShowField(field) && /* @__PURE__ */ jsxs("div", { style: { marginBottom: "10px" }, children: [
75257
75302
  /* @__PURE__ */ jsxs(
75258
75303
  "label",
75259
75304
  {
@@ -75541,6 +75586,33 @@ function SectionRenderer({ item, data: initialData, updateHandler, validationErr
75541
75586
  ),
75542
75587
  validationErrors[section.key]?.[field.key] && /* @__PURE__ */ jsx("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: validationErrors[section.key][field.key] })
75543
75588
  ] }),
75589
+ field.fieldtype === "native-radio" && /* @__PURE__ */ jsxs("div", { className: "native-radiogroup-container", children: [
75590
+ (field.options || []).map((option) => /* @__PURE__ */ jsxs("div", { className: "native-radio-option", children: [
75591
+ /* @__PURE__ */ jsx(
75592
+ "input",
75593
+ {
75594
+ type: "radio",
75595
+ id: `${field.key}-${option.value}`,
75596
+ name: field.key,
75597
+ value: option.value,
75598
+ checked: data[field.key] === option.value,
75599
+ onChange: (e) => {
75600
+ const newData = { ...data, [field.key]: e.target.value };
75601
+ setData(newData);
75602
+ if (updateHandler) {
75603
+ updateHandler(section.key, newData);
75604
+ }
75605
+ },
75606
+ disabled: field.disabled
75607
+ }
75608
+ ),
75609
+ /* @__PURE__ */ jsxs("label", { htmlFor: `${field.key}-${option.value}`, children: [
75610
+ /* @__PURE__ */ jsx("span", { className: "native-radio-label", children: option.label }),
75611
+ option.description && /* @__PURE__ */ jsx("span", { className: "native-radio-description", children: option.description })
75612
+ ] })
75613
+ ] }, option.value)),
75614
+ validationErrors[section.key]?.[field.key] && /* @__PURE__ */ jsx("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: validationErrors[section.key][field.key] })
75615
+ ] }),
75544
75616
  field.fieldtype === "search" && /* @__PURE__ */ jsxs("div", { children: [
75545
75617
  /* @__PURE__ */ jsx(
75546
75618
  SearchBar,
@@ -75674,6 +75746,29 @@ function SectionRenderer({ item, data: initialData, updateHandler, validationErr
75674
75746
  ),
75675
75747
  validationErrors[section.key]?.[field.key] && /* @__PURE__ */ jsx("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: validationErrors[section.key][field.key] })
75676
75748
  ] }),
75749
+ field.fieldtype === "managecollectionlist" && /* @__PURE__ */ jsxs("div", { children: [
75750
+ /* @__PURE__ */ jsx(
75751
+ ManageCollectionList,
75752
+ {
75753
+ endpoints: field.endpoints || {},
75754
+ initialData: data[field.key] || field.initialData || [],
75755
+ className: field.className || "",
75756
+ onCollectionChange: (newCollections) => {
75757
+ const newData = { ...data, [field.key]: newCollections };
75758
+ setData(newData);
75759
+ if (updateHandler) {
75760
+ updateHandler(section.key, newData);
75761
+ }
75762
+ },
75763
+ showSearch: field.showSearch !== false,
75764
+ allowAdd: field.allowAdd !== false,
75765
+ allowEdit: field.allowEdit !== false,
75766
+ allowDelete: field.allowDelete !== false,
75767
+ allowReorder: field.allowReorder !== false
75768
+ }
75769
+ ),
75770
+ validationErrors[section.key]?.[field.key] && /* @__PURE__ */ jsx("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: validationErrors[section.key][field.key] })
75771
+ ] }),
75677
75772
  field.info && /* @__PURE__ */ jsx(
75678
75773
  "p",
75679
75774
  {
@@ -76200,6 +76295,380 @@ function DataTableRenderer({ item, data: initialData, updateHandler, validationE
76200
76295
  ] });
76201
76296
  }
76202
76297
 
76298
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
76299
+
76300
+ function Mt(t){if(typeof document=="undefined")return;let o=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",o.firstChild?o.insertBefore(e,o.firstChild):o.appendChild(e),e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t));}Mt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
76301
+ `);var L=t=>typeof t=="number"&&!isNaN(t),N=t=>typeof t=="string",P=t=>typeof t=="function",mt=t=>N(t)||L(t),B=t=>N(t)||P(t)?t:null,pt=(t,o)=>t===false||L(t)&&t>0?t:o,z=t=>isValidElement(t)||N(t)||P(t)||L(t);function Z(t,o,e=300){let{scrollHeight:r,style:s}=t;requestAnimationFrame(()=>{s.minHeight="initial",s.height=r+"px",s.transition=`all ${e}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(o,e);});});}function $({enter:t,exit:o,appendPosition:e=false,collapse:r=true,collapseDuration:s=300}){return function({children:a,position:d,preventExitTransition:c,done:T,nodeRef:g,isIn:v,playToast:x}){let C=e?`${t}--${d}`:t,S=e?`${o}--${d}`:o,E=useRef(0);return useLayoutEffect(()=>{let f=g.current,p=C.split(" "),b=n=>{n.target===g.current&&(x(),f.removeEventListener("animationend",b),f.removeEventListener("animationcancel",b),E.current===0&&n.type!=="animationcancel"&&f.classList.remove(...p));};(()=>{f.classList.add(...p),f.addEventListener("animationend",b),f.addEventListener("animationcancel",b);})();},[]),useEffect(()=>{let f=g.current,p=()=>{f.removeEventListener("animationend",p),r?Z(f,T,s):T();};v||(c?p():(()=>{E.current=1,f.className+=` ${S}`,f.addEventListener("animationend",p);})());},[v]),React__default.createElement(React__default.Fragment,null,a)}}function J(t,o){return {content:tt(t.content,t.props),containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,reason:t.removalReason,status:o}}function tt(t,o,e=false){return isValidElement(t)&&!N(t.type)?cloneElement(t,{closeToast:o.closeToast,toastProps:o,data:o.data,isPaused:e}):P(t)?t({closeToast:o.closeToast,toastProps:o,data:o.data,isPaused:e}):t}function yt({closeToast:t,theme:o,ariaLabel:e="close"}){return React__default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${o}`,type:"button",onClick:r=>{r.stopPropagation(),t(true);},"aria-label":e},React__default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React__default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function gt({delay:t,isRunning:o,closeToast:e,type:r="default",hide:s,className:l,controlledProgress:a,progress:d,rtl:c,isIn:T,theme:g}){let v=s||a&&d===0,x={animationDuration:`${t}ms`,animationPlayState:o?"running":"paused"};a&&(x.transform=`scaleX(${d})`);let C=clsx("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${r}`,{["Toastify__progress-bar--rtl"]:c}),S=P(l)?l({rtl:c,type:r,defaultClassName:C}):clsx(C,l),E={[a&&d>=1?"onTransitionEnd":"onAnimationEnd"]:a&&d<1?null:()=>{T&&e();}};return React__default.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":v},React__default.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${r}`}),React__default.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:S,style:x,...E}))}var Xt=1,at=()=>`${Xt++}`;function _t(t,o,e){let r=1,s=0,l=[],a=[],d=o,c=new Map,T=new Set,g=i=>(T.add(i),()=>T.delete(i)),v=()=>{a=Array.from(c.values()),T.forEach(i=>i());},x=({containerId:i,toastId:n,updateId:u})=>{let h=i?i!==t:t!==1,m=c.has(n)&&u==null;return h||m},C=(i,n)=>{c.forEach(u=>{var h;(n==null||n===u.props.toastId)&&((h=u.toggle)==null||h.call(u,i));});},S=i=>{var n,u;(u=(n=i.props)==null?void 0:n.onClose)==null||u.call(n,i.removalReason),i.isActive=false;},E=i=>{if(i==null)c.forEach(S);else {let n=c.get(i);n&&S(n);}v();},f=()=>{s-=l.length,l=[];},p=i=>{var m,_;let{toastId:n,updateId:u}=i.props,h=u==null;i.staleId&&c.delete(i.staleId),i.isActive=true,c.set(n,i),v(),e(J(i,h?"added":"updated")),h&&((_=(m=i.props).onOpen)==null||_.call(m));};return {id:t,props:d,observe:g,toggle:C,removeToast:E,toasts:c,clearQueue:f,buildToast:(i,n)=>{if(x(n))return;let{toastId:u,updateId:h,data:m,staleId:_,delay:k}=n,M=h==null;M&&s++;let A={...d,style:d.toastStyle,key:r++,...Object.fromEntries(Object.entries(n).filter(([D,Y])=>Y!=null)),toastId:u,updateId:h,data:m,isIn:false,className:B(n.className||d.toastClassName),progressClassName:B(n.progressClassName||d.progressClassName),autoClose:n.isLoading?false:pt(n.autoClose,d.autoClose),closeToast(D){c.get(u).removalReason=D,E(u);},deleteToast(){let D=c.get(u);if(D!=null){if(e(J(D,"removed")),c.delete(u),s--,s<0&&(s=0),l.length>0){p(l.shift());return}v();}}};A.closeButton=d.closeButton,n.closeButton===false||z(n.closeButton)?A.closeButton=n.closeButton:n.closeButton===true&&(A.closeButton=z(d.closeButton)?d.closeButton:true);let R={content:i,props:A,staleId:_};d.limit&&d.limit>0&&s>d.limit&&M?l.push(R):L(k)?setTimeout(()=>{p(R);},k):p(R);},setProps(i){d=i;},setToggle:(i,n)=>{let u=c.get(i);u&&(u.toggle=n);},isToastActive:i=>{var n;return (n=c.get(i))==null?void 0:n.isActive},getSnapshot:()=>a}}var I=new Map,F=[],st=new Set,Vt=t=>st.forEach(o=>o(t)),bt=()=>I.size>0;function Qt(){F.forEach(t=>nt(t.content,t.options)),F=[];}var vt=(t,{containerId:o})=>{var e;return (e=I.get(o||1))==null?void 0:e.toasts.get(t)};function X(t,o){var r;if(o)return !!((r=I.get(o))!=null&&r.isToastActive(t));let e=false;return I.forEach(s=>{s.isToastActive(t)&&(e=true);}),e}function ht(t){if(!bt()){F=F.filter(o=>t!=null&&o.options.toastId!==t);return}if(t==null||mt(t))I.forEach(o=>{o.removeToast(t);});else if(t&&("containerId"in t||"id"in t)){let o=I.get(t.containerId);o?o.removeToast(t.id):I.forEach(e=>{e.removeToast(t.id);});}}var Ct=(t={})=>{I.forEach(o=>{o.props.limit&&(!t.containerId||o.id===t.containerId)&&o.clearQueue();});};function nt(t,o){z(t)&&(bt()||F.push({content:t,options:o}),I.forEach(e=>{e.buildToast(t,o);}));}function xt(t){var o;(o=I.get(t.containerId||1))==null||o.setToggle(t.id,t.fn);}function rt(t,o){I.forEach(e=>{(o==null||!(o!=null&&o.containerId)||(o==null?void 0:o.containerId)===e.id)&&e.toggle(t,o==null?void 0:o.id);});}function Et(t){let o=t.containerId||1;return {subscribe(e){let r=_t(o,t,Vt);I.set(o,r);let s=r.observe(e);return Qt(),()=>{s(),I.delete(o);}},setProps(e){var r;(r=I.get(o))==null||r.setProps(e);},getSnapshot(){var e;return (e=I.get(o))==null?void 0:e.getSnapshot()}}}function Pt(t){return st.add(t),()=>{st.delete(t);}}function Wt(t){return t&&(N(t.toastId)||L(t.toastId))?t.toastId:at()}function U(t,o){return nt(t,o),o.toastId}function V(t,o){return {...o,type:o&&o.type||t,toastId:Wt(o)}}function Q(t){return (o,e)=>U(o,V(t,e))}function y(t,o){return U(t,V("default",o))}y.loading=(t,o)=>U(t,V("default",{isLoading:true,autoClose:false,closeOnClick:false,closeButton:false,draggable:false,...o}));function Gt(t,{pending:o,error:e,success:r},s){let l;o&&(l=N(o)?y.loading(o,s):y.loading(o.render,{...s,...o}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(T,g,v)=>{if(g==null){y.dismiss(l);return}let x={type:T,...a,...s,data:v},C=N(g)?{render:g}:g;return l?y.update(l,{...x,...C}):y(C.render,{...x,...C}),v},c=P(t)?t():t;return c.then(T=>d("success",r,T)).catch(T=>d("error",e,T)),c}y.promise=Gt;y.success=Q("success");y.info=Q("info");y.error=Q("error");y.warning=Q("warning");y.warn=y.warning;y.dark=(t,o)=>U(t,V("default",{theme:"dark",...o}));function qt(t){ht(t);}y.dismiss=qt;y.clearWaitingQueue=Ct;y.isActive=X;y.update=(t,o={})=>{let e=vt(t,o);if(e){let{props:r,content:s}=e,l={delay:100,...r,...o,toastId:o.toastId||t,updateId:at()};l.toastId!==t&&(l.staleId=t);let a=l.render||s;delete l.render,U(a,l);}};y.done=t=>{y.update(t,{progress:1});};y.onChange=Pt;y.play=t=>rt(true,t);y.pause=t=>rt(false,t);function It(t){var a;let{subscribe:o,getSnapshot:e,setProps:r}=useRef(Et(t)).current;r(t);let s=(a=useSyncExternalStore(o,e,e))==null?void 0:a.slice();function l(d){if(!s)return [];let c=new Map;return t.newestOnTop&&s.reverse(),s.forEach(T=>{let{position:g}=T.props;c.has(g)||c.set(g,[]),c.get(g).push(T);}),Array.from(c,T=>d(T[0],T[1]))}return {getToastToRender:l,isToastActive:X,count:s==null?void 0:s.length}}function At(t){let[o,e]=useState(false),[r,s]=useState(false),l=useRef(null),a=useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:true,canDrag:false,didMove:false}).current,{autoClose:d,pauseOnHover:c,closeToast:T,onClick:g,closeOnClick:v}=t;xt({id:t.toastId,containerId:t.containerId,fn:e}),useEffect(()=>{if(t.pauseOnFocusLoss)return x(),()=>{C();}},[t.pauseOnFocusLoss]);function x(){document.hasFocus()||p(),window.addEventListener("focus",f),window.addEventListener("blur",p);}function C(){window.removeEventListener("focus",f),window.removeEventListener("blur",p);}function S(m){if(t.draggable===true||t.draggable===m.pointerType){b();let _=l.current;a.canCloseOnClick=true,a.canDrag=true,_.style.transition="none",t.draggableDirection==="x"?(a.start=m.clientX,a.removalDistance=_.offsetWidth*(t.draggablePercent/100)):(a.start=m.clientY,a.removalDistance=_.offsetHeight*(t.draggablePercent===80?t.draggablePercent*1.5:t.draggablePercent)/100);}}function E(m){let{top:_,bottom:k,left:M,right:A}=l.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&t.pauseOnHover&&m.clientX>=M&&m.clientX<=A&&m.clientY>=_&&m.clientY<=k?p():f();}function f(){e(true);}function p(){e(false);}function b(){a.didMove=false,document.addEventListener("pointermove",n),document.addEventListener("pointerup",u);}function i(){document.removeEventListener("pointermove",n),document.removeEventListener("pointerup",u);}function n(m){let _=l.current;if(a.canDrag&&_){a.didMove=true,o&&p(),t.draggableDirection==="x"?a.delta=m.clientX-a.start:a.delta=m.clientY-a.start,a.start!==m.clientX&&(a.canCloseOnClick=false);let k=t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`;_.style.transform=`translate3d(${k},0)`,_.style.opacity=`${1-Math.abs(a.delta/a.removalDistance)}`;}}function u(){i();let m=l.current;if(a.canDrag&&a.didMove&&m){if(a.canDrag=false,Math.abs(a.delta)>a.removalDistance){s(true),t.closeToast(true),t.collapseAll();return}m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity");}}let h={onPointerDown:S,onPointerUp:E};return d&&c&&(h.onMouseEnter=p,t.stacked||(h.onMouseLeave=f)),v&&(h.onClick=m=>{g&&g(m),a.canCloseOnClick&&T(true);}),{playToast:f,pauseToast:p,isRunning:o,preventExitTransition:r,toastRef:l,eventHandlers:h}}var Ot=typeof window!="undefined"?useLayoutEffect:useEffect;var G=({theme:t,type:o,isLoading:e,...r})=>React__default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${o})`,...r});function ao(t){return React__default.createElement(G,{...t},React__default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function so(t){return React__default.createElement(G,{...t},React__default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function no(t){return React__default.createElement(G,{...t},React__default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function ro(t){return React__default.createElement(G,{...t},React__default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function io(){return React__default.createElement("div",{className:"Toastify__spinner"})}var W={info:so,warning:ao,success:no,error:ro,spinner:io},lo=t=>t in W;function Nt({theme:t,type:o,isLoading:e,icon:r}){let s=null,l={theme:t,type:o};return r===false||(P(r)?s=r({...l,isLoading:e}):isValidElement(r)?s=cloneElement(r,l):e?s=W.spinner():lo(o)&&(s=W[o](l))),s}var wt=t=>{let{isRunning:o,preventExitTransition:e,toastRef:r,eventHandlers:s,playToast:l}=At(t),{closeButton:a,children:d,autoClose:c,onClick:T,type:g,hideProgressBar:v,closeToast:x,transition:C,position:S,className:E,style:f,progressClassName:p,updateId:b,role:i,progress:n,rtl:u,toastId:h,deleteToast:m,isIn:_,isLoading:k,closeOnClick:M,theme:A,ariaLabel:R}=t,D=clsx("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${g}`,{["Toastify__toast--rtl"]:u},{["Toastify__toast--close-on-click"]:M}),Y=P(E)?E({rtl:u,position:S,type:g,defaultClassName:D}):clsx(D,E),ft=Nt(t),dt=!!n||!c,j={closeToast:x,type:g,theme:A},H=null;return a===false||(P(a)?H=a(j):isValidElement(a)?H=cloneElement(a,j):H=yt(j)),React__default.createElement(C,{isIn:_,done:m,position:S,preventExitTransition:e,nodeRef:r,playToast:l},React__default.createElement("div",{id:h,tabIndex:0,onClick:T,"data-in":_,className:Y,...s,style:f,ref:r,..._&&{role:i,"aria-label":R}},ft!=null&&React__default.createElement("div",{className:clsx("Toastify__toast-icon",{["Toastify--animate-icon Toastify__zoom-enter"]:!k})},ft),tt(d,t,!o),H,!t.customProgressBar&&React__default.createElement(gt,{...b&&!dt?{key:`p-${b}`}:{},rtl:u,theme:A,delay:c,isRunning:o,isIn:_,closeToast:x,hide:v,type:g,className:p,controlledProgress:dt,progress:n||0})))};var K=(t,o=false)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:o}),lt=$(K("bounce",true)),mo=$(K("slide",true));var _o={position:"top-right",transition:lt,autoClose:5e3,closeButton:true,pauseOnHover:true,pauseOnFocusLoss:true,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:t=>t.altKey&&t.code==="KeyT"};function Lt(t){let o={..._o,...t},e=t.stacked,[r,s]=useState(true),l=useRef(null),{getToastToRender:a,isToastActive:d,count:c}=It(o),{className:T,style:g,rtl:v,containerId:x,hotKeys:C}=o;function S(f){let p=clsx("Toastify__toast-container",`Toastify__toast-container--${f}`,{["Toastify__toast-container--rtl"]:v});return P(T)?T({position:f,rtl:v,defaultClassName:p}):clsx(p,B(T))}function E(){e&&(s(true),y.play());}return Ot(()=>{var f;if(e){let p=l.current.querySelectorAll('[data-in="true"]'),b=12,i=(f=o.position)==null?void 0:f.includes("top"),n=0,u=0;Array.from(p).reverse().forEach((h,m)=>{let _=h;_.classList.add("Toastify__toast--stacked"),m>0&&(_.dataset.collapsed=`${r}`),_.dataset.pos||(_.dataset.pos=i?"top":"bot");let k=n*(r?.2:1)+(r?0:b*m);_.style.setProperty("--y",`${i?k:k*-1}px`),_.style.setProperty("--g",`${b}`),_.style.setProperty("--s",`${1-(r?u:0)}`),n+=_.offsetHeight,u+=.025;});}},[r,c,e]),useEffect(()=>{function f(p){var i;let b=l.current;C(p)&&((i=b.querySelector('[tabIndex="0"]'))==null||i.focus(),s(false),y.pause()),p.key==="Escape"&&(document.activeElement===b||b!=null&&b.contains(document.activeElement))&&(s(true),y.play());}return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f);}},[C]),React__default.createElement("section",{ref:l,className:"Toastify",id:x,onMouseEnter:()=>{e&&(s(false),y.pause());},onMouseLeave:E,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":o["aria-label"]},a((f,p)=>{let b=p.length?{...g}:{...g,pointerEvents:"none"};return React__default.createElement("div",{tabIndex:-1,className:S(f),"data-stacked":e,style:b,key:`c-${f}`},p.map(({content:i,props:n})=>React__default.createElement(wt,{...n,stacked:e,collapseAll:E,isIn:d(n.toastId,n.containerId),key:`t-${n.key}`},i)))}))}
76302
+
76303
+ const getApiEndpoint = (path) => {
76304
+ try {
76305
+ return `${getBaseUrl()}${gateWayUrl()}${path}`;
76306
+ } catch (error) {
76307
+ return path;
76308
+ }
76309
+ };
76310
+ const DEFAULT_ENDPOINTS = {
76311
+ collectionList: getApiEndpoint("/unifyedxmanagedquicklinks/config/collection/list"),
76312
+ collectionCreate: getApiEndpoint("/unifyedxmanagedquicklinks/config/collection/create"),
76313
+ collectionUpdate: getApiEndpoint("/unifyedxmanagedquicklinks/config/collection"),
76314
+ updateCollection: getApiEndpoint("/unifyedxmanagedquicklinks/config/collection/updateOrder")
76315
+ };
76316
+ const ManageCollectionList = ({
76317
+ endpoints = DEFAULT_ENDPOINTS,
76318
+ className = "",
76319
+ onCollectionChange,
76320
+ showSearch = true,
76321
+ allowAdd = true,
76322
+ allowEdit = true,
76323
+ allowDelete = true,
76324
+ allowReorder = true,
76325
+ initialData = null
76326
+ // Add prop for initial demo data
76327
+ }) => {
76328
+ const [editingId, setEditingId] = useState(null);
76329
+ const [draftName, setDraftName] = useState("");
76330
+ const [linksData, setLinksData] = useState(initialData || []);
76331
+ const [draggingId, setDraggingId] = useState(null);
76332
+ const [dragOverId, setDragOverId] = useState(null);
76333
+ const [searchValue, setSearchValue] = useState("");
76334
+ const getListData = async () => {
76335
+ try {
76336
+ const response = await axiosGet(endpoints.collectionList);
76337
+ if (response) {
76338
+ const withOrder = response.map((r, i) => ({
76339
+ ...r,
76340
+ order: typeof r.order === "number" ? r.order : i + 1
76341
+ }));
76342
+ withOrder.sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
76343
+ setLinksData(withOrder);
76344
+ onCollectionChange?.(withOrder);
76345
+ }
76346
+ } catch (error) {
76347
+ console.log("Error loading collections:", error);
76348
+ if (typeof window !== "undefined" && !window.location.pathname.includes("iframe.html")) {
76349
+ y.error("Failed to load collections");
76350
+ }
76351
+ }
76352
+ };
76353
+ useEffect(() => {
76354
+ if (!initialData || initialData.length === 0) {
76355
+ getListData();
76356
+ }
76357
+ }, [initialData]);
76358
+ const startEdit = (item) => {
76359
+ if (!allowEdit) return;
76360
+ setEditingId(item.id);
76361
+ setDraftName(item.categoryName || "");
76362
+ };
76363
+ const startAdd = () => {
76364
+ if (!allowAdd || editingId !== null) return;
76365
+ const tempId = `temp-${Date.now()}`;
76366
+ setLinksData((prev) => [
76367
+ ...prev,
76368
+ {
76369
+ id: tempId,
76370
+ categoryName: "",
76371
+ links: [],
76372
+ order: (prev.at(-1)?.order ?? 0) + 1,
76373
+ _temp: true
76374
+ }
76375
+ ]);
76376
+ setEditingId(tempId);
76377
+ setDraftName("");
76378
+ };
76379
+ const cancelEdit = () => {
76380
+ if (editingId == null) return;
76381
+ setLinksData((prev) => {
76382
+ const row = prev.find((r) => r.id === editingId);
76383
+ const newData = row && row._temp ? prev.filter((r) => r.id !== editingId) : prev;
76384
+ onCollectionChange?.(newData);
76385
+ return newData;
76386
+ });
76387
+ setEditingId(null);
76388
+ setDraftName("");
76389
+ };
76390
+ const saveEdit = async () => {
76391
+ if (editingId == null || !draftName.trim()) return;
76392
+ const isTemp = typeof editingId === "string" && editingId.startsWith("temp-");
76393
+ try {
76394
+ if (isTemp) {
76395
+ const resp = await axiosPost(endpoints.collectionCreate, {
76396
+ categoryName: draftName.trim(),
76397
+ order: (linksData.at(-1)?.order ?? 0) + 1
76398
+ });
76399
+ if (resp) {
76400
+ setLinksData((prev) => {
76401
+ const newData = prev.map((row) => row.id === editingId ? resp : row);
76402
+ onCollectionChange?.(newData);
76403
+ return newData;
76404
+ });
76405
+ y.success("Collection created successfully");
76406
+ }
76407
+ } else {
76408
+ const resp = await axiosPut(
76409
+ `${endpoints.collectionUpdate}/${editingId}?newName=${draftName.trim()}`
76410
+ );
76411
+ setLinksData((prev) => {
76412
+ const newData = prev.map(
76413
+ (row) => row.id === editingId ? resp && resp.id ? { ...row, ...resp } : { ...row, categoryName: draftName.trim() } : row
76414
+ );
76415
+ onCollectionChange?.(newData);
76416
+ return newData;
76417
+ });
76418
+ y.success("Collection updated successfully");
76419
+ }
76420
+ setEditingId(null);
76421
+ setDraftName("");
76422
+ } catch (error) {
76423
+ console.log(error);
76424
+ y.error("Failed to save collection");
76425
+ }
76426
+ };
76427
+ const deleteCollection = async (item) => {
76428
+ if (!allowDelete) return;
76429
+ try {
76430
+ const response = await axiosDelete(`${endpoints.collectionUpdate}/${item.id}`);
76431
+ if (response) {
76432
+ y.success("Deleted successfully", { autoClose: 3e3 });
76433
+ getListData();
76434
+ }
76435
+ } catch (error) {
76436
+ console.log(error);
76437
+ y.error("Failed to delete collection");
76438
+ }
76439
+ };
76440
+ const moveItem = (list, draggedId, targetId) => {
76441
+ if (!allowReorder || !draggedId || !targetId || draggedId === targetId) return list;
76442
+ const srcIdx = list.findIndex((x) => x.id === draggedId);
76443
+ const dstIdx = list.findIndex((x) => x.id === targetId);
76444
+ if (srcIdx === -1 || dstIdx === -1) return list;
76445
+ const newList = [...list];
76446
+ const [moved] = newList.splice(srcIdx, 1);
76447
+ newList.splice(dstIdx, 0, moved);
76448
+ return newList.map((x, i) => ({ ...x, order: i + 1 }));
76449
+ };
76450
+ const persistOrder = async (list) => {
76451
+ const payload = list.map((x) => ({
76452
+ id: x.id,
76453
+ order: x.order,
76454
+ categoryName: x.categoryName
76455
+ }));
76456
+ try {
76457
+ await axiosPost(endpoints.updateCollection, payload);
76458
+ } catch (e) {
76459
+ console.log(e);
76460
+ y.error("Failed to save order", { autoClose: 2500 });
76461
+ }
76462
+ };
76463
+ const onDragStart = (e, id) => {
76464
+ if (!allowReorder) return;
76465
+ e.dataTransfer.effectAllowed = "move";
76466
+ e.dataTransfer.setData("text/plain", String(id));
76467
+ setDraggingId(id);
76468
+ };
76469
+ const onDragEnterRow = (id) => {
76470
+ if (draggingId && id !== dragOverId) {
76471
+ setDragOverId(id);
76472
+ }
76473
+ };
76474
+ const onDragOverRow = (e) => {
76475
+ e.preventDefault();
76476
+ };
76477
+ const onDropOnRow = async (e, targetId) => {
76478
+ e.preventDefault();
76479
+ const draggedId = e.dataTransfer.getData("text/plain");
76480
+ if (!draggedId) return;
76481
+ setLinksData((prev) => {
76482
+ const next = moveItem(prev, draggedId, targetId);
76483
+ console.log("Reordered", next);
76484
+ persistOrder(next);
76485
+ onCollectionChange?.(next);
76486
+ return next;
76487
+ });
76488
+ setDraggingId(null);
76489
+ setDragOverId(null);
76490
+ };
76491
+ const onDragEnd = () => {
76492
+ setDraggingId(null);
76493
+ setDragOverId(null);
76494
+ };
76495
+ const filteredData = linksData.filter(
76496
+ (item) => item.categoryName?.toLowerCase().includes(searchValue.toLowerCase())
76497
+ );
76498
+ return /* @__PURE__ */ jsxs("div", { className: `manage-collection-list ${className}`, children: [
76499
+ /* @__PURE__ */ jsxs("div", { className: "flex", children: [
76500
+ /* @__PURE__ */ jsxs("div", { className: "w-1/2 flex flex-col", children: [
76501
+ /* @__PURE__ */ jsx("span", { className: "text-base font-medium", children: "Manage Collection" }),
76502
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-normal", children: "Organize, add, or edit categories for your quick links." })
76503
+ ] }),
76504
+ /* @__PURE__ */ jsxs("div", { className: "w-1/2 flex justify-end", children: [
76505
+ showSearch && /* @__PURE__ */ jsx(
76506
+ SearchBar,
76507
+ {
76508
+ value: searchValue,
76509
+ onDebouncedChange: setSearchValue,
76510
+ placeholder: "Search Collection",
76511
+ customClass: "mr-4"
76512
+ }
76513
+ ),
76514
+ allowAdd && /* @__PURE__ */ jsx(
76515
+ "button",
76516
+ {
76517
+ className: [
76518
+ "px-4 py-3 bg-black text-white rounded-2xl ml-4",
76519
+ editingId !== null ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
76520
+ ].join(" "),
76521
+ onClick: startAdd,
76522
+ disabled: editingId !== null,
76523
+ children: "Add a Collection"
76524
+ }
76525
+ )
76526
+ ] })
76527
+ ] }),
76528
+ /* @__PURE__ */ jsx("div", { className: "mt-5 flex flex-col", children: filteredData.map((item) => {
76529
+ const isEditing = editingId === item.id;
76530
+ const linkCount = item?.links?.length ?? 0;
76531
+ const isDragging = draggingId === item.id;
76532
+ const isOver = dragOverId === item.id && draggingId !== item.id;
76533
+ return /* @__PURE__ */ jsx(
76534
+ "div",
76535
+ {
76536
+ onDragEnter: () => onDragEnterRow(item.id),
76537
+ onDragOver: onDragOverRow,
76538
+ onDrop: (e) => onDropOnRow(e, item.id),
76539
+ onDragEnd,
76540
+ className: [
76541
+ "flex items-center justify-between p-3 border rounded-2xl mb-3",
76542
+ "border-gray-300",
76543
+ isOver ? "ring-2 ring-gray-800/20" : "",
76544
+ isDragging ? "opacity-60" : ""
76545
+ ].join(" "),
76546
+ children: !isEditing ? /* @__PURE__ */ jsxs(Fragment, { children: [
76547
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
76548
+ allowReorder && /* @__PURE__ */ jsx(
76549
+ "span",
76550
+ {
76551
+ role: "button",
76552
+ "aria-label": "Drag to reorder",
76553
+ className: "cursor-grab active:cursor-grabbing p-1 -m-1 rounded-md hover:bg-gray-50",
76554
+ draggable: true,
76555
+ onDragStart: (e) => onDragStart(e, item.id),
76556
+ children: /* @__PURE__ */ jsx(GripVertical, {})
76557
+ }
76558
+ ),
76559
+ /* @__PURE__ */ jsx("span", { children: item.categoryName })
76560
+ ] }),
76561
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
76562
+ item.protected ? /* @__PURE__ */ jsx("span", { className: "text-sm text-gray-600 cursor-default", children: item.qlAppName }) : /* @__PURE__ */ jsx("span", { className: "text-sm text-blue-600 cursor-default", children: `${linkCount} ${linkCount === 1 ? "link" : "links"}` }),
76563
+ allowEdit && /* @__PURE__ */ jsx(
76564
+ "button",
76565
+ {
76566
+ className: "cursor-pointer",
76567
+ onClick: () => startEdit(item),
76568
+ "aria-label": `Edit ${item.categoryName}`,
76569
+ children: /* @__PURE__ */ jsx(SquarePen, { color: "#767676" })
76570
+ }
76571
+ ),
76572
+ allowDelete && /* @__PURE__ */ jsx(
76573
+ "span",
76574
+ {
76575
+ className: linkCount === 0 && !item.protected ? "cursor-pointer" : "cursor-not-allowed",
76576
+ title: linkCount === 0 && !item.protected ? "Delete" : "Cannot delete this collection",
76577
+ onClick: linkCount === 0 ? () => deleteCollection(item) : null,
76578
+ children: /* @__PURE__ */ jsx(Trash2, { color: linkCount === 0 ? "#767676" : "#C2C2C2" })
76579
+ }
76580
+ )
76581
+ ] })
76582
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
76583
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 flex-1", children: /* @__PURE__ */ jsx(
76584
+ "input",
76585
+ {
76586
+ type: "text",
76587
+ className: "flex-1 h-10 px-3 max-w-[200px] border border-gray-300 rounded-2xl outline-none focus:ring-2 focus:ring-gray-800/20",
76588
+ value: draftName,
76589
+ placeholder: item._temp ? "New collection name" : "Edit collection name",
76590
+ onChange: (e) => setDraftName(e.target.value),
76591
+ onKeyDown: (e) => {
76592
+ if (e.key === "Enter") saveEdit();
76593
+ if (e.key === "Escape") cancelEdit();
76594
+ },
76595
+ autoFocus: true
76596
+ }
76597
+ ) }),
76598
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
76599
+ /* @__PURE__ */ jsx(
76600
+ "button",
76601
+ {
76602
+ className: "cursor-pointer border border-gray-300 p-2 rounded-2xl",
76603
+ onClick: cancelEdit,
76604
+ "aria-label": "Cancel edit",
76605
+ children: /* @__PURE__ */ jsx(X$1, { color: "#767676" })
76606
+ }
76607
+ ),
76608
+ /* @__PURE__ */ jsx(
76609
+ "button",
76610
+ {
76611
+ className: [
76612
+ "border p-2 rounded-2xl",
76613
+ draftName.trim() ? "cursor-pointer border-gray-300" : "cursor-not-allowed border-gray-200"
76614
+ ].join(" "),
76615
+ onClick: saveEdit,
76616
+ "aria-label": "Save",
76617
+ disabled: !draftName.trim(),
76618
+ title: !draftName.trim() ? "Name required" : "Save",
76619
+ children: /* @__PURE__ */ jsx(Check, { color: "#767676" })
76620
+ }
76621
+ )
76622
+ ] })
76623
+ ] })
76624
+ },
76625
+ item.id
76626
+ );
76627
+ }) })
76628
+ ] });
76629
+ };
76630
+
76631
+ const ManageCollectionListRenderer = ({ item, data, updateHandler }) => {
76632
+ const {
76633
+ label = "Manage Collections",
76634
+ description = "Organize, add, or edit categories for your quick links.",
76635
+ endpoints = {},
76636
+ initialData = null,
76637
+ showSearch = true,
76638
+ allowAdd = true,
76639
+ allowEdit = true,
76640
+ allowDelete = true,
76641
+ allowReorder = true,
76642
+ className = ""
76643
+ } = item;
76644
+ const currentCollections = data?.[item.key] || initialData || [];
76645
+ const handleCollectionChange = (newCollections) => {
76646
+ if (updateHandler) {
76647
+ updateHandler(item.key, newCollections);
76648
+ }
76649
+ };
76650
+ return /* @__PURE__ */ jsxs("div", { className: "dynamic-config-manage-collection-list", children: [
76651
+ (label || description) && /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
76652
+ label && /* @__PURE__ */ jsx("h3", { className: "text-lg font-medium text-gray-900 mb-1", children: label }),
76653
+ description && /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-600", children: description })
76654
+ ] }),
76655
+ /* @__PURE__ */ jsx(
76656
+ ManageCollectionList,
76657
+ {
76658
+ endpoints,
76659
+ initialData: currentCollections,
76660
+ className,
76661
+ onCollectionChange: handleCollectionChange,
76662
+ showSearch,
76663
+ allowAdd,
76664
+ allowEdit,
76665
+ allowDelete,
76666
+ allowReorder
76667
+ }
76668
+ )
76669
+ ] });
76670
+ };
76671
+
76203
76672
  const UnknownType = ({ item }) => /* @__PURE__ */ jsxs("div", { className: "p-3 rounded-xl border border-dashed text-sm opacity-70", children: [
76204
76673
  "Unknown type:",
76205
76674
  " ",
@@ -76208,6 +76677,8 @@ const UnknownType = ({ item }) => /* @__PURE__ */ jsxs("div", { className: "p-3
76208
76677
  const REGISTRY = /* @__PURE__ */ Object.create(null);
76209
76678
  REGISTRY.section = SectionRenderer;
76210
76679
  REGISTRY.datatable = DataTableRenderer;
76680
+ REGISTRY.managecollectionlist = ManageCollectionListRenderer;
76681
+ REGISTRY["manage-collection-list"] = ManageCollectionListRenderer;
76211
76682
  function toType(input) {
76212
76683
  if (typeof input === "string") return input.trim();
76213
76684
  if (input && typeof input === "object")
@@ -76234,11 +76705,6 @@ function ConfigRenderFactory(input, props = {}) {
76234
76705
  return renderByType(input, props);
76235
76706
  }
76236
76707
 
76237
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
76238
-
76239
- function Mt(t){if(typeof document=="undefined")return;let o=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",o.firstChild?o.insertBefore(e,o.firstChild):o.appendChild(e),e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t));}Mt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
76240
- `);var L=t=>typeof t=="number"&&!isNaN(t),N=t=>typeof t=="string",P=t=>typeof t=="function",mt=t=>N(t)||L(t),B=t=>N(t)||P(t)?t:null,pt=(t,o)=>t===false||L(t)&&t>0?t:o,z=t=>isValidElement(t)||N(t)||P(t)||L(t);function Z(t,o,e=300){let{scrollHeight:r,style:s}=t;requestAnimationFrame(()=>{s.minHeight="initial",s.height=r+"px",s.transition=`all ${e}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(o,e);});});}function $({enter:t,exit:o,appendPosition:e=false,collapse:r=true,collapseDuration:s=300}){return function({children:a,position:d,preventExitTransition:c,done:T,nodeRef:g,isIn:v,playToast:x}){let C=e?`${t}--${d}`:t,S=e?`${o}--${d}`:o,E=useRef(0);return useLayoutEffect(()=>{let f=g.current,p=C.split(" "),b=n=>{n.target===g.current&&(x(),f.removeEventListener("animationend",b),f.removeEventListener("animationcancel",b),E.current===0&&n.type!=="animationcancel"&&f.classList.remove(...p));};(()=>{f.classList.add(...p),f.addEventListener("animationend",b),f.addEventListener("animationcancel",b);})();},[]),useEffect(()=>{let f=g.current,p=()=>{f.removeEventListener("animationend",p),r?Z(f,T,s):T();};v||(c?p():(()=>{E.current=1,f.className+=` ${S}`,f.addEventListener("animationend",p);})());},[v]),React__default.createElement(React__default.Fragment,null,a)}}function J(t,o){return {content:tt(t.content,t.props),containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,reason:t.removalReason,status:o}}function tt(t,o,e=false){return isValidElement(t)&&!N(t.type)?cloneElement(t,{closeToast:o.closeToast,toastProps:o,data:o.data,isPaused:e}):P(t)?t({closeToast:o.closeToast,toastProps:o,data:o.data,isPaused:e}):t}function yt({closeToast:t,theme:o,ariaLabel:e="close"}){return React__default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${o}`,type:"button",onClick:r=>{r.stopPropagation(),t(true);},"aria-label":e},React__default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React__default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function gt({delay:t,isRunning:o,closeToast:e,type:r="default",hide:s,className:l,controlledProgress:a,progress:d,rtl:c,isIn:T,theme:g}){let v=s||a&&d===0,x={animationDuration:`${t}ms`,animationPlayState:o?"running":"paused"};a&&(x.transform=`scaleX(${d})`);let C=clsx("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${r}`,{["Toastify__progress-bar--rtl"]:c}),S=P(l)?l({rtl:c,type:r,defaultClassName:C}):clsx(C,l),E={[a&&d>=1?"onTransitionEnd":"onAnimationEnd"]:a&&d<1?null:()=>{T&&e();}};return React__default.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":v},React__default.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${r}`}),React__default.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:S,style:x,...E}))}var Xt=1,at=()=>`${Xt++}`;function _t(t,o,e){let r=1,s=0,l=[],a=[],d=o,c=new Map,T=new Set,g=i=>(T.add(i),()=>T.delete(i)),v=()=>{a=Array.from(c.values()),T.forEach(i=>i());},x=({containerId:i,toastId:n,updateId:u})=>{let h=i?i!==t:t!==1,m=c.has(n)&&u==null;return h||m},C=(i,n)=>{c.forEach(u=>{var h;(n==null||n===u.props.toastId)&&((h=u.toggle)==null||h.call(u,i));});},S=i=>{var n,u;(u=(n=i.props)==null?void 0:n.onClose)==null||u.call(n,i.removalReason),i.isActive=false;},E=i=>{if(i==null)c.forEach(S);else {let n=c.get(i);n&&S(n);}v();},f=()=>{s-=l.length,l=[];},p=i=>{var m,_;let{toastId:n,updateId:u}=i.props,h=u==null;i.staleId&&c.delete(i.staleId),i.isActive=true,c.set(n,i),v(),e(J(i,h?"added":"updated")),h&&((_=(m=i.props).onOpen)==null||_.call(m));};return {id:t,props:d,observe:g,toggle:C,removeToast:E,toasts:c,clearQueue:f,buildToast:(i,n)=>{if(x(n))return;let{toastId:u,updateId:h,data:m,staleId:_,delay:k}=n,M=h==null;M&&s++;let A={...d,style:d.toastStyle,key:r++,...Object.fromEntries(Object.entries(n).filter(([D,Y])=>Y!=null)),toastId:u,updateId:h,data:m,isIn:false,className:B(n.className||d.toastClassName),progressClassName:B(n.progressClassName||d.progressClassName),autoClose:n.isLoading?false:pt(n.autoClose,d.autoClose),closeToast(D){c.get(u).removalReason=D,E(u);},deleteToast(){let D=c.get(u);if(D!=null){if(e(J(D,"removed")),c.delete(u),s--,s<0&&(s=0),l.length>0){p(l.shift());return}v();}}};A.closeButton=d.closeButton,n.closeButton===false||z(n.closeButton)?A.closeButton=n.closeButton:n.closeButton===true&&(A.closeButton=z(d.closeButton)?d.closeButton:true);let R={content:i,props:A,staleId:_};d.limit&&d.limit>0&&s>d.limit&&M?l.push(R):L(k)?setTimeout(()=>{p(R);},k):p(R);},setProps(i){d=i;},setToggle:(i,n)=>{let u=c.get(i);u&&(u.toggle=n);},isToastActive:i=>{var n;return (n=c.get(i))==null?void 0:n.isActive},getSnapshot:()=>a}}var I=new Map,F=[],st=new Set,Vt=t=>st.forEach(o=>o(t)),bt=()=>I.size>0;function Qt(){F.forEach(t=>nt(t.content,t.options)),F=[];}var vt=(t,{containerId:o})=>{var e;return (e=I.get(o||1))==null?void 0:e.toasts.get(t)};function X(t,o){var r;if(o)return !!((r=I.get(o))!=null&&r.isToastActive(t));let e=false;return I.forEach(s=>{s.isToastActive(t)&&(e=true);}),e}function ht(t){if(!bt()){F=F.filter(o=>t!=null&&o.options.toastId!==t);return}if(t==null||mt(t))I.forEach(o=>{o.removeToast(t);});else if(t&&("containerId"in t||"id"in t)){let o=I.get(t.containerId);o?o.removeToast(t.id):I.forEach(e=>{e.removeToast(t.id);});}}var Ct=(t={})=>{I.forEach(o=>{o.props.limit&&(!t.containerId||o.id===t.containerId)&&o.clearQueue();});};function nt(t,o){z(t)&&(bt()||F.push({content:t,options:o}),I.forEach(e=>{e.buildToast(t,o);}));}function xt(t){var o;(o=I.get(t.containerId||1))==null||o.setToggle(t.id,t.fn);}function rt(t,o){I.forEach(e=>{(o==null||!(o!=null&&o.containerId)||(o==null?void 0:o.containerId)===e.id)&&e.toggle(t,o==null?void 0:o.id);});}function Et(t){let o=t.containerId||1;return {subscribe(e){let r=_t(o,t,Vt);I.set(o,r);let s=r.observe(e);return Qt(),()=>{s(),I.delete(o);}},setProps(e){var r;(r=I.get(o))==null||r.setProps(e);},getSnapshot(){var e;return (e=I.get(o))==null?void 0:e.getSnapshot()}}}function Pt(t){return st.add(t),()=>{st.delete(t);}}function Wt(t){return t&&(N(t.toastId)||L(t.toastId))?t.toastId:at()}function U(t,o){return nt(t,o),o.toastId}function V(t,o){return {...o,type:o&&o.type||t,toastId:Wt(o)}}function Q(t){return (o,e)=>U(o,V(t,e))}function y(t,o){return U(t,V("default",o))}y.loading=(t,o)=>U(t,V("default",{isLoading:true,autoClose:false,closeOnClick:false,closeButton:false,draggable:false,...o}));function Gt(t,{pending:o,error:e,success:r},s){let l;o&&(l=N(o)?y.loading(o,s):y.loading(o.render,{...s,...o}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(T,g,v)=>{if(g==null){y.dismiss(l);return}let x={type:T,...a,...s,data:v},C=N(g)?{render:g}:g;return l?y.update(l,{...x,...C}):y(C.render,{...x,...C}),v},c=P(t)?t():t;return c.then(T=>d("success",r,T)).catch(T=>d("error",e,T)),c}y.promise=Gt;y.success=Q("success");y.info=Q("info");y.error=Q("error");y.warning=Q("warning");y.warn=y.warning;y.dark=(t,o)=>U(t,V("default",{theme:"dark",...o}));function qt(t){ht(t);}y.dismiss=qt;y.clearWaitingQueue=Ct;y.isActive=X;y.update=(t,o={})=>{let e=vt(t,o);if(e){let{props:r,content:s}=e,l={delay:100,...r,...o,toastId:o.toastId||t,updateId:at()};l.toastId!==t&&(l.staleId=t);let a=l.render||s;delete l.render,U(a,l);}};y.done=t=>{y.update(t,{progress:1});};y.onChange=Pt;y.play=t=>rt(true,t);y.pause=t=>rt(false,t);function It(t){var a;let{subscribe:o,getSnapshot:e,setProps:r}=useRef(Et(t)).current;r(t);let s=(a=useSyncExternalStore(o,e,e))==null?void 0:a.slice();function l(d){if(!s)return [];let c=new Map;return t.newestOnTop&&s.reverse(),s.forEach(T=>{let{position:g}=T.props;c.has(g)||c.set(g,[]),c.get(g).push(T);}),Array.from(c,T=>d(T[0],T[1]))}return {getToastToRender:l,isToastActive:X,count:s==null?void 0:s.length}}function At(t){let[o,e]=useState(false),[r,s]=useState(false),l=useRef(null),a=useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:true,canDrag:false,didMove:false}).current,{autoClose:d,pauseOnHover:c,closeToast:T,onClick:g,closeOnClick:v}=t;xt({id:t.toastId,containerId:t.containerId,fn:e}),useEffect(()=>{if(t.pauseOnFocusLoss)return x(),()=>{C();}},[t.pauseOnFocusLoss]);function x(){document.hasFocus()||p(),window.addEventListener("focus",f),window.addEventListener("blur",p);}function C(){window.removeEventListener("focus",f),window.removeEventListener("blur",p);}function S(m){if(t.draggable===true||t.draggable===m.pointerType){b();let _=l.current;a.canCloseOnClick=true,a.canDrag=true,_.style.transition="none",t.draggableDirection==="x"?(a.start=m.clientX,a.removalDistance=_.offsetWidth*(t.draggablePercent/100)):(a.start=m.clientY,a.removalDistance=_.offsetHeight*(t.draggablePercent===80?t.draggablePercent*1.5:t.draggablePercent)/100);}}function E(m){let{top:_,bottom:k,left:M,right:A}=l.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&t.pauseOnHover&&m.clientX>=M&&m.clientX<=A&&m.clientY>=_&&m.clientY<=k?p():f();}function f(){e(true);}function p(){e(false);}function b(){a.didMove=false,document.addEventListener("pointermove",n),document.addEventListener("pointerup",u);}function i(){document.removeEventListener("pointermove",n),document.removeEventListener("pointerup",u);}function n(m){let _=l.current;if(a.canDrag&&_){a.didMove=true,o&&p(),t.draggableDirection==="x"?a.delta=m.clientX-a.start:a.delta=m.clientY-a.start,a.start!==m.clientX&&(a.canCloseOnClick=false);let k=t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`;_.style.transform=`translate3d(${k},0)`,_.style.opacity=`${1-Math.abs(a.delta/a.removalDistance)}`;}}function u(){i();let m=l.current;if(a.canDrag&&a.didMove&&m){if(a.canDrag=false,Math.abs(a.delta)>a.removalDistance){s(true),t.closeToast(true),t.collapseAll();return}m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity");}}let h={onPointerDown:S,onPointerUp:E};return d&&c&&(h.onMouseEnter=p,t.stacked||(h.onMouseLeave=f)),v&&(h.onClick=m=>{g&&g(m),a.canCloseOnClick&&T(true);}),{playToast:f,pauseToast:p,isRunning:o,preventExitTransition:r,toastRef:l,eventHandlers:h}}var Ot=typeof window!="undefined"?useLayoutEffect:useEffect;var G=({theme:t,type:o,isLoading:e,...r})=>React__default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${o})`,...r});function ao(t){return React__default.createElement(G,{...t},React__default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function so(t){return React__default.createElement(G,{...t},React__default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function no(t){return React__default.createElement(G,{...t},React__default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function ro(t){return React__default.createElement(G,{...t},React__default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function io(){return React__default.createElement("div",{className:"Toastify__spinner"})}var W={info:so,warning:ao,success:no,error:ro,spinner:io},lo=t=>t in W;function Nt({theme:t,type:o,isLoading:e,icon:r}){let s=null,l={theme:t,type:o};return r===false||(P(r)?s=r({...l,isLoading:e}):isValidElement(r)?s=cloneElement(r,l):e?s=W.spinner():lo(o)&&(s=W[o](l))),s}var wt=t=>{let{isRunning:o,preventExitTransition:e,toastRef:r,eventHandlers:s,playToast:l}=At(t),{closeButton:a,children:d,autoClose:c,onClick:T,type:g,hideProgressBar:v,closeToast:x,transition:C,position:S,className:E,style:f,progressClassName:p,updateId:b,role:i,progress:n,rtl:u,toastId:h,deleteToast:m,isIn:_,isLoading:k,closeOnClick:M,theme:A,ariaLabel:R}=t,D=clsx("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${g}`,{["Toastify__toast--rtl"]:u},{["Toastify__toast--close-on-click"]:M}),Y=P(E)?E({rtl:u,position:S,type:g,defaultClassName:D}):clsx(D,E),ft=Nt(t),dt=!!n||!c,j={closeToast:x,type:g,theme:A},H=null;return a===false||(P(a)?H=a(j):isValidElement(a)?H=cloneElement(a,j):H=yt(j)),React__default.createElement(C,{isIn:_,done:m,position:S,preventExitTransition:e,nodeRef:r,playToast:l},React__default.createElement("div",{id:h,tabIndex:0,onClick:T,"data-in":_,className:Y,...s,style:f,ref:r,..._&&{role:i,"aria-label":R}},ft!=null&&React__default.createElement("div",{className:clsx("Toastify__toast-icon",{["Toastify--animate-icon Toastify__zoom-enter"]:!k})},ft),tt(d,t,!o),H,!t.customProgressBar&&React__default.createElement(gt,{...b&&!dt?{key:`p-${b}`}:{},rtl:u,theme:A,delay:c,isRunning:o,isIn:_,closeToast:x,hide:v,type:g,className:p,controlledProgress:dt,progress:n||0})))};var K=(t,o=false)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:o}),lt=$(K("bounce",true)),mo=$(K("slide",true));var _o={position:"top-right",transition:lt,autoClose:5e3,closeButton:true,pauseOnHover:true,pauseOnFocusLoss:true,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:t=>t.altKey&&t.code==="KeyT"};function Lt(t){let o={..._o,...t},e=t.stacked,[r,s]=useState(true),l=useRef(null),{getToastToRender:a,isToastActive:d,count:c}=It(o),{className:T,style:g,rtl:v,containerId:x,hotKeys:C}=o;function S(f){let p=clsx("Toastify__toast-container",`Toastify__toast-container--${f}`,{["Toastify__toast-container--rtl"]:v});return P(T)?T({position:f,rtl:v,defaultClassName:p}):clsx(p,B(T))}function E(){e&&(s(true),y.play());}return Ot(()=>{var f;if(e){let p=l.current.querySelectorAll('[data-in="true"]'),b=12,i=(f=o.position)==null?void 0:f.includes("top"),n=0,u=0;Array.from(p).reverse().forEach((h,m)=>{let _=h;_.classList.add("Toastify__toast--stacked"),m>0&&(_.dataset.collapsed=`${r}`),_.dataset.pos||(_.dataset.pos=i?"top":"bot");let k=n*(r?.2:1)+(r?0:b*m);_.style.setProperty("--y",`${i?k:k*-1}px`),_.style.setProperty("--g",`${b}`),_.style.setProperty("--s",`${1-(r?u:0)}`),n+=_.offsetHeight,u+=.025;});}},[r,c,e]),useEffect(()=>{function f(p){var i;let b=l.current;C(p)&&((i=b.querySelector('[tabIndex="0"]'))==null||i.focus(),s(false),y.pause()),p.key==="Escape"&&(document.activeElement===b||b!=null&&b.contains(document.activeElement))&&(s(true),y.play());}return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f);}},[C]),React__default.createElement("section",{ref:l,className:"Toastify",id:x,onMouseEnter:()=>{e&&(s(false),y.pause());},onMouseLeave:E,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":o["aria-label"]},a((f,p)=>{let b=p.length?{...g}:{...g,pointerEvents:"none"};return React__default.createElement("div",{tabIndex:-1,className:S(f),"data-stacked":e,style:b,key:`c-${f}`},p.map(({content:i,props:n})=>React__default.createElement(wt,{...n,stacked:e,collapseAll:E,isIn:d(n.toastId,n.containerId),key:`t-${n.key}`},i)))}))}
76241
-
76242
76708
  function DynamicConfig({
76243
76709
  appid,
76244
76710
  configdata = null,
@@ -77112,5 +77578,5 @@ const CustomGridToolbar = ({
77112
77578
  ] });
77113
77579
  };
77114
77580
 
77115
- export { AddUserGroupsRolesModal, Avatar, AvatarGroup$1 as AvatarGroup, Badge, Breadcrumbs, Button$1 as Button, Checkbox, ConfigRenderFactory, CustomDialog, CustomGridToolbar, DataTableRenderer, DatePicker, DateRangePicker$1 as DateRangePicker, DynamicConfig, DynamicConfig_stories as DynamicConfigStory, FileUploadModal, FullConfigPage, FullScreenLoader, GenericFilter, Input, Modal, MultiSelect, OptionsMenu, PageHeader, PageLayout, Pagination, RadioGroup, SearchBar, SectionRenderer, Select, Sidebar, Spinner, Textarea, ToastProvider, ToggleSwitch, Tooltip, TreeView, UnifyedCoreButton, WizardModal, adGroupsListSearchApi, axiosDelete, axiosGet, axiosPatch, axiosPost, axiosPut, cookies$1 as cookies, createHttpClient, directoryPermissionsApi, filePermissionsApi, gateWayUrl, gatewayBase, getBaseUrl, getComponentForType, getSnapshot, http, localStore, myDriveGatewayBaseV2, notify, provisioningBase, rbacBase, register, renderByType, searchRolesApi, sessionStore, userSearchBase };
77581
+ export { AddUserGroupsRolesModal, Avatar, AvatarGroup$1 as AvatarGroup, Badge, Breadcrumbs, Button$1 as Button, Checkbox, ConfigRenderFactory, CustomDialog, CustomGridToolbar, DataTableRenderer, DatePicker, DateRangePicker$1 as DateRangePicker, DynamicConfig, DynamicConfig_stories as DynamicConfigStory, FileUploadModal, FullConfigPage, FullScreenLoader, GenericFilter, Input, ManageCollectionList, ManageCollectionList as ManageCollectionListDefault, Modal, MultiSelect, OptionsMenu, PageHeader, PageLayout, Pagination, RadioGroup, SearchBar, SectionRenderer, Select, Sidebar, Spinner, Textarea, ToastProvider, ToggleSwitch, Tooltip, TreeView, UnifyedCoreButton, WizardModal, adGroupsListSearchApi, axiosDelete, axiosGet, axiosPatch, axiosPost, axiosPut, cookies$1 as cookies, createHttpClient, directoryPermissionsApi, filePermissionsApi, gateWayUrl, gatewayBase, getBaseUrl, getComponentForType, getSnapshot, http, localStore, myDriveGatewayBaseV2, notify, provisioningBase, rbacBase, register, renderByType, searchRolesApi, sessionStore, userSearchBase };
77116
77582
  //# sourceMappingURL=unifyedx-storybook-new.es.js.map