@ws-ui/store 1.13.7 → 1.13.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@ var wh = (e) => {
5
5
  var Wx = (e, t, r) => t in e ? jx(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
6
  var tt = (e, t, r) => Wx(e, typeof t != "symbol" ? t + "" : t, r), vu = (e, t, r) => t.has(e) || wh("Cannot " + r);
7
7
  var B = (e, t, r) => (vu(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ct = (e, t, r) => t.has(e) ? wh("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Fe = (e, t, r, a) => (vu(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), Oe = (e, t, r) => (vu(e, t, "access private method"), r);
8
- import { FileFolderType as $, SETTINGS_TAB_PATH as tr, ROLES_TAB_PATH as ut, HTTP_HANDLERS_TAB_PATH as Nr, LOCALIZATION_TAB_PATH as as, MODEL_TAB_PATH as ss, FolderRootPath as Ke, rolesToAPI as lf, THEME_CLASSES as Bx, EWebFormStyleClassScope as Jn, ROOT_WEBFORM_STATE as Va, isBaseState as Hy, byId as Ux, ModalType as rr, ModalCloseReason as Gx, sanitizeRoles as ff, setFileContent as xn, getFileContent as Hx, createPrivilege as zx, getPrivilegeById as Yx, getResourceFromType as Kx, getNodeInfo as fr, DesignerRequestVerb as Xe, getAppSettings as Vx, RemoteDebuggerMode as Jx, lspSubject as mr, LspActions as _r, getFileExtentionFromType as Qr, toastSubject as lr, moveItem as Ll, dropFile as Xx, FolderRootType as lo, removeItem as zy, getTypeFromExtension as $l, parseAttributes as df, addAttributesToContent as Yy, ERROR_CODES as Fl, getFilenameFromType as Qx, createFolder as Zx, getFilesInfo as Ja, getFilenameAndTypeFromPath as eC, i18nSubject as pf, ModalColor as un, EDITOR as kl, callServerSideParser as tC, getDisplayableFeedbackErrors as rC, formatErrorsAsBulletToast as nC, generateUUID as Eh, saveContent as aC, webformSubject as sC, WebformActions as oC, by as br, isObjectDatasource as Ky, isSimpleDatasource as Vy, datasourcesSubject as hf, DatasourcesActions as gf, getFolders as iC, http as Ao, API_PREFIX as Po, getSavedConditions as uC, queue as Jy, WT_FLAGS_KEYS as cC, isSameNamespace as yu, splitDatasourceID as Xs, getDatasourceId as bo, setSharedSources as cn, outById as lC, setCraftedComponents as vf, getCatalog as fC, parseCatalog as dC, getSharedDatasources as pC, getSharedAppEvents as hC, setSharedAppEvents as gC, getSharedCSS as vC } from "@ws-ui/shared";
8
+ import { FileFolderType as L, SETTINGS_TAB_PATH as tr, ROLES_TAB_PATH as ut, HTTP_HANDLERS_TAB_PATH as Nr, LOCALIZATION_TAB_PATH as as, MODEL_TAB_PATH as ss, FolderRootPath as Ke, rolesToAPI as lf, THEME_CLASSES as Bx, EWebFormStyleClassScope as Jn, ROOT_WEBFORM_STATE as Va, isBaseState as Hy, byId as Ux, ModalType as rr, ModalCloseReason as Gx, sanitizeRoles as ff, setFileContent as xn, getFileContent as Hx, createPrivilege as zx, getPrivilegeById as Yx, getResourceFromType as Kx, getNodeInfo as fr, DesignerRequestVerb as Xe, getAppSettings as Vx, RemoteDebuggerMode as Jx, lspSubject as mr, LspActions as _r, getFileExtentionFromType as Qr, toastSubject as lr, moveItem as Ll, dropFile as Xx, FolderRootType as lo, removeItem as zy, getTypeFromExtension as $l, parseAttributes as df, addAttributesToContent as Yy, ERROR_CODES as Fl, getFilenameFromType as Qx, createFolder as Zx, getFilesInfo as Ja, getFilenameAndTypeFromPath as eC, i18nSubject as pf, ModalColor as un, EDITOR as kl, callServerSideParser as tC, getDisplayableFeedbackErrors as rC, formatErrorsAsBulletToast as nC, generateUUID as Eh, saveContent as aC, webformSubject as sC, WebformActions as oC, by as br, isObjectDatasource as Ky, isSimpleDatasource as Vy, datasourcesSubject as hf, DatasourcesActions as gf, getFolders as iC, http as Ao, API_PREFIX as Po, getSavedConditions as uC, queue as Jy, WT_FLAGS_KEYS as cC, isSameNamespace as yu, splitDatasourceID as Xs, getDatasourceId as bo, setSharedSources as cn, outById as lC, setCraftedComponents as vf, getCatalog as fC, parseCatalog as dC, getSharedDatasources as pC, getSharedAppEvents as hC, setSharedAppEvents as gC, getSharedCSS as vC } from "@ws-ui/shared";
9
9
  import { EPermissionType as bF, ESubPermissionType as SF, ROOT_WEBFORM_STATE as wF, THEME_CLASSES as EF, WT_FLAGS_KEYS as TF, actionsToPrivs as xF, addPrivilegeIn as CF, addPermission as RF, allowed as OF, children as AF, createPrivilege as PF, createRole as DF, getDictByName as IF, getGraphData as MF, getInheritedResources as NF, getPrivilegeById as LF, getPromotions as $F, getResourceFromType as FF, isBaseState as kF, parents as qF, populateShallow as jF, removePrivilege as WF, removePrivilegeFrom as BF, removeMultiplePermissions as UF, removePermission as GF, removeRole as HF, renamePrivilege as zF, resetResources as YF, sanitizeRoles as KF, sanitizePermissions as VF, sanitizePrivileges as JF, saveRole as XF, sortPrivileges as QF, rolesToAPI as ZF, togglePermission as ek, uniquePush as tk } from "@ws-ui/shared";
10
10
  import Xy, { useLayoutEffect as yC, useEffect as mC, useMemo as ql, useContext as yf, useDebugValue as _C, useReducer as bC, useRef as Qs } from "react";
11
11
  import { unstable_batchedUpdates as SC } from "react-dom";
@@ -2495,84 +2495,84 @@ function GR() {
2495
2495
  } catch {
2496
2496
  }
2497
2497
  })(), vd = Yt && Yt.isArrayBuffer, yd = Yt && Yt.isDate, md = Yt && Yt.isMap, _d = Yt && Yt.isRegExp, bd = Yt && Yt.isSet, Sd = Yt && Yt.isTypedArray;
2498
- function Ft(D, L, M) {
2498
+ function Ft(D, $, M) {
2499
2499
  switch (M.length) {
2500
2500
  case 0:
2501
- return D.call(L);
2501
+ return D.call($);
2502
2502
  case 1:
2503
- return D.call(L, M[0]);
2503
+ return D.call($, M[0]);
2504
2504
  case 2:
2505
- return D.call(L, M[0], M[1]);
2505
+ return D.call($, M[0], M[1]);
2506
2506
  case 3:
2507
- return D.call(L, M[0], M[1], M[2]);
2507
+ return D.call($, M[0], M[1], M[2]);
2508
2508
  }
2509
- return D.apply(L, M);
2509
+ return D.apply($, M);
2510
2510
  }
2511
- function lb(D, L, M, X) {
2511
+ function lb(D, $, M, X) {
2512
2512
  for (var ue = -1, Re = D == null ? 0 : D.length; ++ue < Re; ) {
2513
2513
  var st = D[ue];
2514
- L(X, st, M(st), D);
2514
+ $(X, st, M(st), D);
2515
2515
  }
2516
2516
  return X;
2517
2517
  }
2518
- function kt(D, L) {
2519
- for (var M = -1, X = D == null ? 0 : D.length; ++M < X && L(D[M], M, D) !== !1; )
2518
+ function kt(D, $) {
2519
+ for (var M = -1, X = D == null ? 0 : D.length; ++M < X && $(D[M], M, D) !== !1; )
2520
2520
  ;
2521
2521
  return D;
2522
2522
  }
2523
- function fb(D, L) {
2524
- for (var M = D == null ? 0 : D.length; M-- && L(D[M], M, D) !== !1; )
2523
+ function fb(D, $) {
2524
+ for (var M = D == null ? 0 : D.length; M-- && $(D[M], M, D) !== !1; )
2525
2525
  ;
2526
2526
  return D;
2527
2527
  }
2528
- function wd(D, L) {
2528
+ function wd(D, $) {
2529
2529
  for (var M = -1, X = D == null ? 0 : D.length; ++M < X; )
2530
- if (!L(D[M], M, D))
2530
+ if (!$(D[M], M, D))
2531
2531
  return !1;
2532
2532
  return !0;
2533
2533
  }
2534
- function Wr(D, L) {
2534
+ function Wr(D, $) {
2535
2535
  for (var M = -1, X = D == null ? 0 : D.length, ue = 0, Re = []; ++M < X; ) {
2536
2536
  var st = D[M];
2537
- L(st, M, D) && (Re[ue++] = st);
2537
+ $(st, M, D) && (Re[ue++] = st);
2538
2538
  }
2539
2539
  return Re;
2540
2540
  }
2541
- function ps(D, L) {
2541
+ function ps(D, $) {
2542
2542
  var M = D == null ? 0 : D.length;
2543
- return !!M && In(D, L, 0) > -1;
2543
+ return !!M && In(D, $, 0) > -1;
2544
2544
  }
2545
- function di(D, L, M) {
2545
+ function di(D, $, M) {
2546
2546
  for (var X = -1, ue = D == null ? 0 : D.length; ++X < ue; )
2547
- if (M(L, D[X]))
2547
+ if (M($, D[X]))
2548
2548
  return !0;
2549
2549
  return !1;
2550
2550
  }
2551
- function Ge(D, L) {
2551
+ function Ge(D, $) {
2552
2552
  for (var M = -1, X = D == null ? 0 : D.length, ue = Array(X); ++M < X; )
2553
- ue[M] = L(D[M], M, D);
2553
+ ue[M] = $(D[M], M, D);
2554
2554
  return ue;
2555
2555
  }
2556
- function Br(D, L) {
2557
- for (var M = -1, X = L.length, ue = D.length; ++M < X; )
2558
- D[ue + M] = L[M];
2556
+ function Br(D, $) {
2557
+ for (var M = -1, X = $.length, ue = D.length; ++M < X; )
2558
+ D[ue + M] = $[M];
2559
2559
  return D;
2560
2560
  }
2561
- function pi(D, L, M, X) {
2561
+ function pi(D, $, M, X) {
2562
2562
  var ue = -1, Re = D == null ? 0 : D.length;
2563
2563
  for (X && Re && (M = D[++ue]); ++ue < Re; )
2564
- M = L(M, D[ue], ue, D);
2564
+ M = $(M, D[ue], ue, D);
2565
2565
  return M;
2566
2566
  }
2567
- function db(D, L, M, X) {
2567
+ function db(D, $, M, X) {
2568
2568
  var ue = D == null ? 0 : D.length;
2569
2569
  for (X && ue && (M = D[--ue]); ue--; )
2570
- M = L(M, D[ue], ue, D);
2570
+ M = $(M, D[ue], ue, D);
2571
2571
  return M;
2572
2572
  }
2573
- function hi(D, L) {
2573
+ function hi(D, $) {
2574
2574
  for (var M = -1, X = D == null ? 0 : D.length; ++M < X; )
2575
- if (L(D[M], M, D))
2575
+ if ($(D[M], M, D))
2576
2576
  return !0;
2577
2577
  return !1;
2578
2578
  }
@@ -2583,70 +2583,70 @@ function GR() {
2583
2583
  function gb(D) {
2584
2584
  return D.match(T0) || [];
2585
2585
  }
2586
- function Ed(D, L, M) {
2586
+ function Ed(D, $, M) {
2587
2587
  var X;
2588
2588
  return M(D, function(ue, Re, st) {
2589
- if (L(ue, Re, st))
2589
+ if ($(ue, Re, st))
2590
2590
  return X = Re, !1;
2591
2591
  }), X;
2592
2592
  }
2593
- function hs(D, L, M, X) {
2593
+ function hs(D, $, M, X) {
2594
2594
  for (var ue = D.length, Re = M + (X ? 1 : -1); X ? Re-- : ++Re < ue; )
2595
- if (L(D[Re], Re, D))
2595
+ if ($(D[Re], Re, D))
2596
2596
  return Re;
2597
2597
  return -1;
2598
2598
  }
2599
- function In(D, L, M) {
2600
- return L === L ? Rb(D, L, M) : hs(D, Td, M);
2599
+ function In(D, $, M) {
2600
+ return $ === $ ? Rb(D, $, M) : hs(D, Td, M);
2601
2601
  }
2602
- function vb(D, L, M, X) {
2602
+ function vb(D, $, M, X) {
2603
2603
  for (var ue = M - 1, Re = D.length; ++ue < Re; )
2604
- if (X(D[ue], L))
2604
+ if (X(D[ue], $))
2605
2605
  return ue;
2606
2606
  return -1;
2607
2607
  }
2608
2608
  function Td(D) {
2609
2609
  return D !== D;
2610
2610
  }
2611
- function xd(D, L) {
2611
+ function xd(D, $) {
2612
2612
  var M = D == null ? 0 : D.length;
2613
- return M ? yi(D, L) / M : V;
2613
+ return M ? yi(D, $) / M : V;
2614
2614
  }
2615
2615
  function gi(D) {
2616
- return function(L) {
2617
- return L == null ? r : L[D];
2616
+ return function($) {
2617
+ return $ == null ? r : $[D];
2618
2618
  };
2619
2619
  }
2620
2620
  function vi(D) {
2621
- return function(L) {
2622
- return D == null ? r : D[L];
2621
+ return function($) {
2622
+ return D == null ? r : D[$];
2623
2623
  };
2624
2624
  }
2625
- function Cd(D, L, M, X, ue) {
2625
+ function Cd(D, $, M, X, ue) {
2626
2626
  return ue(D, function(Re, st, je) {
2627
- M = X ? (X = !1, Re) : L(M, Re, st, je);
2627
+ M = X ? (X = !1, Re) : $(M, Re, st, je);
2628
2628
  }), M;
2629
2629
  }
2630
- function yb(D, L) {
2630
+ function yb(D, $) {
2631
2631
  var M = D.length;
2632
- for (D.sort(L); M--; )
2632
+ for (D.sort($); M--; )
2633
2633
  D[M] = D[M].value;
2634
2634
  return D;
2635
2635
  }
2636
- function yi(D, L) {
2636
+ function yi(D, $) {
2637
2637
  for (var M, X = -1, ue = D.length; ++X < ue; ) {
2638
- var Re = L(D[X]);
2638
+ var Re = $(D[X]);
2639
2639
  Re !== r && (M = M === r ? Re : M + Re);
2640
2640
  }
2641
2641
  return M;
2642
2642
  }
2643
- function mi(D, L) {
2643
+ function mi(D, $) {
2644
2644
  for (var M = -1, X = Array(D); ++M < D; )
2645
- X[M] = L(M);
2645
+ X[M] = $(M);
2646
2646
  return X;
2647
2647
  }
2648
- function mb(D, L) {
2649
- return Ge(L, function(M) {
2648
+ function mb(D, $) {
2649
+ return Ge($, function(M) {
2650
2650
  return [M, D[M]];
2651
2651
  });
2652
2652
  }
@@ -2654,39 +2654,39 @@ function GR() {
2654
2654
  return D && D.slice(0, Dd(D) + 1).replace(ai, "");
2655
2655
  }
2656
2656
  function qt(D) {
2657
- return function(L) {
2658
- return D(L);
2657
+ return function($) {
2658
+ return D($);
2659
2659
  };
2660
2660
  }
2661
- function _i(D, L) {
2662
- return Ge(L, function(M) {
2661
+ function _i(D, $) {
2662
+ return Ge($, function(M) {
2663
2663
  return D[M];
2664
2664
  });
2665
2665
  }
2666
- function ca(D, L) {
2667
- return D.has(L);
2666
+ function ca(D, $) {
2667
+ return D.has($);
2668
2668
  }
2669
- function Od(D, L) {
2670
- for (var M = -1, X = D.length; ++M < X && In(L, D[M], 0) > -1; )
2669
+ function Od(D, $) {
2670
+ for (var M = -1, X = D.length; ++M < X && In($, D[M], 0) > -1; )
2671
2671
  ;
2672
2672
  return M;
2673
2673
  }
2674
- function Ad(D, L) {
2675
- for (var M = D.length; M-- && In(L, D[M], 0) > -1; )
2674
+ function Ad(D, $) {
2675
+ for (var M = D.length; M-- && In($, D[M], 0) > -1; )
2676
2676
  ;
2677
2677
  return M;
2678
2678
  }
2679
- function _b(D, L) {
2679
+ function _b(D, $) {
2680
2680
  for (var M = D.length, X = 0; M--; )
2681
- D[M] === L && ++X;
2681
+ D[M] === $ && ++X;
2682
2682
  return X;
2683
2683
  }
2684
2684
  var bb = vi(nb), Sb = vi(ab);
2685
2685
  function wb(D) {
2686
2686
  return "\\" + ob[D];
2687
2687
  }
2688
- function Eb(D, L) {
2689
- return D == null ? r : D[L];
2688
+ function Eb(D, $) {
2689
+ return D == null ? r : D[$];
2690
2690
  }
2691
2691
  function Mn(D) {
2692
2692
  return Z0.test(D);
@@ -2695,49 +2695,49 @@ function GR() {
2695
2695
  return eb.test(D);
2696
2696
  }
2697
2697
  function xb(D) {
2698
- for (var L, M = []; !(L = D.next()).done; )
2699
- M.push(L.value);
2698
+ for (var $, M = []; !($ = D.next()).done; )
2699
+ M.push($.value);
2700
2700
  return M;
2701
2701
  }
2702
2702
  function bi(D) {
2703
- var L = -1, M = Array(D.size);
2703
+ var $ = -1, M = Array(D.size);
2704
2704
  return D.forEach(function(X, ue) {
2705
- M[++L] = [ue, X];
2705
+ M[++$] = [ue, X];
2706
2706
  }), M;
2707
2707
  }
2708
- function Pd(D, L) {
2708
+ function Pd(D, $) {
2709
2709
  return function(M) {
2710
- return D(L(M));
2710
+ return D($(M));
2711
2711
  };
2712
2712
  }
2713
- function Ur(D, L) {
2713
+ function Ur(D, $) {
2714
2714
  for (var M = -1, X = D.length, ue = 0, Re = []; ++M < X; ) {
2715
2715
  var st = D[M];
2716
- (st === L || st === g) && (D[M] = g, Re[ue++] = M);
2716
+ (st === $ || st === g) && (D[M] = g, Re[ue++] = M);
2717
2717
  }
2718
2718
  return Re;
2719
2719
  }
2720
2720
  function gs(D) {
2721
- var L = -1, M = Array(D.size);
2721
+ var $ = -1, M = Array(D.size);
2722
2722
  return D.forEach(function(X) {
2723
- M[++L] = X;
2723
+ M[++$] = X;
2724
2724
  }), M;
2725
2725
  }
2726
2726
  function Cb(D) {
2727
- var L = -1, M = Array(D.size);
2727
+ var $ = -1, M = Array(D.size);
2728
2728
  return D.forEach(function(X) {
2729
- M[++L] = [X, X];
2729
+ M[++$] = [X, X];
2730
2730
  }), M;
2731
2731
  }
2732
- function Rb(D, L, M) {
2732
+ function Rb(D, $, M) {
2733
2733
  for (var X = M - 1, ue = D.length; ++X < ue; )
2734
- if (D[X] === L)
2734
+ if (D[X] === $)
2735
2735
  return X;
2736
2736
  return -1;
2737
2737
  }
2738
- function Ob(D, L, M) {
2738
+ function Ob(D, $, M) {
2739
2739
  for (var X = M + 1; X--; )
2740
- if (D[X] === L)
2740
+ if (D[X] === $)
2741
2741
  return X;
2742
2742
  return X;
2743
2743
  }
@@ -2748,15 +2748,15 @@ function GR() {
2748
2748
  return Mn(D) ? Db(D) : hb(D);
2749
2749
  }
2750
2750
  function Dd(D) {
2751
- for (var L = D.length; L-- && b0.test(D.charAt(L)); )
2751
+ for (var $ = D.length; $-- && b0.test(D.charAt($)); )
2752
2752
  ;
2753
- return L;
2753
+ return $;
2754
2754
  }
2755
2755
  var Ab = vi(sb);
2756
2756
  function Pb(D) {
2757
- for (var L = ci.lastIndex = 0; ci.test(D); )
2758
- ++L;
2759
- return L;
2757
+ for (var $ = ci.lastIndex = 0; ci.test(D); )
2758
+ ++$;
2759
+ return $;
2760
2760
  }
2761
2761
  function Db(D) {
2762
2762
  return D.match(ci) || [];
@@ -2764,20 +2764,20 @@ function GR() {
2764
2764
  function Ib(D) {
2765
2765
  return D.match(Q0) || [];
2766
2766
  }
2767
- var Mb = (function D(L) {
2768
- L = L == null ? pt : Ln.defaults(pt.Object(), L, Ln.pick(pt, tb));
2769
- var M = L.Array, X = L.Date, ue = L.Error, Re = L.Function, st = L.Math, je = L.Object, Si = L.RegExp, Nb = L.String, Kt = L.TypeError, vs = M.prototype, Lb = Re.prototype, $n = je.prototype, ys = L["__core-js_shared__"], ms = Lb.toString, Pe = $n.hasOwnProperty, $b = 0, Id = (function() {
2767
+ var Mb = (function D($) {
2768
+ $ = $ == null ? pt : Ln.defaults(pt.Object(), $, Ln.pick(pt, tb));
2769
+ var M = $.Array, X = $.Date, ue = $.Error, Re = $.Function, st = $.Math, je = $.Object, Si = $.RegExp, Nb = $.String, Kt = $.TypeError, vs = M.prototype, Lb = Re.prototype, $n = je.prototype, ys = $["__core-js_shared__"], ms = Lb.toString, Pe = $n.hasOwnProperty, $b = 0, Id = (function() {
2770
2770
  var n = /[^.]+$/.exec(ys && ys.keys && ys.keys.IE_PROTO || "");
2771
2771
  return n ? "Symbol(src)_1." + n : "";
2772
2772
  })(), _s = $n.toString, Fb = ms.call(je), kb = pt._, qb = Si(
2773
2773
  "^" + ms.call(Pe).replace(ni, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2774
- ), bs = gd ? L.Buffer : r, Gr = L.Symbol, Ss = L.Uint8Array, Md = bs ? bs.allocUnsafe : r, ws = Pd(je.getPrototypeOf, je), Nd = je.create, Ld = $n.propertyIsEnumerable, Es = vs.splice, $d = Gr ? Gr.isConcatSpreadable : r, la = Gr ? Gr.iterator : r, pn = Gr ? Gr.toStringTag : r, Ts = (function() {
2774
+ ), bs = gd ? $.Buffer : r, Gr = $.Symbol, Ss = $.Uint8Array, Md = bs ? bs.allocUnsafe : r, ws = Pd(je.getPrototypeOf, je), Nd = je.create, Ld = $n.propertyIsEnumerable, Es = vs.splice, $d = Gr ? Gr.isConcatSpreadable : r, la = Gr ? Gr.iterator : r, pn = Gr ? Gr.toStringTag : r, Ts = (function() {
2775
2775
  try {
2776
2776
  var n = mn(je, "defineProperty");
2777
2777
  return n({}, "", {}), n;
2778
2778
  } catch {
2779
2779
  }
2780
- })(), jb = L.clearTimeout !== pt.clearTimeout && L.clearTimeout, Wb = X && X.now !== pt.Date.now && X.now, Bb = L.setTimeout !== pt.setTimeout && L.setTimeout, xs = st.ceil, Cs = st.floor, wi = je.getOwnPropertySymbols, Ub = bs ? bs.isBuffer : r, Fd = L.isFinite, Gb = vs.join, Hb = Pd(je.keys, je), ot = st.max, yt = st.min, zb = X.now, Yb = L.parseInt, kd = st.random, Kb = vs.reverse, Ei = mn(L, "DataView"), fa = mn(L, "Map"), Ti = mn(L, "Promise"), Fn = mn(L, "Set"), da = mn(L, "WeakMap"), pa = mn(je, "create"), Rs = da && new da(), kn = {}, Vb = _n(Ei), Jb = _n(fa), Xb = _n(Ti), Qb = _n(Fn), Zb = _n(da), Os = Gr ? Gr.prototype : r, ha = Os ? Os.valueOf : r, qd = Os ? Os.toString : r;
2780
+ })(), jb = $.clearTimeout !== pt.clearTimeout && $.clearTimeout, Wb = X && X.now !== pt.Date.now && X.now, Bb = $.setTimeout !== pt.setTimeout && $.setTimeout, xs = st.ceil, Cs = st.floor, wi = je.getOwnPropertySymbols, Ub = bs ? bs.isBuffer : r, Fd = $.isFinite, Gb = vs.join, Hb = Pd(je.keys, je), ot = st.max, yt = st.min, zb = X.now, Yb = $.parseInt, kd = st.random, Kb = vs.reverse, Ei = mn($, "DataView"), fa = mn($, "Map"), Ti = mn($, "Promise"), Fn = mn($, "Set"), da = mn($, "WeakMap"), pa = mn(je, "create"), Rs = da && new da(), kn = {}, Vb = _n(Ei), Jb = _n(fa), Xb = _n(Ti), Qb = _n(Fn), Zb = _n(da), Os = Gr ? Gr.prototype : r, ha = Os ? Os.valueOf : r, qd = Os ? Os.toString : r;
2781
2781
  function w(n) {
2782
2782
  if (Je(n) && !le(n) && !(n instanceof Te)) {
2783
2783
  if (n instanceof Vt)
@@ -5996,14 +5996,14 @@ function ta() {
5996
5996
  function Af(e) {
5997
5997
  const { name: t, type: r, path: a } = e, s = a.split(".").at(-1);
5998
5998
  switch (r) {
5999
- case $.WEBFORM:
6000
- case $.ROLES:
6001
- case $.HTTP_HANDLERS:
6002
- case $.SETTINGS:
6003
- case $.MODEL:
5999
+ case L.WEBFORM:
6000
+ case L.ROLES:
6001
+ case L.HTTP_HANDLERS:
6002
+ case L.SETTINGS:
6003
+ case L.MODEL:
6004
6004
  return t;
6005
- case $.METHOD:
6006
- case $.CLASS:
6005
+ case L.METHOD:
6006
+ case L.CLASS:
6007
6007
  default:
6008
6008
  return s ? `${t}.${s}` : t;
6009
6009
  }
@@ -6090,7 +6090,7 @@ function VR(e, t) {
6090
6090
  }
6091
6091
  };
6092
6092
  }
6093
- const lM = (e, t) => fe.isEqual(e, t), JR = (e) => e.type === $.WEBFORM || e.ext === "WebForm", Xr = (e) => {
6093
+ const lM = (e, t) => fe.isEqual(e, t), JR = (e) => e.type === L.WEBFORM || e.ext === "WebForm", Xr = (e) => {
6094
6094
  const t = new URL(window.location.href), r = t.searchParams;
6095
6095
  if (JR(e)) {
6096
6096
  const a = r.get("page");
@@ -8566,7 +8566,7 @@ shared function onStop()`
8566
8566
  ext: s,
8567
8567
  ...f,
8568
8568
  name: "DataStore",
8569
- type: $.CLASS,
8569
+ type: L.CLASS,
8570
8570
  path: h,
8571
8571
  error: null,
8572
8572
  flags: { expanded: !1, loading: !1, cached: !1 },
@@ -8585,7 +8585,7 @@ shared function onStop()`
8585
8585
  ext: s,
8586
8586
  ...S,
8587
8587
  name: "QodlyEvents",
8588
- type: $.CLASS,
8588
+ type: L.CLASS,
8589
8589
  path: `Classes/QodlyEvents.${s}`,
8590
8590
  error: null,
8591
8591
  flags: { expanded: !1, loading: !1, cached: !1 },
@@ -8611,14 +8611,14 @@ shared function onStop()`
8611
8611
  ), z = `Classes/${S}.${(P == null ? void 0 : P.ext) || s}`, ee = `Classes/${S}Entity.${(C == null ? void 0 : C.ext) || s}`, ve = `Classes/${x}.${(F == null ? void 0 : F.ext) || s}`;
8612
8612
  return {
8613
8613
  name: S,
8614
- type: $.CLASS_FOLDER,
8614
+ type: L.CLASS_FOLDER,
8615
8615
  children: [
8616
8616
  // datastore classes
8617
8617
  {
8618
8618
  ext: s,
8619
8619
  ...P,
8620
8620
  name: "DataClass",
8621
- type: $.CLASS,
8621
+ type: L.CLASS,
8622
8622
  path: z,
8623
8623
  error: null,
8624
8624
  flags: {},
@@ -8634,7 +8634,7 @@ shared function onStop()`
8634
8634
  ext: s,
8635
8635
  ...C,
8636
8636
  name: "Entity",
8637
- type: $.CLASS,
8637
+ type: L.CLASS,
8638
8638
  path: ee,
8639
8639
  error: null,
8640
8640
  flags: {},
@@ -8650,7 +8650,7 @@ shared function onStop()`
8650
8650
  ext: s,
8651
8651
  ...F,
8652
8652
  name: "Selection",
8653
- type: $.CLASS,
8653
+ type: L.CLASS,
8654
8654
  path: ve,
8655
8655
  error: null,
8656
8656
  flags: {},
@@ -8688,7 +8688,7 @@ shared function onStop()`
8688
8688
  const b = `Classes/${S.name}.${(S == null ? void 0 : S.ext) || s}`;
8689
8689
  return {
8690
8690
  ...S,
8691
- type: $.CLASS,
8691
+ type: L.CLASS,
8692
8692
  path: b,
8693
8693
  error: null,
8694
8694
  flags: { expanded: !1, loading: !1, cached: !1 },
@@ -10717,7 +10717,7 @@ const pM = () => aD(), qr = uD, Lf = k(
10717
10717
  return (a == null ? void 0 : a.breakpoints[t].offset) || 0;
10718
10718
  }), YM = (e, t, r, a) => k(Rt, (s) => {
10719
10719
  var f;
10720
- const i = ((f = at(s, e)) == null ? void 0 : f.exceptions) || [], u = t === $.CLASS, l = u && a ? `${a}.${r}` : r;
10720
+ const i = ((f = at(s, e)) == null ? void 0 : f.exceptions) || [], u = t === L.CLASS, l = u && a ? `${a}.${r}` : r;
10721
10721
  return (l ? i.filter((h) => h.location === l) : i).map((h) => ({
10722
10722
  ...h,
10723
10723
  locationLine: u ? h.locationLine : h.locationLine + 1
@@ -10729,7 +10729,7 @@ const pM = () => aD(), qr = uD, Lf = k(
10729
10729
  ({ threadId: t, currentStackFrame: { source: r }, tabPath: a }) => ({
10730
10730
  name: fA(t, r),
10731
10731
  path: a,
10732
- type: $.DEBUGGER,
10732
+ type: L.DEBUGGER,
10733
10733
  content: r == null ? void 0 : r.content,
10734
10734
  flags: {},
10735
10735
  extra: { source: r }
@@ -10743,14 +10743,14 @@ const pM = () => aD(), qr = uD, Lf = k(
10743
10743
  (e) => e.activeTab
10744
10744
  ), JM = k(
10745
10745
  fn,
10746
- (e) => e.recent.filter(({ type: t }) => t !== $.DEBUGGER)
10746
+ (e) => e.recent.filter(({ type: t }) => t !== L.DEBUGGER)
10747
10747
  ), gD = k(
10748
10748
  fn,
10749
10749
  ({ tabs: e, activeTab: t }) => e.find(({ path: r }) => r === t)
10750
10750
  ), XM = k(fn, ({ tabs: e }) => e.reduce((r, a) => (a == null ? void 0 : a.weight) > ((r == null ? void 0 : r.weight) || 0) ? a : r, null)), QM = k(
10751
10751
  na,
10752
10752
  (e) => e.filter(
10753
- ({ type: t, flags: r }) => t === $.WEBFORM && r.enabled === !1
10753
+ ({ type: t, flags: r }) => t === L.WEBFORM && r.enabled === !1
10754
10754
  ).map(({ path: t }) => t)
10755
10755
  ), ZM = k(
10756
10756
  na,
@@ -11066,7 +11066,7 @@ const ED = {
11066
11066
  }
11067
11067
  const s = {
11068
11068
  name: x_,
11069
- type: $.ROLES,
11069
+ type: L.ROLES,
11070
11070
  date: a.date,
11071
11071
  view: {
11072
11072
  panel: {
@@ -11140,7 +11140,7 @@ const ED = {
11140
11140
  ), R_ = K("roles/resetRoles", async (e, { getState: t, rejectWithValue: r, dispatch: a }) => {
11141
11141
  try {
11142
11142
  const { project: s } = t().settings, i = $_(
11143
- $.ROLES,
11143
+ L.ROLES,
11144
11144
  s
11145
11145
  );
11146
11146
  return a(
@@ -11510,7 +11510,7 @@ end
11510
11510
  ), N_ = [
11511
11511
  {
11512
11512
  name: Ke.WEBFORMS,
11513
- type: $.FOLDER,
11513
+ type: L.FOLDER,
11514
11514
  children: [],
11515
11515
  path: Ke.WEBFORMS,
11516
11516
  error: null,
@@ -11525,7 +11525,7 @@ end
11525
11525
  },
11526
11526
  {
11527
11527
  name: Ke.METHODS,
11528
- type: $.FOLDER,
11528
+ type: L.FOLDER,
11529
11529
  children: [],
11530
11530
  path: Ke.METHODS,
11531
11531
  error: null,
@@ -11539,7 +11539,7 @@ end
11539
11539
  },
11540
11540
  {
11541
11541
  name: Ke.CLASSES,
11542
- type: $.FOLDER,
11542
+ type: L.FOLDER,
11543
11543
  children: [],
11544
11544
  path: Ke.CLASSES,
11545
11545
  error: null,
@@ -11553,7 +11553,7 @@ end
11553
11553
  },
11554
11554
  {
11555
11555
  name: Ke.SHARED,
11556
- type: $.FOLDER,
11556
+ type: L.FOLDER,
11557
11557
  children: [],
11558
11558
  path: Ke.SHARED,
11559
11559
  error: null,
@@ -11567,7 +11567,7 @@ end
11567
11567
  },
11568
11568
  {
11569
11569
  name: "Debugger",
11570
- type: $.FOLDER,
11570
+ type: L.FOLDER,
11571
11571
  children: [],
11572
11572
  path: "Debugger",
11573
11573
  error: null,
@@ -11580,7 +11580,7 @@ end
11580
11580
  },
11581
11581
  {
11582
11582
  name: "Roles And Privileges",
11583
- type: $.ROLES,
11583
+ type: L.ROLES,
11584
11584
  ext: "json",
11585
11585
  path: ut,
11586
11586
  error: null,
@@ -11603,7 +11603,7 @@ end
11603
11603
  },
11604
11604
  {
11605
11605
  name: "Model",
11606
- type: $.MODEL,
11606
+ type: L.MODEL,
11607
11607
  ext: "4DModel",
11608
11608
  path: ss,
11609
11609
  error: null,
@@ -11625,7 +11625,7 @@ end
11625
11625
  },
11626
11626
  {
11627
11627
  name: "HTTP Handlers",
11628
- type: $.HTTP_HANDLERS,
11628
+ type: L.HTTP_HANDLERS,
11629
11629
  ext: "json",
11630
11630
  path: Nr,
11631
11631
  error: null,
@@ -11644,7 +11644,7 @@ end
11644
11644
  },
11645
11645
  {
11646
11646
  name: "Localization",
11647
- type: $.LOCALIZATION,
11647
+ type: L.LOCALIZATION,
11648
11648
  ext: "json",
11649
11649
  path: as,
11650
11650
  error: null,
@@ -11664,7 +11664,7 @@ end
11664
11664
  },
11665
11665
  {
11666
11666
  name: "Settings",
11667
- type: $.SETTINGS,
11667
+ type: L.SETTINGS,
11668
11668
  ext: "json",
11669
11669
  path: tr,
11670
11670
  error: null,
@@ -11685,7 +11685,7 @@ end
11685
11685
  ], MD = Tm(), ND = !!fe.get(MD, "features.experimental.reports");
11686
11686
  ND && N_.unshift({
11687
11687
  name: Ke.REPORTS,
11688
- type: $.FOLDER,
11688
+ type: L.FOLDER,
11689
11689
  children: [],
11690
11690
  path: Ke.REPORTS,
11691
11691
  error: null,
@@ -11771,7 +11771,7 @@ const L_ = $t({
11771
11771
  }
11772
11772
  }), a.children = a.children.filter(
11773
11773
  (u) => !r.includes(u.name)
11774
- ), a.children = a.children.concat(i), a.children.sort((u, l) => u.name === "DataStore" ? -1 : l.name === "DataStore" ? 1 : u.type === $.CLASS_FOLDER && l.type === $.CLASS_FOLDER || u.type === $.CLASS && l.type === $.CLASS ? u.name.localeCompare(l.name) : u.type === $.CLASS_FOLDER && l.type !== $.CLASS_FOLDER ? -1 : 1), e[s] = a, e;
11774
+ ), a.children = a.children.concat(i), a.children.sort((u, l) => u.name === "DataStore" ? -1 : l.name === "DataStore" ? 1 : u.type === L.CLASS_FOLDER && l.type === L.CLASS_FOLDER || u.type === L.CLASS && l.type === L.CLASS ? u.name.localeCompare(l.name) : u.type === L.CLASS_FOLDER && l.type !== L.CLASS_FOLDER ? -1 : 1), e[s] = a, e;
11775
11775
  },
11776
11776
  addClassesFolder: (e, t) => {
11777
11777
  const { payload: r } = t;
@@ -11781,7 +11781,7 @@ const L_ = $t({
11781
11781
  const s = e.findIndex((u) => u.name === "Classes");
11782
11782
  let i = 0;
11783
11783
  return a.children.forEach((u, l) => {
11784
- u.type === $.CLASS_FOLDER && (i = l);
11784
+ u.type === L.CLASS_FOLDER && (i = l);
11785
11785
  }), r.forEach((u) => {
11786
11786
  var l;
11787
11787
  a.children = (l = a.children) == null ? void 0 : l.filter((d) => {
@@ -11806,7 +11806,7 @@ const L_ = $t({
11806
11806
  }), r.forEach((u) => {
11807
11807
  var l;
11808
11808
  (l = a == null ? void 0 : a.children) == null || l.splice(i + 1, 0, u);
11809
- }), a.children.sort((u, l) => u.name === "DataStore" ? -1 : l.name === "DataStore" ? 1 : u.type === $.CLASS_FOLDER && l.type === $.CLASS_FOLDER ? u.name.localeCompare(l.name) : u.type === $.CLASS_FOLDER && l.type !== $.CLASS_FOLDER ? -1 : 1), e[s] = a, e;
11809
+ }), a.children.sort((u, l) => u.name === "DataStore" ? -1 : l.name === "DataStore" ? 1 : u.type === L.CLASS_FOLDER && l.type === L.CLASS_FOLDER ? u.name.localeCompare(l.name) : u.type === L.CLASS_FOLDER && l.type !== L.CLASS_FOLDER ? -1 : 1), e[s] = a, e;
11810
11810
  },
11811
11811
  toggleExpandFolder: (e, t) => (e = Ce(e, {
11812
11812
  ...t.payload,
@@ -12127,8 +12127,8 @@ const L_ = $t({
12127
12127
  var m;
12128
12128
  const { fileName: a, parentNode: s, path: i, type: u, qodly: l } = r.meta.arg, d = Qr(u, l), f = `${i}/${a}${d ? `.${d}` : ""}`, { editor: h, supportedEditors: g } = St(f);
12129
12129
  switch (u) {
12130
- case $.CLASS:
12131
- case $.METHOD:
12130
+ case L.CLASS:
12131
+ case L.METHOD:
12132
12132
  mr.next({
12133
12133
  action: _r.WILL_CREATE,
12134
12134
  payload: {
@@ -12144,7 +12144,7 @@ const L_ = $t({
12144
12144
  {
12145
12145
  name: a,
12146
12146
  path: f,
12147
- type: u === $.CLASS ? u : $.FILE,
12147
+ type: u === L.CLASS ? u : L.FILE,
12148
12148
  error: null,
12149
12149
  flags: {
12150
12150
  loading: !0
@@ -12154,7 +12154,7 @@ const L_ = $t({
12154
12154
  date: (/* @__PURE__ */ new Date()).toISOString(),
12155
12155
  info: {
12156
12156
  exist: !0,
12157
- kind: u === $.CLASS ? "userClass" : ""
12157
+ kind: u === L.CLASS ? "userClass" : ""
12158
12158
  }
12159
12159
  }
12160
12160
  ], E = Ce(t, {
@@ -12166,7 +12166,7 @@ const L_ = $t({
12166
12166
  const { fileName: a, path: s, type: i, qodly: u } = r.meta.arg, l = Qr(i, u), d = `${s}/${a}${l ? `.${l}` : ""}`, { editor: f, supportedEditors: h } = St(d), g = Ce(t, {
12167
12167
  name: a,
12168
12168
  path: d,
12169
- type: $.FILE,
12169
+ type: L.FILE,
12170
12170
  error: null,
12171
12171
  flags: {},
12172
12172
  config: { editor: f, supportedEditors: h },
@@ -12174,12 +12174,12 @@ const L_ = $t({
12174
12174
  date: (/* @__PURE__ */ new Date()).toISOString(),
12175
12175
  info: {
12176
12176
  exist: !0,
12177
- kind: i === $.CLASS ? "userClass" : ""
12177
+ kind: i === L.CLASS ? "userClass" : ""
12178
12178
  }
12179
12179
  });
12180
12180
  switch (i) {
12181
- case $.CLASS:
12182
- case $.METHOD:
12181
+ case L.CLASS:
12182
+ case L.METHOD:
12183
12183
  mr.next({
12184
12184
  action: _r.DID_CREATE,
12185
12185
  payload: {
@@ -12194,7 +12194,7 @@ const L_ = $t({
12194
12194
  return t = Ce(t, {
12195
12195
  name: a,
12196
12196
  path: l,
12197
- type: $.FILE,
12197
+ type: L.FILE,
12198
12198
  error: { message: "Failed creating file" },
12199
12199
  flags: {},
12200
12200
  config: { editor: d, supportedEditors: f },
@@ -12248,7 +12248,7 @@ const L_ = $t({
12248
12248
  } = L_.actions;
12249
12249
  function $_(e, t) {
12250
12250
  switch (e) {
12251
- case $.WEBFORMS: {
12251
+ case L.WEBFORMS: {
12252
12252
  const r = {
12253
12253
  metadata: {
12254
12254
  v: "1.0",
@@ -12264,7 +12264,7 @@ function $_(e, t) {
12264
12264
  isCanvas: !0,
12265
12265
  props: {
12266
12266
  airyMode: !1,
12267
- className: "bg-white w-full px-6",
12267
+ className: "w-full px-6",
12268
12268
  classNames: [],
12269
12269
  events: []
12270
12270
  },
@@ -12278,7 +12278,7 @@ function $_(e, t) {
12278
12278
  };
12279
12279
  return t["webforms.display-mode"] === S_.AIRY && (r.components.ROOT.props.airyMode = !0), r;
12280
12280
  }
12281
- case $.REPORT:
12281
+ case L.REPORT:
12282
12282
  return {
12283
12283
  metadata: {
12284
12284
  v: "1.0",
@@ -12312,16 +12312,16 @@ function $_(e, t) {
12312
12312
  }
12313
12313
  ]
12314
12314
  };
12315
- case $.METHODS:
12315
+ case L.METHODS:
12316
12316
  return `//%attributes = {}
12317
12317
  `;
12318
- case $.HTTP_HANDLERS:
12318
+ case L.HTTP_HANDLERS:
12319
12319
  return [];
12320
- case $.LOCALIZATION:
12320
+ case L.LOCALIZATION:
12321
12321
  return { keys: {}, userLang: { primary: "", supported: [] } };
12322
- case $.SETTINGS:
12322
+ case L.SETTINGS:
12323
12323
  return {};
12324
- case $.ROLES:
12324
+ case L.ROLES:
12325
12325
  return {
12326
12326
  permissions: {
12327
12327
  allowed: []
@@ -12338,34 +12338,34 @@ function $_(e, t) {
12338
12338
  function lL(e) {
12339
12339
  switch (e) {
12340
12340
  case Ke.WEBFORMS:
12341
- return $.WEBFORMS;
12341
+ return L.WEBFORMS;
12342
12342
  case Ke.METHODS:
12343
- return $.METHODS;
12343
+ return L.METHODS;
12344
12344
  case Ke.CLASSES:
12345
- return $.CLASSES;
12345
+ return L.CLASSES;
12346
12346
  case Ke.REPORTS:
12347
12347
  case "Reports":
12348
- return $.REPORT;
12348
+ return L.REPORT;
12349
12349
  case "Mobile":
12350
- return $.MOBILE;
12350
+ return L.MOBILE;
12351
12351
  default:
12352
12352
  return e;
12353
12353
  }
12354
12354
  }
12355
12355
  function $D(e) {
12356
12356
  switch (e) {
12357
- case $.WEBFORMS:
12358
- return $.WEBFORM;
12359
- case $.REPORT:
12360
- return $.REPORT;
12361
- case $.CLASSES:
12362
- return $.CLASS;
12363
- case $.METHODS:
12364
- return $.METHOD;
12365
- case $.FOLDER:
12366
- return $.FOLDER;
12367
- case $.MOBILE:
12368
- return $.MOBILEFORM;
12357
+ case L.WEBFORMS:
12358
+ return L.WEBFORM;
12359
+ case L.REPORT:
12360
+ return L.REPORT;
12361
+ case L.CLASSES:
12362
+ return L.CLASS;
12363
+ case L.METHODS:
12364
+ return L.METHOD;
12365
+ case L.FOLDER:
12366
+ return L.FOLDER;
12367
+ case L.MOBILE:
12368
+ return L.MOBILEFORM;
12369
12369
  default:
12370
12370
  return e;
12371
12371
  }
@@ -12378,7 +12378,7 @@ const fL = K("files/tryEditMethod", async ({ method: e }, { dispatch: t }) => {
12378
12378
  name: a,
12379
12379
  path: e.filePath,
12380
12380
  date: (/* @__PURE__ */ new Date()).toISOString(),
12381
- type: $.CLASS,
12381
+ type: L.CLASS,
12382
12382
  editor: s
12383
12383
  },
12384
12384
  line: e.startingLine + 1
@@ -12437,7 +12437,7 @@ const fL = K("files/tryEditMethod", async ({ method: e }, { dispatch: t }) => {
12437
12437
  f.map(async ({ name: _, content: v }) => {
12438
12438
  await t(
12439
12439
  Ha({
12440
- type: $.CLASS,
12440
+ type: L.CLASS,
12441
12441
  path: s,
12442
12442
  fileName: _,
12443
12443
  parentNode: u,
@@ -12628,7 +12628,7 @@ const dL = K("explorer/uploadFileAndGetResponse", async (e) => {
12628
12628
  name: Qx(e, t, d),
12629
12629
  content: s || $_(t, f),
12630
12630
  path: r,
12631
- asText: [$.CLASS, $.METHOD].includes(t)
12631
+ asText: [L.CLASS, L.METHOD].includes(t)
12632
12632
  });
12633
12633
  return a.error && (a.flags.expanded ? await i(Rn(a.path)) : await i(yo(a.path))), {
12634
12634
  qodly: d,
@@ -12644,13 +12644,13 @@ function qD(e, t) {
12644
12644
  const { qodly: r = !0, withExtension: a = !0 } = t || {}, s = Qr(e.type, r);
12645
12645
  let i = "";
12646
12646
  switch (e.type) {
12647
- case $.WEBFORM:
12647
+ case L.WEBFORM:
12648
12648
  i = `${Ke.WEBFORMS}/${e.name}`;
12649
12649
  break;
12650
- case $.METHOD:
12650
+ case L.METHOD:
12651
12651
  i = `${Ke.METHODS}/${e.name}`;
12652
12652
  break;
12653
- case $.CLASS:
12653
+ case L.CLASS:
12654
12654
  i = `${Ke.CLASSES}/${e.name}`;
12655
12655
  break;
12656
12656
  default:
@@ -12717,15 +12717,15 @@ const hL = K(
12717
12717
  };
12718
12718
  r != null && r.info && (u.kind = r.info.kind);
12719
12719
  const l = $l(e.path);
12720
- l === $.METHOD && (u.attributes = df(i.content), i.content = Yy(i.content, {}));
12720
+ l === L.METHOD && (u.attributes = df(i.content), i.content = Yy(i.content, {}));
12721
12721
  const { content: d, date: f, ext: h } = i;
12722
12722
  return t.confirmed === void 0 && (t.confirmed = !0), {
12723
12723
  date: f,
12724
12724
  view: {
12725
12725
  panel: {
12726
12726
  isOpen: !1,
12727
- type: l === $.WEBFORM ? "component" : "",
12728
- current: l === $.WEBFORM ? "ROOT" : ""
12727
+ type: l === L.WEBFORM ? "component" : "",
12728
+ current: l === L.WEBFORM ? "ROOT" : ""
12729
12729
  }
12730
12730
  },
12731
12731
  flags: {
@@ -12767,7 +12767,7 @@ const hL = K(
12767
12767
  },
12768
12768
  name: "Roles & Privileges",
12769
12769
  path: e.path,
12770
- type: $.ROLES,
12770
+ type: L.ROLES,
12771
12771
  initialContent: u,
12772
12772
  content: u
12773
12773
  };
@@ -12785,7 +12785,7 @@ const hL = K(
12785
12785
  },
12786
12786
  name: "Settings",
12787
12787
  path: e.path,
12788
- type: $.SETTINGS,
12788
+ type: L.SETTINGS,
12789
12789
  initialContent: u,
12790
12790
  content: u
12791
12791
  };
@@ -12824,7 +12824,7 @@ const hL = K(
12824
12824
  path: a,
12825
12825
  editor: s,
12826
12826
  name: r.page,
12827
- type: $.WEBFORM
12827
+ type: L.WEBFORM
12828
12828
  },
12829
12829
  flags: {
12830
12830
  confirmed: !0
@@ -12914,7 +12914,7 @@ const hL = K(
12914
12914
  source: x
12915
12915
  } = S.currentStackFrame, R = {
12916
12916
  name: e.name,
12917
- type: $.DEBUGGER,
12917
+ type: L.DEBUGGER,
12918
12918
  date: (/* @__PURE__ */ new Date()).toISOString(),
12919
12919
  path: e.path,
12920
12920
  content: b,
@@ -12991,7 +12991,7 @@ const hL = K(
12991
12991
  };
12992
12992
  }
12993
12993
  }
12994
- if (e.type === $.CLASS && s) {
12994
+ if (e.type === L.CLASS && s) {
12995
12995
  const x = s.kind, R = `${e.name}.${g ? "4qs" : "4dm"}`, P = Kn()[x]({
12996
12996
  name: R,
12997
12997
  qodly: g
@@ -13110,7 +13110,7 @@ const hL = K(
13110
13110
  name: u.name,
13111
13111
  date: u.date || (/* @__PURE__ */ new Date()).toISOString(),
13112
13112
  path: l,
13113
- type: $.CLASS,
13113
+ type: L.CLASS,
13114
13114
  editor: u.config.editor
13115
13115
  },
13116
13116
  node: d
@@ -13485,7 +13485,7 @@ const hL = K(
13485
13485
  }
13486
13486
  ), GD = K("tabs/fetchChanges", async (e, { getState: t }) => {
13487
13487
  const a = na(t()).filter(
13488
- (s) => [$.METHOD, $.CLASS].includes(s.type)
13488
+ (s) => [L.METHOD, L.CLASS].includes(s.type)
13489
13489
  );
13490
13490
  return Ja(
13491
13491
  ...a.map((s) => {
@@ -13643,11 +13643,11 @@ const hL = K(
13643
13643
  t(Go({ path: "project", value: u }));
13644
13644
  } else {
13645
13645
  const { content: u } = a;
13646
- e.type === $.WEBFORM ? sC.next({
13646
+ e.type === L.WEBFORM ? sC.next({
13647
13647
  path: e.path,
13648
13648
  action: oC.RELOAD,
13649
13649
  payload: u.components
13650
- }) : e.type === $.MODEL ? $P.next({
13650
+ }) : e.type === L.MODEL ? $P.next({
13651
13651
  action: "reload",
13652
13652
  payload: u
13653
13653
  }) : e.path === as && ((i = (s = e.extra) == null ? void 0 : s.editor) == null ? void 0 : i.key) === "editors:localization" && pf.next({
@@ -13659,7 +13659,7 @@ const hL = K(
13659
13659
  }), Ya = K("files/saveTab", async ({ tab: e }, { dispatch: t, getState: r }) => {
13660
13660
  var g, _, v, E;
13661
13661
  let { path: a, content: s } = e;
13662
- if (e.type === $.DEBUGGER) return { ...e, errors: [] };
13662
+ if (e.type === L.DEBUGGER) return { ...e, errors: [] };
13663
13663
  a.split("/").pop();
13664
13664
  const u = await Ja({
13665
13665
  path: a
@@ -13691,13 +13691,13 @@ const hL = K(
13691
13691
  content: l,
13692
13692
  path: a
13693
13693
  });
13694
- (e.type === $.CLASS || e.type === $.MODEL) && setTimeout(() => {
13694
+ (e.type === L.CLASS || e.type === L.MODEL) && setTimeout(() => {
13695
13695
  t(An());
13696
13696
  }, Mo), (e.path === tr || e.path === "settings.json") && ((_ = (g = e.extra) == null ? void 0 : g.editor) == null ? void 0 : _.key) === "editors:code" && t(Go({ path: "project", value: l }));
13697
13697
  const f = (d.modelErrors || []).map((m) => m.message), h = (d.permissionsErrors || []).map(
13698
13698
  (m) => m.message
13699
13699
  );
13700
- return [$.MODEL, $.SETTINGS].includes(e.type) && (s = l), e.path === as && ((E = (v = e.extra) == null ? void 0 : v.editor) == null ? void 0 : E.key) === "editors:code" && pf.next({
13700
+ return [L.MODEL, L.SETTINGS].includes(e.type) && (s = l), e.path === as && ((E = (v = e.extra) == null ? void 0 : v.editor) == null ? void 0 : E.key) === "editors:code" && pf.next({
13701
13701
  action: "set_locale_state",
13702
13702
  payload: typeof e.content == "string" ? JSON.parse(e.content) : e.content
13703
13703
  }), {
@@ -13720,9 +13720,9 @@ const hL = K(
13720
13720
  // return tab.extra?.attributes
13721
13721
  // ? addAttributesToContent(tab.content, tab.extra!.attributes!, true)
13722
13722
  // : tab.content;
13723
- case e.type === $.ROLES:
13723
+ case e.type === L.ROLES:
13724
13724
  return ((a = (r = e.extra) == null ? void 0 : r.editor) == null ? void 0 : a.key) === "editors:roles" && typeof e.content != "string" ? lf(t.roles) : e.content;
13725
- case e.type === $.MODEL: {
13725
+ case e.type === L.MODEL: {
13726
13726
  const s = e.content || {
13727
13727
  toJSON: !0,
13728
13728
  dataClasses: [],
@@ -13730,7 +13730,7 @@ const hL = K(
13730
13730
  };
13731
13731
  return UD(s);
13732
13732
  }
13733
- case e.type === $.WEBFORM: {
13733
+ case e.type === L.WEBFORM: {
13734
13734
  const s = e.content;
13735
13735
  return s ? {
13736
13736
  ...s,
@@ -13744,7 +13744,7 @@ const hL = K(
13744
13744
  return e.content;
13745
13745
  }
13746
13746
  }, Ey = async (e) => {
13747
- if (e.type === $.DATA_EXPLORER)
13747
+ if (e.type === L.DATA_EXPLORER)
13748
13748
  return {
13749
13749
  name: "Data Explorer",
13750
13750
  path: e.path,
@@ -13765,11 +13765,11 @@ const hL = K(
13765
13765
  content: !0,
13766
13766
  as: t
13767
13767
  }), a = {};
13768
- r.type === $.METHOD && (a.attributes = df(r.content));
13768
+ r.type === L.METHOD && (a.attributes = df(r.content));
13769
13769
  const { date: s, name: i, type: u, content: l } = r;
13770
13770
  return {
13771
13771
  date: s,
13772
- flags: { enabled: e.type === $.WEBFORM },
13772
+ flags: { enabled: e.type === L.WEBFORM },
13773
13773
  extra: a,
13774
13774
  view: {
13775
13775
  panel: {
@@ -13782,7 +13782,7 @@ const hL = K(
13782
13782
  path: e.path,
13783
13783
  type: u,
13784
13784
  initialContent: l,
13785
- content: u === $.MODEL ? YR(l) : l,
13785
+ content: u === L.MODEL ? YR(l) : l,
13786
13786
  history: {
13787
13787
  stack: [],
13788
13788
  active: -1,
@@ -13846,7 +13846,7 @@ const hL = K(
13846
13846
  name: d,
13847
13847
  date: (/* @__PURE__ */ new Date()).toISOString(),
13848
13848
  path: f,
13849
- type: $.CLASS
13849
+ type: L.CLASS
13850
13850
  });
13851
13851
  } catch {
13852
13852
  t ? await s(
@@ -13866,7 +13866,7 @@ const hL = K(
13866
13866
  return h = await Ey({
13867
13867
  date: (/* @__PURE__ */ new Date()).toISOString(),
13868
13868
  path: f,
13869
- type: $.CLASS
13869
+ type: L.CLASS
13870
13870
  }), h.path = f, s(Lt(h)), h;
13871
13871
  }
13872
13872
  ), RL = K("roles/open", async (e, { dispatch: t, getState: r }) => {
@@ -13972,7 +13972,7 @@ const U_ = $t({
13972
13972
  if (f)
13973
13973
  Ty(f, d);
13974
13974
  else {
13975
- if (a === $.CLASS && d.offset === void 0)
13975
+ if (a === L.CLASS && d.offset === void 0)
13976
13976
  throw new Error(
13977
13977
  `Cannot add a breakpoint on a function without offset. Try editing the ${i} class.`
13978
13978
  );
@@ -16031,9 +16031,13 @@ const qf = (e, t) => {
16031
16031
  e.tabs = t.payload;
16032
16032
  },
16033
16033
  closeDebuggerTabs(e) {
16034
- e.tabs = e.tabs.filter((r) => r.type !== $.DEBUGGER);
16035
- const t = e.tabs.length ? e.tabs[e.tabs.length - 1] : null;
16036
- e.activeTab = t ? t.path : "", t ? Xr(t) : to();
16034
+ const t = e.tabs.some(
16035
+ (r) => r.path === e.activeTab && r.type === L.DEBUGGER
16036
+ );
16037
+ if (e.tabs = e.tabs.filter((r) => r.type !== L.DEBUGGER), t) {
16038
+ const r = e.tabs.at(-1) ?? null;
16039
+ e.activeTab = (r == null ? void 0 : r.path) ?? "", r ? Xr(r) : to();
16040
+ }
16037
16041
  },
16038
16042
  closeTab(e, t) {
16039
16043
  const r = t.payload;
@@ -16085,7 +16089,7 @@ const qf = (e, t) => {
16085
16089
  };
16086
16090
  },
16087
16091
  selectTabByReference(e, t) {
16088
- const r = [$.DEBUGGER], { isNew: a, ...s } = t.payload;
16092
+ const r = [L.DEBUGGER], { isNew: a, ...s } = t.payload;
16089
16093
  let i = s, u = e.tabs.find(({ path: l }) => i.path === l);
16090
16094
  if (i.history || (i.history = {
16091
16095
  stack: [],
@@ -16288,8 +16292,8 @@ const qf = (e, t) => {
16288
16292
  }), e.addCase(Ya.pending, (t, r) => {
16289
16293
  const { tab: a } = r.meta.arg;
16290
16294
  switch (a.type) {
16291
- case $.CLASS:
16292
- case $.METHOD:
16295
+ case L.CLASS:
16296
+ case L.METHOD:
16293
16297
  mr.next({
16294
16298
  action: _r.WILL_SAVE,
16295
16299
  payload: {
@@ -16308,8 +16312,8 @@ const qf = (e, t) => {
16308
16312
  );
16309
16313
  if (a) {
16310
16314
  switch (a.content = r.payload.content, a.date = r.payload.date, a.initialContent = r.payload.initialContent, a.flags.touched = !1, a.flags.confirmed = !0, a.flags.old = !1, a.type) {
16311
- case $.CLASS:
16312
- case $.METHOD:
16315
+ case L.CLASS:
16316
+ case L.METHOD:
16313
16317
  mr.next({
16314
16318
  action: _r.DID_SAVE,
16315
16319
  payload: {
@@ -16318,7 +16322,7 @@ const qf = (e, t) => {
16318
16322
  }
16319
16323
  });
16320
16324
  break;
16321
- case $.HTTP_HANDLERS:
16325
+ case L.HTTP_HANDLERS:
16322
16326
  lr.next({
16323
16327
  kind: "info",
16324
16328
  message: "Restart WEB server to have modifications taken into account"
@@ -16338,7 +16342,7 @@ const qf = (e, t) => {
16338
16342
  }), e.addCase(GD.fulfilled, (t, r) => {
16339
16343
  const a = [...r.payload.files];
16340
16344
  t.tabs = t.tabs.map((s) => {
16341
- if ([$.CLASS, $.METHOD].includes(s.type)) {
16345
+ if ([L.CLASS, L.METHOD].includes(s.type)) {
16342
16346
  const i = a.find(
16343
16347
  (u) => u.name === s.name && u.type === s.type
16344
16348
  );
@@ -16372,7 +16376,7 @@ const qf = (e, t) => {
16372
16376
  if (i.name === s.name && i.type === s.type) {
16373
16377
  const u = i.extra || {};
16374
16378
  let l = a.content;
16375
- return i.type === $.METHOD ? (u.attributes = df(a.content), a.content = Yy(a.content, {}), l = a.content) : i.type === $.SETTINGS && (a.content = {}), {
16379
+ return i.type === L.METHOD ? (u.attributes = df(a.content), a.content = Yy(a.content, {}), l = a.content) : i.type === L.SETTINGS && (a.content = {}), {
16376
16380
  ...i,
16377
16381
  initialContent: l,
16378
16382
  content: a.content,
@@ -16518,7 +16522,7 @@ exposed Function ${r.meta.arg.name}()
16518
16522
  `, a.flags = { ...a.flags, touched: !0, confirmed: !0 };
16519
16523
  const s = a.content.split(`
16520
16524
  `);
16521
- a.path.startsWith("Classes/") && (a.type = $.CLASS), a.extra = {
16525
+ a.path.startsWith("Classes/") && (a.type = L.CLASS), a.extra = {
16522
16526
  ...a.extra,
16523
16527
  editor: kl.Code,
16524
16528
  initialLineInfo: {