treege 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,6 +1,6 @@
1
- import On from "axios";
2
1
  import * as be from "react";
3
2
  import mt, { createContext as xr, useMemo as wr, useReducer as kl, useState as Ce, useCallback as Il, useContext as Tr, memo as zl, forwardRef as Rl, createElement as wn, Fragment as jl, Children as Md, useEffect as xd, useLayoutEffect as wd } from "react";
3
+ import On from "axios";
4
4
  import { QueryClient as Td, useMutation as $l, useQuery as Ll, QueryClientProvider as Nd } from "react-query";
5
5
  import { GlobalStyles as Ai, ThemeProvider as Ed, Snackbar as Dd, Alert as Od, Box as He, Button as st, CircularProgress as Pl, Stack as Ie, Tooltip as ot, Dialog as Fl, Slide as Sd, AppBar as Cd, Toolbar as Ad, Typography as ui, IconButton as kd, Grid as fo, FormControl as Ul, InputLabel as Yl, Select as Vl, MenuItem as er, Skeleton as Id, Divider as zd, TextField as wt, FormGroup as ho, FormControlLabel as po, Checkbox as go, Chip as mo } from "@tracktor/design-system";
6
6
  import Rd from "react-dom";
@@ -10,38 +10,6 @@ import { dracula as Ld } from "@uiw/codemirror-theme-dracula";
10
10
  import Pd from "@uiw/react-codemirror";
11
11
  import Fd from "i18next";
12
12
  import Ud from "i18next-browser-languagedetector";
13
- const _e = {
14
- background: "#0a1929",
15
- borderBlue: "#0f353e",
16
- borderGrey: "rgba(255, 255, 255, 0.1)",
17
- grey500: "#868c95",
18
- primary: "#0ed3b4",
19
- secondary: "#007ef6",
20
- tertiary: "#0f353e"
21
- }, Yd = {
22
- components: {
23
- MuiButton: {
24
- styleOverrides: {
25
- root: ({ ownerState: e }) => ({
26
- ...e.color === "primary" && e.variant === "contained" && { color: `${_e.tertiary} !important` }
27
- })
28
- }
29
- }
30
- },
31
- palette: {
32
- background: {
33
- default: _e.background,
34
- paper: _e.background
35
- },
36
- mode: "dark",
37
- primary: {
38
- main: _e.primary
39
- },
40
- secondary: {
41
- main: _e.secondary
42
- }
43
- }
44
- };
45
13
  var we = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
46
14
  function Wt(e) {
47
15
  if (e.__esModule)
@@ -70,7 +38,7 @@ function Wt(e) {
70
38
  });
71
39
  }), n;
72
40
  }
73
- var dr = {}, Vd = {
41
+ var dr = {}, Yd = {
74
42
  get exports() {
75
43
  return dr;
76
44
  },
@@ -88,7 +56,7 @@ var dr = {}, Vd = {
88
56
  * LICENSE file in the root directory of this source tree.
89
57
  */
90
58
  var Ls;
91
- function qd() {
59
+ function Vd() {
92
60
  if (Ls)
93
61
  return qn;
94
62
  Ls = 1;
@@ -116,7 +84,7 @@ var Qn = {};
116
84
  * LICENSE file in the root directory of this source tree.
117
85
  */
118
86
  var Ps;
119
- function Qd() {
87
+ function qd() {
120
88
  return Ps || (Ps = 1, process.env.NODE_ENV !== "production" && function() {
121
89
  var e = mt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, p = "@@iterator";
122
90
  function g(_) {
@@ -703,67 +671,92 @@ Check the top-level render call using <` + L + ">.");
703
671
  }()), Qn;
704
672
  }
705
673
  (function(e) {
706
- process.env.NODE_ENV === "production" ? e.exports = qd() : e.exports = Qd();
707
- })(Vd);
708
- const ki = dr.Fragment, x = dr.jsx, oe = dr.jsxs, Bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
674
+ process.env.NODE_ENV === "production" ? e.exports = Vd() : e.exports = qd();
675
+ })(Yd);
676
+ const ki = dr.Fragment, x = dr.jsx, oe = dr.jsxs, Qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
709
677
  __proto__: null,
710
678
  Fragment: ki,
711
679
  jsx: x,
712
680
  jsxs: oe
713
- }, Symbol.toStringTag, { value: "Module" })), Wd = ({
714
- children: e
715
- }) => /* @__PURE__ */ oe(ki, {
716
- children: [/* @__PURE__ */ x(Ai, {
717
- styles: {
718
- "*": {
719
- scrollbarColor: "rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05)",
720
- scrollbarWidth: "thin"
721
- },
722
- "*::-webkit-scrollbar": {
723
- height: 6,
724
- width: 6
725
- },
726
- "*::-webkit-scrollbar-button": {
727
- height: 0,
728
- width: 0
729
- },
730
- "*::-webkit-scrollbar-corner": {
731
- background: "transparent"
732
- },
733
- "*::-webkit-scrollbar-thumb": {
734
- backgroundColor: "rgba(255, 255, 255, 0.2)",
735
- border: 0,
736
- borderRadius: 10
737
- },
738
- "*::-webkit-scrollbar-track": {
739
- background: "rgba(255, 255, 255, 0.05)"
740
- },
741
- "html, body, #root": {
742
- height: "100%"
681
+ }, Symbol.toStringTag, { value: "Module" })), _e = {
682
+ background: "#0a1929",
683
+ borderBlue: "#0f353e",
684
+ borderGrey: "rgba(255, 255, 255, 0.1)",
685
+ grey500: "#868c95",
686
+ primary: "#0ed3b4",
687
+ secondary: "#007ef6",
688
+ tertiary: "#0f353e"
689
+ }, Bd = {
690
+ components: {
691
+ MuiButton: {
692
+ styleOverrides: {
693
+ root: ({ ownerState: e }) => ({
694
+ ...e.color === "primary" && e.variant === "contained" && { color: `${_e.tertiary} !important` }
695
+ })
743
696
  }
744
697
  }
745
- }), /* @__PURE__ */ x(Ed, {
746
- theme: Yd,
747
- children: e
748
- })]
749
- }), Gd = new Td({ defaultOptions: { queries: { retry: !1 } } }), Kd = {
698
+ },
699
+ palette: {
700
+ background: {
701
+ default: _e.background,
702
+ paper: _e.background
703
+ },
704
+ mode: "dark",
705
+ primary: {
706
+ main: _e.primary
707
+ },
708
+ secondary: {
709
+ main: _e.secondary
710
+ }
711
+ }
712
+ }, Wd = ({ children: e }) => /* @__PURE__ */ oe(ki, { children: [
713
+ /* @__PURE__ */ x(
714
+ Ai,
715
+ {
716
+ styles: {
717
+ "*": {
718
+ scrollbarColor: "rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05)",
719
+ scrollbarWidth: "thin"
720
+ },
721
+ "*::-webkit-scrollbar": {
722
+ height: 6,
723
+ width: 6
724
+ },
725
+ "*::-webkit-scrollbar-button": {
726
+ height: 0,
727
+ width: 0
728
+ },
729
+ "*::-webkit-scrollbar-corner": {
730
+ background: "transparent"
731
+ },
732
+ "*::-webkit-scrollbar-thumb": {
733
+ backgroundColor: "rgba(255, 255, 255, 0.2)",
734
+ border: 0,
735
+ borderRadius: 10
736
+ },
737
+ "*::-webkit-scrollbar-track": {
738
+ background: "rgba(255, 255, 255, 0.05)"
739
+ },
740
+ "html, body, #root": {
741
+ height: "100%"
742
+ }
743
+ }
744
+ }
745
+ ),
746
+ /* @__PURE__ */ x(Ed, { theme: Bd, children: e })
747
+ ] }), Gd = new Td({ defaultOptions: { queries: { retry: !1 } } }), Kd = {
750
748
  authToken: void 0
751
- }, Hd = xr(Kd), Xd = ({
752
- children: e,
753
- authToken: t
754
- }) => {
755
- const n = wr(() => ({
756
- authToken: t
757
- }), [t]);
758
- return /* @__PURE__ */ x(Hd.Provider, {
759
- value: n,
760
- children: e
761
- });
749
+ }, Hd = xr(Kd), Xd = ({ children: e, authToken: t }) => {
750
+ const n = wr(
751
+ () => ({
752
+ authToken: t
753
+ }),
754
+ [t]
755
+ );
756
+ return /* @__PURE__ */ x(Hd.Provider, { value: n, children: e });
762
757
  }, ql = {
763
758
  dispatchSnackbar: () => null,
764
- snackbar: {
765
- open: !1
766
- }
759
+ snackbar: { open: !1 }
767
760
  }, Ql = xr(ql), li = {
768
761
  closeSnackbar: "closeSnackbar",
769
762
  openSnackbar: "openSnackbar"
@@ -785,45 +778,29 @@ const ki = dr.Fragment, x = dr.jsx, oe = dr.jsxs, Bd = /* @__PURE__ */ Object.fr
785
778
  throw new Error();
786
779
  }
787
780
  }, eh = {
788
- snackbarAlert: {
789
- width: "100%"
790
- }
791
- }, th = ({
792
- children: e
793
- }) => {
794
- const [t, n] = kl(Zd, ql.snackbar), {
795
- message: r,
796
- open: i,
797
- severity: o
798
- } = t, a = 6e3, s = () => n(Bl()), u = wr(() => ({
799
- dispatchSnackbar: n,
800
- snackbar: t
801
- }), [t, n]);
802
- return /* @__PURE__ */ oe(Ql.Provider, {
803
- value: u,
804
- children: [/* @__PURE__ */ x(Dd, {
805
- open: i,
806
- autoHideDuration: a,
807
- onClose: s,
808
- anchorOrigin: {
809
- horizontal: "center",
810
- vertical: "bottom"
811
- },
812
- children: /* @__PURE__ */ x(Od, {
781
+ snackbarAlert: { width: "100%" }
782
+ }, th = ({ children: e }) => {
783
+ const [t, n] = kl(Zd, ql.snackbar), { message: r, open: i, severity: o } = t, a = 6e3, s = () => n(Bl()), u = wr(
784
+ () => ({
785
+ dispatchSnackbar: n,
786
+ snackbar: t
787
+ }),
788
+ [t, n]
789
+ );
790
+ return /* @__PURE__ */ oe(Ql.Provider, { value: u, children: [
791
+ /* @__PURE__ */ x(
792
+ Dd,
793
+ {
794
+ open: i,
795
+ autoHideDuration: a,
813
796
  onClose: s,
814
- severity: o,
815
- sx: eh.snackbarAlert,
816
- variant: "filled",
817
- children: r
818
- })
819
- }), e]
820
- });
821
- }, nh = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM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YuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==", rh = () => /* @__PURE__ */ x("img", {
822
- src: nh,
823
- alt: "Treege",
824
- height: 30,
825
- width: "auto"
826
- });
797
+ anchorOrigin: { horizontal: "center", vertical: "bottom" },
798
+ children: /* @__PURE__ */ x(Od, { onClose: s, severity: o, sx: eh.snackbarAlert, variant: "filled", children: r })
799
+ }
800
+ ),
801
+ e
802
+ ] });
803
+ }, nh = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44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NjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==", rh = () => /* @__PURE__ */ x("img", { src: nh, alt: "Treege", height: 30, width: "auto" });
827
804
  var Wl = {}, Ma = {};
828
805
  function ih(e, t) {
829
806
  return e.parent === t.parent ? 1 : 2;
@@ -6998,58 +6975,33 @@ var Qv = we && we.__importDefault || function(e) {
6998
6975
  Object.defineProperty(Wl, "__esModule", { value: !0 });
6999
6976
  var Bv = Qv(Ma), Wv = Wl.default = Bv.default;
7000
6977
  const Gv = () => {
7001
- const [e, t] = Ce({
7002
- x: 0,
7003
- y: 0
7004
- }), [n, r] = Ce({
7005
- height: 0,
7006
- width: 0
7007
- }), i = Il((o) => {
6978
+ const [e, t] = Ce({ x: 0, y: 0 }), [n, r] = Ce({ height: 0, width: 0 }), i = Il((o) => {
7008
6979
  if (!o)
7009
6980
  return null;
7010
- const {
7011
- width: a,
7012
- height: s
7013
- } = o.getBoundingClientRect();
7014
- return r({
7015
- height: s,
7016
- width: a
7017
- }), t({
7018
- x: a / 2,
7019
- y: s / 2
7020
- }), o;
6981
+ const { width: a, height: s } = o.getBoundingClientRect();
6982
+ return r({ height: s, width: a }), t({ x: a / 2, y: s / 2 }), o;
7021
6983
  }, []);
7022
- return {
7023
- dimensions: n,
7024
- refContainer: i,
7025
- translate: e
7026
- };
7027
- }, Kv = ({
7028
- color: e,
7029
- height: t = 20,
7030
- width: n = 20
7031
- }) => /* @__PURE__ */ oe("svg", {
7032
- focusable: "false",
7033
- x: "0px",
7034
- y: "0px",
7035
- viewBox: "0 0 24 24",
7036
- color: e,
7037
- height: t,
7038
- width: n,
7039
- children: [/* @__PURE__ */ x("path", {
7040
- fill: "currentColor",
7041
- d: "M19.1,18H14v2c0,1.1-0.9,2-2,2s-2-0.9-2-2v-2H4.9c-0.8,0-1.3-0.9-0.8-1.5L7,12l0,0c-0.8,0-1.3-0.9-0.8-1.6l5-7.2 c0.4-0.6,1.2-0.6,1.6,0l0.6,0.9c-0.8,0.8-1.2,2-1.2,3.2c0,2.6,2.1,4.7,4.7,4.7H17l3,4.5C20.4,17.1,19.9,18,19.1,18z"
7042
- }), /* @__PURE__ */ x("path", {
7043
- fill: "currentColor",
7044
- d: "M20.6,7.3c0,0.4-0.4,0.8-0.8,0.8h-2.1v2.1c0,0.4-0.4,0.8-0.8,0.8s-0.8-0.4-0.8-0.8V8.1H14c-0.5,0-0.8-0.4-0.8-0.8 c0-0.5,0.4-0.8,0.8-0.8h2.1V4.4c0-0.5,0.4-0.8,0.8-0.8s0.8,0.4,0.8,0.8v2.1h2.1C20.3,6.5,20.6,6.8,20.6,7.3z"
7045
- })]
7046
- }), Ft = {
6984
+ return { dimensions: n, refContainer: i, translate: e };
6985
+ }, Kv = ({ color: e, height: t = 20, width: n = 20 }) => /* @__PURE__ */ oe("svg", { focusable: "false", x: "0px", y: "0px", viewBox: "0 0 24 24", color: e, height: t, width: n, children: [
6986
+ /* @__PURE__ */ x(
6987
+ "path",
6988
+ {
6989
+ fill: "currentColor",
6990
+ d: `M19.1,18H14v2c0,1.1-0.9,2-2,2s-2-0.9-2-2v-2H4.9c-0.8,0-1.3-0.9-0.8-1.5L7,12l0,0c-0.8,0-1.3-0.9-0.8-1.6l5-7.2
6991
+ c0.4-0.6,1.2-0.6,1.6,0l0.6,0.9c-0.8,0.8-1.2,2-1.2,3.2c0,2.6,2.1,4.7,4.7,4.7H17l3,4.5C20.4,17.1,19.9,18,19.1,18z`
6992
+ }
6993
+ ),
6994
+ /* @__PURE__ */ x(
6995
+ "path",
6996
+ {
6997
+ fill: "currentColor",
6998
+ d: `M20.6,7.3c0,0.4-0.4,0.8-0.8,0.8h-2.1v2.1c0,0.4-0.4,0.8-0.8,0.8s-0.8-0.4-0.8-0.8V8.1H14c-0.5,0-0.8-0.4-0.8-0.8
6999
+ c0-0.5,0.4-0.8,0.8-0.8h2.1V4.4c0-0.5,0.4-0.8,0.8-0.8s0.8,0.4,0.8,0.8v2.1h2.1C20.3,6.5,20.6,6.8,20.6,7.3z`
7000
+ }
7001
+ )
7002
+ ] }), Ft = {
7047
7003
  currentHierarchyPointNode: null,
7048
- currentTree: {
7049
- errorName: "",
7050
- id: "",
7051
- name: ""
7052
- },
7004
+ currentTree: { errorName: "", id: "", name: "" },
7053
7005
  dispatchTree: () => null,
7054
7006
  endPoint: void 0,
7055
7007
  modalOpen: null,
@@ -7063,31 +7015,11 @@ const Gv = () => {
7063
7015
  treePath: [],
7064
7016
  version: void 0
7065
7017
  }, _f = xr(Ft), ft = () => Tr(_f), Hv = () => {
7066
- const {
7067
- setModalOpen: e
7068
- } = ft();
7069
- return {
7070
- handleClick: () => e("add")
7071
- };
7018
+ const { setModalOpen: e } = ft();
7019
+ return { handleClick: () => e("add") };
7072
7020
  }, Xv = () => {
7073
- const {
7074
- t: e
7075
- } = ct("button"), {
7076
- handleClick: t
7077
- } = Hv();
7078
- return /* @__PURE__ */ x(He, {
7079
- alignItems: "center",
7080
- justifyContent: "center",
7081
- display: "flex",
7082
- height: "100%",
7083
- children: /* @__PURE__ */ x(st, {
7084
- onClick: t,
7085
- size: "medium",
7086
- variant: "contained",
7087
- startIcon: /* @__PURE__ */ x(Kv, {}),
7088
- children: e("createTree")
7089
- })
7090
- });
7021
+ const { t: e } = ct("button"), { handleClick: t } = Hv();
7022
+ return /* @__PURE__ */ x(He, { alignItems: "center", justifyContent: "center", display: "flex", height: "100%", children: /* @__PURE__ */ x(st, { onClick: t, size: "medium", variant: "contained", startIcon: /* @__PURE__ */ x(Kv, {}), children: e("createTree") }) });
7091
7023
  }, qo = {
7092
7024
  container: {
7093
7025
  height: "100%",
@@ -7110,63 +7042,52 @@ const Gv = () => {
7110
7042
  y: 300
7111
7043
  }
7112
7044
  }) => {
7113
- const {
7114
- dimensions: r,
7115
- refContainer: i,
7116
- translate: o
7117
- } = Gv(), {
7118
- currentTree: a
7119
- } = ft();
7120
- return !e && !a.id ? /* @__PURE__ */ x(Xv, {}) : a.id && !e ? /* @__PURE__ */ x(He, {
7121
- sx: qo.progressContainer,
7122
- children: /* @__PURE__ */ x(Pl, {})
7123
- }) : /* @__PURE__ */ oe("div", {
7124
- style: qo.container,
7125
- ref: i,
7126
- children: [/* @__PURE__ */ x(Ai, {
7127
- styles: {
7128
- [`.${Vu}`]: qo.treeLink
7045
+ const { dimensions: r, refContainer: i, translate: o } = Gv(), { currentTree: a } = ft();
7046
+ return !e && !a.id ? /* @__PURE__ */ x(Xv, {}) : a.id && !e ? /* @__PURE__ */ x(He, { sx: qo.progressContainer, children: /* @__PURE__ */ x(Pl, {}) }) : /* @__PURE__ */ oe("div", { style: qo.container, ref: i, children: [
7047
+ /* @__PURE__ */ x(Ai, { styles: { [`.${Vu}`]: qo.treeLink } }),
7048
+ /* @__PURE__ */ x(
7049
+ Wv,
7050
+ {
7051
+ data: e,
7052
+ orientation: "vertical",
7053
+ translate: o,
7054
+ dimensions: r,
7055
+ renderCustomNodeElement: t,
7056
+ pathFunc: "diagonal",
7057
+ pathClassFunc: () => Vu,
7058
+ nodeSize: n
7129
7059
  }
7130
- }), /* @__PURE__ */ x(Wv, {
7131
- data: e,
7132
- orientation: "vertical",
7133
- translate: o,
7134
- dimensions: r,
7135
- renderCustomNodeElement: t,
7136
- pathFunc: "diagonal",
7137
- pathClassFunc: () => Vu,
7138
- nodeSize: n
7139
- })]
7140
- });
7141
- }, qu = zl(Jv), Zv = () => ({
7142
- formatJSON: (t) => JSON.stringify(t ?? {}, null, 2)
7143
- }), Qu = {
7060
+ )
7061
+ ] });
7062
+ }, qu = zl(Jv), Zv = () => ({ formatJSON: (t) => JSON.stringify(t ?? {}, null, 2) }), Qu = {
7144
7063
  fullHeight: {
7145
7064
  height: "100%"
7146
7065
  }
7147
- }, ey = ({
7148
- value: e
7149
- }) => {
7150
- const {
7151
- formatJSON: t
7152
- } = Zv();
7153
- return /* @__PURE__ */ oe("div", {
7154
- style: Qu.fullHeight,
7155
- children: [/* @__PURE__ */ x(Ai, {
7156
- styles: {
7157
- ".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter": {
7158
- backgroundColor: "transparent"
7066
+ }, ey = ({ value: e }) => {
7067
+ const { formatJSON: t } = Zv();
7068
+ return /* @__PURE__ */ oe("div", { style: Qu.fullHeight, children: [
7069
+ /* @__PURE__ */ x(
7070
+ Ai,
7071
+ {
7072
+ styles: {
7073
+ ".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter": {
7074
+ backgroundColor: "transparent"
7075
+ }
7159
7076
  }
7160
7077
  }
7161
- }), /* @__PURE__ */ x(Pd, {
7162
- value: t(e),
7163
- extensions: [$d()],
7164
- editable: !1,
7165
- theme: Ld,
7166
- height: "100%",
7167
- style: Qu.fullHeight
7168
- })]
7169
- });
7078
+ ),
7079
+ /* @__PURE__ */ x(
7080
+ Pd,
7081
+ {
7082
+ value: t(e),
7083
+ extensions: [$d()],
7084
+ editable: !1,
7085
+ theme: Ld,
7086
+ height: "100%",
7087
+ style: Qu.fullHeight
7088
+ }
7089
+ )
7090
+ ] });
7170
7091
  };
7171
7092
  var ts = {}, Qo = {};
7172
7093
  function nn() {
@@ -10691,7 +10612,7 @@ function Le() {
10691
10612
  var t = K2;
10692
10613
  }(Qo)), Qo;
10693
10614
  }
10694
- const Pe = /* @__PURE__ */ Wt(Bd);
10615
+ const Pe = /* @__PURE__ */ Wt(Qd);
10695
10616
  var H2 = Oe;
10696
10617
  Object.defineProperty(ts, "__esModule", {
10697
10618
  value: !0
@@ -10717,184 +10638,75 @@ var Jf = _s.default = void 0, oM = iM(Le()), aM = Pe, sM = (0, oM.default)(/* @_
10717
10638
  }), "SimCardDownloadRounded");
10718
10639
  Jf = _s.default = sM;
10719
10640
  const bs = () => {
10720
- const {
10721
- dispatchSnackbar: e
10722
- } = Tr(Ql);
10723
- return {
10724
- close: () => e(Bl()),
10725
- open: (r, i = "success") => e(Jd(r, i))
10726
- };
10641
+ const { dispatchSnackbar: e } = Tr(Ql);
10642
+ return { close: () => e(Bl()), open: (r, i = "success") => e(Jd(r, i)) };
10727
10643
  }, Zf = () => {
10728
- const {
10729
- version: e
10730
- } = ft();
10731
- return {
10732
- patchWorkflow: (r) => On.patch("/v1/workflow", {
10733
- ...r,
10734
- version: e
10735
- }).then((i) => i.data),
10736
- postWorkflow: (r) => On.post("/v1/workflow", {
10737
- ...r,
10738
- version: e
10739
- }).then((i) => i.data)
10740
- };
10644
+ const { version: e } = ft();
10645
+ return { patchWorkflow: (r) => On.patch("/v1/workflow", { ...r, version: e }).then((i) => i.data), postWorkflow: (r) => On.post("/v1/workflow", { ...r, version: e }).then((i) => i.data) };
10741
10646
  }, uM = (e) => {
10742
- const {
10743
- postWorkflow: t
10744
- } = Zf();
10647
+ const { postWorkflow: t } = Zf();
10745
10648
  return $l(t, e);
10746
10649
  }, lM = (e) => {
10747
- const {
10748
- patchWorkflow: t
10749
- } = Zf();
10650
+ const { patchWorkflow: t } = Zf();
10750
10651
  return $l(t, e);
10751
10652
  }, cM = () => {
10752
- const {
10753
- t: e
10754
- } = ct(["snackMessage"]), {
10755
- open: t
10756
- } = bs(), {
10757
- setCurrentTree: n,
10758
- currentTree: r,
10759
- tree: i
10760
- } = ft(), {
10761
- mutate: o
10762
- } = uM({
10653
+ const { t: e } = ct(["snackMessage"]), { open: t } = bs(), { setCurrentTree: n, currentTree: r, tree: i } = ft(), { mutate: o } = uM({
10763
10654
  onError: () => {
10764
- t(e("error.saveTree", {
10765
- ns: "snackMessage"
10766
- }), "error");
10655
+ t(e("error.saveTree", { ns: "snackMessage" }), "error");
10767
10656
  },
10768
10657
  onSuccess: (c) => {
10769
- t(e("success.saveTree", {
10770
- ns: "snackMessage"
10771
- })), n((d) => ({
10772
- ...d,
10773
- id: c.workflow_id
10774
- }));
10658
+ t(e("success.saveTree", { ns: "snackMessage" })), n((d) => ({ ...d, id: c.workflow_id }));
10775
10659
  }
10776
- }), {
10777
- mutate: a
10778
- } = lM({
10660
+ }), { mutate: a } = lM({
10779
10661
  onError: () => {
10780
- t(e("error.updateTree", {
10781
- ns: "snackMessage"
10782
- }), "error");
10662
+ t(e("error.updateTree", { ns: "snackMessage" }), "error");
10783
10663
  },
10784
10664
  onSuccess: () => {
10785
- t(e("success.updateTree", {
10786
- ns: "snackMessage"
10787
- }));
10665
+ t(e("success.updateTree", { ns: "snackMessage" }));
10788
10666
  }
10789
10667
  }), s = (c) => JSON.stringify(c, null, 2);
10790
- return {
10791
- formatJSON: s,
10792
- getDownloadLink: (c) => `data:text/json;charset=utf-8,${encodeURIComponent(s(c))}`,
10793
- handleSubmit: () => {
10794
- const {
10795
- name: c,
10796
- id: d
10797
- } = r;
10798
- if (!c) {
10799
- n((f) => ({
10800
- ...f,
10801
- errorName: "Champs Requis"
10802
- }));
10668
+ return { formatJSON: s, getDownloadLink: (c) => `data:text/json;charset=utf-8,${encodeURIComponent(s(c))}`, handleSubmit: () => {
10669
+ const { name: c, id: d } = r;
10670
+ if (!c) {
10671
+ n((f) => ({ ...f, errorName: "Champs Requis" }));
10672
+ return;
10673
+ }
10674
+ if (i) {
10675
+ if (d) {
10676
+ a({ id: d, label: c, workflow: i });
10803
10677
  return;
10804
10678
  }
10805
- if (i) {
10806
- if (d) {
10807
- a({
10808
- id: d,
10809
- label: c,
10810
- workflow: i
10811
- });
10812
- return;
10813
- }
10814
- o({
10815
- label: c,
10816
- workflow: i
10817
- });
10818
- }
10819
- }
10820
- };
10821
- }, fM = ({
10822
- downloadedFileName: e = "export",
10823
- value: t
10824
- }) => {
10825
- const {
10826
- t: n
10827
- } = ct("button"), {
10828
- getDownloadLink: r,
10829
- handleSubmit: i
10830
- } = cM(), {
10831
- currentTree: o,
10832
- endPoint: a
10833
- } = ft(), {
10834
- id: s
10835
- } = o;
10836
- return /* @__PURE__ */ oe(Ie, {
10837
- direction: "row",
10838
- spacing: 2,
10839
- justifyContent: "center",
10840
- children: [/* @__PURE__ */ x(ot, {
10841
- title: n("downloadJSONFile"),
10842
- enterDelay: 1500,
10843
- disableHoverListener: !t,
10844
- arrow: !0,
10845
- children: /* @__PURE__ */ x(He, {
10846
- children: /* @__PURE__ */ x(st, {
10847
- variant: "outlined",
10848
- href: r(t),
10849
- download: `${e}.json`,
10850
- disabled: !t,
10851
- children: /* @__PURE__ */ x(Jf, {})
10852
- })
10853
- })
10854
- }), /* @__PURE__ */ x(ot, {
10855
- title: n(s ? "update" : "save"),
10856
- enterDelay: 1500,
10857
- disableHoverListener: !t,
10858
- arrow: !0,
10859
- children: /* @__PURE__ */ x(He, {
10860
- children: /* @__PURE__ */ x(st, {
10861
- variant: "outlined",
10862
- onClick: i,
10863
- disabled: !t || !a,
10864
- children: s ? /* @__PURE__ */ x(Hf, {}) : /* @__PURE__ */ x(Xf, {})
10865
- })
10866
- })
10867
- })]
10868
- });
10679
+ o({ label: c, workflow: i });
10680
+ }
10681
+ } };
10682
+ }, fM = ({ downloadedFileName: e = "export", value: t }) => {
10683
+ const { t: n } = ct("button"), { getDownloadLink: r, handleSubmit: i } = cM(), { currentTree: o, endPoint: a } = ft(), { id: s } = o;
10684
+ return /* @__PURE__ */ oe(Ie, { direction: "row", spacing: 2, justifyContent: "center", children: [
10685
+ /* @__PURE__ */ x(ot, { title: n("downloadJSONFile"), enterDelay: 1500, disableHoverListener: !t, arrow: !0, children: /* @__PURE__ */ x(He, { children: /* @__PURE__ */ x(st, { variant: "outlined", href: r(t), download: `${e}.json`, disabled: !t, children: /* @__PURE__ */ x(Jf, {}) }) }) }),
10686
+ /* @__PURE__ */ x(ot, { title: n(s ? "update" : "save"), enterDelay: 1500, disableHoverListener: !t, arrow: !0, children: /* @__PURE__ */ x(He, { children: /* @__PURE__ */ x(st, { variant: "outlined", onClick: i, disabled: !t || !a, children: s ? /* @__PURE__ */ x(Hf, {}) : /* @__PURE__ */ x(Xf, {}) }) }) })
10687
+ ] });
10869
10688
  }, dM = {
10870
10689
  box: {
10871
10690
  backgroundColor: _e.background,
10872
10691
  border: `solid 1px ${_e.borderBlue}`
10873
10692
  }
10874
- }, Tl = ({
10875
- children: e,
10876
- description: t,
10877
- open: n,
10878
- onClose: r,
10879
- title: i
10880
- }) => /* @__PURE__ */ x(Fl, {
10881
- open: n,
10882
- onClose: r,
10883
- "aria-labelledby": "modal-modal-title",
10884
- "aria-describedby": "modal-modal-description",
10885
- scroll: "body",
10886
- maxWidth: "sm",
10887
- fullWidth: !0,
10888
- children: /* @__PURE__ */ oe(He, {
10889
- sx: dM.box,
10890
- p: 4,
10891
- children: [/* @__PURE__ */ x("h3", {
10892
- children: i
10893
- }), /* @__PURE__ */ x("p", {
10894
- children: t
10895
- }), e]
10896
- })
10897
- });
10693
+ }, Tl = ({ children: e, description: t, open: n, onClose: r, title: i }) => /* @__PURE__ */ x(
10694
+ Fl,
10695
+ {
10696
+ open: n,
10697
+ onClose: r,
10698
+ "aria-labelledby": "modal-modal-title",
10699
+ "aria-describedby": "modal-modal-description",
10700
+ scroll: "body",
10701
+ maxWidth: "sm",
10702
+ fullWidth: !0,
10703
+ children: /* @__PURE__ */ oe(He, { sx: dM.box, p: 4, children: [
10704
+ /* @__PURE__ */ x("h3", { children: i }),
10705
+ /* @__PURE__ */ x("p", { children: t }),
10706
+ e
10707
+ ] })
10708
+ }
10709
+ );
10898
10710
  var Ms = {}, hM = Oe;
10899
10711
  Object.defineProperty(Ms, "__esModule", {
10900
10712
  value: !0
@@ -10929,161 +10741,76 @@ const Jr = {
10929
10741
  paddingY: 1,
10930
10742
  width: "100%"
10931
10743
  }
10932
- }, vM = ({
10933
- children: e,
10934
- appear: t,
10935
- in: n,
10936
- onEnter: r,
10937
- onExited: i,
10938
- onFocus: o,
10939
- role: a,
10940
- tabIndex: s,
10941
- timeout: u
10942
- }, l) => /* @__PURE__ */ x(Sd, {
10943
- direction: "up",
10944
- ref: l,
10945
- appear: t,
10946
- in: n,
10947
- onEnter: r,
10948
- onExited: i,
10949
- onFocus: o,
10950
- role: a,
10951
- tabIndex: s,
10952
- timeout: u,
10953
- children: e
10954
- }), yM = Rl(vM), _M = ({
10955
- children: e,
10956
- open: t,
10957
- onClose: n,
10958
- title: r
10959
- }) => /* @__PURE__ */ x(Fl, {
10960
- PaperProps: {
10961
- sx: {
10962
- backgroundColor: _e.background,
10963
- backgroundImage: "none"
10964
- }
10965
- },
10966
- open: t,
10967
- "aria-labelledby": "modal-modal-title",
10968
- "aria-describedby": "modal-modal-description",
10969
- fullScreen: !0,
10970
- TransitionComponent: yM,
10971
- children: /* @__PURE__ */ oe(He, {
10972
- sx: Jr.container,
10973
- children: [/* @__PURE__ */ x(Cd, {
10974
- position: "sticky",
10975
- elevation: 0,
10976
- children: /* @__PURE__ */ x(Ad, {
10977
- sx: Jr.toolbar,
10978
- children: /* @__PURE__ */ oe(Ie, {
10979
- direction: "row",
10980
- alignItems: "center",
10981
- justifyContent: "space-between",
10982
- sx: Jr.toolbarBox,
10983
- children: [/* @__PURE__ */ x(ui, {
10984
- variant: "h5",
10985
- children: /* @__PURE__ */ x("strong", {
10986
- children: r
10987
- })
10988
- }), /* @__PURE__ */ x(kd, {
10989
- edge: "end",
10990
- color: "inherit",
10991
- onClick: n,
10992
- "aria-label": "close",
10993
- children: /* @__PURE__ */ x(ed, {})
10994
- })]
10995
- })
10996
- })
10997
- }), /* @__PURE__ */ x(He, {
10998
- sx: Jr.main,
10999
- children: e
11000
- })]
11001
- })
11002
- }), bM = {
10744
+ }, vM = ({ children: e, appear: t, in: n, onEnter: r, onExited: i, onFocus: o, role: a, tabIndex: s, timeout: u }, l) => /* @__PURE__ */ x(
10745
+ Sd,
10746
+ {
10747
+ direction: "up",
10748
+ ref: l,
10749
+ appear: t,
10750
+ in: n,
10751
+ onEnter: r,
10752
+ onExited: i,
10753
+ onFocus: o,
10754
+ role: a,
10755
+ tabIndex: s,
10756
+ timeout: u,
10757
+ children: e
10758
+ }
10759
+ ), yM = Rl(vM), _M = ({ children: e, open: t, onClose: n, title: r }) => /* @__PURE__ */ x(
10760
+ Fl,
10761
+ {
10762
+ PaperProps: { sx: { backgroundColor: _e.background, backgroundImage: "none" } },
10763
+ open: t,
10764
+ "aria-labelledby": "modal-modal-title",
10765
+ "aria-describedby": "modal-modal-description",
10766
+ fullScreen: !0,
10767
+ TransitionComponent: yM,
10768
+ children: /* @__PURE__ */ oe(He, { sx: Jr.container, children: [
10769
+ /* @__PURE__ */ x(Cd, { position: "sticky", elevation: 0, children: /* @__PURE__ */ x(Ad, { sx: Jr.toolbar, children: /* @__PURE__ */ oe(Ie, { direction: "row", alignItems: "center", justifyContent: "space-between", sx: Jr.toolbarBox, children: [
10770
+ /* @__PURE__ */ x(ui, { variant: "h5", children: /* @__PURE__ */ x("strong", { children: r }) }),
10771
+ /* @__PURE__ */ x(kd, { edge: "end", color: "inherit", onClick: n, "aria-label": "close", children: /* @__PURE__ */ x(ed, {}) })
10772
+ ] }) }) }),
10773
+ /* @__PURE__ */ x(He, { sx: Jr.main, children: e })
10774
+ ] })
10775
+ }
10776
+ ), bM = {
11003
10777
  box: {
11004
10778
  border: `solid 1px ${_e.borderBlue}`,
11005
10779
  flexGrow: 0
11006
10780
  }
11007
- }, MM = ({
11008
- children: e
11009
- }) => /* @__PURE__ */ x(He, {
11010
- p: 2,
11011
- role: "group",
11012
- sx: bM.box,
11013
- children: e
11014
- }), xM = {
10781
+ }, MM = ({ children: e }) => /* @__PURE__ */ x(He, { p: 2, role: "group", sx: bM.box, children: e }), xM = {
11015
10782
  box: {
11016
10783
  border: `solid 1px ${_e.borderBlue}`,
11017
10784
  flexGrow: 0
11018
10785
  }
11019
- }, wM = ({
11020
- children: e
11021
- }) => /* @__PURE__ */ x(He, {
11022
- sx: xM.box,
11023
- padding: 2,
11024
- component: "header",
11025
- children: e
11026
- }), TM = {
10786
+ }, wM = ({ children: e }) => /* @__PURE__ */ x(He, { sx: xM.box, padding: 2, component: "header", children: e }), TM = {
11027
10787
  box: {
11028
10788
  border: `solid 1px ${_e.borderBlue}`,
11029
10789
  flexGrow: 1
11030
10790
  }
11031
- }, NM = ({
11032
- children: e
11033
- }) => /* @__PURE__ */ x(He, {
11034
- sx: TM.box,
11035
- component: "main",
11036
- role: "tree",
11037
- children: e
11038
- }), Nl = {
10791
+ }, NM = ({ children: e }) => /* @__PURE__ */ x(He, { sx: TM.box, component: "main", role: "tree", children: e }), Nl = {
11039
10792
  stack: {
11040
10793
  width: "100%"
11041
10794
  }
11042
- }, EM = ({
11043
- children: e
11044
- }) => {
10795
+ }, EM = ({ children: e }) => {
11045
10796
  const t = Md.toArray(e);
11046
- return /* @__PURE__ */ oe(fo, {
11047
- container: !0,
11048
- padding: 1,
11049
- flexWrap: "nowrap",
11050
- height: "100%",
11051
- role: "treegrid",
11052
- children: [/* @__PURE__ */ x(fo, {
11053
- item: !0,
11054
- xs: 9,
11055
- padding: 1,
11056
- display: "flex",
11057
- children: /* @__PURE__ */ oe(Ie, {
11058
- sx: Nl.stack,
11059
- spacing: 2,
11060
- children: [t[0], t[1]]
11061
- })
11062
- }), /* @__PURE__ */ x(fo, {
11063
- item: !0,
11064
- xs: 3,
11065
- padding: 1,
11066
- display: "flex",
11067
- children: /* @__PURE__ */ oe(Ie, {
11068
- sx: Nl.stack,
11069
- spacing: 2,
11070
- children: [t[2], t[3]]
11071
- })
11072
- })]
11073
- });
10797
+ return /* @__PURE__ */ oe(fo, { container: !0, padding: 1, flexWrap: "nowrap", height: "100%", role: "treegrid", children: [
10798
+ /* @__PURE__ */ x(fo, { item: !0, xs: 9, padding: 1, display: "flex", children: /* @__PURE__ */ oe(Ie, { sx: Nl.stack, spacing: 2, children: [
10799
+ t[0],
10800
+ t[1]
10801
+ ] }) }),
10802
+ /* @__PURE__ */ x(fo, { item: !0, xs: 3, padding: 1, display: "flex", children: /* @__PURE__ */ oe(Ie, { sx: Nl.stack, spacing: 2, children: [
10803
+ t[2],
10804
+ t[3]
10805
+ ] }) })
10806
+ ] });
11074
10807
  }, DM = {
11075
10808
  box: {
11076
10809
  border: `solid 1px ${_e.borderBlue}`,
11077
10810
  flexGrow: 1,
11078
10811
  overflow: "auto"
11079
10812
  }
11080
- }, OM = ({
11081
- children: e
11082
- }) => /* @__PURE__ */ x(He, {
11083
- sx: DM.box,
11084
- component: "aside",
11085
- children: e
11086
- }), td = (e, t) => {
10813
+ }, OM = ({ children: e }) => /* @__PURE__ */ x(He, { sx: DM.box, component: "aside", children: e }), td = (e, t) => {
11087
10814
  var o;
11088
10815
  if (!e)
11089
10816
  return null;
@@ -11215,12 +10942,7 @@ const Jr = {
11215
10942
  throw new Error();
11216
10943
  }
11217
10944
  }, UM = () => {
11218
- const {
11219
- dispatchTree: e,
11220
- setModalOpen: t,
11221
- currentHierarchyPointNode: n,
11222
- treePath: r
11223
- } = ft();
10945
+ const { dispatchTree: e, setModalOpen: t, currentHierarchyPointNode: n, treePath: r } = ft();
11224
10946
  return {
11225
10947
  handleSubmit: (o) => {
11226
10948
  var u, l;
@@ -11229,32 +10951,12 @@ const Jr = {
11229
10951
  e(LM(s, a)), t(null);
11230
10952
  }
11231
10953
  };
11232
- }, YM = ({
11233
- onClose: e
11234
- }) => {
11235
- const {
11236
- t
11237
- } = ct(), {
11238
- handleSubmit: n
11239
- } = UM();
11240
- return /* @__PURE__ */ x("form", {
11241
- onSubmit: n,
11242
- children: /* @__PURE__ */ oe(Ie, {
11243
- spacing: 2,
11244
- direction: "row",
11245
- justifyContent: "flex-end",
11246
- children: [/* @__PURE__ */ x(st, {
11247
- variant: "text",
11248
- onClick: e,
11249
- children: t("cancel")
11250
- }), /* @__PURE__ */ x(st, {
11251
- variant: "contained",
11252
- color: "error",
11253
- type: "submit",
11254
- children: t("remove")
11255
- })]
11256
- })
11257
- });
10954
+ }, YM = ({ onClose: e }) => {
10955
+ const { t } = ct(), { handleSubmit: n } = UM();
10956
+ return /* @__PURE__ */ x("form", { onSubmit: n, children: /* @__PURE__ */ oe(Ie, { spacing: 2, direction: "row", justifyContent: "flex-end", children: [
10957
+ /* @__PURE__ */ x(st, { variant: "text", onClick: e, children: t("cancel") }),
10958
+ /* @__PURE__ */ x(st, { variant: "contained", color: "error", type: "submit", children: t("remove") })
10959
+ ] }) });
11258
10960
  };
11259
10961
  var ws = {}, VM = Oe;
11260
10962
  Object.defineProperty(ws, "__esModule", {
@@ -11386,49 +11088,14 @@ const sr = [
11386
11088
  type: "tree"
11387
11089
  }
11388
11090
  ], XM = () => {
11389
- const {
11390
- endPoint: e
11391
- } = ft();
11392
- return {
11393
- fields: Il(() => sr.filter((n) => !(n.type === "tree" && !e)), [e])()
11394
- };
11395
- }, JM = ({
11396
- onChange: e,
11397
- value: t
11398
- }) => {
11399
- const {
11400
- t: n
11401
- } = ct(), {
11402
- fields: r
11403
- } = XM();
11404
- return /* @__PURE__ */ oe(Ul, {
11405
- sx: {
11406
- flex: 1
11407
- },
11408
- required: !0,
11409
- children: [/* @__PURE__ */ x(Yl, {
11410
- children: n("type")
11411
- }), /* @__PURE__ */ x(Vl, {
11412
- value: t,
11413
- label: n("type"),
11414
- onChange: e,
11415
- MenuProps: {
11416
- PaperProps: {
11417
- sx: {
11418
- maxHeight: 300
11419
- }
11420
- }
11421
- },
11422
- children: r.map(({
11423
- type: i
11424
- }) => /* @__PURE__ */ x(er, {
11425
- value: i,
11426
- children: n(`type.${i}`, {
11427
- ns: "form"
11428
- })
11429
- }, i))
11430
- })]
11431
- });
11091
+ const { endPoint: e } = ft();
11092
+ return { fields: Il(() => sr.filter((n) => !(n.type === "tree" && !e)), [e])() };
11093
+ }, JM = ({ onChange: e, value: t }) => {
11094
+ const { t: n } = ct(), { fields: r } = XM();
11095
+ return /* @__PURE__ */ oe(Ul, { sx: { flex: 1 }, required: !0, children: [
11096
+ /* @__PURE__ */ x(Yl, { children: n("type") }),
11097
+ /* @__PURE__ */ x(Vl, { value: t, label: n("type"), onChange: e, MenuProps: { PaperProps: { sx: { maxHeight: 300 } } }, children: r.map(({ type: i }) => /* @__PURE__ */ x(er, { value: i, children: n(`type.${i}`, { ns: "form" }) }, i)) })
11098
+ ] });
11432
11099
  };
11433
11100
  var Ns = {}, ZM = Oe;
11434
11101
  Object.defineProperty(Ns, "__esModule", {
@@ -11438,49 +11105,25 @@ var sd = Ns.default = void 0, ex = ZM(Le()), tx = Pe, nx = (0, ex.default)(/* @_
11438
11105
  d: "M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"
11439
11106
  }), "AddRounded");
11440
11107
  sd = Ns.default = nx;
11441
- const ud = () => ({
11442
- getAllWorkflow: () => On.get("/v1/workflows").then((n) => n.data),
11443
- getWorkflow: (n) => On.get(`/v1/workflow?id=${n}`).then((r) => r.data)
11444
- }), Es = (e, t) => {
11445
- const {
11446
- getWorkflow: n
11447
- } = ud();
11108
+ const ud = () => ({ getAllWorkflow: () => On.get("/v1/workflows").then((n) => n.data), getWorkflow: (n) => On.get(`/v1/workflow?id=${n}`).then((r) => r.data) }), Es = (e, t) => {
11109
+ const { getWorkflow: n } = ud();
11448
11110
  return Ll(["/v1/workflow", e], () => e && n(e), {
11449
11111
  refetchOnWindowFocus: !1,
11450
11112
  ...t
11451
11113
  });
11452
11114
  }, rx = (e) => {
11453
- const {
11454
- getAllWorkflow: t
11455
- } = ud();
11115
+ const { getAllWorkflow: t } = ud();
11456
11116
  return Ll("/v1/workflows", t, {
11457
11117
  refetchOnWindowFocus: !1,
11458
11118
  ...e
11459
11119
  });
11460
11120
  }, ix = (e) => {
11461
- const {
11462
- t
11463
- } = ct("snackMessage"), {
11464
- open: n
11465
- } = bs(), {
11466
- currentTree: r,
11467
- setCurrentTree: i,
11468
- dispatchTree: o
11469
- } = ft(), [a, s] = Ce("");
11121
+ const { t } = ct("snackMessage"), { open: n } = bs(), { currentTree: r, setCurrentTree: i, dispatchTree: o } = ft(), [a, s] = Ce("");
11470
11122
  Es(a, {
11471
11123
  enabled: !!a && !e && a !== r.id,
11472
- onError: () => n(t("error.fetchTree", {
11473
- ns: "snackMessage"
11474
- }), "error"),
11475
- onSuccess: ({
11476
- id: v,
11477
- label: p,
11478
- workflow: g
11479
- }) => {
11480
- e || (i({
11481
- id: v,
11482
- name: p
11483
- }), o(id(g)));
11124
+ onError: () => n(t("error.fetchTree", { ns: "snackMessage" }), "error"),
11125
+ onSuccess: ({ id: v, label: p, workflow: g }) => {
11126
+ e || (i({ id: v, name: p }), o(id(g)));
11484
11127
  }
11485
11128
  });
11486
11129
  const {
@@ -11496,16 +11139,10 @@ const ud = () => ({
11496
11139
  onSuccess: () => {
11497
11140
  r.id && !a && s(r.id);
11498
11141
  }
11499
- }), d = async ({
11500
- target: v
11501
- }) => {
11502
- const {
11503
- value: p
11504
- } = v;
11142
+ }), d = async ({ target: v }) => {
11143
+ const { value: p } = v;
11505
11144
  if (p === "add-new-tree") {
11506
- s(""), i({
11507
- name: ""
11508
- }), o(PM());
11145
+ s(""), i({ name: "" }), o(PM());
11509
11146
  return;
11510
11147
  }
11511
11148
  s(p);
@@ -11525,76 +11162,35 @@ const ud = () => ({
11525
11162
  flex: 1
11526
11163
  },
11527
11164
  select: {
11528
- ".MuiOutlinedInput-notchedOutline": {
11529
- border: 0,
11530
- paddingLeft: 5
11531
- },
11532
- ".MuiSelect-select": {
11533
- opacity: 0,
11534
- width: 0
11535
- },
11165
+ ".MuiOutlinedInput-notchedOutline": { border: 0, paddingLeft: 5 },
11166
+ ".MuiSelect-select": { opacity: 0, width: 0 },
11536
11167
  boxShadow: "none"
11537
11168
  }
11538
- }, ld = ({
11539
- arrowOnly: e,
11540
- required: t,
11541
- size: n,
11542
- showBtnAddNewTree: r,
11543
- onChange: i,
11544
- value: o
11545
- }) => {
11546
- const a = wr(() => !!i, [i]), {
11547
- t: s
11548
- } = ct("form"), {
11549
- handleChangeTree: u,
11550
- handleOnOpen: l,
11551
- workflowsSuggestions: c,
11552
- workflowsSuggestionsLoading: d,
11553
- treeSelected: f
11554
- } = ix(a);
11555
- return /* @__PURE__ */ oe(Ul, {
11556
- size: n,
11557
- required: t,
11558
- sx: El.formControl,
11559
- children: [!e && /* @__PURE__ */ x(Yl, {
11560
- children: s("tree")
11561
- }), /* @__PURE__ */ oe(Vl, {
11562
- value: a ? o : f,
11563
- id: "tree-select",
11564
- onChange: (h) => a ? i == null ? void 0 : i(h) : u(h),
11565
- sx: e ? El.select : void 0,
11566
- label: s("tree"),
11567
- onOpen: l,
11568
- children: [d && /* @__PURE__ */ x(er, {
11569
- children: /* @__PURE__ */ x(Id, {
11570
- width: "100%"
11571
- })
11572
- }), c == null ? void 0 : c.map(({
11573
- label: h,
11574
- id: v
11575
- }) => /* @__PURE__ */ x(er, {
11576
- value: v,
11577
- children: h
11578
- }, v)), r && /* @__PURE__ */ x(er, {
11579
- disabled: !0,
11580
- children: /* @__PURE__ */ x(He, {
11581
- sx: {
11582
- height: 1,
11583
- width: "100%"
11584
- },
11585
- children: /* @__PURE__ */ x(zd, {})
11586
- })
11587
- }), r && /* @__PURE__ */ oe(er, {
11588
- value: "add-new-tree",
11589
- children: [/* @__PURE__ */ x(ui, {
11590
- mr: 1,
11591
- children: s("newTree")
11592
- }), /* @__PURE__ */ x(sd, {
11593
- color: "primary"
11594
- })]
11595
- })]
11596
- })]
11597
- });
11169
+ }, ld = ({ arrowOnly: e, required: t, size: n, showBtnAddNewTree: r, onChange: i, value: o }) => {
11170
+ const a = wr(() => !!i, [i]), { t: s } = ct("form"), { handleChangeTree: u, handleOnOpen: l, workflowsSuggestions: c, workflowsSuggestionsLoading: d, treeSelected: f } = ix(a);
11171
+ return /* @__PURE__ */ oe(Ul, { size: n, required: t, sx: El.formControl, children: [
11172
+ !e && /* @__PURE__ */ x(Yl, { children: s("tree") }),
11173
+ /* @__PURE__ */ oe(
11174
+ Vl,
11175
+ {
11176
+ value: a ? o : f,
11177
+ id: "tree-select",
11178
+ onChange: (h) => a ? i == null ? void 0 : i(h) : u(h),
11179
+ sx: e ? El.select : void 0,
11180
+ label: s("tree"),
11181
+ onOpen: l,
11182
+ children: [
11183
+ d && /* @__PURE__ */ x(er, { children: /* @__PURE__ */ x(Id, { width: "100%" }) }),
11184
+ c == null ? void 0 : c.map(({ label: h, id: v }) => /* @__PURE__ */ x(er, { value: v, children: h }, v)),
11185
+ r && /* @__PURE__ */ x(er, { disabled: !0, children: /* @__PURE__ */ x(He, { sx: { height: 1, width: "100%" }, children: /* @__PURE__ */ x(zd, {}) }) }),
11186
+ r && /* @__PURE__ */ oe(er, { value: "add-new-tree", children: [
11187
+ /* @__PURE__ */ x(ui, { mr: 1, children: s("newTree") }),
11188
+ /* @__PURE__ */ x(sd, { color: "primary" })
11189
+ ] })
11190
+ ]
11191
+ }
11192
+ )
11193
+ ] });
11598
11194
  }, ox = ({
11599
11195
  helperText: e,
11600
11196
  hiddenValue: t,
@@ -11605,80 +11201,38 @@ const ud = () => ({
11605
11201
  handleChangeHelperText: a,
11606
11202
  handleChangeHiddenValue: s
11607
11203
  }) => {
11608
- const {
11609
- t: u
11610
- } = ct(["translation", "form"]);
11611
- return r ? /* @__PURE__ */ x(ld, {
11612
- required: !0,
11613
- value: i,
11614
- onChange: o
11615
- }) : n ? /* @__PURE__ */ x(wt, {
11616
- required: !0,
11617
- sx: {
11618
- flex: 1
11619
- },
11620
- label: u("hiddenValue", {
11621
- ns: "form"
11622
- }),
11623
- onChange: s,
11624
- value: t
11625
- }) : /* @__PURE__ */ x(wt, {
11626
- sx: {
11627
- flex: 1
11628
- },
11629
- label: u("helperText", {
11630
- ns: "form"
11631
- }),
11632
- onChange: a,
11633
- value: e
11634
- });
11204
+ const { t: u } = ct(["translation", "form"]);
11205
+ return r ? /* @__PURE__ */ x(ld, { required: !0, value: i, onChange: o }) : n ? /* @__PURE__ */ x(
11206
+ wt,
11207
+ {
11208
+ required: !0,
11209
+ sx: { flex: 1 },
11210
+ label: u("hiddenValue", { ns: "form" }),
11211
+ onChange: s,
11212
+ value: t
11213
+ }
11214
+ ) : /* @__PURE__ */ x(wt, { sx: { flex: 1 }, label: u("helperText", { ns: "form" }), onChange: a, value: e });
11635
11215
  }, Dl = (e) => (/* @__PURE__ */ new Set([...e])).size === e.length, ax = (e, t, n) => {
11636
11216
  const r = [...e, t];
11637
11217
  return Dl(n ? r.filter((i) => i !== n) : r);
11638
11218
  }, sx = () => {
11639
11219
  var sn, $r, Lr, Pr, Fr, Ur, Yr, Vr, un, Vn, At, ln, cn;
11640
- const e = wr(() => [{
11641
- id: "0",
11642
- label: "",
11643
- message: "",
11644
- value: ""
11645
- }], []), {
11646
- tree: t,
11647
- dispatchTree: n,
11648
- currentHierarchyPointNode: r,
11649
- modalOpen: i,
11650
- treePath: o,
11651
- setModalOpen: a
11652
- } = ft(), {
11653
- open: s
11654
- } = bs(), {
11655
- t: u
11656
- } = ct(), [l, c] = Ce(e), [d, f] = Ce(""), [h, v] = Ce(""), [p, g] = Ce(""), [M, w] = Ce(!1), [T, b] = Ce(!1), [y, S] = Ce("text"), [A, O] = Ce(""), [E, D] = Ce(""), [I, m] = Ce(""), [N, k] = Ce({
11657
- off: "",
11658
- on: ""
11659
- }), [j, $] = Ce(!1), [V, Y] = Ce(""), J = i === "edit", C = y === "tree", R = y === "hidden", B = sr.some((P) => P.type === y && (P == null ? void 0 : P.isBooleanField)), q = sr.some((P) => P.type === y && (P == null ? void 0 : P.isDecisionField)), F = sr.some((P) => P.type === y && (P == null ? void 0 : P.isRequiredDisabled)), K = sr.some((P) => P.type === y && (P == null ? void 0 : P.isRepeatableDisabled)), W = (P) => !q && P > 0, {
11660
- refetch: H,
11661
- isLoading: X
11662
- } = Es(A, {
11220
+ const e = wr(() => [{ id: "0", label: "", message: "", value: "" }], []), { tree: t, dispatchTree: n, currentHierarchyPointNode: r, modalOpen: i, treePath: o, setModalOpen: a } = ft(), { open: s } = bs(), { t: u } = ct(), [l, c] = Ce(e), [d, f] = Ce(""), [h, v] = Ce(""), [p, g] = Ce(""), [M, w] = Ce(!1), [T, b] = Ce(!1), [y, S] = Ce("text"), [A, O] = Ce(""), [E, D] = Ce(""), [I, m] = Ce(""), [N, k] = Ce({ off: "", on: "" }), [j, $] = Ce(!1), [V, Y] = Ce(""), J = i === "edit", C = y === "tree", R = y === "hidden", B = sr.some((P) => P.type === y && (P == null ? void 0 : P.isBooleanField)), q = sr.some((P) => P.type === y && (P == null ? void 0 : P.isDecisionField)), F = sr.some((P) => P.type === y && (P == null ? void 0 : P.isRequiredDisabled)), K = sr.some((P) => P.type === y && (P == null ? void 0 : P.isRepeatableDisabled)), W = (P) => !q && P > 0, { refetch: H, isLoading: X } = Es(A, {
11663
11221
  enabled: !1,
11664
11222
  onError: () => {
11665
- s(u("error.fetchTree", {
11666
- ns: "snackMessage"
11667
- }), "error");
11223
+ s(u("error.fetchTree", { ns: "snackMessage" }), "error");
11668
11224
  }
11669
11225
  }), ee = (P, fe) => {
11670
- c((ue) => ue.map((Me) => {
11671
- const {
11672
- id: Re
11673
- } = Me;
11674
- return P.target.dataset.id === Re ? {
11675
- ...Me,
11676
- id: Re,
11677
- [fe]: P.target.value
11678
- } : {
11679
- ...Me
11680
- };
11681
- }));
11226
+ c(
11227
+ (ue) => ue.map((Me) => {
11228
+ const { id: Re } = Me;
11229
+ return P.target.dataset.id === Re ? {
11230
+ ...Me,
11231
+ id: Re,
11232
+ [fe]: P.target.value
11233
+ } : { ...Me };
11234
+ })
11235
+ );
11682
11236
  }, Z = (P) => {
11683
11237
  v(P.target.value);
11684
11238
  }, Ae = (P) => {
@@ -11693,9 +11247,7 @@ const ud = () => ({
11693
11247
  m(P.target.value);
11694
11248
  }, vt = (P) => {
11695
11249
  var Je;
11696
- const {
11697
- value: fe
11698
- } = P.target;
11250
+ const { value: fe } = P.target;
11699
11251
  if (f(P.target.value), !t || !fe) {
11700
11252
  Y("");
11701
11253
  return;
@@ -11705,9 +11257,7 @@ const ud = () => ({
11705
11257
  Y("");
11706
11258
  return;
11707
11259
  }
11708
- Y(u("mustBeUnique", {
11709
- ns: "form"
11710
- }));
11260
+ Y(u("mustBeUnique", { ns: "form" }));
11711
11261
  }, Kt = (P) => {
11712
11262
  w(P.target.checked);
11713
11263
  }, kr = (P) => {
@@ -11719,89 +11269,47 @@ const ud = () => ({
11719
11269
  }, so = (P) => {
11720
11270
  O(P.target.value);
11721
11271
  }, Yn = (P) => (fe) => {
11722
- k((ue) => ({
11723
- ...ue,
11724
- [P]: fe.target.value
11725
- }));
11272
+ k((ue) => ({ ...ue, [P]: fe.target.value }));
11726
11273
  }, uo = (P) => {
11727
11274
  D(P.target.value);
11728
11275
  }, lo = () => {
11729
11276
  c((P) => {
11730
11277
  const fe = Number(P[P.length - 1].id), ue = String(fe + 1);
11731
- return [...P, {
11732
- ...e[0],
11733
- id: ue
11734
- }];
11278
+ return [...P, { ...e[0], id: ue }];
11735
11279
  });
11736
11280
  }, Ir = (P) => {
11737
- c((fe) => fe.filter(({
11738
- id: ue
11739
- }) => P !== ue));
11281
+ c((fe) => fe.filter(({ id: ue }) => P !== ue));
11740
11282
  }, zr = (P, fe) => {
11741
11283
  var Me, Re, Ue;
11742
11284
  const ue = (Ue = (Re = (Me = P == null ? void 0 : P.children) == null ? void 0 : Me[fe]) == null ? void 0 : Re.data) == null ? void 0 : Ue.children;
11743
- return ue ? ue.map(({
11744
- name: dt,
11745
- attributes: Je,
11746
- children: yt
11747
- }) => ({
11285
+ return ue ? ue.map(({ name: dt, attributes: Je, children: yt }) => ({
11748
11286
  attributes: Je,
11749
11287
  children: yt,
11750
11288
  name: dt
11751
11289
  })) : [];
11752
11290
  }, Ht = (P) => {
11753
11291
  var fe;
11754
- return T ? (fe = l == null ? void 0 : l.filter((ue, Me) => !W(Me))) == null ? void 0 : fe.map(({
11755
- message: ue,
11756
- value: Me,
11757
- label: Re
11758
- }, Ue) => {
11292
+ return T ? (fe = l == null ? void 0 : l.filter((ue, Me) => !W(Me))) == null ? void 0 : fe.map(({ message: ue, value: Me, label: Re }, Ue) => {
11759
11293
  const dt = `${d}:${Me}`, Je = zr(r, Ue);
11760
11294
  return {
11761
11295
  attributes: {
11762
11296
  depth: P + 1,
11763
11297
  label: Re,
11764
11298
  value: Me,
11765
- ...ue && {
11766
- message: ue
11767
- },
11768
- ...Je.length === 0 && {
11769
- isLeaf: !0
11770
- }
11299
+ ...ue && { message: ue },
11300
+ ...Je.length === 0 && { isLeaf: !0 }
11771
11301
  },
11772
11302
  children: Je,
11773
11303
  name: dt
11774
11304
  };
11775
11305
  }) : [];
11776
- }, co = (P) => P.map(({
11777
- message: fe,
11778
- ...ue
11779
- }) => ({
11780
- ...ue,
11781
- ...fe && {
11782
- message: fe
11783
- }
11784
- })), Rr = (P, fe, ue) => {
11306
+ }, co = (P) => P.map(({ message: fe, ...ue }) => ({ ...ue, ...fe && { message: fe } })), Rr = (P, fe, ue) => {
11785
11307
  var Me;
11786
- return P && (!fe || ue) ? H() : P && fe && !ue ? {
11787
- data: {
11788
- workflow: (Me = r == null ? void 0 : r.data.attributes) == null ? void 0 : Me.tree
11789
- },
11790
- isError: null
11791
- } : {
11792
- data: null,
11793
- isError: null
11794
- };
11308
+ return P && (!fe || ue) ? H() : P && fe && !ue ? { data: { workflow: (Me = r == null ? void 0 : r.data.attributes) == null ? void 0 : Me.tree }, isError: null } : { data: null, isError: null };
11795
11309
  }, jr = async (P) => {
11796
11310
  var z, L, G, re;
11797
11311
  P.preventDefault();
11798
- const {
11799
- on: fe,
11800
- off: ue
11801
- } = N, Me = ((z = r == null ? void 0 : r.data) == null ? void 0 : z.name) || "", Re = (r == null ? void 0 : r.depth) || 0, Ue = i === "edit", dt = Re + (Ue || r === null ? 0 : 1), Je = Ht(dt), yt = (L = o == null ? void 0 : o.at(-1)) == null ? void 0 : L.path, fn = o.length ? `${yt}/${d}` : `/${d}`, dn = ((re = (G = r == null ? void 0 : r.data.attributes) == null ? void 0 : G.tree) == null ? void 0 : re.treeId) !== A, {
11802
- data: Pt,
11803
- isError: hn
11804
- } = await Rr(C, Ue, dn);
11312
+ const { on: fe, off: ue } = N, Me = ((z = r == null ? void 0 : r.data) == null ? void 0 : z.name) || "", Re = (r == null ? void 0 : r.depth) || 0, Ue = i === "edit", dt = Re + (Ue || r === null ? 0 : 1), Je = Ht(dt), yt = (L = o == null ? void 0 : o.at(-1)) == null ? void 0 : L.path, fn = o.length ? `${yt}/${d}` : `/${d}`, dn = ((re = (G = r == null ? void 0 : r.data.attributes) == null ? void 0 : G.tree) == null ? void 0 : re.treeId) !== A, { data: Pt, isError: hn } = await Rr(C, Ue, dn);
11805
11313
  if (hn)
11806
11314
  return;
11807
11315
  const _ = {
@@ -11809,44 +11317,17 @@ const ud = () => ({
11809
11317
  depth: dt,
11810
11318
  label: p,
11811
11319
  type: y,
11812
- ...E && {
11813
- helperText: E
11814
- },
11320
+ ...E && { helperText: E },
11815
11321
  ...(ue || fe) && {
11816
- messages: {
11817
- ...ue && {
11818
- off: ue
11819
- },
11820
- ...fe && {
11821
- on: fe
11822
- }
11823
- }
11824
- },
11825
- ...C && {
11826
- tree: {
11827
- ...Pt == null ? void 0 : Pt.workflow,
11828
- treeId: A
11829
- },
11830
- treePath: fn
11831
- },
11832
- ...T && {
11833
- isDecision: T
11834
- },
11835
- ...q && !T && {
11836
- values: co(l)
11837
- },
11838
- ...M && {
11839
- required: M
11840
- },
11841
- ...I && {
11842
- step: I
11322
+ messages: { ...ue && { off: ue }, ...fe && { on: fe } }
11843
11323
  },
11844
- ...j && {
11845
- repeatable: j
11846
- },
11847
- ...R && {
11848
- hiddenValue: h
11849
- }
11324
+ ...C && { tree: { ...Pt == null ? void 0 : Pt.workflow, treeId: A }, treePath: fn },
11325
+ ...T && { isDecision: T },
11326
+ ...q && !T && { values: co(l) },
11327
+ ...M && { required: M },
11328
+ ...I && { step: I },
11329
+ ...j && { repeatable: j },
11330
+ ...R && { hiddenValue: h }
11850
11331
  },
11851
11332
  children: Je,
11852
11333
  name: d
@@ -11856,23 +11337,13 @@ const ud = () => ({
11856
11337
  return xd(() => {
11857
11338
  var P, fe, ue, Me, Re, Ue, dt, Je, yt, fn, dn, Pt, hn, _, z, L, G, re, de;
11858
11339
  if (i === "edit") {
11859
- const te = ((fe = (P = r == null ? void 0 : r.data) == null ? void 0 : P.attributes) == null ? void 0 : fe.values) || ((Re = (Me = (ue = r == null ? void 0 : r.data) == null ? void 0 : ue.children) == null ? void 0 : Me.filter(({
11860
- attributes: Se
11861
- }) => !(Se != null && Se.type))) == null ? void 0 : Re.map(({
11862
- attributes: Se
11863
- }, Te) => {
11864
- const {
11865
- label: Ne,
11866
- value: Ze,
11867
- message: kt
11868
- } = Se || {};
11340
+ const te = ((fe = (P = r == null ? void 0 : r.data) == null ? void 0 : P.attributes) == null ? void 0 : fe.values) || ((Re = (Me = (ue = r == null ? void 0 : r.data) == null ? void 0 : ue.children) == null ? void 0 : Me.filter(({ attributes: Se }) => !(Se != null && Se.type))) == null ? void 0 : Re.map(({ attributes: Se }, Te) => {
11341
+ const { label: Ne, value: Ze, message: kt } = Se || {};
11869
11342
  return {
11870
11343
  id: String(Te),
11871
11344
  label: String(Ne),
11872
11345
  value: String(Ze),
11873
- ...kt && {
11874
- message: String(kt)
11875
- }
11346
+ ...kt && { message: String(kt) }
11876
11347
  };
11877
11348
  }));
11878
11349
  f((r == null ? void 0 : r.data.name) || ""), S(((Ue = r == null ? void 0 : r.data.attributes) == null ? void 0 : Ue.type) || "text"), D(((dt = r == null ? void 0 : r.data.attributes) == null ? void 0 : dt.helperText) || ""), w(((Je = r == null ? void 0 : r.data.attributes) == null ? void 0 : Je.required) || !1), m(((yt = r == null ? void 0 : r.data.attributes) == null ? void 0 : yt.step) || ""), g(((fn = r == null ? void 0 : r.data.attributes) == null ? void 0 : fn.label) || ""), b(((dn = r == null ? void 0 : r.data.attributes) == null ? void 0 : dn.isDecision) || !1), c(te != null && te.length ? te : e), k({
@@ -11880,7 +11351,23 @@ const ud = () => ({
11880
11351
  on: ((z = (_ = r == null ? void 0 : r.data.attributes) == null ? void 0 : _.messages) == null ? void 0 : z.on) || ""
11881
11352
  }), O(((G = (L = r == null ? void 0 : r.data.attributes) == null ? void 0 : L.tree) == null ? void 0 : G.treeId) || ""), $(((re = r == null ? void 0 : r.data.attributes) == null ? void 0 : re.repeatable) || !1), v(((de = r == null ? void 0 : r.data.attributes) == null ? void 0 : de.hiddenValue) || "");
11882
11353
  }
11883
- }, [($r = (sn = r == null ? void 0 : r.data.attributes) == null ? void 0 : sn.tree) == null ? void 0 : $r.treeId, (Lr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Lr.messages, (Pr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Pr.helperText, (Fr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Fr.isDecision, (Ur = r == null ? void 0 : r.data.attributes) == null ? void 0 : Ur.label, (Yr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Yr.required, (Vr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Vr.step, (un = r == null ? void 0 : r.data.attributes) == null ? void 0 : un.type, (Vn = r == null ? void 0 : r.data.attributes) == null ? void 0 : Vn.values, (At = r == null ? void 0 : r.data) == null ? void 0 : At.children, r == null ? void 0 : r.data.name, (ln = r == null ? void 0 : r.data.attributes) == null ? void 0 : ln.repeatable, (cn = r == null ? void 0 : r.data.attributes) == null ? void 0 : cn.hiddenValue, e, i]), {
11354
+ }, [
11355
+ ($r = (sn = r == null ? void 0 : r.data.attributes) == null ? void 0 : sn.tree) == null ? void 0 : $r.treeId,
11356
+ (Lr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Lr.messages,
11357
+ (Pr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Pr.helperText,
11358
+ (Fr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Fr.isDecision,
11359
+ (Ur = r == null ? void 0 : r.data.attributes) == null ? void 0 : Ur.label,
11360
+ (Yr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Yr.required,
11361
+ (Vr = r == null ? void 0 : r.data.attributes) == null ? void 0 : Vr.step,
11362
+ (un = r == null ? void 0 : r.data.attributes) == null ? void 0 : un.type,
11363
+ (Vn = r == null ? void 0 : r.data.attributes) == null ? void 0 : Vn.values,
11364
+ (At = r == null ? void 0 : r.data) == null ? void 0 : At.children,
11365
+ r == null ? void 0 : r.data.name,
11366
+ (ln = r == null ? void 0 : r.data.attributes) == null ? void 0 : ln.repeatable,
11367
+ (cn = r == null ? void 0 : r.data.attributes) == null ? void 0 : cn.hiddenValue,
11368
+ e,
11369
+ i
11370
+ ]), {
11884
11371
  getDisabledValueField: W,
11885
11372
  handleAddValue: lo,
11886
11373
  handleChangeHelperText: uo,
@@ -11941,12 +11428,8 @@ const ud = () => ({
11941
11428
  top: "50%",
11942
11429
  transform: "translateY(-50%)"
11943
11430
  }
11944
- }, ux = ({
11945
- onClose: e
11946
- }) => {
11947
- const {
11948
- t
11949
- } = ct(["translation", "form"]), {
11431
+ }, ux = ({ onClose: e }) => {
11432
+ const { t } = ct(["translation", "form"]), {
11950
11433
  values: n,
11951
11434
  required: r,
11952
11435
  name: i,
@@ -11965,10 +11448,7 @@ const ud = () => ({
11965
11448
  treeSelected: M,
11966
11449
  isWorkflowLoading: w,
11967
11450
  repeatable: T,
11968
- messages: {
11969
- on: b,
11970
- off: y
11971
- },
11451
+ messages: { on: b, off: y },
11972
11452
  handleChangeTreeSelect: S,
11973
11453
  handleChangeHelperText: A,
11974
11454
  handleChangeOptionMessage: O,
@@ -11986,204 +11466,112 @@ const ud = () => ({
11986
11466
  handleChangeRepeatable: C,
11987
11467
  handleChangeHiddenValue: R
11988
11468
  } = sx();
11989
- return /* @__PURE__ */ oe("form", {
11990
- onSubmit: V,
11991
- children: [/* @__PURE__ */ oe(Ie, {
11992
- spacing: 1,
11993
- paddingY: 1,
11994
- direction: {
11995
- sm: "row",
11996
- xs: "column"
11997
- },
11998
- children: [/* @__PURE__ */ x(wt, {
11999
- sx: {
12000
- flex: 1
12001
- },
12002
- label: t("label", {
12003
- ns: "form"
12004
- }),
12005
- onChange: J,
12006
- value: u,
12007
- required: !0
12008
- }), /* @__PURE__ */ x(wt, {
12009
- label: t("name"),
12010
- sx: {
12011
- flex: 1
12012
- },
12013
- onChange: D,
12014
- value: i,
12015
- error: !!o,
12016
- helperText: o,
12017
- required: !0
12018
- })]
12019
- }), /* @__PURE__ */ oe(Ie, {
12020
- spacing: 1,
12021
- paddingY: 1,
12022
- direction: {
12023
- sm: "row",
12024
- xs: "column"
12025
- },
12026
- children: [/* @__PURE__ */ x(JM, {
12027
- value: a,
12028
- onChange: I
12029
- }), /* @__PURE__ */ x(ox, {
12030
- helperText: s,
12031
- hiddenValue: l,
12032
- isHiddenField: h,
12033
- isTreeField: g,
12034
- treeSelected: M,
12035
- handleChangeTreeSelect: S,
12036
- handleChangeHelperText: A,
12037
- handleChangeHiddenValue: R
12038
- })]
12039
- }), c && /* @__PURE__ */ oe(Ie, {
12040
- spacing: 1,
12041
- paddingY: 1,
12042
- direction: {
12043
- sm: "row",
12044
- xs: "column"
12045
- },
12046
- children: [/* @__PURE__ */ x(wt, {
12047
- sx: {
12048
- flex: 1
12049
- },
12050
- label: t("onMessage", {
12051
- ns: "form"
12052
- }),
12053
- onChange: $("on"),
12054
- value: b
12055
- }), /* @__PURE__ */ x(wt, {
12056
- sx: {
12057
- flex: 1
12058
- },
12059
- label: t("offMessage", {
12060
- ns: "form"
12061
- }),
12062
- onChange: $("off"),
12063
- value: y
12064
- })]
12065
- }), /* @__PURE__ */ oe(Ie, {
12066
- paddingY: 1,
12067
- children: [/* @__PURE__ */ x(ho, {
12068
- children: /* @__PURE__ */ x(po, {
11469
+ return /* @__PURE__ */ oe("form", { onSubmit: V, children: [
11470
+ /* @__PURE__ */ oe(Ie, { spacing: 1, paddingY: 1, direction: { sm: "row", xs: "column" }, children: [
11471
+ /* @__PURE__ */ x(wt, { sx: { flex: 1 }, label: t("label", { ns: "form" }), onChange: J, value: u, required: !0 }),
11472
+ /* @__PURE__ */ x(
11473
+ wt,
11474
+ {
11475
+ label: t("name"),
11476
+ sx: { flex: 1 },
11477
+ onChange: D,
11478
+ value: i,
11479
+ error: !!o,
11480
+ helperText: o,
11481
+ required: !0
11482
+ }
11483
+ )
11484
+ ] }),
11485
+ /* @__PURE__ */ oe(Ie, { spacing: 1, paddingY: 1, direction: { sm: "row", xs: "column" }, children: [
11486
+ /* @__PURE__ */ x(JM, { value: a, onChange: I }),
11487
+ /* @__PURE__ */ x(
11488
+ ox,
11489
+ {
11490
+ helperText: s,
11491
+ hiddenValue: l,
11492
+ isHiddenField: h,
11493
+ isTreeField: g,
11494
+ treeSelected: M,
11495
+ handleChangeTreeSelect: S,
11496
+ handleChangeHelperText: A,
11497
+ handleChangeHiddenValue: R
11498
+ }
11499
+ )
11500
+ ] }),
11501
+ c && /* @__PURE__ */ oe(Ie, { spacing: 1, paddingY: 1, direction: { sm: "row", xs: "column" }, children: [
11502
+ /* @__PURE__ */ x(wt, { sx: { flex: 1 }, label: t("onMessage", { ns: "form" }), onChange: $("on"), value: b }),
11503
+ /* @__PURE__ */ x(wt, { sx: { flex: 1 }, label: t("offMessage", { ns: "form" }), onChange: $("off"), value: y })
11504
+ ] }),
11505
+ /* @__PURE__ */ oe(Ie, { paddingY: 1, children: [
11506
+ /* @__PURE__ */ x(ho, { children: /* @__PURE__ */ x(
11507
+ po,
11508
+ {
12069
11509
  disabled: p,
12070
- control: /* @__PURE__ */ x(go, {
12071
- checked: T,
12072
- onChange: C
12073
- }),
12074
- label: t("repeatable", {
12075
- ns: "form"
12076
- })
12077
- })
12078
- }), /* @__PURE__ */ x(ho, {
12079
- children: /* @__PURE__ */ x(po, {
11510
+ control: /* @__PURE__ */ x(go, { checked: T, onChange: C }),
11511
+ label: t("repeatable", { ns: "form" })
11512
+ }
11513
+ ) }),
11514
+ /* @__PURE__ */ x(ho, { children: /* @__PURE__ */ x(
11515
+ po,
11516
+ {
12080
11517
  disabled: v,
12081
- control: /* @__PURE__ */ x(go, {
12082
- checked: r,
12083
- onChange: E
12084
- }),
11518
+ control: /* @__PURE__ */ x(go, { checked: r, onChange: E }),
12085
11519
  label: t("required")
12086
- })
12087
- }), /* @__PURE__ */ x(ho, {
12088
- children: /* @__PURE__ */ x(po, {
11520
+ }
11521
+ ) }),
11522
+ /* @__PURE__ */ x(ho, { children: /* @__PURE__ */ x(
11523
+ po,
11524
+ {
12089
11525
  disabled: !f,
12090
- control: /* @__PURE__ */ x(go, {
12091
- checked: d,
12092
- onChange: m
12093
- }),
12094
- label: t("decisionField", {
12095
- ns: "form"
12096
- })
12097
- })
12098
- })]
12099
- }), f && /* @__PURE__ */ oe(ki, {
12100
- children: [/* @__PURE__ */ x("h4", {
12101
- children: t("values")
12102
- }), n == null ? void 0 : n.map(({
12103
- value: B,
12104
- label: q,
12105
- id: F,
12106
- message: K
12107
- }) => /* @__PURE__ */ oe(Ie, {
12108
- direction: {
12109
- sm: "row",
12110
- xs: "column"
12111
- },
12112
- spacing: 1,
12113
- paddingY: 1,
12114
- position: "relative",
12115
- children: [/* @__PURE__ */ x(wt, {
12116
- label: t("label", {
12117
- ns: "form"
12118
- }),
12119
- sx: {
12120
- flex: 1
12121
- },
12122
- onChange: N,
12123
- value: q,
12124
- inputProps: {
12125
- "data-id": F
12126
- },
12127
- required: !0
12128
- }), /* @__PURE__ */ x(wt, {
12129
- label: t("value", {
12130
- ns: "form"
12131
- }),
12132
- sx: {
12133
- flex: 1
12134
- },
12135
- onChange: j,
12136
- value: B,
12137
- inputProps: {
12138
- "data-id": F
12139
- },
12140
- required: !0
12141
- }), /* @__PURE__ */ x(wt, {
12142
- label: "Message",
12143
- sx: {
12144
- flex: 1
12145
- },
12146
- onChange: O,
12147
- value: K,
12148
- inputProps: {
12149
- "data-id": F
11526
+ control: /* @__PURE__ */ x(go, { checked: d, onChange: m }),
11527
+ label: t("decisionField", { ns: "form" })
11528
+ }
11529
+ ) })
11530
+ ] }),
11531
+ f && /* @__PURE__ */ oe(ki, { children: [
11532
+ /* @__PURE__ */ x("h4", { children: t("values") }),
11533
+ n == null ? void 0 : n.map(({ value: B, label: q, id: F, message: K }) => /* @__PURE__ */ oe(Ie, { direction: { sm: "row", xs: "column" }, spacing: 1, paddingY: 1, position: "relative", children: [
11534
+ /* @__PURE__ */ x(
11535
+ wt,
11536
+ {
11537
+ label: t("label", { ns: "form" }),
11538
+ sx: { flex: 1 },
11539
+ onChange: N,
11540
+ value: q,
11541
+ inputProps: { "data-id": F },
11542
+ required: !0
12150
11543
  }
12151
- }), n.length > 1 && /* @__PURE__ */ x(st, {
12152
- color: "warning",
12153
- sx: Sl.iconButtonDelete,
12154
- "data-id": F,
12155
- onClick: () => k(F),
12156
- children: /* @__PURE__ */ x(ad, {})
12157
- })]
12158
- }, F))]
12159
- }), f && /* @__PURE__ */ x(He, {
12160
- justifyContent: "flex-end",
12161
- display: "flex",
12162
- children: /* @__PURE__ */ x(st, {
12163
- color: "success",
12164
- sx: Sl.iconButton,
12165
- onClick: Y,
12166
- children: /* @__PURE__ */ x(od, {})
12167
- })
12168
- }), /* @__PURE__ */ oe(Ie, {
12169
- spacing: 2,
12170
- direction: "row",
12171
- justifyContent: "flex-end",
12172
- paddingTop: 3,
12173
- children: [/* @__PURE__ */ x(st, {
12174
- variant: "text",
12175
- onClick: e,
12176
- children: t("cancel")
12177
- }), /* @__PURE__ */ x(st, {
12178
- variant: "contained",
12179
- type: "submit",
12180
- disabled: !!o || w,
12181
- children: w ? /* @__PURE__ */ x(Pl, {
12182
- size: 14
12183
- }) : t("validate")
12184
- })]
12185
- })]
12186
- });
11544
+ ),
11545
+ /* @__PURE__ */ x(
11546
+ wt,
11547
+ {
11548
+ label: t("value", { ns: "form" }),
11549
+ sx: { flex: 1 },
11550
+ onChange: j,
11551
+ value: B,
11552
+ inputProps: { "data-id": F },
11553
+ required: !0
11554
+ }
11555
+ ),
11556
+ /* @__PURE__ */ x(
11557
+ wt,
11558
+ {
11559
+ label: "Message",
11560
+ sx: { flex: 1 },
11561
+ onChange: O,
11562
+ value: K,
11563
+ inputProps: { "data-id": F }
11564
+ }
11565
+ ),
11566
+ n.length > 1 && /* @__PURE__ */ x(st, { color: "warning", sx: Sl.iconButtonDelete, "data-id": F, onClick: () => k(F), children: /* @__PURE__ */ x(ad, {}) })
11567
+ ] }, F))
11568
+ ] }),
11569
+ f && /* @__PURE__ */ x(He, { justifyContent: "flex-end", display: "flex", children: /* @__PURE__ */ x(st, { color: "success", sx: Sl.iconButton, onClick: Y, children: /* @__PURE__ */ x(od, {}) }) }),
11570
+ /* @__PURE__ */ oe(Ie, { spacing: 2, direction: "row", justifyContent: "flex-end", paddingTop: 3, children: [
11571
+ /* @__PURE__ */ x(st, { variant: "text", onClick: e, children: t("cancel") }),
11572
+ /* @__PURE__ */ x(st, { variant: "contained", type: "submit", disabled: !!o || w, children: w ? /* @__PURE__ */ x(Pl, { size: 14 }) : t("validate") })
11573
+ ] })
11574
+ ] });
12187
11575
  };
12188
11576
  var Ds = {}, lx = Oe;
12189
11577
  Object.defineProperty(Ds, "__esModule", {
@@ -12328,220 +11716,93 @@ const ze = {
12328
11716
  size: a = 220
12329
11717
  }) => {
12330
11718
  var y;
12331
- const {
12332
- t: s
12333
- } = ct(["translation", "form"]), {
12334
- attributes: u
12335
- } = e || {}, {
12336
- isRoot: l,
12337
- isLeaf: c,
12338
- required: d,
12339
- step: f,
12340
- type: h,
12341
- label: v,
12342
- repeatable: p
12343
- } = u || {}, g = !!h, M = h === "tree", w = h === "hidden", T = !g, b = !l && !c;
12344
- return /* @__PURE__ */ oe("g", {
12345
- children: [/* @__PURE__ */ x(Ai, {
12346
- styles: {
12347
- ".rd3t-node svg": ze.nodeSvg
12348
- }
12349
- }), /* @__PURE__ */ x(He, {
12350
- component: "foreignObject",
12351
- height: a,
12352
- width: a,
12353
- x: `-${a / 2}`,
12354
- y: `-${a / 2}`,
12355
- sx: Gx(h),
12356
- children: /* @__PURE__ */ oe(He, {
12357
- flex: 1,
12358
- display: "flex",
12359
- p: 2,
12360
- height: "100%",
12361
- flexDirection: "column",
12362
- justifyContent: "space-between",
12363
- children: [/* @__PURE__ */ oe(Ie, {
12364
- alignItems: "flex-end",
12365
- spacing: 0.5,
12366
- children: [g && /* @__PURE__ */ oe(Ie, {
12367
- direction: "row",
12368
- spacing: 1,
12369
- alignItems: "center",
12370
- children: [f && /* @__PURE__ */ x(ot, {
12371
- title: `${s("step", {
12372
- ns: "form"
12373
- })} ${(y = e == null ? void 0 : e.attributes) == null ? void 0 : y.step}`,
12374
- placement: "left",
12375
- arrow: !0,
12376
- children: /* @__PURE__ */ x(mo, {
12377
- color: "primary",
12378
- size: "small",
12379
- label: f,
12380
- sx: ze.stepChip
12381
- })
12382
- }), /* @__PURE__ */ x(ui, {
12383
- variant: "subtitle2",
12384
- sx: ze.title,
12385
- children: /* @__PURE__ */ x("strong", {
12386
- children: v
12387
- })
12388
- })]
12389
- }), g && /* @__PURE__ */ x(mo, {
11719
+ const { t: s } = ct(["translation", "form"]), { attributes: u } = e || {}, { isRoot: l, isLeaf: c, required: d, step: f, type: h, label: v, repeatable: p } = u || {}, g = !!h, M = h === "tree", w = h === "hidden", T = !g, b = !l && !c;
11720
+ return /* @__PURE__ */ oe("g", { children: [
11721
+ /* @__PURE__ */ x(Ai, { styles: { ".rd3t-node svg": ze.nodeSvg } }),
11722
+ /* @__PURE__ */ x(He, { component: "foreignObject", height: a, width: a, x: `-${a / 2}`, y: `-${a / 2}`, sx: Gx(h), children: /* @__PURE__ */ oe(He, { flex: 1, display: "flex", p: 2, height: "100%", flexDirection: "column", justifyContent: "space-between", children: [
11723
+ /* @__PURE__ */ oe(Ie, { alignItems: "flex-end", spacing: 0.5, children: [
11724
+ g && /* @__PURE__ */ oe(Ie, { direction: "row", spacing: 1, alignItems: "center", children: [
11725
+ f && /* @__PURE__ */ x(ot, { title: `${s("step", { ns: "form" })} ${(y = e == null ? void 0 : e.attributes) == null ? void 0 : y.step}`, placement: "left", arrow: !0, children: /* @__PURE__ */ x(mo, { color: "primary", size: "small", label: f, sx: ze.stepChip }) }),
11726
+ /* @__PURE__ */ x(ui, { variant: "subtitle2", sx: ze.title, children: /* @__PURE__ */ x("strong", { children: v }) })
11727
+ ] }),
11728
+ g && /* @__PURE__ */ x(mo, { color: "info", size: "small", label: s(`type.${h}`, { ns: "form" }) }),
11729
+ d && /* @__PURE__ */ x(Ie, { direction: "row", spacing: 0.5, children: d && /* @__PURE__ */ x(mo, { color: "warning", size: "small", variant: "outlined", label: `${s("required")}` }) }),
11730
+ /* @__PURE__ */ x(Ie, { spacing: 0.5, alignItems: "flex-end", children: T && /* @__PURE__ */ x(ui, { variant: "subtitle2", sx: ze.title, children: /* @__PURE__ */ x("strong", { children: v }) }) }),
11731
+ /* @__PURE__ */ oe(Ie, { paddingTop: 0.5, spacing: 0.5, direction: "row", children: [
11732
+ p && /* @__PURE__ */ x(ot, { title: s("isARepeatable"), placement: "bottom", arrow: !0, children: /* @__PURE__ */ x(md, { style: ze.icon }) }),
11733
+ c && /* @__PURE__ */ x(ot, { title: s("isALeaf"), placement: "bottom", arrow: !0, children: /* @__PURE__ */ x(pd, { style: ze.icon }) }),
11734
+ w && /* @__PURE__ */ x(ot, { title: s("isAHidden"), placement: "bottom", arrow: !0, children: /* @__PURE__ */ x(yd, { style: ze.icon }) }),
11735
+ l && /* @__PURE__ */ x(ot, { title: s("isTheRoot"), placement: "bottom", arrow: !0, children: /* @__PURE__ */ x(vd, { style: ze.icon }) }),
11736
+ b && /* @__PURE__ */ x(ot, { title: s("isABranch"), placement: "bottom", arrow: !0, children: /* @__PURE__ */ x(cd, { style: ze.icon }) }),
11737
+ M && /* @__PURE__ */ x(ot, { title: s("isATree"), placement: "bottom", arrow: !0, children: /* @__PURE__ */ x(gd, { style: ze.icon }) })
11738
+ ] })
11739
+ ] }),
11740
+ /* @__PURE__ */ oe(Ie, { direction: "row", justifyContent: "flex-end", spacing: 0, alignSelf: "flex-end", children: [
11741
+ !l && /* @__PURE__ */ x(ot, { title: s("remove"), arrow: !0, children: /* @__PURE__ */ x(
11742
+ st,
11743
+ {
11744
+ variant: "text",
11745
+ sx: ze.actionButton,
11746
+ size: "small",
11747
+ color: "error",
11748
+ onClick: () => r == null ? void 0 : r(o),
11749
+ children: /* @__PURE__ */ x(dd, {})
11750
+ }
11751
+ ) }),
11752
+ !T && /* @__PURE__ */ x(ot, { title: s("edit"), arrow: !0, children: /* @__PURE__ */ x(
11753
+ st,
11754
+ {
11755
+ variant: "text",
11756
+ color: "secondary",
11757
+ sx: ze.actionButton,
11758
+ size: "small",
11759
+ onClick: () => n == null ? void 0 : n(o),
11760
+ children: /* @__PURE__ */ x(hd, {})
11761
+ }
11762
+ ) }),
11763
+ c && /* @__PURE__ */ x(ot, { title: s("add"), arrow: !0, children: /* @__PURE__ */ x(
11764
+ st,
11765
+ {
11766
+ variant: "text",
11767
+ color: "success",
11768
+ sx: ze.actionButton,
11769
+ size: "small",
11770
+ onClick: () => t == null ? void 0 : t(o),
11771
+ children: /* @__PURE__ */ x(fd, {})
11772
+ }
11773
+ ) }),
11774
+ M && /* @__PURE__ */ x(ot, { title: s("show"), arrow: !0, children: /* @__PURE__ */ x(
11775
+ st,
11776
+ {
11777
+ variant: "text",
12390
11778
  color: "info",
11779
+ sx: ze.actionButton,
12391
11780
  size: "small",
12392
- label: s(`type.${h}`, {
12393
- ns: "form"
12394
- })
12395
- }), d && /* @__PURE__ */ x(Ie, {
12396
- direction: "row",
12397
- spacing: 0.5,
12398
- children: d && /* @__PURE__ */ x(mo, {
12399
- color: "warning",
12400
- size: "small",
12401
- variant: "outlined",
12402
- label: `${s("required")}`
12403
- })
12404
- }), /* @__PURE__ */ x(Ie, {
12405
- spacing: 0.5,
12406
- alignItems: "flex-end",
12407
- children: T && /* @__PURE__ */ x(ui, {
12408
- variant: "subtitle2",
12409
- sx: ze.title,
12410
- children: /* @__PURE__ */ x("strong", {
12411
- children: v
12412
- })
12413
- })
12414
- }), /* @__PURE__ */ oe(Ie, {
12415
- paddingTop: 0.5,
12416
- spacing: 0.5,
12417
- direction: "row",
12418
- children: [p && /* @__PURE__ */ x(ot, {
12419
- title: s("isARepeatable"),
12420
- placement: "bottom",
12421
- arrow: !0,
12422
- children: /* @__PURE__ */ x(md, {
12423
- style: ze.icon
12424
- })
12425
- }), c && /* @__PURE__ */ x(ot, {
12426
- title: s("isALeaf"),
12427
- placement: "bottom",
12428
- arrow: !0,
12429
- children: /* @__PURE__ */ x(pd, {
12430
- style: ze.icon
12431
- })
12432
- }), w && /* @__PURE__ */ x(ot, {
12433
- title: s("isAHidden"),
12434
- placement: "bottom",
12435
- arrow: !0,
12436
- children: /* @__PURE__ */ x(yd, {
12437
- style: ze.icon
12438
- })
12439
- }), l && /* @__PURE__ */ x(ot, {
12440
- title: s("isTheRoot"),
12441
- placement: "bottom",
12442
- arrow: !0,
12443
- children: /* @__PURE__ */ x(vd, {
12444
- style: ze.icon
12445
- })
12446
- }), b && /* @__PURE__ */ x(ot, {
12447
- title: s("isABranch"),
12448
- placement: "bottom",
12449
- arrow: !0,
12450
- children: /* @__PURE__ */ x(cd, {
12451
- style: ze.icon
12452
- })
12453
- }), M && /* @__PURE__ */ x(ot, {
12454
- title: s("isATree"),
12455
- placement: "bottom",
12456
- arrow: !0,
12457
- children: /* @__PURE__ */ x(gd, {
12458
- style: ze.icon
12459
- })
12460
- })]
12461
- })]
12462
- }), /* @__PURE__ */ oe(Ie, {
12463
- direction: "row",
12464
- justifyContent: "flex-end",
12465
- spacing: 0,
12466
- alignSelf: "flex-end",
12467
- children: [!l && /* @__PURE__ */ x(ot, {
12468
- title: s("remove"),
12469
- arrow: !0,
12470
- children: /* @__PURE__ */ x(st, {
12471
- variant: "text",
12472
- sx: ze.actionButton,
12473
- size: "small",
12474
- color: "error",
12475
- onClick: () => r == null ? void 0 : r(o),
12476
- children: /* @__PURE__ */ x(dd, {})
12477
- })
12478
- }), !T && /* @__PURE__ */ x(ot, {
12479
- title: s("edit"),
12480
- arrow: !0,
12481
- children: /* @__PURE__ */ x(st, {
12482
- variant: "text",
12483
- color: "secondary",
12484
- sx: ze.actionButton,
12485
- size: "small",
12486
- onClick: () => n == null ? void 0 : n(o),
12487
- children: /* @__PURE__ */ x(hd, {})
12488
- })
12489
- }), c && /* @__PURE__ */ x(ot, {
12490
- title: s("add"),
12491
- arrow: !0,
12492
- children: /* @__PURE__ */ x(st, {
12493
- variant: "text",
12494
- color: "success",
12495
- sx: ze.actionButton,
12496
- size: "small",
12497
- onClick: () => t == null ? void 0 : t(o),
12498
- children: /* @__PURE__ */ x(fd, {})
12499
- })
12500
- }), M && /* @__PURE__ */ x(ot, {
12501
- title: s("show"),
12502
- arrow: !0,
12503
- children: /* @__PURE__ */ x(st, {
12504
- variant: "text",
12505
- color: "info",
12506
- sx: ze.actionButton,
12507
- size: "small",
12508
- onClick: () => i == null ? void 0 : i(o),
12509
- children: /* @__PURE__ */ x(_d, {})
12510
- })
12511
- })]
12512
- })]
12513
- })
12514
- })]
12515
- });
11781
+ onClick: () => i == null ? void 0 : i(o),
11782
+ children: /* @__PURE__ */ x(_d, {})
11783
+ }
11784
+ ) })
11785
+ ] })
11786
+ ] }) })
11787
+ ] });
12516
11788
  }, Hx = zl(Kx), bd = () => {
12517
- const {
12518
- setModalOpen: e,
12519
- setCurrentHierarchyPointNode: t,
12520
- setTreeModalOpen: n,
12521
- setTreePath: r
12522
- } = ft();
12523
- return {
12524
- handleAddChildren: (l) => {
12525
- t(l), e("add");
12526
- },
12527
- handleCloseTreeModal: () => {
12528
- r([]), n(!1);
12529
- },
12530
- handleDeleteChildren: (l) => {
12531
- t(l), e("delete");
12532
- },
12533
- handleEditChildren: (l) => {
12534
- t(l), e("edit");
12535
- },
12536
- handleOpenTreeModal: (l) => {
12537
- var d, f;
12538
- const c = {
12539
- label: l == null ? void 0 : l.data.attributes.label,
12540
- path: ((f = (d = l == null ? void 0 : l.data) == null ? void 0 : d.attributes) == null ? void 0 : f.treePath) || ""
12541
- };
12542
- r((h) => [...h, c]), n(!0);
12543
- }
12544
- };
11789
+ const { setModalOpen: e, setCurrentHierarchyPointNode: t, setTreeModalOpen: n, setTreePath: r } = ft();
11790
+ return { handleAddChildren: (l) => {
11791
+ t(l), e("add");
11792
+ }, handleCloseTreeModal: () => {
11793
+ r([]), n(!1);
11794
+ }, handleDeleteChildren: (l) => {
11795
+ t(l), e("delete");
11796
+ }, handleEditChildren: (l) => {
11797
+ t(l), e("edit");
11798
+ }, handleOpenTreeModal: (l) => {
11799
+ var d, f;
11800
+ const c = {
11801
+ label: l == null ? void 0 : l.data.attributes.label,
11802
+ path: ((f = (d = l == null ? void 0 : l.data) == null ? void 0 : d.attributes) == null ? void 0 : f.treePath) || ""
11803
+ };
11804
+ r((h) => [...h, c]), n(!0);
11805
+ } };
12545
11806
  }, Xx = ({
12546
11807
  nodeDatum: e,
12547
11808
  hierarchyPointNode: t,
@@ -12550,24 +11811,22 @@ const ze = {
12550
11811
  onNodeMouseOver: i,
12551
11812
  onNodeMouseOut: o
12552
11813
  }) => {
12553
- const {
12554
- handleDeleteChildren: a,
12555
- handleEditChildren: s,
12556
- handleAddChildren: u,
12557
- handleOpenTreeModal: l
12558
- } = bd();
12559
- return /* @__PURE__ */ x(Hx, {
12560
- nodeDatum: e,
12561
- hierarchyPointNode: t,
12562
- toggleNode: n,
12563
- onNodeClick: r,
12564
- onNodeMouseOver: i,
12565
- onNodeMouseOut: o,
12566
- onAddChildren: u,
12567
- onOpenTreeModal: l,
12568
- onDeleteChildren: a,
12569
- onEditChildren: s
12570
- });
11814
+ const { handleDeleteChildren: a, handleEditChildren: s, handleAddChildren: u, handleOpenTreeModal: l } = bd();
11815
+ return /* @__PURE__ */ x(
11816
+ Hx,
11817
+ {
11818
+ nodeDatum: e,
11819
+ hierarchyPointNode: t,
11820
+ toggleNode: n,
11821
+ onNodeClick: r,
11822
+ onNodeMouseOver: i,
11823
+ onNodeMouseOut: o,
11824
+ onAddChildren: u,
11825
+ onOpenTreeModal: l,
11826
+ onDeleteChildren: a,
11827
+ onEditChildren: s
11828
+ }
11829
+ );
12571
11830
  }, Al = ({
12572
11831
  nodeDatum: e,
12573
11832
  hierarchyPointNode: t,
@@ -12575,206 +11834,105 @@ const ze = {
12575
11834
  onNodeClick: r,
12576
11835
  onNodeMouseOver: i,
12577
11836
  onNodeMouseOut: o
12578
- }) => /* @__PURE__ */ x(Xx, {
12579
- nodeDatum: e,
12580
- hierarchyPointNode: t,
12581
- toggleNode: n,
12582
- onNodeClick: r,
12583
- onNodeMouseOver: i,
12584
- onNodeMouseOut: o
12585
- }), Jx = () => {
12586
- const {
12587
- currentHierarchyPointNode: e,
12588
- modalOpen: t,
12589
- setModalOpen: n
12590
- } = ft(), {
12591
- t: r
12592
- } = ct(["modal", "snackMessage"]), i = t === "edit";
11837
+ }) => /* @__PURE__ */ x(
11838
+ Xx,
11839
+ {
11840
+ nodeDatum: e,
11841
+ hierarchyPointNode: t,
11842
+ toggleNode: n,
11843
+ onNodeClick: r,
11844
+ onNodeMouseOver: i,
11845
+ onNodeMouseOut: o
11846
+ }
11847
+ ), Jx = () => {
11848
+ const { currentHierarchyPointNode: e, modalOpen: t, setModalOpen: n } = ft(), { t: r } = ct(["modal", "snackMessage"]), i = t === "edit";
12593
11849
  return {
12594
11850
  closeModal: () => n(null),
12595
11851
  getTitleModalDelete: () => {
12596
11852
  var f, h;
12597
11853
  const d = (h = (f = e == null ? void 0 : e.data) == null ? void 0 : f.attributes) == null ? void 0 : h.label;
12598
- return r("deleteTitle", {
12599
- name: d,
12600
- ns: "modal"
12601
- });
11854
+ return r("deleteTitle", { name: d, ns: "modal" });
12602
11855
  },
12603
11856
  getTitleModalMutation: () => {
12604
11857
  var h;
12605
11858
  const d = (h = e == null ? void 0 : e.data) == null ? void 0 : h.attributes.label;
12606
- return d ? r(i ? "editTitle" : "addTitle", {
12607
- name: d,
12608
- ns: "modal"
12609
- }) : r("addFirstTitle", {
12610
- name: d,
12611
- ns: "modal"
12612
- });
11859
+ return d ? r(i ? "editTitle" : "addTitle", { name: d, ns: "modal" }) : r("addFirstTitle", { name: d, ns: "modal" });
12613
11860
  },
12614
11861
  isDeleteModal: t === "delete",
12615
11862
  isModalMutationOpen: i || t === "add"
12616
11863
  };
12617
11864
  }, Zx = () => {
12618
- const {
12619
- currentTree: e,
12620
- setCurrentTree: t,
12621
- tree: n
12622
- } = ft(), {
12623
- name: r,
12624
- errorName: i,
12625
- id: o
12626
- } = e;
12627
- return {
12628
- disabled: !!e.id && !n,
12629
- errorName: i,
12630
- handleChangeName: (u) => {
12631
- const {
12632
- value: l
12633
- } = u.target;
12634
- if (!l) {
12635
- t((c) => ({
12636
- ...c,
12637
- errorName: "Champs requis",
12638
- name: u.target.value
12639
- }));
12640
- return;
12641
- }
12642
- t((c) => ({
12643
- ...c,
12644
- errorName: "",
12645
- name: u.target.value
12646
- }));
12647
- },
12648
- id: o,
12649
- name: r
12650
- };
11865
+ const { currentTree: e, setCurrentTree: t, tree: n } = ft(), { name: r, errorName: i, id: o } = e;
11866
+ return { disabled: !!e.id && !n, errorName: i, handleChangeName: (u) => {
11867
+ const { value: l } = u.target;
11868
+ if (!l) {
11869
+ t((c) => ({ ...c, errorName: "Champs requis", name: u.target.value }));
11870
+ return;
11871
+ }
11872
+ t((c) => ({ ...c, errorName: "", name: u.target.value }));
11873
+ }, id: o, name: r };
12651
11874
  }, ew = () => {
12652
- const {
12653
- t: e
12654
- } = ct("form"), {
12655
- name: t,
12656
- handleChangeName: n,
12657
- errorName: r,
12658
- disabled: i
12659
- } = Zx();
12660
- return /* @__PURE__ */ x(wt, {
12661
- required: !0,
12662
- label: e("treeName"),
12663
- size: "small",
12664
- onChange: n,
12665
- value: t,
12666
- error: !!r,
12667
- disabled: i
12668
- });
11875
+ const { t: e } = ct("form"), { name: t, handleChangeName: n, errorName: r, disabled: i } = Zx();
11876
+ return /* @__PURE__ */ x(
11877
+ wt,
11878
+ {
11879
+ required: !0,
11880
+ label: e("treeName"),
11881
+ size: "small",
11882
+ onChange: n,
11883
+ value: t,
11884
+ error: !!r,
11885
+ disabled: i
11886
+ }
11887
+ );
12669
11888
  }, tw = () => {
12670
11889
  var h, v;
12671
- const {
12672
- tree: e,
12673
- treeModalOpen: t,
12674
- treePath: n,
12675
- endPoint: r
12676
- } = ft(), {
12677
- handleCloseTreeModal: i
12678
- } = bd(), {
12679
- getTitleModalMutation: o,
12680
- closeModal: a,
12681
- getTitleModalDelete: s,
12682
- isModalMutationOpen: u,
12683
- isDeleteModal: l
12684
- } = Jx(), c = (h = n == null ? void 0 : n.at(-1)) == null ? void 0 : h.path, d = (v = n == null ? void 0 : n.at(-1)) == null ? void 0 : v.label, f = e && jn(e, c);
12685
- return /* @__PURE__ */ oe(ki, {
12686
- children: [/* @__PURE__ */ oe(EM, {
12687
- children: [/* @__PURE__ */ x(wM, {
12688
- children: /* @__PURE__ */ oe(Ie, {
12689
- justifyContent: "space-between",
12690
- direction: "row",
12691
- alignItems: "center",
12692
- children: [/* @__PURE__ */ x(rh, {}), !!r && /* @__PURE__ */ oe(Ie, {
12693
- direction: "row",
12694
- alignItems: "center",
12695
- spacing: 2,
12696
- children: [/* @__PURE__ */ x(ew, {}), /* @__PURE__ */ x(ld, {
12697
- size: "small",
12698
- arrowOnly: !0,
12699
- showBtnAddNewTree: !0
12700
- })]
12701
- })]
12702
- })
12703
- }), /* @__PURE__ */ x(NM, {
12704
- children: /* @__PURE__ */ x(qu, {
12705
- data: e,
12706
- renderCustomNodeElement: Al
12707
- })
12708
- }), /* @__PURE__ */ x(OM, {
12709
- children: /* @__PURE__ */ x(ey, {
12710
- value: e
12711
- })
12712
- }), /* @__PURE__ */ x(MM, {
12713
- children: /* @__PURE__ */ x(fM, {
12714
- value: e
12715
- })
12716
- })]
12717
- }), /* @__PURE__ */ x(Tl, {
12718
- open: u,
12719
- onClose: a,
12720
- title: o(),
12721
- children: /* @__PURE__ */ x(ux, {
12722
- onClose: a
12723
- })
12724
- }), /* @__PURE__ */ x(Tl, {
12725
- open: l,
12726
- onClose: a,
12727
- title: s(),
12728
- children: /* @__PURE__ */ x(YM, {
12729
- onClose: a
12730
- })
12731
- }), /* @__PURE__ */ x(_M, {
12732
- open: t,
12733
- onClose: i,
12734
- title: d,
12735
- children: f && /* @__PURE__ */ x(qu, {
12736
- data: f,
12737
- renderCustomNodeElement: Al
12738
- })
12739
- })]
12740
- });
12741
- }, nw = "0.7.0", rw = ({
12742
- children: e,
12743
- endPoint: t,
12744
- initialTree: n,
12745
- initialTreeId: r
12746
- }) => {
12747
- const [i, o] = Ce(Ft.currentHierarchyPointNode), [a, s] = Ce(Ft.modalOpen), [u, l] = Ce(Ft.treeModalOpen), [c, d] = Ce(Ft.treePath), [f, h] = kl(FM, n || Ft.tree), [v, p] = Ce(r ? {
12748
- ...Ft.currentTree,
12749
- id: r
12750
- } : Ft.currentTree), g = wr(() => ({
12751
- currentHierarchyPointNode: i,
12752
- currentTree: v,
12753
- dispatchTree: h,
12754
- endPoint: t,
12755
- modalOpen: a,
12756
- setCurrentHierarchyPointNode: o,
12757
- setCurrentTree: p,
12758
- setModalOpen: s,
12759
- setTreeModalOpen: l,
12760
- setTreePath: d,
12761
- tree: f,
12762
- treeModalOpen: u,
12763
- treePath: c,
12764
- version: nw
12765
- }), [i, a, u, c, f, v, t]);
11890
+ const { tree: e, treeModalOpen: t, treePath: n, endPoint: r } = ft(), { handleCloseTreeModal: i } = bd(), { getTitleModalMutation: o, closeModal: a, getTitleModalDelete: s, isModalMutationOpen: u, isDeleteModal: l } = Jx(), c = (h = n == null ? void 0 : n.at(-1)) == null ? void 0 : h.path, d = (v = n == null ? void 0 : n.at(-1)) == null ? void 0 : v.label, f = e && jn(e, c);
11891
+ return /* @__PURE__ */ oe(ki, { children: [
11892
+ /* @__PURE__ */ oe(EM, { children: [
11893
+ /* @__PURE__ */ x(wM, { children: /* @__PURE__ */ oe(Ie, { justifyContent: "space-between", direction: "row", alignItems: "center", children: [
11894
+ /* @__PURE__ */ x(rh, {}),
11895
+ !!r && /* @__PURE__ */ oe(Ie, { direction: "row", alignItems: "center", spacing: 2, children: [
11896
+ /* @__PURE__ */ x(ew, {}),
11897
+ /* @__PURE__ */ x(ld, { size: "small", arrowOnly: !0, showBtnAddNewTree: !0 })
11898
+ ] })
11899
+ ] }) }),
11900
+ /* @__PURE__ */ x(NM, { children: /* @__PURE__ */ x(qu, { data: e, renderCustomNodeElement: Al }) }),
11901
+ /* @__PURE__ */ x(OM, { children: /* @__PURE__ */ x(ey, { value: e }) }),
11902
+ /* @__PURE__ */ x(MM, { children: /* @__PURE__ */ x(fM, { value: e }) })
11903
+ ] }),
11904
+ /* @__PURE__ */ x(Tl, { open: u, onClose: a, title: o(), children: /* @__PURE__ */ x(ux, { onClose: a }) }),
11905
+ /* @__PURE__ */ x(Tl, { open: l, onClose: a, title: s(), children: /* @__PURE__ */ x(YM, { onClose: a }) }),
11906
+ /* @__PURE__ */ x(_M, { open: t, onClose: i, title: d, children: f && /* @__PURE__ */ x(qu, { data: f, renderCustomNodeElement: Al }) })
11907
+ ] });
11908
+ }, nw = "0.7.1", rw = ({ children: e, endPoint: t, initialTree: n, initialTreeId: r }) => {
11909
+ const [i, o] = Ce(Ft.currentHierarchyPointNode), [a, s] = Ce(Ft.modalOpen), [u, l] = Ce(Ft.treeModalOpen), [c, d] = Ce(Ft.treePath), [f, h] = kl(FM, n || Ft.tree), [v, p] = Ce(
11910
+ r ? { ...Ft.currentTree, id: r } : Ft.currentTree
11911
+ ), g = wr(
11912
+ () => ({
11913
+ currentHierarchyPointNode: i,
11914
+ currentTree: v,
11915
+ dispatchTree: h,
11916
+ endPoint: t,
11917
+ modalOpen: a,
11918
+ setCurrentHierarchyPointNode: o,
11919
+ setCurrentTree: p,
11920
+ setModalOpen: s,
11921
+ setTreeModalOpen: l,
11922
+ setTreePath: d,
11923
+ tree: f,
11924
+ treeModalOpen: u,
11925
+ treePath: c,
11926
+ version: nw
11927
+ }),
11928
+ [i, a, u, c, f, v, t]
11929
+ );
12766
11930
  return Es(v.id, {
12767
11931
  enabled: !!r,
12768
11932
  onSuccess: async (M) => {
12769
- M && (p({
12770
- id: M == null ? void 0 : M.id,
12771
- name: M == null ? void 0 : M.label
12772
- }), h(id((M == null ? void 0 : M.workflow) || null)));
11933
+ M && (p({ id: M == null ? void 0 : M.id, name: M == null ? void 0 : M.label }), h(id((M == null ? void 0 : M.workflow) || null)));
12773
11934
  }
12774
- }), /* @__PURE__ */ x(_f.Provider, {
12775
- value: g,
12776
- children: e
12777
- });
11935
+ }), /* @__PURE__ */ x(_f.Provider, { value: g, children: e });
12778
11936
  }, iw = "Create Tree", ow = "Download JSON File", aw = "Save", sw = "Update", uw = {
12779
11937
  createTree: iw,
12780
11938
  downloadJSONFile: ow,
@@ -12955,29 +12113,9 @@ Fd.use(Ud).use(jd).init({
12955
12113
  }
12956
12114
  }
12957
12115
  }).then();
12958
- const fN = ({
12959
- authToken: e,
12960
- endPoint: t,
12961
- initialTree: n,
12962
- initialTreeId: r
12963
- }) => (wd(() => {
12116
+ const fN = ({ authToken: e, endPoint: t, initialTree: n, initialTreeId: r }) => (wd(() => {
12964
12117
  On.defaults.baseURL = t, On.defaults.headers.common.Authorization = `Bearer ${e}`;
12965
- }, [t, e]), /* @__PURE__ */ x(Nd, {
12966
- client: Gd,
12967
- children: /* @__PURE__ */ x(Xd, {
12968
- authToken: e,
12969
- children: /* @__PURE__ */ x(rw, {
12970
- endPoint: t,
12971
- initialTree: n,
12972
- initialTreeId: r,
12973
- children: /* @__PURE__ */ x(Wd, {
12974
- children: /* @__PURE__ */ x(th, {
12975
- children: /* @__PURE__ */ x(tw, {})
12976
- })
12977
- })
12978
- })
12979
- })
12980
- }));
12118
+ }, [t, e]), /* @__PURE__ */ x(Nd, { client: Gd, children: /* @__PURE__ */ x(Xd, { authToken: e, children: /* @__PURE__ */ x(rw, { endPoint: t, initialTree: n, initialTreeId: r, children: /* @__PURE__ */ x(Wd, { children: /* @__PURE__ */ x(th, { children: /* @__PURE__ */ x(tw, {}) }) }) }) }) }));
12981
12119
  export {
12982
12120
  Kv as TreePlusIcon,
12983
12121
  fN as Treege