@attabot/complaint-app 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { jsx as l, jsxs as C, Fragment as Ye } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as S, Fragment as Ye } from "react/jsx-runtime";
2
2
  import * as _ from "react";
3
3
  import Aa, { createContext as gn, useMemo as ie, useContext as yn, forwardRef as Fa, createElement as Zn, useState as U, useRef as wn, useEffect as X, useCallback as _e } from "react";
4
4
  import "react-dom";
@@ -43,7 +43,7 @@ function ts(e) {
43
43
  }
44
44
  return rs(t, n, null, e);
45
45
  }
46
- function k(e, t) {
46
+ function O(e, t) {
47
47
  if (e === !1 || e === null || typeof e > "u")
48
48
  throw new Error(t);
49
49
  }
@@ -114,24 +114,24 @@ function rs(e, t, n, r) {
114
114
  }
115
115
  function f() {
116
116
  i = Ne.Pop;
117
- let m = u(), h = m == null ? null : m - d;
117
+ let m = u(), g = m == null ? null : m - d;
118
118
  d = m, c && c({
119
119
  action: i,
120
120
  location: w.location,
121
- delta: h
121
+ delta: g
122
122
  });
123
123
  }
124
- function y(m, h) {
124
+ function y(m, g) {
125
125
  i = Ne.Push;
126
- let p = Xn(w.location, m, h);
126
+ let p = Xn(w.location, m, g);
127
127
  d = u() + 1;
128
- let b = kr(p, d), S = w.createHref(p);
128
+ let b = kr(p, d), C = w.createHref(p);
129
129
  try {
130
- s.pushState(b, "", S);
131
- } catch (L) {
132
- if (L instanceof DOMException && L.name === "DataCloneError")
133
- throw L;
134
- a.location.assign(S);
130
+ s.pushState(b, "", C);
131
+ } catch (R) {
132
+ if (R instanceof DOMException && R.name === "DataCloneError")
133
+ throw R;
134
+ a.location.assign(C);
135
135
  }
136
136
  o && c && c({
137
137
  action: i,
@@ -139,20 +139,20 @@ function rs(e, t, n, r) {
139
139
  delta: 1
140
140
  });
141
141
  }
142
- function E(m, h) {
142
+ function E(m, g) {
143
143
  i = Ne.Replace;
144
- let p = Xn(w.location, m, h);
144
+ let p = Xn(w.location, m, g);
145
145
  d = u();
146
- let b = kr(p, d), S = w.createHref(p);
147
- s.replaceState(b, "", S), o && c && c({
146
+ let b = kr(p, d), C = w.createHref(p);
147
+ s.replaceState(b, "", C), o && c && c({
148
148
  action: i,
149
149
  location: w.location,
150
150
  delta: 0
151
151
  });
152
152
  }
153
153
  function v(m) {
154
- let h = a.location.origin !== "null" ? a.location.origin : a.location.href, p = typeof m == "string" ? m : _t(m);
155
- return p = p.replace(/ $/, "%20"), k(h, "No window.location.(origin|href) available to create URL for href: " + p), new URL(p, h);
154
+ let g = a.location.origin !== "null" ? a.location.origin : a.location.href, p = typeof m == "string" ? m : _t(m);
155
+ return p = p.replace(/ $/, "%20"), O(g, "No window.location.(origin|href) available to create URL for href: " + p), new URL(p, g);
156
156
  }
157
157
  let w = {
158
158
  get action() {
@@ -173,11 +173,11 @@ function rs(e, t, n, r) {
173
173
  },
174
174
  createURL: v,
175
175
  encodeLocation(m) {
176
- let h = v(m);
176
+ let g = v(m);
177
177
  return {
178
- pathname: h.pathname,
179
- search: h.search,
180
- hash: h.hash
178
+ pathname: g.pathname,
179
+ search: g.search,
180
+ hash: g.hash
181
181
  };
182
182
  },
183
183
  push: y,
@@ -215,9 +215,9 @@ function Oa(e, t, n, r) {
215
215
  childrenIndex: s,
216
216
  route: o
217
217
  };
218
- c.relativePath.startsWith("/") && (k(c.relativePath.startsWith(r), 'Absolute route path "' + c.relativePath + '" nested under path ' + ('"' + r + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), c.relativePath = c.relativePath.slice(r.length));
218
+ c.relativePath.startsWith("/") && (O(c.relativePath.startsWith(r), 'Absolute route path "' + c.relativePath + '" nested under path ' + ('"' + r + '" is not valid. An absolute child route path ') + "must start with the combined path of all its parent routes."), c.relativePath = c.relativePath.slice(r.length));
219
219
  let d = we([r, c.relativePath]), u = n.concat(c);
220
- o.children && o.children.length > 0 && (k(
220
+ o.children && o.children.length > 0 && (O(
221
221
  // Our types know better, but runtime JS may not!
222
222
  // @ts-expect-error
223
223
  o.index !== !0,
@@ -385,7 +385,7 @@ function Da(e, t) {
385
385
  function Pa(e, t, n, r) {
386
386
  r === void 0 && (r = !1);
387
387
  let a;
388
- typeof e == "string" ? a = et(e) : (a = St({}, e), k(!a.pathname || !a.pathname.includes("?"), _n("?", "pathname", "search", a)), k(!a.pathname || !a.pathname.includes("#"), _n("#", "pathname", "hash", a)), k(!a.search || !a.search.includes("#"), _n("#", "search", "hash", a)));
388
+ typeof e == "string" ? a = et(e) : (a = St({}, e), O(!a.pathname || !a.pathname.includes("?"), _n("?", "pathname", "search", a)), O(!a.pathname || !a.pathname.includes("#"), _n("#", "pathname", "hash", a)), O(!a.search || !a.search.includes("#"), _n("#", "search", "hash", a)));
389
389
  let o = e === "" || a.pathname === "", s = o ? "/" : a.pathname, i;
390
390
  if (s == null)
391
391
  i = n;
@@ -441,12 +441,12 @@ function xs(e, t) {
441
441
  let {
442
442
  relative: n
443
443
  } = t === void 0 ? {} : t;
444
- tt() || (process.env.NODE_ENV !== "production" ? k(
444
+ tt() || (process.env.NODE_ENV !== "production" ? O(
445
445
  !1,
446
446
  // TODO: This error is probably because they somehow have 2 versions of the
447
447
  // router loaded. We can help them understand how to avoid that.
448
448
  "useHref() may be used only in the context of a <Router> component."
449
- ) : k(!1));
449
+ ) : O(!1));
450
450
  let {
451
451
  basename: r,
452
452
  navigator: a
@@ -467,12 +467,12 @@ function tt() {
467
467
  return _.useContext(At) != null;
468
468
  }
469
469
  function Ie() {
470
- return tt() || (process.env.NODE_ENV !== "production" ? k(
470
+ return tt() || (process.env.NODE_ENV !== "production" ? O(
471
471
  !1,
472
472
  // TODO: This error is probably because they somehow have 2 versions of the
473
473
  // router loaded. We can help them understand how to avoid that.
474
474
  "useLocation() may be used only in the context of a <Router> component."
475
- ) : k(!1)), _.useContext(At).location;
475
+ ) : O(!1)), _.useContext(At).location;
476
476
  }
477
477
  const Ba = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
478
478
  function $a(e) {
@@ -485,12 +485,12 @@ function Me() {
485
485
  return e ? qs() : Ls();
486
486
  }
487
487
  function Ls() {
488
- tt() || (process.env.NODE_ENV !== "production" ? k(
488
+ tt() || (process.env.NODE_ENV !== "production" ? O(
489
489
  !1,
490
490
  // TODO: This error is probably because they somehow have 2 versions of the
491
491
  // router loaded. We can help them understand how to avoid that.
492
492
  "useNavigate() may be used only in the context of a <Router> component."
493
- ) : k(!1));
493
+ ) : O(!1));
494
494
  let e = _.useContext(Lt), {
495
495
  basename: t,
496
496
  future: n,
@@ -534,12 +534,12 @@ function As(e, t) {
534
534
  return Fs(e, t);
535
535
  }
536
536
  function Fs(e, t, n, r) {
537
- tt() || (process.env.NODE_ENV !== "production" ? k(
537
+ tt() || (process.env.NODE_ENV !== "production" ? O(
538
538
  !1,
539
539
  // TODO: This error is probably because they somehow have 2 versions of the
540
540
  // router loaded. We can help them understand how to avoid that.
541
541
  "useRoutes() may be used only in the context of a <Router> component."
542
- ) : k(!1));
542
+ ) : O(!1));
543
543
  let {
544
544
  navigator: a
545
545
  } = _.useContext(le), {
@@ -555,7 +555,7 @@ function Fs(e, t, n, r) {
555
555
  if (t) {
556
556
  var E;
557
557
  let p = typeof t == "string" ? et(t) : t;
558
- d === "/" || (E = p.pathname) != null && E.startsWith(d) || (process.env.NODE_ENV !== "production" ? k(!1, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes. The current pathname base is "' + d + '" ') + ('but pathname "' + p.pathname + '" was given in the `location` prop.')) : k(!1)), y = p;
558
+ d === "/" || (E = p.pathname) != null && E.startsWith(d) || (process.env.NODE_ENV !== "production" ? O(!1, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was " + ('matched by all parent routes. The current pathname base is "' + d + '" ') + ('but pathname "' + p.pathname + '" was given in the `location` prop.')) : O(!1)), y = p;
559
559
  } else
560
560
  y = f;
561
561
  let v = y.pathname || "/", w = v;
@@ -567,7 +567,7 @@ function Fs(e, t, n, r) {
567
567
  pathname: w
568
568
  });
569
569
  process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && ne(u || m != null, 'No routes matched location "' + y.pathname + y.search + y.hash + '" '), process.env.NODE_ENV !== "production" && ne(m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + y.pathname + y.search + y.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));
570
- let h = Is(m && m.map((p) => Object.assign({}, p, {
570
+ let g = Is(m && m.map((p) => Object.assign({}, p, {
571
571
  params: Object.assign({}, i, p.params),
572
572
  pathname: we([
573
573
  d,
@@ -580,7 +580,7 @@ function Fs(e, t, n, r) {
580
580
  a.encodeLocation ? a.encodeLocation(p.pathnameBase).pathname : p.pathnameBase
581
581
  ])
582
582
  })), o, n, r);
583
- return t && h ? /* @__PURE__ */ _.createElement(At.Provider, {
583
+ return t && g ? /* @__PURE__ */ _.createElement(At.Provider, {
584
584
  value: {
585
585
  location: Nt({
586
586
  pathname: "/",
@@ -591,7 +591,7 @@ function Fs(e, t, n, r) {
591
591
  }, y),
592
592
  navigationType: Ne.Pop
593
593
  }
594
- }, h) : h;
594
+ }, g) : g;
595
595
  }
596
596
  function Os() {
597
597
  let e = js(), t = Ns(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", a = {
@@ -676,7 +676,7 @@ function Is(e, t, n, r) {
676
676
  let s = e, i = (a = n) == null ? void 0 : a.errors;
677
677
  if (i != null) {
678
678
  let u = s.findIndex((f) => f.route.id && i?.[f.route.id] !== void 0);
679
- u >= 0 || (process.env.NODE_ENV !== "production" ? k(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(i).join(",")) : k(!1)), s = s.slice(0, Math.min(s.length, u + 1));
679
+ u >= 0 || (process.env.NODE_ENV !== "production" ? O(!1, "Could not find a matching route for errors on route IDs: " + Object.keys(i).join(",")) : O(!1)), s = s.slice(0, Math.min(s.length, u + 1));
680
680
  }
681
681
  let c = !1, d = -1;
682
682
  if (n && r && r.v7_partialHydration)
@@ -696,13 +696,13 @@ function Is(e, t, n, r) {
696
696
  return s.reduceRight((u, f, y) => {
697
697
  let E, v = !1, w = null, m = null;
698
698
  n && (E = i && f.route.id ? i[f.route.id] : void 0, w = f.route.errorElement || ks, c && (d < 0 && y === 0 ? (qa("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), v = !0, m = null) : d === y && (v = !0, m = f.route.hydrateFallbackElement || null)));
699
- let h = t.concat(s.slice(0, y + 1)), p = () => {
699
+ let g = t.concat(s.slice(0, y + 1)), p = () => {
700
700
  let b;
701
701
  return E ? b = w : v ? b = m : f.route.Component ? b = /* @__PURE__ */ _.createElement(f.route.Component, null) : f.route.element ? b = f.route.element : b = u, /* @__PURE__ */ _.createElement(Ps, {
702
702
  match: f,
703
703
  routeContext: {
704
704
  outlet: u,
705
- matches: h,
705
+ matches: g,
706
706
  isDataRoute: n != null
707
707
  },
708
708
  children: b
@@ -716,7 +716,7 @@ function Is(e, t, n, r) {
716
716
  children: p(),
717
717
  routeContext: {
718
718
  outlet: null,
719
- matches: h,
719
+ matches: g,
720
720
  isDataRoute: !0
721
721
  }
722
722
  }) : p();
@@ -732,19 +732,19 @@ function ur(e) {
732
732
  }
733
733
  function Ms(e) {
734
734
  let t = _.useContext(Lt);
735
- return t || (process.env.NODE_ENV !== "production" ? k(!1, ur(e)) : k(!1)), t;
735
+ return t || (process.env.NODE_ENV !== "production" ? O(!1, ur(e)) : O(!1)), t;
736
736
  }
737
737
  function Bs(e) {
738
738
  let t = _.useContext(cr);
739
- return t || (process.env.NODE_ENV !== "production" ? k(!1, ur(e)) : k(!1)), t;
739
+ return t || (process.env.NODE_ENV !== "production" ? O(!1, ur(e)) : O(!1)), t;
740
740
  }
741
741
  function $s(e) {
742
742
  let t = _.useContext(fe);
743
- return t || (process.env.NODE_ENV !== "production" ? k(!1, ur(e)) : k(!1)), t;
743
+ return t || (process.env.NODE_ENV !== "production" ? O(!1, ur(e)) : O(!1)), t;
744
744
  }
745
745
  function pr(e) {
746
746
  let t = $s(e), n = t.matches[t.matches.length - 1];
747
- return n.route.id || (process.env.NODE_ENV !== "production" ? k(!1, e + ' can only be used on routes that contain a unique "id"') : k(!1)), n.route.id;
747
+ return n.route.id || (process.env.NODE_ENV !== "production" ? O(!1, e + ' can only be used on routes that contain a unique "id"') : O(!1)), n.route.id;
748
748
  }
749
749
  function Us() {
750
750
  return pr(Tt.UseRouteId);
@@ -779,7 +779,7 @@ function Ws(e, t) {
779
779
  e?.v7_startTransition === void 0 && $r("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"), e?.v7_relativeSplatPath === void 0 && $r("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath");
780
780
  }
781
781
  function Ve(e) {
782
- process.env.NODE_ENV !== "production" ? k(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.") : k(!1);
782
+ process.env.NODE_ENV !== "production" ? O(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.") : O(!1);
783
783
  }
784
784
  function Hs(e) {
785
785
  let {
@@ -791,7 +791,7 @@ function Hs(e) {
791
791
  static: s = !1,
792
792
  future: i
793
793
  } = e;
794
- tt() && (process.env.NODE_ENV !== "production" ? k(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : k(!1));
794
+ tt() && (process.env.NODE_ENV !== "production" ? O(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : O(!1));
795
795
  let c = t.replace(/^\/*/, "/"), d = _.useMemo(() => ({
796
796
  basename: c,
797
797
  navigator: o,
@@ -847,7 +847,7 @@ function Yn(e, t) {
847
847
  n.push.apply(n, Yn(r.props.children, o));
848
848
  return;
849
849
  }
850
- r.type !== Ve && (process.env.NODE_ENV !== "production" ? k(!1, "[" + (typeof r.type == "string" ? r.type : r.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : k(!1)), !r.props.index || !r.props.children || (process.env.NODE_ENV !== "production" ? k(!1, "An index route cannot have child routes.") : k(!1));
850
+ r.type !== Ve && (process.env.NODE_ENV !== "production" ? O(!1, "[" + (typeof r.type == "string" ? r.type : r.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : O(!1)), !r.props.index || !r.props.children || (process.env.NODE_ENV !== "production" ? O(!1, "An index route cannot have child routes.") : O(!1));
851
851
  let s = {
852
852
  id: r.props.id || o.join("-"),
853
853
  caseSensitive: r.props.caseSensitive,
@@ -1029,14 +1029,14 @@ const ci = typeof window < "u" && typeof window.document < "u" && typeof window.
1029
1029
  } = _.useContext(le), v, w = !1;
1030
1030
  if (typeof d == "string" && di.test(d) && (v = d, ci))
1031
1031
  try {
1032
- let b = new URL(window.location.href), S = d.startsWith("//") ? new URL(b.protocol + d) : new URL(d), L = Re(S.pathname, E);
1033
- S.origin === b.origin && L != null ? d = L + S.search + S.hash : w = !0;
1032
+ let b = new URL(window.location.href), C = d.startsWith("//") ? new URL(b.protocol + d) : new URL(d), R = Re(C.pathname, E);
1033
+ C.origin === b.origin && R != null ? d = R + C.search + C.hash : w = !0;
1034
1034
  } catch {
1035
1035
  process.env.NODE_ENV !== "production" && ne(!1, '<Link to="' + d + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1036
1036
  }
1037
1037
  let m = xs(d, {
1038
1038
  relative: a
1039
- }), h = mi(d, {
1039
+ }), g = mi(d, {
1040
1040
  replace: s,
1041
1041
  state: i,
1042
1042
  target: c,
@@ -1045,7 +1045,7 @@ const ci = typeof window < "u" && typeof window.document < "u" && typeof window.
1045
1045
  viewTransition: f
1046
1046
  });
1047
1047
  function p(b) {
1048
- r && r(b), b.defaultPrevented || h(b);
1048
+ r && r(b), b.defaultPrevented || g(b);
1049
1049
  }
1050
1050
  return (
1051
1051
  // eslint-disable-next-line jsx-a11y/anchor-has-content
@@ -1073,21 +1073,21 @@ const ui = /* @__PURE__ */ _.forwardRef(function(t, n) {
1073
1073
  }), E = Ie(), v = _.useContext(cr), {
1074
1074
  navigator: w,
1075
1075
  basename: m
1076
- } = _.useContext(le), h = v != null && // Conditional usage is OK here because the usage of a data router is static
1076
+ } = _.useContext(le), g = v != null && // Conditional usage is OK here because the usage of a data router is static
1077
1077
  // eslint-disable-next-line react-hooks/rules-of-hooks
1078
- Ci(y) && d === !0, p = w.encodeLocation ? w.encodeLocation(y).pathname : y.pathname, b = E.pathname, S = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
1079
- a || (b = b.toLowerCase(), S = S ? S.toLowerCase() : null, p = p.toLowerCase()), S && m && (S = Re(S, m) || S);
1080
- const L = p !== "/" && p.endsWith("/") ? p.length - 1 : p.length;
1081
- let T = b === p || !s && b.startsWith(p) && b.charAt(L) === "/", O = S != null && (S === p || !s && S.startsWith(p) && S.charAt(p.length) === "/"), $ = {
1082
- isActive: T,
1083
- isPending: O,
1084
- isTransitioning: h
1085
- }, A = T ? r : void 0, R;
1086
- typeof o == "function" ? R = o($) : R = [o, T ? "active" : null, O ? "pending" : null, h ? "transitioning" : null].filter(Boolean).join(" ");
1078
+ Ci(y) && d === !0, p = w.encodeLocation ? w.encodeLocation(y).pathname : y.pathname, b = E.pathname, C = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
1079
+ a || (b = b.toLowerCase(), C = C ? C.toLowerCase() : null, p = p.toLowerCase()), C && m && (C = Re(C, m) || C);
1080
+ const R = p !== "/" && p.endsWith("/") ? p.length - 1 : p.length;
1081
+ let L = b === p || !s && b.startsWith(p) && b.charAt(R) === "/", k = C != null && (C === p || !s && C.startsWith(p) && C.charAt(p.length) === "/"), $ = {
1082
+ isActive: L,
1083
+ isPending: k,
1084
+ isTransitioning: g
1085
+ }, A = L ? r : void 0, x;
1086
+ typeof o == "function" ? x = o($) : x = [o, L ? "active" : null, k ? "pending" : null, g ? "transitioning" : null].filter(Boolean).join(" ");
1087
1087
  let D = typeof i == "function" ? i($) : i;
1088
1088
  return /* @__PURE__ */ _.createElement(Wa, Ke({}, f, {
1089
1089
  "aria-current": A,
1090
- className: R,
1090
+ className: x,
1091
1091
  ref: n,
1092
1092
  style: D,
1093
1093
  to: c,
@@ -1110,13 +1110,13 @@ const pi = /* @__PURE__ */ _.forwardRef((e, t) => {
1110
1110
  viewTransition: y
1111
1111
  } = e, E = fr(e, ai), v = bi(), w = vi(c, {
1112
1112
  relative: u
1113
- }), m = i.toLowerCase() === "get" ? "get" : "post", h = (p) => {
1113
+ }), m = i.toLowerCase() === "get" ? "get" : "post", g = (p) => {
1114
1114
  if (d && d(p), p.defaultPrevented) return;
1115
1115
  p.preventDefault();
1116
- let b = p.nativeEvent.submitter, S = b?.getAttribute("formmethod") || i;
1116
+ let b = p.nativeEvent.submitter, C = b?.getAttribute("formmethod") || i;
1117
1117
  v(b || p.currentTarget, {
1118
1118
  fetcherKey: n,
1119
- method: S,
1119
+ method: C,
1120
1120
  navigate: r,
1121
1121
  replace: o,
1122
1122
  state: s,
@@ -1129,7 +1129,7 @@ const pi = /* @__PURE__ */ _.forwardRef((e, t) => {
1129
1129
  ref: t,
1130
1130
  method: m,
1131
1131
  action: w,
1132
- onSubmit: a ? d : h
1132
+ onSubmit: a ? d : g
1133
1133
  }, E));
1134
1134
  });
1135
1135
  process.env.NODE_ENV !== "production" && (pi.displayName = "Form");
@@ -1147,7 +1147,7 @@ function fi(e) {
1147
1147
  }
1148
1148
  function Ha(e) {
1149
1149
  let t = _.useContext(Lt);
1150
- return t || (process.env.NODE_ENV !== "production" ? k(!1, fi(e)) : k(!1)), t;
1150
+ return t || (process.env.NODE_ENV !== "production" ? O(!1, fi(e)) : O(!1)), t;
1151
1151
  }
1152
1152
  function mi(e, t) {
1153
1153
  let {
@@ -1238,7 +1238,7 @@ function vi(e, t) {
1238
1238
  } = t === void 0 ? {} : t, {
1239
1239
  basename: r
1240
1240
  } = _.useContext(le), a = _.useContext(fe);
1241
- a || (process.env.NODE_ENV !== "production" ? k(!1, "useFormAction must be used inside a RouteContext") : k(!1));
1241
+ a || (process.env.NODE_ENV !== "production" ? O(!1, "useFormAction must be used inside a RouteContext") : O(!1));
1242
1242
  let [o] = a.matches.slice(-1), s = Ke({}, Ft(e || ".", {
1243
1243
  relative: n
1244
1244
  })), i = Ie();
@@ -1256,7 +1256,7 @@ function vi(e, t) {
1256
1256
  function Ci(e, t) {
1257
1257
  t === void 0 && (t = {});
1258
1258
  let n = _.useContext(Va);
1259
- n == null && (process.env.NODE_ENV !== "production" ? k(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : k(!1));
1259
+ n == null && (process.env.NODE_ENV !== "production" ? O(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : O(!1));
1260
1260
  let {
1261
1261
  basename: r
1262
1262
  } = Ha(dn.useViewTransitionState), a = Ft(e, {
@@ -1513,7 +1513,7 @@ const ll = (e) => {
1513
1513
  !1
1514
1514
  ), (a) => {
1515
1515
  r.push(a), Ae.postMessage(n, "*");
1516
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Y(Ae.postMessage)), ul = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ae) : typeof process < "u" && process.nextTick || Ga, eo = (e) => e != null && Y(e[Ot]), pl = (e) => e != null && Rt(e, Ot) && eo(e), g = {
1516
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Y(Ae.postMessage)), ul = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ae) : typeof process < "u" && process.nextTick || Ga, eo = (e) => e != null && Y(e[Ot]), pl = (e) => e != null && Rt(e, Ot) && eo(e), h = {
1517
1517
  isArray: ke,
1518
1518
  isArrayBuffer: Ja,
1519
1519
  isBuffer: nt,
@@ -1577,7 +1577,7 @@ const ll = (e) => {
1577
1577
  asap: ul,
1578
1578
  isIterable: eo,
1579
1579
  isSafeIterable: pl
1580
- }, fl = g.toObjectSet([
1580
+ }, fl = h.toObjectSet([
1581
1581
  "age",
1582
1582
  "authorization",
1583
1583
  "content-length",
@@ -1601,8 +1601,8 @@ const ll = (e) => {
1601
1601
  return e && e.split(`
1602
1602
  `).forEach(function(s) {
1603
1603
  a = s.indexOf(":"), n = s.substring(0, a).trim().toLowerCase(), r = s.substring(a + 1).trim();
1604
- const i = g.hasOwnProp(t, n);
1605
- !n || i && g.hasOwnProp(fl, n) || (n === "set-cookie" ? i ? t[n].push(r) : t[n] = [r] : t[n] = i ? t[n] + ", " + r : r);
1604
+ const i = h.hasOwnProp(t, n);
1605
+ !n || i && h.hasOwnProp(fl, n) || (n === "set-cookie" ? i ? t[n].push(r) : t[n] = [r] : t[n] = i ? t[n] + ", " + r : r);
1606
1606
  }), t;
1607
1607
  };
1608
1608
  function hl(e) {
@@ -1623,12 +1623,12 @@ function hl(e) {
1623
1623
  }
1624
1624
  const gl = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), yl = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
1625
1625
  function hr(e, t) {
1626
- return g.isArray(e) ? e.map((n) => hr(n, t)) : hl(String(e).replace(t, ""));
1626
+ return h.isArray(e) ? e.map((n) => hr(n, t)) : hl(String(e).replace(t, ""));
1627
1627
  }
1628
1628
  const wl = (e) => hr(e, gl), bl = (e) => hr(e, yl);
1629
1629
  function to(e) {
1630
1630
  const t = /* @__PURE__ */ Object.create(null);
1631
- return g.forEach(e.toJSON(), (n, r) => {
1631
+ return h.forEach(e.toJSON(), (n, r) => {
1632
1632
  t[r] = bl(n);
1633
1633
  }), t;
1634
1634
  }
@@ -1637,7 +1637,7 @@ function ut(e) {
1637
1637
  return e && String(e).trim().toLowerCase();
1638
1638
  }
1639
1639
  function Yt(e) {
1640
- return e === !1 || e == null ? e : g.isArray(e) ? e.map(Yt) : wl(String(e));
1640
+ return e === !1 || e == null ? e : h.isArray(e) ? e.map(Yt) : wl(String(e));
1641
1641
  }
1642
1642
  function vl(e) {
1643
1643
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -1700,12 +1700,12 @@ function Sl(e) {
1700
1700
  }
1701
1701
  const _l = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1702
1702
  function Rn(e, t, n, r, a) {
1703
- if (g.isFunction(r))
1703
+ if (h.isFunction(r))
1704
1704
  return r.call(this, t, n);
1705
- if (a && (t = n), !!g.isString(t)) {
1706
- if (g.isString(r))
1705
+ if (a && (t = n), !!h.isString(t)) {
1706
+ if (h.isString(r))
1707
1707
  return t.indexOf(r) !== -1;
1708
- if (g.isRegExp(r))
1708
+ if (h.isRegExp(r))
1709
1709
  return r.test(t);
1710
1710
  }
1711
1711
  }
@@ -1713,7 +1713,7 @@ function Nl(e) {
1713
1713
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1714
1714
  }
1715
1715
  function Tl(e, t) {
1716
- const n = g.toCamelCase(" " + t);
1716
+ const n = h.toCamelCase(" " + t);
1717
1717
  ["get", "set", "has"].forEach((r) => {
1718
1718
  Object.defineProperty(e, r + n, {
1719
1719
  // Null-proto descriptor so a polluted Object.prototype.get cannot turn
@@ -1736,20 +1736,20 @@ let Z = class {
1736
1736
  const u = ut(c);
1737
1737
  if (!u)
1738
1738
  return;
1739
- const f = g.findKey(a, u);
1739
+ const f = h.findKey(a, u);
1740
1740
  (!f || a[f] === void 0 || d === !0 || d === void 0 && a[f] !== !1) && (a[f || c] = Yt(i));
1741
1741
  }
1742
- const s = (i, c) => g.forEach(i, (d, u) => o(d, u, c));
1743
- if (g.isPlainObject(t) || t instanceof this.constructor)
1742
+ const s = (i, c) => h.forEach(i, (d, u) => o(d, u, c));
1743
+ if (h.isPlainObject(t) || t instanceof this.constructor)
1744
1744
  s(t, n);
1745
- else if (g.isString(t) && (t = t.trim()) && !_l(t))
1745
+ else if (h.isString(t) && (t = t.trim()) && !_l(t))
1746
1746
  s(ml(t), n);
1747
- else if (g.isObject(t) && g.isSafeIterable(t)) {
1747
+ else if (h.isObject(t) && h.isSafeIterable(t)) {
1748
1748
  let i = /* @__PURE__ */ Object.create(null), c, d;
1749
1749
  for (const u of t) {
1750
- if (!g.isArray(u))
1750
+ if (!h.isArray(u))
1751
1751
  throw new TypeError("Object iterator must return a key-value pair");
1752
- d = u[0], g.hasOwnProp(i, d) ? (c = i[d], i[d] = g.isArray(c) ? [...c, u[1]] : [c, u[1]]) : i[d] = u[1];
1752
+ d = u[0], h.hasOwnProp(i, d) ? (c = i[d], i[d] = h.isArray(c) ? [...c, u[1]] : [c, u[1]]) : i[d] = u[1];
1753
1753
  }
1754
1754
  s(i, n);
1755
1755
  } else
@@ -1758,16 +1758,16 @@ let Z = class {
1758
1758
  }
1759
1759
  get(t, n) {
1760
1760
  if (t = ut(t), t) {
1761
- const r = g.findKey(this, t);
1761
+ const r = h.findKey(this, t);
1762
1762
  if (r) {
1763
1763
  const a = this[r];
1764
1764
  if (!n)
1765
1765
  return a;
1766
1766
  if (n === !0)
1767
1767
  return vl(a);
1768
- if (g.isFunction(n))
1768
+ if (h.isFunction(n))
1769
1769
  return n.call(this, a, r);
1770
- if (g.isRegExp(n))
1770
+ if (h.isRegExp(n))
1771
1771
  return n.exec(a);
1772
1772
  throw new TypeError("parser must be boolean|regexp|function");
1773
1773
  }
@@ -1775,7 +1775,7 @@ let Z = class {
1775
1775
  }
1776
1776
  has(t, n) {
1777
1777
  if (t = ut(t), t) {
1778
- const r = g.findKey(this, t);
1778
+ const r = h.findKey(this, t);
1779
1779
  return !!(r && this[r] !== void 0 && (!n || Rn(this, this[r], r, n)));
1780
1780
  }
1781
1781
  return !1;
@@ -1785,11 +1785,11 @@ let Z = class {
1785
1785
  let a = !1;
1786
1786
  function o(s) {
1787
1787
  if (s = ut(s), s) {
1788
- const i = g.findKey(r, s);
1788
+ const i = h.findKey(r, s);
1789
1789
  i && (!n || Rn(r, r[i], i, n)) && (delete r[i], a = !0);
1790
1790
  }
1791
1791
  }
1792
- return g.isArray(t) ? t.forEach(o) : o(t), a;
1792
+ return h.isArray(t) ? t.forEach(o) : o(t), a;
1793
1793
  }
1794
1794
  clear(t) {
1795
1795
  const n = Object.keys(this);
@@ -1802,8 +1802,8 @@ let Z = class {
1802
1802
  }
1803
1803
  normalize(t) {
1804
1804
  const n = this, r = {};
1805
- return g.forEach(this, (a, o) => {
1806
- const s = g.findKey(r, o);
1805
+ return h.forEach(this, (a, o) => {
1806
+ const s = h.findKey(r, o);
1807
1807
  if (s) {
1808
1808
  n[s] = Yt(a), delete n[o];
1809
1809
  return;
@@ -1817,8 +1817,8 @@ let Z = class {
1817
1817
  }
1818
1818
  toJSON(t) {
1819
1819
  const n = /* @__PURE__ */ Object.create(null);
1820
- return g.forEach(this, (r, a) => {
1821
- r != null && r !== !1 && (n[a] = t && g.isArray(r) ? r.join(", ") : r);
1820
+ return h.forEach(this, (r, a) => {
1821
+ r != null && r !== !1 && (n[a] = t && h.isArray(r) ? r.join(", ") : r);
1822
1822
  }), n;
1823
1823
  }
1824
1824
  [Symbol.iterator]() {
@@ -1830,7 +1830,7 @@ let Z = class {
1830
1830
  }
1831
1831
  getSetCookie() {
1832
1832
  const t = this.get("set-cookie");
1833
- return g.isArray(t) ? t : t == null || t === !1 ? [] : [t];
1833
+ return h.isArray(t) ? t : t == null || t === !1 ? [] : [t];
1834
1834
  }
1835
1835
  get [Symbol.toStringTag]() {
1836
1836
  return "AxiosHeaders";
@@ -1853,7 +1853,7 @@ let Z = class {
1853
1853
  const i = ut(s);
1854
1854
  r[i] || (Tl(a, s), r[i] = !0);
1855
1855
  }
1856
- return g.isArray(t) ? t.forEach(o) : o(t), this;
1856
+ return h.isArray(t) ? t.forEach(o) : o(t), this;
1857
1857
  }
1858
1858
  };
1859
1859
  Z.accessor([
@@ -1864,7 +1864,7 @@ Z.accessor([
1864
1864
  "User-Agent",
1865
1865
  "Authorization"
1866
1866
  ]);
1867
- g.reduceDescriptors(Z.prototype, ({ value: e }, t) => {
1867
+ h.reduceDescriptors(Z.prototype, ({ value: e }, t) => {
1868
1868
  let n = t[0].toUpperCase() + t.slice(1);
1869
1869
  return {
1870
1870
  get: () => e,
@@ -1873,14 +1873,14 @@ g.reduceDescriptors(Z.prototype, ({ value: e }, t) => {
1873
1873
  }
1874
1874
  };
1875
1875
  });
1876
- g.freezeMethods(Z);
1876
+ h.freezeMethods(Z);
1877
1877
  const pn = "[REDACTED ****]";
1878
1878
  function Rl(e) {
1879
- if (g.hasOwnProp(e, "toJSON"))
1879
+ if (h.hasOwnProp(e, "toJSON"))
1880
1880
  return !0;
1881
1881
  let t = Object.getPrototypeOf(e);
1882
1882
  for (; t && t !== Object.prototype; ) {
1883
- if (g.hasOwnProp(t, "toJSON"))
1883
+ if (h.hasOwnProp(t, "toJSON"))
1884
1884
  return !0;
1885
1885
  t = Object.getPrototypeOf(t);
1886
1886
  }
@@ -1888,22 +1888,22 @@ function Rl(e) {
1888
1888
  }
1889
1889
  function xl(e, t) {
1890
1890
  const n = new Set(t.map((o) => String(o).toLowerCase())), r = [], a = (o) => {
1891
- if (o === null || typeof o != "object" || g.isBuffer(o)) return o;
1891
+ if (o === null || typeof o != "object" || h.isBuffer(o)) return o;
1892
1892
  if (r.indexOf(o) !== -1) return;
1893
1893
  o instanceof Z && (o = o.toJSON()), r.push(o);
1894
1894
  let s;
1895
- if (g.isArray(o))
1895
+ if (h.isArray(o))
1896
1896
  s = [], o.forEach((i, c) => {
1897
1897
  const d = a(i);
1898
- g.isUndefined(d) || (s[c] = d);
1898
+ h.isUndefined(d) || (s[c] = d);
1899
1899
  });
1900
1900
  else {
1901
- if (!g.isPlainObject(o) && Rl(o))
1901
+ if (!h.isPlainObject(o) && Rl(o))
1902
1902
  return r.pop(), o;
1903
1903
  s = /* @__PURE__ */ Object.create(null);
1904
1904
  for (const [i, c] of Object.entries(o)) {
1905
1905
  const d = n.has(i.toLowerCase()) ? pn : a(c);
1906
- g.isUndefined(d) || (s[i] = d);
1906
+ h.isUndefined(d) || (s[i] = d);
1907
1907
  }
1908
1908
  }
1909
1909
  return r.pop(), s;
@@ -1929,7 +1929,7 @@ function Ll(e) {
1929
1929
  let N = class no extends Error {
1930
1930
  static from(t, n, r, a, o, s) {
1931
1931
  let i = t.message;
1932
- !i && g.isArray(t.errors) && t.errors.length && (i = Ll(t));
1932
+ !i && h.isArray(t.errors) && t.errors.length && (i = Ll(t));
1933
1933
  const c = new no(i, n || t.code, r, a, o);
1934
1934
  return Object.defineProperty(c, "cause", {
1935
1935
  __proto__: null,
@@ -1962,7 +1962,7 @@ let N = class no extends Error {
1962
1962
  }), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), a && (this.request = a), o && (this.response = o, this.status = o.status);
1963
1963
  }
1964
1964
  toJSON() {
1965
- const t = this.config, n = t && g.hasOwnProp(t, "redact") ? t.redact : void 0, r = g.isArray(n) && n.length > 0 ? xl(t, n) : g.toJSONObject(t);
1965
+ const t = this.config, n = t && h.hasOwnProp(t, "redact") ? t.redact : void 0, r = h.isArray(n) && n.length > 0 ? xl(t, n) : h.toJSONObject(t);
1966
1966
  return {
1967
1967
  // Standard
1968
1968
  message: this.message,
@@ -1998,10 +1998,10 @@ N.ERR_INVALID_URL = "ERR_INVALID_URL";
1998
1998
  N.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
1999
1999
  const Al = null, ro = 100;
2000
2000
  function tr(e) {
2001
- return g.isPlainObject(e) || g.isArray(e);
2001
+ return h.isPlainObject(e) || h.isArray(e);
2002
2002
  }
2003
2003
  function ao(e) {
2004
- return g.endsWith(e, "[]") ? e.slice(0, -2) : e;
2004
+ return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
2005
2005
  }
2006
2006
  function xn(e, t, n) {
2007
2007
  return e ? e.concat(t).map(function(a, o) {
@@ -2009,15 +2009,15 @@ function xn(e, t, n) {
2009
2009
  }).join(n ? "." : "") : t;
2010
2010
  }
2011
2011
  function Fl(e) {
2012
- return g.isArray(e) && !e.some(tr);
2012
+ return h.isArray(e) && !e.some(tr);
2013
2013
  }
2014
- const Ol = g.toFlatObject(g, {}, null, function(t) {
2014
+ const Ol = h.toFlatObject(h, {}, null, function(t) {
2015
2015
  return /^is[A-Z]/.test(t);
2016
2016
  });
2017
2017
  function Cn(e, t, n) {
2018
- if (!g.isObject(e))
2018
+ if (!h.isObject(e))
2019
2019
  throw new TypeError("target must be an object");
2020
- t = t || new FormData(), n = g.toFlatObject(
2020
+ t = t || new FormData(), n = h.toFlatObject(
2021
2021
  n,
2022
2022
  {
2023
2023
  metaTokens: !0,
@@ -2026,79 +2026,79 @@ function Cn(e, t, n) {
2026
2026
  },
2027
2027
  !1,
2028
2028
  function(p, b) {
2029
- return !g.isUndefined(b[p]);
2029
+ return !h.isUndefined(b[p]);
2030
2030
  }
2031
2031
  );
2032
- const r = n.metaTokens, a = n.visitor || v, o = n.dots, s = n.indexes, i = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? ro : n.maxDepth, d = i && g.isSpecCompliantForm(t), u = [];
2033
- if (!g.isFunction(a))
2032
+ const r = n.metaTokens, a = n.visitor || v, o = n.dots, s = n.indexes, i = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? ro : n.maxDepth, d = i && h.isSpecCompliantForm(t), u = [];
2033
+ if (!h.isFunction(a))
2034
2034
  throw new TypeError("visitor must be a function");
2035
- function f(h) {
2036
- if (h === null) return "";
2037
- if (g.isDate(h))
2038
- return h.toISOString();
2039
- if (g.isBoolean(h))
2040
- return h.toString();
2041
- if (!d && g.isBlob(h))
2035
+ function f(g) {
2036
+ if (g === null) return "";
2037
+ if (h.isDate(g))
2038
+ return g.toISOString();
2039
+ if (h.isBoolean(g))
2040
+ return g.toString();
2041
+ if (!d && h.isBlob(g))
2042
2042
  throw new N("Blob is not supported. Use a Buffer instead.");
2043
- if (g.isArrayBuffer(h) || g.isTypedArray(h)) {
2043
+ if (h.isArrayBuffer(g) || h.isTypedArray(g)) {
2044
2044
  if (d && typeof i == "function")
2045
- return new i([h]);
2045
+ return new i([g]);
2046
2046
  throw new N("Blob is not supported. Use a Buffer instead.", N.ERR_NOT_SUPPORT);
2047
2047
  }
2048
- return h;
2048
+ return g;
2049
2049
  }
2050
- function y(h) {
2051
- if (h > c)
2050
+ function y(g) {
2051
+ if (g > c)
2052
2052
  throw new N(
2053
- "Object is too deeply nested (" + h + " levels). Max depth: " + c,
2053
+ "Object is too deeply nested (" + g + " levels). Max depth: " + c,
2054
2054
  N.ERR_FORM_DATA_DEPTH_EXCEEDED
2055
2055
  );
2056
2056
  }
2057
- function E(h, p) {
2057
+ function E(g, p) {
2058
2058
  if (c === 1 / 0)
2059
- return JSON.stringify(h);
2059
+ return JSON.stringify(g);
2060
2060
  const b = [];
2061
- return JSON.stringify(h, function(L, T) {
2062
- if (!g.isObject(T))
2063
- return T;
2061
+ return JSON.stringify(g, function(R, L) {
2062
+ if (!h.isObject(L))
2063
+ return L;
2064
2064
  for (; b.length && b[b.length - 1] !== this; )
2065
2065
  b.pop();
2066
- return b.push(T), y(p + b.length - 1), T;
2066
+ return b.push(L), y(p + b.length - 1), L;
2067
2067
  });
2068
2068
  }
2069
- function v(h, p, b) {
2070
- let S = h;
2071
- if (g.isReactNative(t) && g.isReactNativeBlob(h))
2072
- return t.append(xn(b, p, o), f(h)), !1;
2073
- if (h && !b && typeof h == "object") {
2074
- if (g.endsWith(p, "{}"))
2075
- p = r ? p : p.slice(0, -2), h = E(h, 1);
2076
- else if (g.isArray(h) && Fl(h) || (g.isFileList(h) || g.endsWith(p, "[]")) && (S = g.toArray(h)))
2077
- return p = ao(p), S.forEach(function(T, O) {
2078
- !(g.isUndefined(T) || T === null) && t.append(
2069
+ function v(g, p, b) {
2070
+ let C = g;
2071
+ if (h.isReactNative(t) && h.isReactNativeBlob(g))
2072
+ return t.append(xn(b, p, o), f(g)), !1;
2073
+ if (g && !b && typeof g == "object") {
2074
+ if (h.endsWith(p, "{}"))
2075
+ p = r ? p : p.slice(0, -2), g = E(g, 1);
2076
+ else if (h.isArray(g) && Fl(g) || (h.isFileList(g) || h.endsWith(p, "[]")) && (C = h.toArray(g)))
2077
+ return p = ao(p), C.forEach(function(L, k) {
2078
+ !(h.isUndefined(L) || L === null) && t.append(
2079
2079
  // eslint-disable-next-line no-nested-ternary
2080
- s === !0 ? xn([p], O, o) : s === null ? p : p + "[]",
2081
- f(T)
2080
+ s === !0 ? xn([p], k, o) : s === null ? p : p + "[]",
2081
+ f(L)
2082
2082
  );
2083
2083
  }), !1;
2084
2084
  }
2085
- return tr(h) ? !0 : (t.append(xn(b, p, o), f(h)), !1);
2085
+ return tr(g) ? !0 : (t.append(xn(b, p, o), f(g)), !1);
2086
2086
  }
2087
2087
  const w = Object.assign(Ol, {
2088
2088
  defaultVisitor: v,
2089
2089
  convertValue: f,
2090
2090
  isVisitable: tr
2091
2091
  });
2092
- function m(h, p, b = 0) {
2093
- if (!g.isUndefined(h)) {
2094
- if (y(b), u.indexOf(h) !== -1)
2092
+ function m(g, p, b = 0) {
2093
+ if (!h.isUndefined(g)) {
2094
+ if (y(b), u.indexOf(g) !== -1)
2095
2095
  throw new Error("Circular reference detected in " + p.join("."));
2096
- u.push(h), g.forEach(h, function(L, T) {
2097
- (!(g.isUndefined(L) || L === null) && a.call(t, L, g.isString(T) ? T.trim() : T, p, w)) === !0 && m(L, p ? p.concat(T) : [T], b + 1);
2096
+ u.push(g), h.forEach(g, function(R, L) {
2097
+ (!(h.isUndefined(R) || R === null) && a.call(t, R, h.isString(L) ? L.trim() : L, p, w)) === !0 && m(R, p ? p.concat(L) : [L], b + 1);
2098
2098
  }), u.pop();
2099
2099
  }
2100
2100
  }
2101
- if (!g.isObject(e))
2101
+ if (!h.isObject(e))
2102
2102
  throw new TypeError("data must be an object");
2103
2103
  return m(e), t;
2104
2104
  }
@@ -2135,11 +2135,11 @@ function so(e, t, n) {
2135
2135
  if (!t)
2136
2136
  return e;
2137
2137
  e = e || "";
2138
- const r = g.isFunction(n) ? {
2138
+ const r = h.isFunction(n) ? {
2139
2139
  serialize: n
2140
- } : n, a = g.getSafeProp(r, "encode") || kl, o = g.getSafeProp(r, "serialize");
2140
+ } : n, a = h.getSafeProp(r, "encode") || kl, o = h.getSafeProp(r, "serialize");
2141
2141
  let s;
2142
- if (o ? s = o(t, r) : s = g.isURLSearchParams(t) ? t.toString() : new gr(t, r).toString(a), s) {
2142
+ if (o ? s = o(t, r) : s = h.isURLSearchParams(t) ? t.toString() : new gr(t, r).toString(a), s) {
2143
2143
  const i = e.indexOf("#");
2144
2144
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
2145
2145
  }
@@ -2195,7 +2195,7 @@ class Kr {
2195
2195
  * @returns {void}
2196
2196
  */
2197
2197
  forEach(t) {
2198
- g.forEach(this.handlers, function(r) {
2198
+ h.forEach(this.handlers, function(r) {
2199
2199
  r !== null && t(r);
2200
2200
  });
2201
2201
  }
@@ -2230,7 +2230,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ul
2230
2230
  function ql(e, t) {
2231
2231
  return Cn(e, new H.classes.URLSearchParams(), {
2232
2232
  visitor: function(n, r, a, o) {
2233
- return H.isNode && g.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
2233
+ return H.isNode && h.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
2234
2234
  },
2235
2235
  ...t
2236
2236
  });
@@ -2265,21 +2265,21 @@ function lo(e) {
2265
2265
  let s = n[o++];
2266
2266
  if (s === "__proto__") return !0;
2267
2267
  const i = Number.isFinite(+s), c = o >= n.length;
2268
- return s = !s && g.isArray(a) ? a.length : s, c ? (g.hasOwnProp(a, s) ? a[s] = g.isArray(a[s]) ? a[s].concat(r) : [a[s], r] : a[s] = r, !i) : ((!g.hasOwnProp(a, s) || !g.isObject(a[s])) && (a[s] = []), t(n, r, a[s], o) && g.isArray(a[s]) && (a[s] = Wl(a[s])), !i);
2268
+ return s = !s && h.isArray(a) ? a.length : s, c ? (h.hasOwnProp(a, s) ? a[s] = h.isArray(a[s]) ? a[s].concat(r) : [a[s], r] : a[s] = r, !i) : ((!h.hasOwnProp(a, s) || !h.isObject(a[s])) && (a[s] = []), t(n, r, a[s], o) && h.isArray(a[s]) && (a[s] = Wl(a[s])), !i);
2269
2269
  }
2270
- if (g.isFormData(e) && g.isFunction(e.entries)) {
2270
+ if (h.isFormData(e) && h.isFunction(e.entries)) {
2271
2271
  const n = {};
2272
- return g.forEachEntry(e, (r, a) => {
2272
+ return h.forEachEntry(e, (r, a) => {
2273
2273
  t(Vl(r), a, n, 0);
2274
2274
  }), n;
2275
2275
  }
2276
2276
  return null;
2277
2277
  }
2278
- const je = (e, t) => e != null && g.hasOwnProp(e, t) ? e[t] : void 0;
2278
+ const je = (e, t) => e != null && h.hasOwnProp(e, t) ? e[t] : void 0;
2279
2279
  function Hl(e, t, n) {
2280
- if (g.isString(e))
2280
+ if (h.isString(e))
2281
2281
  try {
2282
- return (t || JSON.parse)(e), g.trim(e);
2282
+ return (t || JSON.parse)(e), h.trim(e);
2283
2283
  } catch (r) {
2284
2284
  if (r.name !== "SyntaxError")
2285
2285
  throw r;
@@ -2291,21 +2291,21 @@ const Dt = {
2291
2291
  adapter: ["xhr", "http", "fetch"],
2292
2292
  transformRequest: [
2293
2293
  function(t, n) {
2294
- const r = n.getContentType() || "", a = r.indexOf("application/json") > -1, o = g.isObject(t);
2295
- if (o && g.isHTMLForm(t) && (t = new FormData(t)), g.isFormData(t))
2294
+ const r = n.getContentType() || "", a = r.indexOf("application/json") > -1, o = h.isObject(t);
2295
+ if (o && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
2296
2296
  return a ? JSON.stringify(lo(t)) : t;
2297
- if (g.isArrayBuffer(t) || g.isBuffer(t) || g.isStream(t) || g.isFile(t) || g.isBlob(t) || g.isReadableStream(t))
2297
+ if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t) || h.isReadableStream(t))
2298
2298
  return t;
2299
- if (g.isArrayBufferView(t))
2299
+ if (h.isArrayBufferView(t))
2300
2300
  return t.buffer;
2301
- if (g.isURLSearchParams(t))
2301
+ if (h.isURLSearchParams(t))
2302
2302
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
2303
2303
  let i;
2304
2304
  if (o) {
2305
2305
  const c = je(this, "formSerializer");
2306
2306
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
2307
2307
  return ql(t, c).toString();
2308
- if ((i = g.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
2308
+ if ((i = h.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
2309
2309
  const d = je(this, "env"), u = d && d.FormData;
2310
2310
  return Cn(
2311
2311
  i ? { "files[]": t } : t,
@@ -2320,9 +2320,9 @@ const Dt = {
2320
2320
  transformResponse: [
2321
2321
  function(t) {
2322
2322
  const n = je(this, "transitional") || Dt.transitional, r = n && n.forcedJSONParsing, a = je(this, "responseType"), o = a === "json";
2323
- if (g.isResponse(t) || g.isReadableStream(t))
2323
+ if (h.isResponse(t) || h.isReadableStream(t))
2324
2324
  return t;
2325
- if (t && g.isString(t) && (r && !a || o)) {
2325
+ if (t && h.isString(t) && (r && !a || o)) {
2326
2326
  const i = !(n && n.silentJSONParsing) && o;
2327
2327
  try {
2328
2328
  return JSON.parse(t, je(this, "parseReviver"));
@@ -2357,13 +2357,13 @@ const Dt = {
2357
2357
  }
2358
2358
  }
2359
2359
  };
2360
- g.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => {
2360
+ h.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => {
2361
2361
  Dt.headers[e] = {};
2362
2362
  });
2363
2363
  function Ln(e, t) {
2364
2364
  const n = this || Dt, r = t || n, a = Z.from(r.headers);
2365
2365
  let o = r.data;
2366
- return g.forEach(e, function(i) {
2366
+ return h.forEach(e, function(i) {
2367
2367
  o = i.call(n, o, a.normalize(), t ? t.status : void 0);
2368
2368
  }), a.normalize(), o;
2369
2369
  }
@@ -2457,7 +2457,7 @@ const fn = (e, t, n = 3) => {
2457
2457
  }),
2458
2458
  t[1]
2459
2459
  ];
2460
- }, Xr = (e, t = g.asap) => (...n) => t(() => e(...n)), Zl = H.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, H.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
2460
+ }, Xr = (e, t = h.asap) => (...n) => t(() => e(...n)), Zl = H.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, H.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
2461
2461
  new URL(H.origin),
2462
2462
  H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
2463
2463
  ) : () => !0, Xl = H.hasStandardBrowserEnv ? (
@@ -2466,7 +2466,7 @@ const fn = (e, t, n = 3) => {
2466
2466
  write(e, t, n, r, a, o, s) {
2467
2467
  if (typeof document > "u") return;
2468
2468
  const i = [`${e}=${encodeURIComponent(t)}`];
2469
- g.isNumber(n) && i.push(`expires=${new Date(n).toUTCString()}`), g.isString(r) && i.push(`path=${r}`), g.isString(a) && i.push(`domain=${a}`), o === !0 && i.push("secure"), g.isString(s) && i.push(`SameSite=${s}`), document.cookie = i.join("; ");
2469
+ h.isNumber(n) && i.push(`expires=${new Date(n).toUTCString()}`), h.isString(r) && i.push(`path=${r}`), h.isString(a) && i.push(`domain=${a}`), o === !0 && i.push("secure"), h.isString(s) && i.push(`SameSite=${s}`), document.cookie = i.join("; ");
2470
2470
  },
2471
2471
  read(e) {
2472
2472
  if (typeof document > "u") return null;
@@ -2563,40 +2563,40 @@ function Pe(e, t) {
2563
2563
  configurable: !0
2564
2564
  });
2565
2565
  function r(u, f, y, E) {
2566
- return g.isPlainObject(u) && g.isPlainObject(f) ? g.merge.call({ caseless: E }, u, f) : g.isPlainObject(f) ? g.merge({}, f) : g.isArray(f) ? f.slice() : f;
2566
+ return h.isPlainObject(u) && h.isPlainObject(f) ? h.merge.call({ caseless: E }, u, f) : h.isPlainObject(f) ? h.merge({}, f) : h.isArray(f) ? f.slice() : f;
2567
2567
  }
2568
2568
  function a(u, f, y, E) {
2569
- if (g.isUndefined(f)) {
2570
- if (!g.isUndefined(u))
2569
+ if (h.isUndefined(f)) {
2570
+ if (!h.isUndefined(u))
2571
2571
  return r(void 0, u, y, E);
2572
2572
  } else return r(u, f, y, E);
2573
2573
  }
2574
2574
  function o(u, f) {
2575
- if (!g.isUndefined(f))
2575
+ if (!h.isUndefined(f))
2576
2576
  return r(void 0, f);
2577
2577
  }
2578
2578
  function s(u, f) {
2579
- if (g.isUndefined(f)) {
2580
- if (!g.isUndefined(u))
2579
+ if (h.isUndefined(f)) {
2580
+ if (!h.isUndefined(u))
2581
2581
  return r(void 0, u);
2582
2582
  } else return r(void 0, f);
2583
2583
  }
2584
2584
  function i(u) {
2585
- const f = g.hasOwnProp(t, "transitional") ? t.transitional : void 0;
2586
- if (!g.isUndefined(f))
2587
- if (g.isPlainObject(f)) {
2588
- if (g.hasOwnProp(f, u))
2585
+ const f = h.hasOwnProp(t, "transitional") ? t.transitional : void 0;
2586
+ if (!h.isUndefined(f))
2587
+ if (h.isPlainObject(f)) {
2588
+ if (h.hasOwnProp(f, u))
2589
2589
  return f[u];
2590
2590
  } else
2591
2591
  return;
2592
- const y = g.hasOwnProp(e, "transitional") ? e.transitional : void 0;
2593
- if (g.isPlainObject(y) && g.hasOwnProp(y, u))
2592
+ const y = h.hasOwnProp(e, "transitional") ? e.transitional : void 0;
2593
+ if (h.isPlainObject(y) && h.hasOwnProp(y, u))
2594
2594
  return y[u];
2595
2595
  }
2596
2596
  function c(u, f, y) {
2597
- if (g.hasOwnProp(t, y))
2597
+ if (h.hasOwnProp(t, y))
2598
2598
  return r(u, f);
2599
- if (g.hasOwnProp(e, y))
2599
+ if (h.hasOwnProp(e, y))
2600
2600
  return r(void 0, u);
2601
2601
  }
2602
2602
  const d = {
@@ -2631,11 +2631,11 @@ function Pe(e, t) {
2631
2631
  validateStatus: c,
2632
2632
  headers: (u, f, y) => a(Yr(u), Yr(f), y, !0)
2633
2633
  };
2634
- return g.forEach(oc({ ...e, ...t }), function(f) {
2634
+ return h.forEach(oc({ ...e, ...t }), function(f) {
2635
2635
  if (f === "__proto__" || f === "constructor" || f === "prototype") return;
2636
- const y = g.hasOwnProp(d, f) ? d[f] : a, E = g.hasOwnProp(e, f) ? e[f] : void 0, v = g.hasOwnProp(t, f) ? t[f] : void 0, w = y(E, v, f);
2637
- g.isUndefined(w) && y !== c || (n[f] = w);
2638
- }), g.hasOwnProp(t, "validateStatus") && g.isUndefined(t.validateStatus) && i("validateStatusUndefinedResolves") === !1 && (g.hasOwnProp(e, "validateStatus") ? n.validateStatus = r(void 0, e.validateStatus) : delete n.validateStatus), n;
2636
+ const y = h.hasOwnProp(d, f) ? d[f] : a, E = h.hasOwnProp(e, f) ? e[f] : void 0, v = h.hasOwnProp(t, f) ? t[f] : void 0, w = y(E, v, f);
2637
+ h.isUndefined(w) && y !== c || (n[f] = w);
2638
+ }), h.hasOwnProp(t, "validateStatus") && h.isUndefined(t.validateStatus) && i("validateStatusUndefinedResolves") === !1 && (h.hasOwnProp(e, "validateStatus") ? n.validateStatus = r(void 0, e.validateStatus) : delete n.validateStatus), n;
2639
2639
  }
2640
2640
  const sc = ["content-type", "content-length"];
2641
2641
  function ic(e, t, n) {
@@ -2652,7 +2652,7 @@ const lc = (e) => encodeURIComponent(e).replace(
2652
2652
  (t, n) => String.fromCharCode(parseInt(n, 16))
2653
2653
  );
2654
2654
  function fo(e) {
2655
- const t = Pe({}, e), n = (y) => g.hasOwnProp(t, y) ? t[y] : void 0, r = n("data");
2655
+ const t = Pe({}, e), n = (y) => h.hasOwnProp(t, y) ? t[y] : void 0, r = n("data");
2656
2656
  let a = n("withXSRFToken");
2657
2657
  const o = n("xsrfHeaderName"), s = n("xsrfCookieName");
2658
2658
  let i = n("headers");
@@ -2662,7 +2662,7 @@ function fo(e) {
2662
2662
  n("params"),
2663
2663
  n("paramsSerializer")
2664
2664
  ), c) {
2665
- const y = g.getSafeProp(c, "username") || "", E = g.getSafeProp(c, "password") || "";
2665
+ const y = h.getSafeProp(c, "username") || "", E = h.getSafeProp(c, "password") || "";
2666
2666
  try {
2667
2667
  i.set(
2668
2668
  "Authorization",
@@ -2672,7 +2672,7 @@ function fo(e) {
2672
2672
  throw N.from(v, N.ERR_BAD_OPTION_VALUE, e);
2673
2673
  }
2674
2674
  }
2675
- if (g.isFormData(r) && (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv || g.isReactNative(r) ? i.setContentType(void 0) : g.isFunction(r.getHeaders) && ic(i, r.getHeaders(), n("formDataHeaderPolicy"))), H.hasStandardBrowserEnv && (g.isFunction(a) && (a = a(t)), a === !0 || a == null && Zl(t.url))) {
2675
+ if (h.isFormData(r) && (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv || h.isReactNative(r) ? i.setContentType(void 0) : h.isFunction(r.getHeaders) && ic(i, r.getHeaders(), n("formDataHeaderPolicy"))), H.hasStandardBrowserEnv && (h.isFunction(a) && (a = a(t)), a === !0 || a == null && Zl(t.url))) {
2676
2676
  const E = o && s && Xl.read(s);
2677
2677
  E && i.set(o, E);
2678
2678
  }
@@ -2689,12 +2689,12 @@ const cc = typeof XMLHttpRequest < "u", dc = cc && function(e) {
2689
2689
  }
2690
2690
  let m = new XMLHttpRequest();
2691
2691
  m.open(a.method.toUpperCase(), a.url, !0), m.timeout = a.timeout;
2692
- function h() {
2692
+ function g() {
2693
2693
  if (!m)
2694
2694
  return;
2695
2695
  const b = Z.from(
2696
2696
  "getAllResponseHeaders" in m && m.getAllResponseHeaders()
2697
- ), L = {
2697
+ ), R = {
2698
2698
  data: !i || i === "text" || i === "json" ? m.responseText : m.response,
2699
2699
  status: m.status,
2700
2700
  statusText: m.statusText,
@@ -2703,36 +2703,36 @@ const cc = typeof XMLHttpRequest < "u", dc = cc && function(e) {
2703
2703
  request: m
2704
2704
  };
2705
2705
  uo(
2706
- function(O) {
2707
- n(O), w();
2706
+ function(k) {
2707
+ n(k), w();
2708
2708
  },
2709
- function(O) {
2710
- r(O), w();
2709
+ function(k) {
2710
+ r(k), w();
2711
2711
  },
2712
- L
2712
+ R
2713
2713
  ), m = null;
2714
2714
  }
2715
- "onloadend" in m ? m.onloadend = h : m.onreadystatechange = function() {
2716
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.startsWith("file:")) || setTimeout(h);
2715
+ "onloadend" in m ? m.onloadend = g : m.onreadystatechange = function() {
2716
+ !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.startsWith("file:")) || setTimeout(g);
2717
2717
  }, m.onabort = function() {
2718
2718
  m && (r(new N("Request aborted", N.ECONNABORTED, e, m)), w(), m = null);
2719
- }, m.onerror = function(S) {
2720
- const L = S && S.message ? S.message : "Network Error", T = new N(L, N.ERR_NETWORK, e, m);
2721
- T.event = S || null, r(T), w(), m = null;
2719
+ }, m.onerror = function(C) {
2720
+ const R = C && C.message ? C.message : "Network Error", L = new N(R, N.ERR_NETWORK, e, m);
2721
+ L.event = C || null, r(L), w(), m = null;
2722
2722
  }, m.ontimeout = function() {
2723
- let S = a.timeout ? "timeout of " + a.timeout + "ms exceeded" : "timeout exceeded";
2724
- const L = a.transitional || yr;
2725
- a.timeoutErrorMessage && (S = a.timeoutErrorMessage), r(
2723
+ let C = a.timeout ? "timeout of " + a.timeout + "ms exceeded" : "timeout exceeded";
2724
+ const R = a.transitional || yr;
2725
+ a.timeoutErrorMessage && (C = a.timeoutErrorMessage), r(
2726
2726
  new N(
2727
- S,
2728
- L.clarifyTimeoutError ? N.ETIMEDOUT : N.ECONNABORTED,
2727
+ C,
2728
+ R.clarifyTimeoutError ? N.ETIMEDOUT : N.ECONNABORTED,
2729
2729
  e,
2730
2730
  m
2731
2731
  )
2732
2732
  ), w(), m = null;
2733
- }, o === void 0 && s.setContentType(null), "setRequestHeader" in m && g.forEach(to(s), function(S, L) {
2734
- m.setRequestHeader(L, S);
2735
- }), g.isUndefined(a.withCredentials) || (m.withCredentials = !!a.withCredentials), i && i !== "json" && (m.responseType = a.responseType), d && ([y, v] = fn(d, !0), m.addEventListener("progress", y)), c && m.upload && ([f, E] = fn(c), m.upload.addEventListener("progress", f), m.upload.addEventListener("loadend", E)), (a.cancelToken || a.signal) && (u = (b) => {
2733
+ }, o === void 0 && s.setContentType(null), "setRequestHeader" in m && h.forEach(to(s), function(C, R) {
2734
+ m.setRequestHeader(R, C);
2735
+ }), h.isUndefined(a.withCredentials) || (m.withCredentials = !!a.withCredentials), i && i !== "json" && (m.responseType = a.responseType), d && ([y, v] = fn(d, !0), m.addEventListener("progress", y)), c && m.upload && ([f, E] = fn(c), m.upload.addEventListener("progress", f), m.upload.addEventListener("loadend", E)), (a.cancelToken || a.signal) && (u = (b) => {
2736
2736
  m && (r(!b || b.type ? new Pt(null, e, m) : b), m.abort(), w(), m = null);
2737
2737
  }, a.cancelToken && a.cancelToken.subscribe(u), a.signal && (a.signal.aborted ? u() : a.signal.addEventListener("abort", u)));
2738
2738
  const p = zl(a.url);
@@ -2780,7 +2780,7 @@ const cc = typeof XMLHttpRequest < "u", dc = cc && function(e) {
2780
2780
  }
2781
2781
  });
2782
2782
  const { signal: i } = n;
2783
- return i.unsubscribe = () => g.asap(s), i;
2783
+ return i.unsubscribe = () => h.asap(s), i;
2784
2784
  }, pc = function* (e, t) {
2785
2785
  let n = e.byteLength;
2786
2786
  if (n < t) {
@@ -2903,11 +2903,11 @@ function Cc(e) {
2903
2903
  bc
2904
2904
  );
2905
2905
  }
2906
- const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeURIComponent(e).replace(
2906
+ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = h, Ec = (e) => encodeURIComponent(e).replace(
2907
2907
  /%([0-9A-F]{2})/gi,
2908
2908
  (t, n) => String.fromCharCode(parseInt(n, 16))
2909
2909
  ), ra = (e) => {
2910
- if (!g.isString(e))
2910
+ if (!h.isString(e))
2911
2911
  return e;
2912
2912
  try {
2913
2913
  return decodeURIComponent(e);
@@ -2925,8 +2925,8 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
2925
2925
  let n = e;
2926
2926
  return t !== -1 && (n = n.slice(t + 3)), n.includes("@") || n.includes(":");
2927
2927
  }, _c = (e) => {
2928
- const t = g.global !== void 0 && g.global !== null ? g.global : globalThis, { ReadableStream: n, TextEncoder: r } = t;
2929
- e = g.merge.call(
2928
+ const t = h.global !== void 0 && h.global !== null ? h.global : globalThis, { ReadableStream: n, TextEncoder: r } = t;
2929
+ e = h.merge.call(
2930
2930
  {
2931
2931
  skipUndefined: !0
2932
2932
  },
@@ -2939,72 +2939,72 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
2939
2939
  const { fetch: a, Request: o, Response: s } = e, i = a ? Ht(a) : typeof fetch == "function", c = Ht(o), d = Ht(s);
2940
2940
  if (!i)
2941
2941
  return !1;
2942
- const u = i && Ht(n), f = i && (typeof r == "function" ? /* @__PURE__ */ ((h) => (p) => h.encode(p))(new r()) : async (h) => new Uint8Array(await new o(h).arrayBuffer())), y = c && u && aa(() => {
2943
- let h = !1;
2942
+ const u = i && Ht(n), f = i && (typeof r == "function" ? /* @__PURE__ */ ((g) => (p) => g.encode(p))(new r()) : async (g) => new Uint8Array(await new o(g).arrayBuffer())), y = c && u && aa(() => {
2943
+ let g = !1;
2944
2944
  const p = new o(H.origin, {
2945
2945
  body: new n(),
2946
2946
  method: "POST",
2947
2947
  get duplex() {
2948
- return h = !0, "half";
2948
+ return g = !0, "half";
2949
2949
  }
2950
2950
  }), b = p.headers.has("Content-Type");
2951
- return p.body != null && p.body.cancel(), h && !b;
2952
- }), E = d && u && aa(() => g.isReadableStream(new s("").body)), v = {
2953
- stream: E && ((h) => h.body)
2951
+ return p.body != null && p.body.cancel(), g && !b;
2952
+ }), E = d && u && aa(() => h.isReadableStream(new s("").body)), v = {
2953
+ stream: E && ((g) => g.body)
2954
2954
  };
2955
- i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
2956
- !v[h] && (v[h] = (p, b) => {
2957
- let S = p && p[h];
2958
- if (S)
2959
- return S.call(p);
2955
+ i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
2956
+ !v[g] && (v[g] = (p, b) => {
2957
+ let C = p && p[g];
2958
+ if (C)
2959
+ return C.call(p);
2960
2960
  throw new N(
2961
- `Response type '${h}' is not supported`,
2961
+ `Response type '${g}' is not supported`,
2962
2962
  N.ERR_NOT_SUPPORT,
2963
2963
  b
2964
2964
  );
2965
2965
  });
2966
2966
  });
2967
- const w = async (h) => {
2968
- if (h == null)
2967
+ const w = async (g) => {
2968
+ if (g == null)
2969
2969
  return 0;
2970
- if (g.isBlob(h))
2971
- return h.size;
2972
- if (g.isSpecCompliantForm(h))
2970
+ if (h.isBlob(g))
2971
+ return g.size;
2972
+ if (h.isSpecCompliantForm(g))
2973
2973
  return (await new o(H.origin, {
2974
2974
  method: "POST",
2975
- body: h
2975
+ body: g
2976
2976
  }).arrayBuffer()).byteLength;
2977
- if (g.isArrayBufferView(h) || g.isArrayBuffer(h))
2978
- return h.byteLength;
2979
- if (g.isURLSearchParams(h) && (h = h + ""), g.isString(h))
2980
- return (await f(h)).byteLength;
2981
- }, m = async (h, p) => {
2982
- const b = g.toFiniteNumber(h.getContentLength());
2977
+ if (h.isArrayBufferView(g) || h.isArrayBuffer(g))
2978
+ return g.byteLength;
2979
+ if (h.isURLSearchParams(g) && (g = g + ""), h.isString(g))
2980
+ return (await f(g)).byteLength;
2981
+ }, m = async (g, p) => {
2982
+ const b = h.toFiniteNumber(g.getContentLength());
2983
2983
  return b ?? w(p);
2984
2984
  };
2985
- return async (h) => {
2985
+ return async (g) => {
2986
2986
  let {
2987
2987
  url: p,
2988
2988
  method: b,
2989
- data: S,
2990
- signal: L,
2991
- cancelToken: T,
2992
- timeout: O,
2989
+ data: C,
2990
+ signal: R,
2991
+ cancelToken: L,
2992
+ timeout: k,
2993
2993
  onDownloadProgress: $,
2994
2994
  onUploadProgress: A,
2995
- responseType: R,
2995
+ responseType: x,
2996
2996
  headers: D,
2997
2997
  withCredentials: j = "same-origin",
2998
2998
  fetchOptions: I,
2999
2999
  maxContentLength: V,
3000
3000
  maxBodyLength: z
3001
- } = fo(h);
3002
- const x = g.isNumber(V) && V > -1, M = g.isNumber(z) && z > -1, ve = (B) => g.hasOwnProp(h, B) ? h[B] : void 0;
3001
+ } = fo(g);
3002
+ const T = h.isNumber(V) && V > -1, M = h.isNumber(z) && z > -1, ve = (B) => h.hasOwnProp(g, B) ? g[B] : void 0;
3003
3003
  let Tr = a || fetch;
3004
- R = R ? (R + "").toLowerCase() : "text";
3004
+ x = x ? (x + "").toLowerCase() : "text";
3005
3005
  let Ce = uc(
3006
- [L, T && T.toAbortSignal()],
3007
- O
3006
+ [R, L && L.toAbortSignal()],
3007
+ k
3008
3008
  ), W = null;
3009
3009
  const xe = Ce && Ce.unsubscribe && (() => {
3010
3010
  Ce.unsubscribe();
@@ -3013,14 +3013,14 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
3013
3013
  const Rr = () => new N(
3014
3014
  "Request body larger than maxBodyLength limit",
3015
3015
  N.ERR_BAD_REQUEST,
3016
- h,
3016
+ g,
3017
3017
  W
3018
3018
  );
3019
3019
  try {
3020
3020
  let B;
3021
3021
  const ee = ve("auth");
3022
3022
  if (ee) {
3023
- const F = g.getSafeProp(ee, "username") || "", G = g.getSafeProp(ee, "password") || "";
3023
+ const F = h.getSafeProp(ee, "username") || "", G = h.getSafeProp(ee, "password") || "";
3024
3024
  B = {
3025
3025
  username: F,
3026
3026
  password: G
@@ -3040,19 +3040,19 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
3040
3040
  if (B && (D.delete("authorization"), D.set(
3041
3041
  "Authorization",
3042
3042
  "Basic " + btoa(Ec((B.username || "") + ":" + (B.password || "")))
3043
- )), x && typeof p == "string" && p.startsWith("data:") && Cc(p) > V)
3043
+ )), T && typeof p == "string" && p.startsWith("data:") && Cc(p) > V)
3044
3044
  throw new N(
3045
3045
  "maxContentLength size of " + V + " exceeded",
3046
3046
  N.ERR_BAD_RESPONSE,
3047
- h,
3047
+ g,
3048
3048
  W
3049
3049
  );
3050
3050
  if (M && b !== "get" && b !== "head") {
3051
- const F = await w(S);
3051
+ const F = await w(C);
3052
3052
  if (typeof F == "number" && isFinite(F) && (Ue = F, F > z))
3053
3053
  throw Rr();
3054
3054
  }
3055
- const Vt = M && (g.isReadableStream(S) || g.isStream(S)), xr = (F, G, Ee) => Gr(
3055
+ const Vt = M && (h.isReadableStream(C) || h.isStream(C)), xr = (F, G, Ee) => Gr(
3056
3056
  F,
3057
3057
  na,
3058
3058
  (Le) => {
@@ -3063,32 +3063,32 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
3063
3063
  Ee
3064
3064
  );
3065
3065
  if (y && b !== "get" && b !== "head" && (A || Vt)) {
3066
- if (Ue = Ue ?? await m(D, S), Ue !== 0 || Vt) {
3066
+ if (Ue = Ue ?? await m(D, C), Ue !== 0 || Vt) {
3067
3067
  let F = new o(p, {
3068
3068
  method: "POST",
3069
- body: S,
3069
+ body: C,
3070
3070
  duplex: "half"
3071
3071
  }), G;
3072
- if (g.isFormData(S) && (G = F.headers.get("content-type")) && D.setContentType(G), F.body) {
3072
+ if (h.isFormData(C) && (G = F.headers.get("content-type")) && D.setContentType(G), F.body) {
3073
3073
  const [Ee, Le] = A && Zr(
3074
3074
  Ue,
3075
3075
  fn(Xr(A))
3076
3076
  ) || [];
3077
- S = xr(F.body, Ee, Le);
3077
+ C = xr(F.body, Ee, Le);
3078
3078
  }
3079
3079
  }
3080
3080
  } else if (Vt && !c && u && b !== "get" && b !== "head")
3081
- S = xr(S);
3081
+ C = xr(C);
3082
3082
  else if (Vt && c && !y && b !== "get" && b !== "head")
3083
3083
  throw new N(
3084
3084
  "Stream request bodies are not supported by the current fetch implementation",
3085
3085
  N.ERR_NOT_SUPPORT,
3086
- h,
3086
+ g,
3087
3087
  W
3088
3088
  );
3089
- g.isString(j) || (j = j ? "include" : "omit");
3089
+ h.isString(j) || (j = j ? "include" : "omit");
3090
3090
  const Zo = c && "credentials" in o.prototype;
3091
- if (g.isFormData(S)) {
3091
+ if (h.isFormData(C)) {
3092
3092
  const F = D.getContentType();
3093
3093
  F && /^multipart\/form-data/i.test(F) && !/boundary=/i.test(F) && D.delete("content-type");
3094
3094
  }
@@ -3098,40 +3098,40 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
3098
3098
  signal: Ce,
3099
3099
  method: b.toUpperCase(),
3100
3100
  headers: to(D.normalize()),
3101
- body: S,
3101
+ body: C,
3102
3102
  duplex: "half",
3103
3103
  credentials: Zo ? j : void 0
3104
3104
  };
3105
3105
  W = c && new o(p, Lr);
3106
3106
  let he = await (c ? Tr(W, I) : Tr(p, Lr));
3107
3107
  const Ar = Z.from(he.headers);
3108
- if (x) {
3109
- const F = g.toFiniteNumber(Ar.getContentLength());
3108
+ if (T) {
3109
+ const F = h.toFiniteNumber(Ar.getContentLength());
3110
3110
  if (F != null && F > V)
3111
3111
  throw new N(
3112
3112
  "maxContentLength size of " + V + " exceeded",
3113
3113
  N.ERR_BAD_RESPONSE,
3114
- h,
3114
+ g,
3115
3115
  W
3116
3116
  );
3117
3117
  }
3118
- const Sn = E && (R === "stream" || R === "response");
3119
- if (E && he.body && ($ || x || Sn && xe)) {
3118
+ const Sn = E && (x === "stream" || x === "response");
3119
+ if (E && he.body && ($ || T || Sn && xe)) {
3120
3120
  const F = {};
3121
3121
  ["status", "statusText", "headers"].forEach((dt) => {
3122
3122
  F[dt] = he[dt];
3123
3123
  });
3124
- const G = g.toFiniteNumber(Ar.getContentLength()), [Ee, Le] = $ && Zr(
3124
+ const G = h.toFiniteNumber(Ar.getContentLength()), [Ee, Le] = $ && Zr(
3125
3125
  G,
3126
3126
  fn(Xr($), !0)
3127
3127
  ) || [];
3128
3128
  let Fr = 0;
3129
3129
  const Xo = (dt) => {
3130
- if (x && (Fr = dt, Fr > V))
3130
+ if (T && (Fr = dt, Fr > V))
3131
3131
  throw new N(
3132
3132
  "maxContentLength size of " + V + " exceeded",
3133
3133
  N.ERR_BAD_RESPONSE,
3134
- h,
3134
+ g,
3135
3135
  W
3136
3136
  );
3137
3137
  Ee && Ee(dt);
@@ -3143,18 +3143,18 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
3143
3143
  F
3144
3144
  );
3145
3145
  }
3146
- R = R || "text";
3147
- let ge = await v[g.findKey(v, R) || "text"](
3146
+ x = x || "text";
3147
+ let ge = await v[h.findKey(v, x) || "text"](
3148
3148
  he,
3149
- h
3149
+ g
3150
3150
  );
3151
- if (x && !E && !Sn) {
3151
+ if (T && !E && !Sn) {
3152
3152
  let F;
3153
3153
  if (ge != null && (typeof ge.byteLength == "number" ? F = ge.byteLength : typeof ge.size == "number" ? F = ge.size : typeof ge == "string" && (F = typeof r == "function" ? new r().encode(ge).byteLength : ge.length)), typeof F == "number" && F > V)
3154
3154
  throw new N(
3155
3155
  "maxContentLength size of " + V + " exceeded",
3156
3156
  N.ERR_BAD_RESPONSE,
3157
- h,
3157
+ g,
3158
3158
  W
3159
3159
  );
3160
3160
  }
@@ -3164,14 +3164,14 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
3164
3164
  headers: Z.from(he.headers),
3165
3165
  status: he.status,
3166
3166
  statusText: he.statusText,
3167
- config: h,
3167
+ config: g,
3168
3168
  request: W
3169
3169
  });
3170
3170
  });
3171
3171
  } catch (B) {
3172
3172
  if (xe && xe(), Ce && Ce.aborted && Ce.reason instanceof N) {
3173
3173
  const ee = Ce.reason;
3174
- throw ee.config = h, W && (ee.request = W), B !== ee && Object.defineProperty(ee, "cause", {
3174
+ throw ee.config = g, W && (ee.request = W), B !== ee && Object.defineProperty(ee, "cause", {
3175
3175
  __proto__: null,
3176
3176
  value: B,
3177
3177
  writable: !0,
@@ -3187,7 +3187,7 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
3187
3187
  const ee = new N(
3188
3188
  "Network Error",
3189
3189
  N.ERR_NETWORK,
3190
- h,
3190
+ g,
3191
3191
  W,
3192
3192
  B && B.response
3193
3193
  );
@@ -3199,7 +3199,7 @@ const br = "1.19.0", na = 64 * 1024, { isFunction: Ht } = g, Ec = (e) => encodeU
3199
3199
  configurable: !0
3200
3200
  }), ee;
3201
3201
  }
3202
- throw N.from(B, B && B.code, h, W, B && B.response);
3202
+ throw N.from(B, B && B.code, g, W, B && B.response);
3203
3203
  }
3204
3204
  };
3205
3205
  }, Nc = /* @__PURE__ */ new Map(), ho = (e) => {
@@ -3218,7 +3218,7 @@ const vr = {
3218
3218
  get: ho
3219
3219
  }
3220
3220
  };
3221
- g.forEach(vr, (e, t) => {
3221
+ h.forEach(vr, (e, t) => {
3222
3222
  if (e) {
3223
3223
  try {
3224
3224
  Object.defineProperty(e, "name", { __proto__: null, value: t });
@@ -3227,9 +3227,9 @@ g.forEach(vr, (e, t) => {
3227
3227
  Object.defineProperty(e, "adapterName", { __proto__: null, value: t });
3228
3228
  }
3229
3229
  });
3230
- const oa = (e) => `- ${e}`, Tc = (e) => g.isFunction(e) || e === null || e === !1;
3230
+ const oa = (e) => `- ${e}`, Tc = (e) => h.isFunction(e) || e === null || e === !1;
3231
3231
  function Rc(e, t) {
3232
- e = g.isArray(e) ? e : [e];
3232
+ e = h.isArray(e) ? e : [e];
3233
3233
  const { length: n } = e;
3234
3234
  let r, a;
3235
3235
  const o = {};
@@ -3238,7 +3238,7 @@ function Rc(e, t) {
3238
3238
  let i;
3239
3239
  if (a = r, !Tc(r) && (a = vr[(i = String(r)).toLowerCase()], a === void 0))
3240
3240
  throw new N(`Unknown adapter '${i}'`);
3241
- if (a && (g.isFunction(a) || (a = a.get(t))))
3241
+ if (a && (h.isFunction(a) || (a = a.get(t))))
3242
3242
  break;
3243
3243
  o[i || "#" + s] = a;
3244
3244
  }
@@ -3412,7 +3412,7 @@ let Fe = class {
3412
3412
  validateStatusUndefinedResolves: K.transitional(K.boolean)
3413
3413
  },
3414
3414
  !1
3415
- ), a != null && (g.isFunction(a) ? n.paramsSerializer = {
3415
+ ), a != null && (h.isFunction(a) ? n.paramsSerializer = {
3416
3416
  serialize: a
3417
3417
  } : Gt.assertOptions(
3418
3418
  a,
@@ -3429,8 +3429,8 @@ let Fe = class {
3429
3429
  },
3430
3430
  !0
3431
3431
  ), n.method = (n.method || this.defaults.method || "get").toLowerCase();
3432
- let s = o && g.merge(o.common, o[n.method]);
3433
- o && g.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (v) => {
3432
+ let s = o && h.merge(o.common, o[n.method]);
3433
+ o && h.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (v) => {
3434
3434
  delete o[v];
3435
3435
  }), n.headers = Z.concat(s, o);
3436
3436
  const i = [];
@@ -3465,12 +3465,12 @@ let Fe = class {
3465
3465
  break;
3466
3466
  }
3467
3467
  try {
3468
- const h = w.call(this, m);
3469
- g.isThenable(h) && (u = Promise.resolve(h).then(
3468
+ const g = w.call(this, m);
3469
+ h.isThenable(g) && (u = Promise.resolve(g).then(
3470
3470
  () => Fn.call(this, E)
3471
3471
  ));
3472
- } catch (h) {
3473
- u = Promise.reject(h);
3472
+ } catch (g) {
3473
+ u = Promise.reject(g);
3474
3474
  }
3475
3475
  break;
3476
3476
  }
@@ -3491,18 +3491,18 @@ let Fe = class {
3491
3491
  return so(n, t.params, t.paramsSerializer);
3492
3492
  }
3493
3493
  };
3494
- g.forEach(["delete", "get", "head", "options"], function(t) {
3494
+ h.forEach(["delete", "get", "head", "options"], function(t) {
3495
3495
  Fe.prototype[t] = function(n, r) {
3496
3496
  return this.request(
3497
3497
  Pe(r || {}, {
3498
3498
  method: t,
3499
3499
  url: n,
3500
- data: r && g.hasOwnProp(r, "data") ? r.data : void 0
3500
+ data: r && h.hasOwnProp(r, "data") ? r.data : void 0
3501
3501
  })
3502
3502
  );
3503
3503
  };
3504
3504
  });
3505
- g.forEach(["post", "put", "patch", "query"], function(t) {
3505
+ h.forEach(["post", "put", "patch", "query"], function(t) {
3506
3506
  function n(r) {
3507
3507
  return function(o, s, i) {
3508
3508
  return this.request(
@@ -3598,7 +3598,7 @@ function Ac(e) {
3598
3598
  };
3599
3599
  }
3600
3600
  function Fc(e) {
3601
- return g.isObject(e) && e.isAxiosError === !0;
3601
+ return h.isObject(e) && e.isAxiosError === !0;
3602
3602
  }
3603
3603
  const rr = {
3604
3604
  Continue: 100,
@@ -3677,7 +3677,7 @@ Object.entries(rr).forEach(([e, t]) => {
3677
3677
  });
3678
3678
  function wo(e) {
3679
3679
  const t = new Fe(e), n = za(Fe.prototype.request, t);
3680
- return g.extend(n, Fe.prototype, t, { allOwnKeys: !0 }), g.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(a) {
3680
+ return h.extend(n, Fe.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(a) {
3681
3681
  return wo(Pe(e, a));
3682
3682
  }, n;
3683
3683
  }
@@ -3697,7 +3697,7 @@ q.spread = Ac;
3697
3697
  q.isAxiosError = Fc;
3698
3698
  q.mergeConfig = Pe;
3699
3699
  q.AxiosHeaders = Z;
3700
- q.formToJSON = (e) => lo(g.isHTMLForm(e) ? new FormData(e) : e);
3700
+ q.formToJSON = (e) => lo(h.isHTMLForm(e) ? new FormData(e) : e);
3701
3701
  q.getAdapter = go.getAdapter;
3702
3702
  q.HttpStatusCode = rr;
3703
3703
  q.default = q;
@@ -4779,7 +4779,7 @@ function re({
4779
4779
  n === "lg" ? "ca-btn--lg" : "",
4780
4780
  o
4781
4781
  ].filter(Boolean).join(" ");
4782
- return /* @__PURE__ */ C(
4782
+ return /* @__PURE__ */ S(
4783
4783
  "button",
4784
4784
  {
4785
4785
  type: s,
@@ -4870,8 +4870,8 @@ function wd({
4870
4870
  onAction: r,
4871
4871
  className: a = ""
4872
4872
  }) {
4873
- return /* @__PURE__ */ C("header", { className: `ca-page-header ${a}`.trim(), children: [
4874
- /* @__PURE__ */ C("div", { className: "ca-page-header__text", children: [
4873
+ return /* @__PURE__ */ S("header", { className: `ca-page-header ${a}`.trim(), children: [
4874
+ /* @__PURE__ */ S("div", { className: "ca-page-header__text", children: [
4875
4875
  /* @__PURE__ */ l(Ao, { children: e }),
4876
4876
  t ? /* @__PURE__ */ l(Er, { children: t }) : null
4877
4877
  ] }),
@@ -5042,7 +5042,7 @@ function qd({
5042
5042
  const o = (s) => {
5043
5043
  s.onClick?.(), r(!1);
5044
5044
  };
5045
- return /* @__PURE__ */ C(
5045
+ return /* @__PURE__ */ S(
5046
5046
  "div",
5047
5047
  {
5048
5048
  ref: a,
@@ -5059,7 +5059,7 @@ function qd({
5059
5059
  children: /* @__PURE__ */ l(kd, { size: 16 })
5060
5060
  }
5061
5061
  ),
5062
- n && e.length > 0 && /* @__PURE__ */ l("div", { className: "ca-more-functions__menu", children: e.map((s, i) => /* @__PURE__ */ C(
5062
+ n && e.length > 0 && /* @__PURE__ */ l("div", { className: "ca-more-functions__menu", children: e.map((s, i) => /* @__PURE__ */ S(
5063
5063
  "button",
5064
5064
  {
5065
5065
  type: "button",
@@ -5085,7 +5085,7 @@ function Vd({
5085
5085
  menuOptions: o = [],
5086
5086
  className: s = ""
5087
5087
  }) {
5088
- return /* @__PURE__ */ C("div", { className: `ca-system-card__header ${s}`.trim(), children: [
5088
+ return /* @__PURE__ */ S("div", { className: `ca-system-card__header ${s}`.trim(), children: [
5089
5089
  /* @__PURE__ */ l("div", { className: "ca-system-card__title-wrap", children: r ? /* @__PURE__ */ l(
5090
5090
  "button",
5091
5091
  {
@@ -5095,7 +5095,7 @@ function Vd({
5095
5095
  children: e
5096
5096
  }
5097
5097
  ) : /* @__PURE__ */ l(Fo, { children: e }) }),
5098
- /* @__PURE__ */ C("div", { className: "ca-system-card__header-actions", children: [
5098
+ /* @__PURE__ */ S("div", { className: "ca-system-card__header-actions", children: [
5099
5099
  /* @__PURE__ */ l(bd, { status: t, label: n }),
5100
5100
  /* @__PURE__ */ l(qd, { options: o })
5101
5101
  ] })
@@ -5138,9 +5138,9 @@ function Wd({
5138
5138
  const i = Me(), c = ae(), d = () => {
5139
5139
  o != null && o !== "" && c(xt(o)), i("/querymanagement");
5140
5140
  };
5141
- return /* @__PURE__ */ C("div", { className: `ca-system-card__footer ${a}`.trim(), children: [
5141
+ return /* @__PURE__ */ S("div", { className: `ca-system-card__footer ${a}`.trim(), children: [
5142
5142
  /* @__PURE__ */ l($e, { variant: "small", as: "span", children: e ? `Updated on ${e}` : "" }),
5143
- /* @__PURE__ */ C("div", { className: "ca-system-card__footer-actions", children: [
5143
+ /* @__PURE__ */ S("div", { className: "ca-system-card__footer-actions", children: [
5144
5144
  /* @__PURE__ */ l(re, { size: "sm", onClick: d, children: t }),
5145
5145
  /* @__PURE__ */ l(
5146
5146
  re,
@@ -5159,7 +5159,7 @@ function Wd({
5159
5159
  }
5160
5160
  function Hd({ label: e, value: t, icon: n, className: r = "" }) {
5161
5161
  const a = t == null ? "—" : typeof t == "number" ? String(t).padStart(2, "0") : t;
5162
- return /* @__PURE__ */ C("div", { className: `ca-data-point ${r}`.trim(), children: [
5162
+ return /* @__PURE__ */ S("div", { className: `ca-data-point ${r}`.trim(), children: [
5163
5163
  n ? /* @__PURE__ */ l("span", { className: "ca-data-point__icon", "aria-hidden": "true", children: n }) : null,
5164
5164
  /* @__PURE__ */ l(yd, { children: a }),
5165
5165
  /* @__PURE__ */ l("span", { className: "ca-data-point__label", children: e })
@@ -5187,7 +5187,7 @@ function Qd({
5187
5187
  onDescriptionClick: v,
5188
5188
  onConfigure: w,
5189
5189
  onOpen: m,
5190
- menuOptions: h = [],
5190
+ menuOptions: g = [],
5191
5191
  className: p = ""
5192
5192
  }) {
5193
5193
  const b = () => {
@@ -5201,19 +5201,19 @@ function Qd({
5201
5201
  formsFilled: u,
5202
5202
  updatedOn: f
5203
5203
  });
5204
- }, S = () => {
5204
+ }, C = () => {
5205
5205
  if (v) {
5206
5206
  v({ id: e, title: t, descriptionHref: s });
5207
5207
  return;
5208
5208
  }
5209
5209
  s && typeof window < "u" && window.open(s, "_blank", "noopener,noreferrer");
5210
- }, L = [
5210
+ }, R = [
5211
5211
  { label: "Total entries", value: n?.totalEntries, icon: /* @__PURE__ */ l("img", { src: Kd, alt: "" }) },
5212
5212
  { label: "Open entries", value: n?.openEntries, icon: /* @__PURE__ */ l("img", { src: Jd, alt: "" }) },
5213
5213
  { label: "Closed entries", value: n?.closedEntries, icon: /* @__PURE__ */ l("img", { src: Zd, alt: "" }) },
5214
5214
  { label: "Escalated entries", value: n?.escalatedEntries, icon: /* @__PURE__ */ l("img", { src: Xd, alt: "" }) }
5215
5215
  ];
5216
- return /* @__PURE__ */ C("article", { className: `ca-system-card ${p}`.trim(), children: [
5216
+ return /* @__PURE__ */ S("article", { className: `ca-system-card ${p}`.trim(), children: [
5217
5217
  /* @__PURE__ */ l(
5218
5218
  Vd,
5219
5219
  {
@@ -5222,14 +5222,14 @@ function Qd({
5222
5222
  statusLabel: a,
5223
5223
  titleAsLink: y,
5224
5224
  onTitleClick: () => E?.({ id: e, title: t }),
5225
- menuOptions: h
5225
+ menuOptions: g
5226
5226
  }
5227
5227
  ),
5228
- o ? /* @__PURE__ */ l("p", { className: "ca-system-card__description", onClick: S, children: o }) : null,
5229
- /* @__PURE__ */ l("div", { className: "ca-system-card__stats", children: L.map((T, O) => /* @__PURE__ */ C(Aa.Fragment, { children: [
5230
- O > 0 ? /* @__PURE__ */ l(zd, {}) : /* @__PURE__ */ l("div", { className: "ca-system-card__stats-spacer" }),
5231
- /* @__PURE__ */ l(Hd, { label: T.label, value: T.value, icon: T.icon })
5232
- ] }, T.label)) }),
5228
+ o ? /* @__PURE__ */ l("p", { className: "ca-system-card__description", onClick: C, children: o }) : null,
5229
+ /* @__PURE__ */ l("div", { className: "ca-system-card__stats", children: R.map((L, k) => /* @__PURE__ */ S(Aa.Fragment, { children: [
5230
+ k > 0 ? /* @__PURE__ */ l(zd, {}) : /* @__PURE__ */ l("div", { className: "ca-system-card__stats-spacer" }),
5231
+ /* @__PURE__ */ l(Hd, { label: L.label, value: L.value, icon: L.icon })
5232
+ ] }, L.label)) }),
5233
5233
  /* @__PURE__ */ l(
5234
5234
  Wd,
5235
5235
  {
@@ -5274,7 +5274,7 @@ function be({
5274
5274
  inputClassName: s = "",
5275
5275
  ...i
5276
5276
  }) {
5277
- return /* @__PURE__ */ C("div", { className: `ca-input-wrap ${o}`.trim(), children: [
5277
+ return /* @__PURE__ */ S("div", { className: `ca-input-wrap ${o}`.trim(), children: [
5278
5278
  a ? /* @__PURE__ */ l("span", { className: "ca-input-wrap__icon", children: a }) : null,
5279
5279
  /* @__PURE__ */ l(
5280
5280
  "input",
@@ -5290,7 +5290,7 @@ function be({
5290
5290
  ] });
5291
5291
  }
5292
5292
  function Gd({ size: e = 18, color: t = "currentColor", ...n }) {
5293
- return /* @__PURE__ */ C(
5293
+ return /* @__PURE__ */ S(
5294
5294
  "svg",
5295
5295
  {
5296
5296
  width: e,
@@ -5345,7 +5345,7 @@ function eu({
5345
5345
  ) });
5346
5346
  }
5347
5347
  function Ut({ text: e = "Loading", fullScreen: t = !1 }) {
5348
- return /* @__PURE__ */ C(
5348
+ return /* @__PURE__ */ S(
5349
5349
  "div",
5350
5350
  {
5351
5351
  className: "ca-loading",
@@ -5354,7 +5354,7 @@ function Ut({ text: e = "Loading", fullScreen: t = !1 }) {
5354
5354
  "aria-live": "polite",
5355
5355
  children: [
5356
5356
  /* @__PURE__ */ l("span", { className: "ca-loading__spinner" }),
5357
- /* @__PURE__ */ C("span", { children: [
5357
+ /* @__PURE__ */ S("span", { children: [
5358
5358
  e,
5359
5359
  "…"
5360
5360
  ] })
@@ -5412,35 +5412,34 @@ const n0 = [
5412
5412
  function nu({
5413
5413
  title: e = "Complaint Management",
5414
5414
  description: t = tu,
5415
- systems: n,
5416
- createLabel: r = "Create New Form",
5417
- onCreateForm: a,
5418
- onConfigure: o,
5419
- onOpen: s,
5420
- onTitleClick: i,
5421
- onDescriptionClick: c,
5422
- onSearch: d
5415
+ createLabel: n = "Create New Form",
5416
+ onCreateForm: r,
5417
+ onConfigure: a,
5418
+ onOpen: o,
5419
+ onTitleClick: s,
5420
+ onDescriptionClick: i,
5421
+ onSearch: c
5423
5422
  }) {
5424
- const u = Me(), f = ae(), [y, E] = U(""), {
5425
- complaintList: v = [],
5426
- loading: w = !1,
5427
- error: m = null
5428
- } = J((T) => T.complaintType ?? {});
5423
+ const d = Me(), u = ae(), [f, y] = U(""), {
5424
+ complaintList: E = [],
5425
+ loading: v = !1,
5426
+ error: w = null
5427
+ } = J((C) => C.complaintType ?? {});
5429
5428
  X(() => {
5430
- n == null && (f(hn({ data: !1 })), f(nn()));
5431
- }, [f, n]);
5432
- const h = n ?? v, p = ie(() => {
5433
- const T = y.trim().toLowerCase();
5434
- return T ? h.filter((O) => [
5435
- O.title,
5436
- O.name,
5437
- O.description,
5438
- O.status
5439
- ].filter(Boolean).join(" ").toLowerCase().includes(T)) : h;
5440
- }, [h, y]);
5429
+ u(hn({ data: !1 })), u(nn());
5430
+ }, [u]);
5431
+ const m = ie(() => {
5432
+ const C = f.trim().toLowerCase();
5433
+ return C ? E.filter((R) => [
5434
+ R.title,
5435
+ R.name,
5436
+ R.description,
5437
+ R.status
5438
+ ].filter(Boolean).join(" ").toLowerCase().includes(C)) : E;
5439
+ }, [E, f]);
5441
5440
  return X(() => {
5442
- d && d(y);
5443
- }, [y, d]), /* @__PURE__ */ C(
5441
+ c && c(f);
5442
+ }, [f, c]), /* @__PURE__ */ S(
5444
5443
  "div",
5445
5444
  {
5446
5445
  className: "ca-complaint-management-page",
@@ -5451,33 +5450,33 @@ function nu({
5451
5450
  {
5452
5451
  title: e,
5453
5452
  description: t,
5454
- actionLabel: r,
5453
+ actionLabel: n,
5455
5454
  onAction: () => {
5456
- f(hn({ data: !1 })), a?.(), u("/settings/new?step=1");
5455
+ u(hn({ data: !1 })), r?.(), d("/settings/new?step=1");
5457
5456
  }
5458
5457
  }
5459
5458
  ),
5460
5459
  /* @__PURE__ */ l("div", { className: "ca-search-container", children: /* @__PURE__ */ l(
5461
5460
  eu,
5462
5461
  {
5463
- value: y,
5464
- onChange: (T) => {
5465
- E(T.target.value);
5462
+ value: f,
5463
+ onChange: (C) => {
5464
+ y(C.target.value);
5466
5465
  },
5467
5466
  placeholder: "Search"
5468
5467
  }
5469
5468
  ) }),
5470
- w ? /* @__PURE__ */ l(Ut, { text: "Loading systems" }) : m ? /* @__PURE__ */ l("div", { className: "ca-empty", children: /* @__PURE__ */ l("p", { className: "ca-body", children: typeof m == "string" ? m : "Failed to load complaint types." }) }) : /* @__PURE__ */ l(
5469
+ v ? /* @__PURE__ */ l(Ut, { text: "Loading systems" }) : w ? /* @__PURE__ */ l("div", { className: "ca-empty", children: /* @__PURE__ */ l("p", { className: "ca-body", children: typeof w == "string" ? w : "Failed to load complaint types." }) }) : /* @__PURE__ */ l(
5471
5470
  Yd,
5472
5471
  {
5473
- systems: p,
5474
- onConfigure: (T) => {
5475
- o?.(T), u(`/settings/${T.id ?? "new"}?step=1`);
5472
+ systems: m,
5473
+ onConfigure: (C) => {
5474
+ a?.(C), d(`/settings/${C.id ?? "new"}?step=1`);
5476
5475
  },
5477
- onOpen: s,
5478
- onTitleClick: i,
5479
- onDescriptionClick: c,
5480
- emptyMessage: y ? "No systems match your search." : "No systems found."
5476
+ onOpen: o,
5477
+ onTitleClick: s,
5478
+ onDescriptionClick: i,
5479
+ emptyMessage: f ? "No systems match your search." : "No systems found."
5481
5480
  }
5482
5481
  )
5483
5482
  ]
@@ -5586,7 +5585,7 @@ const pe = [
5586
5585
  { value: "#8B5CF6", label: "Purple" }
5587
5586
  ];
5588
5587
  function iu({ size: e = 28, color: t = "currentColor", ...n }) {
5589
- return /* @__PURE__ */ C(
5588
+ return /* @__PURE__ */ S(
5590
5589
  "svg",
5591
5590
  {
5592
5591
  width: e,
@@ -5640,10 +5639,10 @@ function lu({
5640
5639
  nextVariant: s = "primary",
5641
5640
  className: i = ""
5642
5641
  }) {
5643
- return /* @__PURE__ */ C("div", { className: `ca-settings-card__header ${i}`.trim(), children: [
5644
- /* @__PURE__ */ C("div", { className: "ca-settings-card__heading", children: [
5642
+ return /* @__PURE__ */ S("div", { className: `ca-settings-card__header ${i}`.trim(), children: [
5643
+ /* @__PURE__ */ S("div", { className: "ca-settings-card__heading", children: [
5645
5644
  /* @__PURE__ */ l(iu, {}),
5646
- /* @__PURE__ */ C("div", { children: [
5645
+ /* @__PURE__ */ S("div", { children: [
5647
5646
  /* @__PURE__ */ l(Fo, { children: e }),
5648
5647
  t ? /* @__PURE__ */ l(Er, { className: "ca-settings-card__desc", children: t }) : null
5649
5648
  ] })
@@ -5672,7 +5671,7 @@ function jt({
5672
5671
  footer: c,
5673
5672
  className: d = ""
5674
5673
  }) {
5675
- return /* @__PURE__ */ C("section", { className: `ca-settings-card ${d}`.trim(), children: [
5674
+ return /* @__PURE__ */ S("section", { className: `ca-settings-card ${d}`.trim(), children: [
5676
5675
  /* @__PURE__ */ l(
5677
5676
  lu,
5678
5677
  {
@@ -5691,7 +5690,7 @@ function jt({
5691
5690
  ] });
5692
5691
  }
5693
5692
  function _r({ children: e, hint: t, htmlFor: n, className: r = "" }) {
5694
- return /* @__PURE__ */ C("div", { className: `ca-field-label ${r}`.trim(), children: [
5693
+ return /* @__PURE__ */ S("div", { className: `ca-field-label ${r}`.trim(), children: [
5695
5694
  /* @__PURE__ */ l("label", { className: "ca-label", htmlFor: n, children: e }),
5696
5695
  t != null ? /* @__PURE__ */ l("span", { className: "ca-field-label__hint", children: t }) : null
5697
5696
  ] });
@@ -5717,8 +5716,8 @@ function ue({
5717
5716
  disabled: o = !1,
5718
5717
  ...s
5719
5718
  }) {
5720
- return /* @__PURE__ */ C("div", { className: `ca-select ${a}`.trim(), children: [
5721
- /* @__PURE__ */ C(
5719
+ return /* @__PURE__ */ S("div", { className: `ca-select ${a}`.trim(), children: [
5720
+ /* @__PURE__ */ S(
5722
5721
  "select",
5723
5722
  {
5724
5723
  className: "ca-select__control",
@@ -5767,7 +5766,7 @@ function ye({
5767
5766
  className: r = "",
5768
5767
  htmlFor: a
5769
5768
  }) {
5770
- return /* @__PURE__ */ C("div", { className: `ca-form-field ${r}`.trim(), children: [
5769
+ return /* @__PURE__ */ S("div", { className: `ca-form-field ${r}`.trim(), children: [
5771
5770
  e != null ? /* @__PURE__ */ l(_r, { htmlFor: a, hint: t, children: e }) : null,
5772
5771
  n
5773
5772
  ] });
@@ -5776,7 +5775,7 @@ function ga({ label: e, hint: t, ...n }) {
5776
5775
  return /* @__PURE__ */ l(ye, { label: e, hint: t, htmlFor: n.id, children: /* @__PURE__ */ l(be, { ...n }) });
5777
5776
  }
5778
5777
  function uu({ label: e, hint: t, suffix: n, ...r }) {
5779
- return /* @__PURE__ */ l(ye, { label: e, hint: t, htmlFor: r.id, children: /* @__PURE__ */ C("div", { className: "input-with-suffix", children: [
5778
+ return /* @__PURE__ */ l(ye, { label: e, hint: t, htmlFor: r.id, children: /* @__PURE__ */ S("div", { className: "input-with-suffix", children: [
5780
5779
  /* @__PURE__ */ l(be, { ...r }),
5781
5780
  n && /* @__PURE__ */ l("div", { className: "input-suffix", children: n })
5782
5781
  ] }) });
@@ -5815,7 +5814,7 @@ function fu({
5815
5814
  onChange: n,
5816
5815
  className: r = ""
5817
5816
  }) {
5818
- return /* @__PURE__ */ C("div", { className: `ca-toggle-field ${r}`.trim(), children: [
5817
+ return /* @__PURE__ */ S("div", { className: `ca-toggle-field ${r}`.trim(), children: [
5819
5818
  /* @__PURE__ */ l(gd, { children: e }),
5820
5819
  /* @__PURE__ */ l(Bo, { checked: t, onChange: n, "aria-label": e })
5821
5820
  ] });
@@ -5832,7 +5831,7 @@ function mu({ size: e = 12, color: t = "currentColor", ...n }) {
5832
5831
  ) });
5833
5832
  }
5834
5833
  function hu({ label: e, onRemove: t, className: n = "" }) {
5835
- return /* @__PURE__ */ C("span", { className: `ca-tag ${n}`.trim(), children: [
5834
+ return /* @__PURE__ */ S("span", { className: `ca-tag ${n}`.trim(), children: [
5836
5835
  e,
5837
5836
  t ? /* @__PURE__ */ l(
5838
5837
  "button",
@@ -5870,7 +5869,7 @@ function $o({
5870
5869
  }, f = (y) => {
5871
5870
  r?.(n.filter((E) => String(E) !== String(y)));
5872
5871
  };
5873
- return /* @__PURE__ */ C("div", { className: `ca-role-select ${o}`.trim(), children: [
5872
+ return /* @__PURE__ */ S("div", { className: `ca-role-select ${o}`.trim(), children: [
5874
5873
  /* @__PURE__ */ l(_r, { children: e }),
5875
5874
  /* @__PURE__ */ l(
5876
5875
  ue,
@@ -5911,33 +5910,33 @@ function qt({
5911
5910
  const w = requestAnimationFrame(() => {
5912
5911
  let m = v.parentElement;
5913
5912
  for (; m && m !== document.body; ) {
5914
- const { overflowX: T } = getComputedStyle(m);
5915
- if (m.scrollWidth > m.clientWidth + 1 && (T === "auto" || T === "scroll")) break;
5913
+ const { overflowX: L } = getComputedStyle(m);
5914
+ if (m.scrollWidth > m.clientWidth + 1 && (L === "auto" || L === "scroll")) break;
5916
5915
  m = m.parentElement;
5917
5916
  }
5918
5917
  if (!m || m === document.body) return;
5919
- const h = m.getBoundingClientRect(), p = v.getBoundingClientRect(), b = 12;
5920
- if (p.left >= h.left + b && p.right <= h.right - b) return;
5921
- const L = p.left - h.left - (h.width - p.width) / 2;
5918
+ const g = m.getBoundingClientRect(), p = v.getBoundingClientRect(), b = 12;
5919
+ if (p.left >= g.left + b && p.right <= g.right - b) return;
5920
+ const R = p.left - g.left - (g.width - p.width) / 2;
5922
5921
  m.scrollTo({
5923
- left: m.scrollLeft + L,
5922
+ left: m.scrollLeft + R,
5924
5923
  behavior: "smooth"
5925
5924
  });
5926
5925
  });
5927
5926
  return () => cancelAnimationFrame(w);
5928
- }, [t]), /* @__PURE__ */ C("div", { className: `ca-stepper-wrap ca-stepper-wrap--${a} ${r}`.trim(), children: [
5927
+ }, [t]), /* @__PURE__ */ S("div", { className: `ca-stepper-wrap ca-stepper-wrap--${a} ${r}`.trim(), children: [
5929
5928
  /* @__PURE__ */ l("nav", { className: `ca-stepper ca-stepper--${a}`, "aria-label": "Progress", children: e.map((v, w) => {
5930
- const m = v.id ?? w + 1, h = m === t, p = m < t, b = !!n && (p || h);
5931
- return /* @__PURE__ */ C(
5929
+ const m = v.id ?? w + 1, g = m === t, p = m < t, b = !!n && (p || g);
5930
+ return /* @__PURE__ */ S(
5932
5931
  "button",
5933
5932
  {
5934
5933
  type: "button",
5935
- ref: (S) => {
5936
- f.current[m] = S;
5934
+ ref: (C) => {
5935
+ f.current[m] = C;
5937
5936
  },
5938
5937
  className: [
5939
5938
  "ca-stepper__item",
5940
- h ? "ca-stepper__item--active" : "",
5939
+ g ? "ca-stepper__item--active" : "",
5941
5940
  p ? "ca-stepper__item--done" : ""
5942
5941
  ].filter(Boolean).join(" "),
5943
5942
  style: { zIndex: e.length - w },
@@ -5945,9 +5944,9 @@ function qt({
5945
5944
  console.log("setting is edit is true"), y(hn({ data: !0 })), console.log(E), b && n?.(m);
5946
5945
  },
5947
5946
  disabled: !b,
5948
- "aria-current": h ? "step" : void 0,
5947
+ "aria-current": g ? "step" : void 0,
5949
5948
  children: [
5950
- /* @__PURE__ */ C("span", { className: "ca-stepper__circle", children: [
5949
+ /* @__PURE__ */ S("span", { className: "ca-stepper__circle", children: [
5951
5950
  m,
5952
5951
  "."
5953
5952
  ] }),
@@ -5957,7 +5956,7 @@ function qt({
5957
5956
  m
5958
5957
  );
5959
5958
  }) }),
5960
- o || s ? /* @__PURE__ */ C("div", { className: "ca-stepper__actions", children: [
5959
+ o || s ? /* @__PURE__ */ S("div", { className: "ca-stepper__actions", children: [
5961
5960
  o ? /* @__PURE__ */ l(re, { variant: "outline", onClick: i, children: d }) : null,
5962
5961
  s ? /* @__PURE__ */ l(re, { onClick: c, children: u }) : null
5963
5962
  ] }) : null
@@ -6000,7 +5999,7 @@ function wu({ stepMeta: e, stepperProps: t, pageProps: n }) {
6000
5999
  visibilityType: m.visibilityType ?? m.accessType ?? "",
6001
6000
  urlLink: m.urlLink ?? "",
6002
6001
  active: m.isActive ?? m.active ?? !0,
6003
- roles: m?.accesses?.map((h) => h?.role?.id) ?? m.roleIds ?? []
6002
+ roles: m?.accesses?.map((g) => g?.role?.id) ?? m.roleIds ?? []
6004
6003
  });
6005
6004
  }).catch((w) => {
6006
6005
  console.log("❌ Fetch error:", w);
@@ -6010,8 +6009,8 @@ function wu({ stepMeta: e, stepperProps: t, pageProps: n }) {
6010
6009
  value: w.id,
6011
6010
  label: w.name
6012
6011
  })), E = (w, m) => {
6013
- a((h) => ({
6014
- ...h,
6012
+ a((g) => ({
6013
+ ...g,
6015
6014
  [w]: m
6016
6015
  }));
6017
6016
  }, v = async () => {
@@ -6047,16 +6046,16 @@ function wu({ stepMeta: e, stepperProps: t, pageProps: n }) {
6047
6046
  console.log("createComplaintType onSuccess........................:", p), console.log("data response on creationg ", p), o(xt(p?.data?.id ?? p?.id ?? null)), console.log(s, "system id set up successfully ..........", p?.data?.id ?? p?.id ?? null), t.onNext?.();
6048
6047
  }, onFail: (p) => {
6049
6048
  console.log("createComplaintType onFail:", p);
6050
- } }), h = o(m);
6051
- if (i && vt.fulfilled.match(h) || !i && bt.fulfilled.match(h)) {
6049
+ } }), g = o(m);
6050
+ if (i && vt.fulfilled.match(g) || !i && bt.fulfilled.match(g)) {
6052
6051
  if (!i) {
6053
- const p = h.payload?.data?.id ?? h.payload?.id;
6052
+ const p = g.payload?.data?.id ?? g.payload?.id;
6054
6053
  p != null && (console.log("setting up system id ..........", p), o(xt(p)), console.log("system id set up successfully ..........", p));
6055
6054
  }
6056
6055
  t.onNext?.();
6057
6056
  }
6058
6057
  };
6059
- return /* @__PURE__ */ C(Ye, { children: [
6058
+ return /* @__PURE__ */ S(Ye, { children: [
6060
6059
  /* @__PURE__ */ l(
6061
6060
  qt,
6062
6061
  {
@@ -6066,7 +6065,7 @@ function wu({ stepMeta: e, stepperProps: t, pageProps: n }) {
6066
6065
  onNext: v
6067
6066
  }
6068
6067
  ),
6069
- /* @__PURE__ */ C(
6068
+ /* @__PURE__ */ S(
6070
6069
  jt,
6071
6070
  {
6072
6071
  title: e.title,
@@ -6080,8 +6079,8 @@ function wu({ stepMeta: e, stepperProps: t, pageProps: n }) {
6080
6079
  onChange: (w) => E("active", w)
6081
6080
  }
6082
6081
  ) }),
6083
- /* @__PURE__ */ C("div", { className: "ca-step-section", children: [
6084
- /* @__PURE__ */ C("div", { className: "ca-step-row ca-step-row--category-fields", children: [
6082
+ /* @__PURE__ */ S("div", { className: "ca-step-section", children: [
6083
+ /* @__PURE__ */ S("div", { className: "ca-step-row ca-step-row--category-fields", children: [
6085
6084
  /* @__PURE__ */ l(
6086
6085
  ga,
6087
6086
  {
@@ -6130,7 +6129,7 @@ function wu({ stepMeta: e, stepperProps: t, pageProps: n }) {
6130
6129
  rows: 5
6131
6130
  }
6132
6131
  ) }),
6133
- /* @__PURE__ */ C("div", { className: "ca-step-row", children: [
6132
+ /* @__PURE__ */ S("div", { className: "ca-step-row", children: [
6134
6133
  /* @__PURE__ */ l(
6135
6134
  ya,
6136
6135
  {
@@ -6190,7 +6189,7 @@ function vu({
6190
6189
  "aria-label": a,
6191
6190
  className: o = ""
6192
6191
  }) {
6193
- return /* @__PURE__ */ C("label", { className: `ca-radio ${o}`.trim(), children: [
6192
+ return /* @__PURE__ */ S("label", { className: `ca-radio ${o}`.trim(), children: [
6194
6193
  /* @__PURE__ */ l(
6195
6194
  "input",
6196
6195
  {
@@ -6207,7 +6206,7 @@ function vu({
6207
6206
  ] });
6208
6207
  }
6209
6208
  function Uo({ size: e = 16, color: t = "#9CA3AF", ...n }) {
6210
- return /* @__PURE__ */ C("svg", { width: e, height: e, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", ...n, children: [
6209
+ return /* @__PURE__ */ S("svg", { width: e, height: e, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", ...n, children: [
6211
6210
  /* @__PURE__ */ l("circle", { cx: "5", cy: "4", r: "1.2", fill: t }),
6212
6211
  /* @__PURE__ */ l("circle", { cx: "11", cy: "4", r: "1.2", fill: t }),
6213
6212
  /* @__PURE__ */ l("circle", { cx: "5", cy: "8", r: "1.2", fill: t }),
@@ -6245,12 +6244,12 @@ function Cu({ stepMeta: e, stepperProps: t }) {
6245
6244
  value: u.value,
6246
6245
  label: u.label
6247
6246
  }));
6248
- return /* @__PURE__ */ C(Ye, { children: [
6247
+ return /* @__PURE__ */ S(Ye, { children: [
6249
6248
  /* @__PURE__ */ l(qt, { ...t, steps: pe }),
6250
- /* @__PURE__ */ C(jt, { title: e.title, description: e.description, showNext: !1, children: [
6251
- /* @__PURE__ */ C("div", { className: "ca-priority-add", children: [
6249
+ /* @__PURE__ */ S(jt, { title: e.title, description: e.description, showNext: !1, children: [
6250
+ /* @__PURE__ */ S("div", { className: "ca-priority-add", children: [
6252
6251
  /* @__PURE__ */ l(_r, { children: "Priorities" }),
6253
- /* @__PURE__ */ C("div", { className: "ca-priority-add__row", children: [
6252
+ /* @__PURE__ */ S("div", { className: "ca-priority-add__row", children: [
6254
6253
  /* @__PURE__ */ l(
6255
6254
  be,
6256
6255
  {
@@ -6264,21 +6263,21 @@ function Cu({ stepMeta: e, stepperProps: t }) {
6264
6263
  ),
6265
6264
  /* @__PURE__ */ l(re, { variant: "outline", onClick: () => i(), children: "+ Add" })
6266
6265
  ] }),
6267
- /* @__PURE__ */ l("div", { className: "ca-chip-row", children: au.map((u) => /* @__PURE__ */ C(bu, { onClick: () => i(u), children: [
6266
+ /* @__PURE__ */ l("div", { className: "ca-chip-row", children: au.map((u) => /* @__PURE__ */ S(bu, { onClick: () => i(u), children: [
6268
6267
  "+ ",
6269
6268
  u
6270
6269
  ] }, u)) })
6271
6270
  ] }),
6272
- /* @__PURE__ */ C("div", { className: "ca-priority-table", children: [
6273
- /* @__PURE__ */ C("div", { className: "ca-priority-table__head", children: [
6271
+ /* @__PURE__ */ S("div", { className: "ca-priority-table", children: [
6272
+ /* @__PURE__ */ S("div", { className: "ca-priority-table__head", children: [
6274
6273
  /* @__PURE__ */ l("div", { children: "Priority" }),
6275
6274
  /* @__PURE__ */ l("div", { children: "Color" }),
6276
6275
  /* @__PURE__ */ l("div", { children: "Default" })
6277
6276
  ] }),
6278
6277
  (o.length ? o : [wa("")]).map((u, f) => {
6279
6278
  const y = !o.length;
6280
- return /* @__PURE__ */ C("div", { className: "ca-priority-table__row", children: [
6281
- /* @__PURE__ */ C("div", { className: "ca-priority-table__name", children: [
6279
+ return /* @__PURE__ */ S("div", { className: "ca-priority-table__row", children: [
6280
+ /* @__PURE__ */ S("div", { className: "ca-priority-table__name", children: [
6282
6281
  /* @__PURE__ */ l(Uo, {}),
6283
6282
  /* @__PURE__ */ l(
6284
6283
  be,
@@ -6320,21 +6319,21 @@ function Cu({ stepMeta: e, stepperProps: t }) {
6320
6319
  }
6321
6320
  function Eu({ level: e, onAdd: t }) {
6322
6321
  const [n, r] = U("");
6323
- return /* @__PURE__ */ C("form", { className: "ca-add-table-card", onSubmit: (o) => {
6322
+ return /* @__PURE__ */ S("form", { className: "ca-add-table-card", onSubmit: (o) => {
6324
6323
  o.preventDefault();
6325
6324
  const s = n.trim();
6326
6325
  s && (t?.(s), r(""));
6327
6326
  }, children: [
6328
- /* @__PURE__ */ C("span", { className: "ca-add-table-card__level", children: [
6327
+ /* @__PURE__ */ S("span", { className: "ca-add-table-card__level", children: [
6329
6328
  "L",
6330
6329
  e
6331
6330
  ] }),
6332
- /* @__PURE__ */ C("label", { className: "ca-add-table-card__label", htmlFor: `add-workflow-level-${e}`, children: [
6331
+ /* @__PURE__ */ S("label", { className: "ca-add-table-card__label", htmlFor: `add-workflow-level-${e}`, children: [
6333
6332
  "Name Level ",
6334
6333
  e
6335
6334
  ] }),
6336
6335
  /* @__PURE__ */ l(be, { id: `add-workflow-level-${e}`, value: n, placeholder: `Enter name for L${e}`, onChange: (o) => r(o.target.value) }),
6337
- /* @__PURE__ */ C(re, { type: "submit", className: "ca-add-table-card__button", disabled: !n.trim(), children: [
6336
+ /* @__PURE__ */ S(re, { type: "submit", className: "ca-add-table-card__button", disabled: !n.trim(), children: [
6338
6337
  "+ Add L",
6339
6338
  e
6340
6339
  ] })
@@ -6358,23 +6357,23 @@ function Su({ name: e, level: t, value: n, initialFormValues: r, setFormValues:
6358
6357
  value: p.id,
6359
6358
  label: p.name ?? p.label
6360
6359
  })), v = (p, b) => {
6361
- const S = { ...f, [p]: b };
6362
- a ? a(S) : o?.(S);
6363
- }, w = t === 1 ? "green" : t === 2 ? "orange" : "blue", m = (p) => `workflow-level-${t}-${p}`, h = d || (t === 1 ? "Initial Handler" : t === 2 ? "Escalation if L1 TAT exceeded" : "Escalation workflow");
6364
- return /* @__PURE__ */ C(
6360
+ const C = { ...f, [p]: b };
6361
+ a ? a(C) : o?.(C);
6362
+ }, w = t === 1 ? "green" : t === 2 ? "orange" : "blue", m = (p) => `workflow-level-${t}-${p}`, g = d || (t === 1 ? "Initial Handler" : t === 2 ? "Escalation if L1 TAT exceeded" : "Escalation workflow");
6363
+ return /* @__PURE__ */ S(
6365
6364
  "article",
6366
6365
  {
6367
6366
  className: `ca-table-card ca-table-card--${w}${s ? " ca-table-card--selected" : ""}`,
6368
6367
  onClick: i,
6369
6368
  children: [
6370
- /* @__PURE__ */ C("header", { className: "ca-table-card__header", children: [
6371
- /* @__PURE__ */ C("span", { className: "ca-table-card__level", children: [
6369
+ /* @__PURE__ */ S("header", { className: "ca-table-card__header", children: [
6370
+ /* @__PURE__ */ S("span", { className: "ca-table-card__level", children: [
6372
6371
  "L",
6373
6372
  t
6374
6373
  ] }),
6375
- /* @__PURE__ */ C("div", { className: "ca-table-card__header-text", children: [
6374
+ /* @__PURE__ */ S("div", { className: "ca-table-card__header-text", children: [
6376
6375
  /* @__PURE__ */ l("h3", { className: "ca-table-card__title", children: e }),
6377
- /* @__PURE__ */ l("p", { className: "ca-table-card__subtitle", children: h })
6376
+ /* @__PURE__ */ l("p", { className: "ca-table-card__subtitle", children: g })
6378
6377
  ] }),
6379
6378
  /* @__PURE__ */ l(
6380
6379
  "button",
@@ -6391,7 +6390,7 @@ function Su({ name: e, level: t, value: n, initialFormValues: r, setFormValues:
6391
6390
  )
6392
6391
  ] }),
6393
6392
  /* @__PURE__ */ l("div", { className: "ca-table-card__divider" }),
6394
- /* @__PURE__ */ C("div", { className: "ca-table-card__fields", children: [
6393
+ /* @__PURE__ */ S("div", { className: "ca-table-card__fields", children: [
6395
6394
  /* @__PURE__ */ l(ye, { label: "Select Roles", htmlFor: m("roleIds"), children: /* @__PURE__ */ l(
6396
6395
  $o,
6397
6396
  {
@@ -6406,7 +6405,7 @@ function Su({ name: e, level: t, value: n, initialFormValues: r, setFormValues:
6406
6405
  /* @__PURE__ */ l(ye, { label: "Can Resolve", htmlFor: m("canResolve"), children: /* @__PURE__ */ l(ue, { id: m("canResolve"), value: f.canResolve, options: Hn, onChange: (p) => v("canResolve", p.target.value) }) }),
6407
6406
  /* @__PURE__ */ l(ye, { label: "Can Reassign", htmlFor: m("canReassign"), children: /* @__PURE__ */ l(ue, { id: m("canReassign"), value: f.canReassign, options: Hn, onChange: (p) => v("canReassign", p.target.value) }) }),
6408
6407
  /* @__PURE__ */ l(ye, { label: "Final Level", htmlFor: m("finalLevel"), children: /* @__PURE__ */ l(ue, { id: m("finalLevel"), value: f.finalLevel, options: Hn, onChange: (p) => v("finalLevel", p.target.value) }) }),
6409
- /* @__PURE__ */ l(ye, { label: "Escalation time", htmlFor: m("escalationTime"), children: /* @__PURE__ */ C("div", { className: "ca-table-card__time-input", children: [
6408
+ /* @__PURE__ */ l(ye, { label: "Escalation time", htmlFor: m("escalationTime"), children: /* @__PURE__ */ S("div", { className: "ca-table-card__time-input", children: [
6410
6409
  /* @__PURE__ */ l(be, { id: m("escalationTime"), type: "number", min: "0", value: f.escalateAfterMinutes ?? "", placeholder: "--", onChange: (p) => v("escalateAfterMinutes", p.target.value) }),
6411
6410
  /* @__PURE__ */ l("span", { children: "minutes" })
6412
6411
  ] }) })
@@ -6428,14 +6427,14 @@ const _u = "data:image/svg+xml,%3csvg%20width='31'%20height='57'%20viewBox='0%20
6428
6427
  or(2, "Level 2 - Secondary")
6429
6428
  ];
6430
6429
  function xu({ accent: e }) {
6431
- return /* @__PURE__ */ C("div", { className: `ca-escalation-connector ca-escalation-connector--desktop ca-escalation-connector--${e}`, "aria-hidden": "true", children: [
6430
+ return /* @__PURE__ */ S("div", { className: `ca-escalation-connector ca-escalation-connector--desktop ca-escalation-connector--${e}`, "aria-hidden": "true", children: [
6432
6431
  /* @__PURE__ */ l("img", { src: _u, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--first" }),
6433
6432
  /* @__PURE__ */ l("span", { children: "Escalates to" }),
6434
6433
  /* @__PURE__ */ l("img", { src: Nu, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--second" })
6435
6434
  ] });
6436
6435
  }
6437
6436
  function Lu({ accent: e }) {
6438
- return /* @__PURE__ */ C("div", { className: `ca-escalation-connector ca-escalation-connector--mobile ca-escalation-connector--${e}`, "aria-hidden": "true", children: [
6437
+ return /* @__PURE__ */ S("div", { className: `ca-escalation-connector ca-escalation-connector--mobile ca-escalation-connector--${e}`, "aria-hidden": "true", children: [
6439
6438
  /* @__PURE__ */ l("img", { src: Tu, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--first" }),
6440
6439
  /* @__PURE__ */ l("span", { children: "Escalates to" }),
6441
6440
  /* @__PURE__ */ l("img", { src: Ru, alt: "", className: "ca-escalation-connector__arrow ca-escalation-connector__arrow--second" })
@@ -6454,15 +6453,15 @@ function Au({ id: e, selectedTableId: t, onSelect: n, setUpdatePayload: r, pageP
6454
6453
  const b = async () => {
6455
6454
  f(!0), i(null), d([]);
6456
6455
  try {
6457
- const S = await y(an(e)).unwrap(), T = (Array.isArray(S?.data) ? S.data : Array.isArray(S) ? S : Se).map((O, $) => ({
6458
- ...O,
6459
- id: O.id ?? O.levelNo ?? $ + 1,
6460
- name: O.name ?? `Level ${O.levelNo ?? $ + 1}`,
6461
- role: Array.isArray(O.role) ? O.role : O.roleId !== void 0 && O.roleId !== null ? [O.roleId] : []
6456
+ const C = await y(an(e)).unwrap(), L = (Array.isArray(C?.data) ? C.data : Array.isArray(C) ? C : Se).map((k, $) => ({
6457
+ ...k,
6458
+ id: k.id ?? k.levelNo ?? $ + 1,
6459
+ name: k.name ?? `Level ${k.levelNo ?? $ + 1}`,
6460
+ role: Array.isArray(k.role) ? k.role : k.roleId !== void 0 && k.roleId !== null ? [k.roleId] : []
6462
6461
  }));
6463
- console.log("[TableCardGrid] GET response:", S), console.log("[TableCardGrid] initial form values:", T), p || (i(T), d(T), r({ id: e, tables: T }));
6464
- } catch (S) {
6465
- p || (console.log("[TableCardGrid] using default form values after GET error:", Se), console.error("Failed to load workflow steps:", S));
6462
+ console.log("[TableCardGrid] GET response:", C), console.log("[TableCardGrid] initial form values:", L), p || (i(L), d(L), r({ id: e, tables: L }));
6463
+ } catch (C) {
6464
+ p || (console.log("[TableCardGrid] using default form values after GET error:", Se), console.error("Failed to load workflow steps:", C));
6466
6465
  } finally {
6467
6466
  p || f(!1);
6468
6467
  }
@@ -6475,17 +6474,17 @@ function Au({ id: e, selectedTableId: t, onSelect: n, setUpdatePayload: r, pageP
6475
6474
  const b = { id: e, tables: p };
6476
6475
  d(p), console.log("[TableCardGrid] updated form values:", p), console.log("[TableCardGrid] PUT payload:", b), r?.(b);
6477
6476
  }, v = (p, b) => {
6478
- E(c.map((S) => S.id === p ? { ...S, ...b } : S));
6477
+ E(c.map((C) => C.id === p ? { ...C, ...b } : C));
6479
6478
  }, w = (p, b) => {
6480
- console.log(s, c, p, b), E(c.map((S) => S.id !== p ? S : typeof b == "function" ? b(S) : b));
6479
+ console.log(s, c, p, b), E(c.map((C) => C.id !== p ? C : typeof b == "function" ? b(C) : b));
6481
6480
  }, m = (p) => {
6482
- const b = c.reduce((S, L) => Math.max(S, Number(L.id) || 0), 0) + 1;
6481
+ const b = c.reduce((C, R) => Math.max(C, Number(R.id) || 0), 0) + 1;
6483
6482
  E([...c, or(b, p)]);
6484
- }, h = (p) => {
6483
+ }, g = (p) => {
6485
6484
  E(c.filter((b) => b.id !== p));
6486
6485
  };
6487
- return u || !s ? null : /* @__PURE__ */ l("div", { className: "ca-table-card-grid", "aria-label": "Escalation levels", children: /* @__PURE__ */ C("div", { className: "ca-table-card-grid__track", children: [
6488
- c.map((p, b) => /* @__PURE__ */ C(Aa.Fragment, { children: [
6486
+ return u || !s ? null : /* @__PURE__ */ l("div", { className: "ca-table-card-grid", "aria-label": "Escalation levels", children: /* @__PURE__ */ S("div", { className: "ca-table-card-grid__track", children: [
6487
+ c.map((p, b) => /* @__PURE__ */ S(Aa.Fragment, { children: [
6489
6488
  /* @__PURE__ */ l(
6490
6489
  Su,
6491
6490
  {
@@ -6494,14 +6493,14 @@ function Au({ id: e, selectedTableId: t, onSelect: n, setUpdatePayload: r, pageP
6494
6493
  level: b + 1,
6495
6494
  value: p,
6496
6495
  initialFormValues: p,
6497
- setFormValues: (S) => w(p.id, S),
6496
+ setFormValues: (C) => w(p.id, C),
6498
6497
  selected: p.id === t,
6499
6498
  onSelect: () => n?.(p),
6500
- onDelete: () => h(p.id),
6501
- onChange: (S) => v(p.id, S)
6499
+ onDelete: () => g(p.id),
6500
+ onChange: (C) => v(p.id, C)
6502
6501
  }
6503
6502
  ),
6504
- b < c.length - 0 ? /* @__PURE__ */ C(Ye, { children: [
6503
+ b < c.length - 0 ? /* @__PURE__ */ S(Ye, { children: [
6505
6504
  /* @__PURE__ */ l(xu, { accent: b === 0 ? "green" : b === 1 ? "orange" : "purple" }),
6506
6505
  /* @__PURE__ */ l(Lu, { accent: b === 0 ? "green" : b === 1 ? "orange" : "purple" })
6507
6506
  ] }) : null
@@ -6521,7 +6520,7 @@ function Fu({
6521
6520
  }, []), f = ae();
6522
6521
  let { id: y } = J((w) => w.appDetails || {});
6523
6522
  const E = r ?? i.selectedTableCard ?? null;
6524
- return /* @__PURE__ */ C(Ye, { children: [
6523
+ return /* @__PURE__ */ S(Ye, { children: [
6525
6524
  /* @__PURE__ */ l(
6526
6525
  qt,
6527
6526
  {
@@ -6721,61 +6720,61 @@ function Uu({
6721
6720
  onDelete: v,
6722
6721
  onSave: w
6723
6722
  }) {
6724
- const [m, h] = U(""), p = ba(e), [b, S] = U(() => ({
6723
+ const [m, g] = U(""), p = ba(e), [b, C] = U(() => ({
6725
6724
  id: e.id,
6726
6725
  signature: e.isNew ? null : p
6727
6726
  }));
6728
- b.id !== e.id && S({
6727
+ b.id !== e.id && C({
6729
6728
  id: e.id,
6730
6729
  signature: e.isNew ? null : p
6731
6730
  });
6732
- const L = e.lockMode === "all", T = L || e.lockMode === "options", O = Bu.has(e.fieldType), $ = L || !O, A = !!(String(e.fieldLabel || "").trim() && String(e.fieldType || "").trim()), R = b.signature !== p, D = !L && R, j = !!o || !A, I = (x) => E?.({ ...e, ...x }), V = () => {
6731
+ const R = e.lockMode === "all", L = R || e.lockMode === "options", k = Bu.has(e.fieldType), $ = R || !k, A = !!(String(e.fieldLabel || "").trim() && String(e.fieldType || "").trim()), x = b.signature !== p, D = !R && x, j = !!o || !A, I = (T) => E?.({ ...e, ...T }), V = () => {
6733
6732
  if ($) return;
6734
- const x = m.trim();
6735
- if (!x || e.options?.includes(x)) return;
6736
- const M = Et(e) ? { ...e.optionColors || {}, [x]: e.optionColors?.[x] || $u } : e.optionColors;
6733
+ const T = m.trim();
6734
+ if (!T || e.options?.includes(T)) return;
6735
+ const M = Et(e) ? { ...e.optionColors || {}, [T]: e.optionColors?.[T] || $u } : e.optionColors;
6737
6736
  I({
6738
- options: [...e.options || [], x],
6737
+ options: [...e.options || [], T],
6739
6738
  ...Et(e) ? { optionColors: M } : {}
6740
- }), h("");
6741
- }, z = (x) => {
6739
+ }), g("");
6740
+ }, z = (T) => {
6742
6741
  if ($) return;
6743
6742
  const M = { ...e.optionColors || {} };
6744
- delete M[x], I({
6745
- options: e.options.filter((ve) => ve !== x),
6743
+ delete M[T], I({
6744
+ options: e.options.filter((ve) => ve !== T),
6746
6745
  ...Et(e) ? { optionColors: M } : {}
6747
6746
  });
6748
6747
  };
6749
- return /* @__PURE__ */ C(
6748
+ return /* @__PURE__ */ S(
6750
6749
  "article",
6751
6750
  {
6752
6751
  className: `ca-form-card${i ? " ca-form-card--selected" : ""}${c ? " ca-form-card--dragging" : ""}`,
6753
6752
  onClick: () => d?.(e),
6754
- onDragOver: (x) => {
6755
- x.preventDefault(), x.dataTransfer.dropEffect = "move";
6753
+ onDragOver: (T) => {
6754
+ T.preventDefault(), T.dataTransfer.dropEffect = "move";
6756
6755
  },
6757
- onDrop: (x) => {
6758
- x.preventDefault();
6759
- const M = x.dataTransfer.getData("text/plain");
6756
+ onDrop: (T) => {
6757
+ T.preventDefault();
6758
+ const M = T.dataTransfer.getData("text/plain");
6760
6759
  y?.(M, e.id), f?.();
6761
6760
  },
6762
6761
  children: [
6763
- /* @__PURE__ */ C("div", { className: "ca-form-card__row ca-form-card__row--order", children: [
6762
+ /* @__PURE__ */ S("div", { className: "ca-form-card__row ca-form-card__row--order", children: [
6764
6763
  /* @__PURE__ */ l(
6765
6764
  "span",
6766
6765
  {
6767
6766
  className: "ca-form-card__drag",
6768
6767
  draggable: !0,
6769
6768
  "aria-label": "Reorder field",
6770
- onClick: (x) => x.stopPropagation(),
6771
- onDragStart: (x) => {
6772
- x.dataTransfer.setData("text/plain", String(e.id)), x.dataTransfer.effectAllowed = "move", u?.();
6769
+ onClick: (T) => T.stopPropagation(),
6770
+ onDragStart: (T) => {
6771
+ T.dataTransfer.setData("text/plain", String(e.id)), T.dataTransfer.effectAllowed = "move", u?.();
6773
6772
  },
6774
6773
  onDragEnd: () => f?.(),
6775
6774
  children: /* @__PURE__ */ l(Uo, { size: 15, color: "currentColor" })
6776
6775
  }
6777
6776
  ),
6778
- /* @__PURE__ */ C("div", { className: "ca-form-card__actions", children: [
6777
+ /* @__PURE__ */ S("div", { className: "ca-form-card__actions", children: [
6779
6778
  D ? /* @__PURE__ */ l(
6780
6779
  "button",
6781
6780
  {
@@ -6783,42 +6782,42 @@ function Uu({
6783
6782
  className: "ca-form-card__save",
6784
6783
  "aria-label": "Save form field",
6785
6784
  disabled: j,
6786
- onClick: async (x) => {
6787
- if (x.stopPropagation(), j) return;
6785
+ onClick: async (T) => {
6786
+ if (T.stopPropagation(), j) return;
6788
6787
  const M = await w?.(e);
6789
- M && S({ id: e.id, signature: ba(M) });
6788
+ M && C({ id: e.id, signature: ba(M) });
6790
6789
  },
6791
6790
  children: "Save"
6792
6791
  }
6793
6792
  ) : null,
6794
- /* @__PURE__ */ l("button", { type: "button", className: "ca-icon-btn ca-form-card__delete", "aria-label": "Delete form field", disabled: !!s, onClick: (x) => {
6795
- x.stopPropagation(), v?.(e.id);
6793
+ /* @__PURE__ */ l("button", { type: "button", className: "ca-icon-btn ca-form-card__delete", "aria-label": "Delete form field", disabled: !!s, onClick: (T) => {
6794
+ T.stopPropagation(), v?.(e.id);
6796
6795
  }, children: /* @__PURE__ */ l(jo, { size: 15, color: "currentColor" }) })
6797
6796
  ] })
6798
6797
  ] }),
6799
- /* @__PURE__ */ l("div", { className: "ca-form-card__row", children: /* @__PURE__ */ l(be, { value: e.fieldLabel, placeholder: "Enter field label", disabled: T, onChange: (x) => I({ fieldLabel: x.target.value }) }) }),
6800
- /* @__PURE__ */ l("div", { className: "ca-form-card__row", children: /* @__PURE__ */ l(ue, { value: e.fieldType, options: zn(n, e.fieldType), placeholder: "Select type", disabled: T, onChange: (x) => I({ fieldType: x.target.value }) }) }),
6801
- /* @__PURE__ */ l("div", { className: "ca-form-card__row ca-form-card__row--toggle", children: /* @__PURE__ */ l(Bo, { checked: !!e.required, disabled: T, onChange: (x) => I({ required: x }), "aria-label": "Required" }) }),
6802
- /* @__PURE__ */ l("div", { className: "ca-form-card__row", children: /* @__PURE__ */ l(ue, { value: e.fieldAccess, options: zn(r, e.fieldAccess), placeholder: "Select access", disabled: T, onChange: (x) => I({ fieldAccess: x.target.value }) }) }),
6803
- /* @__PURE__ */ C("div", { className: "ca-form-card__row", children: [
6804
- /* @__PURE__ */ l(ue, { value: "", options: a.filter((x) => !e.hideFor?.includes(x)), placeholder: "Select level", disabled: T, onChange: (x) => I({ hideFor: [...e.hideFor || [], x.target.value] }) }),
6805
- e.hideFor?.length ? /* @__PURE__ */ l("div", { className: "ca-form-card__chips", children: e.hideFor.map((x) => /* @__PURE__ */ C("span", { className: "ca-form-card__chip", children: [
6806
- x,
6807
- /* @__PURE__ */ l("button", { type: "button", "aria-label": `Remove ${x}`, disabled: T, onClick: () => I({ hideFor: e.hideFor.filter((M) => M !== x) }), children: "×" })
6808
- ] }, x)) }) : null
6798
+ /* @__PURE__ */ l("div", { className: "ca-form-card__row", children: /* @__PURE__ */ l(be, { value: e.fieldLabel, placeholder: "Enter field label", disabled: L, onChange: (T) => I({ fieldLabel: T.target.value }) }) }),
6799
+ /* @__PURE__ */ l("div", { className: "ca-form-card__row", children: /* @__PURE__ */ l(ue, { value: e.fieldType, options: zn(n, e.fieldType), placeholder: "Select type", disabled: L, onChange: (T) => I({ fieldType: T.target.value }) }) }),
6800
+ /* @__PURE__ */ l("div", { className: "ca-form-card__row ca-form-card__row--toggle", children: /* @__PURE__ */ l(Bo, { checked: !!e.required, disabled: L, onChange: (T) => I({ required: T }), "aria-label": "Required" }) }),
6801
+ /* @__PURE__ */ l("div", { className: "ca-form-card__row", children: /* @__PURE__ */ l(ue, { value: e.fieldAccess, options: zn(r, e.fieldAccess), placeholder: "Select access", disabled: L, onChange: (T) => I({ fieldAccess: T.target.value }) }) }),
6802
+ /* @__PURE__ */ S("div", { className: "ca-form-card__row", children: [
6803
+ /* @__PURE__ */ l(ue, { value: "", options: a.filter((T) => !e.hideFor?.includes(T)), placeholder: "Select level", disabled: L, onChange: (T) => I({ hideFor: [...e.hideFor || [], T.target.value] }) }),
6804
+ e.hideFor?.length ? /* @__PURE__ */ l("div", { className: "ca-form-card__chips", children: e.hideFor.map((T) => /* @__PURE__ */ S("span", { className: "ca-form-card__chip", children: [
6805
+ T,
6806
+ /* @__PURE__ */ l("button", { type: "button", "aria-label": `Remove ${T}`, disabled: L, onClick: () => I({ hideFor: e.hideFor.filter((M) => M !== T) }), children: "×" })
6807
+ ] }, T)) }) : null
6809
6808
  ] }),
6810
- /* @__PURE__ */ l("div", { className: "ca-form-card__row", children: /* @__PURE__ */ l(ue, { value: e.dependsOn, options: zn(t, e.dependsOn), placeholder: "Select field label", disabled: T, onChange: (x) => I({ dependsOn: x.target.value }) }) }),
6811
- /* @__PURE__ */ C("div", { className: "ca-form-card__row ca-form-card__row--options", children: [
6812
- /* @__PURE__ */ C("div", { className: "ca-form-card__option-entry", children: [
6813
- /* @__PURE__ */ l(be, { value: m, placeholder: "Enter option", disabled: $, onChange: (x) => h(x.target.value), onKeyDown: (x) => {
6814
- x.key === "Enter" && (x.preventDefault(), V());
6809
+ /* @__PURE__ */ l("div", { className: "ca-form-card__row", children: /* @__PURE__ */ l(ue, { value: e.dependsOn, options: zn(t, e.dependsOn), placeholder: "Select field label", disabled: L, onChange: (T) => I({ dependsOn: T.target.value }) }) }),
6810
+ /* @__PURE__ */ S("div", { className: "ca-form-card__row ca-form-card__row--options", children: [
6811
+ /* @__PURE__ */ S("div", { className: "ca-form-card__option-entry", children: [
6812
+ /* @__PURE__ */ l(be, { value: m, placeholder: "Enter option", disabled: $, onChange: (T) => g(T.target.value), onKeyDown: (T) => {
6813
+ T.key === "Enter" && (T.preventDefault(), V());
6815
6814
  } }),
6816
6815
  /* @__PURE__ */ l("button", { type: "button", className: "ca-form-card__add-option", "aria-label": "Add option", disabled: $, onClick: V, children: "+" })
6817
6816
  ] }),
6818
- /* @__PURE__ */ l("div", { className: "ca-form-card__chips", children: (e.options || []).map((x) => /* @__PURE__ */ C("span", { className: "ca-form-card__chip", children: [
6819
- x,
6820
- /* @__PURE__ */ l("button", { type: "button", "aria-label": `Remove ${x}`, disabled: $, onClick: () => z(x), children: "×" })
6821
- ] }, x)) })
6817
+ /* @__PURE__ */ l("div", { className: "ca-form-card__chips", children: (e.options || []).map((T) => /* @__PURE__ */ S("span", { className: "ca-form-card__chip", children: [
6818
+ T,
6819
+ /* @__PURE__ */ l("button", { type: "button", "aria-label": `Remove ${T}`, disabled: $, onClick: () => z(T), children: "×" })
6820
+ ] }, T)) })
6822
6821
  ] })
6823
6822
  ]
6824
6823
  }
@@ -6832,17 +6831,17 @@ function qu({ formFields: e = [], selectedField: t = null, onChange: n }) {
6832
6831
  const r = t, a = Et(r) ? r : null, [o, s] = U(!1), i = (v, w) => {
6833
6832
  if (!a) return;
6834
6833
  const m = /^#[0-9A-Fa-f]{6}$/.test(w) ? w.toUpperCase() : w;
6835
- n?.(e.map((h) => h.id === a.id ? { ...h, optionColors: { ...h.optionColors, [v]: m } } : h));
6834
+ n?.(e.map((g) => g.id === a.id ? { ...g, optionColors: { ...g.optionColors, [v]: m } } : g));
6836
6835
  }, c = (v) => {
6837
6836
  if (!r) return;
6838
6837
  const w = { ...r.optionColors || {} };
6839
6838
  delete w[v], n?.(e.map((m) => m.id === r.id ? {
6840
6839
  ...m,
6841
- options: (m.options || []).filter((h) => h !== v),
6840
+ options: (m.options || []).filter((g) => g !== v),
6842
6841
  ...Et(m) ? { optionColors: w } : {}
6843
6842
  } : m));
6844
- }, d = r?.fieldLabel || "Select field", u = Xe(r) ? "Manage the statuses" : sr(r) || r ? "Manage your fields." : "Select a field to edit.", f = r?.options || [], y = (v, w) => /* @__PURE__ */ l("div", { className: "field-options-panel__table-wrap", children: /* @__PURE__ */ C("table", { className: "field-options-panel__table", children: [
6845
- /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ C("tr", { children: [
6843
+ }, d = r?.fieldLabel || "Select field", u = Xe(r) ? "Manage the statuses" : sr(r) || r ? "Manage your fields." : "Select a field to edit.", f = r?.options || [], y = (v, w) => /* @__PURE__ */ l("div", { className: "field-options-panel__table-wrap", children: /* @__PURE__ */ S("table", { className: "field-options-panel__table", children: [
6844
+ /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ S("tr", { children: [
6846
6845
  v.map((m) => /* @__PURE__ */ l("th", { scope: "col", children: m }, m)),
6847
6846
  /* @__PURE__ */ l("th", { scope: "col", "aria-label": "Delete" })
6848
6847
  ] }) }),
@@ -6853,9 +6852,9 @@ function qu({ formFields: e = [], selectedField: t = null, onChange: n }) {
6853
6852
  [Xe(a) ? "Statuses" : "Option", "Colors"],
6854
6853
  f.map((v) => {
6855
6854
  const w = ju(a.optionColors?.[v]);
6856
- return /* @__PURE__ */ C("tr", { children: [
6855
+ return /* @__PURE__ */ S("tr", { children: [
6857
6856
  /* @__PURE__ */ l("td", { children: v }),
6858
- /* @__PURE__ */ l("td", { children: /* @__PURE__ */ C("div", { className: "field-options-panel__color", children: [
6857
+ /* @__PURE__ */ l("td", { children: /* @__PURE__ */ S("div", { className: "field-options-panel__color", children: [
6859
6858
  /* @__PURE__ */ l(
6860
6859
  "input",
6861
6860
  {
@@ -6890,7 +6889,7 @@ function qu({ formFields: e = [], selectedField: t = null, onChange: n }) {
6890
6889
  })
6891
6890
  ) : /* @__PURE__ */ l("p", { className: "field-options-panel__empty", children: "No options added." }) : f.length && (E = y(
6892
6891
  [sr(r) ? "Priorities" : "Option"],
6893
- f.map((v) => /* @__PURE__ */ C("tr", { children: [
6892
+ f.map((v) => /* @__PURE__ */ S("tr", { children: [
6894
6893
  /* @__PURE__ */ l("td", { children: v }),
6895
6894
  /* @__PURE__ */ l("td", { children: /* @__PURE__ */ l(
6896
6895
  "button",
@@ -6904,13 +6903,13 @@ function qu({ formFields: e = [], selectedField: t = null, onChange: n }) {
6904
6903
  }
6905
6904
  ) })
6906
6905
  ] }, v))
6907
- )), /* @__PURE__ */ C(
6906
+ )), /* @__PURE__ */ S(
6908
6907
  "aside",
6909
6908
  {
6910
6909
  className: `field-options-panel${o ? " is-open" : ""}`,
6911
6910
  "aria-label": `Options for: ${d}`,
6912
6911
  children: [
6913
- /* @__PURE__ */ C(
6912
+ /* @__PURE__ */ S(
6914
6913
  "button",
6915
6914
  {
6916
6915
  type: "button",
@@ -6919,8 +6918,8 @@ function qu({ formFields: e = [], selectedField: t = null, onChange: n }) {
6919
6918
  "aria-controls": "field-options-panel-body",
6920
6919
  onClick: () => s((v) => !v),
6921
6920
  children: [
6922
- /* @__PURE__ */ C("span", { className: "field-options-panel__summary-text", children: [
6923
- /* @__PURE__ */ C("span", { className: "field-options-panel__title", children: [
6921
+ /* @__PURE__ */ S("span", { className: "field-options-panel__summary-text", children: [
6922
+ /* @__PURE__ */ S("span", { className: "field-options-panel__title", children: [
6924
6923
  "Options for: ",
6925
6924
  d
6926
6925
  ] }),
@@ -6968,55 +6967,55 @@ function Wu({
6968
6967
  }) {
6969
6968
  const [d, u] = U(() => (e ?? []).map(ft)), [f, y] = U(null), [E, v] = U(null), w = wn(""), m = (A) => {
6970
6969
  u(A), t?.(A);
6971
- }, h = (e ?? []).map((A) => A.id).join(",");
6970
+ }, g = (e ?? []).map((A) => A.id).join(",");
6972
6971
  X(() => {
6973
- !h || h === w.current || (w.current = h, u(e.map(ft)));
6974
- }, [h, e]), X(() => {
6972
+ !g || g === w.current || (w.current = g, u(e.map(ft)));
6973
+ }, [g, e]), X(() => {
6975
6974
  if (n)
6976
6975
  return n.current = (A) => {
6977
- A && u((R) => {
6978
- if (R.some((I) => A.fieldKey && I.fieldKey === A.fieldKey || I.fieldLabel === A.fieldLabel)) return R;
6979
- const j = [...R, ft({ ...A, id: `${A.id}-${Date.now()}` }, R.length)];
6976
+ A && u((x) => {
6977
+ if (x.some((I) => A.fieldKey && I.fieldKey === A.fieldKey || I.fieldLabel === A.fieldLabel)) return x;
6978
+ const j = [...x, ft({ ...A, id: `${A.id}-${Date.now()}` }, x.length)];
6980
6979
  return t?.(j), j;
6981
6980
  });
6982
6981
  }, () => {
6983
6982
  n.current = null;
6984
6983
  };
6985
6984
  }, [n, t]);
6986
- const p = (A, R) => {
6987
- if (A == null || R == null || String(A) === String(R)) return;
6988
- const D = d.findIndex((z) => String(z.id) === String(A)), j = d.findIndex((z) => String(z.id) === String(R));
6985
+ const p = (A, x) => {
6986
+ if (A == null || x == null || String(A) === String(x)) return;
6987
+ const D = d.findIndex((z) => String(z.id) === String(A)), j = d.findIndex((z) => String(z.id) === String(x));
6989
6988
  if (D < 0 || j < 0) return;
6990
6989
  const I = [...d], [V] = I.splice(D, 1);
6991
- I.splice(j, 0, V), m(I.map((z, x) => ({ ...z, order: x + 1 })));
6992
- }, b = (A) => m(d.map((R) => R.id === A.id ? A : R)), S = async (A) => {
6993
- const R = d.find((D) => D.id === A);
6994
- if (R)
6990
+ I.splice(j, 0, V), m(I.map((z, T) => ({ ...z, order: T + 1 })));
6991
+ }, b = (A) => m(d.map((x) => x.id === A.id ? A : x)), C = async (A) => {
6992
+ const x = d.find((D) => D.id === A);
6993
+ if (x)
6995
6994
  try {
6996
- if (await c?.(R) === !1) return;
6995
+ if (await c?.(x) === !1) return;
6997
6996
  m(d.filter((j) => j.id !== A).map((j, I) => ({ ...j, order: I + 1 })));
6998
6997
  } catch {
6999
6998
  }
7000
- }, L = () => m([...d, ft({ id: `${Date.now()}-${d.length}`, fieldLabel: "", fieldType: r[0] ?? "", options: [], isNew: !0 }, d.length)]), T = async (A) => {
6999
+ }, R = () => m([...d, ft({ id: `${Date.now()}-${d.length}`, fieldLabel: "", fieldType: r[0] ?? "", options: [], isNew: !0 }, d.length)]), L = async (A) => {
7001
7000
  try {
7002
- const R = await i?.(A);
7003
- return R ? (u((D) => {
7004
- const j = D.map((I) => I.id === A.id ? ft({ ...R, isNew: !1 }, (I.order || 1) - 1) : I);
7001
+ const x = await i?.(A);
7002
+ return x ? (u((D) => {
7003
+ const j = D.map((I) => I.id === A.id ? ft({ ...x, isNew: !1 }, (I.order || 1) - 1) : I);
7005
7004
  return t?.(j), j;
7006
- }), R) : null;
7005
+ }), x) : null;
7007
7006
  } catch {
7008
7007
  return null;
7009
7008
  }
7010
- }, O = d.map((A) => A.fieldLabel).filter(Boolean), $ = d.find((A) => A.id === f) || d.find(Xe) || null;
7011
- return /* @__PURE__ */ C("div", { className: "ca-form-card-grid__container ", children: [
7012
- /* @__PURE__ */ C("div", { className: "ca-form-card-grid", children: [
7009
+ }, k = d.map((A) => A.fieldLabel).filter(Boolean), $ = d.find((A) => A.id === f) || d.find(Xe) || null;
7010
+ return /* @__PURE__ */ S("div", { className: "ca-form-card-grid__container ", children: [
7011
+ /* @__PURE__ */ S("div", { className: "ca-form-card-grid", children: [
7013
7012
  /* @__PURE__ */ l("div", { className: "ca-form-card-grid__labels", children: Vu.map((A) => /* @__PURE__ */ l("div", { className: "ca-form-card-grid__label", children: A }, A)) }),
7014
- /* @__PURE__ */ C("div", { className: "ca-form-card-grid__cards", children: [
7013
+ /* @__PURE__ */ S("div", { className: "ca-form-card-grid__cards", children: [
7015
7014
  d.map((A) => /* @__PURE__ */ l(
7016
7015
  Uu,
7017
7016
  {
7018
7017
  field: A,
7019
- fieldOptions: O.filter((R) => R !== A.fieldLabel),
7018
+ fieldOptions: k.filter((x) => x !== A.fieldLabel),
7020
7019
  fieldTypeOptions: r,
7021
7020
  fieldAccessOptions: a,
7022
7021
  hideForOptions: o,
@@ -7028,12 +7027,12 @@ function Wu({
7028
7027
  onDragEndField: () => v(null),
7029
7028
  onReorder: p,
7030
7029
  onChange: b,
7031
- onDelete: S,
7032
- onSave: T
7030
+ onDelete: C,
7031
+ onSave: L
7033
7032
  },
7034
7033
  A.id
7035
7034
  )),
7036
- /* @__PURE__ */ l(Ou, { onAdd: L })
7035
+ /* @__PURE__ */ l(Ou, { onAdd: R })
7037
7036
  ] })
7038
7037
  ] }),
7039
7038
  /* @__PURE__ */ l(qu, { formFields: d, selectedField: $, onChange: m })
@@ -7047,8 +7046,8 @@ const va = {
7047
7046
  };
7048
7047
  function Hu({ fields: e = [], onAddField: t }) {
7049
7048
  const [n, r] = U(!1);
7050
- return /* @__PURE__ */ C("aside", { className: `custom-field-table${n ? " is-open" : ""}`, "aria-labelledby": "custom-field-table-title", children: [
7051
- /* @__PURE__ */ C(
7049
+ return /* @__PURE__ */ S("aside", { className: `custom-field-table${n ? " is-open" : ""}`, "aria-labelledby": "custom-field-table-title", children: [
7050
+ /* @__PURE__ */ S(
7052
7051
  "button",
7053
7052
  {
7054
7053
  type: "button",
@@ -7057,7 +7056,7 @@ function Hu({ fields: e = [], onAddField: t }) {
7057
7056
  "aria-controls": "custom-field-table-list",
7058
7057
  onClick: () => r((a) => !a),
7059
7058
  children: [
7060
- /* @__PURE__ */ C("span", { className: "custom-field-table__summary-text", children: [
7059
+ /* @__PURE__ */ S("span", { className: "custom-field-table__summary-text", children: [
7061
7060
  /* @__PURE__ */ l("span", { id: "custom-field-table-title", className: "custom-field-table__title", children: "Custom Fields" }),
7062
7061
  /* @__PURE__ */ l("span", { className: "custom-field-table__description", children: "Use these fields to show options from database table." })
7063
7062
  ] }),
@@ -7067,7 +7066,7 @@ function Hu({ fields: e = [], onAddField: t }) {
7067
7066
  ),
7068
7067
  /* @__PURE__ */ l("div", { id: "custom-field-table-list", className: "custom-field-table__list", children: e.map((a) => {
7069
7068
  const o = a.label ?? a.fieldLabel, s = va[a.fieldKey] || va[a.id] || ko;
7070
- return /* @__PURE__ */ C("div", { className: "custom-field-table__row", children: [
7069
+ return /* @__PURE__ */ S("div", { className: "custom-field-table__row", children: [
7071
7070
  /* @__PURE__ */ l(s, { className: "custom-field-table__field-icon", size: 14, strokeWidth: 1.5, "aria-hidden": "true" }),
7072
7071
  /* @__PURE__ */ l("span", { className: "custom-field-table__label", children: o }),
7073
7072
  /* @__PURE__ */ l(
@@ -7229,53 +7228,53 @@ function Kt(e = []) {
7229
7228
  }));
7230
7229
  }
7231
7230
  function tp({ stepMeta: e, stepperProps: t }) {
7232
- const n = ae(), r = J((R) => R.appDetails?.id), { state: a, update: o } = Sr(), { formFields: s } = a, i = wn(null), [c] = U(null), [d, u] = U(null), f = _e((R) => o({ formFields: R }), [o]), y = _e(async (R) => {
7233
- const D = String(R.fieldLabel || "").trim();
7231
+ const n = ae(), r = J((x) => x.appDetails?.id), { state: a, update: o } = Sr(), { formFields: s } = a, i = wn(null), [c] = U(null), [d, u] = U(null), f = _e((x) => o({ formFields: x }), [o]), y = _e(async (x) => {
7232
+ const D = String(x.fieldLabel || "").trim();
7234
7233
  return D ? {
7235
- ...R,
7234
+ ...x,
7236
7235
  fieldLabel: D,
7237
7236
  fieldKey: cn(D),
7238
7237
  originalFieldName: D,
7239
7238
  isNew: !1
7240
7239
  } : null;
7241
- }, []), E = _e(async (R) => {
7242
- if (!lr(R)) return !0;
7243
- u(R.id);
7240
+ }, []), E = _e(async (x) => {
7241
+ if (!lr(x)) return !0;
7242
+ u(x.id);
7244
7243
  try {
7245
7244
  return await n(yt({
7246
7245
  complaintTypeId: r,
7247
- fieldId: R.id
7246
+ fieldId: x.id
7248
7247
  })).unwrap(), !0;
7249
7248
  } finally {
7250
7249
  u(null);
7251
7250
  }
7252
- }, [r, n]), v = J((R) => R.complaintAppComplaint?.formFields?.data), w = J((R) => R.complaintAppComplaint?.formFields?.isLoading), m = J((R) => R.complaintAppComplaint?.formFields?.error), [h, p] = U(!1);
7251
+ }, [r, n]), v = J((x) => x.complaintAppComplaint?.formFields?.data), w = J((x) => x.complaintAppComplaint?.formFields?.isLoading), m = J((x) => x.complaintAppComplaint?.formFields?.error), [g, p] = U(!1);
7253
7252
  X(() => {
7254
- let R = !1;
7253
+ let x = !1;
7255
7254
  return n(Oe(r)).unwrap().then((D) => {
7256
- if (R) return;
7255
+ if (x) return;
7257
7256
  const j = Array.isArray(D) ? D : D?.data, I = ln(
7258
7257
  Kt(Array.isArray(j) ? j : [])
7259
7258
  );
7260
7259
  o({ formFields: I }), p(!0);
7261
7260
  }).catch(() => {
7262
- R || p(!0);
7261
+ x || p(!0);
7263
7262
  }), () => {
7264
- R = !0;
7263
+ x = !0;
7265
7264
  };
7266
7265
  }, [r, n, o]);
7267
7266
  const b = ie(
7268
7267
  () => ln(Kt(v)),
7269
7268
  [v]
7270
- ), S = Iu, L = ku, T = Du, O = ie(
7271
- () => Wo(b.flatMap((R) => R.hideFor)),
7269
+ ), C = Iu, R = ku, L = Du, k = ie(
7270
+ () => Wo(b.flatMap((x) => x.hideFor)),
7272
7271
  [b]
7273
7272
  ), $ = s.length ? s : b, A = _e(async () => {
7274
7273
  try {
7275
- const R = $.filter((M) => !M.isNew && String(M.fieldLabel || "").trim()), D = new Map(
7274
+ const x = $.filter((M) => !M.isNew && String(M.fieldLabel || "").trim()), D = new Map(
7276
7275
  Kt(v).map((M) => [Number(M.id), M])
7277
7276
  );
7278
- if (!R.some((M) => {
7277
+ if (!x.some((M) => {
7279
7278
  if (!lr(M)) return !0;
7280
7279
  const ve = D.get(Number(M.id));
7281
7280
  return !ve || Xu(M, ve);
@@ -7283,9 +7282,9 @@ function tp({ stepMeta: e, stepperProps: t }) {
7283
7282
  t.onNext?.();
7284
7283
  return;
7285
7284
  }
7286
- const I = [...R].sort(
7285
+ const I = [...x].sort(
7287
7286
  (M, ve) => +!!M.dependsOn - +!!ve.dependsOn
7288
- ), V = Yu(v, R);
7287
+ ), V = Yu(v, x);
7289
7288
  for (const M of V)
7290
7289
  try {
7291
7290
  await n(yt({ complaintTypeId: r, fieldId: M })).unwrap();
@@ -7295,16 +7294,16 @@ function tp({ stepMeta: e, stepperProps: t }) {
7295
7294
  complaintTypeId: r,
7296
7295
  data: Qu(I, I)
7297
7296
  })).unwrap();
7298
- const z = await n(Oe(r)).unwrap(), x = Array.isArray(z) ? z : z?.data;
7297
+ const z = await n(Oe(r)).unwrap(), T = Array.isArray(z) ? z : z?.data;
7299
7298
  o({
7300
7299
  formFields: ln(
7301
- Kt(Array.isArray(x) ? x : [])
7300
+ Kt(Array.isArray(T) ? T : [])
7302
7301
  )
7303
7302
  }), t.onNext?.();
7304
7303
  } catch {
7305
7304
  }
7306
7305
  }, [v, r, n, $, t, o]);
7307
- return /* @__PURE__ */ C(Ye, { children: [
7306
+ return /* @__PURE__ */ S(Ye, { children: [
7308
7307
  /* @__PURE__ */ l(qt, { ...t, steps: pe, onNext: A }),
7309
7308
  /* @__PURE__ */ l(
7310
7309
  jt,
@@ -7313,13 +7312,13 @@ function tp({ stepMeta: e, stepperProps: t }) {
7313
7312
  title: e.title,
7314
7313
  description: e.description,
7315
7314
  showNext: !1,
7316
- children: !h || w ? /* @__PURE__ */ l(Ut, { text: "Loading form fields" }) : m && !$.length ? /* @__PURE__ */ l("p", { className: "ca-body", children: m }) : /* @__PURE__ */ C("div", { className: "ca-form-fields", children: [
7315
+ children: !g || w ? /* @__PURE__ */ l(Ut, { text: "Loading form fields" }) : m && !$.length ? /* @__PURE__ */ l("p", { className: "ca-body", children: m }) : /* @__PURE__ */ S("div", { className: "ca-form-fields", children: [
7317
7316
  m ? /* @__PURE__ */ l("p", { className: "ca-body", children: m }) : null,
7318
7317
  /* @__PURE__ */ l(
7319
7318
  Hu,
7320
7319
  {
7321
- fields: S,
7322
- onAddField: (R) => i.current?.({ ...R })
7320
+ fields: C,
7321
+ onAddField: (x) => i.current?.({ ...x })
7323
7322
  }
7324
7323
  ),
7325
7324
  /* @__PURE__ */ l(
@@ -7328,9 +7327,9 @@ function tp({ stepMeta: e, stepperProps: t }) {
7328
7327
  initialFields: $,
7329
7328
  addExternalFieldRef: i,
7330
7329
  onChange: f,
7331
- fieldTypeOptions: L,
7332
- fieldAccessOptions: T,
7333
- hideForOptions: O,
7330
+ fieldTypeOptions: R,
7331
+ fieldAccessOptions: L,
7332
+ hideForOptions: k,
7334
7333
  savingFieldId: c,
7335
7334
  deletingFieldId: d,
7336
7335
  onSave: y,
@@ -7389,7 +7388,7 @@ function sp({ question: e }) {
7389
7388
  };
7390
7389
  return n === "radio" ? /* @__PURE__ */ l("div", { className: "review-options review-options--inline", children: r.map((o, s) => {
7391
7390
  const i = Sa(t, o, s);
7392
- return /* @__PURE__ */ C("label", { className: "review-option", htmlFor: i, children: [
7391
+ return /* @__PURE__ */ S("label", { className: "review-option", htmlFor: i, children: [
7393
7392
  /* @__PURE__ */ l(
7394
7393
  "input",
7395
7394
  {
@@ -7403,7 +7402,7 @@ function sp({ question: e }) {
7403
7402
  ] }, o);
7404
7403
  }) }) : n === "checkbox" ? /* @__PURE__ */ l("div", { className: "review-options review-options--inline", children: r.map((o, s) => {
7405
7404
  const i = Sa(t, o, s);
7406
- return /* @__PURE__ */ C("label", { className: "review-option", htmlFor: i, children: [
7405
+ return /* @__PURE__ */ S("label", { className: "review-option", htmlFor: i, children: [
7407
7406
  /* @__PURE__ */ l(
7408
7407
  "input",
7409
7408
  {
@@ -7423,7 +7422,7 @@ function sp({ question: e }) {
7423
7422
  className: "review-control review-control--textarea",
7424
7423
  placeholder: mt(e, n)
7425
7424
  }
7426
- ) : n === "select" ? /* @__PURE__ */ C("select", { ...a, className: "review-control", defaultValue: "", children: [
7425
+ ) : n === "select" ? /* @__PURE__ */ S("select", { ...a, className: "review-control", defaultValue: "", children: [
7427
7426
  /* @__PURE__ */ l("option", { value: "", children: mt(e, n) }),
7428
7427
  r.map((o) => /* @__PURE__ */ l("option", { value: o, children: o }, o))
7429
7428
  ] }) : n === "number" ? /* @__PURE__ */ l(
@@ -7485,12 +7484,12 @@ function sp({ question: e }) {
7485
7484
  function ip({ fields: e = [] }) {
7486
7485
  return e.length ? /* @__PURE__ */ l("div", { className: "review-form-card", children: /* @__PURE__ */ l("form", { className: "review-form", "aria-label": "Form fields preview", onSubmit: (t) => t.preventDefault(), children: /* @__PURE__ */ l("div", { className: "review-form-grid", children: e.map((t) => {
7487
7486
  const n = Ko(t), r = zo(t);
7488
- return /* @__PURE__ */ C(
7487
+ return /* @__PURE__ */ S(
7489
7488
  "div",
7490
7489
  {
7491
7490
  className: `review-question${ap(n) ? " review-question--wide" : ""}`,
7492
7491
  children: [
7493
- /* @__PURE__ */ C("label", { className: "review-label", htmlFor: r, children: [
7492
+ /* @__PURE__ */ S("label", { className: "review-label", htmlFor: r, children: [
7494
7493
  Qe(t) || "Untitled field",
7495
7494
  t.required ? /* @__PURE__ */ l("span", { className: "review-required", children: "*" }) : null
7496
7495
  ] }),
@@ -7559,7 +7558,7 @@ function mp({ onPublish: e, stepMeta: t, stepperProps: n }) {
7559
7558
  const r = ae(), a = J((d) => d.appDetails?.id), o = J((d) => d.complaintAppComplaint.formFields.data), s = J((d) => d.complaintAppComplaint.formFields.isLoading), i = J((d) => d.complaintAppComplaint.formFields.error), c = ie(() => fp(o), [o]);
7560
7559
  return X(() => {
7561
7560
  a && r(Oe(a));
7562
- }, [a, r]), /* @__PURE__ */ C(Ye, { children: [
7561
+ }, [a, r]), /* @__PURE__ */ S(Ye, { children: [
7563
7562
  /* @__PURE__ */ l(qt, { ...n, steps: pe }),
7564
7563
  /* @__PURE__ */ l(
7565
7564
  jt,
@@ -7595,17 +7594,17 @@ function yp({
7595
7594
  d && c(xt(d));
7596
7595
  }, [c, d]), X(() => {
7597
7596
  if (!u.get("step")) {
7598
- const S = new URLSearchParams(u);
7599
- S.set("step", "1"), f(S, { replace: !0 });
7597
+ const C = new URLSearchParams(u);
7598
+ C.set("step", "1"), f(C, { replace: !0 });
7600
7599
  }
7601
7600
  }, [u, f]);
7602
7601
  const v = ie(
7603
- () => pe.find((S) => S.id === y) || pe[0],
7602
+ () => pe.find((C) => C.id === y) || pe[0],
7604
7603
  [y]
7605
7604
  ), w = _e(
7606
- (S, L) => {
7607
- const T = new URLSearchParams(u);
7608
- T.set("step", String(S)), S === 4 ? T.set("substep", String(L ?? (S === y ? E : 1))) : T.delete("substep"), f(T, { replace: !1 }), n?.({ systemId: d, step: S, substep: L });
7605
+ (C, R) => {
7606
+ const L = new URLSearchParams(u);
7607
+ L.set("step", String(C)), C === 4 ? L.set("substep", String(R ?? (C === y ? E : 1))) : L.delete("substep"), f(L, { replace: !1 }), n?.({ systemId: d, step: C, substep: R });
7609
7608
  },
7610
7609
  [u, f, n, d, y, E]
7611
7610
  ), m = () => {
@@ -7614,21 +7613,21 @@ function yp({
7614
7613
  return;
7615
7614
  }
7616
7615
  i("/");
7617
- }, h = (S) => {
7618
- w(4, S);
7616
+ }, g = (C) => {
7617
+ w(4, C);
7619
7618
  }, p = () => {
7620
7619
  t?.({ systemId: d, step: y });
7621
7620
  }, b = {
7622
7621
  currentStep: y,
7623
- onStepClick: (S) => w(S, S === 4 ? 1 : void 0),
7622
+ onStepClick: (C) => w(C, C === 4 ? 1 : void 0),
7624
7623
  showSaveButton: o,
7625
7624
  showNextButton: s,
7626
7625
  onSaveDraft: () => r?.({ systemId: d, step: y }),
7627
7626
  onNext: m,
7628
7627
  className: "ca-settings-page__stepper"
7629
7628
  };
7630
- return /* @__PURE__ */ l(ru, { children: /* @__PURE__ */ C("div", { className: "ca-settings-page", children: [
7631
- /* @__PURE__ */ C("div", { className: "ca-settings-page__header", children: [
7629
+ return /* @__PURE__ */ l(ru, { children: /* @__PURE__ */ S("div", { className: "ca-settings-page", children: [
7630
+ /* @__PURE__ */ S("div", { className: "ca-settings-page__header", children: [
7632
7631
  /* @__PURE__ */ l(
7633
7632
  "button",
7634
7633
  {
@@ -7658,7 +7657,7 @@ function yp({
7658
7657
  stepMeta: v,
7659
7658
  pageProps: a,
7660
7659
  substep: E,
7661
- onSubstepChange: h,
7660
+ onSubstepChange: g,
7662
7661
  stepperProps: b
7663
7662
  }
7664
7663
  ) : null,
@@ -7669,20 +7668,20 @@ function yp({
7669
7668
  }
7670
7669
  const wp = 12, bp = "18 July 2026, 12:09";
7671
7670
  function vp({ totalCount: e = 88 }) {
7672
- return /* @__PURE__ */ C("section", { className: "ca-query-details", "aria-labelledby": "query-management-title", children: [
7673
- /* @__PURE__ */ C("div", { className: "ca-query-details__heading", children: [
7671
+ return /* @__PURE__ */ S("section", { className: "ca-query-details", "aria-labelledby": "query-management-title", children: [
7672
+ /* @__PURE__ */ S("div", { className: "ca-query-details__heading", children: [
7674
7673
  /* @__PURE__ */ l("h1", { id: "query-management-title", className: "ca-query-details__title", children: "Query Management" }),
7675
- /* @__PURE__ */ C("span", { className: "ca-query-details__count", children: [
7674
+ /* @__PURE__ */ S("span", { className: "ca-query-details__count", children: [
7676
7675
  "Total Count: ",
7677
7676
  e
7678
7677
  ] })
7679
7678
  ] }),
7680
- /* @__PURE__ */ C("div", { className: "ca-query-details__summary", children: [
7681
- /* @__PURE__ */ C("div", { className: "ca-query-details__card", children: [
7679
+ /* @__PURE__ */ S("div", { className: "ca-query-details__summary", children: [
7680
+ /* @__PURE__ */ S("div", { className: "ca-query-details__card", children: [
7682
7681
  /* @__PURE__ */ l("span", { className: "ca-query-details__label", children: "Total Queries" }),
7683
7682
  /* @__PURE__ */ l("strong", { className: "ca-query-details__value", children: wp })
7684
7683
  ] }),
7685
- /* @__PURE__ */ C("div", { className: "ca-query-details__card", children: [
7684
+ /* @__PURE__ */ S("div", { className: "ca-query-details__card", children: [
7686
7685
  /* @__PURE__ */ l("span", { className: "ca-query-details__label", children: "Last Query Submitted Date" }),
7687
7686
  /* @__PURE__ */ l("strong", { className: "ca-query-details__value", children: bp })
7688
7687
  ] })
@@ -7734,12 +7733,12 @@ function xa(e, t) {
7734
7733
  return n;
7735
7734
  }
7736
7735
  function Tp({ id: e = Sp, labelFields: t = Cp, tableData: n = Ep }) {
7737
- const r = ae(), a = _p(J((h) => h.appDetails?.id)), {
7736
+ const r = ae(), a = _p(J((g) => g.appDetails?.id)), {
7738
7737
  list: o = [],
7739
7738
  isLoading: s = !1,
7740
7739
  error: i = null,
7741
7740
  hasLoaded: c = !1
7742
- } = J((h) => h.queryManagement ?? {});
7741
+ } = J((g) => g.queryManagement ?? {});
7743
7742
  X(() => {
7744
7743
  a && r(sn({
7745
7744
  complaintTypeId: a,
@@ -7748,74 +7747,74 @@ function Tp({ id: e = Sp, labelFields: t = Cp, tableData: n = Ep }) {
7748
7747
  }));
7749
7748
  }, [a, r]);
7750
7749
  const d = ie(
7751
- () => o.map((h) => ({
7752
- ...Np(h),
7753
- _fields: h?.formField || []
7750
+ () => o.map((g) => ({
7751
+ ...Np(g),
7752
+ _fields: g?.formField || []
7754
7753
  })),
7755
7754
  [o]
7756
7755
  ), u = ie(() => {
7757
- const h = /* @__PURE__ */ new Set(), p = [];
7756
+ const g = /* @__PURE__ */ new Set(), p = [];
7758
7757
  return d.forEach((b) => {
7759
- (b._fields || []).forEach((S) => {
7760
- const L = S.fieldKey || S.fieldName;
7761
- !L || L === "status" || L === "escalationTo" || h.has(L) || (h.add(L), p.push({
7762
- id: L,
7763
- label: S.fieldName || L,
7764
- key: L
7758
+ (b._fields || []).forEach((C) => {
7759
+ const R = C.fieldKey || C.fieldName;
7760
+ !R || R === "status" || R === "escalationTo" || g.has(R) || (g.add(R), p.push({
7761
+ id: R,
7762
+ label: C.fieldName || R,
7763
+ key: R
7765
7764
  }));
7766
7765
  });
7767
7766
  }), p;
7768
- }, [d]), f = c || a ? [...u, Ta, Ra] : t, y = c ? d.map(({ _fields: h, ...p }) => p) : a ? [] : n, E = f.filter((h) => h.key !== "status" && h.key !== "escalationTo"), v = [Ta, Ra], w = Me(), m = () => {
7767
+ }, [d]), f = c || a ? [...u, Ta, Ra] : t, y = c ? d.map(({ _fields: g, ...p }) => p) : a ? [] : n, E = f.filter((g) => g.key !== "status" && g.key !== "escalationTo"), v = [Ta, Ra], w = Me(), m = () => {
7769
7768
  console.log("New Query button clicked"), w("/querymanagement/new/33");
7770
7769
  };
7771
- return /* @__PURE__ */ C("section", { className: "ca-query-table", "aria-label": "Query records", children: [
7772
- /* @__PURE__ */ C("div", { className: "ca-query-table__toolbar", children: [
7773
- /* @__PURE__ */ C("label", { className: "ca-query-table__filter", children: [
7770
+ return /* @__PURE__ */ S("section", { className: "ca-query-table", "aria-label": "Query records", children: [
7771
+ /* @__PURE__ */ S("div", { className: "ca-query-table__toolbar", children: [
7772
+ /* @__PURE__ */ S("label", { className: "ca-query-table__filter", children: [
7774
7773
  /* @__PURE__ */ l(Md, { size: 14, "aria-hidden": "true" }),
7775
7774
  /* @__PURE__ */ l("span", { className: "ca-query-table__sr-only", children: "Filter by status" }),
7776
- /* @__PURE__ */ C("select", { defaultValue: "all", "aria-label": "Filter by status", children: [
7775
+ /* @__PURE__ */ S("select", { defaultValue: "all", "aria-label": "Filter by status", children: [
7777
7776
  /* @__PURE__ */ l("option", { value: "all", children: "Select Status" }),
7778
7777
  /* @__PURE__ */ l("option", { value: "open", children: "Open" }),
7779
7778
  /* @__PURE__ */ l("option", { value: "closed", children: "Closed" })
7780
7779
  ] })
7781
7780
  ] }),
7782
- /* @__PURE__ */ C("div", { className: "ca-query-table__actions", children: [
7781
+ /* @__PURE__ */ S("div", { className: "ca-query-table__actions", children: [
7783
7782
  /* @__PURE__ */ l(re, { variant: "outline", onClick: () => m(), size: "sm", startIcon: /* @__PURE__ */ l(Po, { size: 14 }), children: "New Query" }),
7784
7783
  /* @__PURE__ */ l(re, { variant: "outline", size: "sm", startIcon: /* @__PURE__ */ l(Fd, { size: 14 }), children: "Download Report" })
7785
7784
  ] })
7786
7785
  ] }),
7787
7786
  i ? /* @__PURE__ */ l("p", { className: "ca-body", children: i }) : null,
7788
- s && !y.length ? /* @__PURE__ */ l(Ut, { text: "Loading queries" }) : /* @__PURE__ */ l("div", { className: "ca-query-table__scroll", "data-label-field-id": e, children: /* @__PURE__ */ C("table", { children: [
7789
- /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ C("tr", { children: [
7787
+ s && !y.length ? /* @__PURE__ */ l(Ut, { text: "Loading queries" }) : /* @__PURE__ */ l("div", { className: "ca-query-table__scroll", "data-label-field-id": e, children: /* @__PURE__ */ S("table", { children: [
7788
+ /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ S("tr", { children: [
7790
7789
  /* @__PURE__ */ l("th", { scope: "col", children: "#" }),
7791
- E.map((h) => /* @__PURE__ */ l("th", { scope: "col", className: Jt(h.key, !0), children: h.label }, h.id)),
7790
+ E.map((g) => /* @__PURE__ */ l("th", { scope: "col", className: Jt(g.key, !0), children: g.label }, g.id)),
7792
7791
  /* @__PURE__ */ l("th", { className: "ca-query-table__spacer", "aria-hidden": "true" }),
7793
- v.map((h) => /* @__PURE__ */ l("th", { scope: "col", className: Jt(h.key, !0), children: h.label }, h.id))
7792
+ v.map((g) => /* @__PURE__ */ l("th", { scope: "col", className: Jt(g.key, !0), children: g.label }, g.id))
7794
7793
  ] }) }),
7795
- /* @__PURE__ */ l("tbody", { children: y.map((h, p) => /* @__PURE__ */ C("tr", { children: [
7794
+ /* @__PURE__ */ l("tbody", { children: y.map((g, p) => /* @__PURE__ */ S("tr", { children: [
7796
7795
  /* @__PURE__ */ l("td", { children: p + 1 }),
7797
7796
  E.map((b) => /* @__PURE__ */ l(
7798
7797
  "td",
7799
7798
  {
7800
7799
  className: Jt(b.key),
7801
- children: xa(b, h)
7800
+ children: xa(b, g)
7802
7801
  },
7803
- `${h.id ?? p}-${b.id}`
7802
+ `${g.id ?? p}-${b.id}`
7804
7803
  )),
7805
7804
  /* @__PURE__ */ l("td", { className: "ca-query-table__spacer", "aria-hidden": "true" }),
7806
7805
  v.map((b) => /* @__PURE__ */ l(
7807
7806
  "td",
7808
7807
  {
7809
7808
  className: Jt(b.key),
7810
- children: xa(b, h)
7809
+ children: xa(b, g)
7811
7810
  },
7812
- `${h.id ?? p}-${b.id}`
7811
+ `${g.id ?? p}-${b.id}`
7813
7812
  ))
7814
- ] }, h.id ?? p)) })
7813
+ ] }, g.id ?? p)) })
7815
7814
  ] }) })
7816
7815
  ] });
7817
7816
  }
7818
- const Rp = () => /* @__PURE__ */ C("main", { className: "ca-query-management-page", children: [
7817
+ const Rp = () => /* @__PURE__ */ S("main", { className: "ca-query-management-page", children: [
7819
7818
  /* @__PURE__ */ l(vp, {}),
7820
7819
  /* @__PURE__ */ l(Tp, {})
7821
7820
  ] }), xp = 37, Lp = {
@@ -7864,7 +7863,7 @@ function La(e) {
7864
7863
  function Op({ field: e, value: t, onChange: n }) {
7865
7864
  const r = Nr(e), a = Jo(e);
7866
7865
  if (r === "radio")
7867
- return /* @__PURE__ */ l("div", { className: "review-options review-options--inline", children: e.options.map((o) => /* @__PURE__ */ C("label", { className: "review-option", htmlFor: `${a}-${o}`, children: [
7866
+ return /* @__PURE__ */ l("div", { className: "review-options review-options--inline", children: e.options.map((o) => /* @__PURE__ */ S("label", { className: "review-option", htmlFor: `${a}-${o}`, children: [
7868
7867
  /* @__PURE__ */ l(
7869
7868
  "input",
7870
7869
  {
@@ -7881,7 +7880,7 @@ function Op({ field: e, value: t, onChange: n }) {
7881
7880
  ] }, o)) });
7882
7881
  if (r === "checkbox") {
7883
7882
  const o = Array.isArray(t) ? t : [];
7884
- return /* @__PURE__ */ l("div", { className: "review-options review-options--inline", children: e.options.map((s) => /* @__PURE__ */ C("label", { className: "review-option", htmlFor: `${a}-${s}`, children: [
7883
+ return /* @__PURE__ */ l("div", { className: "review-options review-options--inline", children: e.options.map((s) => /* @__PURE__ */ S("label", { className: "review-option", htmlFor: `${a}-${s}`, children: [
7885
7884
  /* @__PURE__ */ l(
7886
7885
  "input",
7887
7886
  {
@@ -7898,8 +7897,8 @@ function Op({ field: e, value: t, onChange: n }) {
7898
7897
  /* @__PURE__ */ l("span", { children: s })
7899
7898
  ] }, s)) });
7900
7899
  }
7901
- return r === "textarea" ? /* @__PURE__ */ l("textarea", { id: a, name: de(e), className: "review-control review-control--textarea", value: t, onChange: (o) => n(o.target.value), required: e.required }) : r === "select" ? /* @__PURE__ */ C("select", { id: a, name: de(e), className: "review-control", value: t, onChange: (o) => n(o.target.value), required: e.required, children: [
7902
- /* @__PURE__ */ C("option", { value: "", children: [
7900
+ return r === "textarea" ? /* @__PURE__ */ l("textarea", { id: a, name: de(e), className: "review-control review-control--textarea", value: t, onChange: (o) => n(o.target.value), required: e.required }) : r === "select" ? /* @__PURE__ */ S("select", { id: a, name: de(e), className: "review-control", value: t, onChange: (o) => n(o.target.value), required: e.required, children: [
7901
+ /* @__PURE__ */ S("option", { value: "", children: [
7903
7902
  "Select ",
7904
7903
  e.label.toLowerCase()
7905
7904
  ] }),
@@ -7912,8 +7911,8 @@ function kp() {
7912
7911
  let p = !1;
7913
7912
  return e(Oe(r)).unwrap().then((b) => {
7914
7913
  if (p) return;
7915
- const S = Fp(Array.isArray(b?.data) ? b.data : b);
7916
- o(S), i(Object.fromEntries(S.map((L) => [de(L), La(L)])));
7914
+ const C = Fp(Array.isArray(b?.data) ? b.data : b);
7915
+ o(C), i(Object.fromEntries(C.map((R) => [de(R), La(R)])));
7917
7916
  }).catch((b) => {
7918
7917
  p || E(b?.message || "Failed to load form fields.");
7919
7918
  }).finally(() => {
@@ -7923,14 +7922,14 @@ function kp() {
7923
7922
  };
7924
7923
  }, [r, e]);
7925
7924
  const m = ie(() => a.length > 0, [a]);
7926
- return /* @__PURE__ */ l("main", { className: "ca-query-management-page", children: /* @__PURE__ */ C("section", { className: "ca-query-details", "aria-labelledby": "new-query-title", children: [
7927
- /* @__PURE__ */ C("div", { className: "ca-query-details__heading", children: [
7925
+ return /* @__PURE__ */ l("main", { className: "ca-query-management-page", children: /* @__PURE__ */ S("section", { className: "ca-query-details", "aria-labelledby": "new-query-title", children: [
7926
+ /* @__PURE__ */ S("div", { className: "ca-query-details__heading", children: [
7928
7927
  /* @__PURE__ */ l("h1", { id: "new-query-title", className: "ca-query-details__title", children: "New Query" }),
7929
7928
  /* @__PURE__ */ l(re, { variant: "outline", size: "sm", onClick: () => t("/querymanagement"), children: "Back" })
7930
7929
  ] }),
7931
7930
  c ? /* @__PURE__ */ l(Ut, { text: "Loading form fields" }) : null,
7932
7931
  !c && y && !m ? /* @__PURE__ */ l("p", { className: "ca-body", children: y }) : null,
7933
- !c && m ? /* @__PURE__ */ C("form", { className: "review-form-card", onSubmit: async (p) => {
7932
+ !c && m ? /* @__PURE__ */ S("form", { className: "review-form-card", onSubmit: async (p) => {
7934
7933
  p.preventDefault(), E(""), w(""), f(!0), console.log("Submitting query with values:", s);
7935
7934
  try {
7936
7935
  await P.post("/api/v1/complaints", {
@@ -7944,8 +7943,8 @@ function kp() {
7944
7943
  f(!1);
7945
7944
  }
7946
7945
  }, children: [
7947
- /* @__PURE__ */ l("div", { className: "review-form-grid", children: a.map((p) => /* @__PURE__ */ C("div", { className: `review-question${["textarea", "radio", "checkbox"].includes(Nr(p)) ? " review-question--wide" : ""}`, children: [
7948
- /* @__PURE__ */ C("label", { className: "review-label", htmlFor: Jo(p), children: [
7946
+ /* @__PURE__ */ l("div", { className: "review-form-grid", children: a.map((p) => /* @__PURE__ */ S("div", { className: `review-question${["textarea", "radio", "checkbox"].includes(Nr(p)) ? " review-question--wide" : ""}`, children: [
7947
+ /* @__PURE__ */ S("label", { className: "review-label", htmlFor: Jo(p), children: [
7949
7948
  p.label || "Untitled field",
7950
7949
  p.required ? /* @__PURE__ */ l("span", { className: "review-required", children: "*" }) : null
7951
7950
  ] }),
@@ -7954,7 +7953,7 @@ function kp() {
7954
7953
  {
7955
7954
  field: p,
7956
7955
  value: s[de(p)] ?? La(p),
7957
- onChange: (b) => i((S) => ({ ...S, [de(p)]: b }))
7956
+ onChange: (b) => i((C) => ({ ...C, [de(p)]: b }))
7958
7957
  }
7959
7958
  )
7960
7959
  ] }, p.id ?? de(p))) }),
@@ -7966,7 +7965,7 @@ function kp() {
7966
7965
  }
7967
7966
  function Dp({ pageProps: e, onPublish: t, onStepChange: n, children: r }) {
7968
7967
  const a = r ?? /* @__PURE__ */ l(nu, { ...e });
7969
- return console.log("ComplaintRouter pageProps:", e.rolelist), /* @__PURE__ */ C(zs, { children: [
7968
+ return console.log("ComplaintRouter pageProps:", e.rolelist), /* @__PURE__ */ S(zs, { children: [
7970
7969
  /* @__PURE__ */ l(Ve, { path: "/", element: a }),
7971
7970
  /* @__PURE__ */ l(
7972
7971
  Ve,
@@ -8038,41 +8037,37 @@ const a0 = ({
8038
8037
  title: s,
8039
8038
  description: i,
8040
8039
  rolelist: c,
8041
- systems: d,
8042
- systemsEndpoint: u,
8043
- useDemoData: f = !0,
8044
- createLabel: y,
8045
- onCreateForm: E,
8046
- onConfigure: v,
8047
- onOpen: w,
8048
- onTitleClick: m,
8049
- onDescriptionClick: h,
8050
- onSearch: p,
8051
- onPublish: b,
8052
- onSaveDraft: S,
8053
- showSaveButton: L,
8054
- showNextButton: T,
8055
- onStepChange: O,
8056
- children: $
8040
+ useDemoData: d = !0,
8041
+ createLabel: u,
8042
+ onCreateForm: f,
8043
+ onConfigure: y,
8044
+ onOpen: E,
8045
+ onTitleClick: v,
8046
+ onDescriptionClick: w,
8047
+ onSearch: m,
8048
+ onPublish: g,
8049
+ onSaveDraft: p,
8050
+ showSaveButton: b,
8051
+ showNextButton: C,
8052
+ onStepChange: R,
8053
+ children: L
8057
8054
  }) => {
8058
- const A = {
8055
+ const k = {
8059
8056
  title: s,
8060
8057
  description: i,
8061
- systems: d,
8062
- systemsEndpoint: u,
8063
- useDemoData: f,
8064
- createLabel: y,
8065
- onCreateForm: E,
8066
- onConfigure: v,
8067
- onOpen: w,
8058
+ useDemoData: d,
8059
+ createLabel: u,
8060
+ onCreateForm: f,
8061
+ onConfigure: y,
8062
+ onOpen: E,
8068
8063
  rolelist: c,
8069
- onTitleClick: m,
8070
- onDescriptionClick: h,
8071
- onSearch: p,
8072
- onSaveDraft: S,
8073
- showSaveButton: L,
8074
- showNextButton: T
8075
- }, R = ie(
8064
+ onTitleClick: v,
8065
+ onDescriptionClick: w,
8066
+ onSearch: m,
8067
+ onSaveDraft: p,
8068
+ showSaveButton: b,
8069
+ showNextButton: C
8070
+ }, $ = ie(
8076
8071
  () => ({
8077
8072
  apiUrl: e,
8078
8073
  authToken: t,
@@ -8082,21 +8077,19 @@ const a0 = ({
8082
8077
  title: s,
8083
8078
  description: i,
8084
8079
  rolelist: c,
8085
- systems: d,
8086
- systemsEndpoint: u,
8087
- useDemoData: f,
8088
- createLabel: y,
8089
- onCreateForm: E,
8090
- onConfigure: v,
8091
- onOpen: w,
8092
- onTitleClick: m,
8093
- onDescriptionClick: h,
8094
- onSearch: p,
8095
- onPublish: b,
8096
- onSaveDraft: S,
8097
- showSaveButton: L,
8098
- showNextButton: T,
8099
- onStepChange: O
8080
+ useDemoData: d,
8081
+ createLabel: u,
8082
+ onCreateForm: f,
8083
+ onConfigure: y,
8084
+ onOpen: E,
8085
+ onTitleClick: v,
8086
+ onDescriptionClick: w,
8087
+ onSearch: m,
8088
+ onPublish: g,
8089
+ onSaveDraft: p,
8090
+ showSaveButton: b,
8091
+ showNextButton: C,
8092
+ onStepChange: R
8100
8093
  }),
8101
8094
  [
8102
8095
  e,
@@ -8115,22 +8108,20 @@ const a0 = ({
8115
8108
  v,
8116
8109
  w,
8117
8110
  m,
8118
- h,
8111
+ g,
8119
8112
  p,
8120
8113
  b,
8121
- S,
8122
- L,
8123
- T,
8124
- O
8114
+ C,
8115
+ R
8125
8116
  ]
8126
8117
  );
8127
- return /* @__PURE__ */ l(zc, { theme: a, darkMode: o, children: /* @__PURE__ */ l(Bp, { store: n, children: /* @__PURE__ */ l($p, { details: R, children: /* @__PURE__ */ l(Ip, { children: /* @__PURE__ */ l(Mc, { apiUrl: e, authToken: t, children: /* @__PURE__ */ l(Mp, { basePath: r, children: /* @__PURE__ */ l(
8118
+ return /* @__PURE__ */ l(zc, { theme: a, darkMode: o, children: /* @__PURE__ */ l(Bp, { store: n, children: /* @__PURE__ */ l($p, { details: $, children: /* @__PURE__ */ l(Ip, { children: /* @__PURE__ */ l(Mc, { apiUrl: e, authToken: t, children: /* @__PURE__ */ l(Mp, { basePath: r, children: /* @__PURE__ */ l(
8128
8119
  Pp,
8129
8120
  {
8130
- pageProps: A,
8131
- onPublish: b,
8132
- onStepChange: O,
8133
- children: $
8121
+ pageProps: k,
8122
+ onPublish: g,
8123
+ onStepChange: R,
8124
+ children: L
8134
8125
  }
8135
8126
  ) }) }) }) }) }) });
8136
8127
  }, o0 = Te.colors, s0 = Te.radii, i0 = Te.spacing, l0 = Te.typography;